diff --git a/go.mod b/go.mod index 6f0b633d0..7dadac41e 100644 --- a/go.mod +++ b/go.mod @@ -26,7 +26,7 @@ require ( github.com/armon/go-metrics v0.0.0-20190430140413-ec5e00d3c878 // indirect github.com/aws/aws-sdk-go v1.30.8 github.com/biogo/hts v0.0.0-20160420073057-50da7d4131a3 - github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae + github.com/c2h5oh/datasize v0.0.0-20200112174442-28bbd4740fee github.com/cheggaaa/pb v1.0.27 github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e github.com/creack/goselect v0.1.0 // indirect @@ -49,7 +49,7 @@ require ( github.com/gocolly/colly v1.2.0 github.com/gofrs/flock v0.7.1 github.com/golang-collections/collections v0.0.0-20130729185459-604e922904d3 - github.com/golang/protobuf v1.3.5 // indirect + github.com/golang/protobuf v1.4.2 // indirect github.com/google/go-cmp v0.4.0 github.com/google/go-querystring v1.0.0 // indirect github.com/google/shlex v0.0.0-20150127133951-6f45313302b9 @@ -139,8 +139,8 @@ require ( github.com/ulikunitz/xz v0.5.5 github.com/vmware/govmomi v0.22.2 github.com/xanzy/go-cloudstack v0.0.0-20190526095453-42f262b63ed0 - github.com/yandex-cloud/go-genproto v0.0.0-20190916101622-7617782d381e - github.com/yandex-cloud/go-sdk v0.0.0-20190916101744-c781afa45829 + github.com/yandex-cloud/go-genproto v0.0.0-20200608085315-d6e7ef5ceb97 + github.com/yandex-cloud/go-sdk v0.0.0-20200610100221-ae86895efb97 github.com/zclconf/go-cty v1.4.0 github.com/zclconf/go-cty-yaml v1.0.1 golang.org/x/crypto v0.0.0-20200422194213-44a606286825 @@ -148,13 +148,15 @@ require ( golang.org/x/net v0.0.0-20200602114024-627f9648deb9 golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a - golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd + golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1 + golang.org/x/text v0.3.3 // indirect golang.org/x/tools v0.0.0-20200224181240-023911ca70b2 google.golang.org/api v0.21.0 - google.golang.org/genproto v0.0.0-20200325114520-5b2d0af7952b // indirect - google.golang.org/grpc v1.28.0 + google.golang.org/genproto v0.0.0-20200617032506-f1bdc9086088 // indirect + google.golang.org/grpc v1.29.1 gopkg.in/ini.v1 v1.42.0 // indirect gopkg.in/jarcoal/httpmock.v1 v1.0.0-20181117152235-275e9df93516 // indirect + gopkg.in/yaml.v2 v2.3.0 // indirect ) replace github.com/gofrs/flock => github.com/azr/flock v0.0.0-20190823144736-958d66434653 diff --git a/go.sum b/go.sum index ce530cb74..ba240fc2d 100644 --- a/go.sum +++ b/go.sum @@ -138,6 +138,8 @@ github.com/bmatcuk/doublestar v1.1.5 h1:2bNwBOmhyFEFcoB3tGvTD5xanq+4kyOZlB8wFYbM github.com/bmatcuk/doublestar v1.1.5/go.mod h1:wiQtGV+rzVYxB7WIlirSN++5HPtPlXEo9MEoZQC/PmE= github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae h1:2Zmk+8cNvAGuY8AyvZuWpUdpQUAXwfom4ReVMe/CTIo= github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae/go.mod h1:S/7n9copUssQ56c7aAgHqftWO4LTf4xY6CGWt8Bc+3M= +github.com/c2h5oh/datasize v0.0.0-20200112174442-28bbd4740fee h1:BnPxIde0gjtTnc9Er7cxvBk8DHLWhEux0SxayC8dP6I= +github.com/c2h5oh/datasize v0.0.0-20200112174442-28bbd4740fee/go.mod h1:S/7n9copUssQ56c7aAgHqftWO4LTf4xY6CGWt8Bc+3M= github.com/census-instrumentation/opencensus-proto v0.2.1 h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cheggaaa/pb v1.0.27 h1:wIkZHkNfC7R6GI5w7l/PdAdzXzlrbcI3p8OAlnkTsnc= @@ -248,6 +250,14 @@ github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5y github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.3.5 h1:F768QJ1E9tib+q5Sc8MkdJi1RxLTbRcTf8LJV56aRls= github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +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.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/snappy v0.0.1 h1:Qgr9rKW7uDUkrbSmQeiDsGa8SjGyCOGtuasMWwvp2P4= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c h1:964Od4U6p2jUkFxvCydnIczKteheJEzHRToSGK3Bnlw= @@ -586,6 +596,7 @@ github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1 github.com/smartystreets/goconvey v0.0.0-20181108003508-044398e4856c h1:Ho+uVpkel/udgjbwB5Lktg9BtvJSh2DT0Hi6LPSyI2w= github.com/smartystreets/goconvey v0.0.0-20181108003508-044398e4856c/go.mod h1:XDJAKZRPZ1CvBcN2aX5YOUTYGHki24fSF0Iv48Ibg0s= github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1 h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -622,8 +633,12 @@ github.com/xanzy/go-cloudstack v0.0.0-20190526095453-42f262b63ed0 h1:NJrcIkdzq0C github.com/xanzy/go-cloudstack v0.0.0-20190526095453-42f262b63ed0/go.mod h1:sBh287mCRwCz6zyXHMmw7sSZGPohVpnx+o+OY4M+i3A= github.com/yandex-cloud/go-genproto v0.0.0-20190916101622-7617782d381e h1:hzwq5GUKP0aQzDja1XP4sBYyOmnezs/RVtzP+xiLbfI= github.com/yandex-cloud/go-genproto v0.0.0-20190916101622-7617782d381e/go.mod h1:HEUYX/p8966tMUHHT+TsS0hF/Ca/NYwqprC5WXSDMfE= +github.com/yandex-cloud/go-genproto v0.0.0-20200608085315-d6e7ef5ceb97 h1:DoqSUxQkBLislVgA1qkM0u7g04It4VRMidyLBH/O/as= +github.com/yandex-cloud/go-genproto v0.0.0-20200608085315-d6e7ef5ceb97/go.mod h1:HEUYX/p8966tMUHHT+TsS0hF/Ca/NYwqprC5WXSDMfE= github.com/yandex-cloud/go-sdk v0.0.0-20190916101744-c781afa45829 h1:2FGwbx03GpP1Ulzg/L46tSoKh9t4yg8BhMKQl/Ff1x8= github.com/yandex-cloud/go-sdk v0.0.0-20190916101744-c781afa45829/go.mod h1:Eml0jFLU4VVHgIN8zPHMuNwZXVzUMILyO6lQZSfz854= +github.com/yandex-cloud/go-sdk v0.0.0-20200610100221-ae86895efb97 h1:8KwSw9xtQBeyeX1EpOlOjRc0JaHlh8B8GglKA6iXt08= +github.com/yandex-cloud/go-sdk v0.0.0-20200610100221-ae86895efb97/go.mod h1:3p2xVpQrHyPxV4UCKnKozt9n+g1LRENOQ33CH8rqLnY= github.com/zclconf/go-cty v1.0.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= github.com/zclconf/go-cty v1.2.0/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= github.com/zclconf/go-cty v1.4.0 h1:+q+tmgyUB94HIdH/uVTIi/+kt3pt4sHwEZAcTyLoGsQ= @@ -719,6 +734,7 @@ golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200320220750-118fecf932d8/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200602114024-627f9648deb9 h1:pNX+40auqi2JqRfOP1akLGtYcn15TUbkhwuCO3foqqM= golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= @@ -779,6 +795,8 @@ golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd h1:xhmwyvizuTgC2qz7ZlMluP20uW+C3Rm0FD/WLDX8884= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1 h1:ogLJMz+qpzav7lGMh10LMvAkM/fAoGlaiiHYiFYdm80= +golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -787,6 +805,8 @@ golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3 golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c h1:fqgJT0MGcGpPgpWU7VRdRjuArfcOvC4AoJmILihzhDg= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 h1:SvFZT6jyqRaOeXpc5h/JSfZenJ2O330aBsf7JfSUXmQ= @@ -876,8 +896,12 @@ google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvx google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200323114720-3f67cca34472/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200325114520-5b2d0af7952b h1:j5eujPLMak6H9l2EM381rW9X47/HPUyESXWJW9lVSsQ= google.golang.org/genproto v0.0.0-20200325114520-5b2d0af7952b/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200617032506-f1bdc9086088 h1:XXo4PvhJkaWYIkwn7bX7mcdB8RdcOvn12HbaUUAwX3E= +google.golang.org/genproto v0.0.0-20200617032506-f1bdc9086088/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1 h1:Hz2g2wirWK7H0qIIhGIqRGTuMwTE8HEKFnDZZ7lm9NU= @@ -893,6 +917,18 @@ google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8 google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.28.0 h1:bO/TA4OxCOummhSf10siHuG7vJOiwh7SpRpFZDkOgl4= google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1 h1:EC2SB8S04d2r73uptxphDSUG+kTKVgjRPF+N3xpxRB4= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +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 h1:UhZDfRO8JRQru4/+LlLE0BRKGF8L+PICnvYZmx/fEGA= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -914,6 +950,8 @@ gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/vendor/github.com/c2h5oh/datasize/.travis.yml b/vendor/github.com/c2h5oh/datasize/.travis.yml index a6ebc037c..204e70089 100644 --- a/vendor/github.com/c2h5oh/datasize/.travis.yml +++ b/vendor/github.com/c2h5oh/datasize/.travis.yml @@ -5,6 +5,9 @@ go: - 1.4 - 1.5 - 1.6 + - 1.7 + - 1.8 + - 1.9 - tip script: diff --git a/vendor/github.com/c2h5oh/datasize/README.md b/vendor/github.com/c2h5oh/datasize/README.md index d21f136b4..ac0cf8586 100644 --- a/vendor/github.com/c2h5oh/datasize/README.md +++ b/vendor/github.com/c2h5oh/datasize/README.md @@ -2,9 +2,10 @@ Golang helpers for data sizes - ### Constants + Just like `time` package provides `time.Second`, `time.Day` constants `datasize` provides: + * `datasize.B` 1 byte * `datasize.KB` 1 kilobyte * `datasize.MB` 1 megabyte @@ -14,7 +15,9 @@ Just like `time` package provides `time.Second`, `time.Day` constants `datasize` * `datasize.EB` 1 exabyte ### Helpers -Just like `time` package provides `duration.Nanoseconds() uint64 `, `duration.Hours() float64` helpers `datasize` has + +Just like `time` package provides `duration.Nanoseconds() uint64 `, `duration.Hours() float64` helpers `datasize` has. + * `ByteSize.Bytes() uint64` * `ByteSize.Kilobytes() float4` * `ByteSize.Megabytes() float64` @@ -26,7 +29,9 @@ Just like `time` package provides `duration.Nanoseconds() uint64 `, `duration.Ho Warning: see limitations at the end of this document about a possible precission loss ### Parsing strings + `datasize.ByteSize` implements `TextUnmarshaler` interface and will automatically parse human readable strings into correct values where it is used: + * `"10 MB"` -> `10* datasize.MB` * `"10240 g"` -> `10 * datasize.TB` * `"2000"` -> `2000 * datasize.B` @@ -36,28 +41,34 @@ Warning: see limitations at the end of this document about a possible precission * `"1 gigabyte"` -> `1 * datasize.GB` You can also do it manually: + ```go var v datasize.ByteSize err := v.UnmarshalText([]byte("100 mb")) ``` ### Printing -`Bytesize.String()` uses largest unit allowing an integer value: - * `(102400 * datasize.MB).String()` -> `"100GB"` - * `(datasize.MB + datasize.KB).String()` -> `"1025KB"` -Use `%d` format string to get value in bytes without a unit +`Bytesize.String()` uses largest unit allowing an integer value: + +* `(102400 * datasize.MB).String()` -> `"100GB"` +* `(datasize.MB + datasize.KB).String()` -> `"1025KB"` + +Use `%d` format string to get value in bytes without a unit. ### JSON and other encoding + Both `TextMarshaler` and `TextUnmarshaler` interfaces are implemented - JSON will just work. Other encoders will work provided they use those interfaces. ### Human readable + `ByteSize.HumanReadable()` or `ByteSize.HR()` returns a string with 1-3 digits, followed by 1 decimal place, a space and unit big enough to get 1-3 digits - * `(102400 * datasize.MB).String()` -> `"100.0 GB"` - * `(datasize.MB + 512 * datasize.KB).String()` -> `"1.5 MB"` +* `(102400 * datasize.MB).String()` -> `"100.0 GB"` +* `(datasize.MB + 512 * datasize.KB).String()` -> `"1.5 MB"` ### Limitations + * The underlying data type for `data.ByteSize` is `uint64`, so values outside of 0 to 2^64-1 range will overflow * size helper functions (like `ByteSize.Kilobytes()`) return `float64`, which can't represent all possible values of `uint64` accurately: * if the returned value is supposed to have no fraction (ie `(10 * datasize.MB).Kilobytes()`) accuracy loss happens when value is more than 2^53 larger than unit: `.Kilobytes()` over 8 petabytes, `.Megabytes()` over 8 exabytes diff --git a/vendor/github.com/golang/protobuf/internal/gengogrpc/grpc.go b/vendor/github.com/golang/protobuf/internal/gengogrpc/grpc.go new file mode 100644 index 000000000..fd2f51d89 --- /dev/null +++ b/vendor/github.com/golang/protobuf/internal/gengogrpc/grpc.go @@ -0,0 +1,398 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package gengogrpc contains the gRPC code generator. +package gengogrpc + +import ( + "fmt" + "strconv" + "strings" + + "google.golang.org/protobuf/compiler/protogen" + + "google.golang.org/protobuf/types/descriptorpb" +) + +const ( + contextPackage = protogen.GoImportPath("context") + grpcPackage = protogen.GoImportPath("google.golang.org/grpc") + codesPackage = protogen.GoImportPath("google.golang.org/grpc/codes") + statusPackage = protogen.GoImportPath("google.golang.org/grpc/status") +) + +// GenerateFile generates a _grpc.pb.go file containing gRPC service definitions. +func GenerateFile(gen *protogen.Plugin, file *protogen.File) *protogen.GeneratedFile { + if len(file.Services) == 0 { + return nil + } + filename := file.GeneratedFilenamePrefix + "_grpc.pb.go" + g := gen.NewGeneratedFile(filename, file.GoImportPath) + g.P("// Code generated by protoc-gen-go-grpc. DO NOT EDIT.") + g.P() + g.P("package ", file.GoPackageName) + g.P() + GenerateFileContent(gen, file, g) + return g +} + +// GenerateFileContent generates the gRPC service definitions, excluding the package statement. +func GenerateFileContent(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile) { + if len(file.Services) == 0 { + return + } + + // TODO: Remove this. We don't need to include these references any more. + g.P("// Reference imports to suppress errors if they are not otherwise used.") + g.P("var _ ", contextPackage.Ident("Context")) + g.P("var _ ", grpcPackage.Ident("ClientConnInterface")) + g.P() + + g.P("// This is a compile-time assertion to ensure that this generated file") + g.P("// is compatible with the grpc package it is being compiled against.") + g.P("const _ = ", grpcPackage.Ident("SupportPackageIsVersion6")) + g.P() + for _, service := range file.Services { + genService(gen, file, g, service) + } +} + +func genService(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, service *protogen.Service) { + clientName := service.GoName + "Client" + + g.P("// ", clientName, " is the client API for ", service.GoName, " service.") + g.P("//") + g.P("// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.") + + // Client interface. + if service.Desc.Options().(*descriptorpb.ServiceOptions).GetDeprecated() { + g.P("//") + g.P(deprecationComment) + } + g.Annotate(clientName, service.Location) + g.P("type ", clientName, " interface {") + for _, method := range service.Methods { + g.Annotate(clientName+"."+method.GoName, method.Location) + if method.Desc.Options().(*descriptorpb.MethodOptions).GetDeprecated() { + g.P(deprecationComment) + } + g.P(method.Comments.Leading, + clientSignature(g, method)) + } + g.P("}") + g.P() + + // Client structure. + g.P("type ", unexport(clientName), " struct {") + g.P("cc ", grpcPackage.Ident("ClientConnInterface")) + g.P("}") + g.P() + + // NewClient factory. + if service.Desc.Options().(*descriptorpb.ServiceOptions).GetDeprecated() { + g.P(deprecationComment) + } + g.P("func New", clientName, " (cc ", grpcPackage.Ident("ClientConnInterface"), ") ", clientName, " {") + g.P("return &", unexport(clientName), "{cc}") + g.P("}") + g.P() + + var methodIndex, streamIndex int + // Client method implementations. + for _, method := range service.Methods { + if !method.Desc.IsStreamingServer() && !method.Desc.IsStreamingClient() { + // Unary RPC method + genClientMethod(gen, file, g, method, methodIndex) + methodIndex++ + } else { + // Streaming RPC method + genClientMethod(gen, file, g, method, streamIndex) + streamIndex++ + } + } + + // Server interface. + serverType := service.GoName + "Server" + g.P("// ", serverType, " is the server API for ", service.GoName, " service.") + if service.Desc.Options().(*descriptorpb.ServiceOptions).GetDeprecated() { + g.P("//") + g.P(deprecationComment) + } + g.Annotate(serverType, service.Location) + g.P("type ", serverType, " interface {") + for _, method := range service.Methods { + g.Annotate(serverType+"."+method.GoName, method.Location) + if method.Desc.Options().(*descriptorpb.MethodOptions).GetDeprecated() { + g.P(deprecationComment) + } + g.P(method.Comments.Leading, + serverSignature(g, method)) + } + g.P("}") + g.P() + + // Server Unimplemented struct for forward compatibility. + g.P("// Unimplemented", serverType, " can be embedded to have forward compatible implementations.") + g.P("type Unimplemented", serverType, " struct {") + g.P("}") + g.P() + for _, method := range service.Methods { + nilArg := "" + if !method.Desc.IsStreamingClient() && !method.Desc.IsStreamingServer() { + nilArg = "nil," + } + g.P("func (*Unimplemented", serverType, ") ", serverSignature(g, method), "{") + g.P("return ", nilArg, statusPackage.Ident("Errorf"), "(", codesPackage.Ident("Unimplemented"), `, "method `, method.GoName, ` not implemented")`) + g.P("}") + } + g.P() + + // Server registration. + if service.Desc.Options().(*descriptorpb.ServiceOptions).GetDeprecated() { + g.P(deprecationComment) + } + serviceDescVar := "_" + service.GoName + "_serviceDesc" + g.P("func Register", service.GoName, "Server(s *", grpcPackage.Ident("Server"), ", srv ", serverType, ") {") + g.P("s.RegisterService(&", serviceDescVar, `, srv)`) + g.P("}") + g.P() + + // Server handler implementations. + var handlerNames []string + for _, method := range service.Methods { + hname := genServerMethod(gen, file, g, method) + handlerNames = append(handlerNames, hname) + } + + // Service descriptor. + g.P("var ", serviceDescVar, " = ", grpcPackage.Ident("ServiceDesc"), " {") + g.P("ServiceName: ", strconv.Quote(string(service.Desc.FullName())), ",") + g.P("HandlerType: (*", serverType, ")(nil),") + g.P("Methods: []", grpcPackage.Ident("MethodDesc"), "{") + for i, method := range service.Methods { + if method.Desc.IsStreamingClient() || method.Desc.IsStreamingServer() { + continue + } + g.P("{") + g.P("MethodName: ", strconv.Quote(string(method.Desc.Name())), ",") + g.P("Handler: ", handlerNames[i], ",") + g.P("},") + } + g.P("},") + g.P("Streams: []", grpcPackage.Ident("StreamDesc"), "{") + for i, method := range service.Methods { + if !method.Desc.IsStreamingClient() && !method.Desc.IsStreamingServer() { + continue + } + g.P("{") + g.P("StreamName: ", strconv.Quote(string(method.Desc.Name())), ",") + g.P("Handler: ", handlerNames[i], ",") + if method.Desc.IsStreamingServer() { + g.P("ServerStreams: true,") + } + if method.Desc.IsStreamingClient() { + g.P("ClientStreams: true,") + } + g.P("},") + } + g.P("},") + g.P("Metadata: \"", file.Desc.Path(), "\",") + g.P("}") + g.P() +} + +func clientSignature(g *protogen.GeneratedFile, method *protogen.Method) string { + s := method.GoName + "(ctx " + g.QualifiedGoIdent(contextPackage.Ident("Context")) + if !method.Desc.IsStreamingClient() { + s += ", in *" + g.QualifiedGoIdent(method.Input.GoIdent) + } + s += ", opts ..." + g.QualifiedGoIdent(grpcPackage.Ident("CallOption")) + ") (" + if !method.Desc.IsStreamingClient() && !method.Desc.IsStreamingServer() { + s += "*" + g.QualifiedGoIdent(method.Output.GoIdent) + } else { + s += method.Parent.GoName + "_" + method.GoName + "Client" + } + s += ", error)" + return s +} + +func genClientMethod(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, method *protogen.Method, index int) { + service := method.Parent + sname := fmt.Sprintf("/%s/%s", service.Desc.FullName(), method.Desc.Name()) + + if method.Desc.Options().(*descriptorpb.MethodOptions).GetDeprecated() { + g.P(deprecationComment) + } + g.P("func (c *", unexport(service.GoName), "Client) ", clientSignature(g, method), "{") + if !method.Desc.IsStreamingServer() && !method.Desc.IsStreamingClient() { + g.P("out := new(", method.Output.GoIdent, ")") + g.P(`err := c.cc.Invoke(ctx, "`, sname, `", in, out, opts...)`) + g.P("if err != nil { return nil, err }") + g.P("return out, nil") + g.P("}") + g.P() + return + } + streamType := unexport(service.GoName) + method.GoName + "Client" + serviceDescVar := "_" + service.GoName + "_serviceDesc" + g.P("stream, err := c.cc.NewStream(ctx, &", serviceDescVar, ".Streams[", index, `], "`, sname, `", opts...)`) + g.P("if err != nil { return nil, err }") + g.P("x := &", streamType, "{stream}") + if !method.Desc.IsStreamingClient() { + g.P("if err := x.ClientStream.SendMsg(in); err != nil { return nil, err }") + g.P("if err := x.ClientStream.CloseSend(); err != nil { return nil, err }") + } + g.P("return x, nil") + g.P("}") + g.P() + + genSend := method.Desc.IsStreamingClient() + genRecv := method.Desc.IsStreamingServer() + genCloseAndRecv := !method.Desc.IsStreamingServer() + + // Stream auxiliary types and methods. + g.P("type ", service.GoName, "_", method.GoName, "Client interface {") + if genSend { + g.P("Send(*", method.Input.GoIdent, ") error") + } + if genRecv { + g.P("Recv() (*", method.Output.GoIdent, ", error)") + } + if genCloseAndRecv { + g.P("CloseAndRecv() (*", method.Output.GoIdent, ", error)") + } + g.P(grpcPackage.Ident("ClientStream")) + g.P("}") + g.P() + + g.P("type ", streamType, " struct {") + g.P(grpcPackage.Ident("ClientStream")) + g.P("}") + g.P() + + if genSend { + g.P("func (x *", streamType, ") Send(m *", method.Input.GoIdent, ") error {") + g.P("return x.ClientStream.SendMsg(m)") + g.P("}") + g.P() + } + if genRecv { + g.P("func (x *", streamType, ") Recv() (*", method.Output.GoIdent, ", error) {") + g.P("m := new(", method.Output.GoIdent, ")") + g.P("if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err }") + g.P("return m, nil") + g.P("}") + g.P() + } + if genCloseAndRecv { + g.P("func (x *", streamType, ") CloseAndRecv() (*", method.Output.GoIdent, ", error) {") + g.P("if err := x.ClientStream.CloseSend(); err != nil { return nil, err }") + g.P("m := new(", method.Output.GoIdent, ")") + g.P("if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err }") + g.P("return m, nil") + g.P("}") + g.P() + } +} + +func serverSignature(g *protogen.GeneratedFile, method *protogen.Method) string { + var reqArgs []string + ret := "error" + if !method.Desc.IsStreamingClient() && !method.Desc.IsStreamingServer() { + reqArgs = append(reqArgs, g.QualifiedGoIdent(contextPackage.Ident("Context"))) + ret = "(*" + g.QualifiedGoIdent(method.Output.GoIdent) + ", error)" + } + if !method.Desc.IsStreamingClient() { + reqArgs = append(reqArgs, "*"+g.QualifiedGoIdent(method.Input.GoIdent)) + } + if method.Desc.IsStreamingClient() || method.Desc.IsStreamingServer() { + reqArgs = append(reqArgs, method.Parent.GoName+"_"+method.GoName+"Server") + } + return method.GoName + "(" + strings.Join(reqArgs, ", ") + ") " + ret +} + +func genServerMethod(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, method *protogen.Method) string { + service := method.Parent + hname := fmt.Sprintf("_%s_%s_Handler", service.GoName, method.GoName) + + if !method.Desc.IsStreamingClient() && !method.Desc.IsStreamingServer() { + g.P("func ", hname, "(srv interface{}, ctx ", contextPackage.Ident("Context"), ", dec func(interface{}) error, interceptor ", grpcPackage.Ident("UnaryServerInterceptor"), ") (interface{}, error) {") + g.P("in := new(", method.Input.GoIdent, ")") + g.P("if err := dec(in); err != nil { return nil, err }") + g.P("if interceptor == nil { return srv.(", service.GoName, "Server).", method.GoName, "(ctx, in) }") + g.P("info := &", grpcPackage.Ident("UnaryServerInfo"), "{") + g.P("Server: srv,") + g.P("FullMethod: ", strconv.Quote(fmt.Sprintf("/%s/%s", service.Desc.FullName(), method.GoName)), ",") + g.P("}") + g.P("handler := func(ctx ", contextPackage.Ident("Context"), ", req interface{}) (interface{}, error) {") + g.P("return srv.(", service.GoName, "Server).", method.GoName, "(ctx, req.(*", method.Input.GoIdent, "))") + g.P("}") + g.P("return interceptor(ctx, in, info, handler)") + g.P("}") + g.P() + return hname + } + streamType := unexport(service.GoName) + method.GoName + "Server" + g.P("func ", hname, "(srv interface{}, stream ", grpcPackage.Ident("ServerStream"), ") error {") + if !method.Desc.IsStreamingClient() { + g.P("m := new(", method.Input.GoIdent, ")") + g.P("if err := stream.RecvMsg(m); err != nil { return err }") + g.P("return srv.(", service.GoName, "Server).", method.GoName, "(m, &", streamType, "{stream})") + } else { + g.P("return srv.(", service.GoName, "Server).", method.GoName, "(&", streamType, "{stream})") + } + g.P("}") + g.P() + + genSend := method.Desc.IsStreamingServer() + genSendAndClose := !method.Desc.IsStreamingServer() + genRecv := method.Desc.IsStreamingClient() + + // Stream auxiliary types and methods. + g.P("type ", service.GoName, "_", method.GoName, "Server interface {") + if genSend { + g.P("Send(*", method.Output.GoIdent, ") error") + } + if genSendAndClose { + g.P("SendAndClose(*", method.Output.GoIdent, ") error") + } + if genRecv { + g.P("Recv() (*", method.Input.GoIdent, ", error)") + } + g.P(grpcPackage.Ident("ServerStream")) + g.P("}") + g.P() + + g.P("type ", streamType, " struct {") + g.P(grpcPackage.Ident("ServerStream")) + g.P("}") + g.P() + + if genSend { + g.P("func (x *", streamType, ") Send(m *", method.Output.GoIdent, ") error {") + g.P("return x.ServerStream.SendMsg(m)") + g.P("}") + g.P() + } + if genSendAndClose { + g.P("func (x *", streamType, ") SendAndClose(m *", method.Output.GoIdent, ") error {") + g.P("return x.ServerStream.SendMsg(m)") + g.P("}") + g.P() + } + if genRecv { + g.P("func (x *", streamType, ") Recv() (*", method.Input.GoIdent, ", error) {") + g.P("m := new(", method.Input.GoIdent, ")") + g.P("if err := x.ServerStream.RecvMsg(m); err != nil { return nil, err }") + g.P("return m, nil") + g.P("}") + g.P() + } + + return hname +} + +const deprecationComment = "// Deprecated: Do not use." + +func unexport(s string) string { return strings.ToLower(s[:1]) + s[1:] } diff --git a/vendor/github.com/golang/protobuf/jsonpb/decode.go b/vendor/github.com/golang/protobuf/jsonpb/decode.go new file mode 100644 index 000000000..7c6c5a524 --- /dev/null +++ b/vendor/github.com/golang/protobuf/jsonpb/decode.go @@ -0,0 +1,514 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package jsonpb + +import ( + "encoding/json" + "errors" + "fmt" + "io" + "math" + "reflect" + "strconv" + "strings" + "time" + + "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/encoding/protojson" + protoV2 "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +const wrapJSONUnmarshalV2 = false + +// UnmarshalNext unmarshals the next JSON object from d into m. +func UnmarshalNext(d *json.Decoder, m proto.Message) error { + return new(Unmarshaler).UnmarshalNext(d, m) +} + +// Unmarshal unmarshals a JSON object from r into m. +func Unmarshal(r io.Reader, m proto.Message) error { + return new(Unmarshaler).Unmarshal(r, m) +} + +// UnmarshalString unmarshals a JSON object from s into m. +func UnmarshalString(s string, m proto.Message) error { + return new(Unmarshaler).Unmarshal(strings.NewReader(s), m) +} + +// Unmarshaler is a configurable object for converting from a JSON +// representation to a protocol buffer object. +type Unmarshaler struct { + // AllowUnknownFields specifies whether to allow messages to contain + // unknown JSON fields, as opposed to failing to unmarshal. + AllowUnknownFields bool + + // AnyResolver is used to resolve the google.protobuf.Any well-known type. + // If unset, the global registry is used by default. + AnyResolver AnyResolver +} + +// JSONPBUnmarshaler is implemented by protobuf messages that customize the way +// they are unmarshaled from JSON. Messages that implement this should also +// implement JSONPBMarshaler so that the custom format can be produced. +// +// The JSON unmarshaling must follow the JSON to proto specification: +// https://developers.google.com/protocol-buffers/docs/proto3#json +// +// Deprecated: Custom types should implement protobuf reflection instead. +type JSONPBUnmarshaler interface { + UnmarshalJSONPB(*Unmarshaler, []byte) error +} + +// Unmarshal unmarshals a JSON object from r into m. +func (u *Unmarshaler) Unmarshal(r io.Reader, m proto.Message) error { + return u.UnmarshalNext(json.NewDecoder(r), m) +} + +// UnmarshalNext unmarshals the next JSON object from d into m. +func (u *Unmarshaler) UnmarshalNext(d *json.Decoder, m proto.Message) error { + if m == nil { + return errors.New("invalid nil message") + } + + // Parse the next JSON object from the stream. + raw := json.RawMessage{} + if err := d.Decode(&raw); err != nil { + return err + } + + // Check for custom unmarshalers first since they may not properly + // implement protobuf reflection that the logic below relies on. + if jsu, ok := m.(JSONPBUnmarshaler); ok { + return jsu.UnmarshalJSONPB(u, raw) + } + + mr := proto.MessageReflect(m) + + // NOTE: For historical reasons, a top-level null is treated as a noop. + // This is incorrect, but kept for compatibility. + if string(raw) == "null" && mr.Descriptor().FullName() != "google.protobuf.Value" { + return nil + } + + if wrapJSONUnmarshalV2 { + // NOTE: If input message is non-empty, we need to preserve merge semantics + // of the old jsonpb implementation. These semantics are not supported by + // the protobuf JSON specification. + isEmpty := true + mr.Range(func(protoreflect.FieldDescriptor, protoreflect.Value) bool { + isEmpty = false // at least one iteration implies non-empty + return false + }) + if !isEmpty { + // Perform unmarshaling into a newly allocated, empty message. + mr = mr.New() + + // Use a defer to copy all unmarshaled fields into the original message. + dst := proto.MessageReflect(m) + defer mr.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + dst.Set(fd, v) + return true + }) + } + + // Unmarshal using the v2 JSON unmarshaler. + opts := protojson.UnmarshalOptions{ + DiscardUnknown: u.AllowUnknownFields, + } + if u.AnyResolver != nil { + opts.Resolver = anyResolver{u.AnyResolver} + } + return opts.Unmarshal(raw, mr.Interface()) + } else { + if err := u.unmarshalMessage(mr, raw); err != nil { + return err + } + return protoV2.CheckInitialized(mr.Interface()) + } +} + +func (u *Unmarshaler) unmarshalMessage(m protoreflect.Message, in []byte) error { + md := m.Descriptor() + fds := md.Fields() + + if string(in) == "null" && md.FullName() != "google.protobuf.Value" { + return nil + } + + if jsu, ok := proto.MessageV1(m.Interface()).(JSONPBUnmarshaler); ok { + return jsu.UnmarshalJSONPB(u, in) + } + + switch wellKnownType(md.FullName()) { + case "Any": + var jsonObject map[string]json.RawMessage + if err := json.Unmarshal(in, &jsonObject); err != nil { + return err + } + + rawTypeURL, ok := jsonObject["@type"] + if !ok { + return errors.New("Any JSON doesn't have '@type'") + } + typeURL, err := unquoteString(string(rawTypeURL)) + if err != nil { + return fmt.Errorf("can't unmarshal Any's '@type': %q", rawTypeURL) + } + m.Set(fds.ByNumber(1), protoreflect.ValueOfString(typeURL)) + + var m2 protoreflect.Message + if u.AnyResolver != nil { + mi, err := u.AnyResolver.Resolve(typeURL) + if err != nil { + return err + } + m2 = proto.MessageReflect(mi) + } else { + mt, err := protoregistry.GlobalTypes.FindMessageByURL(typeURL) + if err != nil { + if err == protoregistry.NotFound { + return fmt.Errorf("could not resolve Any message type: %v", typeURL) + } + return err + } + m2 = mt.New() + } + + if wellKnownType(m2.Descriptor().FullName()) != "" { + rawValue, ok := jsonObject["value"] + if !ok { + return errors.New("Any JSON doesn't have 'value'") + } + if err := u.unmarshalMessage(m2, rawValue); err != nil { + return fmt.Errorf("can't unmarshal Any nested proto %v: %v", typeURL, err) + } + } else { + delete(jsonObject, "@type") + rawJSON, err := json.Marshal(jsonObject) + if err != nil { + return fmt.Errorf("can't generate JSON for Any's nested proto to be unmarshaled: %v", err) + } + if err = u.unmarshalMessage(m2, rawJSON); err != nil { + return fmt.Errorf("can't unmarshal Any nested proto %v: %v", typeURL, err) + } + } + + rawWire, err := protoV2.Marshal(m2.Interface()) + if err != nil { + return fmt.Errorf("can't marshal proto %v into Any.Value: %v", typeURL, err) + } + m.Set(fds.ByNumber(2), protoreflect.ValueOfBytes(rawWire)) + return nil + case "BoolValue", "BytesValue", "StringValue", + "Int32Value", "UInt32Value", "FloatValue", + "Int64Value", "UInt64Value", "DoubleValue": + fd := fds.ByNumber(1) + v, err := u.unmarshalValue(m.NewField(fd), in, fd) + if err != nil { + return err + } + m.Set(fd, v) + return nil + case "Duration": + v, err := unquoteString(string(in)) + if err != nil { + return err + } + d, err := time.ParseDuration(v) + if err != nil { + return fmt.Errorf("bad Duration: %v", err) + } + + sec := d.Nanoseconds() / 1e9 + nsec := d.Nanoseconds() % 1e9 + m.Set(fds.ByNumber(1), protoreflect.ValueOfInt64(int64(sec))) + m.Set(fds.ByNumber(2), protoreflect.ValueOfInt32(int32(nsec))) + return nil + case "Timestamp": + v, err := unquoteString(string(in)) + if err != nil { + return err + } + t, err := time.Parse(time.RFC3339Nano, v) + if err != nil { + return fmt.Errorf("bad Timestamp: %v", err) + } + + sec := t.Unix() + nsec := t.Nanosecond() + m.Set(fds.ByNumber(1), protoreflect.ValueOfInt64(int64(sec))) + m.Set(fds.ByNumber(2), protoreflect.ValueOfInt32(int32(nsec))) + return nil + case "Value": + switch { + case string(in) == "null": + m.Set(fds.ByNumber(1), protoreflect.ValueOfEnum(0)) + case string(in) == "true": + m.Set(fds.ByNumber(4), protoreflect.ValueOfBool(true)) + case string(in) == "false": + m.Set(fds.ByNumber(4), protoreflect.ValueOfBool(false)) + case hasPrefixAndSuffix('"', in, '"'): + s, err := unquoteString(string(in)) + if err != nil { + return fmt.Errorf("unrecognized type for Value %q", in) + } + m.Set(fds.ByNumber(3), protoreflect.ValueOfString(s)) + case hasPrefixAndSuffix('[', in, ']'): + v := m.Mutable(fds.ByNumber(6)) + return u.unmarshalMessage(v.Message(), in) + case hasPrefixAndSuffix('{', in, '}'): + v := m.Mutable(fds.ByNumber(5)) + return u.unmarshalMessage(v.Message(), in) + default: + f, err := strconv.ParseFloat(string(in), 0) + if err != nil { + return fmt.Errorf("unrecognized type for Value %q", in) + } + m.Set(fds.ByNumber(2), protoreflect.ValueOfFloat64(f)) + } + return nil + case "ListValue": + var jsonArray []json.RawMessage + if err := json.Unmarshal(in, &jsonArray); err != nil { + return fmt.Errorf("bad ListValue: %v", err) + } + + lv := m.Mutable(fds.ByNumber(1)).List() + for _, raw := range jsonArray { + ve := lv.NewElement() + if err := u.unmarshalMessage(ve.Message(), raw); err != nil { + return err + } + lv.Append(ve) + } + return nil + case "Struct": + var jsonObject map[string]json.RawMessage + if err := json.Unmarshal(in, &jsonObject); err != nil { + return fmt.Errorf("bad StructValue: %v", err) + } + + mv := m.Mutable(fds.ByNumber(1)).Map() + for key, raw := range jsonObject { + kv := protoreflect.ValueOf(key).MapKey() + vv := mv.NewValue() + if err := u.unmarshalMessage(vv.Message(), raw); err != nil { + return fmt.Errorf("bad value in StructValue for key %q: %v", key, err) + } + mv.Set(kv, vv) + } + return nil + } + + var jsonObject map[string]json.RawMessage + if err := json.Unmarshal(in, &jsonObject); err != nil { + return err + } + + // Handle known fields. + for i := 0; i < fds.Len(); i++ { + fd := fds.Get(i) + if fd.IsWeak() && fd.Message().IsPlaceholder() { + continue // weak reference is not linked in + } + + // Search for any raw JSON value associated with this field. + var raw json.RawMessage + name := string(fd.Name()) + if fd.Kind() == protoreflect.GroupKind { + name = string(fd.Message().Name()) + } + if v, ok := jsonObject[name]; ok { + delete(jsonObject, name) + raw = v + } + name = string(fd.JSONName()) + if v, ok := jsonObject[name]; ok { + delete(jsonObject, name) + raw = v + } + + // Unmarshal the field value. + if raw == nil || (string(raw) == "null" && !isSingularWellKnownValue(fd)) { + continue + } + v, err := u.unmarshalValue(m.NewField(fd), raw, fd) + if err != nil { + return err + } + m.Set(fd, v) + } + + // Handle extension fields. + for name, raw := range jsonObject { + if !strings.HasPrefix(name, "[") || !strings.HasSuffix(name, "]") { + continue + } + + // Resolve the extension field by name. + xname := protoreflect.FullName(name[len("[") : len(name)-len("]")]) + xt, _ := protoregistry.GlobalTypes.FindExtensionByName(xname) + if xt == nil && isMessageSet(md) { + xt, _ = protoregistry.GlobalTypes.FindExtensionByName(xname.Append("message_set_extension")) + } + if xt == nil { + continue + } + delete(jsonObject, name) + fd := xt.TypeDescriptor() + if fd.ContainingMessage().FullName() != m.Descriptor().FullName() { + return fmt.Errorf("extension field %q does not extend message %q", xname, m.Descriptor().FullName()) + } + + // Unmarshal the field value. + if raw == nil || (string(raw) == "null" && !isSingularWellKnownValue(fd)) { + continue + } + v, err := u.unmarshalValue(m.NewField(fd), raw, fd) + if err != nil { + return err + } + m.Set(fd, v) + } + + if !u.AllowUnknownFields && len(jsonObject) > 0 { + for name := range jsonObject { + return fmt.Errorf("unknown field %q in %v", name, md.FullName()) + } + } + return nil +} + +func isSingularWellKnownValue(fd protoreflect.FieldDescriptor) bool { + if md := fd.Message(); md != nil { + return md.FullName() == "google.protobuf.Value" && fd.Cardinality() != protoreflect.Repeated + } + return false +} + +func (u *Unmarshaler) unmarshalValue(v protoreflect.Value, in []byte, fd protoreflect.FieldDescriptor) (protoreflect.Value, error) { + switch { + case fd.IsList(): + var jsonArray []json.RawMessage + if err := json.Unmarshal(in, &jsonArray); err != nil { + return v, err + } + lv := v.List() + for _, raw := range jsonArray { + ve, err := u.unmarshalSingularValue(lv.NewElement(), raw, fd) + if err != nil { + return v, err + } + lv.Append(ve) + } + return v, nil + case fd.IsMap(): + var jsonObject map[string]json.RawMessage + if err := json.Unmarshal(in, &jsonObject); err != nil { + return v, err + } + kfd := fd.MapKey() + vfd := fd.MapValue() + mv := v.Map() + for key, raw := range jsonObject { + var kv protoreflect.MapKey + if kfd.Kind() == protoreflect.StringKind { + kv = protoreflect.ValueOf(key).MapKey() + } else { + v, err := u.unmarshalSingularValue(kfd.Default(), []byte(key), kfd) + if err != nil { + return v, err + } + kv = v.MapKey() + } + + vv, err := u.unmarshalSingularValue(mv.NewValue(), raw, vfd) + if err != nil { + return v, err + } + mv.Set(kv, vv) + } + return v, nil + default: + return u.unmarshalSingularValue(v, in, fd) + } +} + +var nonFinite = map[string]float64{ + `"NaN"`: math.NaN(), + `"Infinity"`: math.Inf(+1), + `"-Infinity"`: math.Inf(-1), +} + +func (u *Unmarshaler) unmarshalSingularValue(v protoreflect.Value, in []byte, fd protoreflect.FieldDescriptor) (protoreflect.Value, error) { + switch fd.Kind() { + case protoreflect.BoolKind: + return unmarshalValue(in, new(bool)) + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + return unmarshalValue(trimQuote(in), new(int32)) + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + return unmarshalValue(trimQuote(in), new(int64)) + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + return unmarshalValue(trimQuote(in), new(uint32)) + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + return unmarshalValue(trimQuote(in), new(uint64)) + case protoreflect.FloatKind: + if f, ok := nonFinite[string(in)]; ok { + return protoreflect.ValueOfFloat32(float32(f)), nil + } + return unmarshalValue(trimQuote(in), new(float32)) + case protoreflect.DoubleKind: + if f, ok := nonFinite[string(in)]; ok { + return protoreflect.ValueOfFloat64(float64(f)), nil + } + return unmarshalValue(trimQuote(in), new(float64)) + case protoreflect.StringKind: + return unmarshalValue(in, new(string)) + case protoreflect.BytesKind: + return unmarshalValue(in, new([]byte)) + case protoreflect.EnumKind: + if hasPrefixAndSuffix('"', in, '"') { + vd := fd.Enum().Values().ByName(protoreflect.Name(trimQuote(in))) + if vd == nil { + return v, fmt.Errorf("unknown value %q for enum %s", in, fd.Enum().FullName()) + } + return protoreflect.ValueOfEnum(vd.Number()), nil + } + return unmarshalValue(in, new(protoreflect.EnumNumber)) + case protoreflect.MessageKind, protoreflect.GroupKind: + err := u.unmarshalMessage(v.Message(), in) + return v, err + default: + panic(fmt.Sprintf("invalid kind %v", fd.Kind())) + } +} + +func unmarshalValue(in []byte, v interface{}) (protoreflect.Value, error) { + err := json.Unmarshal(in, v) + return protoreflect.ValueOf(reflect.ValueOf(v).Elem().Interface()), err +} + +func unquoteString(in string) (out string, err error) { + err = json.Unmarshal([]byte(in), &out) + return out, err +} + +func hasPrefixAndSuffix(prefix byte, in []byte, suffix byte) bool { + if len(in) >= 2 && in[0] == prefix && in[len(in)-1] == suffix { + return true + } + return false +} + +// trimQuote is like unquoteString but simply strips surrounding quotes. +// This is incorrect, but is behavior done by the legacy implementation. +func trimQuote(in []byte) []byte { + if len(in) >= 2 && in[0] == '"' && in[len(in)-1] == '"' { + in = in[1 : len(in)-1] + } + return in +} diff --git a/vendor/github.com/golang/protobuf/jsonpb/encode.go b/vendor/github.com/golang/protobuf/jsonpb/encode.go new file mode 100644 index 000000000..7633019f7 --- /dev/null +++ b/vendor/github.com/golang/protobuf/jsonpb/encode.go @@ -0,0 +1,554 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package jsonpb + +import ( + "encoding/json" + "errors" + "fmt" + "io" + "math" + "reflect" + "sort" + "strconv" + "strings" + "time" + + "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/encoding/protojson" + protoV2 "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +const wrapJSONMarshalV2 = false + +// Marshaler is a configurable object for marshaling protocol buffer messages +// to the specified JSON representation. +type Marshaler struct { + // OrigName specifies whether to use the original protobuf name for fields. + OrigName bool + + // EnumsAsInts specifies whether to render enum values as integers, + // as opposed to string values. + EnumsAsInts bool + + // EmitDefaults specifies whether to render fields with zero values. + EmitDefaults bool + + // Indent controls whether the output is compact or not. + // If empty, the output is compact JSON. Otherwise, every JSON object + // entry and JSON array value will be on its own line. + // Each line will be preceded by repeated copies of Indent, where the + // number of copies is the current indentation depth. + Indent string + + // AnyResolver is used to resolve the google.protobuf.Any well-known type. + // If unset, the global registry is used by default. + AnyResolver AnyResolver +} + +// JSONPBMarshaler is implemented by protobuf messages that customize the +// way they are marshaled to JSON. Messages that implement this should also +// implement JSONPBUnmarshaler so that the custom format can be parsed. +// +// The JSON marshaling must follow the proto to JSON specification: +// https://developers.google.com/protocol-buffers/docs/proto3#json +// +// Deprecated: Custom types should implement protobuf reflection instead. +type JSONPBMarshaler interface { + MarshalJSONPB(*Marshaler) ([]byte, error) +} + +// Marshal serializes a protobuf message as JSON into w. +func (jm *Marshaler) Marshal(w io.Writer, m proto.Message) error { + b, err := jm.marshal(m) + if len(b) > 0 { + if _, err := w.Write(b); err != nil { + return err + } + } + return err +} + +// MarshalToString serializes a protobuf message as JSON in string form. +func (jm *Marshaler) MarshalToString(m proto.Message) (string, error) { + b, err := jm.marshal(m) + if err != nil { + return "", err + } + return string(b), nil +} + +func (jm *Marshaler) marshal(m proto.Message) ([]byte, error) { + v := reflect.ValueOf(m) + if m == nil || (v.Kind() == reflect.Ptr && v.IsNil()) { + return nil, errors.New("Marshal called with nil") + } + + // Check for custom marshalers first since they may not properly + // implement protobuf reflection that the logic below relies on. + if jsm, ok := m.(JSONPBMarshaler); ok { + return jsm.MarshalJSONPB(jm) + } + + if wrapJSONMarshalV2 { + opts := protojson.MarshalOptions{ + UseProtoNames: jm.OrigName, + UseEnumNumbers: jm.EnumsAsInts, + EmitUnpopulated: jm.EmitDefaults, + Indent: jm.Indent, + } + if jm.AnyResolver != nil { + opts.Resolver = anyResolver{jm.AnyResolver} + } + return opts.Marshal(proto.MessageReflect(m).Interface()) + } else { + // Check for unpopulated required fields first. + m2 := proto.MessageReflect(m) + if err := protoV2.CheckInitialized(m2.Interface()); err != nil { + return nil, err + } + + w := jsonWriter{Marshaler: jm} + err := w.marshalMessage(m2, "", "") + return w.buf, err + } +} + +type jsonWriter struct { + *Marshaler + buf []byte +} + +func (w *jsonWriter) write(s string) { + w.buf = append(w.buf, s...) +} + +func (w *jsonWriter) marshalMessage(m protoreflect.Message, indent, typeURL string) error { + if jsm, ok := proto.MessageV1(m.Interface()).(JSONPBMarshaler); ok { + b, err := jsm.MarshalJSONPB(w.Marshaler) + if err != nil { + return err + } + if typeURL != "" { + // we are marshaling this object to an Any type + var js map[string]*json.RawMessage + if err = json.Unmarshal(b, &js); err != nil { + return fmt.Errorf("type %T produced invalid JSON: %v", m.Interface(), err) + } + turl, err := json.Marshal(typeURL) + if err != nil { + return fmt.Errorf("failed to marshal type URL %q to JSON: %v", typeURL, err) + } + js["@type"] = (*json.RawMessage)(&turl) + if b, err = json.Marshal(js); err != nil { + return err + } + } + w.write(string(b)) + return nil + } + + md := m.Descriptor() + fds := md.Fields() + + // Handle well-known types. + const secondInNanos = int64(time.Second / time.Nanosecond) + switch wellKnownType(md.FullName()) { + case "Any": + return w.marshalAny(m, indent) + case "BoolValue", "BytesValue", "StringValue", + "Int32Value", "UInt32Value", "FloatValue", + "Int64Value", "UInt64Value", "DoubleValue": + fd := fds.ByNumber(1) + return w.marshalValue(fd, m.Get(fd), indent) + case "Duration": + // "Generated output always contains 0, 3, 6, or 9 fractional digits, + // depending on required precision." + s := m.Get(fds.ByNumber(1)).Int() + ns := m.Get(fds.ByNumber(2)).Int() + if ns <= -secondInNanos || ns >= secondInNanos { + return fmt.Errorf("ns out of range (%v, %v)", -secondInNanos, secondInNanos) + } + if (s > 0 && ns < 0) || (s < 0 && ns > 0) { + return errors.New("signs of seconds and nanos do not match") + } + if s < 0 { + ns = -ns + } + x := fmt.Sprintf("%d.%09d", s, ns) + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, ".000") + w.write(fmt.Sprintf(`"%vs"`, x)) + return nil + case "Timestamp": + // "RFC 3339, where generated output will always be Z-normalized + // and uses 0, 3, 6 or 9 fractional digits." + s := m.Get(fds.ByNumber(1)).Int() + ns := m.Get(fds.ByNumber(2)).Int() + if ns < 0 || ns >= secondInNanos { + return fmt.Errorf("ns out of range [0, %v)", secondInNanos) + } + t := time.Unix(s, ns).UTC() + // time.RFC3339Nano isn't exactly right (we need to get 3/6/9 fractional digits). + x := t.Format("2006-01-02T15:04:05.000000000") + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, ".000") + w.write(fmt.Sprintf(`"%vZ"`, x)) + return nil + case "Value": + // JSON value; which is a null, number, string, bool, object, or array. + od := md.Oneofs().Get(0) + fd := m.WhichOneof(od) + if fd == nil { + return errors.New("nil Value") + } + return w.marshalValue(fd, m.Get(fd), indent) + case "Struct", "ListValue": + // JSON object or array. + fd := fds.ByNumber(1) + return w.marshalValue(fd, m.Get(fd), indent) + } + + w.write("{") + if w.Indent != "" { + w.write("\n") + } + + firstField := true + if typeURL != "" { + if err := w.marshalTypeURL(indent, typeURL); err != nil { + return err + } + firstField = false + } + + for i := 0; i < fds.Len(); { + fd := fds.Get(i) + if od := fd.ContainingOneof(); od != nil { + fd = m.WhichOneof(od) + i += od.Fields().Len() + if fd == nil { + continue + } + } else { + i++ + } + + v := m.Get(fd) + + if !m.Has(fd) { + if !w.EmitDefaults || fd.ContainingOneof() != nil { + continue + } + if fd.Cardinality() != protoreflect.Repeated && (fd.Message() != nil || fd.Syntax() == protoreflect.Proto2) { + v = protoreflect.Value{} // use "null" for singular messages or proto2 scalars + } + } + + if !firstField { + w.writeComma() + } + if err := w.marshalField(fd, v, indent); err != nil { + return err + } + firstField = false + } + + // Handle proto2 extensions. + if md.ExtensionRanges().Len() > 0 { + // Collect a sorted list of all extension descriptor and values. + type ext struct { + desc protoreflect.FieldDescriptor + val protoreflect.Value + } + var exts []ext + m.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + if fd.IsExtension() { + exts = append(exts, ext{fd, v}) + } + return true + }) + sort.Slice(exts, func(i, j int) bool { + return exts[i].desc.Number() < exts[j].desc.Number() + }) + + for _, ext := range exts { + if !firstField { + w.writeComma() + } + if err := w.marshalField(ext.desc, ext.val, indent); err != nil { + return err + } + firstField = false + } + } + + if w.Indent != "" { + w.write("\n") + w.write(indent) + } + w.write("}") + return nil +} + +func (w *jsonWriter) writeComma() { + if w.Indent != "" { + w.write(",\n") + } else { + w.write(",") + } +} + +func (w *jsonWriter) marshalAny(m protoreflect.Message, indent string) error { + // "If the Any contains a value that has a special JSON mapping, + // it will be converted as follows: {"@type": xxx, "value": yyy}. + // Otherwise, the value will be converted into a JSON object, + // and the "@type" field will be inserted to indicate the actual data type." + md := m.Descriptor() + typeURL := m.Get(md.Fields().ByNumber(1)).String() + rawVal := m.Get(md.Fields().ByNumber(2)).Bytes() + + var m2 protoreflect.Message + if w.AnyResolver != nil { + mi, err := w.AnyResolver.Resolve(typeURL) + if err != nil { + return err + } + m2 = proto.MessageReflect(mi) + } else { + mt, err := protoregistry.GlobalTypes.FindMessageByURL(typeURL) + if err != nil { + return err + } + m2 = mt.New() + } + + if err := protoV2.Unmarshal(rawVal, m2.Interface()); err != nil { + return err + } + + if wellKnownType(m2.Descriptor().FullName()) == "" { + return w.marshalMessage(m2, indent, typeURL) + } + + w.write("{") + if w.Indent != "" { + w.write("\n") + } + if err := w.marshalTypeURL(indent, typeURL); err != nil { + return err + } + w.writeComma() + if w.Indent != "" { + w.write(indent) + w.write(w.Indent) + w.write(`"value": `) + } else { + w.write(`"value":`) + } + if err := w.marshalMessage(m2, indent+w.Indent, ""); err != nil { + return err + } + if w.Indent != "" { + w.write("\n") + w.write(indent) + } + w.write("}") + return nil +} + +func (w *jsonWriter) marshalTypeURL(indent, typeURL string) error { + if w.Indent != "" { + w.write(indent) + w.write(w.Indent) + } + w.write(`"@type":`) + if w.Indent != "" { + w.write(" ") + } + b, err := json.Marshal(typeURL) + if err != nil { + return err + } + w.write(string(b)) + return nil +} + +// marshalField writes field description and value to the Writer. +func (w *jsonWriter) marshalField(fd protoreflect.FieldDescriptor, v protoreflect.Value, indent string) error { + if w.Indent != "" { + w.write(indent) + w.write(w.Indent) + } + w.write(`"`) + switch { + case fd.IsExtension(): + // For message set, use the fname of the message as the extension name. + name := string(fd.FullName()) + if isMessageSet(fd.ContainingMessage()) { + name = strings.TrimSuffix(name, ".message_set_extension") + } + + w.write("[" + name + "]") + case w.OrigName: + name := string(fd.Name()) + if fd.Kind() == protoreflect.GroupKind { + name = string(fd.Message().Name()) + } + w.write(name) + default: + w.write(string(fd.JSONName())) + } + w.write(`":`) + if w.Indent != "" { + w.write(" ") + } + return w.marshalValue(fd, v, indent) +} + +func (w *jsonWriter) marshalValue(fd protoreflect.FieldDescriptor, v protoreflect.Value, indent string) error { + switch { + case fd.IsList(): + w.write("[") + comma := "" + lv := v.List() + for i := 0; i < lv.Len(); i++ { + w.write(comma) + if w.Indent != "" { + w.write("\n") + w.write(indent) + w.write(w.Indent) + w.write(w.Indent) + } + if err := w.marshalSingularValue(fd, lv.Get(i), indent+w.Indent); err != nil { + return err + } + comma = "," + } + if w.Indent != "" { + w.write("\n") + w.write(indent) + w.write(w.Indent) + } + w.write("]") + return nil + case fd.IsMap(): + kfd := fd.MapKey() + vfd := fd.MapValue() + mv := v.Map() + + // Collect a sorted list of all map keys and values. + type entry struct{ key, val protoreflect.Value } + var entries []entry + mv.Range(func(k protoreflect.MapKey, v protoreflect.Value) bool { + entries = append(entries, entry{k.Value(), v}) + return true + }) + sort.Slice(entries, func(i, j int) bool { + switch kfd.Kind() { + case protoreflect.BoolKind: + return !entries[i].key.Bool() && entries[j].key.Bool() + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind, protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + return entries[i].key.Int() < entries[j].key.Int() + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind, protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + return entries[i].key.Uint() < entries[j].key.Uint() + case protoreflect.StringKind: + return entries[i].key.String() < entries[j].key.String() + default: + panic("invalid kind") + } + }) + + w.write(`{`) + comma := "" + for _, entry := range entries { + w.write(comma) + if w.Indent != "" { + w.write("\n") + w.write(indent) + w.write(w.Indent) + w.write(w.Indent) + } + + s := fmt.Sprint(entry.key.Interface()) + b, err := json.Marshal(s) + if err != nil { + return err + } + w.write(string(b)) + + w.write(`:`) + if w.Indent != "" { + w.write(` `) + } + + if err := w.marshalSingularValue(vfd, entry.val, indent+w.Indent); err != nil { + return err + } + comma = "," + } + if w.Indent != "" { + w.write("\n") + w.write(indent) + w.write(w.Indent) + } + w.write(`}`) + return nil + default: + return w.marshalSingularValue(fd, v, indent) + } +} + +func (w *jsonWriter) marshalSingularValue(fd protoreflect.FieldDescriptor, v protoreflect.Value, indent string) error { + switch { + case !v.IsValid(): + w.write("null") + return nil + case fd.Message() != nil: + return w.marshalMessage(v.Message(), indent+w.Indent, "") + case fd.Enum() != nil: + if fd.Enum().FullName() == "google.protobuf.NullValue" { + w.write("null") + return nil + } + + vd := fd.Enum().Values().ByNumber(v.Enum()) + if vd == nil || w.EnumsAsInts { + w.write(strconv.Itoa(int(v.Enum()))) + } else { + w.write(`"` + string(vd.Name()) + `"`) + } + return nil + default: + switch v.Interface().(type) { + case float32, float64: + switch { + case math.IsInf(v.Float(), +1): + w.write(`"Infinity"`) + return nil + case math.IsInf(v.Float(), -1): + w.write(`"-Infinity"`) + return nil + case math.IsNaN(v.Float()): + w.write(`"NaN"`) + return nil + } + case int64, uint64: + w.write(fmt.Sprintf(`"%d"`, v.Interface())) + return nil + } + + b, err := json.Marshal(v.Interface()) + if err != nil { + return err + } + w.write(string(b)) + return nil + } +} diff --git a/vendor/github.com/golang/protobuf/jsonpb/json.go b/vendor/github.com/golang/protobuf/jsonpb/json.go new file mode 100644 index 000000000..480e2448d --- /dev/null +++ b/vendor/github.com/golang/protobuf/jsonpb/json.go @@ -0,0 +1,69 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package jsonpb provides functionality to marshal and unmarshal between a +// protocol buffer message and JSON. It follows the specification at +// https://developers.google.com/protocol-buffers/docs/proto3#json. +// +// Do not rely on the default behavior of the standard encoding/json package +// when called on generated message types as it does not operate correctly. +// +// Deprecated: Use the "google.golang.org/protobuf/encoding/protojson" +// package instead. +package jsonpb + +import ( + "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/runtime/protoimpl" +) + +// AnyResolver takes a type URL, present in an Any message, +// and resolves it into an instance of the associated message. +type AnyResolver interface { + Resolve(typeURL string) (proto.Message, error) +} + +type anyResolver struct{ AnyResolver } + +func (r anyResolver) FindMessageByName(message protoreflect.FullName) (protoreflect.MessageType, error) { + return r.FindMessageByURL(string(message)) +} + +func (r anyResolver) FindMessageByURL(url string) (protoreflect.MessageType, error) { + m, err := r.Resolve(url) + if err != nil { + return nil, err + } + return protoimpl.X.MessageTypeOf(m), nil +} + +func (r anyResolver) FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) { + return protoregistry.GlobalTypes.FindExtensionByName(field) +} + +func (r anyResolver) FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) { + return protoregistry.GlobalTypes.FindExtensionByNumber(message, field) +} + +func wellKnownType(s protoreflect.FullName) string { + if s.Parent() == "google.protobuf" { + switch s.Name() { + case "Empty", "Any", + "BoolValue", "BytesValue", "StringValue", + "Int32Value", "UInt32Value", "FloatValue", + "Int64Value", "UInt64Value", "DoubleValue", + "Duration", "Timestamp", + "NullValue", "Struct", "Value", "ListValue": + return string(s.Name()) + } + } + return "" +} + +func isMessageSet(md protoreflect.MessageDescriptor) bool { + ms, ok := md.(interface{ IsMessageSet() bool }) + return ok && ms.IsMessageSet() +} diff --git a/vendor/github.com/golang/protobuf/jsonpb/jsonpb.go b/vendor/github.com/golang/protobuf/jsonpb/jsonpb.go deleted file mode 100644 index f0d66befb..000000000 --- a/vendor/github.com/golang/protobuf/jsonpb/jsonpb.go +++ /dev/null @@ -1,1290 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2015 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -/* -Package jsonpb provides marshaling and unmarshaling between protocol buffers and JSON. -It follows the specification at https://developers.google.com/protocol-buffers/docs/proto3#json. - -This package produces a different output than the standard "encoding/json" package, -which does not operate correctly on protocol buffers. -*/ -package jsonpb - -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "io" - "math" - "reflect" - "sort" - "strconv" - "strings" - "time" - - "github.com/golang/protobuf/proto" - - stpb "github.com/golang/protobuf/ptypes/struct" -) - -const secondInNanos = int64(time.Second / time.Nanosecond) -const maxSecondsInDuration = 315576000000 - -// Marshaler is a configurable object for converting between -// protocol buffer objects and a JSON representation for them. -type Marshaler struct { - // Whether to render enum values as integers, as opposed to string values. - EnumsAsInts bool - - // Whether to render fields with zero values. - EmitDefaults bool - - // A string to indent each level by. The presence of this field will - // also cause a space to appear between the field separator and - // value, and for newlines to be appear between fields and array - // elements. - Indent string - - // Whether to use the original (.proto) name for fields. - OrigName bool - - // A custom URL resolver to use when marshaling Any messages to JSON. - // If unset, the default resolution strategy is to extract the - // fully-qualified type name from the type URL and pass that to - // proto.MessageType(string). - AnyResolver AnyResolver -} - -// AnyResolver takes a type URL, present in an Any message, and resolves it into -// an instance of the associated message. -type AnyResolver interface { - Resolve(typeUrl string) (proto.Message, error) -} - -func defaultResolveAny(typeUrl string) (proto.Message, error) { - // Only the part of typeUrl after the last slash is relevant. - mname := typeUrl - if slash := strings.LastIndex(mname, "/"); slash >= 0 { - mname = mname[slash+1:] - } - mt := proto.MessageType(mname) - if mt == nil { - return nil, fmt.Errorf("unknown message type %q", mname) - } - return reflect.New(mt.Elem()).Interface().(proto.Message), nil -} - -// JSONPBMarshaler is implemented by protobuf messages that customize the -// way they are marshaled to JSON. Messages that implement this should -// also implement JSONPBUnmarshaler so that the custom format can be -// parsed. -// -// The JSON marshaling must follow the proto to JSON specification: -// https://developers.google.com/protocol-buffers/docs/proto3#json -type JSONPBMarshaler interface { - MarshalJSONPB(*Marshaler) ([]byte, error) -} - -// JSONPBUnmarshaler is implemented by protobuf messages that customize -// the way they are unmarshaled from JSON. Messages that implement this -// should also implement JSONPBMarshaler so that the custom format can be -// produced. -// -// The JSON unmarshaling must follow the JSON to proto specification: -// https://developers.google.com/protocol-buffers/docs/proto3#json -type JSONPBUnmarshaler interface { - UnmarshalJSONPB(*Unmarshaler, []byte) error -} - -// Marshal marshals a protocol buffer into JSON. -func (m *Marshaler) Marshal(out io.Writer, pb proto.Message) error { - v := reflect.ValueOf(pb) - if pb == nil || (v.Kind() == reflect.Ptr && v.IsNil()) { - return errors.New("Marshal called with nil") - } - // Check for unset required fields first. - if err := checkRequiredFields(pb); err != nil { - return err - } - writer := &errWriter{writer: out} - return m.marshalObject(writer, pb, "", "") -} - -// MarshalToString converts a protocol buffer object to JSON string. -func (m *Marshaler) MarshalToString(pb proto.Message) (string, error) { - var buf bytes.Buffer - if err := m.Marshal(&buf, pb); err != nil { - return "", err - } - return buf.String(), nil -} - -type int32Slice []int32 - -var nonFinite = map[string]float64{ - `"NaN"`: math.NaN(), - `"Infinity"`: math.Inf(1), - `"-Infinity"`: math.Inf(-1), -} - -// For sorting extensions ids to ensure stable output. -func (s int32Slice) Len() int { return len(s) } -func (s int32Slice) Less(i, j int) bool { return s[i] < s[j] } -func (s int32Slice) Swap(i, j int) { s[i], s[j] = s[j], s[i] } - -type wkt interface { - XXX_WellKnownType() string -} - -var ( - wktType = reflect.TypeOf((*wkt)(nil)).Elem() - messageType = reflect.TypeOf((*proto.Message)(nil)).Elem() -) - -// marshalObject writes a struct to the Writer. -func (m *Marshaler) marshalObject(out *errWriter, v proto.Message, indent, typeURL string) error { - if jsm, ok := v.(JSONPBMarshaler); ok { - b, err := jsm.MarshalJSONPB(m) - if err != nil { - return err - } - if typeURL != "" { - // we are marshaling this object to an Any type - var js map[string]*json.RawMessage - if err = json.Unmarshal(b, &js); err != nil { - return fmt.Errorf("type %T produced invalid JSON: %v", v, err) - } - turl, err := json.Marshal(typeURL) - if err != nil { - return fmt.Errorf("failed to marshal type URL %q to JSON: %v", typeURL, err) - } - js["@type"] = (*json.RawMessage)(&turl) - if m.Indent != "" { - b, err = json.MarshalIndent(js, indent, m.Indent) - } else { - b, err = json.Marshal(js) - } - if err != nil { - return err - } - } - - out.write(string(b)) - return out.err - } - - s := reflect.ValueOf(v).Elem() - - // Handle well-known types. - if wkt, ok := v.(wkt); ok { - switch wkt.XXX_WellKnownType() { - case "DoubleValue", "FloatValue", "Int64Value", "UInt64Value", - "Int32Value", "UInt32Value", "BoolValue", "StringValue", "BytesValue": - // "Wrappers use the same representation in JSON - // as the wrapped primitive type, ..." - sprop := proto.GetProperties(s.Type()) - return m.marshalValue(out, sprop.Prop[0], s.Field(0), indent) - case "Any": - // Any is a bit more involved. - return m.marshalAny(out, v, indent) - case "Duration": - s, ns := s.Field(0).Int(), s.Field(1).Int() - if s < -maxSecondsInDuration || s > maxSecondsInDuration { - return fmt.Errorf("seconds out of range %v", s) - } - if ns <= -secondInNanos || ns >= secondInNanos { - return fmt.Errorf("ns out of range (%v, %v)", -secondInNanos, secondInNanos) - } - if (s > 0 && ns < 0) || (s < 0 && ns > 0) { - return errors.New("signs of seconds and nanos do not match") - } - // Generated output always contains 0, 3, 6, or 9 fractional digits, - // depending on required precision, followed by the suffix "s". - f := "%d.%09d" - if ns < 0 { - ns = -ns - if s == 0 { - f = "-%d.%09d" - } - } - x := fmt.Sprintf(f, s, ns) - x = strings.TrimSuffix(x, "000") - x = strings.TrimSuffix(x, "000") - x = strings.TrimSuffix(x, ".000") - out.write(`"`) - out.write(x) - out.write(`s"`) - return out.err - case "Struct", "ListValue": - // Let marshalValue handle the `Struct.fields` map or the `ListValue.values` slice. - // TODO: pass the correct Properties if needed. - return m.marshalValue(out, &proto.Properties{}, s.Field(0), indent) - case "Timestamp": - // "RFC 3339, where generated output will always be Z-normalized - // and uses 0, 3, 6 or 9 fractional digits." - s, ns := s.Field(0).Int(), s.Field(1).Int() - if ns < 0 || ns >= secondInNanos { - return fmt.Errorf("ns out of range [0, %v)", secondInNanos) - } - t := time.Unix(s, ns).UTC() - // time.RFC3339Nano isn't exactly right (we need to get 3/6/9 fractional digits). - x := t.Format("2006-01-02T15:04:05.000000000") - x = strings.TrimSuffix(x, "000") - x = strings.TrimSuffix(x, "000") - x = strings.TrimSuffix(x, ".000") - out.write(`"`) - out.write(x) - out.write(`Z"`) - return out.err - case "Value": - // Value has a single oneof. - kind := s.Field(0) - if kind.IsNil() { - // "absence of any variant indicates an error" - return errors.New("nil Value") - } - // oneof -> *T -> T -> T.F - x := kind.Elem().Elem().Field(0) - // TODO: pass the correct Properties if needed. - return m.marshalValue(out, &proto.Properties{}, x, indent) - } - } - - out.write("{") - if m.Indent != "" { - out.write("\n") - } - - firstField := true - - if typeURL != "" { - if err := m.marshalTypeURL(out, indent, typeURL); err != nil { - return err - } - firstField = false - } - - for i := 0; i < s.NumField(); i++ { - value := s.Field(i) - valueField := s.Type().Field(i) - if strings.HasPrefix(valueField.Name, "XXX_") { - continue - } - - // IsNil will panic on most value kinds. - switch value.Kind() { - case reflect.Chan, reflect.Func, reflect.Interface: - if value.IsNil() { - continue - } - } - - if !m.EmitDefaults { - switch value.Kind() { - case reflect.Bool: - if !value.Bool() { - continue - } - case reflect.Int32, reflect.Int64: - if value.Int() == 0 { - continue - } - case reflect.Uint32, reflect.Uint64: - if value.Uint() == 0 { - continue - } - case reflect.Float32, reflect.Float64: - if value.Float() == 0 { - continue - } - case reflect.String: - if value.Len() == 0 { - continue - } - case reflect.Map, reflect.Ptr, reflect.Slice: - if value.IsNil() { - continue - } - } - } - - // Oneof fields need special handling. - if valueField.Tag.Get("protobuf_oneof") != "" { - // value is an interface containing &T{real_value}. - sv := value.Elem().Elem() // interface -> *T -> T - value = sv.Field(0) - valueField = sv.Type().Field(0) - } - prop := jsonProperties(valueField, m.OrigName) - if !firstField { - m.writeSep(out) - } - if err := m.marshalField(out, prop, value, indent); err != nil { - return err - } - firstField = false - } - - // Handle proto2 extensions. - if ep, ok := v.(proto.Message); ok { - extensions := proto.RegisteredExtensions(v) - // Sort extensions for stable output. - ids := make([]int32, 0, len(extensions)) - for id, desc := range extensions { - if !proto.HasExtension(ep, desc) { - continue - } - ids = append(ids, id) - } - sort.Sort(int32Slice(ids)) - for _, id := range ids { - desc := extensions[id] - if desc == nil { - // unknown extension - continue - } - ext, extErr := proto.GetExtension(ep, desc) - if extErr != nil { - return extErr - } - value := reflect.ValueOf(ext) - var prop proto.Properties - prop.Parse(desc.Tag) - prop.JSONName = fmt.Sprintf("[%s]", desc.Name) - if !firstField { - m.writeSep(out) - } - if err := m.marshalField(out, &prop, value, indent); err != nil { - return err - } - firstField = false - } - - } - - if m.Indent != "" { - out.write("\n") - out.write(indent) - } - out.write("}") - return out.err -} - -func (m *Marshaler) writeSep(out *errWriter) { - if m.Indent != "" { - out.write(",\n") - } else { - out.write(",") - } -} - -func (m *Marshaler) marshalAny(out *errWriter, any proto.Message, indent string) error { - // "If the Any contains a value that has a special JSON mapping, - // it will be converted as follows: {"@type": xxx, "value": yyy}. - // Otherwise, the value will be converted into a JSON object, - // and the "@type" field will be inserted to indicate the actual data type." - v := reflect.ValueOf(any).Elem() - turl := v.Field(0).String() - val := v.Field(1).Bytes() - - var msg proto.Message - var err error - if m.AnyResolver != nil { - msg, err = m.AnyResolver.Resolve(turl) - } else { - msg, err = defaultResolveAny(turl) - } - if err != nil { - return err - } - - if err := proto.Unmarshal(val, msg); err != nil { - return err - } - - if _, ok := msg.(wkt); ok { - out.write("{") - if m.Indent != "" { - out.write("\n") - } - if err := m.marshalTypeURL(out, indent, turl); err != nil { - return err - } - m.writeSep(out) - if m.Indent != "" { - out.write(indent) - out.write(m.Indent) - out.write(`"value": `) - } else { - out.write(`"value":`) - } - if err := m.marshalObject(out, msg, indent+m.Indent, ""); err != nil { - return err - } - if m.Indent != "" { - out.write("\n") - out.write(indent) - } - out.write("}") - return out.err - } - - return m.marshalObject(out, msg, indent, turl) -} - -func (m *Marshaler) marshalTypeURL(out *errWriter, indent, typeURL string) error { - if m.Indent != "" { - out.write(indent) - out.write(m.Indent) - } - out.write(`"@type":`) - if m.Indent != "" { - out.write(" ") - } - b, err := json.Marshal(typeURL) - if err != nil { - return err - } - out.write(string(b)) - return out.err -} - -// marshalField writes field description and value to the Writer. -func (m *Marshaler) marshalField(out *errWriter, prop *proto.Properties, v reflect.Value, indent string) error { - if m.Indent != "" { - out.write(indent) - out.write(m.Indent) - } - out.write(`"`) - out.write(prop.JSONName) - out.write(`":`) - if m.Indent != "" { - out.write(" ") - } - if err := m.marshalValue(out, prop, v, indent); err != nil { - return err - } - return nil -} - -// marshalValue writes the value to the Writer. -func (m *Marshaler) marshalValue(out *errWriter, prop *proto.Properties, v reflect.Value, indent string) error { - var err error - v = reflect.Indirect(v) - - // Handle nil pointer - if v.Kind() == reflect.Invalid { - out.write("null") - return out.err - } - - // Handle repeated elements. - if v.Kind() == reflect.Slice && v.Type().Elem().Kind() != reflect.Uint8 { - out.write("[") - comma := "" - for i := 0; i < v.Len(); i++ { - sliceVal := v.Index(i) - out.write(comma) - if m.Indent != "" { - out.write("\n") - out.write(indent) - out.write(m.Indent) - out.write(m.Indent) - } - if err := m.marshalValue(out, prop, sliceVal, indent+m.Indent); err != nil { - return err - } - comma = "," - } - if m.Indent != "" { - out.write("\n") - out.write(indent) - out.write(m.Indent) - } - out.write("]") - return out.err - } - - // Handle well-known types. - // Most are handled up in marshalObject (because 99% are messages). - if v.Type().Implements(wktType) { - wkt := v.Interface().(wkt) - switch wkt.XXX_WellKnownType() { - case "NullValue": - out.write("null") - return out.err - } - } - - // Handle enumerations. - if !m.EnumsAsInts && prop.Enum != "" { - // Unknown enum values will are stringified by the proto library as their - // value. Such values should _not_ be quoted or they will be interpreted - // as an enum string instead of their value. - enumStr := v.Interface().(fmt.Stringer).String() - var valStr string - if v.Kind() == reflect.Ptr { - valStr = strconv.Itoa(int(v.Elem().Int())) - } else { - valStr = strconv.Itoa(int(v.Int())) - } - isKnownEnum := enumStr != valStr - if isKnownEnum { - out.write(`"`) - } - out.write(enumStr) - if isKnownEnum { - out.write(`"`) - } - return out.err - } - - // Handle nested messages. - if v.Kind() == reflect.Struct { - return m.marshalObject(out, v.Addr().Interface().(proto.Message), indent+m.Indent, "") - } - - // Handle maps. - // Since Go randomizes map iteration, we sort keys for stable output. - if v.Kind() == reflect.Map { - out.write(`{`) - keys := v.MapKeys() - sort.Sort(mapKeys(keys)) - for i, k := range keys { - if i > 0 { - out.write(`,`) - } - if m.Indent != "" { - out.write("\n") - out.write(indent) - out.write(m.Indent) - out.write(m.Indent) - } - - // TODO handle map key prop properly - b, err := json.Marshal(k.Interface()) - if err != nil { - return err - } - s := string(b) - - // If the JSON is not a string value, encode it again to make it one. - if !strings.HasPrefix(s, `"`) { - b, err := json.Marshal(s) - if err != nil { - return err - } - s = string(b) - } - - out.write(s) - out.write(`:`) - if m.Indent != "" { - out.write(` `) - } - - vprop := prop - if prop != nil && prop.MapValProp != nil { - vprop = prop.MapValProp - } - if err := m.marshalValue(out, vprop, v.MapIndex(k), indent+m.Indent); err != nil { - return err - } - } - if m.Indent != "" { - out.write("\n") - out.write(indent) - out.write(m.Indent) - } - out.write(`}`) - return out.err - } - - // Handle non-finite floats, e.g. NaN, Infinity and -Infinity. - if v.Kind() == reflect.Float32 || v.Kind() == reflect.Float64 { - f := v.Float() - var sval string - switch { - case math.IsInf(f, 1): - sval = `"Infinity"` - case math.IsInf(f, -1): - sval = `"-Infinity"` - case math.IsNaN(f): - sval = `"NaN"` - } - if sval != "" { - out.write(sval) - return out.err - } - } - - // Default handling defers to the encoding/json library. - b, err := json.Marshal(v.Interface()) - if err != nil { - return err - } - needToQuote := string(b[0]) != `"` && (v.Kind() == reflect.Int64 || v.Kind() == reflect.Uint64) - if needToQuote { - out.write(`"`) - } - out.write(string(b)) - if needToQuote { - out.write(`"`) - } - return out.err -} - -// Unmarshaler is a configurable object for converting from a JSON -// representation to a protocol buffer object. -type Unmarshaler struct { - // Whether to allow messages to contain unknown fields, as opposed to - // failing to unmarshal. - AllowUnknownFields bool - - // A custom URL resolver to use when unmarshaling Any messages from JSON. - // If unset, the default resolution strategy is to extract the - // fully-qualified type name from the type URL and pass that to - // proto.MessageType(string). - AnyResolver AnyResolver -} - -// UnmarshalNext unmarshals the next protocol buffer from a JSON object stream. -// This function is lenient and will decode any options permutations of the -// related Marshaler. -func (u *Unmarshaler) UnmarshalNext(dec *json.Decoder, pb proto.Message) error { - inputValue := json.RawMessage{} - if err := dec.Decode(&inputValue); err != nil { - return err - } - if err := u.unmarshalValue(reflect.ValueOf(pb).Elem(), inputValue, nil); err != nil { - return err - } - return checkRequiredFields(pb) -} - -// Unmarshal unmarshals a JSON object stream into a protocol -// buffer. This function is lenient and will decode any options -// permutations of the related Marshaler. -func (u *Unmarshaler) Unmarshal(r io.Reader, pb proto.Message) error { - dec := json.NewDecoder(r) - return u.UnmarshalNext(dec, pb) -} - -// UnmarshalNext unmarshals the next protocol buffer from a JSON object stream. -// This function is lenient and will decode any options permutations of the -// related Marshaler. -func UnmarshalNext(dec *json.Decoder, pb proto.Message) error { - return new(Unmarshaler).UnmarshalNext(dec, pb) -} - -// Unmarshal unmarshals a JSON object stream into a protocol -// buffer. This function is lenient and will decode any options -// permutations of the related Marshaler. -func Unmarshal(r io.Reader, pb proto.Message) error { - return new(Unmarshaler).Unmarshal(r, pb) -} - -// UnmarshalString will populate the fields of a protocol buffer based -// on a JSON string. This function is lenient and will decode any options -// permutations of the related Marshaler. -func UnmarshalString(str string, pb proto.Message) error { - return new(Unmarshaler).Unmarshal(strings.NewReader(str), pb) -} - -// unmarshalValue converts/copies a value into the target. -// prop may be nil. -func (u *Unmarshaler) unmarshalValue(target reflect.Value, inputValue json.RawMessage, prop *proto.Properties) error { - targetType := target.Type() - - // Allocate memory for pointer fields. - if targetType.Kind() == reflect.Ptr { - // If input value is "null" and target is a pointer type, then the field should be treated as not set - // UNLESS the target is structpb.Value, in which case it should be set to structpb.NullValue. - _, isJSONPBUnmarshaler := target.Interface().(JSONPBUnmarshaler) - if string(inputValue) == "null" && targetType != reflect.TypeOf(&stpb.Value{}) && !isJSONPBUnmarshaler { - return nil - } - target.Set(reflect.New(targetType.Elem())) - - return u.unmarshalValue(target.Elem(), inputValue, prop) - } - - if jsu, ok := target.Addr().Interface().(JSONPBUnmarshaler); ok { - return jsu.UnmarshalJSONPB(u, []byte(inputValue)) - } - - // Handle well-known types that are not pointers. - if w, ok := target.Addr().Interface().(wkt); ok { - switch w.XXX_WellKnownType() { - case "DoubleValue", "FloatValue", "Int64Value", "UInt64Value", - "Int32Value", "UInt32Value", "BoolValue", "StringValue", "BytesValue": - return u.unmarshalValue(target.Field(0), inputValue, prop) - case "Any": - // Use json.RawMessage pointer type instead of value to support pre-1.8 version. - // 1.8 changed RawMessage.MarshalJSON from pointer type to value type, see - // https://github.com/golang/go/issues/14493 - var jsonFields map[string]*json.RawMessage - if err := json.Unmarshal(inputValue, &jsonFields); err != nil { - return err - } - - val, ok := jsonFields["@type"] - if !ok || val == nil { - return errors.New("Any JSON doesn't have '@type'") - } - - var turl string - if err := json.Unmarshal([]byte(*val), &turl); err != nil { - return fmt.Errorf("can't unmarshal Any's '@type': %q", *val) - } - target.Field(0).SetString(turl) - - var m proto.Message - var err error - if u.AnyResolver != nil { - m, err = u.AnyResolver.Resolve(turl) - } else { - m, err = defaultResolveAny(turl) - } - if err != nil { - return err - } - - if _, ok := m.(wkt); ok { - val, ok := jsonFields["value"] - if !ok { - return errors.New("Any JSON doesn't have 'value'") - } - - if err := u.unmarshalValue(reflect.ValueOf(m).Elem(), *val, nil); err != nil { - return fmt.Errorf("can't unmarshal Any nested proto %T: %v", m, err) - } - } else { - delete(jsonFields, "@type") - nestedProto, err := json.Marshal(jsonFields) - if err != nil { - return fmt.Errorf("can't generate JSON for Any's nested proto to be unmarshaled: %v", err) - } - - if err = u.unmarshalValue(reflect.ValueOf(m).Elem(), nestedProto, nil); err != nil { - return fmt.Errorf("can't unmarshal Any nested proto %T: %v", m, err) - } - } - - b, err := proto.Marshal(m) - if err != nil { - return fmt.Errorf("can't marshal proto %T into Any.Value: %v", m, err) - } - target.Field(1).SetBytes(b) - - return nil - case "Duration": - unq, err := unquote(string(inputValue)) - if err != nil { - return err - } - - d, err := time.ParseDuration(unq) - if err != nil { - return fmt.Errorf("bad Duration: %v", err) - } - - ns := d.Nanoseconds() - s := ns / 1e9 - ns %= 1e9 - target.Field(0).SetInt(s) - target.Field(1).SetInt(ns) - return nil - case "Timestamp": - unq, err := unquote(string(inputValue)) - if err != nil { - return err - } - - t, err := time.Parse(time.RFC3339Nano, unq) - if err != nil { - return fmt.Errorf("bad Timestamp: %v", err) - } - - target.Field(0).SetInt(t.Unix()) - target.Field(1).SetInt(int64(t.Nanosecond())) - return nil - case "Struct": - var m map[string]json.RawMessage - if err := json.Unmarshal(inputValue, &m); err != nil { - return fmt.Errorf("bad StructValue: %v", err) - } - - target.Field(0).Set(reflect.ValueOf(map[string]*stpb.Value{})) - for k, jv := range m { - pv := &stpb.Value{} - if err := u.unmarshalValue(reflect.ValueOf(pv).Elem(), jv, prop); err != nil { - return fmt.Errorf("bad value in StructValue for key %q: %v", k, err) - } - target.Field(0).SetMapIndex(reflect.ValueOf(k), reflect.ValueOf(pv)) - } - return nil - case "ListValue": - var s []json.RawMessage - if err := json.Unmarshal(inputValue, &s); err != nil { - return fmt.Errorf("bad ListValue: %v", err) - } - - target.Field(0).Set(reflect.ValueOf(make([]*stpb.Value, len(s)))) - for i, sv := range s { - if err := u.unmarshalValue(target.Field(0).Index(i), sv, prop); err != nil { - return err - } - } - return nil - case "Value": - ivStr := string(inputValue) - if ivStr == "null" { - target.Field(0).Set(reflect.ValueOf(&stpb.Value_NullValue{})) - } else if v, err := strconv.ParseFloat(ivStr, 0); err == nil { - target.Field(0).Set(reflect.ValueOf(&stpb.Value_NumberValue{v})) - } else if v, err := unquote(ivStr); err == nil { - target.Field(0).Set(reflect.ValueOf(&stpb.Value_StringValue{v})) - } else if v, err := strconv.ParseBool(ivStr); err == nil { - target.Field(0).Set(reflect.ValueOf(&stpb.Value_BoolValue{v})) - } else if err := json.Unmarshal(inputValue, &[]json.RawMessage{}); err == nil { - lv := &stpb.ListValue{} - target.Field(0).Set(reflect.ValueOf(&stpb.Value_ListValue{lv})) - return u.unmarshalValue(reflect.ValueOf(lv).Elem(), inputValue, prop) - } else if err := json.Unmarshal(inputValue, &map[string]json.RawMessage{}); err == nil { - sv := &stpb.Struct{} - target.Field(0).Set(reflect.ValueOf(&stpb.Value_StructValue{sv})) - return u.unmarshalValue(reflect.ValueOf(sv).Elem(), inputValue, prop) - } else { - return fmt.Errorf("unrecognized type for Value %q", ivStr) - } - return nil - } - } - - // Handle enums, which have an underlying type of int32, - // and may appear as strings. - // The case of an enum appearing as a number is handled - // at the bottom of this function. - if inputValue[0] == '"' && prop != nil && prop.Enum != "" { - vmap := proto.EnumValueMap(prop.Enum) - // Don't need to do unquoting; valid enum names - // are from a limited character set. - s := inputValue[1 : len(inputValue)-1] - n, ok := vmap[string(s)] - if !ok { - return fmt.Errorf("unknown value %q for enum %s", s, prop.Enum) - } - if target.Kind() == reflect.Ptr { // proto2 - target.Set(reflect.New(targetType.Elem())) - target = target.Elem() - } - if targetType.Kind() != reflect.Int32 { - return fmt.Errorf("invalid target %q for enum %s", targetType.Kind(), prop.Enum) - } - target.SetInt(int64(n)) - return nil - } - - // Handle nested messages. - if targetType.Kind() == reflect.Struct { - var jsonFields map[string]json.RawMessage - if err := json.Unmarshal(inputValue, &jsonFields); err != nil { - return err - } - - consumeField := func(prop *proto.Properties) (json.RawMessage, bool) { - // Be liberal in what names we accept; both orig_name and camelName are okay. - fieldNames := acceptedJSONFieldNames(prop) - - vOrig, okOrig := jsonFields[fieldNames.orig] - vCamel, okCamel := jsonFields[fieldNames.camel] - if !okOrig && !okCamel { - return nil, false - } - // If, for some reason, both are present in the data, favour the camelName. - var raw json.RawMessage - if okOrig { - raw = vOrig - delete(jsonFields, fieldNames.orig) - } - if okCamel { - raw = vCamel - delete(jsonFields, fieldNames.camel) - } - return raw, true - } - - sprops := proto.GetProperties(targetType) - for i := 0; i < target.NumField(); i++ { - ft := target.Type().Field(i) - if strings.HasPrefix(ft.Name, "XXX_") { - continue - } - - valueForField, ok := consumeField(sprops.Prop[i]) - if !ok { - continue - } - - if err := u.unmarshalValue(target.Field(i), valueForField, sprops.Prop[i]); err != nil { - return err - } - } - // Check for any oneof fields. - if len(jsonFields) > 0 { - for _, oop := range sprops.OneofTypes { - raw, ok := consumeField(oop.Prop) - if !ok { - continue - } - nv := reflect.New(oop.Type.Elem()) - target.Field(oop.Field).Set(nv) - if err := u.unmarshalValue(nv.Elem().Field(0), raw, oop.Prop); err != nil { - return err - } - } - } - // Handle proto2 extensions. - if len(jsonFields) > 0 { - if ep, ok := target.Addr().Interface().(proto.Message); ok { - for _, ext := range proto.RegisteredExtensions(ep) { - name := fmt.Sprintf("[%s]", ext.Name) - raw, ok := jsonFields[name] - if !ok { - continue - } - delete(jsonFields, name) - nv := reflect.New(reflect.TypeOf(ext.ExtensionType).Elem()) - if err := u.unmarshalValue(nv.Elem(), raw, nil); err != nil { - return err - } - if err := proto.SetExtension(ep, ext, nv.Interface()); err != nil { - return err - } - } - } - } - if !u.AllowUnknownFields && len(jsonFields) > 0 { - // Pick any field to be the scapegoat. - var f string - for fname := range jsonFields { - f = fname - break - } - return fmt.Errorf("unknown field %q in %v", f, targetType) - } - return nil - } - - // Handle arrays (which aren't encoded bytes) - if targetType.Kind() == reflect.Slice && targetType.Elem().Kind() != reflect.Uint8 { - var slc []json.RawMessage - if err := json.Unmarshal(inputValue, &slc); err != nil { - return err - } - if slc != nil { - l := len(slc) - target.Set(reflect.MakeSlice(targetType, l, l)) - for i := 0; i < l; i++ { - if err := u.unmarshalValue(target.Index(i), slc[i], prop); err != nil { - return err - } - } - } - return nil - } - - // Handle maps (whose keys are always strings) - if targetType.Kind() == reflect.Map { - var mp map[string]json.RawMessage - if err := json.Unmarshal(inputValue, &mp); err != nil { - return err - } - if mp != nil { - target.Set(reflect.MakeMap(targetType)) - for ks, raw := range mp { - // Unmarshal map key. The core json library already decoded the key into a - // string, so we handle that specially. Other types were quoted post-serialization. - var k reflect.Value - if targetType.Key().Kind() == reflect.String { - k = reflect.ValueOf(ks) - } else { - k = reflect.New(targetType.Key()).Elem() - var kprop *proto.Properties - if prop != nil && prop.MapKeyProp != nil { - kprop = prop.MapKeyProp - } - if err := u.unmarshalValue(k, json.RawMessage(ks), kprop); err != nil { - return err - } - } - - // Unmarshal map value. - v := reflect.New(targetType.Elem()).Elem() - var vprop *proto.Properties - if prop != nil && prop.MapValProp != nil { - vprop = prop.MapValProp - } - if err := u.unmarshalValue(v, raw, vprop); err != nil { - return err - } - target.SetMapIndex(k, v) - } - } - return nil - } - - // Non-finite numbers can be encoded as strings. - isFloat := targetType.Kind() == reflect.Float32 || targetType.Kind() == reflect.Float64 - if isFloat { - if num, ok := nonFinite[string(inputValue)]; ok { - target.SetFloat(num) - return nil - } - } - - // integers & floats can be encoded as strings. In this case we drop - // the quotes and proceed as normal. - isNum := targetType.Kind() == reflect.Int64 || targetType.Kind() == reflect.Uint64 || - targetType.Kind() == reflect.Int32 || targetType.Kind() == reflect.Uint32 || - targetType.Kind() == reflect.Float32 || targetType.Kind() == reflect.Float64 - if isNum && strings.HasPrefix(string(inputValue), `"`) { - inputValue = inputValue[1 : len(inputValue)-1] - } - - // Use the encoding/json for parsing other value types. - return json.Unmarshal(inputValue, target.Addr().Interface()) -} - -func unquote(s string) (string, error) { - var ret string - err := json.Unmarshal([]byte(s), &ret) - return ret, err -} - -// jsonProperties returns parsed proto.Properties for the field and corrects JSONName attribute. -func jsonProperties(f reflect.StructField, origName bool) *proto.Properties { - var prop proto.Properties - prop.Init(f.Type, f.Name, f.Tag.Get("protobuf"), &f) - if origName || prop.JSONName == "" { - prop.JSONName = prop.OrigName - } - return &prop -} - -type fieldNames struct { - orig, camel string -} - -func acceptedJSONFieldNames(prop *proto.Properties) fieldNames { - opts := fieldNames{orig: prop.OrigName, camel: prop.OrigName} - if prop.JSONName != "" { - opts.camel = prop.JSONName - } - return opts -} - -// Writer wrapper inspired by https://blog.golang.org/errors-are-values -type errWriter struct { - writer io.Writer - err error -} - -func (w *errWriter) write(str string) { - if w.err != nil { - return - } - _, w.err = w.writer.Write([]byte(str)) -} - -// Map fields may have key types of non-float scalars, strings and enums. -// The easiest way to sort them in some deterministic order is to use fmt. -// If this turns out to be inefficient we can always consider other options, -// such as doing a Schwartzian transform. -// -// Numeric keys are sorted in numeric order per -// https://developers.google.com/protocol-buffers/docs/proto#maps. -type mapKeys []reflect.Value - -func (s mapKeys) Len() int { return len(s) } -func (s mapKeys) Swap(i, j int) { s[i], s[j] = s[j], s[i] } -func (s mapKeys) Less(i, j int) bool { - if k := s[i].Kind(); k == s[j].Kind() { - switch k { - case reflect.String: - return s[i].String() < s[j].String() - case reflect.Int32, reflect.Int64: - return s[i].Int() < s[j].Int() - case reflect.Uint32, reflect.Uint64: - return s[i].Uint() < s[j].Uint() - } - } - return fmt.Sprint(s[i].Interface()) < fmt.Sprint(s[j].Interface()) -} - -// checkRequiredFields returns an error if any required field in the given proto message is not set. -// This function is used by both Marshal and Unmarshal. While required fields only exist in a -// proto2 message, a proto3 message can contain proto2 message(s). -func checkRequiredFields(pb proto.Message) error { - // Most well-known type messages do not contain required fields. The "Any" type may contain - // a message that has required fields. - // - // When an Any message is being marshaled, the code will invoked proto.Unmarshal on Any.Value - // field in order to transform that into JSON, and that should have returned an error if a - // required field is not set in the embedded message. - // - // When an Any message is being unmarshaled, the code will have invoked proto.Marshal on the - // embedded message to store the serialized message in Any.Value field, and that should have - // returned an error if a required field is not set. - if _, ok := pb.(wkt); ok { - return nil - } - - v := reflect.ValueOf(pb) - // Skip message if it is not a struct pointer. - if v.Kind() != reflect.Ptr { - return nil - } - v = v.Elem() - if v.Kind() != reflect.Struct { - return nil - } - - for i := 0; i < v.NumField(); i++ { - field := v.Field(i) - sfield := v.Type().Field(i) - - if sfield.PkgPath != "" { - // blank PkgPath means the field is exported; skip if not exported - continue - } - - if strings.HasPrefix(sfield.Name, "XXX_") { - continue - } - - // Oneof field is an interface implemented by wrapper structs containing the actual oneof - // field, i.e. an interface containing &T{real_value}. - if sfield.Tag.Get("protobuf_oneof") != "" { - if field.Kind() != reflect.Interface { - continue - } - v := field.Elem() - if v.Kind() != reflect.Ptr || v.IsNil() { - continue - } - v = v.Elem() - if v.Kind() != reflect.Struct || v.NumField() < 1 { - continue - } - field = v.Field(0) - sfield = v.Type().Field(0) - } - - protoTag := sfield.Tag.Get("protobuf") - if protoTag == "" { - continue - } - var prop proto.Properties - prop.Init(sfield.Type, sfield.Name, protoTag, &sfield) - - switch field.Kind() { - case reflect.Map: - if field.IsNil() { - continue - } - // Check each map value. - keys := field.MapKeys() - for _, k := range keys { - v := field.MapIndex(k) - if err := checkRequiredFieldsInValue(v); err != nil { - return err - } - } - case reflect.Slice: - // Handle non-repeated type, e.g. bytes. - if !prop.Repeated { - if prop.Required && field.IsNil() { - return fmt.Errorf("required field %q is not set", prop.Name) - } - continue - } - - // Handle repeated type. - if field.IsNil() { - continue - } - // Check each slice item. - for i := 0; i < field.Len(); i++ { - v := field.Index(i) - if err := checkRequiredFieldsInValue(v); err != nil { - return err - } - } - case reflect.Ptr: - if field.IsNil() { - if prop.Required { - return fmt.Errorf("required field %q is not set", prop.Name) - } - continue - } - if err := checkRequiredFieldsInValue(field); err != nil { - return err - } - } - } - - // Handle proto2 extensions. - for _, ext := range proto.RegisteredExtensions(pb) { - if !proto.HasExtension(pb, ext) { - continue - } - ep, err := proto.GetExtension(pb, ext) - if err != nil { - return err - } - err = checkRequiredFieldsInValue(reflect.ValueOf(ep)) - if err != nil { - return err - } - } - - return nil -} - -func checkRequiredFieldsInValue(v reflect.Value) error { - if v.Type().Implements(messageType) { - return checkRequiredFields(v.Interface().(proto.Message)) - } - return nil -} diff --git a/vendor/github.com/golang/protobuf/proto/buffer.go b/vendor/github.com/golang/protobuf/proto/buffer.go new file mode 100644 index 000000000..e810e6fea --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/buffer.go @@ -0,0 +1,324 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "errors" + "fmt" + + "google.golang.org/protobuf/encoding/prototext" + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + WireVarint = 0 + WireFixed32 = 5 + WireFixed64 = 1 + WireBytes = 2 + WireStartGroup = 3 + WireEndGroup = 4 +) + +// EncodeVarint returns the varint encoded bytes of v. +func EncodeVarint(v uint64) []byte { + return protowire.AppendVarint(nil, v) +} + +// SizeVarint returns the length of the varint encoded bytes of v. +// This is equal to len(EncodeVarint(v)). +func SizeVarint(v uint64) int { + return protowire.SizeVarint(v) +} + +// DecodeVarint parses a varint encoded integer from b, +// returning the integer value and the length of the varint. +// It returns (0, 0) if there is a parse error. +func DecodeVarint(b []byte) (uint64, int) { + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, 0 + } + return v, n +} + +// Buffer is a buffer for encoding and decoding the protobuf wire format. +// It may be reused between invocations to reduce memory usage. +type Buffer struct { + buf []byte + idx int + deterministic bool +} + +// NewBuffer allocates a new Buffer initialized with buf, +// where the contents of buf are considered the unread portion of the buffer. +func NewBuffer(buf []byte) *Buffer { + return &Buffer{buf: buf} +} + +// SetDeterministic specifies whether to use deterministic serialization. +// +// Deterministic serialization guarantees that for a given binary, equal +// messages will always be serialized to the same bytes. This implies: +// +// - Repeated serialization of a message will return the same bytes. +// - Different processes of the same binary (which may be executing on +// different machines) will serialize equal messages to the same bytes. +// +// Note that the deterministic serialization is NOT canonical across +// languages. It is not guaranteed to remain stable over time. It is unstable +// across different builds with schema changes due to unknown fields. +// Users who need canonical serialization (e.g., persistent storage in a +// canonical form, fingerprinting, etc.) should define their own +// canonicalization specification and implement their own serializer rather +// than relying on this API. +// +// If deterministic serialization is requested, map entries will be sorted +// by keys in lexographical order. This is an implementation detail and +// subject to change. +func (b *Buffer) SetDeterministic(deterministic bool) { + b.deterministic = deterministic +} + +// SetBuf sets buf as the internal buffer, +// where the contents of buf are considered the unread portion of the buffer. +func (b *Buffer) SetBuf(buf []byte) { + b.buf = buf + b.idx = 0 +} + +// Reset clears the internal buffer of all written and unread data. +func (b *Buffer) Reset() { + b.buf = b.buf[:0] + b.idx = 0 +} + +// Bytes returns the internal buffer. +func (b *Buffer) Bytes() []byte { + return b.buf +} + +// Unread returns the unread portion of the buffer. +func (b *Buffer) Unread() []byte { + return b.buf[b.idx:] +} + +// Marshal appends the wire-format encoding of m to the buffer. +func (b *Buffer) Marshal(m Message) error { + var err error + b.buf, err = marshalAppend(b.buf, m, b.deterministic) + return err +} + +// Unmarshal parses the wire-format message in the buffer and +// places the decoded results in m. +// It does not reset m before unmarshaling. +func (b *Buffer) Unmarshal(m Message) error { + err := UnmarshalMerge(b.Unread(), m) + b.idx = len(b.buf) + return err +} + +type unknownFields struct{ XXX_unrecognized protoimpl.UnknownFields } + +func (m *unknownFields) String() string { panic("not implemented") } +func (m *unknownFields) Reset() { panic("not implemented") } +func (m *unknownFields) ProtoMessage() { panic("not implemented") } + +// DebugPrint dumps the encoded bytes of b with a header and footer including s +// to stdout. This is only intended for debugging. +func (*Buffer) DebugPrint(s string, b []byte) { + m := MessageReflect(new(unknownFields)) + m.SetUnknown(b) + b, _ = prototext.MarshalOptions{AllowPartial: true, Indent: "\t"}.Marshal(m.Interface()) + fmt.Printf("==== %s ====\n%s==== %s ====\n", s, b, s) +} + +// EncodeVarint appends an unsigned varint encoding to the buffer. +func (b *Buffer) EncodeVarint(v uint64) error { + b.buf = protowire.AppendVarint(b.buf, v) + return nil +} + +// EncodeZigzag32 appends a 32-bit zig-zag varint encoding to the buffer. +func (b *Buffer) EncodeZigzag32(v uint64) error { + return b.EncodeVarint(uint64((uint32(v) << 1) ^ uint32((int32(v) >> 31)))) +} + +// EncodeZigzag64 appends a 64-bit zig-zag varint encoding to the buffer. +func (b *Buffer) EncodeZigzag64(v uint64) error { + return b.EncodeVarint(uint64((uint64(v) << 1) ^ uint64((int64(v) >> 63)))) +} + +// EncodeFixed32 appends a 32-bit little-endian integer to the buffer. +func (b *Buffer) EncodeFixed32(v uint64) error { + b.buf = protowire.AppendFixed32(b.buf, uint32(v)) + return nil +} + +// EncodeFixed64 appends a 64-bit little-endian integer to the buffer. +func (b *Buffer) EncodeFixed64(v uint64) error { + b.buf = protowire.AppendFixed64(b.buf, uint64(v)) + return nil +} + +// EncodeRawBytes appends a length-prefixed raw bytes to the buffer. +func (b *Buffer) EncodeRawBytes(v []byte) error { + b.buf = protowire.AppendBytes(b.buf, v) + return nil +} + +// EncodeStringBytes appends a length-prefixed raw bytes to the buffer. +// It does not validate whether v contains valid UTF-8. +func (b *Buffer) EncodeStringBytes(v string) error { + b.buf = protowire.AppendString(b.buf, v) + return nil +} + +// EncodeMessage appends a length-prefixed encoded message to the buffer. +func (b *Buffer) EncodeMessage(m Message) error { + var err error + b.buf = protowire.AppendVarint(b.buf, uint64(Size(m))) + b.buf, err = marshalAppend(b.buf, m, b.deterministic) + return err +} + +// DecodeVarint consumes an encoded unsigned varint from the buffer. +func (b *Buffer) DecodeVarint() (uint64, error) { + v, n := protowire.ConsumeVarint(b.buf[b.idx:]) + if n < 0 { + return 0, protowire.ParseError(n) + } + b.idx += n + return uint64(v), nil +} + +// DecodeZigzag32 consumes an encoded 32-bit zig-zag varint from the buffer. +func (b *Buffer) DecodeZigzag32() (uint64, error) { + v, err := b.DecodeVarint() + if err != nil { + return 0, err + } + return uint64((uint32(v) >> 1) ^ uint32((int32(v&1)<<31)>>31)), nil +} + +// DecodeZigzag64 consumes an encoded 64-bit zig-zag varint from the buffer. +func (b *Buffer) DecodeZigzag64() (uint64, error) { + v, err := b.DecodeVarint() + if err != nil { + return 0, err + } + return uint64((uint64(v) >> 1) ^ uint64((int64(v&1)<<63)>>63)), nil +} + +// DecodeFixed32 consumes a 32-bit little-endian integer from the buffer. +func (b *Buffer) DecodeFixed32() (uint64, error) { + v, n := protowire.ConsumeFixed32(b.buf[b.idx:]) + if n < 0 { + return 0, protowire.ParseError(n) + } + b.idx += n + return uint64(v), nil +} + +// DecodeFixed64 consumes a 64-bit little-endian integer from the buffer. +func (b *Buffer) DecodeFixed64() (uint64, error) { + v, n := protowire.ConsumeFixed64(b.buf[b.idx:]) + if n < 0 { + return 0, protowire.ParseError(n) + } + b.idx += n + return uint64(v), nil +} + +// DecodeRawBytes consumes a length-prefixed raw bytes from the buffer. +// If alloc is specified, it returns a copy the raw bytes +// rather than a sub-slice of the buffer. +func (b *Buffer) DecodeRawBytes(alloc bool) ([]byte, error) { + v, n := protowire.ConsumeBytes(b.buf[b.idx:]) + if n < 0 { + return nil, protowire.ParseError(n) + } + b.idx += n + if alloc { + v = append([]byte(nil), v...) + } + return v, nil +} + +// DecodeStringBytes consumes a length-prefixed raw bytes from the buffer. +// It does not validate whether the raw bytes contain valid UTF-8. +func (b *Buffer) DecodeStringBytes() (string, error) { + v, n := protowire.ConsumeString(b.buf[b.idx:]) + if n < 0 { + return "", protowire.ParseError(n) + } + b.idx += n + return v, nil +} + +// DecodeMessage consumes a length-prefixed message from the buffer. +// It does not reset m before unmarshaling. +func (b *Buffer) DecodeMessage(m Message) error { + v, err := b.DecodeRawBytes(false) + if err != nil { + return err + } + return UnmarshalMerge(v, m) +} + +// DecodeGroup consumes a message group from the buffer. +// It assumes that the start group marker has already been consumed and +// consumes all bytes until (and including the end group marker). +// It does not reset m before unmarshaling. +func (b *Buffer) DecodeGroup(m Message) error { + v, n, err := consumeGroup(b.buf[b.idx:]) + if err != nil { + return err + } + b.idx += n + return UnmarshalMerge(v, m) +} + +// consumeGroup parses b until it finds an end group marker, returning +// the raw bytes of the message (excluding the end group marker) and the +// the total length of the message (including the end group marker). +func consumeGroup(b []byte) ([]byte, int, error) { + b0 := b + depth := 1 // assume this follows a start group marker + for { + _, wtyp, tagLen := protowire.ConsumeTag(b) + if tagLen < 0 { + return nil, 0, protowire.ParseError(tagLen) + } + b = b[tagLen:] + + var valLen int + switch wtyp { + case protowire.VarintType: + _, valLen = protowire.ConsumeVarint(b) + case protowire.Fixed32Type: + _, valLen = protowire.ConsumeFixed32(b) + case protowire.Fixed64Type: + _, valLen = protowire.ConsumeFixed64(b) + case protowire.BytesType: + _, valLen = protowire.ConsumeBytes(b) + case protowire.StartGroupType: + depth++ + case protowire.EndGroupType: + depth-- + default: + return nil, 0, errors.New("proto: cannot parse reserved wire type") + } + if valLen < 0 { + return nil, 0, protowire.ParseError(valLen) + } + b = b[valLen:] + + if depth == 0 { + return b0[:len(b0)-len(b)-tagLen], len(b0) - len(b), nil + } + } +} diff --git a/vendor/github.com/golang/protobuf/proto/clone.go b/vendor/github.com/golang/protobuf/proto/clone.go deleted file mode 100644 index 3cd3249f7..000000000 --- a/vendor/github.com/golang/protobuf/proto/clone.go +++ /dev/null @@ -1,253 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2011 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Protocol buffer deep copy and merge. -// TODO: RawMessage. - -package proto - -import ( - "fmt" - "log" - "reflect" - "strings" -) - -// Clone returns a deep copy of a protocol buffer. -func Clone(src Message) Message { - in := reflect.ValueOf(src) - if in.IsNil() { - return src - } - out := reflect.New(in.Type().Elem()) - dst := out.Interface().(Message) - Merge(dst, src) - return dst -} - -// Merger is the interface representing objects that can merge messages of the same type. -type Merger interface { - // Merge merges src into this message. - // Required and optional fields that are set in src will be set to that value in dst. - // Elements of repeated fields will be appended. - // - // Merge may panic if called with a different argument type than the receiver. - Merge(src Message) -} - -// generatedMerger is the custom merge method that generated protos will have. -// We must add this method since a generate Merge method will conflict with -// many existing protos that have a Merge data field already defined. -type generatedMerger interface { - XXX_Merge(src Message) -} - -// Merge merges src into dst. -// Required and optional fields that are set in src will be set to that value in dst. -// Elements of repeated fields will be appended. -// Merge panics if src and dst are not the same type, or if dst is nil. -func Merge(dst, src Message) { - if m, ok := dst.(Merger); ok { - m.Merge(src) - return - } - - in := reflect.ValueOf(src) - out := reflect.ValueOf(dst) - if out.IsNil() { - panic("proto: nil destination") - } - if in.Type() != out.Type() { - panic(fmt.Sprintf("proto.Merge(%T, %T) type mismatch", dst, src)) - } - if in.IsNil() { - return // Merge from nil src is a noop - } - if m, ok := dst.(generatedMerger); ok { - m.XXX_Merge(src) - return - } - mergeStruct(out.Elem(), in.Elem()) -} - -func mergeStruct(out, in reflect.Value) { - sprop := GetProperties(in.Type()) - for i := 0; i < in.NumField(); i++ { - f := in.Type().Field(i) - if strings.HasPrefix(f.Name, "XXX_") { - continue - } - mergeAny(out.Field(i), in.Field(i), false, sprop.Prop[i]) - } - - if emIn, err := extendable(in.Addr().Interface()); err == nil { - emOut, _ := extendable(out.Addr().Interface()) - mIn, muIn := emIn.extensionsRead() - if mIn != nil { - mOut := emOut.extensionsWrite() - muIn.Lock() - mergeExtension(mOut, mIn) - muIn.Unlock() - } - } - - uf := in.FieldByName("XXX_unrecognized") - if !uf.IsValid() { - return - } - uin := uf.Bytes() - if len(uin) > 0 { - out.FieldByName("XXX_unrecognized").SetBytes(append([]byte(nil), uin...)) - } -} - -// mergeAny performs a merge between two values of the same type. -// viaPtr indicates whether the values were indirected through a pointer (implying proto2). -// prop is set if this is a struct field (it may be nil). -func mergeAny(out, in reflect.Value, viaPtr bool, prop *Properties) { - if in.Type() == protoMessageType { - if !in.IsNil() { - if out.IsNil() { - out.Set(reflect.ValueOf(Clone(in.Interface().(Message)))) - } else { - Merge(out.Interface().(Message), in.Interface().(Message)) - } - } - return - } - switch in.Kind() { - case reflect.Bool, reflect.Float32, reflect.Float64, reflect.Int32, reflect.Int64, - reflect.String, reflect.Uint32, reflect.Uint64: - if !viaPtr && isProto3Zero(in) { - return - } - out.Set(in) - case reflect.Interface: - // Probably a oneof field; copy non-nil values. - if in.IsNil() { - return - } - // Allocate destination if it is not set, or set to a different type. - // Otherwise we will merge as normal. - if out.IsNil() || out.Elem().Type() != in.Elem().Type() { - out.Set(reflect.New(in.Elem().Elem().Type())) // interface -> *T -> T -> new(T) - } - mergeAny(out.Elem(), in.Elem(), false, nil) - case reflect.Map: - if in.Len() == 0 { - return - } - if out.IsNil() { - out.Set(reflect.MakeMap(in.Type())) - } - // For maps with value types of *T or []byte we need to deep copy each value. - elemKind := in.Type().Elem().Kind() - for _, key := range in.MapKeys() { - var val reflect.Value - switch elemKind { - case reflect.Ptr: - val = reflect.New(in.Type().Elem().Elem()) - mergeAny(val, in.MapIndex(key), false, nil) - case reflect.Slice: - val = in.MapIndex(key) - val = reflect.ValueOf(append([]byte{}, val.Bytes()...)) - default: - val = in.MapIndex(key) - } - out.SetMapIndex(key, val) - } - case reflect.Ptr: - if in.IsNil() { - return - } - if out.IsNil() { - out.Set(reflect.New(in.Elem().Type())) - } - mergeAny(out.Elem(), in.Elem(), true, nil) - case reflect.Slice: - if in.IsNil() { - return - } - if in.Type().Elem().Kind() == reflect.Uint8 { - // []byte is a scalar bytes field, not a repeated field. - - // Edge case: if this is in a proto3 message, a zero length - // bytes field is considered the zero value, and should not - // be merged. - if prop != nil && prop.proto3 && in.Len() == 0 { - return - } - - // Make a deep copy. - // Append to []byte{} instead of []byte(nil) so that we never end up - // with a nil result. - out.SetBytes(append([]byte{}, in.Bytes()...)) - return - } - n := in.Len() - if out.IsNil() { - out.Set(reflect.MakeSlice(in.Type(), 0, n)) - } - switch in.Type().Elem().Kind() { - case reflect.Bool, reflect.Float32, reflect.Float64, reflect.Int32, reflect.Int64, - reflect.String, reflect.Uint32, reflect.Uint64: - out.Set(reflect.AppendSlice(out, in)) - default: - for i := 0; i < n; i++ { - x := reflect.Indirect(reflect.New(in.Type().Elem())) - mergeAny(x, in.Index(i), false, nil) - out.Set(reflect.Append(out, x)) - } - } - case reflect.Struct: - mergeStruct(out, in) - default: - // unknown type, so not a protocol buffer - log.Printf("proto: don't know how to copy %v", in) - } -} - -func mergeExtension(out, in map[int32]Extension) { - for extNum, eIn := range in { - eOut := Extension{desc: eIn.desc} - if eIn.value != nil { - v := reflect.New(reflect.TypeOf(eIn.value)).Elem() - mergeAny(v, reflect.ValueOf(eIn.value), false, nil) - eOut.value = v.Interface() - } - if eIn.enc != nil { - eOut.enc = make([]byte, len(eIn.enc)) - copy(eOut.enc, eIn.enc) - } - - out[extNum] = eOut - } -} diff --git a/vendor/github.com/golang/protobuf/proto/decode.go b/vendor/github.com/golang/protobuf/proto/decode.go deleted file mode 100644 index 63b0f08be..000000000 --- a/vendor/github.com/golang/protobuf/proto/decode.go +++ /dev/null @@ -1,427 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -/* - * Routines for decoding protocol buffer data to construct in-memory representations. - */ - -import ( - "errors" - "fmt" - "io" -) - -// errOverflow is returned when an integer is too large to be represented. -var errOverflow = errors.New("proto: integer overflow") - -// ErrInternalBadWireType is returned by generated code when an incorrect -// wire type is encountered. It does not get returned to user code. -var ErrInternalBadWireType = errors.New("proto: internal error: bad wiretype for oneof") - -// DecodeVarint reads a varint-encoded integer from the slice. -// It returns the integer and the number of bytes consumed, or -// zero if there is not enough. -// This is the format for the -// int32, int64, uint32, uint64, bool, and enum -// protocol buffer types. -func DecodeVarint(buf []byte) (x uint64, n int) { - for shift := uint(0); shift < 64; shift += 7 { - if n >= len(buf) { - return 0, 0 - } - b := uint64(buf[n]) - n++ - x |= (b & 0x7F) << shift - if (b & 0x80) == 0 { - return x, n - } - } - - // The number is too large to represent in a 64-bit value. - return 0, 0 -} - -func (p *Buffer) decodeVarintSlow() (x uint64, err error) { - i := p.index - l := len(p.buf) - - for shift := uint(0); shift < 64; shift += 7 { - if i >= l { - err = io.ErrUnexpectedEOF - return - } - b := p.buf[i] - i++ - x |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - p.index = i - return - } - } - - // The number is too large to represent in a 64-bit value. - err = errOverflow - return -} - -// DecodeVarint reads a varint-encoded integer from the Buffer. -// This is the format for the -// int32, int64, uint32, uint64, bool, and enum -// protocol buffer types. -func (p *Buffer) DecodeVarint() (x uint64, err error) { - i := p.index - buf := p.buf - - if i >= len(buf) { - return 0, io.ErrUnexpectedEOF - } else if buf[i] < 0x80 { - p.index++ - return uint64(buf[i]), nil - } else if len(buf)-i < 10 { - return p.decodeVarintSlow() - } - - var b uint64 - // we already checked the first byte - x = uint64(buf[i]) - 0x80 - i++ - - b = uint64(buf[i]) - i++ - x += b << 7 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 7 - - b = uint64(buf[i]) - i++ - x += b << 14 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 14 - - b = uint64(buf[i]) - i++ - x += b << 21 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 21 - - b = uint64(buf[i]) - i++ - x += b << 28 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 28 - - b = uint64(buf[i]) - i++ - x += b << 35 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 35 - - b = uint64(buf[i]) - i++ - x += b << 42 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 42 - - b = uint64(buf[i]) - i++ - x += b << 49 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 49 - - b = uint64(buf[i]) - i++ - x += b << 56 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 56 - - b = uint64(buf[i]) - i++ - x += b << 63 - if b&0x80 == 0 { - goto done - } - - return 0, errOverflow - -done: - p.index = i - return x, nil -} - -// DecodeFixed64 reads a 64-bit integer from the Buffer. -// This is the format for the -// fixed64, sfixed64, and double protocol buffer types. -func (p *Buffer) DecodeFixed64() (x uint64, err error) { - // x, err already 0 - i := p.index + 8 - if i < 0 || i > len(p.buf) { - err = io.ErrUnexpectedEOF - return - } - p.index = i - - x = uint64(p.buf[i-8]) - x |= uint64(p.buf[i-7]) << 8 - x |= uint64(p.buf[i-6]) << 16 - x |= uint64(p.buf[i-5]) << 24 - x |= uint64(p.buf[i-4]) << 32 - x |= uint64(p.buf[i-3]) << 40 - x |= uint64(p.buf[i-2]) << 48 - x |= uint64(p.buf[i-1]) << 56 - return -} - -// DecodeFixed32 reads a 32-bit integer from the Buffer. -// This is the format for the -// fixed32, sfixed32, and float protocol buffer types. -func (p *Buffer) DecodeFixed32() (x uint64, err error) { - // x, err already 0 - i := p.index + 4 - if i < 0 || i > len(p.buf) { - err = io.ErrUnexpectedEOF - return - } - p.index = i - - x = uint64(p.buf[i-4]) - x |= uint64(p.buf[i-3]) << 8 - x |= uint64(p.buf[i-2]) << 16 - x |= uint64(p.buf[i-1]) << 24 - return -} - -// DecodeZigzag64 reads a zigzag-encoded 64-bit integer -// from the Buffer. -// This is the format used for the sint64 protocol buffer type. -func (p *Buffer) DecodeZigzag64() (x uint64, err error) { - x, err = p.DecodeVarint() - if err != nil { - return - } - x = (x >> 1) ^ uint64((int64(x&1)<<63)>>63) - return -} - -// DecodeZigzag32 reads a zigzag-encoded 32-bit integer -// from the Buffer. -// This is the format used for the sint32 protocol buffer type. -func (p *Buffer) DecodeZigzag32() (x uint64, err error) { - x, err = p.DecodeVarint() - if err != nil { - return - } - x = uint64((uint32(x) >> 1) ^ uint32((int32(x&1)<<31)>>31)) - return -} - -// DecodeRawBytes reads a count-delimited byte buffer from the Buffer. -// This is the format used for the bytes protocol buffer -// type and for embedded messages. -func (p *Buffer) DecodeRawBytes(alloc bool) (buf []byte, err error) { - n, err := p.DecodeVarint() - if err != nil { - return nil, err - } - - nb := int(n) - if nb < 0 { - return nil, fmt.Errorf("proto: bad byte length %d", nb) - } - end := p.index + nb - if end < p.index || end > len(p.buf) { - return nil, io.ErrUnexpectedEOF - } - - if !alloc { - // todo: check if can get more uses of alloc=false - buf = p.buf[p.index:end] - p.index += nb - return - } - - buf = make([]byte, nb) - copy(buf, p.buf[p.index:]) - p.index += nb - return -} - -// DecodeStringBytes reads an encoded string from the Buffer. -// This is the format used for the proto2 string type. -func (p *Buffer) DecodeStringBytes() (s string, err error) { - buf, err := p.DecodeRawBytes(false) - if err != nil { - return - } - return string(buf), nil -} - -// Unmarshaler is the interface representing objects that can -// unmarshal themselves. The argument points to data that may be -// overwritten, so implementations should not keep references to the -// buffer. -// Unmarshal implementations should not clear the receiver. -// Any unmarshaled data should be merged into the receiver. -// Callers of Unmarshal that do not want to retain existing data -// should Reset the receiver before calling Unmarshal. -type Unmarshaler interface { - Unmarshal([]byte) error -} - -// newUnmarshaler is the interface representing objects that can -// unmarshal themselves. The semantics are identical to Unmarshaler. -// -// This exists to support protoc-gen-go generated messages. -// The proto package will stop type-asserting to this interface in the future. -// -// DO NOT DEPEND ON THIS. -type newUnmarshaler interface { - XXX_Unmarshal([]byte) error -} - -// Unmarshal parses the protocol buffer representation in buf and places the -// decoded result in pb. If the struct underlying pb does not match -// the data in buf, the results can be unpredictable. -// -// Unmarshal resets pb before starting to unmarshal, so any -// existing data in pb is always removed. Use UnmarshalMerge -// to preserve and append to existing data. -func Unmarshal(buf []byte, pb Message) error { - pb.Reset() - if u, ok := pb.(newUnmarshaler); ok { - return u.XXX_Unmarshal(buf) - } - if u, ok := pb.(Unmarshaler); ok { - return u.Unmarshal(buf) - } - return NewBuffer(buf).Unmarshal(pb) -} - -// UnmarshalMerge parses the protocol buffer representation in buf and -// writes the decoded result to pb. If the struct underlying pb does not match -// the data in buf, the results can be unpredictable. -// -// UnmarshalMerge merges into existing data in pb. -// Most code should use Unmarshal instead. -func UnmarshalMerge(buf []byte, pb Message) error { - if u, ok := pb.(newUnmarshaler); ok { - return u.XXX_Unmarshal(buf) - } - if u, ok := pb.(Unmarshaler); ok { - // NOTE: The history of proto have unfortunately been inconsistent - // whether Unmarshaler should or should not implicitly clear itself. - // Some implementations do, most do not. - // Thus, calling this here may or may not do what people want. - // - // See https://github.com/golang/protobuf/issues/424 - return u.Unmarshal(buf) - } - return NewBuffer(buf).Unmarshal(pb) -} - -// DecodeMessage reads a count-delimited message from the Buffer. -func (p *Buffer) DecodeMessage(pb Message) error { - enc, err := p.DecodeRawBytes(false) - if err != nil { - return err - } - return NewBuffer(enc).Unmarshal(pb) -} - -// DecodeGroup reads a tag-delimited group from the Buffer. -// StartGroup tag is already consumed. This function consumes -// EndGroup tag. -func (p *Buffer) DecodeGroup(pb Message) error { - b := p.buf[p.index:] - x, y := findEndGroup(b) - if x < 0 { - return io.ErrUnexpectedEOF - } - err := Unmarshal(b[:x], pb) - p.index += y - return err -} - -// Unmarshal parses the protocol buffer representation in the -// Buffer and places the decoded result in pb. If the struct -// underlying pb does not match the data in the buffer, the results can be -// unpredictable. -// -// Unlike proto.Unmarshal, this does not reset pb before starting to unmarshal. -func (p *Buffer) Unmarshal(pb Message) error { - // If the object can unmarshal itself, let it. - if u, ok := pb.(newUnmarshaler); ok { - err := u.XXX_Unmarshal(p.buf[p.index:]) - p.index = len(p.buf) - return err - } - if u, ok := pb.(Unmarshaler); ok { - // NOTE: The history of proto have unfortunately been inconsistent - // whether Unmarshaler should or should not implicitly clear itself. - // Some implementations do, most do not. - // Thus, calling this here may or may not do what people want. - // - // See https://github.com/golang/protobuf/issues/424 - err := u.Unmarshal(p.buf[p.index:]) - p.index = len(p.buf) - return err - } - - // Slow workaround for messages that aren't Unmarshalers. - // This includes some hand-coded .pb.go files and - // bootstrap protos. - // TODO: fix all of those and then add Unmarshal to - // the Message interface. Then: - // The cast above and code below can be deleted. - // The old unmarshaler can be deleted. - // Clients can call Unmarshal directly (can already do that, actually). - var info InternalMessageInfo - err := info.Unmarshal(pb, p.buf[p.index:]) - p.index = len(p.buf) - return err -} diff --git a/vendor/github.com/golang/protobuf/proto/defaults.go b/vendor/github.com/golang/protobuf/proto/defaults.go new file mode 100644 index 000000000..d399bf069 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/defaults.go @@ -0,0 +1,63 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "google.golang.org/protobuf/reflect/protoreflect" +) + +// SetDefaults sets unpopulated scalar fields to their default values. +// Fields within a oneof are not set even if they have a default value. +// SetDefaults is recursively called upon any populated message fields. +func SetDefaults(m Message) { + if m != nil { + setDefaults(MessageReflect(m)) + } +} + +func setDefaults(m protoreflect.Message) { + fds := m.Descriptor().Fields() + for i := 0; i < fds.Len(); i++ { + fd := fds.Get(i) + if !m.Has(fd) { + if fd.HasDefault() && fd.ContainingOneof() == nil { + v := fd.Default() + if fd.Kind() == protoreflect.BytesKind { + v = protoreflect.ValueOf(append([]byte(nil), v.Bytes()...)) // copy the default bytes + } + m.Set(fd, v) + } + continue + } + } + + m.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + switch { + // Handle singular message. + case fd.Cardinality() != protoreflect.Repeated: + if fd.Message() != nil { + setDefaults(m.Get(fd).Message()) + } + // Handle list of messages. + case fd.IsList(): + if fd.Message() != nil { + ls := m.Get(fd).List() + for i := 0; i < ls.Len(); i++ { + setDefaults(ls.Get(i).Message()) + } + } + // Handle map of messages. + case fd.IsMap(): + if fd.MapValue().Message() != nil { + ms := m.Get(fd).Map() + ms.Range(func(_ protoreflect.MapKey, v protoreflect.Value) bool { + setDefaults(v.Message()) + return true + }) + } + } + return true + }) +} diff --git a/vendor/github.com/golang/protobuf/proto/deprecated.go b/vendor/github.com/golang/protobuf/proto/deprecated.go index 35b882c09..e8db57e09 100644 --- a/vendor/github.com/golang/protobuf/proto/deprecated.go +++ b/vendor/github.com/golang/protobuf/proto/deprecated.go @@ -1,63 +1,113 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2018 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package proto -import "errors" +import ( + "encoding/json" + "errors" + "fmt" + "strconv" -// Deprecated: do not use. + protoV2 "google.golang.org/protobuf/proto" +) + +var ( + // Deprecated: No longer returned. + ErrNil = errors.New("proto: Marshal called with nil") + + // Deprecated: No longer returned. + ErrTooLarge = errors.New("proto: message encodes to over 2 GB") + + // Deprecated: No longer returned. + ErrInternalBadWireType = errors.New("proto: internal error: bad wiretype for oneof") +) + +// Deprecated: Do not use. type Stats struct{ Emalloc, Dmalloc, Encode, Decode, Chit, Cmiss, Size uint64 } -// Deprecated: do not use. +// Deprecated: Do not use. func GetStats() Stats { return Stats{} } -// Deprecated: do not use. +// Deprecated: Do not use. func MarshalMessageSet(interface{}) ([]byte, error) { return nil, errors.New("proto: not implemented") } -// Deprecated: do not use. +// Deprecated: Do not use. func UnmarshalMessageSet([]byte, interface{}) error { return errors.New("proto: not implemented") } -// Deprecated: do not use. +// Deprecated: Do not use. func MarshalMessageSetJSON(interface{}) ([]byte, error) { return nil, errors.New("proto: not implemented") } -// Deprecated: do not use. +// Deprecated: Do not use. func UnmarshalMessageSetJSON([]byte, interface{}) error { return errors.New("proto: not implemented") } -// Deprecated: do not use. +// Deprecated: Do not use. func RegisterMessageSetType(Message, int32, string) {} + +// Deprecated: Do not use. +func EnumName(m map[int32]string, v int32) string { + s, ok := m[v] + if ok { + return s + } + return strconv.Itoa(int(v)) +} + +// Deprecated: Do not use. +func UnmarshalJSONEnum(m map[string]int32, data []byte, enumName string) (int32, error) { + if data[0] == '"' { + // New style: enums are strings. + var repr string + if err := json.Unmarshal(data, &repr); err != nil { + return -1, err + } + val, ok := m[repr] + if !ok { + return 0, fmt.Errorf("unrecognized enum %s value %q", enumName, repr) + } + return val, nil + } + // Old style: enums are ints. + var val int32 + if err := json.Unmarshal(data, &val); err != nil { + return 0, fmt.Errorf("cannot unmarshal %#q into enum %s", data, enumName) + } + return val, nil +} + +// Deprecated: Do not use; this type existed for intenal-use only. +type InternalMessageInfo struct{} + +// Deprecated: Do not use; this method existed for intenal-use only. +func (*InternalMessageInfo) DiscardUnknown(m Message) { + DiscardUnknown(m) +} + +// Deprecated: Do not use; this method existed for intenal-use only. +func (*InternalMessageInfo) Marshal(b []byte, m Message, deterministic bool) ([]byte, error) { + return protoV2.MarshalOptions{Deterministic: deterministic}.MarshalAppend(b, MessageV2(m)) +} + +// Deprecated: Do not use; this method existed for intenal-use only. +func (*InternalMessageInfo) Merge(dst, src Message) { + protoV2.Merge(MessageV2(dst), MessageV2(src)) +} + +// Deprecated: Do not use; this method existed for intenal-use only. +func (*InternalMessageInfo) Size(m Message) int { + return protoV2.Size(MessageV2(m)) +} + +// Deprecated: Do not use; this method existed for intenal-use only. +func (*InternalMessageInfo) Unmarshal(m Message, b []byte) error { + return protoV2.UnmarshalOptions{Merge: true}.Unmarshal(b, MessageV2(m)) +} diff --git a/vendor/github.com/golang/protobuf/proto/discard.go b/vendor/github.com/golang/protobuf/proto/discard.go index dea2617ce..2187e877f 100644 --- a/vendor/github.com/golang/protobuf/proto/discard.go +++ b/vendor/github.com/golang/protobuf/proto/discard.go @@ -1,48 +1,13 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2017 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package proto import ( - "fmt" - "reflect" - "strings" - "sync" - "sync/atomic" + "google.golang.org/protobuf/reflect/protoreflect" ) -type generatedDiscarder interface { - XXX_DiscardUnknown() -} - // DiscardUnknown recursively discards all unknown fields from this message // and all embedded messages. // @@ -51,300 +16,43 @@ type generatedDiscarder interface { // marshal to be able to produce a message that continues to have those // unrecognized fields. To avoid this, DiscardUnknown is used to // explicitly clear the unknown fields after unmarshaling. -// -// For proto2 messages, the unknown fields of message extensions are only -// discarded from messages that have been accessed via GetExtension. func DiscardUnknown(m Message) { - if m, ok := m.(generatedDiscarder); ok { - m.XXX_DiscardUnknown() - return + if m != nil { + discardUnknown(MessageReflect(m)) } - // TODO: Dynamically populate a InternalMessageInfo for legacy messages, - // but the master branch has no implementation for InternalMessageInfo, - // so it would be more work to replicate that approach. - discardLegacy(m) } -// DiscardUnknown recursively discards all unknown fields. -func (a *InternalMessageInfo) DiscardUnknown(m Message) { - di := atomicLoadDiscardInfo(&a.discard) - if di == nil { - di = getDiscardInfo(reflect.TypeOf(m).Elem()) - atomicStoreDiscardInfo(&a.discard, di) - } - di.discard(toPointer(&m)) -} - -type discardInfo struct { - typ reflect.Type - - initialized int32 // 0: only typ is valid, 1: everything is valid - lock sync.Mutex - - fields []discardFieldInfo - unrecognized field -} - -type discardFieldInfo struct { - field field // Offset of field, guaranteed to be valid - discard func(src pointer) -} - -var ( - discardInfoMap = map[reflect.Type]*discardInfo{} - discardInfoLock sync.Mutex -) - -func getDiscardInfo(t reflect.Type) *discardInfo { - discardInfoLock.Lock() - defer discardInfoLock.Unlock() - di := discardInfoMap[t] - if di == nil { - di = &discardInfo{typ: t} - discardInfoMap[t] = di - } - return di -} - -func (di *discardInfo) discard(src pointer) { - if src.isNil() { - return // Nothing to do. - } - - if atomic.LoadInt32(&di.initialized) == 0 { - di.computeDiscardInfo() - } - - for _, fi := range di.fields { - sfp := src.offset(fi.field) - fi.discard(sfp) - } - - // For proto2 messages, only discard unknown fields in message extensions - // that have been accessed via GetExtension. - if em, err := extendable(src.asPointerTo(di.typ).Interface()); err == nil { - // Ignore lock since DiscardUnknown is not concurrency safe. - emm, _ := em.extensionsRead() - for _, mx := range emm { - if m, ok := mx.value.(Message); ok { - DiscardUnknown(m) +func discardUnknown(m protoreflect.Message) { + m.Range(func(fd protoreflect.FieldDescriptor, val protoreflect.Value) bool { + switch { + // Handle singular message. + case fd.Cardinality() != protoreflect.Repeated: + if fd.Message() != nil { + discardUnknown(m.Get(fd).Message()) } - } - } - - if di.unrecognized.IsValid() { - *src.offset(di.unrecognized).toBytes() = nil - } -} - -func (di *discardInfo) computeDiscardInfo() { - di.lock.Lock() - defer di.lock.Unlock() - if di.initialized != 0 { - return - } - t := di.typ - n := t.NumField() - - for i := 0; i < n; i++ { - f := t.Field(i) - if strings.HasPrefix(f.Name, "XXX_") { - continue - } - - dfi := discardFieldInfo{field: toField(&f)} - tf := f.Type - - // Unwrap tf to get its most basic type. - var isPointer, isSlice bool - if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 { - isSlice = true - tf = tf.Elem() - } - if tf.Kind() == reflect.Ptr { - isPointer = true - tf = tf.Elem() - } - if isPointer && isSlice && tf.Kind() != reflect.Struct { - panic(fmt.Sprintf("%v.%s cannot be a slice of pointers to primitive types", t, f.Name)) - } - - switch tf.Kind() { - case reflect.Struct: - switch { - case !isPointer: - panic(fmt.Sprintf("%v.%s cannot be a direct struct value", t, f.Name)) - case isSlice: // E.g., []*pb.T - di := getDiscardInfo(tf) - dfi.discard = func(src pointer) { - sps := src.getPointerSlice() - for _, sp := range sps { - if !sp.isNil() { - di.discard(sp) - } - } - } - default: // E.g., *pb.T - di := getDiscardInfo(tf) - dfi.discard = func(src pointer) { - sp := src.getPointer() - if !sp.isNil() { - di.discard(sp) - } + // Handle list of messages. + case fd.IsList(): + if fd.Message() != nil { + ls := m.Get(fd).List() + for i := 0; i < ls.Len(); i++ { + discardUnknown(ls.Get(i).Message()) } } - case reflect.Map: - switch { - case isPointer || isSlice: - panic(fmt.Sprintf("%v.%s cannot be a pointer to a map or a slice of map values", t, f.Name)) - default: // E.g., map[K]V - if tf.Elem().Kind() == reflect.Ptr { // Proto struct (e.g., *T) - dfi.discard = func(src pointer) { - sm := src.asPointerTo(tf).Elem() - if sm.Len() == 0 { - return - } - for _, key := range sm.MapKeys() { - val := sm.MapIndex(key) - DiscardUnknown(val.Interface().(Message)) - } - } - } else { - dfi.discard = func(pointer) {} // Noop - } - } - case reflect.Interface: - // Must be oneof field. - switch { - case isPointer || isSlice: - panic(fmt.Sprintf("%v.%s cannot be a pointer to a interface or a slice of interface values", t, f.Name)) - default: // E.g., interface{} - // TODO: Make this faster? - dfi.discard = func(src pointer) { - su := src.asPointerTo(tf).Elem() - if !su.IsNil() { - sv := su.Elem().Elem().Field(0) - if sv.Kind() == reflect.Ptr && sv.IsNil() { - return - } - switch sv.Type().Kind() { - case reflect.Ptr: // Proto struct (e.g., *T) - DiscardUnknown(sv.Interface().(Message)) - } - } - } - } - default: - continue - } - di.fields = append(di.fields, dfi) - } - - di.unrecognized = invalidField - if f, ok := t.FieldByName("XXX_unrecognized"); ok { - if f.Type != reflect.TypeOf([]byte{}) { - panic("expected XXX_unrecognized to be of type []byte") - } - di.unrecognized = toField(&f) - } - - atomic.StoreInt32(&di.initialized, 1) -} - -func discardLegacy(m Message) { - v := reflect.ValueOf(m) - if v.Kind() != reflect.Ptr || v.IsNil() { - return - } - v = v.Elem() - if v.Kind() != reflect.Struct { - return - } - t := v.Type() - - for i := 0; i < v.NumField(); i++ { - f := t.Field(i) - if strings.HasPrefix(f.Name, "XXX_") { - continue - } - vf := v.Field(i) - tf := f.Type - - // Unwrap tf to get its most basic type. - var isPointer, isSlice bool - if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 { - isSlice = true - tf = tf.Elem() - } - if tf.Kind() == reflect.Ptr { - isPointer = true - tf = tf.Elem() - } - if isPointer && isSlice && tf.Kind() != reflect.Struct { - panic(fmt.Sprintf("%T.%s cannot be a slice of pointers to primitive types", m, f.Name)) - } - - switch tf.Kind() { - case reflect.Struct: - switch { - case !isPointer: - panic(fmt.Sprintf("%T.%s cannot be a direct struct value", m, f.Name)) - case isSlice: // E.g., []*pb.T - for j := 0; j < vf.Len(); j++ { - discardLegacy(vf.Index(j).Interface().(Message)) - } - default: // E.g., *pb.T - discardLegacy(vf.Interface().(Message)) - } - case reflect.Map: - switch { - case isPointer || isSlice: - panic(fmt.Sprintf("%T.%s cannot be a pointer to a map or a slice of map values", m, f.Name)) - default: // E.g., map[K]V - tv := vf.Type().Elem() - if tv.Kind() == reflect.Ptr && tv.Implements(protoMessageType) { // Proto struct (e.g., *T) - for _, key := range vf.MapKeys() { - val := vf.MapIndex(key) - discardLegacy(val.Interface().(Message)) - } - } - } - case reflect.Interface: - // Must be oneof field. - switch { - case isPointer || isSlice: - panic(fmt.Sprintf("%T.%s cannot be a pointer to a interface or a slice of interface values", m, f.Name)) - default: // E.g., test_proto.isCommunique_Union interface - if !vf.IsNil() && f.Tag.Get("protobuf_oneof") != "" { - vf = vf.Elem() // E.g., *test_proto.Communique_Msg - if !vf.IsNil() { - vf = vf.Elem() // E.g., test_proto.Communique_Msg - vf = vf.Field(0) // E.g., Proto struct (e.g., *T) or primitive value - if vf.Kind() == reflect.Ptr { - discardLegacy(vf.Interface().(Message)) - } - } - } + // Handle map of messages. + case fd.IsMap(): + if fd.MapValue().Message() != nil { + ms := m.Get(fd).Map() + ms.Range(func(_ protoreflect.MapKey, v protoreflect.Value) bool { + discardUnknown(v.Message()) + return true + }) } } - } + return true + }) - if vf := v.FieldByName("XXX_unrecognized"); vf.IsValid() { - if vf.Type() != reflect.TypeOf([]byte{}) { - panic("expected XXX_unrecognized to be of type []byte") - } - vf.Set(reflect.ValueOf([]byte(nil))) - } - - // For proto2 messages, only discard unknown fields in message extensions - // that have been accessed via GetExtension. - if em, err := extendable(m); err == nil { - // Ignore lock since discardLegacy is not concurrency safe. - emm, _ := em.extensionsRead() - for _, mx := range emm { - if m, ok := mx.value.(Message); ok { - discardLegacy(m) - } - } + // Discard unknown fields. + if len(m.GetUnknown()) > 0 { + m.SetUnknown(nil) } } diff --git a/vendor/github.com/golang/protobuf/proto/encode.go b/vendor/github.com/golang/protobuf/proto/encode.go deleted file mode 100644 index 3abfed2cf..000000000 --- a/vendor/github.com/golang/protobuf/proto/encode.go +++ /dev/null @@ -1,203 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -/* - * Routines for encoding data into the wire format for protocol buffers. - */ - -import ( - "errors" - "reflect" -) - -var ( - // errRepeatedHasNil is the error returned if Marshal is called with - // a struct with a repeated field containing a nil element. - errRepeatedHasNil = errors.New("proto: repeated field has nil element") - - // errOneofHasNil is the error returned if Marshal is called with - // a struct with a oneof field containing a nil element. - errOneofHasNil = errors.New("proto: oneof field has nil value") - - // ErrNil is the error returned if Marshal is called with nil. - ErrNil = errors.New("proto: Marshal called with nil") - - // ErrTooLarge is the error returned if Marshal is called with a - // message that encodes to >2GB. - ErrTooLarge = errors.New("proto: message encodes to over 2 GB") -) - -// The fundamental encoders that put bytes on the wire. -// Those that take integer types all accept uint64 and are -// therefore of type valueEncoder. - -const maxVarintBytes = 10 // maximum length of a varint - -// EncodeVarint returns the varint encoding of x. -// This is the format for the -// int32, int64, uint32, uint64, bool, and enum -// protocol buffer types. -// Not used by the package itself, but helpful to clients -// wishing to use the same encoding. -func EncodeVarint(x uint64) []byte { - var buf [maxVarintBytes]byte - var n int - for n = 0; x > 127; n++ { - buf[n] = 0x80 | uint8(x&0x7F) - x >>= 7 - } - buf[n] = uint8(x) - n++ - return buf[0:n] -} - -// EncodeVarint writes a varint-encoded integer to the Buffer. -// This is the format for the -// int32, int64, uint32, uint64, bool, and enum -// protocol buffer types. -func (p *Buffer) EncodeVarint(x uint64) error { - for x >= 1<<7 { - p.buf = append(p.buf, uint8(x&0x7f|0x80)) - x >>= 7 - } - p.buf = append(p.buf, uint8(x)) - return nil -} - -// SizeVarint returns the varint encoding size of an integer. -func SizeVarint(x uint64) int { - switch { - case x < 1<<7: - return 1 - case x < 1<<14: - return 2 - case x < 1<<21: - return 3 - case x < 1<<28: - return 4 - case x < 1<<35: - return 5 - case x < 1<<42: - return 6 - case x < 1<<49: - return 7 - case x < 1<<56: - return 8 - case x < 1<<63: - return 9 - } - return 10 -} - -// EncodeFixed64 writes a 64-bit integer to the Buffer. -// This is the format for the -// fixed64, sfixed64, and double protocol buffer types. -func (p *Buffer) EncodeFixed64(x uint64) error { - p.buf = append(p.buf, - uint8(x), - uint8(x>>8), - uint8(x>>16), - uint8(x>>24), - uint8(x>>32), - uint8(x>>40), - uint8(x>>48), - uint8(x>>56)) - return nil -} - -// EncodeFixed32 writes a 32-bit integer to the Buffer. -// This is the format for the -// fixed32, sfixed32, and float protocol buffer types. -func (p *Buffer) EncodeFixed32(x uint64) error { - p.buf = append(p.buf, - uint8(x), - uint8(x>>8), - uint8(x>>16), - uint8(x>>24)) - return nil -} - -// EncodeZigzag64 writes a zigzag-encoded 64-bit integer -// to the Buffer. -// This is the format used for the sint64 protocol buffer type. -func (p *Buffer) EncodeZigzag64(x uint64) error { - // use signed number to get arithmetic right shift. - return p.EncodeVarint(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} - -// EncodeZigzag32 writes a zigzag-encoded 32-bit integer -// to the Buffer. -// This is the format used for the sint32 protocol buffer type. -func (p *Buffer) EncodeZigzag32(x uint64) error { - // use signed number to get arithmetic right shift. - return p.EncodeVarint(uint64((uint32(x) << 1) ^ uint32((int32(x) >> 31)))) -} - -// EncodeRawBytes writes a count-delimited byte buffer to the Buffer. -// This is the format used for the bytes protocol buffer -// type and for embedded messages. -func (p *Buffer) EncodeRawBytes(b []byte) error { - p.EncodeVarint(uint64(len(b))) - p.buf = append(p.buf, b...) - return nil -} - -// EncodeStringBytes writes an encoded string to the Buffer. -// This is the format used for the proto2 string type. -func (p *Buffer) EncodeStringBytes(s string) error { - p.EncodeVarint(uint64(len(s))) - p.buf = append(p.buf, s...) - return nil -} - -// Marshaler is the interface representing objects that can marshal themselves. -type Marshaler interface { - Marshal() ([]byte, error) -} - -// EncodeMessage writes the protocol buffer to the Buffer, -// prefixed by a varint-encoded length. -func (p *Buffer) EncodeMessage(pb Message) error { - siz := Size(pb) - p.EncodeVarint(uint64(siz)) - return p.Marshal(pb) -} - -// All protocol buffer fields are nillable, but be careful. -func isNil(v reflect.Value) bool { - switch v.Kind() { - case reflect.Interface, reflect.Map, reflect.Ptr, reflect.Slice: - return v.IsNil() - } - return false -} diff --git a/vendor/github.com/golang/protobuf/proto/equal.go b/vendor/github.com/golang/protobuf/proto/equal.go deleted file mode 100644 index f9b6e41b3..000000000 --- a/vendor/github.com/golang/protobuf/proto/equal.go +++ /dev/null @@ -1,301 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2011 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Protocol buffer comparison. - -package proto - -import ( - "bytes" - "log" - "reflect" - "strings" -) - -/* -Equal returns true iff protocol buffers a and b are equal. -The arguments must both be pointers to protocol buffer structs. - -Equality is defined in this way: - - Two messages are equal iff they are the same type, - corresponding fields are equal, unknown field sets - are equal, and extensions sets are equal. - - Two set scalar fields are equal iff their values are equal. - If the fields are of a floating-point type, remember that - NaN != x for all x, including NaN. If the message is defined - in a proto3 .proto file, fields are not "set"; specifically, - zero length proto3 "bytes" fields are equal (nil == {}). - - Two repeated fields are equal iff their lengths are the same, - and their corresponding elements are equal. Note a "bytes" field, - although represented by []byte, is not a repeated field and the - rule for the scalar fields described above applies. - - Two unset fields are equal. - - Two unknown field sets are equal if their current - encoded state is equal. - - Two extension sets are equal iff they have corresponding - elements that are pairwise equal. - - Two map fields are equal iff their lengths are the same, - and they contain the same set of elements. Zero-length map - fields are equal. - - Every other combination of things are not equal. - -The return value is undefined if a and b are not protocol buffers. -*/ -func Equal(a, b Message) bool { - if a == nil || b == nil { - return a == b - } - v1, v2 := reflect.ValueOf(a), reflect.ValueOf(b) - if v1.Type() != v2.Type() { - return false - } - if v1.Kind() == reflect.Ptr { - if v1.IsNil() { - return v2.IsNil() - } - if v2.IsNil() { - return false - } - v1, v2 = v1.Elem(), v2.Elem() - } - if v1.Kind() != reflect.Struct { - return false - } - return equalStruct(v1, v2) -} - -// v1 and v2 are known to have the same type. -func equalStruct(v1, v2 reflect.Value) bool { - sprop := GetProperties(v1.Type()) - for i := 0; i < v1.NumField(); i++ { - f := v1.Type().Field(i) - if strings.HasPrefix(f.Name, "XXX_") { - continue - } - f1, f2 := v1.Field(i), v2.Field(i) - if f.Type.Kind() == reflect.Ptr { - if n1, n2 := f1.IsNil(), f2.IsNil(); n1 && n2 { - // both unset - continue - } else if n1 != n2 { - // set/unset mismatch - return false - } - f1, f2 = f1.Elem(), f2.Elem() - } - if !equalAny(f1, f2, sprop.Prop[i]) { - return false - } - } - - if em1 := v1.FieldByName("XXX_InternalExtensions"); em1.IsValid() { - em2 := v2.FieldByName("XXX_InternalExtensions") - if !equalExtensions(v1.Type(), em1.Interface().(XXX_InternalExtensions), em2.Interface().(XXX_InternalExtensions)) { - return false - } - } - - if em1 := v1.FieldByName("XXX_extensions"); em1.IsValid() { - em2 := v2.FieldByName("XXX_extensions") - if !equalExtMap(v1.Type(), em1.Interface().(map[int32]Extension), em2.Interface().(map[int32]Extension)) { - return false - } - } - - uf := v1.FieldByName("XXX_unrecognized") - if !uf.IsValid() { - return true - } - - u1 := uf.Bytes() - u2 := v2.FieldByName("XXX_unrecognized").Bytes() - return bytes.Equal(u1, u2) -} - -// v1 and v2 are known to have the same type. -// prop may be nil. -func equalAny(v1, v2 reflect.Value, prop *Properties) bool { - if v1.Type() == protoMessageType { - m1, _ := v1.Interface().(Message) - m2, _ := v2.Interface().(Message) - return Equal(m1, m2) - } - switch v1.Kind() { - case reflect.Bool: - return v1.Bool() == v2.Bool() - case reflect.Float32, reflect.Float64: - return v1.Float() == v2.Float() - case reflect.Int32, reflect.Int64: - return v1.Int() == v2.Int() - case reflect.Interface: - // Probably a oneof field; compare the inner values. - n1, n2 := v1.IsNil(), v2.IsNil() - if n1 || n2 { - return n1 == n2 - } - e1, e2 := v1.Elem(), v2.Elem() - if e1.Type() != e2.Type() { - return false - } - return equalAny(e1, e2, nil) - case reflect.Map: - if v1.Len() != v2.Len() { - return false - } - for _, key := range v1.MapKeys() { - val2 := v2.MapIndex(key) - if !val2.IsValid() { - // This key was not found in the second map. - return false - } - if !equalAny(v1.MapIndex(key), val2, nil) { - return false - } - } - return true - case reflect.Ptr: - // Maps may have nil values in them, so check for nil. - if v1.IsNil() && v2.IsNil() { - return true - } - if v1.IsNil() != v2.IsNil() { - return false - } - return equalAny(v1.Elem(), v2.Elem(), prop) - case reflect.Slice: - if v1.Type().Elem().Kind() == reflect.Uint8 { - // short circuit: []byte - - // Edge case: if this is in a proto3 message, a zero length - // bytes field is considered the zero value. - if prop != nil && prop.proto3 && v1.Len() == 0 && v2.Len() == 0 { - return true - } - if v1.IsNil() != v2.IsNil() { - return false - } - return bytes.Equal(v1.Interface().([]byte), v2.Interface().([]byte)) - } - - if v1.Len() != v2.Len() { - return false - } - for i := 0; i < v1.Len(); i++ { - if !equalAny(v1.Index(i), v2.Index(i), prop) { - return false - } - } - return true - case reflect.String: - return v1.Interface().(string) == v2.Interface().(string) - case reflect.Struct: - return equalStruct(v1, v2) - case reflect.Uint32, reflect.Uint64: - return v1.Uint() == v2.Uint() - } - - // unknown type, so not a protocol buffer - log.Printf("proto: don't know how to compare %v", v1) - return false -} - -// base is the struct type that the extensions are based on. -// x1 and x2 are InternalExtensions. -func equalExtensions(base reflect.Type, x1, x2 XXX_InternalExtensions) bool { - em1, _ := x1.extensionsRead() - em2, _ := x2.extensionsRead() - return equalExtMap(base, em1, em2) -} - -func equalExtMap(base reflect.Type, em1, em2 map[int32]Extension) bool { - if len(em1) != len(em2) { - return false - } - - for extNum, e1 := range em1 { - e2, ok := em2[extNum] - if !ok { - return false - } - - m1 := extensionAsLegacyType(e1.value) - m2 := extensionAsLegacyType(e2.value) - - if m1 == nil && m2 == nil { - // Both have only encoded form. - if bytes.Equal(e1.enc, e2.enc) { - continue - } - // The bytes are different, but the extensions might still be - // equal. We need to decode them to compare. - } - - if m1 != nil && m2 != nil { - // Both are unencoded. - if !equalAny(reflect.ValueOf(m1), reflect.ValueOf(m2), nil) { - return false - } - continue - } - - // At least one is encoded. To do a semantically correct comparison - // we need to unmarshal them first. - var desc *ExtensionDesc - if m := extensionMaps[base]; m != nil { - desc = m[extNum] - } - if desc == nil { - // If both have only encoded form and the bytes are the same, - // it is handled above. We get here when the bytes are different. - // We don't know how to decode it, so just compare them as byte - // slices. - log.Printf("proto: don't know how to compare extension %d of %v", extNum, base) - return false - } - var err error - if m1 == nil { - m1, err = decodeExtension(e1.enc, desc) - } - if m2 == nil && err == nil { - m2, err = decodeExtension(e2.enc, desc) - } - if err != nil { - // The encoded form is invalid. - log.Printf("proto: badly encoded extension %d of %v: %v", extNum, base, err) - return false - } - if !equalAny(reflect.ValueOf(m1), reflect.ValueOf(m2), nil) { - return false - } - } - - return true -} diff --git a/vendor/github.com/golang/protobuf/proto/extensions.go b/vendor/github.com/golang/protobuf/proto/extensions.go index fa88add30..42fc120c9 100644 --- a/vendor/github.com/golang/protobuf/proto/extensions.go +++ b/vendor/github.com/golang/protobuf/proto/extensions.go @@ -1,607 +1,356 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package proto -/* - * Types and routines for supporting protocol buffer extensions. - */ - import ( "errors" "fmt" - "io" "reflect" - "strconv" - "sync" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/runtime/protoiface" + "google.golang.org/protobuf/runtime/protoimpl" ) -// ErrMissingExtension is the error returned by GetExtension if the named extension is not in the message. +type ( + // ExtensionDesc represents an extension descriptor and + // is used to interact with an extension field in a message. + // + // Variables of this type are generated in code by protoc-gen-go. + ExtensionDesc = protoimpl.ExtensionInfo + + // ExtensionRange represents a range of message extensions. + // Used in code generated by protoc-gen-go. + ExtensionRange = protoiface.ExtensionRangeV1 + + // Deprecated: Do not use; this is an internal type. + Extension = protoimpl.ExtensionFieldV1 + + // Deprecated: Do not use; this is an internal type. + XXX_InternalExtensions = protoimpl.ExtensionFields +) + +// ErrMissingExtension reports whether the extension was not present. var ErrMissingExtension = errors.New("proto: missing extension") -// ExtensionRange represents a range of message extensions for a protocol buffer. -// Used in code generated by the protocol compiler. -type ExtensionRange struct { - Start, End int32 // both inclusive -} - -// extendableProto is an interface implemented by any protocol buffer generated by the current -// proto compiler that may be extended. -type extendableProto interface { - Message - ExtensionRangeArray() []ExtensionRange - extensionsWrite() map[int32]Extension - extensionsRead() (map[int32]Extension, sync.Locker) -} - -// extendableProtoV1 is an interface implemented by a protocol buffer generated by the previous -// version of the proto compiler that may be extended. -type extendableProtoV1 interface { - Message - ExtensionRangeArray() []ExtensionRange - ExtensionMap() map[int32]Extension -} - -// extensionAdapter is a wrapper around extendableProtoV1 that implements extendableProto. -type extensionAdapter struct { - extendableProtoV1 -} - -func (e extensionAdapter) extensionsWrite() map[int32]Extension { - return e.ExtensionMap() -} - -func (e extensionAdapter) extensionsRead() (map[int32]Extension, sync.Locker) { - return e.ExtensionMap(), notLocker{} -} - -// notLocker is a sync.Locker whose Lock and Unlock methods are nops. -type notLocker struct{} - -func (n notLocker) Lock() {} -func (n notLocker) Unlock() {} - -// extendable returns the extendableProto interface for the given generated proto message. -// If the proto message has the old extension format, it returns a wrapper that implements -// the extendableProto interface. -func extendable(p interface{}) (extendableProto, error) { - switch p := p.(type) { - case extendableProto: - if isNilPtr(p) { - return nil, fmt.Errorf("proto: nil %T is not extendable", p) - } - return p, nil - case extendableProtoV1: - if isNilPtr(p) { - return nil, fmt.Errorf("proto: nil %T is not extendable", p) - } - return extensionAdapter{p}, nil - } - // Don't allocate a specific error containing %T: - // this is the hot path for Clone and MarshalText. - return nil, errNotExtendable -} - var errNotExtendable = errors.New("proto: not an extendable proto.Message") -func isNilPtr(x interface{}) bool { - v := reflect.ValueOf(x) - return v.Kind() == reflect.Ptr && v.IsNil() -} - -// XXX_InternalExtensions is an internal representation of proto extensions. -// -// Each generated message struct type embeds an anonymous XXX_InternalExtensions field, -// thus gaining the unexported 'extensions' method, which can be called only from the proto package. -// -// The methods of XXX_InternalExtensions are not concurrency safe in general, -// but calls to logically read-only methods such as has and get may be executed concurrently. -type XXX_InternalExtensions struct { - // The struct must be indirect so that if a user inadvertently copies a - // generated message and its embedded XXX_InternalExtensions, they - // avoid the mayhem of a copied mutex. - // - // The mutex serializes all logically read-only operations to p.extensionMap. - // It is up to the client to ensure that write operations to p.extensionMap are - // mutually exclusive with other accesses. - p *struct { - mu sync.Mutex - extensionMap map[int32]Extension +// HasExtension reports whether the extension field is present in m +// either as an explicitly populated field or as an unknown field. +func HasExtension(m Message, xt *ExtensionDesc) (has bool) { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() { + return false } -} -// extensionsWrite returns the extension map, creating it on first use. -func (e *XXX_InternalExtensions) extensionsWrite() map[int32]Extension { - if e.p == nil { - e.p = new(struct { - mu sync.Mutex - extensionMap map[int32]Extension + // Check whether any populated known field matches the field number. + xtd := xt.TypeDescriptor() + if isValidExtension(mr.Descriptor(), xtd) { + has = mr.Has(xtd) + } else { + mr.Range(func(fd protoreflect.FieldDescriptor, _ protoreflect.Value) bool { + has = int32(fd.Number()) == xt.Field + return !has }) - e.p.extensionMap = make(map[int32]Extension) } - return e.p.extensionMap -} -// extensionsRead returns the extensions map for read-only use. It may be nil. -// The caller must hold the returned mutex's lock when accessing Elements within the map. -func (e *XXX_InternalExtensions) extensionsRead() (map[int32]Extension, sync.Locker) { - if e.p == nil { - return nil, nil + // Check whether any unknown field matches the field number. + for b := mr.GetUnknown(); !has && len(b) > 0; { + num, _, n := protowire.ConsumeField(b) + has = int32(num) == xt.Field + b = b[n:] } - return e.p.extensionMap, &e.p.mu + return has } -// ExtensionDesc represents an extension specification. -// Used in generated code from the protocol compiler. -type ExtensionDesc struct { - ExtendedType Message // nil pointer to the type that is being extended - ExtensionType interface{} // nil pointer to the extension type - Field int32 // field number - Name string // fully-qualified name of extension, for text formatting - Tag string // protobuf tag style - Filename string // name of the file in which the extension is defined -} - -func (ed *ExtensionDesc) repeated() bool { - t := reflect.TypeOf(ed.ExtensionType) - return t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 -} - -// Extension represents an extension in a message. -type Extension struct { - // When an extension is stored in a message using SetExtension - // only desc and value are set. When the message is marshaled - // enc will be set to the encoded form of the message. - // - // When a message is unmarshaled and contains extensions, each - // extension will have only enc set. When such an extension is - // accessed using GetExtension (or GetExtensions) desc and value - // will be set. - desc *ExtensionDesc - - // value is a concrete value for the extension field. Let the type of - // desc.ExtensionType be the "API type" and the type of Extension.value - // be the "storage type". The API type and storage type are the same except: - // * For scalars (except []byte), the API type uses *T, - // while the storage type uses T. - // * For repeated fields, the API type uses []T, while the storage type - // uses *[]T. - // - // The reason for the divergence is so that the storage type more naturally - // matches what is expected of when retrieving the values through the - // protobuf reflection APIs. - // - // The value may only be populated if desc is also populated. - value interface{} - - // enc is the raw bytes for the extension field. - enc []byte -} - -// SetRawExtension is for testing only. -func SetRawExtension(base Message, id int32, b []byte) { - epb, err := extendable(base) - if err != nil { +// ClearExtension removes the extension field from m +// either as an explicitly populated field or as an unknown field. +func ClearExtension(m Message, xt *ExtensionDesc) { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() { return } - extmap := epb.extensionsWrite() - extmap[id] = Extension{enc: b} -} -// isExtensionField returns true iff the given field number is in an extension range. -func isExtensionField(pb extendableProto, field int32) bool { - for _, er := range pb.ExtensionRangeArray() { - if er.Start <= field && field <= er.End { + xtd := xt.TypeDescriptor() + if isValidExtension(mr.Descriptor(), xtd) { + mr.Clear(xtd) + } else { + mr.Range(func(fd protoreflect.FieldDescriptor, _ protoreflect.Value) bool { + if int32(fd.Number()) == xt.Field { + mr.Clear(fd) + return false + } return true - } + }) } - return false + clearUnknown(mr, fieldNum(xt.Field)) } -// checkExtensionTypes checks that the given extension is valid for pb. -func checkExtensionTypes(pb extendableProto, extension *ExtensionDesc) error { - var pbi interface{} = pb - // Check the extended type. - if ea, ok := pbi.(extensionAdapter); ok { - pbi = ea.extendableProtoV1 - } - if a, b := reflect.TypeOf(pbi), reflect.TypeOf(extension.ExtendedType); a != b { - return fmt.Errorf("proto: bad extended type; %v does not extend %v", b, a) - } - // Check the range. - if !isExtensionField(pb, extension.Field) { - return errors.New("proto: bad extension number; not in declared ranges") - } - return nil -} - -// extPropKey is sufficient to uniquely identify an extension. -type extPropKey struct { - base reflect.Type - field int32 -} - -var extProp = struct { - sync.RWMutex - m map[extPropKey]*Properties -}{ - m: make(map[extPropKey]*Properties), -} - -func extensionProperties(ed *ExtensionDesc) *Properties { - key := extPropKey{base: reflect.TypeOf(ed.ExtendedType), field: ed.Field} - - extProp.RLock() - if prop, ok := extProp.m[key]; ok { - extProp.RUnlock() - return prop - } - extProp.RUnlock() - - extProp.Lock() - defer extProp.Unlock() - // Check again. - if prop, ok := extProp.m[key]; ok { - return prop - } - - prop := new(Properties) - prop.Init(reflect.TypeOf(ed.ExtensionType), "unknown_name", ed.Tag, nil) - extProp.m[key] = prop - return prop -} - -// HasExtension returns whether the given extension is present in pb. -func HasExtension(pb Message, extension *ExtensionDesc) bool { - // TODO: Check types, field numbers, etc.? - epb, err := extendable(pb) - if err != nil { - return false - } - extmap, mu := epb.extensionsRead() - if extmap == nil { - return false - } - mu.Lock() - _, ok := extmap[extension.Field] - mu.Unlock() - return ok -} - -// ClearExtension removes the given extension from pb. -func ClearExtension(pb Message, extension *ExtensionDesc) { - epb, err := extendable(pb) - if err != nil { +// ClearAllExtensions clears all extensions from m. +// This includes populated fields and unknown fields in the extension range. +func ClearAllExtensions(m Message) { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() { return } - // TODO: Check types, field numbers, etc.? - extmap := epb.extensionsWrite() - delete(extmap, extension.Field) + + mr.Range(func(fd protoreflect.FieldDescriptor, _ protoreflect.Value) bool { + if fd.IsExtension() { + mr.Clear(fd) + } + return true + }) + clearUnknown(mr, mr.Descriptor().ExtensionRanges()) } -// GetExtension retrieves a proto2 extended field from pb. +// GetExtension retrieves a proto2 extended field from m. // // If the descriptor is type complete (i.e., ExtensionDesc.ExtensionType is non-nil), // then GetExtension parses the encoded field and returns a Go value of the specified type. // If the field is not present, then the default value is returned (if one is specified), // otherwise ErrMissingExtension is reported. // -// If the descriptor is not type complete (i.e., ExtensionDesc.ExtensionType is nil), -// then GetExtension returns the raw encoded bytes of the field extension. -func GetExtension(pb Message, extension *ExtensionDesc) (interface{}, error) { - epb, err := extendable(pb) - if err != nil { - return nil, err +// If the descriptor is type incomplete (i.e., ExtensionDesc.ExtensionType is nil), +// then GetExtension returns the raw encoded bytes for the extension field. +func GetExtension(m Message, xt *ExtensionDesc) (interface{}, error) { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() || mr.Descriptor().ExtensionRanges().Len() == 0 { + return nil, errNotExtendable } - if extension.ExtendedType != nil { - // can only check type if this is a complete descriptor - if err := checkExtensionTypes(epb, extension); err != nil { + // Retrieve the unknown fields for this extension field. + var bo protoreflect.RawFields + for bi := mr.GetUnknown(); len(bi) > 0; { + num, _, n := protowire.ConsumeField(bi) + if int32(num) == xt.Field { + bo = append(bo, bi[:n]...) + } + bi = bi[n:] + } + + // For type incomplete descriptors, only retrieve the unknown fields. + if xt.ExtensionType == nil { + return []byte(bo), nil + } + + // If the extension field only exists as unknown fields, unmarshal it. + // This is rarely done since proto.Unmarshal eagerly unmarshals extensions. + xtd := xt.TypeDescriptor() + if !isValidExtension(mr.Descriptor(), xtd) { + return nil, fmt.Errorf("proto: bad extended type; %T does not extend %T", xt.ExtendedType, m) + } + if !mr.Has(xtd) && len(bo) > 0 { + m2 := mr.New() + if err := (proto.UnmarshalOptions{ + Resolver: extensionResolver{xt}, + }.Unmarshal(bo, m2.Interface())); err != nil { return nil, err } - } - - emap, mu := epb.extensionsRead() - if emap == nil { - return defaultExtensionValue(extension) - } - mu.Lock() - defer mu.Unlock() - e, ok := emap[extension.Field] - if !ok { - // defaultExtensionValue returns the default value or - // ErrMissingExtension if there is no default. - return defaultExtensionValue(extension) - } - - if e.value != nil { - // Already decoded. Check the descriptor, though. - if e.desc != extension { - // This shouldn't happen. If it does, it means that - // GetExtension was called twice with two different - // descriptors with the same field number. - return nil, errors.New("proto: descriptor conflict") + if m2.Has(xtd) { + mr.Set(xtd, m2.Get(xtd)) + clearUnknown(mr, fieldNum(xt.Field)) } - return extensionAsLegacyType(e.value), nil } - if extension.ExtensionType == nil { - // incomplete descriptor - return e.enc, nil - } - - v, err := decodeExtension(e.enc, extension) - if err != nil { - return nil, err - } - - // Remember the decoded version and drop the encoded version. - // That way it is safe to mutate what we return. - e.value = extensionAsStorageType(v) - e.desc = extension - e.enc = nil - emap[extension.Field] = e - return extensionAsLegacyType(e.value), nil -} - -// defaultExtensionValue returns the default value for extension. -// If no default for an extension is defined ErrMissingExtension is returned. -func defaultExtensionValue(extension *ExtensionDesc) (interface{}, error) { - if extension.ExtensionType == nil { - // incomplete descriptor, so no default + // Check whether the message has the extension field set or a default. + var pv protoreflect.Value + switch { + case mr.Has(xtd): + pv = mr.Get(xtd) + case xtd.HasDefault(): + pv = xtd.Default() + default: return nil, ErrMissingExtension } - t := reflect.TypeOf(extension.ExtensionType) - props := extensionProperties(extension) - - sf, _, err := fieldDefault(t, props) - if err != nil { - return nil, err - } - - if sf == nil || sf.value == nil { - // There is no default value. - return nil, ErrMissingExtension - } - - if t.Kind() != reflect.Ptr { - // We do not need to return a Ptr, we can directly return sf.value. - return sf.value, nil - } - - // We need to return an interface{} that is a pointer to sf.value. - value := reflect.New(t).Elem() - value.Set(reflect.New(value.Type().Elem())) - if sf.kind == reflect.Int32 { - // We may have an int32 or an enum, but the underlying data is int32. - // Since we can't set an int32 into a non int32 reflect.value directly - // set it as a int32. - value.Elem().SetInt(int64(sf.value.(int32))) - } else { - value.Elem().Set(reflect.ValueOf(sf.value)) - } - return value.Interface(), nil -} - -// decodeExtension decodes an extension encoded in b. -func decodeExtension(b []byte, extension *ExtensionDesc) (interface{}, error) { - t := reflect.TypeOf(extension.ExtensionType) - unmarshal := typeUnmarshaler(t, extension.Tag) - - // t is a pointer to a struct, pointer to basic type or a slice. - // Allocate space to store the pointer/slice. - value := reflect.New(t).Elem() - - var err error - for { - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - wire := int(x) & 7 - - b, err = unmarshal(b, valToPointer(value.Addr()), wire) - if err != nil { - return nil, err - } - - if len(b) == 0 { - break - } - } - return value.Interface(), nil -} - -// GetExtensions returns a slice of the extensions present in pb that are also listed in es. -// The returned slice has the same length as es; missing extensions will appear as nil elements. -func GetExtensions(pb Message, es []*ExtensionDesc) (extensions []interface{}, err error) { - epb, err := extendable(pb) - if err != nil { - return nil, err - } - extensions = make([]interface{}, len(es)) - for i, e := range es { - extensions[i], err = GetExtension(epb, e) - if err == ErrMissingExtension { - err = nil - } - if err != nil { - return - } - } - return -} - -// ExtensionDescs returns a new slice containing pb's extension descriptors, in undefined order. -// For non-registered extensions, ExtensionDescs returns an incomplete descriptor containing -// just the Field field, which defines the extension's field number. -func ExtensionDescs(pb Message) ([]*ExtensionDesc, error) { - epb, err := extendable(pb) - if err != nil { - return nil, err - } - registeredExtensions := RegisteredExtensions(pb) - - emap, mu := epb.extensionsRead() - if emap == nil { - return nil, nil - } - mu.Lock() - defer mu.Unlock() - extensions := make([]*ExtensionDesc, 0, len(emap)) - for extid, e := range emap { - desc := e.desc - if desc == nil { - desc = registeredExtensions[extid] - if desc == nil { - desc = &ExtensionDesc{Field: extid} - } - } - - extensions = append(extensions, desc) - } - return extensions, nil -} - -// SetExtension sets the specified extension of pb to the specified value. -func SetExtension(pb Message, extension *ExtensionDesc, value interface{}) error { - epb, err := extendable(pb) - if err != nil { - return err - } - if err := checkExtensionTypes(epb, extension); err != nil { - return err - } - typ := reflect.TypeOf(extension.ExtensionType) - if typ != reflect.TypeOf(value) { - return fmt.Errorf("proto: bad extension value type. got: %T, want: %T", value, extension.ExtensionType) - } - // nil extension values need to be caught early, because the - // encoder can't distinguish an ErrNil due to a nil extension - // from an ErrNil due to a missing field. Extensions are - // always optional, so the encoder would just swallow the error - // and drop all the extensions from the encoded message. - if reflect.ValueOf(value).IsNil() { - return fmt.Errorf("proto: SetExtension called with nil value of type %T", value) - } - - extmap := epb.extensionsWrite() - extmap[extension.Field] = Extension{desc: extension, value: extensionAsStorageType(value)} - return nil -} - -// ClearAllExtensions clears all extensions from pb. -func ClearAllExtensions(pb Message) { - epb, err := extendable(pb) - if err != nil { - return - } - m := epb.extensionsWrite() - for k := range m { - delete(m, k) - } -} - -// A global registry of extensions. -// The generated code will register the generated descriptors by calling RegisterExtension. - -var extensionMaps = make(map[reflect.Type]map[int32]*ExtensionDesc) - -// RegisterExtension is called from the generated code. -func RegisterExtension(desc *ExtensionDesc) { - st := reflect.TypeOf(desc.ExtendedType).Elem() - m := extensionMaps[st] - if m == nil { - m = make(map[int32]*ExtensionDesc) - extensionMaps[st] = m - } - if _, ok := m[desc.Field]; ok { - panic("proto: duplicate extension registered: " + st.String() + " " + strconv.Itoa(int(desc.Field))) - } - m[desc.Field] = desc -} - -// RegisteredExtensions returns a map of the registered extensions of a -// protocol buffer struct, indexed by the extension number. -// The argument pb should be a nil pointer to the struct type. -func RegisteredExtensions(pb Message) map[int32]*ExtensionDesc { - return extensionMaps[reflect.TypeOf(pb).Elem()] -} - -// extensionAsLegacyType converts an value in the storage type as the API type. -// See Extension.value. -func extensionAsLegacyType(v interface{}) interface{} { - switch rv := reflect.ValueOf(v); rv.Kind() { - case reflect.Bool, reflect.Int32, reflect.Int64, reflect.Uint32, reflect.Uint64, reflect.Float32, reflect.Float64, reflect.String: - // Represent primitive types as a pointer to the value. + v := xt.InterfaceOf(pv) + rv := reflect.ValueOf(v) + if isScalarKind(rv.Kind()) { rv2 := reflect.New(rv.Type()) rv2.Elem().Set(rv) v = rv2.Interface() - case reflect.Ptr: - // Represent slice types as the value itself. - switch rv.Type().Elem().Kind() { - case reflect.Slice: - if rv.IsNil() { - v = reflect.Zero(rv.Type().Elem()).Interface() - } else { - v = rv.Elem().Interface() - } - } } - return v + return v, nil } -// extensionAsStorageType converts an value in the API type as the storage type. -// See Extension.value. -func extensionAsStorageType(v interface{}) interface{} { - switch rv := reflect.ValueOf(v); rv.Kind() { - case reflect.Ptr: - // Represent slice types as the value itself. - switch rv.Type().Elem().Kind() { - case reflect.Bool, reflect.Int32, reflect.Int64, reflect.Uint32, reflect.Uint64, reflect.Float32, reflect.Float64, reflect.String: - if rv.IsNil() { - v = reflect.Zero(rv.Type().Elem()).Interface() - } else { - v = rv.Elem().Interface() +// extensionResolver is a custom extension resolver that stores a single +// extension type that takes precedence over the global registry. +type extensionResolver struct{ xt protoreflect.ExtensionType } + +func (r extensionResolver) FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) { + if xtd := r.xt.TypeDescriptor(); xtd.FullName() == field { + return r.xt, nil + } + return protoregistry.GlobalTypes.FindExtensionByName(field) +} + +func (r extensionResolver) FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) { + if xtd := r.xt.TypeDescriptor(); xtd.ContainingMessage().FullName() == message && xtd.Number() == field { + return r.xt, nil + } + return protoregistry.GlobalTypes.FindExtensionByNumber(message, field) +} + +// GetExtensions returns a list of the extensions values present in m, +// corresponding with the provided list of extension descriptors, xts. +// If an extension is missing in m, the corresponding value is nil. +func GetExtensions(m Message, xts []*ExtensionDesc) ([]interface{}, error) { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() { + return nil, errNotExtendable + } + + vs := make([]interface{}, len(xts)) + for i, xt := range xts { + v, err := GetExtension(m, xt) + if err != nil { + if err == ErrMissingExtension { + continue } + return vs, err } - case reflect.Slice: - // Represent slice types as a pointer to the value. - if rv.Type().Elem().Kind() != reflect.Uint8 { - rv2 := reflect.New(rv.Type()) - rv2.Elem().Set(rv) - v = rv2.Interface() + vs[i] = v + } + return vs, nil +} + +// SetExtension sets an extension field in m to the provided value. +func SetExtension(m Message, xt *ExtensionDesc, v interface{}) error { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() || mr.Descriptor().ExtensionRanges().Len() == 0 { + return errNotExtendable + } + + rv := reflect.ValueOf(v) + if reflect.TypeOf(v) != reflect.TypeOf(xt.ExtensionType) { + return fmt.Errorf("proto: bad extension value type. got: %T, want: %T", v, xt.ExtensionType) + } + if rv.Kind() == reflect.Ptr { + if rv.IsNil() { + return fmt.Errorf("proto: SetExtension called with nil value of type %T", v) + } + if isScalarKind(rv.Elem().Kind()) { + v = rv.Elem().Interface() } } - return v + + xtd := xt.TypeDescriptor() + if !isValidExtension(mr.Descriptor(), xtd) { + return fmt.Errorf("proto: bad extended type; %T does not extend %T", xt.ExtendedType, m) + } + mr.Set(xtd, xt.ValueOf(v)) + clearUnknown(mr, fieldNum(xt.Field)) + return nil +} + +// SetRawExtension inserts b into the unknown fields of m. +// +// Deprecated: Use Message.ProtoReflect.SetUnknown instead. +func SetRawExtension(m Message, fnum int32, b []byte) { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() { + return + } + + // Verify that the raw field is valid. + for b0 := b; len(b0) > 0; { + num, _, n := protowire.ConsumeField(b0) + if int32(num) != fnum { + panic(fmt.Sprintf("mismatching field number: got %d, want %d", num, fnum)) + } + b0 = b0[n:] + } + + ClearExtension(m, &ExtensionDesc{Field: fnum}) + mr.SetUnknown(append(mr.GetUnknown(), b...)) +} + +// ExtensionDescs returns a list of extension descriptors found in m, +// containing descriptors for both populated extension fields in m and +// also unknown fields of m that are in the extension range. +// For the later case, an type incomplete descriptor is provided where only +// the ExtensionDesc.Field field is populated. +// The order of the extension descriptors is undefined. +func ExtensionDescs(m Message) ([]*ExtensionDesc, error) { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() || mr.Descriptor().ExtensionRanges().Len() == 0 { + return nil, errNotExtendable + } + + // Collect a set of known extension descriptors. + extDescs := make(map[protoreflect.FieldNumber]*ExtensionDesc) + mr.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + if fd.IsExtension() { + xt := fd.(protoreflect.ExtensionTypeDescriptor) + if xd, ok := xt.Type().(*ExtensionDesc); ok { + extDescs[fd.Number()] = xd + } + } + return true + }) + + // Collect a set of unknown extension descriptors. + extRanges := mr.Descriptor().ExtensionRanges() + for b := mr.GetUnknown(); len(b) > 0; { + num, _, n := protowire.ConsumeField(b) + if extRanges.Has(num) && extDescs[num] == nil { + extDescs[num] = nil + } + b = b[n:] + } + + // Transpose the set of descriptors into a list. + var xts []*ExtensionDesc + for num, xt := range extDescs { + if xt == nil { + xt = &ExtensionDesc{Field: int32(num)} + } + xts = append(xts, xt) + } + return xts, nil +} + +// isValidExtension reports whether xtd is a valid extension descriptor for md. +func isValidExtension(md protoreflect.MessageDescriptor, xtd protoreflect.ExtensionTypeDescriptor) bool { + return xtd.ContainingMessage() == md && md.ExtensionRanges().Has(xtd.Number()) +} + +// isScalarKind reports whether k is a protobuf scalar kind (except bytes). +// This function exists for historical reasons since the representation of +// scalars differs between v1 and v2, where v1 uses *T and v2 uses T. +func isScalarKind(k reflect.Kind) bool { + switch k { + case reflect.Bool, reflect.Int32, reflect.Int64, reflect.Uint32, reflect.Uint64, reflect.Float32, reflect.Float64, reflect.String: + return true + default: + return false + } +} + +// clearUnknown removes unknown fields from m where remover.Has reports true. +func clearUnknown(m protoreflect.Message, remover interface { + Has(protoreflect.FieldNumber) bool +}) { + var bo protoreflect.RawFields + for bi := m.GetUnknown(); len(bi) > 0; { + num, _, n := protowire.ConsumeField(bi) + if !remover.Has(num) { + bo = append(bo, bi[:n]...) + } + bi = bi[n:] + } + if bi := m.GetUnknown(); len(bi) != len(bo) { + m.SetUnknown(bo) + } +} + +type fieldNum protoreflect.FieldNumber + +func (n1 fieldNum) Has(n2 protoreflect.FieldNumber) bool { + return protoreflect.FieldNumber(n1) == n2 } diff --git a/vendor/github.com/golang/protobuf/proto/lib.go b/vendor/github.com/golang/protobuf/proto/lib.go deleted file mode 100644 index 70fbda532..000000000 --- a/vendor/github.com/golang/protobuf/proto/lib.go +++ /dev/null @@ -1,965 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -/* -Package proto converts data structures to and from the wire format of -protocol buffers. It works in concert with the Go source code generated -for .proto files by the protocol compiler. - -A summary of the properties of the protocol buffer interface -for a protocol buffer variable v: - - - Names are turned from camel_case to CamelCase for export. - - There are no methods on v to set fields; just treat - them as structure fields. - - There are getters that return a field's value if set, - and return the field's default value if unset. - The getters work even if the receiver is a nil message. - - The zero value for a struct is its correct initialization state. - All desired fields must be set before marshaling. - - A Reset() method will restore a protobuf struct to its zero state. - - Non-repeated fields are pointers to the values; nil means unset. - That is, optional or required field int32 f becomes F *int32. - - Repeated fields are slices. - - Helper functions are available to aid the setting of fields. - msg.Foo = proto.String("hello") // set field - - Constants are defined to hold the default values of all fields that - have them. They have the form Default_StructName_FieldName. - Because the getter methods handle defaulted values, - direct use of these constants should be rare. - - Enums are given type names and maps from names to values. - Enum values are prefixed by the enclosing message's name, or by the - enum's type name if it is a top-level enum. Enum types have a String - method, and a Enum method to assist in message construction. - - Nested messages, groups and enums have type names prefixed with the name of - the surrounding message type. - - Extensions are given descriptor names that start with E_, - followed by an underscore-delimited list of the nested messages - that contain it (if any) followed by the CamelCased name of the - extension field itself. HasExtension, ClearExtension, GetExtension - and SetExtension are functions for manipulating extensions. - - Oneof field sets are given a single field in their message, - with distinguished wrapper types for each possible field value. - - Marshal and Unmarshal are functions to encode and decode the wire format. - -When the .proto file specifies `syntax="proto3"`, there are some differences: - - - Non-repeated fields of non-message type are values instead of pointers. - - Enum types do not get an Enum method. - -The simplest way to describe this is to see an example. -Given file test.proto, containing - - package example; - - enum FOO { X = 17; } - - message Test { - required string label = 1; - optional int32 type = 2 [default=77]; - repeated int64 reps = 3; - optional group OptionalGroup = 4 { - required string RequiredField = 5; - } - oneof union { - int32 number = 6; - string name = 7; - } - } - -The resulting file, test.pb.go, is: - - package example - - import proto "github.com/golang/protobuf/proto" - import math "math" - - type FOO int32 - const ( - FOO_X FOO = 17 - ) - var FOO_name = map[int32]string{ - 17: "X", - } - var FOO_value = map[string]int32{ - "X": 17, - } - - func (x FOO) Enum() *FOO { - p := new(FOO) - *p = x - return p - } - func (x FOO) String() string { - return proto.EnumName(FOO_name, int32(x)) - } - func (x *FOO) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(FOO_value, data) - if err != nil { - return err - } - *x = FOO(value) - return nil - } - - type Test struct { - Label *string `protobuf:"bytes,1,req,name=label" json:"label,omitempty"` - Type *int32 `protobuf:"varint,2,opt,name=type,def=77" json:"type,omitempty"` - Reps []int64 `protobuf:"varint,3,rep,name=reps" json:"reps,omitempty"` - Optionalgroup *Test_OptionalGroup `protobuf:"group,4,opt,name=OptionalGroup" json:"optionalgroup,omitempty"` - // Types that are valid to be assigned to Union: - // *Test_Number - // *Test_Name - Union isTest_Union `protobuf_oneof:"union"` - XXX_unrecognized []byte `json:"-"` - } - func (m *Test) Reset() { *m = Test{} } - func (m *Test) String() string { return proto.CompactTextString(m) } - func (*Test) ProtoMessage() {} - - type isTest_Union interface { - isTest_Union() - } - - type Test_Number struct { - Number int32 `protobuf:"varint,6,opt,name=number"` - } - type Test_Name struct { - Name string `protobuf:"bytes,7,opt,name=name"` - } - - func (*Test_Number) isTest_Union() {} - func (*Test_Name) isTest_Union() {} - - func (m *Test) GetUnion() isTest_Union { - if m != nil { - return m.Union - } - return nil - } - const Default_Test_Type int32 = 77 - - func (m *Test) GetLabel() string { - if m != nil && m.Label != nil { - return *m.Label - } - return "" - } - - func (m *Test) GetType() int32 { - if m != nil && m.Type != nil { - return *m.Type - } - return Default_Test_Type - } - - func (m *Test) GetOptionalgroup() *Test_OptionalGroup { - if m != nil { - return m.Optionalgroup - } - return nil - } - - type Test_OptionalGroup struct { - RequiredField *string `protobuf:"bytes,5,req" json:"RequiredField,omitempty"` - } - func (m *Test_OptionalGroup) Reset() { *m = Test_OptionalGroup{} } - func (m *Test_OptionalGroup) String() string { return proto.CompactTextString(m) } - - func (m *Test_OptionalGroup) GetRequiredField() string { - if m != nil && m.RequiredField != nil { - return *m.RequiredField - } - return "" - } - - func (m *Test) GetNumber() int32 { - if x, ok := m.GetUnion().(*Test_Number); ok { - return x.Number - } - return 0 - } - - func (m *Test) GetName() string { - if x, ok := m.GetUnion().(*Test_Name); ok { - return x.Name - } - return "" - } - - func init() { - proto.RegisterEnum("example.FOO", FOO_name, FOO_value) - } - -To create and play with a Test object: - - package main - - import ( - "log" - - "github.com/golang/protobuf/proto" - pb "./example.pb" - ) - - func main() { - test := &pb.Test{ - Label: proto.String("hello"), - Type: proto.Int32(17), - Reps: []int64{1, 2, 3}, - Optionalgroup: &pb.Test_OptionalGroup{ - RequiredField: proto.String("good bye"), - }, - Union: &pb.Test_Name{"fred"}, - } - data, err := proto.Marshal(test) - if err != nil { - log.Fatal("marshaling error: ", err) - } - newTest := &pb.Test{} - err = proto.Unmarshal(data, newTest) - if err != nil { - log.Fatal("unmarshaling error: ", err) - } - // Now test and newTest contain the same data. - if test.GetLabel() != newTest.GetLabel() { - log.Fatalf("data mismatch %q != %q", test.GetLabel(), newTest.GetLabel()) - } - // Use a type switch to determine which oneof was set. - switch u := test.Union.(type) { - case *pb.Test_Number: // u.Number contains the number. - case *pb.Test_Name: // u.Name contains the string. - } - // etc. - } -*/ -package proto - -import ( - "encoding/json" - "fmt" - "log" - "reflect" - "sort" - "strconv" - "sync" -) - -// RequiredNotSetError is an error type returned by either Marshal or Unmarshal. -// Marshal reports this when a required field is not initialized. -// Unmarshal reports this when a required field is missing from the wire data. -type RequiredNotSetError struct{ field string } - -func (e *RequiredNotSetError) Error() string { - if e.field == "" { - return fmt.Sprintf("proto: required field not set") - } - return fmt.Sprintf("proto: required field %q not set", e.field) -} -func (e *RequiredNotSetError) RequiredNotSet() bool { - return true -} - -type invalidUTF8Error struct{ field string } - -func (e *invalidUTF8Error) Error() string { - if e.field == "" { - return "proto: invalid UTF-8 detected" - } - return fmt.Sprintf("proto: field %q contains invalid UTF-8", e.field) -} -func (e *invalidUTF8Error) InvalidUTF8() bool { - return true -} - -// errInvalidUTF8 is a sentinel error to identify fields with invalid UTF-8. -// This error should not be exposed to the external API as such errors should -// be recreated with the field information. -var errInvalidUTF8 = &invalidUTF8Error{} - -// isNonFatal reports whether the error is either a RequiredNotSet error -// or a InvalidUTF8 error. -func isNonFatal(err error) bool { - if re, ok := err.(interface{ RequiredNotSet() bool }); ok && re.RequiredNotSet() { - return true - } - if re, ok := err.(interface{ InvalidUTF8() bool }); ok && re.InvalidUTF8() { - return true - } - return false -} - -type nonFatal struct{ E error } - -// Merge merges err into nf and reports whether it was successful. -// Otherwise it returns false for any fatal non-nil errors. -func (nf *nonFatal) Merge(err error) (ok bool) { - if err == nil { - return true // not an error - } - if !isNonFatal(err) { - return false // fatal error - } - if nf.E == nil { - nf.E = err // store first instance of non-fatal error - } - return true -} - -// Message is implemented by generated protocol buffer messages. -type Message interface { - Reset() - String() string - ProtoMessage() -} - -// A Buffer is a buffer manager for marshaling and unmarshaling -// protocol buffers. It may be reused between invocations to -// reduce memory usage. It is not necessary to use a Buffer; -// the global functions Marshal and Unmarshal create a -// temporary Buffer and are fine for most applications. -type Buffer struct { - buf []byte // encode/decode byte stream - index int // read point - - deterministic bool -} - -// NewBuffer allocates a new Buffer and initializes its internal data to -// the contents of the argument slice. -func NewBuffer(e []byte) *Buffer { - return &Buffer{buf: e} -} - -// Reset resets the Buffer, ready for marshaling a new protocol buffer. -func (p *Buffer) Reset() { - p.buf = p.buf[0:0] // for reading/writing - p.index = 0 // for reading -} - -// SetBuf replaces the internal buffer with the slice, -// ready for unmarshaling the contents of the slice. -func (p *Buffer) SetBuf(s []byte) { - p.buf = s - p.index = 0 -} - -// Bytes returns the contents of the Buffer. -func (p *Buffer) Bytes() []byte { return p.buf } - -// SetDeterministic sets whether to use deterministic serialization. -// -// Deterministic serialization guarantees that for a given binary, equal -// messages will always be serialized to the same bytes. This implies: -// -// - Repeated serialization of a message will return the same bytes. -// - Different processes of the same binary (which may be executing on -// different machines) will serialize equal messages to the same bytes. -// -// Note that the deterministic serialization is NOT canonical across -// languages. It is not guaranteed to remain stable over time. It is unstable -// across different builds with schema changes due to unknown fields. -// Users who need canonical serialization (e.g., persistent storage in a -// canonical form, fingerprinting, etc.) should define their own -// canonicalization specification and implement their own serializer rather -// than relying on this API. -// -// If deterministic serialization is requested, map entries will be sorted -// by keys in lexicographical order. This is an implementation detail and -// subject to change. -func (p *Buffer) SetDeterministic(deterministic bool) { - p.deterministic = deterministic -} - -/* - * Helper routines for simplifying the creation of optional fields of basic type. - */ - -// Bool is a helper routine that allocates a new bool value -// to store v and returns a pointer to it. -func Bool(v bool) *bool { - return &v -} - -// Int32 is a helper routine that allocates a new int32 value -// to store v and returns a pointer to it. -func Int32(v int32) *int32 { - return &v -} - -// Int is a helper routine that allocates a new int32 value -// to store v and returns a pointer to it, but unlike Int32 -// its argument value is an int. -func Int(v int) *int32 { - p := new(int32) - *p = int32(v) - return p -} - -// Int64 is a helper routine that allocates a new int64 value -// to store v and returns a pointer to it. -func Int64(v int64) *int64 { - return &v -} - -// Float32 is a helper routine that allocates a new float32 value -// to store v and returns a pointer to it. -func Float32(v float32) *float32 { - return &v -} - -// Float64 is a helper routine that allocates a new float64 value -// to store v and returns a pointer to it. -func Float64(v float64) *float64 { - return &v -} - -// Uint32 is a helper routine that allocates a new uint32 value -// to store v and returns a pointer to it. -func Uint32(v uint32) *uint32 { - return &v -} - -// Uint64 is a helper routine that allocates a new uint64 value -// to store v and returns a pointer to it. -func Uint64(v uint64) *uint64 { - return &v -} - -// String is a helper routine that allocates a new string value -// to store v and returns a pointer to it. -func String(v string) *string { - return &v -} - -// EnumName is a helper function to simplify printing protocol buffer enums -// by name. Given an enum map and a value, it returns a useful string. -func EnumName(m map[int32]string, v int32) string { - s, ok := m[v] - if ok { - return s - } - return strconv.Itoa(int(v)) -} - -// UnmarshalJSONEnum is a helper function to simplify recovering enum int values -// from their JSON-encoded representation. Given a map from the enum's symbolic -// names to its int values, and a byte buffer containing the JSON-encoded -// value, it returns an int32 that can be cast to the enum type by the caller. -// -// The function can deal with both JSON representations, numeric and symbolic. -func UnmarshalJSONEnum(m map[string]int32, data []byte, enumName string) (int32, error) { - if data[0] == '"' { - // New style: enums are strings. - var repr string - if err := json.Unmarshal(data, &repr); err != nil { - return -1, err - } - val, ok := m[repr] - if !ok { - return 0, fmt.Errorf("unrecognized enum %s value %q", enumName, repr) - } - return val, nil - } - // Old style: enums are ints. - var val int32 - if err := json.Unmarshal(data, &val); err != nil { - return 0, fmt.Errorf("cannot unmarshal %#q into enum %s", data, enumName) - } - return val, nil -} - -// DebugPrint dumps the encoded data in b in a debugging format with a header -// including the string s. Used in testing but made available for general debugging. -func (p *Buffer) DebugPrint(s string, b []byte) { - var u uint64 - - obuf := p.buf - index := p.index - p.buf = b - p.index = 0 - depth := 0 - - fmt.Printf("\n--- %s ---\n", s) - -out: - for { - for i := 0; i < depth; i++ { - fmt.Print(" ") - } - - index := p.index - if index == len(p.buf) { - break - } - - op, err := p.DecodeVarint() - if err != nil { - fmt.Printf("%3d: fetching op err %v\n", index, err) - break out - } - tag := op >> 3 - wire := op & 7 - - switch wire { - default: - fmt.Printf("%3d: t=%3d unknown wire=%d\n", - index, tag, wire) - break out - - case WireBytes: - var r []byte - - r, err = p.DecodeRawBytes(false) - if err != nil { - break out - } - fmt.Printf("%3d: t=%3d bytes [%d]", index, tag, len(r)) - if len(r) <= 6 { - for i := 0; i < len(r); i++ { - fmt.Printf(" %.2x", r[i]) - } - } else { - for i := 0; i < 3; i++ { - fmt.Printf(" %.2x", r[i]) - } - fmt.Printf(" ..") - for i := len(r) - 3; i < len(r); i++ { - fmt.Printf(" %.2x", r[i]) - } - } - fmt.Printf("\n") - - case WireFixed32: - u, err = p.DecodeFixed32() - if err != nil { - fmt.Printf("%3d: t=%3d fix32 err %v\n", index, tag, err) - break out - } - fmt.Printf("%3d: t=%3d fix32 %d\n", index, tag, u) - - case WireFixed64: - u, err = p.DecodeFixed64() - if err != nil { - fmt.Printf("%3d: t=%3d fix64 err %v\n", index, tag, err) - break out - } - fmt.Printf("%3d: t=%3d fix64 %d\n", index, tag, u) - - case WireVarint: - u, err = p.DecodeVarint() - if err != nil { - fmt.Printf("%3d: t=%3d varint err %v\n", index, tag, err) - break out - } - fmt.Printf("%3d: t=%3d varint %d\n", index, tag, u) - - case WireStartGroup: - fmt.Printf("%3d: t=%3d start\n", index, tag) - depth++ - - case WireEndGroup: - depth-- - fmt.Printf("%3d: t=%3d end\n", index, tag) - } - } - - if depth != 0 { - fmt.Printf("%3d: start-end not balanced %d\n", p.index, depth) - } - fmt.Printf("\n") - - p.buf = obuf - p.index = index -} - -// SetDefaults sets unset protocol buffer fields to their default values. -// It only modifies fields that are both unset and have defined defaults. -// It recursively sets default values in any non-nil sub-messages. -func SetDefaults(pb Message) { - setDefaults(reflect.ValueOf(pb), true, false) -} - -// v is a pointer to a struct. -func setDefaults(v reflect.Value, recur, zeros bool) { - v = v.Elem() - - defaultMu.RLock() - dm, ok := defaults[v.Type()] - defaultMu.RUnlock() - if !ok { - dm = buildDefaultMessage(v.Type()) - defaultMu.Lock() - defaults[v.Type()] = dm - defaultMu.Unlock() - } - - for _, sf := range dm.scalars { - f := v.Field(sf.index) - if !f.IsNil() { - // field already set - continue - } - dv := sf.value - if dv == nil && !zeros { - // no explicit default, and don't want to set zeros - continue - } - fptr := f.Addr().Interface() // **T - // TODO: Consider batching the allocations we do here. - switch sf.kind { - case reflect.Bool: - b := new(bool) - if dv != nil { - *b = dv.(bool) - } - *(fptr.(**bool)) = b - case reflect.Float32: - f := new(float32) - if dv != nil { - *f = dv.(float32) - } - *(fptr.(**float32)) = f - case reflect.Float64: - f := new(float64) - if dv != nil { - *f = dv.(float64) - } - *(fptr.(**float64)) = f - case reflect.Int32: - // might be an enum - if ft := f.Type(); ft != int32PtrType { - // enum - f.Set(reflect.New(ft.Elem())) - if dv != nil { - f.Elem().SetInt(int64(dv.(int32))) - } - } else { - // int32 field - i := new(int32) - if dv != nil { - *i = dv.(int32) - } - *(fptr.(**int32)) = i - } - case reflect.Int64: - i := new(int64) - if dv != nil { - *i = dv.(int64) - } - *(fptr.(**int64)) = i - case reflect.String: - s := new(string) - if dv != nil { - *s = dv.(string) - } - *(fptr.(**string)) = s - case reflect.Uint8: - // exceptional case: []byte - var b []byte - if dv != nil { - db := dv.([]byte) - b = make([]byte, len(db)) - copy(b, db) - } else { - b = []byte{} - } - *(fptr.(*[]byte)) = b - case reflect.Uint32: - u := new(uint32) - if dv != nil { - *u = dv.(uint32) - } - *(fptr.(**uint32)) = u - case reflect.Uint64: - u := new(uint64) - if dv != nil { - *u = dv.(uint64) - } - *(fptr.(**uint64)) = u - default: - log.Printf("proto: can't set default for field %v (sf.kind=%v)", f, sf.kind) - } - } - - for _, ni := range dm.nested { - f := v.Field(ni) - // f is *T or []*T or map[T]*T - switch f.Kind() { - case reflect.Ptr: - if f.IsNil() { - continue - } - setDefaults(f, recur, zeros) - - case reflect.Slice: - for i := 0; i < f.Len(); i++ { - e := f.Index(i) - if e.IsNil() { - continue - } - setDefaults(e, recur, zeros) - } - - case reflect.Map: - for _, k := range f.MapKeys() { - e := f.MapIndex(k) - if e.IsNil() { - continue - } - setDefaults(e, recur, zeros) - } - } - } -} - -var ( - // defaults maps a protocol buffer struct type to a slice of the fields, - // with its scalar fields set to their proto-declared non-zero default values. - defaultMu sync.RWMutex - defaults = make(map[reflect.Type]defaultMessage) - - int32PtrType = reflect.TypeOf((*int32)(nil)) -) - -// defaultMessage represents information about the default values of a message. -type defaultMessage struct { - scalars []scalarField - nested []int // struct field index of nested messages -} - -type scalarField struct { - index int // struct field index - kind reflect.Kind // element type (the T in *T or []T) - value interface{} // the proto-declared default value, or nil -} - -// t is a struct type. -func buildDefaultMessage(t reflect.Type) (dm defaultMessage) { - sprop := GetProperties(t) - for _, prop := range sprop.Prop { - fi, ok := sprop.decoderTags.get(prop.Tag) - if !ok { - // XXX_unrecognized - continue - } - ft := t.Field(fi).Type - - sf, nested, err := fieldDefault(ft, prop) - switch { - case err != nil: - log.Print(err) - case nested: - dm.nested = append(dm.nested, fi) - case sf != nil: - sf.index = fi - dm.scalars = append(dm.scalars, *sf) - } - } - - return dm -} - -// fieldDefault returns the scalarField for field type ft. -// sf will be nil if the field can not have a default. -// nestedMessage will be true if this is a nested message. -// Note that sf.index is not set on return. -func fieldDefault(ft reflect.Type, prop *Properties) (sf *scalarField, nestedMessage bool, err error) { - var canHaveDefault bool - switch ft.Kind() { - case reflect.Ptr: - if ft.Elem().Kind() == reflect.Struct { - nestedMessage = true - } else { - canHaveDefault = true // proto2 scalar field - } - - case reflect.Slice: - switch ft.Elem().Kind() { - case reflect.Ptr: - nestedMessage = true // repeated message - case reflect.Uint8: - canHaveDefault = true // bytes field - } - - case reflect.Map: - if ft.Elem().Kind() == reflect.Ptr { - nestedMessage = true // map with message values - } - } - - if !canHaveDefault { - if nestedMessage { - return nil, true, nil - } - return nil, false, nil - } - - // We now know that ft is a pointer or slice. - sf = &scalarField{kind: ft.Elem().Kind()} - - // scalar fields without defaults - if !prop.HasDefault { - return sf, false, nil - } - - // a scalar field: either *T or []byte - switch ft.Elem().Kind() { - case reflect.Bool: - x, err := strconv.ParseBool(prop.Default) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default bool %q: %v", prop.Default, err) - } - sf.value = x - case reflect.Float32: - x, err := strconv.ParseFloat(prop.Default, 32) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default float32 %q: %v", prop.Default, err) - } - sf.value = float32(x) - case reflect.Float64: - x, err := strconv.ParseFloat(prop.Default, 64) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default float64 %q: %v", prop.Default, err) - } - sf.value = x - case reflect.Int32: - x, err := strconv.ParseInt(prop.Default, 10, 32) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default int32 %q: %v", prop.Default, err) - } - sf.value = int32(x) - case reflect.Int64: - x, err := strconv.ParseInt(prop.Default, 10, 64) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default int64 %q: %v", prop.Default, err) - } - sf.value = x - case reflect.String: - sf.value = prop.Default - case reflect.Uint8: - // []byte (not *uint8) - sf.value = []byte(prop.Default) - case reflect.Uint32: - x, err := strconv.ParseUint(prop.Default, 10, 32) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default uint32 %q: %v", prop.Default, err) - } - sf.value = uint32(x) - case reflect.Uint64: - x, err := strconv.ParseUint(prop.Default, 10, 64) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default uint64 %q: %v", prop.Default, err) - } - sf.value = x - default: - return nil, false, fmt.Errorf("proto: unhandled def kind %v", ft.Elem().Kind()) - } - - return sf, false, nil -} - -// mapKeys returns a sort.Interface to be used for sorting the map keys. -// Map fields may have key types of non-float scalars, strings and enums. -func mapKeys(vs []reflect.Value) sort.Interface { - s := mapKeySorter{vs: vs} - - // Type specialization per https://developers.google.com/protocol-buffers/docs/proto#maps. - if len(vs) == 0 { - return s - } - switch vs[0].Kind() { - case reflect.Int32, reflect.Int64: - s.less = func(a, b reflect.Value) bool { return a.Int() < b.Int() } - case reflect.Uint32, reflect.Uint64: - s.less = func(a, b reflect.Value) bool { return a.Uint() < b.Uint() } - case reflect.Bool: - s.less = func(a, b reflect.Value) bool { return !a.Bool() && b.Bool() } // false < true - case reflect.String: - s.less = func(a, b reflect.Value) bool { return a.String() < b.String() } - default: - panic(fmt.Sprintf("unsupported map key type: %v", vs[0].Kind())) - } - - return s -} - -type mapKeySorter struct { - vs []reflect.Value - less func(a, b reflect.Value) bool -} - -func (s mapKeySorter) Len() int { return len(s.vs) } -func (s mapKeySorter) Swap(i, j int) { s.vs[i], s.vs[j] = s.vs[j], s.vs[i] } -func (s mapKeySorter) Less(i, j int) bool { - return s.less(s.vs[i], s.vs[j]) -} - -// isProto3Zero reports whether v is a zero proto3 value. -func isProto3Zero(v reflect.Value) bool { - switch v.Kind() { - case reflect.Bool: - return !v.Bool() - case reflect.Int32, reflect.Int64: - return v.Int() == 0 - case reflect.Uint32, reflect.Uint64: - return v.Uint() == 0 - case reflect.Float32, reflect.Float64: - return v.Float() == 0 - case reflect.String: - return v.String() == "" - } - return false -} - -const ( - // ProtoPackageIsVersion3 is referenced from generated protocol buffer files - // to assert that that code is compatible with this version of the proto package. - ProtoPackageIsVersion3 = true - - // ProtoPackageIsVersion2 is referenced from generated protocol buffer files - // to assert that that code is compatible with this version of the proto package. - ProtoPackageIsVersion2 = true - - // ProtoPackageIsVersion1 is referenced from generated protocol buffer files - // to assert that that code is compatible with this version of the proto package. - ProtoPackageIsVersion1 = true -) - -// InternalMessageInfo is a type used internally by generated .pb.go files. -// This type is not intended to be used by non-generated code. -// This type is not subject to any compatibility guarantee. -type InternalMessageInfo struct { - marshal *marshalInfo - unmarshal *unmarshalInfo - merge *mergeInfo - discard *discardInfo -} diff --git a/vendor/github.com/golang/protobuf/proto/message_set.go b/vendor/github.com/golang/protobuf/proto/message_set.go deleted file mode 100644 index f48a75676..000000000 --- a/vendor/github.com/golang/protobuf/proto/message_set.go +++ /dev/null @@ -1,181 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -/* - * Support for message sets. - */ - -import ( - "errors" -) - -// errNoMessageTypeID occurs when a protocol buffer does not have a message type ID. -// A message type ID is required for storing a protocol buffer in a message set. -var errNoMessageTypeID = errors.New("proto does not have a message type ID") - -// The first two types (_MessageSet_Item and messageSet) -// model what the protocol compiler produces for the following protocol message: -// message MessageSet { -// repeated group Item = 1 { -// required int32 type_id = 2; -// required string message = 3; -// }; -// } -// That is the MessageSet wire format. We can't use a proto to generate these -// because that would introduce a circular dependency between it and this package. - -type _MessageSet_Item struct { - TypeId *int32 `protobuf:"varint,2,req,name=type_id"` - Message []byte `protobuf:"bytes,3,req,name=message"` -} - -type messageSet struct { - Item []*_MessageSet_Item `protobuf:"group,1,rep"` - XXX_unrecognized []byte - // TODO: caching? -} - -// Make sure messageSet is a Message. -var _ Message = (*messageSet)(nil) - -// messageTypeIder is an interface satisfied by a protocol buffer type -// that may be stored in a MessageSet. -type messageTypeIder interface { - MessageTypeId() int32 -} - -func (ms *messageSet) find(pb Message) *_MessageSet_Item { - mti, ok := pb.(messageTypeIder) - if !ok { - return nil - } - id := mti.MessageTypeId() - for _, item := range ms.Item { - if *item.TypeId == id { - return item - } - } - return nil -} - -func (ms *messageSet) Has(pb Message) bool { - return ms.find(pb) != nil -} - -func (ms *messageSet) Unmarshal(pb Message) error { - if item := ms.find(pb); item != nil { - return Unmarshal(item.Message, pb) - } - if _, ok := pb.(messageTypeIder); !ok { - return errNoMessageTypeID - } - return nil // TODO: return error instead? -} - -func (ms *messageSet) Marshal(pb Message) error { - msg, err := Marshal(pb) - if err != nil { - return err - } - if item := ms.find(pb); item != nil { - // reuse existing item - item.Message = msg - return nil - } - - mti, ok := pb.(messageTypeIder) - if !ok { - return errNoMessageTypeID - } - - mtid := mti.MessageTypeId() - ms.Item = append(ms.Item, &_MessageSet_Item{ - TypeId: &mtid, - Message: msg, - }) - return nil -} - -func (ms *messageSet) Reset() { *ms = messageSet{} } -func (ms *messageSet) String() string { return CompactTextString(ms) } -func (*messageSet) ProtoMessage() {} - -// Support for the message_set_wire_format message option. - -func skipVarint(buf []byte) []byte { - i := 0 - for ; buf[i]&0x80 != 0; i++ { - } - return buf[i+1:] -} - -// unmarshalMessageSet decodes the extension map encoded in buf in the message set wire format. -// It is called by Unmarshal methods on protocol buffer messages with the message_set_wire_format option. -func unmarshalMessageSet(buf []byte, exts interface{}) error { - var m map[int32]Extension - switch exts := exts.(type) { - case *XXX_InternalExtensions: - m = exts.extensionsWrite() - case map[int32]Extension: - m = exts - default: - return errors.New("proto: not an extension map") - } - - ms := new(messageSet) - if err := Unmarshal(buf, ms); err != nil { - return err - } - for _, item := range ms.Item { - id := *item.TypeId - msg := item.Message - - // Restore wire type and field number varint, plus length varint. - // Be careful to preserve duplicate items. - b := EncodeVarint(uint64(id)<<3 | WireBytes) - if ext, ok := m[id]; ok { - // Existing data; rip off the tag and length varint - // so we join the new data correctly. - // We can assume that ext.enc is set because we are unmarshaling. - o := ext.enc[len(b):] // skip wire type and field number - _, n := DecodeVarint(o) // calculate length of length varint - o = o[n:] // skip length varint - msg = append(o, msg...) // join old data and new data - } - b = append(b, EncodeVarint(uint64(len(msg)))...) - b = append(b, msg...) - - m[id] = Extension{enc: b} - } - return nil -} diff --git a/vendor/github.com/golang/protobuf/proto/pointer_reflect.go b/vendor/github.com/golang/protobuf/proto/pointer_reflect.go deleted file mode 100644 index 94fa9194a..000000000 --- a/vendor/github.com/golang/protobuf/proto/pointer_reflect.go +++ /dev/null @@ -1,360 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2012 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// +build purego appengine js - -// This file contains an implementation of proto field accesses using package reflect. -// It is slower than the code in pointer_unsafe.go but it avoids package unsafe and can -// be used on App Engine. - -package proto - -import ( - "reflect" - "sync" -) - -const unsafeAllowed = false - -// A field identifies a field in a struct, accessible from a pointer. -// In this implementation, a field is identified by the sequence of field indices -// passed to reflect's FieldByIndex. -type field []int - -// toField returns a field equivalent to the given reflect field. -func toField(f *reflect.StructField) field { - return f.Index -} - -// invalidField is an invalid field identifier. -var invalidField = field(nil) - -// zeroField is a noop when calling pointer.offset. -var zeroField = field([]int{}) - -// IsValid reports whether the field identifier is valid. -func (f field) IsValid() bool { return f != nil } - -// The pointer type is for the table-driven decoder. -// The implementation here uses a reflect.Value of pointer type to -// create a generic pointer. In pointer_unsafe.go we use unsafe -// instead of reflect to implement the same (but faster) interface. -type pointer struct { - v reflect.Value -} - -// toPointer converts an interface of pointer type to a pointer -// that points to the same target. -func toPointer(i *Message) pointer { - return pointer{v: reflect.ValueOf(*i)} -} - -// toAddrPointer converts an interface to a pointer that points to -// the interface data. -func toAddrPointer(i *interface{}, isptr, deref bool) pointer { - v := reflect.ValueOf(*i) - u := reflect.New(v.Type()) - u.Elem().Set(v) - if deref { - u = u.Elem() - } - return pointer{v: u} -} - -// valToPointer converts v to a pointer. v must be of pointer type. -func valToPointer(v reflect.Value) pointer { - return pointer{v: v} -} - -// offset converts from a pointer to a structure to a pointer to -// one of its fields. -func (p pointer) offset(f field) pointer { - return pointer{v: p.v.Elem().FieldByIndex(f).Addr()} -} - -func (p pointer) isNil() bool { - return p.v.IsNil() -} - -// grow updates the slice s in place to make it one element longer. -// s must be addressable. -// Returns the (addressable) new element. -func grow(s reflect.Value) reflect.Value { - n, m := s.Len(), s.Cap() - if n < m { - s.SetLen(n + 1) - } else { - s.Set(reflect.Append(s, reflect.Zero(s.Type().Elem()))) - } - return s.Index(n) -} - -func (p pointer) toInt64() *int64 { - return p.v.Interface().(*int64) -} -func (p pointer) toInt64Ptr() **int64 { - return p.v.Interface().(**int64) -} -func (p pointer) toInt64Slice() *[]int64 { - return p.v.Interface().(*[]int64) -} - -var int32ptr = reflect.TypeOf((*int32)(nil)) - -func (p pointer) toInt32() *int32 { - return p.v.Convert(int32ptr).Interface().(*int32) -} - -// The toInt32Ptr/Slice methods don't work because of enums. -// Instead, we must use set/get methods for the int32ptr/slice case. -/* - func (p pointer) toInt32Ptr() **int32 { - return p.v.Interface().(**int32) -} - func (p pointer) toInt32Slice() *[]int32 { - return p.v.Interface().(*[]int32) -} -*/ -func (p pointer) getInt32Ptr() *int32 { - if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) { - // raw int32 type - return p.v.Elem().Interface().(*int32) - } - // an enum - return p.v.Elem().Convert(int32PtrType).Interface().(*int32) -} -func (p pointer) setInt32Ptr(v int32) { - // Allocate value in a *int32. Possibly convert that to a *enum. - // Then assign it to a **int32 or **enum. - // Note: we can convert *int32 to *enum, but we can't convert - // **int32 to **enum! - p.v.Elem().Set(reflect.ValueOf(&v).Convert(p.v.Type().Elem())) -} - -// getInt32Slice copies []int32 from p as a new slice. -// This behavior differs from the implementation in pointer_unsafe.go. -func (p pointer) getInt32Slice() []int32 { - if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) { - // raw int32 type - return p.v.Elem().Interface().([]int32) - } - // an enum - // Allocate a []int32, then assign []enum's values into it. - // Note: we can't convert []enum to []int32. - slice := p.v.Elem() - s := make([]int32, slice.Len()) - for i := 0; i < slice.Len(); i++ { - s[i] = int32(slice.Index(i).Int()) - } - return s -} - -// setInt32Slice copies []int32 into p as a new slice. -// This behavior differs from the implementation in pointer_unsafe.go. -func (p pointer) setInt32Slice(v []int32) { - if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) { - // raw int32 type - p.v.Elem().Set(reflect.ValueOf(v)) - return - } - // an enum - // Allocate a []enum, then assign []int32's values into it. - // Note: we can't convert []enum to []int32. - slice := reflect.MakeSlice(p.v.Type().Elem(), len(v), cap(v)) - for i, x := range v { - slice.Index(i).SetInt(int64(x)) - } - p.v.Elem().Set(slice) -} -func (p pointer) appendInt32Slice(v int32) { - grow(p.v.Elem()).SetInt(int64(v)) -} - -func (p pointer) toUint64() *uint64 { - return p.v.Interface().(*uint64) -} -func (p pointer) toUint64Ptr() **uint64 { - return p.v.Interface().(**uint64) -} -func (p pointer) toUint64Slice() *[]uint64 { - return p.v.Interface().(*[]uint64) -} -func (p pointer) toUint32() *uint32 { - return p.v.Interface().(*uint32) -} -func (p pointer) toUint32Ptr() **uint32 { - return p.v.Interface().(**uint32) -} -func (p pointer) toUint32Slice() *[]uint32 { - return p.v.Interface().(*[]uint32) -} -func (p pointer) toBool() *bool { - return p.v.Interface().(*bool) -} -func (p pointer) toBoolPtr() **bool { - return p.v.Interface().(**bool) -} -func (p pointer) toBoolSlice() *[]bool { - return p.v.Interface().(*[]bool) -} -func (p pointer) toFloat64() *float64 { - return p.v.Interface().(*float64) -} -func (p pointer) toFloat64Ptr() **float64 { - return p.v.Interface().(**float64) -} -func (p pointer) toFloat64Slice() *[]float64 { - return p.v.Interface().(*[]float64) -} -func (p pointer) toFloat32() *float32 { - return p.v.Interface().(*float32) -} -func (p pointer) toFloat32Ptr() **float32 { - return p.v.Interface().(**float32) -} -func (p pointer) toFloat32Slice() *[]float32 { - return p.v.Interface().(*[]float32) -} -func (p pointer) toString() *string { - return p.v.Interface().(*string) -} -func (p pointer) toStringPtr() **string { - return p.v.Interface().(**string) -} -func (p pointer) toStringSlice() *[]string { - return p.v.Interface().(*[]string) -} -func (p pointer) toBytes() *[]byte { - return p.v.Interface().(*[]byte) -} -func (p pointer) toBytesSlice() *[][]byte { - return p.v.Interface().(*[][]byte) -} -func (p pointer) toExtensions() *XXX_InternalExtensions { - return p.v.Interface().(*XXX_InternalExtensions) -} -func (p pointer) toOldExtensions() *map[int32]Extension { - return p.v.Interface().(*map[int32]Extension) -} -func (p pointer) getPointer() pointer { - return pointer{v: p.v.Elem()} -} -func (p pointer) setPointer(q pointer) { - p.v.Elem().Set(q.v) -} -func (p pointer) appendPointer(q pointer) { - grow(p.v.Elem()).Set(q.v) -} - -// getPointerSlice copies []*T from p as a new []pointer. -// This behavior differs from the implementation in pointer_unsafe.go. -func (p pointer) getPointerSlice() []pointer { - if p.v.IsNil() { - return nil - } - n := p.v.Elem().Len() - s := make([]pointer, n) - for i := 0; i < n; i++ { - s[i] = pointer{v: p.v.Elem().Index(i)} - } - return s -} - -// setPointerSlice copies []pointer into p as a new []*T. -// This behavior differs from the implementation in pointer_unsafe.go. -func (p pointer) setPointerSlice(v []pointer) { - if v == nil { - p.v.Elem().Set(reflect.New(p.v.Elem().Type()).Elem()) - return - } - s := reflect.MakeSlice(p.v.Elem().Type(), 0, len(v)) - for _, p := range v { - s = reflect.Append(s, p.v) - } - p.v.Elem().Set(s) -} - -// getInterfacePointer returns a pointer that points to the -// interface data of the interface pointed by p. -func (p pointer) getInterfacePointer() pointer { - if p.v.Elem().IsNil() { - return pointer{v: p.v.Elem()} - } - return pointer{v: p.v.Elem().Elem().Elem().Field(0).Addr()} // *interface -> interface -> *struct -> struct -} - -func (p pointer) asPointerTo(t reflect.Type) reflect.Value { - // TODO: check that p.v.Type().Elem() == t? - return p.v -} - -func atomicLoadUnmarshalInfo(p **unmarshalInfo) *unmarshalInfo { - atomicLock.Lock() - defer atomicLock.Unlock() - return *p -} -func atomicStoreUnmarshalInfo(p **unmarshalInfo, v *unmarshalInfo) { - atomicLock.Lock() - defer atomicLock.Unlock() - *p = v -} -func atomicLoadMarshalInfo(p **marshalInfo) *marshalInfo { - atomicLock.Lock() - defer atomicLock.Unlock() - return *p -} -func atomicStoreMarshalInfo(p **marshalInfo, v *marshalInfo) { - atomicLock.Lock() - defer atomicLock.Unlock() - *p = v -} -func atomicLoadMergeInfo(p **mergeInfo) *mergeInfo { - atomicLock.Lock() - defer atomicLock.Unlock() - return *p -} -func atomicStoreMergeInfo(p **mergeInfo, v *mergeInfo) { - atomicLock.Lock() - defer atomicLock.Unlock() - *p = v -} -func atomicLoadDiscardInfo(p **discardInfo) *discardInfo { - atomicLock.Lock() - defer atomicLock.Unlock() - return *p -} -func atomicStoreDiscardInfo(p **discardInfo, v *discardInfo) { - atomicLock.Lock() - defer atomicLock.Unlock() - *p = v -} - -var atomicLock sync.Mutex diff --git a/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go b/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go deleted file mode 100644 index dbfffe071..000000000 --- a/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go +++ /dev/null @@ -1,313 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2012 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// +build !purego,!appengine,!js - -// This file contains the implementation of the proto field accesses using package unsafe. - -package proto - -import ( - "reflect" - "sync/atomic" - "unsafe" -) - -const unsafeAllowed = true - -// A field identifies a field in a struct, accessible from a pointer. -// In this implementation, a field is identified by its byte offset from the start of the struct. -type field uintptr - -// toField returns a field equivalent to the given reflect field. -func toField(f *reflect.StructField) field { - return field(f.Offset) -} - -// invalidField is an invalid field identifier. -const invalidField = ^field(0) - -// zeroField is a noop when calling pointer.offset. -const zeroField = field(0) - -// IsValid reports whether the field identifier is valid. -func (f field) IsValid() bool { - return f != invalidField -} - -// The pointer type below is for the new table-driven encoder/decoder. -// The implementation here uses unsafe.Pointer to create a generic pointer. -// In pointer_reflect.go we use reflect instead of unsafe to implement -// the same (but slower) interface. -type pointer struct { - p unsafe.Pointer -} - -// size of pointer -var ptrSize = unsafe.Sizeof(uintptr(0)) - -// toPointer converts an interface of pointer type to a pointer -// that points to the same target. -func toPointer(i *Message) pointer { - // Super-tricky - read pointer out of data word of interface value. - // Saves ~25ns over the equivalent: - // return valToPointer(reflect.ValueOf(*i)) - return pointer{p: (*[2]unsafe.Pointer)(unsafe.Pointer(i))[1]} -} - -// toAddrPointer converts an interface to a pointer that points to -// the interface data. -func toAddrPointer(i *interface{}, isptr, deref bool) (p pointer) { - // Super-tricky - read or get the address of data word of interface value. - if isptr { - // The interface is of pointer type, thus it is a direct interface. - // The data word is the pointer data itself. We take its address. - p = pointer{p: unsafe.Pointer(uintptr(unsafe.Pointer(i)) + ptrSize)} - } else { - // The interface is not of pointer type. The data word is the pointer - // to the data. - p = pointer{p: (*[2]unsafe.Pointer)(unsafe.Pointer(i))[1]} - } - if deref { - p.p = *(*unsafe.Pointer)(p.p) - } - return p -} - -// valToPointer converts v to a pointer. v must be of pointer type. -func valToPointer(v reflect.Value) pointer { - return pointer{p: unsafe.Pointer(v.Pointer())} -} - -// offset converts from a pointer to a structure to a pointer to -// one of its fields. -func (p pointer) offset(f field) pointer { - // For safety, we should panic if !f.IsValid, however calling panic causes - // this to no longer be inlineable, which is a serious performance cost. - /* - if !f.IsValid() { - panic("invalid field") - } - */ - return pointer{p: unsafe.Pointer(uintptr(p.p) + uintptr(f))} -} - -func (p pointer) isNil() bool { - return p.p == nil -} - -func (p pointer) toInt64() *int64 { - return (*int64)(p.p) -} -func (p pointer) toInt64Ptr() **int64 { - return (**int64)(p.p) -} -func (p pointer) toInt64Slice() *[]int64 { - return (*[]int64)(p.p) -} -func (p pointer) toInt32() *int32 { - return (*int32)(p.p) -} - -// See pointer_reflect.go for why toInt32Ptr/Slice doesn't exist. -/* - func (p pointer) toInt32Ptr() **int32 { - return (**int32)(p.p) - } - func (p pointer) toInt32Slice() *[]int32 { - return (*[]int32)(p.p) - } -*/ -func (p pointer) getInt32Ptr() *int32 { - return *(**int32)(p.p) -} -func (p pointer) setInt32Ptr(v int32) { - *(**int32)(p.p) = &v -} - -// getInt32Slice loads a []int32 from p. -// The value returned is aliased with the original slice. -// This behavior differs from the implementation in pointer_reflect.go. -func (p pointer) getInt32Slice() []int32 { - return *(*[]int32)(p.p) -} - -// setInt32Slice stores a []int32 to p. -// The value set is aliased with the input slice. -// This behavior differs from the implementation in pointer_reflect.go. -func (p pointer) setInt32Slice(v []int32) { - *(*[]int32)(p.p) = v -} - -// TODO: Can we get rid of appendInt32Slice and use setInt32Slice instead? -func (p pointer) appendInt32Slice(v int32) { - s := (*[]int32)(p.p) - *s = append(*s, v) -} - -func (p pointer) toUint64() *uint64 { - return (*uint64)(p.p) -} -func (p pointer) toUint64Ptr() **uint64 { - return (**uint64)(p.p) -} -func (p pointer) toUint64Slice() *[]uint64 { - return (*[]uint64)(p.p) -} -func (p pointer) toUint32() *uint32 { - return (*uint32)(p.p) -} -func (p pointer) toUint32Ptr() **uint32 { - return (**uint32)(p.p) -} -func (p pointer) toUint32Slice() *[]uint32 { - return (*[]uint32)(p.p) -} -func (p pointer) toBool() *bool { - return (*bool)(p.p) -} -func (p pointer) toBoolPtr() **bool { - return (**bool)(p.p) -} -func (p pointer) toBoolSlice() *[]bool { - return (*[]bool)(p.p) -} -func (p pointer) toFloat64() *float64 { - return (*float64)(p.p) -} -func (p pointer) toFloat64Ptr() **float64 { - return (**float64)(p.p) -} -func (p pointer) toFloat64Slice() *[]float64 { - return (*[]float64)(p.p) -} -func (p pointer) toFloat32() *float32 { - return (*float32)(p.p) -} -func (p pointer) toFloat32Ptr() **float32 { - return (**float32)(p.p) -} -func (p pointer) toFloat32Slice() *[]float32 { - return (*[]float32)(p.p) -} -func (p pointer) toString() *string { - return (*string)(p.p) -} -func (p pointer) toStringPtr() **string { - return (**string)(p.p) -} -func (p pointer) toStringSlice() *[]string { - return (*[]string)(p.p) -} -func (p pointer) toBytes() *[]byte { - return (*[]byte)(p.p) -} -func (p pointer) toBytesSlice() *[][]byte { - return (*[][]byte)(p.p) -} -func (p pointer) toExtensions() *XXX_InternalExtensions { - return (*XXX_InternalExtensions)(p.p) -} -func (p pointer) toOldExtensions() *map[int32]Extension { - return (*map[int32]Extension)(p.p) -} - -// getPointerSlice loads []*T from p as a []pointer. -// The value returned is aliased with the original slice. -// This behavior differs from the implementation in pointer_reflect.go. -func (p pointer) getPointerSlice() []pointer { - // Super-tricky - p should point to a []*T where T is a - // message type. We load it as []pointer. - return *(*[]pointer)(p.p) -} - -// setPointerSlice stores []pointer into p as a []*T. -// The value set is aliased with the input slice. -// This behavior differs from the implementation in pointer_reflect.go. -func (p pointer) setPointerSlice(v []pointer) { - // Super-tricky - p should point to a []*T where T is a - // message type. We store it as []pointer. - *(*[]pointer)(p.p) = v -} - -// getPointer loads the pointer at p and returns it. -func (p pointer) getPointer() pointer { - return pointer{p: *(*unsafe.Pointer)(p.p)} -} - -// setPointer stores the pointer q at p. -func (p pointer) setPointer(q pointer) { - *(*unsafe.Pointer)(p.p) = q.p -} - -// append q to the slice pointed to by p. -func (p pointer) appendPointer(q pointer) { - s := (*[]unsafe.Pointer)(p.p) - *s = append(*s, q.p) -} - -// getInterfacePointer returns a pointer that points to the -// interface data of the interface pointed by p. -func (p pointer) getInterfacePointer() pointer { - // Super-tricky - read pointer out of data word of interface value. - return pointer{p: (*(*[2]unsafe.Pointer)(p.p))[1]} -} - -// asPointerTo returns a reflect.Value that is a pointer to an -// object of type t stored at p. -func (p pointer) asPointerTo(t reflect.Type) reflect.Value { - return reflect.NewAt(t, p.p) -} - -func atomicLoadUnmarshalInfo(p **unmarshalInfo) *unmarshalInfo { - return (*unmarshalInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p)))) -} -func atomicStoreUnmarshalInfo(p **unmarshalInfo, v *unmarshalInfo) { - atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v)) -} -func atomicLoadMarshalInfo(p **marshalInfo) *marshalInfo { - return (*marshalInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p)))) -} -func atomicStoreMarshalInfo(p **marshalInfo, v *marshalInfo) { - atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v)) -} -func atomicLoadMergeInfo(p **mergeInfo) *mergeInfo { - return (*mergeInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p)))) -} -func atomicStoreMergeInfo(p **mergeInfo, v *mergeInfo) { - atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v)) -} -func atomicLoadDiscardInfo(p **discardInfo) *discardInfo { - return (*discardInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p)))) -} -func atomicStoreDiscardInfo(p **discardInfo, v *discardInfo) { - atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v)) -} diff --git a/vendor/github.com/golang/protobuf/proto/properties.go b/vendor/github.com/golang/protobuf/proto/properties.go index a4b8c0cd3..dcdc2202f 100644 --- a/vendor/github.com/golang/protobuf/proto/properties.go +++ b/vendor/github.com/golang/protobuf/proto/properties.go @@ -1,162 +1,104 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package proto -/* - * Routines for encoding data into the wire format for protocol buffers. - */ - import ( "fmt" - "log" "reflect" - "sort" "strconv" "strings" "sync" + + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoimpl" ) -const debug bool = false - -// Constants that identify the encoding of a value on the wire. -const ( - WireVarint = 0 - WireFixed64 = 1 - WireBytes = 2 - WireStartGroup = 3 - WireEndGroup = 4 - WireFixed32 = 5 -) - -// tagMap is an optimization over map[int]int for typical protocol buffer -// use-cases. Encoded protocol buffers are often in tag order with small tag -// numbers. -type tagMap struct { - fastTags []int - slowTags map[int]int -} - -// tagMapFastLimit is the upper bound on the tag number that will be stored in -// the tagMap slice rather than its map. -const tagMapFastLimit = 1024 - -func (p *tagMap) get(t int) (int, bool) { - if t > 0 && t < tagMapFastLimit { - if t >= len(p.fastTags) { - return 0, false - } - fi := p.fastTags[t] - return fi, fi >= 0 - } - fi, ok := p.slowTags[t] - return fi, ok -} - -func (p *tagMap) put(t int, fi int) { - if t > 0 && t < tagMapFastLimit { - for len(p.fastTags) < t+1 { - p.fastTags = append(p.fastTags, -1) - } - p.fastTags[t] = fi - return - } - if p.slowTags == nil { - p.slowTags = make(map[int]int) - } - p.slowTags[t] = fi -} - -// StructProperties represents properties for all the fields of a struct. -// decoderTags and decoderOrigNames should only be used by the decoder. +// StructProperties represents protocol buffer type information for a +// generated protobuf message in the open-struct API. +// +// Deprecated: Do not use. type StructProperties struct { - Prop []*Properties // properties for each field - reqCount int // required count - decoderTags tagMap // map from proto tag to struct field number - decoderOrigNames map[string]int // map from original name to struct field number - order []int // list of struct field numbers in tag order + // Prop are the properties for each field. + // + // Fields belonging to a oneof are stored in OneofTypes instead, with a + // single Properties representing the parent oneof held here. + // + // The order of Prop matches the order of fields in the Go struct. + // Struct fields that are not related to protobufs have a "XXX_" prefix + // in the Properties.Name and must be ignored by the user. + Prop []*Properties // OneofTypes contains information about the oneof fields in this message. - // It is keyed by the original name of a field. + // It is keyed by the protobuf field name. OneofTypes map[string]*OneofProperties } -// OneofProperties represents information about a specific field in a oneof. -type OneofProperties struct { - Type reflect.Type // pointer to generated struct type for this oneof field - Field int // struct field number of the containing oneof in the message - Prop *Properties -} - -// Implement the sorting interface so we can sort the fields in tag order, as recommended by the spec. -// See encode.go, (*Buffer).enc_struct. - -func (sp *StructProperties) Len() int { return len(sp.order) } -func (sp *StructProperties) Less(i, j int) bool { - return sp.Prop[sp.order[i]].Tag < sp.Prop[sp.order[j]].Tag -} -func (sp *StructProperties) Swap(i, j int) { sp.order[i], sp.order[j] = sp.order[j], sp.order[i] } - -// Properties represents the protocol-specific behavior of a single struct field. +// Properties represents the type information for a protobuf message field. +// +// Deprecated: Do not use. type Properties struct { - Name string // name of the field, for error messages - OrigName string // original name before protocol compiler (always set) - JSONName string // name to use for JSON; determined by protoc - Wire string + // Name is a placeholder name with little meaningful semantic value. + // If the name has an "XXX_" prefix, the entire Properties must be ignored. + Name string + // OrigName is the protobuf field name or oneof name. + OrigName string + // JSONName is the JSON name for the protobuf field. + JSONName string + // Enum is a placeholder name for enums. + // For historical reasons, this is neither the Go name for the enum, + // nor the protobuf name for the enum. + Enum string // Deprecated: Do not use. + // Weak contains the full name of the weakly referenced message. + Weak string + // Wire is a string representation of the wire type. + Wire string + // WireType is the protobuf wire type for the field. WireType int - Tag int + // Tag is the protobuf field number. + Tag int + // Required reports whether this is a required field. Required bool + // Optional reports whether this is a optional field. Optional bool + // Repeated reports whether this is a repeated field. Repeated bool - Packed bool // relevant for repeated primitives only - Enum string // set for enum types only - proto3 bool // whether this is known to be a proto3 field - oneof bool // whether this is a oneof field + // Packed reports whether this is a packed repeated field of scalars. + Packed bool + // Proto3 reports whether this field operates under the proto3 syntax. + Proto3 bool + // Oneof reports whether this field belongs within a oneof. + Oneof bool - Default string // default value - HasDefault bool // whether an explicit default was provided + // Default is the default value in string form. + Default string + // HasDefault reports whether the field has a default value. + HasDefault bool - stype reflect.Type // set for struct types only - sprop *StructProperties // set for struct types only + // MapKeyProp is the properties for the key field for a map field. + MapKeyProp *Properties + // MapValProp is the properties for the value field for a map field. + MapValProp *Properties +} - mtype reflect.Type // set for map types only - MapKeyProp *Properties // set for map types only - MapValProp *Properties // set for map types only +// OneofProperties represents the type information for a protobuf oneof. +// +// Deprecated: Do not use. +type OneofProperties struct { + // Type is a pointer to the generated wrapper type for the field value. + // This is nil for messages that are not in the open-struct API. + Type reflect.Type + // Field is the index into StructProperties.Prop for the containing oneof. + Field int + // Prop is the properties for the field. + Prop *Properties } // String formats the properties in the protobuf struct field tag style. func (p *Properties) String() string { s := p.Wire - s += "," - s += strconv.Itoa(p.Tag) + s += "," + strconv.Itoa(p.Tag) if p.Required { s += ",req" } @@ -170,18 +112,21 @@ func (p *Properties) String() string { s += ",packed" } s += ",name=" + p.OrigName - if p.JSONName != p.OrigName { + if p.JSONName != "" { s += ",json=" + p.JSONName } - if p.proto3 { - s += ",proto3" - } - if p.oneof { - s += ",oneof" - } if len(p.Enum) > 0 { s += ",enum=" + p.Enum } + if len(p.Weak) > 0 { + s += ",weak=" + p.Weak + } + if p.Proto3 { + s += ",proto3" + } + if p.Oneof { + s += ",oneof" + } if p.HasDefault { s += ",def=" + p.Default } @@ -189,356 +134,173 @@ func (p *Properties) String() string { } // Parse populates p by parsing a string in the protobuf struct field tag style. -func (p *Properties) Parse(s string) { - // "bytes,49,opt,name=foo,def=hello!" - fields := strings.Split(s, ",") // breaks def=, but handled below. - if len(fields) < 2 { - log.Printf("proto: tag has too few fields: %q", s) - return - } - - p.Wire = fields[0] - switch p.Wire { - case "varint": - p.WireType = WireVarint - case "fixed32": - p.WireType = WireFixed32 - case "fixed64": - p.WireType = WireFixed64 - case "zigzag32": - p.WireType = WireVarint - case "zigzag64": - p.WireType = WireVarint - case "bytes", "group": - p.WireType = WireBytes - // no numeric converter for non-numeric types - default: - log.Printf("proto: tag has unknown wire type: %q", s) - return - } - - var err error - p.Tag, err = strconv.Atoi(fields[1]) - if err != nil { - return - } - -outer: - for i := 2; i < len(fields); i++ { - f := fields[i] - switch { - case f == "req": - p.Required = true - case f == "opt": +func (p *Properties) Parse(tag string) { + // For example: "bytes,49,opt,name=foo,def=hello!" + for len(tag) > 0 { + i := strings.IndexByte(tag, ',') + if i < 0 { + i = len(tag) + } + switch s := tag[:i]; { + case strings.HasPrefix(s, "name="): + p.OrigName = s[len("name="):] + case strings.HasPrefix(s, "json="): + p.JSONName = s[len("json="):] + case strings.HasPrefix(s, "enum="): + p.Enum = s[len("enum="):] + case strings.HasPrefix(s, "weak="): + p.Weak = s[len("weak="):] + case strings.Trim(s, "0123456789") == "": + n, _ := strconv.ParseUint(s, 10, 32) + p.Tag = int(n) + case s == "opt": p.Optional = true - case f == "rep": + case s == "req": + p.Required = true + case s == "rep": p.Repeated = true - case f == "packed": + case s == "varint" || s == "zigzag32" || s == "zigzag64": + p.Wire = s + p.WireType = WireVarint + case s == "fixed32": + p.Wire = s + p.WireType = WireFixed32 + case s == "fixed64": + p.Wire = s + p.WireType = WireFixed64 + case s == "bytes": + p.Wire = s + p.WireType = WireBytes + case s == "group": + p.Wire = s + p.WireType = WireStartGroup + case s == "packed": p.Packed = true - case strings.HasPrefix(f, "name="): - p.OrigName = f[5:] - case strings.HasPrefix(f, "json="): - p.JSONName = f[5:] - case strings.HasPrefix(f, "enum="): - p.Enum = f[5:] - case f == "proto3": - p.proto3 = true - case f == "oneof": - p.oneof = true - case strings.HasPrefix(f, "def="): + case s == "proto3": + p.Proto3 = true + case s == "oneof": + p.Oneof = true + case strings.HasPrefix(s, "def="): + // The default tag is special in that everything afterwards is the + // default regardless of the presence of commas. p.HasDefault = true - p.Default = f[4:] // rest of string - if i+1 < len(fields) { - // Commas aren't escaped, and def is always last. - p.Default += "," + strings.Join(fields[i+1:], ",") - break outer - } + p.Default, i = tag[len("def="):], len(tag) } + tag = strings.TrimPrefix(tag[i:], ",") } } -var protoMessageType = reflect.TypeOf((*Message)(nil)).Elem() - -// setFieldProps initializes the field properties for submessages and maps. -func (p *Properties) setFieldProps(typ reflect.Type, f *reflect.StructField, lockGetProp bool) { - switch t1 := typ; t1.Kind() { - case reflect.Ptr: - if t1.Elem().Kind() == reflect.Struct { - p.stype = t1.Elem() - } - - case reflect.Slice: - if t2 := t1.Elem(); t2.Kind() == reflect.Ptr && t2.Elem().Kind() == reflect.Struct { - p.stype = t2.Elem() - } - - case reflect.Map: - p.mtype = t1 - p.MapKeyProp = &Properties{} - p.MapKeyProp.init(reflect.PtrTo(p.mtype.Key()), "Key", f.Tag.Get("protobuf_key"), nil, lockGetProp) - p.MapValProp = &Properties{} - vtype := p.mtype.Elem() - if vtype.Kind() != reflect.Ptr && vtype.Kind() != reflect.Slice { - // The value type is not a message (*T) or bytes ([]byte), - // so we need encoders for the pointer to this type. - vtype = reflect.PtrTo(vtype) - } - p.MapValProp.init(vtype, "Value", f.Tag.Get("protobuf_val"), nil, lockGetProp) - } - - if p.stype != nil { - if lockGetProp { - p.sprop = GetProperties(p.stype) - } else { - p.sprop = getPropertiesLocked(p.stype) - } - } -} - -var ( - marshalerType = reflect.TypeOf((*Marshaler)(nil)).Elem() -) - // Init populates the properties from a protocol buffer struct tag. +// +// Deprecated: Do not use. func (p *Properties) Init(typ reflect.Type, name, tag string, f *reflect.StructField) { - p.init(typ, name, tag, f, true) -} - -func (p *Properties) init(typ reflect.Type, name, tag string, f *reflect.StructField, lockGetProp bool) { - // "bytes,49,opt,def=hello!" p.Name = name p.OrigName = name if tag == "" { return } p.Parse(tag) - p.setFieldProps(typ, f, lockGetProp) + + if typ != nil && typ.Kind() == reflect.Map { + p.MapKeyProp = new(Properties) + p.MapKeyProp.Init(nil, "Key", f.Tag.Get("protobuf_key"), nil) + p.MapValProp = new(Properties) + p.MapValProp.Init(nil, "Value", f.Tag.Get("protobuf_val"), nil) + } } -var ( - propertiesMu sync.RWMutex - propertiesMap = make(map[reflect.Type]*StructProperties) -) +var propertiesCache sync.Map // map[reflect.Type]*StructProperties -// GetProperties returns the list of properties for the type represented by t. -// t must represent a generated struct type of a protocol message. +// GetProperties returns the list of properties for the type represented by t, +// which must be a generated protocol buffer message in the open-struct API, +// where protobuf message fields are represented by exported Go struct fields. +// +// Deprecated: Use protobuf reflection instead. func GetProperties(t reflect.Type) *StructProperties { - if t.Kind() != reflect.Struct { - panic("proto: type must have kind struct") + if p, ok := propertiesCache.Load(t); ok { + return p.(*StructProperties) } - - // Most calls to GetProperties in a long-running program will be - // retrieving details for types we have seen before. - propertiesMu.RLock() - sprop, ok := propertiesMap[t] - propertiesMu.RUnlock() - if ok { - return sprop - } - - propertiesMu.Lock() - sprop = getPropertiesLocked(t) - propertiesMu.Unlock() - return sprop + p, _ := propertiesCache.LoadOrStore(t, newProperties(t)) + return p.(*StructProperties) } -type ( - oneofFuncsIface interface { - XXX_OneofFuncs() (func(Message, *Buffer) error, func(Message, int, int, *Buffer) (bool, error), func(Message) int, []interface{}) - } - oneofWrappersIface interface { - XXX_OneofWrappers() []interface{} - } -) - -// getPropertiesLocked requires that propertiesMu is held. -func getPropertiesLocked(t reflect.Type) *StructProperties { - if prop, ok := propertiesMap[t]; ok { - return prop +func newProperties(t reflect.Type) *StructProperties { + if t.Kind() != reflect.Struct { + panic(fmt.Sprintf("%v is not a generated message in the open-struct API", t)) } + var hasOneof bool prop := new(StructProperties) - // in case of recursive protos, fill this in now. - propertiesMap[t] = prop - - // build properties - prop.Prop = make([]*Properties, t.NumField()) - prop.order = make([]int, t.NumField()) + // Construct a list of properties for each field in the struct. for i := 0; i < t.NumField(); i++ { - f := t.Field(i) p := new(Properties) - name := f.Name - p.init(f.Type, name, f.Tag.Get("protobuf"), &f, false) + f := t.Field(i) + tagField := f.Tag.Get("protobuf") + p.Init(f.Type, f.Name, tagField, &f) - oneof := f.Tag.Get("protobuf_oneof") // special case - if oneof != "" { - // Oneof fields don't use the traditional protobuf tag. - p.OrigName = oneof + tagOneof := f.Tag.Get("protobuf_oneof") + if tagOneof != "" { + hasOneof = true + p.OrigName = tagOneof } - prop.Prop[i] = p - prop.order[i] = i - if debug { - print(i, " ", f.Name, " ", t.String(), " ") - if p.Tag > 0 { - print(p.String()) + + // Rename unrelated struct fields with the "XXX_" prefix since so much + // user code simply checks for this to exclude special fields. + if tagField == "" && tagOneof == "" && !strings.HasPrefix(p.Name, "XXX_") { + p.Name = "XXX_" + p.Name + p.OrigName = "XXX_" + p.OrigName + } else if p.Weak != "" { + p.Name = p.OrigName // avoid possible "XXX_" prefix on weak field + } + + prop.Prop = append(prop.Prop, p) + } + + // Construct a mapping of oneof field names to properties. + if hasOneof { + var oneofWrappers []interface{} + if fn, ok := reflect.PtrTo(t).MethodByName("XXX_OneofFuncs"); ok { + oneofWrappers = fn.Func.Call([]reflect.Value{reflect.Zero(fn.Type.In(0))})[3].Interface().([]interface{}) + } + if fn, ok := reflect.PtrTo(t).MethodByName("XXX_OneofWrappers"); ok { + oneofWrappers = fn.Func.Call([]reflect.Value{reflect.Zero(fn.Type.In(0))})[0].Interface().([]interface{}) + } + if m, ok := reflect.Zero(reflect.PtrTo(t)).Interface().(protoreflect.ProtoMessage); ok { + if m, ok := m.ProtoReflect().(interface{ ProtoMessageInfo() *protoimpl.MessageInfo }); ok { + oneofWrappers = m.ProtoMessageInfo().OneofWrappers } - print("\n") } - } - // Re-order prop.order. - sort.Sort(prop) - - var oots []interface{} - switch m := reflect.Zero(reflect.PtrTo(t)).Interface().(type) { - case oneofFuncsIface: - _, _, _, oots = m.XXX_OneofFuncs() - case oneofWrappersIface: - oots = m.XXX_OneofWrappers() - } - if len(oots) > 0 { - // Interpret oneof metadata. prop.OneofTypes = make(map[string]*OneofProperties) - for _, oot := range oots { - oop := &OneofProperties{ - Type: reflect.ValueOf(oot).Type(), // *T + for _, wrapper := range oneofWrappers { + p := &OneofProperties{ + Type: reflect.ValueOf(wrapper).Type(), // *T Prop: new(Properties), } - sft := oop.Type.Elem().Field(0) - oop.Prop.Name = sft.Name - oop.Prop.Parse(sft.Tag.Get("protobuf")) - // There will be exactly one interface field that - // this new value is assignable to. - for i := 0; i < t.NumField(); i++ { - f := t.Field(i) - if f.Type.Kind() != reflect.Interface { - continue - } - if !oop.Type.AssignableTo(f.Type) { - continue - } - oop.Field = i - break - } - prop.OneofTypes[oop.Prop.OrigName] = oop - } - } + f := p.Type.Elem().Field(0) + p.Prop.Name = f.Name + p.Prop.Parse(f.Tag.Get("protobuf")) - // build required counts - // build tags - reqCount := 0 - prop.decoderOrigNames = make(map[string]int) - for i, p := range prop.Prop { - if strings.HasPrefix(p.Name, "XXX_") { - // Internal fields should not appear in tags/origNames maps. - // They are handled specially when encoding and decoding. - continue + // Determine the struct field that contains this oneof. + // Each wrapper is assignable to exactly one parent field. + var foundOneof bool + for i := 0; i < t.NumField() && !foundOneof; i++ { + if p.Type.AssignableTo(t.Field(i).Type) { + p.Field = i + foundOneof = true + } + } + if !foundOneof { + panic(fmt.Sprintf("%v is not a generated message in the open-struct API", t)) + } + prop.OneofTypes[p.Prop.OrigName] = p } - if p.Required { - reqCount++ - } - prop.decoderTags.put(p.Tag, i) - prop.decoderOrigNames[p.OrigName] = i } - prop.reqCount = reqCount return prop } -// A global registry of enum types. -// The generated code will register the generated maps by calling RegisterEnum. - -var enumValueMaps = make(map[string]map[string]int32) - -// RegisterEnum is called from the generated code to install the enum descriptor -// maps into the global table to aid parsing text format protocol buffers. -func RegisterEnum(typeName string, unusedNameMap map[int32]string, valueMap map[string]int32) { - if _, ok := enumValueMaps[typeName]; ok { - panic("proto: duplicate enum registered: " + typeName) - } - enumValueMaps[typeName] = valueMap -} - -// EnumValueMap returns the mapping from names to integers of the -// enum type enumType, or a nil if not found. -func EnumValueMap(enumType string) map[string]int32 { - return enumValueMaps[enumType] -} - -// A registry of all linked message types. -// The string is a fully-qualified proto name ("pkg.Message"). -var ( - protoTypedNils = make(map[string]Message) // a map from proto names to typed nil pointers - protoMapTypes = make(map[string]reflect.Type) // a map from proto names to map types - revProtoTypes = make(map[reflect.Type]string) -) - -// RegisterType is called from generated code and maps from the fully qualified -// proto name to the type (pointer to struct) of the protocol buffer. -func RegisterType(x Message, name string) { - if _, ok := protoTypedNils[name]; ok { - // TODO: Some day, make this a panic. - log.Printf("proto: duplicate proto type registered: %s", name) - return - } - t := reflect.TypeOf(x) - if v := reflect.ValueOf(x); v.Kind() == reflect.Ptr && v.Pointer() == 0 { - // Generated code always calls RegisterType with nil x. - // This check is just for extra safety. - protoTypedNils[name] = x - } else { - protoTypedNils[name] = reflect.Zero(t).Interface().(Message) - } - revProtoTypes[t] = name -} - -// RegisterMapType is called from generated code and maps from the fully qualified -// proto name to the native map type of the proto map definition. -func RegisterMapType(x interface{}, name string) { - if reflect.TypeOf(x).Kind() != reflect.Map { - panic(fmt.Sprintf("RegisterMapType(%T, %q); want map", x, name)) - } - if _, ok := protoMapTypes[name]; ok { - log.Printf("proto: duplicate proto type registered: %s", name) - return - } - t := reflect.TypeOf(x) - protoMapTypes[name] = t - revProtoTypes[t] = name -} - -// MessageName returns the fully-qualified proto name for the given message type. -func MessageName(x Message) string { - type xname interface { - XXX_MessageName() string - } - if m, ok := x.(xname); ok { - return m.XXX_MessageName() - } - return revProtoTypes[reflect.TypeOf(x)] -} - -// MessageType returns the message type (pointer to struct) for a named message. -// The type is not guaranteed to implement proto.Message if the name refers to a -// map entry. -func MessageType(name string) reflect.Type { - if t, ok := protoTypedNils[name]; ok { - return reflect.TypeOf(t) - } - return protoMapTypes[name] -} - -// A registry of all linked proto files. -var ( - protoFiles = make(map[string][]byte) // file name => fileDescriptor -) - -// RegisterFile is called from generated code and maps from the -// full file name of a .proto file to its compressed FileDescriptorProto. -func RegisterFile(filename string, fileDescriptor []byte) { - protoFiles[filename] = fileDescriptor -} - -// FileDescriptor returns the compressed FileDescriptorProto for a .proto file. -func FileDescriptor(filename string) []byte { return protoFiles[filename] } +func (sp *StructProperties) Len() int { return len(sp.Prop) } +func (sp *StructProperties) Less(i, j int) bool { return false } +func (sp *StructProperties) Swap(i, j int) { return } diff --git a/vendor/github.com/golang/protobuf/proto/proto.go b/vendor/github.com/golang/protobuf/proto/proto.go new file mode 100644 index 000000000..5aee89c32 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/proto.go @@ -0,0 +1,167 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package proto provides functionality for handling protocol buffer messages. +// In particular, it provides marshaling and unmarshaling between a protobuf +// message and the binary wire format. +// +// See https://developers.google.com/protocol-buffers/docs/gotutorial for +// more information. +// +// Deprecated: Use the "google.golang.org/protobuf/proto" package instead. +package proto + +import ( + protoV2 "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" + "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + ProtoPackageIsVersion1 = true + ProtoPackageIsVersion2 = true + ProtoPackageIsVersion3 = true + ProtoPackageIsVersion4 = true +) + +// GeneratedEnum is any enum type generated by protoc-gen-go +// which is a named int32 kind. +// This type exists for documentation purposes. +type GeneratedEnum interface{} + +// GeneratedMessage is any message type generated by protoc-gen-go +// which is a pointer to a named struct kind. +// This type exists for documentation purposes. +type GeneratedMessage interface{} + +// Message is a protocol buffer message. +// +// This is the v1 version of the message interface and is marginally better +// than an empty interface as it lacks any method to programatically interact +// with the contents of the message. +// +// A v2 message is declared in "google.golang.org/protobuf/proto".Message and +// exposes protobuf reflection as a first-class feature of the interface. +// +// To convert a v1 message to a v2 message, use the MessageV2 function. +// To convert a v2 message to a v1 message, use the MessageV1 function. +type Message = protoiface.MessageV1 + +// MessageV1 converts either a v1 or v2 message to a v1 message. +// It returns nil if m is nil. +func MessageV1(m GeneratedMessage) protoiface.MessageV1 { + return protoimpl.X.ProtoMessageV1Of(m) +} + +// MessageV2 converts either a v1 or v2 message to a v2 message. +// It returns nil if m is nil. +func MessageV2(m GeneratedMessage) protoV2.Message { + return protoimpl.X.ProtoMessageV2Of(m) +} + +// MessageReflect returns a reflective view for a message. +// It returns nil if m is nil. +func MessageReflect(m Message) protoreflect.Message { + return protoimpl.X.MessageOf(m) +} + +// Marshaler is implemented by messages that can marshal themselves. +// This interface is used by the following functions: Size, Marshal, +// Buffer.Marshal, and Buffer.EncodeMessage. +// +// Deprecated: Do not implement. +type Marshaler interface { + // Marshal formats the encoded bytes of the message. + // It should be deterministic and emit valid protobuf wire data. + // The caller takes ownership of the returned buffer. + Marshal() ([]byte, error) +} + +// Unmarshaler is implemented by messages that can unmarshal themselves. +// This interface is used by the following functions: Unmarshal, UnmarshalMerge, +// Buffer.Unmarshal, Buffer.DecodeMessage, and Buffer.DecodeGroup. +// +// Deprecated: Do not implement. +type Unmarshaler interface { + // Unmarshal parses the encoded bytes of the protobuf wire input. + // The provided buffer is only valid for during method call. + // It should not reset the receiver message. + Unmarshal([]byte) error +} + +// Merger is implemented by messages that can merge themselves. +// This interface is used by the following functions: Clone and Merge. +// +// Deprecated: Do not implement. +type Merger interface { + // Merge merges the contents of src into the receiver message. + // It clones all data structures in src such that it aliases no mutable + // memory referenced by src. + Merge(src Message) +} + +// RequiredNotSetError is an error type returned when +// marshaling or unmarshaling a message with missing required fields. +type RequiredNotSetError struct { + err error +} + +func (e *RequiredNotSetError) Error() string { + if e.err != nil { + return e.err.Error() + } + return "proto: required field not set" +} +func (e *RequiredNotSetError) RequiredNotSet() bool { + return true +} + +func checkRequiredNotSet(m protoV2.Message) error { + if err := protoV2.CheckInitialized(m); err != nil { + return &RequiredNotSetError{err: err} + } + return nil +} + +// Clone returns a deep copy of src. +func Clone(src Message) Message { + return MessageV1(protoV2.Clone(MessageV2(src))) +} + +// Merge merges src into dst, which must be messages of the same type. +// +// Populated scalar fields in src are copied to dst, while populated +// singular messages in src are merged into dst by recursively calling Merge. +// The elements of every list field in src is appended to the corresponded +// list fields in dst. The entries of every map field in src is copied into +// the corresponding map field in dst, possibly replacing existing entries. +// The unknown fields of src are appended to the unknown fields of dst. +func Merge(dst, src Message) { + protoV2.Merge(MessageV2(dst), MessageV2(src)) +} + +// Equal reports whether two messages are equal. +// If two messages marshal to the same bytes under deterministic serialization, +// then Equal is guaranteed to report true. +// +// Two messages are equal if they are the same protobuf message type, +// have the same set of populated known and extension field values, +// and the same set of unknown fields values. +// +// Scalar values are compared with the equivalent of the == operator in Go, +// except bytes values which are compared using bytes.Equal and +// floating point values which specially treat NaNs as equal. +// Message values are compared by recursively calling Equal. +// Lists are equal if each element value is also equal. +// Maps are equal if they have the same set of keys, where the pair of values +// for each key is also equal. +func Equal(x, y Message) bool { + return protoV2.Equal(MessageV2(x), MessageV2(y)) +} + +func isMessageSet(md protoreflect.MessageDescriptor) bool { + ms, ok := md.(interface{ IsMessageSet() bool }) + return ok && ms.IsMessageSet() +} diff --git a/vendor/github.com/golang/protobuf/proto/registry.go b/vendor/github.com/golang/protobuf/proto/registry.go new file mode 100644 index 000000000..1e7ff6420 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/registry.go @@ -0,0 +1,323 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "bytes" + "compress/gzip" + "fmt" + "io/ioutil" + "reflect" + "strings" + "sync" + + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/runtime/protoimpl" +) + +// filePath is the path to the proto source file. +type filePath = string // e.g., "google/protobuf/descriptor.proto" + +// fileDescGZIP is the compressed contents of the encoded FileDescriptorProto. +type fileDescGZIP = []byte + +var fileCache sync.Map // map[filePath]fileDescGZIP + +// RegisterFile is called from generated code to register the compressed +// FileDescriptorProto with the file path for a proto source file. +// +// Deprecated: Use protoregistry.GlobalFiles.RegisterFile instead. +func RegisterFile(s filePath, d fileDescGZIP) { + // Decompress the descriptor. + zr, err := gzip.NewReader(bytes.NewReader(d)) + if err != nil { + panic(fmt.Sprintf("proto: invalid compressed file descriptor: %v", err)) + } + b, err := ioutil.ReadAll(zr) + if err != nil { + panic(fmt.Sprintf("proto: invalid compressed file descriptor: %v", err)) + } + + // Construct a protoreflect.FileDescriptor from the raw descriptor. + // Note that DescBuilder.Build automatically registers the constructed + // file descriptor with the v2 registry. + protoimpl.DescBuilder{RawDescriptor: b}.Build() + + // Locally cache the raw descriptor form for the file. + fileCache.Store(s, d) +} + +// FileDescriptor returns the compressed FileDescriptorProto given the file path +// for a proto source file. It returns nil if not found. +// +// Deprecated: Use protoregistry.GlobalFiles.FindFileByPath instead. +func FileDescriptor(s filePath) fileDescGZIP { + if v, ok := fileCache.Load(s); ok { + return v.(fileDescGZIP) + } + + // Find the descriptor in the v2 registry. + var b []byte + if fd, _ := protoregistry.GlobalFiles.FindFileByPath(s); fd != nil { + if fd, ok := fd.(interface{ ProtoLegacyRawDesc() []byte }); ok { + b = fd.ProtoLegacyRawDesc() + } else { + // TODO: Use protodesc.ToFileDescriptorProto to construct + // a descriptorpb.FileDescriptorProto and marshal it. + // However, doing so causes the proto package to have a dependency + // on descriptorpb, leading to cyclic dependency issues. + } + } + + // Locally cache the raw descriptor form for the file. + if len(b) > 0 { + v, _ := fileCache.LoadOrStore(s, protoimpl.X.CompressGZIP(b)) + return v.(fileDescGZIP) + } + return nil +} + +// enumName is the name of an enum. For historical reasons, the enum name is +// neither the full Go name nor the full protobuf name of the enum. +// The name is the dot-separated combination of just the proto package that the +// enum is declared within followed by the Go type name of the generated enum. +type enumName = string // e.g., "my.proto.package.GoMessage_GoEnum" + +// enumsByName maps enum values by name to their numeric counterpart. +type enumsByName = map[string]int32 + +// enumsByNumber maps enum values by number to their name counterpart. +type enumsByNumber = map[int32]string + +var enumCache sync.Map // map[enumName]enumsByName +var numFilesCache sync.Map // map[protoreflect.FullName]int + +// RegisterEnum is called from the generated code to register the mapping of +// enum value names to enum numbers for the enum identified by s. +// +// Deprecated: Use protoregistry.GlobalTypes.RegisterEnum instead. +func RegisterEnum(s enumName, _ enumsByNumber, m enumsByName) { + if _, ok := enumCache.Load(s); ok { + panic("proto: duplicate enum registered: " + s) + } + enumCache.Store(s, m) + + // This does not forward registration to the v2 registry since this API + // lacks sufficient information to construct a complete v2 enum descriptor. +} + +// EnumValueMap returns the mapping from enum value names to enum numbers for +// the enum of the given name. It returns nil if not found. +// +// Deprecated: Use protoregistry.GlobalTypes.FindEnumByName instead. +func EnumValueMap(s enumName) enumsByName { + if v, ok := enumCache.Load(s); ok { + return v.(enumsByName) + } + + // Check whether the cache is stale. If the number of files in the current + // package differs, then it means that some enums may have been recently + // registered upstream that we do not know about. + var protoPkg protoreflect.FullName + if i := strings.LastIndexByte(s, '.'); i >= 0 { + protoPkg = protoreflect.FullName(s[:i]) + } + v, _ := numFilesCache.Load(protoPkg) + numFiles, _ := v.(int) + if protoregistry.GlobalFiles.NumFilesByPackage(protoPkg) == numFiles { + return nil // cache is up-to-date; was not found earlier + } + + // Update the enum cache for all enums declared in the given proto package. + numFiles = 0 + protoregistry.GlobalFiles.RangeFilesByPackage(protoPkg, func(fd protoreflect.FileDescriptor) bool { + walkEnums(fd, func(ed protoreflect.EnumDescriptor) { + name := protoimpl.X.LegacyEnumName(ed) + if _, ok := enumCache.Load(name); !ok { + m := make(enumsByName) + evs := ed.Values() + for i := evs.Len() - 1; i >= 0; i-- { + ev := evs.Get(i) + m[string(ev.Name())] = int32(ev.Number()) + } + enumCache.LoadOrStore(name, m) + } + }) + numFiles++ + return true + }) + numFilesCache.Store(protoPkg, numFiles) + + // Check cache again for enum map. + if v, ok := enumCache.Load(s); ok { + return v.(enumsByName) + } + return nil +} + +// walkEnums recursively walks all enums declared in d. +func walkEnums(d interface { + Enums() protoreflect.EnumDescriptors + Messages() protoreflect.MessageDescriptors +}, f func(protoreflect.EnumDescriptor)) { + eds := d.Enums() + for i := eds.Len() - 1; i >= 0; i-- { + f(eds.Get(i)) + } + mds := d.Messages() + for i := mds.Len() - 1; i >= 0; i-- { + walkEnums(mds.Get(i), f) + } +} + +// messageName is the full name of protobuf message. +type messageName = string + +var messageTypeCache sync.Map // map[messageName]reflect.Type + +// RegisterType is called from generated code to register the message Go type +// for a message of the given name. +// +// Deprecated: Use protoregistry.GlobalTypes.RegisterMessage instead. +func RegisterType(m Message, s messageName) { + mt := protoimpl.X.LegacyMessageTypeOf(m, protoreflect.FullName(s)) + if err := protoregistry.GlobalTypes.RegisterMessage(mt); err != nil { + panic(err) + } + messageTypeCache.Store(s, reflect.TypeOf(m)) +} + +// RegisterMapType is called from generated code to register the Go map type +// for a protobuf message representing a map entry. +// +// Deprecated: Do not use. +func RegisterMapType(m interface{}, s messageName) { + t := reflect.TypeOf(m) + if t.Kind() != reflect.Map { + panic(fmt.Sprintf("invalid map kind: %v", t)) + } + if _, ok := messageTypeCache.Load(s); ok { + panic(fmt.Errorf("proto: duplicate proto message registered: %s", s)) + } + messageTypeCache.Store(s, t) +} + +// MessageType returns the message type for a named message. +// It returns nil if not found. +// +// Deprecated: Use protoregistry.GlobalTypes.FindMessageByName instead. +func MessageType(s messageName) reflect.Type { + if v, ok := messageTypeCache.Load(s); ok { + return v.(reflect.Type) + } + + // Derive the message type from the v2 registry. + var t reflect.Type + if mt, _ := protoregistry.GlobalTypes.FindMessageByName(protoreflect.FullName(s)); mt != nil { + t = messageGoType(mt) + } + + // If we could not get a concrete type, it is possible that it is a + // pseudo-message for a map entry. + if t == nil { + d, _ := protoregistry.GlobalFiles.FindDescriptorByName(protoreflect.FullName(s)) + if md, _ := d.(protoreflect.MessageDescriptor); md != nil && md.IsMapEntry() { + kt := goTypeForField(md.Fields().ByNumber(1)) + vt := goTypeForField(md.Fields().ByNumber(2)) + t = reflect.MapOf(kt, vt) + } + } + + // Locally cache the message type for the given name. + if t != nil { + v, _ := messageTypeCache.LoadOrStore(s, t) + return v.(reflect.Type) + } + return nil +} + +func goTypeForField(fd protoreflect.FieldDescriptor) reflect.Type { + switch k := fd.Kind(); k { + case protoreflect.EnumKind: + if et, _ := protoregistry.GlobalTypes.FindEnumByName(fd.Enum().FullName()); et != nil { + return enumGoType(et) + } + return reflect.TypeOf(protoreflect.EnumNumber(0)) + case protoreflect.MessageKind, protoreflect.GroupKind: + if mt, _ := protoregistry.GlobalTypes.FindMessageByName(fd.Message().FullName()); mt != nil { + return messageGoType(mt) + } + return reflect.TypeOf((*protoreflect.Message)(nil)).Elem() + default: + return reflect.TypeOf(fd.Default().Interface()) + } +} + +func enumGoType(et protoreflect.EnumType) reflect.Type { + return reflect.TypeOf(et.New(0)) +} + +func messageGoType(mt protoreflect.MessageType) reflect.Type { + return reflect.TypeOf(MessageV1(mt.Zero().Interface())) +} + +// MessageName returns the full protobuf name for the given message type. +// +// Deprecated: Use protoreflect.MessageDescriptor.FullName instead. +func MessageName(m Message) messageName { + if m == nil { + return "" + } + if m, ok := m.(interface{ XXX_MessageName() messageName }); ok { + return m.XXX_MessageName() + } + return messageName(protoimpl.X.MessageDescriptorOf(m).FullName()) +} + +// RegisterExtension is called from the generated code to register +// the extension descriptor. +// +// Deprecated: Use protoregistry.GlobalTypes.RegisterExtension instead. +func RegisterExtension(d *ExtensionDesc) { + if err := protoregistry.GlobalTypes.RegisterExtension(d); err != nil { + panic(err) + } +} + +type extensionsByNumber = map[int32]*ExtensionDesc + +var extensionCache sync.Map // map[messageName]extensionsByNumber + +// RegisteredExtensions returns a map of the registered extensions for the +// provided protobuf message, indexed by the extension field number. +// +// Deprecated: Use protoregistry.GlobalTypes.RangeExtensionsByMessage instead. +func RegisteredExtensions(m Message) extensionsByNumber { + // Check whether the cache is stale. If the number of extensions for + // the given message differs, then it means that some extensions were + // recently registered upstream that we do not know about. + s := MessageName(m) + v, _ := extensionCache.Load(s) + xs, _ := v.(extensionsByNumber) + if protoregistry.GlobalTypes.NumExtensionsByMessage(protoreflect.FullName(s)) == len(xs) { + return xs // cache is up-to-date + } + + // Cache is stale, re-compute the extensions map. + xs = make(extensionsByNumber) + protoregistry.GlobalTypes.RangeExtensionsByMessage(protoreflect.FullName(s), func(xt protoreflect.ExtensionType) bool { + if xd, ok := xt.(*ExtensionDesc); ok { + xs[int32(xt.TypeDescriptor().Number())] = xd + } else { + // TODO: This implies that the protoreflect.ExtensionType is a + // custom type not generated by protoc-gen-go. We could try and + // convert the type to an ExtensionDesc. + } + return true + }) + extensionCache.Store(s, xs) + return xs +} diff --git a/vendor/github.com/golang/protobuf/proto/table_marshal.go b/vendor/github.com/golang/protobuf/proto/table_marshal.go deleted file mode 100644 index 5cb11fa95..000000000 --- a/vendor/github.com/golang/protobuf/proto/table_marshal.go +++ /dev/null @@ -1,2776 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2016 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -import ( - "errors" - "fmt" - "math" - "reflect" - "sort" - "strconv" - "strings" - "sync" - "sync/atomic" - "unicode/utf8" -) - -// a sizer takes a pointer to a field and the size of its tag, computes the size of -// the encoded data. -type sizer func(pointer, int) int - -// a marshaler takes a byte slice, a pointer to a field, and its tag (in wire format), -// marshals the field to the end of the slice, returns the slice and error (if any). -type marshaler func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) - -// marshalInfo is the information used for marshaling a message. -type marshalInfo struct { - typ reflect.Type - fields []*marshalFieldInfo - unrecognized field // offset of XXX_unrecognized - extensions field // offset of XXX_InternalExtensions - v1extensions field // offset of XXX_extensions - sizecache field // offset of XXX_sizecache - initialized int32 // 0 -- only typ is set, 1 -- fully initialized - messageset bool // uses message set wire format - hasmarshaler bool // has custom marshaler - sync.RWMutex // protect extElems map, also for initialization - extElems map[int32]*marshalElemInfo // info of extension elements -} - -// marshalFieldInfo is the information used for marshaling a field of a message. -type marshalFieldInfo struct { - field field - wiretag uint64 // tag in wire format - tagsize int // size of tag in wire format - sizer sizer - marshaler marshaler - isPointer bool - required bool // field is required - name string // name of the field, for error reporting - oneofElems map[reflect.Type]*marshalElemInfo // info of oneof elements -} - -// marshalElemInfo is the information used for marshaling an extension or oneof element. -type marshalElemInfo struct { - wiretag uint64 // tag in wire format - tagsize int // size of tag in wire format - sizer sizer - marshaler marshaler - isptr bool // elem is pointer typed, thus interface of this type is a direct interface (extension only) - deref bool // dereference the pointer before operating on it; implies isptr -} - -var ( - marshalInfoMap = map[reflect.Type]*marshalInfo{} - marshalInfoLock sync.Mutex -) - -// getMarshalInfo returns the information to marshal a given type of message. -// The info it returns may not necessarily initialized. -// t is the type of the message (NOT the pointer to it). -func getMarshalInfo(t reflect.Type) *marshalInfo { - marshalInfoLock.Lock() - u, ok := marshalInfoMap[t] - if !ok { - u = &marshalInfo{typ: t} - marshalInfoMap[t] = u - } - marshalInfoLock.Unlock() - return u -} - -// Size is the entry point from generated code, -// and should be ONLY called by generated code. -// It computes the size of encoded data of msg. -// a is a pointer to a place to store cached marshal info. -func (a *InternalMessageInfo) Size(msg Message) int { - u := getMessageMarshalInfo(msg, a) - ptr := toPointer(&msg) - if ptr.isNil() { - // We get here if msg is a typed nil ((*SomeMessage)(nil)), - // so it satisfies the interface, and msg == nil wouldn't - // catch it. We don't want crash in this case. - return 0 - } - return u.size(ptr) -} - -// Marshal is the entry point from generated code, -// and should be ONLY called by generated code. -// It marshals msg to the end of b. -// a is a pointer to a place to store cached marshal info. -func (a *InternalMessageInfo) Marshal(b []byte, msg Message, deterministic bool) ([]byte, error) { - u := getMessageMarshalInfo(msg, a) - ptr := toPointer(&msg) - if ptr.isNil() { - // We get here if msg is a typed nil ((*SomeMessage)(nil)), - // so it satisfies the interface, and msg == nil wouldn't - // catch it. We don't want crash in this case. - return b, ErrNil - } - return u.marshal(b, ptr, deterministic) -} - -func getMessageMarshalInfo(msg interface{}, a *InternalMessageInfo) *marshalInfo { - // u := a.marshal, but atomically. - // We use an atomic here to ensure memory consistency. - u := atomicLoadMarshalInfo(&a.marshal) - if u == nil { - // Get marshal information from type of message. - t := reflect.ValueOf(msg).Type() - if t.Kind() != reflect.Ptr { - panic(fmt.Sprintf("cannot handle non-pointer message type %v", t)) - } - u = getMarshalInfo(t.Elem()) - // Store it in the cache for later users. - // a.marshal = u, but atomically. - atomicStoreMarshalInfo(&a.marshal, u) - } - return u -} - -// size is the main function to compute the size of the encoded data of a message. -// ptr is the pointer to the message. -func (u *marshalInfo) size(ptr pointer) int { - if atomic.LoadInt32(&u.initialized) == 0 { - u.computeMarshalInfo() - } - - // If the message can marshal itself, let it do it, for compatibility. - // NOTE: This is not efficient. - if u.hasmarshaler { - m := ptr.asPointerTo(u.typ).Interface().(Marshaler) - b, _ := m.Marshal() - return len(b) - } - - n := 0 - for _, f := range u.fields { - if f.isPointer && ptr.offset(f.field).getPointer().isNil() { - // nil pointer always marshals to nothing - continue - } - n += f.sizer(ptr.offset(f.field), f.tagsize) - } - if u.extensions.IsValid() { - e := ptr.offset(u.extensions).toExtensions() - if u.messageset { - n += u.sizeMessageSet(e) - } else { - n += u.sizeExtensions(e) - } - } - if u.v1extensions.IsValid() { - m := *ptr.offset(u.v1extensions).toOldExtensions() - n += u.sizeV1Extensions(m) - } - if u.unrecognized.IsValid() { - s := *ptr.offset(u.unrecognized).toBytes() - n += len(s) - } - // cache the result for use in marshal - if u.sizecache.IsValid() { - atomic.StoreInt32(ptr.offset(u.sizecache).toInt32(), int32(n)) - } - return n -} - -// cachedsize gets the size from cache. If there is no cache (i.e. message is not generated), -// fall back to compute the size. -func (u *marshalInfo) cachedsize(ptr pointer) int { - if u.sizecache.IsValid() { - return int(atomic.LoadInt32(ptr.offset(u.sizecache).toInt32())) - } - return u.size(ptr) -} - -// marshal is the main function to marshal a message. It takes a byte slice and appends -// the encoded data to the end of the slice, returns the slice and error (if any). -// ptr is the pointer to the message. -// If deterministic is true, map is marshaled in deterministic order. -func (u *marshalInfo) marshal(b []byte, ptr pointer, deterministic bool) ([]byte, error) { - if atomic.LoadInt32(&u.initialized) == 0 { - u.computeMarshalInfo() - } - - // If the message can marshal itself, let it do it, for compatibility. - // NOTE: This is not efficient. - if u.hasmarshaler { - m := ptr.asPointerTo(u.typ).Interface().(Marshaler) - b1, err := m.Marshal() - b = append(b, b1...) - return b, err - } - - var err, errLater error - // The old marshaler encodes extensions at beginning. - if u.extensions.IsValid() { - e := ptr.offset(u.extensions).toExtensions() - if u.messageset { - b, err = u.appendMessageSet(b, e, deterministic) - } else { - b, err = u.appendExtensions(b, e, deterministic) - } - if err != nil { - return b, err - } - } - if u.v1extensions.IsValid() { - m := *ptr.offset(u.v1extensions).toOldExtensions() - b, err = u.appendV1Extensions(b, m, deterministic) - if err != nil { - return b, err - } - } - for _, f := range u.fields { - if f.required { - if ptr.offset(f.field).getPointer().isNil() { - // Required field is not set. - // We record the error but keep going, to give a complete marshaling. - if errLater == nil { - errLater = &RequiredNotSetError{f.name} - } - continue - } - } - if f.isPointer && ptr.offset(f.field).getPointer().isNil() { - // nil pointer always marshals to nothing - continue - } - b, err = f.marshaler(b, ptr.offset(f.field), f.wiretag, deterministic) - if err != nil { - if err1, ok := err.(*RequiredNotSetError); ok { - // Required field in submessage is not set. - // We record the error but keep going, to give a complete marshaling. - if errLater == nil { - errLater = &RequiredNotSetError{f.name + "." + err1.field} - } - continue - } - if err == errRepeatedHasNil { - err = errors.New("proto: repeated field " + f.name + " has nil element") - } - if err == errInvalidUTF8 { - if errLater == nil { - fullName := revProtoTypes[reflect.PtrTo(u.typ)] + "." + f.name - errLater = &invalidUTF8Error{fullName} - } - continue - } - return b, err - } - } - if u.unrecognized.IsValid() { - s := *ptr.offset(u.unrecognized).toBytes() - b = append(b, s...) - } - return b, errLater -} - -// computeMarshalInfo initializes the marshal info. -func (u *marshalInfo) computeMarshalInfo() { - u.Lock() - defer u.Unlock() - if u.initialized != 0 { // non-atomic read is ok as it is protected by the lock - return - } - - t := u.typ - u.unrecognized = invalidField - u.extensions = invalidField - u.v1extensions = invalidField - u.sizecache = invalidField - - // If the message can marshal itself, let it do it, for compatibility. - // NOTE: This is not efficient. - if reflect.PtrTo(t).Implements(marshalerType) { - u.hasmarshaler = true - atomic.StoreInt32(&u.initialized, 1) - return - } - - // get oneof implementers - var oneofImplementers []interface{} - switch m := reflect.Zero(reflect.PtrTo(t)).Interface().(type) { - case oneofFuncsIface: - _, _, _, oneofImplementers = m.XXX_OneofFuncs() - case oneofWrappersIface: - oneofImplementers = m.XXX_OneofWrappers() - } - - n := t.NumField() - - // deal with XXX fields first - for i := 0; i < t.NumField(); i++ { - f := t.Field(i) - if !strings.HasPrefix(f.Name, "XXX_") { - continue - } - switch f.Name { - case "XXX_sizecache": - u.sizecache = toField(&f) - case "XXX_unrecognized": - u.unrecognized = toField(&f) - case "XXX_InternalExtensions": - u.extensions = toField(&f) - u.messageset = f.Tag.Get("protobuf_messageset") == "1" - case "XXX_extensions": - u.v1extensions = toField(&f) - case "XXX_NoUnkeyedLiteral": - // nothing to do - default: - panic("unknown XXX field: " + f.Name) - } - n-- - } - - // normal fields - fields := make([]marshalFieldInfo, n) // batch allocation - u.fields = make([]*marshalFieldInfo, 0, n) - for i, j := 0, 0; i < t.NumField(); i++ { - f := t.Field(i) - - if strings.HasPrefix(f.Name, "XXX_") { - continue - } - field := &fields[j] - j++ - field.name = f.Name - u.fields = append(u.fields, field) - if f.Tag.Get("protobuf_oneof") != "" { - field.computeOneofFieldInfo(&f, oneofImplementers) - continue - } - if f.Tag.Get("protobuf") == "" { - // field has no tag (not in generated message), ignore it - u.fields = u.fields[:len(u.fields)-1] - j-- - continue - } - field.computeMarshalFieldInfo(&f) - } - - // fields are marshaled in tag order on the wire. - sort.Sort(byTag(u.fields)) - - atomic.StoreInt32(&u.initialized, 1) -} - -// helper for sorting fields by tag -type byTag []*marshalFieldInfo - -func (a byTag) Len() int { return len(a) } -func (a byTag) Swap(i, j int) { a[i], a[j] = a[j], a[i] } -func (a byTag) Less(i, j int) bool { return a[i].wiretag < a[j].wiretag } - -// getExtElemInfo returns the information to marshal an extension element. -// The info it returns is initialized. -func (u *marshalInfo) getExtElemInfo(desc *ExtensionDesc) *marshalElemInfo { - // get from cache first - u.RLock() - e, ok := u.extElems[desc.Field] - u.RUnlock() - if ok { - return e - } - - t := reflect.TypeOf(desc.ExtensionType) // pointer or slice to basic type or struct - tags := strings.Split(desc.Tag, ",") - tag, err := strconv.Atoi(tags[1]) - if err != nil { - panic("tag is not an integer") - } - wt := wiretype(tags[0]) - if t.Kind() == reflect.Ptr && t.Elem().Kind() != reflect.Struct { - t = t.Elem() - } - sizer, marshaler := typeMarshaler(t, tags, false, false) - var deref bool - if t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 { - t = reflect.PtrTo(t) - deref = true - } - e = &marshalElemInfo{ - wiretag: uint64(tag)<<3 | wt, - tagsize: SizeVarint(uint64(tag) << 3), - sizer: sizer, - marshaler: marshaler, - isptr: t.Kind() == reflect.Ptr, - deref: deref, - } - - // update cache - u.Lock() - if u.extElems == nil { - u.extElems = make(map[int32]*marshalElemInfo) - } - u.extElems[desc.Field] = e - u.Unlock() - return e -} - -// computeMarshalFieldInfo fills up the information to marshal a field. -func (fi *marshalFieldInfo) computeMarshalFieldInfo(f *reflect.StructField) { - // parse protobuf tag of the field. - // tag has format of "bytes,49,opt,name=foo,def=hello!" - tags := strings.Split(f.Tag.Get("protobuf"), ",") - if tags[0] == "" { - return - } - tag, err := strconv.Atoi(tags[1]) - if err != nil { - panic("tag is not an integer") - } - wt := wiretype(tags[0]) - if tags[2] == "req" { - fi.required = true - } - fi.setTag(f, tag, wt) - fi.setMarshaler(f, tags) -} - -func (fi *marshalFieldInfo) computeOneofFieldInfo(f *reflect.StructField, oneofImplementers []interface{}) { - fi.field = toField(f) - fi.wiretag = math.MaxInt32 // Use a large tag number, make oneofs sorted at the end. This tag will not appear on the wire. - fi.isPointer = true - fi.sizer, fi.marshaler = makeOneOfMarshaler(fi, f) - fi.oneofElems = make(map[reflect.Type]*marshalElemInfo) - - ityp := f.Type // interface type - for _, o := range oneofImplementers { - t := reflect.TypeOf(o) - if !t.Implements(ityp) { - continue - } - sf := t.Elem().Field(0) // oneof implementer is a struct with a single field - tags := strings.Split(sf.Tag.Get("protobuf"), ",") - tag, err := strconv.Atoi(tags[1]) - if err != nil { - panic("tag is not an integer") - } - wt := wiretype(tags[0]) - sizer, marshaler := typeMarshaler(sf.Type, tags, false, true) // oneof should not omit any zero value - fi.oneofElems[t.Elem()] = &marshalElemInfo{ - wiretag: uint64(tag)<<3 | wt, - tagsize: SizeVarint(uint64(tag) << 3), - sizer: sizer, - marshaler: marshaler, - } - } -} - -// wiretype returns the wire encoding of the type. -func wiretype(encoding string) uint64 { - switch encoding { - case "fixed32": - return WireFixed32 - case "fixed64": - return WireFixed64 - case "varint", "zigzag32", "zigzag64": - return WireVarint - case "bytes": - return WireBytes - case "group": - return WireStartGroup - } - panic("unknown wire type " + encoding) -} - -// setTag fills up the tag (in wire format) and its size in the info of a field. -func (fi *marshalFieldInfo) setTag(f *reflect.StructField, tag int, wt uint64) { - fi.field = toField(f) - fi.wiretag = uint64(tag)<<3 | wt - fi.tagsize = SizeVarint(uint64(tag) << 3) -} - -// setMarshaler fills up the sizer and marshaler in the info of a field. -func (fi *marshalFieldInfo) setMarshaler(f *reflect.StructField, tags []string) { - switch f.Type.Kind() { - case reflect.Map: - // map field - fi.isPointer = true - fi.sizer, fi.marshaler = makeMapMarshaler(f) - return - case reflect.Ptr, reflect.Slice: - fi.isPointer = true - } - fi.sizer, fi.marshaler = typeMarshaler(f.Type, tags, true, false) -} - -// typeMarshaler returns the sizer and marshaler of a given field. -// t is the type of the field. -// tags is the generated "protobuf" tag of the field. -// If nozero is true, zero value is not marshaled to the wire. -// If oneof is true, it is a oneof field. -func typeMarshaler(t reflect.Type, tags []string, nozero, oneof bool) (sizer, marshaler) { - encoding := tags[0] - - pointer := false - slice := false - if t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 { - slice = true - t = t.Elem() - } - if t.Kind() == reflect.Ptr { - pointer = true - t = t.Elem() - } - - packed := false - proto3 := false - validateUTF8 := true - for i := 2; i < len(tags); i++ { - if tags[i] == "packed" { - packed = true - } - if tags[i] == "proto3" { - proto3 = true - } - } - validateUTF8 = validateUTF8 && proto3 - - switch t.Kind() { - case reflect.Bool: - if pointer { - return sizeBoolPtr, appendBoolPtr - } - if slice { - if packed { - return sizeBoolPackedSlice, appendBoolPackedSlice - } - return sizeBoolSlice, appendBoolSlice - } - if nozero { - return sizeBoolValueNoZero, appendBoolValueNoZero - } - return sizeBoolValue, appendBoolValue - case reflect.Uint32: - switch encoding { - case "fixed32": - if pointer { - return sizeFixed32Ptr, appendFixed32Ptr - } - if slice { - if packed { - return sizeFixed32PackedSlice, appendFixed32PackedSlice - } - return sizeFixed32Slice, appendFixed32Slice - } - if nozero { - return sizeFixed32ValueNoZero, appendFixed32ValueNoZero - } - return sizeFixed32Value, appendFixed32Value - case "varint": - if pointer { - return sizeVarint32Ptr, appendVarint32Ptr - } - if slice { - if packed { - return sizeVarint32PackedSlice, appendVarint32PackedSlice - } - return sizeVarint32Slice, appendVarint32Slice - } - if nozero { - return sizeVarint32ValueNoZero, appendVarint32ValueNoZero - } - return sizeVarint32Value, appendVarint32Value - } - case reflect.Int32: - switch encoding { - case "fixed32": - if pointer { - return sizeFixedS32Ptr, appendFixedS32Ptr - } - if slice { - if packed { - return sizeFixedS32PackedSlice, appendFixedS32PackedSlice - } - return sizeFixedS32Slice, appendFixedS32Slice - } - if nozero { - return sizeFixedS32ValueNoZero, appendFixedS32ValueNoZero - } - return sizeFixedS32Value, appendFixedS32Value - case "varint": - if pointer { - return sizeVarintS32Ptr, appendVarintS32Ptr - } - if slice { - if packed { - return sizeVarintS32PackedSlice, appendVarintS32PackedSlice - } - return sizeVarintS32Slice, appendVarintS32Slice - } - if nozero { - return sizeVarintS32ValueNoZero, appendVarintS32ValueNoZero - } - return sizeVarintS32Value, appendVarintS32Value - case "zigzag32": - if pointer { - return sizeZigzag32Ptr, appendZigzag32Ptr - } - if slice { - if packed { - return sizeZigzag32PackedSlice, appendZigzag32PackedSlice - } - return sizeZigzag32Slice, appendZigzag32Slice - } - if nozero { - return sizeZigzag32ValueNoZero, appendZigzag32ValueNoZero - } - return sizeZigzag32Value, appendZigzag32Value - } - case reflect.Uint64: - switch encoding { - case "fixed64": - if pointer { - return sizeFixed64Ptr, appendFixed64Ptr - } - if slice { - if packed { - return sizeFixed64PackedSlice, appendFixed64PackedSlice - } - return sizeFixed64Slice, appendFixed64Slice - } - if nozero { - return sizeFixed64ValueNoZero, appendFixed64ValueNoZero - } - return sizeFixed64Value, appendFixed64Value - case "varint": - if pointer { - return sizeVarint64Ptr, appendVarint64Ptr - } - if slice { - if packed { - return sizeVarint64PackedSlice, appendVarint64PackedSlice - } - return sizeVarint64Slice, appendVarint64Slice - } - if nozero { - return sizeVarint64ValueNoZero, appendVarint64ValueNoZero - } - return sizeVarint64Value, appendVarint64Value - } - case reflect.Int64: - switch encoding { - case "fixed64": - if pointer { - return sizeFixedS64Ptr, appendFixedS64Ptr - } - if slice { - if packed { - return sizeFixedS64PackedSlice, appendFixedS64PackedSlice - } - return sizeFixedS64Slice, appendFixedS64Slice - } - if nozero { - return sizeFixedS64ValueNoZero, appendFixedS64ValueNoZero - } - return sizeFixedS64Value, appendFixedS64Value - case "varint": - if pointer { - return sizeVarintS64Ptr, appendVarintS64Ptr - } - if slice { - if packed { - return sizeVarintS64PackedSlice, appendVarintS64PackedSlice - } - return sizeVarintS64Slice, appendVarintS64Slice - } - if nozero { - return sizeVarintS64ValueNoZero, appendVarintS64ValueNoZero - } - return sizeVarintS64Value, appendVarintS64Value - case "zigzag64": - if pointer { - return sizeZigzag64Ptr, appendZigzag64Ptr - } - if slice { - if packed { - return sizeZigzag64PackedSlice, appendZigzag64PackedSlice - } - return sizeZigzag64Slice, appendZigzag64Slice - } - if nozero { - return sizeZigzag64ValueNoZero, appendZigzag64ValueNoZero - } - return sizeZigzag64Value, appendZigzag64Value - } - case reflect.Float32: - if pointer { - return sizeFloat32Ptr, appendFloat32Ptr - } - if slice { - if packed { - return sizeFloat32PackedSlice, appendFloat32PackedSlice - } - return sizeFloat32Slice, appendFloat32Slice - } - if nozero { - return sizeFloat32ValueNoZero, appendFloat32ValueNoZero - } - return sizeFloat32Value, appendFloat32Value - case reflect.Float64: - if pointer { - return sizeFloat64Ptr, appendFloat64Ptr - } - if slice { - if packed { - return sizeFloat64PackedSlice, appendFloat64PackedSlice - } - return sizeFloat64Slice, appendFloat64Slice - } - if nozero { - return sizeFloat64ValueNoZero, appendFloat64ValueNoZero - } - return sizeFloat64Value, appendFloat64Value - case reflect.String: - if validateUTF8 { - if pointer { - return sizeStringPtr, appendUTF8StringPtr - } - if slice { - return sizeStringSlice, appendUTF8StringSlice - } - if nozero { - return sizeStringValueNoZero, appendUTF8StringValueNoZero - } - return sizeStringValue, appendUTF8StringValue - } - if pointer { - return sizeStringPtr, appendStringPtr - } - if slice { - return sizeStringSlice, appendStringSlice - } - if nozero { - return sizeStringValueNoZero, appendStringValueNoZero - } - return sizeStringValue, appendStringValue - case reflect.Slice: - if slice { - return sizeBytesSlice, appendBytesSlice - } - if oneof { - // Oneof bytes field may also have "proto3" tag. - // We want to marshal it as a oneof field. Do this - // check before the proto3 check. - return sizeBytesOneof, appendBytesOneof - } - if proto3 { - return sizeBytes3, appendBytes3 - } - return sizeBytes, appendBytes - case reflect.Struct: - switch encoding { - case "group": - if slice { - return makeGroupSliceMarshaler(getMarshalInfo(t)) - } - return makeGroupMarshaler(getMarshalInfo(t)) - case "bytes": - if slice { - return makeMessageSliceMarshaler(getMarshalInfo(t)) - } - return makeMessageMarshaler(getMarshalInfo(t)) - } - } - panic(fmt.Sprintf("unknown or mismatched type: type: %v, wire type: %v", t, encoding)) -} - -// Below are functions to size/marshal a specific type of a field. -// They are stored in the field's info, and called by function pointers. -// They have type sizer or marshaler. - -func sizeFixed32Value(_ pointer, tagsize int) int { - return 4 + tagsize -} -func sizeFixed32ValueNoZero(ptr pointer, tagsize int) int { - v := *ptr.toUint32() - if v == 0 { - return 0 - } - return 4 + tagsize -} -func sizeFixed32Ptr(ptr pointer, tagsize int) int { - p := *ptr.toUint32Ptr() - if p == nil { - return 0 - } - return 4 + tagsize -} -func sizeFixed32Slice(ptr pointer, tagsize int) int { - s := *ptr.toUint32Slice() - return (4 + tagsize) * len(s) -} -func sizeFixed32PackedSlice(ptr pointer, tagsize int) int { - s := *ptr.toUint32Slice() - if len(s) == 0 { - return 0 - } - return 4*len(s) + SizeVarint(uint64(4*len(s))) + tagsize -} -func sizeFixedS32Value(_ pointer, tagsize int) int { - return 4 + tagsize -} -func sizeFixedS32ValueNoZero(ptr pointer, tagsize int) int { - v := *ptr.toInt32() - if v == 0 { - return 0 - } - return 4 + tagsize -} -func sizeFixedS32Ptr(ptr pointer, tagsize int) int { - p := ptr.getInt32Ptr() - if p == nil { - return 0 - } - return 4 + tagsize -} -func sizeFixedS32Slice(ptr pointer, tagsize int) int { - s := ptr.getInt32Slice() - return (4 + tagsize) * len(s) -} -func sizeFixedS32PackedSlice(ptr pointer, tagsize int) int { - s := ptr.getInt32Slice() - if len(s) == 0 { - return 0 - } - return 4*len(s) + SizeVarint(uint64(4*len(s))) + tagsize -} -func sizeFloat32Value(_ pointer, tagsize int) int { - return 4 + tagsize -} -func sizeFloat32ValueNoZero(ptr pointer, tagsize int) int { - v := math.Float32bits(*ptr.toFloat32()) - if v == 0 { - return 0 - } - return 4 + tagsize -} -func sizeFloat32Ptr(ptr pointer, tagsize int) int { - p := *ptr.toFloat32Ptr() - if p == nil { - return 0 - } - return 4 + tagsize -} -func sizeFloat32Slice(ptr pointer, tagsize int) int { - s := *ptr.toFloat32Slice() - return (4 + tagsize) * len(s) -} -func sizeFloat32PackedSlice(ptr pointer, tagsize int) int { - s := *ptr.toFloat32Slice() - if len(s) == 0 { - return 0 - } - return 4*len(s) + SizeVarint(uint64(4*len(s))) + tagsize -} -func sizeFixed64Value(_ pointer, tagsize int) int { - return 8 + tagsize -} -func sizeFixed64ValueNoZero(ptr pointer, tagsize int) int { - v := *ptr.toUint64() - if v == 0 { - return 0 - } - return 8 + tagsize -} -func sizeFixed64Ptr(ptr pointer, tagsize int) int { - p := *ptr.toUint64Ptr() - if p == nil { - return 0 - } - return 8 + tagsize -} -func sizeFixed64Slice(ptr pointer, tagsize int) int { - s := *ptr.toUint64Slice() - return (8 + tagsize) * len(s) -} -func sizeFixed64PackedSlice(ptr pointer, tagsize int) int { - s := *ptr.toUint64Slice() - if len(s) == 0 { - return 0 - } - return 8*len(s) + SizeVarint(uint64(8*len(s))) + tagsize -} -func sizeFixedS64Value(_ pointer, tagsize int) int { - return 8 + tagsize -} -func sizeFixedS64ValueNoZero(ptr pointer, tagsize int) int { - v := *ptr.toInt64() - if v == 0 { - return 0 - } - return 8 + tagsize -} -func sizeFixedS64Ptr(ptr pointer, tagsize int) int { - p := *ptr.toInt64Ptr() - if p == nil { - return 0 - } - return 8 + tagsize -} -func sizeFixedS64Slice(ptr pointer, tagsize int) int { - s := *ptr.toInt64Slice() - return (8 + tagsize) * len(s) -} -func sizeFixedS64PackedSlice(ptr pointer, tagsize int) int { - s := *ptr.toInt64Slice() - if len(s) == 0 { - return 0 - } - return 8*len(s) + SizeVarint(uint64(8*len(s))) + tagsize -} -func sizeFloat64Value(_ pointer, tagsize int) int { - return 8 + tagsize -} -func sizeFloat64ValueNoZero(ptr pointer, tagsize int) int { - v := math.Float64bits(*ptr.toFloat64()) - if v == 0 { - return 0 - } - return 8 + tagsize -} -func sizeFloat64Ptr(ptr pointer, tagsize int) int { - p := *ptr.toFloat64Ptr() - if p == nil { - return 0 - } - return 8 + tagsize -} -func sizeFloat64Slice(ptr pointer, tagsize int) int { - s := *ptr.toFloat64Slice() - return (8 + tagsize) * len(s) -} -func sizeFloat64PackedSlice(ptr pointer, tagsize int) int { - s := *ptr.toFloat64Slice() - if len(s) == 0 { - return 0 - } - return 8*len(s) + SizeVarint(uint64(8*len(s))) + tagsize -} -func sizeVarint32Value(ptr pointer, tagsize int) int { - v := *ptr.toUint32() - return SizeVarint(uint64(v)) + tagsize -} -func sizeVarint32ValueNoZero(ptr pointer, tagsize int) int { - v := *ptr.toUint32() - if v == 0 { - return 0 - } - return SizeVarint(uint64(v)) + tagsize -} -func sizeVarint32Ptr(ptr pointer, tagsize int) int { - p := *ptr.toUint32Ptr() - if p == nil { - return 0 - } - return SizeVarint(uint64(*p)) + tagsize -} -func sizeVarint32Slice(ptr pointer, tagsize int) int { - s := *ptr.toUint32Slice() - n := 0 - for _, v := range s { - n += SizeVarint(uint64(v)) + tagsize - } - return n -} -func sizeVarint32PackedSlice(ptr pointer, tagsize int) int { - s := *ptr.toUint32Slice() - if len(s) == 0 { - return 0 - } - n := 0 - for _, v := range s { - n += SizeVarint(uint64(v)) - } - return n + SizeVarint(uint64(n)) + tagsize -} -func sizeVarintS32Value(ptr pointer, tagsize int) int { - v := *ptr.toInt32() - return SizeVarint(uint64(v)) + tagsize -} -func sizeVarintS32ValueNoZero(ptr pointer, tagsize int) int { - v := *ptr.toInt32() - if v == 0 { - return 0 - } - return SizeVarint(uint64(v)) + tagsize -} -func sizeVarintS32Ptr(ptr pointer, tagsize int) int { - p := ptr.getInt32Ptr() - if p == nil { - return 0 - } - return SizeVarint(uint64(*p)) + tagsize -} -func sizeVarintS32Slice(ptr pointer, tagsize int) int { - s := ptr.getInt32Slice() - n := 0 - for _, v := range s { - n += SizeVarint(uint64(v)) + tagsize - } - return n -} -func sizeVarintS32PackedSlice(ptr pointer, tagsize int) int { - s := ptr.getInt32Slice() - if len(s) == 0 { - return 0 - } - n := 0 - for _, v := range s { - n += SizeVarint(uint64(v)) - } - return n + SizeVarint(uint64(n)) + tagsize -} -func sizeVarint64Value(ptr pointer, tagsize int) int { - v := *ptr.toUint64() - return SizeVarint(v) + tagsize -} -func sizeVarint64ValueNoZero(ptr pointer, tagsize int) int { - v := *ptr.toUint64() - if v == 0 { - return 0 - } - return SizeVarint(v) + tagsize -} -func sizeVarint64Ptr(ptr pointer, tagsize int) int { - p := *ptr.toUint64Ptr() - if p == nil { - return 0 - } - return SizeVarint(*p) + tagsize -} -func sizeVarint64Slice(ptr pointer, tagsize int) int { - s := *ptr.toUint64Slice() - n := 0 - for _, v := range s { - n += SizeVarint(v) + tagsize - } - return n -} -func sizeVarint64PackedSlice(ptr pointer, tagsize int) int { - s := *ptr.toUint64Slice() - if len(s) == 0 { - return 0 - } - n := 0 - for _, v := range s { - n += SizeVarint(v) - } - return n + SizeVarint(uint64(n)) + tagsize -} -func sizeVarintS64Value(ptr pointer, tagsize int) int { - v := *ptr.toInt64() - return SizeVarint(uint64(v)) + tagsize -} -func sizeVarintS64ValueNoZero(ptr pointer, tagsize int) int { - v := *ptr.toInt64() - if v == 0 { - return 0 - } - return SizeVarint(uint64(v)) + tagsize -} -func sizeVarintS64Ptr(ptr pointer, tagsize int) int { - p := *ptr.toInt64Ptr() - if p == nil { - return 0 - } - return SizeVarint(uint64(*p)) + tagsize -} -func sizeVarintS64Slice(ptr pointer, tagsize int) int { - s := *ptr.toInt64Slice() - n := 0 - for _, v := range s { - n += SizeVarint(uint64(v)) + tagsize - } - return n -} -func sizeVarintS64PackedSlice(ptr pointer, tagsize int) int { - s := *ptr.toInt64Slice() - if len(s) == 0 { - return 0 - } - n := 0 - for _, v := range s { - n += SizeVarint(uint64(v)) - } - return n + SizeVarint(uint64(n)) + tagsize -} -func sizeZigzag32Value(ptr pointer, tagsize int) int { - v := *ptr.toInt32() - return SizeVarint(uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + tagsize -} -func sizeZigzag32ValueNoZero(ptr pointer, tagsize int) int { - v := *ptr.toInt32() - if v == 0 { - return 0 - } - return SizeVarint(uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + tagsize -} -func sizeZigzag32Ptr(ptr pointer, tagsize int) int { - p := ptr.getInt32Ptr() - if p == nil { - return 0 - } - v := *p - return SizeVarint(uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + tagsize -} -func sizeZigzag32Slice(ptr pointer, tagsize int) int { - s := ptr.getInt32Slice() - n := 0 - for _, v := range s { - n += SizeVarint(uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + tagsize - } - return n -} -func sizeZigzag32PackedSlice(ptr pointer, tagsize int) int { - s := ptr.getInt32Slice() - if len(s) == 0 { - return 0 - } - n := 0 - for _, v := range s { - n += SizeVarint(uint64((uint32(v) << 1) ^ uint32((int32(v) >> 31)))) - } - return n + SizeVarint(uint64(n)) + tagsize -} -func sizeZigzag64Value(ptr pointer, tagsize int) int { - v := *ptr.toInt64() - return SizeVarint(uint64(v<<1)^uint64((int64(v)>>63))) + tagsize -} -func sizeZigzag64ValueNoZero(ptr pointer, tagsize int) int { - v := *ptr.toInt64() - if v == 0 { - return 0 - } - return SizeVarint(uint64(v<<1)^uint64((int64(v)>>63))) + tagsize -} -func sizeZigzag64Ptr(ptr pointer, tagsize int) int { - p := *ptr.toInt64Ptr() - if p == nil { - return 0 - } - v := *p - return SizeVarint(uint64(v<<1)^uint64((int64(v)>>63))) + tagsize -} -func sizeZigzag64Slice(ptr pointer, tagsize int) int { - s := *ptr.toInt64Slice() - n := 0 - for _, v := range s { - n += SizeVarint(uint64(v<<1)^uint64((int64(v)>>63))) + tagsize - } - return n -} -func sizeZigzag64PackedSlice(ptr pointer, tagsize int) int { - s := *ptr.toInt64Slice() - if len(s) == 0 { - return 0 - } - n := 0 - for _, v := range s { - n += SizeVarint(uint64(v<<1) ^ uint64((int64(v) >> 63))) - } - return n + SizeVarint(uint64(n)) + tagsize -} -func sizeBoolValue(_ pointer, tagsize int) int { - return 1 + tagsize -} -func sizeBoolValueNoZero(ptr pointer, tagsize int) int { - v := *ptr.toBool() - if !v { - return 0 - } - return 1 + tagsize -} -func sizeBoolPtr(ptr pointer, tagsize int) int { - p := *ptr.toBoolPtr() - if p == nil { - return 0 - } - return 1 + tagsize -} -func sizeBoolSlice(ptr pointer, tagsize int) int { - s := *ptr.toBoolSlice() - return (1 + tagsize) * len(s) -} -func sizeBoolPackedSlice(ptr pointer, tagsize int) int { - s := *ptr.toBoolSlice() - if len(s) == 0 { - return 0 - } - return len(s) + SizeVarint(uint64(len(s))) + tagsize -} -func sizeStringValue(ptr pointer, tagsize int) int { - v := *ptr.toString() - return len(v) + SizeVarint(uint64(len(v))) + tagsize -} -func sizeStringValueNoZero(ptr pointer, tagsize int) int { - v := *ptr.toString() - if v == "" { - return 0 - } - return len(v) + SizeVarint(uint64(len(v))) + tagsize -} -func sizeStringPtr(ptr pointer, tagsize int) int { - p := *ptr.toStringPtr() - if p == nil { - return 0 - } - v := *p - return len(v) + SizeVarint(uint64(len(v))) + tagsize -} -func sizeStringSlice(ptr pointer, tagsize int) int { - s := *ptr.toStringSlice() - n := 0 - for _, v := range s { - n += len(v) + SizeVarint(uint64(len(v))) + tagsize - } - return n -} -func sizeBytes(ptr pointer, tagsize int) int { - v := *ptr.toBytes() - if v == nil { - return 0 - } - return len(v) + SizeVarint(uint64(len(v))) + tagsize -} -func sizeBytes3(ptr pointer, tagsize int) int { - v := *ptr.toBytes() - if len(v) == 0 { - return 0 - } - return len(v) + SizeVarint(uint64(len(v))) + tagsize -} -func sizeBytesOneof(ptr pointer, tagsize int) int { - v := *ptr.toBytes() - return len(v) + SizeVarint(uint64(len(v))) + tagsize -} -func sizeBytesSlice(ptr pointer, tagsize int) int { - s := *ptr.toBytesSlice() - n := 0 - for _, v := range s { - n += len(v) + SizeVarint(uint64(len(v))) + tagsize - } - return n -} - -// appendFixed32 appends an encoded fixed32 to b. -func appendFixed32(b []byte, v uint32) []byte { - b = append(b, - byte(v), - byte(v>>8), - byte(v>>16), - byte(v>>24)) - return b -} - -// appendFixed64 appends an encoded fixed64 to b. -func appendFixed64(b []byte, v uint64) []byte { - b = append(b, - byte(v), - byte(v>>8), - byte(v>>16), - byte(v>>24), - byte(v>>32), - byte(v>>40), - byte(v>>48), - byte(v>>56)) - return b -} - -// appendVarint appends an encoded varint to b. -func appendVarint(b []byte, v uint64) []byte { - // TODO: make 1-byte (maybe 2-byte) case inline-able, once we - // have non-leaf inliner. - switch { - case v < 1<<7: - b = append(b, byte(v)) - case v < 1<<14: - b = append(b, - byte(v&0x7f|0x80), - byte(v>>7)) - case v < 1<<21: - b = append(b, - byte(v&0x7f|0x80), - byte((v>>7)&0x7f|0x80), - byte(v>>14)) - case v < 1<<28: - b = append(b, - byte(v&0x7f|0x80), - byte((v>>7)&0x7f|0x80), - byte((v>>14)&0x7f|0x80), - byte(v>>21)) - case v < 1<<35: - b = append(b, - byte(v&0x7f|0x80), - byte((v>>7)&0x7f|0x80), - byte((v>>14)&0x7f|0x80), - byte((v>>21)&0x7f|0x80), - byte(v>>28)) - case v < 1<<42: - b = append(b, - byte(v&0x7f|0x80), - byte((v>>7)&0x7f|0x80), - byte((v>>14)&0x7f|0x80), - byte((v>>21)&0x7f|0x80), - byte((v>>28)&0x7f|0x80), - byte(v>>35)) - case v < 1<<49: - b = append(b, - byte(v&0x7f|0x80), - byte((v>>7)&0x7f|0x80), - byte((v>>14)&0x7f|0x80), - byte((v>>21)&0x7f|0x80), - byte((v>>28)&0x7f|0x80), - byte((v>>35)&0x7f|0x80), - byte(v>>42)) - case v < 1<<56: - b = append(b, - byte(v&0x7f|0x80), - byte((v>>7)&0x7f|0x80), - byte((v>>14)&0x7f|0x80), - byte((v>>21)&0x7f|0x80), - byte((v>>28)&0x7f|0x80), - byte((v>>35)&0x7f|0x80), - byte((v>>42)&0x7f|0x80), - byte(v>>49)) - case v < 1<<63: - b = append(b, - byte(v&0x7f|0x80), - byte((v>>7)&0x7f|0x80), - byte((v>>14)&0x7f|0x80), - byte((v>>21)&0x7f|0x80), - byte((v>>28)&0x7f|0x80), - byte((v>>35)&0x7f|0x80), - byte((v>>42)&0x7f|0x80), - byte((v>>49)&0x7f|0x80), - byte(v>>56)) - default: - b = append(b, - byte(v&0x7f|0x80), - byte((v>>7)&0x7f|0x80), - byte((v>>14)&0x7f|0x80), - byte((v>>21)&0x7f|0x80), - byte((v>>28)&0x7f|0x80), - byte((v>>35)&0x7f|0x80), - byte((v>>42)&0x7f|0x80), - byte((v>>49)&0x7f|0x80), - byte((v>>56)&0x7f|0x80), - 1) - } - return b -} - -func appendFixed32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toUint32() - b = appendVarint(b, wiretag) - b = appendFixed32(b, v) - return b, nil -} -func appendFixed32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toUint32() - if v == 0 { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendFixed32(b, v) - return b, nil -} -func appendFixed32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - p := *ptr.toUint32Ptr() - if p == nil { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendFixed32(b, *p) - return b, nil -} -func appendFixed32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toUint32Slice() - for _, v := range s { - b = appendVarint(b, wiretag) - b = appendFixed32(b, v) - } - return b, nil -} -func appendFixed32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toUint32Slice() - if len(s) == 0 { - return b, nil - } - b = appendVarint(b, wiretag&^7|WireBytes) - b = appendVarint(b, uint64(4*len(s))) - for _, v := range s { - b = appendFixed32(b, v) - } - return b, nil -} -func appendFixedS32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toInt32() - b = appendVarint(b, wiretag) - b = appendFixed32(b, uint32(v)) - return b, nil -} -func appendFixedS32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toInt32() - if v == 0 { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendFixed32(b, uint32(v)) - return b, nil -} -func appendFixedS32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - p := ptr.getInt32Ptr() - if p == nil { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendFixed32(b, uint32(*p)) - return b, nil -} -func appendFixedS32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := ptr.getInt32Slice() - for _, v := range s { - b = appendVarint(b, wiretag) - b = appendFixed32(b, uint32(v)) - } - return b, nil -} -func appendFixedS32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := ptr.getInt32Slice() - if len(s) == 0 { - return b, nil - } - b = appendVarint(b, wiretag&^7|WireBytes) - b = appendVarint(b, uint64(4*len(s))) - for _, v := range s { - b = appendFixed32(b, uint32(v)) - } - return b, nil -} -func appendFloat32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := math.Float32bits(*ptr.toFloat32()) - b = appendVarint(b, wiretag) - b = appendFixed32(b, v) - return b, nil -} -func appendFloat32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := math.Float32bits(*ptr.toFloat32()) - if v == 0 { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendFixed32(b, v) - return b, nil -} -func appendFloat32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - p := *ptr.toFloat32Ptr() - if p == nil { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendFixed32(b, math.Float32bits(*p)) - return b, nil -} -func appendFloat32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toFloat32Slice() - for _, v := range s { - b = appendVarint(b, wiretag) - b = appendFixed32(b, math.Float32bits(v)) - } - return b, nil -} -func appendFloat32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toFloat32Slice() - if len(s) == 0 { - return b, nil - } - b = appendVarint(b, wiretag&^7|WireBytes) - b = appendVarint(b, uint64(4*len(s))) - for _, v := range s { - b = appendFixed32(b, math.Float32bits(v)) - } - return b, nil -} -func appendFixed64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toUint64() - b = appendVarint(b, wiretag) - b = appendFixed64(b, v) - return b, nil -} -func appendFixed64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toUint64() - if v == 0 { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendFixed64(b, v) - return b, nil -} -func appendFixed64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - p := *ptr.toUint64Ptr() - if p == nil { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendFixed64(b, *p) - return b, nil -} -func appendFixed64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toUint64Slice() - for _, v := range s { - b = appendVarint(b, wiretag) - b = appendFixed64(b, v) - } - return b, nil -} -func appendFixed64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toUint64Slice() - if len(s) == 0 { - return b, nil - } - b = appendVarint(b, wiretag&^7|WireBytes) - b = appendVarint(b, uint64(8*len(s))) - for _, v := range s { - b = appendFixed64(b, v) - } - return b, nil -} -func appendFixedS64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toInt64() - b = appendVarint(b, wiretag) - b = appendFixed64(b, uint64(v)) - return b, nil -} -func appendFixedS64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toInt64() - if v == 0 { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendFixed64(b, uint64(v)) - return b, nil -} -func appendFixedS64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - p := *ptr.toInt64Ptr() - if p == nil { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendFixed64(b, uint64(*p)) - return b, nil -} -func appendFixedS64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toInt64Slice() - for _, v := range s { - b = appendVarint(b, wiretag) - b = appendFixed64(b, uint64(v)) - } - return b, nil -} -func appendFixedS64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toInt64Slice() - if len(s) == 0 { - return b, nil - } - b = appendVarint(b, wiretag&^7|WireBytes) - b = appendVarint(b, uint64(8*len(s))) - for _, v := range s { - b = appendFixed64(b, uint64(v)) - } - return b, nil -} -func appendFloat64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := math.Float64bits(*ptr.toFloat64()) - b = appendVarint(b, wiretag) - b = appendFixed64(b, v) - return b, nil -} -func appendFloat64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := math.Float64bits(*ptr.toFloat64()) - if v == 0 { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendFixed64(b, v) - return b, nil -} -func appendFloat64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - p := *ptr.toFloat64Ptr() - if p == nil { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendFixed64(b, math.Float64bits(*p)) - return b, nil -} -func appendFloat64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toFloat64Slice() - for _, v := range s { - b = appendVarint(b, wiretag) - b = appendFixed64(b, math.Float64bits(v)) - } - return b, nil -} -func appendFloat64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toFloat64Slice() - if len(s) == 0 { - return b, nil - } - b = appendVarint(b, wiretag&^7|WireBytes) - b = appendVarint(b, uint64(8*len(s))) - for _, v := range s { - b = appendFixed64(b, math.Float64bits(v)) - } - return b, nil -} -func appendVarint32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toUint32() - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(v)) - return b, nil -} -func appendVarint32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toUint32() - if v == 0 { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(v)) - return b, nil -} -func appendVarint32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - p := *ptr.toUint32Ptr() - if p == nil { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(*p)) - return b, nil -} -func appendVarint32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toUint32Slice() - for _, v := range s { - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(v)) - } - return b, nil -} -func appendVarint32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toUint32Slice() - if len(s) == 0 { - return b, nil - } - b = appendVarint(b, wiretag&^7|WireBytes) - // compute size - n := 0 - for _, v := range s { - n += SizeVarint(uint64(v)) - } - b = appendVarint(b, uint64(n)) - for _, v := range s { - b = appendVarint(b, uint64(v)) - } - return b, nil -} -func appendVarintS32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toInt32() - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(v)) - return b, nil -} -func appendVarintS32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toInt32() - if v == 0 { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(v)) - return b, nil -} -func appendVarintS32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - p := ptr.getInt32Ptr() - if p == nil { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(*p)) - return b, nil -} -func appendVarintS32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := ptr.getInt32Slice() - for _, v := range s { - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(v)) - } - return b, nil -} -func appendVarintS32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := ptr.getInt32Slice() - if len(s) == 0 { - return b, nil - } - b = appendVarint(b, wiretag&^7|WireBytes) - // compute size - n := 0 - for _, v := range s { - n += SizeVarint(uint64(v)) - } - b = appendVarint(b, uint64(n)) - for _, v := range s { - b = appendVarint(b, uint64(v)) - } - return b, nil -} -func appendVarint64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toUint64() - b = appendVarint(b, wiretag) - b = appendVarint(b, v) - return b, nil -} -func appendVarint64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toUint64() - if v == 0 { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendVarint(b, v) - return b, nil -} -func appendVarint64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - p := *ptr.toUint64Ptr() - if p == nil { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendVarint(b, *p) - return b, nil -} -func appendVarint64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toUint64Slice() - for _, v := range s { - b = appendVarint(b, wiretag) - b = appendVarint(b, v) - } - return b, nil -} -func appendVarint64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toUint64Slice() - if len(s) == 0 { - return b, nil - } - b = appendVarint(b, wiretag&^7|WireBytes) - // compute size - n := 0 - for _, v := range s { - n += SizeVarint(v) - } - b = appendVarint(b, uint64(n)) - for _, v := range s { - b = appendVarint(b, v) - } - return b, nil -} -func appendVarintS64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toInt64() - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(v)) - return b, nil -} -func appendVarintS64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toInt64() - if v == 0 { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(v)) - return b, nil -} -func appendVarintS64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - p := *ptr.toInt64Ptr() - if p == nil { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(*p)) - return b, nil -} -func appendVarintS64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toInt64Slice() - for _, v := range s { - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(v)) - } - return b, nil -} -func appendVarintS64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toInt64Slice() - if len(s) == 0 { - return b, nil - } - b = appendVarint(b, wiretag&^7|WireBytes) - // compute size - n := 0 - for _, v := range s { - n += SizeVarint(uint64(v)) - } - b = appendVarint(b, uint64(n)) - for _, v := range s { - b = appendVarint(b, uint64(v)) - } - return b, nil -} -func appendZigzag32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toInt32() - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) - return b, nil -} -func appendZigzag32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toInt32() - if v == 0 { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) - return b, nil -} -func appendZigzag32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - p := ptr.getInt32Ptr() - if p == nil { - return b, nil - } - b = appendVarint(b, wiretag) - v := *p - b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) - return b, nil -} -func appendZigzag32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := ptr.getInt32Slice() - for _, v := range s { - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) - } - return b, nil -} -func appendZigzag32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := ptr.getInt32Slice() - if len(s) == 0 { - return b, nil - } - b = appendVarint(b, wiretag&^7|WireBytes) - // compute size - n := 0 - for _, v := range s { - n += SizeVarint(uint64((uint32(v) << 1) ^ uint32((int32(v) >> 31)))) - } - b = appendVarint(b, uint64(n)) - for _, v := range s { - b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) - } - return b, nil -} -func appendZigzag64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toInt64() - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63))) - return b, nil -} -func appendZigzag64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toInt64() - if v == 0 { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63))) - return b, nil -} -func appendZigzag64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - p := *ptr.toInt64Ptr() - if p == nil { - return b, nil - } - b = appendVarint(b, wiretag) - v := *p - b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63))) - return b, nil -} -func appendZigzag64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toInt64Slice() - for _, v := range s { - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63))) - } - return b, nil -} -func appendZigzag64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toInt64Slice() - if len(s) == 0 { - return b, nil - } - b = appendVarint(b, wiretag&^7|WireBytes) - // compute size - n := 0 - for _, v := range s { - n += SizeVarint(uint64(v<<1) ^ uint64((int64(v) >> 63))) - } - b = appendVarint(b, uint64(n)) - for _, v := range s { - b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63))) - } - return b, nil -} -func appendBoolValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toBool() - b = appendVarint(b, wiretag) - if v { - b = append(b, 1) - } else { - b = append(b, 0) - } - return b, nil -} -func appendBoolValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toBool() - if !v { - return b, nil - } - b = appendVarint(b, wiretag) - b = append(b, 1) - return b, nil -} - -func appendBoolPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - p := *ptr.toBoolPtr() - if p == nil { - return b, nil - } - b = appendVarint(b, wiretag) - if *p { - b = append(b, 1) - } else { - b = append(b, 0) - } - return b, nil -} -func appendBoolSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toBoolSlice() - for _, v := range s { - b = appendVarint(b, wiretag) - if v { - b = append(b, 1) - } else { - b = append(b, 0) - } - } - return b, nil -} -func appendBoolPackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toBoolSlice() - if len(s) == 0 { - return b, nil - } - b = appendVarint(b, wiretag&^7|WireBytes) - b = appendVarint(b, uint64(len(s))) - for _, v := range s { - if v { - b = append(b, 1) - } else { - b = append(b, 0) - } - } - return b, nil -} -func appendStringValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toString() - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(len(v))) - b = append(b, v...) - return b, nil -} -func appendStringValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toString() - if v == "" { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(len(v))) - b = append(b, v...) - return b, nil -} -func appendStringPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - p := *ptr.toStringPtr() - if p == nil { - return b, nil - } - v := *p - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(len(v))) - b = append(b, v...) - return b, nil -} -func appendStringSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toStringSlice() - for _, v := range s { - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(len(v))) - b = append(b, v...) - } - return b, nil -} -func appendUTF8StringValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - var invalidUTF8 bool - v := *ptr.toString() - if !utf8.ValidString(v) { - invalidUTF8 = true - } - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(len(v))) - b = append(b, v...) - if invalidUTF8 { - return b, errInvalidUTF8 - } - return b, nil -} -func appendUTF8StringValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - var invalidUTF8 bool - v := *ptr.toString() - if v == "" { - return b, nil - } - if !utf8.ValidString(v) { - invalidUTF8 = true - } - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(len(v))) - b = append(b, v...) - if invalidUTF8 { - return b, errInvalidUTF8 - } - return b, nil -} -func appendUTF8StringPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - var invalidUTF8 bool - p := *ptr.toStringPtr() - if p == nil { - return b, nil - } - v := *p - if !utf8.ValidString(v) { - invalidUTF8 = true - } - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(len(v))) - b = append(b, v...) - if invalidUTF8 { - return b, errInvalidUTF8 - } - return b, nil -} -func appendUTF8StringSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - var invalidUTF8 bool - s := *ptr.toStringSlice() - for _, v := range s { - if !utf8.ValidString(v) { - invalidUTF8 = true - } - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(len(v))) - b = append(b, v...) - } - if invalidUTF8 { - return b, errInvalidUTF8 - } - return b, nil -} -func appendBytes(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toBytes() - if v == nil { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(len(v))) - b = append(b, v...) - return b, nil -} -func appendBytes3(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toBytes() - if len(v) == 0 { - return b, nil - } - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(len(v))) - b = append(b, v...) - return b, nil -} -func appendBytesOneof(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - v := *ptr.toBytes() - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(len(v))) - b = append(b, v...) - return b, nil -} -func appendBytesSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { - s := *ptr.toBytesSlice() - for _, v := range s { - b = appendVarint(b, wiretag) - b = appendVarint(b, uint64(len(v))) - b = append(b, v...) - } - return b, nil -} - -// makeGroupMarshaler returns the sizer and marshaler for a group. -// u is the marshal info of the underlying message. -func makeGroupMarshaler(u *marshalInfo) (sizer, marshaler) { - return func(ptr pointer, tagsize int) int { - p := ptr.getPointer() - if p.isNil() { - return 0 - } - return u.size(p) + 2*tagsize - }, - func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { - p := ptr.getPointer() - if p.isNil() { - return b, nil - } - var err error - b = appendVarint(b, wiretag) // start group - b, err = u.marshal(b, p, deterministic) - b = appendVarint(b, wiretag+(WireEndGroup-WireStartGroup)) // end group - return b, err - } -} - -// makeGroupSliceMarshaler returns the sizer and marshaler for a group slice. -// u is the marshal info of the underlying message. -func makeGroupSliceMarshaler(u *marshalInfo) (sizer, marshaler) { - return func(ptr pointer, tagsize int) int { - s := ptr.getPointerSlice() - n := 0 - for _, v := range s { - if v.isNil() { - continue - } - n += u.size(v) + 2*tagsize - } - return n - }, - func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { - s := ptr.getPointerSlice() - var err error - var nerr nonFatal - for _, v := range s { - if v.isNil() { - return b, errRepeatedHasNil - } - b = appendVarint(b, wiretag) // start group - b, err = u.marshal(b, v, deterministic) - b = appendVarint(b, wiretag+(WireEndGroup-WireStartGroup)) // end group - if !nerr.Merge(err) { - if err == ErrNil { - err = errRepeatedHasNil - } - return b, err - } - } - return b, nerr.E - } -} - -// makeMessageMarshaler returns the sizer and marshaler for a message field. -// u is the marshal info of the message. -func makeMessageMarshaler(u *marshalInfo) (sizer, marshaler) { - return func(ptr pointer, tagsize int) int { - p := ptr.getPointer() - if p.isNil() { - return 0 - } - siz := u.size(p) - return siz + SizeVarint(uint64(siz)) + tagsize - }, - func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { - p := ptr.getPointer() - if p.isNil() { - return b, nil - } - b = appendVarint(b, wiretag) - siz := u.cachedsize(p) - b = appendVarint(b, uint64(siz)) - return u.marshal(b, p, deterministic) - } -} - -// makeMessageSliceMarshaler returns the sizer and marshaler for a message slice. -// u is the marshal info of the message. -func makeMessageSliceMarshaler(u *marshalInfo) (sizer, marshaler) { - return func(ptr pointer, tagsize int) int { - s := ptr.getPointerSlice() - n := 0 - for _, v := range s { - if v.isNil() { - continue - } - siz := u.size(v) - n += siz + SizeVarint(uint64(siz)) + tagsize - } - return n - }, - func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { - s := ptr.getPointerSlice() - var err error - var nerr nonFatal - for _, v := range s { - if v.isNil() { - return b, errRepeatedHasNil - } - b = appendVarint(b, wiretag) - siz := u.cachedsize(v) - b = appendVarint(b, uint64(siz)) - b, err = u.marshal(b, v, deterministic) - - if !nerr.Merge(err) { - if err == ErrNil { - err = errRepeatedHasNil - } - return b, err - } - } - return b, nerr.E - } -} - -// makeMapMarshaler returns the sizer and marshaler for a map field. -// f is the pointer to the reflect data structure of the field. -func makeMapMarshaler(f *reflect.StructField) (sizer, marshaler) { - // figure out key and value type - t := f.Type - keyType := t.Key() - valType := t.Elem() - keyTags := strings.Split(f.Tag.Get("protobuf_key"), ",") - valTags := strings.Split(f.Tag.Get("protobuf_val"), ",") - keySizer, keyMarshaler := typeMarshaler(keyType, keyTags, false, false) // don't omit zero value in map - valSizer, valMarshaler := typeMarshaler(valType, valTags, false, false) // don't omit zero value in map - keyWireTag := 1<<3 | wiretype(keyTags[0]) - valWireTag := 2<<3 | wiretype(valTags[0]) - - // We create an interface to get the addresses of the map key and value. - // If value is pointer-typed, the interface is a direct interface, the - // idata itself is the value. Otherwise, the idata is the pointer to the - // value. - // Key cannot be pointer-typed. - valIsPtr := valType.Kind() == reflect.Ptr - - // If value is a message with nested maps, calling - // valSizer in marshal may be quadratic. We should use - // cached version in marshal (but not in size). - // If value is not message type, we don't have size cache, - // but it cannot be nested either. Just use valSizer. - valCachedSizer := valSizer - if valIsPtr && valType.Elem().Kind() == reflect.Struct { - u := getMarshalInfo(valType.Elem()) - valCachedSizer = func(ptr pointer, tagsize int) int { - // Same as message sizer, but use cache. - p := ptr.getPointer() - if p.isNil() { - return 0 - } - siz := u.cachedsize(p) - return siz + SizeVarint(uint64(siz)) + tagsize - } - } - return func(ptr pointer, tagsize int) int { - m := ptr.asPointerTo(t).Elem() // the map - n := 0 - for _, k := range m.MapKeys() { - ki := k.Interface() - vi := m.MapIndex(k).Interface() - kaddr := toAddrPointer(&ki, false, false) // pointer to key - vaddr := toAddrPointer(&vi, valIsPtr, false) // pointer to value - siz := keySizer(kaddr, 1) + valSizer(vaddr, 1) // tag of key = 1 (size=1), tag of val = 2 (size=1) - n += siz + SizeVarint(uint64(siz)) + tagsize - } - return n - }, - func(b []byte, ptr pointer, tag uint64, deterministic bool) ([]byte, error) { - m := ptr.asPointerTo(t).Elem() // the map - var err error - keys := m.MapKeys() - if len(keys) > 1 && deterministic { - sort.Sort(mapKeys(keys)) - } - - var nerr nonFatal - for _, k := range keys { - ki := k.Interface() - vi := m.MapIndex(k).Interface() - kaddr := toAddrPointer(&ki, false, false) // pointer to key - vaddr := toAddrPointer(&vi, valIsPtr, false) // pointer to value - b = appendVarint(b, tag) - siz := keySizer(kaddr, 1) + valCachedSizer(vaddr, 1) // tag of key = 1 (size=1), tag of val = 2 (size=1) - b = appendVarint(b, uint64(siz)) - b, err = keyMarshaler(b, kaddr, keyWireTag, deterministic) - if !nerr.Merge(err) { - return b, err - } - b, err = valMarshaler(b, vaddr, valWireTag, deterministic) - if err != ErrNil && !nerr.Merge(err) { // allow nil value in map - return b, err - } - } - return b, nerr.E - } -} - -// makeOneOfMarshaler returns the sizer and marshaler for a oneof field. -// fi is the marshal info of the field. -// f is the pointer to the reflect data structure of the field. -func makeOneOfMarshaler(fi *marshalFieldInfo, f *reflect.StructField) (sizer, marshaler) { - // Oneof field is an interface. We need to get the actual data type on the fly. - t := f.Type - return func(ptr pointer, _ int) int { - p := ptr.getInterfacePointer() - if p.isNil() { - return 0 - } - v := ptr.asPointerTo(t).Elem().Elem().Elem() // *interface -> interface -> *struct -> struct - telem := v.Type() - e := fi.oneofElems[telem] - return e.sizer(p, e.tagsize) - }, - func(b []byte, ptr pointer, _ uint64, deterministic bool) ([]byte, error) { - p := ptr.getInterfacePointer() - if p.isNil() { - return b, nil - } - v := ptr.asPointerTo(t).Elem().Elem().Elem() // *interface -> interface -> *struct -> struct - telem := v.Type() - if telem.Field(0).Type.Kind() == reflect.Ptr && p.getPointer().isNil() { - return b, errOneofHasNil - } - e := fi.oneofElems[telem] - return e.marshaler(b, p, e.wiretag, deterministic) - } -} - -// sizeExtensions computes the size of encoded data for a XXX_InternalExtensions field. -func (u *marshalInfo) sizeExtensions(ext *XXX_InternalExtensions) int { - m, mu := ext.extensionsRead() - if m == nil { - return 0 - } - mu.Lock() - - n := 0 - for _, e := range m { - if e.value == nil || e.desc == nil { - // Extension is only in its encoded form. - n += len(e.enc) - continue - } - - // We don't skip extensions that have an encoded form set, - // because the extension value may have been mutated after - // the last time this function was called. - ei := u.getExtElemInfo(e.desc) - v := e.value - p := toAddrPointer(&v, ei.isptr, ei.deref) - n += ei.sizer(p, ei.tagsize) - } - mu.Unlock() - return n -} - -// appendExtensions marshals a XXX_InternalExtensions field to the end of byte slice b. -func (u *marshalInfo) appendExtensions(b []byte, ext *XXX_InternalExtensions, deterministic bool) ([]byte, error) { - m, mu := ext.extensionsRead() - if m == nil { - return b, nil - } - mu.Lock() - defer mu.Unlock() - - var err error - var nerr nonFatal - - // Fast-path for common cases: zero or one extensions. - // Don't bother sorting the keys. - if len(m) <= 1 { - for _, e := range m { - if e.value == nil || e.desc == nil { - // Extension is only in its encoded form. - b = append(b, e.enc...) - continue - } - - // We don't skip extensions that have an encoded form set, - // because the extension value may have been mutated after - // the last time this function was called. - - ei := u.getExtElemInfo(e.desc) - v := e.value - p := toAddrPointer(&v, ei.isptr, ei.deref) - b, err = ei.marshaler(b, p, ei.wiretag, deterministic) - if !nerr.Merge(err) { - return b, err - } - } - return b, nerr.E - } - - // Sort the keys to provide a deterministic encoding. - // Not sure this is required, but the old code does it. - keys := make([]int, 0, len(m)) - for k := range m { - keys = append(keys, int(k)) - } - sort.Ints(keys) - - for _, k := range keys { - e := m[int32(k)] - if e.value == nil || e.desc == nil { - // Extension is only in its encoded form. - b = append(b, e.enc...) - continue - } - - // We don't skip extensions that have an encoded form set, - // because the extension value may have been mutated after - // the last time this function was called. - - ei := u.getExtElemInfo(e.desc) - v := e.value - p := toAddrPointer(&v, ei.isptr, ei.deref) - b, err = ei.marshaler(b, p, ei.wiretag, deterministic) - if !nerr.Merge(err) { - return b, err - } - } - return b, nerr.E -} - -// message set format is: -// message MessageSet { -// repeated group Item = 1 { -// required int32 type_id = 2; -// required string message = 3; -// }; -// } - -// sizeMessageSet computes the size of encoded data for a XXX_InternalExtensions field -// in message set format (above). -func (u *marshalInfo) sizeMessageSet(ext *XXX_InternalExtensions) int { - m, mu := ext.extensionsRead() - if m == nil { - return 0 - } - mu.Lock() - - n := 0 - for id, e := range m { - n += 2 // start group, end group. tag = 1 (size=1) - n += SizeVarint(uint64(id)) + 1 // type_id, tag = 2 (size=1) - - if e.value == nil || e.desc == nil { - // Extension is only in its encoded form. - msgWithLen := skipVarint(e.enc) // skip old tag, but leave the length varint - siz := len(msgWithLen) - n += siz + 1 // message, tag = 3 (size=1) - continue - } - - // We don't skip extensions that have an encoded form set, - // because the extension value may have been mutated after - // the last time this function was called. - - ei := u.getExtElemInfo(e.desc) - v := e.value - p := toAddrPointer(&v, ei.isptr, ei.deref) - n += ei.sizer(p, 1) // message, tag = 3 (size=1) - } - mu.Unlock() - return n -} - -// appendMessageSet marshals a XXX_InternalExtensions field in message set format (above) -// to the end of byte slice b. -func (u *marshalInfo) appendMessageSet(b []byte, ext *XXX_InternalExtensions, deterministic bool) ([]byte, error) { - m, mu := ext.extensionsRead() - if m == nil { - return b, nil - } - mu.Lock() - defer mu.Unlock() - - var err error - var nerr nonFatal - - // Fast-path for common cases: zero or one extensions. - // Don't bother sorting the keys. - if len(m) <= 1 { - for id, e := range m { - b = append(b, 1<<3|WireStartGroup) - b = append(b, 2<<3|WireVarint) - b = appendVarint(b, uint64(id)) - - if e.value == nil || e.desc == nil { - // Extension is only in its encoded form. - msgWithLen := skipVarint(e.enc) // skip old tag, but leave the length varint - b = append(b, 3<<3|WireBytes) - b = append(b, msgWithLen...) - b = append(b, 1<<3|WireEndGroup) - continue - } - - // We don't skip extensions that have an encoded form set, - // because the extension value may have been mutated after - // the last time this function was called. - - ei := u.getExtElemInfo(e.desc) - v := e.value - p := toAddrPointer(&v, ei.isptr, ei.deref) - b, err = ei.marshaler(b, p, 3<<3|WireBytes, deterministic) - if !nerr.Merge(err) { - return b, err - } - b = append(b, 1<<3|WireEndGroup) - } - return b, nerr.E - } - - // Sort the keys to provide a deterministic encoding. - keys := make([]int, 0, len(m)) - for k := range m { - keys = append(keys, int(k)) - } - sort.Ints(keys) - - for _, id := range keys { - e := m[int32(id)] - b = append(b, 1<<3|WireStartGroup) - b = append(b, 2<<3|WireVarint) - b = appendVarint(b, uint64(id)) - - if e.value == nil || e.desc == nil { - // Extension is only in its encoded form. - msgWithLen := skipVarint(e.enc) // skip old tag, but leave the length varint - b = append(b, 3<<3|WireBytes) - b = append(b, msgWithLen...) - b = append(b, 1<<3|WireEndGroup) - continue - } - - // We don't skip extensions that have an encoded form set, - // because the extension value may have been mutated after - // the last time this function was called. - - ei := u.getExtElemInfo(e.desc) - v := e.value - p := toAddrPointer(&v, ei.isptr, ei.deref) - b, err = ei.marshaler(b, p, 3<<3|WireBytes, deterministic) - b = append(b, 1<<3|WireEndGroup) - if !nerr.Merge(err) { - return b, err - } - } - return b, nerr.E -} - -// sizeV1Extensions computes the size of encoded data for a V1-API extension field. -func (u *marshalInfo) sizeV1Extensions(m map[int32]Extension) int { - if m == nil { - return 0 - } - - n := 0 - for _, e := range m { - if e.value == nil || e.desc == nil { - // Extension is only in its encoded form. - n += len(e.enc) - continue - } - - // We don't skip extensions that have an encoded form set, - // because the extension value may have been mutated after - // the last time this function was called. - - ei := u.getExtElemInfo(e.desc) - v := e.value - p := toAddrPointer(&v, ei.isptr, ei.deref) - n += ei.sizer(p, ei.tagsize) - } - return n -} - -// appendV1Extensions marshals a V1-API extension field to the end of byte slice b. -func (u *marshalInfo) appendV1Extensions(b []byte, m map[int32]Extension, deterministic bool) ([]byte, error) { - if m == nil { - return b, nil - } - - // Sort the keys to provide a deterministic encoding. - keys := make([]int, 0, len(m)) - for k := range m { - keys = append(keys, int(k)) - } - sort.Ints(keys) - - var err error - var nerr nonFatal - for _, k := range keys { - e := m[int32(k)] - if e.value == nil || e.desc == nil { - // Extension is only in its encoded form. - b = append(b, e.enc...) - continue - } - - // We don't skip extensions that have an encoded form set, - // because the extension value may have been mutated after - // the last time this function was called. - - ei := u.getExtElemInfo(e.desc) - v := e.value - p := toAddrPointer(&v, ei.isptr, ei.deref) - b, err = ei.marshaler(b, p, ei.wiretag, deterministic) - if !nerr.Merge(err) { - return b, err - } - } - return b, nerr.E -} - -// newMarshaler is the interface representing objects that can marshal themselves. -// -// This exists to support protoc-gen-go generated messages. -// The proto package will stop type-asserting to this interface in the future. -// -// DO NOT DEPEND ON THIS. -type newMarshaler interface { - XXX_Size() int - XXX_Marshal(b []byte, deterministic bool) ([]byte, error) -} - -// Size returns the encoded size of a protocol buffer message. -// This is the main entry point. -func Size(pb Message) int { - if m, ok := pb.(newMarshaler); ok { - return m.XXX_Size() - } - if m, ok := pb.(Marshaler); ok { - // If the message can marshal itself, let it do it, for compatibility. - // NOTE: This is not efficient. - b, _ := m.Marshal() - return len(b) - } - // in case somehow we didn't generate the wrapper - if pb == nil { - return 0 - } - var info InternalMessageInfo - return info.Size(pb) -} - -// Marshal takes a protocol buffer message -// and encodes it into the wire format, returning the data. -// This is the main entry point. -func Marshal(pb Message) ([]byte, error) { - if m, ok := pb.(newMarshaler); ok { - siz := m.XXX_Size() - b := make([]byte, 0, siz) - return m.XXX_Marshal(b, false) - } - if m, ok := pb.(Marshaler); ok { - // If the message can marshal itself, let it do it, for compatibility. - // NOTE: This is not efficient. - return m.Marshal() - } - // in case somehow we didn't generate the wrapper - if pb == nil { - return nil, ErrNil - } - var info InternalMessageInfo - siz := info.Size(pb) - b := make([]byte, 0, siz) - return info.Marshal(b, pb, false) -} - -// Marshal takes a protocol buffer message -// and encodes it into the wire format, writing the result to the -// Buffer. -// This is an alternative entry point. It is not necessary to use -// a Buffer for most applications. -func (p *Buffer) Marshal(pb Message) error { - var err error - if m, ok := pb.(newMarshaler); ok { - siz := m.XXX_Size() - p.grow(siz) // make sure buf has enough capacity - p.buf, err = m.XXX_Marshal(p.buf, p.deterministic) - return err - } - if m, ok := pb.(Marshaler); ok { - // If the message can marshal itself, let it do it, for compatibility. - // NOTE: This is not efficient. - b, err := m.Marshal() - p.buf = append(p.buf, b...) - return err - } - // in case somehow we didn't generate the wrapper - if pb == nil { - return ErrNil - } - var info InternalMessageInfo - siz := info.Size(pb) - p.grow(siz) // make sure buf has enough capacity - p.buf, err = info.Marshal(p.buf, pb, p.deterministic) - return err -} - -// grow grows the buffer's capacity, if necessary, to guarantee space for -// another n bytes. After grow(n), at least n bytes can be written to the -// buffer without another allocation. -func (p *Buffer) grow(n int) { - need := len(p.buf) + n - if need <= cap(p.buf) { - return - } - newCap := len(p.buf) * 2 - if newCap < need { - newCap = need - } - p.buf = append(make([]byte, 0, newCap), p.buf...) -} diff --git a/vendor/github.com/golang/protobuf/proto/table_merge.go b/vendor/github.com/golang/protobuf/proto/table_merge.go deleted file mode 100644 index 5525def6a..000000000 --- a/vendor/github.com/golang/protobuf/proto/table_merge.go +++ /dev/null @@ -1,654 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2016 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -import ( - "fmt" - "reflect" - "strings" - "sync" - "sync/atomic" -) - -// Merge merges the src message into dst. -// This assumes that dst and src of the same type and are non-nil. -func (a *InternalMessageInfo) Merge(dst, src Message) { - mi := atomicLoadMergeInfo(&a.merge) - if mi == nil { - mi = getMergeInfo(reflect.TypeOf(dst).Elem()) - atomicStoreMergeInfo(&a.merge, mi) - } - mi.merge(toPointer(&dst), toPointer(&src)) -} - -type mergeInfo struct { - typ reflect.Type - - initialized int32 // 0: only typ is valid, 1: everything is valid - lock sync.Mutex - - fields []mergeFieldInfo - unrecognized field // Offset of XXX_unrecognized -} - -type mergeFieldInfo struct { - field field // Offset of field, guaranteed to be valid - - // isPointer reports whether the value in the field is a pointer. - // This is true for the following situations: - // * Pointer to struct - // * Pointer to basic type (proto2 only) - // * Slice (first value in slice header is a pointer) - // * String (first value in string header is a pointer) - isPointer bool - - // basicWidth reports the width of the field assuming that it is directly - // embedded in the struct (as is the case for basic types in proto3). - // The possible values are: - // 0: invalid - // 1: bool - // 4: int32, uint32, float32 - // 8: int64, uint64, float64 - basicWidth int - - // Where dst and src are pointers to the types being merged. - merge func(dst, src pointer) -} - -var ( - mergeInfoMap = map[reflect.Type]*mergeInfo{} - mergeInfoLock sync.Mutex -) - -func getMergeInfo(t reflect.Type) *mergeInfo { - mergeInfoLock.Lock() - defer mergeInfoLock.Unlock() - mi := mergeInfoMap[t] - if mi == nil { - mi = &mergeInfo{typ: t} - mergeInfoMap[t] = mi - } - return mi -} - -// merge merges src into dst assuming they are both of type *mi.typ. -func (mi *mergeInfo) merge(dst, src pointer) { - if dst.isNil() { - panic("proto: nil destination") - } - if src.isNil() { - return // Nothing to do. - } - - if atomic.LoadInt32(&mi.initialized) == 0 { - mi.computeMergeInfo() - } - - for _, fi := range mi.fields { - sfp := src.offset(fi.field) - - // As an optimization, we can avoid the merge function call cost - // if we know for sure that the source will have no effect - // by checking if it is the zero value. - if unsafeAllowed { - if fi.isPointer && sfp.getPointer().isNil() { // Could be slice or string - continue - } - if fi.basicWidth > 0 { - switch { - case fi.basicWidth == 1 && !*sfp.toBool(): - continue - case fi.basicWidth == 4 && *sfp.toUint32() == 0: - continue - case fi.basicWidth == 8 && *sfp.toUint64() == 0: - continue - } - } - } - - dfp := dst.offset(fi.field) - fi.merge(dfp, sfp) - } - - // TODO: Make this faster? - out := dst.asPointerTo(mi.typ).Elem() - in := src.asPointerTo(mi.typ).Elem() - if emIn, err := extendable(in.Addr().Interface()); err == nil { - emOut, _ := extendable(out.Addr().Interface()) - mIn, muIn := emIn.extensionsRead() - if mIn != nil { - mOut := emOut.extensionsWrite() - muIn.Lock() - mergeExtension(mOut, mIn) - muIn.Unlock() - } - } - - if mi.unrecognized.IsValid() { - if b := *src.offset(mi.unrecognized).toBytes(); len(b) > 0 { - *dst.offset(mi.unrecognized).toBytes() = append([]byte(nil), b...) - } - } -} - -func (mi *mergeInfo) computeMergeInfo() { - mi.lock.Lock() - defer mi.lock.Unlock() - if mi.initialized != 0 { - return - } - t := mi.typ - n := t.NumField() - - props := GetProperties(t) - for i := 0; i < n; i++ { - f := t.Field(i) - if strings.HasPrefix(f.Name, "XXX_") { - continue - } - - mfi := mergeFieldInfo{field: toField(&f)} - tf := f.Type - - // As an optimization, we can avoid the merge function call cost - // if we know for sure that the source will have no effect - // by checking if it is the zero value. - if unsafeAllowed { - switch tf.Kind() { - case reflect.Ptr, reflect.Slice, reflect.String: - // As a special case, we assume slices and strings are pointers - // since we know that the first field in the SliceSlice or - // StringHeader is a data pointer. - mfi.isPointer = true - case reflect.Bool: - mfi.basicWidth = 1 - case reflect.Int32, reflect.Uint32, reflect.Float32: - mfi.basicWidth = 4 - case reflect.Int64, reflect.Uint64, reflect.Float64: - mfi.basicWidth = 8 - } - } - - // Unwrap tf to get at its most basic type. - var isPointer, isSlice bool - if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 { - isSlice = true - tf = tf.Elem() - } - if tf.Kind() == reflect.Ptr { - isPointer = true - tf = tf.Elem() - } - if isPointer && isSlice && tf.Kind() != reflect.Struct { - panic("both pointer and slice for basic type in " + tf.Name()) - } - - switch tf.Kind() { - case reflect.Int32: - switch { - case isSlice: // E.g., []int32 - mfi.merge = func(dst, src pointer) { - // NOTE: toInt32Slice is not defined (see pointer_reflect.go). - /* - sfsp := src.toInt32Slice() - if *sfsp != nil { - dfsp := dst.toInt32Slice() - *dfsp = append(*dfsp, *sfsp...) - if *dfsp == nil { - *dfsp = []int64{} - } - } - */ - sfs := src.getInt32Slice() - if sfs != nil { - dfs := dst.getInt32Slice() - dfs = append(dfs, sfs...) - if dfs == nil { - dfs = []int32{} - } - dst.setInt32Slice(dfs) - } - } - case isPointer: // E.g., *int32 - mfi.merge = func(dst, src pointer) { - // NOTE: toInt32Ptr is not defined (see pointer_reflect.go). - /* - sfpp := src.toInt32Ptr() - if *sfpp != nil { - dfpp := dst.toInt32Ptr() - if *dfpp == nil { - *dfpp = Int32(**sfpp) - } else { - **dfpp = **sfpp - } - } - */ - sfp := src.getInt32Ptr() - if sfp != nil { - dfp := dst.getInt32Ptr() - if dfp == nil { - dst.setInt32Ptr(*sfp) - } else { - *dfp = *sfp - } - } - } - default: // E.g., int32 - mfi.merge = func(dst, src pointer) { - if v := *src.toInt32(); v != 0 { - *dst.toInt32() = v - } - } - } - case reflect.Int64: - switch { - case isSlice: // E.g., []int64 - mfi.merge = func(dst, src pointer) { - sfsp := src.toInt64Slice() - if *sfsp != nil { - dfsp := dst.toInt64Slice() - *dfsp = append(*dfsp, *sfsp...) - if *dfsp == nil { - *dfsp = []int64{} - } - } - } - case isPointer: // E.g., *int64 - mfi.merge = func(dst, src pointer) { - sfpp := src.toInt64Ptr() - if *sfpp != nil { - dfpp := dst.toInt64Ptr() - if *dfpp == nil { - *dfpp = Int64(**sfpp) - } else { - **dfpp = **sfpp - } - } - } - default: // E.g., int64 - mfi.merge = func(dst, src pointer) { - if v := *src.toInt64(); v != 0 { - *dst.toInt64() = v - } - } - } - case reflect.Uint32: - switch { - case isSlice: // E.g., []uint32 - mfi.merge = func(dst, src pointer) { - sfsp := src.toUint32Slice() - if *sfsp != nil { - dfsp := dst.toUint32Slice() - *dfsp = append(*dfsp, *sfsp...) - if *dfsp == nil { - *dfsp = []uint32{} - } - } - } - case isPointer: // E.g., *uint32 - mfi.merge = func(dst, src pointer) { - sfpp := src.toUint32Ptr() - if *sfpp != nil { - dfpp := dst.toUint32Ptr() - if *dfpp == nil { - *dfpp = Uint32(**sfpp) - } else { - **dfpp = **sfpp - } - } - } - default: // E.g., uint32 - mfi.merge = func(dst, src pointer) { - if v := *src.toUint32(); v != 0 { - *dst.toUint32() = v - } - } - } - case reflect.Uint64: - switch { - case isSlice: // E.g., []uint64 - mfi.merge = func(dst, src pointer) { - sfsp := src.toUint64Slice() - if *sfsp != nil { - dfsp := dst.toUint64Slice() - *dfsp = append(*dfsp, *sfsp...) - if *dfsp == nil { - *dfsp = []uint64{} - } - } - } - case isPointer: // E.g., *uint64 - mfi.merge = func(dst, src pointer) { - sfpp := src.toUint64Ptr() - if *sfpp != nil { - dfpp := dst.toUint64Ptr() - if *dfpp == nil { - *dfpp = Uint64(**sfpp) - } else { - **dfpp = **sfpp - } - } - } - default: // E.g., uint64 - mfi.merge = func(dst, src pointer) { - if v := *src.toUint64(); v != 0 { - *dst.toUint64() = v - } - } - } - case reflect.Float32: - switch { - case isSlice: // E.g., []float32 - mfi.merge = func(dst, src pointer) { - sfsp := src.toFloat32Slice() - if *sfsp != nil { - dfsp := dst.toFloat32Slice() - *dfsp = append(*dfsp, *sfsp...) - if *dfsp == nil { - *dfsp = []float32{} - } - } - } - case isPointer: // E.g., *float32 - mfi.merge = func(dst, src pointer) { - sfpp := src.toFloat32Ptr() - if *sfpp != nil { - dfpp := dst.toFloat32Ptr() - if *dfpp == nil { - *dfpp = Float32(**sfpp) - } else { - **dfpp = **sfpp - } - } - } - default: // E.g., float32 - mfi.merge = func(dst, src pointer) { - if v := *src.toFloat32(); v != 0 { - *dst.toFloat32() = v - } - } - } - case reflect.Float64: - switch { - case isSlice: // E.g., []float64 - mfi.merge = func(dst, src pointer) { - sfsp := src.toFloat64Slice() - if *sfsp != nil { - dfsp := dst.toFloat64Slice() - *dfsp = append(*dfsp, *sfsp...) - if *dfsp == nil { - *dfsp = []float64{} - } - } - } - case isPointer: // E.g., *float64 - mfi.merge = func(dst, src pointer) { - sfpp := src.toFloat64Ptr() - if *sfpp != nil { - dfpp := dst.toFloat64Ptr() - if *dfpp == nil { - *dfpp = Float64(**sfpp) - } else { - **dfpp = **sfpp - } - } - } - default: // E.g., float64 - mfi.merge = func(dst, src pointer) { - if v := *src.toFloat64(); v != 0 { - *dst.toFloat64() = v - } - } - } - case reflect.Bool: - switch { - case isSlice: // E.g., []bool - mfi.merge = func(dst, src pointer) { - sfsp := src.toBoolSlice() - if *sfsp != nil { - dfsp := dst.toBoolSlice() - *dfsp = append(*dfsp, *sfsp...) - if *dfsp == nil { - *dfsp = []bool{} - } - } - } - case isPointer: // E.g., *bool - mfi.merge = func(dst, src pointer) { - sfpp := src.toBoolPtr() - if *sfpp != nil { - dfpp := dst.toBoolPtr() - if *dfpp == nil { - *dfpp = Bool(**sfpp) - } else { - **dfpp = **sfpp - } - } - } - default: // E.g., bool - mfi.merge = func(dst, src pointer) { - if v := *src.toBool(); v { - *dst.toBool() = v - } - } - } - case reflect.String: - switch { - case isSlice: // E.g., []string - mfi.merge = func(dst, src pointer) { - sfsp := src.toStringSlice() - if *sfsp != nil { - dfsp := dst.toStringSlice() - *dfsp = append(*dfsp, *sfsp...) - if *dfsp == nil { - *dfsp = []string{} - } - } - } - case isPointer: // E.g., *string - mfi.merge = func(dst, src pointer) { - sfpp := src.toStringPtr() - if *sfpp != nil { - dfpp := dst.toStringPtr() - if *dfpp == nil { - *dfpp = String(**sfpp) - } else { - **dfpp = **sfpp - } - } - } - default: // E.g., string - mfi.merge = func(dst, src pointer) { - if v := *src.toString(); v != "" { - *dst.toString() = v - } - } - } - case reflect.Slice: - isProto3 := props.Prop[i].proto3 - switch { - case isPointer: - panic("bad pointer in byte slice case in " + tf.Name()) - case tf.Elem().Kind() != reflect.Uint8: - panic("bad element kind in byte slice case in " + tf.Name()) - case isSlice: // E.g., [][]byte - mfi.merge = func(dst, src pointer) { - sbsp := src.toBytesSlice() - if *sbsp != nil { - dbsp := dst.toBytesSlice() - for _, sb := range *sbsp { - if sb == nil { - *dbsp = append(*dbsp, nil) - } else { - *dbsp = append(*dbsp, append([]byte{}, sb...)) - } - } - if *dbsp == nil { - *dbsp = [][]byte{} - } - } - } - default: // E.g., []byte - mfi.merge = func(dst, src pointer) { - sbp := src.toBytes() - if *sbp != nil { - dbp := dst.toBytes() - if !isProto3 || len(*sbp) > 0 { - *dbp = append([]byte{}, *sbp...) - } - } - } - } - case reflect.Struct: - switch { - case !isPointer: - panic(fmt.Sprintf("message field %s without pointer", tf)) - case isSlice: // E.g., []*pb.T - mi := getMergeInfo(tf) - mfi.merge = func(dst, src pointer) { - sps := src.getPointerSlice() - if sps != nil { - dps := dst.getPointerSlice() - for _, sp := range sps { - var dp pointer - if !sp.isNil() { - dp = valToPointer(reflect.New(tf)) - mi.merge(dp, sp) - } - dps = append(dps, dp) - } - if dps == nil { - dps = []pointer{} - } - dst.setPointerSlice(dps) - } - } - default: // E.g., *pb.T - mi := getMergeInfo(tf) - mfi.merge = func(dst, src pointer) { - sp := src.getPointer() - if !sp.isNil() { - dp := dst.getPointer() - if dp.isNil() { - dp = valToPointer(reflect.New(tf)) - dst.setPointer(dp) - } - mi.merge(dp, sp) - } - } - } - case reflect.Map: - switch { - case isPointer || isSlice: - panic("bad pointer or slice in map case in " + tf.Name()) - default: // E.g., map[K]V - mfi.merge = func(dst, src pointer) { - sm := src.asPointerTo(tf).Elem() - if sm.Len() == 0 { - return - } - dm := dst.asPointerTo(tf).Elem() - if dm.IsNil() { - dm.Set(reflect.MakeMap(tf)) - } - - switch tf.Elem().Kind() { - case reflect.Ptr: // Proto struct (e.g., *T) - for _, key := range sm.MapKeys() { - val := sm.MapIndex(key) - val = reflect.ValueOf(Clone(val.Interface().(Message))) - dm.SetMapIndex(key, val) - } - case reflect.Slice: // E.g. Bytes type (e.g., []byte) - for _, key := range sm.MapKeys() { - val := sm.MapIndex(key) - val = reflect.ValueOf(append([]byte{}, val.Bytes()...)) - dm.SetMapIndex(key, val) - } - default: // Basic type (e.g., string) - for _, key := range sm.MapKeys() { - val := sm.MapIndex(key) - dm.SetMapIndex(key, val) - } - } - } - } - case reflect.Interface: - // Must be oneof field. - switch { - case isPointer || isSlice: - panic("bad pointer or slice in interface case in " + tf.Name()) - default: // E.g., interface{} - // TODO: Make this faster? - mfi.merge = func(dst, src pointer) { - su := src.asPointerTo(tf).Elem() - if !su.IsNil() { - du := dst.asPointerTo(tf).Elem() - typ := su.Elem().Type() - if du.IsNil() || du.Elem().Type() != typ { - du.Set(reflect.New(typ.Elem())) // Initialize interface if empty - } - sv := su.Elem().Elem().Field(0) - if sv.Kind() == reflect.Ptr && sv.IsNil() { - return - } - dv := du.Elem().Elem().Field(0) - if dv.Kind() == reflect.Ptr && dv.IsNil() { - dv.Set(reflect.New(sv.Type().Elem())) // Initialize proto message if empty - } - switch sv.Type().Kind() { - case reflect.Ptr: // Proto struct (e.g., *T) - Merge(dv.Interface().(Message), sv.Interface().(Message)) - case reflect.Slice: // E.g. Bytes type (e.g., []byte) - dv.Set(reflect.ValueOf(append([]byte{}, sv.Bytes()...))) - default: // Basic type (e.g., string) - dv.Set(sv) - } - } - } - } - default: - panic(fmt.Sprintf("merger not found for type:%s", tf)) - } - mi.fields = append(mi.fields, mfi) - } - - mi.unrecognized = invalidField - if f, ok := t.FieldByName("XXX_unrecognized"); ok { - if f.Type != reflect.TypeOf([]byte{}) { - panic("expected XXX_unrecognized to be of type []byte") - } - mi.unrecognized = toField(&f) - } - - atomic.StoreInt32(&mi.initialized, 1) -} diff --git a/vendor/github.com/golang/protobuf/proto/table_unmarshal.go b/vendor/github.com/golang/protobuf/proto/table_unmarshal.go deleted file mode 100644 index acee2fc52..000000000 --- a/vendor/github.com/golang/protobuf/proto/table_unmarshal.go +++ /dev/null @@ -1,2053 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2016 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -import ( - "errors" - "fmt" - "io" - "math" - "reflect" - "strconv" - "strings" - "sync" - "sync/atomic" - "unicode/utf8" -) - -// Unmarshal is the entry point from the generated .pb.go files. -// This function is not intended to be used by non-generated code. -// This function is not subject to any compatibility guarantee. -// msg contains a pointer to a protocol buffer struct. -// b is the data to be unmarshaled into the protocol buffer. -// a is a pointer to a place to store cached unmarshal information. -func (a *InternalMessageInfo) Unmarshal(msg Message, b []byte) error { - // Load the unmarshal information for this message type. - // The atomic load ensures memory consistency. - u := atomicLoadUnmarshalInfo(&a.unmarshal) - if u == nil { - // Slow path: find unmarshal info for msg, update a with it. - u = getUnmarshalInfo(reflect.TypeOf(msg).Elem()) - atomicStoreUnmarshalInfo(&a.unmarshal, u) - } - // Then do the unmarshaling. - err := u.unmarshal(toPointer(&msg), b) - return err -} - -type unmarshalInfo struct { - typ reflect.Type // type of the protobuf struct - - // 0 = only typ field is initialized - // 1 = completely initialized - initialized int32 - lock sync.Mutex // prevents double initialization - dense []unmarshalFieldInfo // fields indexed by tag # - sparse map[uint64]unmarshalFieldInfo // fields indexed by tag # - reqFields []string // names of required fields - reqMask uint64 // 1< 0 { - // Read tag and wire type. - // Special case 1 and 2 byte varints. - var x uint64 - if b[0] < 128 { - x = uint64(b[0]) - b = b[1:] - } else if len(b) >= 2 && b[1] < 128 { - x = uint64(b[0]&0x7f) + uint64(b[1])<<7 - b = b[2:] - } else { - var n int - x, n = decodeVarint(b) - if n == 0 { - return io.ErrUnexpectedEOF - } - b = b[n:] - } - tag := x >> 3 - wire := int(x) & 7 - - // Dispatch on the tag to one of the unmarshal* functions below. - var f unmarshalFieldInfo - if tag < uint64(len(u.dense)) { - f = u.dense[tag] - } else { - f = u.sparse[tag] - } - if fn := f.unmarshal; fn != nil { - var err error - b, err = fn(b, m.offset(f.field), wire) - if err == nil { - reqMask |= f.reqMask - continue - } - if r, ok := err.(*RequiredNotSetError); ok { - // Remember this error, but keep parsing. We need to produce - // a full parse even if a required field is missing. - if errLater == nil { - errLater = r - } - reqMask |= f.reqMask - continue - } - if err != errInternalBadWireType { - if err == errInvalidUTF8 { - if errLater == nil { - fullName := revProtoTypes[reflect.PtrTo(u.typ)] + "." + f.name - errLater = &invalidUTF8Error{fullName} - } - continue - } - return err - } - // Fragments with bad wire type are treated as unknown fields. - } - - // Unknown tag. - if !u.unrecognized.IsValid() { - // Don't keep unrecognized data; just skip it. - var err error - b, err = skipField(b, wire) - if err != nil { - return err - } - continue - } - // Keep unrecognized data around. - // maybe in extensions, maybe in the unrecognized field. - z := m.offset(u.unrecognized).toBytes() - var emap map[int32]Extension - var e Extension - for _, r := range u.extensionRanges { - if uint64(r.Start) <= tag && tag <= uint64(r.End) { - if u.extensions.IsValid() { - mp := m.offset(u.extensions).toExtensions() - emap = mp.extensionsWrite() - e = emap[int32(tag)] - z = &e.enc - break - } - if u.oldExtensions.IsValid() { - p := m.offset(u.oldExtensions).toOldExtensions() - emap = *p - if emap == nil { - emap = map[int32]Extension{} - *p = emap - } - e = emap[int32(tag)] - z = &e.enc - break - } - panic("no extensions field available") - } - } - - // Use wire type to skip data. - var err error - b0 := b - b, err = skipField(b, wire) - if err != nil { - return err - } - *z = encodeVarint(*z, tag<<3|uint64(wire)) - *z = append(*z, b0[:len(b0)-len(b)]...) - - if emap != nil { - emap[int32(tag)] = e - } - } - if reqMask != u.reqMask && errLater == nil { - // A required field of this message is missing. - for _, n := range u.reqFields { - if reqMask&1 == 0 { - errLater = &RequiredNotSetError{n} - } - reqMask >>= 1 - } - } - return errLater -} - -// computeUnmarshalInfo fills in u with information for use -// in unmarshaling protocol buffers of type u.typ. -func (u *unmarshalInfo) computeUnmarshalInfo() { - u.lock.Lock() - defer u.lock.Unlock() - if u.initialized != 0 { - return - } - t := u.typ - n := t.NumField() - - // Set up the "not found" value for the unrecognized byte buffer. - // This is the default for proto3. - u.unrecognized = invalidField - u.extensions = invalidField - u.oldExtensions = invalidField - - // List of the generated type and offset for each oneof field. - type oneofField struct { - ityp reflect.Type // interface type of oneof field - field field // offset in containing message - } - var oneofFields []oneofField - - for i := 0; i < n; i++ { - f := t.Field(i) - if f.Name == "XXX_unrecognized" { - // The byte slice used to hold unrecognized input is special. - if f.Type != reflect.TypeOf(([]byte)(nil)) { - panic("bad type for XXX_unrecognized field: " + f.Type.Name()) - } - u.unrecognized = toField(&f) - continue - } - if f.Name == "XXX_InternalExtensions" { - // Ditto here. - if f.Type != reflect.TypeOf(XXX_InternalExtensions{}) { - panic("bad type for XXX_InternalExtensions field: " + f.Type.Name()) - } - u.extensions = toField(&f) - if f.Tag.Get("protobuf_messageset") == "1" { - u.isMessageSet = true - } - continue - } - if f.Name == "XXX_extensions" { - // An older form of the extensions field. - if f.Type != reflect.TypeOf((map[int32]Extension)(nil)) { - panic("bad type for XXX_extensions field: " + f.Type.Name()) - } - u.oldExtensions = toField(&f) - continue - } - if f.Name == "XXX_NoUnkeyedLiteral" || f.Name == "XXX_sizecache" { - continue - } - - oneof := f.Tag.Get("protobuf_oneof") - if oneof != "" { - oneofFields = append(oneofFields, oneofField{f.Type, toField(&f)}) - // The rest of oneof processing happens below. - continue - } - - tags := f.Tag.Get("protobuf") - tagArray := strings.Split(tags, ",") - if len(tagArray) < 2 { - panic("protobuf tag not enough fields in " + t.Name() + "." + f.Name + ": " + tags) - } - tag, err := strconv.Atoi(tagArray[1]) - if err != nil { - panic("protobuf tag field not an integer: " + tagArray[1]) - } - - name := "" - for _, tag := range tagArray[3:] { - if strings.HasPrefix(tag, "name=") { - name = tag[5:] - } - } - - // Extract unmarshaling function from the field (its type and tags). - unmarshal := fieldUnmarshaler(&f) - - // Required field? - var reqMask uint64 - if tagArray[2] == "req" { - bit := len(u.reqFields) - u.reqFields = append(u.reqFields, name) - reqMask = uint64(1) << uint(bit) - // TODO: if we have more than 64 required fields, we end up - // not verifying that all required fields are present. - // Fix this, perhaps using a count of required fields? - } - - // Store the info in the correct slot in the message. - u.setTag(tag, toField(&f), unmarshal, reqMask, name) - } - - // Find any types associated with oneof fields. - var oneofImplementers []interface{} - switch m := reflect.Zero(reflect.PtrTo(t)).Interface().(type) { - case oneofFuncsIface: - _, _, _, oneofImplementers = m.XXX_OneofFuncs() - case oneofWrappersIface: - oneofImplementers = m.XXX_OneofWrappers() - } - for _, v := range oneofImplementers { - tptr := reflect.TypeOf(v) // *Msg_X - typ := tptr.Elem() // Msg_X - - f := typ.Field(0) // oneof implementers have one field - baseUnmarshal := fieldUnmarshaler(&f) - tags := strings.Split(f.Tag.Get("protobuf"), ",") - fieldNum, err := strconv.Atoi(tags[1]) - if err != nil { - panic("protobuf tag field not an integer: " + tags[1]) - } - var name string - for _, tag := range tags { - if strings.HasPrefix(tag, "name=") { - name = strings.TrimPrefix(tag, "name=") - break - } - } - - // Find the oneof field that this struct implements. - // Might take O(n^2) to process all of the oneofs, but who cares. - for _, of := range oneofFields { - if tptr.Implements(of.ityp) { - // We have found the corresponding interface for this struct. - // That lets us know where this struct should be stored - // when we encounter it during unmarshaling. - unmarshal := makeUnmarshalOneof(typ, of.ityp, baseUnmarshal) - u.setTag(fieldNum, of.field, unmarshal, 0, name) - } - } - - } - - // Get extension ranges, if any. - fn := reflect.Zero(reflect.PtrTo(t)).MethodByName("ExtensionRangeArray") - if fn.IsValid() { - if !u.extensions.IsValid() && !u.oldExtensions.IsValid() { - panic("a message with extensions, but no extensions field in " + t.Name()) - } - u.extensionRanges = fn.Call(nil)[0].Interface().([]ExtensionRange) - } - - // Explicitly disallow tag 0. This will ensure we flag an error - // when decoding a buffer of all zeros. Without this code, we - // would decode and skip an all-zero buffer of even length. - // [0 0] is [tag=0/wiretype=varint varint-encoded-0]. - u.setTag(0, zeroField, func(b []byte, f pointer, w int) ([]byte, error) { - return nil, fmt.Errorf("proto: %s: illegal tag 0 (wire type %d)", t, w) - }, 0, "") - - // Set mask for required field check. - u.reqMask = uint64(1)<= 0 && (tag < 16 || tag < 2*n) { // TODO: what are the right numbers here? - for len(u.dense) <= tag { - u.dense = append(u.dense, unmarshalFieldInfo{}) - } - u.dense[tag] = i - return - } - if u.sparse == nil { - u.sparse = map[uint64]unmarshalFieldInfo{} - } - u.sparse[uint64(tag)] = i -} - -// fieldUnmarshaler returns an unmarshaler for the given field. -func fieldUnmarshaler(f *reflect.StructField) unmarshaler { - if f.Type.Kind() == reflect.Map { - return makeUnmarshalMap(f) - } - return typeUnmarshaler(f.Type, f.Tag.Get("protobuf")) -} - -// typeUnmarshaler returns an unmarshaler for the given field type / field tag pair. -func typeUnmarshaler(t reflect.Type, tags string) unmarshaler { - tagArray := strings.Split(tags, ",") - encoding := tagArray[0] - name := "unknown" - proto3 := false - validateUTF8 := true - for _, tag := range tagArray[3:] { - if strings.HasPrefix(tag, "name=") { - name = tag[5:] - } - if tag == "proto3" { - proto3 = true - } - } - validateUTF8 = validateUTF8 && proto3 - - // Figure out packaging (pointer, slice, or both) - slice := false - pointer := false - if t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 { - slice = true - t = t.Elem() - } - if t.Kind() == reflect.Ptr { - pointer = true - t = t.Elem() - } - - // We'll never have both pointer and slice for basic types. - if pointer && slice && t.Kind() != reflect.Struct { - panic("both pointer and slice for basic type in " + t.Name()) - } - - switch t.Kind() { - case reflect.Bool: - if pointer { - return unmarshalBoolPtr - } - if slice { - return unmarshalBoolSlice - } - return unmarshalBoolValue - case reflect.Int32: - switch encoding { - case "fixed32": - if pointer { - return unmarshalFixedS32Ptr - } - if slice { - return unmarshalFixedS32Slice - } - return unmarshalFixedS32Value - case "varint": - // this could be int32 or enum - if pointer { - return unmarshalInt32Ptr - } - if slice { - return unmarshalInt32Slice - } - return unmarshalInt32Value - case "zigzag32": - if pointer { - return unmarshalSint32Ptr - } - if slice { - return unmarshalSint32Slice - } - return unmarshalSint32Value - } - case reflect.Int64: - switch encoding { - case "fixed64": - if pointer { - return unmarshalFixedS64Ptr - } - if slice { - return unmarshalFixedS64Slice - } - return unmarshalFixedS64Value - case "varint": - if pointer { - return unmarshalInt64Ptr - } - if slice { - return unmarshalInt64Slice - } - return unmarshalInt64Value - case "zigzag64": - if pointer { - return unmarshalSint64Ptr - } - if slice { - return unmarshalSint64Slice - } - return unmarshalSint64Value - } - case reflect.Uint32: - switch encoding { - case "fixed32": - if pointer { - return unmarshalFixed32Ptr - } - if slice { - return unmarshalFixed32Slice - } - return unmarshalFixed32Value - case "varint": - if pointer { - return unmarshalUint32Ptr - } - if slice { - return unmarshalUint32Slice - } - return unmarshalUint32Value - } - case reflect.Uint64: - switch encoding { - case "fixed64": - if pointer { - return unmarshalFixed64Ptr - } - if slice { - return unmarshalFixed64Slice - } - return unmarshalFixed64Value - case "varint": - if pointer { - return unmarshalUint64Ptr - } - if slice { - return unmarshalUint64Slice - } - return unmarshalUint64Value - } - case reflect.Float32: - if pointer { - return unmarshalFloat32Ptr - } - if slice { - return unmarshalFloat32Slice - } - return unmarshalFloat32Value - case reflect.Float64: - if pointer { - return unmarshalFloat64Ptr - } - if slice { - return unmarshalFloat64Slice - } - return unmarshalFloat64Value - case reflect.Map: - panic("map type in typeUnmarshaler in " + t.Name()) - case reflect.Slice: - if pointer { - panic("bad pointer in slice case in " + t.Name()) - } - if slice { - return unmarshalBytesSlice - } - return unmarshalBytesValue - case reflect.String: - if validateUTF8 { - if pointer { - return unmarshalUTF8StringPtr - } - if slice { - return unmarshalUTF8StringSlice - } - return unmarshalUTF8StringValue - } - if pointer { - return unmarshalStringPtr - } - if slice { - return unmarshalStringSlice - } - return unmarshalStringValue - case reflect.Struct: - // message or group field - if !pointer { - panic(fmt.Sprintf("message/group field %s:%s without pointer", t, encoding)) - } - switch encoding { - case "bytes": - if slice { - return makeUnmarshalMessageSlicePtr(getUnmarshalInfo(t), name) - } - return makeUnmarshalMessagePtr(getUnmarshalInfo(t), name) - case "group": - if slice { - return makeUnmarshalGroupSlicePtr(getUnmarshalInfo(t), name) - } - return makeUnmarshalGroupPtr(getUnmarshalInfo(t), name) - } - } - panic(fmt.Sprintf("unmarshaler not found type:%s encoding:%s", t, encoding)) -} - -// Below are all the unmarshalers for individual fields of various types. - -func unmarshalInt64Value(b []byte, f pointer, w int) ([]byte, error) { - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := int64(x) - *f.toInt64() = v - return b, nil -} - -func unmarshalInt64Ptr(b []byte, f pointer, w int) ([]byte, error) { - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := int64(x) - *f.toInt64Ptr() = &v - return b, nil -} - -func unmarshalInt64Slice(b []byte, f pointer, w int) ([]byte, error) { - if w == WireBytes { // packed - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - res := b[x:] - b = b[:x] - for len(b) > 0 { - x, n = decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := int64(x) - s := f.toInt64Slice() - *s = append(*s, v) - } - return res, nil - } - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := int64(x) - s := f.toInt64Slice() - *s = append(*s, v) - return b, nil -} - -func unmarshalSint64Value(b []byte, f pointer, w int) ([]byte, error) { - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := int64(x>>1) ^ int64(x)<<63>>63 - *f.toInt64() = v - return b, nil -} - -func unmarshalSint64Ptr(b []byte, f pointer, w int) ([]byte, error) { - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := int64(x>>1) ^ int64(x)<<63>>63 - *f.toInt64Ptr() = &v - return b, nil -} - -func unmarshalSint64Slice(b []byte, f pointer, w int) ([]byte, error) { - if w == WireBytes { // packed - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - res := b[x:] - b = b[:x] - for len(b) > 0 { - x, n = decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := int64(x>>1) ^ int64(x)<<63>>63 - s := f.toInt64Slice() - *s = append(*s, v) - } - return res, nil - } - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := int64(x>>1) ^ int64(x)<<63>>63 - s := f.toInt64Slice() - *s = append(*s, v) - return b, nil -} - -func unmarshalUint64Value(b []byte, f pointer, w int) ([]byte, error) { - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := uint64(x) - *f.toUint64() = v - return b, nil -} - -func unmarshalUint64Ptr(b []byte, f pointer, w int) ([]byte, error) { - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := uint64(x) - *f.toUint64Ptr() = &v - return b, nil -} - -func unmarshalUint64Slice(b []byte, f pointer, w int) ([]byte, error) { - if w == WireBytes { // packed - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - res := b[x:] - b = b[:x] - for len(b) > 0 { - x, n = decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := uint64(x) - s := f.toUint64Slice() - *s = append(*s, v) - } - return res, nil - } - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := uint64(x) - s := f.toUint64Slice() - *s = append(*s, v) - return b, nil -} - -func unmarshalInt32Value(b []byte, f pointer, w int) ([]byte, error) { - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := int32(x) - *f.toInt32() = v - return b, nil -} - -func unmarshalInt32Ptr(b []byte, f pointer, w int) ([]byte, error) { - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := int32(x) - f.setInt32Ptr(v) - return b, nil -} - -func unmarshalInt32Slice(b []byte, f pointer, w int) ([]byte, error) { - if w == WireBytes { // packed - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - res := b[x:] - b = b[:x] - for len(b) > 0 { - x, n = decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := int32(x) - f.appendInt32Slice(v) - } - return res, nil - } - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := int32(x) - f.appendInt32Slice(v) - return b, nil -} - -func unmarshalSint32Value(b []byte, f pointer, w int) ([]byte, error) { - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := int32(x>>1) ^ int32(x)<<31>>31 - *f.toInt32() = v - return b, nil -} - -func unmarshalSint32Ptr(b []byte, f pointer, w int) ([]byte, error) { - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := int32(x>>1) ^ int32(x)<<31>>31 - f.setInt32Ptr(v) - return b, nil -} - -func unmarshalSint32Slice(b []byte, f pointer, w int) ([]byte, error) { - if w == WireBytes { // packed - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - res := b[x:] - b = b[:x] - for len(b) > 0 { - x, n = decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := int32(x>>1) ^ int32(x)<<31>>31 - f.appendInt32Slice(v) - } - return res, nil - } - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := int32(x>>1) ^ int32(x)<<31>>31 - f.appendInt32Slice(v) - return b, nil -} - -func unmarshalUint32Value(b []byte, f pointer, w int) ([]byte, error) { - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := uint32(x) - *f.toUint32() = v - return b, nil -} - -func unmarshalUint32Ptr(b []byte, f pointer, w int) ([]byte, error) { - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := uint32(x) - *f.toUint32Ptr() = &v - return b, nil -} - -func unmarshalUint32Slice(b []byte, f pointer, w int) ([]byte, error) { - if w == WireBytes { // packed - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - res := b[x:] - b = b[:x] - for len(b) > 0 { - x, n = decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := uint32(x) - s := f.toUint32Slice() - *s = append(*s, v) - } - return res, nil - } - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - v := uint32(x) - s := f.toUint32Slice() - *s = append(*s, v) - return b, nil -} - -func unmarshalFixed64Value(b []byte, f pointer, w int) ([]byte, error) { - if w != WireFixed64 { - return b, errInternalBadWireType - } - if len(b) < 8 { - return nil, io.ErrUnexpectedEOF - } - v := uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 - *f.toUint64() = v - return b[8:], nil -} - -func unmarshalFixed64Ptr(b []byte, f pointer, w int) ([]byte, error) { - if w != WireFixed64 { - return b, errInternalBadWireType - } - if len(b) < 8 { - return nil, io.ErrUnexpectedEOF - } - v := uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 - *f.toUint64Ptr() = &v - return b[8:], nil -} - -func unmarshalFixed64Slice(b []byte, f pointer, w int) ([]byte, error) { - if w == WireBytes { // packed - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - res := b[x:] - b = b[:x] - for len(b) > 0 { - if len(b) < 8 { - return nil, io.ErrUnexpectedEOF - } - v := uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 - s := f.toUint64Slice() - *s = append(*s, v) - b = b[8:] - } - return res, nil - } - if w != WireFixed64 { - return b, errInternalBadWireType - } - if len(b) < 8 { - return nil, io.ErrUnexpectedEOF - } - v := uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 - s := f.toUint64Slice() - *s = append(*s, v) - return b[8:], nil -} - -func unmarshalFixedS64Value(b []byte, f pointer, w int) ([]byte, error) { - if w != WireFixed64 { - return b, errInternalBadWireType - } - if len(b) < 8 { - return nil, io.ErrUnexpectedEOF - } - v := int64(b[0]) | int64(b[1])<<8 | int64(b[2])<<16 | int64(b[3])<<24 | int64(b[4])<<32 | int64(b[5])<<40 | int64(b[6])<<48 | int64(b[7])<<56 - *f.toInt64() = v - return b[8:], nil -} - -func unmarshalFixedS64Ptr(b []byte, f pointer, w int) ([]byte, error) { - if w != WireFixed64 { - return b, errInternalBadWireType - } - if len(b) < 8 { - return nil, io.ErrUnexpectedEOF - } - v := int64(b[0]) | int64(b[1])<<8 | int64(b[2])<<16 | int64(b[3])<<24 | int64(b[4])<<32 | int64(b[5])<<40 | int64(b[6])<<48 | int64(b[7])<<56 - *f.toInt64Ptr() = &v - return b[8:], nil -} - -func unmarshalFixedS64Slice(b []byte, f pointer, w int) ([]byte, error) { - if w == WireBytes { // packed - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - res := b[x:] - b = b[:x] - for len(b) > 0 { - if len(b) < 8 { - return nil, io.ErrUnexpectedEOF - } - v := int64(b[0]) | int64(b[1])<<8 | int64(b[2])<<16 | int64(b[3])<<24 | int64(b[4])<<32 | int64(b[5])<<40 | int64(b[6])<<48 | int64(b[7])<<56 - s := f.toInt64Slice() - *s = append(*s, v) - b = b[8:] - } - return res, nil - } - if w != WireFixed64 { - return b, errInternalBadWireType - } - if len(b) < 8 { - return nil, io.ErrUnexpectedEOF - } - v := int64(b[0]) | int64(b[1])<<8 | int64(b[2])<<16 | int64(b[3])<<24 | int64(b[4])<<32 | int64(b[5])<<40 | int64(b[6])<<48 | int64(b[7])<<56 - s := f.toInt64Slice() - *s = append(*s, v) - return b[8:], nil -} - -func unmarshalFixed32Value(b []byte, f pointer, w int) ([]byte, error) { - if w != WireFixed32 { - return b, errInternalBadWireType - } - if len(b) < 4 { - return nil, io.ErrUnexpectedEOF - } - v := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 - *f.toUint32() = v - return b[4:], nil -} - -func unmarshalFixed32Ptr(b []byte, f pointer, w int) ([]byte, error) { - if w != WireFixed32 { - return b, errInternalBadWireType - } - if len(b) < 4 { - return nil, io.ErrUnexpectedEOF - } - v := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 - *f.toUint32Ptr() = &v - return b[4:], nil -} - -func unmarshalFixed32Slice(b []byte, f pointer, w int) ([]byte, error) { - if w == WireBytes { // packed - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - res := b[x:] - b = b[:x] - for len(b) > 0 { - if len(b) < 4 { - return nil, io.ErrUnexpectedEOF - } - v := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 - s := f.toUint32Slice() - *s = append(*s, v) - b = b[4:] - } - return res, nil - } - if w != WireFixed32 { - return b, errInternalBadWireType - } - if len(b) < 4 { - return nil, io.ErrUnexpectedEOF - } - v := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 - s := f.toUint32Slice() - *s = append(*s, v) - return b[4:], nil -} - -func unmarshalFixedS32Value(b []byte, f pointer, w int) ([]byte, error) { - if w != WireFixed32 { - return b, errInternalBadWireType - } - if len(b) < 4 { - return nil, io.ErrUnexpectedEOF - } - v := int32(b[0]) | int32(b[1])<<8 | int32(b[2])<<16 | int32(b[3])<<24 - *f.toInt32() = v - return b[4:], nil -} - -func unmarshalFixedS32Ptr(b []byte, f pointer, w int) ([]byte, error) { - if w != WireFixed32 { - return b, errInternalBadWireType - } - if len(b) < 4 { - return nil, io.ErrUnexpectedEOF - } - v := int32(b[0]) | int32(b[1])<<8 | int32(b[2])<<16 | int32(b[3])<<24 - f.setInt32Ptr(v) - return b[4:], nil -} - -func unmarshalFixedS32Slice(b []byte, f pointer, w int) ([]byte, error) { - if w == WireBytes { // packed - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - res := b[x:] - b = b[:x] - for len(b) > 0 { - if len(b) < 4 { - return nil, io.ErrUnexpectedEOF - } - v := int32(b[0]) | int32(b[1])<<8 | int32(b[2])<<16 | int32(b[3])<<24 - f.appendInt32Slice(v) - b = b[4:] - } - return res, nil - } - if w != WireFixed32 { - return b, errInternalBadWireType - } - if len(b) < 4 { - return nil, io.ErrUnexpectedEOF - } - v := int32(b[0]) | int32(b[1])<<8 | int32(b[2])<<16 | int32(b[3])<<24 - f.appendInt32Slice(v) - return b[4:], nil -} - -func unmarshalBoolValue(b []byte, f pointer, w int) ([]byte, error) { - if w != WireVarint { - return b, errInternalBadWireType - } - // Note: any length varint is allowed, even though any sane - // encoder will use one byte. - // See https://github.com/golang/protobuf/issues/76 - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - // TODO: check if x>1? Tests seem to indicate no. - v := x != 0 - *f.toBool() = v - return b[n:], nil -} - -func unmarshalBoolPtr(b []byte, f pointer, w int) ([]byte, error) { - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - v := x != 0 - *f.toBoolPtr() = &v - return b[n:], nil -} - -func unmarshalBoolSlice(b []byte, f pointer, w int) ([]byte, error) { - if w == WireBytes { // packed - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - res := b[x:] - b = b[:x] - for len(b) > 0 { - x, n = decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - v := x != 0 - s := f.toBoolSlice() - *s = append(*s, v) - b = b[n:] - } - return res, nil - } - if w != WireVarint { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - v := x != 0 - s := f.toBoolSlice() - *s = append(*s, v) - return b[n:], nil -} - -func unmarshalFloat64Value(b []byte, f pointer, w int) ([]byte, error) { - if w != WireFixed64 { - return b, errInternalBadWireType - } - if len(b) < 8 { - return nil, io.ErrUnexpectedEOF - } - v := math.Float64frombits(uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56) - *f.toFloat64() = v - return b[8:], nil -} - -func unmarshalFloat64Ptr(b []byte, f pointer, w int) ([]byte, error) { - if w != WireFixed64 { - return b, errInternalBadWireType - } - if len(b) < 8 { - return nil, io.ErrUnexpectedEOF - } - v := math.Float64frombits(uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56) - *f.toFloat64Ptr() = &v - return b[8:], nil -} - -func unmarshalFloat64Slice(b []byte, f pointer, w int) ([]byte, error) { - if w == WireBytes { // packed - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - res := b[x:] - b = b[:x] - for len(b) > 0 { - if len(b) < 8 { - return nil, io.ErrUnexpectedEOF - } - v := math.Float64frombits(uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56) - s := f.toFloat64Slice() - *s = append(*s, v) - b = b[8:] - } - return res, nil - } - if w != WireFixed64 { - return b, errInternalBadWireType - } - if len(b) < 8 { - return nil, io.ErrUnexpectedEOF - } - v := math.Float64frombits(uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56) - s := f.toFloat64Slice() - *s = append(*s, v) - return b[8:], nil -} - -func unmarshalFloat32Value(b []byte, f pointer, w int) ([]byte, error) { - if w != WireFixed32 { - return b, errInternalBadWireType - } - if len(b) < 4 { - return nil, io.ErrUnexpectedEOF - } - v := math.Float32frombits(uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24) - *f.toFloat32() = v - return b[4:], nil -} - -func unmarshalFloat32Ptr(b []byte, f pointer, w int) ([]byte, error) { - if w != WireFixed32 { - return b, errInternalBadWireType - } - if len(b) < 4 { - return nil, io.ErrUnexpectedEOF - } - v := math.Float32frombits(uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24) - *f.toFloat32Ptr() = &v - return b[4:], nil -} - -func unmarshalFloat32Slice(b []byte, f pointer, w int) ([]byte, error) { - if w == WireBytes { // packed - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - res := b[x:] - b = b[:x] - for len(b) > 0 { - if len(b) < 4 { - return nil, io.ErrUnexpectedEOF - } - v := math.Float32frombits(uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24) - s := f.toFloat32Slice() - *s = append(*s, v) - b = b[4:] - } - return res, nil - } - if w != WireFixed32 { - return b, errInternalBadWireType - } - if len(b) < 4 { - return nil, io.ErrUnexpectedEOF - } - v := math.Float32frombits(uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24) - s := f.toFloat32Slice() - *s = append(*s, v) - return b[4:], nil -} - -func unmarshalStringValue(b []byte, f pointer, w int) ([]byte, error) { - if w != WireBytes { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - v := string(b[:x]) - *f.toString() = v - return b[x:], nil -} - -func unmarshalStringPtr(b []byte, f pointer, w int) ([]byte, error) { - if w != WireBytes { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - v := string(b[:x]) - *f.toStringPtr() = &v - return b[x:], nil -} - -func unmarshalStringSlice(b []byte, f pointer, w int) ([]byte, error) { - if w != WireBytes { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - v := string(b[:x]) - s := f.toStringSlice() - *s = append(*s, v) - return b[x:], nil -} - -func unmarshalUTF8StringValue(b []byte, f pointer, w int) ([]byte, error) { - if w != WireBytes { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - v := string(b[:x]) - *f.toString() = v - if !utf8.ValidString(v) { - return b[x:], errInvalidUTF8 - } - return b[x:], nil -} - -func unmarshalUTF8StringPtr(b []byte, f pointer, w int) ([]byte, error) { - if w != WireBytes { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - v := string(b[:x]) - *f.toStringPtr() = &v - if !utf8.ValidString(v) { - return b[x:], errInvalidUTF8 - } - return b[x:], nil -} - -func unmarshalUTF8StringSlice(b []byte, f pointer, w int) ([]byte, error) { - if w != WireBytes { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - v := string(b[:x]) - s := f.toStringSlice() - *s = append(*s, v) - if !utf8.ValidString(v) { - return b[x:], errInvalidUTF8 - } - return b[x:], nil -} - -var emptyBuf [0]byte - -func unmarshalBytesValue(b []byte, f pointer, w int) ([]byte, error) { - if w != WireBytes { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - // The use of append here is a trick which avoids the zeroing - // that would be required if we used a make/copy pair. - // We append to emptyBuf instead of nil because we want - // a non-nil result even when the length is 0. - v := append(emptyBuf[:], b[:x]...) - *f.toBytes() = v - return b[x:], nil -} - -func unmarshalBytesSlice(b []byte, f pointer, w int) ([]byte, error) { - if w != WireBytes { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - v := append(emptyBuf[:], b[:x]...) - s := f.toBytesSlice() - *s = append(*s, v) - return b[x:], nil -} - -func makeUnmarshalMessagePtr(sub *unmarshalInfo, name string) unmarshaler { - return func(b []byte, f pointer, w int) ([]byte, error) { - if w != WireBytes { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - // First read the message field to see if something is there. - // The semantics of multiple submessages are weird. Instead of - // the last one winning (as it is for all other fields), multiple - // submessages are merged. - v := f.getPointer() - if v.isNil() { - v = valToPointer(reflect.New(sub.typ)) - f.setPointer(v) - } - err := sub.unmarshal(v, b[:x]) - if err != nil { - if r, ok := err.(*RequiredNotSetError); ok { - r.field = name + "." + r.field - } else { - return nil, err - } - } - return b[x:], err - } -} - -func makeUnmarshalMessageSlicePtr(sub *unmarshalInfo, name string) unmarshaler { - return func(b []byte, f pointer, w int) ([]byte, error) { - if w != WireBytes { - return b, errInternalBadWireType - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - v := valToPointer(reflect.New(sub.typ)) - err := sub.unmarshal(v, b[:x]) - if err != nil { - if r, ok := err.(*RequiredNotSetError); ok { - r.field = name + "." + r.field - } else { - return nil, err - } - } - f.appendPointer(v) - return b[x:], err - } -} - -func makeUnmarshalGroupPtr(sub *unmarshalInfo, name string) unmarshaler { - return func(b []byte, f pointer, w int) ([]byte, error) { - if w != WireStartGroup { - return b, errInternalBadWireType - } - x, y := findEndGroup(b) - if x < 0 { - return nil, io.ErrUnexpectedEOF - } - v := f.getPointer() - if v.isNil() { - v = valToPointer(reflect.New(sub.typ)) - f.setPointer(v) - } - err := sub.unmarshal(v, b[:x]) - if err != nil { - if r, ok := err.(*RequiredNotSetError); ok { - r.field = name + "." + r.field - } else { - return nil, err - } - } - return b[y:], err - } -} - -func makeUnmarshalGroupSlicePtr(sub *unmarshalInfo, name string) unmarshaler { - return func(b []byte, f pointer, w int) ([]byte, error) { - if w != WireStartGroup { - return b, errInternalBadWireType - } - x, y := findEndGroup(b) - if x < 0 { - return nil, io.ErrUnexpectedEOF - } - v := valToPointer(reflect.New(sub.typ)) - err := sub.unmarshal(v, b[:x]) - if err != nil { - if r, ok := err.(*RequiredNotSetError); ok { - r.field = name + "." + r.field - } else { - return nil, err - } - } - f.appendPointer(v) - return b[y:], err - } -} - -func makeUnmarshalMap(f *reflect.StructField) unmarshaler { - t := f.Type - kt := t.Key() - vt := t.Elem() - unmarshalKey := typeUnmarshaler(kt, f.Tag.Get("protobuf_key")) - unmarshalVal := typeUnmarshaler(vt, f.Tag.Get("protobuf_val")) - return func(b []byte, f pointer, w int) ([]byte, error) { - // The map entry is a submessage. Figure out how big it is. - if w != WireBytes { - return nil, fmt.Errorf("proto: bad wiretype for map field: got %d want %d", w, WireBytes) - } - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - b = b[n:] - if x > uint64(len(b)) { - return nil, io.ErrUnexpectedEOF - } - r := b[x:] // unused data to return - b = b[:x] // data for map entry - - // Note: we could use #keys * #values ~= 200 functions - // to do map decoding without reflection. Probably not worth it. - // Maps will be somewhat slow. Oh well. - - // Read key and value from data. - var nerr nonFatal - k := reflect.New(kt) - v := reflect.New(vt) - for len(b) > 0 { - x, n := decodeVarint(b) - if n == 0 { - return nil, io.ErrUnexpectedEOF - } - wire := int(x) & 7 - b = b[n:] - - var err error - switch x >> 3 { - case 1: - b, err = unmarshalKey(b, valToPointer(k), wire) - case 2: - b, err = unmarshalVal(b, valToPointer(v), wire) - default: - err = errInternalBadWireType // skip unknown tag - } - - if nerr.Merge(err) { - continue - } - if err != errInternalBadWireType { - return nil, err - } - - // Skip past unknown fields. - b, err = skipField(b, wire) - if err != nil { - return nil, err - } - } - - // Get map, allocate if needed. - m := f.asPointerTo(t).Elem() // an addressable map[K]T - if m.IsNil() { - m.Set(reflect.MakeMap(t)) - } - - // Insert into map. - m.SetMapIndex(k.Elem(), v.Elem()) - - return r, nerr.E - } -} - -// makeUnmarshalOneof makes an unmarshaler for oneof fields. -// for: -// message Msg { -// oneof F { -// int64 X = 1; -// float64 Y = 2; -// } -// } -// typ is the type of the concrete entry for a oneof case (e.g. Msg_X). -// ityp is the interface type of the oneof field (e.g. isMsg_F). -// unmarshal is the unmarshaler for the base type of the oneof case (e.g. int64). -// Note that this function will be called once for each case in the oneof. -func makeUnmarshalOneof(typ, ityp reflect.Type, unmarshal unmarshaler) unmarshaler { - sf := typ.Field(0) - field0 := toField(&sf) - return func(b []byte, f pointer, w int) ([]byte, error) { - // Allocate holder for value. - v := reflect.New(typ) - - // Unmarshal data into holder. - // We unmarshal into the first field of the holder object. - var err error - var nerr nonFatal - b, err = unmarshal(b, valToPointer(v).offset(field0), w) - if !nerr.Merge(err) { - return nil, err - } - - // Write pointer to holder into target field. - f.asPointerTo(ityp).Elem().Set(v) - - return b, nerr.E - } -} - -// Error used by decode internally. -var errInternalBadWireType = errors.New("proto: internal error: bad wiretype") - -// skipField skips past a field of type wire and returns the remaining bytes. -func skipField(b []byte, wire int) ([]byte, error) { - switch wire { - case WireVarint: - _, k := decodeVarint(b) - if k == 0 { - return b, io.ErrUnexpectedEOF - } - b = b[k:] - case WireFixed32: - if len(b) < 4 { - return b, io.ErrUnexpectedEOF - } - b = b[4:] - case WireFixed64: - if len(b) < 8 { - return b, io.ErrUnexpectedEOF - } - b = b[8:] - case WireBytes: - m, k := decodeVarint(b) - if k == 0 || uint64(len(b)-k) < m { - return b, io.ErrUnexpectedEOF - } - b = b[uint64(k)+m:] - case WireStartGroup: - _, i := findEndGroup(b) - if i == -1 { - return b, io.ErrUnexpectedEOF - } - b = b[i:] - default: - return b, fmt.Errorf("proto: can't skip unknown wire type %d", wire) - } - return b, nil -} - -// findEndGroup finds the index of the next EndGroup tag. -// Groups may be nested, so the "next" EndGroup tag is the first -// unpaired EndGroup. -// findEndGroup returns the indexes of the start and end of the EndGroup tag. -// Returns (-1,-1) if it can't find one. -func findEndGroup(b []byte) (int, int) { - depth := 1 - i := 0 - for { - x, n := decodeVarint(b[i:]) - if n == 0 { - return -1, -1 - } - j := i - i += n - switch x & 7 { - case WireVarint: - _, k := decodeVarint(b[i:]) - if k == 0 { - return -1, -1 - } - i += k - case WireFixed32: - if len(b)-4 < i { - return -1, -1 - } - i += 4 - case WireFixed64: - if len(b)-8 < i { - return -1, -1 - } - i += 8 - case WireBytes: - m, k := decodeVarint(b[i:]) - if k == 0 { - return -1, -1 - } - i += k - if uint64(len(b)-i) < m { - return -1, -1 - } - i += int(m) - case WireStartGroup: - depth++ - case WireEndGroup: - depth-- - if depth == 0 { - return j, i - } - default: - return -1, -1 - } - } -} - -// encodeVarint appends a varint-encoded integer to b and returns the result. -func encodeVarint(b []byte, x uint64) []byte { - for x >= 1<<7 { - b = append(b, byte(x&0x7f|0x80)) - x >>= 7 - } - return append(b, byte(x)) -} - -// decodeVarint reads a varint-encoded integer from b. -// Returns the decoded integer and the number of bytes read. -// If there is an error, it returns 0,0. -func decodeVarint(b []byte) (uint64, int) { - var x, y uint64 - if len(b) == 0 { - goto bad - } - x = uint64(b[0]) - if x < 0x80 { - return x, 1 - } - x -= 0x80 - - if len(b) <= 1 { - goto bad - } - y = uint64(b[1]) - x += y << 7 - if y < 0x80 { - return x, 2 - } - x -= 0x80 << 7 - - if len(b) <= 2 { - goto bad - } - y = uint64(b[2]) - x += y << 14 - if y < 0x80 { - return x, 3 - } - x -= 0x80 << 14 - - if len(b) <= 3 { - goto bad - } - y = uint64(b[3]) - x += y << 21 - if y < 0x80 { - return x, 4 - } - x -= 0x80 << 21 - - if len(b) <= 4 { - goto bad - } - y = uint64(b[4]) - x += y << 28 - if y < 0x80 { - return x, 5 - } - x -= 0x80 << 28 - - if len(b) <= 5 { - goto bad - } - y = uint64(b[5]) - x += y << 35 - if y < 0x80 { - return x, 6 - } - x -= 0x80 << 35 - - if len(b) <= 6 { - goto bad - } - y = uint64(b[6]) - x += y << 42 - if y < 0x80 { - return x, 7 - } - x -= 0x80 << 42 - - if len(b) <= 7 { - goto bad - } - y = uint64(b[7]) - x += y << 49 - if y < 0x80 { - return x, 8 - } - x -= 0x80 << 49 - - if len(b) <= 8 { - goto bad - } - y = uint64(b[8]) - x += y << 56 - if y < 0x80 { - return x, 9 - } - x -= 0x80 << 56 - - if len(b) <= 9 { - goto bad - } - y = uint64(b[9]) - x += y << 63 - if y < 2 { - return x, 10 - } - -bad: - return 0, 0 -} diff --git a/vendor/github.com/golang/protobuf/proto/text.go b/vendor/github.com/golang/protobuf/proto/text.go deleted file mode 100644 index d97f9b356..000000000 --- a/vendor/github.com/golang/protobuf/proto/text.go +++ /dev/null @@ -1,845 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -// Functions for writing the text protocol buffer format. - -import ( - "bufio" - "bytes" - "encoding" - "errors" - "fmt" - "io" - "log" - "math" - "reflect" - "sort" - "strings" -) - -var ( - newline = []byte("\n") - spaces = []byte(" ") - endBraceNewline = []byte("}\n") - backslashN = []byte{'\\', 'n'} - backslashR = []byte{'\\', 'r'} - backslashT = []byte{'\\', 't'} - backslashDQ = []byte{'\\', '"'} - backslashBS = []byte{'\\', '\\'} - posInf = []byte("inf") - negInf = []byte("-inf") - nan = []byte("nan") -) - -type writer interface { - io.Writer - WriteByte(byte) error -} - -// textWriter is an io.Writer that tracks its indentation level. -type textWriter struct { - ind int - complete bool // if the current position is a complete line - compact bool // whether to write out as a one-liner - w writer -} - -func (w *textWriter) WriteString(s string) (n int, err error) { - if !strings.Contains(s, "\n") { - if !w.compact && w.complete { - w.writeIndent() - } - w.complete = false - return io.WriteString(w.w, s) - } - // WriteString is typically called without newlines, so this - // codepath and its copy are rare. We copy to avoid - // duplicating all of Write's logic here. - return w.Write([]byte(s)) -} - -func (w *textWriter) Write(p []byte) (n int, err error) { - newlines := bytes.Count(p, newline) - if newlines == 0 { - if !w.compact && w.complete { - w.writeIndent() - } - n, err = w.w.Write(p) - w.complete = false - return n, err - } - - frags := bytes.SplitN(p, newline, newlines+1) - if w.compact { - for i, frag := range frags { - if i > 0 { - if err := w.w.WriteByte(' '); err != nil { - return n, err - } - n++ - } - nn, err := w.w.Write(frag) - n += nn - if err != nil { - return n, err - } - } - return n, nil - } - - for i, frag := range frags { - if w.complete { - w.writeIndent() - } - nn, err := w.w.Write(frag) - n += nn - if err != nil { - return n, err - } - if i+1 < len(frags) { - if err := w.w.WriteByte('\n'); err != nil { - return n, err - } - n++ - } - } - w.complete = len(frags[len(frags)-1]) == 0 - return n, nil -} - -func (w *textWriter) WriteByte(c byte) error { - if w.compact && c == '\n' { - c = ' ' - } - if !w.compact && w.complete { - w.writeIndent() - } - err := w.w.WriteByte(c) - w.complete = c == '\n' - return err -} - -func (w *textWriter) indent() { w.ind++ } - -func (w *textWriter) unindent() { - if w.ind == 0 { - log.Print("proto: textWriter unindented too far") - return - } - w.ind-- -} - -func writeName(w *textWriter, props *Properties) error { - if _, err := w.WriteString(props.OrigName); err != nil { - return err - } - if props.Wire != "group" { - return w.WriteByte(':') - } - return nil -} - -func requiresQuotes(u string) bool { - // When type URL contains any characters except [0-9A-Za-z./\-]*, it must be quoted. - for _, ch := range u { - switch { - case ch == '.' || ch == '/' || ch == '_': - continue - case '0' <= ch && ch <= '9': - continue - case 'A' <= ch && ch <= 'Z': - continue - case 'a' <= ch && ch <= 'z': - continue - default: - return true - } - } - return false -} - -// isAny reports whether sv is a google.protobuf.Any message -func isAny(sv reflect.Value) bool { - type wkt interface { - XXX_WellKnownType() string - } - t, ok := sv.Addr().Interface().(wkt) - return ok && t.XXX_WellKnownType() == "Any" -} - -// writeProto3Any writes an expanded google.protobuf.Any message. -// -// It returns (false, nil) if sv value can't be unmarshaled (e.g. because -// required messages are not linked in). -// -// It returns (true, error) when sv was written in expanded format or an error -// was encountered. -func (tm *TextMarshaler) writeProto3Any(w *textWriter, sv reflect.Value) (bool, error) { - turl := sv.FieldByName("TypeUrl") - val := sv.FieldByName("Value") - if !turl.IsValid() || !val.IsValid() { - return true, errors.New("proto: invalid google.protobuf.Any message") - } - - b, ok := val.Interface().([]byte) - if !ok { - return true, errors.New("proto: invalid google.protobuf.Any message") - } - - parts := strings.Split(turl.String(), "/") - mt := MessageType(parts[len(parts)-1]) - if mt == nil { - return false, nil - } - m := reflect.New(mt.Elem()) - if err := Unmarshal(b, m.Interface().(Message)); err != nil { - return false, nil - } - w.Write([]byte("[")) - u := turl.String() - if requiresQuotes(u) { - writeString(w, u) - } else { - w.Write([]byte(u)) - } - if w.compact { - w.Write([]byte("]:<")) - } else { - w.Write([]byte("]: <\n")) - w.ind++ - } - if err := tm.writeStruct(w, m.Elem()); err != nil { - return true, err - } - if w.compact { - w.Write([]byte("> ")) - } else { - w.ind-- - w.Write([]byte(">\n")) - } - return true, nil -} - -func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error { - if tm.ExpandAny && isAny(sv) { - if canExpand, err := tm.writeProto3Any(w, sv); canExpand { - return err - } - } - st := sv.Type() - sprops := GetProperties(st) - for i := 0; i < sv.NumField(); i++ { - fv := sv.Field(i) - props := sprops.Prop[i] - name := st.Field(i).Name - - if name == "XXX_NoUnkeyedLiteral" { - continue - } - - if strings.HasPrefix(name, "XXX_") { - // There are two XXX_ fields: - // XXX_unrecognized []byte - // XXX_extensions map[int32]proto.Extension - // The first is handled here; - // the second is handled at the bottom of this function. - if name == "XXX_unrecognized" && !fv.IsNil() { - if err := writeUnknownStruct(w, fv.Interface().([]byte)); err != nil { - return err - } - } - continue - } - if fv.Kind() == reflect.Ptr && fv.IsNil() { - // Field not filled in. This could be an optional field or - // a required field that wasn't filled in. Either way, there - // isn't anything we can show for it. - continue - } - if fv.Kind() == reflect.Slice && fv.IsNil() { - // Repeated field that is empty, or a bytes field that is unused. - continue - } - - if props.Repeated && fv.Kind() == reflect.Slice { - // Repeated field. - for j := 0; j < fv.Len(); j++ { - if err := writeName(w, props); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - v := fv.Index(j) - if v.Kind() == reflect.Ptr && v.IsNil() { - // A nil message in a repeated field is not valid, - // but we can handle that more gracefully than panicking. - if _, err := w.Write([]byte("\n")); err != nil { - return err - } - continue - } - if err := tm.writeAny(w, v, props); err != nil { - return err - } - if err := w.WriteByte('\n'); err != nil { - return err - } - } - continue - } - if fv.Kind() == reflect.Map { - // Map fields are rendered as a repeated struct with key/value fields. - keys := fv.MapKeys() - sort.Sort(mapKeys(keys)) - for _, key := range keys { - val := fv.MapIndex(key) - if err := writeName(w, props); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - // open struct - if err := w.WriteByte('<'); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte('\n'); err != nil { - return err - } - } - w.indent() - // key - if _, err := w.WriteString("key:"); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - if err := tm.writeAny(w, key, props.MapKeyProp); err != nil { - return err - } - if err := w.WriteByte('\n'); err != nil { - return err - } - // nil values aren't legal, but we can avoid panicking because of them. - if val.Kind() != reflect.Ptr || !val.IsNil() { - // value - if _, err := w.WriteString("value:"); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - if err := tm.writeAny(w, val, props.MapValProp); err != nil { - return err - } - if err := w.WriteByte('\n'); err != nil { - return err - } - } - // close struct - w.unindent() - if err := w.WriteByte('>'); err != nil { - return err - } - if err := w.WriteByte('\n'); err != nil { - return err - } - } - continue - } - if props.proto3 && fv.Kind() == reflect.Slice && fv.Len() == 0 { - // empty bytes field - continue - } - if fv.Kind() != reflect.Ptr && fv.Kind() != reflect.Slice { - // proto3 non-repeated scalar field; skip if zero value - if isProto3Zero(fv) { - continue - } - } - - if fv.Kind() == reflect.Interface { - // Check if it is a oneof. - if st.Field(i).Tag.Get("protobuf_oneof") != "" { - // fv is nil, or holds a pointer to generated struct. - // That generated struct has exactly one field, - // which has a protobuf struct tag. - if fv.IsNil() { - continue - } - inner := fv.Elem().Elem() // interface -> *T -> T - tag := inner.Type().Field(0).Tag.Get("protobuf") - props = new(Properties) // Overwrite the outer props var, but not its pointee. - props.Parse(tag) - // Write the value in the oneof, not the oneof itself. - fv = inner.Field(0) - - // Special case to cope with malformed messages gracefully: - // If the value in the oneof is a nil pointer, don't panic - // in writeAny. - if fv.Kind() == reflect.Ptr && fv.IsNil() { - // Use errors.New so writeAny won't render quotes. - msg := errors.New("/* nil */") - fv = reflect.ValueOf(&msg).Elem() - } - } - } - - if err := writeName(w, props); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - - // Enums have a String method, so writeAny will work fine. - if err := tm.writeAny(w, fv, props); err != nil { - return err - } - - if err := w.WriteByte('\n'); err != nil { - return err - } - } - - // Extensions (the XXX_extensions field). - pv := sv.Addr() - if _, err := extendable(pv.Interface()); err == nil { - if err := tm.writeExtensions(w, pv); err != nil { - return err - } - } - - return nil -} - -var textMarshalerType = reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem() - -// writeAny writes an arbitrary field. -func (tm *TextMarshaler) writeAny(w *textWriter, v reflect.Value, props *Properties) error { - v = reflect.Indirect(v) - - // Floats have special cases. - if v.Kind() == reflect.Float32 || v.Kind() == reflect.Float64 { - x := v.Float() - var b []byte - switch { - case math.IsInf(x, 1): - b = posInf - case math.IsInf(x, -1): - b = negInf - case math.IsNaN(x): - b = nan - } - if b != nil { - _, err := w.Write(b) - return err - } - // Other values are handled below. - } - - // We don't attempt to serialise every possible value type; only those - // that can occur in protocol buffers. - switch v.Kind() { - case reflect.Slice: - // Should only be a []byte; repeated fields are handled in writeStruct. - if err := writeString(w, string(v.Bytes())); err != nil { - return err - } - case reflect.String: - if err := writeString(w, v.String()); err != nil { - return err - } - case reflect.Struct: - // Required/optional group/message. - var bra, ket byte = '<', '>' - if props != nil && props.Wire == "group" { - bra, ket = '{', '}' - } - if err := w.WriteByte(bra); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte('\n'); err != nil { - return err - } - } - w.indent() - if v.CanAddr() { - // Calling v.Interface on a struct causes the reflect package to - // copy the entire struct. This is racy with the new Marshaler - // since we atomically update the XXX_sizecache. - // - // Thus, we retrieve a pointer to the struct if possible to avoid - // a race since v.Interface on the pointer doesn't copy the struct. - // - // If v is not addressable, then we are not worried about a race - // since it implies that the binary Marshaler cannot possibly be - // mutating this value. - v = v.Addr() - } - if v.Type().Implements(textMarshalerType) { - text, err := v.Interface().(encoding.TextMarshaler).MarshalText() - if err != nil { - return err - } - if _, err = w.Write(text); err != nil { - return err - } - } else { - if v.Kind() == reflect.Ptr { - v = v.Elem() - } - if err := tm.writeStruct(w, v); err != nil { - return err - } - } - w.unindent() - if err := w.WriteByte(ket); err != nil { - return err - } - default: - _, err := fmt.Fprint(w, v.Interface()) - return err - } - return nil -} - -// equivalent to C's isprint. -func isprint(c byte) bool { - return c >= 0x20 && c < 0x7f -} - -// writeString writes a string in the protocol buffer text format. -// It is similar to strconv.Quote except we don't use Go escape sequences, -// we treat the string as a byte sequence, and we use octal escapes. -// These differences are to maintain interoperability with the other -// languages' implementations of the text format. -func writeString(w *textWriter, s string) error { - // use WriteByte here to get any needed indent - if err := w.WriteByte('"'); err != nil { - return err - } - // Loop over the bytes, not the runes. - for i := 0; i < len(s); i++ { - var err error - // Divergence from C++: we don't escape apostrophes. - // There's no need to escape them, and the C++ parser - // copes with a naked apostrophe. - switch c := s[i]; c { - case '\n': - _, err = w.w.Write(backslashN) - case '\r': - _, err = w.w.Write(backslashR) - case '\t': - _, err = w.w.Write(backslashT) - case '"': - _, err = w.w.Write(backslashDQ) - case '\\': - _, err = w.w.Write(backslashBS) - default: - if isprint(c) { - err = w.w.WriteByte(c) - } else { - _, err = fmt.Fprintf(w.w, "\\%03o", c) - } - } - if err != nil { - return err - } - } - return w.WriteByte('"') -} - -func writeUnknownStruct(w *textWriter, data []byte) (err error) { - if !w.compact { - if _, err := fmt.Fprintf(w, "/* %d unknown bytes */\n", len(data)); err != nil { - return err - } - } - b := NewBuffer(data) - for b.index < len(b.buf) { - x, err := b.DecodeVarint() - if err != nil { - _, err := fmt.Fprintf(w, "/* %v */\n", err) - return err - } - wire, tag := x&7, x>>3 - if wire == WireEndGroup { - w.unindent() - if _, err := w.Write(endBraceNewline); err != nil { - return err - } - continue - } - if _, err := fmt.Fprint(w, tag); err != nil { - return err - } - if wire != WireStartGroup { - if err := w.WriteByte(':'); err != nil { - return err - } - } - if !w.compact || wire == WireStartGroup { - if err := w.WriteByte(' '); err != nil { - return err - } - } - switch wire { - case WireBytes: - buf, e := b.DecodeRawBytes(false) - if e == nil { - _, err = fmt.Fprintf(w, "%q", buf) - } else { - _, err = fmt.Fprintf(w, "/* %v */", e) - } - case WireFixed32: - x, err = b.DecodeFixed32() - err = writeUnknownInt(w, x, err) - case WireFixed64: - x, err = b.DecodeFixed64() - err = writeUnknownInt(w, x, err) - case WireStartGroup: - err = w.WriteByte('{') - w.indent() - case WireVarint: - x, err = b.DecodeVarint() - err = writeUnknownInt(w, x, err) - default: - _, err = fmt.Fprintf(w, "/* unknown wire type %d */", wire) - } - if err != nil { - return err - } - if err = w.WriteByte('\n'); err != nil { - return err - } - } - return nil -} - -func writeUnknownInt(w *textWriter, x uint64, err error) error { - if err == nil { - _, err = fmt.Fprint(w, x) - } else { - _, err = fmt.Fprintf(w, "/* %v */", err) - } - return err -} - -type int32Slice []int32 - -func (s int32Slice) Len() int { return len(s) } -func (s int32Slice) Less(i, j int) bool { return s[i] < s[j] } -func (s int32Slice) Swap(i, j int) { s[i], s[j] = s[j], s[i] } - -// writeExtensions writes all the extensions in pv. -// pv is assumed to be a pointer to a protocol message struct that is extendable. -func (tm *TextMarshaler) writeExtensions(w *textWriter, pv reflect.Value) error { - emap := extensionMaps[pv.Type().Elem()] - ep, _ := extendable(pv.Interface()) - - // Order the extensions by ID. - // This isn't strictly necessary, but it will give us - // canonical output, which will also make testing easier. - m, mu := ep.extensionsRead() - if m == nil { - return nil - } - mu.Lock() - ids := make([]int32, 0, len(m)) - for id := range m { - ids = append(ids, id) - } - sort.Sort(int32Slice(ids)) - mu.Unlock() - - for _, extNum := range ids { - ext := m[extNum] - var desc *ExtensionDesc - if emap != nil { - desc = emap[extNum] - } - if desc == nil { - // Unknown extension. - if err := writeUnknownStruct(w, ext.enc); err != nil { - return err - } - continue - } - - pb, err := GetExtension(ep, desc) - if err != nil { - return fmt.Errorf("failed getting extension: %v", err) - } - - // Repeated extensions will appear as a slice. - if !desc.repeated() { - if err := tm.writeExtension(w, desc.Name, pb); err != nil { - return err - } - } else { - v := reflect.ValueOf(pb) - for i := 0; i < v.Len(); i++ { - if err := tm.writeExtension(w, desc.Name, v.Index(i).Interface()); err != nil { - return err - } - } - } - } - return nil -} - -func (tm *TextMarshaler) writeExtension(w *textWriter, name string, pb interface{}) error { - if _, err := fmt.Fprintf(w, "[%s]:", name); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - if err := tm.writeAny(w, reflect.ValueOf(pb), nil); err != nil { - return err - } - if err := w.WriteByte('\n'); err != nil { - return err - } - return nil -} - -func (w *textWriter) writeIndent() { - if !w.complete { - return - } - remain := w.ind * 2 - for remain > 0 { - n := remain - if n > len(spaces) { - n = len(spaces) - } - w.w.Write(spaces[:n]) - remain -= n - } - w.complete = false -} - -// TextMarshaler is a configurable text format marshaler. -type TextMarshaler struct { - Compact bool // use compact text format (one line). - ExpandAny bool // expand google.protobuf.Any messages of known types -} - -// Marshal writes a given protocol buffer in text format. -// The only errors returned are from w. -func (tm *TextMarshaler) Marshal(w io.Writer, pb Message) error { - val := reflect.ValueOf(pb) - if pb == nil || val.IsNil() { - w.Write([]byte("")) - return nil - } - var bw *bufio.Writer - ww, ok := w.(writer) - if !ok { - bw = bufio.NewWriter(w) - ww = bw - } - aw := &textWriter{ - w: ww, - complete: true, - compact: tm.Compact, - } - - if etm, ok := pb.(encoding.TextMarshaler); ok { - text, err := etm.MarshalText() - if err != nil { - return err - } - if _, err = aw.Write(text); err != nil { - return err - } - if bw != nil { - return bw.Flush() - } - return nil - } - // Dereference the received pointer so we don't have outer < and >. - v := reflect.Indirect(val) - if err := tm.writeStruct(aw, v); err != nil { - return err - } - if bw != nil { - return bw.Flush() - } - return nil -} - -// Text is the same as Marshal, but returns the string directly. -func (tm *TextMarshaler) Text(pb Message) string { - var buf bytes.Buffer - tm.Marshal(&buf, pb) - return buf.String() -} - -var ( - defaultTextMarshaler = TextMarshaler{} - compactTextMarshaler = TextMarshaler{Compact: true} -) - -// TODO: consider removing some of the Marshal functions below. - -// MarshalText writes a given protocol buffer in text format. -// The only errors returned are from w. -func MarshalText(w io.Writer, pb Message) error { return defaultTextMarshaler.Marshal(w, pb) } - -// MarshalTextString is the same as MarshalText, but returns the string directly. -func MarshalTextString(pb Message) string { return defaultTextMarshaler.Text(pb) } - -// CompactText writes a given protocol buffer in compact text format (one line). -func CompactText(w io.Writer, pb Message) error { return compactTextMarshaler.Marshal(w, pb) } - -// CompactTextString is the same as CompactText, but returns the string directly. -func CompactTextString(pb Message) string { return compactTextMarshaler.Text(pb) } diff --git a/vendor/github.com/golang/protobuf/proto/text_decode.go b/vendor/github.com/golang/protobuf/proto/text_decode.go new file mode 100644 index 000000000..4a5931009 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/text_decode.go @@ -0,0 +1,801 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "encoding" + "errors" + "fmt" + "reflect" + "strconv" + "strings" + "unicode/utf8" + + "google.golang.org/protobuf/encoding/prototext" + protoV2 "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +const wrapTextUnmarshalV2 = false + +// ParseError is returned by UnmarshalText. +type ParseError struct { + Message string + + // Deprecated: Do not use. + Line, Offset int +} + +func (e *ParseError) Error() string { + if wrapTextUnmarshalV2 { + return e.Message + } + if e.Line == 1 { + return fmt.Sprintf("line 1.%d: %v", e.Offset, e.Message) + } + return fmt.Sprintf("line %d: %v", e.Line, e.Message) +} + +// UnmarshalText parses a proto text formatted string into m. +func UnmarshalText(s string, m Message) error { + if u, ok := m.(encoding.TextUnmarshaler); ok { + return u.UnmarshalText([]byte(s)) + } + + m.Reset() + mi := MessageV2(m) + + if wrapTextUnmarshalV2 { + err := prototext.UnmarshalOptions{ + AllowPartial: true, + }.Unmarshal([]byte(s), mi) + if err != nil { + return &ParseError{Message: err.Error()} + } + return checkRequiredNotSet(mi) + } else { + if err := newTextParser(s).unmarshalMessage(mi.ProtoReflect(), ""); err != nil { + return err + } + return checkRequiredNotSet(mi) + } +} + +type textParser struct { + s string // remaining input + done bool // whether the parsing is finished (success or error) + backed bool // whether back() was called + offset, line int + cur token +} + +type token struct { + value string + err *ParseError + line int // line number + offset int // byte number from start of input, not start of line + unquoted string // the unquoted version of value, if it was a quoted string +} + +func newTextParser(s string) *textParser { + p := new(textParser) + p.s = s + p.line = 1 + p.cur.line = 1 + return p +} + +func (p *textParser) unmarshalMessage(m protoreflect.Message, terminator string) (err error) { + md := m.Descriptor() + fds := md.Fields() + + // A struct is a sequence of "name: value", terminated by one of + // '>' or '}', or the end of the input. A name may also be + // "[extension]" or "[type/url]". + // + // The whole struct can also be an expanded Any message, like: + // [type/url] < ... struct contents ... > + seen := make(map[protoreflect.FieldNumber]bool) + for { + tok := p.next() + if tok.err != nil { + return tok.err + } + if tok.value == terminator { + break + } + if tok.value == "[" { + if err := p.unmarshalExtensionOrAny(m, seen); err != nil { + return err + } + continue + } + + // This is a normal, non-extension field. + name := protoreflect.Name(tok.value) + fd := fds.ByName(name) + switch { + case fd == nil: + gd := fds.ByName(protoreflect.Name(strings.ToLower(string(name)))) + if gd != nil && gd.Kind() == protoreflect.GroupKind && gd.Message().Name() == name { + fd = gd + } + case fd.Kind() == protoreflect.GroupKind && fd.Message().Name() != name: + fd = nil + case fd.IsWeak() && fd.Message().IsPlaceholder(): + fd = nil + } + if fd == nil { + typeName := string(md.FullName()) + if m, ok := m.Interface().(Message); ok { + t := reflect.TypeOf(m) + if t.Kind() == reflect.Ptr { + typeName = t.Elem().String() + } + } + return p.errorf("unknown field name %q in %v", name, typeName) + } + if od := fd.ContainingOneof(); od != nil && m.WhichOneof(od) != nil { + return p.errorf("field '%s' would overwrite already parsed oneof '%s'", name, od.Name()) + } + if fd.Cardinality() != protoreflect.Repeated && seen[fd.Number()] { + return p.errorf("non-repeated field %q was repeated", fd.Name()) + } + seen[fd.Number()] = true + + // Consume any colon. + if err := p.checkForColon(fd); err != nil { + return err + } + + // Parse into the field. + v := m.Get(fd) + if !m.Has(fd) && (fd.IsList() || fd.IsMap() || fd.Message() != nil) { + v = m.Mutable(fd) + } + if v, err = p.unmarshalValue(v, fd); err != nil { + return err + } + m.Set(fd, v) + + if err := p.consumeOptionalSeparator(); err != nil { + return err + } + } + return nil +} + +func (p *textParser) unmarshalExtensionOrAny(m protoreflect.Message, seen map[protoreflect.FieldNumber]bool) error { + name, err := p.consumeExtensionOrAnyName() + if err != nil { + return err + } + + // If it contains a slash, it's an Any type URL. + if slashIdx := strings.LastIndex(name, "/"); slashIdx >= 0 { + tok := p.next() + if tok.err != nil { + return tok.err + } + // consume an optional colon + if tok.value == ":" { + tok = p.next() + if tok.err != nil { + return tok.err + } + } + + var terminator string + switch tok.value { + case "<": + terminator = ">" + case "{": + terminator = "}" + default: + return p.errorf("expected '{' or '<', found %q", tok.value) + } + + mt, err := protoregistry.GlobalTypes.FindMessageByURL(name) + if err != nil { + return p.errorf("unrecognized message %q in google.protobuf.Any", name[slashIdx+len("/"):]) + } + m2 := mt.New() + if err := p.unmarshalMessage(m2, terminator); err != nil { + return err + } + b, err := protoV2.Marshal(m2.Interface()) + if err != nil { + return p.errorf("failed to marshal message of type %q: %v", name[slashIdx+len("/"):], err) + } + + urlFD := m.Descriptor().Fields().ByName("type_url") + valFD := m.Descriptor().Fields().ByName("value") + if seen[urlFD.Number()] { + return p.errorf("Any message unpacked multiple times, or %q already set", urlFD.Name()) + } + if seen[valFD.Number()] { + return p.errorf("Any message unpacked multiple times, or %q already set", valFD.Name()) + } + m.Set(urlFD, protoreflect.ValueOfString(name)) + m.Set(valFD, protoreflect.ValueOfBytes(b)) + seen[urlFD.Number()] = true + seen[valFD.Number()] = true + return nil + } + + xname := protoreflect.FullName(name) + xt, _ := protoregistry.GlobalTypes.FindExtensionByName(xname) + if xt == nil && isMessageSet(m.Descriptor()) { + xt, _ = protoregistry.GlobalTypes.FindExtensionByName(xname.Append("message_set_extension")) + } + if xt == nil { + return p.errorf("unrecognized extension %q", name) + } + fd := xt.TypeDescriptor() + if fd.ContainingMessage().FullName() != m.Descriptor().FullName() { + return p.errorf("extension field %q does not extend message %q", name, m.Descriptor().FullName()) + } + + if err := p.checkForColon(fd); err != nil { + return err + } + + v := m.Get(fd) + if !m.Has(fd) && (fd.IsList() || fd.IsMap() || fd.Message() != nil) { + v = m.Mutable(fd) + } + v, err = p.unmarshalValue(v, fd) + if err != nil { + return err + } + m.Set(fd, v) + return p.consumeOptionalSeparator() +} + +func (p *textParser) unmarshalValue(v protoreflect.Value, fd protoreflect.FieldDescriptor) (protoreflect.Value, error) { + tok := p.next() + if tok.err != nil { + return v, tok.err + } + if tok.value == "" { + return v, p.errorf("unexpected EOF") + } + + switch { + case fd.IsList(): + lv := v.List() + var err error + if tok.value == "[" { + // Repeated field with list notation, like [1,2,3]. + for { + vv := lv.NewElement() + vv, err = p.unmarshalSingularValue(vv, fd) + if err != nil { + return v, err + } + lv.Append(vv) + + tok := p.next() + if tok.err != nil { + return v, tok.err + } + if tok.value == "]" { + break + } + if tok.value != "," { + return v, p.errorf("Expected ']' or ',' found %q", tok.value) + } + } + return v, nil + } + + // One value of the repeated field. + p.back() + vv := lv.NewElement() + vv, err = p.unmarshalSingularValue(vv, fd) + if err != nil { + return v, err + } + lv.Append(vv) + return v, nil + case fd.IsMap(): + // The map entry should be this sequence of tokens: + // < key : KEY value : VALUE > + // However, implementations may omit key or value, and technically + // we should support them in any order. + var terminator string + switch tok.value { + case "<": + terminator = ">" + case "{": + terminator = "}" + default: + return v, p.errorf("expected '{' or '<', found %q", tok.value) + } + + keyFD := fd.MapKey() + valFD := fd.MapValue() + + mv := v.Map() + kv := keyFD.Default() + vv := mv.NewValue() + for { + tok := p.next() + if tok.err != nil { + return v, tok.err + } + if tok.value == terminator { + break + } + var err error + switch tok.value { + case "key": + if err := p.consumeToken(":"); err != nil { + return v, err + } + if kv, err = p.unmarshalSingularValue(kv, keyFD); err != nil { + return v, err + } + if err := p.consumeOptionalSeparator(); err != nil { + return v, err + } + case "value": + if err := p.checkForColon(valFD); err != nil { + return v, err + } + if vv, err = p.unmarshalSingularValue(vv, valFD); err != nil { + return v, err + } + if err := p.consumeOptionalSeparator(); err != nil { + return v, err + } + default: + p.back() + return v, p.errorf(`expected "key", "value", or %q, found %q`, terminator, tok.value) + } + } + mv.Set(kv.MapKey(), vv) + return v, nil + default: + p.back() + return p.unmarshalSingularValue(v, fd) + } +} + +func (p *textParser) unmarshalSingularValue(v protoreflect.Value, fd protoreflect.FieldDescriptor) (protoreflect.Value, error) { + tok := p.next() + if tok.err != nil { + return v, tok.err + } + if tok.value == "" { + return v, p.errorf("unexpected EOF") + } + + switch fd.Kind() { + case protoreflect.BoolKind: + switch tok.value { + case "true", "1", "t", "True": + return protoreflect.ValueOfBool(true), nil + case "false", "0", "f", "False": + return protoreflect.ValueOfBool(false), nil + } + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + if x, err := strconv.ParseInt(tok.value, 0, 32); err == nil { + return protoreflect.ValueOfInt32(int32(x)), nil + } + + // The C++ parser accepts large positive hex numbers that uses + // two's complement arithmetic to represent negative numbers. + // This feature is here for backwards compatibility with C++. + if strings.HasPrefix(tok.value, "0x") { + if x, err := strconv.ParseUint(tok.value, 0, 32); err == nil { + return protoreflect.ValueOfInt32(int32(-(int64(^x) + 1))), nil + } + } + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + if x, err := strconv.ParseInt(tok.value, 0, 64); err == nil { + return protoreflect.ValueOfInt64(int64(x)), nil + } + + // The C++ parser accepts large positive hex numbers that uses + // two's complement arithmetic to represent negative numbers. + // This feature is here for backwards compatibility with C++. + if strings.HasPrefix(tok.value, "0x") { + if x, err := strconv.ParseUint(tok.value, 0, 64); err == nil { + return protoreflect.ValueOfInt64(int64(-(int64(^x) + 1))), nil + } + } + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + if x, err := strconv.ParseUint(tok.value, 0, 32); err == nil { + return protoreflect.ValueOfUint32(uint32(x)), nil + } + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + if x, err := strconv.ParseUint(tok.value, 0, 64); err == nil { + return protoreflect.ValueOfUint64(uint64(x)), nil + } + case protoreflect.FloatKind: + // Ignore 'f' for compatibility with output generated by C++, + // but don't remove 'f' when the value is "-inf" or "inf". + v := tok.value + if strings.HasSuffix(v, "f") && v != "-inf" && v != "inf" { + v = v[:len(v)-len("f")] + } + if x, err := strconv.ParseFloat(v, 32); err == nil { + return protoreflect.ValueOfFloat32(float32(x)), nil + } + case protoreflect.DoubleKind: + // Ignore 'f' for compatibility with output generated by C++, + // but don't remove 'f' when the value is "-inf" or "inf". + v := tok.value + if strings.HasSuffix(v, "f") && v != "-inf" && v != "inf" { + v = v[:len(v)-len("f")] + } + if x, err := strconv.ParseFloat(v, 64); err == nil { + return protoreflect.ValueOfFloat64(float64(x)), nil + } + case protoreflect.StringKind: + if isQuote(tok.value[0]) { + return protoreflect.ValueOfString(tok.unquoted), nil + } + case protoreflect.BytesKind: + if isQuote(tok.value[0]) { + return protoreflect.ValueOfBytes([]byte(tok.unquoted)), nil + } + case protoreflect.EnumKind: + if x, err := strconv.ParseInt(tok.value, 0, 32); err == nil { + return protoreflect.ValueOfEnum(protoreflect.EnumNumber(x)), nil + } + vd := fd.Enum().Values().ByName(protoreflect.Name(tok.value)) + if vd != nil { + return protoreflect.ValueOfEnum(vd.Number()), nil + } + case protoreflect.MessageKind, protoreflect.GroupKind: + var terminator string + switch tok.value { + case "{": + terminator = "}" + case "<": + terminator = ">" + default: + return v, p.errorf("expected '{' or '<', found %q", tok.value) + } + err := p.unmarshalMessage(v.Message(), terminator) + return v, err + default: + panic(fmt.Sprintf("invalid kind %v", fd.Kind())) + } + return v, p.errorf("invalid %v: %v", fd.Kind(), tok.value) +} + +// Consume a ':' from the input stream (if the next token is a colon), +// returning an error if a colon is needed but not present. +func (p *textParser) checkForColon(fd protoreflect.FieldDescriptor) *ParseError { + tok := p.next() + if tok.err != nil { + return tok.err + } + if tok.value != ":" { + if fd.Message() == nil { + return p.errorf("expected ':', found %q", tok.value) + } + p.back() + } + return nil +} + +// consumeExtensionOrAnyName consumes an extension name or an Any type URL and +// the following ']'. It returns the name or URL consumed. +func (p *textParser) consumeExtensionOrAnyName() (string, error) { + tok := p.next() + if tok.err != nil { + return "", tok.err + } + + // If extension name or type url is quoted, it's a single token. + if len(tok.value) > 2 && isQuote(tok.value[0]) && tok.value[len(tok.value)-1] == tok.value[0] { + name, err := unquoteC(tok.value[1:len(tok.value)-1], rune(tok.value[0])) + if err != nil { + return "", err + } + return name, p.consumeToken("]") + } + + // Consume everything up to "]" + var parts []string + for tok.value != "]" { + parts = append(parts, tok.value) + tok = p.next() + if tok.err != nil { + return "", p.errorf("unrecognized type_url or extension name: %s", tok.err) + } + if p.done && tok.value != "]" { + return "", p.errorf("unclosed type_url or extension name") + } + } + return strings.Join(parts, ""), nil +} + +// consumeOptionalSeparator consumes an optional semicolon or comma. +// It is used in unmarshalMessage to provide backward compatibility. +func (p *textParser) consumeOptionalSeparator() error { + tok := p.next() + if tok.err != nil { + return tok.err + } + if tok.value != ";" && tok.value != "," { + p.back() + } + return nil +} + +func (p *textParser) errorf(format string, a ...interface{}) *ParseError { + pe := &ParseError{fmt.Sprintf(format, a...), p.cur.line, p.cur.offset} + p.cur.err = pe + p.done = true + return pe +} + +func (p *textParser) skipWhitespace() { + i := 0 + for i < len(p.s) && (isWhitespace(p.s[i]) || p.s[i] == '#') { + if p.s[i] == '#' { + // comment; skip to end of line or input + for i < len(p.s) && p.s[i] != '\n' { + i++ + } + if i == len(p.s) { + break + } + } + if p.s[i] == '\n' { + p.line++ + } + i++ + } + p.offset += i + p.s = p.s[i:len(p.s)] + if len(p.s) == 0 { + p.done = true + } +} + +func (p *textParser) advance() { + // Skip whitespace + p.skipWhitespace() + if p.done { + return + } + + // Start of non-whitespace + p.cur.err = nil + p.cur.offset, p.cur.line = p.offset, p.line + p.cur.unquoted = "" + switch p.s[0] { + case '<', '>', '{', '}', ':', '[', ']', ';', ',', '/': + // Single symbol + p.cur.value, p.s = p.s[0:1], p.s[1:len(p.s)] + case '"', '\'': + // Quoted string + i := 1 + for i < len(p.s) && p.s[i] != p.s[0] && p.s[i] != '\n' { + if p.s[i] == '\\' && i+1 < len(p.s) { + // skip escaped char + i++ + } + i++ + } + if i >= len(p.s) || p.s[i] != p.s[0] { + p.errorf("unmatched quote") + return + } + unq, err := unquoteC(p.s[1:i], rune(p.s[0])) + if err != nil { + p.errorf("invalid quoted string %s: %v", p.s[0:i+1], err) + return + } + p.cur.value, p.s = p.s[0:i+1], p.s[i+1:len(p.s)] + p.cur.unquoted = unq + default: + i := 0 + for i < len(p.s) && isIdentOrNumberChar(p.s[i]) { + i++ + } + if i == 0 { + p.errorf("unexpected byte %#x", p.s[0]) + return + } + p.cur.value, p.s = p.s[0:i], p.s[i:len(p.s)] + } + p.offset += len(p.cur.value) +} + +// Back off the parser by one token. Can only be done between calls to next(). +// It makes the next advance() a no-op. +func (p *textParser) back() { p.backed = true } + +// Advances the parser and returns the new current token. +func (p *textParser) next() *token { + if p.backed || p.done { + p.backed = false + return &p.cur + } + p.advance() + if p.done { + p.cur.value = "" + } else if len(p.cur.value) > 0 && isQuote(p.cur.value[0]) { + // Look for multiple quoted strings separated by whitespace, + // and concatenate them. + cat := p.cur + for { + p.skipWhitespace() + if p.done || !isQuote(p.s[0]) { + break + } + p.advance() + if p.cur.err != nil { + return &p.cur + } + cat.value += " " + p.cur.value + cat.unquoted += p.cur.unquoted + } + p.done = false // parser may have seen EOF, but we want to return cat + p.cur = cat + } + return &p.cur +} + +func (p *textParser) consumeToken(s string) error { + tok := p.next() + if tok.err != nil { + return tok.err + } + if tok.value != s { + p.back() + return p.errorf("expected %q, found %q", s, tok.value) + } + return nil +} + +var errBadUTF8 = errors.New("proto: bad UTF-8") + +func unquoteC(s string, quote rune) (string, error) { + // This is based on C++'s tokenizer.cc. + // Despite its name, this is *not* parsing C syntax. + // For instance, "\0" is an invalid quoted string. + + // Avoid allocation in trivial cases. + simple := true + for _, r := range s { + if r == '\\' || r == quote { + simple = false + break + } + } + if simple { + return s, nil + } + + buf := make([]byte, 0, 3*len(s)/2) + for len(s) > 0 { + r, n := utf8.DecodeRuneInString(s) + if r == utf8.RuneError && n == 1 { + return "", errBadUTF8 + } + s = s[n:] + if r != '\\' { + if r < utf8.RuneSelf { + buf = append(buf, byte(r)) + } else { + buf = append(buf, string(r)...) + } + continue + } + + ch, tail, err := unescape(s) + if err != nil { + return "", err + } + buf = append(buf, ch...) + s = tail + } + return string(buf), nil +} + +func unescape(s string) (ch string, tail string, err error) { + r, n := utf8.DecodeRuneInString(s) + if r == utf8.RuneError && n == 1 { + return "", "", errBadUTF8 + } + s = s[n:] + switch r { + case 'a': + return "\a", s, nil + case 'b': + return "\b", s, nil + case 'f': + return "\f", s, nil + case 'n': + return "\n", s, nil + case 'r': + return "\r", s, nil + case 't': + return "\t", s, nil + case 'v': + return "\v", s, nil + case '?': + return "?", s, nil // trigraph workaround + case '\'', '"', '\\': + return string(r), s, nil + case '0', '1', '2', '3', '4', '5', '6', '7': + if len(s) < 2 { + return "", "", fmt.Errorf(`\%c requires 2 following digits`, r) + } + ss := string(r) + s[:2] + s = s[2:] + i, err := strconv.ParseUint(ss, 8, 8) + if err != nil { + return "", "", fmt.Errorf(`\%s contains non-octal digits`, ss) + } + return string([]byte{byte(i)}), s, nil + case 'x', 'X', 'u', 'U': + var n int + switch r { + case 'x', 'X': + n = 2 + case 'u': + n = 4 + case 'U': + n = 8 + } + if len(s) < n { + return "", "", fmt.Errorf(`\%c requires %d following digits`, r, n) + } + ss := s[:n] + s = s[n:] + i, err := strconv.ParseUint(ss, 16, 64) + if err != nil { + return "", "", fmt.Errorf(`\%c%s contains non-hexadecimal digits`, r, ss) + } + if r == 'x' || r == 'X' { + return string([]byte{byte(i)}), s, nil + } + if i > utf8.MaxRune { + return "", "", fmt.Errorf(`\%c%s is not a valid Unicode code point`, r, ss) + } + return string(i), s, nil + } + return "", "", fmt.Errorf(`unknown escape \%c`, r) +} + +func isIdentOrNumberChar(c byte) bool { + switch { + case 'A' <= c && c <= 'Z', 'a' <= c && c <= 'z': + return true + case '0' <= c && c <= '9': + return true + } + switch c { + case '-', '+', '.', '_': + return true + } + return false +} + +func isWhitespace(c byte) bool { + switch c { + case ' ', '\t', '\n', '\r': + return true + } + return false +} + +func isQuote(c byte) bool { + switch c { + case '"', '\'': + return true + } + return false +} diff --git a/vendor/github.com/golang/protobuf/proto/text_encode.go b/vendor/github.com/golang/protobuf/proto/text_encode.go new file mode 100644 index 000000000..a31134eeb --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/text_encode.go @@ -0,0 +1,560 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "bytes" + "encoding" + "fmt" + "io" + "math" + "sort" + "strings" + + "google.golang.org/protobuf/encoding/prototext" + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +const wrapTextMarshalV2 = false + +// TextMarshaler is a configurable text format marshaler. +type TextMarshaler struct { + Compact bool // use compact text format (one line) + ExpandAny bool // expand google.protobuf.Any messages of known types +} + +// Marshal writes the proto text format of m to w. +func (tm *TextMarshaler) Marshal(w io.Writer, m Message) error { + b, err := tm.marshal(m) + if len(b) > 0 { + if _, err := w.Write(b); err != nil { + return err + } + } + return err +} + +// Text returns a proto text formatted string of m. +func (tm *TextMarshaler) Text(m Message) string { + b, _ := tm.marshal(m) + return string(b) +} + +func (tm *TextMarshaler) marshal(m Message) ([]byte, error) { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() { + return []byte(""), nil + } + + if wrapTextMarshalV2 { + if m, ok := m.(encoding.TextMarshaler); ok { + return m.MarshalText() + } + + opts := prototext.MarshalOptions{ + AllowPartial: true, + EmitUnknown: true, + } + if !tm.Compact { + opts.Indent = " " + } + if !tm.ExpandAny { + opts.Resolver = (*protoregistry.Types)(nil) + } + return opts.Marshal(mr.Interface()) + } else { + w := &textWriter{ + compact: tm.Compact, + expandAny: tm.ExpandAny, + complete: true, + } + + if m, ok := m.(encoding.TextMarshaler); ok { + b, err := m.MarshalText() + if err != nil { + return nil, err + } + w.Write(b) + return w.buf, nil + } + + err := w.writeMessage(mr) + return w.buf, err + } +} + +var ( + defaultTextMarshaler = TextMarshaler{} + compactTextMarshaler = TextMarshaler{Compact: true} +) + +// MarshalText writes the proto text format of m to w. +func MarshalText(w io.Writer, m Message) error { return defaultTextMarshaler.Marshal(w, m) } + +// MarshalTextString returns a proto text formatted string of m. +func MarshalTextString(m Message) string { return defaultTextMarshaler.Text(m) } + +// CompactText writes the compact proto text format of m to w. +func CompactText(w io.Writer, m Message) error { return compactTextMarshaler.Marshal(w, m) } + +// CompactTextString returns a compact proto text formatted string of m. +func CompactTextString(m Message) string { return compactTextMarshaler.Text(m) } + +var ( + newline = []byte("\n") + endBraceNewline = []byte("}\n") + posInf = []byte("inf") + negInf = []byte("-inf") + nan = []byte("nan") +) + +// textWriter is an io.Writer that tracks its indentation level. +type textWriter struct { + compact bool // same as TextMarshaler.Compact + expandAny bool // same as TextMarshaler.ExpandAny + complete bool // whether the current position is a complete line + indent int // indentation level; never negative + buf []byte +} + +func (w *textWriter) Write(p []byte) (n int, _ error) { + newlines := bytes.Count(p, newline) + if newlines == 0 { + if !w.compact && w.complete { + w.writeIndent() + } + w.buf = append(w.buf, p...) + w.complete = false + return len(p), nil + } + + frags := bytes.SplitN(p, newline, newlines+1) + if w.compact { + for i, frag := range frags { + if i > 0 { + w.buf = append(w.buf, ' ') + n++ + } + w.buf = append(w.buf, frag...) + n += len(frag) + } + return n, nil + } + + for i, frag := range frags { + if w.complete { + w.writeIndent() + } + w.buf = append(w.buf, frag...) + n += len(frag) + if i+1 < len(frags) { + w.buf = append(w.buf, '\n') + n++ + } + } + w.complete = len(frags[len(frags)-1]) == 0 + return n, nil +} + +func (w *textWriter) WriteByte(c byte) error { + if w.compact && c == '\n' { + c = ' ' + } + if !w.compact && w.complete { + w.writeIndent() + } + w.buf = append(w.buf, c) + w.complete = c == '\n' + return nil +} + +func (w *textWriter) writeName(fd protoreflect.FieldDescriptor) { + if !w.compact && w.complete { + w.writeIndent() + } + w.complete = false + + if fd.Kind() != protoreflect.GroupKind { + w.buf = append(w.buf, fd.Name()...) + w.WriteByte(':') + } else { + // Use message type name for group field name. + w.buf = append(w.buf, fd.Message().Name()...) + } + + if !w.compact { + w.WriteByte(' ') + } +} + +func requiresQuotes(u string) bool { + // When type URL contains any characters except [0-9A-Za-z./\-]*, it must be quoted. + for _, ch := range u { + switch { + case ch == '.' || ch == '/' || ch == '_': + continue + case '0' <= ch && ch <= '9': + continue + case 'A' <= ch && ch <= 'Z': + continue + case 'a' <= ch && ch <= 'z': + continue + default: + return true + } + } + return false +} + +// writeProto3Any writes an expanded google.protobuf.Any message. +// +// It returns (false, nil) if sv value can't be unmarshaled (e.g. because +// required messages are not linked in). +// +// It returns (true, error) when sv was written in expanded format or an error +// was encountered. +func (w *textWriter) writeProto3Any(m protoreflect.Message) (bool, error) { + md := m.Descriptor() + fdURL := md.Fields().ByName("type_url") + fdVal := md.Fields().ByName("value") + + url := m.Get(fdURL).String() + mt, err := protoregistry.GlobalTypes.FindMessageByURL(url) + if err != nil { + return false, nil + } + + b := m.Get(fdVal).Bytes() + m2 := mt.New() + if err := proto.Unmarshal(b, m2.Interface()); err != nil { + return false, nil + } + w.Write([]byte("[")) + if requiresQuotes(url) { + w.writeQuotedString(url) + } else { + w.Write([]byte(url)) + } + if w.compact { + w.Write([]byte("]:<")) + } else { + w.Write([]byte("]: <\n")) + w.indent++ + } + if err := w.writeMessage(m2); err != nil { + return true, err + } + if w.compact { + w.Write([]byte("> ")) + } else { + w.indent-- + w.Write([]byte(">\n")) + } + return true, nil +} + +func (w *textWriter) writeMessage(m protoreflect.Message) error { + md := m.Descriptor() + if w.expandAny && md.FullName() == "google.protobuf.Any" { + if canExpand, err := w.writeProto3Any(m); canExpand { + return err + } + } + + fds := md.Fields() + for i := 0; i < fds.Len(); { + fd := fds.Get(i) + if od := fd.ContainingOneof(); od != nil { + fd = m.WhichOneof(od) + i += od.Fields().Len() + } else { + i++ + } + if fd == nil || !m.Has(fd) { + continue + } + + switch { + case fd.IsList(): + lv := m.Get(fd).List() + for j := 0; j < lv.Len(); j++ { + w.writeName(fd) + v := lv.Get(j) + if err := w.writeSingularValue(v, fd); err != nil { + return err + } + w.WriteByte('\n') + } + case fd.IsMap(): + kfd := fd.MapKey() + vfd := fd.MapValue() + mv := m.Get(fd).Map() + + type entry struct{ key, val protoreflect.Value } + var entries []entry + mv.Range(func(k protoreflect.MapKey, v protoreflect.Value) bool { + entries = append(entries, entry{k.Value(), v}) + return true + }) + sort.Slice(entries, func(i, j int) bool { + switch kfd.Kind() { + case protoreflect.BoolKind: + return !entries[i].key.Bool() && entries[j].key.Bool() + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind, protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + return entries[i].key.Int() < entries[j].key.Int() + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind, protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + return entries[i].key.Uint() < entries[j].key.Uint() + case protoreflect.StringKind: + return entries[i].key.String() < entries[j].key.String() + default: + panic("invalid kind") + } + }) + for _, entry := range entries { + w.writeName(fd) + w.WriteByte('<') + if !w.compact { + w.WriteByte('\n') + } + w.indent++ + w.writeName(kfd) + if err := w.writeSingularValue(entry.key, kfd); err != nil { + return err + } + w.WriteByte('\n') + w.writeName(vfd) + if err := w.writeSingularValue(entry.val, vfd); err != nil { + return err + } + w.WriteByte('\n') + w.indent-- + w.WriteByte('>') + w.WriteByte('\n') + } + default: + w.writeName(fd) + if err := w.writeSingularValue(m.Get(fd), fd); err != nil { + return err + } + w.WriteByte('\n') + } + } + + if b := m.GetUnknown(); len(b) > 0 { + w.writeUnknownFields(b) + } + return w.writeExtensions(m) +} + +func (w *textWriter) writeSingularValue(v protoreflect.Value, fd protoreflect.FieldDescriptor) error { + switch fd.Kind() { + case protoreflect.FloatKind, protoreflect.DoubleKind: + switch vf := v.Float(); { + case math.IsInf(vf, +1): + w.Write(posInf) + case math.IsInf(vf, -1): + w.Write(negInf) + case math.IsNaN(vf): + w.Write(nan) + default: + fmt.Fprint(w, v.Interface()) + } + case protoreflect.StringKind: + // NOTE: This does not validate UTF-8 for historical reasons. + w.writeQuotedString(string(v.String())) + case protoreflect.BytesKind: + w.writeQuotedString(string(v.Bytes())) + case protoreflect.MessageKind, protoreflect.GroupKind: + var bra, ket byte = '<', '>' + if fd.Kind() == protoreflect.GroupKind { + bra, ket = '{', '}' + } + w.WriteByte(bra) + if !w.compact { + w.WriteByte('\n') + } + w.indent++ + m := v.Message() + if m2, ok := m.Interface().(encoding.TextMarshaler); ok { + b, err := m2.MarshalText() + if err != nil { + return err + } + w.Write(b) + } else { + w.writeMessage(m) + } + w.indent-- + w.WriteByte(ket) + case protoreflect.EnumKind: + if ev := fd.Enum().Values().ByNumber(v.Enum()); ev != nil { + fmt.Fprint(w, ev.Name()) + } else { + fmt.Fprint(w, v.Enum()) + } + default: + fmt.Fprint(w, v.Interface()) + } + return nil +} + +// writeQuotedString writes a quoted string in the protocol buffer text format. +func (w *textWriter) writeQuotedString(s string) { + w.WriteByte('"') + for i := 0; i < len(s); i++ { + switch c := s[i]; c { + case '\n': + w.buf = append(w.buf, `\n`...) + case '\r': + w.buf = append(w.buf, `\r`...) + case '\t': + w.buf = append(w.buf, `\t`...) + case '"': + w.buf = append(w.buf, `\"`...) + case '\\': + w.buf = append(w.buf, `\\`...) + default: + if isPrint := c >= 0x20 && c < 0x7f; isPrint { + w.buf = append(w.buf, c) + } else { + w.buf = append(w.buf, fmt.Sprintf(`\%03o`, c)...) + } + } + } + w.WriteByte('"') +} + +func (w *textWriter) writeUnknownFields(b []byte) { + if !w.compact { + fmt.Fprintf(w, "/* %d unknown bytes */\n", len(b)) + } + + for len(b) > 0 { + num, wtyp, n := protowire.ConsumeTag(b) + if n < 0 { + return + } + b = b[n:] + + if wtyp == protowire.EndGroupType { + w.indent-- + w.Write(endBraceNewline) + continue + } + fmt.Fprint(w, num) + if wtyp != protowire.StartGroupType { + w.WriteByte(':') + } + if !w.compact || wtyp == protowire.StartGroupType { + w.WriteByte(' ') + } + switch wtyp { + case protowire.VarintType: + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return + } + b = b[n:] + fmt.Fprint(w, v) + case protowire.Fixed32Type: + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return + } + b = b[n:] + fmt.Fprint(w, v) + case protowire.Fixed64Type: + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return + } + b = b[n:] + fmt.Fprint(w, v) + case protowire.BytesType: + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return + } + b = b[n:] + fmt.Fprintf(w, "%q", v) + case protowire.StartGroupType: + w.WriteByte('{') + w.indent++ + default: + fmt.Fprintf(w, "/* unknown wire type %d */", wtyp) + } + w.WriteByte('\n') + } +} + +// writeExtensions writes all the extensions in m. +func (w *textWriter) writeExtensions(m protoreflect.Message) error { + md := m.Descriptor() + if md.ExtensionRanges().Len() == 0 { + return nil + } + + type ext struct { + desc protoreflect.FieldDescriptor + val protoreflect.Value + } + var exts []ext + m.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + if fd.IsExtension() { + exts = append(exts, ext{fd, v}) + } + return true + }) + sort.Slice(exts, func(i, j int) bool { + return exts[i].desc.Number() < exts[j].desc.Number() + }) + + for _, ext := range exts { + // For message set, use the name of the message as the extension name. + name := string(ext.desc.FullName()) + if isMessageSet(ext.desc.ContainingMessage()) { + name = strings.TrimSuffix(name, ".message_set_extension") + } + + if !ext.desc.IsList() { + if err := w.writeSingularExtension(name, ext.val, ext.desc); err != nil { + return err + } + } else { + lv := ext.val.List() + for i := 0; i < lv.Len(); i++ { + if err := w.writeSingularExtension(name, lv.Get(i), ext.desc); err != nil { + return err + } + } + } + } + return nil +} + +func (w *textWriter) writeSingularExtension(name string, v protoreflect.Value, fd protoreflect.FieldDescriptor) error { + fmt.Fprintf(w, "[%s]:", name) + if !w.compact { + w.WriteByte(' ') + } + if err := w.writeSingularValue(v, fd); err != nil { + return err + } + w.WriteByte('\n') + return nil +} + +func (w *textWriter) writeIndent() { + if !w.complete { + return + } + for i := 0; i < w.indent*2; i++ { + w.buf = append(w.buf, ' ') + } + w.complete = false +} diff --git a/vendor/github.com/golang/protobuf/proto/text_parser.go b/vendor/github.com/golang/protobuf/proto/text_parser.go deleted file mode 100644 index bb55a3af2..000000000 --- a/vendor/github.com/golang/protobuf/proto/text_parser.go +++ /dev/null @@ -1,880 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -// Functions for parsing the Text protocol buffer format. -// TODO: message sets. - -import ( - "encoding" - "errors" - "fmt" - "reflect" - "strconv" - "strings" - "unicode/utf8" -) - -// Error string emitted when deserializing Any and fields are already set -const anyRepeatedlyUnpacked = "Any message unpacked multiple times, or %q already set" - -type ParseError struct { - Message string - Line int // 1-based line number - Offset int // 0-based byte offset from start of input -} - -func (p *ParseError) Error() string { - if p.Line == 1 { - // show offset only for first line - return fmt.Sprintf("line 1.%d: %v", p.Offset, p.Message) - } - return fmt.Sprintf("line %d: %v", p.Line, p.Message) -} - -type token struct { - value string - err *ParseError - line int // line number - offset int // byte number from start of input, not start of line - unquoted string // the unquoted version of value, if it was a quoted string -} - -func (t *token) String() string { - if t.err == nil { - return fmt.Sprintf("%q (line=%d, offset=%d)", t.value, t.line, t.offset) - } - return fmt.Sprintf("parse error: %v", t.err) -} - -type textParser struct { - s string // remaining input - done bool // whether the parsing is finished (success or error) - backed bool // whether back() was called - offset, line int - cur token -} - -func newTextParser(s string) *textParser { - p := new(textParser) - p.s = s - p.line = 1 - p.cur.line = 1 - return p -} - -func (p *textParser) errorf(format string, a ...interface{}) *ParseError { - pe := &ParseError{fmt.Sprintf(format, a...), p.cur.line, p.cur.offset} - p.cur.err = pe - p.done = true - return pe -} - -// Numbers and identifiers are matched by [-+._A-Za-z0-9] -func isIdentOrNumberChar(c byte) bool { - switch { - case 'A' <= c && c <= 'Z', 'a' <= c && c <= 'z': - return true - case '0' <= c && c <= '9': - return true - } - switch c { - case '-', '+', '.', '_': - return true - } - return false -} - -func isWhitespace(c byte) bool { - switch c { - case ' ', '\t', '\n', '\r': - return true - } - return false -} - -func isQuote(c byte) bool { - switch c { - case '"', '\'': - return true - } - return false -} - -func (p *textParser) skipWhitespace() { - i := 0 - for i < len(p.s) && (isWhitespace(p.s[i]) || p.s[i] == '#') { - if p.s[i] == '#' { - // comment; skip to end of line or input - for i < len(p.s) && p.s[i] != '\n' { - i++ - } - if i == len(p.s) { - break - } - } - if p.s[i] == '\n' { - p.line++ - } - i++ - } - p.offset += i - p.s = p.s[i:len(p.s)] - if len(p.s) == 0 { - p.done = true - } -} - -func (p *textParser) advance() { - // Skip whitespace - p.skipWhitespace() - if p.done { - return - } - - // Start of non-whitespace - p.cur.err = nil - p.cur.offset, p.cur.line = p.offset, p.line - p.cur.unquoted = "" - switch p.s[0] { - case '<', '>', '{', '}', ':', '[', ']', ';', ',', '/': - // Single symbol - p.cur.value, p.s = p.s[0:1], p.s[1:len(p.s)] - case '"', '\'': - // Quoted string - i := 1 - for i < len(p.s) && p.s[i] != p.s[0] && p.s[i] != '\n' { - if p.s[i] == '\\' && i+1 < len(p.s) { - // skip escaped char - i++ - } - i++ - } - if i >= len(p.s) || p.s[i] != p.s[0] { - p.errorf("unmatched quote") - return - } - unq, err := unquoteC(p.s[1:i], rune(p.s[0])) - if err != nil { - p.errorf("invalid quoted string %s: %v", p.s[0:i+1], err) - return - } - p.cur.value, p.s = p.s[0:i+1], p.s[i+1:len(p.s)] - p.cur.unquoted = unq - default: - i := 0 - for i < len(p.s) && isIdentOrNumberChar(p.s[i]) { - i++ - } - if i == 0 { - p.errorf("unexpected byte %#x", p.s[0]) - return - } - p.cur.value, p.s = p.s[0:i], p.s[i:len(p.s)] - } - p.offset += len(p.cur.value) -} - -var ( - errBadUTF8 = errors.New("proto: bad UTF-8") -) - -func unquoteC(s string, quote rune) (string, error) { - // This is based on C++'s tokenizer.cc. - // Despite its name, this is *not* parsing C syntax. - // For instance, "\0" is an invalid quoted string. - - // Avoid allocation in trivial cases. - simple := true - for _, r := range s { - if r == '\\' || r == quote { - simple = false - break - } - } - if simple { - return s, nil - } - - buf := make([]byte, 0, 3*len(s)/2) - for len(s) > 0 { - r, n := utf8.DecodeRuneInString(s) - if r == utf8.RuneError && n == 1 { - return "", errBadUTF8 - } - s = s[n:] - if r != '\\' { - if r < utf8.RuneSelf { - buf = append(buf, byte(r)) - } else { - buf = append(buf, string(r)...) - } - continue - } - - ch, tail, err := unescape(s) - if err != nil { - return "", err - } - buf = append(buf, ch...) - s = tail - } - return string(buf), nil -} - -func unescape(s string) (ch string, tail string, err error) { - r, n := utf8.DecodeRuneInString(s) - if r == utf8.RuneError && n == 1 { - return "", "", errBadUTF8 - } - s = s[n:] - switch r { - case 'a': - return "\a", s, nil - case 'b': - return "\b", s, nil - case 'f': - return "\f", s, nil - case 'n': - return "\n", s, nil - case 'r': - return "\r", s, nil - case 't': - return "\t", s, nil - case 'v': - return "\v", s, nil - case '?': - return "?", s, nil // trigraph workaround - case '\'', '"', '\\': - return string(r), s, nil - case '0', '1', '2', '3', '4', '5', '6', '7': - if len(s) < 2 { - return "", "", fmt.Errorf(`\%c requires 2 following digits`, r) - } - ss := string(r) + s[:2] - s = s[2:] - i, err := strconv.ParseUint(ss, 8, 8) - if err != nil { - return "", "", fmt.Errorf(`\%s contains non-octal digits`, ss) - } - return string([]byte{byte(i)}), s, nil - case 'x', 'X', 'u', 'U': - var n int - switch r { - case 'x', 'X': - n = 2 - case 'u': - n = 4 - case 'U': - n = 8 - } - if len(s) < n { - return "", "", fmt.Errorf(`\%c requires %d following digits`, r, n) - } - ss := s[:n] - s = s[n:] - i, err := strconv.ParseUint(ss, 16, 64) - if err != nil { - return "", "", fmt.Errorf(`\%c%s contains non-hexadecimal digits`, r, ss) - } - if r == 'x' || r == 'X' { - return string([]byte{byte(i)}), s, nil - } - if i > utf8.MaxRune { - return "", "", fmt.Errorf(`\%c%s is not a valid Unicode code point`, r, ss) - } - return string(i), s, nil - } - return "", "", fmt.Errorf(`unknown escape \%c`, r) -} - -// Back off the parser by one token. Can only be done between calls to next(). -// It makes the next advance() a no-op. -func (p *textParser) back() { p.backed = true } - -// Advances the parser and returns the new current token. -func (p *textParser) next() *token { - if p.backed || p.done { - p.backed = false - return &p.cur - } - p.advance() - if p.done { - p.cur.value = "" - } else if len(p.cur.value) > 0 && isQuote(p.cur.value[0]) { - // Look for multiple quoted strings separated by whitespace, - // and concatenate them. - cat := p.cur - for { - p.skipWhitespace() - if p.done || !isQuote(p.s[0]) { - break - } - p.advance() - if p.cur.err != nil { - return &p.cur - } - cat.value += " " + p.cur.value - cat.unquoted += p.cur.unquoted - } - p.done = false // parser may have seen EOF, but we want to return cat - p.cur = cat - } - return &p.cur -} - -func (p *textParser) consumeToken(s string) error { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value != s { - p.back() - return p.errorf("expected %q, found %q", s, tok.value) - } - return nil -} - -// Return a RequiredNotSetError indicating which required field was not set. -func (p *textParser) missingRequiredFieldError(sv reflect.Value) *RequiredNotSetError { - st := sv.Type() - sprops := GetProperties(st) - for i := 0; i < st.NumField(); i++ { - if !isNil(sv.Field(i)) { - continue - } - - props := sprops.Prop[i] - if props.Required { - return &RequiredNotSetError{fmt.Sprintf("%v.%v", st, props.OrigName)} - } - } - return &RequiredNotSetError{fmt.Sprintf("%v.", st)} // should not happen -} - -// Returns the index in the struct for the named field, as well as the parsed tag properties. -func structFieldByName(sprops *StructProperties, name string) (int, *Properties, bool) { - i, ok := sprops.decoderOrigNames[name] - if ok { - return i, sprops.Prop[i], true - } - return -1, nil, false -} - -// Consume a ':' from the input stream (if the next token is a colon), -// returning an error if a colon is needed but not present. -func (p *textParser) checkForColon(props *Properties, typ reflect.Type) *ParseError { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value != ":" { - // Colon is optional when the field is a group or message. - needColon := true - switch props.Wire { - case "group": - needColon = false - case "bytes": - // A "bytes" field is either a message, a string, or a repeated field; - // those three become *T, *string and []T respectively, so we can check for - // this field being a pointer to a non-string. - if typ.Kind() == reflect.Ptr { - // *T or *string - if typ.Elem().Kind() == reflect.String { - break - } - } else if typ.Kind() == reflect.Slice { - // []T or []*T - if typ.Elem().Kind() != reflect.Ptr { - break - } - } else if typ.Kind() == reflect.String { - // The proto3 exception is for a string field, - // which requires a colon. - break - } - needColon = false - } - if needColon { - return p.errorf("expected ':', found %q", tok.value) - } - p.back() - } - return nil -} - -func (p *textParser) readStruct(sv reflect.Value, terminator string) error { - st := sv.Type() - sprops := GetProperties(st) - reqCount := sprops.reqCount - var reqFieldErr error - fieldSet := make(map[string]bool) - // A struct is a sequence of "name: value", terminated by one of - // '>' or '}', or the end of the input. A name may also be - // "[extension]" or "[type/url]". - // - // The whole struct can also be an expanded Any message, like: - // [type/url] < ... struct contents ... > - for { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value == terminator { - break - } - if tok.value == "[" { - // Looks like an extension or an Any. - // - // TODO: Check whether we need to handle - // namespace rooted names (e.g. ".something.Foo"). - extName, err := p.consumeExtName() - if err != nil { - return err - } - - if s := strings.LastIndex(extName, "/"); s >= 0 { - // If it contains a slash, it's an Any type URL. - messageName := extName[s+1:] - mt := MessageType(messageName) - if mt == nil { - return p.errorf("unrecognized message %q in google.protobuf.Any", messageName) - } - tok = p.next() - if tok.err != nil { - return tok.err - } - // consume an optional colon - if tok.value == ":" { - tok = p.next() - if tok.err != nil { - return tok.err - } - } - var terminator string - switch tok.value { - case "<": - terminator = ">" - case "{": - terminator = "}" - default: - return p.errorf("expected '{' or '<', found %q", tok.value) - } - v := reflect.New(mt.Elem()) - if pe := p.readStruct(v.Elem(), terminator); pe != nil { - return pe - } - b, err := Marshal(v.Interface().(Message)) - if err != nil { - return p.errorf("failed to marshal message of type %q: %v", messageName, err) - } - if fieldSet["type_url"] { - return p.errorf(anyRepeatedlyUnpacked, "type_url") - } - if fieldSet["value"] { - return p.errorf(anyRepeatedlyUnpacked, "value") - } - sv.FieldByName("TypeUrl").SetString(extName) - sv.FieldByName("Value").SetBytes(b) - fieldSet["type_url"] = true - fieldSet["value"] = true - continue - } - - var desc *ExtensionDesc - // This could be faster, but it's functional. - // TODO: Do something smarter than a linear scan. - for _, d := range RegisteredExtensions(reflect.New(st).Interface().(Message)) { - if d.Name == extName { - desc = d - break - } - } - if desc == nil { - return p.errorf("unrecognized extension %q", extName) - } - - props := &Properties{} - props.Parse(desc.Tag) - - typ := reflect.TypeOf(desc.ExtensionType) - if err := p.checkForColon(props, typ); err != nil { - return err - } - - rep := desc.repeated() - - // Read the extension structure, and set it in - // the value we're constructing. - var ext reflect.Value - if !rep { - ext = reflect.New(typ).Elem() - } else { - ext = reflect.New(typ.Elem()).Elem() - } - if err := p.readAny(ext, props); err != nil { - if _, ok := err.(*RequiredNotSetError); !ok { - return err - } - reqFieldErr = err - } - ep := sv.Addr().Interface().(Message) - if !rep { - SetExtension(ep, desc, ext.Interface()) - } else { - old, err := GetExtension(ep, desc) - var sl reflect.Value - if err == nil { - sl = reflect.ValueOf(old) // existing slice - } else { - sl = reflect.MakeSlice(typ, 0, 1) - } - sl = reflect.Append(sl, ext) - SetExtension(ep, desc, sl.Interface()) - } - if err := p.consumeOptionalSeparator(); err != nil { - return err - } - continue - } - - // This is a normal, non-extension field. - name := tok.value - var dst reflect.Value - fi, props, ok := structFieldByName(sprops, name) - if ok { - dst = sv.Field(fi) - } else if oop, ok := sprops.OneofTypes[name]; ok { - // It is a oneof. - props = oop.Prop - nv := reflect.New(oop.Type.Elem()) - dst = nv.Elem().Field(0) - field := sv.Field(oop.Field) - if !field.IsNil() { - return p.errorf("field '%s' would overwrite already parsed oneof '%s'", name, sv.Type().Field(oop.Field).Name) - } - field.Set(nv) - } - if !dst.IsValid() { - return p.errorf("unknown field name %q in %v", name, st) - } - - if dst.Kind() == reflect.Map { - // Consume any colon. - if err := p.checkForColon(props, dst.Type()); err != nil { - return err - } - - // Construct the map if it doesn't already exist. - if dst.IsNil() { - dst.Set(reflect.MakeMap(dst.Type())) - } - key := reflect.New(dst.Type().Key()).Elem() - val := reflect.New(dst.Type().Elem()).Elem() - - // The map entry should be this sequence of tokens: - // < key : KEY value : VALUE > - // However, implementations may omit key or value, and technically - // we should support them in any order. See b/28924776 for a time - // this went wrong. - - tok := p.next() - var terminator string - switch tok.value { - case "<": - terminator = ">" - case "{": - terminator = "}" - default: - return p.errorf("expected '{' or '<', found %q", tok.value) - } - for { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value == terminator { - break - } - switch tok.value { - case "key": - if err := p.consumeToken(":"); err != nil { - return err - } - if err := p.readAny(key, props.MapKeyProp); err != nil { - return err - } - if err := p.consumeOptionalSeparator(); err != nil { - return err - } - case "value": - if err := p.checkForColon(props.MapValProp, dst.Type().Elem()); err != nil { - return err - } - if err := p.readAny(val, props.MapValProp); err != nil { - return err - } - if err := p.consumeOptionalSeparator(); err != nil { - return err - } - default: - p.back() - return p.errorf(`expected "key", "value", or %q, found %q`, terminator, tok.value) - } - } - - dst.SetMapIndex(key, val) - continue - } - - // Check that it's not already set if it's not a repeated field. - if !props.Repeated && fieldSet[name] { - return p.errorf("non-repeated field %q was repeated", name) - } - - if err := p.checkForColon(props, dst.Type()); err != nil { - return err - } - - // Parse into the field. - fieldSet[name] = true - if err := p.readAny(dst, props); err != nil { - if _, ok := err.(*RequiredNotSetError); !ok { - return err - } - reqFieldErr = err - } - if props.Required { - reqCount-- - } - - if err := p.consumeOptionalSeparator(); err != nil { - return err - } - - } - - if reqCount > 0 { - return p.missingRequiredFieldError(sv) - } - return reqFieldErr -} - -// consumeExtName consumes extension name or expanded Any type URL and the -// following ']'. It returns the name or URL consumed. -func (p *textParser) consumeExtName() (string, error) { - tok := p.next() - if tok.err != nil { - return "", tok.err - } - - // If extension name or type url is quoted, it's a single token. - if len(tok.value) > 2 && isQuote(tok.value[0]) && tok.value[len(tok.value)-1] == tok.value[0] { - name, err := unquoteC(tok.value[1:len(tok.value)-1], rune(tok.value[0])) - if err != nil { - return "", err - } - return name, p.consumeToken("]") - } - - // Consume everything up to "]" - var parts []string - for tok.value != "]" { - parts = append(parts, tok.value) - tok = p.next() - if tok.err != nil { - return "", p.errorf("unrecognized type_url or extension name: %s", tok.err) - } - if p.done && tok.value != "]" { - return "", p.errorf("unclosed type_url or extension name") - } - } - return strings.Join(parts, ""), nil -} - -// consumeOptionalSeparator consumes an optional semicolon or comma. -// It is used in readStruct to provide backward compatibility. -func (p *textParser) consumeOptionalSeparator() error { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value != ";" && tok.value != "," { - p.back() - } - return nil -} - -func (p *textParser) readAny(v reflect.Value, props *Properties) error { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value == "" { - return p.errorf("unexpected EOF") - } - - switch fv := v; fv.Kind() { - case reflect.Slice: - at := v.Type() - if at.Elem().Kind() == reflect.Uint8 { - // Special case for []byte - if tok.value[0] != '"' && tok.value[0] != '\'' { - // Deliberately written out here, as the error after - // this switch statement would write "invalid []byte: ...", - // which is not as user-friendly. - return p.errorf("invalid string: %v", tok.value) - } - bytes := []byte(tok.unquoted) - fv.Set(reflect.ValueOf(bytes)) - return nil - } - // Repeated field. - if tok.value == "[" { - // Repeated field with list notation, like [1,2,3]. - for { - fv.Set(reflect.Append(fv, reflect.New(at.Elem()).Elem())) - err := p.readAny(fv.Index(fv.Len()-1), props) - if err != nil { - return err - } - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value == "]" { - break - } - if tok.value != "," { - return p.errorf("Expected ']' or ',' found %q", tok.value) - } - } - return nil - } - // One value of the repeated field. - p.back() - fv.Set(reflect.Append(fv, reflect.New(at.Elem()).Elem())) - return p.readAny(fv.Index(fv.Len()-1), props) - case reflect.Bool: - // true/1/t/True or false/f/0/False. - switch tok.value { - case "true", "1", "t", "True": - fv.SetBool(true) - return nil - case "false", "0", "f", "False": - fv.SetBool(false) - return nil - } - case reflect.Float32, reflect.Float64: - v := tok.value - // Ignore 'f' for compatibility with output generated by C++, but don't - // remove 'f' when the value is "-inf" or "inf". - if strings.HasSuffix(v, "f") && tok.value != "-inf" && tok.value != "inf" { - v = v[:len(v)-1] - } - if f, err := strconv.ParseFloat(v, fv.Type().Bits()); err == nil { - fv.SetFloat(f) - return nil - } - case reflect.Int32: - if x, err := strconv.ParseInt(tok.value, 0, 32); err == nil { - fv.SetInt(x) - return nil - } - - if len(props.Enum) == 0 { - break - } - m, ok := enumValueMaps[props.Enum] - if !ok { - break - } - x, ok := m[tok.value] - if !ok { - break - } - fv.SetInt(int64(x)) - return nil - case reflect.Int64: - if x, err := strconv.ParseInt(tok.value, 0, 64); err == nil { - fv.SetInt(x) - return nil - } - - case reflect.Ptr: - // A basic field (indirected through pointer), or a repeated message/group - p.back() - fv.Set(reflect.New(fv.Type().Elem())) - return p.readAny(fv.Elem(), props) - case reflect.String: - if tok.value[0] == '"' || tok.value[0] == '\'' { - fv.SetString(tok.unquoted) - return nil - } - case reflect.Struct: - var terminator string - switch tok.value { - case "{": - terminator = "}" - case "<": - terminator = ">" - default: - return p.errorf("expected '{' or '<', found %q", tok.value) - } - // TODO: Handle nested messages which implement encoding.TextUnmarshaler. - return p.readStruct(fv, terminator) - case reflect.Uint32: - if x, err := strconv.ParseUint(tok.value, 0, 32); err == nil { - fv.SetUint(uint64(x)) - return nil - } - case reflect.Uint64: - if x, err := strconv.ParseUint(tok.value, 0, 64); err == nil { - fv.SetUint(x) - return nil - } - } - return p.errorf("invalid %v: %v", v.Type(), tok.value) -} - -// UnmarshalText reads a protocol buffer in Text format. UnmarshalText resets pb -// before starting to unmarshal, so any existing data in pb is always removed. -// If a required field is not set and no other error occurs, -// UnmarshalText returns *RequiredNotSetError. -func UnmarshalText(s string, pb Message) error { - if um, ok := pb.(encoding.TextUnmarshaler); ok { - return um.UnmarshalText([]byte(s)) - } - pb.Reset() - v := reflect.ValueOf(pb) - return newTextParser(s).readStruct(v.Elem(), "") -} diff --git a/vendor/github.com/golang/protobuf/proto/wire.go b/vendor/github.com/golang/protobuf/proto/wire.go new file mode 100644 index 000000000..d7c28da5a --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/wire.go @@ -0,0 +1,78 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + protoV2 "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/runtime/protoiface" +) + +// Size returns the size in bytes of the wire-format encoding of m. +func Size(m Message) int { + if m == nil { + return 0 + } + mi := MessageV2(m) + return protoV2.Size(mi) +} + +// Marshal returns the wire-format encoding of m. +func Marshal(m Message) ([]byte, error) { + b, err := marshalAppend(nil, m, false) + if b == nil { + b = zeroBytes + } + return b, err +} + +var zeroBytes = make([]byte, 0, 0) + +func marshalAppend(buf []byte, m Message, deterministic bool) ([]byte, error) { + if m == nil { + return nil, ErrNil + } + mi := MessageV2(m) + nbuf, err := protoV2.MarshalOptions{ + Deterministic: deterministic, + AllowPartial: true, + }.MarshalAppend(buf, mi) + if err != nil { + return buf, err + } + if len(buf) == len(nbuf) { + if !mi.ProtoReflect().IsValid() { + return buf, ErrNil + } + } + return nbuf, checkRequiredNotSet(mi) +} + +// Unmarshal parses a wire-format message in b and places the decoded results in m. +// +// Unmarshal resets m before starting to unmarshal, so any existing data in m is always +// removed. Use UnmarshalMerge to preserve and append to existing data. +func Unmarshal(b []byte, m Message) error { + m.Reset() + return UnmarshalMerge(b, m) +} + +// UnmarshalMerge parses a wire-format message in b and places the decoded results in m. +func UnmarshalMerge(b []byte, m Message) error { + mi := MessageV2(m) + out, err := protoV2.UnmarshalOptions{ + AllowPartial: true, + Merge: true, + }.UnmarshalState(protoiface.UnmarshalInput{ + Buf: b, + Message: mi.ProtoReflect(), + }) + if err != nil { + return err + } + if out.Flags&protoiface.UnmarshalInitialized > 0 { + return nil + } + return checkRequiredNotSet(mi) +} diff --git a/vendor/github.com/golang/protobuf/proto/wrappers.go b/vendor/github.com/golang/protobuf/proto/wrappers.go new file mode 100644 index 000000000..398e34859 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/wrappers.go @@ -0,0 +1,34 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +// Bool stores v in a new bool value and returns a pointer to it. +func Bool(v bool) *bool { return &v } + +// Int stores v in a new int32 value and returns a pointer to it. +// +// Deprecated: Use Int32 instead. +func Int(v int) *int32 { return Int32(int32(v)) } + +// Int32 stores v in a new int32 value and returns a pointer to it. +func Int32(v int32) *int32 { return &v } + +// Int64 stores v in a new int64 value and returns a pointer to it. +func Int64(v int64) *int64 { return &v } + +// Uint32 stores v in a new uint32 value and returns a pointer to it. +func Uint32(v uint32) *uint32 { return &v } + +// Uint64 stores v in a new uint64 value and returns a pointer to it. +func Uint64(v uint64) *uint64 { return &v } + +// Float32 stores v in a new float32 value and returns a pointer to it. +func Float32(v float32) *float32 { return &v } + +// Float64 stores v in a new float64 value and returns a pointer to it. +func Float64(v float64) *float64 { return &v } + +// String stores v in a new string value and returns a pointer to it. +func String(v string) *string { return &v } diff --git a/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.pb.go b/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.pb.go index d371d5697..63dc05785 100644 --- a/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.pb.go +++ b/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.pb.go @@ -1,2889 +1,200 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: google/protobuf/descriptor.proto +// source: github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.proto package descriptor import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" + reflect "reflect" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +// Symbols defined in public import of google/protobuf/descriptor.proto. + +type FieldDescriptorProto_Type = descriptorpb.FieldDescriptorProto_Type + +const FieldDescriptorProto_TYPE_DOUBLE = descriptorpb.FieldDescriptorProto_TYPE_DOUBLE +const FieldDescriptorProto_TYPE_FLOAT = descriptorpb.FieldDescriptorProto_TYPE_FLOAT +const FieldDescriptorProto_TYPE_INT64 = descriptorpb.FieldDescriptorProto_TYPE_INT64 +const FieldDescriptorProto_TYPE_UINT64 = descriptorpb.FieldDescriptorProto_TYPE_UINT64 +const FieldDescriptorProto_TYPE_INT32 = descriptorpb.FieldDescriptorProto_TYPE_INT32 +const FieldDescriptorProto_TYPE_FIXED64 = descriptorpb.FieldDescriptorProto_TYPE_FIXED64 +const FieldDescriptorProto_TYPE_FIXED32 = descriptorpb.FieldDescriptorProto_TYPE_FIXED32 +const FieldDescriptorProto_TYPE_BOOL = descriptorpb.FieldDescriptorProto_TYPE_BOOL +const FieldDescriptorProto_TYPE_STRING = descriptorpb.FieldDescriptorProto_TYPE_STRING +const FieldDescriptorProto_TYPE_GROUP = descriptorpb.FieldDescriptorProto_TYPE_GROUP +const FieldDescriptorProto_TYPE_MESSAGE = descriptorpb.FieldDescriptorProto_TYPE_MESSAGE +const FieldDescriptorProto_TYPE_BYTES = descriptorpb.FieldDescriptorProto_TYPE_BYTES +const FieldDescriptorProto_TYPE_UINT32 = descriptorpb.FieldDescriptorProto_TYPE_UINT32 +const FieldDescriptorProto_TYPE_ENUM = descriptorpb.FieldDescriptorProto_TYPE_ENUM +const FieldDescriptorProto_TYPE_SFIXED32 = descriptorpb.FieldDescriptorProto_TYPE_SFIXED32 +const FieldDescriptorProto_TYPE_SFIXED64 = descriptorpb.FieldDescriptorProto_TYPE_SFIXED64 +const FieldDescriptorProto_TYPE_SINT32 = descriptorpb.FieldDescriptorProto_TYPE_SINT32 +const FieldDescriptorProto_TYPE_SINT64 = descriptorpb.FieldDescriptorProto_TYPE_SINT64 -// 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 +var FieldDescriptorProto_Type_name = descriptorpb.FieldDescriptorProto_Type_name +var FieldDescriptorProto_Type_value = descriptorpb.FieldDescriptorProto_Type_value -type FieldDescriptorProto_Type int32 +type FieldDescriptorProto_Label = descriptorpb.FieldDescriptorProto_Label -const ( - // 0 is reserved for errors. - // Order is weird for historical reasons. - FieldDescriptorProto_TYPE_DOUBLE FieldDescriptorProto_Type = 1 - FieldDescriptorProto_TYPE_FLOAT FieldDescriptorProto_Type = 2 - // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - // negative values are likely. - FieldDescriptorProto_TYPE_INT64 FieldDescriptorProto_Type = 3 - FieldDescriptorProto_TYPE_UINT64 FieldDescriptorProto_Type = 4 - // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - // negative values are likely. - FieldDescriptorProto_TYPE_INT32 FieldDescriptorProto_Type = 5 - FieldDescriptorProto_TYPE_FIXED64 FieldDescriptorProto_Type = 6 - FieldDescriptorProto_TYPE_FIXED32 FieldDescriptorProto_Type = 7 - FieldDescriptorProto_TYPE_BOOL FieldDescriptorProto_Type = 8 - FieldDescriptorProto_TYPE_STRING FieldDescriptorProto_Type = 9 - // Tag-delimited aggregate. - // Group type is deprecated and not supported in proto3. However, Proto3 - // implementations should still be able to parse the group wire format and - // treat group fields as unknown fields. - FieldDescriptorProto_TYPE_GROUP FieldDescriptorProto_Type = 10 - FieldDescriptorProto_TYPE_MESSAGE FieldDescriptorProto_Type = 11 - // New in version 2. - FieldDescriptorProto_TYPE_BYTES FieldDescriptorProto_Type = 12 - FieldDescriptorProto_TYPE_UINT32 FieldDescriptorProto_Type = 13 - FieldDescriptorProto_TYPE_ENUM FieldDescriptorProto_Type = 14 - FieldDescriptorProto_TYPE_SFIXED32 FieldDescriptorProto_Type = 15 - FieldDescriptorProto_TYPE_SFIXED64 FieldDescriptorProto_Type = 16 - FieldDescriptorProto_TYPE_SINT32 FieldDescriptorProto_Type = 17 - FieldDescriptorProto_TYPE_SINT64 FieldDescriptorProto_Type = 18 -) +const FieldDescriptorProto_LABEL_OPTIONAL = descriptorpb.FieldDescriptorProto_LABEL_OPTIONAL +const FieldDescriptorProto_LABEL_REQUIRED = descriptorpb.FieldDescriptorProto_LABEL_REQUIRED +const FieldDescriptorProto_LABEL_REPEATED = descriptorpb.FieldDescriptorProto_LABEL_REPEATED -var FieldDescriptorProto_Type_name = map[int32]string{ - 1: "TYPE_DOUBLE", - 2: "TYPE_FLOAT", - 3: "TYPE_INT64", - 4: "TYPE_UINT64", - 5: "TYPE_INT32", - 6: "TYPE_FIXED64", - 7: "TYPE_FIXED32", - 8: "TYPE_BOOL", - 9: "TYPE_STRING", - 10: "TYPE_GROUP", - 11: "TYPE_MESSAGE", - 12: "TYPE_BYTES", - 13: "TYPE_UINT32", - 14: "TYPE_ENUM", - 15: "TYPE_SFIXED32", - 16: "TYPE_SFIXED64", - 17: "TYPE_SINT32", - 18: "TYPE_SINT64", -} - -var FieldDescriptorProto_Type_value = map[string]int32{ - "TYPE_DOUBLE": 1, - "TYPE_FLOAT": 2, - "TYPE_INT64": 3, - "TYPE_UINT64": 4, - "TYPE_INT32": 5, - "TYPE_FIXED64": 6, - "TYPE_FIXED32": 7, - "TYPE_BOOL": 8, - "TYPE_STRING": 9, - "TYPE_GROUP": 10, - "TYPE_MESSAGE": 11, - "TYPE_BYTES": 12, - "TYPE_UINT32": 13, - "TYPE_ENUM": 14, - "TYPE_SFIXED32": 15, - "TYPE_SFIXED64": 16, - "TYPE_SINT32": 17, - "TYPE_SINT64": 18, -} - -func (x FieldDescriptorProto_Type) Enum() *FieldDescriptorProto_Type { - p := new(FieldDescriptorProto_Type) - *p = x - return p -} - -func (x FieldDescriptorProto_Type) String() string { - return proto.EnumName(FieldDescriptorProto_Type_name, int32(x)) -} - -func (x *FieldDescriptorProto_Type) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(FieldDescriptorProto_Type_value, data, "FieldDescriptorProto_Type") - if err != nil { - return err - } - *x = FieldDescriptorProto_Type(value) - return nil -} - -func (FieldDescriptorProto_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{4, 0} -} - -type FieldDescriptorProto_Label int32 - -const ( - // 0 is reserved for errors - FieldDescriptorProto_LABEL_OPTIONAL FieldDescriptorProto_Label = 1 - FieldDescriptorProto_LABEL_REQUIRED FieldDescriptorProto_Label = 2 - FieldDescriptorProto_LABEL_REPEATED FieldDescriptorProto_Label = 3 -) - -var FieldDescriptorProto_Label_name = map[int32]string{ - 1: "LABEL_OPTIONAL", - 2: "LABEL_REQUIRED", - 3: "LABEL_REPEATED", -} - -var FieldDescriptorProto_Label_value = map[string]int32{ - "LABEL_OPTIONAL": 1, - "LABEL_REQUIRED": 2, - "LABEL_REPEATED": 3, -} - -func (x FieldDescriptorProto_Label) Enum() *FieldDescriptorProto_Label { - p := new(FieldDescriptorProto_Label) - *p = x - return p -} - -func (x FieldDescriptorProto_Label) String() string { - return proto.EnumName(FieldDescriptorProto_Label_name, int32(x)) -} - -func (x *FieldDescriptorProto_Label) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(FieldDescriptorProto_Label_value, data, "FieldDescriptorProto_Label") - if err != nil { - return err - } - *x = FieldDescriptorProto_Label(value) - return nil -} - -func (FieldDescriptorProto_Label) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{4, 1} -} - -// Generated classes can be optimized for speed or code size. -type FileOptions_OptimizeMode int32 - -const ( - FileOptions_SPEED FileOptions_OptimizeMode = 1 - // etc. - FileOptions_CODE_SIZE FileOptions_OptimizeMode = 2 - FileOptions_LITE_RUNTIME FileOptions_OptimizeMode = 3 -) - -var FileOptions_OptimizeMode_name = map[int32]string{ - 1: "SPEED", - 2: "CODE_SIZE", - 3: "LITE_RUNTIME", -} - -var FileOptions_OptimizeMode_value = map[string]int32{ - "SPEED": 1, - "CODE_SIZE": 2, - "LITE_RUNTIME": 3, -} - -func (x FileOptions_OptimizeMode) Enum() *FileOptions_OptimizeMode { - p := new(FileOptions_OptimizeMode) - *p = x - return p -} - -func (x FileOptions_OptimizeMode) String() string { - return proto.EnumName(FileOptions_OptimizeMode_name, int32(x)) -} - -func (x *FileOptions_OptimizeMode) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(FileOptions_OptimizeMode_value, data, "FileOptions_OptimizeMode") - if err != nil { - return err - } - *x = FileOptions_OptimizeMode(value) - return nil -} - -func (FileOptions_OptimizeMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{10, 0} -} - -type FieldOptions_CType int32 - -const ( - // Default mode. - FieldOptions_STRING FieldOptions_CType = 0 - FieldOptions_CORD FieldOptions_CType = 1 - FieldOptions_STRING_PIECE FieldOptions_CType = 2 -) - -var FieldOptions_CType_name = map[int32]string{ - 0: "STRING", - 1: "CORD", - 2: "STRING_PIECE", -} - -var FieldOptions_CType_value = map[string]int32{ - "STRING": 0, - "CORD": 1, - "STRING_PIECE": 2, -} - -func (x FieldOptions_CType) Enum() *FieldOptions_CType { - p := new(FieldOptions_CType) - *p = x - return p -} - -func (x FieldOptions_CType) String() string { - return proto.EnumName(FieldOptions_CType_name, int32(x)) -} - -func (x *FieldOptions_CType) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(FieldOptions_CType_value, data, "FieldOptions_CType") - if err != nil { - return err - } - *x = FieldOptions_CType(value) - return nil -} - -func (FieldOptions_CType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{12, 0} -} - -type FieldOptions_JSType int32 - -const ( - // Use the default type. - FieldOptions_JS_NORMAL FieldOptions_JSType = 0 - // Use JavaScript strings. - FieldOptions_JS_STRING FieldOptions_JSType = 1 - // Use JavaScript numbers. - FieldOptions_JS_NUMBER FieldOptions_JSType = 2 -) - -var FieldOptions_JSType_name = map[int32]string{ - 0: "JS_NORMAL", - 1: "JS_STRING", - 2: "JS_NUMBER", -} - -var FieldOptions_JSType_value = map[string]int32{ - "JS_NORMAL": 0, - "JS_STRING": 1, - "JS_NUMBER": 2, -} - -func (x FieldOptions_JSType) Enum() *FieldOptions_JSType { - p := new(FieldOptions_JSType) - *p = x - return p -} - -func (x FieldOptions_JSType) String() string { - return proto.EnumName(FieldOptions_JSType_name, int32(x)) -} - -func (x *FieldOptions_JSType) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(FieldOptions_JSType_value, data, "FieldOptions_JSType") - if err != nil { - return err - } - *x = FieldOptions_JSType(value) - return nil -} - -func (FieldOptions_JSType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{12, 1} -} - -// Is this method side-effect-free (or safe in HTTP parlance), or idempotent, -// or neither? HTTP based RPC implementation may choose GET verb for safe -// methods, and PUT verb for idempotent methods instead of the default POST. -type MethodOptions_IdempotencyLevel int32 - -const ( - MethodOptions_IDEMPOTENCY_UNKNOWN MethodOptions_IdempotencyLevel = 0 - MethodOptions_NO_SIDE_EFFECTS MethodOptions_IdempotencyLevel = 1 - MethodOptions_IDEMPOTENT MethodOptions_IdempotencyLevel = 2 -) - -var MethodOptions_IdempotencyLevel_name = map[int32]string{ - 0: "IDEMPOTENCY_UNKNOWN", - 1: "NO_SIDE_EFFECTS", - 2: "IDEMPOTENT", -} - -var MethodOptions_IdempotencyLevel_value = map[string]int32{ - "IDEMPOTENCY_UNKNOWN": 0, - "NO_SIDE_EFFECTS": 1, - "IDEMPOTENT": 2, -} - -func (x MethodOptions_IdempotencyLevel) Enum() *MethodOptions_IdempotencyLevel { - p := new(MethodOptions_IdempotencyLevel) - *p = x - return p -} - -func (x MethodOptions_IdempotencyLevel) String() string { - return proto.EnumName(MethodOptions_IdempotencyLevel_name, int32(x)) -} - -func (x *MethodOptions_IdempotencyLevel) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(MethodOptions_IdempotencyLevel_value, data, "MethodOptions_IdempotencyLevel") - if err != nil { - return err - } - *x = MethodOptions_IdempotencyLevel(value) - return nil -} - -func (MethodOptions_IdempotencyLevel) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{17, 0} -} - -// The protocol compiler can output a FileDescriptorSet containing the .proto -// files it parses. -type FileDescriptorSet struct { - File []*FileDescriptorProto `protobuf:"bytes,1,rep,name=file" json:"file,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FileDescriptorSet) Reset() { *m = FileDescriptorSet{} } -func (m *FileDescriptorSet) String() string { return proto.CompactTextString(m) } -func (*FileDescriptorSet) ProtoMessage() {} -func (*FileDescriptorSet) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{0} -} - -func (m *FileDescriptorSet) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FileDescriptorSet.Unmarshal(m, b) -} -func (m *FileDescriptorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FileDescriptorSet.Marshal(b, m, deterministic) -} -func (m *FileDescriptorSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_FileDescriptorSet.Merge(m, src) -} -func (m *FileDescriptorSet) XXX_Size() int { - return xxx_messageInfo_FileDescriptorSet.Size(m) -} -func (m *FileDescriptorSet) XXX_DiscardUnknown() { - xxx_messageInfo_FileDescriptorSet.DiscardUnknown(m) -} - -var xxx_messageInfo_FileDescriptorSet proto.InternalMessageInfo - -func (m *FileDescriptorSet) GetFile() []*FileDescriptorProto { - if m != nil { - return m.File - } - return nil -} - -// Describes a complete .proto file. -type FileDescriptorProto struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Package *string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"` - // Names of files imported by this file. - Dependency []string `protobuf:"bytes,3,rep,name=dependency" json:"dependency,omitempty"` - // Indexes of the public imported files in the dependency list above. - PublicDependency []int32 `protobuf:"varint,10,rep,name=public_dependency,json=publicDependency" json:"public_dependency,omitempty"` - // Indexes of the weak imported files in the dependency list. - // For Google-internal migration only. Do not use. - WeakDependency []int32 `protobuf:"varint,11,rep,name=weak_dependency,json=weakDependency" json:"weak_dependency,omitempty"` - // All top-level definitions in this file. - MessageType []*DescriptorProto `protobuf:"bytes,4,rep,name=message_type,json=messageType" json:"message_type,omitempty"` - EnumType []*EnumDescriptorProto `protobuf:"bytes,5,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"` - Service []*ServiceDescriptorProto `protobuf:"bytes,6,rep,name=service" json:"service,omitempty"` - Extension []*FieldDescriptorProto `protobuf:"bytes,7,rep,name=extension" json:"extension,omitempty"` - Options *FileOptions `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"` - // This field contains optional information about the original source code. - // You may safely remove this entire field without harming runtime - // functionality of the descriptors -- the information is needed only by - // development tools. - SourceCodeInfo *SourceCodeInfo `protobuf:"bytes,9,opt,name=source_code_info,json=sourceCodeInfo" json:"source_code_info,omitempty"` - // The syntax of the proto file. - // The supported values are "proto2" and "proto3". - Syntax *string `protobuf:"bytes,12,opt,name=syntax" json:"syntax,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FileDescriptorProto) Reset() { *m = FileDescriptorProto{} } -func (m *FileDescriptorProto) String() string { return proto.CompactTextString(m) } -func (*FileDescriptorProto) ProtoMessage() {} -func (*FileDescriptorProto) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{1} -} - -func (m *FileDescriptorProto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FileDescriptorProto.Unmarshal(m, b) -} -func (m *FileDescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FileDescriptorProto.Marshal(b, m, deterministic) -} -func (m *FileDescriptorProto) XXX_Merge(src proto.Message) { - xxx_messageInfo_FileDescriptorProto.Merge(m, src) -} -func (m *FileDescriptorProto) XXX_Size() int { - return xxx_messageInfo_FileDescriptorProto.Size(m) -} -func (m *FileDescriptorProto) XXX_DiscardUnknown() { - xxx_messageInfo_FileDescriptorProto.DiscardUnknown(m) -} - -var xxx_messageInfo_FileDescriptorProto proto.InternalMessageInfo - -func (m *FileDescriptorProto) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *FileDescriptorProto) GetPackage() string { - if m != nil && m.Package != nil { - return *m.Package - } - return "" -} - -func (m *FileDescriptorProto) GetDependency() []string { - if m != nil { - return m.Dependency - } - return nil -} - -func (m *FileDescriptorProto) GetPublicDependency() []int32 { - if m != nil { - return m.PublicDependency - } - return nil -} - -func (m *FileDescriptorProto) GetWeakDependency() []int32 { - if m != nil { - return m.WeakDependency - } - return nil -} - -func (m *FileDescriptorProto) GetMessageType() []*DescriptorProto { - if m != nil { - return m.MessageType - } - return nil -} - -func (m *FileDescriptorProto) GetEnumType() []*EnumDescriptorProto { - if m != nil { - return m.EnumType - } - return nil -} - -func (m *FileDescriptorProto) GetService() []*ServiceDescriptorProto { - if m != nil { - return m.Service - } - return nil -} - -func (m *FileDescriptorProto) GetExtension() []*FieldDescriptorProto { - if m != nil { - return m.Extension - } - return nil -} - -func (m *FileDescriptorProto) GetOptions() *FileOptions { - if m != nil { - return m.Options - } - return nil -} - -func (m *FileDescriptorProto) GetSourceCodeInfo() *SourceCodeInfo { - if m != nil { - return m.SourceCodeInfo - } - return nil -} - -func (m *FileDescriptorProto) GetSyntax() string { - if m != nil && m.Syntax != nil { - return *m.Syntax - } - return "" -} - -// Describes a message type. -type DescriptorProto struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Field []*FieldDescriptorProto `protobuf:"bytes,2,rep,name=field" json:"field,omitempty"` - Extension []*FieldDescriptorProto `protobuf:"bytes,6,rep,name=extension" json:"extension,omitempty"` - NestedType []*DescriptorProto `protobuf:"bytes,3,rep,name=nested_type,json=nestedType" json:"nested_type,omitempty"` - EnumType []*EnumDescriptorProto `protobuf:"bytes,4,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"` - ExtensionRange []*DescriptorProto_ExtensionRange `protobuf:"bytes,5,rep,name=extension_range,json=extensionRange" json:"extension_range,omitempty"` - OneofDecl []*OneofDescriptorProto `protobuf:"bytes,8,rep,name=oneof_decl,json=oneofDecl" json:"oneof_decl,omitempty"` - Options *MessageOptions `protobuf:"bytes,7,opt,name=options" json:"options,omitempty"` - ReservedRange []*DescriptorProto_ReservedRange `protobuf:"bytes,9,rep,name=reserved_range,json=reservedRange" json:"reserved_range,omitempty"` - // Reserved field names, which may not be used by fields in the same message. - // A given name may only be reserved once. - ReservedName []string `protobuf:"bytes,10,rep,name=reserved_name,json=reservedName" json:"reserved_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DescriptorProto) Reset() { *m = DescriptorProto{} } -func (m *DescriptorProto) String() string { return proto.CompactTextString(m) } -func (*DescriptorProto) ProtoMessage() {} -func (*DescriptorProto) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{2} -} - -func (m *DescriptorProto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DescriptorProto.Unmarshal(m, b) -} -func (m *DescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DescriptorProto.Marshal(b, m, deterministic) -} -func (m *DescriptorProto) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescriptorProto.Merge(m, src) -} -func (m *DescriptorProto) XXX_Size() int { - return xxx_messageInfo_DescriptorProto.Size(m) -} -func (m *DescriptorProto) XXX_DiscardUnknown() { - xxx_messageInfo_DescriptorProto.DiscardUnknown(m) -} - -var xxx_messageInfo_DescriptorProto proto.InternalMessageInfo - -func (m *DescriptorProto) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *DescriptorProto) GetField() []*FieldDescriptorProto { - if m != nil { - return m.Field - } - return nil -} - -func (m *DescriptorProto) GetExtension() []*FieldDescriptorProto { - if m != nil { - return m.Extension - } - return nil -} - -func (m *DescriptorProto) GetNestedType() []*DescriptorProto { - if m != nil { - return m.NestedType - } - return nil -} - -func (m *DescriptorProto) GetEnumType() []*EnumDescriptorProto { - if m != nil { - return m.EnumType - } - return nil -} - -func (m *DescriptorProto) GetExtensionRange() []*DescriptorProto_ExtensionRange { - if m != nil { - return m.ExtensionRange - } - return nil -} - -func (m *DescriptorProto) GetOneofDecl() []*OneofDescriptorProto { - if m != nil { - return m.OneofDecl - } - return nil -} - -func (m *DescriptorProto) GetOptions() *MessageOptions { - if m != nil { - return m.Options - } - return nil -} - -func (m *DescriptorProto) GetReservedRange() []*DescriptorProto_ReservedRange { - if m != nil { - return m.ReservedRange - } - return nil -} - -func (m *DescriptorProto) GetReservedName() []string { - if m != nil { - return m.ReservedName - } - return nil -} - -type DescriptorProto_ExtensionRange struct { - Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` - End *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` - Options *ExtensionRangeOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DescriptorProto_ExtensionRange) Reset() { *m = DescriptorProto_ExtensionRange{} } -func (m *DescriptorProto_ExtensionRange) String() string { return proto.CompactTextString(m) } -func (*DescriptorProto_ExtensionRange) ProtoMessage() {} -func (*DescriptorProto_ExtensionRange) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{2, 0} -} - -func (m *DescriptorProto_ExtensionRange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DescriptorProto_ExtensionRange.Unmarshal(m, b) -} -func (m *DescriptorProto_ExtensionRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DescriptorProto_ExtensionRange.Marshal(b, m, deterministic) -} -func (m *DescriptorProto_ExtensionRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescriptorProto_ExtensionRange.Merge(m, src) -} -func (m *DescriptorProto_ExtensionRange) XXX_Size() int { - return xxx_messageInfo_DescriptorProto_ExtensionRange.Size(m) -} -func (m *DescriptorProto_ExtensionRange) XXX_DiscardUnknown() { - xxx_messageInfo_DescriptorProto_ExtensionRange.DiscardUnknown(m) -} - -var xxx_messageInfo_DescriptorProto_ExtensionRange proto.InternalMessageInfo - -func (m *DescriptorProto_ExtensionRange) GetStart() int32 { - if m != nil && m.Start != nil { - return *m.Start - } - return 0 -} - -func (m *DescriptorProto_ExtensionRange) GetEnd() int32 { - if m != nil && m.End != nil { - return *m.End - } - return 0 -} - -func (m *DescriptorProto_ExtensionRange) GetOptions() *ExtensionRangeOptions { - if m != nil { - return m.Options - } - return nil -} - -// Range of reserved tag numbers. Reserved tag numbers may not be used by -// fields or extension ranges in the same message. Reserved ranges may -// not overlap. -type DescriptorProto_ReservedRange struct { - Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` - End *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DescriptorProto_ReservedRange) Reset() { *m = DescriptorProto_ReservedRange{} } -func (m *DescriptorProto_ReservedRange) String() string { return proto.CompactTextString(m) } -func (*DescriptorProto_ReservedRange) ProtoMessage() {} -func (*DescriptorProto_ReservedRange) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{2, 1} -} - -func (m *DescriptorProto_ReservedRange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DescriptorProto_ReservedRange.Unmarshal(m, b) -} -func (m *DescriptorProto_ReservedRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DescriptorProto_ReservedRange.Marshal(b, m, deterministic) -} -func (m *DescriptorProto_ReservedRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescriptorProto_ReservedRange.Merge(m, src) -} -func (m *DescriptorProto_ReservedRange) XXX_Size() int { - return xxx_messageInfo_DescriptorProto_ReservedRange.Size(m) -} -func (m *DescriptorProto_ReservedRange) XXX_DiscardUnknown() { - xxx_messageInfo_DescriptorProto_ReservedRange.DiscardUnknown(m) -} - -var xxx_messageInfo_DescriptorProto_ReservedRange proto.InternalMessageInfo - -func (m *DescriptorProto_ReservedRange) GetStart() int32 { - if m != nil && m.Start != nil { - return *m.Start - } - return 0 -} - -func (m *DescriptorProto_ReservedRange) GetEnd() int32 { - if m != nil && m.End != nil { - return *m.End - } - return 0 -} - -type ExtensionRangeOptions struct { - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExtensionRangeOptions) Reset() { *m = ExtensionRangeOptions{} } -func (m *ExtensionRangeOptions) String() string { return proto.CompactTextString(m) } -func (*ExtensionRangeOptions) ProtoMessage() {} -func (*ExtensionRangeOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{3} -} - -var extRange_ExtensionRangeOptions = []proto.ExtensionRange{ - {Start: 1000, End: 536870911}, -} - -func (*ExtensionRangeOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_ExtensionRangeOptions -} - -func (m *ExtensionRangeOptions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExtensionRangeOptions.Unmarshal(m, b) -} -func (m *ExtensionRangeOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExtensionRangeOptions.Marshal(b, m, deterministic) -} -func (m *ExtensionRangeOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExtensionRangeOptions.Merge(m, src) -} -func (m *ExtensionRangeOptions) XXX_Size() int { - return xxx_messageInfo_ExtensionRangeOptions.Size(m) -} -func (m *ExtensionRangeOptions) XXX_DiscardUnknown() { - xxx_messageInfo_ExtensionRangeOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_ExtensionRangeOptions proto.InternalMessageInfo - -func (m *ExtensionRangeOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -// Describes a field within a message. -type FieldDescriptorProto struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Number *int32 `protobuf:"varint,3,opt,name=number" json:"number,omitempty"` - Label *FieldDescriptorProto_Label `protobuf:"varint,4,opt,name=label,enum=google.protobuf.FieldDescriptorProto_Label" json:"label,omitempty"` - // If type_name is set, this need not be set. If both this and type_name - // are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - Type *FieldDescriptorProto_Type `protobuf:"varint,5,opt,name=type,enum=google.protobuf.FieldDescriptorProto_Type" json:"type,omitempty"` - // For message and enum types, this is the name of the type. If the name - // starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - // rules are used to find the type (i.e. first the nested types within this - // message are searched, then within the parent, on up to the root - // namespace). - TypeName *string `protobuf:"bytes,6,opt,name=type_name,json=typeName" json:"type_name,omitempty"` - // For extensions, this is the name of the type being extended. It is - // resolved in the same manner as type_name. - Extendee *string `protobuf:"bytes,2,opt,name=extendee" json:"extendee,omitempty"` - // For numeric types, contains the original text representation of the value. - // For booleans, "true" or "false". - // For strings, contains the default text contents (not escaped in any way). - // For bytes, contains the C escaped value. All bytes >= 128 are escaped. - // TODO(kenton): Base-64 encode? - DefaultValue *string `protobuf:"bytes,7,opt,name=default_value,json=defaultValue" json:"default_value,omitempty"` - // If set, gives the index of a oneof in the containing type's oneof_decl - // list. This field is a member of that oneof. - OneofIndex *int32 `protobuf:"varint,9,opt,name=oneof_index,json=oneofIndex" json:"oneof_index,omitempty"` - // JSON name of this field. The value is set by protocol compiler. If the - // user has set a "json_name" option on this field, that option's value - // will be used. Otherwise, it's deduced from the field's name by converting - // it to camelCase. - JsonName *string `protobuf:"bytes,10,opt,name=json_name,json=jsonName" json:"json_name,omitempty"` - Options *FieldOptions `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FieldDescriptorProto) Reset() { *m = FieldDescriptorProto{} } -func (m *FieldDescriptorProto) String() string { return proto.CompactTextString(m) } -func (*FieldDescriptorProto) ProtoMessage() {} -func (*FieldDescriptorProto) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{4} -} - -func (m *FieldDescriptorProto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FieldDescriptorProto.Unmarshal(m, b) -} -func (m *FieldDescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FieldDescriptorProto.Marshal(b, m, deterministic) -} -func (m *FieldDescriptorProto) XXX_Merge(src proto.Message) { - xxx_messageInfo_FieldDescriptorProto.Merge(m, src) -} -func (m *FieldDescriptorProto) XXX_Size() int { - return xxx_messageInfo_FieldDescriptorProto.Size(m) -} -func (m *FieldDescriptorProto) XXX_DiscardUnknown() { - xxx_messageInfo_FieldDescriptorProto.DiscardUnknown(m) -} - -var xxx_messageInfo_FieldDescriptorProto proto.InternalMessageInfo - -func (m *FieldDescriptorProto) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *FieldDescriptorProto) GetNumber() int32 { - if m != nil && m.Number != nil { - return *m.Number - } - return 0 -} - -func (m *FieldDescriptorProto) GetLabel() FieldDescriptorProto_Label { - if m != nil && m.Label != nil { - return *m.Label - } - return FieldDescriptorProto_LABEL_OPTIONAL -} - -func (m *FieldDescriptorProto) GetType() FieldDescriptorProto_Type { - if m != nil && m.Type != nil { - return *m.Type - } - return FieldDescriptorProto_TYPE_DOUBLE -} - -func (m *FieldDescriptorProto) GetTypeName() string { - if m != nil && m.TypeName != nil { - return *m.TypeName - } - return "" -} - -func (m *FieldDescriptorProto) GetExtendee() string { - if m != nil && m.Extendee != nil { - return *m.Extendee - } - return "" -} - -func (m *FieldDescriptorProto) GetDefaultValue() string { - if m != nil && m.DefaultValue != nil { - return *m.DefaultValue - } - return "" -} - -func (m *FieldDescriptorProto) GetOneofIndex() int32 { - if m != nil && m.OneofIndex != nil { - return *m.OneofIndex - } - return 0 -} - -func (m *FieldDescriptorProto) GetJsonName() string { - if m != nil && m.JsonName != nil { - return *m.JsonName - } - return "" -} - -func (m *FieldDescriptorProto) GetOptions() *FieldOptions { - if m != nil { - return m.Options - } - return nil -} - -// Describes a oneof. -type OneofDescriptorProto struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Options *OneofOptions `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OneofDescriptorProto) Reset() { *m = OneofDescriptorProto{} } -func (m *OneofDescriptorProto) String() string { return proto.CompactTextString(m) } -func (*OneofDescriptorProto) ProtoMessage() {} -func (*OneofDescriptorProto) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{5} -} - -func (m *OneofDescriptorProto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OneofDescriptorProto.Unmarshal(m, b) -} -func (m *OneofDescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OneofDescriptorProto.Marshal(b, m, deterministic) -} -func (m *OneofDescriptorProto) XXX_Merge(src proto.Message) { - xxx_messageInfo_OneofDescriptorProto.Merge(m, src) -} -func (m *OneofDescriptorProto) XXX_Size() int { - return xxx_messageInfo_OneofDescriptorProto.Size(m) -} -func (m *OneofDescriptorProto) XXX_DiscardUnknown() { - xxx_messageInfo_OneofDescriptorProto.DiscardUnknown(m) -} - -var xxx_messageInfo_OneofDescriptorProto proto.InternalMessageInfo - -func (m *OneofDescriptorProto) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *OneofDescriptorProto) GetOptions() *OneofOptions { - if m != nil { - return m.Options - } - return nil -} - -// Describes an enum type. -type EnumDescriptorProto struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Value []*EnumValueDescriptorProto `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"` - Options *EnumOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` - // Range of reserved numeric values. Reserved numeric values may not be used - // by enum values in the same enum declaration. Reserved ranges may not - // overlap. - ReservedRange []*EnumDescriptorProto_EnumReservedRange `protobuf:"bytes,4,rep,name=reserved_range,json=reservedRange" json:"reserved_range,omitempty"` - // Reserved enum value names, which may not be reused. A given name may only - // be reserved once. - ReservedName []string `protobuf:"bytes,5,rep,name=reserved_name,json=reservedName" json:"reserved_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EnumDescriptorProto) Reset() { *m = EnumDescriptorProto{} } -func (m *EnumDescriptorProto) String() string { return proto.CompactTextString(m) } -func (*EnumDescriptorProto) ProtoMessage() {} -func (*EnumDescriptorProto) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{6} -} - -func (m *EnumDescriptorProto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EnumDescriptorProto.Unmarshal(m, b) -} -func (m *EnumDescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EnumDescriptorProto.Marshal(b, m, deterministic) -} -func (m *EnumDescriptorProto) XXX_Merge(src proto.Message) { - xxx_messageInfo_EnumDescriptorProto.Merge(m, src) -} -func (m *EnumDescriptorProto) XXX_Size() int { - return xxx_messageInfo_EnumDescriptorProto.Size(m) -} -func (m *EnumDescriptorProto) XXX_DiscardUnknown() { - xxx_messageInfo_EnumDescriptorProto.DiscardUnknown(m) -} - -var xxx_messageInfo_EnumDescriptorProto proto.InternalMessageInfo - -func (m *EnumDescriptorProto) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *EnumDescriptorProto) GetValue() []*EnumValueDescriptorProto { - if m != nil { - return m.Value - } - return nil -} - -func (m *EnumDescriptorProto) GetOptions() *EnumOptions { - if m != nil { - return m.Options - } - return nil -} - -func (m *EnumDescriptorProto) GetReservedRange() []*EnumDescriptorProto_EnumReservedRange { - if m != nil { - return m.ReservedRange - } - return nil -} - -func (m *EnumDescriptorProto) GetReservedName() []string { - if m != nil { - return m.ReservedName - } - return nil -} - -// Range of reserved numeric values. Reserved values may not be used by -// entries in the same enum. Reserved ranges may not overlap. -// -// Note that this is distinct from DescriptorProto.ReservedRange in that it -// is inclusive such that it can appropriately represent the entire int32 -// domain. -type EnumDescriptorProto_EnumReservedRange struct { - Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` - End *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EnumDescriptorProto_EnumReservedRange) Reset() { *m = EnumDescriptorProto_EnumReservedRange{} } -func (m *EnumDescriptorProto_EnumReservedRange) String() string { return proto.CompactTextString(m) } -func (*EnumDescriptorProto_EnumReservedRange) ProtoMessage() {} -func (*EnumDescriptorProto_EnumReservedRange) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{6, 0} -} - -func (m *EnumDescriptorProto_EnumReservedRange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EnumDescriptorProto_EnumReservedRange.Unmarshal(m, b) -} -func (m *EnumDescriptorProto_EnumReservedRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EnumDescriptorProto_EnumReservedRange.Marshal(b, m, deterministic) -} -func (m *EnumDescriptorProto_EnumReservedRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_EnumDescriptorProto_EnumReservedRange.Merge(m, src) -} -func (m *EnumDescriptorProto_EnumReservedRange) XXX_Size() int { - return xxx_messageInfo_EnumDescriptorProto_EnumReservedRange.Size(m) -} -func (m *EnumDescriptorProto_EnumReservedRange) XXX_DiscardUnknown() { - xxx_messageInfo_EnumDescriptorProto_EnumReservedRange.DiscardUnknown(m) -} - -var xxx_messageInfo_EnumDescriptorProto_EnumReservedRange proto.InternalMessageInfo - -func (m *EnumDescriptorProto_EnumReservedRange) GetStart() int32 { - if m != nil && m.Start != nil { - return *m.Start - } - return 0 -} - -func (m *EnumDescriptorProto_EnumReservedRange) GetEnd() int32 { - if m != nil && m.End != nil { - return *m.End - } - return 0 -} - -// Describes a value within an enum. -type EnumValueDescriptorProto struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Number *int32 `protobuf:"varint,2,opt,name=number" json:"number,omitempty"` - Options *EnumValueOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EnumValueDescriptorProto) Reset() { *m = EnumValueDescriptorProto{} } -func (m *EnumValueDescriptorProto) String() string { return proto.CompactTextString(m) } -func (*EnumValueDescriptorProto) ProtoMessage() {} -func (*EnumValueDescriptorProto) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{7} -} - -func (m *EnumValueDescriptorProto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EnumValueDescriptorProto.Unmarshal(m, b) -} -func (m *EnumValueDescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EnumValueDescriptorProto.Marshal(b, m, deterministic) -} -func (m *EnumValueDescriptorProto) XXX_Merge(src proto.Message) { - xxx_messageInfo_EnumValueDescriptorProto.Merge(m, src) -} -func (m *EnumValueDescriptorProto) XXX_Size() int { - return xxx_messageInfo_EnumValueDescriptorProto.Size(m) -} -func (m *EnumValueDescriptorProto) XXX_DiscardUnknown() { - xxx_messageInfo_EnumValueDescriptorProto.DiscardUnknown(m) -} - -var xxx_messageInfo_EnumValueDescriptorProto proto.InternalMessageInfo - -func (m *EnumValueDescriptorProto) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *EnumValueDescriptorProto) GetNumber() int32 { - if m != nil && m.Number != nil { - return *m.Number - } - return 0 -} - -func (m *EnumValueDescriptorProto) GetOptions() *EnumValueOptions { - if m != nil { - return m.Options - } - return nil -} - -// Describes a service. -type ServiceDescriptorProto struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Method []*MethodDescriptorProto `protobuf:"bytes,2,rep,name=method" json:"method,omitempty"` - Options *ServiceOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ServiceDescriptorProto) Reset() { *m = ServiceDescriptorProto{} } -func (m *ServiceDescriptorProto) String() string { return proto.CompactTextString(m) } -func (*ServiceDescriptorProto) ProtoMessage() {} -func (*ServiceDescriptorProto) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{8} -} - -func (m *ServiceDescriptorProto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServiceDescriptorProto.Unmarshal(m, b) -} -func (m *ServiceDescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServiceDescriptorProto.Marshal(b, m, deterministic) -} -func (m *ServiceDescriptorProto) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceDescriptorProto.Merge(m, src) -} -func (m *ServiceDescriptorProto) XXX_Size() int { - return xxx_messageInfo_ServiceDescriptorProto.Size(m) -} -func (m *ServiceDescriptorProto) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceDescriptorProto.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceDescriptorProto proto.InternalMessageInfo - -func (m *ServiceDescriptorProto) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *ServiceDescriptorProto) GetMethod() []*MethodDescriptorProto { - if m != nil { - return m.Method - } - return nil -} - -func (m *ServiceDescriptorProto) GetOptions() *ServiceOptions { - if m != nil { - return m.Options - } - return nil -} - -// Describes a method of a service. -type MethodDescriptorProto struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - // Input and output type names. These are resolved in the same way as - // FieldDescriptorProto.type_name, but must refer to a message type. - InputType *string `protobuf:"bytes,2,opt,name=input_type,json=inputType" json:"input_type,omitempty"` - OutputType *string `protobuf:"bytes,3,opt,name=output_type,json=outputType" json:"output_type,omitempty"` - Options *MethodOptions `protobuf:"bytes,4,opt,name=options" json:"options,omitempty"` - // Identifies if client streams multiple client messages - ClientStreaming *bool `protobuf:"varint,5,opt,name=client_streaming,json=clientStreaming,def=0" json:"client_streaming,omitempty"` - // Identifies if server streams multiple server messages - ServerStreaming *bool `protobuf:"varint,6,opt,name=server_streaming,json=serverStreaming,def=0" json:"server_streaming,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MethodDescriptorProto) Reset() { *m = MethodDescriptorProto{} } -func (m *MethodDescriptorProto) String() string { return proto.CompactTextString(m) } -func (*MethodDescriptorProto) ProtoMessage() {} -func (*MethodDescriptorProto) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{9} -} - -func (m *MethodDescriptorProto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MethodDescriptorProto.Unmarshal(m, b) -} -func (m *MethodDescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MethodDescriptorProto.Marshal(b, m, deterministic) -} -func (m *MethodDescriptorProto) XXX_Merge(src proto.Message) { - xxx_messageInfo_MethodDescriptorProto.Merge(m, src) -} -func (m *MethodDescriptorProto) XXX_Size() int { - return xxx_messageInfo_MethodDescriptorProto.Size(m) -} -func (m *MethodDescriptorProto) XXX_DiscardUnknown() { - xxx_messageInfo_MethodDescriptorProto.DiscardUnknown(m) -} - -var xxx_messageInfo_MethodDescriptorProto proto.InternalMessageInfo - -const Default_MethodDescriptorProto_ClientStreaming bool = false -const Default_MethodDescriptorProto_ServerStreaming bool = false - -func (m *MethodDescriptorProto) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *MethodDescriptorProto) GetInputType() string { - if m != nil && m.InputType != nil { - return *m.InputType - } - return "" -} - -func (m *MethodDescriptorProto) GetOutputType() string { - if m != nil && m.OutputType != nil { - return *m.OutputType - } - return "" -} - -func (m *MethodDescriptorProto) GetOptions() *MethodOptions { - if m != nil { - return m.Options - } - return nil -} - -func (m *MethodDescriptorProto) GetClientStreaming() bool { - if m != nil && m.ClientStreaming != nil { - return *m.ClientStreaming - } - return Default_MethodDescriptorProto_ClientStreaming -} - -func (m *MethodDescriptorProto) GetServerStreaming() bool { - if m != nil && m.ServerStreaming != nil { - return *m.ServerStreaming - } - return Default_MethodDescriptorProto_ServerStreaming -} - -type FileOptions struct { - // Sets the Java package where classes generated from this .proto will be - // placed. By default, the proto package is used, but this is often - // inappropriate because proto packages do not normally start with backwards - // domain names. - JavaPackage *string `protobuf:"bytes,1,opt,name=java_package,json=javaPackage" json:"java_package,omitempty"` - // If set, all the classes from the .proto file are wrapped in a single - // outer class with the given name. This applies to both Proto1 - // (equivalent to the old "--one_java_file" option) and Proto2 (where - // a .proto always translates to a single class, but you may want to - // explicitly choose the class name). - JavaOuterClassname *string `protobuf:"bytes,8,opt,name=java_outer_classname,json=javaOuterClassname" json:"java_outer_classname,omitempty"` - // If set true, then the Java code generator will generate a separate .java - // file for each top-level message, enum, and service defined in the .proto - // file. Thus, these types will *not* be nested inside the outer class - // named by java_outer_classname. However, the outer class will still be - // generated to contain the file's getDescriptor() method as well as any - // top-level extensions defined in the file. - JavaMultipleFiles *bool `protobuf:"varint,10,opt,name=java_multiple_files,json=javaMultipleFiles,def=0" json:"java_multiple_files,omitempty"` - // This option does nothing. - JavaGenerateEqualsAndHash *bool `protobuf:"varint,20,opt,name=java_generate_equals_and_hash,json=javaGenerateEqualsAndHash" json:"java_generate_equals_and_hash,omitempty"` // Deprecated: Do not use. - // If set true, then the Java2 code generator will generate code that - // throws an exception whenever an attempt is made to assign a non-UTF-8 - // byte sequence to a string field. - // Message reflection will do the same. - // However, an extension field still accepts non-UTF-8 byte sequences. - // This option has no effect on when used with the lite runtime. - JavaStringCheckUtf8 *bool `protobuf:"varint,27,opt,name=java_string_check_utf8,json=javaStringCheckUtf8,def=0" json:"java_string_check_utf8,omitempty"` - OptimizeFor *FileOptions_OptimizeMode `protobuf:"varint,9,opt,name=optimize_for,json=optimizeFor,enum=google.protobuf.FileOptions_OptimizeMode,def=1" json:"optimize_for,omitempty"` - // Sets the Go package where structs generated from this .proto will be - // placed. If omitted, the Go package will be derived from the following: - // - The basename of the package import path, if provided. - // - Otherwise, the package statement in the .proto file, if present. - // - Otherwise, the basename of the .proto file, without extension. - GoPackage *string `protobuf:"bytes,11,opt,name=go_package,json=goPackage" json:"go_package,omitempty"` - // Should generic services be generated in each language? "Generic" services - // are not specific to any particular RPC system. They are generated by the - // main code generators in each language (without additional plugins). - // Generic services were the only kind of service generation supported by - // early versions of google.protobuf. - // - // Generic services are now considered deprecated in favor of using plugins - // that generate code specific to your particular RPC system. Therefore, - // these default to false. Old code which depends on generic services should - // explicitly set them to true. - CcGenericServices *bool `protobuf:"varint,16,opt,name=cc_generic_services,json=ccGenericServices,def=0" json:"cc_generic_services,omitempty"` - JavaGenericServices *bool `protobuf:"varint,17,opt,name=java_generic_services,json=javaGenericServices,def=0" json:"java_generic_services,omitempty"` - PyGenericServices *bool `protobuf:"varint,18,opt,name=py_generic_services,json=pyGenericServices,def=0" json:"py_generic_services,omitempty"` - PhpGenericServices *bool `protobuf:"varint,42,opt,name=php_generic_services,json=phpGenericServices,def=0" json:"php_generic_services,omitempty"` - // Is this file deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for everything in the file, or it will be completely ignored; in the very - // least, this is a formalization for deprecating files. - Deprecated *bool `protobuf:"varint,23,opt,name=deprecated,def=0" json:"deprecated,omitempty"` - // Enables the use of arenas for the proto messages in this file. This applies - // only to generated classes for C++. - CcEnableArenas *bool `protobuf:"varint,31,opt,name=cc_enable_arenas,json=ccEnableArenas,def=0" json:"cc_enable_arenas,omitempty"` - // Sets the objective c class prefix which is prepended to all objective c - // generated classes from this .proto. There is no default. - ObjcClassPrefix *string `protobuf:"bytes,36,opt,name=objc_class_prefix,json=objcClassPrefix" json:"objc_class_prefix,omitempty"` - // Namespace for generated classes; defaults to the package. - CsharpNamespace *string `protobuf:"bytes,37,opt,name=csharp_namespace,json=csharpNamespace" json:"csharp_namespace,omitempty"` - // By default Swift generators will take the proto package and CamelCase it - // replacing '.' with underscore and use that to prefix the types/symbols - // defined. When this options is provided, they will use this value instead - // to prefix the types/symbols defined. - SwiftPrefix *string `protobuf:"bytes,39,opt,name=swift_prefix,json=swiftPrefix" json:"swift_prefix,omitempty"` - // Sets the php class prefix which is prepended to all php generated classes - // from this .proto. Default is empty. - PhpClassPrefix *string `protobuf:"bytes,40,opt,name=php_class_prefix,json=phpClassPrefix" json:"php_class_prefix,omitempty"` - // Use this option to change the namespace of php generated classes. Default - // is empty. When this option is empty, the package name will be used for - // determining the namespace. - PhpNamespace *string `protobuf:"bytes,41,opt,name=php_namespace,json=phpNamespace" json:"php_namespace,omitempty"` - // Use this option to change the namespace of php generated metadata classes. - // Default is empty. When this option is empty, the proto file name will be - // used for determining the namespace. - PhpMetadataNamespace *string `protobuf:"bytes,44,opt,name=php_metadata_namespace,json=phpMetadataNamespace" json:"php_metadata_namespace,omitempty"` - // Use this option to change the package of ruby generated classes. Default - // is empty. When this option is not set, the package name will be used for - // determining the ruby package. - RubyPackage *string `protobuf:"bytes,45,opt,name=ruby_package,json=rubyPackage" json:"ruby_package,omitempty"` - // The parser stores options it doesn't recognize here. - // See the documentation for the "Options" section above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FileOptions) Reset() { *m = FileOptions{} } -func (m *FileOptions) String() string { return proto.CompactTextString(m) } -func (*FileOptions) ProtoMessage() {} -func (*FileOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{10} -} - -var extRange_FileOptions = []proto.ExtensionRange{ - {Start: 1000, End: 536870911}, -} - -func (*FileOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_FileOptions -} - -func (m *FileOptions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FileOptions.Unmarshal(m, b) -} -func (m *FileOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FileOptions.Marshal(b, m, deterministic) -} -func (m *FileOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_FileOptions.Merge(m, src) -} -func (m *FileOptions) XXX_Size() int { - return xxx_messageInfo_FileOptions.Size(m) -} -func (m *FileOptions) XXX_DiscardUnknown() { - xxx_messageInfo_FileOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_FileOptions proto.InternalMessageInfo - -const Default_FileOptions_JavaMultipleFiles bool = false -const Default_FileOptions_JavaStringCheckUtf8 bool = false -const Default_FileOptions_OptimizeFor FileOptions_OptimizeMode = FileOptions_SPEED -const Default_FileOptions_CcGenericServices bool = false -const Default_FileOptions_JavaGenericServices bool = false -const Default_FileOptions_PyGenericServices bool = false -const Default_FileOptions_PhpGenericServices bool = false -const Default_FileOptions_Deprecated bool = false -const Default_FileOptions_CcEnableArenas bool = false - -func (m *FileOptions) GetJavaPackage() string { - if m != nil && m.JavaPackage != nil { - return *m.JavaPackage - } - return "" -} - -func (m *FileOptions) GetJavaOuterClassname() string { - if m != nil && m.JavaOuterClassname != nil { - return *m.JavaOuterClassname - } - return "" -} - -func (m *FileOptions) GetJavaMultipleFiles() bool { - if m != nil && m.JavaMultipleFiles != nil { - return *m.JavaMultipleFiles - } - return Default_FileOptions_JavaMultipleFiles -} - -// Deprecated: Do not use. -func (m *FileOptions) GetJavaGenerateEqualsAndHash() bool { - if m != nil && m.JavaGenerateEqualsAndHash != nil { - return *m.JavaGenerateEqualsAndHash - } - return false -} - -func (m *FileOptions) GetJavaStringCheckUtf8() bool { - if m != nil && m.JavaStringCheckUtf8 != nil { - return *m.JavaStringCheckUtf8 - } - return Default_FileOptions_JavaStringCheckUtf8 -} - -func (m *FileOptions) GetOptimizeFor() FileOptions_OptimizeMode { - if m != nil && m.OptimizeFor != nil { - return *m.OptimizeFor - } - return Default_FileOptions_OptimizeFor -} - -func (m *FileOptions) GetGoPackage() string { - if m != nil && m.GoPackage != nil { - return *m.GoPackage - } - return "" -} - -func (m *FileOptions) GetCcGenericServices() bool { - if m != nil && m.CcGenericServices != nil { - return *m.CcGenericServices - } - return Default_FileOptions_CcGenericServices -} - -func (m *FileOptions) GetJavaGenericServices() bool { - if m != nil && m.JavaGenericServices != nil { - return *m.JavaGenericServices - } - return Default_FileOptions_JavaGenericServices -} - -func (m *FileOptions) GetPyGenericServices() bool { - if m != nil && m.PyGenericServices != nil { - return *m.PyGenericServices - } - return Default_FileOptions_PyGenericServices -} - -func (m *FileOptions) GetPhpGenericServices() bool { - if m != nil && m.PhpGenericServices != nil { - return *m.PhpGenericServices - } - return Default_FileOptions_PhpGenericServices -} - -func (m *FileOptions) GetDeprecated() bool { - if m != nil && m.Deprecated != nil { - return *m.Deprecated - } - return Default_FileOptions_Deprecated -} - -func (m *FileOptions) GetCcEnableArenas() bool { - if m != nil && m.CcEnableArenas != nil { - return *m.CcEnableArenas - } - return Default_FileOptions_CcEnableArenas -} - -func (m *FileOptions) GetObjcClassPrefix() string { - if m != nil && m.ObjcClassPrefix != nil { - return *m.ObjcClassPrefix - } - return "" -} - -func (m *FileOptions) GetCsharpNamespace() string { - if m != nil && m.CsharpNamespace != nil { - return *m.CsharpNamespace - } - return "" -} - -func (m *FileOptions) GetSwiftPrefix() string { - if m != nil && m.SwiftPrefix != nil { - return *m.SwiftPrefix - } - return "" -} - -func (m *FileOptions) GetPhpClassPrefix() string { - if m != nil && m.PhpClassPrefix != nil { - return *m.PhpClassPrefix - } - return "" -} - -func (m *FileOptions) GetPhpNamespace() string { - if m != nil && m.PhpNamespace != nil { - return *m.PhpNamespace - } - return "" -} - -func (m *FileOptions) GetPhpMetadataNamespace() string { - if m != nil && m.PhpMetadataNamespace != nil { - return *m.PhpMetadataNamespace - } - return "" -} - -func (m *FileOptions) GetRubyPackage() string { - if m != nil && m.RubyPackage != nil { - return *m.RubyPackage - } - return "" -} - -func (m *FileOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -type MessageOptions struct { - // Set true to use the old proto1 MessageSet wire format for extensions. - // This is provided for backwards-compatibility with the MessageSet wire - // format. You should not use this for any other reason: It's less - // efficient, has fewer features, and is more complicated. - // - // The message must be defined exactly as follows: - // message Foo { - // option message_set_wire_format = true; - // extensions 4 to max; - // } - // Note that the message cannot have any defined fields; MessageSets only - // have extensions. - // - // All extensions of your type must be singular messages; e.g. they cannot - // be int32s, enums, or repeated messages. - // - // Because this is an option, the above two restrictions are not enforced by - // the protocol compiler. - MessageSetWireFormat *bool `protobuf:"varint,1,opt,name=message_set_wire_format,json=messageSetWireFormat,def=0" json:"message_set_wire_format,omitempty"` - // Disables the generation of the standard "descriptor()" accessor, which can - // conflict with a field of the same name. This is meant to make migration - // from proto1 easier; new code should avoid fields named "descriptor". - NoStandardDescriptorAccessor *bool `protobuf:"varint,2,opt,name=no_standard_descriptor_accessor,json=noStandardDescriptorAccessor,def=0" json:"no_standard_descriptor_accessor,omitempty"` - // Is this message deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the message, or it will be completely ignored; in the very least, - // this is a formalization for deprecating messages. - Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"` - // Whether the message is an automatically generated map entry type for the - // maps field. - // - // For maps fields: - // map map_field = 1; - // The parsed descriptor looks like: - // message MapFieldEntry { - // option map_entry = true; - // optional KeyType key = 1; - // optional ValueType value = 2; - // } - // repeated MapFieldEntry map_field = 1; - // - // Implementations may choose not to generate the map_entry=true message, but - // use a native map in the target language to hold the keys and values. - // The reflection APIs in such implementations still need to work as - // if the field is a repeated message field. - // - // NOTE: Do not set the option in .proto files. Always use the maps syntax - // instead. The option should only be implicitly set by the proto compiler - // parser. - MapEntry *bool `protobuf:"varint,7,opt,name=map_entry,json=mapEntry" json:"map_entry,omitempty"` - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageOptions) Reset() { *m = MessageOptions{} } -func (m *MessageOptions) String() string { return proto.CompactTextString(m) } -func (*MessageOptions) ProtoMessage() {} -func (*MessageOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{11} -} - -var extRange_MessageOptions = []proto.ExtensionRange{ - {Start: 1000, End: 536870911}, -} - -func (*MessageOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_MessageOptions -} - -func (m *MessageOptions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageOptions.Unmarshal(m, b) -} -func (m *MessageOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageOptions.Marshal(b, m, deterministic) -} -func (m *MessageOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageOptions.Merge(m, src) -} -func (m *MessageOptions) XXX_Size() int { - return xxx_messageInfo_MessageOptions.Size(m) -} -func (m *MessageOptions) XXX_DiscardUnknown() { - xxx_messageInfo_MessageOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageOptions proto.InternalMessageInfo - -const Default_MessageOptions_MessageSetWireFormat bool = false -const Default_MessageOptions_NoStandardDescriptorAccessor bool = false -const Default_MessageOptions_Deprecated bool = false - -func (m *MessageOptions) GetMessageSetWireFormat() bool { - if m != nil && m.MessageSetWireFormat != nil { - return *m.MessageSetWireFormat - } - return Default_MessageOptions_MessageSetWireFormat -} - -func (m *MessageOptions) GetNoStandardDescriptorAccessor() bool { - if m != nil && m.NoStandardDescriptorAccessor != nil { - return *m.NoStandardDescriptorAccessor - } - return Default_MessageOptions_NoStandardDescriptorAccessor -} - -func (m *MessageOptions) GetDeprecated() bool { - if m != nil && m.Deprecated != nil { - return *m.Deprecated - } - return Default_MessageOptions_Deprecated -} - -func (m *MessageOptions) GetMapEntry() bool { - if m != nil && m.MapEntry != nil { - return *m.MapEntry - } - return false -} - -func (m *MessageOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -type FieldOptions struct { - // The ctype option instructs the C++ code generator to use a different - // representation of the field than it normally would. See the specific - // options below. This option is not yet implemented in the open source - // release -- sorry, we'll try to include it in a future version! - Ctype *FieldOptions_CType `protobuf:"varint,1,opt,name=ctype,enum=google.protobuf.FieldOptions_CType,def=0" json:"ctype,omitempty"` - // The packed option can be enabled for repeated primitive fields to enable - // a more efficient representation on the wire. Rather than repeatedly - // writing the tag and type for each element, the entire array is encoded as - // a single length-delimited blob. In proto3, only explicit setting it to - // false will avoid using packed encoding. - Packed *bool `protobuf:"varint,2,opt,name=packed" json:"packed,omitempty"` - // The jstype option determines the JavaScript type used for values of the - // field. The option is permitted only for 64 bit integral and fixed types - // (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - // is represented as JavaScript string, which avoids loss of precision that - // can happen when a large value is converted to a floating point JavaScript. - // Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - // use the JavaScript "number" type. The behavior of the default option - // JS_NORMAL is implementation dependent. - // - // This option is an enum to permit additional types to be added, e.g. - // goog.math.Integer. - Jstype *FieldOptions_JSType `protobuf:"varint,6,opt,name=jstype,enum=google.protobuf.FieldOptions_JSType,def=0" json:"jstype,omitempty"` - // Should this field be parsed lazily? Lazy applies only to message-type - // fields. It means that when the outer message is initially parsed, the - // inner message's contents will not be parsed but instead stored in encoded - // form. The inner message will actually be parsed when it is first accessed. - // - // This is only a hint. Implementations are free to choose whether to use - // eager or lazy parsing regardless of the value of this option. However, - // setting this option true suggests that the protocol author believes that - // using lazy parsing on this field is worth the additional bookkeeping - // overhead typically needed to implement it. - // - // This option does not affect the public interface of any generated code; - // all method signatures remain the same. Furthermore, thread-safety of the - // interface is not affected by this option; const methods remain safe to - // call from multiple threads concurrently, while non-const methods continue - // to require exclusive access. - // - // - // Note that implementations may choose not to check required fields within - // a lazy sub-message. That is, calling IsInitialized() on the outer message - // may return true even if the inner message has missing required fields. - // This is necessary because otherwise the inner message would have to be - // parsed in order to perform the check, defeating the purpose of lazy - // parsing. An implementation which chooses not to check required fields - // must be consistent about it. That is, for any particular sub-message, the - // implementation must either *always* check its required fields, or *never* - // check its required fields, regardless of whether or not the message has - // been parsed. - Lazy *bool `protobuf:"varint,5,opt,name=lazy,def=0" json:"lazy,omitempty"` - // Is this field deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for accessors, or it will be completely ignored; in the very least, this - // is a formalization for deprecating fields. - Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"` - // For Google-internal migration only. Do not use. - Weak *bool `protobuf:"varint,10,opt,name=weak,def=0" json:"weak,omitempty"` - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FieldOptions) Reset() { *m = FieldOptions{} } -func (m *FieldOptions) String() string { return proto.CompactTextString(m) } -func (*FieldOptions) ProtoMessage() {} -func (*FieldOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{12} -} - -var extRange_FieldOptions = []proto.ExtensionRange{ - {Start: 1000, End: 536870911}, -} - -func (*FieldOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_FieldOptions -} - -func (m *FieldOptions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FieldOptions.Unmarshal(m, b) -} -func (m *FieldOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FieldOptions.Marshal(b, m, deterministic) -} -func (m *FieldOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_FieldOptions.Merge(m, src) -} -func (m *FieldOptions) XXX_Size() int { - return xxx_messageInfo_FieldOptions.Size(m) -} -func (m *FieldOptions) XXX_DiscardUnknown() { - xxx_messageInfo_FieldOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_FieldOptions proto.InternalMessageInfo +var FieldDescriptorProto_Label_name = descriptorpb.FieldDescriptorProto_Label_name +var FieldDescriptorProto_Label_value = descriptorpb.FieldDescriptorProto_Label_value -const Default_FieldOptions_Ctype FieldOptions_CType = FieldOptions_STRING -const Default_FieldOptions_Jstype FieldOptions_JSType = FieldOptions_JS_NORMAL -const Default_FieldOptions_Lazy bool = false -const Default_FieldOptions_Deprecated bool = false -const Default_FieldOptions_Weak bool = false +type FileOptions_OptimizeMode = descriptorpb.FileOptions_OptimizeMode -func (m *FieldOptions) GetCtype() FieldOptions_CType { - if m != nil && m.Ctype != nil { - return *m.Ctype - } - return Default_FieldOptions_Ctype -} - -func (m *FieldOptions) GetPacked() bool { - if m != nil && m.Packed != nil { - return *m.Packed - } - return false -} - -func (m *FieldOptions) GetJstype() FieldOptions_JSType { - if m != nil && m.Jstype != nil { - return *m.Jstype - } - return Default_FieldOptions_Jstype -} - -func (m *FieldOptions) GetLazy() bool { - if m != nil && m.Lazy != nil { - return *m.Lazy - } - return Default_FieldOptions_Lazy -} - -func (m *FieldOptions) GetDeprecated() bool { - if m != nil && m.Deprecated != nil { - return *m.Deprecated - } - return Default_FieldOptions_Deprecated -} - -func (m *FieldOptions) GetWeak() bool { - if m != nil && m.Weak != nil { - return *m.Weak - } - return Default_FieldOptions_Weak -} - -func (m *FieldOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -type OneofOptions struct { - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OneofOptions) Reset() { *m = OneofOptions{} } -func (m *OneofOptions) String() string { return proto.CompactTextString(m) } -func (*OneofOptions) ProtoMessage() {} -func (*OneofOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{13} -} - -var extRange_OneofOptions = []proto.ExtensionRange{ - {Start: 1000, End: 536870911}, -} - -func (*OneofOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_OneofOptions -} - -func (m *OneofOptions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OneofOptions.Unmarshal(m, b) -} -func (m *OneofOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OneofOptions.Marshal(b, m, deterministic) -} -func (m *OneofOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_OneofOptions.Merge(m, src) -} -func (m *OneofOptions) XXX_Size() int { - return xxx_messageInfo_OneofOptions.Size(m) -} -func (m *OneofOptions) XXX_DiscardUnknown() { - xxx_messageInfo_OneofOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_OneofOptions proto.InternalMessageInfo - -func (m *OneofOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -type EnumOptions struct { - // Set this option to true to allow mapping different tag names to the same - // value. - AllowAlias *bool `protobuf:"varint,2,opt,name=allow_alias,json=allowAlias" json:"allow_alias,omitempty"` - // Is this enum deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the enum, or it will be completely ignored; in the very least, this - // is a formalization for deprecating enums. - Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"` - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EnumOptions) Reset() { *m = EnumOptions{} } -func (m *EnumOptions) String() string { return proto.CompactTextString(m) } -func (*EnumOptions) ProtoMessage() {} -func (*EnumOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{14} -} - -var extRange_EnumOptions = []proto.ExtensionRange{ - {Start: 1000, End: 536870911}, -} - -func (*EnumOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_EnumOptions -} - -func (m *EnumOptions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EnumOptions.Unmarshal(m, b) -} -func (m *EnumOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EnumOptions.Marshal(b, m, deterministic) -} -func (m *EnumOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_EnumOptions.Merge(m, src) -} -func (m *EnumOptions) XXX_Size() int { - return xxx_messageInfo_EnumOptions.Size(m) -} -func (m *EnumOptions) XXX_DiscardUnknown() { - xxx_messageInfo_EnumOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_EnumOptions proto.InternalMessageInfo - -const Default_EnumOptions_Deprecated bool = false - -func (m *EnumOptions) GetAllowAlias() bool { - if m != nil && m.AllowAlias != nil { - return *m.AllowAlias - } - return false -} - -func (m *EnumOptions) GetDeprecated() bool { - if m != nil && m.Deprecated != nil { - return *m.Deprecated - } - return Default_EnumOptions_Deprecated -} - -func (m *EnumOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -type EnumValueOptions struct { - // Is this enum value deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the enum value, or it will be completely ignored; in the very least, - // this is a formalization for deprecating enum values. - Deprecated *bool `protobuf:"varint,1,opt,name=deprecated,def=0" json:"deprecated,omitempty"` - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EnumValueOptions) Reset() { *m = EnumValueOptions{} } -func (m *EnumValueOptions) String() string { return proto.CompactTextString(m) } -func (*EnumValueOptions) ProtoMessage() {} -func (*EnumValueOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{15} -} - -var extRange_EnumValueOptions = []proto.ExtensionRange{ - {Start: 1000, End: 536870911}, -} - -func (*EnumValueOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_EnumValueOptions -} - -func (m *EnumValueOptions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EnumValueOptions.Unmarshal(m, b) -} -func (m *EnumValueOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EnumValueOptions.Marshal(b, m, deterministic) -} -func (m *EnumValueOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_EnumValueOptions.Merge(m, src) -} -func (m *EnumValueOptions) XXX_Size() int { - return xxx_messageInfo_EnumValueOptions.Size(m) -} -func (m *EnumValueOptions) XXX_DiscardUnknown() { - xxx_messageInfo_EnumValueOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_EnumValueOptions proto.InternalMessageInfo - -const Default_EnumValueOptions_Deprecated bool = false - -func (m *EnumValueOptions) GetDeprecated() bool { - if m != nil && m.Deprecated != nil { - return *m.Deprecated - } - return Default_EnumValueOptions_Deprecated -} - -func (m *EnumValueOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -type ServiceOptions struct { - // Is this service deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the service, or it will be completely ignored; in the very least, - // this is a formalization for deprecating services. - Deprecated *bool `protobuf:"varint,33,opt,name=deprecated,def=0" json:"deprecated,omitempty"` - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ServiceOptions) Reset() { *m = ServiceOptions{} } -func (m *ServiceOptions) String() string { return proto.CompactTextString(m) } -func (*ServiceOptions) ProtoMessage() {} -func (*ServiceOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{16} -} - -var extRange_ServiceOptions = []proto.ExtensionRange{ - {Start: 1000, End: 536870911}, -} - -func (*ServiceOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_ServiceOptions -} - -func (m *ServiceOptions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServiceOptions.Unmarshal(m, b) -} -func (m *ServiceOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServiceOptions.Marshal(b, m, deterministic) -} -func (m *ServiceOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceOptions.Merge(m, src) -} -func (m *ServiceOptions) XXX_Size() int { - return xxx_messageInfo_ServiceOptions.Size(m) -} -func (m *ServiceOptions) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceOptions proto.InternalMessageInfo - -const Default_ServiceOptions_Deprecated bool = false - -func (m *ServiceOptions) GetDeprecated() bool { - if m != nil && m.Deprecated != nil { - return *m.Deprecated - } - return Default_ServiceOptions_Deprecated -} - -func (m *ServiceOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -type MethodOptions struct { - // Is this method deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the method, or it will be completely ignored; in the very least, - // this is a formalization for deprecating methods. - Deprecated *bool `protobuf:"varint,33,opt,name=deprecated,def=0" json:"deprecated,omitempty"` - IdempotencyLevel *MethodOptions_IdempotencyLevel `protobuf:"varint,34,opt,name=idempotency_level,json=idempotencyLevel,enum=google.protobuf.MethodOptions_IdempotencyLevel,def=0" json:"idempotency_level,omitempty"` - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MethodOptions) Reset() { *m = MethodOptions{} } -func (m *MethodOptions) String() string { return proto.CompactTextString(m) } -func (*MethodOptions) ProtoMessage() {} -func (*MethodOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{17} -} - -var extRange_MethodOptions = []proto.ExtensionRange{ - {Start: 1000, End: 536870911}, -} - -func (*MethodOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_MethodOptions -} - -func (m *MethodOptions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MethodOptions.Unmarshal(m, b) -} -func (m *MethodOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MethodOptions.Marshal(b, m, deterministic) -} -func (m *MethodOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_MethodOptions.Merge(m, src) -} -func (m *MethodOptions) XXX_Size() int { - return xxx_messageInfo_MethodOptions.Size(m) -} -func (m *MethodOptions) XXX_DiscardUnknown() { - xxx_messageInfo_MethodOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_MethodOptions proto.InternalMessageInfo - -const Default_MethodOptions_Deprecated bool = false -const Default_MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel = MethodOptions_IDEMPOTENCY_UNKNOWN - -func (m *MethodOptions) GetDeprecated() bool { - if m != nil && m.Deprecated != nil { - return *m.Deprecated - } - return Default_MethodOptions_Deprecated -} - -func (m *MethodOptions) GetIdempotencyLevel() MethodOptions_IdempotencyLevel { - if m != nil && m.IdempotencyLevel != nil { - return *m.IdempotencyLevel - } - return Default_MethodOptions_IdempotencyLevel -} - -func (m *MethodOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -// A message representing a option the parser does not recognize. This only -// appears in options protos created by the compiler::Parser class. -// DescriptorPool resolves these when building Descriptor objects. Therefore, -// options protos in descriptor objects (e.g. returned by Descriptor::options(), -// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions -// in them. -type UninterpretedOption struct { - Name []*UninterpretedOption_NamePart `protobuf:"bytes,2,rep,name=name" json:"name,omitempty"` - // The value of the uninterpreted option, in whatever type the tokenizer - // identified it as during parsing. Exactly one of these should be set. - IdentifierValue *string `protobuf:"bytes,3,opt,name=identifier_value,json=identifierValue" json:"identifier_value,omitempty"` - PositiveIntValue *uint64 `protobuf:"varint,4,opt,name=positive_int_value,json=positiveIntValue" json:"positive_int_value,omitempty"` - NegativeIntValue *int64 `protobuf:"varint,5,opt,name=negative_int_value,json=negativeIntValue" json:"negative_int_value,omitempty"` - DoubleValue *float64 `protobuf:"fixed64,6,opt,name=double_value,json=doubleValue" json:"double_value,omitempty"` - StringValue []byte `protobuf:"bytes,7,opt,name=string_value,json=stringValue" json:"string_value,omitempty"` - AggregateValue *string `protobuf:"bytes,8,opt,name=aggregate_value,json=aggregateValue" json:"aggregate_value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UninterpretedOption) Reset() { *m = UninterpretedOption{} } -func (m *UninterpretedOption) String() string { return proto.CompactTextString(m) } -func (*UninterpretedOption) ProtoMessage() {} -func (*UninterpretedOption) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{18} -} - -func (m *UninterpretedOption) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UninterpretedOption.Unmarshal(m, b) -} -func (m *UninterpretedOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UninterpretedOption.Marshal(b, m, deterministic) -} -func (m *UninterpretedOption) XXX_Merge(src proto.Message) { - xxx_messageInfo_UninterpretedOption.Merge(m, src) -} -func (m *UninterpretedOption) XXX_Size() int { - return xxx_messageInfo_UninterpretedOption.Size(m) -} -func (m *UninterpretedOption) XXX_DiscardUnknown() { - xxx_messageInfo_UninterpretedOption.DiscardUnknown(m) -} - -var xxx_messageInfo_UninterpretedOption proto.InternalMessageInfo - -func (m *UninterpretedOption) GetName() []*UninterpretedOption_NamePart { - if m != nil { - return m.Name - } - return nil -} - -func (m *UninterpretedOption) GetIdentifierValue() string { - if m != nil && m.IdentifierValue != nil { - return *m.IdentifierValue - } - return "" -} - -func (m *UninterpretedOption) GetPositiveIntValue() uint64 { - if m != nil && m.PositiveIntValue != nil { - return *m.PositiveIntValue - } - return 0 -} - -func (m *UninterpretedOption) GetNegativeIntValue() int64 { - if m != nil && m.NegativeIntValue != nil { - return *m.NegativeIntValue - } - return 0 -} - -func (m *UninterpretedOption) GetDoubleValue() float64 { - if m != nil && m.DoubleValue != nil { - return *m.DoubleValue - } - return 0 -} - -func (m *UninterpretedOption) GetStringValue() []byte { - if m != nil { - return m.StringValue - } - return nil -} - -func (m *UninterpretedOption) GetAggregateValue() string { - if m != nil && m.AggregateValue != nil { - return *m.AggregateValue - } - return "" -} - -// The name of the uninterpreted option. Each string represents a segment in -// a dot-separated name. is_extension is true iff a segment represents an -// extension (denoted with parentheses in options specs in .proto files). -// E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents -// "foo.(bar.baz).qux". -type UninterpretedOption_NamePart struct { - NamePart *string `protobuf:"bytes,1,req,name=name_part,json=namePart" json:"name_part,omitempty"` - IsExtension *bool `protobuf:"varint,2,req,name=is_extension,json=isExtension" json:"is_extension,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UninterpretedOption_NamePart) Reset() { *m = UninterpretedOption_NamePart{} } -func (m *UninterpretedOption_NamePart) String() string { return proto.CompactTextString(m) } -func (*UninterpretedOption_NamePart) ProtoMessage() {} -func (*UninterpretedOption_NamePart) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{18, 0} -} - -func (m *UninterpretedOption_NamePart) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UninterpretedOption_NamePart.Unmarshal(m, b) -} -func (m *UninterpretedOption_NamePart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UninterpretedOption_NamePart.Marshal(b, m, deterministic) -} -func (m *UninterpretedOption_NamePart) XXX_Merge(src proto.Message) { - xxx_messageInfo_UninterpretedOption_NamePart.Merge(m, src) -} -func (m *UninterpretedOption_NamePart) XXX_Size() int { - return xxx_messageInfo_UninterpretedOption_NamePart.Size(m) -} -func (m *UninterpretedOption_NamePart) XXX_DiscardUnknown() { - xxx_messageInfo_UninterpretedOption_NamePart.DiscardUnknown(m) -} - -var xxx_messageInfo_UninterpretedOption_NamePart proto.InternalMessageInfo - -func (m *UninterpretedOption_NamePart) GetNamePart() string { - if m != nil && m.NamePart != nil { - return *m.NamePart - } - return "" -} - -func (m *UninterpretedOption_NamePart) GetIsExtension() bool { - if m != nil && m.IsExtension != nil { - return *m.IsExtension - } - return false -} - -// Encapsulates information about the original source file from which a -// FileDescriptorProto was generated. -type SourceCodeInfo struct { - // A Location identifies a piece of source code in a .proto file which - // corresponds to a particular definition. This information is intended - // to be useful to IDEs, code indexers, documentation generators, and similar - // tools. - // - // For example, say we have a file like: - // message Foo { - // optional string foo = 1; - // } - // Let's look at just the field definition: - // optional string foo = 1; - // ^ ^^ ^^ ^ ^^^ - // a bc de f ghi - // We have the following locations: - // span path represents - // [a,i) [ 4, 0, 2, 0 ] The whole field definition. - // [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - // [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - // [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - // [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - // - // Notes: - // - A location may refer to a repeated field itself (i.e. not to any - // particular index within it). This is used whenever a set of elements are - // logically enclosed in a single code segment. For example, an entire - // extend block (possibly containing multiple extension definitions) will - // have an outer location whose path refers to the "extensions" repeated - // field without an index. - // - Multiple locations may have the same path. This happens when a single - // logical declaration is spread out across multiple places. The most - // obvious example is the "extend" block again -- there may be multiple - // extend blocks in the same scope, each of which will have the same path. - // - A location's span is not always a subset of its parent's span. For - // example, the "extendee" of an extension declaration appears at the - // beginning of the "extend" block and is shared by all extensions within - // the block. - // - Just because a location's span is a subset of some other location's span - // does not mean that it is a descendant. For example, a "group" defines - // both a type and a field in a single declaration. Thus, the locations - // corresponding to the type and field and their components will overlap. - // - Code which tries to interpret locations should probably be designed to - // ignore those that it doesn't understand, as more types of locations could - // be recorded in the future. - Location []*SourceCodeInfo_Location `protobuf:"bytes,1,rep,name=location" json:"location,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SourceCodeInfo) Reset() { *m = SourceCodeInfo{} } -func (m *SourceCodeInfo) String() string { return proto.CompactTextString(m) } -func (*SourceCodeInfo) ProtoMessage() {} -func (*SourceCodeInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{19} -} - -func (m *SourceCodeInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SourceCodeInfo.Unmarshal(m, b) -} -func (m *SourceCodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SourceCodeInfo.Marshal(b, m, deterministic) -} -func (m *SourceCodeInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_SourceCodeInfo.Merge(m, src) -} -func (m *SourceCodeInfo) XXX_Size() int { - return xxx_messageInfo_SourceCodeInfo.Size(m) -} -func (m *SourceCodeInfo) XXX_DiscardUnknown() { - xxx_messageInfo_SourceCodeInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_SourceCodeInfo proto.InternalMessageInfo +const FileOptions_SPEED = descriptorpb.FileOptions_SPEED +const FileOptions_CODE_SIZE = descriptorpb.FileOptions_CODE_SIZE +const FileOptions_LITE_RUNTIME = descriptorpb.FileOptions_LITE_RUNTIME -func (m *SourceCodeInfo) GetLocation() []*SourceCodeInfo_Location { - if m != nil { - return m.Location - } - return nil -} - -type SourceCodeInfo_Location struct { - // Identifies which part of the FileDescriptorProto was defined at this - // location. - // - // Each element is a field number or an index. They form a path from - // the root FileDescriptorProto to the place where the definition. For - // example, this path: - // [ 4, 3, 2, 7, 1 ] - // refers to: - // file.message_type(3) // 4, 3 - // .field(7) // 2, 7 - // .name() // 1 - // This is because FileDescriptorProto.message_type has field number 4: - // repeated DescriptorProto message_type = 4; - // and DescriptorProto.field has field number 2: - // repeated FieldDescriptorProto field = 2; - // and FieldDescriptorProto.name has field number 1: - // optional string name = 1; - // - // Thus, the above path gives the location of a field name. If we removed - // the last element: - // [ 4, 3, 2, 7 ] - // this path refers to the whole field declaration (from the beginning - // of the label to the terminating semicolon). - Path []int32 `protobuf:"varint,1,rep,packed,name=path" json:"path,omitempty"` - // Always has exactly three or four elements: start line, start column, - // end line (optional, otherwise assumed same as start line), end column. - // These are packed into a single field for efficiency. Note that line - // and column numbers are zero-based -- typically you will want to add - // 1 to each before displaying to a user. - Span []int32 `protobuf:"varint,2,rep,packed,name=span" json:"span,omitempty"` - // If this SourceCodeInfo represents a complete declaration, these are any - // comments appearing before and after the declaration which appear to be - // attached to the declaration. - // - // A series of line comments appearing on consecutive lines, with no other - // tokens appearing on those lines, will be treated as a single comment. - // - // leading_detached_comments will keep paragraphs of comments that appear - // before (but not connected to) the current element. Each paragraph, - // separated by empty lines, will be one comment element in the repeated - // field. - // - // Only the comment content is provided; comment markers (e.g. //) are - // stripped out. For block comments, leading whitespace and an asterisk - // will be stripped from the beginning of each line other than the first. - // Newlines are included in the output. - // - // Examples: - // - // optional int32 foo = 1; // Comment attached to foo. - // // Comment attached to bar. - // optional int32 bar = 2; - // - // optional string baz = 3; - // // Comment attached to baz. - // // Another line attached to baz. - // - // // Comment attached to qux. - // // - // // Another line attached to qux. - // optional double qux = 4; - // - // // Detached comment for corge. This is not leading or trailing comments - // // to qux or corge because there are blank lines separating it from - // // both. - // - // // Detached comment for corge paragraph 2. - // - // optional string corge = 5; - // /* Block comment attached - // * to corge. Leading asterisks - // * will be removed. */ - // /* Block comment attached to - // * grault. */ - // optional int32 grault = 6; - // - // // ignored detached comments. - LeadingComments *string `protobuf:"bytes,3,opt,name=leading_comments,json=leadingComments" json:"leading_comments,omitempty"` - TrailingComments *string `protobuf:"bytes,4,opt,name=trailing_comments,json=trailingComments" json:"trailing_comments,omitempty"` - LeadingDetachedComments []string `protobuf:"bytes,6,rep,name=leading_detached_comments,json=leadingDetachedComments" json:"leading_detached_comments,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SourceCodeInfo_Location) Reset() { *m = SourceCodeInfo_Location{} } -func (m *SourceCodeInfo_Location) String() string { return proto.CompactTextString(m) } -func (*SourceCodeInfo_Location) ProtoMessage() {} -func (*SourceCodeInfo_Location) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{19, 0} -} - -func (m *SourceCodeInfo_Location) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SourceCodeInfo_Location.Unmarshal(m, b) -} -func (m *SourceCodeInfo_Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SourceCodeInfo_Location.Marshal(b, m, deterministic) -} -func (m *SourceCodeInfo_Location) XXX_Merge(src proto.Message) { - xxx_messageInfo_SourceCodeInfo_Location.Merge(m, src) -} -func (m *SourceCodeInfo_Location) XXX_Size() int { - return xxx_messageInfo_SourceCodeInfo_Location.Size(m) -} -func (m *SourceCodeInfo_Location) XXX_DiscardUnknown() { - xxx_messageInfo_SourceCodeInfo_Location.DiscardUnknown(m) -} - -var xxx_messageInfo_SourceCodeInfo_Location proto.InternalMessageInfo - -func (m *SourceCodeInfo_Location) GetPath() []int32 { - if m != nil { - return m.Path - } - return nil -} - -func (m *SourceCodeInfo_Location) GetSpan() []int32 { - if m != nil { - return m.Span - } - return nil -} - -func (m *SourceCodeInfo_Location) GetLeadingComments() string { - if m != nil && m.LeadingComments != nil { - return *m.LeadingComments - } - return "" -} - -func (m *SourceCodeInfo_Location) GetTrailingComments() string { - if m != nil && m.TrailingComments != nil { - return *m.TrailingComments - } - return "" -} - -func (m *SourceCodeInfo_Location) GetLeadingDetachedComments() []string { - if m != nil { - return m.LeadingDetachedComments - } - return nil -} - -// Describes the relationship between generated code and its original source -// file. A GeneratedCodeInfo message is associated with only one generated -// source file, but may contain references to different source .proto files. -type GeneratedCodeInfo struct { - // An Annotation connects some span of text in generated code to an element - // of its generating .proto file. - Annotation []*GeneratedCodeInfo_Annotation `protobuf:"bytes,1,rep,name=annotation" json:"annotation,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GeneratedCodeInfo) Reset() { *m = GeneratedCodeInfo{} } -func (m *GeneratedCodeInfo) String() string { return proto.CompactTextString(m) } -func (*GeneratedCodeInfo) ProtoMessage() {} -func (*GeneratedCodeInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{20} -} +var FileOptions_OptimizeMode_name = descriptorpb.FileOptions_OptimizeMode_name +var FileOptions_OptimizeMode_value = descriptorpb.FileOptions_OptimizeMode_value -func (m *GeneratedCodeInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GeneratedCodeInfo.Unmarshal(m, b) -} -func (m *GeneratedCodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GeneratedCodeInfo.Marshal(b, m, deterministic) -} -func (m *GeneratedCodeInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_GeneratedCodeInfo.Merge(m, src) -} -func (m *GeneratedCodeInfo) XXX_Size() int { - return xxx_messageInfo_GeneratedCodeInfo.Size(m) -} -func (m *GeneratedCodeInfo) XXX_DiscardUnknown() { - xxx_messageInfo_GeneratedCodeInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_GeneratedCodeInfo proto.InternalMessageInfo - -func (m *GeneratedCodeInfo) GetAnnotation() []*GeneratedCodeInfo_Annotation { - if m != nil { - return m.Annotation - } - return nil -} - -type GeneratedCodeInfo_Annotation struct { - // Identifies the element in the original source .proto file. This field - // is formatted the same as SourceCodeInfo.Location.path. - Path []int32 `protobuf:"varint,1,rep,packed,name=path" json:"path,omitempty"` - // Identifies the filesystem path to the original source .proto. - SourceFile *string `protobuf:"bytes,2,opt,name=source_file,json=sourceFile" json:"source_file,omitempty"` - // Identifies the starting offset in bytes in the generated code - // that relates to the identified object. - Begin *int32 `protobuf:"varint,3,opt,name=begin" json:"begin,omitempty"` - // Identifies the ending offset in bytes in the generated code that - // relates to the identified offset. The end offset should be one past - // the last relevant byte (so the length of the text = end - begin). - End *int32 `protobuf:"varint,4,opt,name=end" json:"end,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GeneratedCodeInfo_Annotation) Reset() { *m = GeneratedCodeInfo_Annotation{} } -func (m *GeneratedCodeInfo_Annotation) String() string { return proto.CompactTextString(m) } -func (*GeneratedCodeInfo_Annotation) ProtoMessage() {} -func (*GeneratedCodeInfo_Annotation) Descriptor() ([]byte, []int) { - return fileDescriptor_e5baabe45344a177, []int{20, 0} -} - -func (m *GeneratedCodeInfo_Annotation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GeneratedCodeInfo_Annotation.Unmarshal(m, b) -} -func (m *GeneratedCodeInfo_Annotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GeneratedCodeInfo_Annotation.Marshal(b, m, deterministic) -} -func (m *GeneratedCodeInfo_Annotation) XXX_Merge(src proto.Message) { - xxx_messageInfo_GeneratedCodeInfo_Annotation.Merge(m, src) -} -func (m *GeneratedCodeInfo_Annotation) XXX_Size() int { - return xxx_messageInfo_GeneratedCodeInfo_Annotation.Size(m) -} -func (m *GeneratedCodeInfo_Annotation) XXX_DiscardUnknown() { - xxx_messageInfo_GeneratedCodeInfo_Annotation.DiscardUnknown(m) -} - -var xxx_messageInfo_GeneratedCodeInfo_Annotation proto.InternalMessageInfo - -func (m *GeneratedCodeInfo_Annotation) GetPath() []int32 { - if m != nil { - return m.Path - } - return nil -} - -func (m *GeneratedCodeInfo_Annotation) GetSourceFile() string { - if m != nil && m.SourceFile != nil { - return *m.SourceFile - } - return "" -} +type FieldOptions_CType = descriptorpb.FieldOptions_CType -func (m *GeneratedCodeInfo_Annotation) GetBegin() int32 { - if m != nil && m.Begin != nil { - return *m.Begin - } - return 0 -} +const FieldOptions_STRING = descriptorpb.FieldOptions_STRING +const FieldOptions_CORD = descriptorpb.FieldOptions_CORD +const FieldOptions_STRING_PIECE = descriptorpb.FieldOptions_STRING_PIECE -func (m *GeneratedCodeInfo_Annotation) GetEnd() int32 { - if m != nil && m.End != nil { - return *m.End - } - return 0 -} +var FieldOptions_CType_name = descriptorpb.FieldOptions_CType_name +var FieldOptions_CType_value = descriptorpb.FieldOptions_CType_value + +type FieldOptions_JSType = descriptorpb.FieldOptions_JSType -func init() { - proto.RegisterEnum("google.protobuf.FieldDescriptorProto_Type", FieldDescriptorProto_Type_name, FieldDescriptorProto_Type_value) - proto.RegisterEnum("google.protobuf.FieldDescriptorProto_Label", FieldDescriptorProto_Label_name, FieldDescriptorProto_Label_value) - proto.RegisterEnum("google.protobuf.FileOptions_OptimizeMode", FileOptions_OptimizeMode_name, FileOptions_OptimizeMode_value) - proto.RegisterEnum("google.protobuf.FieldOptions_CType", FieldOptions_CType_name, FieldOptions_CType_value) - proto.RegisterEnum("google.protobuf.FieldOptions_JSType", FieldOptions_JSType_name, FieldOptions_JSType_value) - proto.RegisterEnum("google.protobuf.MethodOptions_IdempotencyLevel", MethodOptions_IdempotencyLevel_name, MethodOptions_IdempotencyLevel_value) - proto.RegisterType((*FileDescriptorSet)(nil), "google.protobuf.FileDescriptorSet") - proto.RegisterType((*FileDescriptorProto)(nil), "google.protobuf.FileDescriptorProto") - proto.RegisterType((*DescriptorProto)(nil), "google.protobuf.DescriptorProto") - proto.RegisterType((*DescriptorProto_ExtensionRange)(nil), "google.protobuf.DescriptorProto.ExtensionRange") - proto.RegisterType((*DescriptorProto_ReservedRange)(nil), "google.protobuf.DescriptorProto.ReservedRange") - proto.RegisterType((*ExtensionRangeOptions)(nil), "google.protobuf.ExtensionRangeOptions") - proto.RegisterType((*FieldDescriptorProto)(nil), "google.protobuf.FieldDescriptorProto") - proto.RegisterType((*OneofDescriptorProto)(nil), "google.protobuf.OneofDescriptorProto") - proto.RegisterType((*EnumDescriptorProto)(nil), "google.protobuf.EnumDescriptorProto") - proto.RegisterType((*EnumDescriptorProto_EnumReservedRange)(nil), "google.protobuf.EnumDescriptorProto.EnumReservedRange") - proto.RegisterType((*EnumValueDescriptorProto)(nil), "google.protobuf.EnumValueDescriptorProto") - proto.RegisterType((*ServiceDescriptorProto)(nil), "google.protobuf.ServiceDescriptorProto") - proto.RegisterType((*MethodDescriptorProto)(nil), "google.protobuf.MethodDescriptorProto") - proto.RegisterType((*FileOptions)(nil), "google.protobuf.FileOptions") - proto.RegisterType((*MessageOptions)(nil), "google.protobuf.MessageOptions") - proto.RegisterType((*FieldOptions)(nil), "google.protobuf.FieldOptions") - proto.RegisterType((*OneofOptions)(nil), "google.protobuf.OneofOptions") - proto.RegisterType((*EnumOptions)(nil), "google.protobuf.EnumOptions") - proto.RegisterType((*EnumValueOptions)(nil), "google.protobuf.EnumValueOptions") - proto.RegisterType((*ServiceOptions)(nil), "google.protobuf.ServiceOptions") - proto.RegisterType((*MethodOptions)(nil), "google.protobuf.MethodOptions") - proto.RegisterType((*UninterpretedOption)(nil), "google.protobuf.UninterpretedOption") - proto.RegisterType((*UninterpretedOption_NamePart)(nil), "google.protobuf.UninterpretedOption.NamePart") - proto.RegisterType((*SourceCodeInfo)(nil), "google.protobuf.SourceCodeInfo") - proto.RegisterType((*SourceCodeInfo_Location)(nil), "google.protobuf.SourceCodeInfo.Location") - proto.RegisterType((*GeneratedCodeInfo)(nil), "google.protobuf.GeneratedCodeInfo") - proto.RegisterType((*GeneratedCodeInfo_Annotation)(nil), "google.protobuf.GeneratedCodeInfo.Annotation") -} +const FieldOptions_JS_NORMAL = descriptorpb.FieldOptions_JS_NORMAL +const FieldOptions_JS_STRING = descriptorpb.FieldOptions_JS_STRING +const FieldOptions_JS_NUMBER = descriptorpb.FieldOptions_JS_NUMBER -func init() { - proto.RegisterFile("google/protobuf/descriptor.proto", fileDescriptor_e5baabe45344a177) -} +var FieldOptions_JSType_name = descriptorpb.FieldOptions_JSType_name +var FieldOptions_JSType_value = descriptorpb.FieldOptions_JSType_value + +type MethodOptions_IdempotencyLevel = descriptorpb.MethodOptions_IdempotencyLevel + +const MethodOptions_IDEMPOTENCY_UNKNOWN = descriptorpb.MethodOptions_IDEMPOTENCY_UNKNOWN +const MethodOptions_NO_SIDE_EFFECTS = descriptorpb.MethodOptions_NO_SIDE_EFFECTS +const MethodOptions_IDEMPOTENT = descriptorpb.MethodOptions_IDEMPOTENT + +var MethodOptions_IdempotencyLevel_name = descriptorpb.MethodOptions_IdempotencyLevel_name +var MethodOptions_IdempotencyLevel_value = descriptorpb.MethodOptions_IdempotencyLevel_value -var fileDescriptor_e5baabe45344a177 = []byte{ - // 2589 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0xdd, 0x8e, 0xdb, 0xc6, - 0x15, 0x0e, 0xf5, 0xb7, 0xd2, 0x91, 0x56, 0x3b, 0x3b, 0xbb, 0xb1, 0xe9, 0xcd, 0x8f, 0xd7, 0xca, - 0x8f, 0xd7, 0x4e, 0xac, 0x0d, 0x1c, 0xdb, 0x71, 0xd6, 0x45, 0x5a, 0xad, 0x44, 0x6f, 0xe4, 0xee, - 0x4a, 0x2a, 0xa5, 0x6d, 0x7e, 0x80, 0x82, 0x98, 0x25, 0x47, 0x12, 0x6d, 0x8a, 0x64, 0x48, 0xca, - 0xf6, 0x06, 0xbd, 0x30, 0xd0, 0xab, 0x5e, 0x15, 0xe8, 0x55, 0x51, 0x14, 0xbd, 0xe8, 0x4d, 0x80, - 0x3e, 0x40, 0x81, 0xde, 0xf5, 0x09, 0x0a, 0xe4, 0x0d, 0x8a, 0xb6, 0x40, 0xfb, 0x08, 0xbd, 0x2c, - 0x66, 0x86, 0xa4, 0x48, 0x49, 0x1b, 0x6f, 0x02, 0xc4, 0xb9, 0x92, 0xe6, 0x3b, 0xdf, 0x39, 0x73, - 0xe6, 0xcc, 0x99, 0x99, 0x33, 0x43, 0xd8, 0x1e, 0x39, 0xce, 0xc8, 0xa2, 0xbb, 0xae, 0xe7, 0x04, - 0xce, 0xc9, 0x74, 0xb8, 0x6b, 0x50, 0x5f, 0xf7, 0x4c, 0x37, 0x70, 0xbc, 0x3a, 0xc7, 0xf0, 0x9a, - 0x60, 0xd4, 0x23, 0x46, 0xed, 0x08, 0xd6, 0xef, 0x9b, 0x16, 0x6d, 0xc5, 0xc4, 0x3e, 0x0d, 0xf0, - 0x5d, 0xc8, 0x0d, 0x4d, 0x8b, 0xca, 0xd2, 0x76, 0x76, 0xa7, 0x7c, 0xf3, 0xcd, 0xfa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e5, 0x7f, 0xf4, 0x1b, 0x23, 0x6a, 0xdf, 0x18, 0x39, - 0x89, 0xaf, 0xa9, 0xf7, 0x66, 0x7f, 0xff, 0x27, 0x49, 0x7f, 0xca, 0x64, 0x0f, 0x7a, 0xfb, 0x7f, - 0xce, 0x6c, 0x1d, 0x88, 0xee, 0x7a, 0x51, 0x78, 0x54, 0x3a, 0xb4, 0xa8, 0xce, 0x86, 0xfc, 0xff, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x3e, 0xe8, 0xef, 0xc4, 0x9b, 0x1d, 0x00, 0x00, +type FileDescriptorSet = descriptorpb.FileDescriptorSet +type FileDescriptorProto = descriptorpb.FileDescriptorProto +type DescriptorProto = descriptorpb.DescriptorProto +type ExtensionRangeOptions = descriptorpb.ExtensionRangeOptions +type FieldDescriptorProto = descriptorpb.FieldDescriptorProto +type OneofDescriptorProto = descriptorpb.OneofDescriptorProto +type EnumDescriptorProto = descriptorpb.EnumDescriptorProto +type EnumValueDescriptorProto = descriptorpb.EnumValueDescriptorProto +type ServiceDescriptorProto = descriptorpb.ServiceDescriptorProto +type MethodDescriptorProto = descriptorpb.MethodDescriptorProto + +const Default_MethodDescriptorProto_ClientStreaming = descriptorpb.Default_MethodDescriptorProto_ClientStreaming +const Default_MethodDescriptorProto_ServerStreaming = descriptorpb.Default_MethodDescriptorProto_ServerStreaming + +type FileOptions = descriptorpb.FileOptions + +const Default_FileOptions_JavaMultipleFiles = descriptorpb.Default_FileOptions_JavaMultipleFiles +const Default_FileOptions_JavaStringCheckUtf8 = descriptorpb.Default_FileOptions_JavaStringCheckUtf8 +const Default_FileOptions_OptimizeFor = descriptorpb.Default_FileOptions_OptimizeFor +const Default_FileOptions_CcGenericServices = descriptorpb.Default_FileOptions_CcGenericServices +const Default_FileOptions_JavaGenericServices = descriptorpb.Default_FileOptions_JavaGenericServices +const Default_FileOptions_PyGenericServices = descriptorpb.Default_FileOptions_PyGenericServices +const Default_FileOptions_PhpGenericServices = descriptorpb.Default_FileOptions_PhpGenericServices +const Default_FileOptions_Deprecated = descriptorpb.Default_FileOptions_Deprecated +const Default_FileOptions_CcEnableArenas = descriptorpb.Default_FileOptions_CcEnableArenas + +type MessageOptions = descriptorpb.MessageOptions + +const Default_MessageOptions_MessageSetWireFormat = descriptorpb.Default_MessageOptions_MessageSetWireFormat +const Default_MessageOptions_NoStandardDescriptorAccessor = descriptorpb.Default_MessageOptions_NoStandardDescriptorAccessor +const Default_MessageOptions_Deprecated = descriptorpb.Default_MessageOptions_Deprecated + +type FieldOptions = descriptorpb.FieldOptions + +const Default_FieldOptions_Ctype = descriptorpb.Default_FieldOptions_Ctype +const Default_FieldOptions_Jstype = descriptorpb.Default_FieldOptions_Jstype +const Default_FieldOptions_Lazy = descriptorpb.Default_FieldOptions_Lazy +const Default_FieldOptions_Deprecated = descriptorpb.Default_FieldOptions_Deprecated +const Default_FieldOptions_Weak = descriptorpb.Default_FieldOptions_Weak + +type OneofOptions = descriptorpb.OneofOptions +type EnumOptions = descriptorpb.EnumOptions + +const Default_EnumOptions_Deprecated = descriptorpb.Default_EnumOptions_Deprecated + +type EnumValueOptions = descriptorpb.EnumValueOptions + +const Default_EnumValueOptions_Deprecated = descriptorpb.Default_EnumValueOptions_Deprecated + +type ServiceOptions = descriptorpb.ServiceOptions + +const Default_ServiceOptions_Deprecated = descriptorpb.Default_ServiceOptions_Deprecated + +type MethodOptions = descriptorpb.MethodOptions + +const Default_MethodOptions_Deprecated = descriptorpb.Default_MethodOptions_Deprecated +const Default_MethodOptions_IdempotencyLevel = descriptorpb.Default_MethodOptions_IdempotencyLevel + +type UninterpretedOption = descriptorpb.UninterpretedOption +type SourceCodeInfo = descriptorpb.SourceCodeInfo +type GeneratedCodeInfo = descriptorpb.GeneratedCodeInfo +type DescriptorProto_ExtensionRange = descriptorpb.DescriptorProto_ExtensionRange +type DescriptorProto_ReservedRange = descriptorpb.DescriptorProto_ReservedRange +type EnumDescriptorProto_EnumReservedRange = descriptorpb.EnumDescriptorProto_EnumReservedRange +type UninterpretedOption_NamePart = descriptorpb.UninterpretedOption_NamePart +type SourceCodeInfo_Location = descriptorpb.SourceCodeInfo_Location +type GeneratedCodeInfo_Annotation = descriptorpb.GeneratedCodeInfo_Annotation + +var File_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto protoreflect.FileDescriptor + +var file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_rawDesc = []byte{ + 0x0a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, + 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, + 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x3b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x00, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x32, +} + +var file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_goTypes = []interface{}{} +var file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_init() } +func file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_init() { + if File_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_goTypes, + DependencyIndexes: file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_depIdxs, + }.Build() + File_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto = out.File + file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_rawDesc = nil + file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_goTypes = nil + file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_depIdxs = nil } diff --git a/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.proto b/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.proto deleted file mode 100644 index a2102d7aa..000000000 --- a/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.proto +++ /dev/null @@ -1,885 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Author: kenton@google.com (Kenton Varda) -// Based on original Protocol Buffers design by -// Sanjay Ghemawat, Jeff Dean, and others. -// -// The messages in this file describe the definitions found in .proto files. -// A valid .proto file can be translated directly to a FileDescriptorProto -// without any other information (e.g. without reading its imports). - - -syntax = "proto2"; - -package google.protobuf; - -option go_package = "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "DescriptorProtos"; -option csharp_namespace = "Google.Protobuf.Reflection"; -option objc_class_prefix = "GPB"; -option cc_enable_arenas = true; - -// descriptor.proto must be optimized for speed because reflection-based -// algorithms don't work during bootstrapping. -option optimize_for = SPEED; - -// The protocol compiler can output a FileDescriptorSet containing the .proto -// files it parses. -message FileDescriptorSet { - repeated FileDescriptorProto file = 1; -} - -// Describes a complete .proto file. -message FileDescriptorProto { - optional string name = 1; // file name, relative to root of source tree - optional string package = 2; // e.g. "foo", "foo.bar", etc. - - // Names of files imported by this file. - repeated string dependency = 3; - // Indexes of the public imported files in the dependency list above. - repeated int32 public_dependency = 10; - // Indexes of the weak imported files in the dependency list. - // For Google-internal migration only. Do not use. - repeated int32 weak_dependency = 11; - - // All top-level definitions in this file. - repeated DescriptorProto message_type = 4; - repeated EnumDescriptorProto enum_type = 5; - repeated ServiceDescriptorProto service = 6; - repeated FieldDescriptorProto extension = 7; - - optional FileOptions options = 8; - - // This field contains optional information about the original source code. - // You may safely remove this entire field without harming runtime - // functionality of the descriptors -- the information is needed only by - // development tools. - optional SourceCodeInfo source_code_info = 9; - - // The syntax of the proto file. - // The supported values are "proto2" and "proto3". - optional string syntax = 12; -} - -// Describes a message type. -message DescriptorProto { - optional string name = 1; - - repeated FieldDescriptorProto field = 2; - repeated FieldDescriptorProto extension = 6; - - repeated DescriptorProto nested_type = 3; - repeated EnumDescriptorProto enum_type = 4; - - message ExtensionRange { - optional int32 start = 1; // Inclusive. - optional int32 end = 2; // Exclusive. - - optional ExtensionRangeOptions options = 3; - } - repeated ExtensionRange extension_range = 5; - - repeated OneofDescriptorProto oneof_decl = 8; - - optional MessageOptions options = 7; - - // Range of reserved tag numbers. Reserved tag numbers may not be used by - // fields or extension ranges in the same message. Reserved ranges may - // not overlap. - message ReservedRange { - optional int32 start = 1; // Inclusive. - optional int32 end = 2; // Exclusive. - } - repeated ReservedRange reserved_range = 9; - // Reserved field names, which may not be used by fields in the same message. - // A given name may only be reserved once. - repeated string reserved_name = 10; -} - -message ExtensionRangeOptions { - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -// Describes a field within a message. -message FieldDescriptorProto { - enum Type { - // 0 is reserved for errors. - // Order is weird for historical reasons. - TYPE_DOUBLE = 1; - TYPE_FLOAT = 2; - // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - // negative values are likely. - TYPE_INT64 = 3; - TYPE_UINT64 = 4; - // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - // negative values are likely. - TYPE_INT32 = 5; - TYPE_FIXED64 = 6; - TYPE_FIXED32 = 7; - TYPE_BOOL = 8; - TYPE_STRING = 9; - // Tag-delimited aggregate. - // Group type is deprecated and not supported in proto3. However, Proto3 - // implementations should still be able to parse the group wire format and - // treat group fields as unknown fields. - TYPE_GROUP = 10; - TYPE_MESSAGE = 11; // Length-delimited aggregate. - - // New in version 2. - TYPE_BYTES = 12; - TYPE_UINT32 = 13; - TYPE_ENUM = 14; - TYPE_SFIXED32 = 15; - TYPE_SFIXED64 = 16; - TYPE_SINT32 = 17; // Uses ZigZag encoding. - TYPE_SINT64 = 18; // Uses ZigZag encoding. - } - - enum Label { - // 0 is reserved for errors - LABEL_OPTIONAL = 1; - LABEL_REQUIRED = 2; - LABEL_REPEATED = 3; - } - - optional string name = 1; - optional int32 number = 3; - optional Label label = 4; - - // If type_name is set, this need not be set. If both this and type_name - // are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - optional Type type = 5; - - // For message and enum types, this is the name of the type. If the name - // starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - // rules are used to find the type (i.e. first the nested types within this - // message are searched, then within the parent, on up to the root - // namespace). - optional string type_name = 6; - - // For extensions, this is the name of the type being extended. It is - // resolved in the same manner as type_name. - optional string extendee = 2; - - // For numeric types, contains the original text representation of the value. - // For booleans, "true" or "false". - // For strings, contains the default text contents (not escaped in any way). - // For bytes, contains the C escaped value. All bytes >= 128 are escaped. - // TODO(kenton): Base-64 encode? - optional string default_value = 7; - - // If set, gives the index of a oneof in the containing type's oneof_decl - // list. This field is a member of that oneof. - optional int32 oneof_index = 9; - - // JSON name of this field. The value is set by protocol compiler. If the - // user has set a "json_name" option on this field, that option's value - // will be used. Otherwise, it's deduced from the field's name by converting - // it to camelCase. - optional string json_name = 10; - - optional FieldOptions options = 8; -} - -// Describes a oneof. -message OneofDescriptorProto { - optional string name = 1; - optional OneofOptions options = 2; -} - -// Describes an enum type. -message EnumDescriptorProto { - optional string name = 1; - - repeated EnumValueDescriptorProto value = 2; - - optional EnumOptions options = 3; - - // Range of reserved numeric values. Reserved values may not be used by - // entries in the same enum. Reserved ranges may not overlap. - // - // Note that this is distinct from DescriptorProto.ReservedRange in that it - // is inclusive such that it can appropriately represent the entire int32 - // domain. - message EnumReservedRange { - optional int32 start = 1; // Inclusive. - optional int32 end = 2; // Inclusive. - } - - // Range of reserved numeric values. Reserved numeric values may not be used - // by enum values in the same enum declaration. Reserved ranges may not - // overlap. - repeated EnumReservedRange reserved_range = 4; - - // Reserved enum value names, which may not be reused. A given name may only - // be reserved once. - repeated string reserved_name = 5; -} - -// Describes a value within an enum. -message EnumValueDescriptorProto { - optional string name = 1; - optional int32 number = 2; - - optional EnumValueOptions options = 3; -} - -// Describes a service. -message ServiceDescriptorProto { - optional string name = 1; - repeated MethodDescriptorProto method = 2; - - optional ServiceOptions options = 3; -} - -// Describes a method of a service. -message MethodDescriptorProto { - optional string name = 1; - - // Input and output type names. These are resolved in the same way as - // FieldDescriptorProto.type_name, but must refer to a message type. - optional string input_type = 2; - optional string output_type = 3; - - optional MethodOptions options = 4; - - // Identifies if client streams multiple client messages - optional bool client_streaming = 5 [default = false]; - // Identifies if server streams multiple server messages - optional bool server_streaming = 6 [default = false]; -} - - -// =================================================================== -// Options - -// Each of the definitions above may have "options" attached. These are -// just annotations which may cause code to be generated slightly differently -// or may contain hints for code that manipulates protocol messages. -// -// Clients may define custom options as extensions of the *Options messages. -// These extensions may not yet be known at parsing time, so the parser cannot -// store the values in them. Instead it stores them in a field in the *Options -// message called uninterpreted_option. This field must have the same name -// across all *Options messages. We then use this field to populate the -// extensions when we build a descriptor, at which point all protos have been -// parsed and so all extensions are known. -// -// Extension numbers for custom options may be chosen as follows: -// * For options which will only be used within a single application or -// organization, or for experimental options, use field numbers 50000 -// through 99999. It is up to you to ensure that you do not use the -// same number for multiple options. -// * For options which will be published and used publicly by multiple -// independent entities, e-mail protobuf-global-extension-registry@google.com -// to reserve extension numbers. Simply provide your project name (e.g. -// Objective-C plugin) and your project website (if available) -- there's no -// need to explain how you intend to use them. Usually you only need one -// extension number. You can declare multiple options with only one extension -// number by putting them in a sub-message. See the Custom Options section of -// the docs for examples: -// https://developers.google.com/protocol-buffers/docs/proto#options -// If this turns out to be popular, a web service will be set up -// to automatically assign option numbers. - -message FileOptions { - - // Sets the Java package where classes generated from this .proto will be - // placed. By default, the proto package is used, but this is often - // inappropriate because proto packages do not normally start with backwards - // domain names. - optional string java_package = 1; - - - // If set, all the classes from the .proto file are wrapped in a single - // outer class with the given name. This applies to both Proto1 - // (equivalent to the old "--one_java_file" option) and Proto2 (where - // a .proto always translates to a single class, but you may want to - // explicitly choose the class name). - optional string java_outer_classname = 8; - - // If set true, then the Java code generator will generate a separate .java - // file for each top-level message, enum, and service defined in the .proto - // file. Thus, these types will *not* be nested inside the outer class - // named by java_outer_classname. However, the outer class will still be - // generated to contain the file's getDescriptor() method as well as any - // top-level extensions defined in the file. - optional bool java_multiple_files = 10 [default = false]; - - // This option does nothing. - optional bool java_generate_equals_and_hash = 20 [deprecated=true]; - - // If set true, then the Java2 code generator will generate code that - // throws an exception whenever an attempt is made to assign a non-UTF-8 - // byte sequence to a string field. - // Message reflection will do the same. - // However, an extension field still accepts non-UTF-8 byte sequences. - // This option has no effect on when used with the lite runtime. - optional bool java_string_check_utf8 = 27 [default = false]; - - - // Generated classes can be optimized for speed or code size. - enum OptimizeMode { - SPEED = 1; // Generate complete code for parsing, serialization, - // etc. - CODE_SIZE = 2; // Use ReflectionOps to implement these methods. - LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime. - } - optional OptimizeMode optimize_for = 9 [default = SPEED]; - - // Sets the Go package where structs generated from this .proto will be - // placed. If omitted, the Go package will be derived from the following: - // - The basename of the package import path, if provided. - // - Otherwise, the package statement in the .proto file, if present. - // - Otherwise, the basename of the .proto file, without extension. - optional string go_package = 11; - - - - - // Should generic services be generated in each language? "Generic" services - // are not specific to any particular RPC system. They are generated by the - // main code generators in each language (without additional plugins). - // Generic services were the only kind of service generation supported by - // early versions of google.protobuf. - // - // Generic services are now considered deprecated in favor of using plugins - // that generate code specific to your particular RPC system. Therefore, - // these default to false. Old code which depends on generic services should - // explicitly set them to true. - optional bool cc_generic_services = 16 [default = false]; - optional bool java_generic_services = 17 [default = false]; - optional bool py_generic_services = 18 [default = false]; - optional bool php_generic_services = 42 [default = false]; - - // Is this file deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for everything in the file, or it will be completely ignored; in the very - // least, this is a formalization for deprecating files. - optional bool deprecated = 23 [default = false]; - - // Enables the use of arenas for the proto messages in this file. This applies - // only to generated classes for C++. - optional bool cc_enable_arenas = 31 [default = false]; - - - // Sets the objective c class prefix which is prepended to all objective c - // generated classes from this .proto. There is no default. - optional string objc_class_prefix = 36; - - // Namespace for generated classes; defaults to the package. - optional string csharp_namespace = 37; - - // By default Swift generators will take the proto package and CamelCase it - // replacing '.' with underscore and use that to prefix the types/symbols - // defined. When this options is provided, they will use this value instead - // to prefix the types/symbols defined. - optional string swift_prefix = 39; - - // Sets the php class prefix which is prepended to all php generated classes - // from this .proto. Default is empty. - optional string php_class_prefix = 40; - - // Use this option to change the namespace of php generated classes. Default - // is empty. When this option is empty, the package name will be used for - // determining the namespace. - optional string php_namespace = 41; - - // Use this option to change the namespace of php generated metadata classes. - // Default is empty. When this option is empty, the proto file name will be - // used for determining the namespace. - optional string php_metadata_namespace = 44; - - // Use this option to change the package of ruby generated classes. Default - // is empty. When this option is not set, the package name will be used for - // determining the ruby package. - optional string ruby_package = 45; - - - // The parser stores options it doesn't recognize here. - // See the documentation for the "Options" section above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. - // See the documentation for the "Options" section above. - extensions 1000 to max; - - reserved 38; -} - -message MessageOptions { - // Set true to use the old proto1 MessageSet wire format for extensions. - // This is provided for backwards-compatibility with the MessageSet wire - // format. You should not use this for any other reason: It's less - // efficient, has fewer features, and is more complicated. - // - // The message must be defined exactly as follows: - // message Foo { - // option message_set_wire_format = true; - // extensions 4 to max; - // } - // Note that the message cannot have any defined fields; MessageSets only - // have extensions. - // - // All extensions of your type must be singular messages; e.g. they cannot - // be int32s, enums, or repeated messages. - // - // Because this is an option, the above two restrictions are not enforced by - // the protocol compiler. - optional bool message_set_wire_format = 1 [default = false]; - - // Disables the generation of the standard "descriptor()" accessor, which can - // conflict with a field of the same name. This is meant to make migration - // from proto1 easier; new code should avoid fields named "descriptor". - optional bool no_standard_descriptor_accessor = 2 [default = false]; - - // Is this message deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the message, or it will be completely ignored; in the very least, - // this is a formalization for deprecating messages. - optional bool deprecated = 3 [default = false]; - - // Whether the message is an automatically generated map entry type for the - // maps field. - // - // For maps fields: - // map map_field = 1; - // The parsed descriptor looks like: - // message MapFieldEntry { - // option map_entry = true; - // optional KeyType key = 1; - // optional ValueType value = 2; - // } - // repeated MapFieldEntry map_field = 1; - // - // Implementations may choose not to generate the map_entry=true message, but - // use a native map in the target language to hold the keys and values. - // The reflection APIs in such implementations still need to work as - // if the field is a repeated message field. - // - // NOTE: Do not set the option in .proto files. Always use the maps syntax - // instead. The option should only be implicitly set by the proto compiler - // parser. - optional bool map_entry = 7; - - reserved 8; // javalite_serializable - reserved 9; // javanano_as_lite - - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message FieldOptions { - // The ctype option instructs the C++ code generator to use a different - // representation of the field than it normally would. See the specific - // options below. This option is not yet implemented in the open source - // release -- sorry, we'll try to include it in a future version! - optional CType ctype = 1 [default = STRING]; - enum CType { - // Default mode. - STRING = 0; - - CORD = 1; - - STRING_PIECE = 2; - } - // The packed option can be enabled for repeated primitive fields to enable - // a more efficient representation on the wire. Rather than repeatedly - // writing the tag and type for each element, the entire array is encoded as - // a single length-delimited blob. In proto3, only explicit setting it to - // false will avoid using packed encoding. - optional bool packed = 2; - - // The jstype option determines the JavaScript type used for values of the - // field. The option is permitted only for 64 bit integral and fixed types - // (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - // is represented as JavaScript string, which avoids loss of precision that - // can happen when a large value is converted to a floating point JavaScript. - // Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - // use the JavaScript "number" type. The behavior of the default option - // JS_NORMAL is implementation dependent. - // - // This option is an enum to permit additional types to be added, e.g. - // goog.math.Integer. - optional JSType jstype = 6 [default = JS_NORMAL]; - enum JSType { - // Use the default type. - JS_NORMAL = 0; - - // Use JavaScript strings. - JS_STRING = 1; - - // Use JavaScript numbers. - JS_NUMBER = 2; - } - - // Should this field be parsed lazily? Lazy applies only to message-type - // fields. It means that when the outer message is initially parsed, the - // inner message's contents will not be parsed but instead stored in encoded - // form. The inner message will actually be parsed when it is first accessed. - // - // This is only a hint. Implementations are free to choose whether to use - // eager or lazy parsing regardless of the value of this option. However, - // setting this option true suggests that the protocol author believes that - // using lazy parsing on this field is worth the additional bookkeeping - // overhead typically needed to implement it. - // - // This option does not affect the public interface of any generated code; - // all method signatures remain the same. Furthermore, thread-safety of the - // interface is not affected by this option; const methods remain safe to - // call from multiple threads concurrently, while non-const methods continue - // to require exclusive access. - // - // - // Note that implementations may choose not to check required fields within - // a lazy sub-message. That is, calling IsInitialized() on the outer message - // may return true even if the inner message has missing required fields. - // This is necessary because otherwise the inner message would have to be - // parsed in order to perform the check, defeating the purpose of lazy - // parsing. An implementation which chooses not to check required fields - // must be consistent about it. That is, for any particular sub-message, the - // implementation must either *always* check its required fields, or *never* - // check its required fields, regardless of whether or not the message has - // been parsed. - optional bool lazy = 5 [default = false]; - - // Is this field deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for accessors, or it will be completely ignored; in the very least, this - // is a formalization for deprecating fields. - optional bool deprecated = 3 [default = false]; - - // For Google-internal migration only. Do not use. - optional bool weak = 10 [default = false]; - - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; - - reserved 4; // removed jtype -} - -message OneofOptions { - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message EnumOptions { - - // Set this option to true to allow mapping different tag names to the same - // value. - optional bool allow_alias = 2; - - // Is this enum deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the enum, or it will be completely ignored; in the very least, this - // is a formalization for deprecating enums. - optional bool deprecated = 3 [default = false]; - - reserved 5; // javanano_as_lite - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message EnumValueOptions { - // Is this enum value deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the enum value, or it will be completely ignored; in the very least, - // this is a formalization for deprecating enum values. - optional bool deprecated = 1 [default = false]; - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message ServiceOptions { - - // Note: Field numbers 1 through 32 are reserved for Google's internal RPC - // framework. We apologize for hoarding these numbers to ourselves, but - // we were already using them long before we decided to release Protocol - // Buffers. - - // Is this service deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the service, or it will be completely ignored; in the very least, - // this is a formalization for deprecating services. - optional bool deprecated = 33 [default = false]; - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message MethodOptions { - - // Note: Field numbers 1 through 32 are reserved for Google's internal RPC - // framework. We apologize for hoarding these numbers to ourselves, but - // we were already using them long before we decided to release Protocol - // Buffers. - - // Is this method deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the method, or it will be completely ignored; in the very least, - // this is a formalization for deprecating methods. - optional bool deprecated = 33 [default = false]; - - // Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - // or neither? HTTP based RPC implementation may choose GET verb for safe - // methods, and PUT verb for idempotent methods instead of the default POST. - enum IdempotencyLevel { - IDEMPOTENCY_UNKNOWN = 0; - NO_SIDE_EFFECTS = 1; // implies idempotent - IDEMPOTENT = 2; // idempotent, but may have side effects - } - optional IdempotencyLevel idempotency_level = 34 - [default = IDEMPOTENCY_UNKNOWN]; - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - - -// A message representing a option the parser does not recognize. This only -// appears in options protos created by the compiler::Parser class. -// DescriptorPool resolves these when building Descriptor objects. Therefore, -// options protos in descriptor objects (e.g. returned by Descriptor::options(), -// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions -// in them. -message UninterpretedOption { - // The name of the uninterpreted option. Each string represents a segment in - // a dot-separated name. is_extension is true iff a segment represents an - // extension (denoted with parentheses in options specs in .proto files). - // E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - // "foo.(bar.baz).qux". - message NamePart { - required string name_part = 1; - required bool is_extension = 2; - } - repeated NamePart name = 2; - - // The value of the uninterpreted option, in whatever type the tokenizer - // identified it as during parsing. Exactly one of these should be set. - optional string identifier_value = 3; - optional uint64 positive_int_value = 4; - optional int64 negative_int_value = 5; - optional double double_value = 6; - optional bytes string_value = 7; - optional string aggregate_value = 8; -} - -// =================================================================== -// Optional source code info - -// Encapsulates information about the original source file from which a -// FileDescriptorProto was generated. -message SourceCodeInfo { - // A Location identifies a piece of source code in a .proto file which - // corresponds to a particular definition. This information is intended - // to be useful to IDEs, code indexers, documentation generators, and similar - // tools. - // - // For example, say we have a file like: - // message Foo { - // optional string foo = 1; - // } - // Let's look at just the field definition: - // optional string foo = 1; - // ^ ^^ ^^ ^ ^^^ - // a bc de f ghi - // We have the following locations: - // span path represents - // [a,i) [ 4, 0, 2, 0 ] The whole field definition. - // [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - // [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - // [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - // [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - // - // Notes: - // - A location may refer to a repeated field itself (i.e. not to any - // particular index within it). This is used whenever a set of elements are - // logically enclosed in a single code segment. For example, an entire - // extend block (possibly containing multiple extension definitions) will - // have an outer location whose path refers to the "extensions" repeated - // field without an index. - // - Multiple locations may have the same path. This happens when a single - // logical declaration is spread out across multiple places. The most - // obvious example is the "extend" block again -- there may be multiple - // extend blocks in the same scope, each of which will have the same path. - // - A location's span is not always a subset of its parent's span. For - // example, the "extendee" of an extension declaration appears at the - // beginning of the "extend" block and is shared by all extensions within - // the block. - // - Just because a location's span is a subset of some other location's span - // does not mean that it is a descendant. For example, a "group" defines - // both a type and a field in a single declaration. Thus, the locations - // corresponding to the type and field and their components will overlap. - // - Code which tries to interpret locations should probably be designed to - // ignore those that it doesn't understand, as more types of locations could - // be recorded in the future. - repeated Location location = 1; - message Location { - // Identifies which part of the FileDescriptorProto was defined at this - // location. - // - // Each element is a field number or an index. They form a path from - // the root FileDescriptorProto to the place where the definition. For - // example, this path: - // [ 4, 3, 2, 7, 1 ] - // refers to: - // file.message_type(3) // 4, 3 - // .field(7) // 2, 7 - // .name() // 1 - // This is because FileDescriptorProto.message_type has field number 4: - // repeated DescriptorProto message_type = 4; - // and DescriptorProto.field has field number 2: - // repeated FieldDescriptorProto field = 2; - // and FieldDescriptorProto.name has field number 1: - // optional string name = 1; - // - // Thus, the above path gives the location of a field name. If we removed - // the last element: - // [ 4, 3, 2, 7 ] - // this path refers to the whole field declaration (from the beginning - // of the label to the terminating semicolon). - repeated int32 path = 1 [packed = true]; - - // Always has exactly three or four elements: start line, start column, - // end line (optional, otherwise assumed same as start line), end column. - // These are packed into a single field for efficiency. Note that line - // and column numbers are zero-based -- typically you will want to add - // 1 to each before displaying to a user. - repeated int32 span = 2 [packed = true]; - - // If this SourceCodeInfo represents a complete declaration, these are any - // comments appearing before and after the declaration which appear to be - // attached to the declaration. - // - // A series of line comments appearing on consecutive lines, with no other - // tokens appearing on those lines, will be treated as a single comment. - // - // leading_detached_comments will keep paragraphs of comments that appear - // before (but not connected to) the current element. Each paragraph, - // separated by empty lines, will be one comment element in the repeated - // field. - // - // Only the comment content is provided; comment markers (e.g. //) are - // stripped out. For block comments, leading whitespace and an asterisk - // will be stripped from the beginning of each line other than the first. - // Newlines are included in the output. - // - // Examples: - // - // optional int32 foo = 1; // Comment attached to foo. - // // Comment attached to bar. - // optional int32 bar = 2; - // - // optional string baz = 3; - // // Comment attached to baz. - // // Another line attached to baz. - // - // // Comment attached to qux. - // // - // // Another line attached to qux. - // optional double qux = 4; - // - // // Detached comment for corge. This is not leading or trailing comments - // // to qux or corge because there are blank lines separating it from - // // both. - // - // // Detached comment for corge paragraph 2. - // - // optional string corge = 5; - // /* Block comment attached - // * to corge. Leading asterisks - // * will be removed. */ - // /* Block comment attached to - // * grault. */ - // optional int32 grault = 6; - // - // // ignored detached comments. - optional string leading_comments = 3; - optional string trailing_comments = 4; - repeated string leading_detached_comments = 6; - } -} - -// Describes the relationship between generated code and its original source -// file. A GeneratedCodeInfo message is associated with only one generated -// source file, but may contain references to different source .proto files. -message GeneratedCodeInfo { - // An Annotation connects some span of text in generated code to an element - // of its generating .proto file. - repeated Annotation annotation = 1; - message Annotation { - // Identifies the element in the original source .proto file. This field - // is formatted the same as SourceCodeInfo.Location.path. - repeated int32 path = 1 [packed = true]; - - // Identifies the filesystem path to the original source .proto. - optional string source_file = 2; - - // Identifies the starting offset in bytes in the generated code - // that relates to the identified object. - optional int32 begin = 3; - - // Identifies the ending offset in bytes in the generated code that - // relates to the identified offset. The end offset should be one past - // the last relevant byte (so the length of the text = end - begin). - optional int32 end = 4; - } -} diff --git a/vendor/github.com/golang/protobuf/protoc-gen-go/doc.go b/vendor/github.com/golang/protobuf/protoc-gen-go/doc.go deleted file mode 100644 index 0d6055d61..000000000 --- a/vendor/github.com/golang/protobuf/protoc-gen-go/doc.go +++ /dev/null @@ -1,51 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -/* - A plugin for the Google protocol buffer compiler to generate Go code. - Run it by building this program and putting it in your path with the name - protoc-gen-go - That word 'go' at the end becomes part of the option string set for the - protocol compiler, so once the protocol compiler (protoc) is installed - you can run - protoc --go_out=output_directory input_directory/file.proto - to generate Go bindings for the protocol defined by file.proto. - With that input, the output will be written to - output_directory/file.pb.go - - The generated code is documented in the package comment for - the library. - - See the README and documentation for protocol buffers to learn more: - https://developers.google.com/protocol-buffers/ - -*/ -package documentation diff --git a/vendor/github.com/golang/protobuf/protoc-gen-go/generator/generator.go b/vendor/github.com/golang/protobuf/protoc-gen-go/generator/generator.go deleted file mode 100644 index 63b8ca0ee..000000000 --- a/vendor/github.com/golang/protobuf/protoc-gen-go/generator/generator.go +++ /dev/null @@ -1,2808 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -/* - The code generator for the plugin for the Google protocol buffer compiler. - It generates Go code from the protocol buffer description files read by the - main routine. -*/ -package generator - -import ( - "bufio" - "bytes" - "compress/gzip" - "crypto/sha256" - "encoding/hex" - "fmt" - "go/ast" - "go/build" - "go/parser" - "go/printer" - "go/token" - "log" - "os" - "path" - "sort" - "strconv" - "strings" - "unicode" - "unicode/utf8" - - "github.com/golang/protobuf/proto" - "github.com/golang/protobuf/protoc-gen-go/generator/internal/remap" - - "github.com/golang/protobuf/protoc-gen-go/descriptor" - plugin "github.com/golang/protobuf/protoc-gen-go/plugin" -) - -// generatedCodeVersion indicates a version of the generated code. -// It is incremented whenever an incompatibility between the generated code and -// proto package is introduced; the generated code references -// a constant, proto.ProtoPackageIsVersionN (where N is generatedCodeVersion). -const generatedCodeVersion = 3 - -// A Plugin provides functionality to add to the output during Go code generation, -// such as to produce RPC stubs. -type Plugin interface { - // Name identifies the plugin. - Name() string - // Init is called once after data structures are built but before - // code generation begins. - Init(g *Generator) - // Generate produces the code generated by the plugin for this file, - // except for the imports, by calling the generator's methods P, In, and Out. - Generate(file *FileDescriptor) - // GenerateImports produces the import declarations for this file. - // It is called after Generate. - GenerateImports(file *FileDescriptor) -} - -var plugins []Plugin - -// RegisterPlugin installs a (second-order) plugin to be run when the Go output is generated. -// It is typically called during initialization. -func RegisterPlugin(p Plugin) { - plugins = append(plugins, p) -} - -// A GoImportPath is the import path of a Go package. e.g., "google.golang.org/genproto/protobuf". -type GoImportPath string - -func (p GoImportPath) String() string { return strconv.Quote(string(p)) } - -// A GoPackageName is the name of a Go package. e.g., "protobuf". -type GoPackageName string - -// Each type we import as a protocol buffer (other than FileDescriptorProto) needs -// a pointer to the FileDescriptorProto that represents it. These types achieve that -// wrapping by placing each Proto inside a struct with the pointer to its File. The -// structs have the same names as their contents, with "Proto" removed. -// FileDescriptor is used to store the things that it points to. - -// The file and package name method are common to messages and enums. -type common struct { - file *FileDescriptor // File this object comes from. -} - -// GoImportPath is the import path of the Go package containing the type. -func (c *common) GoImportPath() GoImportPath { - return c.file.importPath -} - -func (c *common) File() *FileDescriptor { return c.file } - -func fileIsProto3(file *descriptor.FileDescriptorProto) bool { - return file.GetSyntax() == "proto3" -} - -func (c *common) proto3() bool { return fileIsProto3(c.file.FileDescriptorProto) } - -// Descriptor represents a protocol buffer message. -type Descriptor struct { - common - *descriptor.DescriptorProto - parent *Descriptor // The containing message, if any. - nested []*Descriptor // Inner messages, if any. - enums []*EnumDescriptor // Inner enums, if any. - ext []*ExtensionDescriptor // Extensions, if any. - typename []string // Cached typename vector. - index int // The index into the container, whether the file or another message. - path string // The SourceCodeInfo path as comma-separated integers. - group bool -} - -// TypeName returns the elements of the dotted type name. -// The package name is not part of this name. -func (d *Descriptor) TypeName() []string { - if d.typename != nil { - return d.typename - } - n := 0 - for parent := d; parent != nil; parent = parent.parent { - n++ - } - s := make([]string, n) - for parent := d; parent != nil; parent = parent.parent { - n-- - s[n] = parent.GetName() - } - d.typename = s - return s -} - -// EnumDescriptor describes an enum. If it's at top level, its parent will be nil. -// Otherwise it will be the descriptor of the message in which it is defined. -type EnumDescriptor struct { - common - *descriptor.EnumDescriptorProto - parent *Descriptor // The containing message, if any. - typename []string // Cached typename vector. - index int // The index into the container, whether the file or a message. - path string // The SourceCodeInfo path as comma-separated integers. -} - -// TypeName returns the elements of the dotted type name. -// The package name is not part of this name. -func (e *EnumDescriptor) TypeName() (s []string) { - if e.typename != nil { - return e.typename - } - name := e.GetName() - if e.parent == nil { - s = make([]string, 1) - } else { - pname := e.parent.TypeName() - s = make([]string, len(pname)+1) - copy(s, pname) - } - s[len(s)-1] = name - e.typename = s - return s -} - -// Everything but the last element of the full type name, CamelCased. -// The values of type Foo.Bar are call Foo_value1... not Foo_Bar_value1... . -func (e *EnumDescriptor) prefix() string { - if e.parent == nil { - // If the enum is not part of a message, the prefix is just the type name. - return CamelCase(*e.Name) + "_" - } - typeName := e.TypeName() - return CamelCaseSlice(typeName[0:len(typeName)-1]) + "_" -} - -// The integer value of the named constant in this enumerated type. -func (e *EnumDescriptor) integerValueAsString(name string) string { - for _, c := range e.Value { - if c.GetName() == name { - return fmt.Sprint(c.GetNumber()) - } - } - log.Fatal("cannot find value for enum constant") - return "" -} - -// ExtensionDescriptor describes an extension. If it's at top level, its parent will be nil. -// Otherwise it will be the descriptor of the message in which it is defined. -type ExtensionDescriptor struct { - common - *descriptor.FieldDescriptorProto - parent *Descriptor // The containing message, if any. -} - -// TypeName returns the elements of the dotted type name. -// The package name is not part of this name. -func (e *ExtensionDescriptor) TypeName() (s []string) { - name := e.GetName() - if e.parent == nil { - // top-level extension - s = make([]string, 1) - } else { - pname := e.parent.TypeName() - s = make([]string, len(pname)+1) - copy(s, pname) - } - s[len(s)-1] = name - return s -} - -// DescName returns the variable name used for the generated descriptor. -func (e *ExtensionDescriptor) DescName() string { - // The full type name. - typeName := e.TypeName() - // Each scope of the extension is individually CamelCased, and all are joined with "_" with an "E_" prefix. - for i, s := range typeName { - typeName[i] = CamelCase(s) - } - return "E_" + strings.Join(typeName, "_") -} - -// ImportedDescriptor describes a type that has been publicly imported from another file. -type ImportedDescriptor struct { - common - o Object -} - -func (id *ImportedDescriptor) TypeName() []string { return id.o.TypeName() } - -// FileDescriptor describes an protocol buffer descriptor file (.proto). -// It includes slices of all the messages and enums defined within it. -// Those slices are constructed by WrapTypes. -type FileDescriptor struct { - *descriptor.FileDescriptorProto - desc []*Descriptor // All the messages defined in this file. - enum []*EnumDescriptor // All the enums defined in this file. - ext []*ExtensionDescriptor // All the top-level extensions defined in this file. - imp []*ImportedDescriptor // All types defined in files publicly imported by this file. - - // Comments, stored as a map of path (comma-separated integers) to the comment. - comments map[string]*descriptor.SourceCodeInfo_Location - - // The full list of symbols that are exported, - // as a map from the exported object to its symbols. - // This is used for supporting public imports. - exported map[Object][]symbol - - importPath GoImportPath // Import path of this file's package. - packageName GoPackageName // Name of this file's Go package. - - proto3 bool // whether to generate proto3 code for this file -} - -// VarName is the variable name we'll use in the generated code to refer -// to the compressed bytes of this descriptor. It is not exported, so -// it is only valid inside the generated package. -func (d *FileDescriptor) VarName() string { - h := sha256.Sum256([]byte(d.GetName())) - return fmt.Sprintf("fileDescriptor_%s", hex.EncodeToString(h[:8])) -} - -// goPackageOption interprets the file's go_package option. -// If there is no go_package, it returns ("", "", false). -// If there's a simple name, it returns ("", pkg, true). -// If the option implies an import path, it returns (impPath, pkg, true). -func (d *FileDescriptor) goPackageOption() (impPath GoImportPath, pkg GoPackageName, ok bool) { - opt := d.GetOptions().GetGoPackage() - if opt == "" { - return "", "", false - } - // A semicolon-delimited suffix delimits the import path and package name. - sc := strings.Index(opt, ";") - if sc >= 0 { - return GoImportPath(opt[:sc]), cleanPackageName(opt[sc+1:]), true - } - // The presence of a slash implies there's an import path. - slash := strings.LastIndex(opt, "/") - if slash >= 0 { - return GoImportPath(opt), cleanPackageName(opt[slash+1:]), true - } - return "", cleanPackageName(opt), true -} - -// goFileName returns the output name for the generated Go file. -func (d *FileDescriptor) goFileName(pathType pathType) string { - name := *d.Name - if ext := path.Ext(name); ext == ".proto" || ext == ".protodevel" { - name = name[:len(name)-len(ext)] - } - name += ".pb.go" - - if pathType == pathTypeSourceRelative { - return name - } - - // Does the file have a "go_package" option? - // If it does, it may override the filename. - if impPath, _, ok := d.goPackageOption(); ok && impPath != "" { - // Replace the existing dirname with the declared import path. - _, name = path.Split(name) - name = path.Join(string(impPath), name) - return name - } - - return name -} - -func (d *FileDescriptor) addExport(obj Object, sym symbol) { - d.exported[obj] = append(d.exported[obj], sym) -} - -// symbol is an interface representing an exported Go symbol. -type symbol interface { - // GenerateAlias should generate an appropriate alias - // for the symbol from the named package. - GenerateAlias(g *Generator, filename string, pkg GoPackageName) -} - -type messageSymbol struct { - sym string - hasExtensions, isMessageSet bool - oneofTypes []string -} - -type getterSymbol struct { - name string - typ string - typeName string // canonical name in proto world; empty for proto.Message and similar - genType bool // whether typ contains a generated type (message/group/enum) -} - -func (ms *messageSymbol) GenerateAlias(g *Generator, filename string, pkg GoPackageName) { - g.P("// ", ms.sym, " from public import ", filename) - g.P("type ", ms.sym, " = ", pkg, ".", ms.sym) - for _, name := range ms.oneofTypes { - g.P("type ", name, " = ", pkg, ".", name) - } -} - -type enumSymbol struct { - name string - proto3 bool // Whether this came from a proto3 file. -} - -func (es enumSymbol) GenerateAlias(g *Generator, filename string, pkg GoPackageName) { - s := es.name - g.P("// ", s, " from public import ", filename) - g.P("type ", s, " = ", pkg, ".", s) - g.P("var ", s, "_name = ", pkg, ".", s, "_name") - g.P("var ", s, "_value = ", pkg, ".", s, "_value") -} - -type constOrVarSymbol struct { - sym string - typ string // either "const" or "var" - cast string // if non-empty, a type cast is required (used for enums) -} - -func (cs constOrVarSymbol) GenerateAlias(g *Generator, filename string, pkg GoPackageName) { - v := string(pkg) + "." + cs.sym - if cs.cast != "" { - v = cs.cast + "(" + v + ")" - } - g.P(cs.typ, " ", cs.sym, " = ", v) -} - -// Object is an interface abstracting the abilities shared by enums, messages, extensions and imported objects. -type Object interface { - GoImportPath() GoImportPath - TypeName() []string - File() *FileDescriptor -} - -// Generator is the type whose methods generate the output, stored in the associated response structure. -type Generator struct { - *bytes.Buffer - - Request *plugin.CodeGeneratorRequest // The input. - Response *plugin.CodeGeneratorResponse // The output. - - Param map[string]string // Command-line parameters. - PackageImportPath string // Go import path of the package we're generating code for - ImportPrefix string // String to prefix to imported package file names. - ImportMap map[string]string // Mapping from .proto file name to import path - - Pkg map[string]string // The names under which we import support packages - - outputImportPath GoImportPath // Package we're generating code for. - allFiles []*FileDescriptor // All files in the tree - allFilesByName map[string]*FileDescriptor // All files by filename. - genFiles []*FileDescriptor // Those files we will generate output for. - file *FileDescriptor // The file we are compiling now. - packageNames map[GoImportPath]GoPackageName // Imported package names in the current file. - usedPackages map[GoImportPath]bool // Packages used in current file. - usedPackageNames map[GoPackageName]bool // Package names used in the current file. - addedImports map[GoImportPath]bool // Additional imports to emit. - typeNameToObject map[string]Object // Key is a fully-qualified name in input syntax. - init []string // Lines to emit in the init function. - indent string - pathType pathType // How to generate output filenames. - writeOutput bool - annotateCode bool // whether to store annotations - annotations []*descriptor.GeneratedCodeInfo_Annotation // annotations to store -} - -type pathType int - -const ( - pathTypeImport pathType = iota - pathTypeSourceRelative -) - -// New creates a new generator and allocates the request and response protobufs. -func New() *Generator { - g := new(Generator) - g.Buffer = new(bytes.Buffer) - g.Request = new(plugin.CodeGeneratorRequest) - g.Response = new(plugin.CodeGeneratorResponse) - return g -} - -// Error reports a problem, including an error, and exits the program. -func (g *Generator) Error(err error, msgs ...string) { - s := strings.Join(msgs, " ") + ":" + err.Error() - log.Print("protoc-gen-go: error:", s) - os.Exit(1) -} - -// Fail reports a problem and exits the program. -func (g *Generator) Fail(msgs ...string) { - s := strings.Join(msgs, " ") - log.Print("protoc-gen-go: error:", s) - os.Exit(1) -} - -// CommandLineParameters breaks the comma-separated list of key=value pairs -// in the parameter (a member of the request protobuf) into a key/value map. -// It then sets file name mappings defined by those entries. -func (g *Generator) CommandLineParameters(parameter string) { - g.Param = make(map[string]string) - for _, p := range strings.Split(parameter, ",") { - if i := strings.Index(p, "="); i < 0 { - g.Param[p] = "" - } else { - g.Param[p[0:i]] = p[i+1:] - } - } - - g.ImportMap = make(map[string]string) - pluginList := "none" // Default list of plugin names to enable (empty means all). - for k, v := range g.Param { - switch k { - case "import_prefix": - g.ImportPrefix = v - case "import_path": - g.PackageImportPath = v - case "paths": - switch v { - case "import": - g.pathType = pathTypeImport - case "source_relative": - g.pathType = pathTypeSourceRelative - default: - g.Fail(fmt.Sprintf(`Unknown path type %q: want "import" or "source_relative".`, v)) - } - case "plugins": - pluginList = v - case "annotate_code": - if v == "true" { - g.annotateCode = true - } - default: - if len(k) > 0 && k[0] == 'M' { - g.ImportMap[k[1:]] = v - } - } - } - if pluginList != "" { - // Amend the set of plugins. - enabled := make(map[string]bool) - for _, name := range strings.Split(pluginList, "+") { - enabled[name] = true - } - var nplugins []Plugin - for _, p := range plugins { - if enabled[p.Name()] { - nplugins = append(nplugins, p) - } - } - plugins = nplugins - } -} - -// DefaultPackageName returns the package name printed for the object. -// If its file is in a different package, it returns the package name we're using for this file, plus ".". -// Otherwise it returns the empty string. -func (g *Generator) DefaultPackageName(obj Object) string { - importPath := obj.GoImportPath() - if importPath == g.outputImportPath { - return "" - } - return string(g.GoPackageName(importPath)) + "." -} - -// GoPackageName returns the name used for a package. -func (g *Generator) GoPackageName(importPath GoImportPath) GoPackageName { - if name, ok := g.packageNames[importPath]; ok { - return name - } - name := cleanPackageName(baseName(string(importPath))) - for i, orig := 1, name; g.usedPackageNames[name] || isGoPredeclaredIdentifier[string(name)]; i++ { - name = orig + GoPackageName(strconv.Itoa(i)) - } - g.packageNames[importPath] = name - g.usedPackageNames[name] = true - return name -} - -// AddImport adds a package to the generated file's import section. -// It returns the name used for the package. -func (g *Generator) AddImport(importPath GoImportPath) GoPackageName { - g.addedImports[importPath] = true - return g.GoPackageName(importPath) -} - -var globalPackageNames = map[GoPackageName]bool{ - "fmt": true, - "math": true, - "proto": true, -} - -// Create and remember a guaranteed unique package name. Pkg is the candidate name. -// The FileDescriptor parameter is unused. -func RegisterUniquePackageName(pkg string, f *FileDescriptor) string { - name := cleanPackageName(pkg) - for i, orig := 1, name; globalPackageNames[name]; i++ { - name = orig + GoPackageName(strconv.Itoa(i)) - } - globalPackageNames[name] = true - return string(name) -} - -var isGoKeyword = map[string]bool{ - "break": true, - "case": true, - "chan": true, - "const": true, - "continue": true, - "default": true, - "else": true, - "defer": true, - "fallthrough": true, - "for": true, - "func": true, - "go": true, - "goto": true, - "if": true, - "import": true, - "interface": true, - "map": true, - "package": true, - "range": true, - "return": true, - "select": true, - "struct": true, - "switch": true, - "type": true, - "var": true, -} - -var isGoPredeclaredIdentifier = map[string]bool{ - "append": true, - "bool": true, - "byte": true, - "cap": true, - "close": true, - "complex": true, - "complex128": true, - "complex64": true, - "copy": true, - "delete": true, - "error": true, - "false": true, - "float32": true, - "float64": true, - "imag": true, - "int": true, - "int16": true, - "int32": true, - "int64": true, - "int8": true, - "iota": true, - "len": true, - "make": true, - "new": true, - "nil": true, - "panic": true, - "print": true, - "println": true, - "real": true, - "recover": true, - "rune": true, - "string": true, - "true": true, - "uint": true, - "uint16": true, - "uint32": true, - "uint64": true, - "uint8": true, - "uintptr": true, -} - -func cleanPackageName(name string) GoPackageName { - name = strings.Map(badToUnderscore, name) - // Identifier must not be keyword or predeclared identifier: insert _. - if isGoKeyword[name] { - name = "_" + name - } - // Identifier must not begin with digit: insert _. - if r, _ := utf8.DecodeRuneInString(name); unicode.IsDigit(r) { - name = "_" + name - } - return GoPackageName(name) -} - -// defaultGoPackage returns the package name to use, -// derived from the import path of the package we're building code for. -func (g *Generator) defaultGoPackage() GoPackageName { - p := g.PackageImportPath - if i := strings.LastIndex(p, "/"); i >= 0 { - p = p[i+1:] - } - return cleanPackageName(p) -} - -// SetPackageNames sets the package name for this run. -// The package name must agree across all files being generated. -// It also defines unique package names for all imported files. -func (g *Generator) SetPackageNames() { - g.outputImportPath = g.genFiles[0].importPath - - defaultPackageNames := make(map[GoImportPath]GoPackageName) - for _, f := range g.genFiles { - if _, p, ok := f.goPackageOption(); ok { - defaultPackageNames[f.importPath] = p - } - } - for _, f := range g.genFiles { - if _, p, ok := f.goPackageOption(); ok { - // Source file: option go_package = "quux/bar"; - f.packageName = p - } else if p, ok := defaultPackageNames[f.importPath]; ok { - // A go_package option in another file in the same package. - // - // This is a poor choice in general, since every source file should - // contain a go_package option. Supported mainly for historical - // compatibility. - f.packageName = p - } else if p := g.defaultGoPackage(); p != "" { - // Command-line: import_path=quux/bar. - // - // The import_path flag sets a package name for files which don't - // contain a go_package option. - f.packageName = p - } else if p := f.GetPackage(); p != "" { - // Source file: package quux.bar; - f.packageName = cleanPackageName(p) - } else { - // Source filename. - f.packageName = cleanPackageName(baseName(f.GetName())) - } - } - - // Check that all files have a consistent package name and import path. - for _, f := range g.genFiles[1:] { - if a, b := g.genFiles[0].importPath, f.importPath; a != b { - g.Fail(fmt.Sprintf("inconsistent package import paths: %v, %v", a, b)) - } - if a, b := g.genFiles[0].packageName, f.packageName; a != b { - g.Fail(fmt.Sprintf("inconsistent package names: %v, %v", a, b)) - } - } - - // Names of support packages. These never vary (if there are conflicts, - // we rename the conflicting package), so this could be removed someday. - g.Pkg = map[string]string{ - "fmt": "fmt", - "math": "math", - "proto": "proto", - } -} - -// WrapTypes walks the incoming data, wrapping DescriptorProtos, EnumDescriptorProtos -// and FileDescriptorProtos into file-referenced objects within the Generator. -// It also creates the list of files to generate and so should be called before GenerateAllFiles. -func (g *Generator) WrapTypes() { - g.allFiles = make([]*FileDescriptor, 0, len(g.Request.ProtoFile)) - g.allFilesByName = make(map[string]*FileDescriptor, len(g.allFiles)) - genFileNames := make(map[string]bool) - for _, n := range g.Request.FileToGenerate { - genFileNames[n] = true - } - for _, f := range g.Request.ProtoFile { - fd := &FileDescriptor{ - FileDescriptorProto: f, - exported: make(map[Object][]symbol), - proto3: fileIsProto3(f), - } - // The import path may be set in a number of ways. - if substitution, ok := g.ImportMap[f.GetName()]; ok { - // Command-line: M=foo.proto=quux/bar. - // - // Explicit mapping of source file to import path. - fd.importPath = GoImportPath(substitution) - } else if genFileNames[f.GetName()] && g.PackageImportPath != "" { - // Command-line: import_path=quux/bar. - // - // The import_path flag sets the import path for every file that - // we generate code for. - fd.importPath = GoImportPath(g.PackageImportPath) - } else if p, _, _ := fd.goPackageOption(); p != "" { - // Source file: option go_package = "quux/bar"; - // - // The go_package option sets the import path. Most users should use this. - fd.importPath = p - } else { - // Source filename. - // - // Last resort when nothing else is available. - fd.importPath = GoImportPath(path.Dir(f.GetName())) - } - // We must wrap the descriptors before we wrap the enums - fd.desc = wrapDescriptors(fd) - g.buildNestedDescriptors(fd.desc) - fd.enum = wrapEnumDescriptors(fd, fd.desc) - g.buildNestedEnums(fd.desc, fd.enum) - fd.ext = wrapExtensions(fd) - extractComments(fd) - g.allFiles = append(g.allFiles, fd) - g.allFilesByName[f.GetName()] = fd - } - for _, fd := range g.allFiles { - fd.imp = wrapImported(fd, g) - } - - g.genFiles = make([]*FileDescriptor, 0, len(g.Request.FileToGenerate)) - for _, fileName := range g.Request.FileToGenerate { - fd := g.allFilesByName[fileName] - if fd == nil { - g.Fail("could not find file named", fileName) - } - g.genFiles = append(g.genFiles, fd) - } -} - -// Scan the descriptors in this file. For each one, build the slice of nested descriptors -func (g *Generator) buildNestedDescriptors(descs []*Descriptor) { - for _, desc := range descs { - if len(desc.NestedType) != 0 { - for _, nest := range descs { - if nest.parent == desc { - desc.nested = append(desc.nested, nest) - } - } - if len(desc.nested) != len(desc.NestedType) { - g.Fail("internal error: nesting failure for", desc.GetName()) - } - } - } -} - -func (g *Generator) buildNestedEnums(descs []*Descriptor, enums []*EnumDescriptor) { - for _, desc := range descs { - if len(desc.EnumType) != 0 { - for _, enum := range enums { - if enum.parent == desc { - desc.enums = append(desc.enums, enum) - } - } - if len(desc.enums) != len(desc.EnumType) { - g.Fail("internal error: enum nesting failure for", desc.GetName()) - } - } - } -} - -// Construct the Descriptor -func newDescriptor(desc *descriptor.DescriptorProto, parent *Descriptor, file *FileDescriptor, index int) *Descriptor { - d := &Descriptor{ - common: common{file}, - DescriptorProto: desc, - parent: parent, - index: index, - } - if parent == nil { - d.path = fmt.Sprintf("%d,%d", messagePath, index) - } else { - d.path = fmt.Sprintf("%s,%d,%d", parent.path, messageMessagePath, index) - } - - // The only way to distinguish a group from a message is whether - // the containing message has a TYPE_GROUP field that matches. - if parent != nil { - parts := d.TypeName() - if file.Package != nil { - parts = append([]string{*file.Package}, parts...) - } - exp := "." + strings.Join(parts, ".") - for _, field := range parent.Field { - if field.GetType() == descriptor.FieldDescriptorProto_TYPE_GROUP && field.GetTypeName() == exp { - d.group = true - break - } - } - } - - for _, field := range desc.Extension { - d.ext = append(d.ext, &ExtensionDescriptor{common{file}, field, d}) - } - - return d -} - -// Return a slice of all the Descriptors defined within this file -func wrapDescriptors(file *FileDescriptor) []*Descriptor { - sl := make([]*Descriptor, 0, len(file.MessageType)+10) - for i, desc := range file.MessageType { - sl = wrapThisDescriptor(sl, desc, nil, file, i) - } - return sl -} - -// Wrap this Descriptor, recursively -func wrapThisDescriptor(sl []*Descriptor, desc *descriptor.DescriptorProto, parent *Descriptor, file *FileDescriptor, index int) []*Descriptor { - sl = append(sl, newDescriptor(desc, parent, file, index)) - me := sl[len(sl)-1] - for i, nested := range desc.NestedType { - sl = wrapThisDescriptor(sl, nested, me, file, i) - } - return sl -} - -// Construct the EnumDescriptor -func newEnumDescriptor(desc *descriptor.EnumDescriptorProto, parent *Descriptor, file *FileDescriptor, index int) *EnumDescriptor { - ed := &EnumDescriptor{ - common: common{file}, - EnumDescriptorProto: desc, - parent: parent, - index: index, - } - if parent == nil { - ed.path = fmt.Sprintf("%d,%d", enumPath, index) - } else { - ed.path = fmt.Sprintf("%s,%d,%d", parent.path, messageEnumPath, index) - } - return ed -} - -// Return a slice of all the EnumDescriptors defined within this file -func wrapEnumDescriptors(file *FileDescriptor, descs []*Descriptor) []*EnumDescriptor { - sl := make([]*EnumDescriptor, 0, len(file.EnumType)+10) - // Top-level enums. - for i, enum := range file.EnumType { - sl = append(sl, newEnumDescriptor(enum, nil, file, i)) - } - // Enums within messages. Enums within embedded messages appear in the outer-most message. - for _, nested := range descs { - for i, enum := range nested.EnumType { - sl = append(sl, newEnumDescriptor(enum, nested, file, i)) - } - } - return sl -} - -// Return a slice of all the top-level ExtensionDescriptors defined within this file. -func wrapExtensions(file *FileDescriptor) []*ExtensionDescriptor { - var sl []*ExtensionDescriptor - for _, field := range file.Extension { - sl = append(sl, &ExtensionDescriptor{common{file}, field, nil}) - } - return sl -} - -// Return a slice of all the types that are publicly imported into this file. -func wrapImported(file *FileDescriptor, g *Generator) (sl []*ImportedDescriptor) { - for _, index := range file.PublicDependency { - df := g.fileByName(file.Dependency[index]) - for _, d := range df.desc { - if d.GetOptions().GetMapEntry() { - continue - } - sl = append(sl, &ImportedDescriptor{common{file}, d}) - } - for _, e := range df.enum { - sl = append(sl, &ImportedDescriptor{common{file}, e}) - } - for _, ext := range df.ext { - sl = append(sl, &ImportedDescriptor{common{file}, ext}) - } - } - return -} - -func extractComments(file *FileDescriptor) { - file.comments = make(map[string]*descriptor.SourceCodeInfo_Location) - for _, loc := range file.GetSourceCodeInfo().GetLocation() { - if loc.LeadingComments == nil { - continue - } - var p []string - for _, n := range loc.Path { - p = append(p, strconv.Itoa(int(n))) - } - file.comments[strings.Join(p, ",")] = loc - } -} - -// BuildTypeNameMap builds the map from fully qualified type names to objects. -// The key names for the map come from the input data, which puts a period at the beginning. -// It should be called after SetPackageNames and before GenerateAllFiles. -func (g *Generator) BuildTypeNameMap() { - g.typeNameToObject = make(map[string]Object) - for _, f := range g.allFiles { - // The names in this loop are defined by the proto world, not us, so the - // package name may be empty. If so, the dotted package name of X will - // be ".X"; otherwise it will be ".pkg.X". - dottedPkg := "." + f.GetPackage() - if dottedPkg != "." { - dottedPkg += "." - } - for _, enum := range f.enum { - name := dottedPkg + dottedSlice(enum.TypeName()) - g.typeNameToObject[name] = enum - } - for _, desc := range f.desc { - name := dottedPkg + dottedSlice(desc.TypeName()) - g.typeNameToObject[name] = desc - } - } -} - -// ObjectNamed, given a fully-qualified input type name as it appears in the input data, -// returns the descriptor for the message or enum with that name. -func (g *Generator) ObjectNamed(typeName string) Object { - o, ok := g.typeNameToObject[typeName] - if !ok { - g.Fail("can't find object with type", typeName) - } - return o -} - -// AnnotatedAtoms is a list of atoms (as consumed by P) that records the file name and proto AST path from which they originated. -type AnnotatedAtoms struct { - source string - path string - atoms []interface{} -} - -// Annotate records the file name and proto AST path of a list of atoms -// so that a later call to P can emit a link from each atom to its origin. -func Annotate(file *FileDescriptor, path string, atoms ...interface{}) *AnnotatedAtoms { - return &AnnotatedAtoms{source: *file.Name, path: path, atoms: atoms} -} - -// printAtom prints the (atomic, non-annotation) argument to the generated output. -func (g *Generator) printAtom(v interface{}) { - switch v := v.(type) { - case string: - g.WriteString(v) - case *string: - g.WriteString(*v) - case bool: - fmt.Fprint(g, v) - case *bool: - fmt.Fprint(g, *v) - case int: - fmt.Fprint(g, v) - case *int32: - fmt.Fprint(g, *v) - case *int64: - fmt.Fprint(g, *v) - case float64: - fmt.Fprint(g, v) - case *float64: - fmt.Fprint(g, *v) - case GoPackageName: - g.WriteString(string(v)) - case GoImportPath: - g.WriteString(strconv.Quote(string(v))) - default: - g.Fail(fmt.Sprintf("unknown type in printer: %T", v)) - } -} - -// P prints the arguments to the generated output. It handles strings and int32s, plus -// handling indirections because they may be *string, etc. Any inputs of type AnnotatedAtoms may emit -// annotations in a .meta file in addition to outputting the atoms themselves (if g.annotateCode -// is true). -func (g *Generator) P(str ...interface{}) { - if !g.writeOutput { - return - } - g.WriteString(g.indent) - for _, v := range str { - switch v := v.(type) { - case *AnnotatedAtoms: - begin := int32(g.Len()) - for _, v := range v.atoms { - g.printAtom(v) - } - if g.annotateCode { - end := int32(g.Len()) - var path []int32 - for _, token := range strings.Split(v.path, ",") { - val, err := strconv.ParseInt(token, 10, 32) - if err != nil { - g.Fail("could not parse proto AST path: ", err.Error()) - } - path = append(path, int32(val)) - } - g.annotations = append(g.annotations, &descriptor.GeneratedCodeInfo_Annotation{ - Path: path, - SourceFile: &v.source, - Begin: &begin, - End: &end, - }) - } - default: - g.printAtom(v) - } - } - g.WriteByte('\n') -} - -// addInitf stores the given statement to be printed inside the file's init function. -// The statement is given as a format specifier and arguments. -func (g *Generator) addInitf(stmt string, a ...interface{}) { - g.init = append(g.init, fmt.Sprintf(stmt, a...)) -} - -// In Indents the output one tab stop. -func (g *Generator) In() { g.indent += "\t" } - -// Out unindents the output one tab stop. -func (g *Generator) Out() { - if len(g.indent) > 0 { - g.indent = g.indent[1:] - } -} - -// GenerateAllFiles generates the output for all the files we're outputting. -func (g *Generator) GenerateAllFiles() { - // Initialize the plugins - for _, p := range plugins { - p.Init(g) - } - // Generate the output. The generator runs for every file, even the files - // that we don't generate output for, so that we can collate the full list - // of exported symbols to support public imports. - genFileMap := make(map[*FileDescriptor]bool, len(g.genFiles)) - for _, file := range g.genFiles { - genFileMap[file] = true - } - for _, file := range g.allFiles { - g.Reset() - g.annotations = nil - g.writeOutput = genFileMap[file] - g.generate(file) - if !g.writeOutput { - continue - } - fname := file.goFileName(g.pathType) - g.Response.File = append(g.Response.File, &plugin.CodeGeneratorResponse_File{ - Name: proto.String(fname), - Content: proto.String(g.String()), - }) - if g.annotateCode { - // Store the generated code annotations in text, as the protoc plugin protocol requires that - // strings contain valid UTF-8. - g.Response.File = append(g.Response.File, &plugin.CodeGeneratorResponse_File{ - Name: proto.String(file.goFileName(g.pathType) + ".meta"), - Content: proto.String(proto.CompactTextString(&descriptor.GeneratedCodeInfo{Annotation: g.annotations})), - }) - } - } -} - -// Run all the plugins associated with the file. -func (g *Generator) runPlugins(file *FileDescriptor) { - for _, p := range plugins { - p.Generate(file) - } -} - -// Fill the response protocol buffer with the generated output for all the files we're -// supposed to generate. -func (g *Generator) generate(file *FileDescriptor) { - g.file = file - g.usedPackages = make(map[GoImportPath]bool) - g.packageNames = make(map[GoImportPath]GoPackageName) - g.usedPackageNames = make(map[GoPackageName]bool) - g.addedImports = make(map[GoImportPath]bool) - for name := range globalPackageNames { - g.usedPackageNames[name] = true - } - - g.P("// This is a compile-time assertion to ensure that this generated file") - g.P("// is compatible with the proto package it is being compiled against.") - g.P("// A compilation error at this line likely means your copy of the") - g.P("// proto package needs to be updated.") - g.P("const _ = ", g.Pkg["proto"], ".ProtoPackageIsVersion", generatedCodeVersion, " // please upgrade the proto package") - g.P() - - for _, td := range g.file.imp { - g.generateImported(td) - } - for _, enum := range g.file.enum { - g.generateEnum(enum) - } - for _, desc := range g.file.desc { - // Don't generate virtual messages for maps. - if desc.GetOptions().GetMapEntry() { - continue - } - g.generateMessage(desc) - } - for _, ext := range g.file.ext { - g.generateExtension(ext) - } - g.generateInitFunction() - g.generateFileDescriptor(file) - - // Run the plugins before the imports so we know which imports are necessary. - g.runPlugins(file) - - // Generate header and imports last, though they appear first in the output. - rem := g.Buffer - remAnno := g.annotations - g.Buffer = new(bytes.Buffer) - g.annotations = nil - g.generateHeader() - g.generateImports() - if !g.writeOutput { - return - } - // Adjust the offsets for annotations displaced by the header and imports. - for _, anno := range remAnno { - *anno.Begin += int32(g.Len()) - *anno.End += int32(g.Len()) - g.annotations = append(g.annotations, anno) - } - g.Write(rem.Bytes()) - - // Reformat generated code and patch annotation locations. - fset := token.NewFileSet() - original := g.Bytes() - if g.annotateCode { - // make a copy independent of g; we'll need it after Reset. - original = append([]byte(nil), original...) - } - fileAST, err := parser.ParseFile(fset, "", original, parser.ParseComments) - if err != nil { - // Print out the bad code with line numbers. - // This should never happen in practice, but it can while changing generated code, - // so consider this a debugging aid. - var src bytes.Buffer - s := bufio.NewScanner(bytes.NewReader(original)) - for line := 1; s.Scan(); line++ { - fmt.Fprintf(&src, "%5d\t%s\n", line, s.Bytes()) - } - g.Fail("bad Go source code was generated:", err.Error(), "\n"+src.String()) - } - ast.SortImports(fset, fileAST) - g.Reset() - err = (&printer.Config{Mode: printer.TabIndent | printer.UseSpaces, Tabwidth: 8}).Fprint(g, fset, fileAST) - if err != nil { - g.Fail("generated Go source code could not be reformatted:", err.Error()) - } - if g.annotateCode { - m, err := remap.Compute(original, g.Bytes()) - if err != nil { - g.Fail("formatted generated Go source code could not be mapped back to the original code:", err.Error()) - } - for _, anno := range g.annotations { - new, ok := m.Find(int(*anno.Begin), int(*anno.End)) - if !ok { - g.Fail("span in formatted generated Go source code could not be mapped back to the original code") - } - *anno.Begin = int32(new.Pos) - *anno.End = int32(new.End) - } - } -} - -// Generate the header, including package definition -func (g *Generator) generateHeader() { - g.P("// Code generated by protoc-gen-go. DO NOT EDIT.") - if g.file.GetOptions().GetDeprecated() { - g.P("// ", g.file.Name, " is a deprecated file.") - } else { - g.P("// source: ", g.file.Name) - } - g.P() - g.PrintComments(strconv.Itoa(packagePath)) - g.P() - g.P("package ", g.file.packageName) - g.P() -} - -// deprecationComment is the standard comment added to deprecated -// messages, fields, enums, and enum values. -var deprecationComment = "// Deprecated: Do not use." - -// PrintComments prints any comments from the source .proto file. -// The path is a comma-separated list of integers. -// It returns an indication of whether any comments were printed. -// See descriptor.proto for its format. -func (g *Generator) PrintComments(path string) bool { - if !g.writeOutput { - return false - } - if c, ok := g.makeComments(path); ok { - g.P(c) - return true - } - return false -} - -// makeComments generates the comment string for the field, no "\n" at the end -func (g *Generator) makeComments(path string) (string, bool) { - loc, ok := g.file.comments[path] - if !ok { - return "", false - } - w := new(bytes.Buffer) - nl := "" - for _, line := range strings.Split(strings.TrimSuffix(loc.GetLeadingComments(), "\n"), "\n") { - fmt.Fprintf(w, "%s//%s", nl, line) - nl = "\n" - } - return w.String(), true -} - -func (g *Generator) fileByName(filename string) *FileDescriptor { - return g.allFilesByName[filename] -} - -// weak returns whether the ith import of the current file is a weak import. -func (g *Generator) weak(i int32) bool { - for _, j := range g.file.WeakDependency { - if j == i { - return true - } - } - return false -} - -// Generate the imports -func (g *Generator) generateImports() { - imports := make(map[GoImportPath]GoPackageName) - for i, s := range g.file.Dependency { - fd := g.fileByName(s) - importPath := fd.importPath - // Do not import our own package. - if importPath == g.file.importPath { - continue - } - // Do not import weak imports. - if g.weak(int32(i)) { - continue - } - // Do not import a package twice. - if _, ok := imports[importPath]; ok { - continue - } - // We need to import all the dependencies, even if we don't reference them, - // because other code and tools depend on having the full transitive closure - // of protocol buffer types in the binary. - packageName := g.GoPackageName(importPath) - if _, ok := g.usedPackages[importPath]; !ok { - packageName = "_" - } - imports[importPath] = packageName - } - for importPath := range g.addedImports { - imports[importPath] = g.GoPackageName(importPath) - } - // We almost always need a proto import. Rather than computing when we - // do, which is tricky when there's a plugin, just import it and - // reference it later. The same argument applies to the fmt and math packages. - g.P("import (") - g.P(g.Pkg["fmt"] + ` "fmt"`) - g.P(g.Pkg["math"] + ` "math"`) - g.P(g.Pkg["proto"]+" ", GoImportPath(g.ImportPrefix)+"github.com/golang/protobuf/proto") - for importPath, packageName := range imports { - g.P(packageName, " ", GoImportPath(g.ImportPrefix)+importPath) - } - g.P(")") - g.P() - // TODO: may need to worry about uniqueness across plugins - for _, p := range plugins { - p.GenerateImports(g.file) - g.P() - } - g.P("// Reference imports to suppress errors if they are not otherwise used.") - g.P("var _ = ", g.Pkg["proto"], ".Marshal") - g.P("var _ = ", g.Pkg["fmt"], ".Errorf") - g.P("var _ = ", g.Pkg["math"], ".Inf") - g.P() -} - -func (g *Generator) generateImported(id *ImportedDescriptor) { - df := id.o.File() - filename := *df.Name - if df.importPath == g.file.importPath { - // Don't generate type aliases for files in the same Go package as this one. - return - } - if !supportTypeAliases { - g.Fail(fmt.Sprintf("%s: public imports require at least go1.9", filename)) - } - g.usedPackages[df.importPath] = true - - for _, sym := range df.exported[id.o] { - sym.GenerateAlias(g, filename, g.GoPackageName(df.importPath)) - } - - g.P() -} - -// Generate the enum definitions for this EnumDescriptor. -func (g *Generator) generateEnum(enum *EnumDescriptor) { - // The full type name - typeName := enum.TypeName() - // The full type name, CamelCased. - ccTypeName := CamelCaseSlice(typeName) - ccPrefix := enum.prefix() - - deprecatedEnum := "" - if enum.GetOptions().GetDeprecated() { - deprecatedEnum = deprecationComment - } - g.PrintComments(enum.path) - g.P("type ", Annotate(enum.file, enum.path, ccTypeName), " int32", deprecatedEnum) - g.file.addExport(enum, enumSymbol{ccTypeName, enum.proto3()}) - g.P("const (") - for i, e := range enum.Value { - etorPath := fmt.Sprintf("%s,%d,%d", enum.path, enumValuePath, i) - g.PrintComments(etorPath) - - deprecatedValue := "" - if e.GetOptions().GetDeprecated() { - deprecatedValue = deprecationComment - } - - name := ccPrefix + *e.Name - g.P(Annotate(enum.file, etorPath, name), " ", ccTypeName, " = ", e.Number, " ", deprecatedValue) - g.file.addExport(enum, constOrVarSymbol{name, "const", ccTypeName}) - } - g.P(")") - g.P() - g.P("var ", ccTypeName, "_name = map[int32]string{") - generated := make(map[int32]bool) // avoid duplicate values - for _, e := range enum.Value { - duplicate := "" - if _, present := generated[*e.Number]; present { - duplicate = "// Duplicate value: " - } - g.P(duplicate, e.Number, ": ", strconv.Quote(*e.Name), ",") - generated[*e.Number] = true - } - g.P("}") - g.P() - g.P("var ", ccTypeName, "_value = map[string]int32{") - for _, e := range enum.Value { - g.P(strconv.Quote(*e.Name), ": ", e.Number, ",") - } - g.P("}") - g.P() - - if !enum.proto3() { - g.P("func (x ", ccTypeName, ") Enum() *", ccTypeName, " {") - g.P("p := new(", ccTypeName, ")") - g.P("*p = x") - g.P("return p") - g.P("}") - g.P() - } - - g.P("func (x ", ccTypeName, ") String() string {") - g.P("return ", g.Pkg["proto"], ".EnumName(", ccTypeName, "_name, int32(x))") - g.P("}") - g.P() - - if !enum.proto3() { - g.P("func (x *", ccTypeName, ") UnmarshalJSON(data []byte) error {") - g.P("value, err := ", g.Pkg["proto"], ".UnmarshalJSONEnum(", ccTypeName, `_value, data, "`, ccTypeName, `")`) - g.P("if err != nil {") - g.P("return err") - g.P("}") - g.P("*x = ", ccTypeName, "(value)") - g.P("return nil") - g.P("}") - g.P() - } - - var indexes []string - for m := enum.parent; m != nil; m = m.parent { - // XXX: skip groups? - indexes = append([]string{strconv.Itoa(m.index)}, indexes...) - } - indexes = append(indexes, strconv.Itoa(enum.index)) - g.P("func (", ccTypeName, ") EnumDescriptor() ([]byte, []int) {") - g.P("return ", g.file.VarName(), ", []int{", strings.Join(indexes, ", "), "}") - g.P("}") - g.P() - if enum.file.GetPackage() == "google.protobuf" && enum.GetName() == "NullValue" { - g.P("func (", ccTypeName, `) XXX_WellKnownType() string { return "`, enum.GetName(), `" }`) - g.P() - } - - g.generateEnumRegistration(enum) -} - -// The tag is a string like "varint,2,opt,name=fieldname,def=7" that -// identifies details of the field for the protocol buffer marshaling and unmarshaling -// code. The fields are: -// wire encoding -// protocol tag number -// opt,req,rep for optional, required, or repeated -// packed whether the encoding is "packed" (optional; repeated primitives only) -// name= the original declared name -// enum= the name of the enum type if it is an enum-typed field. -// proto3 if this field is in a proto3 message -// def= string representation of the default value, if any. -// The default value must be in a representation that can be used at run-time -// to generate the default value. Thus bools become 0 and 1, for instance. -func (g *Generator) goTag(message *Descriptor, field *descriptor.FieldDescriptorProto, wiretype string) string { - optrepreq := "" - switch { - case isOptional(field): - optrepreq = "opt" - case isRequired(field): - optrepreq = "req" - case isRepeated(field): - optrepreq = "rep" - } - var defaultValue string - if dv := field.DefaultValue; dv != nil { // set means an explicit default - defaultValue = *dv - // Some types need tweaking. - switch *field.Type { - case descriptor.FieldDescriptorProto_TYPE_BOOL: - if defaultValue == "true" { - defaultValue = "1" - } else { - defaultValue = "0" - } - case descriptor.FieldDescriptorProto_TYPE_STRING, - descriptor.FieldDescriptorProto_TYPE_BYTES: - // Nothing to do. Quoting is done for the whole tag. - case descriptor.FieldDescriptorProto_TYPE_ENUM: - // For enums we need to provide the integer constant. - obj := g.ObjectNamed(field.GetTypeName()) - if id, ok := obj.(*ImportedDescriptor); ok { - // It is an enum that was publicly imported. - // We need the underlying type. - obj = id.o - } - enum, ok := obj.(*EnumDescriptor) - if !ok { - log.Printf("obj is a %T", obj) - if id, ok := obj.(*ImportedDescriptor); ok { - log.Printf("id.o is a %T", id.o) - } - g.Fail("unknown enum type", CamelCaseSlice(obj.TypeName())) - } - defaultValue = enum.integerValueAsString(defaultValue) - case descriptor.FieldDescriptorProto_TYPE_FLOAT: - if def := defaultValue; def != "inf" && def != "-inf" && def != "nan" { - if f, err := strconv.ParseFloat(defaultValue, 32); err == nil { - defaultValue = fmt.Sprint(float32(f)) - } - } - case descriptor.FieldDescriptorProto_TYPE_DOUBLE: - if def := defaultValue; def != "inf" && def != "-inf" && def != "nan" { - if f, err := strconv.ParseFloat(defaultValue, 64); err == nil { - defaultValue = fmt.Sprint(f) - } - } - } - defaultValue = ",def=" + defaultValue - } - enum := "" - if *field.Type == descriptor.FieldDescriptorProto_TYPE_ENUM { - // We avoid using obj.GoPackageName(), because we want to use the - // original (proto-world) package name. - obj := g.ObjectNamed(field.GetTypeName()) - if id, ok := obj.(*ImportedDescriptor); ok { - obj = id.o - } - enum = ",enum=" - if pkg := obj.File().GetPackage(); pkg != "" { - enum += pkg + "." - } - enum += CamelCaseSlice(obj.TypeName()) - } - packed := "" - if (field.Options != nil && field.Options.GetPacked()) || - // Per https://developers.google.com/protocol-buffers/docs/proto3#simple: - // "In proto3, repeated fields of scalar numeric types use packed encoding by default." - (message.proto3() && (field.Options == nil || field.Options.Packed == nil) && - isRepeated(field) && isScalar(field)) { - packed = ",packed" - } - fieldName := field.GetName() - name := fieldName - if *field.Type == descriptor.FieldDescriptorProto_TYPE_GROUP { - // We must use the type name for groups instead of - // the field name to preserve capitalization. - // type_name in FieldDescriptorProto is fully-qualified, - // but we only want the local part. - name = *field.TypeName - if i := strings.LastIndex(name, "."); i >= 0 { - name = name[i+1:] - } - } - if json := field.GetJsonName(); field.Extendee == nil && json != "" && json != name { - // TODO: escaping might be needed, in which case - // perhaps this should be in its own "json" tag. - name += ",json=" + json - } - name = ",name=" + name - if message.proto3() { - name += ",proto3" - } - oneof := "" - if field.OneofIndex != nil { - oneof = ",oneof" - } - return strconv.Quote(fmt.Sprintf("%s,%d,%s%s%s%s%s%s", - wiretype, - field.GetNumber(), - optrepreq, - packed, - name, - enum, - oneof, - defaultValue)) -} - -func needsStar(typ descriptor.FieldDescriptorProto_Type) bool { - switch typ { - case descriptor.FieldDescriptorProto_TYPE_GROUP: - return false - case descriptor.FieldDescriptorProto_TYPE_MESSAGE: - return false - case descriptor.FieldDescriptorProto_TYPE_BYTES: - return false - } - return true -} - -// TypeName is the printed name appropriate for an item. If the object is in the current file, -// TypeName drops the package name and underscores the rest. -// Otherwise the object is from another package; and the result is the underscored -// package name followed by the item name. -// The result always has an initial capital. -func (g *Generator) TypeName(obj Object) string { - return g.DefaultPackageName(obj) + CamelCaseSlice(obj.TypeName()) -} - -// GoType returns a string representing the type name, and the wire type -func (g *Generator) GoType(message *Descriptor, field *descriptor.FieldDescriptorProto) (typ string, wire string) { - // TODO: Options. - switch *field.Type { - case descriptor.FieldDescriptorProto_TYPE_DOUBLE: - typ, wire = "float64", "fixed64" - case descriptor.FieldDescriptorProto_TYPE_FLOAT: - typ, wire = "float32", "fixed32" - case descriptor.FieldDescriptorProto_TYPE_INT64: - typ, wire = "int64", "varint" - case descriptor.FieldDescriptorProto_TYPE_UINT64: - typ, wire = "uint64", "varint" - case descriptor.FieldDescriptorProto_TYPE_INT32: - typ, wire = "int32", "varint" - case descriptor.FieldDescriptorProto_TYPE_UINT32: - typ, wire = "uint32", "varint" - case descriptor.FieldDescriptorProto_TYPE_FIXED64: - typ, wire = "uint64", "fixed64" - case descriptor.FieldDescriptorProto_TYPE_FIXED32: - typ, wire = "uint32", "fixed32" - case descriptor.FieldDescriptorProto_TYPE_BOOL: - typ, wire = "bool", "varint" - case descriptor.FieldDescriptorProto_TYPE_STRING: - typ, wire = "string", "bytes" - case descriptor.FieldDescriptorProto_TYPE_GROUP: - desc := g.ObjectNamed(field.GetTypeName()) - typ, wire = "*"+g.TypeName(desc), "group" - case descriptor.FieldDescriptorProto_TYPE_MESSAGE: - desc := g.ObjectNamed(field.GetTypeName()) - typ, wire = "*"+g.TypeName(desc), "bytes" - case descriptor.FieldDescriptorProto_TYPE_BYTES: - typ, wire = "[]byte", "bytes" - case descriptor.FieldDescriptorProto_TYPE_ENUM: - desc := g.ObjectNamed(field.GetTypeName()) - typ, wire = g.TypeName(desc), "varint" - case descriptor.FieldDescriptorProto_TYPE_SFIXED32: - typ, wire = "int32", "fixed32" - case descriptor.FieldDescriptorProto_TYPE_SFIXED64: - typ, wire = "int64", "fixed64" - case descriptor.FieldDescriptorProto_TYPE_SINT32: - typ, wire = "int32", "zigzag32" - case descriptor.FieldDescriptorProto_TYPE_SINT64: - typ, wire = "int64", "zigzag64" - default: - g.Fail("unknown type for", field.GetName()) - } - if isRepeated(field) { - typ = "[]" + typ - } else if message != nil && message.proto3() { - return - } else if field.OneofIndex != nil && message != nil { - return - } else if needsStar(*field.Type) { - typ = "*" + typ - } - return -} - -func (g *Generator) RecordTypeUse(t string) { - if _, ok := g.typeNameToObject[t]; !ok { - return - } - importPath := g.ObjectNamed(t).GoImportPath() - if importPath == g.outputImportPath { - // Don't record use of objects in our package. - return - } - g.AddImport(importPath) - g.usedPackages[importPath] = true -} - -// Method names that may be generated. Fields with these names get an -// underscore appended. Any change to this set is a potential incompatible -// API change because it changes generated field names. -var methodNames = [...]string{ - "Reset", - "String", - "ProtoMessage", - "Marshal", - "Unmarshal", - "ExtensionRangeArray", - "ExtensionMap", - "Descriptor", -} - -// Names of messages in the `google.protobuf` package for which -// we will generate XXX_WellKnownType methods. -var wellKnownTypes = map[string]bool{ - "Any": true, - "Duration": true, - "Empty": true, - "Struct": true, - "Timestamp": true, - - "Value": true, - "ListValue": true, - "DoubleValue": true, - "FloatValue": true, - "Int64Value": true, - "UInt64Value": true, - "Int32Value": true, - "UInt32Value": true, - "BoolValue": true, - "StringValue": true, - "BytesValue": true, -} - -// getterDefault finds the default value for the field to return from a getter, -// regardless of if it's a built in default or explicit from the source. Returns e.g. "nil", `""`, "Default_MessageType_FieldName" -func (g *Generator) getterDefault(field *descriptor.FieldDescriptorProto, goMessageType string) string { - if isRepeated(field) { - return "nil" - } - if def := field.GetDefaultValue(); def != "" { - defaultConstant := g.defaultConstantName(goMessageType, field.GetName()) - if *field.Type != descriptor.FieldDescriptorProto_TYPE_BYTES { - return defaultConstant - } - return "append([]byte(nil), " + defaultConstant + "...)" - } - switch *field.Type { - case descriptor.FieldDescriptorProto_TYPE_BOOL: - return "false" - case descriptor.FieldDescriptorProto_TYPE_STRING: - return `""` - case descriptor.FieldDescriptorProto_TYPE_GROUP, descriptor.FieldDescriptorProto_TYPE_MESSAGE, descriptor.FieldDescriptorProto_TYPE_BYTES: - return "nil" - case descriptor.FieldDescriptorProto_TYPE_ENUM: - obj := g.ObjectNamed(field.GetTypeName()) - var enum *EnumDescriptor - if id, ok := obj.(*ImportedDescriptor); ok { - // The enum type has been publicly imported. - enum, _ = id.o.(*EnumDescriptor) - } else { - enum, _ = obj.(*EnumDescriptor) - } - if enum == nil { - log.Printf("don't know how to generate getter for %s", field.GetName()) - return "nil" - } - if len(enum.Value) == 0 { - return "0 // empty enum" - } - first := enum.Value[0].GetName() - return g.DefaultPackageName(obj) + enum.prefix() + first - default: - return "0" - } -} - -// defaultConstantName builds the name of the default constant from the message -// type name and the untouched field name, e.g. "Default_MessageType_FieldName" -func (g *Generator) defaultConstantName(goMessageType, protoFieldName string) string { - return "Default_" + goMessageType + "_" + CamelCase(protoFieldName) -} - -// The different types of fields in a message and how to actually print them -// Most of the logic for generateMessage is in the methods of these types. -// -// Note that the content of the field is irrelevant, a simpleField can contain -// anything from a scalar to a group (which is just a message). -// -// Extension fields (and message sets) are however handled separately. -// -// simpleField - a field that is neiter weak nor oneof, possibly repeated -// oneofField - field containing list of subfields: -// - oneofSubField - a field within the oneof - -// msgCtx contains the context for the generator functions. -type msgCtx struct { - goName string // Go struct name of the message, e.g. MessageName - message *Descriptor // The descriptor for the message -} - -// fieldCommon contains data common to all types of fields. -type fieldCommon struct { - goName string // Go name of field, e.g. "FieldName" or "Descriptor_" - protoName string // Name of field in proto language, e.g. "field_name" or "descriptor" - getterName string // Name of the getter, e.g. "GetFieldName" or "GetDescriptor_" - goType string // The Go type as a string, e.g. "*int32" or "*OtherMessage" - tags string // The tag string/annotation for the type, e.g. `protobuf:"varint,8,opt,name=region_id,json=regionId"` - fullPath string // The full path of the field as used by Annotate etc, e.g. "4,0,2,0" -} - -// getProtoName gets the proto name of a field, e.g. "field_name" or "descriptor". -func (f *fieldCommon) getProtoName() string { - return f.protoName -} - -// getGoType returns the go type of the field as a string, e.g. "*int32". -func (f *fieldCommon) getGoType() string { - return f.goType -} - -// simpleField is not weak, not a oneof, not an extension. Can be required, optional or repeated. -type simpleField struct { - fieldCommon - protoTypeName string // Proto type name, empty if primitive, e.g. ".google.protobuf.Duration" - protoType descriptor.FieldDescriptorProto_Type // Actual type enum value, e.g. descriptor.FieldDescriptorProto_TYPE_FIXED64 - deprecated string // Deprecation comment, if any, e.g. "// Deprecated: Do not use." - getterDef string // Default for getters, e.g. "nil", `""` or "Default_MessageType_FieldName" - protoDef string // Default value as defined in the proto file, e.g "yoshi" or "5" - comment string // The full comment for the field, e.g. "// Useful information" -} - -// decl prints the declaration of the field in the struct (if any). -func (f *simpleField) decl(g *Generator, mc *msgCtx) { - g.P(f.comment, Annotate(mc.message.file, f.fullPath, f.goName), "\t", f.goType, "\t`", f.tags, "`", f.deprecated) -} - -// getter prints the getter for the field. -func (f *simpleField) getter(g *Generator, mc *msgCtx) { - star := "" - tname := f.goType - if needsStar(f.protoType) && tname[0] == '*' { - tname = tname[1:] - star = "*" - } - if f.deprecated != "" { - g.P(f.deprecated) - } - g.P("func (m *", mc.goName, ") ", Annotate(mc.message.file, f.fullPath, f.getterName), "() "+tname+" {") - if f.getterDef == "nil" { // Simpler getter - g.P("if m != nil {") - g.P("return m." + f.goName) - g.P("}") - g.P("return nil") - g.P("}") - g.P() - return - } - if mc.message.proto3() { - g.P("if m != nil {") - } else { - g.P("if m != nil && m." + f.goName + " != nil {") - } - g.P("return " + star + "m." + f.goName) - g.P("}") - g.P("return ", f.getterDef) - g.P("}") - g.P() -} - -// setter prints the setter method of the field. -func (f *simpleField) setter(g *Generator, mc *msgCtx) { - // No setter for regular fields yet -} - -// getProtoDef returns the default value explicitly stated in the proto file, e.g "yoshi" or "5". -func (f *simpleField) getProtoDef() string { - return f.protoDef -} - -// getProtoTypeName returns the protobuf type name for the field as returned by field.GetTypeName(), e.g. ".google.protobuf.Duration". -func (f *simpleField) getProtoTypeName() string { - return f.protoTypeName -} - -// getProtoType returns the *field.Type value, e.g. descriptor.FieldDescriptorProto_TYPE_FIXED64. -func (f *simpleField) getProtoType() descriptor.FieldDescriptorProto_Type { - return f.protoType -} - -// oneofSubFields are kept slize held by each oneofField. They do not appear in the top level slize of fields for the message. -type oneofSubField struct { - fieldCommon - protoTypeName string // Proto type name, empty if primitive, e.g. ".google.protobuf.Duration" - protoType descriptor.FieldDescriptorProto_Type // Actual type enum value, e.g. descriptor.FieldDescriptorProto_TYPE_FIXED64 - oneofTypeName string // Type name of the enclosing struct, e.g. "MessageName_FieldName" - fieldNumber int // Actual field number, as defined in proto, e.g. 12 - getterDef string // Default for getters, e.g. "nil", `""` or "Default_MessageType_FieldName" - protoDef string // Default value as defined in the proto file, e.g "yoshi" or "5" - deprecated string // Deprecation comment, if any. -} - -// typedNil prints a nil casted to the pointer to this field. -// - for XXX_OneofWrappers -func (f *oneofSubField) typedNil(g *Generator) { - g.P("(*", f.oneofTypeName, ")(nil),") -} - -// getProtoDef returns the default value explicitly stated in the proto file, e.g "yoshi" or "5". -func (f *oneofSubField) getProtoDef() string { - return f.protoDef -} - -// getProtoTypeName returns the protobuf type name for the field as returned by field.GetTypeName(), e.g. ".google.protobuf.Duration". -func (f *oneofSubField) getProtoTypeName() string { - return f.protoTypeName -} - -// getProtoType returns the *field.Type value, e.g. descriptor.FieldDescriptorProto_TYPE_FIXED64. -func (f *oneofSubField) getProtoType() descriptor.FieldDescriptorProto_Type { - return f.protoType -} - -// oneofField represents the oneof on top level. -// The alternative fields within the oneof are represented by oneofSubField. -type oneofField struct { - fieldCommon - subFields []*oneofSubField // All the possible oneof fields - comment string // The full comment for the field, e.g. "// Types that are valid to be assigned to MyOneof:\n\\" -} - -// decl prints the declaration of the field in the struct (if any). -func (f *oneofField) decl(g *Generator, mc *msgCtx) { - comment := f.comment - for _, sf := range f.subFields { - comment += "//\t*" + sf.oneofTypeName + "\n" - } - g.P(comment, Annotate(mc.message.file, f.fullPath, f.goName), " ", f.goType, " `", f.tags, "`") -} - -// getter for a oneof field will print additional discriminators and interfaces for the oneof, -// also it prints all the getters for the sub fields. -func (f *oneofField) getter(g *Generator, mc *msgCtx) { - // The discriminator type - g.P("type ", f.goType, " interface {") - g.P(f.goType, "()") - g.P("}") - g.P() - // The subField types, fulfilling the discriminator type contract - for _, sf := range f.subFields { - g.P("type ", Annotate(mc.message.file, sf.fullPath, sf.oneofTypeName), " struct {") - g.P(Annotate(mc.message.file, sf.fullPath, sf.goName), " ", sf.goType, " `", sf.tags, "`") - g.P("}") - g.P() - } - for _, sf := range f.subFields { - g.P("func (*", sf.oneofTypeName, ") ", f.goType, "() {}") - g.P() - } - // Getter for the oneof field - g.P("func (m *", mc.goName, ") ", Annotate(mc.message.file, f.fullPath, f.getterName), "() ", f.goType, " {") - g.P("if m != nil { return m.", f.goName, " }") - g.P("return nil") - g.P("}") - g.P() - // Getters for each oneof - for _, sf := range f.subFields { - if sf.deprecated != "" { - g.P(sf.deprecated) - } - g.P("func (m *", mc.goName, ") ", Annotate(mc.message.file, sf.fullPath, sf.getterName), "() "+sf.goType+" {") - g.P("if x, ok := m.", f.getterName, "().(*", sf.oneofTypeName, "); ok {") - g.P("return x.", sf.goName) - g.P("}") - g.P("return ", sf.getterDef) - g.P("}") - g.P() - } -} - -// setter prints the setter method of the field. -func (f *oneofField) setter(g *Generator, mc *msgCtx) { - // No setters for oneof yet -} - -// topLevelField interface implemented by all types of fields on the top level (not oneofSubField). -type topLevelField interface { - decl(g *Generator, mc *msgCtx) // print declaration within the struct - getter(g *Generator, mc *msgCtx) // print getter - setter(g *Generator, mc *msgCtx) // print setter if applicable -} - -// defField interface implemented by all types of fields that can have defaults (not oneofField, but instead oneofSubField). -type defField interface { - getProtoDef() string // default value explicitly stated in the proto file, e.g "yoshi" or "5" - getProtoName() string // proto name of a field, e.g. "field_name" or "descriptor" - getGoType() string // go type of the field as a string, e.g. "*int32" - getProtoTypeName() string // protobuf type name for the field, e.g. ".google.protobuf.Duration" - getProtoType() descriptor.FieldDescriptorProto_Type // *field.Type value, e.g. descriptor.FieldDescriptorProto_TYPE_FIXED64 -} - -// generateDefaultConstants adds constants for default values if needed, which is only if the default value is. -// explicit in the proto. -func (g *Generator) generateDefaultConstants(mc *msgCtx, topLevelFields []topLevelField) { - // Collect fields that can have defaults - dFields := []defField{} - for _, pf := range topLevelFields { - if f, ok := pf.(*oneofField); ok { - for _, osf := range f.subFields { - dFields = append(dFields, osf) - } - continue - } - dFields = append(dFields, pf.(defField)) - } - for _, df := range dFields { - def := df.getProtoDef() - if def == "" { - continue - } - fieldname := g.defaultConstantName(mc.goName, df.getProtoName()) - typename := df.getGoType() - if typename[0] == '*' { - typename = typename[1:] - } - kind := "const " - switch { - case typename == "bool": - case typename == "string": - def = strconv.Quote(def) - case typename == "[]byte": - def = "[]byte(" + strconv.Quote(unescape(def)) + ")" - kind = "var " - case def == "inf", def == "-inf", def == "nan": - // These names are known to, and defined by, the protocol language. - switch def { - case "inf": - def = "math.Inf(1)" - case "-inf": - def = "math.Inf(-1)" - case "nan": - def = "math.NaN()" - } - if df.getProtoType() == descriptor.FieldDescriptorProto_TYPE_FLOAT { - def = "float32(" + def + ")" - } - kind = "var " - case df.getProtoType() == descriptor.FieldDescriptorProto_TYPE_FLOAT: - if f, err := strconv.ParseFloat(def, 32); err == nil { - def = fmt.Sprint(float32(f)) - } - case df.getProtoType() == descriptor.FieldDescriptorProto_TYPE_DOUBLE: - if f, err := strconv.ParseFloat(def, 64); err == nil { - def = fmt.Sprint(f) - } - case df.getProtoType() == descriptor.FieldDescriptorProto_TYPE_ENUM: - // Must be an enum. Need to construct the prefixed name. - obj := g.ObjectNamed(df.getProtoTypeName()) - var enum *EnumDescriptor - if id, ok := obj.(*ImportedDescriptor); ok { - // The enum type has been publicly imported. - enum, _ = id.o.(*EnumDescriptor) - } else { - enum, _ = obj.(*EnumDescriptor) - } - if enum == nil { - log.Printf("don't know how to generate constant for %s", fieldname) - continue - } - def = g.DefaultPackageName(obj) + enum.prefix() + def - } - g.P(kind, fieldname, " ", typename, " = ", def) - g.file.addExport(mc.message, constOrVarSymbol{fieldname, kind, ""}) - } - g.P() -} - -// generateInternalStructFields just adds the XXX_ fields to the message struct. -func (g *Generator) generateInternalStructFields(mc *msgCtx, topLevelFields []topLevelField) { - g.P("XXX_NoUnkeyedLiteral\tstruct{} `json:\"-\"`") // prevent unkeyed struct literals - if len(mc.message.ExtensionRange) > 0 { - messageset := "" - if opts := mc.message.Options; opts != nil && opts.GetMessageSetWireFormat() { - messageset = "protobuf_messageset:\"1\" " - } - g.P(g.Pkg["proto"], ".XXX_InternalExtensions `", messageset, "json:\"-\"`") - } - g.P("XXX_unrecognized\t[]byte `json:\"-\"`") - g.P("XXX_sizecache\tint32 `json:\"-\"`") - -} - -// generateOneofFuncs adds all the utility functions for oneof, including marshaling, unmarshaling and sizer. -func (g *Generator) generateOneofFuncs(mc *msgCtx, topLevelFields []topLevelField) { - ofields := []*oneofField{} - for _, f := range topLevelFields { - if o, ok := f.(*oneofField); ok { - ofields = append(ofields, o) - } - } - if len(ofields) == 0 { - return - } - - // OneofFuncs - g.P("// XXX_OneofWrappers is for the internal use of the proto package.") - g.P("func (*", mc.goName, ") XXX_OneofWrappers() []interface{} {") - g.P("return []interface{}{") - for _, of := range ofields { - for _, sf := range of.subFields { - sf.typedNil(g) - } - } - g.P("}") - g.P("}") - g.P() -} - -// generateMessageStruct adds the actual struct with it's members (but not methods) to the output. -func (g *Generator) generateMessageStruct(mc *msgCtx, topLevelFields []topLevelField) { - comments := g.PrintComments(mc.message.path) - - // Guarantee deprecation comments appear after user-provided comments. - if mc.message.GetOptions().GetDeprecated() { - if comments { - // Convention: Separate deprecation comments from original - // comments with an empty line. - g.P("//") - } - g.P(deprecationComment) - } - - g.P("type ", Annotate(mc.message.file, mc.message.path, mc.goName), " struct {") - for _, pf := range topLevelFields { - pf.decl(g, mc) - } - g.generateInternalStructFields(mc, topLevelFields) - g.P("}") -} - -// generateGetters adds getters for all fields, including oneofs and weak fields when applicable. -func (g *Generator) generateGetters(mc *msgCtx, topLevelFields []topLevelField) { - for _, pf := range topLevelFields { - pf.getter(g, mc) - } -} - -// generateSetters add setters for all fields, including oneofs and weak fields when applicable. -func (g *Generator) generateSetters(mc *msgCtx, topLevelFields []topLevelField) { - for _, pf := range topLevelFields { - pf.setter(g, mc) - } -} - -// generateCommonMethods adds methods to the message that are not on a per field basis. -func (g *Generator) generateCommonMethods(mc *msgCtx) { - // Reset, String and ProtoMessage methods. - g.P("func (m *", mc.goName, ") Reset() { *m = ", mc.goName, "{} }") - g.P("func (m *", mc.goName, ") String() string { return ", g.Pkg["proto"], ".CompactTextString(m) }") - g.P("func (*", mc.goName, ") ProtoMessage() {}") - var indexes []string - for m := mc.message; m != nil; m = m.parent { - indexes = append([]string{strconv.Itoa(m.index)}, indexes...) - } - g.P("func (*", mc.goName, ") Descriptor() ([]byte, []int) {") - g.P("return ", g.file.VarName(), ", []int{", strings.Join(indexes, ", "), "}") - g.P("}") - g.P() - // TODO: Revisit the decision to use a XXX_WellKnownType method - // if we change proto.MessageName to work with multiple equivalents. - if mc.message.file.GetPackage() == "google.protobuf" && wellKnownTypes[mc.message.GetName()] { - g.P("func (*", mc.goName, `) XXX_WellKnownType() string { return "`, mc.message.GetName(), `" }`) - g.P() - } - - // Extension support methods - if len(mc.message.ExtensionRange) > 0 { - g.P() - g.P("var extRange_", mc.goName, " = []", g.Pkg["proto"], ".ExtensionRange{") - for _, r := range mc.message.ExtensionRange { - end := fmt.Sprint(*r.End - 1) // make range inclusive on both ends - g.P("{Start: ", r.Start, ", End: ", end, "},") - } - g.P("}") - g.P("func (*", mc.goName, ") ExtensionRangeArray() []", g.Pkg["proto"], ".ExtensionRange {") - g.P("return extRange_", mc.goName) - g.P("}") - g.P() - } - - // TODO: It does not scale to keep adding another method for every - // operation on protos that we want to switch over to using the - // table-driven approach. Instead, we should only add a single method - // that allows getting access to the *InternalMessageInfo struct and then - // calling Unmarshal, Marshal, Merge, Size, and Discard directly on that. - - // Wrapper for table-driven marshaling and unmarshaling. - g.P("func (m *", mc.goName, ") XXX_Unmarshal(b []byte) error {") - g.P("return xxx_messageInfo_", mc.goName, ".Unmarshal(m, b)") - g.P("}") - - g.P("func (m *", mc.goName, ") XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {") - g.P("return xxx_messageInfo_", mc.goName, ".Marshal(b, m, deterministic)") - g.P("}") - - g.P("func (m *", mc.goName, ") XXX_Merge(src ", g.Pkg["proto"], ".Message) {") - g.P("xxx_messageInfo_", mc.goName, ".Merge(m, src)") - g.P("}") - - g.P("func (m *", mc.goName, ") XXX_Size() int {") // avoid name clash with "Size" field in some message - g.P("return xxx_messageInfo_", mc.goName, ".Size(m)") - g.P("}") - - g.P("func (m *", mc.goName, ") XXX_DiscardUnknown() {") - g.P("xxx_messageInfo_", mc.goName, ".DiscardUnknown(m)") - g.P("}") - - g.P("var xxx_messageInfo_", mc.goName, " ", g.Pkg["proto"], ".InternalMessageInfo") - g.P() -} - -// Generate the type, methods and default constant definitions for this Descriptor. -func (g *Generator) generateMessage(message *Descriptor) { - topLevelFields := []topLevelField{} - oFields := make(map[int32]*oneofField) - // The full type name - typeName := message.TypeName() - // The full type name, CamelCased. - goTypeName := CamelCaseSlice(typeName) - - usedNames := make(map[string]bool) - for _, n := range methodNames { - usedNames[n] = true - } - - // allocNames finds a conflict-free variation of the given strings, - // consistently mutating their suffixes. - // It returns the same number of strings. - allocNames := func(ns ...string) []string { - Loop: - for { - for _, n := range ns { - if usedNames[n] { - for i := range ns { - ns[i] += "_" - } - continue Loop - } - } - for _, n := range ns { - usedNames[n] = true - } - return ns - } - } - - mapFieldTypes := make(map[*descriptor.FieldDescriptorProto]string) // keep track of the map fields to be added later - - // Build a structure more suitable for generating the text in one pass - for i, field := range message.Field { - // Allocate the getter and the field at the same time so name - // collisions create field/method consistent names. - // TODO: This allocation occurs based on the order of the fields - // in the proto file, meaning that a change in the field - // ordering can change generated Method/Field names. - base := CamelCase(*field.Name) - ns := allocNames(base, "Get"+base) - fieldName, fieldGetterName := ns[0], ns[1] - typename, wiretype := g.GoType(message, field) - jsonName := *field.Name - tag := fmt.Sprintf("protobuf:%s json:%q", g.goTag(message, field, wiretype), jsonName+",omitempty") - - oneof := field.OneofIndex != nil - if oneof && oFields[*field.OneofIndex] == nil { - odp := message.OneofDecl[int(*field.OneofIndex)] - base := CamelCase(odp.GetName()) - fname := allocNames(base)[0] - - // This is the first field of a oneof we haven't seen before. - // Generate the union field. - oneofFullPath := fmt.Sprintf("%s,%d,%d", message.path, messageOneofPath, *field.OneofIndex) - c, ok := g.makeComments(oneofFullPath) - if ok { - c += "\n//\n" - } - c += "// Types that are valid to be assigned to " + fname + ":\n" - // Generate the rest of this comment later, - // when we've computed any disambiguation. - - dname := "is" + goTypeName + "_" + fname - tag := `protobuf_oneof:"` + odp.GetName() + `"` - of := oneofField{ - fieldCommon: fieldCommon{ - goName: fname, - getterName: "Get" + fname, - goType: dname, - tags: tag, - protoName: odp.GetName(), - fullPath: oneofFullPath, - }, - comment: c, - } - topLevelFields = append(topLevelFields, &of) - oFields[*field.OneofIndex] = &of - } - - if *field.Type == descriptor.FieldDescriptorProto_TYPE_MESSAGE { - desc := g.ObjectNamed(field.GetTypeName()) - if d, ok := desc.(*Descriptor); ok && d.GetOptions().GetMapEntry() { - // Figure out the Go types and tags for the key and value types. - keyField, valField := d.Field[0], d.Field[1] - keyType, keyWire := g.GoType(d, keyField) - valType, valWire := g.GoType(d, valField) - keyTag, valTag := g.goTag(d, keyField, keyWire), g.goTag(d, valField, valWire) - - // We don't use stars, except for message-typed values. - // Message and enum types are the only two possibly foreign types used in maps, - // so record their use. They are not permitted as map keys. - keyType = strings.TrimPrefix(keyType, "*") - switch *valField.Type { - case descriptor.FieldDescriptorProto_TYPE_ENUM: - valType = strings.TrimPrefix(valType, "*") - g.RecordTypeUse(valField.GetTypeName()) - case descriptor.FieldDescriptorProto_TYPE_MESSAGE: - g.RecordTypeUse(valField.GetTypeName()) - default: - valType = strings.TrimPrefix(valType, "*") - } - - typename = fmt.Sprintf("map[%s]%s", keyType, valType) - mapFieldTypes[field] = typename // record for the getter generation - - tag += fmt.Sprintf(" protobuf_key:%s protobuf_val:%s", keyTag, valTag) - } - } - - fieldDeprecated := "" - if field.GetOptions().GetDeprecated() { - fieldDeprecated = deprecationComment - } - - dvalue := g.getterDefault(field, goTypeName) - if oneof { - tname := goTypeName + "_" + fieldName - // It is possible for this to collide with a message or enum - // nested in this message. Check for collisions. - for { - ok := true - for _, desc := range message.nested { - if CamelCaseSlice(desc.TypeName()) == tname { - ok = false - break - } - } - for _, enum := range message.enums { - if CamelCaseSlice(enum.TypeName()) == tname { - ok = false - break - } - } - if !ok { - tname += "_" - continue - } - break - } - - oneofField := oFields[*field.OneofIndex] - tag := "protobuf:" + g.goTag(message, field, wiretype) - sf := oneofSubField{ - fieldCommon: fieldCommon{ - goName: fieldName, - getterName: fieldGetterName, - goType: typename, - tags: tag, - protoName: field.GetName(), - fullPath: fmt.Sprintf("%s,%d,%d", message.path, messageFieldPath, i), - }, - protoTypeName: field.GetTypeName(), - fieldNumber: int(*field.Number), - protoType: *field.Type, - getterDef: dvalue, - protoDef: field.GetDefaultValue(), - oneofTypeName: tname, - deprecated: fieldDeprecated, - } - oneofField.subFields = append(oneofField.subFields, &sf) - g.RecordTypeUse(field.GetTypeName()) - continue - } - - fieldFullPath := fmt.Sprintf("%s,%d,%d", message.path, messageFieldPath, i) - c, ok := g.makeComments(fieldFullPath) - if ok { - c += "\n" - } - rf := simpleField{ - fieldCommon: fieldCommon{ - goName: fieldName, - getterName: fieldGetterName, - goType: typename, - tags: tag, - protoName: field.GetName(), - fullPath: fieldFullPath, - }, - protoTypeName: field.GetTypeName(), - protoType: *field.Type, - deprecated: fieldDeprecated, - getterDef: dvalue, - protoDef: field.GetDefaultValue(), - comment: c, - } - var pf topLevelField = &rf - - topLevelFields = append(topLevelFields, pf) - g.RecordTypeUse(field.GetTypeName()) - } - - mc := &msgCtx{ - goName: goTypeName, - message: message, - } - - g.generateMessageStruct(mc, topLevelFields) - g.P() - g.generateCommonMethods(mc) - g.P() - g.generateDefaultConstants(mc, topLevelFields) - g.P() - g.generateGetters(mc, topLevelFields) - g.P() - g.generateSetters(mc, topLevelFields) - g.P() - g.generateOneofFuncs(mc, topLevelFields) - g.P() - - var oneofTypes []string - for _, f := range topLevelFields { - if of, ok := f.(*oneofField); ok { - for _, osf := range of.subFields { - oneofTypes = append(oneofTypes, osf.oneofTypeName) - } - } - } - - opts := message.Options - ms := &messageSymbol{ - sym: goTypeName, - hasExtensions: len(message.ExtensionRange) > 0, - isMessageSet: opts != nil && opts.GetMessageSetWireFormat(), - oneofTypes: oneofTypes, - } - g.file.addExport(message, ms) - - for _, ext := range message.ext { - g.generateExtension(ext) - } - - fullName := strings.Join(message.TypeName(), ".") - if g.file.Package != nil { - fullName = *g.file.Package + "." + fullName - } - - g.addInitf("%s.RegisterType((*%s)(nil), %q)", g.Pkg["proto"], goTypeName, fullName) - // Register types for native map types. - for _, k := range mapFieldKeys(mapFieldTypes) { - fullName := strings.TrimPrefix(*k.TypeName, ".") - g.addInitf("%s.RegisterMapType((%s)(nil), %q)", g.Pkg["proto"], mapFieldTypes[k], fullName) - } - -} - -type byTypeName []*descriptor.FieldDescriptorProto - -func (a byTypeName) Len() int { return len(a) } -func (a byTypeName) Swap(i, j int) { a[i], a[j] = a[j], a[i] } -func (a byTypeName) Less(i, j int) bool { return *a[i].TypeName < *a[j].TypeName } - -// mapFieldKeys returns the keys of m in a consistent order. -func mapFieldKeys(m map[*descriptor.FieldDescriptorProto]string) []*descriptor.FieldDescriptorProto { - keys := make([]*descriptor.FieldDescriptorProto, 0, len(m)) - for k := range m { - keys = append(keys, k) - } - sort.Sort(byTypeName(keys)) - return keys -} - -var escapeChars = [256]byte{ - 'a': '\a', 'b': '\b', 'f': '\f', 'n': '\n', 'r': '\r', 't': '\t', 'v': '\v', '\\': '\\', '"': '"', '\'': '\'', '?': '?', -} - -// unescape reverses the "C" escaping that protoc does for default values of bytes fields. -// It is best effort in that it effectively ignores malformed input. Seemingly invalid escape -// sequences are conveyed, unmodified, into the decoded result. -func unescape(s string) string { - // NB: Sadly, we can't use strconv.Unquote because protoc will escape both - // single and double quotes, but strconv.Unquote only allows one or the - // other (based on actual surrounding quotes of its input argument). - - var out []byte - for len(s) > 0 { - // regular character, or too short to be valid escape - if s[0] != '\\' || len(s) < 2 { - out = append(out, s[0]) - s = s[1:] - } else if c := escapeChars[s[1]]; c != 0 { - // escape sequence - out = append(out, c) - s = s[2:] - } else if s[1] == 'x' || s[1] == 'X' { - // hex escape, e.g. "\x80 - if len(s) < 4 { - // too short to be valid - out = append(out, s[:2]...) - s = s[2:] - continue - } - v, err := strconv.ParseUint(s[2:4], 16, 8) - if err != nil { - out = append(out, s[:4]...) - } else { - out = append(out, byte(v)) - } - s = s[4:] - } else if '0' <= s[1] && s[1] <= '7' { - // octal escape, can vary from 1 to 3 octal digits; e.g., "\0" "\40" or "\164" - // so consume up to 2 more bytes or up to end-of-string - n := len(s[1:]) - len(strings.TrimLeft(s[1:], "01234567")) - if n > 3 { - n = 3 - } - v, err := strconv.ParseUint(s[1:1+n], 8, 8) - if err != nil { - out = append(out, s[:1+n]...) - } else { - out = append(out, byte(v)) - } - s = s[1+n:] - } else { - // bad escape, just propagate the slash as-is - out = append(out, s[0]) - s = s[1:] - } - } - - return string(out) -} - -func (g *Generator) generateExtension(ext *ExtensionDescriptor) { - ccTypeName := ext.DescName() - - extObj := g.ObjectNamed(*ext.Extendee) - var extDesc *Descriptor - if id, ok := extObj.(*ImportedDescriptor); ok { - // This is extending a publicly imported message. - // We need the underlying type for goTag. - extDesc = id.o.(*Descriptor) - } else { - extDesc = extObj.(*Descriptor) - } - extendedType := "*" + g.TypeName(extObj) // always use the original - field := ext.FieldDescriptorProto - fieldType, wireType := g.GoType(ext.parent, field) - tag := g.goTag(extDesc, field, wireType) - g.RecordTypeUse(*ext.Extendee) - if n := ext.FieldDescriptorProto.TypeName; n != nil { - // foreign extension type - g.RecordTypeUse(*n) - } - - typeName := ext.TypeName() - - // Special case for proto2 message sets: If this extension is extending - // proto2.bridge.MessageSet, and its final name component is "message_set_extension", - // then drop that last component. - // - // TODO: This should be implemented in the text formatter rather than the generator. - // In addition, the situation for when to apply this special case is implemented - // differently in other languages: - // https://github.com/google/protobuf/blob/aff10976/src/google/protobuf/text_format.cc#L1560 - if extDesc.GetOptions().GetMessageSetWireFormat() && typeName[len(typeName)-1] == "message_set_extension" { - typeName = typeName[:len(typeName)-1] - } - - // For text formatting, the package must be exactly what the .proto file declares, - // ignoring overrides such as the go_package option, and with no dot/underscore mapping. - extName := strings.Join(typeName, ".") - if g.file.Package != nil { - extName = *g.file.Package + "." + extName - } - - g.P("var ", ccTypeName, " = &", g.Pkg["proto"], ".ExtensionDesc{") - g.P("ExtendedType: (", extendedType, ")(nil),") - g.P("ExtensionType: (", fieldType, ")(nil),") - g.P("Field: ", field.Number, ",") - g.P(`Name: "`, extName, `",`) - g.P("Tag: ", tag, ",") - g.P(`Filename: "`, g.file.GetName(), `",`) - - g.P("}") - g.P() - - g.addInitf("%s.RegisterExtension(%s)", g.Pkg["proto"], ext.DescName()) - - g.file.addExport(ext, constOrVarSymbol{ccTypeName, "var", ""}) -} - -func (g *Generator) generateInitFunction() { - if len(g.init) == 0 { - return - } - g.P("func init() {") - for _, l := range g.init { - g.P(l) - } - g.P("}") - g.init = nil -} - -func (g *Generator) generateFileDescriptor(file *FileDescriptor) { - // Make a copy and trim source_code_info data. - // TODO: Trim this more when we know exactly what we need. - pb := proto.Clone(file.FileDescriptorProto).(*descriptor.FileDescriptorProto) - pb.SourceCodeInfo = nil - - b, err := proto.Marshal(pb) - if err != nil { - g.Fail(err.Error()) - } - - var buf bytes.Buffer - w, _ := gzip.NewWriterLevel(&buf, gzip.BestCompression) - w.Write(b) - w.Close() - b = buf.Bytes() - - v := file.VarName() - g.P() - g.P("func init() {") - g.P(g.Pkg["proto"], ".RegisterFile(", strconv.Quote(*file.Name), ", ", v, ")") - g.P("}") - g.P("var ", v, " = []byte{") - g.P("// ", len(b), " bytes of a gzipped FileDescriptorProto") - for len(b) > 0 { - n := 16 - if n > len(b) { - n = len(b) - } - - s := "" - for _, c := range b[:n] { - s += fmt.Sprintf("0x%02x,", c) - } - g.P(s) - - b = b[n:] - } - g.P("}") -} - -func (g *Generator) generateEnumRegistration(enum *EnumDescriptor) { - // // We always print the full (proto-world) package name here. - pkg := enum.File().GetPackage() - if pkg != "" { - pkg += "." - } - // The full type name - typeName := enum.TypeName() - // The full type name, CamelCased. - ccTypeName := CamelCaseSlice(typeName) - g.addInitf("%s.RegisterEnum(%q, %[3]s_name, %[3]s_value)", g.Pkg["proto"], pkg+ccTypeName, ccTypeName) -} - -// And now lots of helper functions. - -// Is c an ASCII lower-case letter? -func isASCIILower(c byte) bool { - return 'a' <= c && c <= 'z' -} - -// Is c an ASCII digit? -func isASCIIDigit(c byte) bool { - return '0' <= c && c <= '9' -} - -// CamelCase returns the CamelCased name. -// If there is an interior underscore followed by a lower case letter, -// drop the underscore and convert the letter to upper case. -// There is a remote possibility of this rewrite causing a name collision, -// but it's so remote we're prepared to pretend it's nonexistent - since the -// C++ generator lowercases names, it's extremely unlikely to have two fields -// with different capitalizations. -// In short, _my_field_name_2 becomes XMyFieldName_2. -func CamelCase(s string) string { - if s == "" { - return "" - } - t := make([]byte, 0, 32) - i := 0 - if s[0] == '_' { - // Need a capital letter; drop the '_'. - t = append(t, 'X') - i++ - } - // Invariant: if the next letter is lower case, it must be converted - // to upper case. - // That is, we process a word at a time, where words are marked by _ or - // upper case letter. Digits are treated as words. - for ; i < len(s); i++ { - c := s[i] - if c == '_' && i+1 < len(s) && isASCIILower(s[i+1]) { - continue // Skip the underscore in s. - } - if isASCIIDigit(c) { - t = append(t, c) - continue - } - // Assume we have a letter now - if not, it's a bogus identifier. - // The next word is a sequence of characters that must start upper case. - if isASCIILower(c) { - c ^= ' ' // Make it a capital letter. - } - t = append(t, c) // Guaranteed not lower case. - // Accept lower case sequence that follows. - for i+1 < len(s) && isASCIILower(s[i+1]) { - i++ - t = append(t, s[i]) - } - } - return string(t) -} - -// CamelCaseSlice is like CamelCase, but the argument is a slice of strings to -// be joined with "_". -func CamelCaseSlice(elem []string) string { return CamelCase(strings.Join(elem, "_")) } - -// dottedSlice turns a sliced name into a dotted name. -func dottedSlice(elem []string) string { return strings.Join(elem, ".") } - -// Is this field optional? -func isOptional(field *descriptor.FieldDescriptorProto) bool { - return field.Label != nil && *field.Label == descriptor.FieldDescriptorProto_LABEL_OPTIONAL -} - -// Is this field required? -func isRequired(field *descriptor.FieldDescriptorProto) bool { - return field.Label != nil && *field.Label == descriptor.FieldDescriptorProto_LABEL_REQUIRED -} - -// Is this field repeated? -func isRepeated(field *descriptor.FieldDescriptorProto) bool { - return field.Label != nil && *field.Label == descriptor.FieldDescriptorProto_LABEL_REPEATED -} - -// Is this field a scalar numeric type? -func isScalar(field *descriptor.FieldDescriptorProto) bool { - if field.Type == nil { - return false - } - switch *field.Type { - case descriptor.FieldDescriptorProto_TYPE_DOUBLE, - descriptor.FieldDescriptorProto_TYPE_FLOAT, - descriptor.FieldDescriptorProto_TYPE_INT64, - descriptor.FieldDescriptorProto_TYPE_UINT64, - descriptor.FieldDescriptorProto_TYPE_INT32, - descriptor.FieldDescriptorProto_TYPE_FIXED64, - descriptor.FieldDescriptorProto_TYPE_FIXED32, - descriptor.FieldDescriptorProto_TYPE_BOOL, - descriptor.FieldDescriptorProto_TYPE_UINT32, - descriptor.FieldDescriptorProto_TYPE_ENUM, - descriptor.FieldDescriptorProto_TYPE_SFIXED32, - descriptor.FieldDescriptorProto_TYPE_SFIXED64, - descriptor.FieldDescriptorProto_TYPE_SINT32, - descriptor.FieldDescriptorProto_TYPE_SINT64: - return true - default: - return false - } -} - -// badToUnderscore is the mapping function used to generate Go names from package names, -// which can be dotted in the input .proto file. It replaces non-identifier characters such as -// dot or dash with underscore. -func badToUnderscore(r rune) rune { - if unicode.IsLetter(r) || unicode.IsDigit(r) || r == '_' { - return r - } - return '_' -} - -// baseName returns the last path element of the name, with the last dotted suffix removed. -func baseName(name string) string { - // First, find the last element - if i := strings.LastIndex(name, "/"); i >= 0 { - name = name[i+1:] - } - // Now drop the suffix - if i := strings.LastIndex(name, "."); i >= 0 { - name = name[0:i] - } - return name -} - -// The SourceCodeInfo message describes the location of elements of a parsed -// .proto file by way of a "path", which is a sequence of integers that -// describe the route from a FileDescriptorProto to the relevant submessage. -// The path alternates between a field number of a repeated field, and an index -// into that repeated field. The constants below define the field numbers that -// are used. -// -// See descriptor.proto for more information about this. -const ( - // tag numbers in FileDescriptorProto - packagePath = 2 // package - messagePath = 4 // message_type - enumPath = 5 // enum_type - // tag numbers in DescriptorProto - messageFieldPath = 2 // field - messageMessagePath = 3 // nested_type - messageEnumPath = 4 // enum_type - messageOneofPath = 8 // oneof_decl - // tag numbers in EnumDescriptorProto - enumValuePath = 2 // value -) - -var supportTypeAliases bool - -func init() { - for _, tag := range build.Default.ReleaseTags { - if tag == "go1.9" { - supportTypeAliases = true - return - } - } -} diff --git a/vendor/github.com/golang/protobuf/protoc-gen-go/generator/internal/remap/remap.go b/vendor/github.com/golang/protobuf/protoc-gen-go/generator/internal/remap/remap.go deleted file mode 100644 index 39968eb9f..000000000 --- a/vendor/github.com/golang/protobuf/protoc-gen-go/generator/internal/remap/remap.go +++ /dev/null @@ -1,117 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2017 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -/* -Package remap handles tracking the locations of Go tokens in a source text -across a rewrite by the Go formatter. -*/ -package remap - -import ( - "fmt" - "go/scanner" - "go/token" -) - -// A Location represents a span of byte offsets in the source text. -type Location struct { - Pos, End int // End is exclusive -} - -// A Map represents a mapping between token locations in an input source text -// and locations in the corresponding output text. -type Map map[Location]Location - -// Find reports whether the specified span is recorded by m, and if so returns -// the new location it was mapped to. If the input span was not found, the -// returned location is the same as the input. -func (m Map) Find(pos, end int) (Location, bool) { - key := Location{ - Pos: pos, - End: end, - } - if loc, ok := m[key]; ok { - return loc, true - } - return key, false -} - -func (m Map) add(opos, oend, npos, nend int) { - m[Location{Pos: opos, End: oend}] = Location{Pos: npos, End: nend} -} - -// Compute constructs a location mapping from input to output. An error is -// reported if any of the tokens of output cannot be mapped. -func Compute(input, output []byte) (Map, error) { - itok := tokenize(input) - otok := tokenize(output) - if len(itok) != len(otok) { - return nil, fmt.Errorf("wrong number of tokens, %d ≠ %d", len(itok), len(otok)) - } - m := make(Map) - for i, ti := range itok { - to := otok[i] - if ti.Token != to.Token { - return nil, fmt.Errorf("token %d type mismatch: %s ≠ %s", i+1, ti, to) - } - m.add(ti.pos, ti.end, to.pos, to.end) - } - return m, nil -} - -// tokinfo records the span and type of a source token. -type tokinfo struct { - pos, end int - token.Token -} - -func tokenize(src []byte) []tokinfo { - fs := token.NewFileSet() - var s scanner.Scanner - s.Init(fs.AddFile("src", fs.Base(), len(src)), src, nil, scanner.ScanComments) - var info []tokinfo - for { - pos, next, lit := s.Scan() - switch next { - case token.SEMICOLON: - continue - } - info = append(info, tokinfo{ - pos: int(pos - 1), - end: int(pos + token.Pos(len(lit)) - 1), - Token: next, - }) - if next == token.EOF { - break - } - } - return info -} diff --git a/vendor/github.com/golang/protobuf/protoc-gen-go/grpc/grpc.go b/vendor/github.com/golang/protobuf/protoc-gen-go/grpc/grpc.go deleted file mode 100644 index 957c3f2a6..000000000 --- a/vendor/github.com/golang/protobuf/protoc-gen-go/grpc/grpc.go +++ /dev/null @@ -1,545 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2015 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Package grpc outputs gRPC service descriptions in Go code. -// It runs as a plugin for the Go protocol buffer compiler plugin. -// It is linked in to protoc-gen-go. -package grpc - -import ( - "fmt" - "strconv" - "strings" - - pb "github.com/golang/protobuf/protoc-gen-go/descriptor" - "github.com/golang/protobuf/protoc-gen-go/generator" -) - -// generatedCodeVersion indicates a version of the generated code. -// It is incremented whenever an incompatibility between the generated code and -// the grpc package is introduced; the generated code references -// a constant, grpc.SupportPackageIsVersionN (where N is generatedCodeVersion). -const generatedCodeVersion = 6 - -// Paths for packages used by code generated in this file, -// relative to the import_prefix of the generator.Generator. -const ( - contextPkgPath = "context" - grpcPkgPath = "google.golang.org/grpc" - codePkgPath = "google.golang.org/grpc/codes" - statusPkgPath = "google.golang.org/grpc/status" -) - -func init() { - generator.RegisterPlugin(new(grpc)) -} - -// grpc is an implementation of the Go protocol buffer compiler's -// plugin architecture. It generates bindings for gRPC support. -type grpc struct { - gen *generator.Generator -} - -// Name returns the name of this plugin, "grpc". -func (g *grpc) Name() string { - return "grpc" -} - -// The names for packages imported in the generated code. -// They may vary from the final path component of the import path -// if the name is used by other packages. -var ( - contextPkg string - grpcPkg string -) - -// Init initializes the plugin. -func (g *grpc) Init(gen *generator.Generator) { - g.gen = gen -} - -// Given a type name defined in a .proto, return its object. -// Also record that we're using it, to guarantee the associated import. -func (g *grpc) objectNamed(name string) generator.Object { - g.gen.RecordTypeUse(name) - return g.gen.ObjectNamed(name) -} - -// Given a type name defined in a .proto, return its name as we will print it. -func (g *grpc) typeName(str string) string { - return g.gen.TypeName(g.objectNamed(str)) -} - -// P forwards to g.gen.P. -func (g *grpc) P(args ...interface{}) { g.gen.P(args...) } - -// Generate generates code for the services in the given file. -func (g *grpc) Generate(file *generator.FileDescriptor) { - if len(file.FileDescriptorProto.Service) == 0 { - return - } - - contextPkg = string(g.gen.AddImport(contextPkgPath)) - grpcPkg = string(g.gen.AddImport(grpcPkgPath)) - - g.P("// Reference imports to suppress errors if they are not otherwise used.") - g.P("var _ ", contextPkg, ".Context") - g.P("var _ ", grpcPkg, ".ClientConnInterface") - g.P() - - // Assert version compatibility. - g.P("// This is a compile-time assertion to ensure that this generated file") - g.P("// is compatible with the grpc package it is being compiled against.") - g.P("const _ = ", grpcPkg, ".SupportPackageIsVersion", generatedCodeVersion) - g.P() - - for i, service := range file.FileDescriptorProto.Service { - g.generateService(file, service, i) - } -} - -// GenerateImports generates the import declaration for this file. -func (g *grpc) GenerateImports(file *generator.FileDescriptor) { -} - -// reservedClientName records whether a client name is reserved on the client side. -var reservedClientName = map[string]bool{ - // TODO: do we need any in gRPC? -} - -func unexport(s string) string { return strings.ToLower(s[:1]) + s[1:] } - -// deprecationComment is the standard comment added to deprecated -// messages, fields, enums, and enum values. -var deprecationComment = "// Deprecated: Do not use." - -// generateService generates all the code for the named service. -func (g *grpc) generateService(file *generator.FileDescriptor, service *pb.ServiceDescriptorProto, index int) { - path := fmt.Sprintf("6,%d", index) // 6 means service. - - origServName := service.GetName() - fullServName := origServName - if pkg := file.GetPackage(); pkg != "" { - fullServName = pkg + "." + fullServName - } - servName := generator.CamelCase(origServName) - deprecated := service.GetOptions().GetDeprecated() - - g.P() - g.P(fmt.Sprintf(`// %sClient is the client API for %s service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.`, servName, servName)) - - // Client interface. - if deprecated { - g.P("//") - g.P(deprecationComment) - } - g.P("type ", servName, "Client interface {") - for i, method := range service.Method { - g.gen.PrintComments(fmt.Sprintf("%s,2,%d", path, i)) // 2 means method in a service. - if method.GetOptions().GetDeprecated() { - g.P("//") - g.P(deprecationComment) - } - g.P(g.generateClientSignature(servName, method)) - } - g.P("}") - g.P() - - // Client structure. - g.P("type ", unexport(servName), "Client struct {") - g.P("cc ", grpcPkg, ".ClientConnInterface") - g.P("}") - g.P() - - // NewClient factory. - if deprecated { - g.P(deprecationComment) - } - g.P("func New", servName, "Client (cc ", grpcPkg, ".ClientConnInterface) ", servName, "Client {") - g.P("return &", unexport(servName), "Client{cc}") - g.P("}") - g.P() - - var methodIndex, streamIndex int - serviceDescVar := "_" + servName + "_serviceDesc" - // Client method implementations. - for _, method := range service.Method { - var descExpr string - if !method.GetServerStreaming() && !method.GetClientStreaming() { - // Unary RPC method - descExpr = fmt.Sprintf("&%s.Methods[%d]", serviceDescVar, methodIndex) - methodIndex++ - } else { - // Streaming RPC method - descExpr = fmt.Sprintf("&%s.Streams[%d]", serviceDescVar, streamIndex) - streamIndex++ - } - g.generateClientMethod(servName, fullServName, serviceDescVar, method, descExpr) - } - - // Server interface. - serverType := servName + "Server" - g.P("// ", serverType, " is the server API for ", servName, " service.") - if deprecated { - g.P("//") - g.P(deprecationComment) - } - g.P("type ", serverType, " interface {") - for i, method := range service.Method { - g.gen.PrintComments(fmt.Sprintf("%s,2,%d", path, i)) // 2 means method in a service. - if method.GetOptions().GetDeprecated() { - g.P("//") - g.P(deprecationComment) - } - g.P(g.generateServerSignature(servName, method)) - } - g.P("}") - g.P() - - // Server Unimplemented struct for forward compatibility. - if deprecated { - g.P(deprecationComment) - } - g.generateUnimplementedServer(servName, service) - - // Server registration. - if deprecated { - g.P(deprecationComment) - } - g.P("func Register", servName, "Server(s *", grpcPkg, ".Server, srv ", serverType, ") {") - g.P("s.RegisterService(&", serviceDescVar, `, srv)`) - g.P("}") - g.P() - - // Server handler implementations. - var handlerNames []string - for _, method := range service.Method { - hname := g.generateServerMethod(servName, fullServName, method) - handlerNames = append(handlerNames, hname) - } - - // Service descriptor. - g.P("var ", serviceDescVar, " = ", grpcPkg, ".ServiceDesc {") - g.P("ServiceName: ", strconv.Quote(fullServName), ",") - g.P("HandlerType: (*", serverType, ")(nil),") - g.P("Methods: []", grpcPkg, ".MethodDesc{") - for i, method := range service.Method { - if method.GetServerStreaming() || method.GetClientStreaming() { - continue - } - g.P("{") - g.P("MethodName: ", strconv.Quote(method.GetName()), ",") - g.P("Handler: ", handlerNames[i], ",") - g.P("},") - } - g.P("},") - g.P("Streams: []", grpcPkg, ".StreamDesc{") - for i, method := range service.Method { - if !method.GetServerStreaming() && !method.GetClientStreaming() { - continue - } - g.P("{") - g.P("StreamName: ", strconv.Quote(method.GetName()), ",") - g.P("Handler: ", handlerNames[i], ",") - if method.GetServerStreaming() { - g.P("ServerStreams: true,") - } - if method.GetClientStreaming() { - g.P("ClientStreams: true,") - } - g.P("},") - } - g.P("},") - g.P("Metadata: \"", file.GetName(), "\",") - g.P("}") - g.P() -} - -// generateUnimplementedServer creates the unimplemented server struct -func (g *grpc) generateUnimplementedServer(servName string, service *pb.ServiceDescriptorProto) { - serverType := servName + "Server" - g.P("// Unimplemented", serverType, " can be embedded to have forward compatible implementations.") - g.P("type Unimplemented", serverType, " struct {") - g.P("}") - g.P() - // UnimplementedServer's concrete methods - for _, method := range service.Method { - g.generateServerMethodConcrete(servName, method) - } - g.P() -} - -// generateServerMethodConcrete returns unimplemented methods which ensure forward compatibility -func (g *grpc) generateServerMethodConcrete(servName string, method *pb.MethodDescriptorProto) { - header := g.generateServerSignatureWithParamNames(servName, method) - g.P("func (*Unimplemented", servName, "Server) ", header, " {") - var nilArg string - if !method.GetServerStreaming() && !method.GetClientStreaming() { - nilArg = "nil, " - } - methName := generator.CamelCase(method.GetName()) - statusPkg := string(g.gen.AddImport(statusPkgPath)) - codePkg := string(g.gen.AddImport(codePkgPath)) - g.P("return ", nilArg, statusPkg, `.Errorf(`, codePkg, `.Unimplemented, "method `, methName, ` not implemented")`) - g.P("}") -} - -// generateClientSignature returns the client-side signature for a method. -func (g *grpc) generateClientSignature(servName string, method *pb.MethodDescriptorProto) string { - origMethName := method.GetName() - methName := generator.CamelCase(origMethName) - if reservedClientName[methName] { - methName += "_" - } - reqArg := ", in *" + g.typeName(method.GetInputType()) - if method.GetClientStreaming() { - reqArg = "" - } - respName := "*" + g.typeName(method.GetOutputType()) - if method.GetServerStreaming() || method.GetClientStreaming() { - respName = servName + "_" + generator.CamelCase(origMethName) + "Client" - } - return fmt.Sprintf("%s(ctx %s.Context%s, opts ...%s.CallOption) (%s, error)", methName, contextPkg, reqArg, grpcPkg, respName) -} - -func (g *grpc) generateClientMethod(servName, fullServName, serviceDescVar string, method *pb.MethodDescriptorProto, descExpr string) { - sname := fmt.Sprintf("/%s/%s", fullServName, method.GetName()) - methName := generator.CamelCase(method.GetName()) - inType := g.typeName(method.GetInputType()) - outType := g.typeName(method.GetOutputType()) - - if method.GetOptions().GetDeprecated() { - g.P(deprecationComment) - } - g.P("func (c *", unexport(servName), "Client) ", g.generateClientSignature(servName, method), "{") - if !method.GetServerStreaming() && !method.GetClientStreaming() { - g.P("out := new(", outType, ")") - // TODO: Pass descExpr to Invoke. - g.P(`err := c.cc.Invoke(ctx, "`, sname, `", in, out, opts...)`) - g.P("if err != nil { return nil, err }") - g.P("return out, nil") - g.P("}") - g.P() - return - } - streamType := unexport(servName) + methName + "Client" - g.P("stream, err := c.cc.NewStream(ctx, ", descExpr, `, "`, sname, `", opts...)`) - g.P("if err != nil { return nil, err }") - g.P("x := &", streamType, "{stream}") - if !method.GetClientStreaming() { - g.P("if err := x.ClientStream.SendMsg(in); err != nil { return nil, err }") - g.P("if err := x.ClientStream.CloseSend(); err != nil { return nil, err }") - } - g.P("return x, nil") - g.P("}") - g.P() - - genSend := method.GetClientStreaming() - genRecv := method.GetServerStreaming() - genCloseAndRecv := !method.GetServerStreaming() - - // Stream auxiliary types and methods. - g.P("type ", servName, "_", methName, "Client interface {") - if genSend { - g.P("Send(*", inType, ") error") - } - if genRecv { - g.P("Recv() (*", outType, ", error)") - } - if genCloseAndRecv { - g.P("CloseAndRecv() (*", outType, ", error)") - } - g.P(grpcPkg, ".ClientStream") - g.P("}") - g.P() - - g.P("type ", streamType, " struct {") - g.P(grpcPkg, ".ClientStream") - g.P("}") - g.P() - - if genSend { - g.P("func (x *", streamType, ") Send(m *", inType, ") error {") - g.P("return x.ClientStream.SendMsg(m)") - g.P("}") - g.P() - } - if genRecv { - g.P("func (x *", streamType, ") Recv() (*", outType, ", error) {") - g.P("m := new(", outType, ")") - g.P("if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err }") - g.P("return m, nil") - g.P("}") - g.P() - } - if genCloseAndRecv { - g.P("func (x *", streamType, ") CloseAndRecv() (*", outType, ", error) {") - g.P("if err := x.ClientStream.CloseSend(); err != nil { return nil, err }") - g.P("m := new(", outType, ")") - g.P("if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err }") - g.P("return m, nil") - g.P("}") - g.P() - } -} - -// generateServerSignatureWithParamNames returns the server-side signature for a method with parameter names. -func (g *grpc) generateServerSignatureWithParamNames(servName string, method *pb.MethodDescriptorProto) string { - origMethName := method.GetName() - methName := generator.CamelCase(origMethName) - if reservedClientName[methName] { - methName += "_" - } - - var reqArgs []string - ret := "error" - if !method.GetServerStreaming() && !method.GetClientStreaming() { - reqArgs = append(reqArgs, "ctx "+contextPkg+".Context") - ret = "(*" + g.typeName(method.GetOutputType()) + ", error)" - } - if !method.GetClientStreaming() { - reqArgs = append(reqArgs, "req *"+g.typeName(method.GetInputType())) - } - if method.GetServerStreaming() || method.GetClientStreaming() { - reqArgs = append(reqArgs, "srv "+servName+"_"+generator.CamelCase(origMethName)+"Server") - } - - return methName + "(" + strings.Join(reqArgs, ", ") + ") " + ret -} - -// generateServerSignature returns the server-side signature for a method. -func (g *grpc) generateServerSignature(servName string, method *pb.MethodDescriptorProto) string { - origMethName := method.GetName() - methName := generator.CamelCase(origMethName) - if reservedClientName[methName] { - methName += "_" - } - - var reqArgs []string - ret := "error" - if !method.GetServerStreaming() && !method.GetClientStreaming() { - reqArgs = append(reqArgs, contextPkg+".Context") - ret = "(*" + g.typeName(method.GetOutputType()) + ", error)" - } - if !method.GetClientStreaming() { - reqArgs = append(reqArgs, "*"+g.typeName(method.GetInputType())) - } - if method.GetServerStreaming() || method.GetClientStreaming() { - reqArgs = append(reqArgs, servName+"_"+generator.CamelCase(origMethName)+"Server") - } - - return methName + "(" + strings.Join(reqArgs, ", ") + ") " + ret -} - -func (g *grpc) generateServerMethod(servName, fullServName string, method *pb.MethodDescriptorProto) string { - methName := generator.CamelCase(method.GetName()) - hname := fmt.Sprintf("_%s_%s_Handler", servName, methName) - inType := g.typeName(method.GetInputType()) - outType := g.typeName(method.GetOutputType()) - - if !method.GetServerStreaming() && !method.GetClientStreaming() { - g.P("func ", hname, "(srv interface{}, ctx ", contextPkg, ".Context, dec func(interface{}) error, interceptor ", grpcPkg, ".UnaryServerInterceptor) (interface{}, error) {") - g.P("in := new(", inType, ")") - g.P("if err := dec(in); err != nil { return nil, err }") - g.P("if interceptor == nil { return srv.(", servName, "Server).", methName, "(ctx, in) }") - g.P("info := &", grpcPkg, ".UnaryServerInfo{") - g.P("Server: srv,") - g.P("FullMethod: ", strconv.Quote(fmt.Sprintf("/%s/%s", fullServName, methName)), ",") - g.P("}") - g.P("handler := func(ctx ", contextPkg, ".Context, req interface{}) (interface{}, error) {") - g.P("return srv.(", servName, "Server).", methName, "(ctx, req.(*", inType, "))") - g.P("}") - g.P("return interceptor(ctx, in, info, handler)") - g.P("}") - g.P() - return hname - } - streamType := unexport(servName) + methName + "Server" - g.P("func ", hname, "(srv interface{}, stream ", grpcPkg, ".ServerStream) error {") - if !method.GetClientStreaming() { - g.P("m := new(", inType, ")") - g.P("if err := stream.RecvMsg(m); err != nil { return err }") - g.P("return srv.(", servName, "Server).", methName, "(m, &", streamType, "{stream})") - } else { - g.P("return srv.(", servName, "Server).", methName, "(&", streamType, "{stream})") - } - g.P("}") - g.P() - - genSend := method.GetServerStreaming() - genSendAndClose := !method.GetServerStreaming() - genRecv := method.GetClientStreaming() - - // Stream auxiliary types and methods. - g.P("type ", servName, "_", methName, "Server interface {") - if genSend { - g.P("Send(*", outType, ") error") - } - if genSendAndClose { - g.P("SendAndClose(*", outType, ") error") - } - if genRecv { - g.P("Recv() (*", inType, ", error)") - } - g.P(grpcPkg, ".ServerStream") - g.P("}") - g.P() - - g.P("type ", streamType, " struct {") - g.P(grpcPkg, ".ServerStream") - g.P("}") - g.P() - - if genSend { - g.P("func (x *", streamType, ") Send(m *", outType, ") error {") - g.P("return x.ServerStream.SendMsg(m)") - g.P("}") - g.P() - } - if genSendAndClose { - g.P("func (x *", streamType, ") SendAndClose(m *", outType, ") error {") - g.P("return x.ServerStream.SendMsg(m)") - g.P("}") - g.P() - } - if genRecv { - g.P("func (x *", streamType, ") Recv() (*", inType, ", error) {") - g.P("m := new(", inType, ")") - g.P("if err := x.ServerStream.RecvMsg(m); err != nil { return nil, err }") - g.P("return m, nil") - g.P("}") - g.P() - } - - return hname -} diff --git a/vendor/github.com/golang/protobuf/protoc-gen-go/link_grpc.go b/vendor/github.com/golang/protobuf/protoc-gen-go/link_grpc.go deleted file mode 100644 index 532a55005..000000000 --- a/vendor/github.com/golang/protobuf/protoc-gen-go/link_grpc.go +++ /dev/null @@ -1,34 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2015 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package main - -import _ "github.com/golang/protobuf/protoc-gen-go/grpc" diff --git a/vendor/github.com/golang/protobuf/protoc-gen-go/main.go b/vendor/github.com/golang/protobuf/protoc-gen-go/main.go index 8e2486de0..d45b719d1 100644 --- a/vendor/github.com/golang/protobuf/protoc-gen-go/main.go +++ b/vendor/github.com/golang/protobuf/protoc-gen-go/main.go @@ -1,98 +1,74 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // protoc-gen-go is a plugin for the Google protocol buffer compiler to generate -// Go code. Run it by building this program and putting it in your path with -// the name -// protoc-gen-go -// That word 'go' at the end becomes part of the option string set for the -// protocol compiler, so once the protocol compiler (protoc) is installed -// you can run -// protoc --go_out=output_directory input_directory/file.proto -// to generate Go bindings for the protocol defined by file.proto. -// With that input, the output will be written to -// output_directory/file.pb.go +// Go code. Install it by building this program and making it accessible within +// your PATH with the name: +// protoc-gen-go // -// The generated code is documented in the package comment for -// the library. +// The 'go' suffix becomes part of the argument for the protocol compiler, +// such that it can be invoked as: +// protoc --go_out=paths=source_relative:. path/to/file.proto +// +// This generates Go bindings for the protocol buffer defined by file.proto. +// With that input, the output will be written to: +// path/to/file.pb.go // // See the README and documentation for protocol buffers to learn more: -// https://developers.google.com/protocol-buffers/ +// https://developers.google.com/protocol-buffers/ package main import ( - "io/ioutil" - "os" + "flag" + "fmt" + "strings" - "github.com/golang/protobuf/proto" - "github.com/golang/protobuf/protoc-gen-go/generator" + "github.com/golang/protobuf/internal/gengogrpc" + gengo "google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo" + "google.golang.org/protobuf/compiler/protogen" ) func main() { - // Begin by allocating a generator. The request and response structures are stored there - // so we can do error handling easily - the response structure contains the field to - // report failure. - g := generator.New() - - data, err := ioutil.ReadAll(os.Stdin) - if err != nil { - g.Error(err, "reading input") - } - - if err := proto.Unmarshal(data, g.Request); err != nil { - g.Error(err, "parsing input proto") - } - - if len(g.Request.FileToGenerate) == 0 { - g.Fail("no files to generate") - } - - g.CommandLineParameters(g.Request.GetParameter()) - - // Create a wrapped version of the Descriptors and EnumDescriptors that - // point to the file that defines them. - g.WrapTypes() - - g.SetPackageNames() - g.BuildTypeNameMap() - - g.GenerateAllFiles() - - // Send back the results. - data, err = proto.Marshal(g.Response) - if err != nil { - g.Error(err, "failed to marshal output proto") - } - _, err = os.Stdout.Write(data) - if err != nil { - g.Error(err, "failed to write output proto") + var ( + flags flag.FlagSet + plugins = flags.String("plugins", "", "list of plugins to enable (supported values: grpc)") + importPrefix = flags.String("import_prefix", "", "prefix to prepend to import paths") + ) + importRewriteFunc := func(importPath protogen.GoImportPath) protogen.GoImportPath { + switch importPath { + case "context", "fmt", "math": + return importPath + } + if *importPrefix != "" { + return protogen.GoImportPath(*importPrefix) + importPath + } + return importPath } + protogen.Options{ + ParamFunc: flags.Set, + ImportRewriteFunc: importRewriteFunc, + }.Run(func(gen *protogen.Plugin) error { + grpc := false + for _, plugin := range strings.Split(*plugins, ",") { + switch plugin { + case "grpc": + grpc = true + case "": + default: + return fmt.Errorf("protoc-gen-go: unknown plugin %q", plugin) + } + } + for _, f := range gen.Files { + if !f.Generate { + continue + } + g := gengo.GenerateFile(gen, f) + if grpc { + gengogrpc.GenerateFileContent(gen, f, g) + } + } + gen.SupportedFeatures = gengo.SupportedFeatures + return nil + }) } diff --git a/vendor/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.pb.go b/vendor/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.pb.go deleted file mode 100644 index 61bfc10e0..000000000 --- a/vendor/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.pb.go +++ /dev/null @@ -1,369 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: google/protobuf/compiler/plugin.proto - -/* -Package plugin_go is a generated protocol buffer package. - -It is generated from these files: - google/protobuf/compiler/plugin.proto - -It has these top-level messages: - Version - CodeGeneratorRequest - CodeGeneratorResponse -*/ -package plugin_go - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import google_protobuf "github.com/golang/protobuf/protoc-gen-go/descriptor" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -// The version number of protocol compiler. -type Version struct { - Major *int32 `protobuf:"varint,1,opt,name=major" json:"major,omitempty"` - Minor *int32 `protobuf:"varint,2,opt,name=minor" json:"minor,omitempty"` - Patch *int32 `protobuf:"varint,3,opt,name=patch" json:"patch,omitempty"` - // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should - // be empty for mainline stable releases. - Suffix *string `protobuf:"bytes,4,opt,name=suffix" json:"suffix,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Version) Reset() { *m = Version{} } -func (m *Version) String() string { return proto.CompactTextString(m) } -func (*Version) ProtoMessage() {} -func (*Version) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } -func (m *Version) Unmarshal(b []byte) error { - return xxx_messageInfo_Version.Unmarshal(m, b) -} -func (m *Version) Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Version.Marshal(b, m, deterministic) -} -func (dst *Version) XXX_Merge(src proto.Message) { - xxx_messageInfo_Version.Merge(dst, src) -} -func (m *Version) XXX_Size() int { - return xxx_messageInfo_Version.Size(m) -} -func (m *Version) XXX_DiscardUnknown() { - xxx_messageInfo_Version.DiscardUnknown(m) -} - -var xxx_messageInfo_Version proto.InternalMessageInfo - -func (m *Version) GetMajor() int32 { - if m != nil && m.Major != nil { - return *m.Major - } - return 0 -} - -func (m *Version) GetMinor() int32 { - if m != nil && m.Minor != nil { - return *m.Minor - } - return 0 -} - -func (m *Version) GetPatch() int32 { - if m != nil && m.Patch != nil { - return *m.Patch - } - return 0 -} - -func (m *Version) GetSuffix() string { - if m != nil && m.Suffix != nil { - return *m.Suffix - } - return "" -} - -// An encoded CodeGeneratorRequest is written to the plugin's stdin. -type CodeGeneratorRequest struct { - // The .proto files that were explicitly listed on the command-line. The - // code generator should generate code only for these files. Each file's - // descriptor will be included in proto_file, below. - FileToGenerate []string `protobuf:"bytes,1,rep,name=file_to_generate,json=fileToGenerate" json:"file_to_generate,omitempty"` - // The generator parameter passed on the command-line. - Parameter *string `protobuf:"bytes,2,opt,name=parameter" json:"parameter,omitempty"` - // FileDescriptorProtos for all files in files_to_generate and everything - // they import. The files will appear in topological order, so each file - // appears before any file that imports it. - // - // protoc guarantees that all proto_files will be written after - // the fields above, even though this is not technically guaranteed by the - // protobuf wire format. This theoretically could allow a plugin to stream - // in the FileDescriptorProtos and handle them one by one rather than read - // the entire set into memory at once. However, as of this writing, this - // is not similarly optimized on protoc's end -- it will store all fields in - // memory at once before sending them to the plugin. - // - // Type names of fields and extensions in the FileDescriptorProto are always - // fully qualified. - ProtoFile []*google_protobuf.FileDescriptorProto `protobuf:"bytes,15,rep,name=proto_file,json=protoFile" json:"proto_file,omitempty"` - // The version number of protocol compiler. - CompilerVersion *Version `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion" json:"compiler_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CodeGeneratorRequest) Reset() { *m = CodeGeneratorRequest{} } -func (m *CodeGeneratorRequest) String() string { return proto.CompactTextString(m) } -func (*CodeGeneratorRequest) ProtoMessage() {} -func (*CodeGeneratorRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } -func (m *CodeGeneratorRequest) Unmarshal(b []byte) error { - return xxx_messageInfo_CodeGeneratorRequest.Unmarshal(m, b) -} -func (m *CodeGeneratorRequest) Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CodeGeneratorRequest.Marshal(b, m, deterministic) -} -func (dst *CodeGeneratorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CodeGeneratorRequest.Merge(dst, src) -} -func (m *CodeGeneratorRequest) XXX_Size() int { - return xxx_messageInfo_CodeGeneratorRequest.Size(m) -} -func (m *CodeGeneratorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CodeGeneratorRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CodeGeneratorRequest proto.InternalMessageInfo - -func (m *CodeGeneratorRequest) GetFileToGenerate() []string { - if m != nil { - return m.FileToGenerate - } - return nil -} - -func (m *CodeGeneratorRequest) GetParameter() string { - if m != nil && m.Parameter != nil { - return *m.Parameter - } - return "" -} - -func (m *CodeGeneratorRequest) GetProtoFile() []*google_protobuf.FileDescriptorProto { - if m != nil { - return m.ProtoFile - } - return nil -} - -func (m *CodeGeneratorRequest) GetCompilerVersion() *Version { - if m != nil { - return m.CompilerVersion - } - return nil -} - -// The plugin writes an encoded CodeGeneratorResponse to stdout. -type CodeGeneratorResponse struct { - // Error message. If non-empty, code generation failed. The plugin process - // should exit with status code zero even if it reports an error in this way. - // - // This should be used to indicate errors in .proto files which prevent the - // code generator from generating correct code. Errors which indicate a - // problem in protoc itself -- such as the input CodeGeneratorRequest being - // unparseable -- should be reported by writing a message to stderr and - // exiting with a non-zero status code. - Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` - File []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CodeGeneratorResponse) Reset() { *m = CodeGeneratorResponse{} } -func (m *CodeGeneratorResponse) String() string { return proto.CompactTextString(m) } -func (*CodeGeneratorResponse) ProtoMessage() {} -func (*CodeGeneratorResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } -func (m *CodeGeneratorResponse) Unmarshal(b []byte) error { - return xxx_messageInfo_CodeGeneratorResponse.Unmarshal(m, b) -} -func (m *CodeGeneratorResponse) Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CodeGeneratorResponse.Marshal(b, m, deterministic) -} -func (dst *CodeGeneratorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CodeGeneratorResponse.Merge(dst, src) -} -func (m *CodeGeneratorResponse) XXX_Size() int { - return xxx_messageInfo_CodeGeneratorResponse.Size(m) -} -func (m *CodeGeneratorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CodeGeneratorResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CodeGeneratorResponse proto.InternalMessageInfo - -func (m *CodeGeneratorResponse) GetError() string { - if m != nil && m.Error != nil { - return *m.Error - } - return "" -} - -func (m *CodeGeneratorResponse) GetFile() []*CodeGeneratorResponse_File { - if m != nil { - return m.File - } - return nil -} - -// Represents a single generated file. -type CodeGeneratorResponse_File struct { - // The file name, relative to the output directory. The name must not - // contain "." or ".." components and must be relative, not be absolute (so, - // the file cannot lie outside the output directory). "/" must be used as - // the path separator, not "\". - // - // If the name is omitted, the content will be appended to the previous - // file. This allows the generator to break large files into small chunks, - // and allows the generated text to be streamed back to protoc so that large - // files need not reside completely in memory at one time. Note that as of - // this writing protoc does not optimize for this -- it will read the entire - // CodeGeneratorResponse before writing files to disk. - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - // If non-empty, indicates that the named file should already exist, and the - // content here is to be inserted into that file at a defined insertion - // point. This feature allows a code generator to extend the output - // produced by another code generator. The original generator may provide - // insertion points by placing special annotations in the file that look - // like: - // @@protoc_insertion_point(NAME) - // The annotation can have arbitrary text before and after it on the line, - // which allows it to be placed in a comment. NAME should be replaced with - // an identifier naming the point -- this is what other generators will use - // as the insertion_point. Code inserted at this point will be placed - // immediately above the line containing the insertion point (thus multiple - // insertions to the same point will come out in the order they were added). - // The double-@ is intended to make it unlikely that the generated code - // could contain things that look like insertion points by accident. - // - // For example, the C++ code generator places the following line in the - // .pb.h files that it generates: - // // @@protoc_insertion_point(namespace_scope) - // This line appears within the scope of the file's package namespace, but - // outside of any particular class. Another plugin can then specify the - // insertion_point "namespace_scope" to generate additional classes or - // other declarations that should be placed in this scope. - // - // Note that if the line containing the insertion point begins with - // whitespace, the same whitespace will be added to every line of the - // inserted text. This is useful for languages like Python, where - // indentation matters. In these languages, the insertion point comment - // should be indented the same amount as any inserted code will need to be - // in order to work correctly in that context. - // - // The code generator that generates the initial file and the one which - // inserts into it must both run as part of a single invocation of protoc. - // Code generators are executed in the order in which they appear on the - // command line. - // - // If |insertion_point| is present, |name| must also be present. - InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point,json=insertionPoint" json:"insertion_point,omitempty"` - // The file contents. - Content *string `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CodeGeneratorResponse_File) Reset() { *m = CodeGeneratorResponse_File{} } -func (m *CodeGeneratorResponse_File) String() string { return proto.CompactTextString(m) } -func (*CodeGeneratorResponse_File) ProtoMessage() {} -func (*CodeGeneratorResponse_File) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} } -func (m *CodeGeneratorResponse_File) Unmarshal(b []byte) error { - return xxx_messageInfo_CodeGeneratorResponse_File.Unmarshal(m, b) -} -func (m *CodeGeneratorResponse_File) Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CodeGeneratorResponse_File.Marshal(b, m, deterministic) -} -func (dst *CodeGeneratorResponse_File) XXX_Merge(src proto.Message) { - xxx_messageInfo_CodeGeneratorResponse_File.Merge(dst, src) -} -func (m *CodeGeneratorResponse_File) XXX_Size() int { - return xxx_messageInfo_CodeGeneratorResponse_File.Size(m) -} -func (m *CodeGeneratorResponse_File) XXX_DiscardUnknown() { - xxx_messageInfo_CodeGeneratorResponse_File.DiscardUnknown(m) -} - -var xxx_messageInfo_CodeGeneratorResponse_File proto.InternalMessageInfo - -func (m *CodeGeneratorResponse_File) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *CodeGeneratorResponse_File) GetInsertionPoint() string { - if m != nil && m.InsertionPoint != nil { - return *m.InsertionPoint - } - return "" -} - -func (m *CodeGeneratorResponse_File) GetContent() string { - if m != nil && m.Content != nil { - return *m.Content - } - return "" -} - -func init() { - proto.RegisterType((*Version)(nil), "google.protobuf.compiler.Version") - proto.RegisterType((*CodeGeneratorRequest)(nil), "google.protobuf.compiler.CodeGeneratorRequest") - proto.RegisterType((*CodeGeneratorResponse)(nil), "google.protobuf.compiler.CodeGeneratorResponse") - proto.RegisterType((*CodeGeneratorResponse_File)(nil), "google.protobuf.compiler.CodeGeneratorResponse.File") -} - -func init() { proto.RegisterFile("google/protobuf/compiler/plugin.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 417 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcf, 0x6a, 0x14, 0x41, - 0x10, 0xc6, 0x19, 0x77, 0x63, 0x98, 0x8a, 0x64, 0x43, 0x13, 0xa5, 0x09, 0x39, 0x8c, 0x8b, 0xe2, - 0x5c, 0x32, 0x0b, 0xc1, 0x8b, 0x78, 0x4b, 0x44, 0x3d, 0x78, 0x58, 0x1a, 0xf1, 0x20, 0xc8, 0x30, - 0x99, 0xd4, 0x74, 0x5a, 0x66, 0xba, 0xc6, 0xee, 0x1e, 0xf1, 0x49, 0x7d, 0x0f, 0xdf, 0x40, 0xfa, - 0xcf, 0x24, 0xb2, 0xb8, 0xa7, 0xee, 0xef, 0x57, 0xd5, 0xd5, 0x55, 0x1f, 0x05, 0x2f, 0x25, 0x91, - 0xec, 0x71, 0x33, 0x1a, 0x72, 0x74, 0x33, 0x75, 0x9b, 0x96, 0x86, 0x51, 0xf5, 0x68, 0x36, 0x63, - 0x3f, 0x49, 0xa5, 0xab, 0x10, 0x60, 0x3c, 0xa6, 0x55, 0x73, 0x5a, 0x35, 0xa7, 0x9d, 0x15, 0xbb, - 0x05, 0x6e, 0xd1, 0xb6, 0x46, 0x8d, 0x8e, 0x4c, 0xcc, 0x5e, 0xb7, 0x70, 0xf8, 0x05, 0x8d, 0x55, - 0xa4, 0xd9, 0x29, 0x1c, 0x0c, 0xcd, 0x77, 0x32, 0x3c, 0x2b, 0xb2, 0xf2, 0x40, 0x44, 0x11, 0xa8, - 0xd2, 0x64, 0xf8, 0xa3, 0x44, 0xbd, 0xf0, 0x74, 0x6c, 0x5c, 0x7b, 0xc7, 0x17, 0x91, 0x06, 0xc1, - 0x9e, 0xc1, 0x63, 0x3b, 0x75, 0x9d, 0xfa, 0x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, 0xc3, 0x96, 0xb4, - 0x43, 0xed, 0xf8, 0x2a, 0x24, 0xcc, 0xf2, 0x4a, 0xc2, 0x79, 0x4b, 0xc3, 0xde, 0xfe, 0xae, 0x9e, - 0x6c, 0xc3, 0x6e, 0x06, 0x7b, 0xed, 0xd7, 0x37, 0x52, 0xb9, 0xbb, 0xe9, 0xc6, 0x87, 0x37, 0x92, - 0xfa, 0x46, 0xcb, 0x87, 0x65, 0x0c, 0x97, 0xf6, 0x42, 0xa2, 0xbe, 0x90, 0x94, 0x56, 0xfa, 0x6d, - 0x3c, 0x6a, 0x49, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x15, 0x40, 0xc5, 0xfe, 0x02, 0x00, - 0x00, -} diff --git a/vendor/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.pb.golden b/vendor/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.pb.golden deleted file mode 100644 index 8953d0ff8..000000000 --- a/vendor/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.pb.golden +++ /dev/null @@ -1,83 +0,0 @@ -// Code generated by protoc-gen-go. -// source: google/protobuf/compiler/plugin.proto -// DO NOT EDIT! - -package google_protobuf_compiler - -import proto "github.com/golang/protobuf/proto" -import "math" -import google_protobuf "github.com/golang/protobuf/protoc-gen-go/descriptor" - -// Reference proto and math imports to suppress error if they are not otherwise used. -var _ = proto.GetString -var _ = math.Inf - -type CodeGeneratorRequest struct { - FileToGenerate []string `protobuf:"bytes,1,rep,name=file_to_generate" json:"file_to_generate,omitempty"` - Parameter *string `protobuf:"bytes,2,opt,name=parameter" json:"parameter,omitempty"` - ProtoFile []*google_protobuf.FileDescriptorProto `protobuf:"bytes,15,rep,name=proto_file" json:"proto_file,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (this *CodeGeneratorRequest) Reset() { *this = CodeGeneratorRequest{} } -func (this *CodeGeneratorRequest) String() string { return proto.CompactTextString(this) } -func (*CodeGeneratorRequest) ProtoMessage() {} - -func (this *CodeGeneratorRequest) GetParameter() string { - if this != nil && this.Parameter != nil { - return *this.Parameter - } - return "" -} - -type CodeGeneratorResponse struct { - Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` - File []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (this *CodeGeneratorResponse) Reset() { *this = CodeGeneratorResponse{} } -func (this *CodeGeneratorResponse) String() string { return proto.CompactTextString(this) } -func (*CodeGeneratorResponse) ProtoMessage() {} - -func (this *CodeGeneratorResponse) GetError() string { - if this != nil && this.Error != nil { - return *this.Error - } - return "" -} - -type CodeGeneratorResponse_File struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point" json:"insertion_point,omitempty"` - Content *string `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (this *CodeGeneratorResponse_File) Reset() { *this = CodeGeneratorResponse_File{} } -func (this *CodeGeneratorResponse_File) String() string { return proto.CompactTextString(this) } -func (*CodeGeneratorResponse_File) ProtoMessage() {} - -func (this *CodeGeneratorResponse_File) GetName() string { - if this != nil && this.Name != nil { - return *this.Name - } - return "" -} - -func (this *CodeGeneratorResponse_File) GetInsertionPoint() string { - if this != nil && this.InsertionPoint != nil { - return *this.InsertionPoint - } - return "" -} - -func (this *CodeGeneratorResponse_File) GetContent() string { - if this != nil && this.Content != nil { - return *this.Content - } - return "" -} - -func init() { -} diff --git a/vendor/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.proto b/vendor/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.proto deleted file mode 100644 index 5b5574529..000000000 --- a/vendor/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.proto +++ /dev/null @@ -1,167 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Author: kenton@google.com (Kenton Varda) -// -// WARNING: The plugin interface is currently EXPERIMENTAL and is subject to -// change. -// -// protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is -// just a program that reads a CodeGeneratorRequest from stdin and writes a -// CodeGeneratorResponse to stdout. -// -// Plugins written using C++ can use google/protobuf/compiler/plugin.h instead -// of dealing with the raw protocol defined here. -// -// A plugin executable needs only to be placed somewhere in the path. The -// plugin should be named "protoc-gen-$NAME", and will then be used when the -// flag "--${NAME}_out" is passed to protoc. - -syntax = "proto2"; -package google.protobuf.compiler; -option java_package = "com.google.protobuf.compiler"; -option java_outer_classname = "PluginProtos"; - -option go_package = "github.com/golang/protobuf/protoc-gen-go/plugin;plugin_go"; - -import "google/protobuf/descriptor.proto"; - -// The version number of protocol compiler. -message Version { - optional int32 major = 1; - optional int32 minor = 2; - optional int32 patch = 3; - // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should - // be empty for mainline stable releases. - optional string suffix = 4; -} - -// An encoded CodeGeneratorRequest is written to the plugin's stdin. -message CodeGeneratorRequest { - // The .proto files that were explicitly listed on the command-line. The - // code generator should generate code only for these files. Each file's - // descriptor will be included in proto_file, below. - repeated string file_to_generate = 1; - - // The generator parameter passed on the command-line. - optional string parameter = 2; - - // FileDescriptorProtos for all files in files_to_generate and everything - // they import. The files will appear in topological order, so each file - // appears before any file that imports it. - // - // protoc guarantees that all proto_files will be written after - // the fields above, even though this is not technically guaranteed by the - // protobuf wire format. This theoretically could allow a plugin to stream - // in the FileDescriptorProtos and handle them one by one rather than read - // the entire set into memory at once. However, as of this writing, this - // is not similarly optimized on protoc's end -- it will store all fields in - // memory at once before sending them to the plugin. - // - // Type names of fields and extensions in the FileDescriptorProto are always - // fully qualified. - repeated FileDescriptorProto proto_file = 15; - - // The version number of protocol compiler. - optional Version compiler_version = 3; - -} - -// The plugin writes an encoded CodeGeneratorResponse to stdout. -message CodeGeneratorResponse { - // Error message. If non-empty, code generation failed. The plugin process - // should exit with status code zero even if it reports an error in this way. - // - // This should be used to indicate errors in .proto files which prevent the - // code generator from generating correct code. Errors which indicate a - // problem in protoc itself -- such as the input CodeGeneratorRequest being - // unparseable -- should be reported by writing a message to stderr and - // exiting with a non-zero status code. - optional string error = 1; - - // Represents a single generated file. - message File { - // The file name, relative to the output directory. The name must not - // contain "." or ".." components and must be relative, not be absolute (so, - // the file cannot lie outside the output directory). "/" must be used as - // the path separator, not "\". - // - // If the name is omitted, the content will be appended to the previous - // file. This allows the generator to break large files into small chunks, - // and allows the generated text to be streamed back to protoc so that large - // files need not reside completely in memory at one time. Note that as of - // this writing protoc does not optimize for this -- it will read the entire - // CodeGeneratorResponse before writing files to disk. - optional string name = 1; - - // If non-empty, indicates that the named file should already exist, and the - // content here is to be inserted into that file at a defined insertion - // point. This feature allows a code generator to extend the output - // produced by another code generator. The original generator may provide - // insertion points by placing special annotations in the file that look - // like: - // @@protoc_insertion_point(NAME) - // The annotation can have arbitrary text before and after it on the line, - // which allows it to be placed in a comment. NAME should be replaced with - // an identifier naming the point -- this is what other generators will use - // as the insertion_point. Code inserted at this point will be placed - // immediately above the line containing the insertion point (thus multiple - // insertions to the same point will come out in the order they were added). - // The double-@ is intended to make it unlikely that the generated code - // could contain things that look like insertion points by accident. - // - // For example, the C++ code generator places the following line in the - // .pb.h files that it generates: - // // @@protoc_insertion_point(namespace_scope) - // This line appears within the scope of the file's package namespace, but - // outside of any particular class. Another plugin can then specify the - // insertion_point "namespace_scope" to generate additional classes or - // other declarations that should be placed in this scope. - // - // Note that if the line containing the insertion point begins with - // whitespace, the same whitespace will be added to every line of the - // inserted text. This is useful for languages like Python, where - // indentation matters. In these languages, the insertion point comment - // should be indented the same amount as any inserted code will need to be - // in order to work correctly in that context. - // - // The code generator that generates the initial file and the one which - // inserts into it must both run as part of a single invocation of protoc. - // Code generators are executed in the order in which they appear on the - // command line. - // - // If |insertion_point| is present, |name| must also be present. - optional string insertion_point = 2; - - // The file contents. - optional string content = 15; - } - repeated File file = 15; -} diff --git a/vendor/github.com/golang/protobuf/ptypes/any.go b/vendor/github.com/golang/protobuf/ptypes/any.go index 70276e8f5..e729dcff1 100644 --- a/vendor/github.com/golang/protobuf/ptypes/any.go +++ b/vendor/github.com/golang/protobuf/ptypes/any.go @@ -1,141 +1,165 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2016 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package ptypes -// This file implements functions to marshal proto.Message to/from -// google.protobuf.Any message. - import ( "fmt" - "reflect" "strings" "github.com/golang/protobuf/proto" - "github.com/golang/protobuf/ptypes/any" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + + anypb "github.com/golang/protobuf/ptypes/any" ) -const googleApis = "type.googleapis.com/" +const urlPrefix = "type.googleapis.com/" -// AnyMessageName returns the name of the message contained in a google.protobuf.Any message. -// -// Note that regular type assertions should be done using the Is -// function. AnyMessageName is provided for less common use cases like filtering a -// sequence of Any messages based on a set of allowed message type names. -func AnyMessageName(any *any.Any) (string, error) { +// AnyMessageName returns the message name contained in an anypb.Any message. +// Most type assertions should use the Is function instead. +func AnyMessageName(any *anypb.Any) (string, error) { + name, err := anyMessageName(any) + return string(name), err +} +func anyMessageName(any *anypb.Any) (protoreflect.FullName, error) { if any == nil { return "", fmt.Errorf("message is nil") } - slash := strings.LastIndex(any.TypeUrl, "/") - if slash < 0 { + name := protoreflect.FullName(any.TypeUrl) + if i := strings.LastIndex(any.TypeUrl, "/"); i >= 0 { + name = name[i+len("/"):] + } + if !name.IsValid() { return "", fmt.Errorf("message type url %q is invalid", any.TypeUrl) } - return any.TypeUrl[slash+1:], nil + return name, nil } -// MarshalAny takes the protocol buffer and encodes it into google.protobuf.Any. -func MarshalAny(pb proto.Message) (*any.Any, error) { - value, err := proto.Marshal(pb) +// MarshalAny marshals the given message m into an anypb.Any message. +func MarshalAny(m proto.Message) (*anypb.Any, error) { + switch dm := m.(type) { + case DynamicAny: + m = dm.Message + case *DynamicAny: + if dm == nil { + return nil, proto.ErrNil + } + m = dm.Message + } + b, err := proto.Marshal(m) if err != nil { return nil, err } - return &any.Any{TypeUrl: googleApis + proto.MessageName(pb), Value: value}, nil + return &anypb.Any{TypeUrl: urlPrefix + proto.MessageName(m), Value: b}, nil } -// DynamicAny is a value that can be passed to UnmarshalAny to automatically -// allocate a proto.Message for the type specified in a google.protobuf.Any -// message. The allocated message is stored in the embedded proto.Message. -// -// Example: -// -// var x ptypes.DynamicAny -// if err := ptypes.UnmarshalAny(a, &x); err != nil { ... } -// fmt.Printf("unmarshaled message: %v", x.Message) -type DynamicAny struct { - proto.Message -} - -// Empty returns a new proto.Message of the type specified in a -// google.protobuf.Any message. It returns an error if corresponding message -// type isn't linked in. -func Empty(any *any.Any) (proto.Message, error) { - aname, err := AnyMessageName(any) +// Empty returns a new message of the type specified in an anypb.Any message. +// It returns protoregistry.NotFound if the corresponding message type could not +// be resolved in the global registry. +func Empty(any *anypb.Any) (proto.Message, error) { + name, err := anyMessageName(any) if err != nil { return nil, err } - - t := proto.MessageType(aname) - if t == nil { - return nil, fmt.Errorf("any: message type %q isn't linked in", aname) + mt, err := protoregistry.GlobalTypes.FindMessageByName(name) + if err != nil { + return nil, err } - return reflect.New(t.Elem()).Interface().(proto.Message), nil + return proto.MessageV1(mt.New().Interface()), nil } -// UnmarshalAny parses the protocol buffer representation in a google.protobuf.Any -// message and places the decoded result in pb. It returns an error if type of -// contents of Any message does not match type of pb message. +// UnmarshalAny unmarshals the encoded value contained in the anypb.Any message +// into the provided message m. It returns an error if the target message +// does not match the type in the Any message or if an unmarshal error occurs. // -// pb can be a proto.Message, or a *DynamicAny. -func UnmarshalAny(any *any.Any, pb proto.Message) error { - if d, ok := pb.(*DynamicAny); ok { - if d.Message == nil { +// The target message m may be a *DynamicAny message. If the underlying message +// type could not be resolved, then this returns protoregistry.NotFound. +func UnmarshalAny(any *anypb.Any, m proto.Message) error { + if dm, ok := m.(*DynamicAny); ok { + if dm.Message == nil { var err error - d.Message, err = Empty(any) + dm.Message, err = Empty(any) if err != nil { return err } } - return UnmarshalAny(any, d.Message) + m = dm.Message } - aname, err := AnyMessageName(any) + anyName, err := AnyMessageName(any) if err != nil { return err } - - mname := proto.MessageName(pb) - if aname != mname { - return fmt.Errorf("mismatched message type: got %q want %q", aname, mname) + msgName := proto.MessageName(m) + if anyName != msgName { + return fmt.Errorf("mismatched message type: got %q want %q", anyName, msgName) } - return proto.Unmarshal(any.Value, pb) + return proto.Unmarshal(any.Value, m) } -// Is returns true if any value contains a given message type. -func Is(any *any.Any, pb proto.Message) bool { - // The following is equivalent to AnyMessageName(any) == proto.MessageName(pb), - // but it avoids scanning TypeUrl for the slash. - if any == nil { +// Is reports whether the Any message contains a message of the specified type. +func Is(any *anypb.Any, m proto.Message) bool { + if any == nil || m == nil { return false } - name := proto.MessageName(pb) - prefix := len(any.TypeUrl) - len(name) - return prefix >= 1 && any.TypeUrl[prefix-1] == '/' && any.TypeUrl[prefix:] == name + name := proto.MessageName(m) + if !strings.HasSuffix(any.TypeUrl, name) { + return false + } + return len(any.TypeUrl) == len(name) || any.TypeUrl[len(any.TypeUrl)-len(name)-1] == '/' +} + +// DynamicAny is a value that can be passed to UnmarshalAny to automatically +// allocate a proto.Message for the type specified in an anypb.Any message. +// The allocated message is stored in the embedded proto.Message. +// +// Example: +// var x ptypes.DynamicAny +// if err := ptypes.UnmarshalAny(a, &x); err != nil { ... } +// fmt.Printf("unmarshaled message: %v", x.Message) +type DynamicAny struct{ proto.Message } + +func (m DynamicAny) String() string { + if m.Message == nil { + return "" + } + return m.Message.String() +} +func (m DynamicAny) Reset() { + if m.Message == nil { + return + } + m.Message.Reset() +} +func (m DynamicAny) ProtoMessage() { + return +} +func (m DynamicAny) ProtoReflect() protoreflect.Message { + if m.Message == nil { + return nil + } + return dynamicAny{proto.MessageReflect(m.Message)} +} + +type dynamicAny struct{ protoreflect.Message } + +func (m dynamicAny) Type() protoreflect.MessageType { + return dynamicAnyType{m.Message.Type()} +} +func (m dynamicAny) New() protoreflect.Message { + return dynamicAnyType{m.Message.Type()}.New() +} +func (m dynamicAny) Interface() protoreflect.ProtoMessage { + return DynamicAny{proto.MessageV1(m.Message.Interface())} +} + +type dynamicAnyType struct{ protoreflect.MessageType } + +func (t dynamicAnyType) New() protoreflect.Message { + return dynamicAny{t.MessageType.New()} +} +func (t dynamicAnyType) Zero() protoreflect.Message { + return dynamicAny{t.MessageType.Zero()} } diff --git a/vendor/github.com/golang/protobuf/ptypes/any/any.pb.go b/vendor/github.com/golang/protobuf/ptypes/any/any.pb.go index 7b0ad1ad8..0ef27d33d 100644 --- a/vendor/github.com/golang/protobuf/ptypes/any/any.pb.go +++ b/vendor/github.com/golang/protobuf/ptypes/any/any.pb.go @@ -1,203 +1,62 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: google/protobuf/any.proto +// source: github.com/golang/protobuf/ptypes/any/any.proto package any import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + reflect "reflect" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +// Symbols defined in public import of google/protobuf/any.proto. -// 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 +type Any = anypb.Any -// `Any` contains an arbitrary serialized protocol buffer message along with a -// URL that describes the type of the serialized message. -// -// Protobuf library provides support to pack/unpack Any values in the form -// of utility functions or additional generated methods of the Any type. -// -// Example 1: Pack and unpack a message in C++. -// -// Foo foo = ...; -// Any any; -// any.PackFrom(foo); -// ... -// if (any.UnpackTo(&foo)) { -// ... -// } -// -// Example 2: Pack and unpack a message in Java. -// -// Foo foo = ...; -// Any any = Any.pack(foo); -// ... -// if (any.is(Foo.class)) { -// foo = any.unpack(Foo.class); -// } -// -// Example 3: Pack and unpack a message in Python. -// -// foo = Foo(...) -// any = Any() -// any.Pack(foo) -// ... -// if any.Is(Foo.DESCRIPTOR): -// any.Unpack(foo) -// ... -// -// Example 4: Pack and unpack a message in Go -// -// foo := &pb.Foo{...} -// any, err := ptypes.MarshalAny(foo) -// ... -// foo := &pb.Foo{} -// if err := ptypes.UnmarshalAny(any, foo); err != nil { -// ... -// } -// -// The pack methods provided by protobuf library will by default use -// 'type.googleapis.com/full.type.name' as the type URL and the unpack -// methods only use the fully qualified type name after the last '/' -// in the type URL, for example "foo.bar.com/x/y.z" will yield type -// name "y.z". -// -// -// JSON -// ==== -// The JSON representation of an `Any` value uses the regular -// representation of the deserialized, embedded message, with an -// additional field `@type` which contains the type URL. Example: -// -// package google.profile; -// message Person { -// string first_name = 1; -// string last_name = 2; -// } -// -// { -// "@type": "type.googleapis.com/google.profile.Person", -// "firstName": , -// "lastName": -// } -// -// If the embedded message type is well-known and has a custom JSON -// representation, that representation will be embedded adding a field -// `value` which holds the custom JSON in addition to the `@type` -// field. Example (for message [google.protobuf.Duration][]): -// -// { -// "@type": "type.googleapis.com/google.protobuf.Duration", -// "value": "1.212s" -// } -// -type Any struct { - // A URL/resource name that uniquely identifies the type of the serialized - // protocol buffer message. This string must contain at least - // one "/" character. The last segment of the URL's path must represent - // the fully qualified name of the type (as in - // `path/google.protobuf.Duration`). The name should be in a canonical form - // (e.g., leading "." is not accepted). - // - // In practice, teams usually precompile into the binary all types that they - // expect it to use in the context of Any. However, for URLs which use the - // scheme `http`, `https`, or no scheme, one can optionally set up a type - // server that maps type URLs to message definitions as follows: - // - // * If no scheme is provided, `https` is assumed. - // * An HTTP GET on the URL must yield a [google.protobuf.Type][] - // value in binary format, or produce an error. - // * Applications are allowed to cache lookup results based on the - // URL, or have them precompiled into a binary to avoid any - // lookup. Therefore, binary compatibility needs to be preserved - // on changes to types. (Use versioned type names to manage - // breaking changes.) - // - // Note: this functionality is not currently available in the official - // protobuf release, and it is not used for type URLs beginning with - // type.googleapis.com. - // - // Schemes other than `http`, `https` (or the empty scheme) might be - // used with implementation specific semantics. - // - TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` - // Must be a valid serialized protocol buffer of the above specified type. - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +var File_github_com_golang_protobuf_ptypes_any_any_proto protoreflect.FileDescriptor + +var file_github_com_golang_protobuf_ptypes_any_any_proto_rawDesc = []byte{ + 0x0a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, + 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x61, 0x6e, 0x79, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 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, 0x42, 0x2b, 0x5a, 0x29, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, + 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2f, 0x61, 0x6e, 0x79, 0x3b, 0x61, 0x6e, 0x79, 0x50, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } -func (m *Any) Reset() { *m = Any{} } -func (m *Any) String() string { return proto.CompactTextString(m) } -func (*Any) ProtoMessage() {} -func (*Any) Descriptor() ([]byte, []int) { - return fileDescriptor_b53526c13ae22eb4, []int{0} +var file_github_com_golang_protobuf_ptypes_any_any_proto_goTypes = []interface{}{} +var file_github_com_golang_protobuf_ptypes_any_any_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } -func (*Any) XXX_WellKnownType() string { return "Any" } - -func (m *Any) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Any.Unmarshal(m, b) -} -func (m *Any) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Any.Marshal(b, m, deterministic) -} -func (m *Any) XXX_Merge(src proto.Message) { - xxx_messageInfo_Any.Merge(m, src) -} -func (m *Any) XXX_Size() int { - return xxx_messageInfo_Any.Size(m) -} -func (m *Any) XXX_DiscardUnknown() { - xxx_messageInfo_Any.DiscardUnknown(m) -} - -var xxx_messageInfo_Any proto.InternalMessageInfo - -func (m *Any) GetTypeUrl() string { - if m != nil { - return m.TypeUrl +func init() { file_github_com_golang_protobuf_ptypes_any_any_proto_init() } +func file_github_com_golang_protobuf_ptypes_any_any_proto_init() { + if File_github_com_golang_protobuf_ptypes_any_any_proto != nil { + return } - return "" -} - -func (m *Any) GetValue() []byte { - if m != nil { - return m.Value - } - return nil -} - -func init() { - proto.RegisterType((*Any)(nil), "google.protobuf.Any") -} - -func init() { - proto.RegisterFile("google/protobuf/any.proto", fileDescriptor_b53526c13ae22eb4) -} - -var fileDescriptor_b53526c13ae22eb4 = []byte{ - // 185 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4c, 0xcf, 0xcf, 0x4f, - 0xcf, 0x49, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x4f, 0xcc, 0xab, 0xd4, - 0x03, 0x73, 0x84, 0xf8, 0x21, 0x52, 0x7a, 0x30, 0x29, 0x25, 0x33, 0x2e, 0x66, 0xc7, 0xbc, 0x4a, - 0x21, 0x49, 0x2e, 0x8e, 0x92, 0xca, 0x82, 0xd4, 0xf8, 0xd2, 0xa2, 0x1c, 0x09, 0x46, 0x05, 0x46, - 0x0d, 0xce, 0x20, 0x76, 0x10, 0x3f, 0xb4, 0x28, 0x47, 0x48, 0x84, 0x8b, 0xb5, 0x2c, 0x31, 0xa7, - 0x34, 0x55, 0x82, 0x49, 0x81, 0x51, 0x83, 0x27, 0x08, 0xc2, 0x71, 0xca, 0xe7, 0x12, 0x4e, 0xce, - 0xcf, 0xd5, 0x43, 0x33, 0xce, 0x89, 0xc3, 0x31, 0xaf, 0x32, 0x00, 0xc4, 0x09, 0x60, 0x8c, 0x52, - 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0xcf, 0x49, 0xcc, - 0x4b, 0x47, 0xb8, 0xa8, 0x00, 0x64, 0x7a, 0x31, 0xc8, 0x61, 0x8b, 0x98, 0x98, 0xdd, 0x03, 0x9c, - 0x56, 0x31, 0xc9, 0xb9, 0x43, 0x8c, 0x0a, 0x80, 0x2a, 0xd1, 0x0b, 0x4f, 0xcd, 0xc9, 0xf1, 0xce, - 0xcb, 0x2f, 0xcf, 0x0b, 0x01, 0x29, 0x4d, 0x62, 0x03, 0xeb, 0x35, 0x06, 0x04, 0x00, 0x00, 0xff, - 0xff, 0x13, 0xf8, 0xe8, 0x42, 0xdd, 0x00, 0x00, 0x00, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_github_com_golang_protobuf_ptypes_any_any_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_github_com_golang_protobuf_ptypes_any_any_proto_goTypes, + DependencyIndexes: file_github_com_golang_protobuf_ptypes_any_any_proto_depIdxs, + }.Build() + File_github_com_golang_protobuf_ptypes_any_any_proto = out.File + file_github_com_golang_protobuf_ptypes_any_any_proto_rawDesc = nil + file_github_com_golang_protobuf_ptypes_any_any_proto_goTypes = nil + file_github_com_golang_protobuf_ptypes_any_any_proto_depIdxs = nil } diff --git a/vendor/github.com/golang/protobuf/ptypes/any/any.proto b/vendor/github.com/golang/protobuf/ptypes/any/any.proto deleted file mode 100644 index c9be85416..000000000 --- a/vendor/github.com/golang/protobuf/ptypes/any/any.proto +++ /dev/null @@ -1,155 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option go_package = "github.com/golang/protobuf/ptypes/any"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "AnyProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// `Any` contains an arbitrary serialized protocol buffer message along with a -// URL that describes the type of the serialized message. -// -// Protobuf library provides support to pack/unpack Any values in the form -// of utility functions or additional generated methods of the Any type. -// -// Example 1: Pack and unpack a message in C++. -// -// Foo foo = ...; -// Any any; -// any.PackFrom(foo); -// ... -// if (any.UnpackTo(&foo)) { -// ... -// } -// -// Example 2: Pack and unpack a message in Java. -// -// Foo foo = ...; -// Any any = Any.pack(foo); -// ... -// if (any.is(Foo.class)) { -// foo = any.unpack(Foo.class); -// } -// -// Example 3: Pack and unpack a message in Python. -// -// foo = Foo(...) -// any = Any() -// any.Pack(foo) -// ... -// if any.Is(Foo.DESCRIPTOR): -// any.Unpack(foo) -// ... -// -// Example 4: Pack and unpack a message in Go -// -// foo := &pb.Foo{...} -// any, err := ptypes.MarshalAny(foo) -// ... -// foo := &pb.Foo{} -// if err := ptypes.UnmarshalAny(any, foo); err != nil { -// ... -// } -// -// The pack methods provided by protobuf library will by default use -// 'type.googleapis.com/full.type.name' as the type URL and the unpack -// methods only use the fully qualified type name after the last '/' -// in the type URL, for example "foo.bar.com/x/y.z" will yield type -// name "y.z". -// -// -// JSON -// ==== -// The JSON representation of an `Any` value uses the regular -// representation of the deserialized, embedded message, with an -// additional field `@type` which contains the type URL. Example: -// -// package google.profile; -// message Person { -// string first_name = 1; -// string last_name = 2; -// } -// -// { -// "@type": "type.googleapis.com/google.profile.Person", -// "firstName": , -// "lastName": -// } -// -// If the embedded message type is well-known and has a custom JSON -// representation, that representation will be embedded adding a field -// `value` which holds the custom JSON in addition to the `@type` -// field. Example (for message [google.protobuf.Duration][]): -// -// { -// "@type": "type.googleapis.com/google.protobuf.Duration", -// "value": "1.212s" -// } -// -message Any { - // A URL/resource name that uniquely identifies the type of the serialized - // protocol buffer message. This string must contain at least - // one "/" character. The last segment of the URL's path must represent - // the fully qualified name of the type (as in - // `path/google.protobuf.Duration`). The name should be in a canonical form - // (e.g., leading "." is not accepted). - // - // In practice, teams usually precompile into the binary all types that they - // expect it to use in the context of Any. However, for URLs which use the - // scheme `http`, `https`, or no scheme, one can optionally set up a type - // server that maps type URLs to message definitions as follows: - // - // * If no scheme is provided, `https` is assumed. - // * An HTTP GET on the URL must yield a [google.protobuf.Type][] - // value in binary format, or produce an error. - // * Applications are allowed to cache lookup results based on the - // URL, or have them precompiled into a binary to avoid any - // lookup. Therefore, binary compatibility needs to be preserved - // on changes to types. (Use versioned type names to manage - // breaking changes.) - // - // Note: this functionality is not currently available in the official - // protobuf release, and it is not used for type URLs beginning with - // type.googleapis.com. - // - // Schemes other than `http`, `https` (or the empty scheme) might be - // used with implementation specific semantics. - // - string type_url = 1; - - // Must be a valid serialized protocol buffer of the above specified type. - bytes value = 2; -} diff --git a/vendor/github.com/golang/protobuf/ptypes/doc.go b/vendor/github.com/golang/protobuf/ptypes/doc.go index c0d595da7..fb9edd5c6 100644 --- a/vendor/github.com/golang/protobuf/ptypes/doc.go +++ b/vendor/github.com/golang/protobuf/ptypes/doc.go @@ -1,35 +1,6 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2016 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. -/* -Package ptypes contains code for interacting with well-known types. -*/ +// Package ptypes provides functionality for interacting with well-known types. package ptypes diff --git a/vendor/github.com/golang/protobuf/ptypes/duration.go b/vendor/github.com/golang/protobuf/ptypes/duration.go index 26d1ca2fb..6110ae8a4 100644 --- a/vendor/github.com/golang/protobuf/ptypes/duration.go +++ b/vendor/github.com/golang/protobuf/ptypes/duration.go @@ -1,102 +1,72 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2016 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package ptypes -// This file implements conversions between google.protobuf.Duration -// and time.Duration. - import ( "errors" "fmt" "time" - durpb "github.com/golang/protobuf/ptypes/duration" + durationpb "github.com/golang/protobuf/ptypes/duration" ) +// Range of google.protobuf.Duration as specified in duration.proto. +// This is about 10,000 years in seconds. const ( - // Range of a durpb.Duration in seconds, as specified in - // google/protobuf/duration.proto. This is about 10,000 years in seconds. maxSeconds = int64(10000 * 365.25 * 24 * 60 * 60) minSeconds = -maxSeconds ) -// validateDuration determines whether the durpb.Duration is valid according to the -// definition in google/protobuf/duration.proto. A valid durpb.Duration -// may still be too large to fit into a time.Duration (the range of durpb.Duration -// is about 10,000 years, and the range of time.Duration is about 290). -func validateDuration(d *durpb.Duration) error { - if d == nil { - return errors.New("duration: nil Duration") - } - if d.Seconds < minSeconds || d.Seconds > maxSeconds { - return fmt.Errorf("duration: %v: seconds out of range", d) - } - if d.Nanos <= -1e9 || d.Nanos >= 1e9 { - return fmt.Errorf("duration: %v: nanos out of range", d) - } - // Seconds and Nanos must have the same sign, unless d.Nanos is zero. - if (d.Seconds < 0 && d.Nanos > 0) || (d.Seconds > 0 && d.Nanos < 0) { - return fmt.Errorf("duration: %v: seconds and nanos have different signs", d) - } - return nil -} - -// Duration converts a durpb.Duration to a time.Duration. Duration -// returns an error if the durpb.Duration is invalid or is too large to be -// represented in a time.Duration. -func Duration(p *durpb.Duration) (time.Duration, error) { - if err := validateDuration(p); err != nil { +// Duration converts a durationpb.Duration to a time.Duration. +// Duration returns an error if dur is invalid or overflows a time.Duration. +func Duration(dur *durationpb.Duration) (time.Duration, error) { + if err := validateDuration(dur); err != nil { return 0, err } - d := time.Duration(p.Seconds) * time.Second - if int64(d/time.Second) != p.Seconds { - return 0, fmt.Errorf("duration: %v is out of range for time.Duration", p) + d := time.Duration(dur.Seconds) * time.Second + if int64(d/time.Second) != dur.Seconds { + return 0, fmt.Errorf("duration: %v is out of range for time.Duration", dur) } - if p.Nanos != 0 { - d += time.Duration(p.Nanos) * time.Nanosecond - if (d < 0) != (p.Nanos < 0) { - return 0, fmt.Errorf("duration: %v is out of range for time.Duration", p) + if dur.Nanos != 0 { + d += time.Duration(dur.Nanos) * time.Nanosecond + if (d < 0) != (dur.Nanos < 0) { + return 0, fmt.Errorf("duration: %v is out of range for time.Duration", dur) } } return d, nil } -// DurationProto converts a time.Duration to a durpb.Duration. -func DurationProto(d time.Duration) *durpb.Duration { +// DurationProto converts a time.Duration to a durationpb.Duration. +func DurationProto(d time.Duration) *durationpb.Duration { nanos := d.Nanoseconds() secs := nanos / 1e9 nanos -= secs * 1e9 - return &durpb.Duration{ - Seconds: secs, + return &durationpb.Duration{ + Seconds: int64(secs), Nanos: int32(nanos), } } + +// validateDuration determines whether the durationpb.Duration is valid +// according to the definition in google/protobuf/duration.proto. +// A valid durpb.Duration may still be too large to fit into a time.Duration +// Note that the range of durationpb.Duration is about 10,000 years, +// while the range of time.Duration is about 290 years. +func validateDuration(dur *durationpb.Duration) error { + if dur == nil { + return errors.New("duration: nil Duration") + } + if dur.Seconds < minSeconds || dur.Seconds > maxSeconds { + return fmt.Errorf("duration: %v: seconds out of range", dur) + } + if dur.Nanos <= -1e9 || dur.Nanos >= 1e9 { + return fmt.Errorf("duration: %v: nanos out of range", dur) + } + // Seconds and Nanos must have the same sign, unless d.Nanos is zero. + if (dur.Seconds < 0 && dur.Nanos > 0) || (dur.Seconds > 0 && dur.Nanos < 0) { + return fmt.Errorf("duration: %v: seconds and nanos have different signs", dur) + } + return nil +} diff --git a/vendor/github.com/golang/protobuf/ptypes/duration/duration.pb.go b/vendor/github.com/golang/protobuf/ptypes/duration/duration.pb.go index 58b078699..d0079ee3e 100644 --- a/vendor/github.com/golang/protobuf/ptypes/duration/duration.pb.go +++ b/vendor/github.com/golang/protobuf/ptypes/duration/duration.pb.go @@ -1,163 +1,63 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: google/protobuf/duration.proto +// source: github.com/golang/protobuf/ptypes/duration/duration.proto package duration import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + reflect "reflect" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +// Symbols defined in public import of google/protobuf/duration.proto. -// 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 +type Duration = durationpb.Duration -// A Duration represents a signed, fixed-length span of time represented -// as a count of seconds and fractions of seconds at nanosecond -// resolution. It is independent of any calendar and concepts like "day" -// or "month". It is related to Timestamp in that the difference between -// two Timestamp values is a Duration and it can be added or subtracted -// from a Timestamp. Range is approximately +-10,000 years. -// -// # Examples -// -// Example 1: Compute Duration from two Timestamps in pseudo code. -// -// Timestamp start = ...; -// Timestamp end = ...; -// Duration duration = ...; -// -// duration.seconds = end.seconds - start.seconds; -// duration.nanos = end.nanos - start.nanos; -// -// if (duration.seconds < 0 && duration.nanos > 0) { -// duration.seconds += 1; -// duration.nanos -= 1000000000; -// } else if (duration.seconds > 0 && duration.nanos < 0) { -// duration.seconds -= 1; -// duration.nanos += 1000000000; -// } -// -// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. -// -// Timestamp start = ...; -// Duration duration = ...; -// Timestamp end = ...; -// -// end.seconds = start.seconds + duration.seconds; -// end.nanos = start.nanos + duration.nanos; -// -// if (end.nanos < 0) { -// end.seconds -= 1; -// end.nanos += 1000000000; -// } else if (end.nanos >= 1000000000) { -// end.seconds += 1; -// end.nanos -= 1000000000; -// } -// -// Example 3: Compute Duration from datetime.timedelta in Python. -// -// td = datetime.timedelta(days=3, minutes=10) -// duration = Duration() -// duration.FromTimedelta(td) -// -// # JSON Mapping -// -// In JSON format, the Duration type is encoded as a string rather than an -// object, where the string ends in the suffix "s" (indicating seconds) and -// is preceded by the number of seconds, with nanoseconds expressed as -// fractional seconds. For example, 3 seconds with 0 nanoseconds should be -// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should -// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 -// microsecond should be expressed in JSON format as "3.000001s". -// -// -type Duration struct { - // Signed seconds of the span of time. Must be from -315,576,000,000 - // to +315,576,000,000 inclusive. Note: these bounds are computed from: - // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` - // Signed fractions of a second at nanosecond resolution of the span - // of time. Durations less than one second are represented with a 0 - // `seconds` field and a positive or negative `nanos` field. For durations - // of one second or more, a non-zero value for the `nanos` field must be - // of the same sign as the `seconds` field. Must be from -999,999,999 - // to +999,999,999 inclusive. - Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +var File_github_com_golang_protobuf_ptypes_duration_duration_proto protoreflect.FileDescriptor + +var file_github_com_golang_protobuf_ptypes_duration_duration_proto_rawDesc = []byte{ + 0x0a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, + 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x64, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x42, 0x35, 0x5a, 0x33, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x50, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (m *Duration) Reset() { *m = Duration{} } -func (m *Duration) String() string { return proto.CompactTextString(m) } -func (*Duration) ProtoMessage() {} -func (*Duration) Descriptor() ([]byte, []int) { - return fileDescriptor_23597b2ebd7ac6c5, []int{0} +var file_github_com_golang_protobuf_ptypes_duration_duration_proto_goTypes = []interface{}{} +var file_github_com_golang_protobuf_ptypes_duration_duration_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } -func (*Duration) XXX_WellKnownType() string { return "Duration" } - -func (m *Duration) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Duration.Unmarshal(m, b) -} -func (m *Duration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Duration.Marshal(b, m, deterministic) -} -func (m *Duration) XXX_Merge(src proto.Message) { - xxx_messageInfo_Duration.Merge(m, src) -} -func (m *Duration) XXX_Size() int { - return xxx_messageInfo_Duration.Size(m) -} -func (m *Duration) XXX_DiscardUnknown() { - xxx_messageInfo_Duration.DiscardUnknown(m) -} - -var xxx_messageInfo_Duration proto.InternalMessageInfo - -func (m *Duration) GetSeconds() int64 { - if m != nil { - return m.Seconds +func init() { file_github_com_golang_protobuf_ptypes_duration_duration_proto_init() } +func file_github_com_golang_protobuf_ptypes_duration_duration_proto_init() { + if File_github_com_golang_protobuf_ptypes_duration_duration_proto != nil { + return } - return 0 -} - -func (m *Duration) GetNanos() int32 { - if m != nil { - return m.Nanos - } - return 0 -} - -func init() { - proto.RegisterType((*Duration)(nil), "google.protobuf.Duration") -} - -func init() { - proto.RegisterFile("google/protobuf/duration.proto", fileDescriptor_23597b2ebd7ac6c5) -} - -var fileDescriptor_23597b2ebd7ac6c5 = []byte{ - // 190 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0xcf, 0xcf, 0x4f, - 0xcf, 0x49, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x4f, 0x29, 0x2d, 0x4a, - 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x03, 0x8b, 0x08, 0xf1, 0x43, 0xe4, 0xf5, 0x60, 0xf2, 0x4a, 0x56, - 0x5c, 0x1c, 0x2e, 0x50, 0x25, 0x42, 0x12, 0x5c, 0xec, 0xc5, 0xa9, 0xc9, 0xf9, 0x79, 0x29, 0xc5, - 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xcc, 0x41, 0x30, 0xae, 0x90, 0x08, 0x17, 0x6b, 0x5e, 0x62, 0x5e, - 0x7e, 0xb1, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x6b, 0x10, 0x84, 0xe3, 0x54, 0xc3, 0x25, 0x9c, 0x9c, - 0x9f, 0xab, 0x87, 0x66, 0xa4, 0x13, 0x2f, 0xcc, 0xc0, 0x00, 0x90, 0x48, 0x00, 0x63, 0x94, 0x56, - 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x7a, 0x7e, 0x4e, 0x62, 0x5e, - 0x3a, 0xc2, 0x7d, 0x05, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x70, 0x67, 0xfe, 0x60, 0x64, 0x5c, 0xc4, - 0xc4, 0xec, 0x1e, 0xe0, 0xb4, 0x8a, 0x49, 0xce, 0x1d, 0x62, 0x6e, 0x00, 0x54, 0xa9, 0x5e, 0x78, - 0x6a, 0x4e, 0x8e, 0x77, 0x5e, 0x7e, 0x79, 0x5e, 0x08, 0x48, 0x4b, 0x12, 0x1b, 0xd8, 0x0c, 0x63, - 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdc, 0x84, 0x30, 0xff, 0xf3, 0x00, 0x00, 0x00, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_github_com_golang_protobuf_ptypes_duration_duration_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_github_com_golang_protobuf_ptypes_duration_duration_proto_goTypes, + DependencyIndexes: file_github_com_golang_protobuf_ptypes_duration_duration_proto_depIdxs, + }.Build() + File_github_com_golang_protobuf_ptypes_duration_duration_proto = out.File + file_github_com_golang_protobuf_ptypes_duration_duration_proto_rawDesc = nil + file_github_com_golang_protobuf_ptypes_duration_duration_proto_goTypes = nil + file_github_com_golang_protobuf_ptypes_duration_duration_proto_depIdxs = nil } diff --git a/vendor/github.com/golang/protobuf/ptypes/duration/duration.proto b/vendor/github.com/golang/protobuf/ptypes/duration/duration.proto deleted file mode 100644 index 99cb102c3..000000000 --- a/vendor/github.com/golang/protobuf/ptypes/duration/duration.proto +++ /dev/null @@ -1,116 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; -option go_package = "github.com/golang/protobuf/ptypes/duration"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "DurationProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// A Duration represents a signed, fixed-length span of time represented -// as a count of seconds and fractions of seconds at nanosecond -// resolution. It is independent of any calendar and concepts like "day" -// or "month". It is related to Timestamp in that the difference between -// two Timestamp values is a Duration and it can be added or subtracted -// from a Timestamp. Range is approximately +-10,000 years. -// -// # Examples -// -// Example 1: Compute Duration from two Timestamps in pseudo code. -// -// Timestamp start = ...; -// Timestamp end = ...; -// Duration duration = ...; -// -// duration.seconds = end.seconds - start.seconds; -// duration.nanos = end.nanos - start.nanos; -// -// if (duration.seconds < 0 && duration.nanos > 0) { -// duration.seconds += 1; -// duration.nanos -= 1000000000; -// } else if (duration.seconds > 0 && duration.nanos < 0) { -// duration.seconds -= 1; -// duration.nanos += 1000000000; -// } -// -// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. -// -// Timestamp start = ...; -// Duration duration = ...; -// Timestamp end = ...; -// -// end.seconds = start.seconds + duration.seconds; -// end.nanos = start.nanos + duration.nanos; -// -// if (end.nanos < 0) { -// end.seconds -= 1; -// end.nanos += 1000000000; -// } else if (end.nanos >= 1000000000) { -// end.seconds += 1; -// end.nanos -= 1000000000; -// } -// -// Example 3: Compute Duration from datetime.timedelta in Python. -// -// td = datetime.timedelta(days=3, minutes=10) -// duration = Duration() -// duration.FromTimedelta(td) -// -// # JSON Mapping -// -// In JSON format, the Duration type is encoded as a string rather than an -// object, where the string ends in the suffix "s" (indicating seconds) and -// is preceded by the number of seconds, with nanoseconds expressed as -// fractional seconds. For example, 3 seconds with 0 nanoseconds should be -// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should -// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 -// microsecond should be expressed in JSON format as "3.000001s". -// -// -message Duration { - // Signed seconds of the span of time. Must be from -315,576,000,000 - // to +315,576,000,000 inclusive. Note: these bounds are computed from: - // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - int64 seconds = 1; - - // Signed fractions of a second at nanosecond resolution of the span - // of time. Durations less than one second are represented with a 0 - // `seconds` field and a positive or negative `nanos` field. For durations - // of one second or more, a non-zero value for the `nanos` field must be - // of the same sign as the `seconds` field. Must be from -999,999,999 - // to +999,999,999 inclusive. - int32 nanos = 2; -} diff --git a/vendor/github.com/golang/protobuf/ptypes/empty/empty.pb.go b/vendor/github.com/golang/protobuf/ptypes/empty/empty.pb.go index 6bd9f6748..16686a655 100644 --- a/vendor/github.com/golang/protobuf/ptypes/empty/empty.pb.go +++ b/vendor/github.com/golang/protobuf/ptypes/empty/empty.pb.go @@ -1,85 +1,62 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: google/protobuf/empty.proto +// source: github.com/golang/protobuf/ptypes/empty/empty.proto package empty import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + reflect "reflect" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +// Symbols defined in public import of google/protobuf/empty.proto. -// 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 +type Empty = emptypb.Empty -// A generic empty message that you can re-use to avoid defining duplicated -// empty messages in your APIs. A typical example is to use it as the request -// or the response type of an API method. For instance: -// -// service Foo { -// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); -// } -// -// The JSON representation for `Empty` is empty JSON object `{}`. -type Empty struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +var File_github_com_golang_protobuf_ptypes_empty_empty_proto protoreflect.FileDescriptor + +var file_github_com_golang_protobuf_ptypes_empty_empty_proto_rawDesc = []byte{ + 0x0a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, + 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x3b, 0x65, 0x6d, + 0x70, 0x74, 0x79, 0x50, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (m *Empty) Reset() { *m = Empty{} } -func (m *Empty) String() string { return proto.CompactTextString(m) } -func (*Empty) ProtoMessage() {} -func (*Empty) Descriptor() ([]byte, []int) { - return fileDescriptor_900544acb223d5b8, []int{0} +var file_github_com_golang_protobuf_ptypes_empty_empty_proto_goTypes = []interface{}{} +var file_github_com_golang_protobuf_ptypes_empty_empty_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } -func (*Empty) XXX_WellKnownType() string { return "Empty" } - -func (m *Empty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Empty.Unmarshal(m, b) -} -func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Empty.Marshal(b, m, deterministic) -} -func (m *Empty) XXX_Merge(src proto.Message) { - xxx_messageInfo_Empty.Merge(m, src) -} -func (m *Empty) XXX_Size() int { - return xxx_messageInfo_Empty.Size(m) -} -func (m *Empty) XXX_DiscardUnknown() { - xxx_messageInfo_Empty.DiscardUnknown(m) -} - -var xxx_messageInfo_Empty proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Empty)(nil), "google.protobuf.Empty") -} - -func init() { - proto.RegisterFile("google/protobuf/empty.proto", fileDescriptor_900544acb223d5b8) -} - -var fileDescriptor_900544acb223d5b8 = []byte{ - // 148 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4e, 0xcf, 0xcf, 0x4f, - 0xcf, 0x49, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x4f, 0xcd, 0x2d, 0x28, - 0xa9, 0xd4, 0x03, 0x73, 0x85, 0xf8, 0x21, 0x92, 0x7a, 0x30, 0x49, 0x25, 0x76, 0x2e, 0x56, 0x57, - 0x90, 0xbc, 0x53, 0x19, 0x97, 0x70, 0x72, 0x7e, 0xae, 0x1e, 0x9a, 0xbc, 0x13, 0x17, 0x58, 0x36, - 0x00, 0xc4, 0x0d, 0x60, 0x8c, 0x52, 0x4f, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, - 0xd5, 0x4f, 0xcf, 0xcf, 0x49, 0xcc, 0x4b, 0x47, 0x58, 0x53, 0x50, 0x52, 0x59, 0x90, 0x5a, 0x0c, - 0xb1, 0xed, 0x07, 0x23, 0xe3, 0x22, 0x26, 0x66, 0xf7, 0x00, 0xa7, 0x55, 0x4c, 0x72, 0xee, 0x10, - 0x13, 0x03, 0xa0, 0xea, 0xf4, 0xc2, 0x53, 0x73, 0x72, 0xbc, 0xf3, 0xf2, 0xcb, 0xf3, 0x42, 0x40, - 0xea, 0x93, 0xd8, 0xc0, 0x06, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x64, 0xd4, 0xb3, 0xa6, - 0xb7, 0x00, 0x00, 0x00, +func init() { file_github_com_golang_protobuf_ptypes_empty_empty_proto_init() } +func file_github_com_golang_protobuf_ptypes_empty_empty_proto_init() { + if File_github_com_golang_protobuf_ptypes_empty_empty_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_github_com_golang_protobuf_ptypes_empty_empty_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_github_com_golang_protobuf_ptypes_empty_empty_proto_goTypes, + DependencyIndexes: file_github_com_golang_protobuf_ptypes_empty_empty_proto_depIdxs, + }.Build() + File_github_com_golang_protobuf_ptypes_empty_empty_proto = out.File + file_github_com_golang_protobuf_ptypes_empty_empty_proto_rawDesc = nil + file_github_com_golang_protobuf_ptypes_empty_empty_proto_goTypes = nil + file_github_com_golang_protobuf_ptypes_empty_empty_proto_depIdxs = nil } diff --git a/vendor/github.com/golang/protobuf/ptypes/empty/empty.proto b/vendor/github.com/golang/protobuf/ptypes/empty/empty.proto deleted file mode 100644 index 03cacd233..000000000 --- a/vendor/github.com/golang/protobuf/ptypes/empty/empty.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option go_package = "github.com/golang/protobuf/ptypes/empty"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "EmptyProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option cc_enable_arenas = true; - -// A generic empty message that you can re-use to avoid defining duplicated -// empty messages in your APIs. A typical example is to use it as the request -// or the response type of an API method. For instance: -// -// service Foo { -// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); -// } -// -// The JSON representation for `Empty` is empty JSON object `{}`. -message Empty {} diff --git a/vendor/github.com/golang/protobuf/ptypes/struct/struct.pb.go b/vendor/github.com/golang/protobuf/ptypes/struct/struct.pb.go deleted file mode 100644 index d82d6176b..000000000 --- a/vendor/github.com/golang/protobuf/ptypes/struct/struct.pb.go +++ /dev/null @@ -1,338 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: google/protobuf/struct.proto - -package structpb - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// `NullValue` is a singleton enumeration to represent the null value for the -// `Value` type union. -// -// The JSON representation for `NullValue` is JSON `null`. -type NullValue int32 - -const ( - // Null value. - NullValue_NULL_VALUE NullValue = 0 -) - -var NullValue_name = map[int32]string{ - 0: "NULL_VALUE", -} - -var NullValue_value = map[string]int32{ - "NULL_VALUE": 0, -} - -func (x NullValue) String() string { - return proto.EnumName(NullValue_name, int32(x)) -} - -func (NullValue) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_df322afd6c9fb402, []int{0} -} - -func (NullValue) XXX_WellKnownType() string { return "NullValue" } - -// `Struct` represents a structured data value, consisting of fields -// which map to dynamically typed values. In some languages, `Struct` -// might be supported by a native representation. For example, in -// scripting languages like JS a struct is represented as an -// object. The details of that representation are described together -// with the proto support for the language. -// -// The JSON representation for `Struct` is JSON object. -type Struct struct { - // Unordered map of dynamically typed values. - Fields map[string]*Value `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,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 *Struct) Reset() { *m = Struct{} } -func (m *Struct) String() string { return proto.CompactTextString(m) } -func (*Struct) ProtoMessage() {} -func (*Struct) Descriptor() ([]byte, []int) { - return fileDescriptor_df322afd6c9fb402, []int{0} -} - -func (*Struct) XXX_WellKnownType() string { return "Struct" } - -func (m *Struct) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Struct.Unmarshal(m, b) -} -func (m *Struct) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Struct.Marshal(b, m, deterministic) -} -func (m *Struct) XXX_Merge(src proto.Message) { - xxx_messageInfo_Struct.Merge(m, src) -} -func (m *Struct) XXX_Size() int { - return xxx_messageInfo_Struct.Size(m) -} -func (m *Struct) XXX_DiscardUnknown() { - xxx_messageInfo_Struct.DiscardUnknown(m) -} - -var xxx_messageInfo_Struct proto.InternalMessageInfo - -func (m *Struct) GetFields() map[string]*Value { - if m != nil { - return m.Fields - } - return nil -} - -// `Value` represents a dynamically typed value which can be either -// null, a number, a string, a boolean, a recursive struct value, or a -// list of values. A producer of value is expected to set one of that -// variants, absence of any variant indicates an error. -// -// The JSON representation for `Value` is JSON value. -type Value struct { - // The kind of value. - // - // Types that are valid to be assigned to Kind: - // *Value_NullValue - // *Value_NumberValue - // *Value_StringValue - // *Value_BoolValue - // *Value_StructValue - // *Value_ListValue - Kind isValue_Kind `protobuf_oneof:"kind"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Value) Reset() { *m = Value{} } -func (m *Value) String() string { return proto.CompactTextString(m) } -func (*Value) ProtoMessage() {} -func (*Value) Descriptor() ([]byte, []int) { - return fileDescriptor_df322afd6c9fb402, []int{1} -} - -func (*Value) XXX_WellKnownType() string { return "Value" } - -func (m *Value) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Value.Unmarshal(m, b) -} -func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Value.Marshal(b, m, deterministic) -} -func (m *Value) XXX_Merge(src proto.Message) { - xxx_messageInfo_Value.Merge(m, src) -} -func (m *Value) XXX_Size() int { - return xxx_messageInfo_Value.Size(m) -} -func (m *Value) XXX_DiscardUnknown() { - xxx_messageInfo_Value.DiscardUnknown(m) -} - -var xxx_messageInfo_Value proto.InternalMessageInfo - -type isValue_Kind interface { - isValue_Kind() -} - -type Value_NullValue struct { - NullValue NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"` -} - -type Value_NumberValue struct { - NumberValue float64 `protobuf:"fixed64,2,opt,name=number_value,json=numberValue,proto3,oneof"` -} - -type Value_StringValue struct { - StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"` -} - -type Value_BoolValue struct { - BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof"` -} - -type Value_StructValue struct { - StructValue *Struct `protobuf:"bytes,5,opt,name=struct_value,json=structValue,proto3,oneof"` -} - -type Value_ListValue struct { - ListValue *ListValue `protobuf:"bytes,6,opt,name=list_value,json=listValue,proto3,oneof"` -} - -func (*Value_NullValue) isValue_Kind() {} - -func (*Value_NumberValue) isValue_Kind() {} - -func (*Value_StringValue) isValue_Kind() {} - -func (*Value_BoolValue) isValue_Kind() {} - -func (*Value_StructValue) isValue_Kind() {} - -func (*Value_ListValue) isValue_Kind() {} - -func (m *Value) GetKind() isValue_Kind { - if m != nil { - return m.Kind - } - return nil -} - -func (m *Value) GetNullValue() NullValue { - if x, ok := m.GetKind().(*Value_NullValue); ok { - return x.NullValue - } - return NullValue_NULL_VALUE -} - -func (m *Value) GetNumberValue() float64 { - if x, ok := m.GetKind().(*Value_NumberValue); ok { - return x.NumberValue - } - return 0 -} - -func (m *Value) GetStringValue() string { - if x, ok := m.GetKind().(*Value_StringValue); ok { - return x.StringValue - } - return "" -} - -func (m *Value) GetBoolValue() bool { - if x, ok := m.GetKind().(*Value_BoolValue); ok { - return x.BoolValue - } - return false -} - -func (m *Value) GetStructValue() *Struct { - if x, ok := m.GetKind().(*Value_StructValue); ok { - return x.StructValue - } - return nil -} - -func (m *Value) GetListValue() *ListValue { - if x, ok := m.GetKind().(*Value_ListValue); ok { - return x.ListValue - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Value) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Value_NullValue)(nil), - (*Value_NumberValue)(nil), - (*Value_StringValue)(nil), - (*Value_BoolValue)(nil), - (*Value_StructValue)(nil), - (*Value_ListValue)(nil), - } -} - -// `ListValue` is a wrapper around a repeated field of values. -// -// The JSON representation for `ListValue` is JSON array. -type ListValue struct { - // Repeated field of dynamically typed values. - Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListValue) Reset() { *m = ListValue{} } -func (m *ListValue) String() string { return proto.CompactTextString(m) } -func (*ListValue) ProtoMessage() {} -func (*ListValue) Descriptor() ([]byte, []int) { - return fileDescriptor_df322afd6c9fb402, []int{2} -} - -func (*ListValue) XXX_WellKnownType() string { return "ListValue" } - -func (m *ListValue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListValue.Unmarshal(m, b) -} -func (m *ListValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListValue.Marshal(b, m, deterministic) -} -func (m *ListValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListValue.Merge(m, src) -} -func (m *ListValue) XXX_Size() int { - return xxx_messageInfo_ListValue.Size(m) -} -func (m *ListValue) XXX_DiscardUnknown() { - xxx_messageInfo_ListValue.DiscardUnknown(m) -} - -var xxx_messageInfo_ListValue proto.InternalMessageInfo - -func (m *ListValue) GetValues() []*Value { - if m != nil { - return m.Values - } - return nil -} - -func init() { - proto.RegisterEnum("google.protobuf.NullValue", NullValue_name, NullValue_value) - proto.RegisterType((*Struct)(nil), "google.protobuf.Struct") - proto.RegisterMapType((map[string]*Value)(nil), "google.protobuf.Struct.FieldsEntry") - proto.RegisterType((*Value)(nil), "google.protobuf.Value") - proto.RegisterType((*ListValue)(nil), "google.protobuf.ListValue") -} - -func init() { - proto.RegisterFile("google/protobuf/struct.proto", fileDescriptor_df322afd6c9fb402) -} - -var fileDescriptor_df322afd6c9fb402 = []byte{ - // 417 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x41, 0x8b, 0xd3, 0x40, - 0x14, 0xc7, 0x3b, 0xc9, 0x36, 0x98, 0x17, 0x59, 0x97, 0x11, 0xb4, 0xac, 0xa2, 0xa1, 0x7b, 0x09, - 0x22, 0x29, 0xd6, 0x8b, 0x18, 0x2f, 0x06, 0xd6, 0x5d, 0x30, 0x2c, 0x31, 0xba, 0x15, 0xbc, 0x94, - 0x26, 0x4d, 0x63, 0xe8, 0x74, 0x26, 0x24, 0x33, 0x4a, 0x8f, 0x7e, 0x0b, 0xcf, 0x1e, 0x3d, 0xfa, - 0xe9, 0x3c, 0xca, 0xcc, 0x24, 0xa9, 0xb4, 0xf4, 0x94, 0xbc, 0xf7, 0x7e, 0xef, 0x3f, 0xef, 0xff, - 0x66, 0xe0, 0x71, 0xc1, 0x58, 0x41, 0xf2, 0x49, 0x55, 0x33, 0xce, 0x52, 0xb1, 0x9a, 0x34, 0xbc, - 0x16, 0x19, 0xf7, 0x55, 0x8c, 0xef, 0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 0x78, 0xef, 0x92, - 0x74, 0x41, 0x68, 0xc1, 0xc9, 0xba, 0xa4, 0xcb, 0x71, 0x00, 0x76, 0x4f, 0x60, 0x1f, 0x2c, 0x25, - 0xd6, 0xdd, 0xe8, 0xb1, 0xa5, 0xb7, 0xd4, 0xb3, 0x47, 0x60, 0xf7, 0x4b, 0xc4, 0xa7, 0x00, 0x37, - 0xb7, 0x51, 0x34, 0x9f, 0xbd, 0x8d, 0x6e, 0x2f, 0xcf, 0x06, 0xe1, 0x0f, 0x04, 0xf7, 0x33, 0xb6, - 0xd9, 0x97, 0x08, 0x1d, 0xed, 0x26, 0x96, 0x71, 0x8c, 0xbe, 0xbc, 0x28, 0x4a, 0xfe, 0x55, 0xa4, - 0x7e, 0xc6, 0x36, 0x93, 0x82, 0x91, 0x05, 0x2d, 0x76, 0x4f, 0xb1, 0xe2, 0xdb, 0x2a, 0x6f, 0xda, - 0x17, 0x19, 0xe8, 0x4f, 0x95, 0xfe, 0x45, 0xe8, 0x97, 0x61, 0x5e, 0xc5, 0xe1, 0x6f, 0xe3, 0xc9, - 0x95, 0x16, 0x8f, 0xbb, 0xf9, 0x3e, 0xe7, 0x84, 0xbc, 0xa7, 0xec, 0x3b, 0xfd, 0x24, 0x3b, 0x53, - 0x4b, 0x49, 0xbd, 0xfc, 0x17, 0x00, 0x00, 0xff, 0xff, 0xe8, 0x1b, 0x59, 0xf8, 0xe5, 0x02, 0x00, - 0x00, -} diff --git a/vendor/github.com/golang/protobuf/ptypes/struct/struct.proto b/vendor/github.com/golang/protobuf/ptypes/struct/struct.proto deleted file mode 100644 index ed990e31d..000000000 --- a/vendor/github.com/golang/protobuf/ptypes/struct/struct.proto +++ /dev/null @@ -1,95 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; -option go_package = "github.com/golang/protobuf/ptypes/struct;structpb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "StructProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// `Struct` represents a structured data value, consisting of fields -// which map to dynamically typed values. In some languages, `Struct` -// might be supported by a native representation. For example, in -// scripting languages like JS a struct is represented as an -// object. The details of that representation are described together -// with the proto support for the language. -// -// The JSON representation for `Struct` is JSON object. -message Struct { - // Unordered map of dynamically typed values. - map fields = 1; -} - -// `Value` represents a dynamically typed value which can be either -// null, a number, a string, a boolean, a recursive struct value, or a -// list of values. A producer of value is expected to set one of that -// variants, absence of any variant indicates an error. -// -// The JSON representation for `Value` is JSON value. -message Value { - // The kind of value. - oneof kind { - // Represents a null value. - NullValue null_value = 1; - // Represents a double value. - double number_value = 2; - // Represents a string value. - string string_value = 3; - // Represents a boolean value. - bool bool_value = 4; - // Represents a structured value. - Struct struct_value = 5; - // Represents a repeated `Value`. - ListValue list_value = 6; - } -} - -// `NullValue` is a singleton enumeration to represent the null value for the -// `Value` type union. -// -// The JSON representation for `NullValue` is JSON `null`. -enum NullValue { - // Null value. - NULL_VALUE = 0; -} - -// `ListValue` is a wrapper around a repeated field of values. -// -// The JSON representation for `ListValue` is JSON array. -message ListValue { - // Repeated field of dynamically typed values. - repeated Value values = 1; -} diff --git a/vendor/github.com/golang/protobuf/ptypes/timestamp.go b/vendor/github.com/golang/protobuf/ptypes/timestamp.go index 8da0df01a..026d0d491 100644 --- a/vendor/github.com/golang/protobuf/ptypes/timestamp.go +++ b/vendor/github.com/golang/protobuf/ptypes/timestamp.go @@ -1,46 +1,18 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2016 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package ptypes -// This file implements operations on google.protobuf.Timestamp. - import ( "errors" "fmt" "time" - tspb "github.com/golang/protobuf/ptypes/timestamp" + timestamppb "github.com/golang/protobuf/ptypes/timestamp" ) +// Range of google.protobuf.Duration as specified in timestamp.proto. const ( // Seconds field of the earliest valid Timestamp. // This is time.Date(1, 1, 1, 0, 0, 0, 0, time.UTC).Unix(). @@ -50,17 +22,71 @@ const ( maxValidSeconds = 253402300800 ) +// Timestamp converts a timestamppb.Timestamp to a time.Time. +// It returns an error if the argument is invalid. +// +// Unlike most Go functions, if Timestamp returns an error, the first return +// value is not the zero time.Time. Instead, it is the value obtained from the +// time.Unix function when passed the contents of the Timestamp, in the UTC +// locale. This may or may not be a meaningful time; many invalid Timestamps +// do map to valid time.Times. +// +// A nil Timestamp returns an error. The first return value in that case is +// undefined. +func Timestamp(ts *timestamppb.Timestamp) (time.Time, error) { + // Don't return the zero value on error, because corresponds to a valid + // timestamp. Instead return whatever time.Unix gives us. + var t time.Time + if ts == nil { + t = time.Unix(0, 0).UTC() // treat nil like the empty Timestamp + } else { + t = time.Unix(ts.Seconds, int64(ts.Nanos)).UTC() + } + return t, validateTimestamp(ts) +} + +// TimestampNow returns a google.protobuf.Timestamp for the current time. +func TimestampNow() *timestamppb.Timestamp { + ts, err := TimestampProto(time.Now()) + if err != nil { + panic("ptypes: time.Now() out of Timestamp range") + } + return ts +} + +// TimestampProto converts the time.Time to a google.protobuf.Timestamp proto. +// It returns an error if the resulting Timestamp is invalid. +func TimestampProto(t time.Time) (*timestamppb.Timestamp, error) { + ts := ×tamppb.Timestamp{ + Seconds: t.Unix(), + Nanos: int32(t.Nanosecond()), + } + if err := validateTimestamp(ts); err != nil { + return nil, err + } + return ts, nil +} + +// TimestampString returns the RFC 3339 string for valid Timestamps. +// For invalid Timestamps, it returns an error message in parentheses. +func TimestampString(ts *timestamppb.Timestamp) string { + t, err := Timestamp(ts) + if err != nil { + return fmt.Sprintf("(%v)", err) + } + return t.Format(time.RFC3339Nano) +} + // validateTimestamp determines whether a Timestamp is valid. -// A valid timestamp represents a time in the range -// [0001-01-01, 10000-01-01) and has a Nanos field -// in the range [0, 1e9). +// A valid timestamp represents a time in the range [0001-01-01, 10000-01-01) +// and has a Nanos field in the range [0, 1e9). // // If the Timestamp is valid, validateTimestamp returns nil. -// Otherwise, it returns an error that describes -// the problem. +// Otherwise, it returns an error that describes the problem. // -// Every valid Timestamp can be represented by a time.Time, but the converse is not true. -func validateTimestamp(ts *tspb.Timestamp) error { +// Every valid Timestamp can be represented by a time.Time, +// but the converse is not true. +func validateTimestamp(ts *timestamppb.Timestamp) error { if ts == nil { return errors.New("timestamp: nil Timestamp") } @@ -75,58 +101,3 @@ func validateTimestamp(ts *tspb.Timestamp) error { } return nil } - -// Timestamp converts a google.protobuf.Timestamp proto to a time.Time. -// It returns an error if the argument is invalid. -// -// Unlike most Go functions, if Timestamp returns an error, the first return value -// is not the zero time.Time. Instead, it is the value obtained from the -// time.Unix function when passed the contents of the Timestamp, in the UTC -// locale. This may or may not be a meaningful time; many invalid Timestamps -// do map to valid time.Times. -// -// A nil Timestamp returns an error. The first return value in that case is -// undefined. -func Timestamp(ts *tspb.Timestamp) (time.Time, error) { - // Don't return the zero value on error, because corresponds to a valid - // timestamp. Instead return whatever time.Unix gives us. - var t time.Time - if ts == nil { - t = time.Unix(0, 0).UTC() // treat nil like the empty Timestamp - } else { - t = time.Unix(ts.Seconds, int64(ts.Nanos)).UTC() - } - return t, validateTimestamp(ts) -} - -// TimestampNow returns a google.protobuf.Timestamp for the current time. -func TimestampNow() *tspb.Timestamp { - ts, err := TimestampProto(time.Now()) - if err != nil { - panic("ptypes: time.Now() out of Timestamp range") - } - return ts -} - -// TimestampProto converts the time.Time to a google.protobuf.Timestamp proto. -// It returns an error if the resulting Timestamp is invalid. -func TimestampProto(t time.Time) (*tspb.Timestamp, error) { - ts := &tspb.Timestamp{ - Seconds: t.Unix(), - Nanos: int32(t.Nanosecond()), - } - if err := validateTimestamp(ts); err != nil { - return nil, err - } - return ts, nil -} - -// TimestampString returns the RFC 3339 string for valid Timestamps. For invalid -// Timestamps, it returns an error message in parentheses. -func TimestampString(ts *tspb.Timestamp) string { - t, err := Timestamp(ts) - if err != nil { - return fmt.Sprintf("(%v)", err) - } - return t.Format(time.RFC3339Nano) -} diff --git a/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.pb.go b/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.pb.go index 7a3b1e40e..a76f80760 100644 --- a/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.pb.go +++ b/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.pb.go @@ -1,185 +1,64 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: google/protobuf/timestamp.proto +// source: github.com/golang/protobuf/ptypes/timestamp/timestamp.proto package timestamp import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +// Symbols defined in public import of google/protobuf/timestamp.proto. -// 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 +type Timestamp = timestamppb.Timestamp -// A Timestamp represents a point in time independent of any time zone or local -// calendar, encoded as a count of seconds and fractions of seconds at -// nanosecond resolution. The count is relative to an epoch at UTC midnight on -// January 1, 1970, in the proleptic Gregorian calendar which extends the -// Gregorian calendar backwards to year one. -// -// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap -// second table is needed for interpretation, using a [24-hour linear -// smear](https://developers.google.com/time/smear). -// -// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By -// restricting to that range, we ensure that we can convert to and from [RFC -// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. -// -// # Examples -// -// Example 1: Compute Timestamp from POSIX `time()`. -// -// Timestamp timestamp; -// timestamp.set_seconds(time(NULL)); -// timestamp.set_nanos(0); -// -// Example 2: Compute Timestamp from POSIX `gettimeofday()`. -// -// struct timeval tv; -// gettimeofday(&tv, NULL); -// -// Timestamp timestamp; -// timestamp.set_seconds(tv.tv_sec); -// timestamp.set_nanos(tv.tv_usec * 1000); -// -// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. -// -// FILETIME ft; -// GetSystemTimeAsFileTime(&ft); -// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; -// -// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z -// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. -// Timestamp timestamp; -// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); -// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); -// -// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. -// -// long millis = System.currentTimeMillis(); -// -// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) -// .setNanos((int) ((millis % 1000) * 1000000)).build(); -// -// -// Example 5: Compute Timestamp from current time in Python. -// -// timestamp = Timestamp() -// timestamp.GetCurrentTime() -// -// # JSON Mapping -// -// In JSON format, the Timestamp type is encoded as a string in the -// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the -// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" -// where {year} is always expressed using four digits while {month}, {day}, -// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional -// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), -// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone -// is required. A proto3 JSON serializer should always use UTC (as indicated by -// "Z") when printing the Timestamp type and a proto3 JSON parser should be -// able to accept both UTC and other timezones (as indicated by an offset). -// -// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past -// 01:30 UTC on January 15, 2017. -// -// In JavaScript, one can convert a Date object to this format using the -// standard -// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) -// method. In Python, a standard `datetime.datetime` object can be converted -// to this format using -// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with -// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use -// the Joda Time's [`ISODateTimeFormat.dateTime()`]( -// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D -// ) to obtain a formatter capable of generating timestamps in this format. -// -// -type Timestamp struct { - // Represents seconds of UTC time since Unix epoch - // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - // 9999-12-31T23:59:59Z inclusive. - Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` - // Non-negative fractions of a second at nanosecond resolution. Negative - // second values with fractions must still have non-negative nanos values - // that count forward in time. Must be from 0 to 999,999,999 - // inclusive. - Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +var File_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto protoreflect.FileDescriptor + +var file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_rawDesc = []byte{ + 0x0a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, + 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 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, 0x42, 0x37, + 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, + 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x3b, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x50, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } -func (m *Timestamp) Reset() { *m = Timestamp{} } -func (m *Timestamp) String() string { return proto.CompactTextString(m) } -func (*Timestamp) ProtoMessage() {} -func (*Timestamp) Descriptor() ([]byte, []int) { - return fileDescriptor_292007bbfe81227e, []int{0} +var file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_goTypes = []interface{}{} +var file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } -func (*Timestamp) XXX_WellKnownType() string { return "Timestamp" } - -func (m *Timestamp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Timestamp.Unmarshal(m, b) -} -func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Timestamp.Marshal(b, m, deterministic) -} -func (m *Timestamp) XXX_Merge(src proto.Message) { - xxx_messageInfo_Timestamp.Merge(m, src) -} -func (m *Timestamp) XXX_Size() int { - return xxx_messageInfo_Timestamp.Size(m) -} -func (m *Timestamp) XXX_DiscardUnknown() { - xxx_messageInfo_Timestamp.DiscardUnknown(m) -} - -var xxx_messageInfo_Timestamp proto.InternalMessageInfo - -func (m *Timestamp) GetSeconds() int64 { - if m != nil { - return m.Seconds +func init() { file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_init() } +func file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_init() { + if File_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto != nil { + return } - return 0 -} - -func (m *Timestamp) GetNanos() int32 { - if m != nil { - return m.Nanos - } - return 0 -} - -func init() { - proto.RegisterType((*Timestamp)(nil), "google.protobuf.Timestamp") -} - -func init() { - proto.RegisterFile("google/protobuf/timestamp.proto", fileDescriptor_292007bbfe81227e) -} - -var fileDescriptor_292007bbfe81227e = []byte{ - // 191 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0xcf, 0xcf, 0x4f, - 0xcf, 0x49, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x2f, 0xc9, 0xcc, 0x4d, - 0x2d, 0x2e, 0x49, 0xcc, 0x2d, 0xd0, 0x03, 0x0b, 0x09, 0xf1, 0x43, 0x14, 0xe8, 0xc1, 0x14, 0x28, - 0x59, 0x73, 0x71, 0x86, 0xc0, 0xd4, 0x08, 0x49, 0x70, 0xb1, 0x17, 0xa7, 0x26, 0xe7, 0xe7, 0xa5, - 0x14, 0x4b, 0x30, 0x2a, 0x30, 0x6a, 0x30, 0x07, 0xc1, 0xb8, 0x42, 0x22, 0x5c, 0xac, 0x79, 0x89, - 0x79, 0xf9, 0xc5, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0xac, 0x41, 0x10, 0x8e, 0x53, 0x1d, 0x97, 0x70, - 0x72, 0x7e, 0xae, 0x1e, 0x9a, 0x99, 0x4e, 0x7c, 0x70, 0x13, 0x03, 0x40, 0x42, 0x01, 0x8c, 0x51, - 0xda, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xe9, 0xf9, 0x39, 0x89, - 0x79, 0xe9, 0x08, 0x27, 0x16, 0x94, 0x54, 0x16, 0xa4, 0x16, 0x23, 0x5c, 0xfa, 0x83, 0x91, 0x71, - 0x11, 0x13, 0xb3, 0x7b, 0x80, 0xd3, 0x2a, 0x26, 0x39, 0x77, 0x88, 0xc9, 0x01, 0x50, 0xb5, 0x7a, - 0xe1, 0xa9, 0x39, 0x39, 0xde, 0x79, 0xf9, 0xe5, 0x79, 0x21, 0x20, 0x3d, 0x49, 0x6c, 0x60, 0x43, - 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x77, 0x4a, 0x07, 0xf7, 0x00, 0x00, 0x00, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_goTypes, + DependencyIndexes: file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_depIdxs, + }.Build() + File_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto = out.File + file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_rawDesc = nil + file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_goTypes = nil + file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_depIdxs = nil } diff --git a/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.proto b/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.proto deleted file mode 100644 index cd357864a..000000000 --- a/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.proto +++ /dev/null @@ -1,138 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; -option go_package = "github.com/golang/protobuf/ptypes/timestamp"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "TimestampProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// A Timestamp represents a point in time independent of any time zone or local -// calendar, encoded as a count of seconds and fractions of seconds at -// nanosecond resolution. The count is relative to an epoch at UTC midnight on -// January 1, 1970, in the proleptic Gregorian calendar which extends the -// Gregorian calendar backwards to year one. -// -// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap -// second table is needed for interpretation, using a [24-hour linear -// smear](https://developers.google.com/time/smear). -// -// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By -// restricting to that range, we ensure that we can convert to and from [RFC -// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. -// -// # Examples -// -// Example 1: Compute Timestamp from POSIX `time()`. -// -// Timestamp timestamp; -// timestamp.set_seconds(time(NULL)); -// timestamp.set_nanos(0); -// -// Example 2: Compute Timestamp from POSIX `gettimeofday()`. -// -// struct timeval tv; -// gettimeofday(&tv, NULL); -// -// Timestamp timestamp; -// timestamp.set_seconds(tv.tv_sec); -// timestamp.set_nanos(tv.tv_usec * 1000); -// -// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. -// -// FILETIME ft; -// GetSystemTimeAsFileTime(&ft); -// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; -// -// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z -// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. -// Timestamp timestamp; -// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); -// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); -// -// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. -// -// long millis = System.currentTimeMillis(); -// -// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) -// .setNanos((int) ((millis % 1000) * 1000000)).build(); -// -// -// Example 5: Compute Timestamp from current time in Python. -// -// timestamp = Timestamp() -// timestamp.GetCurrentTime() -// -// # JSON Mapping -// -// In JSON format, the Timestamp type is encoded as a string in the -// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the -// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" -// where {year} is always expressed using four digits while {month}, {day}, -// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional -// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), -// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone -// is required. A proto3 JSON serializer should always use UTC (as indicated by -// "Z") when printing the Timestamp type and a proto3 JSON parser should be -// able to accept both UTC and other timezones (as indicated by an offset). -// -// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past -// 01:30 UTC on January 15, 2017. -// -// In JavaScript, one can convert a Date object to this format using the -// standard -// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) -// method. In Python, a standard `datetime.datetime` object can be converted -// to this format using -// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with -// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use -// the Joda Time's [`ISODateTimeFormat.dateTime()`]( -// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D -// ) to obtain a formatter capable of generating timestamps in this format. -// -// -message Timestamp { - // Represents seconds of UTC time since Unix epoch - // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - // 9999-12-31T23:59:59Z inclusive. - int64 seconds = 1; - - // Non-negative fractions of a second at nanosecond resolution. Negative - // second values with fractions must still have non-negative nanos values - // that count forward in time. Must be from 0 to 999,999,999 - // inclusive. - int32 nanos = 2; -} diff --git a/vendor/github.com/golang/protobuf/ptypes/wrappers/wrappers.pb.go b/vendor/github.com/golang/protobuf/ptypes/wrappers/wrappers.pb.go index 968ff318d..cc40f27ad 100644 --- a/vendor/github.com/golang/protobuf/ptypes/wrappers/wrappers.pb.go +++ b/vendor/github.com/golang/protobuf/ptypes/wrappers/wrappers.pb.go @@ -1,463 +1,71 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: google/protobuf/wrappers.proto +// source: github.com/golang/protobuf/ptypes/wrappers/wrappers.proto package wrappers import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" + reflect "reflect" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +// Symbols defined in public import of google/protobuf/wrappers.proto. -// 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 +type DoubleValue = wrapperspb.DoubleValue +type FloatValue = wrapperspb.FloatValue +type Int64Value = wrapperspb.Int64Value +type UInt64Value = wrapperspb.UInt64Value +type Int32Value = wrapperspb.Int32Value +type UInt32Value = wrapperspb.UInt32Value +type BoolValue = wrapperspb.BoolValue +type StringValue = wrapperspb.StringValue +type BytesValue = wrapperspb.BytesValue -// Wrapper message for `double`. -// -// The JSON representation for `DoubleValue` is JSON number. -type DoubleValue struct { - // The double value. - Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +var File_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto protoreflect.FileDescriptor + +var file_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto_rawDesc = []byte{ + 0x0a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, + 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2f, 0x77, 0x72, 0x61, + 0x70, 0x70, 0x65, 0x72, 0x73, 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, 0x42, 0x35, 0x5a, 0x33, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x3b, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, + 0x72, 0x73, 0x50, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (m *DoubleValue) Reset() { *m = DoubleValue{} } -func (m *DoubleValue) String() string { return proto.CompactTextString(m) } -func (*DoubleValue) ProtoMessage() {} -func (*DoubleValue) Descriptor() ([]byte, []int) { - return fileDescriptor_5377b62bda767935, []int{0} +var file_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto_goTypes = []interface{}{} +var file_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } -func (*DoubleValue) XXX_WellKnownType() string { return "DoubleValue" } - -func (m *DoubleValue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DoubleValue.Unmarshal(m, b) -} -func (m *DoubleValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DoubleValue.Marshal(b, m, deterministic) -} -func (m *DoubleValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_DoubleValue.Merge(m, src) -} -func (m *DoubleValue) XXX_Size() int { - return xxx_messageInfo_DoubleValue.Size(m) -} -func (m *DoubleValue) XXX_DiscardUnknown() { - xxx_messageInfo_DoubleValue.DiscardUnknown(m) -} - -var xxx_messageInfo_DoubleValue proto.InternalMessageInfo - -func (m *DoubleValue) GetValue() float64 { - if m != nil { - return m.Value +func init() { file_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto_init() } +func file_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto_init() { + if File_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto != nil { + return } - return 0 -} - -// Wrapper message for `float`. -// -// The JSON representation for `FloatValue` is JSON number. -type FloatValue struct { - // The float value. - Value float32 `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FloatValue) Reset() { *m = FloatValue{} } -func (m *FloatValue) String() string { return proto.CompactTextString(m) } -func (*FloatValue) ProtoMessage() {} -func (*FloatValue) Descriptor() ([]byte, []int) { - return fileDescriptor_5377b62bda767935, []int{1} -} - -func (*FloatValue) XXX_WellKnownType() string { return "FloatValue" } - -func (m *FloatValue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FloatValue.Unmarshal(m, b) -} -func (m *FloatValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FloatValue.Marshal(b, m, deterministic) -} -func (m *FloatValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_FloatValue.Merge(m, src) -} -func (m *FloatValue) XXX_Size() int { - return xxx_messageInfo_FloatValue.Size(m) -} -func (m *FloatValue) XXX_DiscardUnknown() { - xxx_messageInfo_FloatValue.DiscardUnknown(m) -} - -var xxx_messageInfo_FloatValue proto.InternalMessageInfo - -func (m *FloatValue) GetValue() float32 { - if m != nil { - return m.Value - } - return 0 -} - -// Wrapper message for `int64`. -// -// The JSON representation for `Int64Value` is JSON string. -type Int64Value struct { - // The int64 value. - Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Int64Value) Reset() { *m = Int64Value{} } -func (m *Int64Value) String() string { return proto.CompactTextString(m) } -func (*Int64Value) ProtoMessage() {} -func (*Int64Value) Descriptor() ([]byte, []int) { - return fileDescriptor_5377b62bda767935, []int{2} -} - -func (*Int64Value) XXX_WellKnownType() string { return "Int64Value" } - -func (m *Int64Value) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Int64Value.Unmarshal(m, b) -} -func (m *Int64Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Int64Value.Marshal(b, m, deterministic) -} -func (m *Int64Value) XXX_Merge(src proto.Message) { - xxx_messageInfo_Int64Value.Merge(m, src) -} -func (m *Int64Value) XXX_Size() int { - return xxx_messageInfo_Int64Value.Size(m) -} -func (m *Int64Value) XXX_DiscardUnknown() { - xxx_messageInfo_Int64Value.DiscardUnknown(m) -} - -var xxx_messageInfo_Int64Value proto.InternalMessageInfo - -func (m *Int64Value) GetValue() int64 { - if m != nil { - return m.Value - } - return 0 -} - -// Wrapper message for `uint64`. -// -// The JSON representation for `UInt64Value` is JSON string. -type UInt64Value struct { - // The uint64 value. - Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UInt64Value) Reset() { *m = UInt64Value{} } -func (m *UInt64Value) String() string { return proto.CompactTextString(m) } -func (*UInt64Value) ProtoMessage() {} -func (*UInt64Value) Descriptor() ([]byte, []int) { - return fileDescriptor_5377b62bda767935, []int{3} -} - -func (*UInt64Value) XXX_WellKnownType() string { return "UInt64Value" } - -func (m *UInt64Value) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UInt64Value.Unmarshal(m, b) -} -func (m *UInt64Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UInt64Value.Marshal(b, m, deterministic) -} -func (m *UInt64Value) XXX_Merge(src proto.Message) { - xxx_messageInfo_UInt64Value.Merge(m, src) -} -func (m *UInt64Value) XXX_Size() int { - return xxx_messageInfo_UInt64Value.Size(m) -} -func (m *UInt64Value) XXX_DiscardUnknown() { - xxx_messageInfo_UInt64Value.DiscardUnknown(m) -} - -var xxx_messageInfo_UInt64Value proto.InternalMessageInfo - -func (m *UInt64Value) GetValue() uint64 { - if m != nil { - return m.Value - } - return 0 -} - -// Wrapper message for `int32`. -// -// The JSON representation for `Int32Value` is JSON number. -type Int32Value struct { - // The int32 value. - Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Int32Value) Reset() { *m = Int32Value{} } -func (m *Int32Value) String() string { return proto.CompactTextString(m) } -func (*Int32Value) ProtoMessage() {} -func (*Int32Value) Descriptor() ([]byte, []int) { - return fileDescriptor_5377b62bda767935, []int{4} -} - -func (*Int32Value) XXX_WellKnownType() string { return "Int32Value" } - -func (m *Int32Value) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Int32Value.Unmarshal(m, b) -} -func (m *Int32Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Int32Value.Marshal(b, m, deterministic) -} -func (m *Int32Value) XXX_Merge(src proto.Message) { - xxx_messageInfo_Int32Value.Merge(m, src) -} -func (m *Int32Value) XXX_Size() int { - return xxx_messageInfo_Int32Value.Size(m) -} -func (m *Int32Value) XXX_DiscardUnknown() { - xxx_messageInfo_Int32Value.DiscardUnknown(m) -} - -var xxx_messageInfo_Int32Value proto.InternalMessageInfo - -func (m *Int32Value) GetValue() int32 { - if m != nil { - return m.Value - } - return 0 -} - -// Wrapper message for `uint32`. -// -// The JSON representation for `UInt32Value` is JSON number. -type UInt32Value struct { - // The uint32 value. - Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UInt32Value) Reset() { *m = UInt32Value{} } -func (m *UInt32Value) String() string { return proto.CompactTextString(m) } -func (*UInt32Value) ProtoMessage() {} -func (*UInt32Value) Descriptor() ([]byte, []int) { - return fileDescriptor_5377b62bda767935, []int{5} -} - -func (*UInt32Value) XXX_WellKnownType() string { return "UInt32Value" } - -func (m *UInt32Value) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UInt32Value.Unmarshal(m, b) -} -func (m *UInt32Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UInt32Value.Marshal(b, m, deterministic) -} -func (m *UInt32Value) XXX_Merge(src proto.Message) { - xxx_messageInfo_UInt32Value.Merge(m, src) -} -func (m *UInt32Value) XXX_Size() int { - return xxx_messageInfo_UInt32Value.Size(m) -} -func (m *UInt32Value) XXX_DiscardUnknown() { - xxx_messageInfo_UInt32Value.DiscardUnknown(m) -} - -var xxx_messageInfo_UInt32Value proto.InternalMessageInfo - -func (m *UInt32Value) GetValue() uint32 { - if m != nil { - return m.Value - } - return 0 -} - -// Wrapper message for `bool`. -// -// The JSON representation for `BoolValue` is JSON `true` and `false`. -type BoolValue struct { - // The bool value. - Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BoolValue) Reset() { *m = BoolValue{} } -func (m *BoolValue) String() string { return proto.CompactTextString(m) } -func (*BoolValue) ProtoMessage() {} -func (*BoolValue) Descriptor() ([]byte, []int) { - return fileDescriptor_5377b62bda767935, []int{6} -} - -func (*BoolValue) XXX_WellKnownType() string { return "BoolValue" } - -func (m *BoolValue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BoolValue.Unmarshal(m, b) -} -func (m *BoolValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BoolValue.Marshal(b, m, deterministic) -} -func (m *BoolValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoolValue.Merge(m, src) -} -func (m *BoolValue) XXX_Size() int { - return xxx_messageInfo_BoolValue.Size(m) -} -func (m *BoolValue) XXX_DiscardUnknown() { - xxx_messageInfo_BoolValue.DiscardUnknown(m) -} - -var xxx_messageInfo_BoolValue proto.InternalMessageInfo - -func (m *BoolValue) GetValue() bool { - if m != nil { - return m.Value - } - return false -} - -// Wrapper message for `string`. -// -// The JSON representation for `StringValue` is JSON string. -type StringValue struct { - // The string value. - Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StringValue) Reset() { *m = StringValue{} } -func (m *StringValue) String() string { return proto.CompactTextString(m) } -func (*StringValue) ProtoMessage() {} -func (*StringValue) Descriptor() ([]byte, []int) { - return fileDescriptor_5377b62bda767935, []int{7} -} - -func (*StringValue) XXX_WellKnownType() string { return "StringValue" } - -func (m *StringValue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StringValue.Unmarshal(m, b) -} -func (m *StringValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StringValue.Marshal(b, m, deterministic) -} -func (m *StringValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_StringValue.Merge(m, src) -} -func (m *StringValue) XXX_Size() int { - return xxx_messageInfo_StringValue.Size(m) -} -func (m *StringValue) XXX_DiscardUnknown() { - xxx_messageInfo_StringValue.DiscardUnknown(m) -} - -var xxx_messageInfo_StringValue proto.InternalMessageInfo - -func (m *StringValue) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -// Wrapper message for `bytes`. -// -// The JSON representation for `BytesValue` is JSON string. -type BytesValue struct { - // The bytes value. - Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BytesValue) Reset() { *m = BytesValue{} } -func (m *BytesValue) String() string { return proto.CompactTextString(m) } -func (*BytesValue) ProtoMessage() {} -func (*BytesValue) Descriptor() ([]byte, []int) { - return fileDescriptor_5377b62bda767935, []int{8} -} - -func (*BytesValue) XXX_WellKnownType() string { return "BytesValue" } - -func (m *BytesValue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BytesValue.Unmarshal(m, b) -} -func (m *BytesValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BytesValue.Marshal(b, m, deterministic) -} -func (m *BytesValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_BytesValue.Merge(m, src) -} -func (m *BytesValue) XXX_Size() int { - return xxx_messageInfo_BytesValue.Size(m) -} -func (m *BytesValue) XXX_DiscardUnknown() { - xxx_messageInfo_BytesValue.DiscardUnknown(m) -} - -var xxx_messageInfo_BytesValue proto.InternalMessageInfo - -func (m *BytesValue) GetValue() []byte { - if m != nil { - return m.Value - } - return nil -} - -func init() { - proto.RegisterType((*DoubleValue)(nil), "google.protobuf.DoubleValue") - proto.RegisterType((*FloatValue)(nil), "google.protobuf.FloatValue") - proto.RegisterType((*Int64Value)(nil), "google.protobuf.Int64Value") - proto.RegisterType((*UInt64Value)(nil), "google.protobuf.UInt64Value") - proto.RegisterType((*Int32Value)(nil), "google.protobuf.Int32Value") - proto.RegisterType((*UInt32Value)(nil), "google.protobuf.UInt32Value") - proto.RegisterType((*BoolValue)(nil), "google.protobuf.BoolValue") - proto.RegisterType((*StringValue)(nil), "google.protobuf.StringValue") - proto.RegisterType((*BytesValue)(nil), "google.protobuf.BytesValue") -} - -func init() { - proto.RegisterFile("google/protobuf/wrappers.proto", fileDescriptor_5377b62bda767935) -} - -var fileDescriptor_5377b62bda767935 = []byte{ - // 259 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0xcf, 0xcf, 0x4f, - 0xcf, 0x49, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x2f, 0x2f, 0x4a, 0x2c, - 0x28, 0x48, 0x2d, 0x2a, 0xd6, 0x03, 0x8b, 0x08, 0xf1, 0x43, 0xe4, 0xf5, 0x60, 0xf2, 0x4a, 0xca, - 0x5c, 0xdc, 0x2e, 0xf9, 0xa5, 0x49, 0x39, 0xa9, 0x61, 0x89, 0x39, 0xa5, 0xa9, 0x42, 0x22, 0x5c, - 0xac, 0x65, 0x20, 0x86, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x63, 0x10, 0x84, 0xa3, 0xa4, 0xc4, 0xc5, - 0xe5, 0x96, 0x93, 0x9f, 0x58, 0x82, 0x45, 0x0d, 0x13, 0x92, 0x1a, 0xcf, 0xbc, 0x12, 0x33, 0x13, - 0x2c, 0x6a, 0x98, 0x61, 0x6a, 0x94, 0xb9, 0xb8, 0x43, 0x71, 0x29, 0x62, 0x41, 0x35, 0xc8, 0xd8, - 0x08, 0x8b, 0x1a, 0x56, 0x34, 0x83, 0xb0, 0x2a, 0xe2, 0x85, 0x29, 0x52, 0xe4, 0xe2, 0x74, 0xca, - 0xcf, 0xcf, 0xc1, 0xa2, 0x84, 0x03, 0xc9, 0x9c, 0xe0, 0x92, 0xa2, 0xcc, 0xbc, 0x74, 0x2c, 0x8a, - 0x38, 0x91, 0x1c, 0xe4, 0x54, 0x59, 0x92, 0x5a, 0x8c, 0x45, 0x0d, 0x0f, 0x54, 0x8d, 0x53, 0x0d, - 0x97, 0x70, 0x72, 0x7e, 0xae, 0x1e, 0x5a, 0xe8, 0x3a, 0xf1, 0x86, 0x43, 0x83, 0x3f, 0x00, 0x24, - 0x12, 0xc0, 0x18, 0xa5, 0x95, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x9f, - 0x9e, 0x9f, 0x93, 0x98, 0x97, 0x8e, 0x88, 0xaa, 0x82, 0x92, 0xca, 0x82, 0xd4, 0x62, 0x78, 0x8c, - 0xfd, 0x60, 0x64, 0x5c, 0xc4, 0xc4, 0xec, 0x1e, 0xe0, 0xb4, 0x8a, 0x49, 0xce, 0x1d, 0x62, 0x6e, - 0x00, 0x54, 0xa9, 0x5e, 0x78, 0x6a, 0x4e, 0x8e, 0x77, 0x5e, 0x7e, 0x79, 0x5e, 0x08, 0x48, 0x4b, - 0x12, 0x1b, 0xd8, 0x0c, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x19, 0x6c, 0xb9, 0xb8, 0xfe, - 0x01, 0x00, 0x00, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto_goTypes, + DependencyIndexes: file_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto_depIdxs, + }.Build() + File_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto = out.File + file_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto_rawDesc = nil + file_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto_goTypes = nil + file_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto_depIdxs = nil } diff --git a/vendor/github.com/golang/protobuf/ptypes/wrappers/wrappers.proto b/vendor/github.com/golang/protobuf/ptypes/wrappers/wrappers.proto deleted file mode 100644 index 9ee41e384..000000000 --- a/vendor/github.com/golang/protobuf/ptypes/wrappers/wrappers.proto +++ /dev/null @@ -1,123 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Wrappers for primitive (non-message) types. These types are useful -// for embedding primitives in the `google.protobuf.Any` type and for places -// where we need to distinguish between the absence of a primitive -// typed field and its default value. -// -// These wrappers have no meaningful use within repeated fields as they lack -// the ability to detect presence on individual elements. -// These wrappers have no meaningful use within a map or a oneof since -// individual entries of a map or fields of a oneof can already detect presence. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; -option go_package = "github.com/golang/protobuf/ptypes/wrappers"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "WrappersProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// Wrapper message for `double`. -// -// The JSON representation for `DoubleValue` is JSON number. -message DoubleValue { - // The double value. - double value = 1; -} - -// Wrapper message for `float`. -// -// The JSON representation for `FloatValue` is JSON number. -message FloatValue { - // The float value. - float value = 1; -} - -// Wrapper message for `int64`. -// -// The JSON representation for `Int64Value` is JSON string. -message Int64Value { - // The int64 value. - int64 value = 1; -} - -// Wrapper message for `uint64`. -// -// The JSON representation for `UInt64Value` is JSON string. -message UInt64Value { - // The uint64 value. - uint64 value = 1; -} - -// Wrapper message for `int32`. -// -// The JSON representation for `Int32Value` is JSON number. -message Int32Value { - // The int32 value. - int32 value = 1; -} - -// Wrapper message for `uint32`. -// -// The JSON representation for `UInt32Value` is JSON number. -message UInt32Value { - // The uint32 value. - uint32 value = 1; -} - -// Wrapper message for `bool`. -// -// The JSON representation for `BoolValue` is JSON `true` and `false`. -message BoolValue { - // The bool value. - bool value = 1; -} - -// Wrapper message for `string`. -// -// The JSON representation for `StringValue` is JSON string. -message StringValue { - // The string value. - string value = 1; -} - -// Wrapper message for `bytes`. -// -// The JSON representation for `BytesValue` is JSON string. -message BytesValue { - // The bytes value. - bytes value = 1; -} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/access/access.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/access/access.pb.go index a70b17847..ce7e5a106 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/access/access.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/access/access.pb.go @@ -57,16 +57,18 @@ type Subject struct { // It can contain one of the following values: // * `allAuthenticatedUsers`: A special system identifier that represents anyone // who is authenticated. It can be used only if the [type] is `system`. - // + // * `allUsers`: A special system identifier that represents anyone. No authentication is required. + // For example, you don't need to specify the IAM token in an API query. // * ``: An identifier that represents a user account. // It can be used only if the [type] is `userAccount` or `serviceAccount`. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Type of the subject. // // It can contain one of the following values: - // * `system`: System group. This type represents several accounts with a common system identifier. - // * `userAccount`: An user account (for example, "alice.the.girl@yandex.ru"). This type represents the [yandex.cloud.iam.v1.UserAccount] resource. + // * `userAccount`: An account on Yandex or [Yandex.Connect](https://connect.yandex.com), added to Yandex.Cloud. // * `serviceAccount`: A service account. This type represents the [yandex.cloud.iam.v1.ServiceAccount] resource. + // * `federatedUser`: A federated account. This type represents a user from an identity federation, like Active Directory. + // * `system`: System group. This type represents several accounts with a common system identifier. // // For more information, see [Subject to which the role is assigned](/docs/iam/concepts/access-control/#subject). Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` @@ -527,44 +529,47 @@ func init() { proto.RegisterType((*AccessBindingDelta)(nil), "yandex.cloud.access.AccessBindingDelta") } -func init() { proto.RegisterFile("yandex/cloud/access/access.proto", fileDescriptor_f72fa1116199e82e) } +func init() { + proto.RegisterFile("yandex/cloud/access/access.proto", fileDescriptor_f72fa1116199e82e) +} var fileDescriptor_f72fa1116199e82e = []byte{ - // 573 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xdf, 0x6e, 0xd3, 0x30, - 0x14, 0xc6, 0x49, 0x5b, 0xda, 0xf5, 0x54, 0xed, 0x2a, 0x57, 0x48, 0xd9, 0x18, 0xa2, 0x8b, 0x34, - 0x56, 0x21, 0x2d, 0xfd, 0x83, 0x10, 0x17, 0x74, 0x40, 0xd3, 0x76, 0x28, 0x82, 0xb5, 0x5b, 0xb2, - 0x71, 0xc1, 0x4d, 0xe4, 0x26, 0x56, 0x09, 0x94, 0x24, 0xd4, 0x2e, 0xda, 0xf6, 0x08, 0xbb, 0x43, - 0x82, 0x67, 0xe0, 0x8a, 0xe7, 0xd8, 0x1e, 0x85, 0x67, 0xe0, 0x0a, 0xc5, 0x4e, 0x51, 0x43, 0x23, - 0xad, 0xd2, 0xae, 0x1c, 0xe5, 0x3b, 0xe7, 0x3b, 0xbf, 0xcf, 0x96, 0x0d, 0xd5, 0x73, 0xec, 0x39, - 0xe4, 0xac,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b2, - 0xc5, 0x58, 0xec, 0xc7, 0xc7, 0x50, 0x49, 0x98, 0x8a, 0x76, 0x60, 0xbb, 0xd3, 0xed, 0xf6, 0x4d, - 0xd3, 0xd2, 0xf4, 0x41, 0x4f, 0x1f, 0xbc, 0xb6, 0x3a, 0xdd, 0x13, 0x7d, 0x38, 0xb0, 0x4e, 0x07, - 0xe6, 0x51, 0xbf, 0xab, 0x1f, 0xe8, 0xfd, 0x5e, 0xf9, 0x0e, 0xca, 0x41, 0xba, 0xd3, 0xeb, 0x95, - 0x25, 0x04, 0x90, 0x35, 0xfa, 0x87, 0xc3, 0x77, 0xfd, 0x72, 0x4a, 0x7b, 0xf5, 0xfe, 0xc5, 0xd8, - 0x65, 0x1f, 0x66, 0x23, 0xd5, 0xf6, 0x3f, 0xd7, 0x05, 0xd7, 0x9e, 0x78, 0xc5, 0xc6, 0xfe, 0xde, - 0x98, 0x78, 0xfc, 0x01, 0xab, 0x27, 0xbc, 0x8a, 0xcf, 0xc5, 0x32, 0xca, 0xf2, 0x8a, 0x27, 0x7f, - 0x03, 0x00, 0x00, 0xff, 0xff, 0x95, 0xc1, 0x18, 0x94, 0x3a, 0x05, 0x00, 0x00, + // 581 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0x5f, 0x6f, 0xd2, 0x5e, + 0x1c, 0xc6, 0x7f, 0x05, 0x7e, 0x30, 0xbe, 0x04, 0x46, 0x0e, 0x31, 0x76, 0x73, 0x46, 0xd6, 0x64, + 0x8e, 0x98, 0xac, 0xfc, 0x31, 0xc6, 0x0b, 0x99, 0x86, 0x02, 0x33, 0x8d, 0x0e, 0xb6, 0x76, 0x33, + 0xd1, 0x9b, 0xe6, 0xd0, 0x9e, 0x60, 0x15, 0xdb, 0xca, 0x39, 0x98, 0x6d, 0x2f, 0x61, 0x77, 0x26, + 0xfa, 0x1a, 0xbc, 0xf2, 0x75, 0x6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e, 0x89, 0x0e, 0x20, 0x8b, 0xed, 0xf0, 0xf4, 0xf2, 0x91, 0x52, 0xab, 0x76, 0x33, + 0x6b, 0x87, 0xfb, 0x23, 0xd8, 0x68, 0x1a, 0x0d, 0xa1, 0x14, 0x7f, 0x05, 0xd1, 0x79, 0x5c, 0xfd, + 0xcb, 0x16, 0x63, 0xb5, 0x1f, 0x1d, 0x43, 0x25, 0x61, 0x2b, 0xda, 0x81, 0xed, 0x4e, 0xb7, 0xdb, + 0x37, 0x4d, 0x4b, 0xd3, 0x07, 0x3d, 0x7d, 0xf0, 0xd2, 0xea, 0x74, 0x4f, 0xf4, 0xe1, 0xc0, 0x3a, + 0x1d, 0x98, 0x47, 0xfd, 0xae, 0x7e, 0xa0, 0xf7, 0x7b, 0xe5, 0xff, 0x50, 0x0e, 0xd2, 0x9d, 0x5e, + 0xaf, 0x2c, 0x21, 0x80, 0xac, 0xd1, 0x3f, 0x1c, 0xbe, 0xe9, 0x97, 0x53, 0xda, 0x5b, 0xb8, 0x1b, + 0x87, 0x09, 0xdc, 0x08, 0xe8, 0xdd, 0xf3, 0xb1, 0xcb, 0xde, 0xcf, 0x46, 0xaa, 0xed, 0x7f, 0xaa, + 0x0b, 0xcf, 0x9e, 0xb8, 0xde, 0xc6, 0xfe, 0xde, 0x98, 0x78, 0xfc, 0x66, 0xab, 0x27, 0x5c, 0x97, + 0xcf, 0xc4, 0x63, 0x94, 0xe5, 0x8e, 0xc7, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x03, 0xb2, 0xd6, + 0xf5, 0x53, 0x05, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/access/access.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/access/access.pbext.go new file mode 100644 index 000000000..eafca51ac --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/access/access.pbext.go @@ -0,0 +1,71 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package access + +func (m *Subject) SetId(v string) { + m.Id = v +} + +func (m *Subject) SetType(v string) { + m.Type = v +} + +func (m *AccessBinding) SetRoleId(v string) { + m.RoleId = v +} + +func (m *AccessBinding) SetSubject(v *Subject) { + m.Subject = v +} + +func (m *ListAccessBindingsRequest) SetResourceId(v string) { + m.ResourceId = v +} + +func (m *ListAccessBindingsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListAccessBindingsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListAccessBindingsResponse) SetAccessBindings(v []*AccessBinding) { + m.AccessBindings = v +} + +func (m *ListAccessBindingsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *SetAccessBindingsRequest) SetResourceId(v string) { + m.ResourceId = v +} + +func (m *SetAccessBindingsRequest) SetAccessBindings(v []*AccessBinding) { + m.AccessBindings = v +} + +func (m *SetAccessBindingsMetadata) SetResourceId(v string) { + m.ResourceId = v +} + +func (m *UpdateAccessBindingsRequest) SetResourceId(v string) { + m.ResourceId = v +} + +func (m *UpdateAccessBindingsRequest) SetAccessBindingDeltas(v []*AccessBindingDelta) { + m.AccessBindingDeltas = v +} + +func (m *UpdateAccessBindingsMetadata) SetResourceId(v string) { + m.ResourceId = v +} + +func (m *AccessBindingDelta) SetAction(v AccessBindingAction) { + m.Action = v +} + +func (m *AccessBindingDelta) SetAccessBinding(v *AccessBinding) { + m.AccessBinding = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/stt/v2/stt_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/stt/v2/stt_service.pb.go new file mode 100644 index 000000000..2b3d88119 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/stt/v2/stt_service.pb.go @@ -0,0 +1,962 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/ai/stt/v2/stt_service.proto + +package stt + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud/api" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RecognitionSpec_AudioEncoding int32 + +const ( + RecognitionSpec_AUDIO_ENCODING_UNSPECIFIED RecognitionSpec_AudioEncoding = 0 + // 16-bit signed little-endian (Linear PCM) + RecognitionSpec_LINEAR16_PCM RecognitionSpec_AudioEncoding = 1 + RecognitionSpec_OGG_OPUS RecognitionSpec_AudioEncoding = 2 +) + +var RecognitionSpec_AudioEncoding_name = map[int32]string{ + 0: "AUDIO_ENCODING_UNSPECIFIED", + 1: "LINEAR16_PCM", + 2: "OGG_OPUS", +} + +var RecognitionSpec_AudioEncoding_value = map[string]int32{ + "AUDIO_ENCODING_UNSPECIFIED": 0, + "LINEAR16_PCM": 1, + "OGG_OPUS": 2, +} + +func (x RecognitionSpec_AudioEncoding) String() string { + return proto.EnumName(RecognitionSpec_AudioEncoding_name, int32(x)) +} + +func (RecognitionSpec_AudioEncoding) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_44de6807abd10de5, []int{6, 0} +} + +type LongRunningRecognitionRequest struct { + Config *RecognitionConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + Audio *RecognitionAudio `protobuf:"bytes,2,opt,name=audio,proto3" json:"audio,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LongRunningRecognitionRequest) Reset() { *m = LongRunningRecognitionRequest{} } +func (m *LongRunningRecognitionRequest) String() string { return proto.CompactTextString(m) } +func (*LongRunningRecognitionRequest) ProtoMessage() {} +func (*LongRunningRecognitionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_44de6807abd10de5, []int{0} +} + +func (m *LongRunningRecognitionRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LongRunningRecognitionRequest.Unmarshal(m, b) +} +func (m *LongRunningRecognitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LongRunningRecognitionRequest.Marshal(b, m, deterministic) +} +func (m *LongRunningRecognitionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LongRunningRecognitionRequest.Merge(m, src) +} +func (m *LongRunningRecognitionRequest) XXX_Size() int { + return xxx_messageInfo_LongRunningRecognitionRequest.Size(m) +} +func (m *LongRunningRecognitionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LongRunningRecognitionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LongRunningRecognitionRequest proto.InternalMessageInfo + +func (m *LongRunningRecognitionRequest) GetConfig() *RecognitionConfig { + if m != nil { + return m.Config + } + return nil +} + +func (m *LongRunningRecognitionRequest) GetAudio() *RecognitionAudio { + if m != nil { + return m.Audio + } + return nil +} + +type LongRunningRecognitionResponse struct { + Chunks []*SpeechRecognitionResult `protobuf:"bytes,1,rep,name=chunks,proto3" json:"chunks,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LongRunningRecognitionResponse) Reset() { *m = LongRunningRecognitionResponse{} } +func (m *LongRunningRecognitionResponse) String() string { return proto.CompactTextString(m) } +func (*LongRunningRecognitionResponse) ProtoMessage() {} +func (*LongRunningRecognitionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_44de6807abd10de5, []int{1} +} + +func (m *LongRunningRecognitionResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LongRunningRecognitionResponse.Unmarshal(m, b) +} +func (m *LongRunningRecognitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LongRunningRecognitionResponse.Marshal(b, m, deterministic) +} +func (m *LongRunningRecognitionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LongRunningRecognitionResponse.Merge(m, src) +} +func (m *LongRunningRecognitionResponse) XXX_Size() int { + return xxx_messageInfo_LongRunningRecognitionResponse.Size(m) +} +func (m *LongRunningRecognitionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LongRunningRecognitionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LongRunningRecognitionResponse proto.InternalMessageInfo + +func (m *LongRunningRecognitionResponse) GetChunks() []*SpeechRecognitionResult { + if m != nil { + return m.Chunks + } + return nil +} + +type StreamingRecognitionRequest struct { + // Types that are valid to be assigned to StreamingRequest: + // *StreamingRecognitionRequest_Config + // *StreamingRecognitionRequest_AudioContent + StreamingRequest isStreamingRecognitionRequest_StreamingRequest `protobuf_oneof:"streaming_request"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamingRecognitionRequest) Reset() { *m = StreamingRecognitionRequest{} } +func (m *StreamingRecognitionRequest) String() string { return proto.CompactTextString(m) } +func (*StreamingRecognitionRequest) ProtoMessage() {} +func (*StreamingRecognitionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_44de6807abd10de5, []int{2} +} + +func (m *StreamingRecognitionRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamingRecognitionRequest.Unmarshal(m, b) +} +func (m *StreamingRecognitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamingRecognitionRequest.Marshal(b, m, deterministic) +} +func (m *StreamingRecognitionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamingRecognitionRequest.Merge(m, src) +} +func (m *StreamingRecognitionRequest) XXX_Size() int { + return xxx_messageInfo_StreamingRecognitionRequest.Size(m) +} +func (m *StreamingRecognitionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StreamingRecognitionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamingRecognitionRequest proto.InternalMessageInfo + +type isStreamingRecognitionRequest_StreamingRequest interface { + isStreamingRecognitionRequest_StreamingRequest() +} + +type StreamingRecognitionRequest_Config struct { + Config *RecognitionConfig `protobuf:"bytes,1,opt,name=config,proto3,oneof"` +} + +type StreamingRecognitionRequest_AudioContent struct { + AudioContent []byte `protobuf:"bytes,2,opt,name=audio_content,json=audioContent,proto3,oneof"` +} + +func (*StreamingRecognitionRequest_Config) isStreamingRecognitionRequest_StreamingRequest() {} + +func (*StreamingRecognitionRequest_AudioContent) isStreamingRecognitionRequest_StreamingRequest() {} + +func (m *StreamingRecognitionRequest) GetStreamingRequest() isStreamingRecognitionRequest_StreamingRequest { + if m != nil { + return m.StreamingRequest + } + return nil +} + +func (m *StreamingRecognitionRequest) GetConfig() *RecognitionConfig { + if x, ok := m.GetStreamingRequest().(*StreamingRecognitionRequest_Config); ok { + return x.Config + } + return nil +} + +func (m *StreamingRecognitionRequest) GetAudioContent() []byte { + if x, ok := m.GetStreamingRequest().(*StreamingRecognitionRequest_AudioContent); ok { + return x.AudioContent + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*StreamingRecognitionRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*StreamingRecognitionRequest_Config)(nil), + (*StreamingRecognitionRequest_AudioContent)(nil), + } +} + +type StreamingRecognitionResponse struct { + Chunks []*SpeechRecognitionChunk `protobuf:"bytes,1,rep,name=chunks,proto3" json:"chunks,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamingRecognitionResponse) Reset() { *m = StreamingRecognitionResponse{} } +func (m *StreamingRecognitionResponse) String() string { return proto.CompactTextString(m) } +func (*StreamingRecognitionResponse) ProtoMessage() {} +func (*StreamingRecognitionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_44de6807abd10de5, []int{3} +} + +func (m *StreamingRecognitionResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamingRecognitionResponse.Unmarshal(m, b) +} +func (m *StreamingRecognitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamingRecognitionResponse.Marshal(b, m, deterministic) +} +func (m *StreamingRecognitionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamingRecognitionResponse.Merge(m, src) +} +func (m *StreamingRecognitionResponse) XXX_Size() int { + return xxx_messageInfo_StreamingRecognitionResponse.Size(m) +} +func (m *StreamingRecognitionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StreamingRecognitionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamingRecognitionResponse proto.InternalMessageInfo + +func (m *StreamingRecognitionResponse) GetChunks() []*SpeechRecognitionChunk { + if m != nil { + return m.Chunks + } + return nil +} + +type RecognitionAudio struct { + // Types that are valid to be assigned to AudioSource: + // *RecognitionAudio_Content + // *RecognitionAudio_Uri + AudioSource isRecognitionAudio_AudioSource `protobuf_oneof:"audio_source"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RecognitionAudio) Reset() { *m = RecognitionAudio{} } +func (m *RecognitionAudio) String() string { return proto.CompactTextString(m) } +func (*RecognitionAudio) ProtoMessage() {} +func (*RecognitionAudio) Descriptor() ([]byte, []int) { + return fileDescriptor_44de6807abd10de5, []int{4} +} + +func (m *RecognitionAudio) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RecognitionAudio.Unmarshal(m, b) +} +func (m *RecognitionAudio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RecognitionAudio.Marshal(b, m, deterministic) +} +func (m *RecognitionAudio) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecognitionAudio.Merge(m, src) +} +func (m *RecognitionAudio) XXX_Size() int { + return xxx_messageInfo_RecognitionAudio.Size(m) +} +func (m *RecognitionAudio) XXX_DiscardUnknown() { + xxx_messageInfo_RecognitionAudio.DiscardUnknown(m) +} + +var xxx_messageInfo_RecognitionAudio proto.InternalMessageInfo + +type isRecognitionAudio_AudioSource interface { + isRecognitionAudio_AudioSource() +} + +type RecognitionAudio_Content struct { + Content []byte `protobuf:"bytes,1,opt,name=content,proto3,oneof"` +} + +type RecognitionAudio_Uri struct { + Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"` +} + +func (*RecognitionAudio_Content) isRecognitionAudio_AudioSource() {} + +func (*RecognitionAudio_Uri) isRecognitionAudio_AudioSource() {} + +func (m *RecognitionAudio) GetAudioSource() isRecognitionAudio_AudioSource { + if m != nil { + return m.AudioSource + } + return nil +} + +func (m *RecognitionAudio) GetContent() []byte { + if x, ok := m.GetAudioSource().(*RecognitionAudio_Content); ok { + return x.Content + } + return nil +} + +func (m *RecognitionAudio) GetUri() string { + if x, ok := m.GetAudioSource().(*RecognitionAudio_Uri); ok { + return x.Uri + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*RecognitionAudio) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*RecognitionAudio_Content)(nil), + (*RecognitionAudio_Uri)(nil), + } +} + +type RecognitionConfig struct { + Specification *RecognitionSpec `protobuf:"bytes,1,opt,name=specification,proto3" json:"specification,omitempty"` + FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RecognitionConfig) Reset() { *m = RecognitionConfig{} } +func (m *RecognitionConfig) String() string { return proto.CompactTextString(m) } +func (*RecognitionConfig) ProtoMessage() {} +func (*RecognitionConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_44de6807abd10de5, []int{5} +} + +func (m *RecognitionConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RecognitionConfig.Unmarshal(m, b) +} +func (m *RecognitionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RecognitionConfig.Marshal(b, m, deterministic) +} +func (m *RecognitionConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecognitionConfig.Merge(m, src) +} +func (m *RecognitionConfig) XXX_Size() int { + return xxx_messageInfo_RecognitionConfig.Size(m) +} +func (m *RecognitionConfig) XXX_DiscardUnknown() { + xxx_messageInfo_RecognitionConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_RecognitionConfig proto.InternalMessageInfo + +func (m *RecognitionConfig) GetSpecification() *RecognitionSpec { + if m != nil { + return m.Specification + } + return nil +} + +func (m *RecognitionConfig) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +type RecognitionSpec struct { + AudioEncoding RecognitionSpec_AudioEncoding `protobuf:"varint,1,opt,name=audio_encoding,json=audioEncoding,proto3,enum=yandex.cloud.ai.stt.v2.RecognitionSpec_AudioEncoding" json:"audio_encoding,omitempty"` + // 8000, 16000, 48000 only for pcm + SampleRateHertz int64 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"` + // code in BCP-47 + LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` + ProfanityFilter bool `protobuf:"varint,4,opt,name=profanity_filter,json=profanityFilter,proto3" json:"profanity_filter,omitempty"` + Model string `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"` + // If set true, tentative hypotheses may be returned as they become available (final=false flag) + // If false or omitted, only final=true result(s) are returned. + // Makes sense only for StreamingRecognize requests. + PartialResults bool `protobuf:"varint,7,opt,name=partial_results,json=partialResults,proto3" json:"partial_results,omitempty"` + SingleUtterance bool `protobuf:"varint,8,opt,name=single_utterance,json=singleUtterance,proto3" json:"single_utterance,omitempty"` + // Used only for long running recognize. + AudioChannelCount int64 `protobuf:"varint,9,opt,name=audio_channel_count,json=audioChannelCount,proto3" json:"audio_channel_count,omitempty"` + // This mark allows disable normalization text + RawResults bool `protobuf:"varint,10,opt,name=raw_results,json=rawResults,proto3" json:"raw_results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RecognitionSpec) Reset() { *m = RecognitionSpec{} } +func (m *RecognitionSpec) String() string { return proto.CompactTextString(m) } +func (*RecognitionSpec) ProtoMessage() {} +func (*RecognitionSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_44de6807abd10de5, []int{6} +} + +func (m *RecognitionSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RecognitionSpec.Unmarshal(m, b) +} +func (m *RecognitionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RecognitionSpec.Marshal(b, m, deterministic) +} +func (m *RecognitionSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecognitionSpec.Merge(m, src) +} +func (m *RecognitionSpec) XXX_Size() int { + return xxx_messageInfo_RecognitionSpec.Size(m) +} +func (m *RecognitionSpec) XXX_DiscardUnknown() { + xxx_messageInfo_RecognitionSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_RecognitionSpec proto.InternalMessageInfo + +func (m *RecognitionSpec) GetAudioEncoding() RecognitionSpec_AudioEncoding { + if m != nil { + return m.AudioEncoding + } + return RecognitionSpec_AUDIO_ENCODING_UNSPECIFIED +} + +func (m *RecognitionSpec) GetSampleRateHertz() int64 { + if m != nil { + return m.SampleRateHertz + } + return 0 +} + +func (m *RecognitionSpec) GetLanguageCode() string { + if m != nil { + return m.LanguageCode + } + return "" +} + +func (m *RecognitionSpec) GetProfanityFilter() bool { + if m != nil { + return m.ProfanityFilter + } + return false +} + +func (m *RecognitionSpec) GetModel() string { + if m != nil { + return m.Model + } + return "" +} + +func (m *RecognitionSpec) GetPartialResults() bool { + if m != nil { + return m.PartialResults + } + return false +} + +func (m *RecognitionSpec) GetSingleUtterance() bool { + if m != nil { + return m.SingleUtterance + } + return false +} + +func (m *RecognitionSpec) GetAudioChannelCount() int64 { + if m != nil { + return m.AudioChannelCount + } + return 0 +} + +func (m *RecognitionSpec) GetRawResults() bool { + if m != nil { + return m.RawResults + } + return false +} + +type SpeechRecognitionChunk struct { + Alternatives []*SpeechRecognitionAlternative `protobuf:"bytes,1,rep,name=alternatives,proto3" json:"alternatives,omitempty"` + // This flag shows that the received chunk contains a part of the recognized text that won't be changed. + Final bool `protobuf:"varint,2,opt,name=final,proto3" json:"final,omitempty"` + // This flag shows that the received chunk is the end of an utterance. + EndOfUtterance bool `protobuf:"varint,3,opt,name=end_of_utterance,json=endOfUtterance,proto3" json:"end_of_utterance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SpeechRecognitionChunk) Reset() { *m = SpeechRecognitionChunk{} } +func (m *SpeechRecognitionChunk) String() string { return proto.CompactTextString(m) } +func (*SpeechRecognitionChunk) ProtoMessage() {} +func (*SpeechRecognitionChunk) Descriptor() ([]byte, []int) { + return fileDescriptor_44de6807abd10de5, []int{7} +} + +func (m *SpeechRecognitionChunk) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SpeechRecognitionChunk.Unmarshal(m, b) +} +func (m *SpeechRecognitionChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SpeechRecognitionChunk.Marshal(b, m, deterministic) +} +func (m *SpeechRecognitionChunk) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpeechRecognitionChunk.Merge(m, src) +} +func (m *SpeechRecognitionChunk) XXX_Size() int { + return xxx_messageInfo_SpeechRecognitionChunk.Size(m) +} +func (m *SpeechRecognitionChunk) XXX_DiscardUnknown() { + xxx_messageInfo_SpeechRecognitionChunk.DiscardUnknown(m) +} + +var xxx_messageInfo_SpeechRecognitionChunk proto.InternalMessageInfo + +func (m *SpeechRecognitionChunk) GetAlternatives() []*SpeechRecognitionAlternative { + if m != nil { + return m.Alternatives + } + return nil +} + +func (m *SpeechRecognitionChunk) GetFinal() bool { + if m != nil { + return m.Final + } + return false +} + +func (m *SpeechRecognitionChunk) GetEndOfUtterance() bool { + if m != nil { + return m.EndOfUtterance + } + return false +} + +type SpeechRecognitionResult struct { + Alternatives []*SpeechRecognitionAlternative `protobuf:"bytes,1,rep,name=alternatives,proto3" json:"alternatives,omitempty"` + ChannelTag int64 `protobuf:"varint,2,opt,name=channel_tag,json=channelTag,proto3" json:"channel_tag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SpeechRecognitionResult) Reset() { *m = SpeechRecognitionResult{} } +func (m *SpeechRecognitionResult) String() string { return proto.CompactTextString(m) } +func (*SpeechRecognitionResult) ProtoMessage() {} +func (*SpeechRecognitionResult) Descriptor() ([]byte, []int) { + return fileDescriptor_44de6807abd10de5, []int{8} +} + +func (m *SpeechRecognitionResult) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SpeechRecognitionResult.Unmarshal(m, b) +} +func (m *SpeechRecognitionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SpeechRecognitionResult.Marshal(b, m, deterministic) +} +func (m *SpeechRecognitionResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpeechRecognitionResult.Merge(m, src) +} +func (m *SpeechRecognitionResult) XXX_Size() int { + return xxx_messageInfo_SpeechRecognitionResult.Size(m) +} +func (m *SpeechRecognitionResult) XXX_DiscardUnknown() { + xxx_messageInfo_SpeechRecognitionResult.DiscardUnknown(m) +} + +var xxx_messageInfo_SpeechRecognitionResult proto.InternalMessageInfo + +func (m *SpeechRecognitionResult) GetAlternatives() []*SpeechRecognitionAlternative { + if m != nil { + return m.Alternatives + } + return nil +} + +func (m *SpeechRecognitionResult) GetChannelTag() int64 { + if m != nil { + return m.ChannelTag + } + return 0 +} + +type SpeechRecognitionAlternative struct { + Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` + Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"` + Words []*WordInfo `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SpeechRecognitionAlternative) Reset() { *m = SpeechRecognitionAlternative{} } +func (m *SpeechRecognitionAlternative) String() string { return proto.CompactTextString(m) } +func (*SpeechRecognitionAlternative) ProtoMessage() {} +func (*SpeechRecognitionAlternative) Descriptor() ([]byte, []int) { + return fileDescriptor_44de6807abd10de5, []int{9} +} + +func (m *SpeechRecognitionAlternative) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SpeechRecognitionAlternative.Unmarshal(m, b) +} +func (m *SpeechRecognitionAlternative) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SpeechRecognitionAlternative.Marshal(b, m, deterministic) +} +func (m *SpeechRecognitionAlternative) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpeechRecognitionAlternative.Merge(m, src) +} +func (m *SpeechRecognitionAlternative) XXX_Size() int { + return xxx_messageInfo_SpeechRecognitionAlternative.Size(m) +} +func (m *SpeechRecognitionAlternative) XXX_DiscardUnknown() { + xxx_messageInfo_SpeechRecognitionAlternative.DiscardUnknown(m) +} + +var xxx_messageInfo_SpeechRecognitionAlternative proto.InternalMessageInfo + +func (m *SpeechRecognitionAlternative) GetText() string { + if m != nil { + return m.Text + } + return "" +} + +func (m *SpeechRecognitionAlternative) GetConfidence() float32 { + if m != nil { + return m.Confidence + } + return 0 +} + +func (m *SpeechRecognitionAlternative) GetWords() []*WordInfo { + if m != nil { + return m.Words + } + return nil +} + +type WordInfo struct { + StartTime *duration.Duration `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + EndTime *duration.Duration `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + Word string `protobuf:"bytes,3,opt,name=word,proto3" json:"word,omitempty"` + Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WordInfo) Reset() { *m = WordInfo{} } +func (m *WordInfo) String() string { return proto.CompactTextString(m) } +func (*WordInfo) ProtoMessage() {} +func (*WordInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_44de6807abd10de5, []int{10} +} + +func (m *WordInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WordInfo.Unmarshal(m, b) +} +func (m *WordInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WordInfo.Marshal(b, m, deterministic) +} +func (m *WordInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_WordInfo.Merge(m, src) +} +func (m *WordInfo) XXX_Size() int { + return xxx_messageInfo_WordInfo.Size(m) +} +func (m *WordInfo) XXX_DiscardUnknown() { + xxx_messageInfo_WordInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_WordInfo proto.InternalMessageInfo + +func (m *WordInfo) GetStartTime() *duration.Duration { + if m != nil { + return m.StartTime + } + return nil +} + +func (m *WordInfo) GetEndTime() *duration.Duration { + if m != nil { + return m.EndTime + } + return nil +} + +func (m *WordInfo) GetWord() string { + if m != nil { + return m.Word + } + return "" +} + +func (m *WordInfo) GetConfidence() float32 { + if m != nil { + return m.Confidence + } + return 0 +} + +func init() { + proto.RegisterEnum("yandex.cloud.ai.stt.v2.RecognitionSpec_AudioEncoding", RecognitionSpec_AudioEncoding_name, RecognitionSpec_AudioEncoding_value) + proto.RegisterType((*LongRunningRecognitionRequest)(nil), "yandex.cloud.ai.stt.v2.LongRunningRecognitionRequest") + proto.RegisterType((*LongRunningRecognitionResponse)(nil), "yandex.cloud.ai.stt.v2.LongRunningRecognitionResponse") + proto.RegisterType((*StreamingRecognitionRequest)(nil), "yandex.cloud.ai.stt.v2.StreamingRecognitionRequest") + proto.RegisterType((*StreamingRecognitionResponse)(nil), "yandex.cloud.ai.stt.v2.StreamingRecognitionResponse") + proto.RegisterType((*RecognitionAudio)(nil), "yandex.cloud.ai.stt.v2.RecognitionAudio") + proto.RegisterType((*RecognitionConfig)(nil), "yandex.cloud.ai.stt.v2.RecognitionConfig") + proto.RegisterType((*RecognitionSpec)(nil), "yandex.cloud.ai.stt.v2.RecognitionSpec") + proto.RegisterType((*SpeechRecognitionChunk)(nil), "yandex.cloud.ai.stt.v2.SpeechRecognitionChunk") + proto.RegisterType((*SpeechRecognitionResult)(nil), "yandex.cloud.ai.stt.v2.SpeechRecognitionResult") + proto.RegisterType((*SpeechRecognitionAlternative)(nil), "yandex.cloud.ai.stt.v2.SpeechRecognitionAlternative") + proto.RegisterType((*WordInfo)(nil), "yandex.cloud.ai.stt.v2.WordInfo") +} + +func init() { + proto.RegisterFile("yandex/cloud/ai/stt/v2/stt_service.proto", fileDescriptor_44de6807abd10de5) +} + +var fileDescriptor_44de6807abd10de5 = []byte{ + // 1073 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4f, 0x6f, 0xdb, 0x36, + 0x14, 0x8f, 0xec, 0xfc, 0x71, 0x5e, 0x9c, 0xc4, 0x61, 0x8b, 0xd6, 0x73, 0xbb, 0xd4, 0x53, 0xb1, + 0xd5, 0x0d, 0x50, 0x69, 0x73, 0xb3, 0x62, 0xd8, 0x80, 0x02, 0x89, 0xf3, 0xcf, 0x43, 0x1b, 0x07, + 0x74, 0x83, 0x0d, 0x43, 0x01, 0x81, 0x91, 0x28, 0x85, 0x98, 0x4c, 0x6a, 0x12, 0x95, 0xb4, 0xb9, + 0x0c, 0x18, 0xd0, 0xcb, 0xae, 0xdb, 0x79, 0x87, 0x7d, 0x80, 0x1d, 0xfa, 0x19, 0xf6, 0x09, 0xb6, + 0xe3, 0xae, 0xfb, 0x0e, 0xbb, 0x0e, 0x22, 0xa5, 0xa4, 0x76, 0xed, 0x36, 0x1b, 0xd0, 0x93, 0xc4, + 0x1f, 0xdf, 0xef, 0xf1, 0xbd, 0xdf, 0x23, 0xf9, 0x08, 0xad, 0xe7, 0x84, 0x7b, 0xf4, 0x99, 0xed, + 0x86, 0x22, 0xf5, 0x6c, 0xc2, 0xec, 0x44, 0x4a, 0xfb, 0xa4, 0x9d, 0x7d, 0x9c, 0x84, 0xc6, 0x27, + 0xcc, 0xa5, 0x56, 0x14, 0x0b, 0x29, 0xd0, 0x35, 0x6d, 0x69, 0x29, 0x4b, 0x8b, 0x30, 0x2b, 0x91, + 0xd2, 0x3a, 0x69, 0x37, 0x6e, 0x06, 0x42, 0x04, 0x21, 0xb5, 0x49, 0xc4, 0x6c, 0xc2, 0xb9, 0x90, + 0x44, 0x32, 0xc1, 0x13, 0xcd, 0x6a, 0xac, 0xe6, 0xb3, 0x6a, 0x74, 0x94, 0xfa, 0xb6, 0x97, 0xc6, + 0xca, 0x20, 0x9f, 0x6f, 0x0e, 0xaf, 0x1f, 0x31, 0x5b, 0x44, 0x74, 0xc8, 0xe2, 0xa3, 0x21, 0x8b, + 0xf3, 0xd9, 0x51, 0x3b, 0xf3, 0x57, 0x03, 0xde, 0x7f, 0x24, 0x78, 0x80, 0x53, 0xce, 0x19, 0x0f, + 0x30, 0x75, 0x45, 0xc0, 0x59, 0x66, 0x80, 0xe9, 0x77, 0x29, 0x4d, 0x24, 0xda, 0x80, 0x59, 0x57, + 0x70, 0x9f, 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x2b, 0xfe, 0x4c, + 0xfc, 0xf2, 0x8f, 0xb5, 0x26, 0x7a, 0x4b, 0xcb, 0xfd, 0xe1, 0xcf, 0xbf, 0x7f, 0x2a, 0xb5, 0xcc, + 0xdb, 0x76, 0xa2, 0x2a, 0x5d, 0xbc, 0x80, 0xc2, 0x31, 0xa1, 0x7e, 0x6e, 0xac, 0xa1, 0x17, 0x06, + 0xa0, 0xd1, 0xb6, 0x75, 0x46, 0xd1, 0xfd, 0x89, 0xfb, 0x71, 0x72, 0x0f, 0x6e, 0xac, 0xff, 0x37, + 0x92, 0x8e, 0xd7, 0x9c, 0x6a, 0x19, 0x1f, 0x1b, 0x9b, 0x4f, 0xa1, 0x31, 0x4c, 0x8e, 0xd8, 0x85, + 0x83, 0x6f, 0x1e, 0x06, 0x4c, 0x1e, 0xa7, 0x47, 0x96, 0x2b, 0x06, 0xb6, 0x36, 0xbb, 0xa7, 0x1f, + 0x50, 0x81, 0xb8, 0x17, 0x50, 0xae, 0x2a, 0x6d, 0x8f, 0x7f, 0xfb, 0x7d, 0x91, 0x48, 0x79, 0x34, + 0xab, 0x2c, 0xee, 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x80, 0x2d, 0x0a, 0x7e, 0x20, 0x0a, 0x00, + 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// SttServiceClient is the client API for SttService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type SttServiceClient interface { + LongRunningRecognize(ctx context.Context, in *LongRunningRecognitionRequest, opts ...grpc.CallOption) (*operation.Operation, error) + StreamingRecognize(ctx context.Context, opts ...grpc.CallOption) (SttService_StreamingRecognizeClient, error) +} + +type sttServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSttServiceClient(cc grpc.ClientConnInterface) SttServiceClient { + return &sttServiceClient{cc} +} + +func (c *sttServiceClient) LongRunningRecognize(ctx context.Context, in *LongRunningRecognitionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.ai.stt.v2.SttService/LongRunningRecognize", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *sttServiceClient) StreamingRecognize(ctx context.Context, opts ...grpc.CallOption) (SttService_StreamingRecognizeClient, error) { + stream, err := c.cc.NewStream(ctx, &_SttService_serviceDesc.Streams[0], "/yandex.cloud.ai.stt.v2.SttService/StreamingRecognize", opts...) + if err != nil { + return nil, err + } + x := &sttServiceStreamingRecognizeClient{stream} + return x, nil +} + +type SttService_StreamingRecognizeClient interface { + Send(*StreamingRecognitionRequest) error + Recv() (*StreamingRecognitionResponse, error) + grpc.ClientStream +} + +type sttServiceStreamingRecognizeClient struct { + grpc.ClientStream +} + +func (x *sttServiceStreamingRecognizeClient) Send(m *StreamingRecognitionRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *sttServiceStreamingRecognizeClient) Recv() (*StreamingRecognitionResponse, error) { + m := new(StreamingRecognitionResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// SttServiceServer is the server API for SttService service. +type SttServiceServer interface { + LongRunningRecognize(context.Context, *LongRunningRecognitionRequest) (*operation.Operation, error) + StreamingRecognize(SttService_StreamingRecognizeServer) error +} + +// UnimplementedSttServiceServer can be embedded to have forward compatible implementations. +type UnimplementedSttServiceServer struct { +} + +func (*UnimplementedSttServiceServer) LongRunningRecognize(ctx context.Context, req *LongRunningRecognitionRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method LongRunningRecognize not implemented") +} +func (*UnimplementedSttServiceServer) StreamingRecognize(srv SttService_StreamingRecognizeServer) error { + return status.Errorf(codes.Unimplemented, "method StreamingRecognize not implemented") +} + +func RegisterSttServiceServer(s *grpc.Server, srv SttServiceServer) { + s.RegisterService(&_SttService_serviceDesc, srv) +} + +func _SttService_LongRunningRecognize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LongRunningRecognitionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SttServiceServer).LongRunningRecognize(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.ai.stt.v2.SttService/LongRunningRecognize", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SttServiceServer).LongRunningRecognize(ctx, req.(*LongRunningRecognitionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SttService_StreamingRecognize_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SttServiceServer).StreamingRecognize(&sttServiceStreamingRecognizeServer{stream}) +} + +type SttService_StreamingRecognizeServer interface { + Send(*StreamingRecognitionResponse) error + Recv() (*StreamingRecognitionRequest, error) + grpc.ServerStream +} + +type sttServiceStreamingRecognizeServer struct { + grpc.ServerStream +} + +func (x *sttServiceStreamingRecognizeServer) Send(m *StreamingRecognitionResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *sttServiceStreamingRecognizeServer) Recv() (*StreamingRecognitionRequest, error) { + m := new(StreamingRecognitionRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _SttService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.ai.stt.v2.SttService", + HandlerType: (*SttServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "LongRunningRecognize", + Handler: _SttService_LongRunningRecognize_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamingRecognize", + Handler: _SttService_StreamingRecognize_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "yandex/cloud/ai/stt/v2/stt_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/stt/v2/stt_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/stt/v2/stt_service.pbext.go new file mode 100644 index 000000000..b5d435ac9 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/stt/v2/stt_service.pbext.go @@ -0,0 +1,151 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package stt + +import ( + duration "github.com/golang/protobuf/ptypes/duration" +) + +func (m *LongRunningRecognitionRequest) SetConfig(v *RecognitionConfig) { + m.Config = v +} + +func (m *LongRunningRecognitionRequest) SetAudio(v *RecognitionAudio) { + m.Audio = v +} + +func (m *LongRunningRecognitionResponse) SetChunks(v []*SpeechRecognitionResult) { + m.Chunks = v +} + +type StreamingRecognitionRequest_StreamingRequest = isStreamingRecognitionRequest_StreamingRequest + +func (m *StreamingRecognitionRequest) SetStreamingRequest(v StreamingRecognitionRequest_StreamingRequest) { + m.StreamingRequest = v +} + +func (m *StreamingRecognitionRequest) SetConfig(v *RecognitionConfig) { + m.StreamingRequest = &StreamingRecognitionRequest_Config{ + Config: v, + } +} + +func (m *StreamingRecognitionRequest) SetAudioContent(v []byte) { + m.StreamingRequest = &StreamingRecognitionRequest_AudioContent{ + AudioContent: v, + } +} + +func (m *StreamingRecognitionResponse) SetChunks(v []*SpeechRecognitionChunk) { + m.Chunks = v +} + +type RecognitionAudio_AudioSource = isRecognitionAudio_AudioSource + +func (m *RecognitionAudio) SetAudioSource(v RecognitionAudio_AudioSource) { + m.AudioSource = v +} + +func (m *RecognitionAudio) SetContent(v []byte) { + m.AudioSource = &RecognitionAudio_Content{ + Content: v, + } +} + +func (m *RecognitionAudio) SetUri(v string) { + m.AudioSource = &RecognitionAudio_Uri{ + Uri: v, + } +} + +func (m *RecognitionConfig) SetSpecification(v *RecognitionSpec) { + m.Specification = v +} + +func (m *RecognitionConfig) SetFolderId(v string) { + m.FolderId = v +} + +func (m *RecognitionSpec) SetAudioEncoding(v RecognitionSpec_AudioEncoding) { + m.AudioEncoding = v +} + +func (m *RecognitionSpec) SetSampleRateHertz(v int64) { + m.SampleRateHertz = v +} + +func (m *RecognitionSpec) SetLanguageCode(v string) { + m.LanguageCode = v +} + +func (m *RecognitionSpec) SetProfanityFilter(v bool) { + m.ProfanityFilter = v +} + +func (m *RecognitionSpec) SetModel(v string) { + m.Model = v +} + +func (m *RecognitionSpec) SetPartialResults(v bool) { + m.PartialResults = v +} + +func (m *RecognitionSpec) SetSingleUtterance(v bool) { + m.SingleUtterance = v +} + +func (m *RecognitionSpec) SetAudioChannelCount(v int64) { + m.AudioChannelCount = v +} + +func (m *RecognitionSpec) SetRawResults(v bool) { + m.RawResults = v +} + +func (m *SpeechRecognitionChunk) SetAlternatives(v []*SpeechRecognitionAlternative) { + m.Alternatives = v +} + +func (m *SpeechRecognitionChunk) SetFinal(v bool) { + m.Final = v +} + +func (m *SpeechRecognitionChunk) SetEndOfUtterance(v bool) { + m.EndOfUtterance = v +} + +func (m *SpeechRecognitionResult) SetAlternatives(v []*SpeechRecognitionAlternative) { + m.Alternatives = v +} + +func (m *SpeechRecognitionResult) SetChannelTag(v int64) { + m.ChannelTag = v +} + +func (m *SpeechRecognitionAlternative) SetText(v string) { + m.Text = v +} + +func (m *SpeechRecognitionAlternative) SetConfidence(v float32) { + m.Confidence = v +} + +func (m *SpeechRecognitionAlternative) SetWords(v []*WordInfo) { + m.Words = v +} + +func (m *WordInfo) SetStartTime(v *duration.Duration) { + m.StartTime = v +} + +func (m *WordInfo) SetEndTime(v *duration.Duration) { + m.EndTime = v +} + +func (m *WordInfo) SetWord(v string) { + m.Word = v +} + +func (m *WordInfo) SetConfidence(v float32) { + m.Confidence = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/translate/v2/translation.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/translate/v2/translation.pb.go new file mode 100644 index 000000000..3f8e53b8f --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/translate/v2/translation.pb.go @@ -0,0 +1,148 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/ai/translate/v2/translation.proto + +package translate + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type TranslatedText struct { + // Translated text. + Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` + // The language code of the source text. + // Specified in [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format (for example, `` en ``). + DetectedLanguageCode string `protobuf:"bytes,2,opt,name=detected_language_code,json=detectedLanguageCode,proto3" json:"detected_language_code,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TranslatedText) Reset() { *m = TranslatedText{} } +func (m *TranslatedText) String() string { return proto.CompactTextString(m) } +func (*TranslatedText) ProtoMessage() {} +func (*TranslatedText) Descriptor() ([]byte, []int) { + return fileDescriptor_a844663219943b98, []int{0} +} + +func (m *TranslatedText) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TranslatedText.Unmarshal(m, b) +} +func (m *TranslatedText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TranslatedText.Marshal(b, m, deterministic) +} +func (m *TranslatedText) XXX_Merge(src proto.Message) { + xxx_messageInfo_TranslatedText.Merge(m, src) +} +func (m *TranslatedText) XXX_Size() int { + return xxx_messageInfo_TranslatedText.Size(m) +} +func (m *TranslatedText) XXX_DiscardUnknown() { + xxx_messageInfo_TranslatedText.DiscardUnknown(m) +} + +var xxx_messageInfo_TranslatedText proto.InternalMessageInfo + +func (m *TranslatedText) GetText() string { + if m != nil { + return m.Text + } + return "" +} + +func (m *TranslatedText) GetDetectedLanguageCode() string { + if m != nil { + return m.DetectedLanguageCode + } + return "" +} + +type Language struct { + // The language code. + // Specified in [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format (for example, `` en ``). + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + // The name of the language (for example, `` English ``). + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Language) Reset() { *m = Language{} } +func (m *Language) String() string { return proto.CompactTextString(m) } +func (*Language) ProtoMessage() {} +func (*Language) Descriptor() ([]byte, []int) { + return fileDescriptor_a844663219943b98, []int{1} +} + +func (m *Language) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Language.Unmarshal(m, b) +} +func (m *Language) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Language.Marshal(b, m, deterministic) +} +func (m *Language) XXX_Merge(src proto.Message) { + xxx_messageInfo_Language.Merge(m, src) +} +func (m *Language) XXX_Size() int { + return xxx_messageInfo_Language.Size(m) +} +func (m *Language) XXX_DiscardUnknown() { + xxx_messageInfo_Language.DiscardUnknown(m) +} + +var xxx_messageInfo_Language proto.InternalMessageInfo + +func (m *Language) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *Language) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func init() { + proto.RegisterType((*TranslatedText)(nil), "yandex.cloud.ai.translate.v2.TranslatedText") + proto.RegisterType((*Language)(nil), "yandex.cloud.ai.translate.v2.Language") +} + +func init() { + proto.RegisterFile("yandex/cloud/ai/translate/v2/translation.proto", fileDescriptor_a844663219943b98) +} + +var fileDescriptor_a844663219943b98 = []byte{ + // 217 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x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f3, 0xf5, 0x18, 0x8e, 0x72, 0x87, 0x21, + 0x7e, 0x5b, 0x9f, 0xbb, 0xd2, 0xcb, 0x0e, 0xcd, 0x55, 0xb4, 0x9f, 0x7e, 0x03, 0x00, 0x00, 0xff, + 0xff, 0x10, 0xbd, 0x4e, 0x82, 0x56, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/translate/v2/translation.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/translate/v2/translation.pbext.go new file mode 100644 index 000000000..c75549c98 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/translate/v2/translation.pbext.go @@ -0,0 +1,19 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package translate + +func (m *TranslatedText) SetText(v string) { + m.Text = v +} + +func (m *TranslatedText) SetDetectedLanguageCode(v string) { + m.DetectedLanguageCode = v +} + +func (m *Language) SetCode(v string) { + m.Code = v +} + +func (m *Language) SetName(v string) { + m.Name = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/translate/v2/translation_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/translate/v2/translation_service.pb.go new file mode 100644 index 000000000..3ab293451 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/translate/v2/translation_service.pb.go @@ -0,0 +1,774 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/ai/translate/v2/translation_service.proto + +package translate + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type TranslateRequest_Format int32 + +const ( + TranslateRequest_FORMAT_UNSPECIFIED TranslateRequest_Format = 0 + // Text without markup. Default value. + TranslateRequest_PLAIN_TEXT TranslateRequest_Format = 1 + // Text in the HTML format. + TranslateRequest_HTML TranslateRequest_Format = 2 +) + +var TranslateRequest_Format_name = map[int32]string{ + 0: "FORMAT_UNSPECIFIED", + 1: "PLAIN_TEXT", + 2: "HTML", +} + +var TranslateRequest_Format_value = map[string]int32{ + "FORMAT_UNSPECIFIED": 0, + "PLAIN_TEXT": 1, + "HTML": 2, +} + +func (x TranslateRequest_Format) String() string { + return proto.EnumName(TranslateRequest_Format_name, int32(x)) +} + +func (TranslateRequest_Format) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_07212bd16e7bdb8a, []int{0, 0} +} + +type TranslateRequest struct { + // The text language to translate from. + // Specified in [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format (for example, `` ru ``). + // + // Required for translating with glossary. + SourceLanguageCode string `protobuf:"bytes,1,opt,name=source_language_code,json=sourceLanguageCode,proto3" json:"source_language_code,omitempty"` + // The target language to translate the text. + // Specified in [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format (for example, `` en ``). + TargetLanguageCode string `protobuf:"bytes,2,opt,name=target_language_code,json=targetLanguageCode,proto3" json:"target_language_code,omitempty"` + // Format of the text. + Format TranslateRequest_Format `protobuf:"varint,3,opt,name=format,proto3,enum=yandex.cloud.ai.translate.v2.TranslateRequest_Format" json:"format,omitempty"` + // Array of the strings to translate. + // The maximum total length of all strings is 10000 characters. + Texts []string `protobuf:"bytes,4,rep,name=texts,proto3" json:"texts,omitempty"` + // ID of the folder to which you have access. + // Required for authorization with a user account (see [yandex.cloud.iam.v1.UserAccount] resource). + // Don't specify this field if you make the request on behalf of a service account. + FolderId string `protobuf:"bytes,5,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // Do not specify this field, custom models are not supported yet. + Model string `protobuf:"bytes,6,opt,name=model,proto3" json:"model,omitempty"` + // Glossary to be applied for the translation. For more information, see [Glossaries](/docs/translate/concepts/glossary). + GlossaryConfig *TranslateGlossaryConfig `protobuf:"bytes,7,opt,name=glossary_config,json=glossaryConfig,proto3" json:"glossary_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TranslateRequest) Reset() { *m = TranslateRequest{} } +func (m *TranslateRequest) String() string { return proto.CompactTextString(m) } +func (*TranslateRequest) ProtoMessage() {} +func (*TranslateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_07212bd16e7bdb8a, []int{0} +} + +func (m *TranslateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TranslateRequest.Unmarshal(m, b) +} +func (m *TranslateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TranslateRequest.Marshal(b, m, deterministic) +} +func (m *TranslateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TranslateRequest.Merge(m, src) +} +func (m *TranslateRequest) XXX_Size() int { + return xxx_messageInfo_TranslateRequest.Size(m) +} +func (m *TranslateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TranslateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TranslateRequest proto.InternalMessageInfo + +func (m *TranslateRequest) GetSourceLanguageCode() string { + if m != nil { + return m.SourceLanguageCode + } + return "" +} + +func (m *TranslateRequest) GetTargetLanguageCode() string { + if m != nil { + return m.TargetLanguageCode + } + return "" +} + +func (m *TranslateRequest) GetFormat() TranslateRequest_Format { + if m != nil { + return m.Format + } + return TranslateRequest_FORMAT_UNSPECIFIED +} + +func (m *TranslateRequest) GetTexts() []string { + if m != nil { + return m.Texts + } + return nil +} + +func (m *TranslateRequest) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *TranslateRequest) GetModel() string { + if m != nil { + return m.Model + } + return "" +} + +func (m *TranslateRequest) GetGlossaryConfig() *TranslateGlossaryConfig { + if m != nil { + return m.GlossaryConfig + } + return nil +} + +type TranslateGlossaryConfig struct { + // Types that are valid to be assigned to GlossarySource: + // *TranslateGlossaryConfig_GlossaryData + GlossarySource isTranslateGlossaryConfig_GlossarySource `protobuf_oneof:"glossary_source"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TranslateGlossaryConfig) Reset() { *m = TranslateGlossaryConfig{} } +func (m *TranslateGlossaryConfig) String() string { return proto.CompactTextString(m) } +func (*TranslateGlossaryConfig) ProtoMessage() {} +func (*TranslateGlossaryConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_07212bd16e7bdb8a, []int{1} +} + +func (m *TranslateGlossaryConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TranslateGlossaryConfig.Unmarshal(m, b) +} +func (m *TranslateGlossaryConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TranslateGlossaryConfig.Marshal(b, m, deterministic) +} +func (m *TranslateGlossaryConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TranslateGlossaryConfig.Merge(m, src) +} +func (m *TranslateGlossaryConfig) XXX_Size() int { + return xxx_messageInfo_TranslateGlossaryConfig.Size(m) +} +func (m *TranslateGlossaryConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TranslateGlossaryConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_TranslateGlossaryConfig proto.InternalMessageInfo + +type isTranslateGlossaryConfig_GlossarySource interface { + isTranslateGlossaryConfig_GlossarySource() +} + +type TranslateGlossaryConfig_GlossaryData struct { + GlossaryData *GlossaryData `protobuf:"bytes,1,opt,name=glossary_data,json=glossaryData,proto3,oneof"` +} + +func (*TranslateGlossaryConfig_GlossaryData) isTranslateGlossaryConfig_GlossarySource() {} + +func (m *TranslateGlossaryConfig) GetGlossarySource() isTranslateGlossaryConfig_GlossarySource { + if m != nil { + return m.GlossarySource + } + return nil +} + +func (m *TranslateGlossaryConfig) GetGlossaryData() *GlossaryData { + if x, ok := m.GetGlossarySource().(*TranslateGlossaryConfig_GlossaryData); ok { + return x.GlossaryData + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TranslateGlossaryConfig) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TranslateGlossaryConfig_GlossaryData)(nil), + } +} + +type GlossaryData struct { + // Array of text pairs. + // + // The maximum total length of all source texts is 10000 characters. + // The maximum total length of all translated texts is 10000 characters. + GlossaryPairs []*GlossaryPair `protobuf:"bytes,1,rep,name=glossary_pairs,json=glossaryPairs,proto3" json:"glossary_pairs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GlossaryData) Reset() { *m = GlossaryData{} } +func (m *GlossaryData) String() string { return proto.CompactTextString(m) } +func (*GlossaryData) ProtoMessage() {} +func (*GlossaryData) Descriptor() ([]byte, []int) { + return fileDescriptor_07212bd16e7bdb8a, []int{2} +} + +func (m *GlossaryData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GlossaryData.Unmarshal(m, b) +} +func (m *GlossaryData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GlossaryData.Marshal(b, m, deterministic) +} +func (m *GlossaryData) XXX_Merge(src proto.Message) { + xxx_messageInfo_GlossaryData.Merge(m, src) +} +func (m *GlossaryData) XXX_Size() int { + return xxx_messageInfo_GlossaryData.Size(m) +} +func (m *GlossaryData) XXX_DiscardUnknown() { + xxx_messageInfo_GlossaryData.DiscardUnknown(m) +} + +var xxx_messageInfo_GlossaryData proto.InternalMessageInfo + +func (m *GlossaryData) GetGlossaryPairs() []*GlossaryPair { + if m != nil { + return m.GlossaryPairs + } + return nil +} + +type GlossaryPair struct { + // Text in the source language. + SourceText string `protobuf:"bytes,1,opt,name=source_text,json=sourceText,proto3" json:"source_text,omitempty"` + // Text in the target language. + TranslatedText string `protobuf:"bytes,2,opt,name=translated_text,json=translatedText,proto3" json:"translated_text,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GlossaryPair) Reset() { *m = GlossaryPair{} } +func (m *GlossaryPair) String() string { return proto.CompactTextString(m) } +func (*GlossaryPair) ProtoMessage() {} +func (*GlossaryPair) Descriptor() ([]byte, []int) { + return fileDescriptor_07212bd16e7bdb8a, []int{3} +} + +func (m *GlossaryPair) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GlossaryPair.Unmarshal(m, b) +} +func (m *GlossaryPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GlossaryPair.Marshal(b, m, deterministic) +} +func (m *GlossaryPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_GlossaryPair.Merge(m, src) +} +func (m *GlossaryPair) XXX_Size() int { + return xxx_messageInfo_GlossaryPair.Size(m) +} +func (m *GlossaryPair) XXX_DiscardUnknown() { + xxx_messageInfo_GlossaryPair.DiscardUnknown(m) +} + +var xxx_messageInfo_GlossaryPair proto.InternalMessageInfo + +func (m *GlossaryPair) GetSourceText() string { + if m != nil { + return m.SourceText + } + return "" +} + +func (m *GlossaryPair) GetTranslatedText() string { + if m != nil { + return m.TranslatedText + } + return "" +} + +type TranslateResponse struct { + // Array of the translations. + Translations []*TranslatedText `protobuf:"bytes,1,rep,name=translations,proto3" json:"translations,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TranslateResponse) Reset() { *m = TranslateResponse{} } +func (m *TranslateResponse) String() string { return proto.CompactTextString(m) } +func (*TranslateResponse) ProtoMessage() {} +func (*TranslateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_07212bd16e7bdb8a, []int{4} +} + +func (m *TranslateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TranslateResponse.Unmarshal(m, b) +} +func (m *TranslateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TranslateResponse.Marshal(b, m, deterministic) +} +func (m *TranslateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TranslateResponse.Merge(m, src) +} +func (m *TranslateResponse) XXX_Size() int { + return xxx_messageInfo_TranslateResponse.Size(m) +} +func (m *TranslateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TranslateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TranslateResponse proto.InternalMessageInfo + +func (m *TranslateResponse) GetTranslations() []*TranslatedText { + if m != nil { + return m.Translations + } + return nil +} + +type DetectLanguageRequest struct { + // The text to detect the language for. + Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` + // List of the most likely languages. These languages will be given preference when detecting the text language. + // Specified in [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format (for example, `` ru ``). + // + // To get the list of supported languages, use a [TranslationService.ListLanguages] request. + LanguageCodeHints []string `protobuf:"bytes,2,rep,name=language_code_hints,json=languageCodeHints,proto3" json:"language_code_hints,omitempty"` + // ID of the folder to which you have access. + // Required for authorization with a user account (see [yandex.cloud.iam.v1.UserAccount] resource). + // Don't specify this field if you make the request on behalf of a service account. + FolderId string `protobuf:"bytes,3,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DetectLanguageRequest) Reset() { *m = DetectLanguageRequest{} } +func (m *DetectLanguageRequest) String() string { return proto.CompactTextString(m) } +func (*DetectLanguageRequest) ProtoMessage() {} +func (*DetectLanguageRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_07212bd16e7bdb8a, []int{5} +} + +func (m *DetectLanguageRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DetectLanguageRequest.Unmarshal(m, b) +} +func (m *DetectLanguageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DetectLanguageRequest.Marshal(b, m, deterministic) +} +func (m *DetectLanguageRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DetectLanguageRequest.Merge(m, src) +} +func (m *DetectLanguageRequest) XXX_Size() int { + return xxx_messageInfo_DetectLanguageRequest.Size(m) +} +func (m *DetectLanguageRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DetectLanguageRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DetectLanguageRequest proto.InternalMessageInfo + +func (m *DetectLanguageRequest) GetText() string { + if m != nil { + return m.Text + } + return "" +} + +func (m *DetectLanguageRequest) GetLanguageCodeHints() []string { + if m != nil { + return m.LanguageCodeHints + } + return nil +} + +func (m *DetectLanguageRequest) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +type DetectLanguageResponse struct { + // The text language in [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format (for example, `` ru ``). + // + // To get the language name, use a [TranslationService.ListLanguages] request. + LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DetectLanguageResponse) Reset() { *m = DetectLanguageResponse{} } +func (m *DetectLanguageResponse) String() string { return proto.CompactTextString(m) } +func (*DetectLanguageResponse) ProtoMessage() {} +func (*DetectLanguageResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_07212bd16e7bdb8a, []int{6} +} + +func (m *DetectLanguageResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DetectLanguageResponse.Unmarshal(m, b) +} +func (m *DetectLanguageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DetectLanguageResponse.Marshal(b, m, deterministic) +} +func (m *DetectLanguageResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DetectLanguageResponse.Merge(m, src) +} +func (m *DetectLanguageResponse) XXX_Size() int { + return xxx_messageInfo_DetectLanguageResponse.Size(m) +} +func (m *DetectLanguageResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DetectLanguageResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DetectLanguageResponse proto.InternalMessageInfo + +func (m *DetectLanguageResponse) GetLanguageCode() string { + if m != nil { + return m.LanguageCode + } + return "" +} + +type ListLanguagesRequest struct { + // ID of the folder to which you have access. + // Required for authorization with a user account (see [yandex.cloud.iam.v1.UserAccount] resource). + // Don't specify this field if you make the request on behalf of a service account. + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListLanguagesRequest) Reset() { *m = ListLanguagesRequest{} } +func (m *ListLanguagesRequest) String() string { return proto.CompactTextString(m) } +func (*ListLanguagesRequest) ProtoMessage() {} +func (*ListLanguagesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_07212bd16e7bdb8a, []int{7} +} + +func (m *ListLanguagesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListLanguagesRequest.Unmarshal(m, b) +} +func (m *ListLanguagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListLanguagesRequest.Marshal(b, m, deterministic) +} +func (m *ListLanguagesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListLanguagesRequest.Merge(m, src) +} +func (m *ListLanguagesRequest) XXX_Size() int { + return xxx_messageInfo_ListLanguagesRequest.Size(m) +} +func (m *ListLanguagesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListLanguagesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListLanguagesRequest proto.InternalMessageInfo + +func (m *ListLanguagesRequest) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +type ListLanguagesResponse struct { + // List of supported languages. + Languages []*Language `protobuf:"bytes,1,rep,name=languages,proto3" json:"languages,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListLanguagesResponse) Reset() { *m = ListLanguagesResponse{} } +func (m *ListLanguagesResponse) String() string { return proto.CompactTextString(m) } +func (*ListLanguagesResponse) ProtoMessage() {} +func (*ListLanguagesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_07212bd16e7bdb8a, []int{8} +} + +func (m *ListLanguagesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListLanguagesResponse.Unmarshal(m, b) +} +func (m *ListLanguagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListLanguagesResponse.Marshal(b, m, deterministic) +} +func (m *ListLanguagesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListLanguagesResponse.Merge(m, src) +} +func (m *ListLanguagesResponse) XXX_Size() int { + return xxx_messageInfo_ListLanguagesResponse.Size(m) +} +func (m *ListLanguagesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListLanguagesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListLanguagesResponse proto.InternalMessageInfo + +func (m *ListLanguagesResponse) GetLanguages() []*Language { + if m != nil { + return m.Languages + } + return nil +} + +func init() { + proto.RegisterEnum("yandex.cloud.ai.translate.v2.TranslateRequest_Format", TranslateRequest_Format_name, TranslateRequest_Format_value) + proto.RegisterType((*TranslateRequest)(nil), "yandex.cloud.ai.translate.v2.TranslateRequest") + proto.RegisterType((*TranslateGlossaryConfig)(nil), "yandex.cloud.ai.translate.v2.TranslateGlossaryConfig") + proto.RegisterType((*GlossaryData)(nil), "yandex.cloud.ai.translate.v2.GlossaryData") + proto.RegisterType((*GlossaryPair)(nil), "yandex.cloud.ai.translate.v2.GlossaryPair") + proto.RegisterType((*TranslateResponse)(nil), "yandex.cloud.ai.translate.v2.TranslateResponse") + proto.RegisterType((*DetectLanguageRequest)(nil), "yandex.cloud.ai.translate.v2.DetectLanguageRequest") + proto.RegisterType((*DetectLanguageResponse)(nil), "yandex.cloud.ai.translate.v2.DetectLanguageResponse") + proto.RegisterType((*ListLanguagesRequest)(nil), "yandex.cloud.ai.translate.v2.ListLanguagesRequest") + proto.RegisterType((*ListLanguagesResponse)(nil), "yandex.cloud.ai.translate.v2.ListLanguagesResponse") +} + +func init() { + proto.RegisterFile("yandex/cloud/ai/translate/v2/translation_service.proto", fileDescriptor_07212bd16e7bdb8a) +} + +var fileDescriptor_07212bd16e7bdb8a = []byte{ + // 835 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x41, 0x6f, 0xe3, 0x44, + 0x14, 0x5e, 0x27, 0x69, 0xb6, 0x79, 0x6d, 0xd3, 0xee, 0xd0, 0xdd, 0x9a, 0xa8, 0x40, 0x64, 0xb4, + 0xa8, 0xaa, 0x88, 0x1d, 0x27, 0x14, 0x89, 0xd2, 0x80, 0x36, 0x4d, 0x4b, 0x83, 0xd2, 0x25, 0x78, + 0x83, 0x84, 0x40, 0x60, 0xcd, 0xc6, 0x53, 0xaf, 0x85, 0xeb, 0x09, 0xf6, 0x24, 0xea, 0x5e, 0x23, + 0x71, 0xd9, 0x13, 0x12, 0x57, 0x6e, 0xfc, 0x11, 0x38, 0x91, 0x3b, 0x57, 0x8e, 0x20, 0xf1, 0x33, + 0x50, 0x66, 0x6c, 0xc7, 0x8e, 0xd2, 0x6c, 0x7a, 0x9c, 0x99, 0xef, 0x7b, 0xdf, 0xf7, 0xe6, 0xbd, + 0x37, 0x03, 0x1f, 0xbe, 0xc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, 0x40, 0xe5, 0x47, + 0x08, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// TranslationServiceClient is the client API for TranslationService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type TranslationServiceClient interface { + // Translates the text to the specified language. + Translate(ctx context.Context, in *TranslateRequest, opts ...grpc.CallOption) (*TranslateResponse, error) + // Detects the language of the text. + DetectLanguage(ctx context.Context, in *DetectLanguageRequest, opts ...grpc.CallOption) (*DetectLanguageResponse, error) + // Retrieves the list of supported languages. + ListLanguages(ctx context.Context, in *ListLanguagesRequest, opts ...grpc.CallOption) (*ListLanguagesResponse, error) +} + +type translationServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewTranslationServiceClient(cc grpc.ClientConnInterface) TranslationServiceClient { + return &translationServiceClient{cc} +} + +func (c *translationServiceClient) Translate(ctx context.Context, in *TranslateRequest, opts ...grpc.CallOption) (*TranslateResponse, error) { + out := new(TranslateResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.ai.translate.v2.TranslationService/Translate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *translationServiceClient) DetectLanguage(ctx context.Context, in *DetectLanguageRequest, opts ...grpc.CallOption) (*DetectLanguageResponse, error) { + out := new(DetectLanguageResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.ai.translate.v2.TranslationService/DetectLanguage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *translationServiceClient) ListLanguages(ctx context.Context, in *ListLanguagesRequest, opts ...grpc.CallOption) (*ListLanguagesResponse, error) { + out := new(ListLanguagesResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.ai.translate.v2.TranslationService/ListLanguages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// TranslationServiceServer is the server API for TranslationService service. +type TranslationServiceServer interface { + // Translates the text to the specified language. + Translate(context.Context, *TranslateRequest) (*TranslateResponse, error) + // Detects the language of the text. + DetectLanguage(context.Context, *DetectLanguageRequest) (*DetectLanguageResponse, error) + // Retrieves the list of supported languages. + ListLanguages(context.Context, *ListLanguagesRequest) (*ListLanguagesResponse, error) +} + +// UnimplementedTranslationServiceServer can be embedded to have forward compatible implementations. +type UnimplementedTranslationServiceServer struct { +} + +func (*UnimplementedTranslationServiceServer) Translate(ctx context.Context, req *TranslateRequest) (*TranslateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Translate not implemented") +} +func (*UnimplementedTranslationServiceServer) DetectLanguage(ctx context.Context, req *DetectLanguageRequest) (*DetectLanguageResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DetectLanguage not implemented") +} +func (*UnimplementedTranslationServiceServer) ListLanguages(ctx context.Context, req *ListLanguagesRequest) (*ListLanguagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListLanguages not implemented") +} + +func RegisterTranslationServiceServer(s *grpc.Server, srv TranslationServiceServer) { + s.RegisterService(&_TranslationService_serviceDesc, srv) +} + +func _TranslationService_Translate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TranslateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TranslationServiceServer).Translate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.ai.translate.v2.TranslationService/Translate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TranslationServiceServer).Translate(ctx, req.(*TranslateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TranslationService_DetectLanguage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DetectLanguageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TranslationServiceServer).DetectLanguage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.ai.translate.v2.TranslationService/DetectLanguage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TranslationServiceServer).DetectLanguage(ctx, req.(*DetectLanguageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TranslationService_ListLanguages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListLanguagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TranslationServiceServer).ListLanguages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.ai.translate.v2.TranslationService/ListLanguages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TranslationServiceServer).ListLanguages(ctx, req.(*ListLanguagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _TranslationService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.ai.translate.v2.TranslationService", + HandlerType: (*TranslationServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Translate", + Handler: _TranslationService_Translate_Handler, + }, + { + MethodName: "DetectLanguage", + Handler: _TranslationService_DetectLanguage_Handler, + }, + { + MethodName: "ListLanguages", + Handler: _TranslationService_ListLanguages_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/ai/translate/v2/translation_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/translate/v2/translation_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/translate/v2/translation_service.pbext.go new file mode 100644 index 000000000..8bd844e82 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/translate/v2/translation_service.pbext.go @@ -0,0 +1,83 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package translate + +func (m *TranslateRequest) SetSourceLanguageCode(v string) { + m.SourceLanguageCode = v +} + +func (m *TranslateRequest) SetTargetLanguageCode(v string) { + m.TargetLanguageCode = v +} + +func (m *TranslateRequest) SetFormat(v TranslateRequest_Format) { + m.Format = v +} + +func (m *TranslateRequest) SetTexts(v []string) { + m.Texts = v +} + +func (m *TranslateRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *TranslateRequest) SetModel(v string) { + m.Model = v +} + +func (m *TranslateRequest) SetGlossaryConfig(v *TranslateGlossaryConfig) { + m.GlossaryConfig = v +} + +type TranslateGlossaryConfig_GlossarySource = isTranslateGlossaryConfig_GlossarySource + +func (m *TranslateGlossaryConfig) SetGlossarySource(v TranslateGlossaryConfig_GlossarySource) { + m.GlossarySource = v +} + +func (m *TranslateGlossaryConfig) SetGlossaryData(v *GlossaryData) { + m.GlossarySource = &TranslateGlossaryConfig_GlossaryData{ + GlossaryData: v, + } +} + +func (m *GlossaryData) SetGlossaryPairs(v []*GlossaryPair) { + m.GlossaryPairs = v +} + +func (m *GlossaryPair) SetSourceText(v string) { + m.SourceText = v +} + +func (m *GlossaryPair) SetTranslatedText(v string) { + m.TranslatedText = v +} + +func (m *TranslateResponse) SetTranslations(v []*TranslatedText) { + m.Translations = v +} + +func (m *DetectLanguageRequest) SetText(v string) { + m.Text = v +} + +func (m *DetectLanguageRequest) SetLanguageCodeHints(v []string) { + m.LanguageCodeHints = v +} + +func (m *DetectLanguageRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *DetectLanguageResponse) SetLanguageCode(v string) { + m.LanguageCode = v +} + +func (m *ListLanguagesRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListLanguagesResponse) SetLanguages(v []*Language) { + m.Languages = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/classification.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/classification.pb.go new file mode 100644 index 000000000..211a69620 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/classification.pb.go @@ -0,0 +1,141 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/ai/vision/v1/classification.proto + +package vision + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ClassAnnotation struct { + // Properties extracted by a specified model. + // + // For example, if you ask to evaluate the image quality, + // the service could return such properties as `good` and `bad`. + Properties []*Property `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClassAnnotation) Reset() { *m = ClassAnnotation{} } +func (m *ClassAnnotation) String() string { return proto.CompactTextString(m) } +func (*ClassAnnotation) ProtoMessage() {} +func (*ClassAnnotation) Descriptor() ([]byte, []int) { + return fileDescriptor_4b6a3b28cb9191ec, []int{0} +} + +func (m *ClassAnnotation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClassAnnotation.Unmarshal(m, b) +} +func (m *ClassAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClassAnnotation.Marshal(b, m, deterministic) +} +func (m *ClassAnnotation) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClassAnnotation.Merge(m, src) +} +func (m *ClassAnnotation) XXX_Size() int { + return xxx_messageInfo_ClassAnnotation.Size(m) +} +func (m *ClassAnnotation) XXX_DiscardUnknown() { + xxx_messageInfo_ClassAnnotation.DiscardUnknown(m) +} + +var xxx_messageInfo_ClassAnnotation proto.InternalMessageInfo + +func (m *ClassAnnotation) GetProperties() []*Property { + if m != nil { + return m.Properties + } + return nil +} + +type Property struct { + // Property name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Probability of the property, from 0 to 1. + Probability float64 `protobuf:"fixed64,2,opt,name=probability,proto3" json:"probability,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Property) Reset() { *m = Property{} } +func (m *Property) String() string { return proto.CompactTextString(m) } +func (*Property) ProtoMessage() {} +func (*Property) Descriptor() ([]byte, []int) { + return fileDescriptor_4b6a3b28cb9191ec, []int{1} +} + +func (m *Property) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Property.Unmarshal(m, b) +} +func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Property.Marshal(b, m, deterministic) +} +func (m *Property) XXX_Merge(src proto.Message) { + xxx_messageInfo_Property.Merge(m, src) +} +func (m *Property) XXX_Size() int { + return xxx_messageInfo_Property.Size(m) +} +func (m *Property) XXX_DiscardUnknown() { + xxx_messageInfo_Property.DiscardUnknown(m) +} + +var xxx_messageInfo_Property proto.InternalMessageInfo + +func (m *Property) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Property) GetProbability() float64 { + if m != nil { + return m.Probability + } + return 0 +} + +func init() { + proto.RegisterType((*ClassAnnotation)(nil), "yandex.cloud.ai.vision.v1.ClassAnnotation") + proto.RegisterType((*Property)(nil), "yandex.cloud.ai.vision.v1.Property") +} + +func init() { + proto.RegisterFile("yandex/cloud/ai/vision/v1/classification.proto", fileDescriptor_4b6a3b28cb9191ec) +} + +var fileDescriptor_4b6a3b28cb9191ec = []byte{ + // 225 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x31, 0x4b, 0x04, 0x31, + 0x10, 0x85, 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, 0x79, 0x5d, 0x9d, 0x5c, 0xea, 0xa9, 0x2a, 0x73, + 0x59, 0xb8, 0xc7, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xde, 0xdf, 0xa0, 0x72, 0x54, 0x01, 0x00, + 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/classification.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/classification.pbext.go new file mode 100644 index 000000000..b98326f9b --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/classification.pbext.go @@ -0,0 +1,15 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package vision + +func (m *ClassAnnotation) SetProperties(v []*Property) { + m.Properties = v +} + +func (m *Property) SetName(v string) { + m.Name = v +} + +func (m *Property) SetProbability(v float64) { + m.Probability = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/face_detection.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/face_detection.pb.go new file mode 100644 index 000000000..e24285046 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/face_detection.pb.go @@ -0,0 +1,129 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/ai/vision/v1/face_detection.proto + +package vision + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FaceAnnotation struct { + // An array of detected faces for the specified image. + Faces []*Face `protobuf:"bytes,1,rep,name=faces,proto3" json:"faces,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FaceAnnotation) Reset() { *m = FaceAnnotation{} } +func (m *FaceAnnotation) String() string { return proto.CompactTextString(m) } +func (*FaceAnnotation) ProtoMessage() {} +func (*FaceAnnotation) Descriptor() ([]byte, []int) { + return fileDescriptor_88a95cd8b6371094, []int{0} +} + +func (m *FaceAnnotation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FaceAnnotation.Unmarshal(m, b) +} +func (m *FaceAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FaceAnnotation.Marshal(b, m, deterministic) +} +func (m *FaceAnnotation) XXX_Merge(src proto.Message) { + xxx_messageInfo_FaceAnnotation.Merge(m, src) +} +func (m *FaceAnnotation) XXX_Size() int { + return xxx_messageInfo_FaceAnnotation.Size(m) +} +func (m *FaceAnnotation) XXX_DiscardUnknown() { + xxx_messageInfo_FaceAnnotation.DiscardUnknown(m) +} + +var xxx_messageInfo_FaceAnnotation proto.InternalMessageInfo + +func (m *FaceAnnotation) GetFaces() []*Face { + if m != nil { + return m.Faces + } + return nil +} + +type Face struct { + // Area on the image where the face is located. + BoundingBox *Polygon `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Face) Reset() { *m = Face{} } +func (m *Face) String() string { return proto.CompactTextString(m) } +func (*Face) ProtoMessage() {} +func (*Face) Descriptor() ([]byte, []int) { + return fileDescriptor_88a95cd8b6371094, []int{1} +} + +func (m *Face) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Face.Unmarshal(m, b) +} +func (m *Face) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Face.Marshal(b, m, deterministic) +} +func (m *Face) XXX_Merge(src proto.Message) { + xxx_messageInfo_Face.Merge(m, src) +} +func (m *Face) XXX_Size() int { + return xxx_messageInfo_Face.Size(m) +} +func (m *Face) XXX_DiscardUnknown() { + xxx_messageInfo_Face.DiscardUnknown(m) +} + +var xxx_messageInfo_Face proto.InternalMessageInfo + +func (m *Face) GetBoundingBox() *Polygon { + if m != nil { + return m.BoundingBox + } + return nil +} + +func init() { + proto.RegisterType((*FaceAnnotation)(nil), "yandex.cloud.ai.vision.v1.FaceAnnotation") + proto.RegisterType((*Face)(nil), "yandex.cloud.ai.vision.v1.Face") +} + +func init() { + proto.RegisterFile("yandex/cloud/ai/vision/v1/face_detection.proto", fileDescriptor_88a95cd8b6371094) +} + +var fileDescriptor_88a95cd8b6371094 = []byte{ + // 234 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0x3d, 0x6b, 0xc3, 0x30, + 0x10, 0x40, 0x31, 0xfd, 0x18, 0xe4, 0xd2, 0xc1, 0x53, 0x5a, 0x28, 0x0d, 0x9e, 0x42, 0x21, 0x27, + 0x92, 0xd2, 0xa9, 0x53, 0x43, 0x3f, 0xa6, 0x42, 0xc9, 0xd8, 0x25, 0xc8, 0xf2, 0x55, 0x3d, 0x48, + 0xee, 0x4c, 0x2c, 0x0b, 0xe7, 0xdf, 0x17, 0x59, 0x74, 0xc8, 0xe0, 0x6c, 0x12, 0xbc, 0xf7, 0x8e, + 0x3b, 0x05, 0x07, 0xc3, 0x35, 0xf6, 0xda, 0x6e, 0xa5, 0xab, 0xb5, 0x21, 0x1d, 0xa8, 0x25, 0x61, + 0x1d, 0x16, 0xfa, 0xc7, 0x58, 0xdc, 0xd4, 0xe8, 0xd1, 0x7a, 0x12, 0x86, 0x66, 0x2f, 0x5e, 0x8a, + 0x9b, 0xc4, 0xc3, 0xc0, 0x83, 0x21, 0x48, 0x3c, 0x84, 0xc5, 0xed, 0xc3, 0x78, 0xaa, 0xd9, 0xd3, + 0x8e, 0x3c, 0x05, 0x6c, 0x53, 0xa6, 0xfc, 0x50, 0xd7, 0xef, 0xc6, 0xe2, 0x0b, 0xb3, 0x78, 0x13, + 0xf3, 0xc5, 0x93, 0xba, 0x88, 0x03, 0xdb, 0x49, 0x36, 0x3d, 0x9b, 0xe5, 0xcb, 0x7b, 0x18, 0x1d, + 0x04, 0xd1, 0x5c, 0x27, 0xba, 0xfc, 0x54, 0xe7, 0xf1, 0x5b, 0xbc, 0xa9, 0xab, 0x4a, 0x3a, 0xae, + 0x89, 0xdd, 0xa6, 0x92, 0x7e, 0x92, 0x4d, 0xb3, 0x59, 0xbe, 0x2c, 0x4f, 0x54, 0xbe, 0x64, 0x7b, + 0x70, 0xc2, 0xeb, 0xfc, 0xdf, 0x5b, 0x49, 0xbf, 0x42, 0x75, 0x77, 0x6c, 0x34, 0x74, 0x64, 0x7d, + 0xbf, 0x3a, 0xf2, 0xbf, 0x5d, 0x05, 0x56, 0x76, 0x3a, 0x91, 0xf3, 0xb4, 0xaf, 0x93, 0xb9, 0x43, + 0x1e, 0xb6, 0xd3, 0xa3, 0x87, 0x78, 0x4e, 0xaf, 0xea, 0x72, 0xe0, 0x1e, 0xff, 0x02, 0x00, 0x00, + 0xff, 0xff, 0xf7, 0xd2, 0x42, 0xad, 0x7e, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/face_detection.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/face_detection.pbext.go new file mode 100644 index 000000000..fb4a97306 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/face_detection.pbext.go @@ -0,0 +1,11 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package vision + +func (m *FaceAnnotation) SetFaces(v []*Face) { + m.Faces = v +} + +func (m *Face) SetBoundingBox(v *Polygon) { + m.BoundingBox = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/image_copy_search.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/image_copy_search.pb.go new file mode 100644 index 000000000..ae921bb88 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/image_copy_search.pb.go @@ -0,0 +1,168 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/ai/vision/v1/image_copy_search.proto + +package vision + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ImageCopySearchAnnotation struct { + // Number of image copies + CopyCount int64 `protobuf:"varint,1,opt,name=copy_count,json=copyCount,proto3" json:"copy_count,omitempty"` + // Top relevance result of image copy search + TopResults []*CopyMatch `protobuf:"bytes,2,rep,name=top_results,json=topResults,proto3" json:"top_results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ImageCopySearchAnnotation) Reset() { *m = ImageCopySearchAnnotation{} } +func (m *ImageCopySearchAnnotation) String() string { return proto.CompactTextString(m) } +func (*ImageCopySearchAnnotation) ProtoMessage() {} +func (*ImageCopySearchAnnotation) Descriptor() ([]byte, []int) { + return fileDescriptor_6781c0cf9dfefbb7, []int{0} +} + +func (m *ImageCopySearchAnnotation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ImageCopySearchAnnotation.Unmarshal(m, b) +} +func (m *ImageCopySearchAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ImageCopySearchAnnotation.Marshal(b, m, deterministic) +} +func (m *ImageCopySearchAnnotation) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImageCopySearchAnnotation.Merge(m, src) +} +func (m *ImageCopySearchAnnotation) XXX_Size() int { + return xxx_messageInfo_ImageCopySearchAnnotation.Size(m) +} +func (m *ImageCopySearchAnnotation) XXX_DiscardUnknown() { + xxx_messageInfo_ImageCopySearchAnnotation.DiscardUnknown(m) +} + +var xxx_messageInfo_ImageCopySearchAnnotation proto.InternalMessageInfo + +func (m *ImageCopySearchAnnotation) GetCopyCount() int64 { + if m != nil { + return m.CopyCount + } + return 0 +} + +func (m *ImageCopySearchAnnotation) GetTopResults() []*CopyMatch { + if m != nil { + return m.TopResults + } + return nil +} + +type CopyMatch struct { + //url of image + ImageUrl string `protobuf:"bytes,1,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"` + //url of page that contains image + PageUrl string `protobuf:"bytes,2,opt,name=page_url,json=pageUrl,proto3" json:"page_url,omitempty"` + //page title that contains image + Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` + //image description + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CopyMatch) Reset() { *m = CopyMatch{} } +func (m *CopyMatch) String() string { return proto.CompactTextString(m) } +func (*CopyMatch) ProtoMessage() {} +func (*CopyMatch) Descriptor() ([]byte, []int) { + return fileDescriptor_6781c0cf9dfefbb7, []int{1} +} + +func (m *CopyMatch) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CopyMatch.Unmarshal(m, b) +} +func (m *CopyMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CopyMatch.Marshal(b, m, deterministic) +} +func (m *CopyMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_CopyMatch.Merge(m, src) +} +func (m *CopyMatch) XXX_Size() int { + return xxx_messageInfo_CopyMatch.Size(m) +} +func (m *CopyMatch) XXX_DiscardUnknown() { + xxx_messageInfo_CopyMatch.DiscardUnknown(m) +} + +var xxx_messageInfo_CopyMatch proto.InternalMessageInfo + +func (m *CopyMatch) GetImageUrl() string { + if m != nil { + return m.ImageUrl + } + return "" +} + +func (m *CopyMatch) GetPageUrl() string { + if m != nil { + return m.PageUrl + } + return "" +} + +func (m *CopyMatch) GetTitle() string { + if m != nil { + return m.Title + } + return "" +} + +func (m *CopyMatch) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func init() { + proto.RegisterType((*ImageCopySearchAnnotation)(nil), "yandex.cloud.ai.vision.v1.ImageCopySearchAnnotation") + proto.RegisterType((*CopyMatch)(nil), "yandex.cloud.ai.vision.v1.CopyMatch") +} + +func init() { + proto.RegisterFile("yandex/cloud/ai/vision/v1/image_copy_search.proto", fileDescriptor_6781c0cf9dfefbb7) +} + +var fileDescriptor_6781c0cf9dfefbb7 = []byte{ + // 288 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xb1, 0x4f, 0xf3, 0x30, + 0x10, 0xc5, 0xd5, 0xf6, 0xfb, 0xa0, 0xb9, 0x6c, 0x16, 0x43, 0x22, 0x54, 0x29, 0xaa, 0x18, 0xba, + 0xd4, 0x56, 0x60, 0x64, 0x82, 0xc2, 0xc0, 0xc0, 0x12, 0xc4, 0xc2, 0x12, 0xb9, 0x8e, 0x95, 0x58, + 0x4a, 0x7d, 0x96, 0xe3, 0x44, 0x44, 0x4c, 0xfc, 0xe7, 0x28, 0x36, 0x20, 0x3a, 0x74, 0xb3, 0xdf, + 0xbb, 0x9f, 0xdf, 0xdd, 0x19, 0xf2, 0x91, 0xeb, 0x4a, 0xbe, 0x33, 0xd1, 0x62, 0x5f, 0x31, 0xae, + 0xd8, 0xa0, 0x3a, 0x85, 0x9a, 0x0d, 0x39, 0x53, 0x07, 0x5e, 0xcb, 0x52, 0xa0, 0x19, 0xcb, 0x4e,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 0x00, 0x00, 0xff, 0xff, 0xe3, 0xf6, 0xdf, 0xb9, 0xbe, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/image_copy_search.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/image_copy_search.pbext.go new file mode 100644 index 000000000..89bf11510 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/image_copy_search.pbext.go @@ -0,0 +1,27 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package vision + +func (m *ImageCopySearchAnnotation) SetCopyCount(v int64) { + m.CopyCount = v +} + +func (m *ImageCopySearchAnnotation) SetTopResults(v []*CopyMatch) { + m.TopResults = v +} + +func (m *CopyMatch) SetImageUrl(v string) { + m.ImageUrl = v +} + +func (m *CopyMatch) SetPageUrl(v string) { + m.PageUrl = v +} + +func (m *CopyMatch) SetTitle(v string) { + m.Title = v +} + +func (m *CopyMatch) SetDescription(v string) { + m.Description = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/primitives.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/primitives.pb.go new file mode 100644 index 000000000..de81821ed --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/primitives.pb.go @@ -0,0 +1,136 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/ai/vision/v1/primitives.proto + +package vision + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Polygon struct { + // The bounding polygon vertices. + Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Polygon) Reset() { *m = Polygon{} } +func (m *Polygon) String() string { return proto.CompactTextString(m) } +func (*Polygon) ProtoMessage() {} +func (*Polygon) Descriptor() ([]byte, []int) { + return fileDescriptor_9f9f7b59bd69f434, []int{0} +} + +func (m *Polygon) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Polygon.Unmarshal(m, b) +} +func (m *Polygon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Polygon.Marshal(b, m, deterministic) +} +func (m *Polygon) XXX_Merge(src proto.Message) { + xxx_messageInfo_Polygon.Merge(m, src) +} +func (m *Polygon) XXX_Size() int { + return xxx_messageInfo_Polygon.Size(m) +} +func (m *Polygon) XXX_DiscardUnknown() { + xxx_messageInfo_Polygon.DiscardUnknown(m) +} + +var xxx_messageInfo_Polygon proto.InternalMessageInfo + +func (m *Polygon) GetVertices() []*Vertex { + if m != nil { + return m.Vertices + } + return nil +} + +type Vertex struct { + // X coordinate in pixels. + X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` + // Y coordinate in pixels. + Y int64 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Vertex) Reset() { *m = Vertex{} } +func (m *Vertex) String() string { return proto.CompactTextString(m) } +func (*Vertex) ProtoMessage() {} +func (*Vertex) Descriptor() ([]byte, []int) { + return fileDescriptor_9f9f7b59bd69f434, []int{1} +} + +func (m *Vertex) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Vertex.Unmarshal(m, b) +} +func (m *Vertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Vertex.Marshal(b, m, deterministic) +} +func (m *Vertex) XXX_Merge(src proto.Message) { + xxx_messageInfo_Vertex.Merge(m, src) +} +func (m *Vertex) XXX_Size() int { + return xxx_messageInfo_Vertex.Size(m) +} +func (m *Vertex) XXX_DiscardUnknown() { + xxx_messageInfo_Vertex.DiscardUnknown(m) +} + +var xxx_messageInfo_Vertex proto.InternalMessageInfo + +func (m *Vertex) GetX() int64 { + if m != nil { + return m.X + } + return 0 +} + +func (m *Vertex) GetY() int64 { + if m != nil { + return m.Y + } + return 0 +} + +func init() { + proto.RegisterType((*Polygon)(nil), "yandex.cloud.ai.vision.v1.Polygon") + proto.RegisterType((*Vertex)(nil), "yandex.cloud.ai.vision.v1.Vertex") +} + +func init() { + proto.RegisterFile("yandex/cloud/ai/vision/v1/primitives.proto", fileDescriptor_9f9f7b59bd69f434) +} + +var fileDescriptor_9f9f7b59bd69f434 = []byte{ + // 203 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xaa, 0x4c, 0xcc, 0x4b, + 0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0x4f, 0xcc, 0xd4, 0x2f, 0xcb, 0x2c, 0xce, + 0xcc, 0xcf, 0xd3, 0x2f, 0x33, 0xd4, 0x2f, 0x28, 0xca, 0xcc, 0xcd, 0x2c, 0xc9, 0x2c, 0x4b, 0x2d, + 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x84, 0xa8, 0xd5, 0x03, 0xab, 0xd5, 0x4b, 0xcc, + 0xd4, 0x83, 0xa8, 0xd5, 0x2b, 0x33, 0x54, 0xf2, 0xe0, 0x62, 0x0f, 0xc8, 0xcf, 0xa9, 0x4c, 0xcf, + 0xcf, 0x13, 0xb2, 0xe5, 0xe2, 0x28, 0x4b, 0x2d, 0x2a, 0xc9, 0x4c, 0x4e, 0x2d, 0x96, 0x60, 0x54, + 0x60, 0xd6, 0xe0, 0x36, 0x52, 0xd4, 0xc3, 0xa9, 0x51, 0x2f, 0x2c, 0xb5, 0xa8, 0x24, 0xb5, 0x22, + 0x08, 0xae, 0x45, 0x49, 0x85, 0x8b, 0x0d, 0x22, 0x26, 0xc4, 0xc3, 0xc5, 0x58, 0x21, 0xc1, 0xa8, + 0xc0, 0xa8, 0xc1, 0x1c, 0xc4, 0x08, 0xe6, 0x55, 0x4a, 0x30, 0x41, 0x78, 0x95, 0x4e, 0xa9, 0x5c, + 0xb2, 0xa8, 0x66, 0x16, 0x64, 0xa2, 0x98, 0x1b, 0xe5, 0x92, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, + 0x97, 0x9c, 0x9f, 0xab, 0x0f, 0x51, 0xa9, 0x0b, 0xf1, 0x62, 0x7a, 0xbe, 0x6e, 0x7a, 0x6a, 0x1e, + 0xd8, 0x43, 0xfa, 0x38, 0xfd, 0x6e, 0x0d, 0x61, 0x25, 0xb1, 0x81, 0xd5, 0x19, 0x03, 0x02, 0x00, + 0x00, 0xff, 0xff, 0x4e, 0xdd, 0xc9, 0x53, 0x26, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/primitives.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/primitives.pbext.go new file mode 100644 index 000000000..d029b325a --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/primitives.pbext.go @@ -0,0 +1,15 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package vision + +func (m *Polygon) SetVertices(v []*Vertex) { + m.Vertices = v +} + +func (m *Vertex) SetX(v int64) { + m.X = v +} + +func (m *Vertex) SetY(v int64) { + m.Y = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/text_detection.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/text_detection.pb.go new file mode 100644 index 000000000..a1d42cd85 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/text_detection.pb.go @@ -0,0 +1,460 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/ai/vision/v1/text_detection.proto + +package vision + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type TextAnnotation struct { + // Pages of the recognized file. + // + // For JPEG and PNG files contains only 1 page. + Pages []*Page `protobuf:"bytes,1,rep,name=pages,proto3" json:"pages,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TextAnnotation) Reset() { *m = TextAnnotation{} } +func (m *TextAnnotation) String() string { return proto.CompactTextString(m) } +func (*TextAnnotation) ProtoMessage() {} +func (*TextAnnotation) Descriptor() ([]byte, []int) { + return fileDescriptor_a4d5be2606a8f8f0, []int{0} +} + +func (m *TextAnnotation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TextAnnotation.Unmarshal(m, b) +} +func (m *TextAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TextAnnotation.Marshal(b, m, deterministic) +} +func (m *TextAnnotation) XXX_Merge(src proto.Message) { + xxx_messageInfo_TextAnnotation.Merge(m, src) +} +func (m *TextAnnotation) XXX_Size() int { + return xxx_messageInfo_TextAnnotation.Size(m) +} +func (m *TextAnnotation) XXX_DiscardUnknown() { + xxx_messageInfo_TextAnnotation.DiscardUnknown(m) +} + +var xxx_messageInfo_TextAnnotation proto.InternalMessageInfo + +func (m *TextAnnotation) GetPages() []*Page { + if m != nil { + return m.Pages + } + return nil +} + +type Page struct { + // Page width in pixels. + Width int64 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"` + // Page height in pixels. + Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` + // Recognized text blocks in this page. + Blocks []*Block `protobuf:"bytes,3,rep,name=blocks,proto3" json:"blocks,omitempty"` + // Recognized entities + Entities []*Entity `protobuf:"bytes,4,rep,name=entities,proto3" json:"entities,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Page) Reset() { *m = Page{} } +func (m *Page) String() string { return proto.CompactTextString(m) } +func (*Page) ProtoMessage() {} +func (*Page) Descriptor() ([]byte, []int) { + return fileDescriptor_a4d5be2606a8f8f0, []int{1} +} + +func (m *Page) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Page.Unmarshal(m, b) +} +func (m *Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Page.Marshal(b, m, deterministic) +} +func (m *Page) XXX_Merge(src proto.Message) { + xxx_messageInfo_Page.Merge(m, src) +} +func (m *Page) XXX_Size() int { + return xxx_messageInfo_Page.Size(m) +} +func (m *Page) XXX_DiscardUnknown() { + xxx_messageInfo_Page.DiscardUnknown(m) +} + +var xxx_messageInfo_Page proto.InternalMessageInfo + +func (m *Page) GetWidth() int64 { + if m != nil { + return m.Width + } + return 0 +} + +func (m *Page) GetHeight() int64 { + if m != nil { + return m.Height + } + return 0 +} + +func (m *Page) GetBlocks() []*Block { + if m != nil { + return m.Blocks + } + return nil +} + +func (m *Page) GetEntities() []*Entity { + if m != nil { + return m.Entities + } + return nil +} + +type Entity struct { + // Entity name + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Recognized entity text + Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Entity) Reset() { *m = Entity{} } +func (m *Entity) String() string { return proto.CompactTextString(m) } +func (*Entity) ProtoMessage() {} +func (*Entity) Descriptor() ([]byte, []int) { + return fileDescriptor_a4d5be2606a8f8f0, []int{2} +} + +func (m *Entity) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Entity.Unmarshal(m, b) +} +func (m *Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Entity.Marshal(b, m, deterministic) +} +func (m *Entity) XXX_Merge(src proto.Message) { + xxx_messageInfo_Entity.Merge(m, src) +} +func (m *Entity) XXX_Size() int { + return xxx_messageInfo_Entity.Size(m) +} +func (m *Entity) XXX_DiscardUnknown() { + xxx_messageInfo_Entity.DiscardUnknown(m) +} + +var xxx_messageInfo_Entity proto.InternalMessageInfo + +func (m *Entity) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Entity) GetText() string { + if m != nil { + return m.Text + } + return "" +} + +type Block struct { + // Area on the page where the text block is located. + BoundingBox *Polygon `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"` + // Recognized lines in this block. + Lines []*Line `protobuf:"bytes,2,rep,name=lines,proto3" json:"lines,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Block) Reset() { *m = Block{} } +func (m *Block) String() string { return proto.CompactTextString(m) } +func (*Block) ProtoMessage() {} +func (*Block) Descriptor() ([]byte, []int) { + return fileDescriptor_a4d5be2606a8f8f0, []int{3} +} + +func (m *Block) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Block.Unmarshal(m, b) +} +func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Block.Marshal(b, m, deterministic) +} +func (m *Block) XXX_Merge(src proto.Message) { + xxx_messageInfo_Block.Merge(m, src) +} +func (m *Block) XXX_Size() int { + return xxx_messageInfo_Block.Size(m) +} +func (m *Block) XXX_DiscardUnknown() { + xxx_messageInfo_Block.DiscardUnknown(m) +} + +var xxx_messageInfo_Block proto.InternalMessageInfo + +func (m *Block) GetBoundingBox() *Polygon { + if m != nil { + return m.BoundingBox + } + return nil +} + +func (m *Block) GetLines() []*Line { + if m != nil { + return m.Lines + } + return nil +} + +type Line struct { + // Area on the page where the line is located. + BoundingBox *Polygon `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"` + // Recognized words in this line. + Words []*Word `protobuf:"bytes,2,rep,name=words,proto3" json:"words,omitempty"` + // Confidence of the OCR results for the line. Range [0, 1]. + Confidence float64 `protobuf:"fixed64,3,opt,name=confidence,proto3" json:"confidence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Line) Reset() { *m = Line{} } +func (m *Line) String() string { return proto.CompactTextString(m) } +func (*Line) ProtoMessage() {} +func (*Line) Descriptor() ([]byte, []int) { + return fileDescriptor_a4d5be2606a8f8f0, []int{4} +} + +func (m *Line) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Line.Unmarshal(m, b) +} +func (m *Line) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Line.Marshal(b, m, deterministic) +} +func (m *Line) XXX_Merge(src proto.Message) { + xxx_messageInfo_Line.Merge(m, src) +} +func (m *Line) XXX_Size() int { + return xxx_messageInfo_Line.Size(m) +} +func (m *Line) XXX_DiscardUnknown() { + xxx_messageInfo_Line.DiscardUnknown(m) +} + +var xxx_messageInfo_Line proto.InternalMessageInfo + +func (m *Line) GetBoundingBox() *Polygon { + if m != nil { + return m.BoundingBox + } + return nil +} + +func (m *Line) GetWords() []*Word { + if m != nil { + return m.Words + } + return nil +} + +func (m *Line) GetConfidence() float64 { + if m != nil { + return m.Confidence + } + return 0 +} + +type Word struct { + // Area on the page where the word is located. + BoundingBox *Polygon `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"` + // Recognized word value. + Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` + // Confidence of the OCR results for the word. Range [0, 1]. + Confidence float64 `protobuf:"fixed64,3,opt,name=confidence,proto3" json:"confidence,omitempty"` + // A list of detected languages together with confidence. + Languages []*Word_DetectedLanguage `protobuf:"bytes,4,rep,name=languages,proto3" json:"languages,omitempty"` + // Id of recognized word in entities array + EntityIndex int64 `protobuf:"varint,5,opt,name=entity_index,json=entityIndex,proto3" json:"entity_index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Word) Reset() { *m = Word{} } +func (m *Word) String() string { return proto.CompactTextString(m) } +func (*Word) ProtoMessage() {} +func (*Word) Descriptor() ([]byte, []int) { + return fileDescriptor_a4d5be2606a8f8f0, []int{5} +} + +func (m *Word) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Word.Unmarshal(m, b) +} +func (m *Word) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Word.Marshal(b, m, deterministic) +} +func (m *Word) XXX_Merge(src proto.Message) { + xxx_messageInfo_Word.Merge(m, src) +} +func (m *Word) XXX_Size() int { + return xxx_messageInfo_Word.Size(m) +} +func (m *Word) XXX_DiscardUnknown() { + xxx_messageInfo_Word.DiscardUnknown(m) +} + +var xxx_messageInfo_Word proto.InternalMessageInfo + +func (m *Word) GetBoundingBox() *Polygon { + if m != nil { + return m.BoundingBox + } + return nil +} + +func (m *Word) GetText() string { + if m != nil { + return m.Text + } + return "" +} + +func (m *Word) GetConfidence() float64 { + if m != nil { + return m.Confidence + } + return 0 +} + +func (m *Word) GetLanguages() []*Word_DetectedLanguage { + if m != nil { + return m.Languages + } + return nil +} + +func (m *Word) GetEntityIndex() int64 { + if m != nil { + return m.EntityIndex + } + return 0 +} + +type Word_DetectedLanguage struct { + // Detected language code. + LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` + // Confidence of detected language. Range [0, 1]. + Confidence float64 `protobuf:"fixed64,2,opt,name=confidence,proto3" json:"confidence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Word_DetectedLanguage) Reset() { *m = Word_DetectedLanguage{} } +func (m *Word_DetectedLanguage) String() string { return proto.CompactTextString(m) } +func (*Word_DetectedLanguage) ProtoMessage() {} +func (*Word_DetectedLanguage) Descriptor() ([]byte, []int) { + return fileDescriptor_a4d5be2606a8f8f0, []int{5, 0} +} + +func (m *Word_DetectedLanguage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Word_DetectedLanguage.Unmarshal(m, b) +} +func (m *Word_DetectedLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Word_DetectedLanguage.Marshal(b, m, deterministic) +} +func (m *Word_DetectedLanguage) XXX_Merge(src proto.Message) { + xxx_messageInfo_Word_DetectedLanguage.Merge(m, src) +} +func (m *Word_DetectedLanguage) XXX_Size() int { + return xxx_messageInfo_Word_DetectedLanguage.Size(m) +} +func (m *Word_DetectedLanguage) XXX_DiscardUnknown() { + xxx_messageInfo_Word_DetectedLanguage.DiscardUnknown(m) +} + +var xxx_messageInfo_Word_DetectedLanguage proto.InternalMessageInfo + +func (m *Word_DetectedLanguage) GetLanguageCode() string { + if m != nil { + return m.LanguageCode + } + return "" +} + +func (m *Word_DetectedLanguage) GetConfidence() float64 { + if m != nil { + return m.Confidence + } + return 0 +} + +func init() { + proto.RegisterType((*TextAnnotation)(nil), "yandex.cloud.ai.vision.v1.TextAnnotation") + proto.RegisterType((*Page)(nil), "yandex.cloud.ai.vision.v1.Page") + proto.RegisterType((*Entity)(nil), "yandex.cloud.ai.vision.v1.Entity") + proto.RegisterType((*Block)(nil), "yandex.cloud.ai.vision.v1.Block") + proto.RegisterType((*Line)(nil), "yandex.cloud.ai.vision.v1.Line") + proto.RegisterType((*Word)(nil), "yandex.cloud.ai.vision.v1.Word") + proto.RegisterType((*Word_DetectedLanguage)(nil), "yandex.cloud.ai.vision.v1.Word.DetectedLanguage") +} + +func init() { + proto.RegisterFile("yandex/cloud/ai/vision/v1/text_detection.proto", fileDescriptor_a4d5be2606a8f8f0) +} + +var fileDescriptor_a4d5be2606a8f8f0 = []byte{ + // 489 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xd1, 0x6a, 0x13, 0x41, + 0x14, 0x65, 0x93, 0x4d, 0x30, 0x37, 0x51, 0x64, 0x10, 0x59, 0x0b, 0x6a, 0xba, 0xbe, 0x04, 0xa1, + 0xb3, 0x6d, 0x45, 0x10, 0xc4, 0x07, 0x63, 0x8b, 0x08, 0x45, 0x64, 0x10, 0x0a, 0xbe, 0x84, 0xdd, + 0x9d, 0xeb, 0x66, 0x70, 0x33, 0x37, 0x64, 0x27, 0xe9, 0xe6, 0x03, 0xfc, 0x13, 0x5f, 0xfd, 0x14, + 0xff, 0x49, 0x66, 0x26, 0x51, 0x1b, 0x4c, 0xd2, 0x87, 0xbe, 0xcd, 0x3d, 0x9c, 0x73, 0xe6, 0xdc, + 0xbb, 0x77, 0x07, 0xf8, 0x32, 0xd5, 0x12, 0xeb, 0x24, 0x2f, 0x69, 0x2e, 0x93, 0x54, 0x25, 0x0b, + 0x55, 0x29, 0xd2, 0xc9, 0xe2, 0x24, 0x31, 0x58, 0x9b, 0x91, 0x44, 0x83, 0xb9, 0x51, 0xa4, 0xf9, + 0x74, 0x46, 0x86, 0xd8, 0x23, 0xcf, 0xe7, 0x8e, 0xcf, 0x53, 0xc5, 0x3d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x04, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/text_detection.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/text_detection.pbext.go new file mode 100644 index 000000000..5a9d89564 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/text_detection.pbext.go @@ -0,0 +1,79 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package vision + +func (m *TextAnnotation) SetPages(v []*Page) { + m.Pages = v +} + +func (m *Page) SetWidth(v int64) { + m.Width = v +} + +func (m *Page) SetHeight(v int64) { + m.Height = v +} + +func (m *Page) SetBlocks(v []*Block) { + m.Blocks = v +} + +func (m *Page) SetEntities(v []*Entity) { + m.Entities = v +} + +func (m *Entity) SetName(v string) { + m.Name = v +} + +func (m *Entity) SetText(v string) { + m.Text = v +} + +func (m *Block) SetBoundingBox(v *Polygon) { + m.BoundingBox = v +} + +func (m *Block) SetLines(v []*Line) { + m.Lines = v +} + +func (m *Line) SetBoundingBox(v *Polygon) { + m.BoundingBox = v +} + +func (m *Line) SetWords(v []*Word) { + m.Words = v +} + +func (m *Line) SetConfidence(v float64) { + m.Confidence = v +} + +func (m *Word) SetBoundingBox(v *Polygon) { + m.BoundingBox = v +} + +func (m *Word) SetText(v string) { + m.Text = v +} + +func (m *Word) SetConfidence(v float64) { + m.Confidence = v +} + +func (m *Word) SetLanguages(v []*Word_DetectedLanguage) { + m.Languages = v +} + +func (m *Word) SetEntityIndex(v int64) { + m.EntityIndex = v +} + +func (m *Word_DetectedLanguage) SetLanguageCode(v string) { + m.LanguageCode = v +} + +func (m *Word_DetectedLanguage) SetConfidence(v float64) { + m.Confidence = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/vision_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/vision_service.pb.go new file mode 100644 index 000000000..c445b7404 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/vision_service.pb.go @@ -0,0 +1,775 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/ai/vision/v1/vision_service.proto + +package vision + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "google.golang.org/genproto/googleapis/api/annotations" + status "google.golang.org/genproto/googleapis/rpc/status" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status1 "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Feature_Type int32 + +const ( + Feature_TYPE_UNSPECIFIED Feature_Type = 0 + // Text detection (OCR) feature. + Feature_TEXT_DETECTION Feature_Type = 1 + // Classification feature. + Feature_CLASSIFICATION Feature_Type = 2 + // Face detection feature. + Feature_FACE_DETECTION Feature_Type = 3 + // Image copy search. + Feature_IMAGE_COPY_SEARCH Feature_Type = 4 +) + +var Feature_Type_name = map[int32]string{ + 0: "TYPE_UNSPECIFIED", + 1: "TEXT_DETECTION", + 2: "CLASSIFICATION", + 3: "FACE_DETECTION", + 4: "IMAGE_COPY_SEARCH", +} + +var Feature_Type_value = map[string]int32{ + "TYPE_UNSPECIFIED": 0, + "TEXT_DETECTION": 1, + "CLASSIFICATION": 2, + "FACE_DETECTION": 3, + "IMAGE_COPY_SEARCH": 4, +} + +func (x Feature_Type) String() string { + return proto.EnumName(Feature_Type_name, int32(x)) +} + +func (Feature_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_6d06b6b52fd28cc5, []int{2, 0} +} + +type BatchAnalyzeRequest struct { + // A list of specifications. Each specification contains the file to analyze and features to use for analysis. + // + // Restrictions: + // * Supported file formats: JPEG, PNG. + // * Maximum file size: 1 MB. + // * Image size should not exceed 20M pixels (length x width). + AnalyzeSpecs []*AnalyzeSpec `protobuf:"bytes,1,rep,name=analyze_specs,json=analyzeSpecs,proto3" json:"analyze_specs,omitempty"` + // ID of the folder to which you have access. + // Required for authorization with a user account (see [yandex.cloud.iam.v1.UserAccount] resource). + // Don't specify this field if you make the request on behalf of a service account. + FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchAnalyzeRequest) Reset() { *m = BatchAnalyzeRequest{} } +func (m *BatchAnalyzeRequest) String() string { return proto.CompactTextString(m) } +func (*BatchAnalyzeRequest) ProtoMessage() {} +func (*BatchAnalyzeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_6d06b6b52fd28cc5, []int{0} +} + +func (m *BatchAnalyzeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BatchAnalyzeRequest.Unmarshal(m, b) +} +func (m *BatchAnalyzeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BatchAnalyzeRequest.Marshal(b, m, deterministic) +} +func (m *BatchAnalyzeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchAnalyzeRequest.Merge(m, src) +} +func (m *BatchAnalyzeRequest) XXX_Size() int { + return xxx_messageInfo_BatchAnalyzeRequest.Size(m) +} +func (m *BatchAnalyzeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BatchAnalyzeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_BatchAnalyzeRequest proto.InternalMessageInfo + +func (m *BatchAnalyzeRequest) GetAnalyzeSpecs() []*AnalyzeSpec { + if m != nil { + return m.AnalyzeSpecs + } + return nil +} + +func (m *BatchAnalyzeRequest) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +type AnalyzeSpec struct { + // Types that are valid to be assigned to Source: + // *AnalyzeSpec_Content + // *AnalyzeSpec_Signature + Source isAnalyzeSpec_Source `protobuf_oneof:"source"` + // Requested features to use for analysis. + // + // Max count of requested features for one file is 8. + Features []*Feature `protobuf:"bytes,3,rep,name=features,proto3" json:"features,omitempty"` + // [MIME type](https://en.wikipedia.org/wiki/Media_type) of content (for example, `` application/pdf ``). + MimeType string `protobuf:"bytes,4,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AnalyzeSpec) Reset() { *m = AnalyzeSpec{} } +func (m *AnalyzeSpec) String() string { return proto.CompactTextString(m) } +func (*AnalyzeSpec) ProtoMessage() {} +func (*AnalyzeSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_6d06b6b52fd28cc5, []int{1} +} + +func (m *AnalyzeSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AnalyzeSpec.Unmarshal(m, b) +} +func (m *AnalyzeSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AnalyzeSpec.Marshal(b, m, deterministic) +} +func (m *AnalyzeSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_AnalyzeSpec.Merge(m, src) +} +func (m *AnalyzeSpec) XXX_Size() int { + return xxx_messageInfo_AnalyzeSpec.Size(m) +} +func (m *AnalyzeSpec) XXX_DiscardUnknown() { + xxx_messageInfo_AnalyzeSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_AnalyzeSpec proto.InternalMessageInfo + +type isAnalyzeSpec_Source interface { + isAnalyzeSpec_Source() +} + +type AnalyzeSpec_Content struct { + Content []byte `protobuf:"bytes,1,opt,name=content,proto3,oneof"` +} + +type AnalyzeSpec_Signature struct { + Signature string `protobuf:"bytes,5,opt,name=signature,proto3,oneof"` +} + +func (*AnalyzeSpec_Content) isAnalyzeSpec_Source() {} + +func (*AnalyzeSpec_Signature) isAnalyzeSpec_Source() {} + +func (m *AnalyzeSpec) GetSource() isAnalyzeSpec_Source { + if m != nil { + return m.Source + } + return nil +} + +func (m *AnalyzeSpec) GetContent() []byte { + if x, ok := m.GetSource().(*AnalyzeSpec_Content); ok { + return x.Content + } + return nil +} + +func (m *AnalyzeSpec) GetSignature() string { + if x, ok := m.GetSource().(*AnalyzeSpec_Signature); ok { + return x.Signature + } + return "" +} + +func (m *AnalyzeSpec) GetFeatures() []*Feature { + if m != nil { + return m.Features + } + return nil +} + +func (m *AnalyzeSpec) GetMimeType() string { + if m != nil { + return m.MimeType + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*AnalyzeSpec) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*AnalyzeSpec_Content)(nil), + (*AnalyzeSpec_Signature)(nil), + } +} + +type Feature struct { + // Type of requested feature. + Type Feature_Type `protobuf:"varint,1,opt,name=type,proto3,enum=yandex.cloud.ai.vision.v1.Feature_Type" json:"type,omitempty"` + // Types that are valid to be assigned to Config: + // *Feature_ClassificationConfig + // *Feature_TextDetectionConfig + Config isFeature_Config `protobuf_oneof:"config"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Feature) Reset() { *m = Feature{} } +func (m *Feature) String() string { return proto.CompactTextString(m) } +func (*Feature) ProtoMessage() {} +func (*Feature) Descriptor() ([]byte, []int) { + return fileDescriptor_6d06b6b52fd28cc5, []int{2} +} + +func (m *Feature) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Feature.Unmarshal(m, b) +} +func (m *Feature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Feature.Marshal(b, m, deterministic) +} +func (m *Feature) XXX_Merge(src proto.Message) { + xxx_messageInfo_Feature.Merge(m, src) +} +func (m *Feature) XXX_Size() int { + return xxx_messageInfo_Feature.Size(m) +} +func (m *Feature) XXX_DiscardUnknown() { + xxx_messageInfo_Feature.DiscardUnknown(m) +} + +var xxx_messageInfo_Feature proto.InternalMessageInfo + +func (m *Feature) GetType() Feature_Type { + if m != nil { + return m.Type + } + return Feature_TYPE_UNSPECIFIED +} + +type isFeature_Config interface { + isFeature_Config() +} + +type Feature_ClassificationConfig struct { + ClassificationConfig *FeatureClassificationConfig `protobuf:"bytes,2,opt,name=classification_config,json=classificationConfig,proto3,oneof"` +} + +type Feature_TextDetectionConfig struct { + TextDetectionConfig *FeatureTextDetectionConfig `protobuf:"bytes,3,opt,name=text_detection_config,json=textDetectionConfig,proto3,oneof"` +} + +func (*Feature_ClassificationConfig) isFeature_Config() {} + +func (*Feature_TextDetectionConfig) isFeature_Config() {} + +func (m *Feature) GetConfig() isFeature_Config { + if m != nil { + return m.Config + } + return nil +} + +func (m *Feature) GetClassificationConfig() *FeatureClassificationConfig { + if x, ok := m.GetConfig().(*Feature_ClassificationConfig); ok { + return x.ClassificationConfig + } + return nil +} + +func (m *Feature) GetTextDetectionConfig() *FeatureTextDetectionConfig { + if x, ok := m.GetConfig().(*Feature_TextDetectionConfig); ok { + return x.TextDetectionConfig + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Feature) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Feature_ClassificationConfig)(nil), + (*Feature_TextDetectionConfig)(nil), + } +} + +type FeatureClassificationConfig struct { + // Model to use for image classification. + Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FeatureClassificationConfig) Reset() { *m = FeatureClassificationConfig{} } +func (m *FeatureClassificationConfig) String() string { return proto.CompactTextString(m) } +func (*FeatureClassificationConfig) ProtoMessage() {} +func (*FeatureClassificationConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_6d06b6b52fd28cc5, []int{3} +} + +func (m *FeatureClassificationConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FeatureClassificationConfig.Unmarshal(m, b) +} +func (m *FeatureClassificationConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FeatureClassificationConfig.Marshal(b, m, deterministic) +} +func (m *FeatureClassificationConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeatureClassificationConfig.Merge(m, src) +} +func (m *FeatureClassificationConfig) XXX_Size() int { + return xxx_messageInfo_FeatureClassificationConfig.Size(m) +} +func (m *FeatureClassificationConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FeatureClassificationConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FeatureClassificationConfig proto.InternalMessageInfo + +func (m *FeatureClassificationConfig) GetModel() string { + if m != nil { + return m.Model + } + return "" +} + +type FeatureTextDetectionConfig struct { + // List of the languages to recognize text. + // Specified in [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format (for example, `` ru ``). + LanguageCodes []string `protobuf:"bytes,1,rep,name=language_codes,json=languageCodes,proto3" json:"language_codes,omitempty"` + // Model to use for text detection. + // Possible values: + // * page (default) — this model is suitable for detecting multiple text entries in an image. + // * line — this model is suitable for cropped images with one line of text. + Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FeatureTextDetectionConfig) Reset() { *m = FeatureTextDetectionConfig{} } +func (m *FeatureTextDetectionConfig) String() string { return proto.CompactTextString(m) } +func (*FeatureTextDetectionConfig) ProtoMessage() {} +func (*FeatureTextDetectionConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_6d06b6b52fd28cc5, []int{4} +} + +func (m *FeatureTextDetectionConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FeatureTextDetectionConfig.Unmarshal(m, b) +} +func (m *FeatureTextDetectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FeatureTextDetectionConfig.Marshal(b, m, deterministic) +} +func (m *FeatureTextDetectionConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeatureTextDetectionConfig.Merge(m, src) +} +func (m *FeatureTextDetectionConfig) XXX_Size() int { + return xxx_messageInfo_FeatureTextDetectionConfig.Size(m) +} +func (m *FeatureTextDetectionConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FeatureTextDetectionConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FeatureTextDetectionConfig proto.InternalMessageInfo + +func (m *FeatureTextDetectionConfig) GetLanguageCodes() []string { + if m != nil { + return m.LanguageCodes + } + return nil +} + +func (m *FeatureTextDetectionConfig) GetModel() string { + if m != nil { + return m.Model + } + return "" +} + +type BatchAnalyzeResponse struct { + // Request results. + // Results have the same order as specifications in the request. + Results []*AnalyzeResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchAnalyzeResponse) Reset() { *m = BatchAnalyzeResponse{} } +func (m *BatchAnalyzeResponse) String() string { return proto.CompactTextString(m) } +func (*BatchAnalyzeResponse) ProtoMessage() {} +func (*BatchAnalyzeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_6d06b6b52fd28cc5, []int{5} +} + +func (m *BatchAnalyzeResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BatchAnalyzeResponse.Unmarshal(m, b) +} +func (m *BatchAnalyzeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BatchAnalyzeResponse.Marshal(b, m, deterministic) +} +func (m *BatchAnalyzeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchAnalyzeResponse.Merge(m, src) +} +func (m *BatchAnalyzeResponse) XXX_Size() int { + return xxx_messageInfo_BatchAnalyzeResponse.Size(m) +} +func (m *BatchAnalyzeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BatchAnalyzeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BatchAnalyzeResponse proto.InternalMessageInfo + +func (m *BatchAnalyzeResponse) GetResults() []*AnalyzeResult { + if m != nil { + return m.Results + } + return nil +} + +type AnalyzeResult struct { + // Results for each requested feature. + // Feature results have the same order as in the request. + Results []*FeatureResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` + // Return error in case of error with file processing. + Error *status.Status `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AnalyzeResult) Reset() { *m = AnalyzeResult{} } +func (m *AnalyzeResult) String() string { return proto.CompactTextString(m) } +func (*AnalyzeResult) ProtoMessage() {} +func (*AnalyzeResult) Descriptor() ([]byte, []int) { + return fileDescriptor_6d06b6b52fd28cc5, []int{6} +} + +func (m *AnalyzeResult) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AnalyzeResult.Unmarshal(m, b) +} +func (m *AnalyzeResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AnalyzeResult.Marshal(b, m, deterministic) +} +func (m *AnalyzeResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_AnalyzeResult.Merge(m, src) +} +func (m *AnalyzeResult) XXX_Size() int { + return xxx_messageInfo_AnalyzeResult.Size(m) +} +func (m *AnalyzeResult) XXX_DiscardUnknown() { + xxx_messageInfo_AnalyzeResult.DiscardUnknown(m) +} + +var xxx_messageInfo_AnalyzeResult proto.InternalMessageInfo + +func (m *AnalyzeResult) GetResults() []*FeatureResult { + if m != nil { + return m.Results + } + return nil +} + +func (m *AnalyzeResult) GetError() *status.Status { + if m != nil { + return m.Error + } + return nil +} + +type FeatureResult struct { + // Types that are valid to be assigned to Feature: + // *FeatureResult_TextDetection + // *FeatureResult_Classification + // *FeatureResult_FaceDetection + // *FeatureResult_ImageCopySearch + Feature isFeatureResult_Feature `protobuf_oneof:"feature"` + // Return error in case of error during the specified feature processing. + Error *status.Status `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FeatureResult) Reset() { *m = FeatureResult{} } +func (m *FeatureResult) String() string { return proto.CompactTextString(m) } +func (*FeatureResult) ProtoMessage() {} +func (*FeatureResult) Descriptor() ([]byte, []int) { + return fileDescriptor_6d06b6b52fd28cc5, []int{7} +} + +func (m *FeatureResult) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FeatureResult.Unmarshal(m, b) +} +func (m *FeatureResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FeatureResult.Marshal(b, m, deterministic) +} +func (m *FeatureResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeatureResult.Merge(m, src) +} +func (m *FeatureResult) XXX_Size() int { + return xxx_messageInfo_FeatureResult.Size(m) +} +func (m *FeatureResult) XXX_DiscardUnknown() { + xxx_messageInfo_FeatureResult.DiscardUnknown(m) +} + +var xxx_messageInfo_FeatureResult proto.InternalMessageInfo + +type isFeatureResult_Feature interface { + isFeatureResult_Feature() +} + +type FeatureResult_TextDetection struct { + TextDetection *TextAnnotation `protobuf:"bytes,2,opt,name=text_detection,json=textDetection,proto3,oneof"` +} + +type FeatureResult_Classification struct { + Classification *ClassAnnotation `protobuf:"bytes,3,opt,name=classification,proto3,oneof"` +} + +type FeatureResult_FaceDetection struct { + FaceDetection *FaceAnnotation `protobuf:"bytes,4,opt,name=face_detection,json=faceDetection,proto3,oneof"` +} + +type FeatureResult_ImageCopySearch struct { + ImageCopySearch *ImageCopySearchAnnotation `protobuf:"bytes,5,opt,name=image_copy_search,json=imageCopySearch,proto3,oneof"` +} + +func (*FeatureResult_TextDetection) isFeatureResult_Feature() {} + +func (*FeatureResult_Classification) isFeatureResult_Feature() {} + +func (*FeatureResult_FaceDetection) isFeatureResult_Feature() {} + +func (*FeatureResult_ImageCopySearch) isFeatureResult_Feature() {} + +func (m *FeatureResult) GetFeature() isFeatureResult_Feature { + if m != nil { + return m.Feature + } + return nil +} + +func (m *FeatureResult) GetTextDetection() *TextAnnotation { + if x, ok := m.GetFeature().(*FeatureResult_TextDetection); ok { + return x.TextDetection + } + return nil +} + +func (m *FeatureResult) GetClassification() *ClassAnnotation { + if x, ok := m.GetFeature().(*FeatureResult_Classification); ok { + return x.Classification + } + return nil +} + +func (m *FeatureResult) GetFaceDetection() *FaceAnnotation { + if x, ok := m.GetFeature().(*FeatureResult_FaceDetection); ok { + return x.FaceDetection + } + return nil +} + +func (m *FeatureResult) GetImageCopySearch() *ImageCopySearchAnnotation { + if x, ok := m.GetFeature().(*FeatureResult_ImageCopySearch); ok { + return x.ImageCopySearch + } + return nil +} + +func (m *FeatureResult) GetError() *status.Status { + if m != nil { + return m.Error + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*FeatureResult) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*FeatureResult_TextDetection)(nil), + (*FeatureResult_Classification)(nil), + (*FeatureResult_FaceDetection)(nil), + (*FeatureResult_ImageCopySearch)(nil), + } +} + +func init() { + proto.RegisterEnum("yandex.cloud.ai.vision.v1.Feature_Type", Feature_Type_name, Feature_Type_value) + proto.RegisterType((*BatchAnalyzeRequest)(nil), "yandex.cloud.ai.vision.v1.BatchAnalyzeRequest") + proto.RegisterType((*AnalyzeSpec)(nil), "yandex.cloud.ai.vision.v1.AnalyzeSpec") + proto.RegisterType((*Feature)(nil), "yandex.cloud.ai.vision.v1.Feature") + proto.RegisterType((*FeatureClassificationConfig)(nil), "yandex.cloud.ai.vision.v1.FeatureClassificationConfig") + proto.RegisterType((*FeatureTextDetectionConfig)(nil), "yandex.cloud.ai.vision.v1.FeatureTextDetectionConfig") + proto.RegisterType((*BatchAnalyzeResponse)(nil), "yandex.cloud.ai.vision.v1.BatchAnalyzeResponse") + proto.RegisterType((*AnalyzeResult)(nil), "yandex.cloud.ai.vision.v1.AnalyzeResult") + proto.RegisterType((*FeatureResult)(nil), "yandex.cloud.ai.vision.v1.FeatureResult") +} + +func init() { + proto.RegisterFile("yandex/cloud/ai/vision/v1/vision_service.proto", fileDescriptor_6d06b6b52fd28cc5) +} + +var fileDescriptor_6d06b6b52fd28cc5 = []byte{ + // 941 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x41, 0x6f, 0xe2, 0xc6, + 0x17, 0xc7, 0x81, 0x04, 0x78, 0x04, 0xfe, 0xd9, 0xd9, 0x44, 0xcb, 0x3f, 0xdd, 0x6d, 0x23, 0x4b, + 0xdd, 0xd2, 0x54, 0xb1, 0x63, 0x12, 0xd2, 0xa8, 0x0b, 0x95, 0xb0, 0x03, 0x0b, 0x52, 0xbb, 0x1b, + 0x19, 0x5a, 0x75, 0xf7, 0x62, 0x4d, 0x86, 0x81, 0x58, 0x05, 0xdb, 0xb5, 0x07, 0x14, 0x2a, 0xf5, + 0xb2, 0x47, 0x8e, 0xdd, 0x73, 0x8f, 0xed, 0xe7, 0x68, 0x6f, 0xdc, 0xfb, 0x15, 0x2a, 0xf5, 0x6b, + 0x54, 0x1e, 0x9b, 0x04, 0x27, 0x1b, 0x93, 0xdb, 0xe8, 0xbd, 0xdf, 0xfb, 0xbd, 0xf7, 0x66, 0x7e, + 0x6f, 0x1e, 0x48, 0x53, 0x6c, 0xf5, 0xe8, 0x95, 0x4c, 0x86, 0xf6, 0xb8, 0x27, 0x63, 0x53, 0x9e, + 0x98, 0x9e, 0x69, 0x5b, 0xf2, 0x44, 0x09, 0x4f, 0x86, 0x47, 0xdd, 0x89, 0x49, 0xa8, 0xe4, 0xb8, + 0x36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 0x14, 0x53, 0xe0, 0x07, 0x56, 0xd2, 0xae, 0xfc, 0x60, 0x7c, + 0xa0, 0x77, 0x51, 0x7c, 0xf7, 0xf7, 0x3f, 0xef, 0xd7, 0x9e, 0x8a, 0x4f, 0x96, 0xb6, 0xeb, 0xc5, + 0x12, 0xf0, 0x2b, 0x61, 0x5f, 0xa5, 0xf0, 0x2c, 0xca, 0xea, 0x98, 0x11, 0xe6, 0xb7, 0x67, 0x03, + 0x93, 0x5d, 0x8e, 0x2f, 0x24, 0x62, 0x8f, 0xe4, 0x00, 0x79, 0x10, 0x6c, 0xe0, 0x81, 0x7d, 0x30, + 0xa0, 0x16, 0xdf, 0xa2, 0xf2, 0xbd, 0xdb, 0xfc, 0x45, 0x70, 0xba, 0xd8, 0xe0, 0xb8, 0xa3, 0xff, + 0x02, 0x00, 0x00, 0xff, 0xff, 0x1a, 0xe9, 0xa0, 0xc9, 0xd3, 0x08, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// VisionServiceClient is the client API for VisionService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type VisionServiceClient interface { + // Analyzes a batch of images and returns results with annotations. + BatchAnalyze(ctx context.Context, in *BatchAnalyzeRequest, opts ...grpc.CallOption) (*BatchAnalyzeResponse, error) +} + +type visionServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewVisionServiceClient(cc grpc.ClientConnInterface) VisionServiceClient { + return &visionServiceClient{cc} +} + +func (c *visionServiceClient) BatchAnalyze(ctx context.Context, in *BatchAnalyzeRequest, opts ...grpc.CallOption) (*BatchAnalyzeResponse, error) { + out := new(BatchAnalyzeResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.ai.vision.v1.VisionService/BatchAnalyze", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// VisionServiceServer is the server API for VisionService service. +type VisionServiceServer interface { + // Analyzes a batch of images and returns results with annotations. + BatchAnalyze(context.Context, *BatchAnalyzeRequest) (*BatchAnalyzeResponse, error) +} + +// UnimplementedVisionServiceServer can be embedded to have forward compatible implementations. +type UnimplementedVisionServiceServer struct { +} + +func (*UnimplementedVisionServiceServer) BatchAnalyze(ctx context.Context, req *BatchAnalyzeRequest) (*BatchAnalyzeResponse, error) { + return nil, status1.Errorf(codes.Unimplemented, "method BatchAnalyze not implemented") +} + +func RegisterVisionServiceServer(s *grpc.Server, srv VisionServiceServer) { + s.RegisterService(&_VisionService_serviceDesc, srv) +} + +func _VisionService_BatchAnalyze_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BatchAnalyzeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VisionServiceServer).BatchAnalyze(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.ai.vision.v1.VisionService/BatchAnalyze", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VisionServiceServer).BatchAnalyze(ctx, req.(*BatchAnalyzeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _VisionService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.ai.vision.v1.VisionService", + HandlerType: (*VisionServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "BatchAnalyze", + Handler: _VisionService_BatchAnalyze_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/ai/vision/v1/vision_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/vision_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/vision_service.pbext.go new file mode 100644 index 000000000..83fd4ac24 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1/vision_service.pbext.go @@ -0,0 +1,121 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package vision + +import ( + status "google.golang.org/genproto/googleapis/rpc/status" +) + +func (m *BatchAnalyzeRequest) SetAnalyzeSpecs(v []*AnalyzeSpec) { + m.AnalyzeSpecs = v +} + +func (m *BatchAnalyzeRequest) SetFolderId(v string) { + m.FolderId = v +} + +type AnalyzeSpec_Source = isAnalyzeSpec_Source + +func (m *AnalyzeSpec) SetSource(v AnalyzeSpec_Source) { + m.Source = v +} + +func (m *AnalyzeSpec) SetContent(v []byte) { + m.Source = &AnalyzeSpec_Content{ + Content: v, + } +} + +func (m *AnalyzeSpec) SetSignature(v string) { + m.Source = &AnalyzeSpec_Signature{ + Signature: v, + } +} + +func (m *AnalyzeSpec) SetFeatures(v []*Feature) { + m.Features = v +} + +func (m *AnalyzeSpec) SetMimeType(v string) { + m.MimeType = v +} + +type Feature_Config = isFeature_Config + +func (m *Feature) SetConfig(v Feature_Config) { + m.Config = v +} + +func (m *Feature) SetType(v Feature_Type) { + m.Type = v +} + +func (m *Feature) SetClassificationConfig(v *FeatureClassificationConfig) { + m.Config = &Feature_ClassificationConfig{ + ClassificationConfig: v, + } +} + +func (m *Feature) SetTextDetectionConfig(v *FeatureTextDetectionConfig) { + m.Config = &Feature_TextDetectionConfig{ + TextDetectionConfig: v, + } +} + +func (m *FeatureClassificationConfig) SetModel(v string) { + m.Model = v +} + +func (m *FeatureTextDetectionConfig) SetLanguageCodes(v []string) { + m.LanguageCodes = v +} + +func (m *FeatureTextDetectionConfig) SetModel(v string) { + m.Model = v +} + +func (m *BatchAnalyzeResponse) SetResults(v []*AnalyzeResult) { + m.Results = v +} + +func (m *AnalyzeResult) SetResults(v []*FeatureResult) { + m.Results = v +} + +func (m *AnalyzeResult) SetError(v *status.Status) { + m.Error = v +} + +type FeatureResult_Feature = isFeatureResult_Feature + +func (m *FeatureResult) SetFeature(v FeatureResult_Feature) { + m.Feature = v +} + +func (m *FeatureResult) SetTextDetection(v *TextAnnotation) { + m.Feature = &FeatureResult_TextDetection{ + TextDetection: v, + } +} + +func (m *FeatureResult) SetClassification(v *ClassAnnotation) { + m.Feature = &FeatureResult_Classification{ + Classification: v, + } +} + +func (m *FeatureResult) SetFaceDetection(v *FaceAnnotation) { + m.Feature = &FeatureResult_FaceDetection{ + FaceDetection: v, + } +} + +func (m *FeatureResult) SetImageCopySearch(v *ImageCopySearchAnnotation) { + m.Feature = &FeatureResult_ImageCopySearch{ + ImageCopySearch: v, + } +} + +func (m *FeatureResult) SetError(v *status.Status) { + m.Error = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/api/operation.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/api/operation.pb.go index 27eb65cfc..700293e36 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/api/operation.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/api/operation.pb.go @@ -89,7 +89,9 @@ func init() { proto.RegisterExtension(E_Operation) } -func init() { proto.RegisterFile("yandex/cloud/api/operation.proto", fileDescriptor_6f0479639ad85daa) } +func init() { + proto.RegisterFile("yandex/cloud/api/operation.proto", fileDescriptor_6f0479639ad85daa) +} var fileDescriptor_6f0479639ad85daa = []byte{ // 222 bytes of a gzipped FileDescriptorProto diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/api/operation.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/api/operation.pbext.go new file mode 100644 index 000000000..c78bb06bf --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/api/operation.pbext.go @@ -0,0 +1,11 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package api + +func (m *Operation) SetMetadata(v string) { + m.Metadata = v +} + +func (m *Operation) SetResponse(v string) { + m.Response = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk.pb.go index 0f30c883c..05280e83c 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk.pb.go @@ -78,6 +78,8 @@ type Disk struct { ZoneId string `protobuf:"bytes,8,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"` // Size of the disk, specified in bytes. Size int64 `protobuf:"varint,9,opt,name=size,proto3" json:"size,omitempty"` + // Block size of the disk, specifiedin bytes. + BlockSize int64 `protobuf:"varint,15,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"` // License IDs that indicate which licenses are attached to this resource. // License IDs are used to calculate additional charges for the use of the virtual machine. // @@ -188,6 +190,13 @@ func (m *Disk) GetSize() int64 { return 0 } +func (m *Disk) GetBlockSize() int64 { + if m != nil { + return m.BlockSize + } + return 0 +} + func (m *Disk) GetProductIds() []string { if m != nil { return m.ProductIds @@ -260,42 +269,45 @@ func init() { proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.compute.v1.Disk.LabelsEntry") } -func init() { proto.RegisterFile("yandex/cloud/compute/v1/disk.proto", fileDescriptor_6ed05fced9465d11) } +func init() { + proto.RegisterFile("yandex/cloud/compute/v1/disk.proto", fileDescriptor_6ed05fced9465d11) +} var fileDescriptor_6ed05fced9465d11 = []byte{ - // 533 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0x41, 0x4f, 0xdb, 0x3e, - 0x18, 0xc6, 0x49, 0xd3, 0x86, 0xe6, 0x0d, 0xf0, 0x8f, 0xac, 0xbf, 0x46, 0xc4, 0x0e, 0x64, 0x68, - 0x87, 0xec, 0x40, 0x22, 0xd8, 0x65, 0x6c, 0xbb, 0x14, 0x9a, 0x6d, 0x91, 0x10, 0x9b, 0xdc, 0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, 0xfb, 0xf7, 0x60, - 0x16, 0x1f, 0x07, 0x1f, 0xac, 0x33, 0x0c, 0x8e, 0x99, 0x04, 0xbd, 0x02, 0x34, 0x9b, 0x4f, 0xe6, - 0xf7, 0xb3, 0xc5, 0xfd, 0xdd, 0xec, 0x47, 0x7a, 0x93, 0x7d, 0xc9, 0xd2, 0xa9, 0xbf, 0x87, 0x0e, - 0x60, 0x7c, 0x83, 0xd3, 0xc9, 0x3c, 0xbb, 0xfb, 0xea, 0x5b, 0xc8, 0x85, 0x11, 0x4e, 0x27, 0xd3, - 0x9f, 0xfe, 0x40, 0x95, 0x29, 0xc6, 0xdf, 0xb1, 0x6f, 0x2b, 0x66, 0x9a, 0xde, 0xa6, 0x9a, 0x19, - 0x5e, 0x8f, 0xc1, 0x31, 0x53, 0x5c, 0xa7, 0xbf, 0x6e, 0x4a, 0x26, 0x1f, 0xbb, 0xa5, 0xba, 0xbe, - 0xc4, 0xdc, 0xe7, 0xb9, 0xf9, 0x0f, 0x25, 0x3f, 0x2f, 0x69, 0xad, 0x9f, 0x5c, 0xf2, 0xc2, 0x47, - 0xf9, 0xd4, 0x97, 0x4b, 0x47, 0x63, 0xef, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x9d, 0xe9, 0x4b, - 0xc4, 0x52, 0x03, 0x00, 0x00, + // 557 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0x4d, 0x4f, 0xdc, 0x3c, + 0x14, 0x85, 0xc9, 0x7c, 0x84, 0xc9, 0x0d, 0x1f, 0x23, 0xeb, 0xd5, 0x4b, 0x04, 0xaa, 0x48, 0x51, + 0x17, 0xe9, 0x82, 0x44, 0xd0, 0x4d, 0x69, 0xbb, 0x19, 0x98, 0xb4, 0x8d, 0x84, 0x68, 0xe5, 0x19, + 0x16, 0xed, 0x66, 0xe4, 0x89, 0x4d, 0xb0, 0x26, 0x13, 0x47, 0xb1, 0x83, 0x3a, 0xfc, 0xbb, 0xfe, + 0xb3, 0xca, 0x76, 0x90, 0xe8, 0x82, 0xee, 0xae, 0xcf, 0x79, 0xec, 0x7b, 0x8f, 0x65, 0xc3, 0xc9, + 0x86, 0x54, 0x94, 0xfd, 0x4a, 0xf2, 0x52, 0xb4, 0x34, 0xc9, 0xc5, 0xba, 0x6e, 0x15, 0x4b, 0x1e, + 0xce, 0x12, 0xca, 0xe5, 0x2a, 0xae, 0x1b, 0xa1, 0x04, 0x3a, 0xb0, 0x4c, 0x6c, 0x98, 0xb8, 0x63, + 0xe2, 0x87, 0xb3, 0xc3, 0xe3, 0x42, 0x88, 0xa2, 0x64, 0x89, 0xc1, 0x96, 0xed, 0x5d, 0xa2, 0xf8, + 0x9a, 0x49, 0x45, 0xd6, 0xb5, 0xdd, 0x79, 0xf2, 0x7b, 0x08, 0x83, 0x29, 0x97, 0x2b, 0xb4, 0x07, + 0x3d, 0x4e, 0x03, 0x27, 0x74, 0x22, 0x0f, 0xf7, 0x38, 0x45, 0x47, 0xe0, 0xdd, 0x89, 0x92, 0xb2, + 0x66, 0xc1, 0x69, 0xd0, 0x33, 0xf2, 0xc8, 0x0a, 0x19, 0x45, 0x17, 0x00, 0x79, 0xc3, 0x88, 0x62, + 0x74, 0x41, 0x54, 0xd0, 0x0f, 0x9d, 0xc8, 0x3f, 0x3f, 0x8c, 0x6d, 0xaf, 0xf8, 0xa9, 0x57, 0x3c, + 0x7f, 0xea, 0x85, 0xbd, 0x8e, 0x9e, 0x28, 0x84, 0x60, 0x50, 0x91, 0x35, 0x0b, 0x06, 0xe6, 0x48, + 0x53, 0xa3, 0x10, 0x7c, 0xca, 0x64, 0xde, 0xf0, 0x5a, 0x71, 0x51, 0x05, 0x43, 0x63, 0x3d, 0x97, + 0xd0, 0x04, 0xdc, 0x92, 0x2c, 0x59, 0x29, 0x03, 0x37, 0xec, 0x47, 0xfe, 0xf9, 0xdb, 0xf8, 0x85, + 0xc4, 0xb1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86, 0x0f, 0xa4, 0x6c, 0x59, 0xf7, 0x5c, 0xec, + 0xe2, 0x43, 0xef, 0xbd, 0x73, 0x82, 0xc1, 0xb5, 0x49, 0xd0, 0xff, 0x80, 0x66, 0xf3, 0xc9, 0xfc, + 0x76, 0xb6, 0xb8, 0xbd, 0x99, 0x7d, 0x4f, 0xaf, 0xb2, 0xcf, 0x59, 0x3a, 0x1d, 0x6f, 0xa1, 0x1d, + 0x18, 0x5d, 0xe1, 0x74, 0x32, 0xcf, 0x6e, 0xbe, 0x8c, 0x1d, 0xe4, 0xc1, 0x10, 0xa7, 0x93, 0xe9, + 0x8f, 0x71, 0x4f, 0x97, 0x29, 0xc6, 0xdf, 0xf0, 0xb8, 0xaf, 0x99, 0x69, 0x7a, 0x9d, 0x1a, 0x66, + 0x70, 0x39, 0x02, 0xd7, 0xa6, 0xb8, 0x5c, 0xc2, 0xd1, 0x5f, 0x97, 0x48, 0x6a, 0xfe, 0xec, 0x22, + 0x7f, 0x5e, 0x15, 0x5c, 0xdd, 0xb7, 0x4b, 0x2d, 0x25, 0x96, 0x3b, 0xb5, 0x7f, 0xa9, 0x10, 0xa7, + 0x05, 0xab, 0xcc, 0x73, 0x4d, 0x5e, 0xf8, 0x64, 0x1f, 0xbb, 0x72, 0xe9, 0x1a, 0xec, 0xdd, 0x9f, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x3c, 0xfe, 0x79, 0xb6, 0x8e, 0x03, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk.pbext.go new file mode 100644 index 000000000..0da84bde4 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk.pbext.go @@ -0,0 +1,77 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package compute + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +type Disk_Source = isDisk_Source + +func (m *Disk) SetSource(v Disk_Source) { + m.Source = v +} + +func (m *Disk) SetId(v string) { + m.Id = v +} + +func (m *Disk) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Disk) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Disk) SetName(v string) { + m.Name = v +} + +func (m *Disk) SetDescription(v string) { + m.Description = v +} + +func (m *Disk) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *Disk) SetTypeId(v string) { + m.TypeId = v +} + +func (m *Disk) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *Disk) SetSize(v int64) { + m.Size = v +} + +func (m *Disk) SetBlockSize(v int64) { + m.BlockSize = v +} + +func (m *Disk) SetProductIds(v []string) { + m.ProductIds = v +} + +func (m *Disk) SetStatus(v Disk_Status) { + m.Status = v +} + +func (m *Disk) SetSourceImageId(v string) { + m.Source = &Disk_SourceImageId{ + SourceImageId: v, + } +} + +func (m *Disk) SetSourceSnapshotId(v string) { + m.Source = &Disk_SourceSnapshotId{ + SourceSnapshotId: v, + } +} + +func (m *Disk) SetInstanceIds(v []string) { + m.InstanceIds = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_service.pb.go index e9a15fd48..69803ec97 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_service.pb.go @@ -223,10 +223,12 @@ type CreateDiskRequest struct { // Types that are valid to be assigned to Source: // *CreateDiskRequest_ImageId // *CreateDiskRequest_SnapshotId - Source isCreateDiskRequest_Source `protobuf_oneof:"source"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Source isCreateDiskRequest_Source `protobuf_oneof:"source"` + // Block size used for disk, specified in bytes. The default is 4096. + BlockSize int64 `protobuf:"varint,10,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CreateDiskRequest) Reset() { *m = CreateDiskRequest{} } @@ -340,6 +342,13 @@ func (m *CreateDiskRequest) GetSnapshotId() string { return "" } +func (m *CreateDiskRequest) GetBlockSize() int64 { + if m != nil { + return m.BlockSize + } + return 0 +} + // XXX_OneofWrappers is for the internal use of the proto package. func (*CreateDiskRequest) XXX_OneofWrappers() []interface{} { return []interface{}{ @@ -731,84 +740,88 @@ func init() { } var fileDescriptor_7733692e1b0587d9 = []byte{ - // 1084 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4f, 0x73, 0xdb, 0x54, - 0x10, 0x47, 0xb1, 0xa2, 0xd8, 0x6b, 0x28, 0xc9, 0x83, 0x52, 0x47, 0x90, 0x99, 0x44, 0x4c, 0xd3, - 0xd4, 0x45, 0x92, 0x65, 0x3b, 0xa6, 0x49, 0xdb, 0x61, 0x70, 0x13, 0x8a, 0x67, 0xda, 0x81, 0x51, - 0xe1, 0x42, 0xa6, 0x93, 0x51, 0xac, 0x17, 0x57, 0x63, 0x59, 0x12, 0x7a, 0xb2, 0x27, 0x76, 0xe9, - 0xa5, 0x17, 0x66, 0xc2, 0x81, 0x43, 0x87, 0x23, 0x1f, 0x80, 0xe1, 0x96, 0xe1, 0x3b, 0x38, 0xc3, - 0xb1, 0x1c, 0xf8, 0x02, 0x1c, 0x38, 0xf7, 0xd8, 0x13, 0xf3, 0x9e, 0xe4, 0xff, 0x7f, 0x43, 0xe1, - 0x26, 0x69, 0x7f, 0xbb, 0xfa, 0xed, 0xbe, 0xdf, 0xee, 0x3e, 0x48, 0x37, 0x0d, 0xc7, 0xc4, 0x27, - 0x6a, 0xd9, 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 0x41, 0x92, 0xb2, 0x78, 0x18, 0xde, - 0x37, 0x90, 0x0f, 0xb1, 0x7b, 0x38, 0x40, 0xd7, 0x26, 0xaa, 0x77, 0x70, 0x43, 0x8b, 0xd3, 0xf7, - 0x93, 0xf4, 0xe1, 0xb3, 0x3f, 0xfe, 0x7a, 0xbe, 0xb0, 0x86, 0xde, 0x1f, 0xbe, 0x39, 0x10, 0xf5, - 0x49, 0x54, 0xfb, 0xa7, 0xe8, 0x04, 0x78, 0x5a, 0x0c, 0x74, 0x7d, 0x62, 0xac, 0xe1, 0xe5, 0x2e, - 0xa6, 0xe7, 0x81, 0x86, 0xd5, 0x94, 0x56, 0x19, 0x87, 0x77, 0xd0, 0xca, 0x08, 0x07, 0xf4, 0x9c, - 0x03, 0x21, 0x9c, 0x61, 0x28, 0x3d, 0xff, 0x92, 0x11, 0x67, 0x9f, 0x85, 0xb4, 0x7b, 0xf6, 0x22, - 0x2d, 0x8e, 0x1d, 0x90, 0x3c, 0x7d, 0x63, 0x94, 0xde, 0x93, 0x46, 0x29, 0xed, 0x72, 0x69, 0xf4, - 0x33, 0x07, 0x42, 0xd8, 0x50, 0x53, 0x58, 0x8d, 0x4c, 0x91, 0x79, 0x58, 0xed, 0x85, 0xac, 0xc6, - 0x74, 0x6b, 0x8f, 0xd5, 0x7a, 0x76, 0xda, 0x61, 0x51, 0x7e, 0xbf, 0x72, 0x20, 0x84, 0x5d, 0x38, - 0x85, 0xdf, 0x48, 0x8b, 0xcf, 0xc3, 0x4f, 0x3f, 0x7b, 0x91, 0xbe, 0x31, 0xb6, 0xc5, 0x2f, 0x0f, - 0x8f, 0xfa, 0xfd, 0x9a, 0x17, 0x34, 0x43, 0x75, 0xa5, 0xa7, 0xaa, 0xeb, 0x17, 0x0e, 0x2e, 0x51, - 0x51, 0xf4, 0xfa, 0x0c, 0x65, 0x67, 0xaa, 0x67, 0x64, 0x58, 0x88, 0xb9, 0x0b, 0xf9, 0x44, 0xd2, - 0x53, 0x18, 0xc1, 0x2d, 0xb4, 0x39, 0x85, 0x60, 0xef, 0x96, 0x4c, 0x8a, 0xfb, 0xdf, 0xdc, 0xad, - 0x58, 0xc1, 0xe3, 0xfa, 0x11, 0x8d, 0xaf, 0x86, 0x3f, 0x94, 0xc3, 0xdb, 0x72, 0xc5, 0x95, 0x2b, - 0xd8, 0x61, 0xe9, 0xab, 0x13, 0xae, 0xe4, 0xb7, 0xa2, 0xc7, 0x23, 0x81, 0xc1, 0x72, 0xff, 0x04, - 0x00, 0x00, 0xff, 0xff, 0x53, 0xd3, 0x66, 0xe5, 0x63, 0x0c, 0x00, 0x00, + // 1138 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4f, 0x6f, 0x1b, 0xc5, + 0x1b, 0xfe, 0x6d, 0xed, 0x6c, 0xec, 0xd7, 0x3f, 0xda, 0x66, 0x68, 0x53, 0x67, 0x4b, 0x90, 0xbb, + 0xd0, 0xd4, 0x71, 0xd9, 0xbf, 0x76, 0x9c, 0x3f, 0x6d, 0x05, 0xb8, 0x29, 0xc1, 0x52, 0x2b, 0xd0, + 0x16, 0x2e, 0x84, 0x2a, 0x5a, 0x7b, 0x27, 0xee, 0xca, 0x9b, 0xdd, 0xc5, 0xbb, 0x8e, 0x92, 0x94, + 0x5e, 0x7a, 0x41, 0x0a, 0xc7, 0x0a, 0x71, 0xe2, 0x03, 0x20, 0x6e, 0x11, 0xdf, 0xc1, 0x39, 0x97, + 0x6f, 0x80, 0x38, 0x70, 0xae, 0xc4, 0x25, 0x27, 0x34, 0x33, 0xeb, 0xff, 0xb1, 0xe3, 0x50, 0xb8, + 0xed, 0xec, 0xfb, 0xbc, 0x33, 0xcf, 0x3c, 0xf3, 0xcc, 0xfb, 0x0e, 0xe4, 0xf6, 0x4d, 0xd7, 0xc2, + 0x7b, 0x4a, 0xd5, 0xf1, 0x9a, 0x96, 0x52, 0xf5, 0x76, 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0xbd, 0xca, 0xdd, 0x3e, 0xf5, 0x8a, 0x5f, 0x1d, 0xac, 0xfa, + 0x0f, 0x76, 0xfc, 0x70, 0x9f, 0xb9, 0x2b, 0x37, 0xd6, 0x5d, 0x3f, 0x73, 0x70, 0x91, 0x98, 0xa2, + 0x7b, 0xcf, 0x90, 0x7e, 0xa6, 0x7b, 0x86, 0x8a, 0x85, 0x90, 0x3f, 0x57, 0x4e, 0x64, 0x3d, 0x99, + 0x12, 0xcc, 0xa2, 0x85, 0x31, 0x04, 0xbb, 0x6f, 0xeb, 0xa0, 0x54, 0x81, 0xeb, 0x7d, 0xab, 0x98, + 0xbe, 0xdd, 0xb3, 0xd2, 0x57, 0xf7, 0x6b, 0x76, 0xf8, 0xb4, 0x59, 0x21, 0xbf, 0x14, 0x86, 0x93, + 0xd8, 0x03, 0xbc, 0xe6, 0x49, 0x35, 0xec, 0x52, 0x6d, 0x94, 0x11, 0xaf, 0xfc, 0x3b, 0xd1, 0x67, + 0x85, 0xa7, 0xb0, 0xfc, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x7a, 0xdc, 0x3b, 0x4b, 0xb6, 0x0c, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // DiskServiceClient is the client API for DiskService service. // @@ -839,10 +852,10 @@ type DiskServiceClient interface { } type diskServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewDiskServiceClient(cc *grpc.ClientConn) DiskServiceClient { +func NewDiskServiceClient(cc grpc.ClientConnInterface) DiskServiceClient { return &diskServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_service.pbext.go new file mode 100644 index 000000000..4b6035018 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_service.pbext.go @@ -0,0 +1,146 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package compute + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetDiskRequest) SetDiskId(v string) { + m.DiskId = v +} + +func (m *ListDisksRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListDisksRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListDisksRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListDisksRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListDisksResponse) SetDisks(v []*Disk) { + m.Disks = v +} + +func (m *ListDisksResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +type CreateDiskRequest_Source = isCreateDiskRequest_Source + +func (m *CreateDiskRequest) SetSource(v CreateDiskRequest_Source) { + m.Source = v +} + +func (m *CreateDiskRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateDiskRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateDiskRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateDiskRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateDiskRequest) SetTypeId(v string) { + m.TypeId = v +} + +func (m *CreateDiskRequest) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *CreateDiskRequest) SetSize(v int64) { + m.Size = v +} + +func (m *CreateDiskRequest) SetImageId(v string) { + m.Source = &CreateDiskRequest_ImageId{ + ImageId: v, + } +} + +func (m *CreateDiskRequest) SetSnapshotId(v string) { + m.Source = &CreateDiskRequest_SnapshotId{ + SnapshotId: v, + } +} + +func (m *CreateDiskRequest) SetBlockSize(v int64) { + m.BlockSize = v +} + +func (m *CreateDiskMetadata) SetDiskId(v string) { + m.DiskId = v +} + +func (m *UpdateDiskRequest) SetDiskId(v string) { + m.DiskId = v +} + +func (m *UpdateDiskRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateDiskRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateDiskRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateDiskRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateDiskRequest) SetSize(v int64) { + m.Size = v +} + +func (m *UpdateDiskMetadata) SetDiskId(v string) { + m.DiskId = v +} + +func (m *DeleteDiskRequest) SetDiskId(v string) { + m.DiskId = v +} + +func (m *DeleteDiskMetadata) SetDiskId(v string) { + m.DiskId = v +} + +func (m *ListDiskOperationsRequest) SetDiskId(v string) { + m.DiskId = v +} + +func (m *ListDiskOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListDiskOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListDiskOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListDiskOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_type.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_type.pb.go index 1b9232941..41d73c14a 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_type.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_type.pb.go @@ -87,7 +87,7 @@ func init() { } var fileDescriptor_1766b4de885b3ba4 = []byte{ - // 190 bytes of a gzipped FileDescriptorProto + // 199 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xaf, 0x4c, 0xcc, 0x4b, 0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0x4f, 0xce, 0xcf, 0x2d, 0x28, 0x2d, 0x49, 0xd5, 0x2f, 0x33, 0xd4, 0x4f, 0xc9, 0x2c, 0xce, 0x8e, 0x2f, 0xa9, 0x2c, 0x48, 0xd5, 0x2b, 0x28, @@ -96,8 +96,9 @@ var fileDescriptor_1766b4de885b3ba4 = []byte{ 0xca, 0x4c, 0x91, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x62, 0xca, 0x4c, 0x11, 0x52, 0xe0, 0xe2, 0x4e, 0x49, 0x2d, 0x4e, 0x2e, 0xca, 0x2c, 0x28, 0xc9, 0xcc, 0xcf, 0x93, 0x60, 0x02, 0x4b, 0x20, 0x0b, 0x09, 0x49, 0x72, 0x71, 0x54, 0xe5, 0xe7, 0xa5, 0xc6, 0x67, 0xa6, 0x14, 0x4b, 0x30, 0x2b, - 0x30, 0x6b, 0x70, 0x06, 0xb1, 0x83, 0xf8, 0x9e, 0x29, 0xc5, 0x4e, 0xae, 0x51, 0xce, 0xe9, 0x99, - 0x25, 0x19, 0xa5, 0x49, 0x20, 0xdb, 0xf4, 0x21, 0xd6, 0xeb, 0x42, 0xdc, 0x99, 0x9e, 0xaf, 0x9b, - 0x9e, 0x9a, 0x07, 0x76, 0x98, 0x3e, 0x0e, 0x0f, 0x58, 0x43, 0x99, 0x49, 0x6c, 0x60, 0x65, 0xc6, - 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x42, 0x85, 0x4f, 0x91, 0xea, 0x00, 0x00, 0x00, + 0x30, 0x6b, 0x70, 0x06, 0xb1, 0x83, 0xf8, 0x9e, 0x29, 0xc5, 0x4e, 0x49, 0x5c, 0xd2, 0x28, 0x76, + 0x26, 0x16, 0x64, 0x22, 0xd9, 0x1b, 0xe5, 0x9c, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0x04, 0x12, 0xd2, + 0x87, 0xa8, 0xd3, 0x85, 0x78, 0x22, 0x3d, 0x5f, 0x37, 0x3d, 0x35, 0x0f, 0xec, 0x6a, 0x7d, 0x1c, + 0xbe, 0xb3, 0x86, 0x32, 0x93, 0xd8, 0xc0, 0xca, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x20, + 0xf6, 0x52, 0x89, 0x07, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_type.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_type.pbext.go new file mode 100644 index 000000000..fb3f49bb4 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_type.pbext.go @@ -0,0 +1,15 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package compute + +func (m *DiskType) SetId(v string) { + m.Id = v +} + +func (m *DiskType) SetDescription(v string) { + m.Description = v +} + +func (m *DiskType) SetZoneIds(v []string) { + m.ZoneIds = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_type_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_type_service.pb.go index 3aee6f1b9..4b5b37cb2 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_type_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_type_service.pb.go @@ -185,43 +185,44 @@ func init() { } var fileDescriptor_0433b2f525f69d83 = []byte{ - // 427 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcf, 0xaa, 0xd3, 0x40, - 0x14, 0xc6, 0x49, 0x7b, 0xbd, 0x98, 0xa3, 0x72, 0x61, 0xf0, 0x72, 0x4b, 0xf0, 0xc2, 0x35, 0x48, - 0x5b, 0xd0, 0x66, 0x9a, 0xba, 0xb4, 0x82, 0x54, 0xa5, 0x08, 0x2e, 0x24, 0xed, 0xca, 0x4d, 0x48, - 0x9b, 0x43, 0x1c, 0x5a,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0xff, 0xff, 0xf1, 0x82, 0x37, 0x5b, 0x4d, 0x03, 0x00, 0x00, + // 436 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xcf, 0x8b, 0xd3, 0x40, + 0x14, 0x26, 0xed, 0xba, 0x98, 0xa7, 0xb2, 0x30, 0xb8, 0x6c, 0x89, 0x2e, 0xac, 0x41, 0xba, 0x05, + 0x6d, 0xa6, 0x59, 0x8f, 0xae, 0x20, 0x55, 0x58, 0x04, 0x0f, 0x92, 0xdd, 0x93, 0x97, 0x90, 0x36, + 0x8f, 0x38, 0xb4, 0xce, 0x8c, 0x3b, 0x93, 0xd0, 0x56, 0x3c, 0xf8, 0xe3, 0xe4, 0xd5, 0xbb, 0xff, + 0x4e, 0xbd, 0xfb, 0x2f, 0x78, 0xf0, 0x6f, 0xf0, 0x24, 0x99, 0x24, 0xb5, 0xad, 0x0d, 0xdd, 0xdb, + 0x30, 0xef, 0xfb, 0xbe, 0xf7, 0xcd, 0xfb, 0xe6, 0x01, 0x9d, 0x46, 0x3c, 0xc6, 0x09, 0x1d, 0x8e, + 0x45, 0x1a, 0xd3, 0xa1, 0x78, 0x2b, 0x53, 0x8d, 0x34, 0xf3, 0x69, 0xcc, 0xd4, 0x28, 0xd4, 0x53, + 0x89, 0xa1, 0xc2, 0xcb, 0x8c, 0x0d, 0xd1, 0x93, 0x97, 0x42, 0x0b, 0x72, 0x50, 0x10, 0x3c, 0x43, + 0xf0, 0x4a, 0x82, 0x97, 0xf9, 0xce, 0xdd, 0x44, 0x88, 0x64, 0x8c, 0x34, 0x92, 0x8c, 0x46, 0x9c, + 0x0b, 0x1d, 0x69, 0x26, 0xb8, 0x2a, 0x68, 0xce, 0xf1, 0xd6, 0x3e, 0x25, 0xf0, 0x70, 0x05, 0x98, + 0x45, 0x63, 0x16, 0x1b, 0xa1, 0xa2, 0xec, 0x9e, 0x02, 0x39, 0x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, + 0x5f, 0xce, 0xe7, 0x03, 0xf9, 0x62, 0xc1, 0x4e, 0x3e, 0x1d, 0xd2, 0xad, 0x55, 0xde, 0x14, 0x94, + 0xe3, 0x5d, 0x15, 0x5e, 0xcc, 0xda, 0x3d, 0x34, 0xae, 0x0e, 0xc8, 0xfe, 0x46, 0x57, 0xfd, 0x01, + 0xdc, 0x59, 0xd1, 0x8b, 0x24, 0x5b, 0xd2, 0x7c, 0xfd, 0x2c, 0x61, 0xfa, 0x4d, 0x3a, 0xc8, 0xaf, + 0xca, 0x3d, 0xe9, 0x16, 0xdf, 0x32, 0x11, 0xdd, 0x04, 0xb9, 0xf9, 0x91, 0x75, 0x0b, 0xf4, 0xb8, + 0x3c, 0x0e, 0x76, 0x0d, 0xec, 0xd1, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x68, 0xcb, 0xd9, 0xc1, + 0x6a, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // DiskTypeServiceClient is the client API for DiskTypeService service. // @@ -236,10 +237,10 @@ type DiskTypeServiceClient interface { } type diskTypeServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewDiskTypeServiceClient(cc *grpc.ClientConn) DiskTypeServiceClient { +func NewDiskTypeServiceClient(cc grpc.ClientConnInterface) DiskTypeServiceClient { return &diskTypeServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_type_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_type_service.pbext.go new file mode 100644 index 000000000..0adb02f73 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/disk_type_service.pbext.go @@ -0,0 +1,23 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package compute + +func (m *GetDiskTypeRequest) SetDiskTypeId(v string) { + m.DiskTypeId = v +} + +func (m *ListDiskTypesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListDiskTypesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListDiskTypesResponse) SetDiskTypes(v []*DiskType) { + m.DiskTypes = v +} + +func (m *ListDiskTypesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/image.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/image.pb.go index 6be7ba025..9d8e193b5 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/image.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/image.pb.go @@ -294,40 +294,41 @@ func init() { } var fileDescriptor_c226a196eae12730 = []byte{ - // 555 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xdf, 0x6b, 0x9c, 0x40, - 0x10, 0xc7, 0xab, 0xf7, 0x23, 0x71, 0x4c, 0x83, 0x2c, 0x21, 0x95, 0xe4, 0x21, 0xf6, 0x4a, 0xe1, - 0x68, 0x89, 0x92, 0x6b, 0x1e, 0x9a, 0x96, 0x3e, 0x5c, 0x72, 0xb6, 0x08, 0xe1, 0x2e, 0xec, 0x19, - 0xd2, 0xf4, 0x45, 0xbc, 0xdb, 0x8d, 0x5d, 0xa2, 0xae, 0xb8, 0x6b, 0xa8, 0xf9, 0x7b, 0xfb, 0x87, - 0x14, 0x57, 0x03, 0xa1, 0x70, 0xed, 0xdb, 0xcc, 0xd7, 0xcf, 0xcc, 0x77, 0x67, 0xd7, 0x81, 0x37, - 0x75, 0x9c, 0x13, 0xfa, 0xcb, 0x5b, 0xa7, 0xbc, 0x22, 0xde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xbe, 0x10, 0xe8, 0x14, 0xfa, 0xb2, 0x2e, 0xa8, 0x3a, 0xc6, - 0xee, 0xc4, 0xf9, 0xc7, 0x0c, 0x6e, 0x58, 0x17, 0x14, 0x2b, 0x7a, 0x74, 0x0a, 0xfd, 0x26, 0x43, - 0x7b, 0x60, 0x85, 0xb7, 0x57, 0xfe, 0x5f, 0x67, 0x31, 0x60, 0x70, 0x19, 0xcc, 0xaf, 0xbf, 0x5b, - 0x1a, 0x32, 0x61, 0xeb, 0x26, 0x98, 0xcf, 0x16, 0x37, 0x4b, 0x4b, 0x3f, 0xf7, 0x7f, 0x5c, 0x24, - 0x4c, 0xfe, 0xac, 0x56, 0x4d, 0x63, 0xaf, 0x75, 0x3a, 0x6e, 0x97, 0x28, 0xe1, 0xc7, 0x09, 0xcd, - 0xd5, 0x5f, 0xea, 0x6d, 0xd8, 0xae, 0xcf, 0x5d, 0xb8, 0x1a, 0x2a, 0xec, 0xc3, 0x9f, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xee, 0xdc, 0xf1, 0x6f, 0x87, 0x03, 0x00, 0x00, + // 564 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0x5f, 0x6b, 0xdb, 0x3c, + 0x14, 0xc6, 0x5f, 0x3b, 0x7f, 0x5a, 0x1f, 0xf7, 0x2d, 0x46, 0x94, 0xce, 0xb4, 0x17, 0xf5, 0x32, + 0x06, 0x61, 0xa3, 0x36, 0xcd, 0x7a, 0xb1, 0x6e, 0xec, 0x22, 0x6d, 0xbc, 0x61, 0x28, 0x49, 0x51, + 0x52, 0xba, 0xee, 0x26, 0x28, 0x91, 0xea, 0x89, 0xda, 0x96, 0xb1, 0xe4, 0x32, 0xf7, 0xf3, 0xee, + 0x83, 0x0c, 0xcb, 0x2e, 0x74, 0x83, 0x6c, 0x77, 0xe7, 0x3c, 0xfe, 0x9d, 0xf3, 0xe8, 0x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67, 0xd8, 0xe9, 0xd4, 0xcc, + 0x24, 0xbc, 0x0c, 0x35, 0xd3, 0x1d, 0xe4, 0x60, 0xce, 0x24, 0x3a, 0x85, 0xae, 0xaa, 0x72, 0xa6, + 0x8f, 0xb1, 0x3b, 0xf2, 0xfe, 0x32, 0x83, 0xbf, 0xa8, 0x72, 0x86, 0x35, 0x3d, 0x38, 0x85, 0x6e, + 0x9d, 0xa1, 0x3d, 0x70, 0x16, 0xb7, 0x57, 0xe1, 0x1f, 0x67, 0xb1, 0xa0, 0x77, 0x19, 0x4d, 0xaf, + 0xbf, 0x3a, 0x06, 0xb2, 0x61, 0xeb, 0x26, 0x9a, 0x4e, 0x66, 0x37, 0x73, 0xc7, 0x3c, 0x5f, 0xc1, + 0xe1, 0x6f, 0xed, 0x49, 0xce, 0x9f, 0x59, 0x7c, 0xbb, 0x88, 0xb9, 0xfa, 0x5e, 0xae, 0x6a, 0x29, + 0x68, 0xb8, 0xe3, 0x66, 0xc3, 0x62, 0x71, 0x1c, 0xb3, 0x4c, 0xff, 0xc2, 0xc1, 0x86, 0xd5, 0xfb, + 0xd8, 0x86, 0xab, 0xbe, 0xc6, 0xde, 0xfd, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xea, 0x21, 0x47, 0xea, + 0xa4, 0x03, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/image.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/image.pbext.go new file mode 100644 index 000000000..404c714f0 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/image.pbext.go @@ -0,0 +1,59 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package compute + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Image) SetId(v string) { + m.Id = v +} + +func (m *Image) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Image) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Image) SetName(v string) { + m.Name = v +} + +func (m *Image) SetDescription(v string) { + m.Description = v +} + +func (m *Image) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *Image) SetFamily(v string) { + m.Family = v +} + +func (m *Image) SetStorageSize(v int64) { + m.StorageSize = v +} + +func (m *Image) SetMinDiskSize(v int64) { + m.MinDiskSize = v +} + +func (m *Image) SetProductIds(v []string) { + m.ProductIds = v +} + +func (m *Image) SetStatus(v Image_Status) { + m.Status = v +} + +func (m *Image) SetOs(v *Os) { + m.Os = v +} + +func (m *Os) SetType(v Os_Type) { + m.Type = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/image_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/image_service.pb.go index a76562bea..065dcb4bb 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/image_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/image_service.pb.go @@ -830,92 +830,94 @@ func init() { } var fileDescriptor_9ecf47590268c610 = []byte{ - // 1209 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xbf, 0x6f, 0xdb, 0xd6, - 0x13, 0x0f, 0x2d, 0x89, 0x96, 0x4e, 0xce, 0xaf, 0xf7, 0x4d, 0x10, 0x85, 0x89, 0xbf, 0xb5, 0x69, - 0x24, 0x91, 0xe5, 0x48, 0x22, 0x65, 0x59, 0x8d, 0x9c, 0x18, 0x45, 0x95, 0x38, 0xb6, 0x00, 0x07, - 0x29, 0x98, 0x66, 0xa9, 0x11, 0x08, 0xb4, 0xf8, 0xac, 0x10, 0xa2, 0x48, 0x96, 0x8f, 0x12, 0x22, - 0xbb, 0x59, 0x02, 0x14, 0x28, 0x3c, 0x15, 0x28, 0xd0, 0x76, 0xee, 0x5e, 0x14, 0x30, 0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 0xbe, 0xb7, 0xb6, 0x22, 0x48, 0xd3, 0xd4, 0x5a, 0x56, 0xf8, - 0x2f, 0x19, 0x98, 0xed, 0x38, 0x6f, 0xc9, 0x36, 0x26, 0x76, 0xa9, 0xfd, 0x50, 0x6e, 0xa8, 0x5a, - 0xbb, 0x13, 0x6a, 0x11, 0x62, 0xbb, 0x86, 0xa6, 0x60, 0x6b, 0x50, 0xac, 0xa8, 0x6b, 0x2e, 0x2b, - 0xa8, 0x08, 0xec, 0x2e, 0xf5, 0x4d, 0x4c, 0x51, 0xdc, 0xfc, 0x9b, 0x23, 0x71, 0xf6, 0x8b, 0x6d, - 0x39, 0xbd, 0xf7, 0x6c, 0x3b, 0x2d, 0xa7, 0xf7, 0x84, 0x74, 0xf1, 0xd9, 0xbe, 0x78, 0xbb, 0x20, - 0xbe, 0xdc, 0xf6, 0xde, 0x24, 0xcf, 0x81, 0xff, 0x99, 0x81, 0x8b, 0x5b, 0x2a, 0x71, 0x89, 0x90, - 0x77, 0x38, 0xfb, 0x16, 0xc4, 0x4c, 0xaa, 0x00, 0x75, 0x0f, 0xd3, 0xe3, 0x43, 0x25, 0x78, 0x7b, - 0x24, 0xb2, 0xf7, 0xd6, 0x44, 0x41, 0x10, 0xa4, 0xa8, 0x63, 0x7c, 0xa2, 0xee, 0x61, 0x94, 0x04, - 0xa0, 0x40, 0xdb, 0xa8, 0x63, 0x3d, 0x11, 0xa2, 0x41, 0x63, 0x07, 0xc7, 0x62, 0x84, 0x22, 0x25, - 0x1a, 0xe5, 0x53, 0xc7, 0x86, 0x78, 0x60, 0x77, 0x55, 0xcd, 0xc6, 0x56, 0x22, 0x4c, 0x51, 0x70, - 0x70, 0xdc, 0x8d, 0xe7, 0x59, 0x78, 0x1b, 0x90, 0x9f, 0x36, 0x31, 0x0d, 0x9d, 0x60, 0x54, 0x00, - 0x96, 0x26, 0x98, 0x24, 0x98, 0xb9, 0x50, 0x32, 0x9e, 0xfb, 0x7f, 0x66, 0x80, 0x12, 0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7, 0xb2, 0x5b, 0x84, 0xb8, 0x69, 0x19, 0x4a, 0xb3, 0x6a, 0x57, 0x54, 0x85, - 0x24, 0xa6, 0xe7, 0x42, 0xc9, 0x58, 0x29, 0xda, 0xad, 0x0c, 0x78, 0xc6, 0xb2, 0x42, 0xd0, 0x0d, - 0x5f, 0xf3, 0x46, 0x29, 0xcd, 0x2e, 0x6e, 0xf3, 0x4c, 0xb7, 0x75, 0xd1, 0x02, 0x4c, 0x53, 0x32, - 0xaa, 0x92, 0x88, 0x05, 0x50, 0xac, 0x63, 0x2a, 0x2b, 0x4e, 0xc1, 0x88, 0x2e, 0x9b, 0xe4, 0xb9, - 0xe1, 0x9c, 0x9b, 0x80, 0x00, 0x10, 0x3a, 0xe6, 0xb2, 0x82, 0x10, 0x84, 0x9a, 0x96, 0x9a, 0x88, - 0x3b, 0xa0, 0xcd, 0x33, 0x92, 0xf3, 0x82, 0x96, 0x60, 0xca, 0x20, 0x89, 0x99, 0x39, 0x26, 0x19, - 0xcf, 0x5d, 0x1b, 0x58, 0xbf, 0xc7, 0x44, 0x9a, 0x32, 0x08, 0x57, 0x84, 0xb8, 0xaf, 0x6c, 0xe8, - 0x02, 0x84, 0xea, 0xb8, 0xed, 0x2a, 0x51, 0x72, 0x1e, 0xd1, 0x25, 0x88, 0xb4, 0x64, 0xad, 0xe9, - 0xe9, 0x4e, 0x72, 0x5f, 0x56, 0xa7, 0xee, 0x30, 0xa5, 0x73, 0xc0, 0x12, 0xa3, 0x69, 0x55, 0x31, - 0x0a, 0xff, 0xfa, 0x9b, 0xc8, 0xf0, 0x02, 0xfc, 0xcf, 0x27, 0x8a, 0x47, 0xd8, 0x96, 0x15, 0xd9, - 0x96, 0xd1, 0xd5, 0xd3, 0x83, 0xed, 0x64, 0x94, 0xfd, 0x1d, 0x02, 0xf4, 0xd4, 0x54, 0x4e, 0x37, - 0xc5, 0xb8, 0xa3, 0x10, 0xdd, 0x85, 0x78, 0x93, 0xba, 0xd3, 0x49, 0x4f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d2, 0x35, 0xac, 0xd3, 0x24, 0x64, - 0x07, 0xfc, 0x1f, 0xbb, 0xeb, 0x3d, 0xee, 0xb0, 0x14, 0xb6, 0xfc, 0x4f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x60, 0x0e, 0x7d, 0x37, 0x61, 0x0e, 0x00, 0x00, + // 1236 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xdf, 0x6f, 0xdb, 0x54, + 0x14, 0x9e, 0x9b, 0xc4, 0x4b, 0x4e, 0xb6, 0x95, 0x5d, 0x3a, 0x96, 0xa5, 0x2b, 0xa4, 0x2e, 0xdb, + 0xd2, 0x74, 0x49, 0xec, 0x34, 0x0d, 0x4d, 0xb7, 0x0a, 0xc8, 0x7e, 0xb4, 0x91, 0x3a, 0x0d, 0x79, + 0xec, 0x85, 0x32, 0x45, 0x6e, 0x7c, 0x9b, 0x59, 0x71, 0x6c, 0x93, 0xeb, 0x44, 0x4b, 0xcb, 0x5e, + 0x26, 0x21, 0xa1, 0xbe, 0x22, 0xc1, 0x9e, 0x79, 0x47, 0x48, 0x95, 0x78, 0x44, 0x82, 0xa7, 0xf4, + 0x79, 0xfc, 0x0b, 0x3c, 0x20, 0xf1, 0xd6, 0x07, 0x1e, 0xf6, 0x84, 0x7c, 0xed, 0xa4, 0x4e, 0x9d, + 0x9f, 0x1b, 0xbc, 0xf9, 0xfa, 0x7c, 0xe7, 0xdc, 0xcf, 0xf7, 0x7c, 0xe7, 0x9c, 0x6b, 0x58, 0x6a, + 0x49, 0x9a, 0x8c, 0x9f, 0xa5, 0xcb, 0xaa, 0xde, 0x90, 0xd3, 0x65, 0xbd, 0x66, 0x34, 0x4c, 0x9c, + 0x6e, 0x0a, 0x69, 0xa5, 0x26, 0x55, 0x70, 0x89, 0xe0, 0x7a, 0x53, 0x29, 0xe3, 0x94, 0x51, 0xd7, + 0x4d, 0x1d, 0x5d, 0xb6, 0xc1, 0x29, 0x0a, 0x4e, 0x39, 0xe0, 0x54, 0x53, 0x88, 0x5e, 0xad, 0xe8, + 0x7a, 0x45, 0xc5, 0x69, 0xc9, 0x50, 0xd2, 0x92, 0xa6, 0xe9, 0xa6, 0x64, 0x2a, 0xba, 0x46, 0x6c, + 0xb7, 0x68, 0xcc, 0xb1, 0xd2, 0xd5, 0x4e, 0x63, 0x37, 0xbd, 0xab, 0x60, 0x55, 0x2e, 0xd5, 0x24, + 0x52, 0xed, 0x20, 0x7a, 0x58, 0x58, 0x51, 0x74, 0x03, 0xd7, 0x69, 0x10, 0x07, 0xb1, 0x30, 0x94, + 0xa7, 0x03, 0xba, 0xde, 0x03, 0xea, 0x86, 0xf0, 0x04, 0x9b, 0xeb, 0xc1, 0x35, 0x25, 0x55, 0x91, + 0x5d, 0x66, 0x6e, 0x0d, 0xa6, 0x37, 0xb0, 0x59, 0xb4, 0x02, 0x8b, 0xf8, 0xab, 0x06, 0x26, 0x26, + 0xba, 0x01, 0x41, 0xfb, 0x40, 0x14, 0x39, 0xc2, 0xc4, 0x98, 0x78, 0xa8, 0x70, 0xee, 0xaf, 0xb6, + 0xc0, 0x1c, 0x1c, 0x09, 0xfe, 0xdb, 0xeb, 0x2b, 0xbc, 0x78, 0x96, 0x5a, 0x8b, 0x32, 0xf7, 0x0d, + 0x03, 0x73, 0x1d, 0xe7, 0x2d, 0xc9, 0xc4, 0xc4, 0x2c, 0xb4, 0xee, 0x4b, 0x35, 0x45, 0x6d, 0x75, + 0x42, 0x2d, 0x42, 0x68, 0x57, 0x57, 0x65, 0x5c, 0x1f, 0x14, 0x2b, 0x68, 0x9b, 0x8b, 0x32, 0xca, + 0x03, 0xbb, 0x4b, 0x7d, 0x23, 0x53, 0x14, 0x37, 0x7f, 0xdc, 0x16, 0xe6, 0xbe, 0xde, 0x96, 0x92, + 0x7b, 0x4f, 0xb6, 0x93, 0x52, 0x72, 0x8f, 0x4f, 0xe6, 0x9f, 0xec, 0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x69, 0x82, 0x89, 0x1e, 0x1d, 0xad, 0x16, 0x6e, 0xfd, 0xf0, 0x55, 0xe2, 0x6a, 0xff, + 0x8e, 0x1f, 0xa0, 0x4b, 0x4a, 0xeb, 0x32, 0xd7, 0x87, 0xd6, 0x1a, 0x93, 0x40, 0x3f, 0x32, 0xc0, + 0xda, 0x2d, 0x60, 0x08, 0x33, 0x6f, 0x47, 0x1b, 0x87, 0xd9, 0xa6, 0xcd, 0xac, 0x5f, 0x83, 0x71, + 0x31, 0xe3, 0x32, 0xc3, 0x15, 0x65, 0x91, 0xfc, 0x99, 0x01, 0xd6, 0x6e, 0x1b, 0x43, 0x48, 0x7a, + 0xdb, 0xd2, 0x38, 0x24, 0x1f, 0x1f, 0xbe, 0x4a, 0xdc, 0xec, 0xdf, 0x94, 0x2e, 0x9d, 0x9e, 0x5f, + 0xf7, 0x6a, 0x86, 0xd9, 0xb2, 0xcb, 0x20, 0x31, 0xa2, 0x0c, 0x7e, 0x62, 0xe0, 0x82, 0xa5, 0x91, + 0x93, 0xae, 0x80, 0x96, 0x47, 0x8b, 0xc9, 0xd3, 0xde, 0xa2, 0xd9, 0xc9, 0x9c, 0x1c, 0x29, 0xf2, + 0x94, 0x64, 0x02, 0xc5, 0x87, 0x92, 0x3c, 0xf9, 0x6f, 0x22, 0x85, 0x1d, 0x98, 0xed, 0xd9, 0x48, + 0x32, 0x14, 0xd7, 0x66, 0x5f, 0xdc, 0xa9, 0x28, 0xe6, 0xd3, 0xc6, 0x8e, 0xf5, 0x2a, 0x6d, 0xe3, + 0x92, 0xf6, 0xcf, 0x55, 0x45, 0x4f, 0x56, 0xb0, 0x46, 0x4f, 0x28, 0x3d, 0xe0, 0x17, 0xee, 0x96, + 0xf3, 0xb8, 0xc3, 0x52, 0xd8, 0xf2, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x50, 0x5d, 0xc9, 0x5e, + 0x94, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // ImageServiceClient is the client API for ImageService service. // @@ -945,10 +947,10 @@ type ImageServiceClient interface { } type imageServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewImageServiceClient(cc *grpc.ClientConn) ImageServiceClient { +func NewImageServiceClient(cc grpc.ClientConnInterface) ImageServiceClient { return &imageServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/image_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/image_service.pbext.go new file mode 100644 index 000000000..b6dde8f9c --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/image_service.pbext.go @@ -0,0 +1,166 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package compute + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetImageRequest) SetImageId(v string) { + m.ImageId = v +} + +func (m *GetImageLatestByFamilyRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *GetImageLatestByFamilyRequest) SetFamily(v string) { + m.Family = v +} + +func (m *ListImagesRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListImagesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListImagesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListImagesRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListImagesResponse) SetImages(v []*Image) { + m.Images = v +} + +func (m *ListImagesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +type CreateImageRequest_Source = isCreateImageRequest_Source + +func (m *CreateImageRequest) SetSource(v CreateImageRequest_Source) { + m.Source = v +} + +func (m *CreateImageRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateImageRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateImageRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateImageRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateImageRequest) SetFamily(v string) { + m.Family = v +} + +func (m *CreateImageRequest) SetMinDiskSize(v int64) { + m.MinDiskSize = v +} + +func (m *CreateImageRequest) SetProductIds(v []string) { + m.ProductIds = v +} + +func (m *CreateImageRequest) SetImageId(v string) { + m.Source = &CreateImageRequest_ImageId{ + ImageId: v, + } +} + +func (m *CreateImageRequest) SetDiskId(v string) { + m.Source = &CreateImageRequest_DiskId{ + DiskId: v, + } +} + +func (m *CreateImageRequest) SetSnapshotId(v string) { + m.Source = &CreateImageRequest_SnapshotId{ + SnapshotId: v, + } +} + +func (m *CreateImageRequest) SetUri(v string) { + m.Source = &CreateImageRequest_Uri{ + Uri: v, + } +} + +func (m *CreateImageRequest) SetOs(v *Os) { + m.Os = v +} + +func (m *CreateImageMetadata) SetImageId(v string) { + m.ImageId = v +} + +func (m *UpdateImageRequest) SetImageId(v string) { + m.ImageId = v +} + +func (m *UpdateImageRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateImageRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateImageRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateImageRequest) SetMinDiskSize(v int64) { + m.MinDiskSize = v +} + +func (m *UpdateImageRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateImageMetadata) SetImageId(v string) { + m.ImageId = v +} + +func (m *DeleteImageRequest) SetImageId(v string) { + m.ImageId = v +} + +func (m *DeleteImageMetadata) SetImageId(v string) { + m.ImageId = v +} + +func (m *ListImageOperationsRequest) SetImageId(v string) { + m.ImageId = v +} + +func (m *ListImageOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListImageOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListImageOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListImageOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instance.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instance.pb.go index ec399dba1..34b4d5e2a 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instance.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instance.pb.go @@ -143,6 +143,40 @@ func (AttachedDisk_Mode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_212f781fc401ff8e, []int{2, 0} } +type NetworkSettings_Type int32 + +const ( + NetworkSettings_TYPE_UNSPECIFIED NetworkSettings_Type = 0 + // Standard network. + NetworkSettings_STANDARD NetworkSettings_Type = 1 + // Software accelerated network. + NetworkSettings_SOFTWARE_ACCELERATED NetworkSettings_Type = 2 + // Hardware accelerated network (not available yet, reserved for future use). + NetworkSettings_HARDWARE_ACCELERATED NetworkSettings_Type = 3 +) + +var NetworkSettings_Type_name = map[int32]string{ + 0: "TYPE_UNSPECIFIED", + 1: "STANDARD", + 2: "SOFTWARE_ACCELERATED", + 3: "HARDWARE_ACCELERATED", +} + +var NetworkSettings_Type_value = map[string]int32{ + "TYPE_UNSPECIFIED": 0, + "STANDARD": 1, + "SOFTWARE_ACCELERATED": 2, + "HARDWARE_ACCELERATED": 3, +} + +func (x NetworkSettings_Type) String() string { + return proto.EnumName(NetworkSettings_Type_name, int32(x)) +} + +func (NetworkSettings_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_212f781fc401ff8e, []int{7, 0} +} + // An Instance resource. For more information, see [Instances](/docs/compute/concepts/vm). type Instance struct { // ID of the instance. @@ -183,10 +217,14 @@ type Instance struct { SchedulingPolicy *SchedulingPolicy `protobuf:"bytes,17,opt,name=scheduling_policy,json=schedulingPolicy,proto3" json:"scheduling_policy,omitempty"` // ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm). // To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request. - ServiceAccountId string `protobuf:"bytes,18,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ServiceAccountId string `protobuf:"bytes,18,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + // Network Settings + NetworkSettings *NetworkSettings `protobuf:"bytes,19,opt,name=network_settings,json=networkSettings,proto3" json:"network_settings,omitempty"` + // Placement policy configuration. + PlacementPolicy *PlacementPolicy `protobuf:"bytes,20,opt,name=placement_policy,json=placementPolicy,proto3" json:"placement_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Instance) Reset() { *m = Instance{} } @@ -333,6 +371,20 @@ func (m *Instance) GetServiceAccountId() string { return "" } +func (m *Instance) GetNetworkSettings() *NetworkSettings { + if m != nil { + return m.NetworkSettings + } + return nil +} + +func (m *Instance) GetPlacementPolicy() *PlacementPolicy { + if m != nil { + return m.PlacementPolicy + } + return nil +} + type Resources struct { // The amount of memory available to the instance, specified in bytes. Memory int64 `protobuf:"varint,1,opt,name=memory,proto3" json:"memory,omitempty"` @@ -482,10 +534,12 @@ type NetworkInterface struct { // Primary IPv4 address that is assigned to the instance for this network interface. PrimaryV4Address *PrimaryAddress `protobuf:"bytes,4,opt,name=primary_v4_address,json=primaryV4Address,proto3" json:"primary_v4_address,omitempty"` // Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet. - PrimaryV6Address *PrimaryAddress `protobuf:"bytes,5,opt,name=primary_v6_address,json=primaryV6Address,proto3" json:"primary_v6_address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PrimaryV6Address *PrimaryAddress `protobuf:"bytes,5,opt,name=primary_v6_address,json=primaryV6Address,proto3" json:"primary_v6_address,omitempty"` + // ID's of security groups attached to the interface + SecurityGroupIds []string `protobuf:"bytes,6,rep,name=security_group_ids,json=securityGroupIds,proto3" json:"security_group_ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *NetworkInterface) Reset() { *m = NetworkInterface{} } @@ -548,6 +602,13 @@ func (m *NetworkInterface) GetPrimaryV6Address() *PrimaryAddress { return nil } +func (m *NetworkInterface) GetSecurityGroupIds() []string { + if m != nil { + return m.SecurityGroupIds + } + return nil +} + type PrimaryAddress struct { // An IPv4 internal network address that is assigned to the instance for this network interface. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` @@ -686,10 +747,91 @@ func (m *SchedulingPolicy) GetPreemptible() bool { return false } +type NetworkSettings struct { + // Network Type + Type NetworkSettings_Type `protobuf:"varint,1,opt,name=type,proto3,enum=yandex.cloud.compute.v1.NetworkSettings_Type" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkSettings) Reset() { *m = NetworkSettings{} } +func (m *NetworkSettings) String() string { return proto.CompactTextString(m) } +func (*NetworkSettings) ProtoMessage() {} +func (*NetworkSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_212f781fc401ff8e, []int{7} +} + +func (m *NetworkSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NetworkSettings.Unmarshal(m, b) +} +func (m *NetworkSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NetworkSettings.Marshal(b, m, deterministic) +} +func (m *NetworkSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkSettings.Merge(m, src) +} +func (m *NetworkSettings) XXX_Size() int { + return xxx_messageInfo_NetworkSettings.Size(m) +} +func (m *NetworkSettings) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkSettings.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkSettings proto.InternalMessageInfo + +func (m *NetworkSettings) GetType() NetworkSettings_Type { + if m != nil { + return m.Type + } + return NetworkSettings_TYPE_UNSPECIFIED +} + +type PlacementPolicy struct { + // Placement group ID. + PlacementGroupId string `protobuf:"bytes,1,opt,name=placement_group_id,json=placementGroupId,proto3" json:"placement_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PlacementPolicy) Reset() { *m = PlacementPolicy{} } +func (m *PlacementPolicy) String() string { return proto.CompactTextString(m) } +func (*PlacementPolicy) ProtoMessage() {} +func (*PlacementPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_212f781fc401ff8e, []int{8} +} + +func (m *PlacementPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PlacementPolicy.Unmarshal(m, b) +} +func (m *PlacementPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PlacementPolicy.Marshal(b, m, deterministic) +} +func (m *PlacementPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlacementPolicy.Merge(m, src) +} +func (m *PlacementPolicy) XXX_Size() int { + return xxx_messageInfo_PlacementPolicy.Size(m) +} +func (m *PlacementPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_PlacementPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_PlacementPolicy proto.InternalMessageInfo + +func (m *PlacementPolicy) GetPlacementGroupId() string { + if m != nil { + return m.PlacementGroupId + } + return "" +} + func init() { proto.RegisterEnum("yandex.cloud.compute.v1.IpVersion", IpVersion_name, IpVersion_value) proto.RegisterEnum("yandex.cloud.compute.v1.Instance_Status", Instance_Status_name, Instance_Status_value) proto.RegisterEnum("yandex.cloud.compute.v1.AttachedDisk_Mode", AttachedDisk_Mode_name, AttachedDisk_Mode_value) + proto.RegisterEnum("yandex.cloud.compute.v1.NetworkSettings_Type", NetworkSettings_Type_name, NetworkSettings_Type_value) proto.RegisterType((*Instance)(nil), "yandex.cloud.compute.v1.Instance") proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.compute.v1.Instance.LabelsEntry") proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.compute.v1.Instance.MetadataEntry") @@ -699,6 +841,8 @@ func init() { proto.RegisterType((*PrimaryAddress)(nil), "yandex.cloud.compute.v1.PrimaryAddress") proto.RegisterType((*OneToOneNat)(nil), "yandex.cloud.compute.v1.OneToOneNat") proto.RegisterType((*SchedulingPolicy)(nil), "yandex.cloud.compute.v1.SchedulingPolicy") + proto.RegisterType((*NetworkSettings)(nil), "yandex.cloud.compute.v1.NetworkSettings") + proto.RegisterType((*PlacementPolicy)(nil), "yandex.cloud.compute.v1.PlacementPolicy") } func init() { @@ -706,74 +850,85 @@ func init() { } var fileDescriptor_212f781fc401ff8e = []byte{ - // 1089 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xeb, 0x6e, 0xe3, 0x44, - 0x14, 0x26, 0x97, 0xa6, 0xf1, 0x49, 0x1b, 0xdc, 0xd1, 0xaa, 0x6b, 0x95, 0x1f, 0xad, 0xc2, 0xad, - 0xac, 0x68, 0xa2, 0x2d, 0x55, 0xc5, 0x52, 0x09, 0x6d, 0xb6, 0xf1, 0x82, 0x45, 0x9b, 0x44, 0x93, - 0x34, 0x5c, 0xfe, 0x58, 0x13, 0xcf, 0x24, 0x6b, 0x1a, 0x7b, 0x8c, 0x67, 0x1c, 0x28, 0xcf, 0xc1, - 0x4b, 0x20, 0xf1, 0x5c, 0x3c, 0x07, 0x9a, 0x19, 0x3b, 0x9b, 0x8d, 0x14, 0x76, 0xe1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 0x80, 0xbd, - 0xb9, 0xd1, 0xd4, 0x6b, 0x9c, 0xa4, 0x8c, 0x45, 0x89, 0x0c, 0xa7, 0x0b, 0x43, 0xf6, 0x3a, 0x5e, - 0x37, 0x3d, 0xb9, 0x02, 0x6b, 0x85, 0x86, 0x8e, 0xe0, 0xd0, 0x1b, 0xfa, 0x13, 0x17, 0xab, 0x35, - 0xb1, 0xc1, 0xbb, 0x3a, 0x54, 0xbd, 0xe1, 0xe4, 0xc2, 0x2e, 0xe5, 0xd2, 0xa5, 0x5d, 0x7e, 0xe1, - 0xfe, 0x74, 0x3d, 0x0f, 0xe5, 0xab, 0x6c, 0xaa, 0x0e, 0xd7, 0x31, 0xa7, 0x3d, 0x33, 0x7f, 0x72, - 0xe6, 0xfc, 0x6c, 0xce, 0x62, 0xfd, 0xff, 0xa1, 0xb3, 0xe5, 0xdf, 0xcf, 0x55, 0x2e, 0x4e, 0x6b, - 0x3a, 0xec, 0x8b, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x58, 0x39, 0xd8, 0x4c, 0x27, 0x09, 0x00, - 0x00, + // 1270 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xdb, 0x6e, 0xdb, 0x46, + 0x13, 0xfe, 0x75, 0xb0, 0x2c, 0x8d, 0x6c, 0x99, 0xd9, 0xdf, 0x48, 0x08, 0xe7, 0x22, 0x06, 0xff, + 0x43, 0xdd, 0xa0, 0x96, 0x10, 0xd7, 0x08, 0x9a, 0x1a, 0x68, 0xc3, 0x98, 0x4c, 0x42, 0xd4, 0x91, + 0x84, 0x95, 0xec, 0x34, 0xbd, 0x28, 0x41, 0x71, 0xd7, 0x0a, 0x6b, 0x91, 0xcb, 0x72, 0x97, 0x6e, + 0xd5, 0x67, 0xea, 0x65, 0x9f, 0xa0, 0xaf, 0xd0, 0x77, 0xe8, 0x73, 0x14, 0xbb, 0x4b, 0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0xb2, 0xd6, 0xff, 0x09, 0x68, 0x55, 0x5f, 0x52, + 0xf6, 0x23, 0x68, 0x07, 0xb9, 0x60, 0x3e, 0xa1, 0x33, 0x2a, 0xa8, 0xba, 0x68, 0x13, 0x83, 0x54, + 0x39, 0x4a, 0x23, 0xa9, 0x56, 0x32, 0x82, 0x1c, 0x7d, 0x4d, 0xf5, 0x0d, 0x29, 0x7a, 0xc4, 0x3a, + 0x81, 0xba, 0x4c, 0x84, 0x76, 0xc1, 0x78, 0x33, 0x70, 0xdc, 0x95, 0x7f, 0x72, 0x1b, 0x5a, 0xd8, + 0xb5, 0x1d, 0x7f, 0xd0, 0x3f, 0x7b, 0x67, 0x54, 0xf4, 0x1f, 0x62, 0x3b, 0xfe, 0x5b, 0xec, 0x8d, + 0x5d, 0xa3, 0x6a, 0xfd, 0x5a, 0x05, 0x63, 0x75, 0xdf, 0x65, 0x33, 0x23, 0x59, 0x5e, 0x31, 0x4e, + 0x5a, 0x90, 0x37, 0x8c, 0x83, 0xd0, 0x0f, 0x08, 0xc9, 0x28, 0xe7, 0x65, 0x09, 0x71, 0x10, 0xda, + 0x5a, 0x23, 0x5f, 0x38, 0x9e, 0x4f, 0x12, 0xaa, 0xd6, 0xb3, 0xa6, 0x5f, 0x38, 0xad, 0xf0, 0x08, + 0x3a, 0x07, 0x94, 0x66, 0x51, 0x2c, 0x89, 0xed, 0xfa, 0x78, 0x01, 0x52, 0x57, 0x3b, 0xf4, 0xd1, + 0xfa, 0x1d, 0xd2, 0x21, 0x45, 0x06, 0x6c, 0x14, 0x10, 0x17, 0xc7, 0x65, 0xce, 0x65, 0xd8, 0xa7, + 0x0b, 0xd8, 0x8d, 0x7f, 0x08, 0xfb, 0xb4, 0x84, 0x55, 0x94, 0x13, 0xe6, 0x59, 0x24, 0xe6, 0xfe, + 0x34, 0x63, 0x79, 0xea, 0x47, 0x44, 0x3f, 0x95, 0x8a, 0x72, 0xb4, 0xe5, 0x95, 0x34, 0x78, 0x84, + 0x5b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, 0x4e, 0x44, 0xd1, 0xe7, 0x9b, 0xa7, 0xa1, 0x98, 0x88, 0xc7, 0x27, + 0xd0, 0x5a, 0x74, 0x11, 0xed, 0xc1, 0x7d, 0x6f, 0xe8, 0x5f, 0xb8, 0x58, 0x92, 0xe9, 0xca, 0x5d, + 0x9b, 0x50, 0xf7, 0x86, 0x17, 0xc7, 0x46, 0xa5, 0x38, 0x3d, 0x35, 0xaa, 0x2f, 0x26, 0xf0, 0xf0, + 0x56, 0x4f, 0x82, 0x34, 0x5a, 0xea, 0xcb, 0x37, 0xa7, 0xd3, 0x48, 0xbc, 0xcf, 0x27, 0x52, 0xd5, + 0xd3, 0x7e, 0x87, 0xfa, 0x8b, 0x76, 0xca, 0x0e, 0xa7, 0x34, 0x51, 0x1f, 0x8b, 0xbd, 0x35, 0x9f, + 0xba, 0x27, 0xc5, 0x71, 0xd2, 0x50, 0x6e, 0x9f, 0xfe, 0x11, 0x00, 0x00, 0xff, 0xff, 0xe9, 0xb1, + 0x00, 0x30, 0x14, 0x0b, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instance.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instance.pbext.go new file mode 100644 index 000000000..470ec0b60 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instance.pbext.go @@ -0,0 +1,167 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package compute + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Instance) SetId(v string) { + m.Id = v +} + +func (m *Instance) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Instance) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Instance) SetName(v string) { + m.Name = v +} + +func (m *Instance) SetDescription(v string) { + m.Description = v +} + +func (m *Instance) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *Instance) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *Instance) SetPlatformId(v string) { + m.PlatformId = v +} + +func (m *Instance) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Instance) SetStatus(v Instance_Status) { + m.Status = v +} + +func (m *Instance) SetMetadata(v map[string]string) { + m.Metadata = v +} + +func (m *Instance) SetBootDisk(v *AttachedDisk) { + m.BootDisk = v +} + +func (m *Instance) SetSecondaryDisks(v []*AttachedDisk) { + m.SecondaryDisks = v +} + +func (m *Instance) SetNetworkInterfaces(v []*NetworkInterface) { + m.NetworkInterfaces = v +} + +func (m *Instance) SetFqdn(v string) { + m.Fqdn = v +} + +func (m *Instance) SetSchedulingPolicy(v *SchedulingPolicy) { + m.SchedulingPolicy = v +} + +func (m *Instance) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *Instance) SetNetworkSettings(v *NetworkSettings) { + m.NetworkSettings = v +} + +func (m *Instance) SetPlacementPolicy(v *PlacementPolicy) { + m.PlacementPolicy = v +} + +func (m *Resources) SetMemory(v int64) { + m.Memory = v +} + +func (m *Resources) SetCores(v int64) { + m.Cores = v +} + +func (m *Resources) SetCoreFraction(v int64) { + m.CoreFraction = v +} + +func (m *Resources) SetGpus(v int64) { + m.Gpus = v +} + +func (m *AttachedDisk) SetMode(v AttachedDisk_Mode) { + m.Mode = v +} + +func (m *AttachedDisk) SetDeviceName(v string) { + m.DeviceName = v +} + +func (m *AttachedDisk) SetAutoDelete(v bool) { + m.AutoDelete = v +} + +func (m *AttachedDisk) SetDiskId(v string) { + m.DiskId = v +} + +func (m *NetworkInterface) SetIndex(v string) { + m.Index = v +} + +func (m *NetworkInterface) SetMacAddress(v string) { + m.MacAddress = v +} + +func (m *NetworkInterface) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *NetworkInterface) SetPrimaryV4Address(v *PrimaryAddress) { + m.PrimaryV4Address = v +} + +func (m *NetworkInterface) SetPrimaryV6Address(v *PrimaryAddress) { + m.PrimaryV6Address = v +} + +func (m *NetworkInterface) SetSecurityGroupIds(v []string) { + m.SecurityGroupIds = v +} + +func (m *PrimaryAddress) SetAddress(v string) { + m.Address = v +} + +func (m *PrimaryAddress) SetOneToOneNat(v *OneToOneNat) { + m.OneToOneNat = v +} + +func (m *OneToOneNat) SetAddress(v string) { + m.Address = v +} + +func (m *OneToOneNat) SetIpVersion(v IpVersion) { + m.IpVersion = v +} + +func (m *SchedulingPolicy) SetPreemptible(v bool) { + m.Preemptible = v +} + +func (m *NetworkSettings) SetType(v NetworkSettings_Type) { + m.Type = v +} + +func (m *PlacementPolicy) SetPlacementGroupId(v string) { + m.PlacementGroupId = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instance_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instance_service.pb.go index cc667687f..0094f037d 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instance_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instance_service.pb.go @@ -83,7 +83,7 @@ func (x AttachedDiskSpec_Mode) String() string { } func (AttachedDiskSpec_Mode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f767221f90c06403, []int{26, 0} + return fileDescriptor_f767221f90c06403, []int{32, 0} } type GetInstanceRequest struct { @@ -294,7 +294,7 @@ type CreateInstanceRequest struct { // The total size of all keys and values must be less than 512 KB. // // Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance. - // The only restriction placed on values is that their size must be 256 KB or less. + // The values must be 256 KB or less. // // For example, you may use the metadata in order to provide your public SSH key to the instance. // For more information, see [Metadata](/docs/compute/concepts/vm-metadata). @@ -317,10 +317,14 @@ type CreateInstanceRequest struct { SchedulingPolicy *SchedulingPolicy `protobuf:"bytes,13,opt,name=scheduling_policy,json=schedulingPolicy,proto3" json:"scheduling_policy,omitempty"` // ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm). // To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request. - ServiceAccountId string `protobuf:"bytes,14,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ServiceAccountId string `protobuf:"bytes,14,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + // Network settings. + NetworkSettings *NetworkSettings `protobuf:"bytes,15,opt,name=network_settings,json=networkSettings,proto3" json:"network_settings,omitempty"` + // Placement policy configuration. + PlacementPolicy *PlacementPolicy `protobuf:"bytes,16,opt,name=placement_policy,json=placementPolicy,proto3" json:"placement_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CreateInstanceRequest) Reset() { *m = CreateInstanceRequest{} } @@ -446,6 +450,20 @@ func (m *CreateInstanceRequest) GetServiceAccountId() string { return "" } +func (m *CreateInstanceRequest) GetNetworkSettings() *NetworkSettings { + if m != nil { + return m.NetworkSettings + } + return nil +} + +func (m *CreateInstanceRequest) GetPlacementPolicy() *PlacementPolicy { + if m != nil { + return m.PlacementPolicy + } + return nil +} + type CreateInstanceMetadata struct { // ID of the instance that is being created. InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` @@ -516,17 +534,21 @@ type UpdateInstanceRequest struct { // Existing set of `metadata` is completely replaced by the provided set. // // Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance. - // The only restriction placed on values is that their size must be 256 KB or less. + // The values must be 256 KB or less. // // For example, you may use the metadata in order to provide your public SSH key to the instance. // For more information, see [Metadata](/docs/compute/concepts/vm-metadata). Metadata map[string]string `protobuf:"bytes,8,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm). // To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request. - ServiceAccountId string `protobuf:"bytes,9,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ServiceAccountId string `protobuf:"bytes,9,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + // Network settings. + NetworkSettings *NetworkSettings `protobuf:"bytes,10,opt,name=network_settings,json=networkSettings,proto3" json:"network_settings,omitempty"` + // Placement policy configuration. + PlacementPolicy *PlacementPolicy `protobuf:"bytes,11,opt,name=placement_policy,json=placementPolicy,proto3" json:"placement_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UpdateInstanceRequest) Reset() { *m = UpdateInstanceRequest{} } @@ -617,6 +639,20 @@ func (m *UpdateInstanceRequest) GetServiceAccountId() string { return "" } +func (m *UpdateInstanceRequest) GetNetworkSettings() *NetworkSettings { + if m != nil { + return m.NetworkSettings + } + return nil +} + +func (m *UpdateInstanceRequest) GetPlacementPolicy() *PlacementPolicy { + if m != nil { + return m.PlacementPolicy + } + return nil +} + type UpdateInstanceMetadata struct { // ID of the Instance resource that is being updated. InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` @@ -1407,6 +1443,338 @@ func (m *DetachInstanceDiskMetadata) GetDiskId() string { return "" } +type AddInstanceOneToOneNatRequest struct { + InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` + NetworkInterfaceIndex string `protobuf:"bytes,2,opt,name=network_interface_index,json=networkInterfaceIndex,proto3" json:"network_interface_index,omitempty"` + InternalAddress string `protobuf:"bytes,3,opt,name=internal_address,json=internalAddress,proto3" json:"internal_address,omitempty"` + OneToOneNatSpec *OneToOneNatSpec `protobuf:"bytes,4,opt,name=one_to_one_nat_spec,json=oneToOneNatSpec,proto3" json:"one_to_one_nat_spec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AddInstanceOneToOneNatRequest) Reset() { *m = AddInstanceOneToOneNatRequest{} } +func (m *AddInstanceOneToOneNatRequest) String() string { return proto.CompactTextString(m) } +func (*AddInstanceOneToOneNatRequest) ProtoMessage() {} +func (*AddInstanceOneToOneNatRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f767221f90c06403, []int{23} +} + +func (m *AddInstanceOneToOneNatRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddInstanceOneToOneNatRequest.Unmarshal(m, b) +} +func (m *AddInstanceOneToOneNatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddInstanceOneToOneNatRequest.Marshal(b, m, deterministic) +} +func (m *AddInstanceOneToOneNatRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddInstanceOneToOneNatRequest.Merge(m, src) +} +func (m *AddInstanceOneToOneNatRequest) XXX_Size() int { + return xxx_messageInfo_AddInstanceOneToOneNatRequest.Size(m) +} +func (m *AddInstanceOneToOneNatRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AddInstanceOneToOneNatRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AddInstanceOneToOneNatRequest proto.InternalMessageInfo + +func (m *AddInstanceOneToOneNatRequest) GetInstanceId() string { + if m != nil { + return m.InstanceId + } + return "" +} + +func (m *AddInstanceOneToOneNatRequest) GetNetworkInterfaceIndex() string { + if m != nil { + return m.NetworkInterfaceIndex + } + return "" +} + +func (m *AddInstanceOneToOneNatRequest) GetInternalAddress() string { + if m != nil { + return m.InternalAddress + } + return "" +} + +func (m *AddInstanceOneToOneNatRequest) GetOneToOneNatSpec() *OneToOneNatSpec { + if m != nil { + return m.OneToOneNatSpec + } + return nil +} + +type AddInstanceOneToOneNatMetadata struct { + InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AddInstanceOneToOneNatMetadata) Reset() { *m = AddInstanceOneToOneNatMetadata{} } +func (m *AddInstanceOneToOneNatMetadata) String() string { return proto.CompactTextString(m) } +func (*AddInstanceOneToOneNatMetadata) ProtoMessage() {} +func (*AddInstanceOneToOneNatMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_f767221f90c06403, []int{24} +} + +func (m *AddInstanceOneToOneNatMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddInstanceOneToOneNatMetadata.Unmarshal(m, b) +} +func (m *AddInstanceOneToOneNatMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddInstanceOneToOneNatMetadata.Marshal(b, m, deterministic) +} +func (m *AddInstanceOneToOneNatMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddInstanceOneToOneNatMetadata.Merge(m, src) +} +func (m *AddInstanceOneToOneNatMetadata) XXX_Size() int { + return xxx_messageInfo_AddInstanceOneToOneNatMetadata.Size(m) +} +func (m *AddInstanceOneToOneNatMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_AddInstanceOneToOneNatMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_AddInstanceOneToOneNatMetadata proto.InternalMessageInfo + +func (m *AddInstanceOneToOneNatMetadata) GetInstanceId() string { + if m != nil { + return m.InstanceId + } + return "" +} + +type RemoveInstanceOneToOneNatRequest struct { + InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` + NetworkInterfaceIndex string `protobuf:"bytes,2,opt,name=network_interface_index,json=networkInterfaceIndex,proto3" json:"network_interface_index,omitempty"` + InternalAddress string `protobuf:"bytes,3,opt,name=internal_address,json=internalAddress,proto3" json:"internal_address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RemoveInstanceOneToOneNatRequest) Reset() { *m = RemoveInstanceOneToOneNatRequest{} } +func (m *RemoveInstanceOneToOneNatRequest) String() string { return proto.CompactTextString(m) } +func (*RemoveInstanceOneToOneNatRequest) ProtoMessage() {} +func (*RemoveInstanceOneToOneNatRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f767221f90c06403, []int{25} +} + +func (m *RemoveInstanceOneToOneNatRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RemoveInstanceOneToOneNatRequest.Unmarshal(m, b) +} +func (m *RemoveInstanceOneToOneNatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RemoveInstanceOneToOneNatRequest.Marshal(b, m, deterministic) +} +func (m *RemoveInstanceOneToOneNatRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveInstanceOneToOneNatRequest.Merge(m, src) +} +func (m *RemoveInstanceOneToOneNatRequest) XXX_Size() int { + return xxx_messageInfo_RemoveInstanceOneToOneNatRequest.Size(m) +} +func (m *RemoveInstanceOneToOneNatRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveInstanceOneToOneNatRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveInstanceOneToOneNatRequest proto.InternalMessageInfo + +func (m *RemoveInstanceOneToOneNatRequest) GetInstanceId() string { + if m != nil { + return m.InstanceId + } + return "" +} + +func (m *RemoveInstanceOneToOneNatRequest) GetNetworkInterfaceIndex() string { + if m != nil { + return m.NetworkInterfaceIndex + } + return "" +} + +func (m *RemoveInstanceOneToOneNatRequest) GetInternalAddress() string { + if m != nil { + return m.InternalAddress + } + return "" +} + +type RemoveInstanceOneToOneNatMetadata struct { + InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RemoveInstanceOneToOneNatMetadata) Reset() { *m = RemoveInstanceOneToOneNatMetadata{} } +func (m *RemoveInstanceOneToOneNatMetadata) String() string { return proto.CompactTextString(m) } +func (*RemoveInstanceOneToOneNatMetadata) ProtoMessage() {} +func (*RemoveInstanceOneToOneNatMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_f767221f90c06403, []int{26} +} + +func (m *RemoveInstanceOneToOneNatMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RemoveInstanceOneToOneNatMetadata.Unmarshal(m, b) +} +func (m *RemoveInstanceOneToOneNatMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RemoveInstanceOneToOneNatMetadata.Marshal(b, m, deterministic) +} +func (m *RemoveInstanceOneToOneNatMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveInstanceOneToOneNatMetadata.Merge(m, src) +} +func (m *RemoveInstanceOneToOneNatMetadata) XXX_Size() int { + return xxx_messageInfo_RemoveInstanceOneToOneNatMetadata.Size(m) +} +func (m *RemoveInstanceOneToOneNatMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveInstanceOneToOneNatMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveInstanceOneToOneNatMetadata proto.InternalMessageInfo + +func (m *RemoveInstanceOneToOneNatMetadata) GetInstanceId() string { + if m != nil { + return m.InstanceId + } + return "" +} + +type UpdateInstanceNetworkInterfaceRequest struct { + InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` + NetworkInterfaceIndex string `protobuf:"bytes,2,opt,name=network_interface_index,json=networkInterfaceIndex,proto3" json:"network_interface_index,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + SubnetId string `protobuf:"bytes,4,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` + PrimaryV4AddressSpec *PrimaryAddressSpec `protobuf:"bytes,5,opt,name=primary_v4_address_spec,json=primaryV4AddressSpec,proto3" json:"primary_v4_address_spec,omitempty"` + PrimaryV6AddressSpec *PrimaryAddressSpec `protobuf:"bytes,6,opt,name=primary_v6_address_spec,json=primaryV6AddressSpec,proto3" json:"primary_v6_address_spec,omitempty"` + SecurityGroupIds []string `protobuf:"bytes,7,rep,name=security_group_ids,json=securityGroupIds,proto3" json:"security_group_ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateInstanceNetworkInterfaceRequest) Reset() { *m = UpdateInstanceNetworkInterfaceRequest{} } +func (m *UpdateInstanceNetworkInterfaceRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateInstanceNetworkInterfaceRequest) ProtoMessage() {} +func (*UpdateInstanceNetworkInterfaceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f767221f90c06403, []int{27} +} + +func (m *UpdateInstanceNetworkInterfaceRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateInstanceNetworkInterfaceRequest.Unmarshal(m, b) +} +func (m *UpdateInstanceNetworkInterfaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateInstanceNetworkInterfaceRequest.Marshal(b, m, deterministic) +} +func (m *UpdateInstanceNetworkInterfaceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateInstanceNetworkInterfaceRequest.Merge(m, src) +} +func (m *UpdateInstanceNetworkInterfaceRequest) XXX_Size() int { + return xxx_messageInfo_UpdateInstanceNetworkInterfaceRequest.Size(m) +} +func (m *UpdateInstanceNetworkInterfaceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateInstanceNetworkInterfaceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateInstanceNetworkInterfaceRequest proto.InternalMessageInfo + +func (m *UpdateInstanceNetworkInterfaceRequest) GetInstanceId() string { + if m != nil { + return m.InstanceId + } + return "" +} + +func (m *UpdateInstanceNetworkInterfaceRequest) GetNetworkInterfaceIndex() string { + if m != nil { + return m.NetworkInterfaceIndex + } + return "" +} + +func (m *UpdateInstanceNetworkInterfaceRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdateInstanceNetworkInterfaceRequest) GetSubnetId() string { + if m != nil { + return m.SubnetId + } + return "" +} + +func (m *UpdateInstanceNetworkInterfaceRequest) GetPrimaryV4AddressSpec() *PrimaryAddressSpec { + if m != nil { + return m.PrimaryV4AddressSpec + } + return nil +} + +func (m *UpdateInstanceNetworkInterfaceRequest) GetPrimaryV6AddressSpec() *PrimaryAddressSpec { + if m != nil { + return m.PrimaryV6AddressSpec + } + return nil +} + +func (m *UpdateInstanceNetworkInterfaceRequest) GetSecurityGroupIds() []string { + if m != nil { + return m.SecurityGroupIds + } + return nil +} + +type UpdateInstanceNetworkInterfaceMetadata struct { + InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` + NetworkInterfaceIndex string `protobuf:"bytes,2,opt,name=network_interface_index,json=networkInterfaceIndex,proto3" json:"network_interface_index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateInstanceNetworkInterfaceMetadata) Reset() { + *m = UpdateInstanceNetworkInterfaceMetadata{} +} +func (m *UpdateInstanceNetworkInterfaceMetadata) String() string { return proto.CompactTextString(m) } +func (*UpdateInstanceNetworkInterfaceMetadata) ProtoMessage() {} +func (*UpdateInstanceNetworkInterfaceMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_f767221f90c06403, []int{28} +} + +func (m *UpdateInstanceNetworkInterfaceMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateInstanceNetworkInterfaceMetadata.Unmarshal(m, b) +} +func (m *UpdateInstanceNetworkInterfaceMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateInstanceNetworkInterfaceMetadata.Marshal(b, m, deterministic) +} +func (m *UpdateInstanceNetworkInterfaceMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateInstanceNetworkInterfaceMetadata.Merge(m, src) +} +func (m *UpdateInstanceNetworkInterfaceMetadata) XXX_Size() int { + return xxx_messageInfo_UpdateInstanceNetworkInterfaceMetadata.Size(m) +} +func (m *UpdateInstanceNetworkInterfaceMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateInstanceNetworkInterfaceMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateInstanceNetworkInterfaceMetadata proto.InternalMessageInfo + +func (m *UpdateInstanceNetworkInterfaceMetadata) GetInstanceId() string { + if m != nil { + return m.InstanceId + } + return "" +} + +func (m *UpdateInstanceNetworkInterfaceMetadata) GetNetworkInterfaceIndex() string { + if m != nil { + return m.NetworkInterfaceIndex + } + return "" +} + type ListInstanceOperationsRequest struct { // ID of the Instance resource to list operations for. InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` @@ -1426,7 +1794,7 @@ func (m *ListInstanceOperationsRequest) Reset() { *m = ListInstanceOpera func (m *ListInstanceOperationsRequest) String() string { return proto.CompactTextString(m) } func (*ListInstanceOperationsRequest) ProtoMessage() {} func (*ListInstanceOperationsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f767221f90c06403, []int{23} + return fileDescriptor_f767221f90c06403, []int{29} } func (m *ListInstanceOperationsRequest) XXX_Unmarshal(b []byte) error { @@ -1485,7 +1853,7 @@ func (m *ListInstanceOperationsResponse) Reset() { *m = ListInstanceOper func (m *ListInstanceOperationsResponse) String() string { return proto.CompactTextString(m) } func (*ListInstanceOperationsResponse) ProtoMessage() {} func (*ListInstanceOperationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f767221f90c06403, []int{24} + return fileDescriptor_f767221f90c06403, []int{30} } func (m *ListInstanceOperationsResponse) XXX_Unmarshal(b []byte) error { @@ -1542,7 +1910,7 @@ func (m *ResourcesSpec) Reset() { *m = ResourcesSpec{} } func (m *ResourcesSpec) String() string { return proto.CompactTextString(m) } func (*ResourcesSpec) ProtoMessage() {} func (*ResourcesSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_f767221f90c06403, []int{25} + return fileDescriptor_f767221f90c06403, []int{31} } func (m *ResourcesSpec) XXX_Unmarshal(b []byte) error { @@ -1615,7 +1983,7 @@ func (m *AttachedDiskSpec) Reset() { *m = AttachedDiskSpec{} } func (m *AttachedDiskSpec) String() string { return proto.CompactTextString(m) } func (*AttachedDiskSpec) ProtoMessage() {} func (*AttachedDiskSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_f767221f90c06403, []int{26} + return fileDescriptor_f767221f90c06403, []int{32} } func (m *AttachedDiskSpec) XXX_Unmarshal(b []byte) error { @@ -1725,7 +2093,7 @@ func (m *AttachedDiskSpec_DiskSpec) Reset() { *m = AttachedDiskSpec_Disk func (m *AttachedDiskSpec_DiskSpec) String() string { return proto.CompactTextString(m) } func (*AttachedDiskSpec_DiskSpec) ProtoMessage() {} func (*AttachedDiskSpec_DiskSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_f767221f90c06403, []int{26, 0} + return fileDescriptor_f767221f90c06403, []int{32, 0} } func (m *AttachedDiskSpec_DiskSpec) XXX_Unmarshal(b []byte) error { @@ -1826,16 +2194,18 @@ type NetworkInterfaceSpec struct { PrimaryV4AddressSpec *PrimaryAddressSpec `protobuf:"bytes,2,opt,name=primary_v4_address_spec,json=primaryV4AddressSpec,proto3" json:"primary_v4_address_spec,omitempty"` // Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet. PrimaryV6AddressSpec *PrimaryAddressSpec `protobuf:"bytes,3,opt,name=primary_v6_address_spec,json=primaryV6AddressSpec,proto3" json:"primary_v6_address_spec,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // ID's of security groups attached to the interface + SecurityGroupIds []string `protobuf:"bytes,6,rep,name=security_group_ids,json=securityGroupIds,proto3" json:"security_group_ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *NetworkInterfaceSpec) Reset() { *m = NetworkInterfaceSpec{} } func (m *NetworkInterfaceSpec) String() string { return proto.CompactTextString(m) } func (*NetworkInterfaceSpec) ProtoMessage() {} func (*NetworkInterfaceSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_f767221f90c06403, []int{27} + return fileDescriptor_f767221f90c06403, []int{33} } func (m *NetworkInterfaceSpec) XXX_Unmarshal(b []byte) error { @@ -1877,6 +2247,13 @@ func (m *NetworkInterfaceSpec) GetPrimaryV6AddressSpec() *PrimaryAddressSpec { return nil } +func (m *NetworkInterfaceSpec) GetSecurityGroupIds() []string { + if m != nil { + return m.SecurityGroupIds + } + return nil +} + type PrimaryAddressSpec struct { // An IPv4 internal network address that is assigned to the instance for this network interface. // If not specified by the user, an unused internal IP is assigned by the system. @@ -1893,7 +2270,7 @@ func (m *PrimaryAddressSpec) Reset() { *m = PrimaryAddressSpec{} } func (m *PrimaryAddressSpec) String() string { return proto.CompactTextString(m) } func (*PrimaryAddressSpec) ProtoMessage() {} func (*PrimaryAddressSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_f767221f90c06403, []int{28} + return fileDescriptor_f767221f90c06403, []int{34} } func (m *PrimaryAddressSpec) XXX_Unmarshal(b []byte) error { @@ -1931,6 +2308,7 @@ func (m *PrimaryAddressSpec) GetOneToOneNatSpec() *OneToOneNatSpec { type OneToOneNatSpec struct { // External IP address version. IpVersion IpVersion `protobuf:"varint,1,opt,name=ip_version,json=ipVersion,proto3,enum=yandex.cloud.compute.v1.IpVersion" json:"ip_version,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1940,7 +2318,7 @@ func (m *OneToOneNatSpec) Reset() { *m = OneToOneNatSpec{} } func (m *OneToOneNatSpec) String() string { return proto.CompactTextString(m) } func (*OneToOneNatSpec) ProtoMessage() {} func (*OneToOneNatSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_f767221f90c06403, []int{29} + return fileDescriptor_f767221f90c06403, []int{35} } func (m *OneToOneNatSpec) XXX_Unmarshal(b []byte) error { @@ -1968,6 +2346,13 @@ func (m *OneToOneNatSpec) GetIpVersion() IpVersion { return IpVersion_IP_VERSION_UNSPECIFIED } +func (m *OneToOneNatSpec) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + func init() { proto.RegisterEnum("yandex.cloud.compute.v1.InstanceView", InstanceView_name, InstanceView_value) proto.RegisterEnum("yandex.cloud.compute.v1.AttachedDiskSpec_Mode", AttachedDiskSpec_Mode_name, AttachedDiskSpec_Mode_value) @@ -1999,6 +2384,12 @@ func init() { proto.RegisterType((*AttachInstanceDiskMetadata)(nil), "yandex.cloud.compute.v1.AttachInstanceDiskMetadata") proto.RegisterType((*DetachInstanceDiskRequest)(nil), "yandex.cloud.compute.v1.DetachInstanceDiskRequest") proto.RegisterType((*DetachInstanceDiskMetadata)(nil), "yandex.cloud.compute.v1.DetachInstanceDiskMetadata") + proto.RegisterType((*AddInstanceOneToOneNatRequest)(nil), "yandex.cloud.compute.v1.AddInstanceOneToOneNatRequest") + proto.RegisterType((*AddInstanceOneToOneNatMetadata)(nil), "yandex.cloud.compute.v1.AddInstanceOneToOneNatMetadata") + proto.RegisterType((*RemoveInstanceOneToOneNatRequest)(nil), "yandex.cloud.compute.v1.RemoveInstanceOneToOneNatRequest") + proto.RegisterType((*RemoveInstanceOneToOneNatMetadata)(nil), "yandex.cloud.compute.v1.RemoveInstanceOneToOneNatMetadata") + proto.RegisterType((*UpdateInstanceNetworkInterfaceRequest)(nil), "yandex.cloud.compute.v1.UpdateInstanceNetworkInterfaceRequest") + proto.RegisterType((*UpdateInstanceNetworkInterfaceMetadata)(nil), "yandex.cloud.compute.v1.UpdateInstanceNetworkInterfaceMetadata") proto.RegisterType((*ListInstanceOperationsRequest)(nil), "yandex.cloud.compute.v1.ListInstanceOperationsRequest") proto.RegisterType((*ListInstanceOperationsResponse)(nil), "yandex.cloud.compute.v1.ListInstanceOperationsResponse") proto.RegisterType((*ResourcesSpec)(nil), "yandex.cloud.compute.v1.ResourcesSpec") @@ -2014,166 +2405,190 @@ func init() { } var fileDescriptor_f767221f90c06403 = []byte{ - // 2396 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0xcd, 0x6f, 0xdb, 0xc8, - 0x15, 0x0f, 0xad, 0x0f, 0x4b, 0x4f, 0xb6, 0xa3, 0x9d, 0xd8, 0xb1, 0x56, 0xa8, 0x37, 0x0e, 0x83, - 0xa4, 0x8e, 0x42, 0x7d, 0x50, 0x96, 0x65, 0x2b, 0x71, 0xb0, 0xb0, 0x62, 0x3b, 0x11, 0x9a, 0xc4, - 0x29, 0x9d, 0xb8, 0x6d, 0x82, 0x54, 0xa0, 0xc5, 0xb1, 0x43, 0x58, 0x22, 0x59, 0x92, 0x72, 0xd6, - 0x49, 0x53, 0x14, 0x41, 0x51, 0xa0, 0xe9, 0x71, 0x6f, 0xbd, 0x6d, 0x7b, 0xea, 0x71, 0x7d, 0x6a, - 0xb7, 0x97, 0xf6, 0x52, 0xfb, 0xd4, 0x83, 0x7b, 0xe9, 0x1f, 0xd0, 0x02, 0xbd, 0x2c, 0x0a, 0xe4, - 0x98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xdb, 0xb5, 0x9f, 0xa8, 0x1a, 0x13, 0x80, 0x2c, 0x59, 0xbd, 0x08, 0xfa, 0x3e, - 0xc4, 0x0f, 0x33, 0x52, 0x98, 0x66, 0xa4, 0x62, 0x70, 0x90, 0xce, 0xc3, 0xbd, 0x73, 0x42, 0x4c, - 0x72, 0x54, 0x76, 0x45, 0x7a, 0xc4, 0x2f, 0xd2, 0xd3, 0xbf, 0x1d, 0x80, 0x58, 0xc7, 0x48, 0xce, - 0x1c, 0xc0, 0x9c, 0x69, 0x0e, 0x18, 0xe8, 0x3b, 0x07, 0x5c, 0x86, 0x41, 0x73, 0x47, 0xa3, 0x11, - 0x19, 0xea, 0x19, 0x8c, 0xa2, 0x64, 0xa3, 0x26, 0x21, 0x1e, 0xc2, 0x34, 0x08, 0xad, 0x2f, 0x3c, - 0x61, 0x7b, 0xd9, 0x58, 0x89, 0xaf, 0x94, 0xa6, 0x0b, 0xa5, 0x6c, 0x69, 0xba, 0x32, 0x57, 0x28, - 0x95, 0x67, 0x78, 0x9e, 0x2f, 0x94, 0x04, 0x4a, 0x8a, 0xae, 0x42, 0x4c, 0x6e, 0x11, 0xff, 0xf7, - 0x54, 0x76, 0x90, 0xee, 0xd5, 0x24, 0x82, 0xd4, 0x50, 0x44, 0xcd, 0x78, 0xa1, 0x9a, 0x87, 0x37, - 0x1e, 0x6e, 0x4a, 0x70, 0xb6, 0x6b, 0x52, 0x35, 0x06, 0x51, 0x2b, 0x58, 0xd8, 0x5b, 0x10, 0x26, - 0x6e, 0x80, 0x46, 0x21, 0xf9, 0x60, 0x65, 0x71, 0xa9, 0xfe, 0xe4, 0xe1, 0xea, 0xa3, 0xa5, 0x3b, - 0xb5, 0xe5, 0xda, 0xd2, 0x62, 0xf2, 0x1c, 0x1a, 0x86, 0xb8, 0xb0, 0xb4, 0xb0, 0x58, 0x5f, 0x79, - 0x78, 0xff, 0x47, 0x49, 0x06, 0x8d, 0x00, 0xd0, 0xd7, 0x1f, 0x08, 0xb5,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9, 0x20, 0x4a, 0x88, - 0x1d, 0xe0, 0x24, 0xaa, 0x89, 0x2a, 0xd6, 0x38, 0x7c, 0x8c, 0x2a, 0xbe, 0xf3, 0xfe, 0x09, 0x54, - 0xe9, 0x33, 0x77, 0x9f, 0x4a, 0x15, 0x09, 0xbb, 0x55, 0xf9, 0x23, 0x03, 0x23, 0xa4, 0x98, 0x1f, - 0x0e, 0xb5, 0x7d, 0x72, 0x6f, 0xdf, 0x49, 0x3d, 0x3d, 0x7b, 0x62, 0x3e, 0x3b, 0x23, 0x95, 0x29, - 0xfc, 0x02, 0x0a, 0x02, 0xff, 0xf0, 0x1f, 0x04, 0x46, 0x75, 0xe9, 0xe9, 0x9d, 0x4d, 0xd9, 0x7c, - 0xd1, 0x5e, 0x27, 0x67, 0xe5, 0xad, 0xc3, 0xb3, 0xd6, 0x3f, 0x09, 0x36, 0xd5, 0xec, 0x26, 0x56, - 0xa8, 0xd3, 0xe6, 0x7d, 0xfe, 0xb2, 0x70, 0xcb, 0x7e, 0x5c, 0x8f, 0x52, 0xb2, 0xe9, 0xff, 0x06, - 0x00, 0x00, 0xff, 0xff, 0x03, 0x5f, 0x4d, 0x47, 0x87, 0x21, 0x00, 0x00, + // 2769 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5a, 0x4f, 0x70, 0xdb, 0x58, + 0xfd, 0xaf, 0x6c, 0xc7, 0xb1, 0xbf, 0x69, 0x12, 0xef, 0xdb, 0xa4, 0xf5, 0x7a, 0x7f, 0xdd, 0x4d, + 0xd5, 0x5f, 0x4a, 0xe2, 0xca, 0x7f, 0xe4, 0x38, 0x6e, 0xd2, 0xa6, 0xec, 0x26, 0x4d, 0xda, 0xf5, + 0xd0, 0x36, 0x45, 0x69, 0x03, 0x6c, 0x29, 0x1e, 0xc5, 0x7a, 0x49, 0x35, 0xb1, 0x25, 0xad, 0x24, + 0x67, 0x37, 0x2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d, 0xb3, 0xd6, 0x55, 0x9d, + 0x65, 0x74, 0xb3, 0x81, 0xe7, 0x07, 0x3c, 0xc3, 0x0b, 0xe3, 0x8a, 0xcf, 0xa4, 0x81, 0xde, 0x86, + 0xc4, 0x13, 0xd5, 0x30, 0xa9, 0xc3, 0x9c, 0xed, 0xc3, 0x61, 0xda, 0xab, 0xd0, 0x3a, 0xbc, 0x62, + 0x10, 0x76, 0xad, 0x86, 0xac, 0x6c, 0xd5, 0x34, 0xb5, 0x21, 0xd7, 0x77, 0xd3, 0xc3, 0x3d, 0xec, + 0xbd, 0xd6, 0x5e, 0x71, 0x9f, 0x2e, 0x10, 0x52, 0x46, 0xc7, 0x08, 0xe2, 0x00, 0xd9, 0x49, 0xac, + 0x26, 0xd6, 0xeb, 0x6a, 0x4b, 0x31, 0xc9, 0x09, 0x1d, 0xa1, 0x61, 0x23, 0x65, 0xcf, 0x2c, 0x5a, + 0x13, 0xf4, 0x84, 0xa6, 0x1c, 0xab, 0x19, 0xd8, 0x34, 0x65, 0x65, 0xcb, 0x48, 0x8f, 0x52, 0x10, + 0x53, 0xbd, 0xcc, 0xb5, 0x66, 0xcb, 0x0b, 0xa3, 0x8a, 0x77, 0x80, 0x28, 0xd5, 0x1a, 0x62, 0x1d, + 0x37, 0xb1, 0x62, 0x3a, 0xcc, 0x52, 0x3d, 0x94, 0xde, 0x77, 0x16, 0xd8, 0xc4, 0x46, 0x35, 0xef, + 0x40, 0x66, 0x1e, 0x86, 0x5c, 0x9e, 0x8f, 0x52, 0x10, 0xdd, 0xc6, 0xbb, 0x56, 0x48, 0x13, 0xc8, + 0x4f, 0x34, 0x06, 0x03, 0x3b, 0x62, 0xa3, 0x65, 0x07, 0x30, 0xc1, 0x7a, 0xb8, 0x16, 0x99, 0x63, + 0x32, 0xd7, 0x61, 0xd8, 0x73, 0xe4, 0xfb, 0x59, 0xcc, 0xde, 0x84, 0x73, 0x5e, 0x2f, 0x72, 0x54, + 0xa1, 0x69, 0xbf, 0xec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f, 0xd0, 0x97, 0x21, 0x79, 0x54, 0x24, 0x59, 0x19, 0xab, 0x14, 0x1e, 0xa4, 0xf3, + 0xe3, 0x9d, 0x33, 0x42, 0x42, 0x72, 0x28, 0xbb, 0x8a, 0x8f, 0x81, 0xa0, 0xe2, 0x23, 0xf3, 0xb3, + 0x08, 0x24, 0xda, 0x46, 0x72, 0xfa, 0x29, 0xcc, 0x69, 0xfb, 0x29, 0x91, 0xae, 0xfd, 0x94, 0x8b, + 0x30, 0x68, 0xee, 0x6a, 0xd4, 0x29, 0xa3, 0x1d, 0x3d, 0xa6, 0x38, 0x99, 0xa8, 0x4a, 0x88, 0x87, + 0x18, 0xf5, 0x43, 0xeb, 0x25, 0x5f, 0xb0, 0x0f, 0xda, 0x78, 0x99, 0x9f, 0x2f, 0xcf, 0x14, 0xcb, + 0xb9, 0xf2, 0xcc, 0xfc, 0x5c, 0xb1, 0x5c, 0x99, 0xe5, 0x79, 0xbe, 0x58, 0x16, 0xa8, 0x28, 0x9a, + 0x84, 0x84, 0xdc, 0x24, 0x2e, 0xe0, 0xcb, 0x77, 0x90, 0xce, 0x55, 0x25, 0x82, 0xd4, 0x50, 0x44, + 0xcd, 0x78, 0xa2, 0x9a, 0x47, 0x9d, 0x6e, 0xb7, 0x24, 0x38, 0xd3, 0x55, 0x69, 0x29, 0x01, 0x71, + 0xcb, 0x5f, 0xd8, 0xeb, 0x10, 0x23, 0x27, 0x01, 0x8d, 0x41, 0xea, 0xee, 0xea, 0xf2, 0x4a, 0xed, + 0xe1, 0xbd, 0xb5, 0xfb, 0x2b, 0x37, 0xab, 0xb7, 0xaa, 0x2b, 0xcb, 0xa9, 0x33, 0x68, 0x18, 0x92, + 0xc2, 0xca, 0xe2, 0x72, 0x6d, 0xf5, 0xde, 0x9d, 0xaf, 0xa5, 0x18, 0x34, 0x02, 0x40, 0x1f, 0xbf, + 0x22, 0x54, 0x1f, 0xac, 0xa4, 0x22, 0x1d, 0x45, 0xda, 0xaf, 0x22, 0x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18, 0x82, 0xef, 0xd1, 0x20, + 0x16, 0xa2, 0x83, 0xe7, 0xe5, 0x78, 0x8d, 0x9d, 0x0d, 0xc3, 0x51, 0xef, 0x64, 0x43, 0x68, 0xfe, + 0x93, 0x71, 0xca, 0x89, 0xce, 0x3b, 0x0d, 0xfa, 0x62, 0xc8, 0x2c, 0x1a, 0xd0, 0x1b, 0x0c, 0x43, + 0xf8, 0xd9, 0xde, 0x61, 0xb6, 0x14, 0xba, 0x19, 0xe5, 0x65, 0xfd, 0x56, 0xe9, 0x5a, 0xf8, 0xac, + 0xda, 0xa9, 0x93, 0x50, 0xff, 0x0d, 0x03, 0x23, 0xa4, 0x12, 0x3d, 0x6a, 0xeb, 0x74, 0x39, 0xbc, + 0x5d, 0x7b, 0x55, 0x99, 0xab, 0x7d, 0xaf, 0xb3, 0xd3, 0x69, 0x85, 0x52, 0x29, 0xa2, 0x30, 0xbe, + 0x77, 0xf4, 0x3f, 0x94, 0xc6, 0xd2, 0x06, 0xbc, 0xee, 0xd9, 0x51, 0xd4, 0x64, 0xd7, 0xae, 0xef, + 0xde, 0xdc, 0x92, 0xcd, 0x27, 0xad, 0x0d, 0x32, 0x54, 0xb0, 0xe4, 0x72, 0xd6, 0x3f, 0x5a, 0x6e, + 0xa9, 0xb9, 0x2d, 0xac, 0xd0, 0x70, 0x5c, 0x08, 0xf8, 0x8f, 0xce, 0xeb, 0xf6, 0xcf, 0x8d, 0x38, + 0x15, 0x9b, 0xf9, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x50, 0xb7, 0x1b, 0xc5, 0xa6, 0x2a, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // InstanceServiceClient is the client API for InstanceService service. // @@ -2208,15 +2623,18 @@ type InstanceServiceClient interface { AttachDisk(ctx context.Context, in *AttachInstanceDiskRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Detaches the disk from the instance. DetachDisk(ctx context.Context, in *DetachInstanceDiskRequest, opts ...grpc.CallOption) (*operation.Operation, error) + AddOneToOneNat(ctx context.Context, in *AddInstanceOneToOneNatRequest, opts ...grpc.CallOption) (*operation.Operation, error) + RemoveOneToOneNat(ctx context.Context, in *RemoveInstanceOneToOneNatRequest, opts ...grpc.CallOption) (*operation.Operation, error) + UpdateNetworkInterface(ctx context.Context, in *UpdateInstanceNetworkInterfaceRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Lists operations for the specified instance. ListOperations(ctx context.Context, in *ListInstanceOperationsRequest, opts ...grpc.CallOption) (*ListInstanceOperationsResponse, error) } type instanceServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewInstanceServiceClient(cc *grpc.ClientConn) InstanceServiceClient { +func NewInstanceServiceClient(cc grpc.ClientConnInterface) InstanceServiceClient { return &instanceServiceClient{cc} } @@ -2328,6 +2746,33 @@ func (c *instanceServiceClient) DetachDisk(ctx context.Context, in *DetachInstan return out, nil } +func (c *instanceServiceClient) AddOneToOneNat(ctx context.Context, in *AddInstanceOneToOneNatRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.compute.v1.InstanceService/AddOneToOneNat", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *instanceServiceClient) RemoveOneToOneNat(ctx context.Context, in *RemoveInstanceOneToOneNatRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.compute.v1.InstanceService/RemoveOneToOneNat", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *instanceServiceClient) UpdateNetworkInterface(ctx context.Context, in *UpdateInstanceNetworkInterfaceRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.compute.v1.InstanceService/UpdateNetworkInterface", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *instanceServiceClient) ListOperations(ctx context.Context, in *ListInstanceOperationsRequest, opts ...grpc.CallOption) (*ListInstanceOperationsResponse, error) { out := new(ListInstanceOperationsResponse) err := c.cc.Invoke(ctx, "/yandex.cloud.compute.v1.InstanceService/ListOperations", in, out, opts...) @@ -2368,6 +2813,9 @@ type InstanceServiceServer interface { AttachDisk(context.Context, *AttachInstanceDiskRequest) (*operation.Operation, error) // Detaches the disk from the instance. DetachDisk(context.Context, *DetachInstanceDiskRequest) (*operation.Operation, error) + AddOneToOneNat(context.Context, *AddInstanceOneToOneNatRequest) (*operation.Operation, error) + RemoveOneToOneNat(context.Context, *RemoveInstanceOneToOneNatRequest) (*operation.Operation, error) + UpdateNetworkInterface(context.Context, *UpdateInstanceNetworkInterfaceRequest) (*operation.Operation, error) // Lists operations for the specified instance. ListOperations(context.Context, *ListInstanceOperationsRequest) (*ListInstanceOperationsResponse, error) } @@ -2412,6 +2860,15 @@ func (*UnimplementedInstanceServiceServer) AttachDisk(ctx context.Context, req * func (*UnimplementedInstanceServiceServer) DetachDisk(ctx context.Context, req *DetachInstanceDiskRequest) (*operation.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method DetachDisk not implemented") } +func (*UnimplementedInstanceServiceServer) AddOneToOneNat(ctx context.Context, req *AddInstanceOneToOneNatRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddOneToOneNat not implemented") +} +func (*UnimplementedInstanceServiceServer) RemoveOneToOneNat(ctx context.Context, req *RemoveInstanceOneToOneNatRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveOneToOneNat not implemented") +} +func (*UnimplementedInstanceServiceServer) UpdateNetworkInterface(ctx context.Context, req *UpdateInstanceNetworkInterfaceRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateNetworkInterface not implemented") +} func (*UnimplementedInstanceServiceServer) ListOperations(ctx context.Context, req *ListInstanceOperationsRequest) (*ListInstanceOperationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") } @@ -2636,6 +3093,60 @@ func _InstanceService_DetachDisk_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } +func _InstanceService_AddOneToOneNat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddInstanceOneToOneNatRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InstanceServiceServer).AddOneToOneNat(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.compute.v1.InstanceService/AddOneToOneNat", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InstanceServiceServer).AddOneToOneNat(ctx, req.(*AddInstanceOneToOneNatRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InstanceService_RemoveOneToOneNat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveInstanceOneToOneNatRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InstanceServiceServer).RemoveOneToOneNat(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.compute.v1.InstanceService/RemoveOneToOneNat", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InstanceServiceServer).RemoveOneToOneNat(ctx, req.(*RemoveInstanceOneToOneNatRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InstanceService_UpdateNetworkInterface_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateInstanceNetworkInterfaceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InstanceServiceServer).UpdateNetworkInterface(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.compute.v1.InstanceService/UpdateNetworkInterface", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InstanceServiceServer).UpdateNetworkInterface(ctx, req.(*UpdateInstanceNetworkInterfaceRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _InstanceService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListInstanceOperationsRequest) if err := dec(in); err != nil { @@ -2706,6 +3217,18 @@ var _InstanceService_serviceDesc = grpc.ServiceDesc{ MethodName: "DetachDisk", Handler: _InstanceService_DetachDisk_Handler, }, + { + MethodName: "AddOneToOneNat", + Handler: _InstanceService_AddOneToOneNat_Handler, + }, + { + MethodName: "RemoveOneToOneNat", + Handler: _InstanceService_RemoveOneToOneNat_Handler, + }, + { + MethodName: "UpdateNetworkInterface", + Handler: _InstanceService_UpdateNetworkInterface_Handler, + }, { MethodName: "ListOperations", Handler: _InstanceService_ListOperations_Handler, diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instance_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instance_service.pbext.go new file mode 100644 index 000000000..c346180be --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instance_service.pbext.go @@ -0,0 +1,466 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package compute + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetInstanceRequest) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *GetInstanceRequest) SetView(v InstanceView) { + m.View = v +} + +func (m *ListInstancesRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListInstancesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListInstancesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListInstancesRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListInstancesResponse) SetInstances(v []*Instance) { + m.Instances = v +} + +func (m *ListInstancesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateInstanceRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateInstanceRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateInstanceRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateInstanceRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateInstanceRequest) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *CreateInstanceRequest) SetPlatformId(v string) { + m.PlatformId = v +} + +func (m *CreateInstanceRequest) SetResourcesSpec(v *ResourcesSpec) { + m.ResourcesSpec = v +} + +func (m *CreateInstanceRequest) SetMetadata(v map[string]string) { + m.Metadata = v +} + +func (m *CreateInstanceRequest) SetBootDiskSpec(v *AttachedDiskSpec) { + m.BootDiskSpec = v +} + +func (m *CreateInstanceRequest) SetSecondaryDiskSpecs(v []*AttachedDiskSpec) { + m.SecondaryDiskSpecs = v +} + +func (m *CreateInstanceRequest) SetNetworkInterfaceSpecs(v []*NetworkInterfaceSpec) { + m.NetworkInterfaceSpecs = v +} + +func (m *CreateInstanceRequest) SetHostname(v string) { + m.Hostname = v +} + +func (m *CreateInstanceRequest) SetSchedulingPolicy(v *SchedulingPolicy) { + m.SchedulingPolicy = v +} + +func (m *CreateInstanceRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *CreateInstanceRequest) SetNetworkSettings(v *NetworkSettings) { + m.NetworkSettings = v +} + +func (m *CreateInstanceRequest) SetPlacementPolicy(v *PlacementPolicy) { + m.PlacementPolicy = v +} + +func (m *CreateInstanceMetadata) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *UpdateInstanceRequest) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *UpdateInstanceRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateInstanceRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateInstanceRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateInstanceRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateInstanceRequest) SetPlatformId(v string) { + m.PlatformId = v +} + +func (m *UpdateInstanceRequest) SetResourcesSpec(v *ResourcesSpec) { + m.ResourcesSpec = v +} + +func (m *UpdateInstanceRequest) SetMetadata(v map[string]string) { + m.Metadata = v +} + +func (m *UpdateInstanceRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *UpdateInstanceRequest) SetNetworkSettings(v *NetworkSettings) { + m.NetworkSettings = v +} + +func (m *UpdateInstanceRequest) SetPlacementPolicy(v *PlacementPolicy) { + m.PlacementPolicy = v +} + +func (m *UpdateInstanceMetadata) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *DeleteInstanceRequest) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *DeleteInstanceMetadata) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *UpdateInstanceMetadataRequest) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *UpdateInstanceMetadataRequest) SetDelete(v []string) { + m.Delete = v +} + +func (m *UpdateInstanceMetadataRequest) SetUpsert(v map[string]string) { + m.Upsert = v +} + +func (m *UpdateInstanceMetadataMetadata) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *GetInstanceSerialPortOutputRequest) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *GetInstanceSerialPortOutputRequest) SetPort(v int64) { + m.Port = v +} + +func (m *GetInstanceSerialPortOutputResponse) SetContents(v string) { + m.Contents = v +} + +func (m *StopInstanceRequest) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *StopInstanceMetadata) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *StartInstanceRequest) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *StartInstanceMetadata) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *RestartInstanceRequest) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *RestartInstanceMetadata) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *AttachInstanceDiskRequest) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *AttachInstanceDiskRequest) SetAttachedDiskSpec(v *AttachedDiskSpec) { + m.AttachedDiskSpec = v +} + +func (m *AttachInstanceDiskMetadata) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *AttachInstanceDiskMetadata) SetDiskId(v string) { + m.DiskId = v +} + +type DetachInstanceDiskRequest_Disk = isDetachInstanceDiskRequest_Disk + +func (m *DetachInstanceDiskRequest) SetDisk(v DetachInstanceDiskRequest_Disk) { + m.Disk = v +} + +func (m *DetachInstanceDiskRequest) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *DetachInstanceDiskRequest) SetDiskId(v string) { + m.Disk = &DetachInstanceDiskRequest_DiskId{ + DiskId: v, + } +} + +func (m *DetachInstanceDiskRequest) SetDeviceName(v string) { + m.Disk = &DetachInstanceDiskRequest_DeviceName{ + DeviceName: v, + } +} + +func (m *DetachInstanceDiskMetadata) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *DetachInstanceDiskMetadata) SetDiskId(v string) { + m.DiskId = v +} + +func (m *AddInstanceOneToOneNatRequest) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *AddInstanceOneToOneNatRequest) SetNetworkInterfaceIndex(v string) { + m.NetworkInterfaceIndex = v +} + +func (m *AddInstanceOneToOneNatRequest) SetInternalAddress(v string) { + m.InternalAddress = v +} + +func (m *AddInstanceOneToOneNatRequest) SetOneToOneNatSpec(v *OneToOneNatSpec) { + m.OneToOneNatSpec = v +} + +func (m *AddInstanceOneToOneNatMetadata) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *RemoveInstanceOneToOneNatRequest) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *RemoveInstanceOneToOneNatRequest) SetNetworkInterfaceIndex(v string) { + m.NetworkInterfaceIndex = v +} + +func (m *RemoveInstanceOneToOneNatRequest) SetInternalAddress(v string) { + m.InternalAddress = v +} + +func (m *RemoveInstanceOneToOneNatMetadata) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *UpdateInstanceNetworkInterfaceRequest) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *UpdateInstanceNetworkInterfaceRequest) SetNetworkInterfaceIndex(v string) { + m.NetworkInterfaceIndex = v +} + +func (m *UpdateInstanceNetworkInterfaceRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateInstanceNetworkInterfaceRequest) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *UpdateInstanceNetworkInterfaceRequest) SetPrimaryV4AddressSpec(v *PrimaryAddressSpec) { + m.PrimaryV4AddressSpec = v +} + +func (m *UpdateInstanceNetworkInterfaceRequest) SetPrimaryV6AddressSpec(v *PrimaryAddressSpec) { + m.PrimaryV6AddressSpec = v +} + +func (m *UpdateInstanceNetworkInterfaceRequest) SetSecurityGroupIds(v []string) { + m.SecurityGroupIds = v +} + +func (m *UpdateInstanceNetworkInterfaceMetadata) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *UpdateInstanceNetworkInterfaceMetadata) SetNetworkInterfaceIndex(v string) { + m.NetworkInterfaceIndex = v +} + +func (m *ListInstanceOperationsRequest) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *ListInstanceOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListInstanceOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListInstanceOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListInstanceOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ResourcesSpec) SetMemory(v int64) { + m.Memory = v +} + +func (m *ResourcesSpec) SetCores(v int64) { + m.Cores = v +} + +func (m *ResourcesSpec) SetCoreFraction(v int64) { + m.CoreFraction = v +} + +func (m *ResourcesSpec) SetGpus(v int64) { + m.Gpus = v +} + +type AttachedDiskSpec_Disk = isAttachedDiskSpec_Disk + +func (m *AttachedDiskSpec) SetDisk(v AttachedDiskSpec_Disk) { + m.Disk = v +} + +func (m *AttachedDiskSpec) SetMode(v AttachedDiskSpec_Mode) { + m.Mode = v +} + +func (m *AttachedDiskSpec) SetDeviceName(v string) { + m.DeviceName = v +} + +func (m *AttachedDiskSpec) SetAutoDelete(v bool) { + m.AutoDelete = v +} + +func (m *AttachedDiskSpec) SetDiskSpec(v *AttachedDiskSpec_DiskSpec) { + m.Disk = &AttachedDiskSpec_DiskSpec_{ + DiskSpec: v, + } +} + +func (m *AttachedDiskSpec) SetDiskId(v string) { + m.Disk = &AttachedDiskSpec_DiskId{ + DiskId: v, + } +} + +type AttachedDiskSpec_DiskSpec_Source = isAttachedDiskSpec_DiskSpec_Source + +func (m *AttachedDiskSpec_DiskSpec) SetSource(v AttachedDiskSpec_DiskSpec_Source) { + m.Source = v +} + +func (m *AttachedDiskSpec_DiskSpec) SetName(v string) { + m.Name = v +} + +func (m *AttachedDiskSpec_DiskSpec) SetDescription(v string) { + m.Description = v +} + +func (m *AttachedDiskSpec_DiskSpec) SetTypeId(v string) { + m.TypeId = v +} + +func (m *AttachedDiskSpec_DiskSpec) SetSize(v int64) { + m.Size = v +} + +func (m *AttachedDiskSpec_DiskSpec) SetImageId(v string) { + m.Source = &AttachedDiskSpec_DiskSpec_ImageId{ + ImageId: v, + } +} + +func (m *AttachedDiskSpec_DiskSpec) SetSnapshotId(v string) { + m.Source = &AttachedDiskSpec_DiskSpec_SnapshotId{ + SnapshotId: v, + } +} + +func (m *NetworkInterfaceSpec) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *NetworkInterfaceSpec) SetPrimaryV4AddressSpec(v *PrimaryAddressSpec) { + m.PrimaryV4AddressSpec = v +} + +func (m *NetworkInterfaceSpec) SetPrimaryV6AddressSpec(v *PrimaryAddressSpec) { + m.PrimaryV6AddressSpec = v +} + +func (m *NetworkInterfaceSpec) SetSecurityGroupIds(v []string) { + m.SecurityGroupIds = v +} + +func (m *PrimaryAddressSpec) SetAddress(v string) { + m.Address = v +} + +func (m *PrimaryAddressSpec) SetOneToOneNatSpec(v *OneToOneNatSpec) { + m.OneToOneNatSpec = v +} + +func (m *OneToOneNatSpec) SetIpVersion(v IpVersion) { + m.IpVersion = v +} + +func (m *OneToOneNatSpec) SetAddress(v string) { + m.Address = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup/instance_group.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup/instance_group.pb.go index 0180f343e..eef281a00 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup/instance_group.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup/instance_group.pb.go @@ -53,6 +53,126 @@ func (IpVersion) EnumDescriptor() ([]byte, []int) { return fileDescriptor_993454707bf70b9b, []int{0} } +type InstanceGroup_Status int32 + +const ( + InstanceGroup_STATUS_UNSPECIFIED InstanceGroup_Status = 0 + // Instance group is being started and will become active soon. + InstanceGroup_STARTING InstanceGroup_Status = 1 + // Instance group is active. + // In this state the group manages its instances and monitors their health, + // creating, deleting, stopping, updating and starting instances as needed. + // To stop the instance group, call [yandex.cloud.compute.v1.instancegroup.InstanceGroupService.Stop]. + InstanceGroup_ACTIVE InstanceGroup_Status = 2 + // Instance group is being stopped. + // Group's instances stop receiving traffic from the load balancer (if any) and are then stopped. + InstanceGroup_STOPPING InstanceGroup_Status = 3 + // Instance group is stopped. + // In this state the group cannot be updated and does not react to any changes made to its instances. + // To start the instance group, call [yandex.cloud.compute.v1.instancegroup.InstanceGroupService.Start]. + InstanceGroup_STOPPED InstanceGroup_Status = 4 + // Instance group is being deleted. + InstanceGroup_DELETING InstanceGroup_Status = 5 +) + +var InstanceGroup_Status_name = map[int32]string{ + 0: "STATUS_UNSPECIFIED", + 1: "STARTING", + 2: "ACTIVE", + 3: "STOPPING", + 4: "STOPPED", + 5: "DELETING", +} + +var InstanceGroup_Status_value = map[string]int32{ + "STATUS_UNSPECIFIED": 0, + "STARTING": 1, + "ACTIVE": 2, + "STOPPING": 3, + "STOPPED": 4, + "DELETING": 5, +} + +func (x InstanceGroup_Status) String() string { + return proto.EnumName(InstanceGroup_Status_name, int32(x)) +} + +func (InstanceGroup_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_993454707bf70b9b, []int{0, 0} +} + +type ScalePolicy_CustomRule_RuleType int32 + +const ( + ScalePolicy_CustomRule_RULE_TYPE_UNSPECIFIED ScalePolicy_CustomRule_RuleType = 0 + // This type means that the metric applies to one instance. + // First, Instance Groups calculates the average metric value for each instance, + // then averages the values for instances in one availability zone. + // This type of metric must have the `instance_id` label. + ScalePolicy_CustomRule_UTILIZATION ScalePolicy_CustomRule_RuleType = 1 + // This type means that the metric applies to instances in one availability zone. + // This type of metric must have the `zone_id` label. + ScalePolicy_CustomRule_WORKLOAD ScalePolicy_CustomRule_RuleType = 2 +) + +var ScalePolicy_CustomRule_RuleType_name = map[int32]string{ + 0: "RULE_TYPE_UNSPECIFIED", + 1: "UTILIZATION", + 2: "WORKLOAD", +} + +var ScalePolicy_CustomRule_RuleType_value = map[string]int32{ + "RULE_TYPE_UNSPECIFIED": 0, + "UTILIZATION": 1, + "WORKLOAD": 2, +} + +func (x ScalePolicy_CustomRule_RuleType) String() string { + return proto.EnumName(ScalePolicy_CustomRule_RuleType_name, int32(x)) +} + +func (ScalePolicy_CustomRule_RuleType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_993454707bf70b9b, []int{4, 2, 0} +} + +type ScalePolicy_CustomRule_MetricType int32 + +const ( + ScalePolicy_CustomRule_METRIC_TYPE_UNSPECIFIED ScalePolicy_CustomRule_MetricType = 0 + // This type is used for metrics that show the metric value at a certain point in time, + // such as requests per second to the server on an instance. + // + // Instance Groups calculates the average metric value for the period + // specified in the [AutoScale.measurement_duration] field. + ScalePolicy_CustomRule_GAUGE ScalePolicy_CustomRule_MetricType = 1 + // This type is used for metrics that monotonically increase over time, + // such as the total number of requests to the server on an instance. + // + // Instance Groups calculates the average value increase for the period + // specified in the [AutoScale.measurement_duration] field. + ScalePolicy_CustomRule_COUNTER ScalePolicy_CustomRule_MetricType = 2 +) + +var ScalePolicy_CustomRule_MetricType_name = map[int32]string{ + 0: "METRIC_TYPE_UNSPECIFIED", + 1: "GAUGE", + 2: "COUNTER", +} + +var ScalePolicy_CustomRule_MetricType_value = map[string]int32{ + "METRIC_TYPE_UNSPECIFIED": 0, + "GAUGE": 1, + "COUNTER": 2, +} + +func (x ScalePolicy_CustomRule_MetricType) String() string { + return proto.EnumName(ScalePolicy_CustomRule_MetricType_name, int32(x)) +} + +func (ScalePolicy_CustomRule_MetricType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_993454707bf70b9b, []int{4, 2, 1} +} + type AttachedDiskSpec_Mode int32 const ( @@ -80,7 +200,38 @@ func (x AttachedDiskSpec_Mode) String() string { } func (AttachedDiskSpec_Mode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{8, 0} + return fileDescriptor_993454707bf70b9b, []int{9, 0} +} + +type NetworkSettings_Type int32 + +const ( + NetworkSettings_TYPE_UNSPECIFIED NetworkSettings_Type = 0 + NetworkSettings_STANDARD NetworkSettings_Type = 1 + NetworkSettings_SOFTWARE_ACCELERATED NetworkSettings_Type = 2 + NetworkSettings_HARDWARE_ACCELERATED NetworkSettings_Type = 3 +) + +var NetworkSettings_Type_name = map[int32]string{ + 0: "TYPE_UNSPECIFIED", + 1: "STANDARD", + 2: "SOFTWARE_ACCELERATED", + 3: "HARDWARE_ACCELERATED", +} + +var NetworkSettings_Type_value = map[string]int32{ + "TYPE_UNSPECIFIED": 0, + "STANDARD": 1, + "SOFTWARE_ACCELERATED": 2, + "HARDWARE_ACCELERATED": 3, +} + +func (x NetworkSettings_Type) String() string { + return proto.EnumName(NetworkSettings_Type_name, int32(x)) +} + +func (NetworkSettings_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_993454707bf70b9b, []int{14, 0} } type ManagedInstance_Status int32 @@ -159,7 +310,7 @@ func (x ManagedInstance_Status) String() string { } func (ManagedInstance_Status) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{17, 0} + return fileDescriptor_993454707bf70b9b, []int{19, 0} } type InstanceGroup struct { @@ -179,7 +330,7 @@ type InstanceGroup struct { // Instance template for creating the instance group. // For more information, see [Instance Templates](/docs/compute/concepts/ig-instance-templates). InstanceTemplate *InstanceTemplate `protobuf:"bytes,7,opt,name=instance_template,json=instanceTemplate,proto3" json:"instance_template,omitempty"` - // Scaling policy of the instance group. + // [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group. ScalePolicy *ScalePolicy `protobuf:"bytes,8,opt,name=scale_policy,json=scalePolicy,proto3" json:"scale_policy,omitempty"` // Deployment policy of the instance group. DeployPolicy *DeployPolicy `protobuf:"bytes,9,opt,name=deploy_policy,json=deployPolicy,proto3" json:"deploy_policy,omitempty"` @@ -196,7 +347,12 @@ type InstanceGroup struct { // ID of the service account. The service account will be used for all API calls // made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts). // To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request. - ServiceAccountId string `protobuf:"bytes,16,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + ServiceAccountId string `protobuf:"bytes,16,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + // Status of the instance group. + Status InstanceGroup_Status `protobuf:"varint,17,opt,name=status,proto3,enum=yandex.cloud.compute.v1.instancegroup.InstanceGroup_Status" json:"status,omitempty"` + Variables []*Variable `protobuf:"bytes,18,rep,name=variables,proto3" json:"variables,omitempty"` + // Flag that inhibits deletion of the instance group + DeletionProtection bool `protobuf:"varint,19,opt,name=deletion_protection,json=deletionProtection,proto3" json:"deletion_protection,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -332,6 +488,74 @@ func (m *InstanceGroup) GetServiceAccountId() string { return "" } +func (m *InstanceGroup) GetStatus() InstanceGroup_Status { + if m != nil { + return m.Status + } + return InstanceGroup_STATUS_UNSPECIFIED +} + +func (m *InstanceGroup) GetVariables() []*Variable { + if m != nil { + return m.Variables + } + return nil +} + +func (m *InstanceGroup) GetDeletionProtection() bool { + if m != nil { + return m.DeletionProtection + } + return false +} + +type Variable struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Variable) Reset() { *m = Variable{} } +func (m *Variable) String() string { return proto.CompactTextString(m) } +func (*Variable) ProtoMessage() {} +func (*Variable) Descriptor() ([]byte, []int) { + return fileDescriptor_993454707bf70b9b, []int{1} +} + +func (m *Variable) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Variable.Unmarshal(m, b) +} +func (m *Variable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Variable.Marshal(b, m, deterministic) +} +func (m *Variable) XXX_Merge(src proto.Message) { + xxx_messageInfo_Variable.Merge(m, src) +} +func (m *Variable) XXX_Size() int { + return xxx_messageInfo_Variable.Size(m) +} +func (m *Variable) XXX_DiscardUnknown() { + xxx_messageInfo_Variable.DiscardUnknown(m) +} + +var xxx_messageInfo_Variable proto.InternalMessageInfo + +func (m *Variable) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *Variable) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + type LoadBalancerState struct { // ID of the target group used for load balancing. TargetGroupId string `protobuf:"bytes,1,opt,name=target_group_id,json=targetGroupId,proto3" json:"target_group_id,omitempty"` @@ -346,7 +570,7 @@ func (m *LoadBalancerState) Reset() { *m = LoadBalancerState{} } func (m *LoadBalancerState) String() string { return proto.CompactTextString(m) } func (*LoadBalancerState) ProtoMessage() {} func (*LoadBalancerState) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{1} + return fileDescriptor_993454707bf70b9b, []int{2} } func (m *LoadBalancerState) XXX_Unmarshal(b []byte) error { @@ -399,7 +623,7 @@ func (m *ManagedInstancesState) Reset() { *m = ManagedInstancesState{} } func (m *ManagedInstancesState) String() string { return proto.CompactTextString(m) } func (*ManagedInstancesState) ProtoMessage() {} func (*ManagedInstancesState) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{2} + return fileDescriptor_993454707bf70b9b, []int{3} } func (m *ManagedInstancesState) XXX_Unmarshal(b []byte) error { @@ -478,7 +702,7 @@ func (m *ManagedInstancesState_Statuses) Reset() { *m = ManagedInstances func (m *ManagedInstancesState_Statuses) String() string { return proto.CompactTextString(m) } func (*ManagedInstancesState_Statuses) ProtoMessage() {} func (*ManagedInstancesState_Statuses) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{2, 0} + return fileDescriptor_993454707bf70b9b, []int{3, 0} } func (m *ManagedInstancesState_Statuses) XXX_Unmarshal(b []byte) error { @@ -573,17 +797,19 @@ type ScalePolicy struct { // Types that are valid to be assigned to ScaleType: // *ScalePolicy_FixedScale_ // *ScalePolicy_AutoScale_ - ScaleType isScalePolicy_ScaleType `protobuf_oneof:"scale_type"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ScaleType isScalePolicy_ScaleType `protobuf_oneof:"scale_type"` + // Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group. + TestAutoScale *ScalePolicy_AutoScale `protobuf:"bytes,3,opt,name=test_auto_scale,json=testAutoScale,proto3" json:"test_auto_scale,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ScalePolicy) Reset() { *m = ScalePolicy{} } func (m *ScalePolicy) String() string { return proto.CompactTextString(m) } func (*ScalePolicy) ProtoMessage() {} func (*ScalePolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{3} + return fileDescriptor_993454707bf70b9b, []int{4} } func (m *ScalePolicy) XXX_Unmarshal(b []byte) error { @@ -641,6 +867,13 @@ func (m *ScalePolicy) GetAutoScale() *ScalePolicy_AutoScale { return nil } +func (m *ScalePolicy) GetTestAutoScale() *ScalePolicy_AutoScale { + if m != nil { + return m.TestAutoScale + } + return nil +} + // XXX_OneofWrappers is for the internal use of the proto package. func (*ScalePolicy) XXX_OneofWrappers() []interface{} { return []interface{}{ @@ -654,22 +887,33 @@ type ScalePolicy_AutoScale struct { MinZoneSize int64 `protobuf:"varint,1,opt,name=min_zone_size,json=minZoneSize,proto3" json:"min_zone_size,omitempty"` // Upper limit for total instance count (across all zones). // 0 means maximum limit = 100. - MaxSize int64 `protobuf:"varint,2,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"` - MeasurementDuration *duration.Duration `protobuf:"bytes,3,opt,name=measurement_duration,json=measurementDuration,proto3" json:"measurement_duration,omitempty"` - WarmupDuration *duration.Duration `protobuf:"bytes,4,opt,name=warmup_duration,json=warmupDuration,proto3" json:"warmup_duration,omitempty"` - StabilizationDuration *duration.Duration `protobuf:"bytes,5,opt,name=stabilization_duration,json=stabilizationDuration,proto3" json:"stabilization_duration,omitempty"` - InitialSize int64 `protobuf:"varint,6,opt,name=initial_size,json=initialSize,proto3" json:"initial_size,omitempty"` - CpuUtilizationRule *ScalePolicy_CpuUtilizationRule `protobuf:"bytes,7,opt,name=cpu_utilization_rule,json=cpuUtilizationRule,proto3" json:"cpu_utilization_rule,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MaxSize int64 `protobuf:"varint,2,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"` + // Time in seconds allotted for averaging metrics. + MeasurementDuration *duration.Duration `protobuf:"bytes,3,opt,name=measurement_duration,json=measurementDuration,proto3" json:"measurement_duration,omitempty"` + // The warmup time of the instance in seconds. During this time, + // traffic is sent to the instance, but instance metrics are not collected. + WarmupDuration *duration.Duration `protobuf:"bytes,4,opt,name=warmup_duration,json=warmupDuration,proto3" json:"warmup_duration,omitempty"` + // Minimum amount of time in seconds allotted for monitoring before + // Instance Groups can reduce the number of instances in the group. + // During this time, the group size doesn't decrease, even if the new metric values + // indicate that it should. + StabilizationDuration *duration.Duration `protobuf:"bytes,5,opt,name=stabilization_duration,json=stabilizationDuration,proto3" json:"stabilization_duration,omitempty"` + // Target group size. + InitialSize int64 `protobuf:"varint,6,opt,name=initial_size,json=initialSize,proto3" json:"initial_size,omitempty"` + // Defines an autoscaling rule based on the average CPU utilization of the instance group. + CpuUtilizationRule *ScalePolicy_CpuUtilizationRule `protobuf:"bytes,7,opt,name=cpu_utilization_rule,json=cpuUtilizationRule,proto3" json:"cpu_utilization_rule,omitempty"` + // Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Yandex Monitoring. + CustomRules []*ScalePolicy_CustomRule `protobuf:"bytes,8,rep,name=custom_rules,json=customRules,proto3" json:"custom_rules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ScalePolicy_AutoScale) Reset() { *m = ScalePolicy_AutoScale{} } func (m *ScalePolicy_AutoScale) String() string { return proto.CompactTextString(m) } func (*ScalePolicy_AutoScale) ProtoMessage() {} func (*ScalePolicy_AutoScale) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{3, 0} + return fileDescriptor_993454707bf70b9b, []int{4, 0} } func (m *ScalePolicy_AutoScale) XXX_Unmarshal(b []byte) error { @@ -739,7 +983,15 @@ func (m *ScalePolicy_AutoScale) GetCpuUtilizationRule() *ScalePolicy_CpuUtilizat return nil } +func (m *ScalePolicy_AutoScale) GetCustomRules() []*ScalePolicy_CustomRule { + if m != nil { + return m.CustomRules + } + return nil +} + type ScalePolicy_CpuUtilizationRule struct { + // Target CPU utilization level. Instance Groups maintains this level for each availability zone. UtilizationTarget float64 `protobuf:"fixed64,1,opt,name=utilization_target,json=utilizationTarget,proto3" json:"utilization_target,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -750,7 +1002,7 @@ func (m *ScalePolicy_CpuUtilizationRule) Reset() { *m = ScalePolicy_CpuU func (m *ScalePolicy_CpuUtilizationRule) String() string { return proto.CompactTextString(m) } func (*ScalePolicy_CpuUtilizationRule) ProtoMessage() {} func (*ScalePolicy_CpuUtilizationRule) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{3, 1} + return fileDescriptor_993454707bf70b9b, []int{4, 1} } func (m *ScalePolicy_CpuUtilizationRule) XXX_Unmarshal(b []byte) error { @@ -778,6 +1030,83 @@ func (m *ScalePolicy_CpuUtilizationRule) GetUtilizationTarget() float64 { return 0 } +type ScalePolicy_CustomRule struct { + // Custom metric rule type. This field affects which label from + // the custom metric should be used: `zone_id` or `instance_id`. + RuleType ScalePolicy_CustomRule_RuleType `protobuf:"varint,1,opt,name=rule_type,json=ruleType,proto3,enum=yandex.cloud.compute.v1.instancegroup.ScalePolicy_CustomRule_RuleType" json:"rule_type,omitempty"` + // Type of custom metric. This field affects how Instance Groups calculates the average metric value. + MetricType ScalePolicy_CustomRule_MetricType `protobuf:"varint,2,opt,name=metric_type,json=metricType,proto3,enum=yandex.cloud.compute.v1.instancegroup.ScalePolicy_CustomRule_MetricType" json:"metric_type,omitempty"` + // Name of custom metric in Yandex Monitoring that should be used for scaling. + MetricName string `protobuf:"bytes,3,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"` + // Labels of custom metric in Yandex Monitoring that should be used for scaling. + Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Target value for the custom metric. Instance Groups maintains this level for each availability zone. + Target float64 `protobuf:"fixed64,4,opt,name=target,proto3" json:"target,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScalePolicy_CustomRule) Reset() { *m = ScalePolicy_CustomRule{} } +func (m *ScalePolicy_CustomRule) String() string { return proto.CompactTextString(m) } +func (*ScalePolicy_CustomRule) ProtoMessage() {} +func (*ScalePolicy_CustomRule) Descriptor() ([]byte, []int) { + return fileDescriptor_993454707bf70b9b, []int{4, 2} +} + +func (m *ScalePolicy_CustomRule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ScalePolicy_CustomRule.Unmarshal(m, b) +} +func (m *ScalePolicy_CustomRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ScalePolicy_CustomRule.Marshal(b, m, deterministic) +} +func (m *ScalePolicy_CustomRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScalePolicy_CustomRule.Merge(m, src) +} +func (m *ScalePolicy_CustomRule) XXX_Size() int { + return xxx_messageInfo_ScalePolicy_CustomRule.Size(m) +} +func (m *ScalePolicy_CustomRule) XXX_DiscardUnknown() { + xxx_messageInfo_ScalePolicy_CustomRule.DiscardUnknown(m) +} + +var xxx_messageInfo_ScalePolicy_CustomRule proto.InternalMessageInfo + +func (m *ScalePolicy_CustomRule) GetRuleType() ScalePolicy_CustomRule_RuleType { + if m != nil { + return m.RuleType + } + return ScalePolicy_CustomRule_RULE_TYPE_UNSPECIFIED +} + +func (m *ScalePolicy_CustomRule) GetMetricType() ScalePolicy_CustomRule_MetricType { + if m != nil { + return m.MetricType + } + return ScalePolicy_CustomRule_METRIC_TYPE_UNSPECIFIED +} + +func (m *ScalePolicy_CustomRule) GetMetricName() string { + if m != nil { + return m.MetricName + } + return "" +} + +func (m *ScalePolicy_CustomRule) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *ScalePolicy_CustomRule) GetTarget() float64 { + if m != nil { + return m.Target + } + return 0 +} + type ScalePolicy_FixedScale struct { // Number of instances in the instance group. Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` @@ -790,7 +1119,7 @@ func (m *ScalePolicy_FixedScale) Reset() { *m = ScalePolicy_FixedScale{} func (m *ScalePolicy_FixedScale) String() string { return proto.CompactTextString(m) } func (*ScalePolicy_FixedScale) ProtoMessage() {} func (*ScalePolicy_FixedScale) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{3, 2} + return fileDescriptor_993454707bf70b9b, []int{4, 3} } func (m *ScalePolicy_FixedScale) XXX_Unmarshal(b []byte) error { @@ -845,7 +1174,7 @@ func (m *DeployPolicy) Reset() { *m = DeployPolicy{} } func (m *DeployPolicy) String() string { return proto.CompactTextString(m) } func (*DeployPolicy) ProtoMessage() {} func (*DeployPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{4} + return fileDescriptor_993454707bf70b9b, []int{5} } func (m *DeployPolicy) XXX_Unmarshal(b []byte) error { @@ -913,7 +1242,7 @@ func (m *AllocationPolicy) Reset() { *m = AllocationPolicy{} } func (m *AllocationPolicy) String() string { return proto.CompactTextString(m) } func (*AllocationPolicy) ProtoMessage() {} func (*AllocationPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{5} + return fileDescriptor_993454707bf70b9b, []int{6} } func (m *AllocationPolicy) XXX_Unmarshal(b []byte) error { @@ -953,7 +1282,7 @@ func (m *AllocationPolicy_Zone) Reset() { *m = AllocationPolicy_Zone{} } func (m *AllocationPolicy_Zone) String() string { return proto.CompactTextString(m) } func (*AllocationPolicy_Zone) ProtoMessage() {} func (*AllocationPolicy_Zone) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{5, 0} + return fileDescriptor_993454707bf70b9b, []int{6, 0} } func (m *AllocationPolicy_Zone) XXX_Unmarshal(b []byte) error { @@ -995,6 +1324,19 @@ type InstanceTemplate struct { ResourcesSpec *ResourcesSpec `protobuf:"bytes,4,opt,name=resources_spec,json=resourcesSpec,proto3" json:"resources_spec,omitempty"` // The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys. // + // Metadata values may contain one of the supported placeholders: + // {instance_group.id} + // {instance.short_id} + // {instance.index} + // {instance.index_in_zone} + // {instance.zone_id} + // InstanceGroup and Instance labels may be copied to metadata following way: + // {instance_group.labels.some_label_key} + // {instance.labels.another_label_key} + // These placeholders will be substituted for each created instance anywhere in the value text. + // In the rare case the value requires to contain this placeholder explicitly, + // it must be escaped with double brackets, in example {instance.index}. + // // For example, you may use the metadata in order to provide your public SSH key to the instance. // For more information, see [Metadata](/docs/compute/concepts/vm-metadata). Metadata map[string]string `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` @@ -1007,7 +1349,32 @@ type InstanceTemplate struct { // Scheduling policy for the instance. SchedulingPolicy *SchedulingPolicy `protobuf:"bytes,9,opt,name=scheduling_policy,json=schedulingPolicy,proto3" json:"scheduling_policy,omitempty"` // Service account ID for the instance. - ServiceAccountId string `protobuf:"bytes,10,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + ServiceAccountId string `protobuf:"bytes,10,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + // Network settings for the instance. + NetworkSettings *NetworkSettings `protobuf:"bytes,11,opt,name=network_settings,json=networkSettings,proto3" json:"network_settings,omitempty"` + // Name of the instance. + // In order to be unique it must contain at least on of instance unique placeholders: + // {instance.short_id} + // {instance.index} + // combination of {instance.zone_id} and {instance.index_in_zone} + // Example: my-instance-{instance.index} + // If not set, default is used: {instance_group.id}-{instance.short_id} + // It may also contain another placeholders, see metadata doc for full list. + Name string `protobuf:"bytes,12,opt,name=name,proto3" json:"name,omitempty"` + // Host name for the instance. + // This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value. + // The host name must be unique within the network and region. + // If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance + // and FQDN will be `.auto.internal`. Otherwise FQDN will be `..internal`. + // + // In order to be unique it must contain at least on of instance unique placeholders: + // {instance.short_id} + // {instance.index} + // combination of {instance.zone_id} and {instance.index_in_zone} + // Example: my-instance-{instance.index} + // If not set, `name` value will be used + // It may also contain another placeholders, see metadata doc for full list. + Hostname string `protobuf:"bytes,13,opt,name=hostname,proto3" json:"hostname,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1017,7 +1384,7 @@ func (m *InstanceTemplate) Reset() { *m = InstanceTemplate{} } func (m *InstanceTemplate) String() string { return proto.CompactTextString(m) } func (*InstanceTemplate) ProtoMessage() {} func (*InstanceTemplate) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{6} + return fileDescriptor_993454707bf70b9b, []int{7} } func (m *InstanceTemplate) XXX_Unmarshal(b []byte) error { @@ -1108,6 +1475,27 @@ func (m *InstanceTemplate) GetServiceAccountId() string { return "" } +func (m *InstanceTemplate) GetNetworkSettings() *NetworkSettings { + if m != nil { + return m.NetworkSettings + } + return nil +} + +func (m *InstanceTemplate) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *InstanceTemplate) GetHostname() string { + if m != nil { + return m.Hostname + } + return "" +} + type ResourcesSpec struct { // The amount of memory available to the instance, specified in bytes. Memory int64 `protobuf:"varint,1,opt,name=memory,proto3" json:"memory,omitempty"` @@ -1127,7 +1515,7 @@ func (m *ResourcesSpec) Reset() { *m = ResourcesSpec{} } func (m *ResourcesSpec) String() string { return proto.CompactTextString(m) } func (*ResourcesSpec) ProtoMessage() {} func (*ResourcesSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{7} + return fileDescriptor_993454707bf70b9b, []int{8} } func (m *ResourcesSpec) XXX_Unmarshal(b []byte) error { @@ -1184,18 +1572,21 @@ type AttachedDiskSpec struct { // // This value can be used to reference the device for mounting, resizing, and so on, from within the instance. DeviceName string `protobuf:"bytes,2,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` + //oneof disk_spec or disk_id // Disk specification that is attached to the instance. For more information, see [Disks](/docs/compute/concepts/disk). - DiskSpec *AttachedDiskSpec_DiskSpec `protobuf:"bytes,3,opt,name=disk_spec,json=diskSpec,proto3" json:"disk_spec,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + DiskSpec *AttachedDiskSpec_DiskSpec `protobuf:"bytes,3,opt,name=disk_spec,json=diskSpec,proto3" json:"disk_spec,omitempty"` + // Set to use an existing disk. To set use variables. + DiskId string `protobuf:"bytes,4,opt,name=disk_id,json=diskId,proto3" json:"disk_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AttachedDiskSpec) Reset() { *m = AttachedDiskSpec{} } func (m *AttachedDiskSpec) String() string { return proto.CompactTextString(m) } func (*AttachedDiskSpec) ProtoMessage() {} func (*AttachedDiskSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{8} + return fileDescriptor_993454707bf70b9b, []int{9} } func (m *AttachedDiskSpec) XXX_Unmarshal(b []byte) error { @@ -1237,6 +1628,13 @@ func (m *AttachedDiskSpec) GetDiskSpec() *AttachedDiskSpec_DiskSpec { return nil } +func (m *AttachedDiskSpec) GetDiskId() string { + if m != nil { + return m.DiskId + } + return "" +} + type AttachedDiskSpec_DiskSpec struct { // Description of the disk. Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` @@ -1257,7 +1655,7 @@ func (m *AttachedDiskSpec_DiskSpec) Reset() { *m = AttachedDiskSpec_Disk func (m *AttachedDiskSpec_DiskSpec) String() string { return proto.CompactTextString(m) } func (*AttachedDiskSpec_DiskSpec) ProtoMessage() {} func (*AttachedDiskSpec_DiskSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{8, 0} + return fileDescriptor_993454707bf70b9b, []int{9, 0} } func (m *AttachedDiskSpec_DiskSpec) XXX_Unmarshal(b []byte) error { @@ -1353,16 +1751,18 @@ type NetworkInterfaceSpec struct { PrimaryV4AddressSpec *PrimaryAddressSpec `protobuf:"bytes,3,opt,name=primary_v4_address_spec,json=primaryV4AddressSpec,proto3" json:"primary_v4_address_spec,omitempty"` // Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet. PrimaryV6AddressSpec *PrimaryAddressSpec `protobuf:"bytes,4,opt,name=primary_v6_address_spec,json=primaryV6AddressSpec,proto3" json:"primary_v6_address_spec,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // IDs of security groups. + SecurityGroupIds []string `protobuf:"bytes,5,rep,name=security_group_ids,json=securityGroupIds,proto3" json:"security_group_ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *NetworkInterfaceSpec) Reset() { *m = NetworkInterfaceSpec{} } func (m *NetworkInterfaceSpec) String() string { return proto.CompactTextString(m) } func (*NetworkInterfaceSpec) ProtoMessage() {} func (*NetworkInterfaceSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{9} + return fileDescriptor_993454707bf70b9b, []int{10} } func (m *NetworkInterfaceSpec) XXX_Unmarshal(b []byte) error { @@ -1411,6 +1811,13 @@ func (m *NetworkInterfaceSpec) GetPrimaryV6AddressSpec() *PrimaryAddressSpec { return nil } +func (m *NetworkInterfaceSpec) GetSecurityGroupIds() []string { + if m != nil { + return m.SecurityGroupIds + } + return nil +} + type PrimaryAddressSpec struct { // An external IP address configuration. // If not specified, then this managed instance will have no external internet access. @@ -1424,7 +1831,7 @@ func (m *PrimaryAddressSpec) Reset() { *m = PrimaryAddressSpec{} } func (m *PrimaryAddressSpec) String() string { return proto.CompactTextString(m) } func (*PrimaryAddressSpec) ProtoMessage() {} func (*PrimaryAddressSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{10} + return fileDescriptor_993454707bf70b9b, []int{11} } func (m *PrimaryAddressSpec) XXX_Unmarshal(b []byte) error { @@ -1464,7 +1871,7 @@ func (m *OneToOneNatSpec) Reset() { *m = OneToOneNatSpec{} } func (m *OneToOneNatSpec) String() string { return proto.CompactTextString(m) } func (*OneToOneNatSpec) ProtoMessage() {} func (*OneToOneNatSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{11} + return fileDescriptor_993454707bf70b9b, []int{12} } func (m *OneToOneNatSpec) XXX_Unmarshal(b []byte) error { @@ -1506,7 +1913,7 @@ func (m *SchedulingPolicy) Reset() { *m = SchedulingPolicy{} } func (m *SchedulingPolicy) String() string { return proto.CompactTextString(m) } func (*SchedulingPolicy) ProtoMessage() {} func (*SchedulingPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{12} + return fileDescriptor_993454707bf70b9b, []int{13} } func (m *SchedulingPolicy) XXX_Unmarshal(b []byte) error { @@ -1534,6 +1941,46 @@ func (m *SchedulingPolicy) GetPreemptible() bool { return false } +type NetworkSettings struct { + // Type of instance network. + Type NetworkSettings_Type `protobuf:"varint,1,opt,name=type,proto3,enum=yandex.cloud.compute.v1.instancegroup.NetworkSettings_Type" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkSettings) Reset() { *m = NetworkSettings{} } +func (m *NetworkSettings) String() string { return proto.CompactTextString(m) } +func (*NetworkSettings) ProtoMessage() {} +func (*NetworkSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_993454707bf70b9b, []int{14} +} + +func (m *NetworkSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NetworkSettings.Unmarshal(m, b) +} +func (m *NetworkSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NetworkSettings.Marshal(b, m, deterministic) +} +func (m *NetworkSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkSettings.Merge(m, src) +} +func (m *NetworkSettings) XXX_Size() int { + return xxx_messageInfo_NetworkSettings.Size(m) +} +func (m *NetworkSettings) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkSettings.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkSettings proto.InternalMessageInfo + +func (m *NetworkSettings) GetType() NetworkSettings_Type { + if m != nil { + return m.Type + } + return NetworkSettings_TYPE_UNSPECIFIED +} + type LoadBalancerSpec struct { // Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/load-balancer/target-resources). TargetGroupSpec *TargetGroupSpec `protobuf:"bytes,1,opt,name=target_group_spec,json=targetGroupSpec,proto3" json:"target_group_spec,omitempty"` @@ -1546,7 +1993,7 @@ func (m *LoadBalancerSpec) Reset() { *m = LoadBalancerSpec{} } func (m *LoadBalancerSpec) String() string { return proto.CompactTextString(m) } func (*LoadBalancerSpec) ProtoMessage() {} func (*LoadBalancerSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{13} + return fileDescriptor_993454707bf70b9b, []int{15} } func (m *LoadBalancerSpec) XXX_Unmarshal(b []byte) error { @@ -1590,7 +2037,7 @@ func (m *TargetGroupSpec) Reset() { *m = TargetGroupSpec{} } func (m *TargetGroupSpec) String() string { return proto.CompactTextString(m) } func (*TargetGroupSpec) ProtoMessage() {} func (*TargetGroupSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{14} + return fileDescriptor_993454707bf70b9b, []int{16} } func (m *TargetGroupSpec) XXX_Unmarshal(b []byte) error { @@ -1644,7 +2091,7 @@ func (m *HealthChecksSpec) Reset() { *m = HealthChecksSpec{} } func (m *HealthChecksSpec) String() string { return proto.CompactTextString(m) } func (*HealthChecksSpec) ProtoMessage() {} func (*HealthChecksSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{15} + return fileDescriptor_993454707bf70b9b, []int{17} } func (m *HealthChecksSpec) XXX_Unmarshal(b []byte) error { @@ -1694,7 +2141,7 @@ func (m *HealthCheckSpec) Reset() { *m = HealthCheckSpec{} } func (m *HealthCheckSpec) String() string { return proto.CompactTextString(m) } func (*HealthCheckSpec) ProtoMessage() {} func (*HealthCheckSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{16} + return fileDescriptor_993454707bf70b9b, []int{18} } func (m *HealthCheckSpec) XXX_Unmarshal(b []byte) error { @@ -1800,7 +2247,7 @@ func (m *HealthCheckSpec_TcpOptions) Reset() { *m = HealthCheckSpec_TcpO func (m *HealthCheckSpec_TcpOptions) String() string { return proto.CompactTextString(m) } func (*HealthCheckSpec_TcpOptions) ProtoMessage() {} func (*HealthCheckSpec_TcpOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{16, 0} + return fileDescriptor_993454707bf70b9b, []int{18, 0} } func (m *HealthCheckSpec_TcpOptions) XXX_Unmarshal(b []byte) error { @@ -1842,7 +2289,7 @@ func (m *HealthCheckSpec_HttpOptions) Reset() { *m = HealthCheckSpec_Htt func (m *HealthCheckSpec_HttpOptions) String() string { return proto.CompactTextString(m) } func (*HealthCheckSpec_HttpOptions) ProtoMessage() {} func (*HealthCheckSpec_HttpOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{16, 1} + return fileDescriptor_993454707bf70b9b, []int{18, 1} } func (m *HealthCheckSpec_HttpOptions) XXX_Unmarshal(b []byte) error { @@ -1906,7 +2353,7 @@ func (m *ManagedInstance) Reset() { *m = ManagedInstance{} } func (m *ManagedInstance) String() string { return proto.CompactTextString(m) } func (*ManagedInstance) ProtoMessage() {} func (*ManagedInstance) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{17} + return fileDescriptor_993454707bf70b9b, []int{19} } func (m *ManagedInstance) XXX_Unmarshal(b []byte) error { @@ -2011,7 +2458,7 @@ func (m *NetworkInterface) Reset() { *m = NetworkInterface{} } func (m *NetworkInterface) String() string { return proto.CompactTextString(m) } func (*NetworkInterface) ProtoMessage() {} func (*NetworkInterface) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{18} + return fileDescriptor_993454707bf70b9b, []int{20} } func (m *NetworkInterface) XXX_Unmarshal(b []byte) error { @@ -2082,7 +2529,7 @@ func (m *PrimaryAddress) Reset() { *m = PrimaryAddress{} } func (m *PrimaryAddress) String() string { return proto.CompactTextString(m) } func (*PrimaryAddress) ProtoMessage() {} func (*PrimaryAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{19} + return fileDescriptor_993454707bf70b9b, []int{21} } func (m *PrimaryAddress) XXX_Unmarshal(b []byte) error { @@ -2131,7 +2578,7 @@ func (m *OneToOneNat) Reset() { *m = OneToOneNat{} } func (m *OneToOneNat) String() string { return proto.CompactTextString(m) } func (*OneToOneNat) ProtoMessage() {} func (*OneToOneNat) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{20} + return fileDescriptor_993454707bf70b9b, []int{22} } func (m *OneToOneNat) XXX_Unmarshal(b []byte) error { @@ -2180,7 +2627,7 @@ func (m *LogRecord) Reset() { *m = LogRecord{} } func (m *LogRecord) String() string { return proto.CompactTextString(m) } func (*LogRecord) ProtoMessage() {} func (*LogRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_993454707bf70b9b, []int{21} + return fileDescriptor_993454707bf70b9b, []int{23} } func (m *LogRecord) XXX_Unmarshal(b []byte) error { @@ -2217,16 +2664,23 @@ func (m *LogRecord) GetMessage() string { func init() { proto.RegisterEnum("yandex.cloud.compute.v1.instancegroup.IpVersion", IpVersion_name, IpVersion_value) + proto.RegisterEnum("yandex.cloud.compute.v1.instancegroup.InstanceGroup_Status", InstanceGroup_Status_name, InstanceGroup_Status_value) + proto.RegisterEnum("yandex.cloud.compute.v1.instancegroup.ScalePolicy_CustomRule_RuleType", ScalePolicy_CustomRule_RuleType_name, ScalePolicy_CustomRule_RuleType_value) + proto.RegisterEnum("yandex.cloud.compute.v1.instancegroup.ScalePolicy_CustomRule_MetricType", ScalePolicy_CustomRule_MetricType_name, ScalePolicy_CustomRule_MetricType_value) proto.RegisterEnum("yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec_Mode", AttachedDiskSpec_Mode_name, AttachedDiskSpec_Mode_value) + proto.RegisterEnum("yandex.cloud.compute.v1.instancegroup.NetworkSettings_Type", NetworkSettings_Type_name, NetworkSettings_Type_value) proto.RegisterEnum("yandex.cloud.compute.v1.instancegroup.ManagedInstance_Status", ManagedInstance_Status_name, ManagedInstance_Status_value) proto.RegisterType((*InstanceGroup)(nil), "yandex.cloud.compute.v1.instancegroup.InstanceGroup") proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.compute.v1.instancegroup.InstanceGroup.LabelsEntry") + proto.RegisterType((*Variable)(nil), "yandex.cloud.compute.v1.instancegroup.Variable") proto.RegisterType((*LoadBalancerState)(nil), "yandex.cloud.compute.v1.instancegroup.LoadBalancerState") proto.RegisterType((*ManagedInstancesState)(nil), "yandex.cloud.compute.v1.instancegroup.ManagedInstancesState") proto.RegisterType((*ManagedInstancesState_Statuses)(nil), "yandex.cloud.compute.v1.instancegroup.ManagedInstancesState.Statuses") proto.RegisterType((*ScalePolicy)(nil), "yandex.cloud.compute.v1.instancegroup.ScalePolicy") proto.RegisterType((*ScalePolicy_AutoScale)(nil), "yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale") proto.RegisterType((*ScalePolicy_CpuUtilizationRule)(nil), "yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule") + proto.RegisterType((*ScalePolicy_CustomRule)(nil), "yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.LabelsEntry") proto.RegisterType((*ScalePolicy_FixedScale)(nil), "yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale") proto.RegisterType((*DeployPolicy)(nil), "yandex.cloud.compute.v1.instancegroup.DeployPolicy") proto.RegisterType((*AllocationPolicy)(nil), "yandex.cloud.compute.v1.instancegroup.AllocationPolicy") @@ -2241,6 +2695,7 @@ func init() { proto.RegisterType((*PrimaryAddressSpec)(nil), "yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec") proto.RegisterType((*OneToOneNatSpec)(nil), "yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec") proto.RegisterType((*SchedulingPolicy)(nil), "yandex.cloud.compute.v1.instancegroup.SchedulingPolicy") + proto.RegisterType((*NetworkSettings)(nil), "yandex.cloud.compute.v1.instancegroup.NetworkSettings") proto.RegisterType((*LoadBalancerSpec)(nil), "yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec") proto.RegisterType((*TargetGroupSpec)(nil), "yandex.cloud.compute.v1.instancegroup.TargetGroupSpec") proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.compute.v1.instancegroup.TargetGroupSpec.LabelsEntry") @@ -2260,195 +2715,237 @@ func init() { } var fileDescriptor_993454707bf70b9b = []byte{ - // 3038 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x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xc8, 0x27, 0x6a, 0xbb, 0xd3, 0x92, 0xe2, 0xc5, 0xdf, - 0xc7, 0x61, 0xee, 0x65, 0xad, 0x05, 0xdd, 0x00, 0x08, 0x1b, 0x57, 0x70, 0xe7, 0xcd, 0x04, 0x7d, - 0xc6, 0xa0, 0x62, 0x6f, 0xb0, 0x6b, 0x13, 0x9a, 0x2f, 0x3f, 0x71, 0x33, 0x6a, 0x86, 0x73, 0xda, - 0x86, 0x87, 0xfa, 0x70, 0xbd, 0xef, 0x9a, 0x16, 0x6d, 0xb4, 0x07, 0x35, 0x0d, 0x1b, 0x86, 0x4b, - 0x3c, 0x6f, 0x74, 0xc9, 0x57, 0xce, 0xb9, 0xe4, 0x5b, 0xdc, 0x4b, 0x83, 0x7b, 0x60, 0x4f, 0x04, - 0x73, 0xc2, 0xf3, 0xe3, 0xda, 0x08, 0x77, 0x2c, 0x62, 0x7d, 0x3c, 0x62, 0xe2, 0x7b, 0x8b, 0x58, - 0x1f, 0xe1, 0x16, 0x8f, 0x01, 0x9d, 0xd5, 0x45, 0x06, 0x5c, 0xa1, 0x38, 0xc7, 0x77, 0xe8, 0xea, - 0x68, 0x36, 0xf6, 0x79, 0x0e, 0xfc, 0xca, 0x57, 0x3f, 0x67, 0x0e, 0x9b, 0x36, 0xe9, 0x38, 0x9b, - 0x36, 0xd9, 0xc0, 0x3e, 0x4b, 0x60, 0xc6, 0x19, 0x67, 0x14, 0x77, 0x61, 0x26, 0xa2, 0x83, 0x36, - 0x01, 0xcc, 0xbe, 0x76, 0x40, 0x5c, 0x2f, 0x28, 0xf2, 0x5c, 0xb5, 0x72, 0xde, 0xe3, 0xbd, 0xff, - 0x98, 0xdb, 0xa9, 0x19, 0x33, 0xf8, 0x59, 0xac, 0x81, 0x14, 0x6d, 0xff, 0xe8, 0x16, 0x64, 0xfb, - 0x2e, 0x21, 0x56, 0xdf, 0x37, 0x03, 0x34, 0x9d, 0x56, 0x47, 0x59, 0xc5, 0x03, 0x90, 0xa2, 0x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0x0e, 0x25, 0xe3, 0xdf, 0x1d, 0x4a, 0x6a, 0x90, 0x59, 0x77, - 0xba, 0x2a, 0xd1, 0x1d, 0xd7, 0x40, 0xcb, 0x90, 0x09, 0xff, 0x71, 0x40, 0x9c, 0xe0, 0xaf, 0xfc, - 0x8a, 0x1f, 0x2a, 0xd3, 0x8c, 0xc7, 0xbf, 0xae, 0x05, 0xe4, 0x9d, 0xbb, 0x90, 0x09, 0x03, 0xa3, - 0x02, 0x5c, 0x6b, 0x6f, 0x69, 0x8f, 0x5b, 0xea, 0x76, 0x7b, 0x73, 0x23, 0xb2, 0xdf, 0xd3, 0x90, - 0x68, 0x6f, 0x3d, 0xae, 0x49, 0x31, 0xf1, 0xab, 0x2e, 0xc5, 0x9b, 0x1f, 0x7f, 0xf2, 0xa4, 0x6b, - 0xfa, 0xfb, 0x83, 0x5d, 0x3a, 0xaa, 0x79, 0x3e, 0xcc, 0x12, 0xff, 0x1f, 0x88, 0xae, 0x53, 0xea, - 0x12, 0x9b, 0x65, 0x35, 0x7f, 0xae, 0xff, 0xbf, 0xb8, 0x3b, 0x46, 0xed, 0x26, 0x99, 0xe9, 0xc2, - 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x79, 0x5b, 0xd8, 0xa8, 0xbd, 0x21, 0x00, 0x00, + // 3702 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x3a, 0x4b, 0x70, 0xdb, 0x66, + 0x7a, 0xe1, 0x43, 0x14, 0xf9, 0x51, 0x22, 0xa1, 0xdf, 0xb2, 0xcd, 0x30, 0x71, 0xec, 0xe1, 0xc4, + 0x1d, 0xc7, 0x0b, 0x52, 0x04, 0x49, 0xd1, 0x52, 0x2c, 0x67, 0xc3, 0x97, 0x2d, 0xce, 0x4a, 0xa2, + 0x06, 0xa2, 0xec, 0x6c, 0x64, 0x2f, 0x0a, 0x01, 0xbf, 0x24, 0x8c,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0xa1, 0x4d, + 0x48, 0x1c, 0xab, 0xb6, 0xa1, 0xee, 0xf7, 0xb0, 0x93, 0x41, 0xd4, 0x15, 0x2c, 0x5d, 0x50, 0xef, + 0x53, 0x2e, 0x27, 0x8f, 0x34, 0xa0, 0x25, 0xb8, 0xa6, 0xe3, 0x1e, 0x66, 0x67, 0xdc, 0xb6, 0x5c, + 0xac, 0x51, 0x07, 0x74, 0xed, 0x4e, 0xe8, 0x5e, 0x5c, 0x46, 0x1e, 0x69, 0xdb, 0xa7, 0x64, 0x57, + 0x21, 0x19, 0x70, 0x22, 0x48, 0x80, 0xc8, 0x4b, 0x7c, 0xc2, 0xbd, 0x26, 0xf9, 0x89, 0x16, 0x61, + 0xe6, 0x58, 0xed, 0x0d, 0x31, 0x77, 0x99, 0x0c, 0xf8, 0x32, 0xbc, 0x12, 0xca, 0x69, 0x10, 0x63, + 0x93, 0x41, 0x37, 0x00, 0xed, 0x74, 0x6b, 0xdd, 0xdd, 0x1d, 0x65, 0x77, 0x6b, 0x67, 0xbb, 0xd5, + 0x68, 0x3f, 0x6e, 0xb7, 0x9a, 0xc2, 0x47, 0x68, 0x0e, 0xe2, 0x3b, 0xdd, 0x9a, 0xdc, 0x6d, 0x6f, + 0x3d, 0x11, 0x42, 0x08, 0x20, 0x56, 0x6b, 0x74, 0xdb, 0x4f, 0x5b, 0x42, 0x98, 0x51, 0x3a, 0xdb, + 0xdb, 0x84, 0x12, 0x41, 0x49, 0x98, 0xa5, 0x50, 0xab, 0x29, 0x44, 0x09, 0xa9, 0xd9, 0xda, 0x68, + 0x51, 0xa1, 0x99, 0xdc, 0x1e, 0xc4, 0xbd, 0x79, 0xa2, 0x42, 0x60, 0x70, 0xf5, 0x4f, 0xdf, 0x9d, + 0x4a, 0xe9, 0x3d, 0x35, 0xff, 0xba, 0x96, 0xff, 0xb6, 0x98, 0x5f, 0x2d, 0x28, 0xf9, 0x17, 0xf7, + 0x7f, 0x78, 0x2b, 0xcd, 0x48, 0x79, 0x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59, 0x33, 0x77, 0x9f, 0x57, 0x35, 0xe2, 0x25, 0xcb, 0xb9, 0xdf, 0x85, 0x20, + 0x35, 0xce, 0x84, 0x32, 0x30, 0xeb, 0x19, 0x63, 0x4b, 0xe6, 0x81, 0xe8, 0x19, 0xa4, 0xc6, 0x33, + 0x62, 0x1e, 0xa3, 0x4a, 0x97, 0x4f, 0x86, 0xe5, 0x64, 0x20, 0x11, 0xce, 0xbd, 0x82, 0x64, 0x80, + 0xf6, 0x33, 0x23, 0x18, 0x4f, 0x8d, 0xc3, 0x57, 0x4f, 0x8d, 0x15, 0x48, 0x6c, 0x58, 0x87, 0x32, + 0xd6, 0x2c, 0x5b, 0x47, 0x2b, 0x90, 0xf0, 0xbf, 0xc0, 0xe3, 0x11, 0xfc, 0x67, 0x3f, 0x87, 0xf3, + 0x99, 0xc9, 0x88, 0xc7, 0xbf, 0x87, 0xf0, 0xc0, 0xfb, 0x0f, 0x21, 0xe1, 0x1b, 0x46, 0x59, 0xb8, + 0xd1, 0xde, 0x56, 0x9e, 0xb6, 0xe4, 0x9d, 0x76, 0x67, 0x6b, 0xe2, 0xbe, 0xc7, 0x21, 0xda, 0xde, + 0x7e, 0x5a, 0x11, 0x42, 0xfc, 0x57, 0x55, 0x08, 0xd7, 0xff, 0x3c, 0x04, 0x5f, 0x8c, 0x4d, 0x4e, + 0x1d, 0x18, 0x3f, 0x39, 0xc1, 0x6f, 0x9f, 0x1d, 0x1a, 0xee, 0xd1, 0x70, 0x9f, 0x30, 0x2c, 0x31, + 0xa9, 0x3c, 0xfb, 0xf0, 0xf0, 0xd0, 0xca, 0x1f, 0x62, 0x93, 0xce, 0x60, 0xe9, 0x42, 0x1f, 0x3d, + 0x3e, 0x1c, 0x83, 0xf6, 0x63, 0x54, 0xb4, 0xfc, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x88, 0xf4, + 0xa1, 0xe4, 0x32, 0x29, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup/instance_group.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup/instance_group.pbext.go new file mode 100644 index 000000000..d0462f72e --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup/instance_group.pbext.go @@ -0,0 +1,558 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package instancegroup + +import ( + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *InstanceGroup) SetId(v string) { + m.Id = v +} + +func (m *InstanceGroup) SetFolderId(v string) { + m.FolderId = v +} + +func (m *InstanceGroup) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *InstanceGroup) SetName(v string) { + m.Name = v +} + +func (m *InstanceGroup) SetDescription(v string) { + m.Description = v +} + +func (m *InstanceGroup) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *InstanceGroup) SetInstanceTemplate(v *InstanceTemplate) { + m.InstanceTemplate = v +} + +func (m *InstanceGroup) SetScalePolicy(v *ScalePolicy) { + m.ScalePolicy = v +} + +func (m *InstanceGroup) SetDeployPolicy(v *DeployPolicy) { + m.DeployPolicy = v +} + +func (m *InstanceGroup) SetAllocationPolicy(v *AllocationPolicy) { + m.AllocationPolicy = v +} + +func (m *InstanceGroup) SetLoadBalancerState(v *LoadBalancerState) { + m.LoadBalancerState = v +} + +func (m *InstanceGroup) SetManagedInstancesState(v *ManagedInstancesState) { + m.ManagedInstancesState = v +} + +func (m *InstanceGroup) SetLoadBalancerSpec(v *LoadBalancerSpec) { + m.LoadBalancerSpec = v +} + +func (m *InstanceGroup) SetHealthChecksSpec(v *HealthChecksSpec) { + m.HealthChecksSpec = v +} + +func (m *InstanceGroup) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *InstanceGroup) SetStatus(v InstanceGroup_Status) { + m.Status = v +} + +func (m *InstanceGroup) SetVariables(v []*Variable) { + m.Variables = v +} + +func (m *InstanceGroup) SetDeletionProtection(v bool) { + m.DeletionProtection = v +} + +func (m *Variable) SetKey(v string) { + m.Key = v +} + +func (m *Variable) SetValue(v string) { + m.Value = v +} + +func (m *LoadBalancerState) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *LoadBalancerState) SetStatusMessage(v string) { + m.StatusMessage = v +} + +func (m *ManagedInstancesState) SetTargetSize(v int64) { + m.TargetSize = v +} + +func (m *ManagedInstancesState) SetRunningActualCount(v int64) { + m.RunningActualCount = v +} + +func (m *ManagedInstancesState) SetRunningOutdatedCount(v int64) { + m.RunningOutdatedCount = v +} + +func (m *ManagedInstancesState) SetProcessingCount(v int64) { + m.ProcessingCount = v +} + +func (m *ManagedInstancesState_Statuses) SetCreating(v int64) { + m.Creating = v +} + +func (m *ManagedInstancesState_Statuses) SetStarting(v int64) { + m.Starting = v +} + +func (m *ManagedInstancesState_Statuses) SetOpening(v int64) { + m.Opening = v +} + +func (m *ManagedInstancesState_Statuses) SetWarming(v int64) { + m.Warming = v +} + +func (m *ManagedInstancesState_Statuses) SetRunning(v int64) { + m.Running = v +} + +func (m *ManagedInstancesState_Statuses) SetClosing(v int64) { + m.Closing = v +} + +func (m *ManagedInstancesState_Statuses) SetStopping(v int64) { + m.Stopping = v +} + +func (m *ManagedInstancesState_Statuses) SetUpdating(v int64) { + m.Updating = v +} + +func (m *ManagedInstancesState_Statuses) SetDeleting(v int64) { + m.Deleting = v +} + +func (m *ManagedInstancesState_Statuses) SetFailed(v int64) { + m.Failed = v +} + +type ScalePolicy_ScaleType = isScalePolicy_ScaleType + +func (m *ScalePolicy) SetScaleType(v ScalePolicy_ScaleType) { + m.ScaleType = v +} + +func (m *ScalePolicy) SetFixedScale(v *ScalePolicy_FixedScale) { + m.ScaleType = &ScalePolicy_FixedScale_{ + FixedScale: v, + } +} + +func (m *ScalePolicy) SetAutoScale(v *ScalePolicy_AutoScale) { + m.ScaleType = &ScalePolicy_AutoScale_{ + AutoScale: v, + } +} + +func (m *ScalePolicy) SetTestAutoScale(v *ScalePolicy_AutoScale) { + m.TestAutoScale = v +} + +func (m *ScalePolicy_AutoScale) SetMinZoneSize(v int64) { + m.MinZoneSize = v +} + +func (m *ScalePolicy_AutoScale) SetMaxSize(v int64) { + m.MaxSize = v +} + +func (m *ScalePolicy_AutoScale) SetMeasurementDuration(v *duration.Duration) { + m.MeasurementDuration = v +} + +func (m *ScalePolicy_AutoScale) SetWarmupDuration(v *duration.Duration) { + m.WarmupDuration = v +} + +func (m *ScalePolicy_AutoScale) SetStabilizationDuration(v *duration.Duration) { + m.StabilizationDuration = v +} + +func (m *ScalePolicy_AutoScale) SetInitialSize(v int64) { + m.InitialSize = v +} + +func (m *ScalePolicy_AutoScale) SetCpuUtilizationRule(v *ScalePolicy_CpuUtilizationRule) { + m.CpuUtilizationRule = v +} + +func (m *ScalePolicy_AutoScale) SetCustomRules(v []*ScalePolicy_CustomRule) { + m.CustomRules = v +} + +func (m *ScalePolicy_CpuUtilizationRule) SetUtilizationTarget(v float64) { + m.UtilizationTarget = v +} + +func (m *ScalePolicy_CustomRule) SetRuleType(v ScalePolicy_CustomRule_RuleType) { + m.RuleType = v +} + +func (m *ScalePolicy_CustomRule) SetMetricType(v ScalePolicy_CustomRule_MetricType) { + m.MetricType = v +} + +func (m *ScalePolicy_CustomRule) SetMetricName(v string) { + m.MetricName = v +} + +func (m *ScalePolicy_CustomRule) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *ScalePolicy_CustomRule) SetTarget(v float64) { + m.Target = v +} + +func (m *ScalePolicy_FixedScale) SetSize(v int64) { + m.Size = v +} + +func (m *DeployPolicy) SetMaxUnavailable(v int64) { + m.MaxUnavailable = v +} + +func (m *DeployPolicy) SetMaxDeleting(v int64) { + m.MaxDeleting = v +} + +func (m *DeployPolicy) SetMaxCreating(v int64) { + m.MaxCreating = v +} + +func (m *DeployPolicy) SetMaxExpansion(v int64) { + m.MaxExpansion = v +} + +func (m *DeployPolicy) SetStartupDuration(v *duration.Duration) { + m.StartupDuration = v +} + +func (m *AllocationPolicy) SetZones(v []*AllocationPolicy_Zone) { + m.Zones = v +} + +func (m *AllocationPolicy_Zone) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *InstanceTemplate) SetDescription(v string) { + m.Description = v +} + +func (m *InstanceTemplate) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *InstanceTemplate) SetPlatformId(v string) { + m.PlatformId = v +} + +func (m *InstanceTemplate) SetResourcesSpec(v *ResourcesSpec) { + m.ResourcesSpec = v +} + +func (m *InstanceTemplate) SetMetadata(v map[string]string) { + m.Metadata = v +} + +func (m *InstanceTemplate) SetBootDiskSpec(v *AttachedDiskSpec) { + m.BootDiskSpec = v +} + +func (m *InstanceTemplate) SetSecondaryDiskSpecs(v []*AttachedDiskSpec) { + m.SecondaryDiskSpecs = v +} + +func (m *InstanceTemplate) SetNetworkInterfaceSpecs(v []*NetworkInterfaceSpec) { + m.NetworkInterfaceSpecs = v +} + +func (m *InstanceTemplate) SetSchedulingPolicy(v *SchedulingPolicy) { + m.SchedulingPolicy = v +} + +func (m *InstanceTemplate) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *InstanceTemplate) SetNetworkSettings(v *NetworkSettings) { + m.NetworkSettings = v +} + +func (m *InstanceTemplate) SetName(v string) { + m.Name = v +} + +func (m *InstanceTemplate) SetHostname(v string) { + m.Hostname = v +} + +func (m *ResourcesSpec) SetMemory(v int64) { + m.Memory = v +} + +func (m *ResourcesSpec) SetCores(v int64) { + m.Cores = v +} + +func (m *ResourcesSpec) SetCoreFraction(v int64) { + m.CoreFraction = v +} + +func (m *ResourcesSpec) SetGpus(v int64) { + m.Gpus = v +} + +func (m *AttachedDiskSpec) SetMode(v AttachedDiskSpec_Mode) { + m.Mode = v +} + +func (m *AttachedDiskSpec) SetDeviceName(v string) { + m.DeviceName = v +} + +func (m *AttachedDiskSpec) SetDiskSpec(v *AttachedDiskSpec_DiskSpec) { + m.DiskSpec = v +} + +func (m *AttachedDiskSpec) SetDiskId(v string) { + m.DiskId = v +} + +type AttachedDiskSpec_DiskSpec_SourceOneof = isAttachedDiskSpec_DiskSpec_SourceOneof + +func (m *AttachedDiskSpec_DiskSpec) SetSourceOneof(v AttachedDiskSpec_DiskSpec_SourceOneof) { + m.SourceOneof = v +} + +func (m *AttachedDiskSpec_DiskSpec) SetDescription(v string) { + m.Description = v +} + +func (m *AttachedDiskSpec_DiskSpec) SetTypeId(v string) { + m.TypeId = v +} + +func (m *AttachedDiskSpec_DiskSpec) SetSize(v int64) { + m.Size = v +} + +func (m *AttachedDiskSpec_DiskSpec) SetImageId(v string) { + m.SourceOneof = &AttachedDiskSpec_DiskSpec_ImageId{ + ImageId: v, + } +} + +func (m *AttachedDiskSpec_DiskSpec) SetSnapshotId(v string) { + m.SourceOneof = &AttachedDiskSpec_DiskSpec_SnapshotId{ + SnapshotId: v, + } +} + +func (m *NetworkInterfaceSpec) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *NetworkInterfaceSpec) SetSubnetIds(v []string) { + m.SubnetIds = v +} + +func (m *NetworkInterfaceSpec) SetPrimaryV4AddressSpec(v *PrimaryAddressSpec) { + m.PrimaryV4AddressSpec = v +} + +func (m *NetworkInterfaceSpec) SetPrimaryV6AddressSpec(v *PrimaryAddressSpec) { + m.PrimaryV6AddressSpec = v +} + +func (m *NetworkInterfaceSpec) SetSecurityGroupIds(v []string) { + m.SecurityGroupIds = v +} + +func (m *PrimaryAddressSpec) SetOneToOneNatSpec(v *OneToOneNatSpec) { + m.OneToOneNatSpec = v +} + +func (m *OneToOneNatSpec) SetIpVersion(v IpVersion) { + m.IpVersion = v +} + +func (m *SchedulingPolicy) SetPreemptible(v bool) { + m.Preemptible = v +} + +func (m *NetworkSettings) SetType(v NetworkSettings_Type) { + m.Type = v +} + +func (m *LoadBalancerSpec) SetTargetGroupSpec(v *TargetGroupSpec) { + m.TargetGroupSpec = v +} + +func (m *TargetGroupSpec) SetName(v string) { + m.Name = v +} + +func (m *TargetGroupSpec) SetDescription(v string) { + m.Description = v +} + +func (m *TargetGroupSpec) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *HealthChecksSpec) SetHealthCheckSpecs(v []*HealthCheckSpec) { + m.HealthCheckSpecs = v +} + +type HealthCheckSpec_HealthCheckOptions = isHealthCheckSpec_HealthCheckOptions + +func (m *HealthCheckSpec) SetHealthCheckOptions(v HealthCheckSpec_HealthCheckOptions) { + m.HealthCheckOptions = v +} + +func (m *HealthCheckSpec) SetInterval(v *duration.Duration) { + m.Interval = v +} + +func (m *HealthCheckSpec) SetTimeout(v *duration.Duration) { + m.Timeout = v +} + +func (m *HealthCheckSpec) SetUnhealthyThreshold(v int64) { + m.UnhealthyThreshold = v +} + +func (m *HealthCheckSpec) SetHealthyThreshold(v int64) { + m.HealthyThreshold = v +} + +func (m *HealthCheckSpec) SetTcpOptions(v *HealthCheckSpec_TcpOptions) { + m.HealthCheckOptions = &HealthCheckSpec_TcpOptions_{ + TcpOptions: v, + } +} + +func (m *HealthCheckSpec) SetHttpOptions(v *HealthCheckSpec_HttpOptions) { + m.HealthCheckOptions = &HealthCheckSpec_HttpOptions_{ + HttpOptions: v, + } +} + +func (m *HealthCheckSpec_TcpOptions) SetPort(v int64) { + m.Port = v +} + +func (m *HealthCheckSpec_HttpOptions) SetPort(v int64) { + m.Port = v +} + +func (m *HealthCheckSpec_HttpOptions) SetPath(v string) { + m.Path = v +} + +func (m *ManagedInstance) SetId(v string) { + m.Id = v +} + +func (m *ManagedInstance) SetStatus(v ManagedInstance_Status) { + m.Status = v +} + +func (m *ManagedInstance) SetInstanceId(v string) { + m.InstanceId = v +} + +func (m *ManagedInstance) SetFqdn(v string) { + m.Fqdn = v +} + +func (m *ManagedInstance) SetName(v string) { + m.Name = v +} + +func (m *ManagedInstance) SetStatusMessage(v string) { + m.StatusMessage = v +} + +func (m *ManagedInstance) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *ManagedInstance) SetNetworkInterfaces(v []*NetworkInterface) { + m.NetworkInterfaces = v +} + +func (m *ManagedInstance) SetStatusChangedAt(v *timestamp.Timestamp) { + m.StatusChangedAt = v +} + +func (m *NetworkInterface) SetIndex(v string) { + m.Index = v +} + +func (m *NetworkInterface) SetMacAddress(v string) { + m.MacAddress = v +} + +func (m *NetworkInterface) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *NetworkInterface) SetPrimaryV4Address(v *PrimaryAddress) { + m.PrimaryV4Address = v +} + +func (m *NetworkInterface) SetPrimaryV6Address(v *PrimaryAddress) { + m.PrimaryV6Address = v +} + +func (m *PrimaryAddress) SetAddress(v string) { + m.Address = v +} + +func (m *PrimaryAddress) SetOneToOneNat(v *OneToOneNat) { + m.OneToOneNat = v +} + +func (m *OneToOneNat) SetAddress(v string) { + m.Address = v +} + +func (m *OneToOneNat) SetIpVersion(v IpVersion) { + m.IpVersion = v +} + +func (m *LogRecord) SetTimestamp(v *timestamp.Timestamp) { + m.Timestamp = v +} + +func (m *LogRecord) SetMessage(v string) { + m.Message = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup/instance_group_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup/instance_group_service.pb.go index a4d643729..a1c718815 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup/instance_group_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup/instance_group_service.pb.go @@ -58,7 +58,7 @@ func (InstanceGroupView) EnumDescriptor() ([]byte, []int) { type GetInstanceGroupRequest struct { // ID of the InstanceGroup resource to return. - // To get the instance group ID, use an [InstanceGroupService.List] request. + // To get the instance group ID, use a [InstanceGroupService.List] request. InstanceGroupId string `protobuf:"bytes,1,opt,name=instance_group_id,json=instanceGroupId,proto3" json:"instance_group_id,omitempty"` // Defines which information about the Instance template should be returned in the server response. View InstanceGroupView `protobuf:"varint,2,opt,name=view,proto3,enum=yandex.cloud.compute.v1.instancegroup.InstanceGroupView" json:"view,omitempty"` @@ -118,7 +118,7 @@ type CreateInstanceGroupRequest struct { Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Instance template that the instance group belongs to. InstanceTemplate *InstanceTemplate `protobuf:"bytes,6,opt,name=instance_template,json=instanceTemplate,proto3" json:"instance_template,omitempty"` - // Scaling policy of the instance group. + // [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group. ScalePolicy *ScalePolicy `protobuf:"bytes,7,opt,name=scale_policy,json=scalePolicy,proto3" json:"scale_policy,omitempty"` // Deployment policy of the instance group. DeployPolicy *DeployPolicy `protobuf:"bytes,8,opt,name=deploy_policy,json=deployPolicy,proto3" json:"deploy_policy,omitempty"` @@ -131,7 +131,10 @@ type CreateInstanceGroupRequest struct { // ID of the service account. The service account will be used for all API calls // made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts). // To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request. - ServiceAccountId string `protobuf:"bytes,12,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + ServiceAccountId string `protobuf:"bytes,12,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + Variables []*Variable `protobuf:"bytes,13,rep,name=variables,proto3" json:"variables,omitempty"` + // Flag that inhibits deletion of the instance group + DeletionProtection bool `protobuf:"varint,14,opt,name=deletion_protection,json=deletionProtection,proto3" json:"deletion_protection,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -239,11 +242,25 @@ func (m *CreateInstanceGroupRequest) GetServiceAccountId() string { return "" } +func (m *CreateInstanceGroupRequest) GetVariables() []*Variable { + if m != nil { + return m.Variables + } + return nil +} + +func (m *CreateInstanceGroupRequest) GetDeletionProtection() bool { + if m != nil { + return m.DeletionProtection + } + return false +} + type CreateInstanceGroupFromYamlRequest struct { // ID of the folder to create an instance group in. // To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request. FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` - // CreateInstanceGroupRequest in YAML format. + // [InstanceGroupService.Create] request in YAML format. InstanceGroupYaml string `protobuf:"bytes,2,opt,name=instance_group_yaml,json=instanceGroupYaml,proto3" json:"instance_group_yaml,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -331,7 +348,7 @@ func (m *CreateInstanceGroupMetadata) GetInstanceGroupId() string { type UpdateInstanceGroupRequest struct { // ID of the instance group to update. - // To get the instance group ID, use an [InstanceGroupService.List] request. + // To get the instance group ID, use a [InstanceGroupService.List] request. InstanceGroupId string `protobuf:"bytes,1,opt,name=instance_group_id,json=instanceGroupId,proto3" json:"instance_group_id,omitempty"` // Field mask that specifies which fields of the InstanceGroup resource are going to be updated. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` @@ -345,7 +362,7 @@ type UpdateInstanceGroupRequest struct { Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Instance template that the instance group belongs to. InstanceTemplate *InstanceTemplate `protobuf:"bytes,6,opt,name=instance_template,json=instanceTemplate,proto3" json:"instance_template,omitempty"` - // Scaling policy of the instance group. + // [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group. ScalePolicy *ScalePolicy `protobuf:"bytes,7,opt,name=scale_policy,json=scalePolicy,proto3" json:"scale_policy,omitempty"` // Deployment policy of the instance group. DeployPolicy *DeployPolicy `protobuf:"bytes,8,opt,name=deploy_policy,json=deployPolicy,proto3" json:"deploy_policy,omitempty"` @@ -358,10 +375,13 @@ type UpdateInstanceGroupRequest struct { // To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request. ServiceAccountId string `protobuf:"bytes,12,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` // Load Balancer specification for load balancing support. - LoadBalancerSpec *LoadBalancerSpec `protobuf:"bytes,14,opt,name=load_balancer_spec,json=loadBalancerSpec,proto3" json:"load_balancer_spec,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + LoadBalancerSpec *LoadBalancerSpec `protobuf:"bytes,14,opt,name=load_balancer_spec,json=loadBalancerSpec,proto3" json:"load_balancer_spec,omitempty"` + Variables []*Variable `protobuf:"bytes,15,rep,name=variables,proto3" json:"variables,omitempty"` + // Flag that inhibits deletion of the instance group + DeletionProtection bool `protobuf:"varint,16,opt,name=deletion_protection,json=deletionProtection,proto3" json:"deletion_protection,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UpdateInstanceGroupRequest) Reset() { *m = UpdateInstanceGroupRequest{} } @@ -473,11 +493,25 @@ func (m *UpdateInstanceGroupRequest) GetLoadBalancerSpec() *LoadBalancerSpec { return nil } +func (m *UpdateInstanceGroupRequest) GetVariables() []*Variable { + if m != nil { + return m.Variables + } + return nil +} + +func (m *UpdateInstanceGroupRequest) GetDeletionProtection() bool { + if m != nil { + return m.DeletionProtection + } + return false +} + type UpdateInstanceGroupFromYamlRequest struct { // ID of the instance group to update. - // To get the instance group ID, use an [InstanceGroupService.List] request. + // To get the instance group ID, use a [InstanceGroupService.List] request. InstanceGroupId string `protobuf:"bytes,1,opt,name=instance_group_id,json=instanceGroupId,proto3" json:"instance_group_id,omitempty"` - // UpdateInstanceGroupRequest in YAML format. + // [InstanceGroupService.Update] request in YAML format. InstanceGroupYaml string `protobuf:"bytes,2,opt,name=instance_group_yaml,json=instanceGroupYaml,proto3" json:"instance_group_yaml,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -525,7 +559,7 @@ func (m *UpdateInstanceGroupFromYamlRequest) GetInstanceGroupYaml() string { type UpdateInstanceGroupMetadata struct { // ID of the InstanceGroup resource that is being updated. - // To get the instance group ID, use an [InstanceGroupService.List] request. + // To get the instance group ID, use a [InstanceGroupService.List] request. InstanceGroupId string `protobuf:"bytes,1,opt,name=instance_group_id,json=instanceGroupId,proto3" json:"instance_group_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -564,9 +598,171 @@ func (m *UpdateInstanceGroupMetadata) GetInstanceGroupId() string { return "" } +type StartInstanceGroupRequest struct { + // ID of the instance group to start. + // To get the instance group ID, use a [InstanceGroupService.List] request. + InstanceGroupId string `protobuf:"bytes,1,opt,name=instance_group_id,json=instanceGroupId,proto3" json:"instance_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StartInstanceGroupRequest) Reset() { *m = StartInstanceGroupRequest{} } +func (m *StartInstanceGroupRequest) String() string { return proto.CompactTextString(m) } +func (*StartInstanceGroupRequest) ProtoMessage() {} +func (*StartInstanceGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_fc51cd26b96eed88, []int{7} +} + +func (m *StartInstanceGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StartInstanceGroupRequest.Unmarshal(m, b) +} +func (m *StartInstanceGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StartInstanceGroupRequest.Marshal(b, m, deterministic) +} +func (m *StartInstanceGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartInstanceGroupRequest.Merge(m, src) +} +func (m *StartInstanceGroupRequest) XXX_Size() int { + return xxx_messageInfo_StartInstanceGroupRequest.Size(m) +} +func (m *StartInstanceGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StartInstanceGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StartInstanceGroupRequest proto.InternalMessageInfo + +func (m *StartInstanceGroupRequest) GetInstanceGroupId() string { + if m != nil { + return m.InstanceGroupId + } + return "" +} + +type StartInstanceGroupMetadata struct { + // ID of the InstanceGroup resource that is being started. + InstanceGroupId string `protobuf:"bytes,1,opt,name=instance_group_id,json=instanceGroupId,proto3" json:"instance_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StartInstanceGroupMetadata) Reset() { *m = StartInstanceGroupMetadata{} } +func (m *StartInstanceGroupMetadata) String() string { return proto.CompactTextString(m) } +func (*StartInstanceGroupMetadata) ProtoMessage() {} +func (*StartInstanceGroupMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_fc51cd26b96eed88, []int{8} +} + +func (m *StartInstanceGroupMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StartInstanceGroupMetadata.Unmarshal(m, b) +} +func (m *StartInstanceGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StartInstanceGroupMetadata.Marshal(b, m, deterministic) +} +func (m *StartInstanceGroupMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartInstanceGroupMetadata.Merge(m, src) +} +func (m *StartInstanceGroupMetadata) XXX_Size() int { + return xxx_messageInfo_StartInstanceGroupMetadata.Size(m) +} +func (m *StartInstanceGroupMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_StartInstanceGroupMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_StartInstanceGroupMetadata proto.InternalMessageInfo + +func (m *StartInstanceGroupMetadata) GetInstanceGroupId() string { + if m != nil { + return m.InstanceGroupId + } + return "" +} + +type StopInstanceGroupRequest struct { + // ID of the instance group to stop. + // To get the instance group ID, use a [InstanceGroupService.List] request. + InstanceGroupId string `protobuf:"bytes,1,opt,name=instance_group_id,json=instanceGroupId,proto3" json:"instance_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StopInstanceGroupRequest) Reset() { *m = StopInstanceGroupRequest{} } +func (m *StopInstanceGroupRequest) String() string { return proto.CompactTextString(m) } +func (*StopInstanceGroupRequest) ProtoMessage() {} +func (*StopInstanceGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_fc51cd26b96eed88, []int{9} +} + +func (m *StopInstanceGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopInstanceGroupRequest.Unmarshal(m, b) +} +func (m *StopInstanceGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopInstanceGroupRequest.Marshal(b, m, deterministic) +} +func (m *StopInstanceGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopInstanceGroupRequest.Merge(m, src) +} +func (m *StopInstanceGroupRequest) XXX_Size() int { + return xxx_messageInfo_StopInstanceGroupRequest.Size(m) +} +func (m *StopInstanceGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StopInstanceGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StopInstanceGroupRequest proto.InternalMessageInfo + +func (m *StopInstanceGroupRequest) GetInstanceGroupId() string { + if m != nil { + return m.InstanceGroupId + } + return "" +} + +type StopInstanceGroupMetadata struct { + // ID of the InstanceGroup resource that is being stopped. + InstanceGroupId string `protobuf:"bytes,1,opt,name=instance_group_id,json=instanceGroupId,proto3" json:"instance_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StopInstanceGroupMetadata) Reset() { *m = StopInstanceGroupMetadata{} } +func (m *StopInstanceGroupMetadata) String() string { return proto.CompactTextString(m) } +func (*StopInstanceGroupMetadata) ProtoMessage() {} +func (*StopInstanceGroupMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_fc51cd26b96eed88, []int{10} +} + +func (m *StopInstanceGroupMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopInstanceGroupMetadata.Unmarshal(m, b) +} +func (m *StopInstanceGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopInstanceGroupMetadata.Marshal(b, m, deterministic) +} +func (m *StopInstanceGroupMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopInstanceGroupMetadata.Merge(m, src) +} +func (m *StopInstanceGroupMetadata) XXX_Size() int { + return xxx_messageInfo_StopInstanceGroupMetadata.Size(m) +} +func (m *StopInstanceGroupMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_StopInstanceGroupMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_StopInstanceGroupMetadata proto.InternalMessageInfo + +func (m *StopInstanceGroupMetadata) GetInstanceGroupId() string { + if m != nil { + return m.InstanceGroupId + } + return "" +} + type DeleteInstanceGroupRequest struct { // ID of the instance group to delete. - // To get the instance group ID, use an [InstanceGroupService.List] request. + // To get the instance group ID, use a [InstanceGroupService.List] request. InstanceGroupId string `protobuf:"bytes,1,opt,name=instance_group_id,json=instanceGroupId,proto3" json:"instance_group_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -577,7 +773,7 @@ func (m *DeleteInstanceGroupRequest) Reset() { *m = DeleteInstanceGroupR func (m *DeleteInstanceGroupRequest) String() string { return proto.CompactTextString(m) } func (*DeleteInstanceGroupRequest) ProtoMessage() {} func (*DeleteInstanceGroupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc51cd26b96eed88, []int{7} + return fileDescriptor_fc51cd26b96eed88, []int{11} } func (m *DeleteInstanceGroupRequest) XXX_Unmarshal(b []byte) error { @@ -607,7 +803,7 @@ func (m *DeleteInstanceGroupRequest) GetInstanceGroupId() string { type DeleteInstanceGroupMetadata struct { // ID of the instance group that is being deleted. - // To get the instance group ID, use an [InstanceGroupService.List] request. + // To get the instance group ID, use a [InstanceGroupService.List] request. InstanceGroupId string `protobuf:"bytes,1,opt,name=instance_group_id,json=instanceGroupId,proto3" json:"instance_group_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -618,7 +814,7 @@ func (m *DeleteInstanceGroupMetadata) Reset() { *m = DeleteInstanceGroup func (m *DeleteInstanceGroupMetadata) String() string { return proto.CompactTextString(m) } func (*DeleteInstanceGroupMetadata) ProtoMessage() {} func (*DeleteInstanceGroupMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_fc51cd26b96eed88, []int{8} + return fileDescriptor_fc51cd26b96eed88, []int{12} } func (m *DeleteInstanceGroupMetadata) XXX_Unmarshal(b []byte) error { @@ -658,7 +854,7 @@ func (m *DeleteInstancesMetadata) Reset() { *m = DeleteInstancesMetadata func (m *DeleteInstancesMetadata) String() string { return proto.CompactTextString(m) } func (*DeleteInstancesMetadata) ProtoMessage() {} func (*DeleteInstancesMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_fc51cd26b96eed88, []int{9} + return fileDescriptor_fc51cd26b96eed88, []int{13} } func (m *DeleteInstancesMetadata) XXX_Unmarshal(b []byte) error { @@ -713,7 +909,7 @@ func (m *ListInstanceGroupsRequest) Reset() { *m = ListInstanceGroupsReq func (m *ListInstanceGroupsRequest) String() string { return proto.CompactTextString(m) } func (*ListInstanceGroupsRequest) ProtoMessage() {} func (*ListInstanceGroupsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc51cd26b96eed88, []int{10} + return fileDescriptor_fc51cd26b96eed88, []int{14} } func (m *ListInstanceGroupsRequest) XXX_Unmarshal(b []byte) error { @@ -788,7 +984,7 @@ func (m *ListInstanceGroupsResponse) Reset() { *m = ListInstanceGroupsRe func (m *ListInstanceGroupsResponse) String() string { return proto.CompactTextString(m) } func (*ListInstanceGroupsResponse) ProtoMessage() {} func (*ListInstanceGroupsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fc51cd26b96eed88, []int{11} + return fileDescriptor_fc51cd26b96eed88, []int{15} } func (m *ListInstanceGroupsResponse) XXX_Unmarshal(b []byte) error { @@ -825,7 +1021,7 @@ func (m *ListInstanceGroupsResponse) GetNextPageToken() string { type ListInstanceGroupInstancesRequest struct { // ID of the InstanceGroup resource to list instances for. - // To get the instance group ID, use an [InstanceGroupService.List] request. + // To get the instance group ID, use a [InstanceGroupService.List] request. InstanceGroupId string `protobuf:"bytes,1,opt,name=instance_group_id,json=instanceGroupId,proto3" json:"instance_group_id,omitempty"` // The maximum number of results per page to return. If the number of available // results is larger than [page_size], @@ -848,7 +1044,7 @@ func (m *ListInstanceGroupInstancesRequest) Reset() { *m = ListInstanceG func (m *ListInstanceGroupInstancesRequest) String() string { return proto.CompactTextString(m) } func (*ListInstanceGroupInstancesRequest) ProtoMessage() {} func (*ListInstanceGroupInstancesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc51cd26b96eed88, []int{12} + return fileDescriptor_fc51cd26b96eed88, []int{16} } func (m *ListInstanceGroupInstancesRequest) XXX_Unmarshal(b []byte) error { @@ -916,7 +1112,7 @@ func (m *ListInstanceGroupInstancesResponse) Reset() { *m = ListInstance func (m *ListInstanceGroupInstancesResponse) String() string { return proto.CompactTextString(m) } func (*ListInstanceGroupInstancesResponse) ProtoMessage() {} func (*ListInstanceGroupInstancesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fc51cd26b96eed88, []int{13} + return fileDescriptor_fc51cd26b96eed88, []int{17} } func (m *ListInstanceGroupInstancesResponse) XXX_Unmarshal(b []byte) error { @@ -974,7 +1170,7 @@ func (m *ListInstanceGroupOperationsRequest) Reset() { *m = ListInstance func (m *ListInstanceGroupOperationsRequest) String() string { return proto.CompactTextString(m) } func (*ListInstanceGroupOperationsRequest) ProtoMessage() {} func (*ListInstanceGroupOperationsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc51cd26b96eed88, []int{14} + return fileDescriptor_fc51cd26b96eed88, []int{18} } func (m *ListInstanceGroupOperationsRequest) XXX_Unmarshal(b []byte) error { @@ -1040,7 +1236,7 @@ func (m *ListInstanceGroupOperationsResponse) Reset() { *m = ListInstanc func (m *ListInstanceGroupOperationsResponse) String() string { return proto.CompactTextString(m) } func (*ListInstanceGroupOperationsResponse) ProtoMessage() {} func (*ListInstanceGroupOperationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fc51cd26b96eed88, []int{15} + return fileDescriptor_fc51cd26b96eed88, []int{19} } func (m *ListInstanceGroupOperationsResponse) XXX_Unmarshal(b []byte) error { @@ -1077,7 +1273,7 @@ func (m *ListInstanceGroupOperationsResponse) GetNextPageToken() string { type ListInstanceGroupLogRecordsRequest struct { // ID of the InstanceGroup resource to list logs for. - // To get the instance group ID, use an [InstanceGroupService.List] request. + // To get the instance group ID, use a [InstanceGroupService.List] request. InstanceGroupId string `protobuf:"bytes,1,opt,name=instance_group_id,json=instanceGroupId,proto3" json:"instance_group_id,omitempty"` // The maximum number of results per page to return. If the number of available // results is larger than [page_size], @@ -1100,7 +1296,7 @@ func (m *ListInstanceGroupLogRecordsRequest) Reset() { *m = ListInstance func (m *ListInstanceGroupLogRecordsRequest) String() string { return proto.CompactTextString(m) } func (*ListInstanceGroupLogRecordsRequest) ProtoMessage() {} func (*ListInstanceGroupLogRecordsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc51cd26b96eed88, []int{16} + return fileDescriptor_fc51cd26b96eed88, []int{20} } func (m *ListInstanceGroupLogRecordsRequest) XXX_Unmarshal(b []byte) error { @@ -1168,7 +1364,7 @@ func (m *ListInstanceGroupLogRecordsResponse) Reset() { *m = ListInstanc func (m *ListInstanceGroupLogRecordsResponse) String() string { return proto.CompactTextString(m) } func (*ListInstanceGroupLogRecordsResponse) ProtoMessage() {} func (*ListInstanceGroupLogRecordsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fc51cd26b96eed88, []int{17} + return fileDescriptor_fc51cd26b96eed88, []int{21} } func (m *ListInstanceGroupLogRecordsResponse) XXX_Unmarshal(b []byte) error { @@ -1214,6 +1410,10 @@ func init() { proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupRequest.LabelsEntry") proto.RegisterType((*UpdateInstanceGroupFromYamlRequest)(nil), "yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupFromYamlRequest") proto.RegisterType((*UpdateInstanceGroupMetadata)(nil), "yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupMetadata") + proto.RegisterType((*StartInstanceGroupRequest)(nil), "yandex.cloud.compute.v1.instancegroup.StartInstanceGroupRequest") + proto.RegisterType((*StartInstanceGroupMetadata)(nil), "yandex.cloud.compute.v1.instancegroup.StartInstanceGroupMetadata") + proto.RegisterType((*StopInstanceGroupRequest)(nil), "yandex.cloud.compute.v1.instancegroup.StopInstanceGroupRequest") + proto.RegisterType((*StopInstanceGroupMetadata)(nil), "yandex.cloud.compute.v1.instancegroup.StopInstanceGroupMetadata") proto.RegisterType((*DeleteInstanceGroupRequest)(nil), "yandex.cloud.compute.v1.instancegroup.DeleteInstanceGroupRequest") proto.RegisterType((*DeleteInstanceGroupMetadata)(nil), "yandex.cloud.compute.v1.instancegroup.DeleteInstanceGroupMetadata") proto.RegisterType((*DeleteInstancesMetadata)(nil), "yandex.cloud.compute.v1.instancegroup.DeleteInstancesMetadata") @@ -1232,114 +1432,124 @@ func init() { } var fileDescriptor_fc51cd26b96eed88 = []byte{ - // 1558 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0xcd, 0x6f, 0x1b, 0x45, - 0x1b, 0x7f, 0x37, 0x71, 0xfc, 0xc6, 0x8f, 0x93, 0xd4, 0x99, 0xb7, 0xaf, 0x6a, 0xb6, 0xad, 0x9a, - 0x2c, 0x50, 0xa2, 0x50, 0x7f, 0xe6, 0xa3, 0xf9, 0x68, 0xa1, 0x76, 0x3f, 0x8d, 0x12, 0x51, 0x36, - 0x6d, 0x51, 0x1b, 0x15, 0x6b, 0xb2, 0x3b, 0x71, 0x96, 0xac, 0x77, 0x17, 0xef, 0x3a, 0x6d, 0x52, - 0x7a, 0x29, 0xb7, 0x1c, 0x10, 0x12, 0x17, 0x8e, 0x14, 0x24, 0xae, 0x48, 0xe5, 0x6f, 0x40, 0xc9, - 0x85, 0x0b, 0x1f, 0x07, 0x38, 0x70, 0xaa, 0x10, 0x42, 0x88, 0x43, 0x8f, 0x9c, 0xd0, 0xce, 0x8c, - 0x1d, 0xaf, 0xbf, 0xba, 0x76, 0x52, 0x51, 0x09, 0x6e, 0xde, 0x99, 0x79, 0x3e, 0x7e, 0xbf, 0x67, - 0xe7, 0x37, 0xcf, 0xac, 0x21, 0xbb, 0x89, 0x0d, 0x95, 0xdc, 0x4d, 0x28, 0xba, 0x59, 0x56, 0x13, - 0x8a, 0x59, 0xb4, 0xca, 0x0e, 0x49, 0x6c, 0xa4, 0x12, 0x9a, 0x61, 0x3b, 0xd8, 0x50, 0x48, 0xa1, - 0x64, 0x96, 0xad, 0xea, 0x53, 0x9e, 0x3e, 0xe6, 0x6d, 0x52, 0xda, 0xd0, 0x14, 0x12, 0xb7, 0x4a, - 0xa6, 0x63, 0xa2, 0x97, 0x99, 0x8f, 0x38, 0xf5, 0x11, 0xe7, 0x3e, 0xe2, 0x1b, 0xa9, 0xb8, 0xc7, - 0x87, 0x38, 0x52, 0x30, 0xcd, 0x82, 0x4e, 0x12, 0xd4, 0x68, 0xa5, 0xbc, 0x9a, 0x58, 0xd5, 0x88, - 0xae, 0xe6, 0x8b, 0xd8, 0x5e, 0x67, 0x8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0x7e, 0x81, 0xda, 0x7a, 0xdc, 0x0f, 0xa8, 0x35, 0x63, 0x2e, 0x51, 0x58, 0xd7, - 0x4d, 0x85, 0xee, 0x97, 0x4a, 0x8c, 0x50, 0x47, 0x44, 0x65, 0xaa, 0xf6, 0x9e, 0x38, 0x11, 0x5c, - 0x37, 0x8e, 0x08, 0x20, 0xdd, 0xc4, 0x6a, 0x7e, 0x05, 0xeb, 0xae, 0x75, 0x29, 0x6f, 0x5b, 0x44, - 0x89, 0x42, 0x47, 0xc1, 0x16, 0x4c, 0xac, 0x66, 0xb9, 0xfd, 0x92, 0x45, 0x14, 0x39, 0xa2, 0xd7, - 0x8d, 0xb8, 0x61, 0xd6, 0x08, 0xd6, 0x9d, 0xb5, 0xbc, 0xb2, 0x46, 0x94, 0x75, 0x9b, 0x85, 0x09, - 0x77, 0x14, 0xe6, 0x0a, 0x75, 0x70, 0x9e, 0xda, 0xb3, 0x30, 0x6b, 0x75, 0x23, 0xe8, 0x14, 0x20, - 0x2e, 0xb9, 0x79, 0xac, 0x28, 0x66, 0xd9, 0x70, 0xdc, 0xbd, 0x39, 0xe0, 0xee, 0x1f, 0x39, 0xc2, - 0x67, 0x32, 0x6c, 0x22, 0xa7, 0x8a, 0xb3, 0x10, 0xae, 0x79, 0xd1, 0x51, 0x04, 0x7a, 0xd7, 0xc9, - 0x26, 0xdb, 0xc9, 0xb2, 0xfb, 0x13, 0x1d, 0x86, 0xbe, 0x0d, 0xac, 0x97, 0x09, 0xd5, 0x93, 0x90, - 0xcc, 0x1e, 0xe6, 0x7a, 0x66, 0x04, 0x69, 0x5b, 0x00, 0xa9, 0xc9, 0xfe, 0xb9, 0x54, 0x32, 0x8b, - 0x37, 0x71, 0x51, 0xef, 0x40, 0x22, 0x32, 0xf0, 0xbf, 0x3a, 0xb1, 0xdb, 0xc4, 0x45, 0x9d, 0x45, - 0xcc, 0x0e, 0x73, 0xb9, 0x0b, 0x9d, 0x39, 0x9b, 0x4a, 0x4e, 0xce, 0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1e, 0xcd, 0x76, 0x88, 0xb5, 0xa6, 0xdd, 0x7a, 0xcc, 0xc1, 0xee, 0x75, 0x1a, 0xdd, 0x83, - 0x6d, 0xe8, 0xbe, 0xba, 0x07, 0xdb, 0xd8, 0xf8, 0x48, 0xf3, 0x14, 0xec, 0x14, 0xea, 0x74, 0x83, - 0xea, 0x66, 0xc1, 0xce, 0xde, 0xbc, 0xf5, 0x76, 0x41, 0x73, 0xd6, 0xca, 0x2b, 0x6e, 0x0e, 0x09, - 0x96, 0x54, 0x8c, 0xfd, 0xab, 0x55, 0x30, 0x63, 0x05, 0x62, 0xd0, 0x2d, 0x92, 0xf0, 0xf5, 0x97, - 0xda, 0xbc, 0xe7, 0x69, 0x25, 0x48, 0x4d, 0x27, 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xc6, 0x0e, - 0xaf, 0x7a, 0x5d, 0x1c, 0x00, 0x00, + // 1727 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0xcb, 0x73, 0xdb, 0x5e, + 0x15, 0x46, 0x89, 0x63, 0xe2, 0xe3, 0x3c, 0x9c, 0xfb, 0x0b, 0xd4, 0x55, 0xcb, 0xd4, 0x15, 0xa5, + 0xb8, 0x6e, 0xfd, 0x4c, 0xe2, 0xe6, 0xd1, 0xd2, 0xda, 0x7d, 0xa4, 0x66, 0x92, 0xa1, 0xc8, 0x49, + 0x19, 0x1a, 0x8a, 0xe7, 0x46, 0xba, 0x71, 0x44, 0x64, 0x4b, 0x48, 0x72, 0xda, 0xa4, 0x74, 0x53, + 0x58, 0x65, 0xc5, 0x0c, 0xff, 0x00, 0x85, 0x3d, 0xcc, 0x94, 0xff, 0x80, 0x19, 0x26, 0xd9, 0xb0, + 0x29, 0x74, 0x51, 0x16, 0xac, 0x3a, 0x0c, 0xc3, 0x82, 0x45, 0x37, 0xcc, 0xb0, 0x62, 0x74, 0x25, + 0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78, 0xe4, 0x7a, 0x01, + 0xf6, 0x3e, 0xf0, 0xb9, 0xfd, 0x28, 0xe7, 0xfb, 0x9f, 0xee, 0xbe, 0xd2, 0x7e, 0x1d, 0x7a, 0xaf, + 0xa2, 0x1a, 0x07, 0x56, 0xe3, 0x8a, 0x0d, 0xda, 0xb8, 0xfe, 0xc6, 0xc0, 0x64, 0x6b, 0x27, 0xd1, + 0xd1, 0x03, 0xaf, 0xfd, 0xa7, 0xfd, 0x04, 0xc1, 0x16, 0x86, 0x80, 0x64, 0x77, 0xb4, 0xdb, 0x94, + 0xde, 0x32, 0x5a, 0x1c, 0x8c, 0x5e, 0xb2, 0xb9, 0x41, 0xff, 0x07, 0x03, 0x53, 0xa6, 0xa3, 0xe6, + 0x9e, 0x14, 0x79, 0x8e, 0xaf, 0x63, 0xbf, 0xce, 0x7e, 0x7b, 0x18, 0x50, 0x36, 0xd7, 0x1c, 0xe5, + 0xba, 0x82, 0x96, 0x06, 0xe4, 0xda, 0xb2, 0x45, 0x7e, 0x6f, 0x93, 0x6d, 0xee, 0x0e, 0xbd, 0x93, + 0xed, 0xd8, 0x31, 0x7b, 0x27, 0xdb, 0xb9, 0x59, 0xe5, 0x56, 0x2c, 0xe5, 0x41, 0x83, 0x2a, 0x8f, + 0xac, 0x94, 0xf5, 0xfc, 0xcf, 0x18, 0xb8, 0xe2, 0x08, 0x05, 0xab, 0x52, 0xcf, 0x70, 0x1e, 0x7f, + 0xaf, 0x2c, 0x19, 0xbb, 0xb5, 0x6d, 0xf3, 0x85, 0xa4, 0x65, 0x15, 0xb7, 0xfe, 0x0b, 0x2f, 0x2b, + 0xf1, 0x32, 0xa9, 0xd2, 0xe5, 0x94, 0x74, 0xf5, 0x47, 0xfc, 0x8a, 0xe3, 0x69, 0xdb, 0x4f, 0x4d, + 0xe7, 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, 0x94, 0xf0, 0xe1, 0xab, 0x93, 0x20, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // InstanceGroupServiceClient is the client API for InstanceGroupService service. // @@ -1363,6 +1573,10 @@ type InstanceGroupServiceClient interface { // Updates the specified instance group from a YAML file. // This method starts an operation that can be cancelled by another operation. UpdateFromYaml(ctx context.Context, in *UpdateInstanceGroupFromYamlRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Stops the specified instance group. + Stop(ctx context.Context, in *StopInstanceGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Starts the specified instance group. + Start(ctx context.Context, in *StartInstanceGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Deletes the specified instance group. Delete(ctx context.Context, in *DeleteInstanceGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Lists instances for the specified instance group. @@ -1374,10 +1588,10 @@ type InstanceGroupServiceClient interface { } type instanceGroupServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewInstanceGroupServiceClient(cc *grpc.ClientConn) InstanceGroupServiceClient { +func NewInstanceGroupServiceClient(cc grpc.ClientConnInterface) InstanceGroupServiceClient { return &instanceGroupServiceClient{cc} } @@ -1435,6 +1649,24 @@ func (c *instanceGroupServiceClient) UpdateFromYaml(ctx context.Context, in *Upd return out, nil } +func (c *instanceGroupServiceClient) Stop(ctx context.Context, in *StopInstanceGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/Stop", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *instanceGroupServiceClient) Start(ctx context.Context, in *StartInstanceGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/Start", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *instanceGroupServiceClient) Delete(ctx context.Context, in *DeleteInstanceGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { out := new(operation.Operation) err := c.cc.Invoke(ctx, "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/Delete", in, out, opts...) @@ -1491,6 +1723,10 @@ type InstanceGroupServiceServer interface { // Updates the specified instance group from a YAML file. // This method starts an operation that can be cancelled by another operation. UpdateFromYaml(context.Context, *UpdateInstanceGroupFromYamlRequest) (*operation.Operation, error) + // Stops the specified instance group. + Stop(context.Context, *StopInstanceGroupRequest) (*operation.Operation, error) + // Starts the specified instance group. + Start(context.Context, *StartInstanceGroupRequest) (*operation.Operation, error) // Deletes the specified instance group. Delete(context.Context, *DeleteInstanceGroupRequest) (*operation.Operation, error) // Lists instances for the specified instance group. @@ -1523,6 +1759,12 @@ func (*UnimplementedInstanceGroupServiceServer) Update(ctx context.Context, req func (*UnimplementedInstanceGroupServiceServer) UpdateFromYaml(ctx context.Context, req *UpdateInstanceGroupFromYamlRequest) (*operation.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateFromYaml not implemented") } +func (*UnimplementedInstanceGroupServiceServer) Stop(ctx context.Context, req *StopInstanceGroupRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Stop not implemented") +} +func (*UnimplementedInstanceGroupServiceServer) Start(ctx context.Context, req *StartInstanceGroupRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Start not implemented") +} func (*UnimplementedInstanceGroupServiceServer) Delete(ctx context.Context, req *DeleteInstanceGroupRequest) (*operation.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } @@ -1648,6 +1890,42 @@ func _InstanceGroupService_UpdateFromYaml_Handler(srv interface{}, ctx context.C return interceptor(ctx, in, info, handler) } +func _InstanceGroupService_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StopInstanceGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InstanceGroupServiceServer).Stop(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/Stop", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InstanceGroupServiceServer).Stop(ctx, req.(*StopInstanceGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InstanceGroupService_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StartInstanceGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InstanceGroupServiceServer).Start(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/Start", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InstanceGroupServiceServer).Start(ctx, req.(*StartInstanceGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _InstanceGroupService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteInstanceGroupRequest) if err := dec(in); err != nil { @@ -1748,6 +2026,14 @@ var _InstanceGroupService_serviceDesc = grpc.ServiceDesc{ MethodName: "UpdateFromYaml", Handler: _InstanceGroupService_UpdateFromYaml_Handler, }, + { + MethodName: "Stop", + Handler: _InstanceGroupService_Stop_Handler, + }, + { + MethodName: "Start", + Handler: _InstanceGroupService_Start_Handler, + }, { MethodName: "Delete", Handler: _InstanceGroupService_Delete_Handler, diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup/instance_group_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup/instance_group_service.pbext.go new file mode 100644 index 000000000..03b74e62d --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup/instance_group_service.pbext.go @@ -0,0 +1,276 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package instancegroup + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetInstanceGroupRequest) SetInstanceGroupId(v string) { + m.InstanceGroupId = v +} + +func (m *GetInstanceGroupRequest) SetView(v InstanceGroupView) { + m.View = v +} + +func (m *CreateInstanceGroupRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateInstanceGroupRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateInstanceGroupRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateInstanceGroupRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateInstanceGroupRequest) SetInstanceTemplate(v *InstanceTemplate) { + m.InstanceTemplate = v +} + +func (m *CreateInstanceGroupRequest) SetScalePolicy(v *ScalePolicy) { + m.ScalePolicy = v +} + +func (m *CreateInstanceGroupRequest) SetDeployPolicy(v *DeployPolicy) { + m.DeployPolicy = v +} + +func (m *CreateInstanceGroupRequest) SetAllocationPolicy(v *AllocationPolicy) { + m.AllocationPolicy = v +} + +func (m *CreateInstanceGroupRequest) SetLoadBalancerSpec(v *LoadBalancerSpec) { + m.LoadBalancerSpec = v +} + +func (m *CreateInstanceGroupRequest) SetHealthChecksSpec(v *HealthChecksSpec) { + m.HealthChecksSpec = v +} + +func (m *CreateInstanceGroupRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *CreateInstanceGroupRequest) SetVariables(v []*Variable) { + m.Variables = v +} + +func (m *CreateInstanceGroupRequest) SetDeletionProtection(v bool) { + m.DeletionProtection = v +} + +func (m *CreateInstanceGroupFromYamlRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateInstanceGroupFromYamlRequest) SetInstanceGroupYaml(v string) { + m.InstanceGroupYaml = v +} + +func (m *CreateInstanceGroupMetadata) SetInstanceGroupId(v string) { + m.InstanceGroupId = v +} + +func (m *UpdateInstanceGroupRequest) SetInstanceGroupId(v string) { + m.InstanceGroupId = v +} + +func (m *UpdateInstanceGroupRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateInstanceGroupRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateInstanceGroupRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateInstanceGroupRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateInstanceGroupRequest) SetInstanceTemplate(v *InstanceTemplate) { + m.InstanceTemplate = v +} + +func (m *UpdateInstanceGroupRequest) SetScalePolicy(v *ScalePolicy) { + m.ScalePolicy = v +} + +func (m *UpdateInstanceGroupRequest) SetDeployPolicy(v *DeployPolicy) { + m.DeployPolicy = v +} + +func (m *UpdateInstanceGroupRequest) SetAllocationPolicy(v *AllocationPolicy) { + m.AllocationPolicy = v +} + +func (m *UpdateInstanceGroupRequest) SetHealthChecksSpec(v *HealthChecksSpec) { + m.HealthChecksSpec = v +} + +func (m *UpdateInstanceGroupRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *UpdateInstanceGroupRequest) SetLoadBalancerSpec(v *LoadBalancerSpec) { + m.LoadBalancerSpec = v +} + +func (m *UpdateInstanceGroupRequest) SetVariables(v []*Variable) { + m.Variables = v +} + +func (m *UpdateInstanceGroupRequest) SetDeletionProtection(v bool) { + m.DeletionProtection = v +} + +func (m *UpdateInstanceGroupFromYamlRequest) SetInstanceGroupId(v string) { + m.InstanceGroupId = v +} + +func (m *UpdateInstanceGroupFromYamlRequest) SetInstanceGroupYaml(v string) { + m.InstanceGroupYaml = v +} + +func (m *UpdateInstanceGroupMetadata) SetInstanceGroupId(v string) { + m.InstanceGroupId = v +} + +func (m *StartInstanceGroupRequest) SetInstanceGroupId(v string) { + m.InstanceGroupId = v +} + +func (m *StartInstanceGroupMetadata) SetInstanceGroupId(v string) { + m.InstanceGroupId = v +} + +func (m *StopInstanceGroupRequest) SetInstanceGroupId(v string) { + m.InstanceGroupId = v +} + +func (m *StopInstanceGroupMetadata) SetInstanceGroupId(v string) { + m.InstanceGroupId = v +} + +func (m *DeleteInstanceGroupRequest) SetInstanceGroupId(v string) { + m.InstanceGroupId = v +} + +func (m *DeleteInstanceGroupMetadata) SetInstanceGroupId(v string) { + m.InstanceGroupId = v +} + +func (m *DeleteInstancesMetadata) SetInstanceGroupId(v string) { + m.InstanceGroupId = v +} + +func (m *ListInstanceGroupsRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListInstanceGroupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListInstanceGroupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListInstanceGroupsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListInstanceGroupsRequest) SetView(v InstanceGroupView) { + m.View = v +} + +func (m *ListInstanceGroupsResponse) SetInstanceGroups(v []*InstanceGroup) { + m.InstanceGroups = v +} + +func (m *ListInstanceGroupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListInstanceGroupInstancesRequest) SetInstanceGroupId(v string) { + m.InstanceGroupId = v +} + +func (m *ListInstanceGroupInstancesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListInstanceGroupInstancesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListInstanceGroupInstancesRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListInstanceGroupInstancesResponse) SetInstances(v []*ManagedInstance) { + m.Instances = v +} + +func (m *ListInstanceGroupInstancesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListInstanceGroupOperationsRequest) SetInstanceGroupId(v string) { + m.InstanceGroupId = v +} + +func (m *ListInstanceGroupOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListInstanceGroupOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListInstanceGroupOperationsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListInstanceGroupOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListInstanceGroupOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListInstanceGroupLogRecordsRequest) SetInstanceGroupId(v string) { + m.InstanceGroupId = v +} + +func (m *ListInstanceGroupLogRecordsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListInstanceGroupLogRecordsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListInstanceGroupLogRecordsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListInstanceGroupLogRecordsResponse) SetLogRecords(v []*LogRecord) { + m.LogRecords = v +} + +func (m *ListInstanceGroupLogRecordsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/placement_group.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/placement_group.pb.go new file mode 100644 index 000000000..ea3b70e9a --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/placement_group.pb.go @@ -0,0 +1,219 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/compute/v1/placement_group.proto + +package compute + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type PlacementGroup struct { + // ID of the placement group. Generated at creation time. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // ID of the folder that the placement group belongs to. + FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // Creation timestamp. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Name of the placement group. + // The name is unique within the folder. + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + // Description of the placement group. 0-256 characters long. + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + // Placement group labels as `key:value` pairs. + Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Placement strategy. To specify a placement strategy, send the corresponding + // field containing an empty structure. + // + // Types that are valid to be assigned to PlacementStrategy: + // *PlacementGroup_SpreadPlacementStrategy + PlacementStrategy isPlacementGroup_PlacementStrategy `protobuf_oneof:"placement_strategy"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PlacementGroup) Reset() { *m = PlacementGroup{} } +func (m *PlacementGroup) String() string { return proto.CompactTextString(m) } +func (*PlacementGroup) ProtoMessage() {} +func (*PlacementGroup) Descriptor() ([]byte, []int) { + return fileDescriptor_0e9521ba5da0945a, []int{0} +} + +func (m *PlacementGroup) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PlacementGroup.Unmarshal(m, b) +} +func (m *PlacementGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PlacementGroup.Marshal(b, m, deterministic) +} +func (m *PlacementGroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlacementGroup.Merge(m, src) +} +func (m *PlacementGroup) XXX_Size() int { + return xxx_messageInfo_PlacementGroup.Size(m) +} +func (m *PlacementGroup) XXX_DiscardUnknown() { + xxx_messageInfo_PlacementGroup.DiscardUnknown(m) +} + +var xxx_messageInfo_PlacementGroup proto.InternalMessageInfo + +func (m *PlacementGroup) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *PlacementGroup) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *PlacementGroup) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *PlacementGroup) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *PlacementGroup) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *PlacementGroup) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +type isPlacementGroup_PlacementStrategy interface { + isPlacementGroup_PlacementStrategy() +} + +type PlacementGroup_SpreadPlacementStrategy struct { + SpreadPlacementStrategy *SpreadPlacementStrategy `protobuf:"bytes,7,opt,name=spread_placement_strategy,json=spreadPlacementStrategy,proto3,oneof"` +} + +func (*PlacementGroup_SpreadPlacementStrategy) isPlacementGroup_PlacementStrategy() {} + +func (m *PlacementGroup) GetPlacementStrategy() isPlacementGroup_PlacementStrategy { + if m != nil { + return m.PlacementStrategy + } + return nil +} + +func (m *PlacementGroup) GetSpreadPlacementStrategy() *SpreadPlacementStrategy { + if x, ok := m.GetPlacementStrategy().(*PlacementGroup_SpreadPlacementStrategy); ok { + return x.SpreadPlacementStrategy + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*PlacementGroup) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*PlacementGroup_SpreadPlacementStrategy)(nil), + } +} + +// This is an empty structure that must be passed to explicitly +// specify the required placement strategy. +type SpreadPlacementStrategy struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SpreadPlacementStrategy) Reset() { *m = SpreadPlacementStrategy{} } +func (m *SpreadPlacementStrategy) String() string { return proto.CompactTextString(m) } +func (*SpreadPlacementStrategy) ProtoMessage() {} +func (*SpreadPlacementStrategy) Descriptor() ([]byte, []int) { + return fileDescriptor_0e9521ba5da0945a, []int{1} +} + +func (m *SpreadPlacementStrategy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SpreadPlacementStrategy.Unmarshal(m, b) +} +func (m *SpreadPlacementStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SpreadPlacementStrategy.Marshal(b, m, deterministic) +} +func (m *SpreadPlacementStrategy) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpreadPlacementStrategy.Merge(m, src) +} +func (m *SpreadPlacementStrategy) XXX_Size() int { + return xxx_messageInfo_SpreadPlacementStrategy.Size(m) +} +func (m *SpreadPlacementStrategy) XXX_DiscardUnknown() { + xxx_messageInfo_SpreadPlacementStrategy.DiscardUnknown(m) +} + +var xxx_messageInfo_SpreadPlacementStrategy proto.InternalMessageInfo + +func init() { + proto.RegisterType((*PlacementGroup)(nil), "yandex.cloud.compute.v1.PlacementGroup") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.compute.v1.PlacementGroup.LabelsEntry") + proto.RegisterType((*SpreadPlacementStrategy)(nil), "yandex.cloud.compute.v1.SpreadPlacementStrategy") +} + +func init() { + proto.RegisterFile("yandex/cloud/compute/v1/placement_group.proto", fileDescriptor_0e9521ba5da0945a) +} + +var fileDescriptor_0e9521ba5da0945a = []byte{ + // 402 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x8e, 0xd3, 0x30, + 0x10, 0x86, 0x49, 0xdb, 0x2d, 0x74, 0x2a, 0xad, 0x90, 0x85, 0xd4, 0x6c, 0x56, 0x88, 0x6a, 0x4f, + 0xbd, 0xd4, 0xa6, 0xbb, 0x17, 0x16, 0x4e, 0x2c, 0x42, 0x80, 0xe0, 0x80, 0xb2, 0x9c, 0xb8, 0x44, + 0x4e, 0x3c, 0x1b, 0x2c, 0x9c, 0x38, 0x72, 0x9c, 0x88, 0xbc, 0x1d, 0xf0, 0x64, 0x28, 0x8e, 0x0b, + 0xad, 0xd8, 0xdc, 0x26, 0x33, 0xff, 0xcc, 0x7c, 0xf3, 0xc7, 0xb0, 0xed, 0x78, 0x29, 0xf0, 0x07, + 0xcb, 0x94, 0x6e, 0x04, 0xcb, 0x74, 0x51, 0x35, 0x16, 0x59, 0xbb, 0x63, 0x95, 0xe2, 0x19, 0x16, + 0x58, 0xda, 0x24, 0x37, 0xba, 0xa9, 0x68, 0x65, 0xb4, 0xd5, 0x64, 0x35, 0xc8, 0xa9, 0x93, 0x53, + 0x2f, 0xa7, 0xed, 0x2e, 0x7a, 0x96, 0x6b, 0x9d, 0x2b, 0x64, 0x4e, 0x96, 0x36, 0x77, 0xcc, 0xca, + 0x02, 0x6b, 0xcb, 0x0b, 0xdf, 0x19, 0x3d, 0x3d, 0x5a, 0xd4, 0x72, 0x25, 0x05, 0xb7, 0x52, 0x97, + 0x43, 0xf9, 0xe2, 0xf7, 0x14, 0x4e, 0x3f, 0xef, 0x57, 0xbe, 0xeb, 0x37, 0x92, 0x53, 0x98, 0x48, + 0x11, 0x06, 0xeb, 0x60, 0xb3, 0x88, 0x27, 0x52, 0x90, 0x73, 0x58, 0xdc, 0x69, 0x25, 0xd0, 0x24, + 0x52, 0x84, 0x13, 0x97, 0x7e, 0x34, 0x24, 0x3e, 0x08, 0x72, 0x0d, 0x90, 0x19, 0xe4, 0x16, 0x45, + 0xc2, 0x6d, 0x38, 0x5d, 0x07, 0x9b, 0xe5, 0x65, 0x44, 0x07, 0x28, 0xba, 0x87, 0xa2, 0x5f, 0xf6, + 0x50, 0xf1, 0xc2, 0xab, 0x5f, 0x5b, 0x42, 0x60, 0x56, 0xf2, 0x02, 0xc3, 0x99, 0x1b, 0xe9, 0x62, + 0xb2, 0x86, 0xa5, 0xc0, 0x3a, 0x33, 0xb2, 0xea, 0x19, 0xc3, 0x13, 0x57, 0x3a, 0x4c, 0x91, 0x8f, + 0x30, 0x57, 0x3c, 0x45, 0x55, 0x87, 0xf3, 0xf5, 0x74, 0xb3, 0xbc, 0xbc, 0xa2, 0x23, 0xd6, 0xd0, + 0xe3, 0xb3, 0xe8, 0x27, 0xd7, 0xf5, 0xb6, 0xb4, 0xa6, 0x8b, 0xfd, 0x08, 0x52, 0xc2, 0x59, 0x5d, + 0x19, 0xe4, 0x22, 0xf9, 0x67, 0x7b, 0x6d, 0x0d, 0xb7, 0x98, 0x77, 0xe1, 0x43, 0x77, 0xcc, 0xf3, + 0xd1, 0xf9, 0xb7, 0xae, 0xf3, 0xef, 0x96, 0x5b, 0xdf, 0xf7, 0xfe, 0x41, 0xbc, 0xaa, 0xef, 0x2f, + 0x45, 0xd7, 0xb0, 0x3c, 0xc0, 0x20, 0x8f, 0x61, 0xfa, 0x1d, 0x3b, 0x6f, 0x75, 0x1f, 0x92, 0x27, + 0x70, 0xd2, 0x72, 0xd5, 0xa0, 0xf7, 0x79, 0xf8, 0x78, 0x39, 0x79, 0x11, 0xdc, 0x44, 0x40, 0xfe, + 0x67, 0x24, 0xb3, 0x9f, 0xbf, 0x76, 0xc1, 0xc5, 0x19, 0xac, 0x46, 0x60, 0x6e, 0x52, 0x38, 0x3f, + 0xe2, 0xe7, 0x95, 0x3c, 0xb8, 0xe1, 0xeb, 0x9b, 0x5c, 0xda, 0x6f, 0x4d, 0xda, 0xa7, 0xd8, 0xa0, + 0xdb, 0x0e, 0x0f, 0x25, 0xd7, 0xdb, 0x1c, 0x4b, 0xf7, 0x03, 0xd9, 0xc8, 0x53, 0x7d, 0xe5, 0xc3, + 0x74, 0xee, 0x64, 0x57, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xec, 0x0f, 0x34, 0xad, 0xd4, 0x02, + 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/placement_group.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/placement_group.pbext.go new file mode 100644 index 000000000..3749a2aa6 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/placement_group.pbext.go @@ -0,0 +1,43 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package compute + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +type PlacementGroup_PlacementStrategy = isPlacementGroup_PlacementStrategy + +func (m *PlacementGroup) SetPlacementStrategy(v PlacementGroup_PlacementStrategy) { + m.PlacementStrategy = v +} + +func (m *PlacementGroup) SetId(v string) { + m.Id = v +} + +func (m *PlacementGroup) SetFolderId(v string) { + m.FolderId = v +} + +func (m *PlacementGroup) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *PlacementGroup) SetName(v string) { + m.Name = v +} + +func (m *PlacementGroup) SetDescription(v string) { + m.Description = v +} + +func (m *PlacementGroup) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *PlacementGroup) SetSpreadPlacementStrategy(v *SpreadPlacementStrategy) { + m.PlacementStrategy = &PlacementGroup_SpreadPlacementStrategy{ + SpreadPlacementStrategy: v, + } +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/placement_group_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/placement_group_service.pb.go new file mode 100644 index 000000000..6cec80bea --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/placement_group_service.pb.go @@ -0,0 +1,1185 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/compute/v1/placement_group_service.proto + +package compute + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud/api" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GetPlacementGroupRequest struct { + // ID of the placement group to return. + // + // To get a placement group ID make a [PlacementGroupService.List] request. + PlacementGroupId string `protobuf:"bytes,1,opt,name=placement_group_id,json=placementGroupId,proto3" json:"placement_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetPlacementGroupRequest) Reset() { *m = GetPlacementGroupRequest{} } +func (m *GetPlacementGroupRequest) String() string { return proto.CompactTextString(m) } +func (*GetPlacementGroupRequest) ProtoMessage() {} +func (*GetPlacementGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_921042c1bc4246df, []int{0} +} + +func (m *GetPlacementGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetPlacementGroupRequest.Unmarshal(m, b) +} +func (m *GetPlacementGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetPlacementGroupRequest.Marshal(b, m, deterministic) +} +func (m *GetPlacementGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetPlacementGroupRequest.Merge(m, src) +} +func (m *GetPlacementGroupRequest) XXX_Size() int { + return xxx_messageInfo_GetPlacementGroupRequest.Size(m) +} +func (m *GetPlacementGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetPlacementGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetPlacementGroupRequest proto.InternalMessageInfo + +func (m *GetPlacementGroupRequest) GetPlacementGroupId() string { + if m != nil { + return m.PlacementGroupId + } + return "" +} + +type ListPlacementGroupsRequest struct { + // ID of the folder to list placement groups in. + // + // To get the folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request. + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], + // the service returns a [ListPlacementGroupsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, + // set [page_token] to the [ListPlacementGroupsResponse.next_page_token] + // returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters resources listed in the response. + // Currently you can use filtering only on the [PlacementGroup.name] field. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListPlacementGroupsRequest) Reset() { *m = ListPlacementGroupsRequest{} } +func (m *ListPlacementGroupsRequest) String() string { return proto.CompactTextString(m) } +func (*ListPlacementGroupsRequest) ProtoMessage() {} +func (*ListPlacementGroupsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_921042c1bc4246df, []int{1} +} + +func (m *ListPlacementGroupsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListPlacementGroupsRequest.Unmarshal(m, b) +} +func (m *ListPlacementGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListPlacementGroupsRequest.Marshal(b, m, deterministic) +} +func (m *ListPlacementGroupsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListPlacementGroupsRequest.Merge(m, src) +} +func (m *ListPlacementGroupsRequest) XXX_Size() int { + return xxx_messageInfo_ListPlacementGroupsRequest.Size(m) +} +func (m *ListPlacementGroupsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListPlacementGroupsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListPlacementGroupsRequest proto.InternalMessageInfo + +func (m *ListPlacementGroupsRequest) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *ListPlacementGroupsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListPlacementGroupsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +func (m *ListPlacementGroupsRequest) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +type ListPlacementGroupsResponse struct { + // Lists placement groups in the specified folder. + PlacementGroups []*PlacementGroup `protobuf:"bytes,1,rep,name=placement_groups,json=placementGroups,proto3" json:"placement_groups,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListPlacementGroupsRequest.page_size], use `next_page_token` as the value + // for the [ListPlacementGroupsRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListPlacementGroupsResponse) Reset() { *m = ListPlacementGroupsResponse{} } +func (m *ListPlacementGroupsResponse) String() string { return proto.CompactTextString(m) } +func (*ListPlacementGroupsResponse) ProtoMessage() {} +func (*ListPlacementGroupsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_921042c1bc4246df, []int{2} +} + +func (m *ListPlacementGroupsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListPlacementGroupsResponse.Unmarshal(m, b) +} +func (m *ListPlacementGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListPlacementGroupsResponse.Marshal(b, m, deterministic) +} +func (m *ListPlacementGroupsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListPlacementGroupsResponse.Merge(m, src) +} +func (m *ListPlacementGroupsResponse) XXX_Size() int { + return xxx_messageInfo_ListPlacementGroupsResponse.Size(m) +} +func (m *ListPlacementGroupsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListPlacementGroupsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListPlacementGroupsResponse proto.InternalMessageInfo + +func (m *ListPlacementGroupsResponse) GetPlacementGroups() []*PlacementGroup { + if m != nil { + return m.PlacementGroups + } + return nil +} + +func (m *ListPlacementGroupsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type CreatePlacementGroupRequest struct { + // ID of the folder to create a placement group in. + // + // To get a folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request. + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // Name of the placement group. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Description of the placement group. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // Resource labels as `key:value` pairs. + Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Placement strategy. + // + // Types that are valid to be assigned to PlacementStrategy: + // *CreatePlacementGroupRequest_SpreadPlacementStrategy + PlacementStrategy isCreatePlacementGroupRequest_PlacementStrategy `protobuf_oneof:"placement_strategy"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreatePlacementGroupRequest) Reset() { *m = CreatePlacementGroupRequest{} } +func (m *CreatePlacementGroupRequest) String() string { return proto.CompactTextString(m) } +func (*CreatePlacementGroupRequest) ProtoMessage() {} +func (*CreatePlacementGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_921042c1bc4246df, []int{3} +} + +func (m *CreatePlacementGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreatePlacementGroupRequest.Unmarshal(m, b) +} +func (m *CreatePlacementGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreatePlacementGroupRequest.Marshal(b, m, deterministic) +} +func (m *CreatePlacementGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreatePlacementGroupRequest.Merge(m, src) +} +func (m *CreatePlacementGroupRequest) XXX_Size() int { + return xxx_messageInfo_CreatePlacementGroupRequest.Size(m) +} +func (m *CreatePlacementGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreatePlacementGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreatePlacementGroupRequest proto.InternalMessageInfo + +func (m *CreatePlacementGroupRequest) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *CreatePlacementGroupRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *CreatePlacementGroupRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *CreatePlacementGroupRequest) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +type isCreatePlacementGroupRequest_PlacementStrategy interface { + isCreatePlacementGroupRequest_PlacementStrategy() +} + +type CreatePlacementGroupRequest_SpreadPlacementStrategy struct { + SpreadPlacementStrategy *SpreadPlacementStrategy `protobuf:"bytes,5,opt,name=spread_placement_strategy,json=spreadPlacementStrategy,proto3,oneof"` +} + +func (*CreatePlacementGroupRequest_SpreadPlacementStrategy) isCreatePlacementGroupRequest_PlacementStrategy() { +} + +func (m *CreatePlacementGroupRequest) GetPlacementStrategy() isCreatePlacementGroupRequest_PlacementStrategy { + if m != nil { + return m.PlacementStrategy + } + return nil +} + +func (m *CreatePlacementGroupRequest) GetSpreadPlacementStrategy() *SpreadPlacementStrategy { + if x, ok := m.GetPlacementStrategy().(*CreatePlacementGroupRequest_SpreadPlacementStrategy); ok { + return x.SpreadPlacementStrategy + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CreatePlacementGroupRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CreatePlacementGroupRequest_SpreadPlacementStrategy)(nil), + } +} + +type CreatePlacementGroupMetadata struct { + // ID of the placement group that is being created. + PlacementGroupId string `protobuf:"bytes,1,opt,name=placement_group_id,json=placementGroupId,proto3" json:"placement_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreatePlacementGroupMetadata) Reset() { *m = CreatePlacementGroupMetadata{} } +func (m *CreatePlacementGroupMetadata) String() string { return proto.CompactTextString(m) } +func (*CreatePlacementGroupMetadata) ProtoMessage() {} +func (*CreatePlacementGroupMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_921042c1bc4246df, []int{4} +} + +func (m *CreatePlacementGroupMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreatePlacementGroupMetadata.Unmarshal(m, b) +} +func (m *CreatePlacementGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreatePlacementGroupMetadata.Marshal(b, m, deterministic) +} +func (m *CreatePlacementGroupMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreatePlacementGroupMetadata.Merge(m, src) +} +func (m *CreatePlacementGroupMetadata) XXX_Size() int { + return xxx_messageInfo_CreatePlacementGroupMetadata.Size(m) +} +func (m *CreatePlacementGroupMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CreatePlacementGroupMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CreatePlacementGroupMetadata proto.InternalMessageInfo + +func (m *CreatePlacementGroupMetadata) GetPlacementGroupId() string { + if m != nil { + return m.PlacementGroupId + } + return "" +} + +type UpdatePlacementGroupRequest struct { + // ID of the placement group to update. + // + // To get the placement group ID, use an [PlacementGroupService.List] request. + PlacementGroupId string `protobuf:"bytes,1,opt,name=placement_group_id,json=placementGroupId,proto3" json:"placement_group_id,omitempty"` + // Field mask that specifies which fields of the PlacementGroup resource should be updated. + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // Name of the placement group. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // Description of the placement group. + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + // Resource labels as `key:value` pairs. + // + // The existing set of `labels` is completely replaced by the provided set. + Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,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 *UpdatePlacementGroupRequest) Reset() { *m = UpdatePlacementGroupRequest{} } +func (m *UpdatePlacementGroupRequest) String() string { return proto.CompactTextString(m) } +func (*UpdatePlacementGroupRequest) ProtoMessage() {} +func (*UpdatePlacementGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_921042c1bc4246df, []int{5} +} + +func (m *UpdatePlacementGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdatePlacementGroupRequest.Unmarshal(m, b) +} +func (m *UpdatePlacementGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdatePlacementGroupRequest.Marshal(b, m, deterministic) +} +func (m *UpdatePlacementGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdatePlacementGroupRequest.Merge(m, src) +} +func (m *UpdatePlacementGroupRequest) XXX_Size() int { + return xxx_messageInfo_UpdatePlacementGroupRequest.Size(m) +} +func (m *UpdatePlacementGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdatePlacementGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdatePlacementGroupRequest proto.InternalMessageInfo + +func (m *UpdatePlacementGroupRequest) GetPlacementGroupId() string { + if m != nil { + return m.PlacementGroupId + } + return "" +} + +func (m *UpdatePlacementGroupRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdatePlacementGroupRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *UpdatePlacementGroupRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *UpdatePlacementGroupRequest) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +type UpdatePlacementGroupMetadata struct { + // ID of the placement group that is being updated. + PlacementGroupId string `protobuf:"bytes,1,opt,name=placement_group_id,json=placementGroupId,proto3" json:"placement_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdatePlacementGroupMetadata) Reset() { *m = UpdatePlacementGroupMetadata{} } +func (m *UpdatePlacementGroupMetadata) String() string { return proto.CompactTextString(m) } +func (*UpdatePlacementGroupMetadata) ProtoMessage() {} +func (*UpdatePlacementGroupMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_921042c1bc4246df, []int{6} +} + +func (m *UpdatePlacementGroupMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdatePlacementGroupMetadata.Unmarshal(m, b) +} +func (m *UpdatePlacementGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdatePlacementGroupMetadata.Marshal(b, m, deterministic) +} +func (m *UpdatePlacementGroupMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdatePlacementGroupMetadata.Merge(m, src) +} +func (m *UpdatePlacementGroupMetadata) XXX_Size() int { + return xxx_messageInfo_UpdatePlacementGroupMetadata.Size(m) +} +func (m *UpdatePlacementGroupMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_UpdatePlacementGroupMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdatePlacementGroupMetadata proto.InternalMessageInfo + +func (m *UpdatePlacementGroupMetadata) GetPlacementGroupId() string { + if m != nil { + return m.PlacementGroupId + } + return "" +} + +type DeletePlacementGroupRequest struct { + // ID of the placement group to delete. + // + // To get the placement group ID, use [PlacementGroupService.List] request. + PlacementGroupId string `protobuf:"bytes,1,opt,name=placement_group_id,json=placementGroupId,proto3" json:"placement_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeletePlacementGroupRequest) Reset() { *m = DeletePlacementGroupRequest{} } +func (m *DeletePlacementGroupRequest) String() string { return proto.CompactTextString(m) } +func (*DeletePlacementGroupRequest) ProtoMessage() {} +func (*DeletePlacementGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_921042c1bc4246df, []int{7} +} + +func (m *DeletePlacementGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeletePlacementGroupRequest.Unmarshal(m, b) +} +func (m *DeletePlacementGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeletePlacementGroupRequest.Marshal(b, m, deterministic) +} +func (m *DeletePlacementGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeletePlacementGroupRequest.Merge(m, src) +} +func (m *DeletePlacementGroupRequest) XXX_Size() int { + return xxx_messageInfo_DeletePlacementGroupRequest.Size(m) +} +func (m *DeletePlacementGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeletePlacementGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeletePlacementGroupRequest proto.InternalMessageInfo + +func (m *DeletePlacementGroupRequest) GetPlacementGroupId() string { + if m != nil { + return m.PlacementGroupId + } + return "" +} + +type DeletePlacementGroupMetadata struct { + // ID of the placement group that is being deleted. + PlacementGroupId string `protobuf:"bytes,1,opt,name=placement_group_id,json=placementGroupId,proto3" json:"placement_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeletePlacementGroupMetadata) Reset() { *m = DeletePlacementGroupMetadata{} } +func (m *DeletePlacementGroupMetadata) String() string { return proto.CompactTextString(m) } +func (*DeletePlacementGroupMetadata) ProtoMessage() {} +func (*DeletePlacementGroupMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_921042c1bc4246df, []int{8} +} + +func (m *DeletePlacementGroupMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeletePlacementGroupMetadata.Unmarshal(m, b) +} +func (m *DeletePlacementGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeletePlacementGroupMetadata.Marshal(b, m, deterministic) +} +func (m *DeletePlacementGroupMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeletePlacementGroupMetadata.Merge(m, src) +} +func (m *DeletePlacementGroupMetadata) XXX_Size() int { + return xxx_messageInfo_DeletePlacementGroupMetadata.Size(m) +} +func (m *DeletePlacementGroupMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DeletePlacementGroupMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DeletePlacementGroupMetadata proto.InternalMessageInfo + +func (m *DeletePlacementGroupMetadata) GetPlacementGroupId() string { + if m != nil { + return m.PlacementGroupId + } + return "" +} + +type ListPlacementGroupInstancesRequest struct { + // ID of the placement group to list instances for. + // + // To get the placement group ID, use [PlacementGroupService.List] request. + PlacementGroupId string `protobuf:"bytes,1,opt,name=placement_group_id,json=placementGroupId,proto3" json:"placement_group_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], + // the service returns a [ListPlacementGroupInstancesResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, + // set [page_token] to the [ListPlacementGroupInstancesResponse.next_page_token] + // returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListPlacementGroupInstancesRequest) Reset() { *m = ListPlacementGroupInstancesRequest{} } +func (m *ListPlacementGroupInstancesRequest) String() string { return proto.CompactTextString(m) } +func (*ListPlacementGroupInstancesRequest) ProtoMessage() {} +func (*ListPlacementGroupInstancesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_921042c1bc4246df, []int{9} +} + +func (m *ListPlacementGroupInstancesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListPlacementGroupInstancesRequest.Unmarshal(m, b) +} +func (m *ListPlacementGroupInstancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListPlacementGroupInstancesRequest.Marshal(b, m, deterministic) +} +func (m *ListPlacementGroupInstancesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListPlacementGroupInstancesRequest.Merge(m, src) +} +func (m *ListPlacementGroupInstancesRequest) XXX_Size() int { + return xxx_messageInfo_ListPlacementGroupInstancesRequest.Size(m) +} +func (m *ListPlacementGroupInstancesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListPlacementGroupInstancesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListPlacementGroupInstancesRequest proto.InternalMessageInfo + +func (m *ListPlacementGroupInstancesRequest) GetPlacementGroupId() string { + if m != nil { + return m.PlacementGroupId + } + return "" +} + +func (m *ListPlacementGroupInstancesRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListPlacementGroupInstancesRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListPlacementGroupInstancesResponse struct { + // Lists instances for the specified placement group. + Instances []*Instance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"` + // This token allows you to get the next page of results for list requests. If the number of results + // is more than [ListPlacementGroupInstancesRequest.page_size], use + // [next_page_token] as the value + // for the [ListPlacementGroupInstancesRequest.page_token] query parameter + // in the next list request. Each subsequent list request will have its own + // [next_page_token] to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListPlacementGroupInstancesResponse) Reset() { *m = ListPlacementGroupInstancesResponse{} } +func (m *ListPlacementGroupInstancesResponse) String() string { return proto.CompactTextString(m) } +func (*ListPlacementGroupInstancesResponse) ProtoMessage() {} +func (*ListPlacementGroupInstancesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_921042c1bc4246df, []int{10} +} + +func (m *ListPlacementGroupInstancesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListPlacementGroupInstancesResponse.Unmarshal(m, b) +} +func (m *ListPlacementGroupInstancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListPlacementGroupInstancesResponse.Marshal(b, m, deterministic) +} +func (m *ListPlacementGroupInstancesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListPlacementGroupInstancesResponse.Merge(m, src) +} +func (m *ListPlacementGroupInstancesResponse) XXX_Size() int { + return xxx_messageInfo_ListPlacementGroupInstancesResponse.Size(m) +} +func (m *ListPlacementGroupInstancesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListPlacementGroupInstancesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListPlacementGroupInstancesResponse proto.InternalMessageInfo + +func (m *ListPlacementGroupInstancesResponse) GetInstances() []*Instance { + if m != nil { + return m.Instances + } + return nil +} + +func (m *ListPlacementGroupInstancesResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type ListPlacementGroupOperationsRequest struct { + // ID of the placement group to list operations for. + // + // To get the placement group ID, use [PlacementGroupService.List] request. + PlacementGroupId string `protobuf:"bytes,1,opt,name=placement_group_id,json=placementGroupId,proto3" json:"placement_group_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], the service returns a [ListPlacementGroupOperationsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set [page_token] to the + // [ListPlacementGroupOperationsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListPlacementGroupOperationsRequest) Reset() { *m = ListPlacementGroupOperationsRequest{} } +func (m *ListPlacementGroupOperationsRequest) String() string { return proto.CompactTextString(m) } +func (*ListPlacementGroupOperationsRequest) ProtoMessage() {} +func (*ListPlacementGroupOperationsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_921042c1bc4246df, []int{11} +} + +func (m *ListPlacementGroupOperationsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListPlacementGroupOperationsRequest.Unmarshal(m, b) +} +func (m *ListPlacementGroupOperationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListPlacementGroupOperationsRequest.Marshal(b, m, deterministic) +} +func (m *ListPlacementGroupOperationsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListPlacementGroupOperationsRequest.Merge(m, src) +} +func (m *ListPlacementGroupOperationsRequest) XXX_Size() int { + return xxx_messageInfo_ListPlacementGroupOperationsRequest.Size(m) +} +func (m *ListPlacementGroupOperationsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListPlacementGroupOperationsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListPlacementGroupOperationsRequest proto.InternalMessageInfo + +func (m *ListPlacementGroupOperationsRequest) GetPlacementGroupId() string { + if m != nil { + return m.PlacementGroupId + } + return "" +} + +func (m *ListPlacementGroupOperationsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListPlacementGroupOperationsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListPlacementGroupOperationsResponse struct { + // List of operations for the specified placement group. + Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` + // This token allows you to get the next page of results for list requests. If the number of results + // is larger than [ListPlacementGroupOperationsRequest.page_size], use the [next_page_token] as the value + // for the [ListPlacementGroupOperationsRequest.page_token] query parameter in the next list request. + // Each subsequent list request will have its own [next_page_token] to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListPlacementGroupOperationsResponse) Reset() { *m = ListPlacementGroupOperationsResponse{} } +func (m *ListPlacementGroupOperationsResponse) String() string { return proto.CompactTextString(m) } +func (*ListPlacementGroupOperationsResponse) ProtoMessage() {} +func (*ListPlacementGroupOperationsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_921042c1bc4246df, []int{12} +} + +func (m *ListPlacementGroupOperationsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListPlacementGroupOperationsResponse.Unmarshal(m, b) +} +func (m *ListPlacementGroupOperationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListPlacementGroupOperationsResponse.Marshal(b, m, deterministic) +} +func (m *ListPlacementGroupOperationsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListPlacementGroupOperationsResponse.Merge(m, src) +} +func (m *ListPlacementGroupOperationsResponse) XXX_Size() int { + return xxx_messageInfo_ListPlacementGroupOperationsResponse.Size(m) +} +func (m *ListPlacementGroupOperationsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListPlacementGroupOperationsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListPlacementGroupOperationsResponse proto.InternalMessageInfo + +func (m *ListPlacementGroupOperationsResponse) GetOperations() []*operation.Operation { + if m != nil { + return m.Operations + } + return nil +} + +func (m *ListPlacementGroupOperationsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +func init() { + proto.RegisterType((*GetPlacementGroupRequest)(nil), "yandex.cloud.compute.v1.GetPlacementGroupRequest") + proto.RegisterType((*ListPlacementGroupsRequest)(nil), "yandex.cloud.compute.v1.ListPlacementGroupsRequest") + proto.RegisterType((*ListPlacementGroupsResponse)(nil), "yandex.cloud.compute.v1.ListPlacementGroupsResponse") + proto.RegisterType((*CreatePlacementGroupRequest)(nil), "yandex.cloud.compute.v1.CreatePlacementGroupRequest") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.compute.v1.CreatePlacementGroupRequest.LabelsEntry") + proto.RegisterType((*CreatePlacementGroupMetadata)(nil), "yandex.cloud.compute.v1.CreatePlacementGroupMetadata") + proto.RegisterType((*UpdatePlacementGroupRequest)(nil), "yandex.cloud.compute.v1.UpdatePlacementGroupRequest") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.compute.v1.UpdatePlacementGroupRequest.LabelsEntry") + proto.RegisterType((*UpdatePlacementGroupMetadata)(nil), "yandex.cloud.compute.v1.UpdatePlacementGroupMetadata") + proto.RegisterType((*DeletePlacementGroupRequest)(nil), "yandex.cloud.compute.v1.DeletePlacementGroupRequest") + proto.RegisterType((*DeletePlacementGroupMetadata)(nil), "yandex.cloud.compute.v1.DeletePlacementGroupMetadata") + proto.RegisterType((*ListPlacementGroupInstancesRequest)(nil), "yandex.cloud.compute.v1.ListPlacementGroupInstancesRequest") + proto.RegisterType((*ListPlacementGroupInstancesResponse)(nil), "yandex.cloud.compute.v1.ListPlacementGroupInstancesResponse") + proto.RegisterType((*ListPlacementGroupOperationsRequest)(nil), "yandex.cloud.compute.v1.ListPlacementGroupOperationsRequest") + proto.RegisterType((*ListPlacementGroupOperationsResponse)(nil), "yandex.cloud.compute.v1.ListPlacementGroupOperationsResponse") +} + +func init() { + proto.RegisterFile("yandex/cloud/compute/v1/placement_group_service.proto", fileDescriptor_921042c1bc4246df) +} + +var fileDescriptor_921042c1bc4246df = []byte{ + // 996 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0x5f, 0x6f, 0xdb, 0x54, + 0x14, 0xe7, 0x26, 0x69, 0xb4, 0x9e, 0x68, 0x5b, 0x75, 0xc5, 0x58, 0x70, 0x56, 0x29, 0x78, 0x68, + 0x54, 0x15, 0xb5, 0xd7, 0x6c, 0x95, 0x46, 0xbb, 0x09, 0x68, 0x19, 0x5d, 0x45, 0x27, 0xa6, 0x14, + 0xa4, 0x89, 0x97, 0xe8, 0x26, 0x3e, 0x0d, 0x56, 0x1d, 0xdb, 0xf3, 0xbd, 0x89, 0x96, 0x21, 0x5e, + 0x78, 0x07, 0x34, 0x21, 0x21, 0x21, 0xbe, 0xc5, 0x5e, 0x79, 0x81, 0x2f, 0x80, 0x50, 0xc7, 0x23, + 0x8f, 0x7c, 0x10, 0x74, 0xaf, 0xed, 0xfc, 0xab, 0xed, 0xc6, 0x19, 0xd2, 0xde, 0xec, 0x7b, 0xef, + 0x39, 0xe7, 0xf7, 0x3b, 0xe7, 0xf8, 0x77, 0xae, 0x61, 0x6b, 0xc8, 0x5c, 0x0b, 0x9f, 0x9a, 0x1d, + 0xc7, 0xeb, 0x5b, 0x66, 0xc7, 0xeb, 0xf9, 0x7d, 0x81, 0xe6, 0x60, 0xd3, 0xf4, 0x1d, 0xd6, 0xc1, + 0x1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e, 0x4a, 0x4f, 0x5e, 0x9c, 0xae, 0x6f, 0x9d, 0xa3, 0xef, 0x57, + 0x66, 0x87, 0xf1, 0xfd, 0x9e, 0x2f, 0x86, 0xe1, 0x07, 0xb0, 0x9e, 0xff, 0x03, 0xf8, 0x93, 0xc0, + 0x45, 0xd9, 0xac, 0x23, 0x85, 0xa5, 0x3b, 0x39, 0x9a, 0x7a, 0x76, 0x50, 0x68, 0x77, 0x17, 0x33, + 0x8e, 0xbe, 0x8c, 0x5d, 0x45, 0xe3, 0x2e, 0xdd, 0xce, 0x4b, 0xc3, 0x1c, 0xeb, 0xfa, 0x29, 0x81, + 0x4b, 0x32, 0xd6, 0x58, 0x0f, 0x69, 0x1e, 0x50, 0x67, 0x84, 0x5d, 0xbb, 0xb7, 0xa0, 0x75, 0xc4, + 0x69, 0x4f, 0x71, 0xba, 0x47, 0x77, 0x72, 0x73, 0x1a, 0xcb, 0xf0, 0x6e, 0x1b, 0x6a, 0x53, 0x20, + 0x98, 0x6f, 0x4f, 0x00, 0xf9, 0x6a, 0xaf, 0x6b, 0x8b, 0xaf, 0xfb, 0x6d, 0xb9, 0x64, 0x86, 0xe7, + 0x36, 0xc2, 0xdf, 0xb0, 0xae, 0xb7, 0xd1, 0x45, 0x57, 0xb5, 0x8a, 0x99, 0xf2, 0xdb, 0xb7, 0x13, + 0x3d, 0xb6, 0xcb, 0xea, 0xd8, 0xad, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x2d, 0x1e, 0xc5, 0x8d, + 0xfa, 0x0e, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// PlacementGroupServiceClient is the client API for PlacementGroupService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type PlacementGroupServiceClient interface { + // Returns the specified placement group. + // + // To get the list of all available placement groups, make a [List] request. + Get(ctx context.Context, in *GetPlacementGroupRequest, opts ...grpc.CallOption) (*PlacementGroup, error) + // Retrieves the list of placement groups in the specified folder. + List(ctx context.Context, in *ListPlacementGroupsRequest, opts ...grpc.CallOption) (*ListPlacementGroupsResponse, error) + // Creates a placement group in the specified folder. + Create(ctx context.Context, in *CreatePlacementGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Updates the specified placement group. + Update(ctx context.Context, in *UpdatePlacementGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Deletes the specified placement group. + Delete(ctx context.Context, in *DeletePlacementGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Lists instances for the specified placement group. + ListInstances(ctx context.Context, in *ListPlacementGroupInstancesRequest, opts ...grpc.CallOption) (*ListPlacementGroupInstancesResponse, error) + // Lists operations for the specified placement group. + ListOperations(ctx context.Context, in *ListPlacementGroupOperationsRequest, opts ...grpc.CallOption) (*ListPlacementGroupOperationsResponse, error) +} + +type placementGroupServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewPlacementGroupServiceClient(cc grpc.ClientConnInterface) PlacementGroupServiceClient { + return &placementGroupServiceClient{cc} +} + +func (c *placementGroupServiceClient) Get(ctx context.Context, in *GetPlacementGroupRequest, opts ...grpc.CallOption) (*PlacementGroup, error) { + out := new(PlacementGroup) + err := c.cc.Invoke(ctx, "/yandex.cloud.compute.v1.PlacementGroupService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *placementGroupServiceClient) List(ctx context.Context, in *ListPlacementGroupsRequest, opts ...grpc.CallOption) (*ListPlacementGroupsResponse, error) { + out := new(ListPlacementGroupsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.compute.v1.PlacementGroupService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *placementGroupServiceClient) Create(ctx context.Context, in *CreatePlacementGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.compute.v1.PlacementGroupService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *placementGroupServiceClient) Update(ctx context.Context, in *UpdatePlacementGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.compute.v1.PlacementGroupService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *placementGroupServiceClient) Delete(ctx context.Context, in *DeletePlacementGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.compute.v1.PlacementGroupService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *placementGroupServiceClient) ListInstances(ctx context.Context, in *ListPlacementGroupInstancesRequest, opts ...grpc.CallOption) (*ListPlacementGroupInstancesResponse, error) { + out := new(ListPlacementGroupInstancesResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.compute.v1.PlacementGroupService/ListInstances", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *placementGroupServiceClient) ListOperations(ctx context.Context, in *ListPlacementGroupOperationsRequest, opts ...grpc.CallOption) (*ListPlacementGroupOperationsResponse, error) { + out := new(ListPlacementGroupOperationsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.compute.v1.PlacementGroupService/ListOperations", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// PlacementGroupServiceServer is the server API for PlacementGroupService service. +type PlacementGroupServiceServer interface { + // Returns the specified placement group. + // + // To get the list of all available placement groups, make a [List] request. + Get(context.Context, *GetPlacementGroupRequest) (*PlacementGroup, error) + // Retrieves the list of placement groups in the specified folder. + List(context.Context, *ListPlacementGroupsRequest) (*ListPlacementGroupsResponse, error) + // Creates a placement group in the specified folder. + Create(context.Context, *CreatePlacementGroupRequest) (*operation.Operation, error) + // Updates the specified placement group. + Update(context.Context, *UpdatePlacementGroupRequest) (*operation.Operation, error) + // Deletes the specified placement group. + Delete(context.Context, *DeletePlacementGroupRequest) (*operation.Operation, error) + // Lists instances for the specified placement group. + ListInstances(context.Context, *ListPlacementGroupInstancesRequest) (*ListPlacementGroupInstancesResponse, error) + // Lists operations for the specified placement group. + ListOperations(context.Context, *ListPlacementGroupOperationsRequest) (*ListPlacementGroupOperationsResponse, error) +} + +// UnimplementedPlacementGroupServiceServer can be embedded to have forward compatible implementations. +type UnimplementedPlacementGroupServiceServer struct { +} + +func (*UnimplementedPlacementGroupServiceServer) Get(ctx context.Context, req *GetPlacementGroupRequest) (*PlacementGroup, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedPlacementGroupServiceServer) List(ctx context.Context, req *ListPlacementGroupsRequest) (*ListPlacementGroupsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (*UnimplementedPlacementGroupServiceServer) Create(ctx context.Context, req *CreatePlacementGroupRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (*UnimplementedPlacementGroupServiceServer) Update(ctx context.Context, req *UpdatePlacementGroupRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedPlacementGroupServiceServer) Delete(ctx context.Context, req *DeletePlacementGroupRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (*UnimplementedPlacementGroupServiceServer) ListInstances(ctx context.Context, req *ListPlacementGroupInstancesRequest) (*ListPlacementGroupInstancesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListInstances not implemented") +} +func (*UnimplementedPlacementGroupServiceServer) ListOperations(ctx context.Context, req *ListPlacementGroupOperationsRequest) (*ListPlacementGroupOperationsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") +} + +func RegisterPlacementGroupServiceServer(s *grpc.Server, srv PlacementGroupServiceServer) { + s.RegisterService(&_PlacementGroupService_serviceDesc, srv) +} + +func _PlacementGroupService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetPlacementGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PlacementGroupServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.compute.v1.PlacementGroupService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PlacementGroupServiceServer).Get(ctx, req.(*GetPlacementGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PlacementGroupService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListPlacementGroupsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PlacementGroupServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.compute.v1.PlacementGroupService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PlacementGroupServiceServer).List(ctx, req.(*ListPlacementGroupsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PlacementGroupService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreatePlacementGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PlacementGroupServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.compute.v1.PlacementGroupService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PlacementGroupServiceServer).Create(ctx, req.(*CreatePlacementGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PlacementGroupService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdatePlacementGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PlacementGroupServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.compute.v1.PlacementGroupService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PlacementGroupServiceServer).Update(ctx, req.(*UpdatePlacementGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PlacementGroupService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeletePlacementGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PlacementGroupServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.compute.v1.PlacementGroupService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PlacementGroupServiceServer).Delete(ctx, req.(*DeletePlacementGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PlacementGroupService_ListInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListPlacementGroupInstancesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PlacementGroupServiceServer).ListInstances(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.compute.v1.PlacementGroupService/ListInstances", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PlacementGroupServiceServer).ListInstances(ctx, req.(*ListPlacementGroupInstancesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PlacementGroupService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListPlacementGroupOperationsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PlacementGroupServiceServer).ListOperations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.compute.v1.PlacementGroupService/ListOperations", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PlacementGroupServiceServer).ListOperations(ctx, req.(*ListPlacementGroupOperationsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _PlacementGroupService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.compute.v1.PlacementGroupService", + HandlerType: (*PlacementGroupServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Get", + Handler: _PlacementGroupService_Get_Handler, + }, + { + MethodName: "List", + Handler: _PlacementGroupService_List_Handler, + }, + { + MethodName: "Create", + Handler: _PlacementGroupService_Create_Handler, + }, + { + MethodName: "Update", + Handler: _PlacementGroupService_Update_Handler, + }, + { + MethodName: "Delete", + Handler: _PlacementGroupService_Delete_Handler, + }, + { + MethodName: "ListInstances", + Handler: _PlacementGroupService_ListInstances_Handler, + }, + { + MethodName: "ListOperations", + Handler: _PlacementGroupService_ListOperations_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/compute/v1/placement_group_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/placement_group_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/placement_group_service.pbext.go new file mode 100644 index 000000000..9f62bc985 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/placement_group_service.pbext.go @@ -0,0 +1,140 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package compute + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetPlacementGroupRequest) SetPlacementGroupId(v string) { + m.PlacementGroupId = v +} + +func (m *ListPlacementGroupsRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListPlacementGroupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListPlacementGroupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListPlacementGroupsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListPlacementGroupsResponse) SetPlacementGroups(v []*PlacementGroup) { + m.PlacementGroups = v +} + +func (m *ListPlacementGroupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +type CreatePlacementGroupRequest_PlacementStrategy = isCreatePlacementGroupRequest_PlacementStrategy + +func (m *CreatePlacementGroupRequest) SetPlacementStrategy(v CreatePlacementGroupRequest_PlacementStrategy) { + m.PlacementStrategy = v +} + +func (m *CreatePlacementGroupRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreatePlacementGroupRequest) SetName(v string) { + m.Name = v +} + +func (m *CreatePlacementGroupRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreatePlacementGroupRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreatePlacementGroupRequest) SetSpreadPlacementStrategy(v *SpreadPlacementStrategy) { + m.PlacementStrategy = &CreatePlacementGroupRequest_SpreadPlacementStrategy{ + SpreadPlacementStrategy: v, + } +} + +func (m *CreatePlacementGroupMetadata) SetPlacementGroupId(v string) { + m.PlacementGroupId = v +} + +func (m *UpdatePlacementGroupRequest) SetPlacementGroupId(v string) { + m.PlacementGroupId = v +} + +func (m *UpdatePlacementGroupRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdatePlacementGroupRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdatePlacementGroupRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdatePlacementGroupRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdatePlacementGroupMetadata) SetPlacementGroupId(v string) { + m.PlacementGroupId = v +} + +func (m *DeletePlacementGroupRequest) SetPlacementGroupId(v string) { + m.PlacementGroupId = v +} + +func (m *DeletePlacementGroupMetadata) SetPlacementGroupId(v string) { + m.PlacementGroupId = v +} + +func (m *ListPlacementGroupInstancesRequest) SetPlacementGroupId(v string) { + m.PlacementGroupId = v +} + +func (m *ListPlacementGroupInstancesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListPlacementGroupInstancesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListPlacementGroupInstancesResponse) SetInstances(v []*Instance) { + m.Instances = v +} + +func (m *ListPlacementGroupInstancesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListPlacementGroupOperationsRequest) SetPlacementGroupId(v string) { + m.PlacementGroupId = v +} + +func (m *ListPlacementGroupOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListPlacementGroupOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListPlacementGroupOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListPlacementGroupOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/snapshot.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/snapshot.pb.go index 29de348cd..109268449 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/snapshot.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/snapshot.pb.go @@ -207,36 +207,36 @@ func init() { } var fileDescriptor_cac027a1005d8550 = []byte{ - // 484 bytes of a gzipped FileDescriptorProto + // 492 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x41, 0x8f, 0x9b, 0x3e, - 0x10, 0xc5, 0xff, 0x84, 0x24, 0xff, 0x30, 0x44, 0x11, 0xb2, 0xaa, 0x16, 0xa5, 0x87, 0xa5, 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 0x11, 0xad, 0xe3, 0xaf, 0x71, - 0xb4, 0x71, 0xfe, 0x43, 0x53, 0x98, 0xac, 0x71, 0xb4, 0xda, 0xc6, 0xb7, 0xdf, 0x1c, 0x03, 0x59, - 0x30, 0xc2, 0xd1, 0x6a, 0xf3, 0xd3, 0x19, 0x74, 0x65, 0x84, 0xf1, 0x77, 0xec, 0x98, 0x1d, 0xb3, - 0x89, 0x6e, 0x22, 0xc5, 0x0c, 0xbf, 0x44, 0xbf, 0xd6, 0x05, 0x93, 0x0f, 0xed, 0xae, 0x4b, 0x18, - 0xf6, 0x91, 0x17, 0xfd, 0xe2, 0x16, 0x7c, 0x51, 0xd0, 0x4a, 0xed, 0x44, 0xf8, 0xcc, 0x46, 0x7f, - 0xd2, 0xe5, 0x6e, 0xac, 0xb0, 0xf7, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xf6, 0xec, 0x41, 0x99, - 0xfb, 0x02, 0x00, 0x00, + 0x10, 0xc5, 0xff, 0x84, 0x24, 0xff, 0x30, 0x44, 0x51, 0x64, 0x55, 0x2d, 0xca, 0x1e, 0x96, 0xae, + 0xaa, 0x8a, 0x4b, 0x40, 0x9b, 0x5e, 0xba, 0xed, 0xa5, 0x69, 0x42, 0x2b, 0xa4, 0xd5, 0xb6, 0x32, + 0xd9, 0x43, 0x7b, 0x41, 0x0e, 0xf6, 0xb2, 0x56, 0x08, 0x46, 0xd8, 0x44, 0xcd, 0x7e, 0xc1, 0x7e, + 0xad, 0x0a, 0x43, 0xa4, 0xf4, 0xb0, 0xea, 0x6d, 0x78, 0xf3, 0x1b, 0x3f, 0x3f, 0x3c, 0xf0, 0xf6, + 0x48, 0x0a, 0xca, 0x7e, 0x05, 0x69, 0x2e, 0x6a, 0x1a, 0xa4, 0x62, 0x5f, 0xd6, 0x8a, 0x05, 0x87, + 0xeb, 0x40, 0x16, 0xa4, 0x94, 0x8f, 0x42, 0xf9, 0x65, 0x25, 0x94, 0x40, 0xaf, 0x5a, 0xce,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 0x7f, 0xec, 0xca, 0xed, 0x50, 0x63, 0xef, 0xfe, 0x04, + 0x00, 0x00, 0xff, 0xff, 0xf5, 0x2f, 0x5e, 0x1f, 0x18, 0x03, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/snapshot.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/snapshot.pbext.go new file mode 100644 index 000000000..446597bbf --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/snapshot.pbext.go @@ -0,0 +1,51 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package compute + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Snapshot) SetId(v string) { + m.Id = v +} + +func (m *Snapshot) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Snapshot) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Snapshot) SetName(v string) { + m.Name = v +} + +func (m *Snapshot) SetDescription(v string) { + m.Description = v +} + +func (m *Snapshot) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *Snapshot) SetStorageSize(v int64) { + m.StorageSize = v +} + +func (m *Snapshot) SetDiskSize(v int64) { + m.DiskSize = v +} + +func (m *Snapshot) SetProductIds(v []string) { + m.ProductIds = v +} + +func (m *Snapshot) SetStatus(v Snapshot_Status) { + m.Status = v +} + +func (m *Snapshot) SetSourceDiskId(v string) { + m.SourceDiskId = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/snapshot_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/snapshot_service.pb.go index 067454de8..59ee04208 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/snapshot_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/snapshot_service.pb.go @@ -661,78 +661,79 @@ func init() { } var fileDescriptor_b3c8b118c8b9bc9c = []byte{ - // 983 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x41, 0x6f, 0xdc, 0x44, - 0x14, 0xd6, 0x64, 0x13, 0x37, 0xfb, 0x16, 0x68, 0x35, 0xea, 0x36, 0x2b, 0x8b, 0x40, 0x6a, 0xd4, - 0xb2, 0x6c, 0xb0, 0xbd, 0xde, 0x92, 0x85, 0xa4, 0xad, 0x2a, 0x12, 0x92, 0x2a, 0x52, 0x2b, 0x90, - 0x53, 0x2e, 0x44, 0x65, 0x35, 0x89, 0x27, 0x5b, 0x6b, 0x1d, 0xdb, 0xec, 0x78, 0x57, 0x4d, 0x4a, - 0x25, 0x14, 0x71, 0x0a, 0xc7, 0xde, 0x91, 0x10, 0xbf, 0x80, 0x9c, 0x8a, 0xf8, 0x01, 0xc9, 0xb9, - 0xfc, 0x05, 0x0e, 0x5c, 0xe9, 0x91, 0x13, 0x9a, 0x19, 0x7b, 0xb3, 0x9b, 0xd8, 0x8d, 0x03, 0x08, - 0x71, 0xb3, 0xfd, 0xbe, 0xf9, 0xfc, 0xcd, 0x7b, 0x6f, 0xbe, 0x37, 0x60, 0xec, 0x10, 0xdf, 0xa1, - 0x8f, 0xcd, 0x4d, 0x2f, 0xe8, 0x39, 0xe6, 0x66, 0xb0, 0x1d, 0xf6, 0x22, 0x6a, 0xf6, 0x2d, 0x93, - 0xf9, 0x24, 0x64, 0x8f, 0x82, 0xa8, 0xc5, 0x68, 0xb7, 0xef, 0x6e, 0x52, 0x23, 0xec, 0x06, 0x51, - 0x80, 0xa7, 0x24, 0xde, 0x10, 0x78, 0x23, 0xc6, 0x1b, 0x7d, 0x4b, 0x7d, 0xb3, 0x1d, 0x04, 0x6d, - 0x8f, 0x9a, 0x24, 0x74, 0x4d, 0xe2, 0xfb, 0x41, 0x44, 0x22, 0x37, 0xf0, 0x99, 0x5c, 0xa6, 0xce, - 0xc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1b, 0xbc, 0xa1, 0x8e, 0x4f, 0x2f, 0x6e, 0xe6, - 0xea, 0xbc, 0x53, 0x96, 0xa4, 0x7e, 0x78, 0xee, 0x75, 0x71, 0xeb, 0x36, 0x85, 0xe0, 0x3a, 0x36, - 0x72, 0x08, 0x3e, 0xbe, 0x3a, 0xb3, 0xc5, 0xe5, 0x2f, 0x96, 0xda, 0x6e, 0xf4, 0xa8, 0xb7, 0xc1, - 0xff, 0x65, 0xca, 0x9f, 0xeb, 0xf2, 0x0a, 0xdd, 0x0e, 0xf4, 0x36, 0xf5, 0x45, 0x5a, 0xcc, 0x8c, - 0xbb, 0xfa, 0xcd, 0xf8, 0x71, 0x43, 0x11, 0xb0, 0x1b, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0xa2, - 0x3a, 0x17, 0x92, 0x80, 0x0c, 0x00, 0x00, + // 1000 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xc1, 0x6f, 0xdb, 0x54, + 0x18, 0xd7, 0x6b, 0x52, 0xaf, 0xf9, 0x02, 0x14, 0x3d, 0x35, 0x6d, 0x64, 0x28, 0x04, 0xc3, 0x46, + 0x96, 0x62, 0x3b, 0xce, 0x58, 0x58, 0xbb, 0x4d, 0x83, 0x96, 0xb5, 0xaa, 0xb4, 0x09, 0xe4, 0x8e, + 0x0b, 0x65, 0x44, 0x2f, 0xf5, 0x6b, 0x66, 0xc5, 0xb5, 0x4d, 0x9e, 0x13, 0xad, 0x1d, 0x93, 0x50, + 0xc5, 0xa9, 0x1c, 0x39, 0x72, 0x42, 0x9c, 0x38, 0xd2, 0x13, 0x88, 0x23, 0x87, 0xf6, 0x3c, 0xfe, + 0x05, 0x0e, 0x5c, 0xd9, 0x91, 0x13, 0xf2, 0xb3, 0x9d, 0x3a, 0xa9, 0xbd, 0xba, 0x80, 0x04, 0x37, + 0xdb, 0xdf, 0xef, 0xfb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 0xf9, 0x8b, 0x67, 0x77, 0x4c, 0x5a, + 0x3d, 0x7c, 0x52, 0x93, 0x52, 0xbd, 0x78, 0x2a, 0xfa, 0xc2, 0x25, 0x8a, 0x52, 0xb2, 0xc4, 0x25, + 0x54, 0xc3, 0x3f, 0x20, 0x10, 0x82, 0x6d, 0xfb, 0x0c, 0x95, 0x89, 0x46, 0x94, 0x45, 0xe5, 0xbd, + 0x40, 0x65, 0x8a, 0x2f, 0x8c, 0xaa, 0xac, 0x36, 0xb2, 0x74, 0xd7, 0xd7, 0xfc, 0x33, 0x02, 0x21, + 0xd8, 0xe7, 0xcf, 0xd0, 0x9c, 0x68, 0x28, 0x59, 0x34, 0x7f, 0x7a, 0xf8, 0xa4, 0xa6, 0xa6, 0x1a, + 0x49, 0x69, 0xfc, 0x30, 0xb9, 0xbd, 0xe3, 0x7a, 0xbb, 0xc1, 0x78, 0xd6, 0x32, 0x8d, 0xe7, 0x4f, + 0x08, 0x5e, 0xf0, 0x07, 0xea, 0x64, 0xf7, 0xe2, 0x66, 0xa6, 0xc9, 0x3b, 0x65, 0x49, 0xe2, 0x3b, + 0xe7, 0xce, 0x0b, 0x47, 0xb7, 0xc9, 0x05, 0xd7, 0xb1, 0x92, 0x41, 0xf0, 0xc9, 0x85, 0x9a, 0x2d, + 0xb7, 0xe1, 0xa5, 0x91, 0x3f, 0x12, 0xd7, 0x8c, 0xfd, 0xf5, 0xe3, 0x95, 0x8e, 0xe9, 0x3d, 0xe8, + 0xb7, 0xfd, 0x4f, 0x6a, 0x80, 0x93, 0x83, 0x5b, 0x77, 0xc7, 0x91, 0x3b, 0xd4, 0xe6, 0x35, 0x53, + 0x53, 0xae, 0xf7, 0xd7, 0xc3, 0xc7, 0xb6, 0xc0, 0x61, 0x57, 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, + 0x2f, 0x42, 0x92, 0x9f, 0xb3, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // SnapshotServiceClient is the client API for SnapshotService service. // @@ -759,10 +760,10 @@ type SnapshotServiceClient interface { } type snapshotServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewSnapshotServiceClient(cc *grpc.ClientConn) SnapshotServiceClient { +func NewSnapshotServiceClient(cc grpc.ClientConnInterface) SnapshotServiceClient { return &snapshotServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/snapshot_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/snapshot_service.pbext.go new file mode 100644 index 000000000..3c4e8730b --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/snapshot_service.pbext.go @@ -0,0 +1,116 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package compute + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetSnapshotRequest) SetSnapshotId(v string) { + m.SnapshotId = v +} + +func (m *ListSnapshotsRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListSnapshotsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListSnapshotsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListSnapshotsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListSnapshotsResponse) SetSnapshots(v []*Snapshot) { + m.Snapshots = v +} + +func (m *ListSnapshotsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateSnapshotRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateSnapshotRequest) SetDiskId(v string) { + m.DiskId = v +} + +func (m *CreateSnapshotRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateSnapshotRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateSnapshotRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateSnapshotMetadata) SetSnapshotId(v string) { + m.SnapshotId = v +} + +func (m *CreateSnapshotMetadata) SetDiskId(v string) { + m.DiskId = v +} + +func (m *UpdateSnapshotRequest) SetSnapshotId(v string) { + m.SnapshotId = v +} + +func (m *UpdateSnapshotRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateSnapshotRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateSnapshotRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateSnapshotRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateSnapshotMetadata) SetSnapshotId(v string) { + m.SnapshotId = v +} + +func (m *DeleteSnapshotRequest) SetSnapshotId(v string) { + m.SnapshotId = v +} + +func (m *DeleteSnapshotMetadata) SetSnapshotId(v string) { + m.SnapshotId = v +} + +func (m *ListSnapshotOperationsRequest) SetSnapshotId(v string) { + m.SnapshotId = v +} + +func (m *ListSnapshotOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListSnapshotOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListSnapshotOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListSnapshotOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/zone.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/zone.pb.go index 333181bf8..ea330e3ab 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/zone.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/zone.pb.go @@ -114,10 +114,12 @@ func init() { proto.RegisterType((*Zone)(nil), "yandex.cloud.compute.v1.Zone") } -func init() { proto.RegisterFile("yandex/cloud/compute/v1/zone.proto", fileDescriptor_65f3e219794453a2) } +func init() { + proto.RegisterFile("yandex/cloud/compute/v1/zone.proto", fileDescriptor_65f3e219794453a2) +} var fileDescriptor_65f3e219794453a2 = []byte{ - // 237 bytes of a gzipped FileDescriptorProto + // 247 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xaa, 0x4c, 0xcc, 0x4b, 0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0x4f, 0xce, 0xcf, 0x2d, 0x28, 0x2d, 0x49, 0xd5, 0x2f, 0x33, 0xd4, 0xaf, 0xca, 0xcf, 0x4b, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, @@ -129,8 +131,9 @@ var fileDescriptor_65f3e219794453a2 = []byte{ 0x0f, 0x64, 0xb6, 0x5e, 0x30, 0x58, 0x6d, 0x10, 0x54, 0x8f, 0x92, 0x11, 0x17, 0x1b, 0x44, 0x44, 0x48, 0x8c, 0x4b, 0x28, 0x38, 0xc4, 0x31, 0x24, 0x34, 0x38, 0x3e, 0xd4, 0x2f, 0x38, 0xc0, 0xd5, 0xd9, 0xd3, 0xcd, 0xd3, 0xd5, 0x45, 0x80, 0x41, 0x88, 0x8d, 0x8b, 0x29, 0x34, 0x40, 0x80, 0x51, - 0x88, 0x83, 0x8b, 0xc5, 0xc5, 0x3f, 0xdc, 0x4f, 0x80, 0xc9, 0xc9, 0x35, 0xca, 0x39, 0x3d, 0xb3, - 0x24, 0xa3, 0x34, 0x09, 0x64, 0xb8, 0x3e, 0xc4, 0x36, 0x5d, 0x88, 0x8f, 0xd3, 0xf3, 0x75, 0xd3, - 0x53, 0xf3, 0xc0, 0xfe, 0xd4, 0xc7, 0x11, 0x14, 0xd6, 0x50, 0x66, 0x12, 0x1b, 0x58, 0x99, 0x31, - 0x20, 0x00, 0x00, 0xff, 0xff, 0xa6, 0xd7, 0x67, 0x16, 0x34, 0x01, 0x00, 0x00, + 0x88, 0x83, 0x8b, 0xc5, 0xc5, 0x3f, 0xdc, 0x4f, 0x80, 0xc9, 0x29, 0x89, 0x4b, 0x1a, 0xc5, 0x8a, + 0xc4, 0x82, 0x4c, 0x24, 0x6b, 0xa2, 0x9c, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0x40, 0x42, 0xfa, + 0x10, 0x75, 0xba, 0x90, 0xe0, 0x48, 0xcf, 0xd7, 0x4d, 0x4f, 0xcd, 0x03, 0x07, 0x82, 0x3e, 0x8e, + 0x70, 0xb2, 0x86, 0x32, 0x93, 0xd8, 0xc0, 0xca, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x68, + 0x94, 0x29, 0x12, 0x51, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/zone.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/zone.pbext.go new file mode 100644 index 000000000..cb41eb325 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/zone.pbext.go @@ -0,0 +1,15 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package compute + +func (m *Zone) SetId(v string) { + m.Id = v +} + +func (m *Zone) SetRegionId(v string) { + m.RegionId = v +} + +func (m *Zone) SetStatus(v Zone_Status) { + m.Status = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/zone_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/zone_service.pb.go index ffab54f10..8c458e8d5 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/zone_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/zone_service.pb.go @@ -184,43 +184,43 @@ func init() { } var fileDescriptor_c45093f3209cbc9e = []byte{ - // 421 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4f, 0x8b, 0xd3, 0x40, - 0x18, 0xc6, 0xc9, 0x76, 0xb7, 0x9a, 0x59, 0xff, 0xed, 0x78, 0xb0, 0x46, 0x0b, 0x25, 0xa2, 0x1b, - 0x17, 0x36, 0x93, 0x6c, 0x11, 0x0f, 0xb6, 0x97, 0x88, 0x14, 0xc1, 0x83, 0xa4, 0x9e, 0x7a, 0x29, - 0x69, 0xf3, 0x12, 0x07, 0xeb, 0x4c, 0xec, 0x4c, 0x42, 0xad, 0x78, 0xf1, 0xd8, 0xab, 0x1f, 0xaa, - 0xbd, 0xfb, 0x15, 0x3c, 0xf8, 0x19, 0xf4, 0x22, 0x33, 0x13, 0xc5, 0x56, 0x52, 0xf6, 0x16, 0xf2, - 0xfe, 0xe6, 0x79, 0x9e, 0xf7, 0x0f, 0x3a, 0xfb, 0x98, 0xb0, 0x14, 0x16, 0x64, 0x3a, 0xe3, 0x45, - 0x4a, 0xa6, 0xfc, 0x7d, 0x5e, 0x48, 0x20, 0x65, 0x48, 0x96, 0x9c, 0xc1, 0x58, 0xc0, 0xbc, 0xa4, - 0x53, 0xf0, 0xf3, 0x39, 0x97, 0x1c, 0xdf, 0x31, 0xac, 0xaf, 0x59, 0xbf, 0x62, 0xfd, 0x32, 0x74, - 0xee, 0x67, 0x9c, 0x67, 0x33, 0x20, 0x49, 0x4e, 0x49, 0xc2, 0x18, 0x97, 0x89, 0xa4, 0x9c, 0x09, - 0xf3, 0xcc, 0x71, 0xf7, 0x59, 0x54, 0x4c, 0x7b, 0x8b, 0x29, 0x93, 0x19, 0x4d, 0xb5, 0x86, 0x29, - 0xbb, 0x80, 0x6e, 0xbd, 0xa2, 0x42, 0x8e, 0x38, 0x03, 0x11, 0xc3, 0x87, 0x02, 0x84, 0xc4, 0xa7, - 0xc8, 0xce, 0x93, 0x0c, 0xc6, 0x82, 0x2e, 0xa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, 0xe0, 0xdd, 0xbb, - 0x3a, 0xc3, 0x6d, 0x7c, 0xf2, 0x5f, 0x86, 0xe8, 0xc5, 0xe8, 0x79, 0x46, 0xe5, 0xdb, 0x62, 0xa2, - 0x14, 0x88, 0x91, 0x3c, 0x37, 0xb7, 0x93, 0xf1, 0xf3, 0x0c, 0x98, 0x3e, 0x1b, 0x52, 0x73, 0x78, - 0xcf, 0xaa, 0xcf, 0x49, 0x53, 0x63, 0xdd, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x18, 0x19, 0x69, - 0xb4, 0x05, 0x03, 0x00, 0x00, + // 428 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xbf, 0x8f, 0xd3, 0x30, + 0x14, 0xc7, 0x95, 0xeb, 0x5d, 0x21, 0x3e, 0x7e, 0x9d, 0x19, 0x28, 0x39, 0x2a, 0x55, 0x41, 0x70, + 0xe1, 0xa4, 0x8b, 0x93, 0x3b, 0x21, 0x06, 0xda, 0x25, 0x0c, 0x15, 0x12, 0x03, 0x4a, 0x99, 0xba, + 0x54, 0x69, 0xf3, 0x14, 0x2c, 0x8a, 0x1d, 0x6a, 0x27, 0x2a, 0x45, 0x2c, 0x8c, 0x5d, 0xf9, 0xa3, + 0xda, 0x9d, 0x7f, 0x81, 0x81, 0xbf, 0x01, 0x16, 0x64, 0x3b, 0xa0, 0xb6, 0x28, 0x15, 0x9b, 0xe5, + 0xf7, 0x79, 0xef, 0xfb, 0x7d, 0x3f, 0xd0, 0xf9, 0xc7, 0x84, 0xa5, 0x30, 0x27, 0x93, 0x29, 0x2f, + 0x52, 0x32, 0xe1, 0xef, 0xf3, 0x42, 0x02, 0x29, 0x43, 0xb2, 0xe0, 0x0c, 0x46, 0x02, 0x66, 0x25, + 0x9d, 0x80, 0x9f, 0xcf, 0xb8, 0xe4, 0xf8, 0x9e, 0x61, 0x7d, 0xcd, 0xf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8, 0x32, 0xbd, 0xfc, 0x65, 0xa1, 0x63, 0x95, 0x36, 0x30, 0x1b, 0xc2, 0x33, 0xd4, + 0xe8, 0x83, 0xc4, 0x67, 0xb5, 0xee, 0xb6, 0x65, 0x9c, 0xfd, 0x6d, 0xb8, 0x0f, 0xbf, 0x7c, 0xfb, + 0xfe, 0xf5, 0xa0, 0x8d, 0x4f, 0x77, 0xf7, 0x25, 0xc8, 0xa7, 0xca, 0xde, 0x67, 0x3c, 0x47, 0x87, + 0x6a, 0x5c, 0xf8, 0x49, 0x6d, 0xad, 0xdd, 0xa5, 0x39, 0xe7, 0xff, 0x83, 0x9a, 0xc1, 0xbb, 0xf7, + 0xb5, 0x87, 0xbb, 0xf8, 0xe4, 0x1f, 0x0f, 0xd1, 0x18, 0x9d, 0x6e, 0xd5, 0x49, 0x72, 0xba, 0x51, + 0x6b, 0xf8, 0x22, 0xa3, 0xf2, 0x6d, 0x31, 0x56, 0x5f, 0xc4, 0x70, 0x17, 0xe6, 0xb0, 0x32, 0x7e, + 0x91, 0x01, 0xd3, 0x37, 0x45, 0x6a, 0xae, 0xf2, 0x79, 0xf5, 0x1c, 0x37, 0x35, 0x76, 0xf5, 0x3b, + 0x00, 0x00, 0xff, 0xff, 0x41, 0xfa, 0xcd, 0x99, 0x22, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // ZoneServiceClient is the client API for ZoneService service. // @@ -235,10 +235,10 @@ type ZoneServiceClient interface { } type zoneServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewZoneServiceClient(cc *grpc.ClientConn) ZoneServiceClient { +func NewZoneServiceClient(cc grpc.ClientConnInterface) ZoneServiceClient { return &zoneServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/zone_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/zone_service.pbext.go new file mode 100644 index 000000000..3753973f7 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/zone_service.pbext.go @@ -0,0 +1,23 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package compute + +func (m *ListZonesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListZonesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListZonesResponse) SetZones(v []*Zone) { + m.Zones = v +} + +func (m *ListZonesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *GetZoneRequest) SetZoneId(v string) { + m.ZoneId = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/blob.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/blob.pb.go index 131938aa2..c8749d4e0 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/blob.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/blob.pb.go @@ -96,18 +96,18 @@ func init() { } var fileDescriptor_22e64e0090128e6c = []byte{ - // 193 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x8f, 0xbf, 0xaa, 0xc3, 0x20, - 0x18, 0x47, 0xc9, 0x1f, 0x02, 0x71, 0xb8, 0x83, 0xc3, 0xc5, 0x31, 0xf7, 0x4e, 0x19, 0x1a, 0x25, - 0x74, 0xec, 0x96, 0x47, 0xc8, 0xd0, 0xd2, 0x6e, 0x31, 0x8a, 0x15, 0xac, 0x5f, 0x51, 0x13, 0x9a, - 0x3e, 0x7d, 0xa9, 0xe9, 0x96, 0xa1, 0xdb, 0xcf, 0xc3, 0x11, 0xce, 0x87, 0x76, 0xcb, 0x60, 0x85, - 0x7c, 0xb0, 0xd1, 0xc0, 0x24, 0xd8, 0x08, 0x36, 0x0c, 0xda, 0x4a, 0xe7, 0xa4, 0xd2, 0x3e, 0xb8, - 0x85, 0xcd, 0x2d, 0xe3, 0x06, 0x38, 0xbd, 0x3b, 0x08, 0x80, 0xff, 0x56, 0x9b, 0x46, 0x9b, 0x6e, - 0x6c, 0x3a, 0xb7, 0xff, 0x47, 0x94, 0x77, 0x06, 0x38, 0xfe, 0x41, 0xa9, 0x16, 0x24, 0xa9, 0x92, - 0xba, 0xec, 0x53, 0x2d, 0xf0, 0x2f, 0x2a, 0x84, 0x56, 0xd2, 0x07, 0x92, 0x46, 0xf6, 0x79, 0x61, - 0x8c, 0x72, 0xaf, 0x9f, 0x92, 0x64, 0x55, 0x52, 0x67, 0x7d, 0xdc, 0x6f, 0x36, 0x39, 0xe3, 0x49, - 0x5e, 0x65, 0x75, 0xd9, 0xc7, 0xdd, 0x9d, 0x2f, 0x27, 0xa5, 0xc3, 0x75, 0xe2, 0x74, 0x84, 0x1b, - 0x5b, 0x3b, 0x9a, 0xb5, 0x5a, 0x41, 0xa3, 0xa4, 0x8d, 0x85, 0xec, 0xeb, 0x39, 0x87, 0x0d, 0xe4, - 0x45, 0xfc, 0xba, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x04, 0xaf, 0x96, 0x5c, 0x0c, 0x01, 0x00, - 0x00, + // 204 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x8f, 0xb1, 0x4a, 0xc6, 0x30, + 0x14, 0x85, 0x49, 0x5b, 0x7e, 0x68, 0x06, 0x87, 0x0c, 0x92, 0xb1, 0x0a, 0x42, 0x07, 0x9b, 0x50, + 0x1c, 0xdd, 0xfa, 0x08, 0x1d, 0x14, 0xdc, 0x9a, 0x26, 0xc4, 0x0b, 0x31, 0xb7, 0x24, 0x69, 0xb1, + 0x4e, 0x3e, 0xba, 0x98, 0xba, 0x48, 0x05, 0xb7, 0x93, 0xc3, 0x77, 0xc8, 0xfd, 0xe8, 0xfd, 0x3e, + 0x79, 0x6d, 0xde, 0xe5, 0xec, 0x70, 0xd5, 0x72, 0x46, 0x9f, 0x26, 0xf0, 0x26, 0x04, 0x63, 0x21, + 0xa6, 0xb0, 0xcb, 0xad, 0x97, 0xca, 0xa1, 0x12, 0x4b, 0xc0, 0x84, 0xec, 0xe6, 0xa0, 0x45, 0xa6, + 0xc5, 0x89, 0x16, 0x5b, 0x7f, 0xfb, 0x44, 0xab, 0xc1, 0xa1, 0x62, 0x57, 0xb4, 0x00, 0xcd, 0x49, + 0x43, 0xda, 0x7a, 0x2c, 0x40, 0xb3, 0x6b, 0x7a, 0xd1, 0x60, 0x4d, 0x4c, 0xbc, 0xc8, 0xdd, 0xcf, + 0x8b, 0x31, 0x5a, 0x45, 0xf8, 0x30, 0xbc, 0x6c, 0x48, 0x5b, 0x8e, 0x39, 0x7f, 0x77, 0x6b, 0x70, + 0x91, 0x57, 0x4d, 0xd9, 0xd6, 0x63, 0xce, 0xc3, 0x27, 0xa1, 0x77, 0xbf, 0x7e, 0x9f, 0x16, 0xf8, + 0xf3, 0x82, 0x97, 0x67, 0x0b, 0xe9, 0x75, 0x55, 0x62, 0xc6, 0x37, 0x79, 0x2c, 0xba, 0xc3, 0xce, + 0x62, 0x67, 0x8d, 0xcf, 0x26, 0xf2, 0x5f, 0xed, 0xc7, 0x53, 0xa9, 0x2e, 0x79, 0xfa, 0xf0, 0x15, + 0x00, 0x00, 0xff, 0xff, 0x9b, 0xfd, 0xdb, 0xf4, 0x34, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/blob.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/blob.pbext.go new file mode 100644 index 000000000..c362524bf --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/blob.pbext.go @@ -0,0 +1,19 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package containerregistry + +func (m *Blob) SetId(v string) { + m.Id = v +} + +func (m *Blob) SetDigest(v string) { + m.Digest = v +} + +func (m *Blob) SetSize(v int64) { + m.Size = v +} + +func (m *Blob) SetUrls(v []string) { + m.Urls = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/image.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/image.pb.go index 8d32105b2..9c4ef6f16 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/image.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/image.pb.go @@ -137,26 +137,26 @@ func init() { } var fileDescriptor_0fedf978b00ec0da = []byte{ - // 321 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x51, 0x41, 0x4b, 0x33, 0x31, - 0x14, 0x64, 0x77, 0xdb, 0xfd, 0xbe, 0x46, 0xa8, 0x90, 0x83, 0x84, 0x5e, 0x5c, 0xbd, 0xb4, 0x07, - 0x9b, 0x50, 0x3d, 0x89, 0x07, 0xb1, 0x37, 0xaf, 0xab, 0x20, 0x7a, 0x29, 0xd9, 0xcd, 0x6b, 0x0c, - 0xec, 0x26, 0x25, 0x49, 0x8b, 0xed, 0x7f, 0xf3, 0xbf, 0xc9, 0x26, 0x2d, 0x1e, 0x7a, 0x28, 0xde, - 0xde, 0x1b, 0x66, 0x86, 0x37, 0xf3, 0xd0, 0x74, 0xcb, 0xb5, 0x80, 0x2f, 0x56, 0x37, 0x66, 0x2d, - 0x58, 0x6d, 0xb4, 0xe7, 0x4a, 0x83, 0xb5, 0x20, 0x95, 0xf3, 0x76, 0xcb, 0x36, 0x33, 0xa6, 0x5a, - 0x2e, 0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x54, 0xfe, 0x73, 0x5d, 0xd1, 0xda, 0xb4, 0x2c, - 0xde, 0x32, 0x8d, 0xbf, 0x91, 0x66, 0x2a, 0x41, 0x07, 0x39, 0x3b, 0xf9, 0xb4, 0x87, 0x23, 0xb0, - 0xca, 0x83, 0xf4, 0xee, 0x27, 0x00, 0x00, 0xff, 0xff, 0xb9, 0xfc, 0xfe, 0xdb, 0x44, 0x02, 0x00, - 0x00, + // 334 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x51, 0x41, 0x4b, 0x2b, 0x31, + 0x18, 0x64, 0x77, 0xdb, 0x7d, 0xaf, 0x79, 0xd0, 0x07, 0x39, 0x48, 0xe8, 0xc5, 0x55, 0x90, 0xf6, + 0x60, 0x13, 0xaa, 0x27, 0xf1, 0x20, 0xf6, 0xe6, 0x75, 0x15, 0x04, 0x2f, 0x25, 0xbb, 0xf9, 0x1a, + 0x03, 0xbb, 0x9b, 0x25, 0x49, 0x8b, 0xed, 0xc9, 0x3f, 0xe6, 0x7f, 0x93, 0x4d, 0x5a, 0x44, 0x2a, + 0x14, 0x6f, 0xf9, 0x86, 0x99, 0xc9, 0x7c, 0xf3, 0xa1, 0xe9, 0x86, 0x37, 0x02, 0xde, 0x58, 0x59, + 0xe9, 0x95, 0x60, 0xa5, 0x6e, 0x1c, 0x57, 0x0d, 0x18, 0x03, 0x52, 0x59, 0x67, 0x36, 0x6c, 0x3d, + 0x63, 0xaa, 0xe6, 0x12, 0x68, 0x6b, 0xb4, 0xd3, 0xf8, 0x2c, 0xd0, 0xa9, 0xa7, 0xd3, 0x03, 0x3a, + 0x5d, 0xcf, 0x46, 0x97, 0xc7, 0x1d, 0x8b, 0x4a, 0x17, 0xc1, 0x70, 0x74, 0x2a, 0xb5, 0x96, 0x15, + 0x30, 0x3f, 0x15, 0xab, 0x25, 0x73, 0xaa, 0x06, 0xeb, 0x78, 0xdd, 0x06, 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0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0x31, 0xfb, 0x21, 0xfc, 0x6c, 0x02, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/image.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/image.pbext.go new file mode 100644 index 000000000..5d59bb5a2 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/image.pbext.go @@ -0,0 +1,39 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package containerregistry + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Image) SetId(v string) { + m.Id = v +} + +func (m *Image) SetName(v string) { + m.Name = v +} + +func (m *Image) SetDigest(v string) { + m.Digest = v +} + +func (m *Image) SetCompressedSize(v int64) { + m.CompressedSize = v +} + +func (m *Image) SetConfig(v *Blob) { + m.Config = v +} + +func (m *Image) SetLayers(v []*Blob) { + m.Layers = v +} + +func (m *Image) SetTags(v []string) { + m.Tags = v +} + +func (m *Image) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/image_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/image_service.pb.go index f0ef9bc9f..788a11344 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/image_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/image_service.pb.go @@ -331,58 +331,59 @@ func init() { } var fileDescriptor_77801365b55bb588 = []byte{ - // 667 bytes of a gzipped FileDescriptorProto + // 678 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x4b, 0x6f, 0xd3, 0x4c, - 0x14, 0x95, 0x9b, 0x34, 0x4d, 0xa6, 0xfd, 0xbe, 0x8a, 0x41, 0x48, 0x26, 0xa2, 0x22, 0xb5, 0x68, - 0xeb, 0x04, 0xfc, 0x2a, 0x74, 0x41, 0x69, 0x55, 0x14, 0x40, 0x55, 0x24, 0x5e, 0x72, 0x91, 0x10, - 0x54, 0x55, 0x70, 0xe2, 0x5b, 0x33, 0xc2, 0xf1, 0x18, 0x7b, 0x12, 0x35, 0xe5, 0xb1, 0x60, 0x99, - 0x2d, 0x62, 0xc3, 0xcf, 0xe0, 0x37, 0x20, 0xb5, 0x6b, 0xf8, 0x0b, 0x2c, 0x58, 0x22, 0x96, 0xac, - 0x90, 0x67, 0x9a, 0x34, 0x0f, 0xd4, 0x06, 0x76, 0x96, 0xcf, 0x3d, 0x67, 0xce, 0xbd, 0x67, 0xe6, - 0xa2, 0x95, 0xb6, 0x13, 0xb8, 0xb0, 0x67, 0xd4, 0x7d, 0xda, 0x74, 0x8d, 0x3a, 0x0d, 0x98, 0x43, - 0x02, 0x88, 0x22, 0xf0, 0x48, 0xcc, 0xa2, 0xb6, 0xd1, 0xb2, 0x0c, 0xd2, 0x70, 0x3c, 0xa8, 0xc6, - 0x10, 0xb5, 0x48, 0x1d, 0xf4, 0x30, 0xa2, 0x8c, 0xe2, 0x79, 0x41, 0xd3, 0x39, 0x4d, 0x1f, 0xa1, - 0xe9, 0x2d, 0x2b, 0x5f, 0x18, 0x50, 0x76, 0x42, 0x62, 0xd0, 0x10, 0x22, 0x87, 0x11, 0x1a, 0x08, - 0x91, 0xbc, 0x36, 0xe6, 0xd9, 0x47, 0xe5, 0x8b, 0x03, 0xe5, 0x3d, 0xb1, 0x11, 0xd9, 0xb9, 0x81, - 0xba, 0x96, 0xe3, 0x13, 0xb7, 0x1f, 0xbe, 0xe0, 0x51, 0xea, 0xf9, 0xc0, 0x1d, 0x39, 0x41, 0x40, - 0x19, 0x07, 0x63, 0x81, 0x2a, 0x3f, 0x26, 0xd0, 0x99, 0xbb, 0x24, 0x66, 0x95, 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, 0x5d, 0x56, 0x72, 0xc1, 0x17, 0x3e, 0x8c, 0x33, 0xd7, + 0xf1, 0x8d, 0x91, 0x9f, 0xb5, 0x94, 0xa0, 0x5e, 0xfd, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xf5, 0x0a, + 0x1b, 0xff, 0x48, 0x06, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // ImageServiceClient is the client API for ImageService service. // @@ -399,10 +400,10 @@ type ImageServiceClient interface { } type imageServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewImageServiceClient(cc *grpc.ClientConn) ImageServiceClient { +func NewImageServiceClient(cc grpc.ClientConnInterface) ImageServiceClient { return &imageServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/image_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/image_service.pbext.go new file mode 100644 index 000000000..92865efbf --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/image_service.pbext.go @@ -0,0 +1,51 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package containerregistry + +func (m *ListImagesRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *ListImagesRequest) SetRepositoryName(v string) { + m.RepositoryName = v +} + +func (m *ListImagesRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListImagesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListImagesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListImagesRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListImagesRequest) SetOrderBy(v string) { + m.OrderBy = v +} + +func (m *ListImagesResponse) SetImages(v []*Image) { + m.Images = v +} + +func (m *ListImagesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *GetImageRequest) SetImageId(v string) { + m.ImageId = v +} + +func (m *DeleteImageRequest) SetImageId(v string) { + m.ImageId = v +} + +func (m *DeleteImageMetadata) SetImageId(v string) { + m.ImageId = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/lifecycle_policy.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/lifecycle_policy.pb.go new file mode 100644 index 000000000..6521ab819 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/lifecycle_policy.pb.go @@ -0,0 +1,259 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/containerregistry/v1/lifecycle_policy.proto + +package containerregistry + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type LifecyclePolicy_Status int32 + +const ( + LifecyclePolicy_STATUS_UNSPECIFIED LifecyclePolicy_Status = 0 + LifecyclePolicy_ACTIVE LifecyclePolicy_Status = 1 + LifecyclePolicy_DISABLED LifecyclePolicy_Status = 2 +) + +var LifecyclePolicy_Status_name = map[int32]string{ + 0: "STATUS_UNSPECIFIED", + 1: "ACTIVE", + 2: "DISABLED", +} + +var LifecyclePolicy_Status_value = map[string]int32{ + "STATUS_UNSPECIFIED": 0, + "ACTIVE": 1, + "DISABLED": 2, +} + +func (x LifecyclePolicy_Status) String() string { + return proto.EnumName(LifecyclePolicy_Status_name, int32(x)) +} + +func (LifecyclePolicy_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_400d7b415ccde714, []int{0, 0} +} + +type LifecyclePolicy struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + RepositoryId string `protobuf:"bytes,3,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + Status LifecyclePolicy_Status `protobuf:"varint,5,opt,name=status,proto3,enum=yandex.cloud.containerregistry.v1.LifecyclePolicy_Status" json:"status,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + Rules []*LifecycleRule `protobuf:"bytes,7,rep,name=rules,proto3" json:"rules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LifecyclePolicy) Reset() { *m = LifecyclePolicy{} } +func (m *LifecyclePolicy) String() string { return proto.CompactTextString(m) } +func (*LifecyclePolicy) ProtoMessage() {} +func (*LifecyclePolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_400d7b415ccde714, []int{0} +} + +func (m *LifecyclePolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LifecyclePolicy.Unmarshal(m, b) +} +func (m *LifecyclePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LifecyclePolicy.Marshal(b, m, deterministic) +} +func (m *LifecyclePolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_LifecyclePolicy.Merge(m, src) +} +func (m *LifecyclePolicy) XXX_Size() int { + return xxx_messageInfo_LifecyclePolicy.Size(m) +} +func (m *LifecyclePolicy) XXX_DiscardUnknown() { + xxx_messageInfo_LifecyclePolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_LifecyclePolicy proto.InternalMessageInfo + +func (m *LifecyclePolicy) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *LifecyclePolicy) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *LifecyclePolicy) GetRepositoryId() string { + if m != nil { + return m.RepositoryId + } + return "" +} + +func (m *LifecyclePolicy) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *LifecyclePolicy) GetStatus() LifecyclePolicy_Status { + if m != nil { + return m.Status + } + return LifecyclePolicy_STATUS_UNSPECIFIED +} + +func (m *LifecyclePolicy) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *LifecyclePolicy) GetRules() []*LifecycleRule { + if m != nil { + return m.Rules + } + return nil +} + +type LifecycleRule struct { + Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` + ExpirePeriod *duration.Duration `protobuf:"bytes,2,opt,name=expire_period,json=expirePeriod,proto3" json:"expire_period,omitempty"` + TagRegexp string `protobuf:"bytes,3,opt,name=tag_regexp,json=tagRegexp,proto3" json:"tag_regexp,omitempty"` + Untagged bool `protobuf:"varint,4,opt,name=untagged,proto3" json:"untagged,omitempty"` + RetainedTop int64 `protobuf:"varint,5,opt,name=retained_top,json=retainedTop,proto3" json:"retained_top,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LifecycleRule) Reset() { *m = LifecycleRule{} } +func (m *LifecycleRule) String() string { return proto.CompactTextString(m) } +func (*LifecycleRule) ProtoMessage() {} +func (*LifecycleRule) Descriptor() ([]byte, []int) { + return fileDescriptor_400d7b415ccde714, []int{1} +} + +func (m *LifecycleRule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LifecycleRule.Unmarshal(m, b) +} +func (m *LifecycleRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LifecycleRule.Marshal(b, m, deterministic) +} +func (m *LifecycleRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_LifecycleRule.Merge(m, src) +} +func (m *LifecycleRule) XXX_Size() int { + return xxx_messageInfo_LifecycleRule.Size(m) +} +func (m *LifecycleRule) XXX_DiscardUnknown() { + xxx_messageInfo_LifecycleRule.DiscardUnknown(m) +} + +var xxx_messageInfo_LifecycleRule proto.InternalMessageInfo + +func (m *LifecycleRule) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *LifecycleRule) GetExpirePeriod() *duration.Duration { + if m != nil { + return m.ExpirePeriod + } + return nil +} + +func (m *LifecycleRule) GetTagRegexp() string { + if m != nil { + return m.TagRegexp + } + return "" +} + +func (m *LifecycleRule) GetUntagged() bool { + if m != nil { + return m.Untagged + } + return false +} + +func (m *LifecycleRule) GetRetainedTop() int64 { + if m != nil { + return m.RetainedTop + } + return 0 +} + +func init() { + proto.RegisterEnum("yandex.cloud.containerregistry.v1.LifecyclePolicy_Status", LifecyclePolicy_Status_name, LifecyclePolicy_Status_value) + proto.RegisterType((*LifecyclePolicy)(nil), "yandex.cloud.containerregistry.v1.LifecyclePolicy") + proto.RegisterType((*LifecycleRule)(nil), "yandex.cloud.containerregistry.v1.LifecycleRule") +} + +func init() { + proto.RegisterFile("yandex/cloud/containerregistry/v1/lifecycle_policy.proto", fileDescriptor_400d7b415ccde714) +} + +var fileDescriptor_400d7b415ccde714 = []byte{ + // 547 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x5f, 0x8f, 0xd2, 0x40, + 0x14, 0xc5, 0x2d, 0x2c, 0xec, 0x32, 0xc0, 0x4a, 0xe6, 0xc1, 0x54, 0x12, 0x15, 0x31, 0x26, 0x44, + 0xb3, 0xed, 0x52, 0xff, 0xc4, 0x55, 0xd9, 0x04, 0x16, 0x36, 0x69, 0xb2, 0x31, 0x58, 0x58, 0x4d,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f4, 0x97, 0x3f, 0x4a, 0xaf, 0x74, + 0x7d, 0xd5, 0x2e, 0x1c, 0x77, 0x9c, 0x97, 0x97, 0x5e, 0x25, 0x93, 0x0e, 0xb5, 0x12, 0xb7, 0x10, + 0x52, 0x24, 0xf4, 0x25, 0x84, 0x30, 0x17, 0x59, 0xbe, 0xeb, 0xaf, 0x2d, 0x29, 0x12, 0x7a, 0xba, + 0x87, 0xeb, 0x68, 0x2f, 0x8d, 0x15, 0x09, 0x43, 0xa0, 0x3a, 0xe4, 0x3d, 0xef, 0xcf, 0x19, 0x3f, + 0x43, 0x15, 0x09, 0x9a, 0x1b, 0xf5, 0x15, 0x17, 0x3a, 0xe7, 0x7c, 0x6f, 0xf7, 0xfa, 0xaa, 0x9d, + 0x3f, 0xee, 0x1c, 0x7a, 0xe5, 0x55, 0x73, 0xcc, 0x45, 0xef, 0xab, 0x81, 0x9e, 0x6e, 0x20, 0x27, + 0x82, 0xfd, 0x13, 0xfb, 0x97, 0xcf, 0x21, 0x53, 0x97, 0xe9, 0xc4, 0x0a, 0xf8, 0xd4, 0xce, 0x14, + 0x07, 0xd9, 0x0d, 0x09, 0xf9, 0x41, 0x08, 0xb1, 0xfe, 0x4a, 0xfb, 0xd6, 0x7b, 0xf9, 0x6e, 0xab, + 0x38, 0x29, 0x6a, 0xe9, 0x8b, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x09, 0xa1, 0xf6, 0x5d, 0xd5, + 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/lifecycle_policy.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/lifecycle_policy.pbext.go new file mode 100644 index 000000000..185ae76b2 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/lifecycle_policy.pbext.go @@ -0,0 +1,56 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package containerregistry + +import ( + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *LifecyclePolicy) SetId(v string) { + m.Id = v +} + +func (m *LifecyclePolicy) SetName(v string) { + m.Name = v +} + +func (m *LifecyclePolicy) SetRepositoryId(v string) { + m.RepositoryId = v +} + +func (m *LifecyclePolicy) SetDescription(v string) { + m.Description = v +} + +func (m *LifecyclePolicy) SetStatus(v LifecyclePolicy_Status) { + m.Status = v +} + +func (m *LifecyclePolicy) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *LifecyclePolicy) SetRules(v []*LifecycleRule) { + m.Rules = v +} + +func (m *LifecycleRule) SetDescription(v string) { + m.Description = v +} + +func (m *LifecycleRule) SetExpirePeriod(v *duration.Duration) { + m.ExpirePeriod = v +} + +func (m *LifecycleRule) SetTagRegexp(v string) { + m.TagRegexp = v +} + +func (m *LifecycleRule) SetUntagged(v bool) { + m.Untagged = v +} + +func (m *LifecycleRule) SetRetainedTop(v int64) { + m.RetainedTop = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/lifecycle_policy_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/lifecycle_policy_service.pb.go new file mode 100644 index 000000000..fe5bf27b8 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/lifecycle_policy_service.pb.go @@ -0,0 +1,1442 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/containerregistry/v1/lifecycle_policy_service.proto + +package containerregistry + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud/api" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GetLifecyclePolicyRequest struct { + LifecyclePolicyId string `protobuf:"bytes,1,opt,name=lifecycle_policy_id,json=lifecyclePolicyId,proto3" json:"lifecycle_policy_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetLifecyclePolicyRequest) Reset() { *m = GetLifecyclePolicyRequest{} } +func (m *GetLifecyclePolicyRequest) String() string { return proto.CompactTextString(m) } +func (*GetLifecyclePolicyRequest) ProtoMessage() {} +func (*GetLifecyclePolicyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{0} +} + +func (m *GetLifecyclePolicyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetLifecyclePolicyRequest.Unmarshal(m, b) +} +func (m *GetLifecyclePolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetLifecyclePolicyRequest.Marshal(b, m, deterministic) +} +func (m *GetLifecyclePolicyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLifecyclePolicyRequest.Merge(m, src) +} +func (m *GetLifecyclePolicyRequest) XXX_Size() int { + return xxx_messageInfo_GetLifecyclePolicyRequest.Size(m) +} +func (m *GetLifecyclePolicyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetLifecyclePolicyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetLifecyclePolicyRequest proto.InternalMessageInfo + +func (m *GetLifecyclePolicyRequest) GetLifecyclePolicyId() string { + if m != nil { + return m.LifecyclePolicyId + } + return "" +} + +type ListLifecyclePoliciesRequest struct { + // Types that are valid to be assigned to Id: + // *ListLifecyclePoliciesRequest_RegistryId + // *ListLifecyclePoliciesRequest_RepositoryId + Id isListLifecyclePoliciesRequest_Id `protobuf_oneof:"id"` + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListLifecyclePoliciesRequest) Reset() { *m = ListLifecyclePoliciesRequest{} } +func (m *ListLifecyclePoliciesRequest) String() string { return proto.CompactTextString(m) } +func (*ListLifecyclePoliciesRequest) ProtoMessage() {} +func (*ListLifecyclePoliciesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{1} +} + +func (m *ListLifecyclePoliciesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListLifecyclePoliciesRequest.Unmarshal(m, b) +} +func (m *ListLifecyclePoliciesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListLifecyclePoliciesRequest.Marshal(b, m, deterministic) +} +func (m *ListLifecyclePoliciesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListLifecyclePoliciesRequest.Merge(m, src) +} +func (m *ListLifecyclePoliciesRequest) XXX_Size() int { + return xxx_messageInfo_ListLifecyclePoliciesRequest.Size(m) +} +func (m *ListLifecyclePoliciesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListLifecyclePoliciesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListLifecyclePoliciesRequest proto.InternalMessageInfo + +type isListLifecyclePoliciesRequest_Id interface { + isListLifecyclePoliciesRequest_Id() +} + +type ListLifecyclePoliciesRequest_RegistryId struct { + RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3,oneof"` +} + +type ListLifecyclePoliciesRequest_RepositoryId struct { + RepositoryId string `protobuf:"bytes,6,opt,name=repository_id,json=repositoryId,proto3,oneof"` +} + +func (*ListLifecyclePoliciesRequest_RegistryId) isListLifecyclePoliciesRequest_Id() {} + +func (*ListLifecyclePoliciesRequest_RepositoryId) isListLifecyclePoliciesRequest_Id() {} + +func (m *ListLifecyclePoliciesRequest) GetId() isListLifecyclePoliciesRequest_Id { + if m != nil { + return m.Id + } + return nil +} + +func (m *ListLifecyclePoliciesRequest) GetRegistryId() string { + if x, ok := m.GetId().(*ListLifecyclePoliciesRequest_RegistryId); ok { + return x.RegistryId + } + return "" +} + +func (m *ListLifecyclePoliciesRequest) GetRepositoryId() string { + if x, ok := m.GetId().(*ListLifecyclePoliciesRequest_RepositoryId); ok { + return x.RepositoryId + } + return "" +} + +func (m *ListLifecyclePoliciesRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListLifecyclePoliciesRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +func (m *ListLifecyclePoliciesRequest) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +func (m *ListLifecyclePoliciesRequest) GetOrderBy() string { + if m != nil { + return m.OrderBy + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ListLifecyclePoliciesRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ListLifecyclePoliciesRequest_RegistryId)(nil), + (*ListLifecyclePoliciesRequest_RepositoryId)(nil), + } +} + +type ListLifecyclePoliciesResponse struct { + LifecyclePolicies []*LifecyclePolicy `protobuf:"bytes,1,rep,name=lifecycle_policies,json=lifecyclePolicies,proto3" json:"lifecycle_policies,omitempty"` + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListLifecyclePoliciesResponse) Reset() { *m = ListLifecyclePoliciesResponse{} } +func (m *ListLifecyclePoliciesResponse) String() string { return proto.CompactTextString(m) } +func (*ListLifecyclePoliciesResponse) ProtoMessage() {} +func (*ListLifecyclePoliciesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{2} +} + +func (m *ListLifecyclePoliciesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListLifecyclePoliciesResponse.Unmarshal(m, b) +} +func (m *ListLifecyclePoliciesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListLifecyclePoliciesResponse.Marshal(b, m, deterministic) +} +func (m *ListLifecyclePoliciesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListLifecyclePoliciesResponse.Merge(m, src) +} +func (m *ListLifecyclePoliciesResponse) XXX_Size() int { + return xxx_messageInfo_ListLifecyclePoliciesResponse.Size(m) +} +func (m *ListLifecyclePoliciesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListLifecyclePoliciesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListLifecyclePoliciesResponse proto.InternalMessageInfo + +func (m *ListLifecyclePoliciesResponse) GetLifecyclePolicies() []*LifecyclePolicy { + if m != nil { + return m.LifecyclePolicies + } + return nil +} + +func (m *ListLifecyclePoliciesResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type CreateLifecyclePolicyRequest struct { + RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Status LifecyclePolicy_Status `protobuf:"varint,4,opt,name=status,proto3,enum=yandex.cloud.containerregistry.v1.LifecyclePolicy_Status" json:"status,omitempty"` + Rules []*LifecycleRule `protobuf:"bytes,5,rep,name=rules,proto3" json:"rules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateLifecyclePolicyRequest) Reset() { *m = CreateLifecyclePolicyRequest{} } +func (m *CreateLifecyclePolicyRequest) String() string { return proto.CompactTextString(m) } +func (*CreateLifecyclePolicyRequest) ProtoMessage() {} +func (*CreateLifecyclePolicyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{3} +} + +func (m *CreateLifecyclePolicyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateLifecyclePolicyRequest.Unmarshal(m, b) +} +func (m *CreateLifecyclePolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateLifecyclePolicyRequest.Marshal(b, m, deterministic) +} +func (m *CreateLifecyclePolicyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateLifecyclePolicyRequest.Merge(m, src) +} +func (m *CreateLifecyclePolicyRequest) XXX_Size() int { + return xxx_messageInfo_CreateLifecyclePolicyRequest.Size(m) +} +func (m *CreateLifecyclePolicyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateLifecyclePolicyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateLifecyclePolicyRequest proto.InternalMessageInfo + +func (m *CreateLifecyclePolicyRequest) GetRepositoryId() string { + if m != nil { + return m.RepositoryId + } + return "" +} + +func (m *CreateLifecyclePolicyRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *CreateLifecyclePolicyRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *CreateLifecyclePolicyRequest) GetStatus() LifecyclePolicy_Status { + if m != nil { + return m.Status + } + return LifecyclePolicy_STATUS_UNSPECIFIED +} + +func (m *CreateLifecyclePolicyRequest) GetRules() []*LifecycleRule { + if m != nil { + return m.Rules + } + return nil +} + +type UpdateLifecyclePolicyRequest struct { + LifecyclePolicyId string `protobuf:"bytes,1,opt,name=lifecycle_policy_id,json=lifecyclePolicyId,proto3" json:"lifecycle_policy_id,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + Status LifecyclePolicy_Status `protobuf:"varint,5,opt,name=status,proto3,enum=yandex.cloud.containerregistry.v1.LifecyclePolicy_Status" json:"status,omitempty"` + Rules []*LifecycleRule `protobuf:"bytes,6,rep,name=rules,proto3" json:"rules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateLifecyclePolicyRequest) Reset() { *m = UpdateLifecyclePolicyRequest{} } +func (m *UpdateLifecyclePolicyRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateLifecyclePolicyRequest) ProtoMessage() {} +func (*UpdateLifecyclePolicyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{4} +} + +func (m *UpdateLifecyclePolicyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateLifecyclePolicyRequest.Unmarshal(m, b) +} +func (m *UpdateLifecyclePolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateLifecyclePolicyRequest.Marshal(b, m, deterministic) +} +func (m *UpdateLifecyclePolicyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateLifecyclePolicyRequest.Merge(m, src) +} +func (m *UpdateLifecyclePolicyRequest) XXX_Size() int { + return xxx_messageInfo_UpdateLifecyclePolicyRequest.Size(m) +} +func (m *UpdateLifecyclePolicyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateLifecyclePolicyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateLifecyclePolicyRequest proto.InternalMessageInfo + +func (m *UpdateLifecyclePolicyRequest) GetLifecyclePolicyId() string { + if m != nil { + return m.LifecyclePolicyId + } + return "" +} + +func (m *UpdateLifecyclePolicyRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdateLifecyclePolicyRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *UpdateLifecyclePolicyRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *UpdateLifecyclePolicyRequest) GetStatus() LifecyclePolicy_Status { + if m != nil { + return m.Status + } + return LifecyclePolicy_STATUS_UNSPECIFIED +} + +func (m *UpdateLifecyclePolicyRequest) GetRules() []*LifecycleRule { + if m != nil { + return m.Rules + } + return nil +} + +type DeleteLifecyclePolicyRequest struct { + LifecyclePolicyId string `protobuf:"bytes,1,opt,name=lifecycle_policy_id,json=lifecyclePolicyId,proto3" json:"lifecycle_policy_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteLifecyclePolicyRequest) Reset() { *m = DeleteLifecyclePolicyRequest{} } +func (m *DeleteLifecyclePolicyRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteLifecyclePolicyRequest) ProtoMessage() {} +func (*DeleteLifecyclePolicyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{5} +} + +func (m *DeleteLifecyclePolicyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteLifecyclePolicyRequest.Unmarshal(m, b) +} +func (m *DeleteLifecyclePolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteLifecyclePolicyRequest.Marshal(b, m, deterministic) +} +func (m *DeleteLifecyclePolicyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteLifecyclePolicyRequest.Merge(m, src) +} +func (m *DeleteLifecyclePolicyRequest) XXX_Size() int { + return xxx_messageInfo_DeleteLifecyclePolicyRequest.Size(m) +} +func (m *DeleteLifecyclePolicyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteLifecyclePolicyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteLifecyclePolicyRequest proto.InternalMessageInfo + +func (m *DeleteLifecyclePolicyRequest) GetLifecyclePolicyId() string { + if m != nil { + return m.LifecyclePolicyId + } + return "" +} + +type CreateLifecyclePolicyMetadata struct { + LifecyclePolicyId string `protobuf:"bytes,1,opt,name=lifecycle_policy_id,json=lifecyclePolicyId,proto3" json:"lifecycle_policy_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateLifecyclePolicyMetadata) Reset() { *m = CreateLifecyclePolicyMetadata{} } +func (m *CreateLifecyclePolicyMetadata) String() string { return proto.CompactTextString(m) } +func (*CreateLifecyclePolicyMetadata) ProtoMessage() {} +func (*CreateLifecyclePolicyMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{6} +} + +func (m *CreateLifecyclePolicyMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateLifecyclePolicyMetadata.Unmarshal(m, b) +} +func (m *CreateLifecyclePolicyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateLifecyclePolicyMetadata.Marshal(b, m, deterministic) +} +func (m *CreateLifecyclePolicyMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateLifecyclePolicyMetadata.Merge(m, src) +} +func (m *CreateLifecyclePolicyMetadata) XXX_Size() int { + return xxx_messageInfo_CreateLifecyclePolicyMetadata.Size(m) +} +func (m *CreateLifecyclePolicyMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CreateLifecyclePolicyMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateLifecyclePolicyMetadata proto.InternalMessageInfo + +func (m *CreateLifecyclePolicyMetadata) GetLifecyclePolicyId() string { + if m != nil { + return m.LifecyclePolicyId + } + return "" +} + +type UpdateLifecyclePolicyMetadata struct { + LifecyclePolicyId string `protobuf:"bytes,1,opt,name=lifecycle_policy_id,json=lifecyclePolicyId,proto3" json:"lifecycle_policy_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateLifecyclePolicyMetadata) Reset() { *m = UpdateLifecyclePolicyMetadata{} } +func (m *UpdateLifecyclePolicyMetadata) String() string { return proto.CompactTextString(m) } +func (*UpdateLifecyclePolicyMetadata) ProtoMessage() {} +func (*UpdateLifecyclePolicyMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{7} +} + +func (m *UpdateLifecyclePolicyMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateLifecyclePolicyMetadata.Unmarshal(m, b) +} +func (m *UpdateLifecyclePolicyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateLifecyclePolicyMetadata.Marshal(b, m, deterministic) +} +func (m *UpdateLifecyclePolicyMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateLifecyclePolicyMetadata.Merge(m, src) +} +func (m *UpdateLifecyclePolicyMetadata) XXX_Size() int { + return xxx_messageInfo_UpdateLifecyclePolicyMetadata.Size(m) +} +func (m *UpdateLifecyclePolicyMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateLifecyclePolicyMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateLifecyclePolicyMetadata proto.InternalMessageInfo + +func (m *UpdateLifecyclePolicyMetadata) GetLifecyclePolicyId() string { + if m != nil { + return m.LifecyclePolicyId + } + return "" +} + +type DeleteLifecyclePolicyMetadata struct { + LifecyclePolicyId string `protobuf:"bytes,1,opt,name=lifecycle_policy_id,json=lifecyclePolicyId,proto3" json:"lifecycle_policy_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteLifecyclePolicyMetadata) Reset() { *m = DeleteLifecyclePolicyMetadata{} } +func (m *DeleteLifecyclePolicyMetadata) String() string { return proto.CompactTextString(m) } +func (*DeleteLifecyclePolicyMetadata) ProtoMessage() {} +func (*DeleteLifecyclePolicyMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{8} +} + +func (m *DeleteLifecyclePolicyMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteLifecyclePolicyMetadata.Unmarshal(m, b) +} +func (m *DeleteLifecyclePolicyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteLifecyclePolicyMetadata.Marshal(b, m, deterministic) +} +func (m *DeleteLifecyclePolicyMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteLifecyclePolicyMetadata.Merge(m, src) +} +func (m *DeleteLifecyclePolicyMetadata) XXX_Size() int { + return xxx_messageInfo_DeleteLifecyclePolicyMetadata.Size(m) +} +func (m *DeleteLifecyclePolicyMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteLifecyclePolicyMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteLifecyclePolicyMetadata proto.InternalMessageInfo + +func (m *DeleteLifecyclePolicyMetadata) GetLifecyclePolicyId() string { + if m != nil { + return m.LifecyclePolicyId + } + return "" +} + +type DryRunLifecyclePolicyRequest struct { + LifecyclePolicyId string `protobuf:"bytes,1,opt,name=lifecycle_policy_id,json=lifecyclePolicyId,proto3" json:"lifecycle_policy_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DryRunLifecyclePolicyRequest) Reset() { *m = DryRunLifecyclePolicyRequest{} } +func (m *DryRunLifecyclePolicyRequest) String() string { return proto.CompactTextString(m) } +func (*DryRunLifecyclePolicyRequest) ProtoMessage() {} +func (*DryRunLifecyclePolicyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{9} +} + +func (m *DryRunLifecyclePolicyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DryRunLifecyclePolicyRequest.Unmarshal(m, b) +} +func (m *DryRunLifecyclePolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DryRunLifecyclePolicyRequest.Marshal(b, m, deterministic) +} +func (m *DryRunLifecyclePolicyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DryRunLifecyclePolicyRequest.Merge(m, src) +} +func (m *DryRunLifecyclePolicyRequest) XXX_Size() int { + return xxx_messageInfo_DryRunLifecyclePolicyRequest.Size(m) +} +func (m *DryRunLifecyclePolicyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DryRunLifecyclePolicyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DryRunLifecyclePolicyRequest proto.InternalMessageInfo + +func (m *DryRunLifecyclePolicyRequest) GetLifecyclePolicyId() string { + if m != nil { + return m.LifecyclePolicyId + } + return "" +} + +type DryRunLifecyclePolicyMetadata struct { + DryRunLifecyclePolicyResultId string `protobuf:"bytes,1,opt,name=dry_run_lifecycle_policy_result_id,json=dryRunLifecyclePolicyResultId,proto3" json:"dry_run_lifecycle_policy_result_id,omitempty"` + LifecyclePolicyId string `protobuf:"bytes,2,opt,name=lifecycle_policy_id,json=lifecyclePolicyId,proto3" json:"lifecycle_policy_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DryRunLifecyclePolicyMetadata) Reset() { *m = DryRunLifecyclePolicyMetadata{} } +func (m *DryRunLifecyclePolicyMetadata) String() string { return proto.CompactTextString(m) } +func (*DryRunLifecyclePolicyMetadata) ProtoMessage() {} +func (*DryRunLifecyclePolicyMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{10} +} + +func (m *DryRunLifecyclePolicyMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DryRunLifecyclePolicyMetadata.Unmarshal(m, b) +} +func (m *DryRunLifecyclePolicyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DryRunLifecyclePolicyMetadata.Marshal(b, m, deterministic) +} +func (m *DryRunLifecyclePolicyMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DryRunLifecyclePolicyMetadata.Merge(m, src) +} +func (m *DryRunLifecyclePolicyMetadata) XXX_Size() int { + return xxx_messageInfo_DryRunLifecyclePolicyMetadata.Size(m) +} +func (m *DryRunLifecyclePolicyMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DryRunLifecyclePolicyMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DryRunLifecyclePolicyMetadata proto.InternalMessageInfo + +func (m *DryRunLifecyclePolicyMetadata) GetDryRunLifecyclePolicyResultId() string { + if m != nil { + return m.DryRunLifecyclePolicyResultId + } + return "" +} + +func (m *DryRunLifecyclePolicyMetadata) GetLifecyclePolicyId() string { + if m != nil { + return m.LifecyclePolicyId + } + return "" +} + +type DryRunLifecyclePolicyResult struct { + DryRunLifecyclePolicyResultId string `protobuf:"bytes,1,opt,name=dry_run_lifecycle_policy_result_id,json=dryRunLifecyclePolicyResultId,proto3" json:"dry_run_lifecycle_policy_result_id,omitempty"` + LifecyclePolicyId string `protobuf:"bytes,2,opt,name=lifecycle_policy_id,json=lifecyclePolicyId,proto3" json:"lifecycle_policy_id,omitempty"` + RunAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=run_at,json=runAt,proto3" json:"run_at,omitempty"` + AffectedImagesCount int64 `protobuf:"varint,4,opt,name=affected_images_count,json=affectedImagesCount,proto3" json:"affected_images_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DryRunLifecyclePolicyResult) Reset() { *m = DryRunLifecyclePolicyResult{} } +func (m *DryRunLifecyclePolicyResult) String() string { return proto.CompactTextString(m) } +func (*DryRunLifecyclePolicyResult) ProtoMessage() {} +func (*DryRunLifecyclePolicyResult) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{11} +} + +func (m *DryRunLifecyclePolicyResult) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DryRunLifecyclePolicyResult.Unmarshal(m, b) +} +func (m *DryRunLifecyclePolicyResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DryRunLifecyclePolicyResult.Marshal(b, m, deterministic) +} +func (m *DryRunLifecyclePolicyResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_DryRunLifecyclePolicyResult.Merge(m, src) +} +func (m *DryRunLifecyclePolicyResult) XXX_Size() int { + return xxx_messageInfo_DryRunLifecyclePolicyResult.Size(m) +} +func (m *DryRunLifecyclePolicyResult) XXX_DiscardUnknown() { + xxx_messageInfo_DryRunLifecyclePolicyResult.DiscardUnknown(m) +} + +var xxx_messageInfo_DryRunLifecyclePolicyResult proto.InternalMessageInfo + +func (m *DryRunLifecyclePolicyResult) GetDryRunLifecyclePolicyResultId() string { + if m != nil { + return m.DryRunLifecyclePolicyResultId + } + return "" +} + +func (m *DryRunLifecyclePolicyResult) GetLifecyclePolicyId() string { + if m != nil { + return m.LifecyclePolicyId + } + return "" +} + +func (m *DryRunLifecyclePolicyResult) GetRunAt() *timestamp.Timestamp { + if m != nil { + return m.RunAt + } + return nil +} + +func (m *DryRunLifecyclePolicyResult) GetAffectedImagesCount() int64 { + if m != nil { + return m.AffectedImagesCount + } + return 0 +} + +type GetDryRunLifecyclePolicyResultRequest struct { + DryRunLifecyclePolicyResultId string `protobuf:"bytes,1,opt,name=dry_run_lifecycle_policy_result_id,json=dryRunLifecyclePolicyResultId,proto3" json:"dry_run_lifecycle_policy_result_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetDryRunLifecyclePolicyResultRequest) Reset() { *m = GetDryRunLifecyclePolicyResultRequest{} } +func (m *GetDryRunLifecyclePolicyResultRequest) String() string { return proto.CompactTextString(m) } +func (*GetDryRunLifecyclePolicyResultRequest) ProtoMessage() {} +func (*GetDryRunLifecyclePolicyResultRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{12} +} + +func (m *GetDryRunLifecyclePolicyResultRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetDryRunLifecyclePolicyResultRequest.Unmarshal(m, b) +} +func (m *GetDryRunLifecyclePolicyResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetDryRunLifecyclePolicyResultRequest.Marshal(b, m, deterministic) +} +func (m *GetDryRunLifecyclePolicyResultRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDryRunLifecyclePolicyResultRequest.Merge(m, src) +} +func (m *GetDryRunLifecyclePolicyResultRequest) XXX_Size() int { + return xxx_messageInfo_GetDryRunLifecyclePolicyResultRequest.Size(m) +} +func (m *GetDryRunLifecyclePolicyResultRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetDryRunLifecyclePolicyResultRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetDryRunLifecyclePolicyResultRequest proto.InternalMessageInfo + +func (m *GetDryRunLifecyclePolicyResultRequest) GetDryRunLifecyclePolicyResultId() string { + if m != nil { + return m.DryRunLifecyclePolicyResultId + } + return "" +} + +type ListDryRunLifecyclePolicyResultsRequest struct { + LifecyclePolicyId string `protobuf:"bytes,1,opt,name=lifecycle_policy_id,json=lifecyclePolicyId,proto3" json:"lifecycle_policy_id,omitempty"` + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListDryRunLifecyclePolicyResultsRequest) Reset() { + *m = ListDryRunLifecyclePolicyResultsRequest{} +} +func (m *ListDryRunLifecyclePolicyResultsRequest) String() string { return proto.CompactTextString(m) } +func (*ListDryRunLifecyclePolicyResultsRequest) ProtoMessage() {} +func (*ListDryRunLifecyclePolicyResultsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{13} +} + +func (m *ListDryRunLifecyclePolicyResultsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListDryRunLifecyclePolicyResultsRequest.Unmarshal(m, b) +} +func (m *ListDryRunLifecyclePolicyResultsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListDryRunLifecyclePolicyResultsRequest.Marshal(b, m, deterministic) +} +func (m *ListDryRunLifecyclePolicyResultsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListDryRunLifecyclePolicyResultsRequest.Merge(m, src) +} +func (m *ListDryRunLifecyclePolicyResultsRequest) XXX_Size() int { + return xxx_messageInfo_ListDryRunLifecyclePolicyResultsRequest.Size(m) +} +func (m *ListDryRunLifecyclePolicyResultsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListDryRunLifecyclePolicyResultsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListDryRunLifecyclePolicyResultsRequest proto.InternalMessageInfo + +func (m *ListDryRunLifecyclePolicyResultsRequest) GetLifecyclePolicyId() string { + if m != nil { + return m.LifecyclePolicyId + } + return "" +} + +func (m *ListDryRunLifecyclePolicyResultsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListDryRunLifecyclePolicyResultsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +func (m *ListDryRunLifecyclePolicyResultsRequest) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +func (m *ListDryRunLifecyclePolicyResultsRequest) GetOrderBy() string { + if m != nil { + return m.OrderBy + } + return "" +} + +type ListDryRunLifecyclePolicyResultsResponse struct { + DryRunLifecyclePolicyResults []*DryRunLifecyclePolicyResult `protobuf:"bytes,1,rep,name=dry_run_lifecycle_policy_results,json=dryRunLifecyclePolicyResults,proto3" json:"dry_run_lifecycle_policy_results,omitempty"` + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListDryRunLifecyclePolicyResultsResponse) Reset() { + *m = ListDryRunLifecyclePolicyResultsResponse{} +} +func (m *ListDryRunLifecyclePolicyResultsResponse) String() string { return proto.CompactTextString(m) } +func (*ListDryRunLifecyclePolicyResultsResponse) ProtoMessage() {} +func (*ListDryRunLifecyclePolicyResultsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{14} +} + +func (m *ListDryRunLifecyclePolicyResultsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListDryRunLifecyclePolicyResultsResponse.Unmarshal(m, b) +} +func (m *ListDryRunLifecyclePolicyResultsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListDryRunLifecyclePolicyResultsResponse.Marshal(b, m, deterministic) +} +func (m *ListDryRunLifecyclePolicyResultsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListDryRunLifecyclePolicyResultsResponse.Merge(m, src) +} +func (m *ListDryRunLifecyclePolicyResultsResponse) XXX_Size() int { + return xxx_messageInfo_ListDryRunLifecyclePolicyResultsResponse.Size(m) +} +func (m *ListDryRunLifecyclePolicyResultsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListDryRunLifecyclePolicyResultsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListDryRunLifecyclePolicyResultsResponse proto.InternalMessageInfo + +func (m *ListDryRunLifecyclePolicyResultsResponse) GetDryRunLifecyclePolicyResults() []*DryRunLifecyclePolicyResult { + if m != nil { + return m.DryRunLifecyclePolicyResults + } + return nil +} + +func (m *ListDryRunLifecyclePolicyResultsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type ListDryRunLifecyclePolicyResultAffectedImagesRequest struct { + DryRunLifecyclePolicyResultId string `protobuf:"bytes,1,opt,name=dry_run_lifecycle_policy_result_id,json=dryRunLifecyclePolicyResultId,proto3" json:"dry_run_lifecycle_policy_result_id,omitempty"` + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) Reset() { + *m = ListDryRunLifecyclePolicyResultAffectedImagesRequest{} +} +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) String() string { + return proto.CompactTextString(m) +} +func (*ListDryRunLifecyclePolicyResultAffectedImagesRequest) ProtoMessage() {} +func (*ListDryRunLifecyclePolicyResultAffectedImagesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{15} +} + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListDryRunLifecyclePolicyResultAffectedImagesRequest.Unmarshal(m, b) +} +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListDryRunLifecyclePolicyResultAffectedImagesRequest.Marshal(b, m, deterministic) +} +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListDryRunLifecyclePolicyResultAffectedImagesRequest.Merge(m, src) +} +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) XXX_Size() int { + return xxx_messageInfo_ListDryRunLifecyclePolicyResultAffectedImagesRequest.Size(m) +} +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListDryRunLifecyclePolicyResultAffectedImagesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListDryRunLifecyclePolicyResultAffectedImagesRequest proto.InternalMessageInfo + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) GetDryRunLifecyclePolicyResultId() string { + if m != nil { + return m.DryRunLifecyclePolicyResultId + } + return "" +} + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) GetOrderBy() string { + if m != nil { + return m.OrderBy + } + return "" +} + +type ListDryRunLifecyclePolicyResultAffectedImagesResponse struct { + AffectedImages []*Image `protobuf:"bytes,1,rep,name=affected_images,json=affectedImages,proto3" json:"affected_images,omitempty"` + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesResponse) Reset() { + *m = ListDryRunLifecyclePolicyResultAffectedImagesResponse{} +} +func (m *ListDryRunLifecyclePolicyResultAffectedImagesResponse) String() string { + return proto.CompactTextString(m) +} +func (*ListDryRunLifecyclePolicyResultAffectedImagesResponse) ProtoMessage() {} +func (*ListDryRunLifecyclePolicyResultAffectedImagesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d0dc6994f9cdf613, []int{16} +} + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListDryRunLifecyclePolicyResultAffectedImagesResponse.Unmarshal(m, b) +} +func (m *ListDryRunLifecyclePolicyResultAffectedImagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListDryRunLifecyclePolicyResultAffectedImagesResponse.Marshal(b, m, deterministic) +} +func (m *ListDryRunLifecyclePolicyResultAffectedImagesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListDryRunLifecyclePolicyResultAffectedImagesResponse.Merge(m, src) +} +func (m *ListDryRunLifecyclePolicyResultAffectedImagesResponse) XXX_Size() int { + return xxx_messageInfo_ListDryRunLifecyclePolicyResultAffectedImagesResponse.Size(m) +} +func (m *ListDryRunLifecyclePolicyResultAffectedImagesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListDryRunLifecyclePolicyResultAffectedImagesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListDryRunLifecyclePolicyResultAffectedImagesResponse proto.InternalMessageInfo + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesResponse) GetAffectedImages() []*Image { + if m != nil { + return m.AffectedImages + } + return nil +} + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +func init() { + proto.RegisterType((*GetLifecyclePolicyRequest)(nil), "yandex.cloud.containerregistry.v1.GetLifecyclePolicyRequest") + proto.RegisterType((*ListLifecyclePoliciesRequest)(nil), "yandex.cloud.containerregistry.v1.ListLifecyclePoliciesRequest") + proto.RegisterType((*ListLifecyclePoliciesResponse)(nil), "yandex.cloud.containerregistry.v1.ListLifecyclePoliciesResponse") + proto.RegisterType((*CreateLifecyclePolicyRequest)(nil), "yandex.cloud.containerregistry.v1.CreateLifecyclePolicyRequest") + proto.RegisterType((*UpdateLifecyclePolicyRequest)(nil), "yandex.cloud.containerregistry.v1.UpdateLifecyclePolicyRequest") + proto.RegisterType((*DeleteLifecyclePolicyRequest)(nil), "yandex.cloud.containerregistry.v1.DeleteLifecyclePolicyRequest") + proto.RegisterType((*CreateLifecyclePolicyMetadata)(nil), "yandex.cloud.containerregistry.v1.CreateLifecyclePolicyMetadata") + proto.RegisterType((*UpdateLifecyclePolicyMetadata)(nil), "yandex.cloud.containerregistry.v1.UpdateLifecyclePolicyMetadata") + proto.RegisterType((*DeleteLifecyclePolicyMetadata)(nil), "yandex.cloud.containerregistry.v1.DeleteLifecyclePolicyMetadata") + proto.RegisterType((*DryRunLifecyclePolicyRequest)(nil), "yandex.cloud.containerregistry.v1.DryRunLifecyclePolicyRequest") + proto.RegisterType((*DryRunLifecyclePolicyMetadata)(nil), "yandex.cloud.containerregistry.v1.DryRunLifecyclePolicyMetadata") + proto.RegisterType((*DryRunLifecyclePolicyResult)(nil), "yandex.cloud.containerregistry.v1.DryRunLifecyclePolicyResult") + proto.RegisterType((*GetDryRunLifecyclePolicyResultRequest)(nil), "yandex.cloud.containerregistry.v1.GetDryRunLifecyclePolicyResultRequest") + proto.RegisterType((*ListDryRunLifecyclePolicyResultsRequest)(nil), "yandex.cloud.containerregistry.v1.ListDryRunLifecyclePolicyResultsRequest") + proto.RegisterType((*ListDryRunLifecyclePolicyResultsResponse)(nil), "yandex.cloud.containerregistry.v1.ListDryRunLifecyclePolicyResultsResponse") + proto.RegisterType((*ListDryRunLifecyclePolicyResultAffectedImagesRequest)(nil), "yandex.cloud.containerregistry.v1.ListDryRunLifecyclePolicyResultAffectedImagesRequest") + proto.RegisterType((*ListDryRunLifecyclePolicyResultAffectedImagesResponse)(nil), "yandex.cloud.containerregistry.v1.ListDryRunLifecyclePolicyResultAffectedImagesResponse") +} + +func init() { + proto.RegisterFile("yandex/cloud/containerregistry/v1/lifecycle_policy_service.proto", fileDescriptor_d0dc6994f9cdf613) +} + +var fileDescriptor_d0dc6994f9cdf613 = []byte{ + // 1212 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xd1, 0x6f, 0xdb, 0xd4, + 0x17, 0xfe, 0x39, 0x49, 0xf3, 0x5b, 0x4f, 0xb7, 0x55, 0xbb, 0xd3, 0x50, 0x08, 0x0d, 0xa4, 0x16, + 0x6c, 0x51, 0x21, 0x4e, 0x1c, 0xd6, 0x8a, 0xb1, 0x0e, 0xba, 0x6c, 0xac, 0x0b, 0x6c, 0xda, 0x70, + 0x87, 0x0a, 0x94, 0x29, 0xba, 0x8d, 0x6f, 0xc2, 0x55, 0x1d, 0xdb, 0xd8, 0xd7, 0x65, 0x29, 0x20, + 0xf1, 0x80, 0x90, 0xe8, 0x9f, 0x00, 0x12, 0x0f, 0x48, 0x48, 0x08, 0x4d, 0x3c, 0xf4, 0x2f, 0x80, + 0xa7, 0xf6, 0xb9, 0x48, 0xbc, 0xf0, 0x8e, 0x78, 0xe6, 0x91, 0x17, 0x90, 0xaf, 0xed, 0xb6, 0x71, + 0x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 0xdf, 0x5d, 0xed, 0xf9, 0x71, 0x35, 0xcd, 0xb7, 0xbe, 0xfc, 0x6f, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xac, 0x20, 0xde, 0xe1, 0xb2, 0x14, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// LifecyclePolicyServiceClient is the client API for LifecyclePolicyService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type LifecyclePolicyServiceClient interface { + Get(ctx context.Context, in *GetLifecyclePolicyRequest, opts ...grpc.CallOption) (*LifecyclePolicy, error) + List(ctx context.Context, in *ListLifecyclePoliciesRequest, opts ...grpc.CallOption) (*ListLifecyclePoliciesResponse, error) + Create(ctx context.Context, in *CreateLifecyclePolicyRequest, opts ...grpc.CallOption) (*operation.Operation, error) + Update(ctx context.Context, in *UpdateLifecyclePolicyRequest, opts ...grpc.CallOption) (*operation.Operation, error) + Delete(ctx context.Context, in *DeleteLifecyclePolicyRequest, opts ...grpc.CallOption) (*operation.Operation, error) + DryRun(ctx context.Context, in *DryRunLifecyclePolicyRequest, opts ...grpc.CallOption) (*operation.Operation, error) + GetDryRunResult(ctx context.Context, in *GetDryRunLifecyclePolicyResultRequest, opts ...grpc.CallOption) (*DryRunLifecyclePolicyResult, error) + ListDryRunResults(ctx context.Context, in *ListDryRunLifecyclePolicyResultsRequest, opts ...grpc.CallOption) (*ListDryRunLifecyclePolicyResultsResponse, error) + ListDryRunResultAffectedImages(ctx context.Context, in *ListDryRunLifecyclePolicyResultAffectedImagesRequest, opts ...grpc.CallOption) (*ListDryRunLifecyclePolicyResultAffectedImagesResponse, error) +} + +type lifecyclePolicyServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewLifecyclePolicyServiceClient(cc grpc.ClientConnInterface) LifecyclePolicyServiceClient { + return &lifecyclePolicyServiceClient{cc} +} + +func (c *lifecyclePolicyServiceClient) Get(ctx context.Context, in *GetLifecyclePolicyRequest, opts ...grpc.CallOption) (*LifecyclePolicy, error) { + out := new(LifecyclePolicy) + err := c.cc.Invoke(ctx, "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *lifecyclePolicyServiceClient) List(ctx context.Context, in *ListLifecyclePoliciesRequest, opts ...grpc.CallOption) (*ListLifecyclePoliciesResponse, error) { + out := new(ListLifecyclePoliciesResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *lifecyclePolicyServiceClient) Create(ctx context.Context, in *CreateLifecyclePolicyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *lifecyclePolicyServiceClient) Update(ctx context.Context, in *UpdateLifecyclePolicyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *lifecyclePolicyServiceClient) Delete(ctx context.Context, in *DeleteLifecyclePolicyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *lifecyclePolicyServiceClient) DryRun(ctx context.Context, in *DryRunLifecyclePolicyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/DryRun", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *lifecyclePolicyServiceClient) GetDryRunResult(ctx context.Context, in *GetDryRunLifecyclePolicyResultRequest, opts ...grpc.CallOption) (*DryRunLifecyclePolicyResult, error) { + out := new(DryRunLifecyclePolicyResult) + err := c.cc.Invoke(ctx, "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/GetDryRunResult", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *lifecyclePolicyServiceClient) ListDryRunResults(ctx context.Context, in *ListDryRunLifecyclePolicyResultsRequest, opts ...grpc.CallOption) (*ListDryRunLifecyclePolicyResultsResponse, error) { + out := new(ListDryRunLifecyclePolicyResultsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/ListDryRunResults", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *lifecyclePolicyServiceClient) ListDryRunResultAffectedImages(ctx context.Context, in *ListDryRunLifecyclePolicyResultAffectedImagesRequest, opts ...grpc.CallOption) (*ListDryRunLifecyclePolicyResultAffectedImagesResponse, error) { + out := new(ListDryRunLifecyclePolicyResultAffectedImagesResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/ListDryRunResultAffectedImages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// LifecyclePolicyServiceServer is the server API for LifecyclePolicyService service. +type LifecyclePolicyServiceServer interface { + Get(context.Context, *GetLifecyclePolicyRequest) (*LifecyclePolicy, error) + List(context.Context, *ListLifecyclePoliciesRequest) (*ListLifecyclePoliciesResponse, error) + Create(context.Context, *CreateLifecyclePolicyRequest) (*operation.Operation, error) + Update(context.Context, *UpdateLifecyclePolicyRequest) (*operation.Operation, error) + Delete(context.Context, *DeleteLifecyclePolicyRequest) (*operation.Operation, error) + DryRun(context.Context, *DryRunLifecyclePolicyRequest) (*operation.Operation, error) + GetDryRunResult(context.Context, *GetDryRunLifecyclePolicyResultRequest) (*DryRunLifecyclePolicyResult, error) + ListDryRunResults(context.Context, *ListDryRunLifecyclePolicyResultsRequest) (*ListDryRunLifecyclePolicyResultsResponse, error) + ListDryRunResultAffectedImages(context.Context, *ListDryRunLifecyclePolicyResultAffectedImagesRequest) (*ListDryRunLifecyclePolicyResultAffectedImagesResponse, error) +} + +// UnimplementedLifecyclePolicyServiceServer can be embedded to have forward compatible implementations. +type UnimplementedLifecyclePolicyServiceServer struct { +} + +func (*UnimplementedLifecyclePolicyServiceServer) Get(ctx context.Context, req *GetLifecyclePolicyRequest) (*LifecyclePolicy, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedLifecyclePolicyServiceServer) List(ctx context.Context, req *ListLifecyclePoliciesRequest) (*ListLifecyclePoliciesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (*UnimplementedLifecyclePolicyServiceServer) Create(ctx context.Context, req *CreateLifecyclePolicyRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (*UnimplementedLifecyclePolicyServiceServer) Update(ctx context.Context, req *UpdateLifecyclePolicyRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedLifecyclePolicyServiceServer) Delete(ctx context.Context, req *DeleteLifecyclePolicyRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (*UnimplementedLifecyclePolicyServiceServer) DryRun(ctx context.Context, req *DryRunLifecyclePolicyRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method DryRun not implemented") +} +func (*UnimplementedLifecyclePolicyServiceServer) GetDryRunResult(ctx context.Context, req *GetDryRunLifecyclePolicyResultRequest) (*DryRunLifecyclePolicyResult, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDryRunResult not implemented") +} +func (*UnimplementedLifecyclePolicyServiceServer) ListDryRunResults(ctx context.Context, req *ListDryRunLifecyclePolicyResultsRequest) (*ListDryRunLifecyclePolicyResultsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListDryRunResults not implemented") +} +func (*UnimplementedLifecyclePolicyServiceServer) ListDryRunResultAffectedImages(ctx context.Context, req *ListDryRunLifecyclePolicyResultAffectedImagesRequest) (*ListDryRunLifecyclePolicyResultAffectedImagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListDryRunResultAffectedImages not implemented") +} + +func RegisterLifecyclePolicyServiceServer(s *grpc.Server, srv LifecyclePolicyServiceServer) { + s.RegisterService(&_LifecyclePolicyService_serviceDesc, srv) +} + +func _LifecyclePolicyService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetLifecyclePolicyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LifecyclePolicyServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LifecyclePolicyServiceServer).Get(ctx, req.(*GetLifecyclePolicyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LifecyclePolicyService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListLifecyclePoliciesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LifecyclePolicyServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LifecyclePolicyServiceServer).List(ctx, req.(*ListLifecyclePoliciesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LifecyclePolicyService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateLifecyclePolicyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LifecyclePolicyServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LifecyclePolicyServiceServer).Create(ctx, req.(*CreateLifecyclePolicyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LifecyclePolicyService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateLifecyclePolicyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LifecyclePolicyServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LifecyclePolicyServiceServer).Update(ctx, req.(*UpdateLifecyclePolicyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LifecyclePolicyService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteLifecyclePolicyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LifecyclePolicyServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LifecyclePolicyServiceServer).Delete(ctx, req.(*DeleteLifecyclePolicyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LifecyclePolicyService_DryRun_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DryRunLifecyclePolicyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LifecyclePolicyServiceServer).DryRun(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/DryRun", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LifecyclePolicyServiceServer).DryRun(ctx, req.(*DryRunLifecyclePolicyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LifecyclePolicyService_GetDryRunResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDryRunLifecyclePolicyResultRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LifecyclePolicyServiceServer).GetDryRunResult(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/GetDryRunResult", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LifecyclePolicyServiceServer).GetDryRunResult(ctx, req.(*GetDryRunLifecyclePolicyResultRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LifecyclePolicyService_ListDryRunResults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListDryRunLifecyclePolicyResultsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LifecyclePolicyServiceServer).ListDryRunResults(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/ListDryRunResults", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LifecyclePolicyServiceServer).ListDryRunResults(ctx, req.(*ListDryRunLifecyclePolicyResultsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LifecyclePolicyService_ListDryRunResultAffectedImages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListDryRunLifecyclePolicyResultAffectedImagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LifecyclePolicyServiceServer).ListDryRunResultAffectedImages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.containerregistry.v1.LifecyclePolicyService/ListDryRunResultAffectedImages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LifecyclePolicyServiceServer).ListDryRunResultAffectedImages(ctx, req.(*ListDryRunLifecyclePolicyResultAffectedImagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _LifecyclePolicyService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.containerregistry.v1.LifecyclePolicyService", + HandlerType: (*LifecyclePolicyServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Get", + Handler: _LifecyclePolicyService_Get_Handler, + }, + { + MethodName: "List", + Handler: _LifecyclePolicyService_List_Handler, + }, + { + MethodName: "Create", + Handler: _LifecyclePolicyService_Create_Handler, + }, + { + MethodName: "Update", + Handler: _LifecyclePolicyService_Update_Handler, + }, + { + MethodName: "Delete", + Handler: _LifecyclePolicyService_Delete_Handler, + }, + { + MethodName: "DryRun", + Handler: _LifecyclePolicyService_DryRun_Handler, + }, + { + MethodName: "GetDryRunResult", + Handler: _LifecyclePolicyService_GetDryRunResult_Handler, + }, + { + MethodName: "ListDryRunResults", + Handler: _LifecyclePolicyService_ListDryRunResults_Handler, + }, + { + MethodName: "ListDryRunResultAffectedImages", + Handler: _LifecyclePolicyService_ListDryRunResultAffectedImages_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/containerregistry/v1/lifecycle_policy_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/lifecycle_policy_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/lifecycle_policy_service.pbext.go new file mode 100644 index 000000000..375bc5d6e --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/lifecycle_policy_service.pbext.go @@ -0,0 +1,202 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package containerregistry + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetLifecyclePolicyRequest) SetLifecyclePolicyId(v string) { + m.LifecyclePolicyId = v +} + +type ListLifecyclePoliciesRequest_Id = isListLifecyclePoliciesRequest_Id + +func (m *ListLifecyclePoliciesRequest) SetId(v ListLifecyclePoliciesRequest_Id) { + m.Id = v +} + +func (m *ListLifecyclePoliciesRequest) SetRegistryId(v string) { + m.Id = &ListLifecyclePoliciesRequest_RegistryId{ + RegistryId: v, + } +} + +func (m *ListLifecyclePoliciesRequest) SetRepositoryId(v string) { + m.Id = &ListLifecyclePoliciesRequest_RepositoryId{ + RepositoryId: v, + } +} + +func (m *ListLifecyclePoliciesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListLifecyclePoliciesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListLifecyclePoliciesRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListLifecyclePoliciesRequest) SetOrderBy(v string) { + m.OrderBy = v +} + +func (m *ListLifecyclePoliciesResponse) SetLifecyclePolicies(v []*LifecyclePolicy) { + m.LifecyclePolicies = v +} + +func (m *ListLifecyclePoliciesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateLifecyclePolicyRequest) SetRepositoryId(v string) { + m.RepositoryId = v +} + +func (m *CreateLifecyclePolicyRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateLifecyclePolicyRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateLifecyclePolicyRequest) SetStatus(v LifecyclePolicy_Status) { + m.Status = v +} + +func (m *CreateLifecyclePolicyRequest) SetRules(v []*LifecycleRule) { + m.Rules = v +} + +func (m *UpdateLifecyclePolicyRequest) SetLifecyclePolicyId(v string) { + m.LifecyclePolicyId = v +} + +func (m *UpdateLifecyclePolicyRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateLifecyclePolicyRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateLifecyclePolicyRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateLifecyclePolicyRequest) SetStatus(v LifecyclePolicy_Status) { + m.Status = v +} + +func (m *UpdateLifecyclePolicyRequest) SetRules(v []*LifecycleRule) { + m.Rules = v +} + +func (m *DeleteLifecyclePolicyRequest) SetLifecyclePolicyId(v string) { + m.LifecyclePolicyId = v +} + +func (m *CreateLifecyclePolicyMetadata) SetLifecyclePolicyId(v string) { + m.LifecyclePolicyId = v +} + +func (m *UpdateLifecyclePolicyMetadata) SetLifecyclePolicyId(v string) { + m.LifecyclePolicyId = v +} + +func (m *DeleteLifecyclePolicyMetadata) SetLifecyclePolicyId(v string) { + m.LifecyclePolicyId = v +} + +func (m *DryRunLifecyclePolicyRequest) SetLifecyclePolicyId(v string) { + m.LifecyclePolicyId = v +} + +func (m *DryRunLifecyclePolicyMetadata) SetDryRunLifecyclePolicyResultId(v string) { + m.DryRunLifecyclePolicyResultId = v +} + +func (m *DryRunLifecyclePolicyMetadata) SetLifecyclePolicyId(v string) { + m.LifecyclePolicyId = v +} + +func (m *DryRunLifecyclePolicyResult) SetDryRunLifecyclePolicyResultId(v string) { + m.DryRunLifecyclePolicyResultId = v +} + +func (m *DryRunLifecyclePolicyResult) SetLifecyclePolicyId(v string) { + m.LifecyclePolicyId = v +} + +func (m *DryRunLifecyclePolicyResult) SetRunAt(v *timestamp.Timestamp) { + m.RunAt = v +} + +func (m *DryRunLifecyclePolicyResult) SetAffectedImagesCount(v int64) { + m.AffectedImagesCount = v +} + +func (m *GetDryRunLifecyclePolicyResultRequest) SetDryRunLifecyclePolicyResultId(v string) { + m.DryRunLifecyclePolicyResultId = v +} + +func (m *ListDryRunLifecyclePolicyResultsRequest) SetLifecyclePolicyId(v string) { + m.LifecyclePolicyId = v +} + +func (m *ListDryRunLifecyclePolicyResultsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListDryRunLifecyclePolicyResultsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListDryRunLifecyclePolicyResultsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListDryRunLifecyclePolicyResultsRequest) SetOrderBy(v string) { + m.OrderBy = v +} + +func (m *ListDryRunLifecyclePolicyResultsResponse) SetDryRunLifecyclePolicyResults(v []*DryRunLifecyclePolicyResult) { + m.DryRunLifecyclePolicyResults = v +} + +func (m *ListDryRunLifecyclePolicyResultsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) SetDryRunLifecyclePolicyResultId(v string) { + m.DryRunLifecyclePolicyResultId = v +} + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesRequest) SetOrderBy(v string) { + m.OrderBy = v +} + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesResponse) SetAffectedImages(v []*Image) { + m.AffectedImages = v +} + +func (m *ListDryRunLifecyclePolicyResultAffectedImagesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/registry.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/registry.pb.go index 19e308bc4..7be1b259b 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/registry.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/registry.pb.go @@ -152,30 +152,30 @@ func init() { } var fileDescriptor_af015c3b55615c1a = []byte{ - // 388 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0x6f, 0x94, 0x40, - 0x14, 0xc6, 0x05, 0x5a, 0xb2, 0xfb, 0xd6, 0x34, 0x64, 0x62, 0x0c, 0x59, 0x0f, 0x62, 0x4f, 0x5c, - 0x3a, 0x63, 0xf1, 0xa0, 0xd5, 0x13, 0x6e, 0x51, 0x31, 0x4d, 0x35, 0x40, 0x35, 0x7a, 0xd9, 0x0c, - 0xcc, 0x14, 0x89, 0xc0, 0x34, 0x30, 0x6c, 0xe4, 0x3f, 0xf2, 0xcf, 0x34, 0x9d, 0x81, 0xc4, 0x64, - 0x0f, 0x9b, 0xde, 0x1e, 0xdf, 0xe3, 0xf7, 0xe6, 0x7d, 0x5f, 0x1e, 0xbc, 0x1c, 0x69, 0xcb, 0xf8, - 0x1f, 0x52, 0xd4, 0x62, 0x60, 0xa4, 0x10, 0xad, 0xa4, 0x55, 0xcb, 0xbb, 0x8e, 0x97, 0x55, 0x2f, - 0xbb, 0x91, 0xec, 0xce, 0xc9, 0x5c, 0xe3, 0xbb, 0x4e, 0x48, 0x81, 0x5e, 0x68, 0x02, 0x2b, 0x02, - 0xef, 0x11, 0x78, 0x77, 0xbe, 0x7e, 0x5e, 0x0a, 0x51, 0xd6, 0x9c, 0x28, 0x20, 0x1f, 0x6e, 0x89, - 0xac, 0x1a, 0xde, 0x4b, 0xda, 0xdc, 0xe9, 0x19, 0xa7, 0x7f, 0x2d, 0x58, 0x24, 0x13, 0x80, 0x4e, - 0xc0, 0xac, 0x98, 0x6b, 0x78, 0x86, 0xbf, 0x4c, 0x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xce, 0x65, - 0x74, 0x15, 0xa9, 0x8e, 0xf5, 0xfe, 0xc7, 0xcf, 0xef, 0x65, 0x25, 0x7f, 0x0d, 0x39, 0x2e, 0x44, - 0x43, 0xb4, 0xa3, 0x33, 0x7d, 0x2d, 0xa5, 0x38, 0x2b, 0x79, 0xab, 0x42, 0x21, 0x07, 0xcf, 0xe8, - 0xdd, 0x9e, 0x98, 0xdb, 0x0a, 0x7d, 0xf5, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x07, 0x78, 0x95, 0xaa, - 0x84, 0x02, 0x00, 0x00, + // 400 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0x6b, 0xd4, 0x40, + 0x14, 0xc6, 0x4d, 0xd2, 0x86, 0xdd, 0xb7, 0x52, 0x96, 0x41, 0x24, 0xac, 0x07, 0xd7, 0x82, 0x90, + 0x4b, 0x67, 0x6c, 0x3c, 0x68, 0xf5, 0x14, 0xb7, 0x51, 0x23, 0xa5, 0x4a, 0x92, 0x2a, 0x78, 0x59, + 0x26, 0x99, 0x69, 0x1c, 0x4c, 0x32, 0x4b, 0x32, 0x59, 0xcc, 0xcd, 0x3f, 0xc7, 0x3f, 0x53, 0x3a, + 0x93, 0x80, 0x52, 0xa1, 0x78, 0x7b, 0xf9, 0x5e, 0x7e, 0x6f, 0xde, 0xf7, 0xf1, 0xe0, 0xd9, 0x40, + 0x1b, 0xc6, 0x7f, 0x90, 0xa2, 0x92, 0x3d, 0x23, 0x85, 0x6c, 0x14, 0x15, 0x0d, 0x6f, 0x5b, 0x5e, + 0x8a, 0x4e, 0xb5, 0x03, 0xd9, 0x9f, 0x92, 0xa9, 0xc6, 0xbb, 0x56, 0x2a, 0x89, 0x9e, 0x18, 0x02, + 0x6b, 0x02, 0xdf, 0x22, 0xf0, 0xfe, 0x74, 0xf5, 0xb8, 0x94, 0xb2, 0xac, 0x38, 0xd1,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2, 0x4d, 0xfc, 0x36, 0x8e, 0xce, 0x97, 0xf7, 0xd0, 0x7d, 0x98, 0x6d, 0x92, + 0x28, 0xcc, 0xe2, 0xcb, 0x77, 0x4b, 0x0b, 0x01, 0xb8, 0xe1, 0x26, 0x8b, 0x3f, 0x47, 0x4b, 0xfb, + 0xa6, 0x73, 0x1e, 0x5d, 0x44, 0xba, 0xe3, 0xbc, 0xf9, 0x69, 0xc1, 0xd3, 0xbf, 0x7c, 0xd0, 0x9d, + 0xf8, 0xa7, 0x97, 0xaf, 0x5f, 0x4a, 0xa1, 0xbe, 0xf5, 0x39, 0x2e, 0x64, 0x4d, 0x0c, 0x71, 0x62, + 0xae, 0xaa, 0x94, 0x27, 0x25, 0x6f, 0x74, 0x78, 0xe4, 0xce, 0x73, 0x7b, 0x7d, 0x4b, 0xcc, 0x5d, + 0x8d, 0x3e, 0xff, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x12, 0xef, 0xfc, 0xac, 0x02, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/registry.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/registry.pbext.go new file mode 100644 index 000000000..3a181aed2 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/registry.pbext.go @@ -0,0 +1,31 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package containerregistry + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Registry) SetId(v string) { + m.Id = v +} + +func (m *Registry) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Registry) SetName(v string) { + m.Name = v +} + +func (m *Registry) SetStatus(v Registry_Status) { + m.Status = v +} + +func (m *Registry) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Registry) SetLabels(v map[string]string) { + m.Labels = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/registry_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/registry_service.pb.go index 5ae1c5c7f..41101c613 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/registry_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/registry_service.pb.go @@ -518,80 +518,81 @@ func init() { } var fileDescriptor_9e6479678b0fb5ad = []byte{ - // 1020 bytes of a gzipped FileDescriptorProto + // 1028 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x97, 0x41, 0x6f, 0x1b, 0x45, 0x14, 0xc7, 0x35, 0xb1, 0x6b, 0xc5, 0xcf, 0x45, 0x2d, 0xa3, 0xba, 0xb2, 0x2c, 0x2a, 0x9c, 0xad, - 0x14, 0x52, 0xc3, 0xee, 0x7a, 0xd3, 0x26, 0xc4, 0x69, 0x2a, 0x54, 0x37, 0x4d, 0x15, 0x68, 0x05, - 0xda, 0x80, 0x10, 0x44, 0x95, 0x99, 0x78, 0x27, 0x66, 0xc8, 0x66, 0xd7, 0xec, 0xac, 0xad, 0x26, - 0xa5, 0x97, 0xde, 0x88, 0x84, 0x38, 0x20, 0x8e, 0x5c, 0x38, 0xf0, 0x01, 0x72, 0xeb, 0x91, 0x93, - 0x73, 0x25, 0xf0, 0x11, 0x38, 0x70, 0x6d, 0x8f, 0x48, 0x48, 0x68, 0x67, 0x76, 0xdd, 0xac, 0xbd, - 0x26, 0xeb, 0x70, 0xe9, 0xc9, 0xb3, 0x3b, 0xef, 0xbd, 0xf9, 0xfd, 0xe7, 0xbd, 0x37, 0xe3, 0x85, - 0xa5, 0x3d, 0xe2, 0x58, 0xf4, 0x91, 0xde, 0xb2, 0xdd, 0xae, 0xa5, 0xb7, 0x5c, 0xc7, 0x27, 0xcc, - 0xa1, 0x9e, 0x47, 0xdb, 0x8c, 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xa5, 0x96, 0x51, 0xb5, 0xf1, 0x35, 0x82, 0x37, 0xe2, 0x42, 0x3b, + 0x2c, 0xb1, 0x0d, 0x3f, 0xfd, 0xa4, 0xcd, 0xfc, 0xcf, 0xbb, 0x5b, 0x5a, 0xcb, 0xdd, 0xd5, 0xa5, + 0x87, 0x2a, 0x3f, 0x40, 0xda, 0xae, 0xda, 0xa6, 0x8e, 0xc0, 0xd4, 0x4f, 0xfd, 0xe6, 0xb9, 0x39, + 0xf2, 0x72, 0x2b, 0x27, 0x5c, 0xaf, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0xd4, 0x50, 0xd6, 0x4d, + 0xd2, 0x0d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // RegistryServiceClient is the client API for RegistryService service. // @@ -618,10 +619,10 @@ type RegistryServiceClient interface { } type registryServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewRegistryServiceClient(cc *grpc.ClientConn) RegistryServiceClient { +func NewRegistryServiceClient(cc grpc.ClientConnInterface) RegistryServiceClient { return ®istryServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/registry_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/registry_service.pbext.go new file mode 100644 index 000000000..efe779006 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/registry_service.pbext.go @@ -0,0 +1,79 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package containerregistry + +import ( + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetRegistryRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *ListRegistriesRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListRegistriesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListRegistriesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListRegistriesRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListRegistriesResponse) SetRegistries(v []*Registry) { + m.Registries = v +} + +func (m *ListRegistriesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateRegistryRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateRegistryRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateRegistryRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateRegistryMetadata) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *UpdateRegistryRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *UpdateRegistryRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateRegistryRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateRegistryRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateRegistryMetadata) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *DeleteRegistryRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *DeleteRegistryMetadata) SetRegistryId(v string) { + m.RegistryId = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/repository.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/repository.pb.go index f719b2f0b..e178ef060 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/repository.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/repository.pb.go @@ -80,7 +80,7 @@ func init() { } var fileDescriptor_3a476f200b225be9 = []byte{ - // 166 bytes of a gzipped FileDescriptorProto + // 176 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0xaa, 0x4c, 0xcc, 0x4b, 0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0x4f, 0xce, 0xcf, 0x2b, 0x49, 0xcc, 0xcc, 0x4b, 0x2d, 0x2a, 0x4a, 0x4d, 0xcf, 0x2c, 0x2e, 0x29, 0xaa, 0xd4, 0x2f, 0x33, 0xd4, 0x2f, 0x4a, @@ -88,8 +88,8 @@ var fileDescriptor_3a476f200b225be9 = []byte{ 0x84, 0xe8, 0xd1, 0x03, 0xeb, 0xd1, 0xc3, 0xd0, 0xa3, 0x57, 0x66, 0xa8, 0x64, 0xc0, 0xc5, 0x15, 0x04, 0xd7, 0x26, 0x24, 0xc4, 0xc5, 0x92, 0x97, 0x98, 0x9b, 0x2a, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0x04, 0x66, 0x0b, 0xf1, 0x71, 0x31, 0x65, 0xa6, 0x48, 0x30, 0x81, 0x45, 0x98, 0x32, 0x53, - 0x9c, 0x22, 0xa3, 0xc2, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x21, - 0x36, 0xe8, 0x42, 0x5c, 0x95, 0x9e, 0xaf, 0x9b, 0x9e, 0x9a, 0x07, 0xb6, 0x5b, 0x9f, 0xa0, 0x73, - 0xad, 0x31, 0x04, 0x93, 0xd8, 0xc0, 0x5a, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x59, 0xb8, - 0x11, 0x35, 0xec, 0x00, 0x00, 0x00, + 0x9c, 0x1a, 0x18, 0xb9, 0x54, 0x51, 0xcc, 0x4d, 0x2c, 0xc8, 0xc4, 0x6a, 0x76, 0x54, 0x78, 0x7a, + 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0x44, 0x87, 0x2e, 0xc4, 0xf5, 0xe9, + 0xf9, 0xba, 0xe9, 0xa9, 0x79, 0x60, 0x37, 0xea, 0x13, 0xf4, 0x96, 0x35, 0x86, 0x60, 0x12, 0x1b, + 0x58, 0xab, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x5d, 0x34, 0xba, 0x11, 0x14, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/repository.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/repository.pbext.go new file mode 100644 index 000000000..6be3e1ec1 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/repository.pbext.go @@ -0,0 +1,11 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package containerregistry + +func (m *Repository) SetName(v string) { + m.Name = v +} + +func (m *Repository) SetId(v string) { + m.Id = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/repository_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/repository_service.pb.go index 8eda18783..92fc39c3e 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/repository_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/repository_service.pb.go @@ -278,67 +278,67 @@ func init() { } var fileDescriptor_b3ad489b83930188 = []byte{ - // 801 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcf, 0x4f, 0x1b, 0x47, - 0x14, 0xd6, 0x62, 0x70, 0xed, 0x01, 0x8a, 0x18, 0x51, 0xd5, 0xb2, 0x5a, 0xc9, 0x2c, 0x85, 0xda, - 0x46, 0xbb, 0xeb, 0x05, 0xa1, 0x0a, 0x03, 0xad, 0xea, 0xb6, 0x50, 0xab, 0xf4, 0x97, 0x69, 0x55, - 0xb5, 0x08, 0x59, 0x6b,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f, 0xcf, 0x88, 0x9e, 0x11, 0x72, - 0x42, 0x3e, 0x5d, 0x99, 0x7b, 0x7e, 0xa9, 0x0a, 0x17, 0x57, 0xea, 0xf4, 0xee, 0xde, 0x56, 0xa9, - 0x36, 0x17, 0x41, 0xaa, 0xba, 0xf8, 0xbf, 0x80, 0xb2, 0x31, 0xae, 0x8a, 0xf3, 0x9d, 0xd6, 0x86, - 0x90, 0x91, 0xa2, 0x85, 0x3e, 0x46, 0x53, 0x6b, 0x43, 0xc0, 0xb9, 0xef, 0x72, 0xbe, 0xb8, 0x54, - 0x3f, 0x3d, 0xd6, 0xa4, 0xf3, 0x92, 0xb4, 0x7d, 0xb2, 0x9e, 0xff, 0xac, 0x7c, 0x2c, 0xd7, 0xa5, - 0x93, 0xde, 0x41, 0xa1, 0x98, 0x57, 0xf2, 0x37, 0x85, 0x0b, 0x85, 0x62, 0xed, 0xdd, 0x88, 0xde, - 0xad, 0x2b, 0xfe, 0x3b, 0x85, 0xde, 0x3f, 0x24, 0x2c, 0x12, 0x44, 0x80, 0x85, 0x62, 0x0a, 0x68, - 0x36, 0xec, 0x7d, 0x64, 0x2e, 0xd5, 0x33, 0x86, 0xc2, 0x60, 0x55, 0xc7, 0xab, 0x28, 0x7d, 0x4a, - 0x5b, 0x3a, 0xd8, 0x2e, 0x30, 0x39, 0x00, 0x4c, 0xf9, 0xa1, 0xaa, 0x8e, 0x3f, 0x46, 0x69, 0x4b, - 0x33, 0xa0, 0xce, 0xc8, 0x39, 0x64, 0xa6, 0x72, 0x42, 0x3e, 0x51, 0x41, 0xaf, 0x2e, 0xd5, 0xe4, - 0xee, 0x9e, 0x5a, 0x2a, 0x95, 0x6a, 0x29, 0x37, 0x78, 0x44, 0xce, 0x01, 0xe7, 0x11, 0xf2, 0x80, - 0x9c, 0xfe, 0x01, 0x66, 0x26, 0xe1, 0x11, 0xa6, 0x2f, 0xae, 0xd4, 0x19, 0x0f, 0x59, 0xf3, 0x58, - 0x7e, 0x72, 0x63, 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- 0xd2, 0x4b, 0xdd, 0x7c, 0x13, 0x00, 0x00, 0xff, 0xff, 0x6e, 0x81, 0x3f, 0x29, 0xc8, 0x08, 0x00, - 0x00, + // 806 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x4f, 0x3b, 0x55, + 0x14, 0xcd, 0xa3, 0x50, 0xdb, 0x07, 0x48, 0x78, 0xc1, 0xd8, 0x34, 0x9a, 0x94, 0x41, 0xb0, 0x2d, + 0x99, 0x99, 0x0e, 0x84, 0x18, 0x0a, 0x68, 0xac, 0x0a, 0x36, 0xe2, 0xbf, 0xa2, 0x31, 0x91, 0x90, + 0x66, 0xda, 0xb9, 0x8c, 0x2f, 0xb6, 0xf3, 0xc6, 0x79, 0xaf, 0x0d, 0x83, 0x31, 0x31, 0xae, 0x0c, + 0xc6, 0x85, 0x31, 0x7e, 0x07, 0x63, 0x5c, 0xf9, 0x15, 0x5c, 0xc0, 0x5a, 0xbf, 0x82, 0x0b, 0xd7, + 0xba, 0x73, 0xe3, 0x2f, 0xf3, 0xaf, 0xd3, 0x69, 0x0b, 0xb4, 0xbf, 0x55, 0x9b, 0x77, 0xcf, 0x3d, + 0xf7, 0x9c, 0xfb, 0xde, 0xbd, 0x2d, 0xae, 0xba, 0xba, 0x65, 0xc0, 0x95, 0xda, 0xee, 0xb0, 0x9e, + 0xa1, 0xb6, 0x99, 0x25, 0x74, 0x6a, 0x81, 0xe3, 0x80, 0x49, 0xb9, 0x70, 0x5c, 0xb5, 0xaf, 0xa9, + 0x0e, 0xd8, 0x8c, 0x53, 0xc1, 0x1c, 0xb7, 0xc9, 0xc1, 0xe9, 0xd3, 0x36, 0x28, 0xb6, 0xc3, 0x04, + 0x23, 0xeb, 0x41, 0xae, 0xe2, 0xe7, 0x2a, 0x63, 0xb9, 0x4a, 0x5f, 0xcb, 0x17, 0x12, 0xf4, 0xba, + 0x4d, 0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f, 0x84, 0xd7, 0x3e, 0xb6, 0x0d, 0x5d, 0xc0, 0x88, 0xf1, 0xca, + 0x44, 0xe3, 0x93, 0xa0, 0x33, 0x78, 0xff, 0xc1, 0xf3, 0x7e, 0x88, 0x37, 0x1e, 0x60, 0x9b, 0xc6, + 0xfe, 0x3b, 0xd2, 0xf1, 0xec, 0xf6, 0x7b, 0x13, 0x8a, 0x55, 0x51, 0xb9, 0xf6, 0x35, 0xc2, 0x9b, + 0x49, 0xab, 0x36, 0x9d, 0x38, 0x2d, 0x9f, 0x7e, 0x62, 0x52, 0xf1, 0x59, 0xaf, 0xa5, 0xb4, 0x59, + 0x57, 0x0d, 0x32, 0xe4, 0xe0, 0xa7, 0xd9, 0x64, 0xb2, 0x09, 0x96, 0x2f, 0x54, 0x7d, 0xf4, 0xff, + 0xc0, 0xc1, 0xd8, 0x61, 0x2b, 0xed, 0xa7, 0xee, 0x3e, 0x09, 0x00, 0x00, 0xff, 0xff, 0xee, 0xd5, + 0x3a, 0x62, 0xf0, 0x08, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // RepositoryServiceClient is the client API for RepositoryService service. // @@ -363,10 +363,10 @@ type RepositoryServiceClient interface { } type repositoryServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewRepositoryServiceClient(cc *grpc.ClientConn) RepositoryServiceClient { +func NewRepositoryServiceClient(cc grpc.ClientConnInterface) RepositoryServiceClient { return &repositoryServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/repository_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/repository_service.pbext.go new file mode 100644 index 000000000..132a3ca61 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1/repository_service.pbext.go @@ -0,0 +1,43 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package containerregistry + +func (m *GetRepositoryRequest) SetRepositoryId(v string) { + m.RepositoryId = v +} + +func (m *GetRepositoryByNameRequest) SetRepositoryName(v string) { + m.RepositoryName = v +} + +func (m *ListRepositoriesRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *ListRepositoriesRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListRepositoriesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListRepositoriesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListRepositoriesRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListRepositoriesRequest) SetOrderBy(v string) { + m.OrderBy = v +} + +func (m *ListRepositoriesResponse) SetRepositories(v []*Repository) { + m.Repositories = v +} + +func (m *ListRepositoriesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/cluster.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/cluster.pb.go new file mode 100644 index 000000000..9b32af3a0 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/cluster.pb.go @@ -0,0 +1,526 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/dataproc/v1/cluster.proto + +package dataproc + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Cluster_Status int32 + +const ( + // Cluster state is unknown. + Cluster_STATUS_UNKNOWN Cluster_Status = 0 + // Cluster is being created. + Cluster_CREATING Cluster_Status = 1 + // Cluster is running normally. + Cluster_RUNNING Cluster_Status = 2 + // Cluster encountered a problem and cannot operate. + Cluster_ERROR Cluster_Status = 3 + // Cluster is stopping. + Cluster_STOPPING Cluster_Status = 4 + // Cluster stopped. + Cluster_STOPPED Cluster_Status = 5 + // Cluster is starting. + Cluster_STARTING Cluster_Status = 6 +) + +var Cluster_Status_name = map[int32]string{ + 0: "STATUS_UNKNOWN", + 1: "CREATING", + 2: "RUNNING", + 3: "ERROR", + 4: "STOPPING", + 5: "STOPPED", + 6: "STARTING", +} + +var Cluster_Status_value = map[string]int32{ + "STATUS_UNKNOWN": 0, + "CREATING": 1, + "RUNNING": 2, + "ERROR": 3, + "STOPPING": 4, + "STOPPED": 5, + "STARTING": 6, +} + +func (x Cluster_Status) String() string { + return proto.EnumName(Cluster_Status_name, int32(x)) +} + +func (Cluster_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_62f0592e5d92313c, []int{0, 0} +} + +type HadoopConfig_Service int32 + +const ( + HadoopConfig_SERVICE_UNSPECIFIED HadoopConfig_Service = 0 + HadoopConfig_HDFS HadoopConfig_Service = 1 + HadoopConfig_YARN HadoopConfig_Service = 2 + HadoopConfig_MAPREDUCE HadoopConfig_Service = 3 + HadoopConfig_HIVE HadoopConfig_Service = 4 + HadoopConfig_TEZ HadoopConfig_Service = 5 + HadoopConfig_ZOOKEEPER HadoopConfig_Service = 6 + HadoopConfig_HBASE HadoopConfig_Service = 7 + HadoopConfig_SQOOP HadoopConfig_Service = 8 + HadoopConfig_FLUME HadoopConfig_Service = 9 + HadoopConfig_SPARK HadoopConfig_Service = 10 + HadoopConfig_ZEPPELIN HadoopConfig_Service = 11 + HadoopConfig_OOZIE HadoopConfig_Service = 12 +) + +var HadoopConfig_Service_name = map[int32]string{ + 0: "SERVICE_UNSPECIFIED", + 1: "HDFS", + 2: "YARN", + 3: "MAPREDUCE", + 4: "HIVE", + 5: "TEZ", + 6: "ZOOKEEPER", + 7: "HBASE", + 8: "SQOOP", + 9: "FLUME", + 10: "SPARK", + 11: "ZEPPELIN", + 12: "OOZIE", +} + +var HadoopConfig_Service_value = map[string]int32{ + "SERVICE_UNSPECIFIED": 0, + "HDFS": 1, + "YARN": 2, + "MAPREDUCE": 3, + "HIVE": 4, + "TEZ": 5, + "ZOOKEEPER": 6, + "HBASE": 7, + "SQOOP": 8, + "FLUME": 9, + "SPARK": 10, + "ZEPPELIN": 11, + "OOZIE": 12, +} + +func (x HadoopConfig_Service) String() string { + return proto.EnumName(HadoopConfig_Service_name, int32(x)) +} + +func (HadoopConfig_Service) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_62f0592e5d92313c, []int{2, 0} +} + +// A Data Proc cluster. For details about the concept, see [documentation](/docs/data-proc/concepts/). +type Cluster struct { + // ID of the cluster. Generated at creation time. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // ID of the folder that the cluster belongs to. + FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // Creation timestamp. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Name of the cluster. The name is unique within the folder. + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + // Description of the cluster. + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + // Cluster labels as `key:value` pairs. + Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Monitoring systems relevant to the cluster. + Monitoring []*Monitoring `protobuf:"bytes,7,rep,name=monitoring,proto3" json:"monitoring,omitempty"` + // Configuration of the cluster. + Config *ClusterConfig `protobuf:"bytes,8,opt,name=config,proto3" json:"config,omitempty"` + // Aggregated cluster health. + Health Health `protobuf:"varint,9,opt,name=health,proto3,enum=yandex.cloud.dataproc.v1.Health" json:"health,omitempty"` + // Cluster status. + Status Cluster_Status `protobuf:"varint,10,opt,name=status,proto3,enum=yandex.cloud.dataproc.v1.Cluster_Status" json:"status,omitempty"` + // ID of the availability zone where the cluster resides. + ZoneId string `protobuf:"bytes,11,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"` + // ID of service account for the Data Proc manager agent. + ServiceAccountId string `protobuf:"bytes,12,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + // Object Storage bucket to be used for Data Proc jobs that are run in the cluster. + Bucket string `protobuf:"bytes,13,opt,name=bucket,proto3" json:"bucket,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Cluster) Reset() { *m = Cluster{} } +func (m *Cluster) String() string { return proto.CompactTextString(m) } +func (*Cluster) ProtoMessage() {} +func (*Cluster) Descriptor() ([]byte, []int) { + return fileDescriptor_62f0592e5d92313c, []int{0} +} + +func (m *Cluster) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Cluster.Unmarshal(m, b) +} +func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Cluster.Marshal(b, m, deterministic) +} +func (m *Cluster) XXX_Merge(src proto.Message) { + xxx_messageInfo_Cluster.Merge(m, src) +} +func (m *Cluster) XXX_Size() int { + return xxx_messageInfo_Cluster.Size(m) +} +func (m *Cluster) XXX_DiscardUnknown() { + xxx_messageInfo_Cluster.DiscardUnknown(m) +} + +var xxx_messageInfo_Cluster proto.InternalMessageInfo + +func (m *Cluster) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Cluster) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *Cluster) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *Cluster) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Cluster) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *Cluster) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *Cluster) GetMonitoring() []*Monitoring { + if m != nil { + return m.Monitoring + } + return nil +} + +func (m *Cluster) GetConfig() *ClusterConfig { + if m != nil { + return m.Config + } + return nil +} + +func (m *Cluster) GetHealth() Health { + if m != nil { + return m.Health + } + return Health_HEALTH_UNKNOWN +} + +func (m *Cluster) GetStatus() Cluster_Status { + if m != nil { + return m.Status + } + return Cluster_STATUS_UNKNOWN +} + +func (m *Cluster) GetZoneId() string { + if m != nil { + return m.ZoneId + } + return "" +} + +func (m *Cluster) GetServiceAccountId() string { + if m != nil { + return m.ServiceAccountId + } + return "" +} + +func (m *Cluster) GetBucket() string { + if m != nil { + return m.Bucket + } + return "" +} + +// Metadata of a monitoring system for a Data Proc cluster. +type Monitoring struct { + // Name of the monitoring system. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Description of the monitoring system. + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + // Link to the monitoring system. + Link string `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Monitoring) Reset() { *m = Monitoring{} } +func (m *Monitoring) String() string { return proto.CompactTextString(m) } +func (*Monitoring) ProtoMessage() {} +func (*Monitoring) Descriptor() ([]byte, []int) { + return fileDescriptor_62f0592e5d92313c, []int{1} +} + +func (m *Monitoring) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Monitoring.Unmarshal(m, b) +} +func (m *Monitoring) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Monitoring.Marshal(b, m, deterministic) +} +func (m *Monitoring) XXX_Merge(src proto.Message) { + xxx_messageInfo_Monitoring.Merge(m, src) +} +func (m *Monitoring) XXX_Size() int { + return xxx_messageInfo_Monitoring.Size(m) +} +func (m *Monitoring) XXX_DiscardUnknown() { + xxx_messageInfo_Monitoring.DiscardUnknown(m) +} + +var xxx_messageInfo_Monitoring proto.InternalMessageInfo + +func (m *Monitoring) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Monitoring) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *Monitoring) GetLink() string { + if m != nil { + return m.Link + } + return "" +} + +// Hadoop configuration that describes services installed in a cluster, +// their properties and settings. +type HadoopConfig struct { + // Set of services used in the cluster (if empty, the default set is used). + Services []HadoopConfig_Service `protobuf:"varint,1,rep,packed,name=services,proto3,enum=yandex.cloud.dataproc.v1.HadoopConfig_Service" json:"services,omitempty"` + // Properties set for all hosts in `*-site.xml` configurations. The key should indicate + // the service and the property. + // + // For example, use the key 'hdfs:dfs.replication' to set the `dfs.replication` property + // in the file `/etc/hadoop/conf/hdfs-site.xml`. + Properties map[string]string `protobuf:"bytes,2,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // List of public SSH keys to access to cluster hosts. + SshPublicKeys []string `protobuf:"bytes,3,rep,name=ssh_public_keys,json=sshPublicKeys,proto3" json:"ssh_public_keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HadoopConfig) Reset() { *m = HadoopConfig{} } +func (m *HadoopConfig) String() string { return proto.CompactTextString(m) } +func (*HadoopConfig) ProtoMessage() {} +func (*HadoopConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_62f0592e5d92313c, []int{2} +} + +func (m *HadoopConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HadoopConfig.Unmarshal(m, b) +} +func (m *HadoopConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HadoopConfig.Marshal(b, m, deterministic) +} +func (m *HadoopConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_HadoopConfig.Merge(m, src) +} +func (m *HadoopConfig) XXX_Size() int { + return xxx_messageInfo_HadoopConfig.Size(m) +} +func (m *HadoopConfig) XXX_DiscardUnknown() { + xxx_messageInfo_HadoopConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_HadoopConfig proto.InternalMessageInfo + +func (m *HadoopConfig) GetServices() []HadoopConfig_Service { + if m != nil { + return m.Services + } + return nil +} + +func (m *HadoopConfig) GetProperties() map[string]string { + if m != nil { + return m.Properties + } + return nil +} + +func (m *HadoopConfig) GetSshPublicKeys() []string { + if m != nil { + return m.SshPublicKeys + } + return nil +} + +type ClusterConfig struct { + // Image version for cluster provisioning. + // All available versions are listed in the [documentation](/docs/managed-hadoop/concepts/image-versions). + VersionId string `protobuf:"bytes,1,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` + // Data Proc specific configuration options. + Hadoop *HadoopConfig `protobuf:"bytes,2,opt,name=hadoop,proto3" json:"hadoop,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClusterConfig) Reset() { *m = ClusterConfig{} } +func (m *ClusterConfig) String() string { return proto.CompactTextString(m) } +func (*ClusterConfig) ProtoMessage() {} +func (*ClusterConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_62f0592e5d92313c, []int{3} +} + +func (m *ClusterConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClusterConfig.Unmarshal(m, b) +} +func (m *ClusterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClusterConfig.Marshal(b, m, deterministic) +} +func (m *ClusterConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterConfig.Merge(m, src) +} +func (m *ClusterConfig) XXX_Size() int { + return xxx_messageInfo_ClusterConfig.Size(m) +} +func (m *ClusterConfig) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterConfig proto.InternalMessageInfo + +func (m *ClusterConfig) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +func (m *ClusterConfig) GetHadoop() *HadoopConfig { + if m != nil { + return m.Hadoop + } + return nil +} + +func init() { + proto.RegisterEnum("yandex.cloud.dataproc.v1.Cluster_Status", Cluster_Status_name, Cluster_Status_value) + proto.RegisterEnum("yandex.cloud.dataproc.v1.HadoopConfig_Service", HadoopConfig_Service_name, HadoopConfig_Service_value) + proto.RegisterType((*Cluster)(nil), "yandex.cloud.dataproc.v1.Cluster") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.dataproc.v1.Cluster.LabelsEntry") + proto.RegisterType((*Monitoring)(nil), "yandex.cloud.dataproc.v1.Monitoring") + proto.RegisterType((*HadoopConfig)(nil), "yandex.cloud.dataproc.v1.HadoopConfig") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.dataproc.v1.HadoopConfig.PropertiesEntry") + proto.RegisterType((*ClusterConfig)(nil), "yandex.cloud.dataproc.v1.ClusterConfig") +} + +func init() { + proto.RegisterFile("yandex/cloud/dataproc/v1/cluster.proto", fileDescriptor_62f0592e5d92313c) +} + +var fileDescriptor_62f0592e5d92313c = []byte{ + // 901 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x95, 0xe1, 0x92, 0xe2, 0x44, + 0x10, 0xc7, 0x0f, 0x02, 0x81, 0x34, 0xbb, 0x7b, 0x53, 0xa3, 0xe5, 0xa5, 0xd6, 0xbb, 0x92, 0xa2, + 0xf4, 0xa4, 0x4a, 0x09, 0xc2, 0xe9, 0xd6, 0x9d, 0x7a, 0x2a, 0x0b, 0xb3, 0x6e, 0xdc, 0x5d, 0x12, + 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98, 0x17, 0xd7, 0xc3, 0x1b, 0x82, 0x14, + 0xe1, 0x35, 0x3b, 0xf4, 0x0a, 0x41, 0xb2, 0x17, 0x23, 0x62, 0x9a, 0xe4, 0x5a, 0xef, 0xa3, 0x4a, + 0x12, 0x30, 0x8c, 0x91, 0x4e, 0xd0, 0x51, 0x2d, 0x80, 0xe3, 0xbd, 0xcf, 0x17, 0x3f, 0x03, 0x58, + 0xb3, 0x30, 0xf2, 0x78, 0x30, 0x7e, 0x78, 0x49, 0x95, 0xcc, 0xa3, 0xbb, 0xf8, 0x3b, 0x90, 0x67, + 0xa2, 0xe3, 0xe2, 0xe6, 0x95, 0xf6, 0xf3, 0x77, 0x9b, 0x0c, 0xcd, 0x54, 0xe7, 0x0c, 0x9e, 0xee, + 0x09, 0xec, 0xa5, 0xb7, 0x2b, 0x1a, 0x91, 0xa9, 0x17, 0xcf, 0x56, 0x13, 0xcd, 0xe1, 0x8b, 0x66, + 0x0a, 0x36, 0xd2, 0x67, 0x7f, 0xca, 0x1b, 0x53, 0x16, 0x88, 0x57, 0xb9, 0x79, 0xe8, 0x6f, 0xe3, + 0x9b, 0xad, 0x3d, 0x91, 0x05, 0xf8, 0xe2, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x81, 0x07, 0x34, + 0xd9, 0xc5, 0x06, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/cluster.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/cluster.pbext.go new file mode 100644 index 000000000..c1305d6b8 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/cluster.pbext.go @@ -0,0 +1,91 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package dataproc + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Cluster) SetId(v string) { + m.Id = v +} + +func (m *Cluster) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Cluster) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Cluster) SetName(v string) { + m.Name = v +} + +func (m *Cluster) SetDescription(v string) { + m.Description = v +} + +func (m *Cluster) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *Cluster) SetMonitoring(v []*Monitoring) { + m.Monitoring = v +} + +func (m *Cluster) SetConfig(v *ClusterConfig) { + m.Config = v +} + +func (m *Cluster) SetHealth(v Health) { + m.Health = v +} + +func (m *Cluster) SetStatus(v Cluster_Status) { + m.Status = v +} + +func (m *Cluster) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *Cluster) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *Cluster) SetBucket(v string) { + m.Bucket = v +} + +func (m *Monitoring) SetName(v string) { + m.Name = v +} + +func (m *Monitoring) SetDescription(v string) { + m.Description = v +} + +func (m *Monitoring) SetLink(v string) { + m.Link = v +} + +func (m *HadoopConfig) SetServices(v []HadoopConfig_Service) { + m.Services = v +} + +func (m *HadoopConfig) SetProperties(v map[string]string) { + m.Properties = v +} + +func (m *HadoopConfig) SetSshPublicKeys(v []string) { + m.SshPublicKeys = v +} + +func (m *ClusterConfig) SetVersionId(v string) { + m.VersionId = v +} + +func (m *ClusterConfig) SetHadoop(v *HadoopConfig) { + m.Hadoop = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/cluster_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/cluster_service.pb.go new file mode 100644 index 000000000..8698797c5 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/cluster_service.pb.go @@ -0,0 +1,1783 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/dataproc/v1/cluster_service.proto + +package dataproc + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud/api" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GetClusterRequest struct { + // ID of the Data Proc cluster. + // + // To get a cluster ID make a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetClusterRequest) Reset() { *m = GetClusterRequest{} } +func (m *GetClusterRequest) String() string { return proto.CompactTextString(m) } +func (*GetClusterRequest) ProtoMessage() {} +func (*GetClusterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{0} +} + +func (m *GetClusterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetClusterRequest.Unmarshal(m, b) +} +func (m *GetClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetClusterRequest.Marshal(b, m, deterministic) +} +func (m *GetClusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetClusterRequest.Merge(m, src) +} +func (m *GetClusterRequest) XXX_Size() int { + return xxx_messageInfo_GetClusterRequest.Size(m) +} +func (m *GetClusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetClusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetClusterRequest proto.InternalMessageInfo + +func (m *GetClusterRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +type ListClustersRequest struct { + // ID of the folder to list clusters in. + // + // To get the folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request. + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], the service returns a [ListClustersResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListClustersResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters clusters listed in the response. + // + // The expression must specify: + // 1. The field name. Currently you can use filtering only on [Cluster.name] field. + // 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values. + // 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]. + // Example of a filter: `name=my-cluster`. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListClustersRequest) Reset() { *m = ListClustersRequest{} } +func (m *ListClustersRequest) String() string { return proto.CompactTextString(m) } +func (*ListClustersRequest) ProtoMessage() {} +func (*ListClustersRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{1} +} + +func (m *ListClustersRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListClustersRequest.Unmarshal(m, b) +} +func (m *ListClustersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListClustersRequest.Marshal(b, m, deterministic) +} +func (m *ListClustersRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListClustersRequest.Merge(m, src) +} +func (m *ListClustersRequest) XXX_Size() int { + return xxx_messageInfo_ListClustersRequest.Size(m) +} +func (m *ListClustersRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListClustersRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListClustersRequest proto.InternalMessageInfo + +func (m *ListClustersRequest) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *ListClustersRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListClustersRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +func (m *ListClustersRequest) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +type ListClustersResponse struct { + // List of clusters in the specified folder. + Clusters []*Cluster `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListClustersRequest.page_size], use `next_page_token` as the value + // for the [ListClustersRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListClustersResponse) Reset() { *m = ListClustersResponse{} } +func (m *ListClustersResponse) String() string { return proto.CompactTextString(m) } +func (*ListClustersResponse) ProtoMessage() {} +func (*ListClustersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{2} +} + +func (m *ListClustersResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListClustersResponse.Unmarshal(m, b) +} +func (m *ListClustersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListClustersResponse.Marshal(b, m, deterministic) +} +func (m *ListClustersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListClustersResponse.Merge(m, src) +} +func (m *ListClustersResponse) XXX_Size() int { + return xxx_messageInfo_ListClustersResponse.Size(m) +} +func (m *ListClustersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListClustersResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListClustersResponse proto.InternalMessageInfo + +func (m *ListClustersResponse) GetClusters() []*Cluster { + if m != nil { + return m.Clusters + } + return nil +} + +func (m *ListClustersResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type CreateSubclusterConfigSpec struct { + // Name of the subcluster. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Role of the subcluster in the Data Proc cluster. + Role Role `protobuf:"varint,2,opt,name=role,proto3,enum=yandex.cloud.dataproc.v1.Role" json:"role,omitempty"` + // Resource configuration for hosts in the subcluster. + Resources *Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` + // ID of the VPC subnet used for hosts in the subcluster. + SubnetId string `protobuf:"bytes,4,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` + // Number of hosts in the subcluster. + HostsCount int64 `protobuf:"varint,5,opt,name=hosts_count,json=hostsCount,proto3" json:"hosts_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateSubclusterConfigSpec) Reset() { *m = CreateSubclusterConfigSpec{} } +func (m *CreateSubclusterConfigSpec) String() string { return proto.CompactTextString(m) } +func (*CreateSubclusterConfigSpec) ProtoMessage() {} +func (*CreateSubclusterConfigSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{3} +} + +func (m *CreateSubclusterConfigSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateSubclusterConfigSpec.Unmarshal(m, b) +} +func (m *CreateSubclusterConfigSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateSubclusterConfigSpec.Marshal(b, m, deterministic) +} +func (m *CreateSubclusterConfigSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateSubclusterConfigSpec.Merge(m, src) +} +func (m *CreateSubclusterConfigSpec) XXX_Size() int { + return xxx_messageInfo_CreateSubclusterConfigSpec.Size(m) +} +func (m *CreateSubclusterConfigSpec) XXX_DiscardUnknown() { + xxx_messageInfo_CreateSubclusterConfigSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateSubclusterConfigSpec proto.InternalMessageInfo + +func (m *CreateSubclusterConfigSpec) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *CreateSubclusterConfigSpec) GetRole() Role { + if m != nil { + return m.Role + } + return Role_ROLE_UNSPECIFIED +} + +func (m *CreateSubclusterConfigSpec) GetResources() *Resources { + if m != nil { + return m.Resources + } + return nil +} + +func (m *CreateSubclusterConfigSpec) GetSubnetId() string { + if m != nil { + return m.SubnetId + } + return "" +} + +func (m *CreateSubclusterConfigSpec) GetHostsCount() int64 { + if m != nil { + return m.HostsCount + } + return 0 +} + +type UpdateSubclusterConfigSpec struct { + // ID of the subcluster to update. + // + // To get the subcluster ID make a [SubclusterService.List] request. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Name of the subcluster. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Resource configuration for each host in the subcluster. + Resources *Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` + // Number of hosts in the subcluster. + HostsCount int64 `protobuf:"varint,4,opt,name=hosts_count,json=hostsCount,proto3" json:"hosts_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateSubclusterConfigSpec) Reset() { *m = UpdateSubclusterConfigSpec{} } +func (m *UpdateSubclusterConfigSpec) String() string { return proto.CompactTextString(m) } +func (*UpdateSubclusterConfigSpec) ProtoMessage() {} +func (*UpdateSubclusterConfigSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{4} +} + +func (m *UpdateSubclusterConfigSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateSubclusterConfigSpec.Unmarshal(m, b) +} +func (m *UpdateSubclusterConfigSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateSubclusterConfigSpec.Marshal(b, m, deterministic) +} +func (m *UpdateSubclusterConfigSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateSubclusterConfigSpec.Merge(m, src) +} +func (m *UpdateSubclusterConfigSpec) XXX_Size() int { + return xxx_messageInfo_UpdateSubclusterConfigSpec.Size(m) +} +func (m *UpdateSubclusterConfigSpec) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateSubclusterConfigSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateSubclusterConfigSpec proto.InternalMessageInfo + +func (m *UpdateSubclusterConfigSpec) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *UpdateSubclusterConfigSpec) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *UpdateSubclusterConfigSpec) GetResources() *Resources { + if m != nil { + return m.Resources + } + return nil +} + +func (m *UpdateSubclusterConfigSpec) GetHostsCount() int64 { + if m != nil { + return m.HostsCount + } + return 0 +} + +type CreateClusterConfigSpec struct { + // Version of the image for cluster provisioning. + // + // All available versions are listed in the [documentation](/docs/data-proc/concepts/image-versions). + VersionId string `protobuf:"bytes,1,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` + // Data Proc specific options. + Hadoop *HadoopConfig `protobuf:"bytes,2,opt,name=hadoop,proto3" json:"hadoop,omitempty"` + // Specification for creating subclusters. + SubclustersSpec []*CreateSubclusterConfigSpec `protobuf:"bytes,3,rep,name=subclusters_spec,json=subclustersSpec,proto3" json:"subclusters_spec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateClusterConfigSpec) Reset() { *m = CreateClusterConfigSpec{} } +func (m *CreateClusterConfigSpec) String() string { return proto.CompactTextString(m) } +func (*CreateClusterConfigSpec) ProtoMessage() {} +func (*CreateClusterConfigSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{5} +} + +func (m *CreateClusterConfigSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateClusterConfigSpec.Unmarshal(m, b) +} +func (m *CreateClusterConfigSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateClusterConfigSpec.Marshal(b, m, deterministic) +} +func (m *CreateClusterConfigSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateClusterConfigSpec.Merge(m, src) +} +func (m *CreateClusterConfigSpec) XXX_Size() int { + return xxx_messageInfo_CreateClusterConfigSpec.Size(m) +} +func (m *CreateClusterConfigSpec) XXX_DiscardUnknown() { + xxx_messageInfo_CreateClusterConfigSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateClusterConfigSpec proto.InternalMessageInfo + +func (m *CreateClusterConfigSpec) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +func (m *CreateClusterConfigSpec) GetHadoop() *HadoopConfig { + if m != nil { + return m.Hadoop + } + return nil +} + +func (m *CreateClusterConfigSpec) GetSubclustersSpec() []*CreateSubclusterConfigSpec { + if m != nil { + return m.SubclustersSpec + } + return nil +} + +type UpdateClusterConfigSpec struct { + // New configuration for subclusters in a cluster. + SubclustersSpec []*UpdateSubclusterConfigSpec `protobuf:"bytes,1,rep,name=subclusters_spec,json=subclustersSpec,proto3" json:"subclusters_spec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateClusterConfigSpec) Reset() { *m = UpdateClusterConfigSpec{} } +func (m *UpdateClusterConfigSpec) String() string { return proto.CompactTextString(m) } +func (*UpdateClusterConfigSpec) ProtoMessage() {} +func (*UpdateClusterConfigSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{6} +} + +func (m *UpdateClusterConfigSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateClusterConfigSpec.Unmarshal(m, b) +} +func (m *UpdateClusterConfigSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateClusterConfigSpec.Marshal(b, m, deterministic) +} +func (m *UpdateClusterConfigSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateClusterConfigSpec.Merge(m, src) +} +func (m *UpdateClusterConfigSpec) XXX_Size() int { + return xxx_messageInfo_UpdateClusterConfigSpec.Size(m) +} +func (m *UpdateClusterConfigSpec) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateClusterConfigSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateClusterConfigSpec proto.InternalMessageInfo + +func (m *UpdateClusterConfigSpec) GetSubclustersSpec() []*UpdateSubclusterConfigSpec { + if m != nil { + return m.SubclustersSpec + } + return nil +} + +type CreateClusterRequest struct { + // ID of the folder to create a cluster in. + // + // To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request. + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // Name of the cluster. The name must be unique within the folder. + // The name can’t be changed after the Data Proc cluster is created. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Description of the cluster. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // Cluster labels as `key:value` pairs. + Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Configuration and resources for hosts that should be created with the cluster. + ConfigSpec *CreateClusterConfigSpec `protobuf:"bytes,6,opt,name=config_spec,json=configSpec,proto3" json:"config_spec,omitempty"` + // ID of the availability zone where the cluster should be placed. + // + // To get the list of available zones make a [yandex.cloud.compute.v1.ZoneService.List] request. + ZoneId string `protobuf:"bytes,7,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"` + // ID of the service account to be used by the Data Proc manager agent. + ServiceAccountId string `protobuf:"bytes,8,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + // Name of the Object Storage bucket to use for Data Proc jobs. + Bucket string `protobuf:"bytes,9,opt,name=bucket,proto3" json:"bucket,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateClusterRequest) Reset() { *m = CreateClusterRequest{} } +func (m *CreateClusterRequest) String() string { return proto.CompactTextString(m) } +func (*CreateClusterRequest) ProtoMessage() {} +func (*CreateClusterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{7} +} + +func (m *CreateClusterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateClusterRequest.Unmarshal(m, b) +} +func (m *CreateClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateClusterRequest.Marshal(b, m, deterministic) +} +func (m *CreateClusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateClusterRequest.Merge(m, src) +} +func (m *CreateClusterRequest) XXX_Size() int { + return xxx_messageInfo_CreateClusterRequest.Size(m) +} +func (m *CreateClusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateClusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateClusterRequest proto.InternalMessageInfo + +func (m *CreateClusterRequest) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *CreateClusterRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *CreateClusterRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *CreateClusterRequest) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *CreateClusterRequest) GetConfigSpec() *CreateClusterConfigSpec { + if m != nil { + return m.ConfigSpec + } + return nil +} + +func (m *CreateClusterRequest) GetZoneId() string { + if m != nil { + return m.ZoneId + } + return "" +} + +func (m *CreateClusterRequest) GetServiceAccountId() string { + if m != nil { + return m.ServiceAccountId + } + return "" +} + +func (m *CreateClusterRequest) GetBucket() string { + if m != nil { + return m.Bucket + } + return "" +} + +type CreateClusterMetadata struct { + // ID of the cluster that is being created. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateClusterMetadata) Reset() { *m = CreateClusterMetadata{} } +func (m *CreateClusterMetadata) String() string { return proto.CompactTextString(m) } +func (*CreateClusterMetadata) ProtoMessage() {} +func (*CreateClusterMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{8} +} + +func (m *CreateClusterMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateClusterMetadata.Unmarshal(m, b) +} +func (m *CreateClusterMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateClusterMetadata.Marshal(b, m, deterministic) +} +func (m *CreateClusterMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateClusterMetadata.Merge(m, src) +} +func (m *CreateClusterMetadata) XXX_Size() int { + return xxx_messageInfo_CreateClusterMetadata.Size(m) +} +func (m *CreateClusterMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CreateClusterMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateClusterMetadata proto.InternalMessageInfo + +func (m *CreateClusterMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +type UpdateClusterRequest struct { + // ID of the cluster to update. + // + // To get the cluster ID, make a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Field mask that specifies which attributes of the cluster should be updated. + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // New description for the cluster. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // A new set of cluster labels as `key:value` pairs. + Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Configuration and resources for hosts that should be created with the Data Proc cluster. + ConfigSpec *UpdateClusterConfigSpec `protobuf:"bytes,5,opt,name=config_spec,json=configSpec,proto3" json:"config_spec,omitempty"` + // New name for the Data Proc cluster. The name must be unique within the folder. + Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` + // ID of the new service account to be used by the Data Proc manager agent. + ServiceAccountId string `protobuf:"bytes,7,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + // Name of the new Object Storage bucket to use for Data Proc jobs. + Bucket string `protobuf:"bytes,8,opt,name=bucket,proto3" json:"bucket,omitempty"` + // Timeout to gracefully decommission nodes. In seconds. Default value: 0 + DecommissionTimeout int64 `protobuf:"varint,9,opt,name=decommission_timeout,json=decommissionTimeout,proto3" json:"decommission_timeout,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateClusterRequest) Reset() { *m = UpdateClusterRequest{} } +func (m *UpdateClusterRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateClusterRequest) ProtoMessage() {} +func (*UpdateClusterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{9} +} + +func (m *UpdateClusterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateClusterRequest.Unmarshal(m, b) +} +func (m *UpdateClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateClusterRequest.Marshal(b, m, deterministic) +} +func (m *UpdateClusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateClusterRequest.Merge(m, src) +} +func (m *UpdateClusterRequest) XXX_Size() int { + return xxx_messageInfo_UpdateClusterRequest.Size(m) +} +func (m *UpdateClusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateClusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateClusterRequest proto.InternalMessageInfo + +func (m *UpdateClusterRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *UpdateClusterRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdateClusterRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *UpdateClusterRequest) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *UpdateClusterRequest) GetConfigSpec() *UpdateClusterConfigSpec { + if m != nil { + return m.ConfigSpec + } + return nil +} + +func (m *UpdateClusterRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *UpdateClusterRequest) GetServiceAccountId() string { + if m != nil { + return m.ServiceAccountId + } + return "" +} + +func (m *UpdateClusterRequest) GetBucket() string { + if m != nil { + return m.Bucket + } + return "" +} + +func (m *UpdateClusterRequest) GetDecommissionTimeout() int64 { + if m != nil { + return m.DecommissionTimeout + } + return 0 +} + +type UpdateClusterMetadata struct { + // ID of the cluster that is being updated. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateClusterMetadata) Reset() { *m = UpdateClusterMetadata{} } +func (m *UpdateClusterMetadata) String() string { return proto.CompactTextString(m) } +func (*UpdateClusterMetadata) ProtoMessage() {} +func (*UpdateClusterMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{10} +} + +func (m *UpdateClusterMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateClusterMetadata.Unmarshal(m, b) +} +func (m *UpdateClusterMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateClusterMetadata.Marshal(b, m, deterministic) +} +func (m *UpdateClusterMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateClusterMetadata.Merge(m, src) +} +func (m *UpdateClusterMetadata) XXX_Size() int { + return xxx_messageInfo_UpdateClusterMetadata.Size(m) +} +func (m *UpdateClusterMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateClusterMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateClusterMetadata proto.InternalMessageInfo + +func (m *UpdateClusterMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +type DeleteClusterRequest struct { + // ID of the cluster to delete. + // + // To get a cluster ID, make a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Timeout to gracefully decommission nodes. In seconds. Default value: 0 + DecommissionTimeout int64 `protobuf:"varint,2,opt,name=decommission_timeout,json=decommissionTimeout,proto3" json:"decommission_timeout,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteClusterRequest) Reset() { *m = DeleteClusterRequest{} } +func (m *DeleteClusterRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteClusterRequest) ProtoMessage() {} +func (*DeleteClusterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{11} +} + +func (m *DeleteClusterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteClusterRequest.Unmarshal(m, b) +} +func (m *DeleteClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteClusterRequest.Marshal(b, m, deterministic) +} +func (m *DeleteClusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteClusterRequest.Merge(m, src) +} +func (m *DeleteClusterRequest) XXX_Size() int { + return xxx_messageInfo_DeleteClusterRequest.Size(m) +} +func (m *DeleteClusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteClusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteClusterRequest proto.InternalMessageInfo + +func (m *DeleteClusterRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *DeleteClusterRequest) GetDecommissionTimeout() int64 { + if m != nil { + return m.DecommissionTimeout + } + return 0 +} + +type DeleteClusterMetadata struct { + // ID of the Data Proc cluster that is being deleted. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteClusterMetadata) Reset() { *m = DeleteClusterMetadata{} } +func (m *DeleteClusterMetadata) String() string { return proto.CompactTextString(m) } +func (*DeleteClusterMetadata) ProtoMessage() {} +func (*DeleteClusterMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{12} +} + +func (m *DeleteClusterMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteClusterMetadata.Unmarshal(m, b) +} +func (m *DeleteClusterMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteClusterMetadata.Marshal(b, m, deterministic) +} +func (m *DeleteClusterMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteClusterMetadata.Merge(m, src) +} +func (m *DeleteClusterMetadata) XXX_Size() int { + return xxx_messageInfo_DeleteClusterMetadata.Size(m) +} +func (m *DeleteClusterMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteClusterMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteClusterMetadata proto.InternalMessageInfo + +func (m *DeleteClusterMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +type StartClusterRequest struct { + // ID of the cluster to start. + // + // To get a cluster ID, make a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StartClusterRequest) Reset() { *m = StartClusterRequest{} } +func (m *StartClusterRequest) String() string { return proto.CompactTextString(m) } +func (*StartClusterRequest) ProtoMessage() {} +func (*StartClusterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{13} +} + +func (m *StartClusterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StartClusterRequest.Unmarshal(m, b) +} +func (m *StartClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StartClusterRequest.Marshal(b, m, deterministic) +} +func (m *StartClusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartClusterRequest.Merge(m, src) +} +func (m *StartClusterRequest) XXX_Size() int { + return xxx_messageInfo_StartClusterRequest.Size(m) +} +func (m *StartClusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StartClusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StartClusterRequest proto.InternalMessageInfo + +func (m *StartClusterRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +type StartClusterMetadata struct { + // ID of the Data Proc cluster that is being started. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StartClusterMetadata) Reset() { *m = StartClusterMetadata{} } +func (m *StartClusterMetadata) String() string { return proto.CompactTextString(m) } +func (*StartClusterMetadata) ProtoMessage() {} +func (*StartClusterMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{14} +} + +func (m *StartClusterMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StartClusterMetadata.Unmarshal(m, b) +} +func (m *StartClusterMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StartClusterMetadata.Marshal(b, m, deterministic) +} +func (m *StartClusterMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartClusterMetadata.Merge(m, src) +} +func (m *StartClusterMetadata) XXX_Size() int { + return xxx_messageInfo_StartClusterMetadata.Size(m) +} +func (m *StartClusterMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_StartClusterMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_StartClusterMetadata proto.InternalMessageInfo + +func (m *StartClusterMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +type StopClusterRequest struct { + // ID of the cluster to stop. + // + // To get a cluster ID, make a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Timeout to gracefully decommission nodes. In seconds. Default value: 0 + DecommissionTimeout int64 `protobuf:"varint,2,opt,name=decommission_timeout,json=decommissionTimeout,proto3" json:"decommission_timeout,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StopClusterRequest) Reset() { *m = StopClusterRequest{} } +func (m *StopClusterRequest) String() string { return proto.CompactTextString(m) } +func (*StopClusterRequest) ProtoMessage() {} +func (*StopClusterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{15} +} + +func (m *StopClusterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopClusterRequest.Unmarshal(m, b) +} +func (m *StopClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopClusterRequest.Marshal(b, m, deterministic) +} +func (m *StopClusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopClusterRequest.Merge(m, src) +} +func (m *StopClusterRequest) XXX_Size() int { + return xxx_messageInfo_StopClusterRequest.Size(m) +} +func (m *StopClusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StopClusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StopClusterRequest proto.InternalMessageInfo + +func (m *StopClusterRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *StopClusterRequest) GetDecommissionTimeout() int64 { + if m != nil { + return m.DecommissionTimeout + } + return 0 +} + +type StopClusterMetadata struct { + // ID of the Data Proc cluster that is being stopped. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StopClusterMetadata) Reset() { *m = StopClusterMetadata{} } +func (m *StopClusterMetadata) String() string { return proto.CompactTextString(m) } +func (*StopClusterMetadata) ProtoMessage() {} +func (*StopClusterMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{16} +} + +func (m *StopClusterMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopClusterMetadata.Unmarshal(m, b) +} +func (m *StopClusterMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopClusterMetadata.Marshal(b, m, deterministic) +} +func (m *StopClusterMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopClusterMetadata.Merge(m, src) +} +func (m *StopClusterMetadata) XXX_Size() int { + return xxx_messageInfo_StopClusterMetadata.Size(m) +} +func (m *StopClusterMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_StopClusterMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_StopClusterMetadata proto.InternalMessageInfo + +func (m *StopClusterMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +type ListClusterOperationsRequest struct { + // ID of the cluster to list operations for. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], the service returns a [ListClusterOperationsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set [page_token] to the + // [ListClusterOperationsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListClusterOperationsRequest) Reset() { *m = ListClusterOperationsRequest{} } +func (m *ListClusterOperationsRequest) String() string { return proto.CompactTextString(m) } +func (*ListClusterOperationsRequest) ProtoMessage() {} +func (*ListClusterOperationsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{17} +} + +func (m *ListClusterOperationsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListClusterOperationsRequest.Unmarshal(m, b) +} +func (m *ListClusterOperationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListClusterOperationsRequest.Marshal(b, m, deterministic) +} +func (m *ListClusterOperationsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListClusterOperationsRequest.Merge(m, src) +} +func (m *ListClusterOperationsRequest) XXX_Size() int { + return xxx_messageInfo_ListClusterOperationsRequest.Size(m) +} +func (m *ListClusterOperationsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListClusterOperationsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListClusterOperationsRequest proto.InternalMessageInfo + +func (m *ListClusterOperationsRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *ListClusterOperationsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListClusterOperationsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListClusterOperationsResponse struct { + // List of operations for the specified cluster. + Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListClusterOperationsRequest.page_size], use `next_page_token` as the value + // for the [ListClusterOperationsRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListClusterOperationsResponse) Reset() { *m = ListClusterOperationsResponse{} } +func (m *ListClusterOperationsResponse) String() string { return proto.CompactTextString(m) } +func (*ListClusterOperationsResponse) ProtoMessage() {} +func (*ListClusterOperationsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{18} +} + +func (m *ListClusterOperationsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListClusterOperationsResponse.Unmarshal(m, b) +} +func (m *ListClusterOperationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListClusterOperationsResponse.Marshal(b, m, deterministic) +} +func (m *ListClusterOperationsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListClusterOperationsResponse.Merge(m, src) +} +func (m *ListClusterOperationsResponse) XXX_Size() int { + return xxx_messageInfo_ListClusterOperationsResponse.Size(m) +} +func (m *ListClusterOperationsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListClusterOperationsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListClusterOperationsResponse proto.InternalMessageInfo + +func (m *ListClusterOperationsResponse) GetOperations() []*operation.Operation { + if m != nil { + return m.Operations + } + return nil +} + +func (m *ListClusterOperationsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type ListClusterHostsRequest struct { + // ID of the cluster to list hosts for. + // + // To get a cluster ID, make a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], the service returns a [ListClusterHostsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set [page_token] to the + // [ListClusterHostsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters hosts listed in the response. + // + // The expression must specify: + // 1. The field name. Currently you can use filtering only on [Cluster.name] field. + // 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values. + // 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]. + // Example of a filter: `name=my-host` + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListClusterHostsRequest) Reset() { *m = ListClusterHostsRequest{} } +func (m *ListClusterHostsRequest) String() string { return proto.CompactTextString(m) } +func (*ListClusterHostsRequest) ProtoMessage() {} +func (*ListClusterHostsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{19} +} + +func (m *ListClusterHostsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListClusterHostsRequest.Unmarshal(m, b) +} +func (m *ListClusterHostsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListClusterHostsRequest.Marshal(b, m, deterministic) +} +func (m *ListClusterHostsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListClusterHostsRequest.Merge(m, src) +} +func (m *ListClusterHostsRequest) XXX_Size() int { + return xxx_messageInfo_ListClusterHostsRequest.Size(m) +} +func (m *ListClusterHostsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListClusterHostsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListClusterHostsRequest proto.InternalMessageInfo + +func (m *ListClusterHostsRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *ListClusterHostsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListClusterHostsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +func (m *ListClusterHostsRequest) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +type ListClusterHostsResponse struct { + // Requested list of hosts. + Hosts []*Host `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListClusterHostsRequest.page_size], use `next_page_token` as the value + // for the [ListClusterHostsRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListClusterHostsResponse) Reset() { *m = ListClusterHostsResponse{} } +func (m *ListClusterHostsResponse) String() string { return proto.CompactTextString(m) } +func (*ListClusterHostsResponse) ProtoMessage() {} +func (*ListClusterHostsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4ad91aa83e9eb1c4, []int{20} +} + +func (m *ListClusterHostsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListClusterHostsResponse.Unmarshal(m, b) +} +func (m *ListClusterHostsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListClusterHostsResponse.Marshal(b, m, deterministic) +} +func (m *ListClusterHostsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListClusterHostsResponse.Merge(m, src) +} +func (m *ListClusterHostsResponse) XXX_Size() int { + return xxx_messageInfo_ListClusterHostsResponse.Size(m) +} +func (m *ListClusterHostsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListClusterHostsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListClusterHostsResponse proto.InternalMessageInfo + +func (m *ListClusterHostsResponse) GetHosts() []*Host { + if m != nil { + return m.Hosts + } + return nil +} + +func (m *ListClusterHostsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +func init() { + proto.RegisterType((*GetClusterRequest)(nil), "yandex.cloud.dataproc.v1.GetClusterRequest") + proto.RegisterType((*ListClustersRequest)(nil), "yandex.cloud.dataproc.v1.ListClustersRequest") + proto.RegisterType((*ListClustersResponse)(nil), "yandex.cloud.dataproc.v1.ListClustersResponse") + proto.RegisterType((*CreateSubclusterConfigSpec)(nil), "yandex.cloud.dataproc.v1.CreateSubclusterConfigSpec") + proto.RegisterType((*UpdateSubclusterConfigSpec)(nil), "yandex.cloud.dataproc.v1.UpdateSubclusterConfigSpec") + proto.RegisterType((*CreateClusterConfigSpec)(nil), "yandex.cloud.dataproc.v1.CreateClusterConfigSpec") + proto.RegisterType((*UpdateClusterConfigSpec)(nil), "yandex.cloud.dataproc.v1.UpdateClusterConfigSpec") + proto.RegisterType((*CreateClusterRequest)(nil), "yandex.cloud.dataproc.v1.CreateClusterRequest") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.dataproc.v1.CreateClusterRequest.LabelsEntry") + proto.RegisterType((*CreateClusterMetadata)(nil), "yandex.cloud.dataproc.v1.CreateClusterMetadata") + proto.RegisterType((*UpdateClusterRequest)(nil), "yandex.cloud.dataproc.v1.UpdateClusterRequest") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.dataproc.v1.UpdateClusterRequest.LabelsEntry") + proto.RegisterType((*UpdateClusterMetadata)(nil), "yandex.cloud.dataproc.v1.UpdateClusterMetadata") + proto.RegisterType((*DeleteClusterRequest)(nil), "yandex.cloud.dataproc.v1.DeleteClusterRequest") + proto.RegisterType((*DeleteClusterMetadata)(nil), "yandex.cloud.dataproc.v1.DeleteClusterMetadata") + proto.RegisterType((*StartClusterRequest)(nil), "yandex.cloud.dataproc.v1.StartClusterRequest") + proto.RegisterType((*StartClusterMetadata)(nil), "yandex.cloud.dataproc.v1.StartClusterMetadata") + proto.RegisterType((*StopClusterRequest)(nil), "yandex.cloud.dataproc.v1.StopClusterRequest") + proto.RegisterType((*StopClusterMetadata)(nil), "yandex.cloud.dataproc.v1.StopClusterMetadata") + proto.RegisterType((*ListClusterOperationsRequest)(nil), "yandex.cloud.dataproc.v1.ListClusterOperationsRequest") + proto.RegisterType((*ListClusterOperationsResponse)(nil), "yandex.cloud.dataproc.v1.ListClusterOperationsResponse") + proto.RegisterType((*ListClusterHostsRequest)(nil), "yandex.cloud.dataproc.v1.ListClusterHostsRequest") + proto.RegisterType((*ListClusterHostsResponse)(nil), "yandex.cloud.dataproc.v1.ListClusterHostsResponse") +} + +func init() { + proto.RegisterFile("yandex/cloud/dataproc/v1/cluster_service.proto", fileDescriptor_4ad91aa83e9eb1c4) +} + +var fileDescriptor_4ad91aa83e9eb1c4 = []byte{ + // 1549 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x4d, 0x4c, 0xdc, 0xd6, + 0x16, 0x96, 0x67, 0x86, 0x81, 0x39, 0xf3, 0x1e, 0xe1, 0xdd, 0x90, 0xc7, 0x68, 0x14, 0xf2, 0x88, + 0x5f, 0x13, 0xc8, 0x84, 0xf1, 0x8c, 0x27, 0x40, 0xf3, 0x47, 0xda, 0x40, 0xd2, 0x04, 0x29, 0x51, + 0x5b, 0x93, 0x4a, 0x55, 0x69, 0x34, 0x32, 0xf6, 0x85, 0x58, 0x0c, 0xbe, 0xae, 0xed, 0x41, 0x81, + 0x34, 0x8b, 0xa4, 0x5d, 0xd1, 0x65, 0xf6, 0x95, 0x2a, 0x75, 0xdb, 0x54, 0x62, 0xd3, 0x66, 0xdd, + 0x05, 0x2c, 0x2b, 0xba, 0xea, 0xbe, 0x8b, 0xee, 0x2a, 0x65, 0x99, 0x55, 0x75, 0x7f, 0x66, 0xc6, + 0x06, 0x7b, 0x30, 0xa4, 0x51, 0x76, 0xb6, 0xcf, 0xcf, 0xfd, 0xce, 0x39, 0xdf, 0xbd, 0xe7, 0x5c, + 0x83, 0xb2, 0xae, 0xdb, 0x26, 0x7e, 0x58, 0x31, 0x1a, 0xa4, 0x69, 0x56, 0x4c, 0xdd, 0xd7, 0x1d, + 0x97, 0x18, 0x95, 0x35, 0xb5, 0x62, 0x34, 0x9a, 0x9e, 0x8f, 0xdd, 0xba, 0x87, 0xdd, 0x35, 0xcb, + 0xc0, 0x8a, 0xe3, 0x12, 0x9f, 0xa0, 0x02, 0xd7, 0x57, 0x98, 0xbe, 0xd2, 0xd2, 0x57, 0xd6, 0xd4, + 0xe2, 0xc9, 0x65, 0x42, 0x96, 0x1b, 0xb8, 0xa2, 0x3b, 0x56, 0x45, 0xb7, 0x6d, 0xe2, 0xeb, 0xbe, + 0x45, 0x6c, 0x8f, 0xdb, 0x15, 0x47, 0x84, 0x94,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 0x25, 0xc8, 0x51, 0xc7, 0xec, 0xf8, 0x46, 0x6a, 0xa2, 0xd5, + 0x83, 0x5d, 0xaa, 0x58, 0x3b, 0x8c, 0x89, 0xc0, 0x5a, 0xe5, 0x8c, 0x40, 0x09, 0x18, 0x51, 0x61, + 0x9d, 0x61, 0x06, 0xc3, 0xc9, 0xd0, 0x32, 0xba, 0x63, 0x05, 0x97, 0xfa, 0xec, 0xe6, 0xb2, 0xe5, + 0x3f, 0x68, 0x2e, 0x2a, 0x06, 0x59, 0xad, 0x70, 0xc5, 0x32, 0xff, 0x63, 0xb9, 0x4c, 0xca, 0xcb, + 0xd8, 0x66, 0x5b, 0xa7, 0x12, 0xf7, 0xf3, 0xf4, 0x4a, 0xeb, 0x79, 0x31, 0xcb, 0x14, 0x2f, 0xfc, + 0x1d, 0x00, 0x00, 0xff, 0xff, 0x4c, 0x43, 0x10, 0x6f, 0x41, 0x16, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ClusterServiceClient is the client API for ClusterService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ClusterServiceClient interface { + // Returns the specified cluster. + // + // To get the list of all available clusters, make a [ClusterService.List] request. + Get(ctx context.Context, in *GetClusterRequest, opts ...grpc.CallOption) (*Cluster, error) + // Retrieves the list of clusters in the specified folder. + List(ctx context.Context, in *ListClustersRequest, opts ...grpc.CallOption) (*ListClustersResponse, error) + // Creates a cluster in the specified folder. + Create(ctx context.Context, in *CreateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Updates the configuration of the specified cluster. + Update(ctx context.Context, in *UpdateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Deletes the specified cluster. + Delete(ctx context.Context, in *DeleteClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Starts the specified cluster. + Start(ctx context.Context, in *StartClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Stops the specified cluster. + Stop(ctx context.Context, in *StopClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Lists operations for the specified cluster. + ListOperations(ctx context.Context, in *ListClusterOperationsRequest, opts ...grpc.CallOption) (*ListClusterOperationsResponse, error) + // Retrieves the list of hosts in the specified cluster. + ListHosts(ctx context.Context, in *ListClusterHostsRequest, opts ...grpc.CallOption) (*ListClusterHostsResponse, error) +} + +type clusterServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewClusterServiceClient(cc grpc.ClientConnInterface) ClusterServiceClient { + return &clusterServiceClient{cc} +} + +func (c *clusterServiceClient) Get(ctx context.Context, in *GetClusterRequest, opts ...grpc.CallOption) (*Cluster, error) { + out := new(Cluster) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.ClusterService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) List(ctx context.Context, in *ListClustersRequest, opts ...grpc.CallOption) (*ListClustersResponse, error) { + out := new(ListClustersResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.ClusterService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) Create(ctx context.Context, in *CreateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.ClusterService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) Update(ctx context.Context, in *UpdateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.ClusterService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) Delete(ctx context.Context, in *DeleteClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.ClusterService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) Start(ctx context.Context, in *StartClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.ClusterService/Start", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) Stop(ctx context.Context, in *StopClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.ClusterService/Stop", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) ListOperations(ctx context.Context, in *ListClusterOperationsRequest, opts ...grpc.CallOption) (*ListClusterOperationsResponse, error) { + out := new(ListClusterOperationsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.ClusterService/ListOperations", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) ListHosts(ctx context.Context, in *ListClusterHostsRequest, opts ...grpc.CallOption) (*ListClusterHostsResponse, error) { + out := new(ListClusterHostsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.ClusterService/ListHosts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ClusterServiceServer is the server API for ClusterService service. +type ClusterServiceServer interface { + // Returns the specified cluster. + // + // To get the list of all available clusters, make a [ClusterService.List] request. + Get(context.Context, *GetClusterRequest) (*Cluster, error) + // Retrieves the list of clusters in the specified folder. + List(context.Context, *ListClustersRequest) (*ListClustersResponse, error) + // Creates a cluster in the specified folder. + Create(context.Context, *CreateClusterRequest) (*operation.Operation, error) + // Updates the configuration of the specified cluster. + Update(context.Context, *UpdateClusterRequest) (*operation.Operation, error) + // Deletes the specified cluster. + Delete(context.Context, *DeleteClusterRequest) (*operation.Operation, error) + // Starts the specified cluster. + Start(context.Context, *StartClusterRequest) (*operation.Operation, error) + // Stops the specified cluster. + Stop(context.Context, *StopClusterRequest) (*operation.Operation, error) + // Lists operations for the specified cluster. + ListOperations(context.Context, *ListClusterOperationsRequest) (*ListClusterOperationsResponse, error) + // Retrieves the list of hosts in the specified cluster. + ListHosts(context.Context, *ListClusterHostsRequest) (*ListClusterHostsResponse, error) +} + +// UnimplementedClusterServiceServer can be embedded to have forward compatible implementations. +type UnimplementedClusterServiceServer struct { +} + +func (*UnimplementedClusterServiceServer) Get(ctx context.Context, req *GetClusterRequest) (*Cluster, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedClusterServiceServer) List(ctx context.Context, req *ListClustersRequest) (*ListClustersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (*UnimplementedClusterServiceServer) Create(ctx context.Context, req *CreateClusterRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (*UnimplementedClusterServiceServer) Update(ctx context.Context, req *UpdateClusterRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedClusterServiceServer) Delete(ctx context.Context, req *DeleteClusterRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (*UnimplementedClusterServiceServer) Start(ctx context.Context, req *StartClusterRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Start not implemented") +} +func (*UnimplementedClusterServiceServer) Stop(ctx context.Context, req *StopClusterRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Stop not implemented") +} +func (*UnimplementedClusterServiceServer) ListOperations(ctx context.Context, req *ListClusterOperationsRequest) (*ListClusterOperationsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") +} +func (*UnimplementedClusterServiceServer) ListHosts(ctx context.Context, req *ListClusterHostsRequest) (*ListClusterHostsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListHosts not implemented") +} + +func RegisterClusterServiceServer(s *grpc.Server, srv ClusterServiceServer) { + s.RegisterService(&_ClusterService_serviceDesc, srv) +} + +func _ClusterService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetClusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.ClusterService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).Get(ctx, req.(*GetClusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListClustersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.ClusterService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).List(ctx, req.(*ListClustersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateClusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.ClusterService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).Create(ctx, req.(*CreateClusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateClusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.ClusterService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).Update(ctx, req.(*UpdateClusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteClusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.ClusterService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).Delete(ctx, req.(*DeleteClusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StartClusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).Start(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.ClusterService/Start", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).Start(ctx, req.(*StartClusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StopClusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).Stop(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.ClusterService/Stop", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).Stop(ctx, req.(*StopClusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListClusterOperationsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).ListOperations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.ClusterService/ListOperations", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).ListOperations(ctx, req.(*ListClusterOperationsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_ListHosts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListClusterHostsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).ListHosts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.ClusterService/ListHosts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).ListHosts(ctx, req.(*ListClusterHostsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ClusterService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.dataproc.v1.ClusterService", + HandlerType: (*ClusterServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Get", + Handler: _ClusterService_Get_Handler, + }, + { + MethodName: "List", + Handler: _ClusterService_List_Handler, + }, + { + MethodName: "Create", + Handler: _ClusterService_Create_Handler, + }, + { + MethodName: "Update", + Handler: _ClusterService_Update_Handler, + }, + { + MethodName: "Delete", + Handler: _ClusterService_Delete_Handler, + }, + { + MethodName: "Start", + Handler: _ClusterService_Start_Handler, + }, + { + MethodName: "Stop", + Handler: _ClusterService_Stop_Handler, + }, + { + MethodName: "ListOperations", + Handler: _ClusterService_ListOperations_Handler, + }, + { + MethodName: "ListHosts", + Handler: _ClusterService_ListHosts_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/dataproc/v1/cluster_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/cluster_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/cluster_service.pbext.go new file mode 100644 index 000000000..37a1821c7 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/cluster_service.pbext.go @@ -0,0 +1,240 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package dataproc + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClustersRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListClustersRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClustersRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClustersRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListClustersResponse) SetClusters(v []*Cluster) { + m.Clusters = v +} + +func (m *ListClustersResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateSubclusterConfigSpec) SetName(v string) { + m.Name = v +} + +func (m *CreateSubclusterConfigSpec) SetRole(v Role) { + m.Role = v +} + +func (m *CreateSubclusterConfigSpec) SetResources(v *Resources) { + m.Resources = v +} + +func (m *CreateSubclusterConfigSpec) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *CreateSubclusterConfigSpec) SetHostsCount(v int64) { + m.HostsCount = v +} + +func (m *UpdateSubclusterConfigSpec) SetId(v string) { + m.Id = v +} + +func (m *UpdateSubclusterConfigSpec) SetName(v string) { + m.Name = v +} + +func (m *UpdateSubclusterConfigSpec) SetResources(v *Resources) { + m.Resources = v +} + +func (m *UpdateSubclusterConfigSpec) SetHostsCount(v int64) { + m.HostsCount = v +} + +func (m *CreateClusterConfigSpec) SetVersionId(v string) { + m.VersionId = v +} + +func (m *CreateClusterConfigSpec) SetHadoop(v *HadoopConfig) { + m.Hadoop = v +} + +func (m *CreateClusterConfigSpec) SetSubclustersSpec(v []*CreateSubclusterConfigSpec) { + m.SubclustersSpec = v +} + +func (m *UpdateClusterConfigSpec) SetSubclustersSpec(v []*UpdateSubclusterConfigSpec) { + m.SubclustersSpec = v +} + +func (m *CreateClusterRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateClusterRequest) SetConfigSpec(v *CreateClusterConfigSpec) { + m.ConfigSpec = v +} + +func (m *CreateClusterRequest) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *CreateClusterRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *CreateClusterRequest) SetBucket(v string) { + m.Bucket = v +} + +func (m *CreateClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateClusterRequest) SetConfigSpec(v *UpdateClusterConfigSpec) { + m.ConfigSpec = v +} + +func (m *UpdateClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateClusterRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *UpdateClusterRequest) SetBucket(v string) { + m.Bucket = v +} + +func (m *UpdateClusterRequest) SetDecommissionTimeout(v int64) { + m.DecommissionTimeout = v +} + +func (m *UpdateClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterRequest) SetDecommissionTimeout(v int64) { + m.DecommissionTimeout = v +} + +func (m *DeleteClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StartClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StartClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StopClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StopClusterRequest) SetDecommissionTimeout(v int64) { + m.DecommissionTimeout = v +} + +func (m *StopClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterOperationsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListClusterOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterHostsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterHostsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterHostsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListClusterHostsResponse) SetHosts(v []*Host) { + m.Hosts = v +} + +func (m *ListClusterHostsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/common.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/common.pb.go new file mode 100644 index 000000000..659d0e9d3 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/common.pb.go @@ -0,0 +1,149 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/dataproc/v1/common.proto + +package dataproc + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Health int32 + +const ( + // State of the cluster is unknown ([Host.health] for every host in the cluster is UNKNOWN). + Health_HEALTH_UNKNOWN Health = 0 + // Cluster is alive and well ([Host.health] for every host in the cluster is ALIVE). + Health_ALIVE Health = 1 + // Cluster is inoperable ([Host.health] for every host in the cluster is DEAD). + Health_DEAD Health = 2 + // Cluster is working below capacity ([Host.health] for at least one host in the cluster is not ALIVE). + Health_DEGRADED Health = 3 +) + +var Health_name = map[int32]string{ + 0: "HEALTH_UNKNOWN", + 1: "ALIVE", + 2: "DEAD", + 3: "DEGRADED", +} + +var Health_value = map[string]int32{ + "HEALTH_UNKNOWN": 0, + "ALIVE": 1, + "DEAD": 2, + "DEGRADED": 3, +} + +func (x Health) String() string { + return proto.EnumName(Health_name, int32(x)) +} + +func (Health) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_9d76f8f9214f9e4c, []int{0} +} + +type Resources struct { + // ID of the resource preset for computational resources available to a host (CPU, memory etc.). + // All available presets are listed in the [documentation](/docs/data-proc/concepts/instance-types). + ResourcePresetId string `protobuf:"bytes,1,opt,name=resource_preset_id,json=resourcePresetId,proto3" json:"resource_preset_id,omitempty"` + // Type of the storage environment for the host. + // Possible values: + // * network-hdd — network HDD drive, + // * network-ssd — network SSD drive. + DiskTypeId string `protobuf:"bytes,2,opt,name=disk_type_id,json=diskTypeId,proto3" json:"disk_type_id,omitempty"` + // Volume of the storage available to a host, in bytes. + DiskSize int64 `protobuf:"varint,3,opt,name=disk_size,json=diskSize,proto3" json:"disk_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Resources) Reset() { *m = Resources{} } +func (m *Resources) String() string { return proto.CompactTextString(m) } +func (*Resources) ProtoMessage() {} +func (*Resources) Descriptor() ([]byte, []int) { + return fileDescriptor_9d76f8f9214f9e4c, []int{0} +} + +func (m *Resources) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Resources.Unmarshal(m, b) +} +func (m *Resources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Resources.Marshal(b, m, deterministic) +} +func (m *Resources) XXX_Merge(src proto.Message) { + xxx_messageInfo_Resources.Merge(m, src) +} +func (m *Resources) XXX_Size() int { + return xxx_messageInfo_Resources.Size(m) +} +func (m *Resources) XXX_DiscardUnknown() { + xxx_messageInfo_Resources.DiscardUnknown(m) +} + +var xxx_messageInfo_Resources proto.InternalMessageInfo + +func (m *Resources) GetResourcePresetId() string { + if m != nil { + return m.ResourcePresetId + } + return "" +} + +func (m *Resources) GetDiskTypeId() string { + if m != nil { + return m.DiskTypeId + } + return "" +} + +func (m *Resources) GetDiskSize() int64 { + if m != nil { + return m.DiskSize + } + return 0 +} + +func init() { + proto.RegisterEnum("yandex.cloud.dataproc.v1.Health", Health_name, Health_value) + proto.RegisterType((*Resources)(nil), "yandex.cloud.dataproc.v1.Resources") +} + +func init() { + proto.RegisterFile("yandex/cloud/dataproc/v1/common.proto", fileDescriptor_9d76f8f9214f9e4c) +} + +var fileDescriptor_9d76f8f9214f9e4c = []byte{ + // 280 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 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x30, 0x6f, 0xb5, 0x5e, 0x44, + 0xaf, 0xc1, 0x63, 0xf0, 0xf4, 0x1e, 0x38, 0xff, 0x88, 0x0d, 0x27, 0xde, 0x6a, 0xf9, 0xc6, 0x1c, + 0x8b, 0x0c, 0xe1, 0xbf, 0xcf, 0x3c, 0xdf, 0xe9, 0x91, 0x11, 0x0c, 0x7d, 0xf6, 0x10, 0x7a, 0x3e, + 0xf3, 0x9d, 0xfe, 0x3d, 0xc2, 0xf9, 0xaf, 0x5a, 0xb1, 0x12, 0x3f, 0xab, 0x7d, 0xb0, 0x54, 0xe8, + 0x6d, 0xb5, 0x71, 0x13, 0x99, 0xd1, 0x16, 0xce, 0xda, 0x99, 0x52, 0x39, 0x4b, 0x31, 0x37, 0xcb, + 0xd0, 0xbf, 0xf6, 0xbb, 0xed, 0xde, 0x9b, 0x81, 0x81, 0x37, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x65, 0x56, 0x98, 0x80, 0x6b, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/common.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/common.pbext.go new file mode 100644 index 000000000..ee1041a4d --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/common.pbext.go @@ -0,0 +1,15 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package dataproc + +func (m *Resources) SetResourcePresetId(v string) { + m.ResourcePresetId = v +} + +func (m *Resources) SetDiskTypeId(v string) { + m.DiskTypeId = v +} + +func (m *Resources) SetDiskSize(v int64) { + m.DiskSize = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/job.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/job.pb.go new file mode 100644 index 000000000..5cc4706a4 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/job.pb.go @@ -0,0 +1,803 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/dataproc/v1/job.proto + +package dataproc + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Job_Status int32 + +const ( + Job_STATUS_UNSPECIFIED Job_Status = 0 + // Job is logged in the database and is waiting for the agent to run it. + Job_PROVISIONING Job_Status = 1 + // Job is acquired by the agent and is in the queue for execution. + Job_PENDING Job_Status = 2 + // Job is being run in the cluster. + Job_RUNNING Job_Status = 3 + // Job failed to finish the run properly. + Job_ERROR Job_Status = 4 + // Job is finished. + Job_DONE Job_Status = 5 +) + +var Job_Status_name = map[int32]string{ + 0: "STATUS_UNSPECIFIED", + 1: "PROVISIONING", + 2: "PENDING", + 3: "RUNNING", + 4: "ERROR", + 5: "DONE", +} + +var Job_Status_value = map[string]int32{ + "STATUS_UNSPECIFIED": 0, + "PROVISIONING": 1, + "PENDING": 2, + "RUNNING": 3, + "ERROR": 4, + "DONE": 5, +} + +func (x Job_Status) String() string { + return proto.EnumName(Job_Status_name, int32(x)) +} + +func (Job_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_2e94b92233e6cd71, []int{0, 0} +} + +// A Data Proc job. For details about the concept, see [documentation](/docs/dataproc/concepts/jobs). +type Job struct { + // ID of the job. Generated at creation time. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // ID of the Data Proc cluster that the job belongs to. + ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Creation timestamp. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // The time when the job was started. + StartedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + // The time when the job was finished. + FinishedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"` + // Name of the job, specified in the [JobService.Create] request. + Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` + // The id of the user who created the job + CreatedBy string `protobuf:"bytes,12,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` + // Job status. + Status Job_Status `protobuf:"varint,7,opt,name=status,proto3,enum=yandex.cloud.dataproc.v1.Job_Status" json:"status,omitempty"` + // Specification for the job. + // + // Types that are valid to be assigned to JobSpec: + // *Job_MapreduceJob + // *Job_SparkJob + // *Job_PysparkJob + // *Job_HiveJob + JobSpec isJob_JobSpec `protobuf_oneof:"job_spec"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Job) Reset() { *m = Job{} } +func (m *Job) String() string { return proto.CompactTextString(m) } +func (*Job) ProtoMessage() {} +func (*Job) Descriptor() ([]byte, []int) { + return fileDescriptor_2e94b92233e6cd71, []int{0} +} + +func (m *Job) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Job.Unmarshal(m, b) +} +func (m *Job) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Job.Marshal(b, m, deterministic) +} +func (m *Job) XXX_Merge(src proto.Message) { + xxx_messageInfo_Job.Merge(m, src) +} +func (m *Job) XXX_Size() int { + return xxx_messageInfo_Job.Size(m) +} +func (m *Job) XXX_DiscardUnknown() { + xxx_messageInfo_Job.DiscardUnknown(m) +} + +var xxx_messageInfo_Job proto.InternalMessageInfo + +func (m *Job) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Job) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *Job) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *Job) GetStartedAt() *timestamp.Timestamp { + if m != nil { + return m.StartedAt + } + return nil +} + +func (m *Job) GetFinishedAt() *timestamp.Timestamp { + if m != nil { + return m.FinishedAt + } + return nil +} + +func (m *Job) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Job) GetCreatedBy() string { + if m != nil { + return m.CreatedBy + } + return "" +} + +func (m *Job) GetStatus() Job_Status { + if m != nil { + return m.Status + } + return Job_STATUS_UNSPECIFIED +} + +type isJob_JobSpec interface { + isJob_JobSpec() +} + +type Job_MapreduceJob struct { + MapreduceJob *MapreduceJob `protobuf:"bytes,8,opt,name=mapreduce_job,json=mapreduceJob,proto3,oneof"` +} + +type Job_SparkJob struct { + SparkJob *SparkJob `protobuf:"bytes,9,opt,name=spark_job,json=sparkJob,proto3,oneof"` +} + +type Job_PysparkJob struct { + PysparkJob *PysparkJob `protobuf:"bytes,10,opt,name=pyspark_job,json=pysparkJob,proto3,oneof"` +} + +type Job_HiveJob struct { + HiveJob *HiveJob `protobuf:"bytes,11,opt,name=hive_job,json=hiveJob,proto3,oneof"` +} + +func (*Job_MapreduceJob) isJob_JobSpec() {} + +func (*Job_SparkJob) isJob_JobSpec() {} + +func (*Job_PysparkJob) isJob_JobSpec() {} + +func (*Job_HiveJob) isJob_JobSpec() {} + +func (m *Job) GetJobSpec() isJob_JobSpec { + if m != nil { + return m.JobSpec + } + return nil +} + +func (m *Job) GetMapreduceJob() *MapreduceJob { + if x, ok := m.GetJobSpec().(*Job_MapreduceJob); ok { + return x.MapreduceJob + } + return nil +} + +func (m *Job) GetSparkJob() *SparkJob { + if x, ok := m.GetJobSpec().(*Job_SparkJob); ok { + return x.SparkJob + } + return nil +} + +func (m *Job) GetPysparkJob() *PysparkJob { + if x, ok := m.GetJobSpec().(*Job_PysparkJob); ok { + return x.PysparkJob + } + return nil +} + +func (m *Job) GetHiveJob() *HiveJob { + if x, ok := m.GetJobSpec().(*Job_HiveJob); ok { + return x.HiveJob + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Job) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Job_MapreduceJob)(nil), + (*Job_SparkJob)(nil), + (*Job_PysparkJob)(nil), + (*Job_HiveJob)(nil), + } +} + +type MapreduceJob struct { + // Optional arguments to pass to the driver. + Args []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` + // JAR file URIs to add to CLASSPATH of the Data Proc driver and each task. + JarFileUris []string `protobuf:"bytes,2,rep,name=jar_file_uris,json=jarFileUris,proto3" json:"jar_file_uris,omitempty"` + // URIs of resource files to be copied to the working directory of Data Proc drivers + // and distributed Hadoop tasks. + FileUris []string `protobuf:"bytes,3,rep,name=file_uris,json=fileUris,proto3" json:"file_uris,omitempty"` + // URIs of archives to be extracted to the working directory of Data Proc drivers and tasks. + ArchiveUris []string `protobuf:"bytes,4,rep,name=archive_uris,json=archiveUris,proto3" json:"archive_uris,omitempty"` + // Property names and values, used to configure Data Proc and MapReduce. + Properties map[string]string `protobuf:"bytes,5,rep,name=properties,proto3" json:"properties,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 Driver: + // *MapreduceJob_MainJarFileUri + // *MapreduceJob_MainClass + Driver isMapreduceJob_Driver `protobuf_oneof:"driver"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MapreduceJob) Reset() { *m = MapreduceJob{} } +func (m *MapreduceJob) String() string { return proto.CompactTextString(m) } +func (*MapreduceJob) ProtoMessage() {} +func (*MapreduceJob) Descriptor() ([]byte, []int) { + return fileDescriptor_2e94b92233e6cd71, []int{1} +} + +func (m *MapreduceJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MapreduceJob.Unmarshal(m, b) +} +func (m *MapreduceJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MapreduceJob.Marshal(b, m, deterministic) +} +func (m *MapreduceJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_MapreduceJob.Merge(m, src) +} +func (m *MapreduceJob) XXX_Size() int { + return xxx_messageInfo_MapreduceJob.Size(m) +} +func (m *MapreduceJob) XXX_DiscardUnknown() { + xxx_messageInfo_MapreduceJob.DiscardUnknown(m) +} + +var xxx_messageInfo_MapreduceJob proto.InternalMessageInfo + +func (m *MapreduceJob) GetArgs() []string { + if m != nil { + return m.Args + } + return nil +} + +func (m *MapreduceJob) GetJarFileUris() []string { + if m != nil { + return m.JarFileUris + } + return nil +} + +func (m *MapreduceJob) GetFileUris() []string { + if m != nil { + return m.FileUris + } + return nil +} + +func (m *MapreduceJob) GetArchiveUris() []string { + if m != nil { + return m.ArchiveUris + } + return nil +} + +func (m *MapreduceJob) GetProperties() map[string]string { + if m != nil { + return m.Properties + } + return nil +} + +type isMapreduceJob_Driver interface { + isMapreduceJob_Driver() +} + +type MapreduceJob_MainJarFileUri struct { + MainJarFileUri string `protobuf:"bytes,6,opt,name=main_jar_file_uri,json=mainJarFileUri,proto3,oneof"` +} + +type MapreduceJob_MainClass struct { + MainClass string `protobuf:"bytes,7,opt,name=main_class,json=mainClass,proto3,oneof"` +} + +func (*MapreduceJob_MainJarFileUri) isMapreduceJob_Driver() {} + +func (*MapreduceJob_MainClass) isMapreduceJob_Driver() {} + +func (m *MapreduceJob) GetDriver() isMapreduceJob_Driver { + if m != nil { + return m.Driver + } + return nil +} + +func (m *MapreduceJob) GetMainJarFileUri() string { + if x, ok := m.GetDriver().(*MapreduceJob_MainJarFileUri); ok { + return x.MainJarFileUri + } + return "" +} + +func (m *MapreduceJob) GetMainClass() string { + if x, ok := m.GetDriver().(*MapreduceJob_MainClass); ok { + return x.MainClass + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*MapreduceJob) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*MapreduceJob_MainJarFileUri)(nil), + (*MapreduceJob_MainClass)(nil), + } +} + +type SparkJob struct { + // Optional arguments to pass to the driver. + Args []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` + // JAR file URIs to add to CLASSPATH of the Data Proc driver and each task. + JarFileUris []string `protobuf:"bytes,2,rep,name=jar_file_uris,json=jarFileUris,proto3" json:"jar_file_uris,omitempty"` + // URIs of resource files to be copied to the working directory of Data Proc drivers + // and distributed Hadoop tasks. + FileUris []string `protobuf:"bytes,3,rep,name=file_uris,json=fileUris,proto3" json:"file_uris,omitempty"` + // URIs of archives to be extracted to the working directory of Data Proc drivers and tasks. + ArchiveUris []string `protobuf:"bytes,4,rep,name=archive_uris,json=archiveUris,proto3" json:"archive_uris,omitempty"` + // Property names and values, used to configure Data Proc and Spark. + Properties map[string]string `protobuf:"bytes,5,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // The HCFS URI of the JAR file containing the `main` class for the job. + MainJarFileUri string `protobuf:"bytes,6,opt,name=main_jar_file_uri,json=mainJarFileUri,proto3" json:"main_jar_file_uri,omitempty"` + // The name of the driver class. + MainClass string `protobuf:"bytes,7,opt,name=main_class,json=mainClass,proto3" json:"main_class,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SparkJob) Reset() { *m = SparkJob{} } +func (m *SparkJob) String() string { return proto.CompactTextString(m) } +func (*SparkJob) ProtoMessage() {} +func (*SparkJob) Descriptor() ([]byte, []int) { + return fileDescriptor_2e94b92233e6cd71, []int{2} +} + +func (m *SparkJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SparkJob.Unmarshal(m, b) +} +func (m *SparkJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SparkJob.Marshal(b, m, deterministic) +} +func (m *SparkJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_SparkJob.Merge(m, src) +} +func (m *SparkJob) XXX_Size() int { + return xxx_messageInfo_SparkJob.Size(m) +} +func (m *SparkJob) XXX_DiscardUnknown() { + xxx_messageInfo_SparkJob.DiscardUnknown(m) +} + +var xxx_messageInfo_SparkJob proto.InternalMessageInfo + +func (m *SparkJob) GetArgs() []string { + if m != nil { + return m.Args + } + return nil +} + +func (m *SparkJob) GetJarFileUris() []string { + if m != nil { + return m.JarFileUris + } + return nil +} + +func (m *SparkJob) GetFileUris() []string { + if m != nil { + return m.FileUris + } + return nil +} + +func (m *SparkJob) GetArchiveUris() []string { + if m != nil { + return m.ArchiveUris + } + return nil +} + +func (m *SparkJob) GetProperties() map[string]string { + if m != nil { + return m.Properties + } + return nil +} + +func (m *SparkJob) GetMainJarFileUri() string { + if m != nil { + return m.MainJarFileUri + } + return "" +} + +func (m *SparkJob) GetMainClass() string { + if m != nil { + return m.MainClass + } + return "" +} + +type PysparkJob struct { + // Optional arguments to pass to the driver. + Args []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` + // JAR file URIs to add to CLASSPATH of the Data Proc driver and each task. + JarFileUris []string `protobuf:"bytes,2,rep,name=jar_file_uris,json=jarFileUris,proto3" json:"jar_file_uris,omitempty"` + // URIs of resource files to be copied to the working directory of Data Proc drivers + // and distributed Hadoop tasks. + FileUris []string `protobuf:"bytes,3,rep,name=file_uris,json=fileUris,proto3" json:"file_uris,omitempty"` + // URIs of archives to be extracted to the working directory of Data Proc drivers and tasks. + ArchiveUris []string `protobuf:"bytes,4,rep,name=archive_uris,json=archiveUris,proto3" json:"archive_uris,omitempty"` + // Property names and values, used to configure Data Proc and PySpark. + Properties map[string]string `protobuf:"bytes,5,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // URI of the file with the driver code. Must be a .py file. + MainPythonFileUri string `protobuf:"bytes,6,opt,name=main_python_file_uri,json=mainPythonFileUri,proto3" json:"main_python_file_uri,omitempty"` + // URIs of Python files to pass to the PySpark framework. + PythonFileUris []string `protobuf:"bytes,7,rep,name=python_file_uris,json=pythonFileUris,proto3" json:"python_file_uris,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PysparkJob) Reset() { *m = PysparkJob{} } +func (m *PysparkJob) String() string { return proto.CompactTextString(m) } +func (*PysparkJob) ProtoMessage() {} +func (*PysparkJob) Descriptor() ([]byte, []int) { + return fileDescriptor_2e94b92233e6cd71, []int{3} +} + +func (m *PysparkJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PysparkJob.Unmarshal(m, b) +} +func (m *PysparkJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PysparkJob.Marshal(b, m, deterministic) +} +func (m *PysparkJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_PysparkJob.Merge(m, src) +} +func (m *PysparkJob) XXX_Size() int { + return xxx_messageInfo_PysparkJob.Size(m) +} +func (m *PysparkJob) XXX_DiscardUnknown() { + xxx_messageInfo_PysparkJob.DiscardUnknown(m) +} + +var xxx_messageInfo_PysparkJob proto.InternalMessageInfo + +func (m *PysparkJob) GetArgs() []string { + if m != nil { + return m.Args + } + return nil +} + +func (m *PysparkJob) GetJarFileUris() []string { + if m != nil { + return m.JarFileUris + } + return nil +} + +func (m *PysparkJob) GetFileUris() []string { + if m != nil { + return m.FileUris + } + return nil +} + +func (m *PysparkJob) GetArchiveUris() []string { + if m != nil { + return m.ArchiveUris + } + return nil +} + +func (m *PysparkJob) GetProperties() map[string]string { + if m != nil { + return m.Properties + } + return nil +} + +func (m *PysparkJob) GetMainPythonFileUri() string { + if m != nil { + return m.MainPythonFileUri + } + return "" +} + +func (m *PysparkJob) GetPythonFileUris() []string { + if m != nil { + return m.PythonFileUris + } + return nil +} + +type QueryList struct { + // List of Hive queries. + Queries []string `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QueryList) Reset() { *m = QueryList{} } +func (m *QueryList) String() string { return proto.CompactTextString(m) } +func (*QueryList) ProtoMessage() {} +func (*QueryList) Descriptor() ([]byte, []int) { + return fileDescriptor_2e94b92233e6cd71, []int{4} +} + +func (m *QueryList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_QueryList.Unmarshal(m, b) +} +func (m *QueryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_QueryList.Marshal(b, m, deterministic) +} +func (m *QueryList) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryList.Merge(m, src) +} +func (m *QueryList) XXX_Size() int { + return xxx_messageInfo_QueryList.Size(m) +} +func (m *QueryList) XXX_DiscardUnknown() { + xxx_messageInfo_QueryList.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryList proto.InternalMessageInfo + +func (m *QueryList) GetQueries() []string { + if m != nil { + return m.Queries + } + return nil +} + +type HiveJob struct { + // Property names and values, used to configure Data Proc and Hive. + Properties map[string]string `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Flag indicating whether a job should continue to run if a query fails. + ContinueOnFailure bool `protobuf:"varint,2,opt,name=continue_on_failure,json=continueOnFailure,proto3" json:"continue_on_failure,omitempty"` + // Query variables and their values. + ScriptVariables map[string]string `protobuf:"bytes,3,rep,name=script_variables,json=scriptVariables,proto3" json:"script_variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // JAR file URIs to add to CLASSPATH of the Hive driver and each task. + JarFileUris []string `protobuf:"bytes,4,rep,name=jar_file_uris,json=jarFileUris,proto3" json:"jar_file_uris,omitempty"` + // Types that are valid to be assigned to QueryType: + // *HiveJob_QueryFileUri + // *HiveJob_QueryList + QueryType isHiveJob_QueryType `protobuf_oneof:"query_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HiveJob) Reset() { *m = HiveJob{} } +func (m *HiveJob) String() string { return proto.CompactTextString(m) } +func (*HiveJob) ProtoMessage() {} +func (*HiveJob) Descriptor() ([]byte, []int) { + return fileDescriptor_2e94b92233e6cd71, []int{5} +} + +func (m *HiveJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HiveJob.Unmarshal(m, b) +} +func (m *HiveJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HiveJob.Marshal(b, m, deterministic) +} +func (m *HiveJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_HiveJob.Merge(m, src) +} +func (m *HiveJob) XXX_Size() int { + return xxx_messageInfo_HiveJob.Size(m) +} +func (m *HiveJob) XXX_DiscardUnknown() { + xxx_messageInfo_HiveJob.DiscardUnknown(m) +} + +var xxx_messageInfo_HiveJob proto.InternalMessageInfo + +func (m *HiveJob) GetProperties() map[string]string { + if m != nil { + return m.Properties + } + return nil +} + +func (m *HiveJob) GetContinueOnFailure() bool { + if m != nil { + return m.ContinueOnFailure + } + return false +} + +func (m *HiveJob) GetScriptVariables() map[string]string { + if m != nil { + return m.ScriptVariables + } + return nil +} + +func (m *HiveJob) GetJarFileUris() []string { + if m != nil { + return m.JarFileUris + } + return nil +} + +type isHiveJob_QueryType interface { + isHiveJob_QueryType() +} + +type HiveJob_QueryFileUri struct { + QueryFileUri string `protobuf:"bytes,5,opt,name=query_file_uri,json=queryFileUri,proto3,oneof"` +} + +type HiveJob_QueryList struct { + QueryList *QueryList `protobuf:"bytes,6,opt,name=query_list,json=queryList,proto3,oneof"` +} + +func (*HiveJob_QueryFileUri) isHiveJob_QueryType() {} + +func (*HiveJob_QueryList) isHiveJob_QueryType() {} + +func (m *HiveJob) GetQueryType() isHiveJob_QueryType { + if m != nil { + return m.QueryType + } + return nil +} + +func (m *HiveJob) GetQueryFileUri() string { + if x, ok := m.GetQueryType().(*HiveJob_QueryFileUri); ok { + return x.QueryFileUri + } + return "" +} + +func (m *HiveJob) GetQueryList() *QueryList { + if x, ok := m.GetQueryType().(*HiveJob_QueryList); ok { + return x.QueryList + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*HiveJob) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*HiveJob_QueryFileUri)(nil), + (*HiveJob_QueryList)(nil), + } +} + +func init() { + proto.RegisterEnum("yandex.cloud.dataproc.v1.Job_Status", Job_Status_name, Job_Status_value) + proto.RegisterType((*Job)(nil), "yandex.cloud.dataproc.v1.Job") + proto.RegisterType((*MapreduceJob)(nil), "yandex.cloud.dataproc.v1.MapreduceJob") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.dataproc.v1.MapreduceJob.PropertiesEntry") + proto.RegisterType((*SparkJob)(nil), "yandex.cloud.dataproc.v1.SparkJob") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.dataproc.v1.SparkJob.PropertiesEntry") + proto.RegisterType((*PysparkJob)(nil), "yandex.cloud.dataproc.v1.PysparkJob") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.dataproc.v1.PysparkJob.PropertiesEntry") + proto.RegisterType((*QueryList)(nil), "yandex.cloud.dataproc.v1.QueryList") + proto.RegisterType((*HiveJob)(nil), "yandex.cloud.dataproc.v1.HiveJob") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.dataproc.v1.HiveJob.PropertiesEntry") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.dataproc.v1.HiveJob.ScriptVariablesEntry") +} + +func init() { + proto.RegisterFile("yandex/cloud/dataproc/v1/job.proto", fileDescriptor_2e94b92233e6cd71) +} + +var fileDescriptor_2e94b92233e6cd71 = []byte{ + // 939 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x6f, 0x8f, 0xda, 0xc6, + 0x13, 0x3e, 0xfe, 0x1d, 0x30, 0x10, 0x42, 0xf6, 0x77, 0xfa, 0xc9, 0xba, 0x36, 0x0a, 0xa1, 0x6d, + 0x44, 0x55, 0xc5, 0xe8, 0x68, 0x55, 0xb5, 0x4d, 0x5b, 0x09, 0x72, 0x5c, 0x0e, 0xd4, 0x00, 0x31, + 0x77, 0xf7, 0xa2, 0x6f, 0xac, 0xb5, 0xbd, 0x07, 0x4b, 0x8c, 0xed, 0xec, 0xae, 0x51, 0xfd, 0x35, + 0xfa, 0x05, 0x2b, 0xf5, 0x33, 0xb4, 0xef, 0x2b, 0xef, 0xda, 0x07, 0xf7, 0x07, 0x2e, 0x55, 0x2a, + 0xe5, 0xdd, 0xce, 0xcc, 0x33, 0xb3, 0xfb, 0x3c, 0x33, 0x1e, 0x19, 0x9a, 0x11, 0xf6, 0x1c, 0xf2, + 0x5b, 0xdb, 0x76, 0xfd, 0xd0, 0x69, 0x3b, 0x58, 0xe0, 0x80, 0xf9, 0x76, 0x7b, 0x75, 0xd4, 0x5e, + 0xf8, 0x96, 0x1e, 0x30, 0x5f, 0xf8, 0x48, 0x53, 0x18, 0x5d, 0x62, 0xf4, 0x14, 0xa3, 0xaf, 0x8e, + 0x0e, 0x9f, 0xcc, 0x7c, 0x7f, 0xe6, 0x92, 0xb6, 0xc4, 0x59, 0xe1, 0x65, 0x5b, 0xd0, 0x25, 0xe1, + 0x02, 0x2f, 0x03, 0x95, 0xda, 0xfc, 0xb3, 0x00, 0xb9, 0xa1, 0x6f, 0xa1, 0x1a, 0x64, 0xa9, 0xa3, + 0x65, 0x1a, 0x99, 0x56, 0xd9, 0xc8, 0x52, 0x07, 0x3d, 0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 0x98, 0x87, + 0x96, 0x6e, 0xfb, 0xcb, 0xb6, 0x42, 0x3f, 0x57, 0x3f, 0x80, 0x33, 0xff, 0xf9, 0x8c, 0x78, 0xf2, + 0x57, 0xa7, 0xbd, 0xed, 0xcf, 0xf0, 0x45, 0x7a, 0xb6, 0xf6, 0x25, 0xf0, 0xeb, 0x7f, 0x02, 0x00, + 0x00, 0xff, 0xff, 0x8f, 0x45, 0x22, 0x2f, 0x45, 0x0a, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/job.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/job.pbext.go new file mode 100644 index 000000000..93fd88846 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/job.pbext.go @@ -0,0 +1,201 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package dataproc + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +type Job_JobSpec = isJob_JobSpec + +func (m *Job) SetJobSpec(v Job_JobSpec) { + m.JobSpec = v +} + +func (m *Job) SetId(v string) { + m.Id = v +} + +func (m *Job) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *Job) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Job) SetStartedAt(v *timestamp.Timestamp) { + m.StartedAt = v +} + +func (m *Job) SetFinishedAt(v *timestamp.Timestamp) { + m.FinishedAt = v +} + +func (m *Job) SetName(v string) { + m.Name = v +} + +func (m *Job) SetCreatedBy(v string) { + m.CreatedBy = v +} + +func (m *Job) SetStatus(v Job_Status) { + m.Status = v +} + +func (m *Job) SetMapreduceJob(v *MapreduceJob) { + m.JobSpec = &Job_MapreduceJob{ + MapreduceJob: v, + } +} + +func (m *Job) SetSparkJob(v *SparkJob) { + m.JobSpec = &Job_SparkJob{ + SparkJob: v, + } +} + +func (m *Job) SetPysparkJob(v *PysparkJob) { + m.JobSpec = &Job_PysparkJob{ + PysparkJob: v, + } +} + +func (m *Job) SetHiveJob(v *HiveJob) { + m.JobSpec = &Job_HiveJob{ + HiveJob: v, + } +} + +type MapreduceJob_Driver = isMapreduceJob_Driver + +func (m *MapreduceJob) SetDriver(v MapreduceJob_Driver) { + m.Driver = v +} + +func (m *MapreduceJob) SetArgs(v []string) { + m.Args = v +} + +func (m *MapreduceJob) SetJarFileUris(v []string) { + m.JarFileUris = v +} + +func (m *MapreduceJob) SetFileUris(v []string) { + m.FileUris = v +} + +func (m *MapreduceJob) SetArchiveUris(v []string) { + m.ArchiveUris = v +} + +func (m *MapreduceJob) SetProperties(v map[string]string) { + m.Properties = v +} + +func (m *MapreduceJob) SetMainJarFileUri(v string) { + m.Driver = &MapreduceJob_MainJarFileUri{ + MainJarFileUri: v, + } +} + +func (m *MapreduceJob) SetMainClass(v string) { + m.Driver = &MapreduceJob_MainClass{ + MainClass: v, + } +} + +func (m *SparkJob) SetArgs(v []string) { + m.Args = v +} + +func (m *SparkJob) SetJarFileUris(v []string) { + m.JarFileUris = v +} + +func (m *SparkJob) SetFileUris(v []string) { + m.FileUris = v +} + +func (m *SparkJob) SetArchiveUris(v []string) { + m.ArchiveUris = v +} + +func (m *SparkJob) SetProperties(v map[string]string) { + m.Properties = v +} + +func (m *SparkJob) SetMainJarFileUri(v string) { + m.MainJarFileUri = v +} + +func (m *SparkJob) SetMainClass(v string) { + m.MainClass = v +} + +func (m *PysparkJob) SetArgs(v []string) { + m.Args = v +} + +func (m *PysparkJob) SetJarFileUris(v []string) { + m.JarFileUris = v +} + +func (m *PysparkJob) SetFileUris(v []string) { + m.FileUris = v +} + +func (m *PysparkJob) SetArchiveUris(v []string) { + m.ArchiveUris = v +} + +func (m *PysparkJob) SetProperties(v map[string]string) { + m.Properties = v +} + +func (m *PysparkJob) SetMainPythonFileUri(v string) { + m.MainPythonFileUri = v +} + +func (m *PysparkJob) SetPythonFileUris(v []string) { + m.PythonFileUris = v +} + +func (m *QueryList) SetQueries(v []string) { + m.Queries = v +} + +type HiveJob_QueryType = isHiveJob_QueryType + +func (m *HiveJob) SetQueryType(v HiveJob_QueryType) { + m.QueryType = v +} + +func (m *HiveJob) SetProperties(v map[string]string) { + m.Properties = v +} + +func (m *HiveJob) SetContinueOnFailure(v bool) { + m.ContinueOnFailure = v +} + +func (m *HiveJob) SetScriptVariables(v map[string]string) { + m.ScriptVariables = v +} + +func (m *HiveJob) SetJarFileUris(v []string) { + m.JarFileUris = v +} + +func (m *HiveJob) SetQueryFileUri(v string) { + m.QueryType = &HiveJob_QueryFileUri{ + QueryFileUri: v, + } +} + +func (m *HiveJob) SetQueryList(v *QueryList) { + m.QueryType = &HiveJob_QueryList{ + QueryList: v, + } +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/job_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/job_service.pb.go new file mode 100644 index 000000000..1d12240c8 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/job_service.pb.go @@ -0,0 +1,780 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/dataproc/v1/job_service.proto + +package dataproc + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud/api" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GetJobRequest struct { + // ID of the cluster to request a job from. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // ID of the job to return. + // + // To get a job ID make a [JobService.List] request. + JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetJobRequest) Reset() { *m = GetJobRequest{} } +func (m *GetJobRequest) String() string { return proto.CompactTextString(m) } +func (*GetJobRequest) ProtoMessage() {} +func (*GetJobRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_17500a3fdd75bbf9, []int{0} +} + +func (m *GetJobRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetJobRequest.Unmarshal(m, b) +} +func (m *GetJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetJobRequest.Marshal(b, m, deterministic) +} +func (m *GetJobRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetJobRequest.Merge(m, src) +} +func (m *GetJobRequest) XXX_Size() int { + return xxx_messageInfo_GetJobRequest.Size(m) +} +func (m *GetJobRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetJobRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetJobRequest proto.InternalMessageInfo + +func (m *GetJobRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *GetJobRequest) GetJobId() string { + if m != nil { + return m.JobId + } + return "" +} + +type ListJobsRequest struct { + // ID of the cluster to list jobs for. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], the service returns a [ListJobsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListJobsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters jobs listed in the response. + // + // The expression must specify: + // 1. The field name. Currently you can use filtering only on [Job.name] field. + // 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values. + // 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]. + // Example of a filter: `name=my-job`. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListJobsRequest) Reset() { *m = ListJobsRequest{} } +func (m *ListJobsRequest) String() string { return proto.CompactTextString(m) } +func (*ListJobsRequest) ProtoMessage() {} +func (*ListJobsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_17500a3fdd75bbf9, []int{1} +} + +func (m *ListJobsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListJobsRequest.Unmarshal(m, b) +} +func (m *ListJobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListJobsRequest.Marshal(b, m, deterministic) +} +func (m *ListJobsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListJobsRequest.Merge(m, src) +} +func (m *ListJobsRequest) XXX_Size() int { + return xxx_messageInfo_ListJobsRequest.Size(m) +} +func (m *ListJobsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListJobsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListJobsRequest proto.InternalMessageInfo + +func (m *ListJobsRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *ListJobsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListJobsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +func (m *ListJobsRequest) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +type ListJobsResponse struct { + // List of jobs for the specified cluster. + Jobs []*Job `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListJobsRequest.page_size], use `next_page_token` as the value + // for the [ListJobsRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListJobsResponse) Reset() { *m = ListJobsResponse{} } +func (m *ListJobsResponse) String() string { return proto.CompactTextString(m) } +func (*ListJobsResponse) ProtoMessage() {} +func (*ListJobsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_17500a3fdd75bbf9, []int{2} +} + +func (m *ListJobsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListJobsResponse.Unmarshal(m, b) +} +func (m *ListJobsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListJobsResponse.Marshal(b, m, deterministic) +} +func (m *ListJobsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListJobsResponse.Merge(m, src) +} +func (m *ListJobsResponse) XXX_Size() int { + return xxx_messageInfo_ListJobsResponse.Size(m) +} +func (m *ListJobsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListJobsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListJobsResponse proto.InternalMessageInfo + +func (m *ListJobsResponse) GetJobs() []*Job { + if m != nil { + return m.Jobs + } + return nil +} + +func (m *ListJobsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type CreateJobRequest struct { + // ID of the cluster to create a job for. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Name of the job. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Specification for the job. + // + // Types that are valid to be assigned to JobSpec: + // *CreateJobRequest_MapreduceJob + // *CreateJobRequest_SparkJob + // *CreateJobRequest_PysparkJob + // *CreateJobRequest_HiveJob + JobSpec isCreateJobRequest_JobSpec `protobuf_oneof:"job_spec"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateJobRequest) Reset() { *m = CreateJobRequest{} } +func (m *CreateJobRequest) String() string { return proto.CompactTextString(m) } +func (*CreateJobRequest) ProtoMessage() {} +func (*CreateJobRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_17500a3fdd75bbf9, []int{3} +} + +func (m *CreateJobRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateJobRequest.Unmarshal(m, b) +} +func (m *CreateJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateJobRequest.Marshal(b, m, deterministic) +} +func (m *CreateJobRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateJobRequest.Merge(m, src) +} +func (m *CreateJobRequest) XXX_Size() int { + return xxx_messageInfo_CreateJobRequest.Size(m) +} +func (m *CreateJobRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateJobRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateJobRequest proto.InternalMessageInfo + +func (m *CreateJobRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *CreateJobRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type isCreateJobRequest_JobSpec interface { + isCreateJobRequest_JobSpec() +} + +type CreateJobRequest_MapreduceJob struct { + MapreduceJob *MapreduceJob `protobuf:"bytes,3,opt,name=mapreduce_job,json=mapreduceJob,proto3,oneof"` +} + +type CreateJobRequest_SparkJob struct { + SparkJob *SparkJob `protobuf:"bytes,4,opt,name=spark_job,json=sparkJob,proto3,oneof"` +} + +type CreateJobRequest_PysparkJob struct { + PysparkJob *PysparkJob `protobuf:"bytes,5,opt,name=pyspark_job,json=pysparkJob,proto3,oneof"` +} + +type CreateJobRequest_HiveJob struct { + HiveJob *HiveJob `protobuf:"bytes,6,opt,name=hive_job,json=hiveJob,proto3,oneof"` +} + +func (*CreateJobRequest_MapreduceJob) isCreateJobRequest_JobSpec() {} + +func (*CreateJobRequest_SparkJob) isCreateJobRequest_JobSpec() {} + +func (*CreateJobRequest_PysparkJob) isCreateJobRequest_JobSpec() {} + +func (*CreateJobRequest_HiveJob) isCreateJobRequest_JobSpec() {} + +func (m *CreateJobRequest) GetJobSpec() isCreateJobRequest_JobSpec { + if m != nil { + return m.JobSpec + } + return nil +} + +func (m *CreateJobRequest) GetMapreduceJob() *MapreduceJob { + if x, ok := m.GetJobSpec().(*CreateJobRequest_MapreduceJob); ok { + return x.MapreduceJob + } + return nil +} + +func (m *CreateJobRequest) GetSparkJob() *SparkJob { + if x, ok := m.GetJobSpec().(*CreateJobRequest_SparkJob); ok { + return x.SparkJob + } + return nil +} + +func (m *CreateJobRequest) GetPysparkJob() *PysparkJob { + if x, ok := m.GetJobSpec().(*CreateJobRequest_PysparkJob); ok { + return x.PysparkJob + } + return nil +} + +func (m *CreateJobRequest) GetHiveJob() *HiveJob { + if x, ok := m.GetJobSpec().(*CreateJobRequest_HiveJob); ok { + return x.HiveJob + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CreateJobRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CreateJobRequest_MapreduceJob)(nil), + (*CreateJobRequest_SparkJob)(nil), + (*CreateJobRequest_PysparkJob)(nil), + (*CreateJobRequest_HiveJob)(nil), + } +} + +type CreateJobMetadata struct { + // ID of the cluster that the job is being created for. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // ID of the job being created. + JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateJobMetadata) Reset() { *m = CreateJobMetadata{} } +func (m *CreateJobMetadata) String() string { return proto.CompactTextString(m) } +func (*CreateJobMetadata) ProtoMessage() {} +func (*CreateJobMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_17500a3fdd75bbf9, []int{4} +} + +func (m *CreateJobMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateJobMetadata.Unmarshal(m, b) +} +func (m *CreateJobMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateJobMetadata.Marshal(b, m, deterministic) +} +func (m *CreateJobMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateJobMetadata.Merge(m, src) +} +func (m *CreateJobMetadata) XXX_Size() int { + return xxx_messageInfo_CreateJobMetadata.Size(m) +} +func (m *CreateJobMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CreateJobMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateJobMetadata proto.InternalMessageInfo + +func (m *CreateJobMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *CreateJobMetadata) GetJobId() string { + if m != nil { + return m.JobId + } + return "" +} + +type ListJobLogRequest struct { + // ID of the cluster that the job is being created for. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // ID of the job being created. + JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + // The maximum bytes of job log per response to return. If the number of available + // bytes is larger than [page_size], the service returns a [ListJobLogResponse.next_page_token] + // that can be used to get the next page of output in subsequent list requests. + // Default value: 1048576. + PageSize int64 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListJobLogResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListJobLogRequest) Reset() { *m = ListJobLogRequest{} } +func (m *ListJobLogRequest) String() string { return proto.CompactTextString(m) } +func (*ListJobLogRequest) ProtoMessage() {} +func (*ListJobLogRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_17500a3fdd75bbf9, []int{5} +} + +func (m *ListJobLogRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListJobLogRequest.Unmarshal(m, b) +} +func (m *ListJobLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListJobLogRequest.Marshal(b, m, deterministic) +} +func (m *ListJobLogRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListJobLogRequest.Merge(m, src) +} +func (m *ListJobLogRequest) XXX_Size() int { + return xxx_messageInfo_ListJobLogRequest.Size(m) +} +func (m *ListJobLogRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListJobLogRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListJobLogRequest proto.InternalMessageInfo + +func (m *ListJobLogRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *ListJobLogRequest) GetJobId() string { + if m != nil { + return m.JobId + } + return "" +} + +func (m *ListJobLogRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListJobLogRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListJobLogResponse struct { + // Requested part of Data Proc Job log. + Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` + // This token allows you to get the next page of results for ListLog requests, + // if the number of results is larger than `page_size` specified in the request. + // To get the next page, specify the value of `next_page_token` as a value for + // the `page_token` parameter in the next ListLog request. Subsequent ListLog + // requests will have their own `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListJobLogResponse) Reset() { *m = ListJobLogResponse{} } +func (m *ListJobLogResponse) String() string { return proto.CompactTextString(m) } +func (*ListJobLogResponse) ProtoMessage() {} +func (*ListJobLogResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_17500a3fdd75bbf9, []int{6} +} + +func (m *ListJobLogResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListJobLogResponse.Unmarshal(m, b) +} +func (m *ListJobLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListJobLogResponse.Marshal(b, m, deterministic) +} +func (m *ListJobLogResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListJobLogResponse.Merge(m, src) +} +func (m *ListJobLogResponse) XXX_Size() int { + return xxx_messageInfo_ListJobLogResponse.Size(m) +} +func (m *ListJobLogResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListJobLogResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListJobLogResponse proto.InternalMessageInfo + +func (m *ListJobLogResponse) GetContent() string { + if m != nil { + return m.Content + } + return "" +} + +func (m *ListJobLogResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +func init() { + proto.RegisterType((*GetJobRequest)(nil), "yandex.cloud.dataproc.v1.GetJobRequest") + proto.RegisterType((*ListJobsRequest)(nil), "yandex.cloud.dataproc.v1.ListJobsRequest") + proto.RegisterType((*ListJobsResponse)(nil), "yandex.cloud.dataproc.v1.ListJobsResponse") + proto.RegisterType((*CreateJobRequest)(nil), "yandex.cloud.dataproc.v1.CreateJobRequest") + proto.RegisterType((*CreateJobMetadata)(nil), "yandex.cloud.dataproc.v1.CreateJobMetadata") + proto.RegisterType((*ListJobLogRequest)(nil), "yandex.cloud.dataproc.v1.ListJobLogRequest") + proto.RegisterType((*ListJobLogResponse)(nil), "yandex.cloud.dataproc.v1.ListJobLogResponse") +} + +func init() { + proto.RegisterFile("yandex/cloud/dataproc/v1/job_service.proto", fileDescriptor_17500a3fdd75bbf9) +} + +var fileDescriptor_17500a3fdd75bbf9 = []byte{ + // 833 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x4d, 0x4f, 0xeb, 0x46, + 0x14, 0xad, 0x5f, 0x4c, 0x48, 0x2e, 0x2f, 0x7a, 0xef, 0xcd, 0xca, 0x8a, 0x40, 0x05, 0xb7, 0xe2, + 0x23, 0x90, 0x38, 0x4e, 0x1b, 0xa0, 0x14, 0x2a, 0x35, 0x55, 0x05, 0x44, 0xd0, 0x22, 0xa7, 0xea, + 0xa2, 0x08, 0x45, 0x63, 0x7b, 0x6a, 0x1c, 0x12, 0x8f, 0x6b, 0x4f, 0x22, 0x08, 0x65, 0xd3, 0x4d, + 0x25, 0x16, 0xdd, 0x74, 0xdd, 0x55, 0x17, 0xdd, 0x57, 0xaa, 0xfa, 0x13, 0xc2, 0xba, 0xfd, 0x0b, + 0x5d, 0x74, 0xdd, 0x4d, 0x25, 0x56, 0x4f, 0x1e, 0x3b, 0xe4, 0x43, 0x18, 0x02, 0xbb, 0x19, 0xdf, + 0xe3, 0x73, 0xcf, 0xdc, 0x7b, 0xcf, 0x0c, 0xe4, 0x2e, 0xb0, 0x63, 0x92, 0x73, 0xc5, 0x68, 0xd2, + 0xb6, 0xa9, 0x98, 0x98, 0x61, 0xd7, 0xa3, 0x86, 0xd2, 0x51, 0x95, 0x06, 0xd5, 0xeb, 0x3e, 0xf1, + 0x3a, 0xb6, 0x41, 0x0a, 0xae, 0x47, 0x19, 0x45, 0x52, 0x88, 0x2d, 0x70, 0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 0x25, 0x7f, + 0xf1, 0xfb, 0x5f, 0x39, 0xe9, 0xbe, 0x91, 0x4b, 0x54, 0xa9, 0xce, 0x65, 0xae, 0xc9, 0x93, 0xca, + 0xdc, 0x12, 0x72, 0xe8, 0x47, 0x01, 0x12, 0xbb, 0x84, 0xa1, 0xa5, 0x78, 0x99, 0x23, 0x0f, 0x41, + 0xf6, 0xe1, 0xcb, 0x4d, 0xde, 0xe4, 0x1a, 0x4a, 0xa8, 0x38, 0xa1, 0x06, 0xe5, 0x32, 0x9c, 0xcb, + 0x2b, 0xf4, 0xab, 0x00, 0xd3, 0x41, 0xe5, 0x0f, 0xa8, 0x85, 0x56, 0x1f, 0x6d, 0xce, 0xc0, 0x08, + 0xd9, 0xb5, 0xc9, 0xc0, 0x51, 0x2f, 0x77, 0xb8, 0xc0, 0x0d, 0x54, 0x7e, 0xaa, 0xc0, 0xad, 0x26, + 0xb5, 0xfc, 0xca, 0x19, 0xcc, 0x8e, 0x64, 0xc3, 0xae, 0x3d, 0x9c, 0xb1, 0x22, 0x1e, 0xed, 0x55, + 0x6b, 0xdf, 0x7c, 0x6e, 0xd9, 0xec, 0xb4, 0xad, 0x17, 0x0c, 0xda, 0x52, 0x42, 0x78, 0x3e, 0x7c, + 0x6b, 0x2d, 0x9a, 0xb7, 0x88, 0xc3, 0xdf, 0x58, 0x25, 0xee, 0xbd, 0xff, 0xb8, 0xbf, 0xd6, 0x93, + 0x1c, 0xf8, 0xc1, 0xdb, 0x00, 0x00, 0x00, 0xff, 0xff, 0x23, 0xb0, 0x91, 0x1d, 0x7f, 0x08, 0x00, + 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// JobServiceClient is the client API for JobService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type JobServiceClient interface { + // Retrieves a list of jobs for a cluster. + List(ctx context.Context, in *ListJobsRequest, opts ...grpc.CallOption) (*ListJobsResponse, error) + // Creates a job for a cluster. + Create(ctx context.Context, in *CreateJobRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Returns the specified job. + Get(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*Job, error) + // Returns a log for specified job. + ListLog(ctx context.Context, in *ListJobLogRequest, opts ...grpc.CallOption) (*ListJobLogResponse, error) +} + +type jobServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewJobServiceClient(cc grpc.ClientConnInterface) JobServiceClient { + return &jobServiceClient{cc} +} + +func (c *jobServiceClient) List(ctx context.Context, in *ListJobsRequest, opts ...grpc.CallOption) (*ListJobsResponse, error) { + out := new(ListJobsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.JobService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *jobServiceClient) Create(ctx context.Context, in *CreateJobRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.JobService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *jobServiceClient) Get(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*Job, error) { + out := new(Job) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.JobService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *jobServiceClient) ListLog(ctx context.Context, in *ListJobLogRequest, opts ...grpc.CallOption) (*ListJobLogResponse, error) { + out := new(ListJobLogResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.JobService/ListLog", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// JobServiceServer is the server API for JobService service. +type JobServiceServer interface { + // Retrieves a list of jobs for a cluster. + List(context.Context, *ListJobsRequest) (*ListJobsResponse, error) + // Creates a job for a cluster. + Create(context.Context, *CreateJobRequest) (*operation.Operation, error) + // Returns the specified job. + Get(context.Context, *GetJobRequest) (*Job, error) + // Returns a log for specified job. + ListLog(context.Context, *ListJobLogRequest) (*ListJobLogResponse, error) +} + +// UnimplementedJobServiceServer can be embedded to have forward compatible implementations. +type UnimplementedJobServiceServer struct { +} + +func (*UnimplementedJobServiceServer) List(ctx context.Context, req *ListJobsRequest) (*ListJobsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (*UnimplementedJobServiceServer) Create(ctx context.Context, req *CreateJobRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (*UnimplementedJobServiceServer) Get(ctx context.Context, req *GetJobRequest) (*Job, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedJobServiceServer) ListLog(ctx context.Context, req *ListJobLogRequest) (*ListJobLogResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListLog not implemented") +} + +func RegisterJobServiceServer(s *grpc.Server, srv JobServiceServer) { + s.RegisterService(&_JobService_serviceDesc, srv) +} + +func _JobService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListJobsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(JobServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.JobService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(JobServiceServer).List(ctx, req.(*ListJobsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _JobService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateJobRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(JobServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.JobService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(JobServiceServer).Create(ctx, req.(*CreateJobRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _JobService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetJobRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(JobServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.JobService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(JobServiceServer).Get(ctx, req.(*GetJobRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _JobService_ListLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListJobLogRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(JobServiceServer).ListLog(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.JobService/ListLog", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(JobServiceServer).ListLog(ctx, req.(*ListJobLogRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _JobService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.dataproc.v1.JobService", + HandlerType: (*JobServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "List", + Handler: _JobService_List_Handler, + }, + { + MethodName: "Create", + Handler: _JobService_Create_Handler, + }, + { + MethodName: "Get", + Handler: _JobService_Get_Handler, + }, + { + MethodName: "ListLog", + Handler: _JobService_ListLog_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/dataproc/v1/job_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/job_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/job_service.pbext.go new file mode 100644 index 000000000..2b30d8480 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/job_service.pbext.go @@ -0,0 +1,105 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package dataproc + +func (m *GetJobRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetJobRequest) SetJobId(v string) { + m.JobId = v +} + +func (m *ListJobsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListJobsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListJobsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListJobsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListJobsResponse) SetJobs(v []*Job) { + m.Jobs = v +} + +func (m *ListJobsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +type CreateJobRequest_JobSpec = isCreateJobRequest_JobSpec + +func (m *CreateJobRequest) SetJobSpec(v CreateJobRequest_JobSpec) { + m.JobSpec = v +} + +func (m *CreateJobRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateJobRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateJobRequest) SetMapreduceJob(v *MapreduceJob) { + m.JobSpec = &CreateJobRequest_MapreduceJob{ + MapreduceJob: v, + } +} + +func (m *CreateJobRequest) SetSparkJob(v *SparkJob) { + m.JobSpec = &CreateJobRequest_SparkJob{ + SparkJob: v, + } +} + +func (m *CreateJobRequest) SetPysparkJob(v *PysparkJob) { + m.JobSpec = &CreateJobRequest_PysparkJob{ + PysparkJob: v, + } +} + +func (m *CreateJobRequest) SetHiveJob(v *HiveJob) { + m.JobSpec = &CreateJobRequest_HiveJob{ + HiveJob: v, + } +} + +func (m *CreateJobMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateJobMetadata) SetJobId(v string) { + m.JobId = v +} + +func (m *ListJobLogRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListJobLogRequest) SetJobId(v string) { + m.JobId = v +} + +func (m *ListJobLogRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListJobLogRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListJobLogResponse) SetContent(v string) { + m.Content = v +} + +func (m *ListJobLogResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/resource_preset.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/resource_preset.pb.go new file mode 100644 index 000000000..54af58ef3 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/resource_preset.pb.go @@ -0,0 +1,115 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/dataproc/v1/resource_preset.proto + +package dataproc + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// A ResourcePreset resource for describing hardware configuration presets. +type ResourcePreset struct { + // ID of the ResourcePreset resource. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // IDs of availability zones where the resource preset is available. + ZoneIds []string `protobuf:"bytes,2,rep,name=zone_ids,json=zoneIds,proto3" json:"zone_ids,omitempty"` + // Number of CPU cores for a Data Proc host created with the preset. + Cores int64 `protobuf:"varint,3,opt,name=cores,proto3" json:"cores,omitempty"` + // RAM volume for a Data Proc host created with the preset, in bytes. + Memory int64 `protobuf:"varint,4,opt,name=memory,proto3" json:"memory,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResourcePreset) Reset() { *m = ResourcePreset{} } +func (m *ResourcePreset) String() string { return proto.CompactTextString(m) } +func (*ResourcePreset) ProtoMessage() {} +func (*ResourcePreset) Descriptor() ([]byte, []int) { + return fileDescriptor_c06789b855564c6d, []int{0} +} + +func (m *ResourcePreset) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResourcePreset.Unmarshal(m, b) +} +func (m *ResourcePreset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResourcePreset.Marshal(b, m, deterministic) +} +func (m *ResourcePreset) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourcePreset.Merge(m, src) +} +func (m *ResourcePreset) XXX_Size() int { + return xxx_messageInfo_ResourcePreset.Size(m) +} +func (m *ResourcePreset) XXX_DiscardUnknown() { + xxx_messageInfo_ResourcePreset.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourcePreset proto.InternalMessageInfo + +func (m *ResourcePreset) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ResourcePreset) GetZoneIds() []string { + if m != nil { + return m.ZoneIds + } + return nil +} + +func (m *ResourcePreset) GetCores() int64 { + if m != nil { + return m.Cores + } + return 0 +} + +func (m *ResourcePreset) GetMemory() int64 { + if m != nil { + return m.Memory + } + return 0 +} + +func init() { + proto.RegisterType((*ResourcePreset)(nil), "yandex.cloud.dataproc.v1.ResourcePreset") +} + +func init() { + proto.RegisterFile("yandex/cloud/dataproc/v1/resource_preset.proto", fileDescriptor_c06789b855564c6d) +} + +var fileDescriptor_c06789b855564c6d = []byte{ + // 216 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x8f, 0xb1, 0x4b, 0xc4, 0x30, + 0x14, 0xc6, 0x69, 0xab, 0xa7, 0x97, 0xe1, 0x86, 0x20, 0x12, 0xc1, 0xa1, 0x38, 0x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 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/resource_preset.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/resource_preset.pbext.go new file mode 100644 index 000000000..12ddfadd0 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/resource_preset.pbext.go @@ -0,0 +1,19 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package dataproc + +func (m *ResourcePreset) SetId(v string) { + m.Id = v +} + +func (m *ResourcePreset) SetZoneIds(v []string) { + m.ZoneIds = v +} + +func (m *ResourcePreset) SetCores(v int64) { + m.Cores = v +} + +func (m *ResourcePreset) SetMemory(v int64) { + m.Memory = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/resource_preset_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/resource_preset_service.pb.go new file mode 100644 index 000000000..61e05b876 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/resource_preset_service.pb.go @@ -0,0 +1,338 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/dataproc/v1/resource_preset_service.proto + +package dataproc + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GetResourcePresetRequest struct { + // Required. ID of the resource preset to return. + // To get the resource preset ID, use a [ResourcePresetService.List] request. + ResourcePresetId string `protobuf:"bytes,1,opt,name=resource_preset_id,json=resourcePresetId,proto3" json:"resource_preset_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetResourcePresetRequest) Reset() { *m = GetResourcePresetRequest{} } +func (m *GetResourcePresetRequest) String() string { return proto.CompactTextString(m) } +func (*GetResourcePresetRequest) ProtoMessage() {} +func (*GetResourcePresetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8ea97ca2e41b077e, []int{0} +} + +func (m *GetResourcePresetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetResourcePresetRequest.Unmarshal(m, b) +} +func (m *GetResourcePresetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetResourcePresetRequest.Marshal(b, m, deterministic) +} +func (m *GetResourcePresetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResourcePresetRequest.Merge(m, src) +} +func (m *GetResourcePresetRequest) XXX_Size() int { + return xxx_messageInfo_GetResourcePresetRequest.Size(m) +} +func (m *GetResourcePresetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetResourcePresetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetResourcePresetRequest proto.InternalMessageInfo + +func (m *GetResourcePresetRequest) GetResourcePresetId() string { + if m != nil { + return m.ResourcePresetId + } + return "" +} + +type ListResourcePresetsRequest struct { + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], the service returns a [ListResourcePresetsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + PageSize int64 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set [page_token] to the [ListResourcePresetsResponse.next_page_token] + // returned by a previous list request. + PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListResourcePresetsRequest) Reset() { *m = ListResourcePresetsRequest{} } +func (m *ListResourcePresetsRequest) String() string { return proto.CompactTextString(m) } +func (*ListResourcePresetsRequest) ProtoMessage() {} +func (*ListResourcePresetsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8ea97ca2e41b077e, []int{1} +} + +func (m *ListResourcePresetsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListResourcePresetsRequest.Unmarshal(m, b) +} +func (m *ListResourcePresetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListResourcePresetsRequest.Marshal(b, m, deterministic) +} +func (m *ListResourcePresetsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListResourcePresetsRequest.Merge(m, src) +} +func (m *ListResourcePresetsRequest) XXX_Size() int { + return xxx_messageInfo_ListResourcePresetsRequest.Size(m) +} +func (m *ListResourcePresetsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListResourcePresetsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListResourcePresetsRequest proto.InternalMessageInfo + +func (m *ListResourcePresetsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListResourcePresetsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListResourcePresetsResponse struct { + // List of ResourcePreset resources. + ResourcePresets []*ResourcePreset `protobuf:"bytes,1,rep,name=resource_presets,json=resourcePresets,proto3" json:"resource_presets,omitempty"` + // This token allows you to get the next page of results for list requests. If the number of results + // is larger than [ListResourcePresetsRequest.page_size], use the [next_page_token] as the value + // for the [ListResourcePresetsRequest.page_token] parameter in the next list request. Each subsequent + // list request will have its own [next_page_token] to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListResourcePresetsResponse) Reset() { *m = ListResourcePresetsResponse{} } +func (m *ListResourcePresetsResponse) String() string { return proto.CompactTextString(m) } +func (*ListResourcePresetsResponse) ProtoMessage() {} +func (*ListResourcePresetsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8ea97ca2e41b077e, []int{2} +} + +func (m *ListResourcePresetsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListResourcePresetsResponse.Unmarshal(m, b) +} +func (m *ListResourcePresetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListResourcePresetsResponse.Marshal(b, m, deterministic) +} +func (m *ListResourcePresetsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListResourcePresetsResponse.Merge(m, src) +} +func (m *ListResourcePresetsResponse) XXX_Size() int { + return xxx_messageInfo_ListResourcePresetsResponse.Size(m) +} +func (m *ListResourcePresetsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListResourcePresetsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListResourcePresetsResponse proto.InternalMessageInfo + +func (m *ListResourcePresetsResponse) GetResourcePresets() []*ResourcePreset { + if m != nil { + return m.ResourcePresets + } + return nil +} + +func (m *ListResourcePresetsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +func init() { + proto.RegisterType((*GetResourcePresetRequest)(nil), "yandex.cloud.dataproc.v1.GetResourcePresetRequest") + proto.RegisterType((*ListResourcePresetsRequest)(nil), "yandex.cloud.dataproc.v1.ListResourcePresetsRequest") + proto.RegisterType((*ListResourcePresetsResponse)(nil), "yandex.cloud.dataproc.v1.ListResourcePresetsResponse") +} + +func init() { + proto.RegisterFile("yandex/cloud/dataproc/v1/resource_preset_service.proto", fileDescriptor_8ea97ca2e41b077e) +} + +var fileDescriptor_8ea97ca2e41b077e = []byte{ + // 441 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x31, 0x8b, 0xd4, 0x40, + 0x18, 0x25, 0xbb, 0xe7, 0xe1, 0x8e, 0xc8, 0x1d, 0x03, 0x42, 0x88, 0xab, 0x1c, 0x41, 0x30, 0xcd, + 0xcd, 0xec, 0xe4, 0x54, 0x10, 0xb5, 0x59, 0x90, 0x43, 0x10, 0x39, 0xb2, 0x56, 0x36, 0x61, 0x2e, + 0xf9, 0x88, 0x83, 0xeb, 0x4c, 0xcc, 0x4c, 0xc2, 0x79, 0x62, 0x63, 0x69, 0x6b, 0x65, 0x63, 0xe7, + 0x6f, 0x39, 0x7b, 0xfd, 0x09, 0x16, 0xfe, 0x06, 0x2b, 0xc9, 0x64, 0x03, 0x26, 0x6e, 0x96, 0xb5, + 0x0b, 0x7c, 0xef, 0xbd, 0xef, 0xbd, 0xbc, 0xf9, 0xd0, 0xbd, 0xb7, 0x5c, 0xa6, 0x70, 0x46, 0x93, + 0xa5, 0x2a, 0x53, 0x9a, 0x72, 0xc3, 0xf3, 0x42, 0x25, 0xb4, 0x62, 0xb4, 0x00, 0xad, 0xca, 0x22, + 0x81, 0x38, 0x2f, 0x40, 0x83, 0x89, 0x35, 0x14, 0x95, 0x48, 0x80, 0xe4, 0x85, 0x32, 0x0a, 0xbb, + 0x0d, 0x8f, 0x58, 0x1e, 0x69, 0x79, 0xa4, 0x62, 0xde, 0x34, 0x53, 0x2a, 0x5b, 0x02, 0xe5, 0xb9, + 0xa0, 0x5c, 0x4a, 0x65, 0xb8, 0x11, 0x4a, 0xea, 0x86, 0xe7, 0x91, 0x6d, 0xf7, 0xad, 0xf0, 0x37, + 0x3a, 0xf8, 0x8a, 0x2f, 0x45, 0x6a, 0xf5, 0x9a, 0xb1, 0xff, 0x0c, 0xb9, 0xc7, 0x60, 0xa2, 0x15, + 0xf5, 0xc4, 0x32, 0x23, 0x78, 0x53, 0x82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, 0xc3, 0xdb, + 0x86, 0x4b, 0xf7, 0xee, 0xfe, 0x27, 0xab, 0x29, 0xce, 0xbf, 0x65, 0x0d, 0xdf, 0xc4, 0xd3, 0x4d, + 0x86, 0xe7, 0x80, 0xa6, 0x1d, 0x75, 0x9e, 0x8b, 0xbf, 0x37, 0xbc, 0x78, 0x9c, 0x09, 0xf3, 0xb2, + 0x3c, 0x25, 0x89, 0x7a, 0x4d, 0x1b, 0xe0, 0x61, 0x73, 0x09, 0x99, 0x3a, 0xcc, 0x40, 0xda, 0x23, + 0xa0, 0x43, 0x27, 0xf5, 0xa0, 0xfd, 0x3e, 0xdd, 0xb5, 0xc0, 0xa3, 0x3f, 0x01, 0x00, 0x00, 0xff, + 0xff, 0x40, 0xde, 0xf7, 0x90, 0xee, 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ResourcePresetServiceClient is the client API for ResourcePresetService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ResourcePresetServiceClient interface { + // Returns the specified ResourcePreset resource. + // + // To get the list of available ResourcePreset resources, make a [List] request. + Get(ctx context.Context, in *GetResourcePresetRequest, opts ...grpc.CallOption) (*ResourcePreset, error) + // Retrieves the list of available ResourcePreset resources. + List(ctx context.Context, in *ListResourcePresetsRequest, opts ...grpc.CallOption) (*ListResourcePresetsResponse, error) +} + +type resourcePresetServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewResourcePresetServiceClient(cc grpc.ClientConnInterface) ResourcePresetServiceClient { + return &resourcePresetServiceClient{cc} +} + +func (c *resourcePresetServiceClient) Get(ctx context.Context, in *GetResourcePresetRequest, opts ...grpc.CallOption) (*ResourcePreset, error) { + out := new(ResourcePreset) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.ResourcePresetService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourcePresetServiceClient) List(ctx context.Context, in *ListResourcePresetsRequest, opts ...grpc.CallOption) (*ListResourcePresetsResponse, error) { + out := new(ListResourcePresetsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.ResourcePresetService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ResourcePresetServiceServer is the server API for ResourcePresetService service. +type ResourcePresetServiceServer interface { + // Returns the specified ResourcePreset resource. + // + // To get the list of available ResourcePreset resources, make a [List] request. + Get(context.Context, *GetResourcePresetRequest) (*ResourcePreset, error) + // Retrieves the list of available ResourcePreset resources. + List(context.Context, *ListResourcePresetsRequest) (*ListResourcePresetsResponse, error) +} + +// UnimplementedResourcePresetServiceServer can be embedded to have forward compatible implementations. +type UnimplementedResourcePresetServiceServer struct { +} + +func (*UnimplementedResourcePresetServiceServer) Get(ctx context.Context, req *GetResourcePresetRequest) (*ResourcePreset, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedResourcePresetServiceServer) List(ctx context.Context, req *ListResourcePresetsRequest) (*ListResourcePresetsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} + +func RegisterResourcePresetServiceServer(s *grpc.Server, srv ResourcePresetServiceServer) { + s.RegisterService(&_ResourcePresetService_serviceDesc, srv) +} + +func _ResourcePresetService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetResourcePresetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourcePresetServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.ResourcePresetService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourcePresetServiceServer).Get(ctx, req.(*GetResourcePresetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourcePresetService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListResourcePresetsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourcePresetServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.ResourcePresetService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourcePresetServiceServer).List(ctx, req.(*ListResourcePresetsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ResourcePresetService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.dataproc.v1.ResourcePresetService", + HandlerType: (*ResourcePresetServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Get", + Handler: _ResourcePresetService_Get_Handler, + }, + { + MethodName: "List", + Handler: _ResourcePresetService_List_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/dataproc/v1/resource_preset_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/resource_preset_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/resource_preset_service.pbext.go new file mode 100644 index 000000000..743b5f43c --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/resource_preset_service.pbext.go @@ -0,0 +1,23 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package dataproc + +func (m *GetResourcePresetRequest) SetResourcePresetId(v string) { + m.ResourcePresetId = v +} + +func (m *ListResourcePresetsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListResourcePresetsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListResourcePresetsResponse) SetResourcePresets(v []*ResourcePreset) { + m.ResourcePresets = v +} + +func (m *ListResourcePresetsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/subcluster.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/subcluster.pb.go new file mode 100644 index 000000000..44610cfbd --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/subcluster.pb.go @@ -0,0 +1,305 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/dataproc/v1/subcluster.proto + +package dataproc + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Role int32 + +const ( + Role_ROLE_UNSPECIFIED Role = 0 + // The subcluster fulfills the master role. + // + // Master can run the following services, depending on the requested components: + // * HDFS: Namenode, Secondary Namenode + // * YARN: ResourceManager, Timeline Server + // * HBase Master + // * Hive: Server, Metastore, HCatalog + // * Spark History Server + // * Zeppelin + // * ZooKeeper + Role_MASTERNODE Role = 1 + // The subcluster is a DATANODE in a Data Proc cluster. + // + // DATANODE can run the following services, depending on the requested components: + // * HDFS DataNode + // * YARN NodeManager + // * HBase RegionServer + // * Spark libraries + Role_DATANODE Role = 2 + // The subcluster is a COMPUTENODE in a Data Proc cluster. + // + // COMPUTENODE can run the following services, depending on the requested components: + // * YARN NodeManager + // * Spark libraries + Role_COMPUTENODE Role = 3 +) + +var Role_name = map[int32]string{ + 0: "ROLE_UNSPECIFIED", + 1: "MASTERNODE", + 2: "DATANODE", + 3: "COMPUTENODE", +} + +var Role_value = map[string]int32{ + "ROLE_UNSPECIFIED": 0, + "MASTERNODE": 1, + "DATANODE": 2, + "COMPUTENODE": 3, +} + +func (x Role) String() string { + return proto.EnumName(Role_name, int32(x)) +} + +func (Role) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_3761a92b6a1bd471, []int{0} +} + +// A Data Proc subcluster. For details about the concept, see [documentation](/docs/data-proc/concepts/). +type Subcluster struct { + // ID of the subcluster. Generated at creation time. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // ID of the Data Proc cluster that the subcluster belongs to. + ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Creation timestamp. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Name of the subcluster. The name is unique within the cluster. + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + // Role that is fulfilled by hosts of the subcluster. + Role Role `protobuf:"varint,5,opt,name=role,proto3,enum=yandex.cloud.dataproc.v1.Role" json:"role,omitempty"` + // Resources allocated for each host in the subcluster. + Resources *Resources `protobuf:"bytes,6,opt,name=resources,proto3" json:"resources,omitempty"` + // ID of the VPC subnet used for hosts in the subcluster. + SubnetId string `protobuf:"bytes,7,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` + // Number of hosts in the subcluster. + HostsCount int64 `protobuf:"varint,8,opt,name=hosts_count,json=hostsCount,proto3" json:"hosts_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Subcluster) Reset() { *m = Subcluster{} } +func (m *Subcluster) String() string { return proto.CompactTextString(m) } +func (*Subcluster) ProtoMessage() {} +func (*Subcluster) Descriptor() ([]byte, []int) { + return fileDescriptor_3761a92b6a1bd471, []int{0} +} + +func (m *Subcluster) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Subcluster.Unmarshal(m, b) +} +func (m *Subcluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Subcluster.Marshal(b, m, deterministic) +} +func (m *Subcluster) XXX_Merge(src proto.Message) { + xxx_messageInfo_Subcluster.Merge(m, src) +} +func (m *Subcluster) XXX_Size() int { + return xxx_messageInfo_Subcluster.Size(m) +} +func (m *Subcluster) XXX_DiscardUnknown() { + xxx_messageInfo_Subcluster.DiscardUnknown(m) +} + +var xxx_messageInfo_Subcluster proto.InternalMessageInfo + +func (m *Subcluster) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Subcluster) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *Subcluster) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *Subcluster) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Subcluster) GetRole() Role { + if m != nil { + return m.Role + } + return Role_ROLE_UNSPECIFIED +} + +func (m *Subcluster) GetResources() *Resources { + if m != nil { + return m.Resources + } + return nil +} + +func (m *Subcluster) GetSubnetId() string { + if m != nil { + return m.SubnetId + } + return "" +} + +func (m *Subcluster) GetHostsCount() int64 { + if m != nil { + return m.HostsCount + } + return 0 +} + +// A Data Proc host. For details about the concept, see [documentation](/docs/data-proc/concepts/). +type Host struct { + // Name of the Data Proc host. The host name is assigned by Data Proc at creation time + // and cannot be changed. The name is generated to be unique across all existing Data Proc + // hosts in Yandex.Cloud, as it defines the FQDN of the host. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // ID of the Data Proc subcluster that the host belongs to. + SubclusterId string `protobuf:"bytes,2,opt,name=subcluster_id,json=subclusterId,proto3" json:"subcluster_id,omitempty"` + // Host status code. + Health Health `protobuf:"varint,3,opt,name=health,proto3,enum=yandex.cloud.dataproc.v1.Health" json:"health,omitempty"` + // ID of the Compute virtual machine that is used as the Data Proc host. + ComputeInstanceId string `protobuf:"bytes,4,opt,name=compute_instance_id,json=computeInstanceId,proto3" json:"compute_instance_id,omitempty"` + // Role of the host in the cluster. + Role Role `protobuf:"varint,5,opt,name=role,proto3,enum=yandex.cloud.dataproc.v1.Role" json:"role,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Host) Reset() { *m = Host{} } +func (m *Host) String() string { return proto.CompactTextString(m) } +func (*Host) ProtoMessage() {} +func (*Host) Descriptor() ([]byte, []int) { + return fileDescriptor_3761a92b6a1bd471, []int{1} +} + +func (m *Host) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Host.Unmarshal(m, b) +} +func (m *Host) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Host.Marshal(b, m, deterministic) +} +func (m *Host) XXX_Merge(src proto.Message) { + xxx_messageInfo_Host.Merge(m, src) +} +func (m *Host) XXX_Size() int { + return xxx_messageInfo_Host.Size(m) +} +func (m *Host) XXX_DiscardUnknown() { + xxx_messageInfo_Host.DiscardUnknown(m) +} + +var xxx_messageInfo_Host proto.InternalMessageInfo + +func (m *Host) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Host) GetSubclusterId() string { + if m != nil { + return m.SubclusterId + } + return "" +} + +func (m *Host) GetHealth() Health { + if m != nil { + return m.Health + } + return Health_HEALTH_UNKNOWN +} + +func (m *Host) GetComputeInstanceId() string { + if m != nil { + return m.ComputeInstanceId + } + return "" +} + +func (m *Host) GetRole() Role { + if m != nil { + return m.Role + } + return Role_ROLE_UNSPECIFIED +} + +func init() { + proto.RegisterEnum("yandex.cloud.dataproc.v1.Role", Role_name, Role_value) + proto.RegisterType((*Subcluster)(nil), "yandex.cloud.dataproc.v1.Subcluster") + proto.RegisterType((*Host)(nil), "yandex.cloud.dataproc.v1.Host") +} + +func init() { + proto.RegisterFile("yandex/cloud/dataproc/v1/subcluster.proto", fileDescriptor_3761a92b6a1bd471) +} + +var fileDescriptor_3761a92b6a1bd471 = []byte{ + // 508 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xd1, 0x8e, 0xd2, 0x4e, + 0x14, 0xc6, 0xff, 0x85, 0xfe, 0x11, 0x0e, 0x2b, 0xe2, 0xe8, 0x45, 0x83, 0xbb, 0x2e, 0xd9, 0x8d, + 0x09, 0x9a, 0x30, 0x0d, 0x6c, 0x62, 0x34, 0x5e, 0xb1, 0x50, 0xb3, 0x8d, 0xee, 0xb2, 0x19, 0xd8, + 0x1b, 0x6f, 0xc8, 0x30, 0x33, 0x42, 0x93, 0xb6, 0xd3, 0x74, 0xa6, 0x44, 0x5f, 0xc1, 0x27, 0xd3, + 0x87, 0xf0, 0x5d, 0x4c, 0xa7, 0xad, 0xb8, 0x17, 0x78, 0xe1, 0x5d, 0xe7, 0x3b, 0xbf, 0xd3, 0xf3, + 0x9d, 0xaf, 0x53, 0x78, 0xf9, 0x95, 0xc6, 0x5c, 0x7c, 0x71, 0x59, 0x28, 0x33, 0xee, 0x72, 0xaa, + 0x69, 0x92, 0x4a, 0xe6, 0xee, 0x46, 0xae, 0xca, 0xd6, 0x2c, 0xcc, 0x94, 0x16, 0x29, 0x4e, 0x52, + 0xa9, 0x25, 0x72, 0x0a, 0x14, 0x1b, 0x14, 0x57, 0x28, 0xde, 0x8d, 0x7a, 0xa7, 0x1b, 0x29, 0x37, + 0xa1, 0x70, 0x0d, 0xb7, 0xce, 0x3e, 0xbb, 0x3a, 0x88, 0x84, 0xd2, 0x34, 0x4a, 0x8a, 0xd6, 0xde, + 0x8b, 0x83, 0x53, 0x98, 0x8c, 0x22, 0x19, 0x97, 0xd8, 0xc9, 0x3d, 0x6c, 0x47, 0xc3, 0x80, 0x53, + 0x1d, 0x54, 0xe5, 0xb3, 0x1f, 0x35, 0x80, 0xc5, 0x6f, 0x57, 0xa8, 0x03, 0xb5, 0x80, 0x3b, 0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 0xb2, 0xec, 0x8c, 0xfb, 0x87, 0xfd, 0x5f, 0x19, 0x8e, 0x94, 0x3c, 0xc2, + 0xf0, 0x84, 0xc9, 0x28, 0xc9, 0xb4, 0x58, 0x05, 0xb1, 0xd2, 0x34, 0x66, 0x22, 0x1f, 0x62, 0xd2, + 0x25, 0x8f, 0xcb, 0x92, 0x5f, 0x56, 0x7c, 0xfe, 0x2f, 0x01, 0xbf, 0xfa, 0x00, 0x76, 0x7e, 0x42, + 0x4f, 0xa1, 0x4b, 0xe6, 0x1f, 0xbd, 0xd5, 0xdd, 0xcd, 0xe2, 0xd6, 0x9b, 0xfa, 0xef, 0x7d, 0x6f, + 0xd6, 0xfd, 0x0f, 0x75, 0x00, 0xae, 0x27, 0x8b, 0xa5, 0x47, 0x6e, 0xe6, 0x33, 0xaf, 0x6b, 0xa1, + 0x23, 0x68, 0xce, 0x26, 0xcb, 0x89, 0x39, 0xd5, 0xd0, 0x23, 0x68, 0x4f, 0xe7, 0xd7, 0xb7, 0x77, + 0x4b, 0xcf, 0x08, 0xf5, 0x4b, 0x01, 0xc7, 0xf7, 0x66, 0xd2, 0x24, 0xf8, 0x73, 0xee, 0x27, 0x6f, + 0x13, 0xe8, 0x6d, 0xb6, 0xc6, 0x4c, 0x46, 0x6e, 0x01, 0x0e, 0x8b, 0x2b, 0xbc, 0x91, 0xc3, 0x8d, + 0x88, 0xcd, 0xe5, 0x72, 0x0f, 0xfd, 0x02, 0xef, 0xaa, 0xe7, 0x75, 0xc3, 0x80, 0x17, 0xbf, 0x02, + 0x00, 0x00, 0xff, 0xff, 0x71, 0xfc, 0x2b, 0xc1, 0x94, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/subcluster.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/subcluster.pbext.go new file mode 100644 index 000000000..ab702e512 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/subcluster.pbext.go @@ -0,0 +1,59 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package dataproc + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Subcluster) SetId(v string) { + m.Id = v +} + +func (m *Subcluster) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *Subcluster) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Subcluster) SetName(v string) { + m.Name = v +} + +func (m *Subcluster) SetRole(v Role) { + m.Role = v +} + +func (m *Subcluster) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Subcluster) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *Subcluster) SetHostsCount(v int64) { + m.HostsCount = v +} + +func (m *Host) SetName(v string) { + m.Name = v +} + +func (m *Host) SetSubclusterId(v string) { + m.SubclusterId = v +} + +func (m *Host) SetHealth(v Health) { + m.Health = v +} + +func (m *Host) SetComputeInstanceId(v string) { + m.ComputeInstanceId = v +} + +func (m *Host) SetRole(v Role) { + m.Role = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/subcluster_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/subcluster_service.pb.go new file mode 100644 index 000000000..a7ca9af10 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/subcluster_service.pb.go @@ -0,0 +1,922 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/dataproc/v1/subcluster_service.proto + +package dataproc + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud/api" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GetSubclusterRequest struct { + // ID of the Data Proc cluster that the subcluster belongs to. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // ID of the subcluster to return. + // + // To get a subcluster ID make a [SubclusterService.List] request. + SubclusterId string `protobuf:"bytes,2,opt,name=subcluster_id,json=subclusterId,proto3" json:"subcluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetSubclusterRequest) Reset() { *m = GetSubclusterRequest{} } +func (m *GetSubclusterRequest) String() string { return proto.CompactTextString(m) } +func (*GetSubclusterRequest) ProtoMessage() {} +func (*GetSubclusterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_27f77207766937a6, []int{0} +} + +func (m *GetSubclusterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetSubclusterRequest.Unmarshal(m, b) +} +func (m *GetSubclusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetSubclusterRequest.Marshal(b, m, deterministic) +} +func (m *GetSubclusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetSubclusterRequest.Merge(m, src) +} +func (m *GetSubclusterRequest) XXX_Size() int { + return xxx_messageInfo_GetSubclusterRequest.Size(m) +} +func (m *GetSubclusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetSubclusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetSubclusterRequest proto.InternalMessageInfo + +func (m *GetSubclusterRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *GetSubclusterRequest) GetSubclusterId() string { + if m != nil { + return m.SubclusterId + } + return "" +} + +type ListSubclustersRequest struct { + // ID of the Data Proc cluster to list subclusters in. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], the service returns a [ListSubclustersResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListSubclustersResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters subclusters listed in the response. + // + // The expression must specify: + // 1. The field name. Currently you can use filtering only on [Subcluster.name] field. + // 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values. + // 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]. + // Example of a filter: `name=dataproc123_subcluster456`. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListSubclustersRequest) Reset() { *m = ListSubclustersRequest{} } +func (m *ListSubclustersRequest) String() string { return proto.CompactTextString(m) } +func (*ListSubclustersRequest) ProtoMessage() {} +func (*ListSubclustersRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_27f77207766937a6, []int{1} +} + +func (m *ListSubclustersRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListSubclustersRequest.Unmarshal(m, b) +} +func (m *ListSubclustersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListSubclustersRequest.Marshal(b, m, deterministic) +} +func (m *ListSubclustersRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListSubclustersRequest.Merge(m, src) +} +func (m *ListSubclustersRequest) XXX_Size() int { + return xxx_messageInfo_ListSubclustersRequest.Size(m) +} +func (m *ListSubclustersRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListSubclustersRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListSubclustersRequest proto.InternalMessageInfo + +func (m *ListSubclustersRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *ListSubclustersRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListSubclustersRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +func (m *ListSubclustersRequest) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +type ListSubclustersResponse struct { + // List of subclusters in the specified cluster. + Subclusters []*Subcluster `protobuf:"bytes,1,rep,name=subclusters,proto3" json:"subclusters,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListSubclustersRequest.page_size], use `next_page_token` as the value + // for the [ListSubclustersRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListSubclustersResponse) Reset() { *m = ListSubclustersResponse{} } +func (m *ListSubclustersResponse) String() string { return proto.CompactTextString(m) } +func (*ListSubclustersResponse) ProtoMessage() {} +func (*ListSubclustersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_27f77207766937a6, []int{2} +} + +func (m *ListSubclustersResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListSubclustersResponse.Unmarshal(m, b) +} +func (m *ListSubclustersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListSubclustersResponse.Marshal(b, m, deterministic) +} +func (m *ListSubclustersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListSubclustersResponse.Merge(m, src) +} +func (m *ListSubclustersResponse) XXX_Size() int { + return xxx_messageInfo_ListSubclustersResponse.Size(m) +} +func (m *ListSubclustersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListSubclustersResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListSubclustersResponse proto.InternalMessageInfo + +func (m *ListSubclustersResponse) GetSubclusters() []*Subcluster { + if m != nil { + return m.Subclusters + } + return nil +} + +func (m *ListSubclustersResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type CreateSubclusterRequest struct { + // ID of the Data Proc cluster to create a subcluster in. + // + // To get a cluster ID, make a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Name of the subcluster. The name must be unique within the cluster. The name can’t be + // changed when the subcluster is created. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Role that is fulfilled by hosts of the subcluster. + Role Role `protobuf:"varint,3,opt,name=role,proto3,enum=yandex.cloud.dataproc.v1.Role" json:"role,omitempty"` + // Resources allocated for each host in the subcluster. + Resources *Resources `protobuf:"bytes,4,opt,name=resources,proto3" json:"resources,omitempty"` + // ID of the VPC subnet used for hosts in the subcluster. + SubnetId string `protobuf:"bytes,5,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` + // Number of hosts in the subcluster. + HostsCount int64 `protobuf:"varint,6,opt,name=hosts_count,json=hostsCount,proto3" json:"hosts_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateSubclusterRequest) Reset() { *m = CreateSubclusterRequest{} } +func (m *CreateSubclusterRequest) String() string { return proto.CompactTextString(m) } +func (*CreateSubclusterRequest) ProtoMessage() {} +func (*CreateSubclusterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_27f77207766937a6, []int{3} +} + +func (m *CreateSubclusterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateSubclusterRequest.Unmarshal(m, b) +} +func (m *CreateSubclusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateSubclusterRequest.Marshal(b, m, deterministic) +} +func (m *CreateSubclusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateSubclusterRequest.Merge(m, src) +} +func (m *CreateSubclusterRequest) XXX_Size() int { + return xxx_messageInfo_CreateSubclusterRequest.Size(m) +} +func (m *CreateSubclusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateSubclusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateSubclusterRequest proto.InternalMessageInfo + +func (m *CreateSubclusterRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *CreateSubclusterRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *CreateSubclusterRequest) GetRole() Role { + if m != nil { + return m.Role + } + return Role_ROLE_UNSPECIFIED +} + +func (m *CreateSubclusterRequest) GetResources() *Resources { + if m != nil { + return m.Resources + } + return nil +} + +func (m *CreateSubclusterRequest) GetSubnetId() string { + if m != nil { + return m.SubnetId + } + return "" +} + +func (m *CreateSubclusterRequest) GetHostsCount() int64 { + if m != nil { + return m.HostsCount + } + return 0 +} + +type CreateSubclusterMetadata struct { + // ID of the cluster that the subcluster is being added to. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // ID of the subcluster that is being created. + SubclusterId string `protobuf:"bytes,2,opt,name=subcluster_id,json=subclusterId,proto3" json:"subcluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateSubclusterMetadata) Reset() { *m = CreateSubclusterMetadata{} } +func (m *CreateSubclusterMetadata) String() string { return proto.CompactTextString(m) } +func (*CreateSubclusterMetadata) ProtoMessage() {} +func (*CreateSubclusterMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_27f77207766937a6, []int{4} +} + +func (m *CreateSubclusterMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateSubclusterMetadata.Unmarshal(m, b) +} +func (m *CreateSubclusterMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateSubclusterMetadata.Marshal(b, m, deterministic) +} +func (m *CreateSubclusterMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateSubclusterMetadata.Merge(m, src) +} +func (m *CreateSubclusterMetadata) XXX_Size() int { + return xxx_messageInfo_CreateSubclusterMetadata.Size(m) +} +func (m *CreateSubclusterMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CreateSubclusterMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateSubclusterMetadata proto.InternalMessageInfo + +func (m *CreateSubclusterMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *CreateSubclusterMetadata) GetSubclusterId() string { + if m != nil { + return m.SubclusterId + } + return "" +} + +type UpdateSubclusterRequest struct { + // ID of the cluster to update a subcluster in. + // + // To get a cluster ID, make a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // ID of the subcluster to update. + // + // To get a subcluster ID, make a [SubclusterService.List] request. + SubclusterId string `protobuf:"bytes,2,opt,name=subcluster_id,json=subclusterId,proto3" json:"subcluster_id,omitempty"` + // Field mask that specifies which attributes of the subcluster should be updated. + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // New configuration of resources that should be allocated for each host in the subcluster. + Resources *Resources `protobuf:"bytes,4,opt,name=resources,proto3" json:"resources,omitempty"` + // New name for the subcluster. The name must be unique within the cluster. + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + // New number of hosts in the subcluster. + HostsCount int64 `protobuf:"varint,6,opt,name=hosts_count,json=hostsCount,proto3" json:"hosts_count,omitempty"` + // Timeout to gracefully decommission nodes. In seconds. Default value: 0 + DecommissionTimeout int64 `protobuf:"varint,7,opt,name=decommission_timeout,json=decommissionTimeout,proto3" json:"decommission_timeout,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateSubclusterRequest) Reset() { *m = UpdateSubclusterRequest{} } +func (m *UpdateSubclusterRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateSubclusterRequest) ProtoMessage() {} +func (*UpdateSubclusterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_27f77207766937a6, []int{5} +} + +func (m *UpdateSubclusterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateSubclusterRequest.Unmarshal(m, b) +} +func (m *UpdateSubclusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateSubclusterRequest.Marshal(b, m, deterministic) +} +func (m *UpdateSubclusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateSubclusterRequest.Merge(m, src) +} +func (m *UpdateSubclusterRequest) XXX_Size() int { + return xxx_messageInfo_UpdateSubclusterRequest.Size(m) +} +func (m *UpdateSubclusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateSubclusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateSubclusterRequest proto.InternalMessageInfo + +func (m *UpdateSubclusterRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *UpdateSubclusterRequest) GetSubclusterId() string { + if m != nil { + return m.SubclusterId + } + return "" +} + +func (m *UpdateSubclusterRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdateSubclusterRequest) GetResources() *Resources { + if m != nil { + return m.Resources + } + return nil +} + +func (m *UpdateSubclusterRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *UpdateSubclusterRequest) GetHostsCount() int64 { + if m != nil { + return m.HostsCount + } + return 0 +} + +func (m *UpdateSubclusterRequest) GetDecommissionTimeout() int64 { + if m != nil { + return m.DecommissionTimeout + } + return 0 +} + +type UpdateSubclusterMetadata struct { + // ID of the cluster whose subcluster is being updated. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // ID of the subcluster that is being updated. + SubclusterId string `protobuf:"bytes,2,opt,name=subcluster_id,json=subclusterId,proto3" json:"subcluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateSubclusterMetadata) Reset() { *m = UpdateSubclusterMetadata{} } +func (m *UpdateSubclusterMetadata) String() string { return proto.CompactTextString(m) } +func (*UpdateSubclusterMetadata) ProtoMessage() {} +func (*UpdateSubclusterMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_27f77207766937a6, []int{6} +} + +func (m *UpdateSubclusterMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateSubclusterMetadata.Unmarshal(m, b) +} +func (m *UpdateSubclusterMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateSubclusterMetadata.Marshal(b, m, deterministic) +} +func (m *UpdateSubclusterMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateSubclusterMetadata.Merge(m, src) +} +func (m *UpdateSubclusterMetadata) XXX_Size() int { + return xxx_messageInfo_UpdateSubclusterMetadata.Size(m) +} +func (m *UpdateSubclusterMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateSubclusterMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateSubclusterMetadata proto.InternalMessageInfo + +func (m *UpdateSubclusterMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *UpdateSubclusterMetadata) GetSubclusterId() string { + if m != nil { + return m.SubclusterId + } + return "" +} + +type DeleteSubclusterRequest struct { + // ID of the cluster to remove a subcluster from. + // + // To get a cluster ID, make a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // ID of the subcluster to delete. + SubclusterId string `protobuf:"bytes,2,opt,name=subcluster_id,json=subclusterId,proto3" json:"subcluster_id,omitempty"` + // Timeout to gracefully decommission nodes. In seconds. Default value: 0 + DecommissionTimeout int64 `protobuf:"varint,3,opt,name=decommission_timeout,json=decommissionTimeout,proto3" json:"decommission_timeout,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteSubclusterRequest) Reset() { *m = DeleteSubclusterRequest{} } +func (m *DeleteSubclusterRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteSubclusterRequest) ProtoMessage() {} +func (*DeleteSubclusterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_27f77207766937a6, []int{7} +} + +func (m *DeleteSubclusterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteSubclusterRequest.Unmarshal(m, b) +} +func (m *DeleteSubclusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteSubclusterRequest.Marshal(b, m, deterministic) +} +func (m *DeleteSubclusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteSubclusterRequest.Merge(m, src) +} +func (m *DeleteSubclusterRequest) XXX_Size() int { + return xxx_messageInfo_DeleteSubclusterRequest.Size(m) +} +func (m *DeleteSubclusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteSubclusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteSubclusterRequest proto.InternalMessageInfo + +func (m *DeleteSubclusterRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *DeleteSubclusterRequest) GetSubclusterId() string { + if m != nil { + return m.SubclusterId + } + return "" +} + +func (m *DeleteSubclusterRequest) GetDecommissionTimeout() int64 { + if m != nil { + return m.DecommissionTimeout + } + return 0 +} + +type DeleteSubclusterMetadata struct { + // ID of the cluster whose subcluster is being deleted. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // ID of the subcluster that is being deleted. + SubclusterId string `protobuf:"bytes,2,opt,name=subcluster_id,json=subclusterId,proto3" json:"subcluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteSubclusterMetadata) Reset() { *m = DeleteSubclusterMetadata{} } +func (m *DeleteSubclusterMetadata) String() string { return proto.CompactTextString(m) } +func (*DeleteSubclusterMetadata) ProtoMessage() {} +func (*DeleteSubclusterMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_27f77207766937a6, []int{8} +} + +func (m *DeleteSubclusterMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteSubclusterMetadata.Unmarshal(m, b) +} +func (m *DeleteSubclusterMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteSubclusterMetadata.Marshal(b, m, deterministic) +} +func (m *DeleteSubclusterMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteSubclusterMetadata.Merge(m, src) +} +func (m *DeleteSubclusterMetadata) XXX_Size() int { + return xxx_messageInfo_DeleteSubclusterMetadata.Size(m) +} +func (m *DeleteSubclusterMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteSubclusterMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteSubclusterMetadata proto.InternalMessageInfo + +func (m *DeleteSubclusterMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *DeleteSubclusterMetadata) GetSubclusterId() string { + if m != nil { + return m.SubclusterId + } + return "" +} + +func init() { + proto.RegisterType((*GetSubclusterRequest)(nil), "yandex.cloud.dataproc.v1.GetSubclusterRequest") + proto.RegisterType((*ListSubclustersRequest)(nil), "yandex.cloud.dataproc.v1.ListSubclustersRequest") + proto.RegisterType((*ListSubclustersResponse)(nil), "yandex.cloud.dataproc.v1.ListSubclustersResponse") + proto.RegisterType((*CreateSubclusterRequest)(nil), "yandex.cloud.dataproc.v1.CreateSubclusterRequest") + proto.RegisterType((*CreateSubclusterMetadata)(nil), "yandex.cloud.dataproc.v1.CreateSubclusterMetadata") + proto.RegisterType((*UpdateSubclusterRequest)(nil), "yandex.cloud.dataproc.v1.UpdateSubclusterRequest") + proto.RegisterType((*UpdateSubclusterMetadata)(nil), "yandex.cloud.dataproc.v1.UpdateSubclusterMetadata") + proto.RegisterType((*DeleteSubclusterRequest)(nil), "yandex.cloud.dataproc.v1.DeleteSubclusterRequest") + proto.RegisterType((*DeleteSubclusterMetadata)(nil), "yandex.cloud.dataproc.v1.DeleteSubclusterMetadata") +} + +func init() { + proto.RegisterFile("yandex/cloud/dataproc/v1/subcluster_service.proto", fileDescriptor_27f77207766937a6) +} + +var fileDescriptor_27f77207766937a6 = []byte{ + // 949 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xbf, 0x6f, 0xdb, 0x46, + 0x14, 0x06, 0x2d, 0x59, 0xb6, 0x9e, 0x92, 0x16, 0xbd, 0xa6, 0x35, 0x21, 0x24, 0x85, 0xc3, 0xb6, + 0x8e, 0xe3, 0x46, 0x24, 0x4f, 0x69, 0x8c, 0xb4, 0x89, 0x8d, 0xd6, 0x6e, 0x6c, 0x18, 0x68, 0xd0, + 0x82, 0x4e, 0x97, 0x1a, 0x81, 0x40, 0x91, 0x67, 0x85, 0x30, 0xc5, 0x63, 0x79, 0x47, 0x21, 0xb1, + 0xeb, 0xa5, 0x5b, 0xbd, 0x76, 0xef, 0xd2, 0xff, 0x20, 0x5b, 0x81, 0x6e, 0x1d, 0xe4, 0x39, 0x99, + 0x82, 0xae, 0x1d, 0x3a, 0x77, 0xf4, 0x54, 0xf0, 0x48, 0x99, 0x94, 0x2a, 0x0a, 0x52, 0x04, 0x23, + 0xdb, 0x91, 0xef, 0x7b, 0xf7, 0xde, 0xf7, 0x7e, 0x1e, 0xe0, 0x67, 0xa6, 0x67, 0x93, 0xa7, 0x9a, + 0xe5, 0xd2, 0xd0, 0xd6, 0x6c, 0x93, 0x9b, 0x7e, 0x40, 0x2d, 0xad, 0x83, 0x35, 0x16, 0x36, 0x2d, + 0x37, 0x64, 0x9c, 0x04, 0x0d, 0x46, 0x82, 0x8e, 0x63, 0x11, 0xd5, 0x0f, 0x28, 0xa7, 0x48, 0x8e, + 0x55, 0x54, 0xa1, 0xa2, 0xf6, 0x54, 0xd4, 0x0e, 0xae, 0x5e, 0x6d, 0x51, 0xda, 0x72, 0x89, 0x66, + 0xfa, 0x8e, 0x66, 0x7a, 0x1e, 0xe5, 0x26, 0x77, 0xa8, 0xc7, 0x62, 0xbd, 0xea, 0x62, 0x22, 0x15, + 0x5f, 0xcd, 0x70, 0x5f, 0xdb, 0x77, 0x88, 0x6b, 0x37, 0xda, 0x26, 0x3b, 0x48, 0x10, 0x4b, 0x7d, + 0xce, 0x50, 0x9f, 0x04, 0xe2, 0x82, 0xf4, 0x94, 0xe0, 0x3e, 0xce, 0x75, 0xda, 0xa2, 0xed, 0xf6, + 0x39, 0xec, 0xe6, 0x18, 0xdc, 0x12, 0xe8, 0xb5, 0x3e, 0x68, 0xc7, 0x74, 0x1d, 0x3b, 0x6b, 0x70, + 0xb1, 0x4f, 0x1c, 0xd1, 0x1b, 0x70, 0x49, 0xe9, 0xc0, 0x95, 0x6d, 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52, 0x56, 0x85, 0xd7, + 0x3a, 0x52, 0x27, 0xf3, 0x1a, 0xfd, 0x29, 0x41, 0x29, 0x9e, 0x8d, 0x68, 0x84, 0xd5, 0x9c, 0xc5, + 0x54, 0xbd, 0xde, 0xaf, 0x92, 0x3e, 0x4b, 0xbe, 0xe9, 0x9d, 0x14, 0xeb, 0xf9, 0x8b, 0x95, 0xa5, + 0x11, 0xf3, 0x17, 0xd2, 0x7f, 0x82, 0xc2, 0x6d, 0x65, 0x42, 0x0a, 0x9f, 0x4b, 0x2b, 0xe8, 0xa5, + 0x04, 0xa5, 0xb8, 0x99, 0x47, 0xb1, 0xc8, 0x19, 0xc7, 0xe3, 0xb0, 0x60, 0x31, 0x8b, 0xdc, 0x81, + 0x31, 0xc8, 0x62, 0xb3, 0x3e, 0x65, 0xf9, 0x44, 0xac, 0xfe, 0x92, 0xa0, 0x14, 0xb7, 0xdc, 0x28, + 0x56, 0x39, 0xf3, 0x64, 0x1c, 0x56, 0x47, 0xcf, 0x5f, 0xac, 0xe0, 0x11, 0x6d, 0xfd, 0xde, 0xe0, + 0xc6, 0x78, 0xd0, 0xf6, 0xf9, 0xb3, 0xb8, 0x3f, 0x56, 0xa6, 0x24, 0xb8, 0x41, 0xe0, 0x6a, 0x9f, + 0x83, 0xa6, 0xef, 0x64, 0x79, 0x7d, 0xff, 0xa0, 0xe5, 0xf0, 0x27, 0x61, 0x53, 0xb5, 0x68, 0x5b, + 0x8b, 0x81, 0xb5, 0xf8, 0x01, 0xdc, 0xa2, 0xb5, 0x16, 0xf1, 0x84, 0x4f, 0x5a, 0xde, 0x1b, 0xfb, + 0x5e, 0xef, 0xdc, 0x2c, 0x09, 0xe0, 0xed, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x60, 0xe1, 0x19, + 0x0f, 0x6b, 0x0c, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// SubclusterServiceClient is the client API for SubclusterService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type SubclusterServiceClient interface { + // Returns the specified subcluster. + // + // To get the list of all available subclusters, make a [SubclusterService.List] request. + Get(ctx context.Context, in *GetSubclusterRequest, opts ...grpc.CallOption) (*Subcluster, error) + // Retrieves a list of subclusters in the specified cluster. + List(ctx context.Context, in *ListSubclustersRequest, opts ...grpc.CallOption) (*ListSubclustersResponse, error) + // Creates a subcluster in the specified cluster. + Create(ctx context.Context, in *CreateSubclusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Updates the specified subcluster. + Update(ctx context.Context, in *UpdateSubclusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Deletes the specified subcluster. + Delete(ctx context.Context, in *DeleteSubclusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) +} + +type subclusterServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSubclusterServiceClient(cc grpc.ClientConnInterface) SubclusterServiceClient { + return &subclusterServiceClient{cc} +} + +func (c *subclusterServiceClient) Get(ctx context.Context, in *GetSubclusterRequest, opts ...grpc.CallOption) (*Subcluster, error) { + out := new(Subcluster) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.SubclusterService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *subclusterServiceClient) List(ctx context.Context, in *ListSubclustersRequest, opts ...grpc.CallOption) (*ListSubclustersResponse, error) { + out := new(ListSubclustersResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.SubclusterService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *subclusterServiceClient) Create(ctx context.Context, in *CreateSubclusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.SubclusterService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *subclusterServiceClient) Update(ctx context.Context, in *UpdateSubclusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.SubclusterService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *subclusterServiceClient) Delete(ctx context.Context, in *DeleteSubclusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.dataproc.v1.SubclusterService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SubclusterServiceServer is the server API for SubclusterService service. +type SubclusterServiceServer interface { + // Returns the specified subcluster. + // + // To get the list of all available subclusters, make a [SubclusterService.List] request. + Get(context.Context, *GetSubclusterRequest) (*Subcluster, error) + // Retrieves a list of subclusters in the specified cluster. + List(context.Context, *ListSubclustersRequest) (*ListSubclustersResponse, error) + // Creates a subcluster in the specified cluster. + Create(context.Context, *CreateSubclusterRequest) (*operation.Operation, error) + // Updates the specified subcluster. + Update(context.Context, *UpdateSubclusterRequest) (*operation.Operation, error) + // Deletes the specified subcluster. + Delete(context.Context, *DeleteSubclusterRequest) (*operation.Operation, error) +} + +// UnimplementedSubclusterServiceServer can be embedded to have forward compatible implementations. +type UnimplementedSubclusterServiceServer struct { +} + +func (*UnimplementedSubclusterServiceServer) Get(ctx context.Context, req *GetSubclusterRequest) (*Subcluster, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedSubclusterServiceServer) List(ctx context.Context, req *ListSubclustersRequest) (*ListSubclustersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (*UnimplementedSubclusterServiceServer) Create(ctx context.Context, req *CreateSubclusterRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (*UnimplementedSubclusterServiceServer) Update(ctx context.Context, req *UpdateSubclusterRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedSubclusterServiceServer) Delete(ctx context.Context, req *DeleteSubclusterRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} + +func RegisterSubclusterServiceServer(s *grpc.Server, srv SubclusterServiceServer) { + s.RegisterService(&_SubclusterService_serviceDesc, srv) +} + +func _SubclusterService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSubclusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubclusterServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.SubclusterService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubclusterServiceServer).Get(ctx, req.(*GetSubclusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SubclusterService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListSubclustersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubclusterServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.SubclusterService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubclusterServiceServer).List(ctx, req.(*ListSubclustersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SubclusterService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateSubclusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubclusterServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.SubclusterService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubclusterServiceServer).Create(ctx, req.(*CreateSubclusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SubclusterService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateSubclusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubclusterServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.SubclusterService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubclusterServiceServer).Update(ctx, req.(*UpdateSubclusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SubclusterService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteSubclusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubclusterServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.dataproc.v1.SubclusterService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubclusterServiceServer).Delete(ctx, req.(*DeleteSubclusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _SubclusterService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.dataproc.v1.SubclusterService", + HandlerType: (*SubclusterServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Get", + Handler: _SubclusterService_Get_Handler, + }, + { + MethodName: "List", + Handler: _SubclusterService_List_Handler, + }, + { + MethodName: "Create", + Handler: _SubclusterService_Create_Handler, + }, + { + MethodName: "Update", + Handler: _SubclusterService_Update_Handler, + }, + { + MethodName: "Delete", + Handler: _SubclusterService_Delete_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/dataproc/v1/subcluster_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/subcluster_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/subcluster_service.pbext.go new file mode 100644 index 000000000..16c2901b5 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1/subcluster_service.pbext.go @@ -0,0 +1,127 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package dataproc + +import ( + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetSubclusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetSubclusterRequest) SetSubclusterId(v string) { + m.SubclusterId = v +} + +func (m *ListSubclustersRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListSubclustersRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListSubclustersRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListSubclustersRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListSubclustersResponse) SetSubclusters(v []*Subcluster) { + m.Subclusters = v +} + +func (m *ListSubclustersResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateSubclusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateSubclusterRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateSubclusterRequest) SetRole(v Role) { + m.Role = v +} + +func (m *CreateSubclusterRequest) SetResources(v *Resources) { + m.Resources = v +} + +func (m *CreateSubclusterRequest) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *CreateSubclusterRequest) SetHostsCount(v int64) { + m.HostsCount = v +} + +func (m *CreateSubclusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateSubclusterMetadata) SetSubclusterId(v string) { + m.SubclusterId = v +} + +func (m *UpdateSubclusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateSubclusterRequest) SetSubclusterId(v string) { + m.SubclusterId = v +} + +func (m *UpdateSubclusterRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateSubclusterRequest) SetResources(v *Resources) { + m.Resources = v +} + +func (m *UpdateSubclusterRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateSubclusterRequest) SetHostsCount(v int64) { + m.HostsCount = v +} + +func (m *UpdateSubclusterRequest) SetDecommissionTimeout(v int64) { + m.DecommissionTimeout = v +} + +func (m *UpdateSubclusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateSubclusterMetadata) SetSubclusterId(v string) { + m.SubclusterId = v +} + +func (m *DeleteSubclusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteSubclusterRequest) SetSubclusterId(v string) { + m.SubclusterId = v +} + +func (m *DeleteSubclusterRequest) SetDecommissionTimeout(v int64) { + m.DecommissionTimeout = v +} + +func (m *DeleteSubclusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteSubclusterMetadata) SetSubclusterId(v string) { + m.SubclusterId = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint/api_endpoint.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint/api_endpoint.pb.go index f9cad8b5c..66f2d67e4 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint/api_endpoint.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint/api_endpoint.pb.go @@ -76,15 +76,16 @@ func init() { } var fileDescriptor_f047dfc88bc45bd0 = []byte{ - // 152 bytes of a gzipped FileDescriptorProto + // 161 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xa8, 0x4c, 0xcc, 0x4b, 0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0x4f, 0xcd, 0x4b, 0x29, 0xc8, 0xcf, 0xcc, 0x2b, 0xd1, 0x4f, 0x2c, 0xc8, 0x8c, 0x87, 0x71, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x44, 0x21, 0x2a, 0xf5, 0xc0, 0x2a, 0xf5, 0x60, 0x92, 0x4a, 0xe6, 0x5c, 0xdc, 0x8e, 0x05, 0x99, 0xae, 0x50, 0xae, 0x10, 0x1f, 0x17, 0x53, 0x66, 0x8a, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x67, 0x10, 0x53, 0x66, 0x8a, 0x90, 0x04, 0x17, 0x7b, 0x62, 0x4a, 0x4a, 0x51, 0x6a, 0x71, 0xb1, 0x04, 0x13, 0x58, - 0x10, 0xc6, 0x75, 0x72, 0x89, 0x72, 0x4a, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, - 0xd5, 0x87, 0x18, 0xae, 0x0b, 0x71, 0x46, 0x7a, 0xbe, 0x6e, 0x7a, 0x6a, 0x1e, 0xd8, 0x5a, 0x7d, - 0xac, 0xee, 0xb3, 0x86, 0x31, 0x92, 0xd8, 0xc0, 0xaa, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, - 0x42, 0x6c, 0x3b, 0xb8, 0xc8, 0x00, 0x00, 0x00, + 0x10, 0xc6, 0x75, 0x8a, 0xe7, 0x92, 0x44, 0x31, 0x31, 0xb1, 0x20, 0x13, 0x6e, 0x6a, 0x94, 0x53, + 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0x44, 0x95, 0x2e, 0xc4, 0x85, + 0xe9, 0xf9, 0xba, 0xe9, 0xa9, 0x79, 0x60, 0x17, 0xe9, 0x63, 0x75, 0xba, 0x35, 0x8c, 0x91, 0xc4, + 0x06, 0x56, 0x65, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x14, 0x4f, 0xd4, 0x1f, 0xe3, 0x00, 0x00, + 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint/api_endpoint.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint/api_endpoint.pbext.go new file mode 100644 index 000000000..694c26484 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint/api_endpoint.pbext.go @@ -0,0 +1,11 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package endpoint + +func (m *ApiEndpoint) SetId(v string) { + m.Id = v +} + +func (m *ApiEndpoint) SetAddress(v string) { + m.Address = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint/api_endpoint_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint/api_endpoint_service.pb.go index 201e28bc1..543bb620a 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint/api_endpoint_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint/api_endpoint_service.pb.go @@ -169,40 +169,40 @@ func init() { } var fileDescriptor_59b4331650989b1f = []byte{ - // 370 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x51, 0x4b, 0x2a, 0x41, - 0x18, 0x65, 0xf5, 0x72, 0xb9, 0x7e, 0xf7, 0xca, 0x85, 0x01, 0x69, 0xd9, 0x2c, 0x64, 0x89, 0xf0, - 0x21, 0x67, 0xc2, 0x1e, 0x7b, 0xa8, 0xa4, 0x90, 0xa0, 0x87, 0xd0, 0x7a, 0xe9, 0x65, 0x59, 0xdd, - 0x8f, 0x6d, 0xc8, 0x66, 0x36, 0x67, 0x0c, 0x53, 0x7c, 0x89, 0x7e, 0x40, 0xd0, 0x4f, 0xeb, 0x2f, - 0xf4, 0x43, 0x62, 0x67, 0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0x73, 0x16, 0x8a, 0xe9, - 0xf8, 0x3c, 0xb3, 0x51, 0x7f, 0xce, 0x01, 0x99, 0x91, 0x68, 0xdb, 0x6a, 0xc8, 0x04, 0xf2, 0x4d, - 0xd4, 0x64, 0x67, 0xc9, 0xa5, 0x0b, 0x13, 0xf5, 0x56, 0xb0, 0xe8, 0x6f, 0x3d, 0xbe, 0xbe, 0xbd, - 0xe4, 0x36, 0x49, 0xf9, 0xb3, 0x34, 0xc5, 0xc6, 0xdf, 0x7a, 0x98, 0x90, 0x31, 0xfc, 0x4a, 0xb3, - 0x21, 0x74, 0x89, 0xe2, 0x92, 0x42, 0x3c, 0xb6, 0x32, 0xde, 0x06, 0xed, 0x13, 0x63, 0xe7, 0x1f, - 0x81, 0xa9, 0x9d, 0xc6, 0xf1, 0x55, 0x23, 0xe6, 0xfa, 0x7a, 0xd0, 0xa1, 0x5d, 0x79, 0xcb, 0xac, - 0x60, 0xcd, 0x2e, 0x5a, 0x2c, 0x6b, 0x31, 0x0a, 0xb3, 0x58, 0x6c, 0xe1, 0x06, 0xee, 0x67, 0x1f, - 0x9d, 0xdf, 0x06, 0xb5, 0xf7, 0x1e, 0x00, 0x00, 0xff, 0xff, 0x83, 0x68, 0x07, 0x93, 0x11, 0x03, - 0x00, 0x00, + // 377 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcf, 0x4a, 0xf3, 0x40, + 0x14, 0xc5, 0x49, 0xfb, 0xf1, 0x61, 0xaf, 0x16, 0x61, 0xa0, 0x18, 0x63, 0x95, 0x12, 0x44, 0xba, + 0xb0, 0x19, 0xa9, 0x4b, 0x17, 0x6a, 0x41, 0x8a, 0xe0, 0x42, 0x5a, 0xdd, 0xb8, 0x09, 0x69, 0x73, + 0x89, 0x83, 0x75, 0x26, 0x76, 0xa6, 0x52, 0x5b, 0xba, 0x11, 0x1f, 0x40, 0xf0, 0xd1, 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0x2f, 0x9b, 0x98, 0x92, 0xd7, 0x71, 0xec, 0x2b, 0x7f, 0x2e, 0x42, 0x3e, 0x29, + 0x5f, 0xa7, 0x31, 0xaa, 0xef, 0x19, 0x20, 0x53, 0x88, 0xa6, 0x19, 0x0d, 0x19, 0x41, 0xb6, 0x8e, + 0x8a, 0x1c, 0x2e, 0xb9, 0x74, 0x61, 0x47, 0x9d, 0x15, 0x22, 0xba, 0xfb, 0xaf, 0x9f, 0x5f, 0x1f, + 0x99, 0x3d, 0x52, 0x1c, 0x0f, 0x4d, 0xd2, 0xe1, 0xaf, 0x39, 0x8c, 0xc8, 0x10, 0xfe, 0x25, 0xbd, + 0x21, 0xde, 0x12, 0xe2, 0x92, 0x81, 0x38, 0x74, 0x65, 0xbd, 0x69, 0xb4, 0x4b, 0x74, 0x9c, 0x0d, + 0x02, 0x93, 0x38, 0x35, 0x1f, 0xb6, 0x67, 0x28, 0x41, 0xcc, 0xc6, 0xa4, 0xbb, 0x5a, 0xc4, 0xd4, + 0x7d, 0xaf, 0xe5, 0xb5, 0xc5, 0x23, 0x35, 0xaa, 0x8a, 0xd9, 0xc1, 0x48, 0x54, 0x22, 0xe4, 0x7a, + 0xe7, 0xe8, 0xc2, 0xe5, 0x3c, 0x49, 0x3f, 0x5a, 0xff, 0xb5, 0xea, 0xf8, 0x3b, 0x00, 0x00, 0xff, + 0xff, 0xe7, 0xe2, 0x13, 0x2c, 0x2c, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // ApiEndpointServiceClient is the client API for ApiEndpointService service. // @@ -213,10 +213,10 @@ type ApiEndpointServiceClient interface { } type apiEndpointServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewApiEndpointServiceClient(cc *grpc.ClientConn) ApiEndpointServiceClient { +func NewApiEndpointServiceClient(cc grpc.ClientConnInterface) ApiEndpointServiceClient { return &apiEndpointServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint/api_endpoint_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint/api_endpoint_service.pbext.go new file mode 100644 index 000000000..8988602a5 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint/api_endpoint_service.pbext.go @@ -0,0 +1,23 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package endpoint + +func (m *GetApiEndpointRequest) SetApiEndpointId(v string) { + m.ApiEndpointId = v +} + +func (m *ListApiEndpointsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListApiEndpointsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListApiEndpointsResponse) SetEndpoints(v []*ApiEndpoint) { + m.Endpoints = v +} + +func (m *ListApiEndpointsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/api_key.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/api_key.pb.go index 754eee4be..6469b692d 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/api_key.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/api_key.pb.go @@ -93,24 +93,26 @@ func init() { proto.RegisterType((*ApiKey)(nil), "yandex.cloud.iam.v1.ApiKey") } -func init() { proto.RegisterFile("yandex/cloud/iam/v1/api_key.proto", fileDescriptor_9a44132a3bbfe52c) } +func init() { + proto.RegisterFile("yandex/cloud/iam/v1/api_key.proto", fileDescriptor_9a44132a3bbfe52c) +} var fileDescriptor_9a44132a3bbfe52c = []byte{ - // 247 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0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6c, 0x65, 0xa0, - 0xd7, 0x1d, 0x06, 0x42, 0xdf, 0x16, 0xe7, 0xb1, 0xf0, 0xf7, 0xe9, 0xf9, 0xe9, 0x7d, 0x6f, 0x91, - 0x3e, 0x87, 0x46, 0x68, 0xef, 0x64, 0x3a, 0x74, 0x9b, 0xb6, 0xb0, 0x7e, 0x6b, 0xa1, 0x8d, 0x01, - 0xf9, 0xcf, 0x48, 0x7b, 0x54, 0xae, 0x59, 0x44, 0xfc, 0xf0, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xb3, - 0x5f, 0xeb, 0x6a, 0x46, 0x01, 0x00, 0x00, + // 255 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x4b, 0xc3, 0x30, + 0x14, 0x87, 0xe9, 0x94, 0xc1, 0x32, 0x10, 0x89, 0x07, 0xcb, 0x2e, 0x56, 0x4f, 0x3b, 0xb8, 0x84, + 0xe9, 0x49, 0x76, 0xaa, 0x37, 0xf1, 0x36, 0xc4, 0x83, 0x97, 0xf2, 0x9a, 0x3c, 0xe3, 0xc3, 0xa5, + 0x09, 0x6d, 0x5a, 0xec, 0xdf, 0xe3, 0x3f, 0x2a, 0x24, 0x1d, 0x28, 0x78, 0xcd, 0xf7, 0x85, 0x8f, + 0xf7, 0x63, 0xd7, 0x23, 0x34, 0x1a, 0xbf, 0xa4, 0x3a, 0xb8, 0x5e, 0x4b, 0x02, 0x2b, 0x87, 0xad, + 0x04, 0x4f, 0xd5, 0x27, 0x8e, 0xc2, 0xb7, 0x2e, 0x38, 0x7e, 0x91, 0x14, 0x11, 0x15, 0x41, 0x60, + 0xc5, 0xb0, 0x5d, 0x5d, 0x19, 0xe7, 0xcc, 0x01, 0x65, 0x54, 0xea, 0xfe, 0x5d, 0x06, 0xb2, 0xd8, + 0x05, 0xb0, 0x3e, 0xfd, 0xba, 0xf9, 0xce, 0xd8, 0xbc, 0xf4, 0xf4, 0x8c, 0x23, 0x3f, 0x63, 0x33, + 0xd2, 0x79, 0x56, 0x64, 0xeb, 0xc5, 0x7e, 0x46, 0x9a, 0xdf, 0x32, 0xde, 0x61, 0x3b, 0x90, 0xc2, + 0x0a, 0x94, 0x72, 0x7d, 0x13, 0x2a, 0xd2, 0xf9, 0x2c, 0xf2, 0xf3, 0x89, 0x94, 0x09, 0x3c, 0x69, + 0xfe, 0xc0, 0x98, 0x6a, 0x11, 0x02, 0xea, 0x0a, 0x42, 0x7e, 0x52, 0x64, 0xeb, 0xe5, 0xdd, 0x4a, + 0xa4, 0xbc, 0x38, 0xe6, 0xc5, 0xcb, 0x31, 0xbf, 0x5f, 0x4c, 0x76, 0x19, 0x78, 0xc1, 0x96, 0x1a, + 0x3b, 0xd5, 0x92, 0x0f, 0xe4, 0x9a, 0xfc, 0x34, 0x16, 0x7e, 0x3f, 0x3d, 0xbe, 0xb2, 0xcb, 0x3f, + 0xd7, 0x81, 0xa7, 0xe9, 0xc2, 0xb7, 0x9d, 0xa1, 0xf0, 0xd1, 0xd7, 0x42, 0x39, 0x2b, 0x93, 0xb3, + 0x49, 0x23, 0x19, 0xb7, 0x31, 0xd8, 0xc4, 0xb2, 0xfc, 0x67, 0xbd, 0x1d, 0x81, 0xad, 0xe7, 0x11, + 0xdf, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0xf6, 0xbd, 0x0a, 0x6b, 0x5f, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/api_key.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/api_key.pbext.go new file mode 100644 index 000000000..781a2e0e3 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/api_key.pbext.go @@ -0,0 +1,23 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package iam + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *ApiKey) SetId(v string) { + m.Id = v +} + +func (m *ApiKey) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *ApiKey) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *ApiKey) SetDescription(v string) { + m.Description = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/api_key_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/api_key_service.pb.go index 7564be472..994fde0d9 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/api_key_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/api_key_service.pb.go @@ -7,9 +7,11 @@ import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" - empty "github.com/golang/protobuf/ptypes/empty" _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud/api" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -288,6 +290,105 @@ func (m *CreateApiKeyResponse) GetSecret() string { return "" } +type UpdateApiKeyRequest struct { + // ID of the ApiKey resource to update. + // To get the API key ID, use a [ApiKeyService.List] request. + ApiKeyId string `protobuf:"bytes,1,opt,name=api_key_id,json=apiKeyId,proto3" json:"api_key_id,omitempty"` + // Field mask that specifies which fields of the ApiKey resource are going to be updated. + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // Description of the API key. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateApiKeyRequest) Reset() { *m = UpdateApiKeyRequest{} } +func (m *UpdateApiKeyRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateApiKeyRequest) ProtoMessage() {} +func (*UpdateApiKeyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_7823c2139024242e, []int{5} +} + +func (m *UpdateApiKeyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateApiKeyRequest.Unmarshal(m, b) +} +func (m *UpdateApiKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateApiKeyRequest.Marshal(b, m, deterministic) +} +func (m *UpdateApiKeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateApiKeyRequest.Merge(m, src) +} +func (m *UpdateApiKeyRequest) XXX_Size() int { + return xxx_messageInfo_UpdateApiKeyRequest.Size(m) +} +func (m *UpdateApiKeyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateApiKeyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateApiKeyRequest proto.InternalMessageInfo + +func (m *UpdateApiKeyRequest) GetApiKeyId() string { + if m != nil { + return m.ApiKeyId + } + return "" +} + +func (m *UpdateApiKeyRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdateApiKeyRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type UpdateApiKeyMetadata struct { + // ID of the ApiKey resource that is being updated. + ApiKeyId string `protobuf:"bytes,1,opt,name=api_key_id,json=apiKeyId,proto3" json:"api_key_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateApiKeyMetadata) Reset() { *m = UpdateApiKeyMetadata{} } +func (m *UpdateApiKeyMetadata) String() string { return proto.CompactTextString(m) } +func (*UpdateApiKeyMetadata) ProtoMessage() {} +func (*UpdateApiKeyMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_7823c2139024242e, []int{6} +} + +func (m *UpdateApiKeyMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateApiKeyMetadata.Unmarshal(m, b) +} +func (m *UpdateApiKeyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateApiKeyMetadata.Marshal(b, m, deterministic) +} +func (m *UpdateApiKeyMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateApiKeyMetadata.Merge(m, src) +} +func (m *UpdateApiKeyMetadata) XXX_Size() int { + return xxx_messageInfo_UpdateApiKeyMetadata.Size(m) +} +func (m *UpdateApiKeyMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateApiKeyMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateApiKeyMetadata proto.InternalMessageInfo + +func (m *UpdateApiKeyMetadata) GetApiKeyId() string { + if m != nil { + return m.ApiKeyId + } + return "" +} + type DeleteApiKeyRequest struct { // ID of the API key to delete. // To get the API key ID, use a [ApiKeyService.List] request. @@ -301,7 +402,7 @@ func (m *DeleteApiKeyRequest) Reset() { *m = DeleteApiKeyRequest{} } func (m *DeleteApiKeyRequest) String() string { return proto.CompactTextString(m) } func (*DeleteApiKeyRequest) ProtoMessage() {} func (*DeleteApiKeyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7823c2139024242e, []int{5} + return fileDescriptor_7823c2139024242e, []int{7} } func (m *DeleteApiKeyRequest) XXX_Unmarshal(b []byte) error { @@ -329,13 +430,173 @@ func (m *DeleteApiKeyRequest) GetApiKeyId() string { return "" } +type DeleteApiKeyMetadata struct { + // ID of the API key that is being deleted. + ApiKeyId string `protobuf:"bytes,1,opt,name=api_key_id,json=apiKeyId,proto3" json:"api_key_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteApiKeyMetadata) Reset() { *m = DeleteApiKeyMetadata{} } +func (m *DeleteApiKeyMetadata) String() string { return proto.CompactTextString(m) } +func (*DeleteApiKeyMetadata) ProtoMessage() {} +func (*DeleteApiKeyMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_7823c2139024242e, []int{8} +} + +func (m *DeleteApiKeyMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteApiKeyMetadata.Unmarshal(m, b) +} +func (m *DeleteApiKeyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteApiKeyMetadata.Marshal(b, m, deterministic) +} +func (m *DeleteApiKeyMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteApiKeyMetadata.Merge(m, src) +} +func (m *DeleteApiKeyMetadata) XXX_Size() int { + return xxx_messageInfo_DeleteApiKeyMetadata.Size(m) +} +func (m *DeleteApiKeyMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteApiKeyMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteApiKeyMetadata proto.InternalMessageInfo + +func (m *DeleteApiKeyMetadata) GetApiKeyId() string { + if m != nil { + return m.ApiKeyId + } + return "" +} + +type ListApiKeyOperationsRequest struct { + // ID of the key to list operations for. + ApiKeyId string `protobuf:"bytes,1,opt,name=api_key_id,json=apiKeyId,proto3" json:"api_key_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], + // the service returns a [ListApiKeyOperationsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set [page_token] to the + // [ListApiKeyOperationsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListApiKeyOperationsRequest) Reset() { *m = ListApiKeyOperationsRequest{} } +func (m *ListApiKeyOperationsRequest) String() string { return proto.CompactTextString(m) } +func (*ListApiKeyOperationsRequest) ProtoMessage() {} +func (*ListApiKeyOperationsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_7823c2139024242e, []int{9} +} + +func (m *ListApiKeyOperationsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListApiKeyOperationsRequest.Unmarshal(m, b) +} +func (m *ListApiKeyOperationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListApiKeyOperationsRequest.Marshal(b, m, deterministic) +} +func (m *ListApiKeyOperationsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListApiKeyOperationsRequest.Merge(m, src) +} +func (m *ListApiKeyOperationsRequest) XXX_Size() int { + return xxx_messageInfo_ListApiKeyOperationsRequest.Size(m) +} +func (m *ListApiKeyOperationsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListApiKeyOperationsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListApiKeyOperationsRequest proto.InternalMessageInfo + +func (m *ListApiKeyOperationsRequest) GetApiKeyId() string { + if m != nil { + return m.ApiKeyId + } + return "" +} + +func (m *ListApiKeyOperationsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListApiKeyOperationsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListApiKeyOperationsResponse struct { + // List of operations for the specified API key. + Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` + // This token allows you to get the next page of results for list requests. If the number of results + // is larger than [ListApiKeyOperationsRequest.page_size], use the [next_page_token] as the value + // for the [ListApiKeyOperationsRequest.page_token] query parameter in the next list request. + // Each subsequent list request will have its own [next_page_token] to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListApiKeyOperationsResponse) Reset() { *m = ListApiKeyOperationsResponse{} } +func (m *ListApiKeyOperationsResponse) String() string { return proto.CompactTextString(m) } +func (*ListApiKeyOperationsResponse) ProtoMessage() {} +func (*ListApiKeyOperationsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_7823c2139024242e, []int{10} +} + +func (m *ListApiKeyOperationsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListApiKeyOperationsResponse.Unmarshal(m, b) +} +func (m *ListApiKeyOperationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListApiKeyOperationsResponse.Marshal(b, m, deterministic) +} +func (m *ListApiKeyOperationsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListApiKeyOperationsResponse.Merge(m, src) +} +func (m *ListApiKeyOperationsResponse) XXX_Size() int { + return xxx_messageInfo_ListApiKeyOperationsResponse.Size(m) +} +func (m *ListApiKeyOperationsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListApiKeyOperationsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListApiKeyOperationsResponse proto.InternalMessageInfo + +func (m *ListApiKeyOperationsResponse) GetOperations() []*operation.Operation { + if m != nil { + return m.Operations + } + return nil +} + +func (m *ListApiKeyOperationsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + func init() { proto.RegisterType((*GetApiKeyRequest)(nil), "yandex.cloud.iam.v1.GetApiKeyRequest") proto.RegisterType((*ListApiKeysRequest)(nil), "yandex.cloud.iam.v1.ListApiKeysRequest") proto.RegisterType((*ListApiKeysResponse)(nil), "yandex.cloud.iam.v1.ListApiKeysResponse") proto.RegisterType((*CreateApiKeyRequest)(nil), "yandex.cloud.iam.v1.CreateApiKeyRequest") proto.RegisterType((*CreateApiKeyResponse)(nil), "yandex.cloud.iam.v1.CreateApiKeyResponse") + proto.RegisterType((*UpdateApiKeyRequest)(nil), "yandex.cloud.iam.v1.UpdateApiKeyRequest") + proto.RegisterType((*UpdateApiKeyMetadata)(nil), "yandex.cloud.iam.v1.UpdateApiKeyMetadata") proto.RegisterType((*DeleteApiKeyRequest)(nil), "yandex.cloud.iam.v1.DeleteApiKeyRequest") + proto.RegisterType((*DeleteApiKeyMetadata)(nil), "yandex.cloud.iam.v1.DeleteApiKeyMetadata") + proto.RegisterType((*ListApiKeyOperationsRequest)(nil), "yandex.cloud.iam.v1.ListApiKeyOperationsRequest") + proto.RegisterType((*ListApiKeyOperationsResponse)(nil), "yandex.cloud.iam.v1.ListApiKeyOperationsResponse") } func init() { @@ -343,54 +604,69 @@ func init() { } var fileDescriptor_7823c2139024242e = []byte{ - // 602 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcf, 0x4f, 0x13, 0x41, - 0x14, 0xc7, 0xb3, 0x14, 0x4b, 0xfb, 0x90, 0x80, 0x53, 0x82, 0xcd, 0x82, 0x06, 0x37, 0x2a, 0x05, - 0xc3, 0xfe, 0x40, 0xe1, 0x20, 0x60, 0x02, 0x6a, 0x08, 0xd1, 0x83, 0x29, 0x9e, 0xbc, 0x34, 0xc3, - 0xee, 0xb3, 0x4e, 0x68, 0x77, 0xd6, 0xce, 0x6c, 0x43, 0x31, 0x5e, 0x3c, 0x72, 0xf5, 0x0f, 0xf0, - 0xcf, 0x81, 0xbb, 0x7f, 0x81, 0x89, 0x07, 0xff, 0x06, 0x4f, 0x66, 0x67, 0xa6, 0x40, 0xeb, 0x0a, - 0xea, 0x71, 0xf7, 0xbd, 0xf9, 0x7e, 0xdf, 0xe7, 0xbd, 0x99, 0x07, 0x8b, 0x3d, 0x1a, 0x47, 0x78, - 0xe8, 0x85, 0x2d, 0x9e, 0x46, 0x1e, 0xa3, 0x6d, 0xaf, 0x1b, 0x78, 0x34,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 0x50, 0x89, 0x92, 0x1f, 0x60, 0x5c, 0x2d, 0x28, 0xe1, 0xf2, 0xf1, 0x69, 0x70, 0x6d, - 0x63, 0x33, 0xf0, 0xfd, 0xba, 0x52, 0x79, 0x9d, 0xc5, 0x9c, 0x14, 0x2a, 0x03, 0x05, 0x8a, 0x84, - 0xc7, 0x02, 0xc9, 0x1a, 0x94, 0x0c, 0xa4, 0xa8, 0x5a, 0xf3, 0x85, 0xda, 0xf8, 0xca, 0xac, 0x9b, - 0x33, 0x1d, 0xd7, 0xb4, 0x66, 0x4c, 0x13, 0x0b, 0x72, 0x1f, 0x26, 0x63, 0x3c, 0x94, 0x8d, 0x0b, - 0xee, 0x59, 0x9d, 0xe5, 0xfa, 0x44, 0xf6, 0xfb, 0xd5, 0x99, 0xed, 0x11, 0x54, 0x9e, 0x76, 0x90, - 0x4a, 0x1c, 0xec, 0xed, 0xff, 0x36, 0xe6, 0x01, 0x8c, 0x47, 0x28, 0xc2, 0x0e, 0x4b, 0xb2, 0xe1, - 0x69, 0xcb, 0x3e, 0xf0, 0xca, 0xea, 0x5a, 0xfd, 0x62, 0xd4, 0x89, 0x60, 0x7a, 0xd0, 0xdb, 0x30, - 0x3f, 0x82, 0x31, 0xc3, 0xac, 0x1c, 0xaf, 0x40, 0x2e, 0x6a, 0x64, 0x32, 0x03, 0x45, 0x81, 0x61, - 0x07, 0xa5, 0x01, 0x35, 0x5f, 0xce, 0x16, 0x54, 0x9e, 0x61, 0x0b, 0x87, 0x09, 0xff, 0xe1, 0xf6, - 0xac, 0x7c, 0x2b, 0xc0, 0x84, 0x3e, 0xbd, 0xa7, 0x81, 0x49, 0x07, 0x46, 0xb3, 0x69, 0x91, 0x85, - 0xdc, 0xca, 0x7e, 0xbf, 0x69, 0x76, 0xed, 0xea, 0x44, 0x4d, 0xef, 0xdc, 0xfc, 0xf4, 0xf5, 0xfb, - 0xe7, 0x91, 0x1b, 0x64, 0xf2, 0xc2, 0x43, 0x51, 0x23, 0xe5, 0x50, 0xd8, 0x41, 0x49, 0xee, 0xe5, - 0x2a, 0x0d, 0xbf, 0x0e, 0xfb, 0xb2, 0x9e, 0x39, 0x77, 0x95, 0xc7, 0x6d, 0x32, 0x37, 0xe4, 0xe1, - 0x7d, 0x38, 0xef, 0xc9, 0x47, 0xd2, 0x83, 0xa2, 0x9e, 0x0f, 0xc9, 0xaf, 0x3e, 0xe7, 0xe2, 0xd8, - 0x8b, 0x7f, 0x91, 0x69, 0x40, 0x6d, 0x55, 0xc4, 0xb4, 0x33, 0x0c, 0xfa, 0xd8, 0x5a, 0x22, 0x09, - 0x14, 0xf5, 0xd0, 0xfe, 0x60, 0x9d, 0x33, 0x51, 0x7b, 0xc6, 0xd5, 0x3b, 0xc8, 0xed, 0xef, 0x20, - 0xf7, 0x79, 0xb6, 0x83, 0xfa, 0xb0, 0x4b, 0x97, 0xc2, 0x6e, 0x6f, 0xbe, 0x59, 0x6f, 0x32, 0xf9, - 0x2e, 0xdd, 0x77, 0x43, 0xde, 0xf6, 0xb4, 0xe7, 0xb2, 0xde, 0x46, 0x4d, 0xbe, 0xdc, 0xc4, 0x58, - 0xa9, 0x7a, 0x39, 0x9b, 0x6c, 0x9d, 0xd1, 0xf6, 0x7e, 0x51, 0x85, 0x1f, 0xfe, 0x0a, 0x00, 0x00, - 0xff, 0xff, 0x77, 0x3b, 0x11, 0x86, 0x66, 0x05, 0x00, 0x00, + // 834 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4d, 0x6f, 0x1b, 0x45, + 0x18, 0xd6, 0xd6, 0x65, 0x6b, 0xbf, 0xa6, 0xb4, 0x8c, 0x03, 0xb5, 0xb6, 0x26, 0x72, 0x56, 0xd0, + 0x38, 0x46, 0xde, 0x0f, 0xd3, 0xe6, 0x40, 0x5a, 0x24, 0x87, 0x8f, 0x2a, 0x82, 0x0a, 0xb4, 0xa5, + 0x1c, 0xb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 0x90, 0x77, + 0x09, 0x6b, 0xf5, 0x69, 0x10, 0x35, 0x4f, 0x50, 0x8e, 0x13, 0xae, 0x3f, 0xda, 0x75, 0xe2, 0xa7, + 0xba, 0x0b, 0x1b, 0x49, 0x6e, 0x99, 0xf3, 0x43, 0xb8, 0x25, 0x73, 0xe6, 0x8c, 0x2b, 0x52, 0x56, + 0x45, 0xca, 0xe8, 0x4d, 0x50, 0x19, 0x69, 0xf5, 0x49, 0x28, 0x13, 0x95, 0x5f, 0xfa, 0xef, 0x0a, + 0x14, 0x5e, 0x04, 0xee, 0x5c, 0x8a, 0x57, 0x18, 0x1f, 0xb4, 0x07, 0xf9, 0x01, 0x0f, 0xc1, 0xfd, + 0xc1, 0x09, 0xf2, 0x75, 0xcd, 0x10, 0x16, 0x32, 0xc6, 0x16, 0x32, 0x3e, 0x89, 0x2c, 0xf4, 0x0c, + 0xb3, 0x8e, 0x03, 0x02, 0x1e, 0xfd, 0x9e, 0xad, 0x49, 0x66, 0x69, 0x4d, 0x1e, 0xc2, 0x46, 0x5c, + 0xec, 0x33, 0x12, 0x62, 0x17, 0x87, 0x18, 0x95, 0xe6, 0xd5, 0xc6, 0xc6, 0xbb, 0x01, 0x85, 0x8f, + 0x48, 0x97, 0xfc, 0x8f, 0x14, 0x23, 0xe2, 0x78, 0x88, 0x35, 0x89, 0x7f, 0x56, 0xe0, 0xfe, 0x74, + 0x6c, 0x3f, 0x1f, 0x9b, 0x9a, 0x5d, 0xa7, 0xc8, 0x2f, 0xc1, 0x54, 0x3f, 0x2a, 0x50, 0x4a, 0x97, + 0x27, 0x47, 0xad, 0x01, 0x30, 0xd9, 0x44, 0x63, 0x83, 0x6d, 0x25, 0xa7, 0x6d, 0xba, 0xa9, 0x26, + 0xf7, 0x9d, 0xd8, 0xa5, 0x75, 0x9d, 0x56, 0xff, 0x47, 0x85, 0xdb, 0x42, 0xc7, 0x73, 0xe1, 0x1a, + 0xd4, 0x87, 0x9b, 0x91, 0x38, 0xb4, 0x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xe0, 0x80, 0x4a, + 0xa2, 0xaf, 0xf7, 0xda, 0x34, 0xfc, 0x66, 0x70, 0x68, 0xb4, 0xfc, 0x9e, 0x29, 0x30, 0x35, 0xf1, + 0xe8, 0x68, 0xfb, 0xb5, 0x36, 0xf1, 0x78, 0x55, 0xcc, 0x94, 0x87, 0xcd, 0x1e, 0xc5, 0xbd, 0x43, + 0x95, 0x1f, 0xbf, 0xf7, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x30, 0x3c, 0xfe, 0x2d, 0x9c, 0x09, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // ApiKeyServiceClient is the client API for ApiKeyService service. // @@ -404,15 +680,19 @@ type ApiKeyServiceClient interface { Get(ctx context.Context, in *GetApiKeyRequest, opts ...grpc.CallOption) (*ApiKey, error) // Creates an API key for the specified service account. Create(ctx context.Context, in *CreateApiKeyRequest, opts ...grpc.CallOption) (*CreateApiKeyResponse, error) + // Updates the specified API key. + Update(ctx context.Context, in *UpdateApiKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Deletes the specified API key. - Delete(ctx context.Context, in *DeleteApiKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) + Delete(ctx context.Context, in *DeleteApiKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Retrieves the list of operations for the specified API key. + ListOperations(ctx context.Context, in *ListApiKeyOperationsRequest, opts ...grpc.CallOption) (*ListApiKeyOperationsResponse, error) } type apiKeyServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewApiKeyServiceClient(cc *grpc.ClientConn) ApiKeyServiceClient { +func NewApiKeyServiceClient(cc grpc.ClientConnInterface) ApiKeyServiceClient { return &apiKeyServiceClient{cc} } @@ -443,8 +723,17 @@ func (c *apiKeyServiceClient) Create(ctx context.Context, in *CreateApiKeyReques return out, nil } -func (c *apiKeyServiceClient) Delete(ctx context.Context, in *DeleteApiKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) +func (c *apiKeyServiceClient) Update(ctx context.Context, in *UpdateApiKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.iam.v1.ApiKeyService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *apiKeyServiceClient) Delete(ctx context.Context, in *DeleteApiKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) err := c.cc.Invoke(ctx, "/yandex.cloud.iam.v1.ApiKeyService/Delete", in, out, opts...) if err != nil { return nil, err @@ -452,6 +741,15 @@ func (c *apiKeyServiceClient) Delete(ctx context.Context, in *DeleteApiKeyReques return out, nil } +func (c *apiKeyServiceClient) ListOperations(ctx context.Context, in *ListApiKeyOperationsRequest, opts ...grpc.CallOption) (*ListApiKeyOperationsResponse, error) { + out := new(ListApiKeyOperationsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.iam.v1.ApiKeyService/ListOperations", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // ApiKeyServiceServer is the server API for ApiKeyService service. type ApiKeyServiceServer interface { // Retrieves the list of API keys for the specified service account. @@ -462,8 +760,12 @@ type ApiKeyServiceServer interface { Get(context.Context, *GetApiKeyRequest) (*ApiKey, error) // Creates an API key for the specified service account. Create(context.Context, *CreateApiKeyRequest) (*CreateApiKeyResponse, error) + // Updates the specified API key. + Update(context.Context, *UpdateApiKeyRequest) (*operation.Operation, error) // Deletes the specified API key. - Delete(context.Context, *DeleteApiKeyRequest) (*empty.Empty, error) + Delete(context.Context, *DeleteApiKeyRequest) (*operation.Operation, error) + // Retrieves the list of operations for the specified API key. + ListOperations(context.Context, *ListApiKeyOperationsRequest) (*ListApiKeyOperationsResponse, error) } // UnimplementedApiKeyServiceServer can be embedded to have forward compatible implementations. @@ -479,9 +781,15 @@ func (*UnimplementedApiKeyServiceServer) Get(ctx context.Context, req *GetApiKey func (*UnimplementedApiKeyServiceServer) Create(ctx context.Context, req *CreateApiKeyRequest) (*CreateApiKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") } -func (*UnimplementedApiKeyServiceServer) Delete(ctx context.Context, req *DeleteApiKeyRequest) (*empty.Empty, error) { +func (*UnimplementedApiKeyServiceServer) Update(ctx context.Context, req *UpdateApiKeyRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedApiKeyServiceServer) Delete(ctx context.Context, req *DeleteApiKeyRequest) (*operation.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } +func (*UnimplementedApiKeyServiceServer) ListOperations(ctx context.Context, req *ListApiKeyOperationsRequest) (*ListApiKeyOperationsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") +} func RegisterApiKeyServiceServer(s *grpc.Server, srv ApiKeyServiceServer) { s.RegisterService(&_ApiKeyService_serviceDesc, srv) @@ -541,6 +849,24 @@ func _ApiKeyService_Create_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } +func _ApiKeyService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateApiKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ApiKeyServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.iam.v1.ApiKeyService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ApiKeyServiceServer).Update(ctx, req.(*UpdateApiKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _ApiKeyService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteApiKeyRequest) if err := dec(in); err != nil { @@ -559,6 +885,24 @@ func _ApiKeyService_Delete_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } +func _ApiKeyService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListApiKeyOperationsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ApiKeyServiceServer).ListOperations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.iam.v1.ApiKeyService/ListOperations", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ApiKeyServiceServer).ListOperations(ctx, req.(*ListApiKeyOperationsRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _ApiKeyService_serviceDesc = grpc.ServiceDesc{ ServiceName: "yandex.cloud.iam.v1.ApiKeyService", HandlerType: (*ApiKeyServiceServer)(nil), @@ -575,10 +919,18 @@ var _ApiKeyService_serviceDesc = grpc.ServiceDesc{ MethodName: "Create", Handler: _ApiKeyService_Create_Handler, }, + { + MethodName: "Update", + Handler: _ApiKeyService_Update_Handler, + }, { MethodName: "Delete", Handler: _ApiKeyService_Delete_Handler, }, + { + MethodName: "ListOperations", + Handler: _ApiKeyService_ListOperations_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "yandex/cloud/iam/v1/api_key_service.proto", diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/api_key_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/api_key_service.pbext.go new file mode 100644 index 000000000..87e359be8 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/api_key_service.pbext.go @@ -0,0 +1,92 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package iam + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetApiKeyRequest) SetApiKeyId(v string) { + m.ApiKeyId = v +} + +func (m *ListApiKeysRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *ListApiKeysRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListApiKeysRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListApiKeysResponse) SetApiKeys(v []*ApiKey) { + m.ApiKeys = v +} + +func (m *ListApiKeysResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateApiKeyRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *CreateApiKeyRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateApiKeyResponse) SetApiKey(v *ApiKey) { + m.ApiKey = v +} + +func (m *CreateApiKeyResponse) SetSecret(v string) { + m.Secret = v +} + +func (m *UpdateApiKeyRequest) SetApiKeyId(v string) { + m.ApiKeyId = v +} + +func (m *UpdateApiKeyRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateApiKeyRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateApiKeyMetadata) SetApiKeyId(v string) { + m.ApiKeyId = v +} + +func (m *DeleteApiKeyRequest) SetApiKeyId(v string) { + m.ApiKeyId = v +} + +func (m *DeleteApiKeyMetadata) SetApiKeyId(v string) { + m.ApiKeyId = v +} + +func (m *ListApiKeyOperationsRequest) SetApiKeyId(v string) { + m.ApiKeyId = v +} + +func (m *ListApiKeyOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListApiKeyOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListApiKeyOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListApiKeyOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility/access_key.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility/access_key.pb.go index 2abef529a..bdcec315a 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility/access_key.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility/access_key.pb.go @@ -110,23 +110,24 @@ func init() { } var fileDescriptor_0a09bbde32ee7837 = []byte{ - // 285 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x41, 0x4b, 0xfb, 0x30, - 0x18, 0xc6, 0xe9, 0xfe, 0xff, 0x0d, 0x96, 0x81, 0x48, 0x40, 0x28, 0xbb, 0x58, 0xc4, 0xc3, 0x0e, - 0x2e, 0x61, 0x8a, 0x07, 0xf1, 0x54, 0x6f, 0xc3, 0xdb, 0xf0, 0xa2, 0x1e, 0x4a, 0x9a, 0xbc, 0xd6, - 0x97, 0x36, 0x4d, 0x69, 0xd2, 0x6a, 0x3e, 0x9c, 0xdf, 0x4d, 0x4c, 0x36, 0x90, 0x9d, 0xbc, 0xbe, - 0xcf, 0xfb, 0x7b, 0x9e, 0x87, 0x87, 0xdc, 0x7a, 0xd1, 0x2a, 0xf8, 0xe4, 0xb2, 0x31, 0x83, 0xe2, - 0x28, 0x34, 0x1f, 0x37, 0x5c, 0x7c, 0x58, 0x69, 0x74, 0x27, 0x1c, 0x96, 0xd8, 0xa0, 0xf3, 0x5c, - 0x48, 0x09, 0xd6, 0x16, 0x35, 0x78, 0xd6, 0xf5, 0xc6, 0x19, 0x7a, 0x19, 0x31, 0x16, 0x30, 0x86, - 0x42, 0xb3, 0x71, 0xc3, 0x8e, 0xb1, 0xe5, 0x79, 0x65, 0x4c, 0xd5, 0x00, 0x0f, 0x4c, 0x39, 0xbc, - 0x71, 0x87, 0x1a, 0xac, 0x13, 0xba, 0x8b, 0x36, 0x17, 0x5f, 0x09, 0x99, 0xe7, 0xc1, 0xfb, 0x11, - 0x3c, 0x3d, 0x21, 0x13, 0x54, 0x69, 0x92, 0x25, 0xab, 0xf9, 0x6e, 0x82, 0x8a, 0x5e, 0x11, 0x6a, - 0xa1, 0x1f, 0x51, 0x42, 0x21, 0xa4, 0x34, 0x43, 0xeb, 0x0a, 0x54, 0xe9, 0x24, 0xe8, 0xa7, 0x7b, - 0x25, 0x8f, 0xc2, 0x56, 0xd1, 0x3b, 0x42, 0x64, 0x0f, 0xc2, 0x81, 0x2a, 0x84, 0x4b, 0xff, 0x65, - 0xc9, 0x6a, 0x71, 0xbd, 0x64, 0xb1, 0x01, 0x3b, 0x34, 0x60, 0x4f, 0x87, 0x06, 0xbb, 0xf9, 0xfe, - 0x3b, 0x77, 0x34, 0x23, 0x0b, 0x05, 0x56, 0xf6, 0xd8, 0x39, 0x34, 0x6d, 0xfa, 0x3f, 0x24, 0xfc, - 0x3e, 0xd1, 0x33, 0x32, 0xab, 0xc1, 0xff, 0xc4, 0x4f, 0x83, 0x38, 0xad, 0xc1, 0x6f, 0xd5, 0xc3, - 0xeb, 0xcb, 0x73, 0x85, 0xee, 0x7d, 0x28, 0x99, 0x34, 0x9a, 0xc7, 0x4d, 0xd6, 0x71, 0xca, 0xca, - 0xac, 0x2b, 0x68, 0x43, 0x2e, 0xff, 0xcb, 0xc6, 0xf7, 0xc7, 0x87, 0x72, 0x16, 0xe0, 0x9b, 0xef, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x6e, 0x37, 0x35, 0xf6, 0xa3, 0x01, 0x00, 0x00, + // 296 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x41, 0x4b, 0x33, 0x31, + 0x10, 0x86, 0xd9, 0x7e, 0x5f, 0x0b, 0x4d, 0x41, 0x24, 0x20, 0x2c, 0xbd, 0x58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0xcc, 0xd1, 0x05, 0x99, 0x29, 0xb0, 0xb2, 0xc3, 0xd6, 0xa1, 0x69, 0xd2, 0xff, + 0xe1, 0xc2, 0xf7, 0x11, 0x3d, 0x21, 0x93, 0x0a, 0xfc, 0xd7, 0xf9, 0x71, 0x08, 0xc7, 0x15, 0xf8, + 0x8d, 0xba, 0x7b, 0x4f, 0xc8, 0xf2, 0x47, 0x13, 0xa2, 0xc5, 0xdf, 0xda, 0x78, 0x7a, 0x2c, 0xd1, + 0xbd, 0xf4, 0x05, 0x93, 0x46, 0xf3, 0x08, 0xad, 0x62, 0xeb, 0xa5, 0x59, 0x95, 0xd0, 0x04, 0x45, + 0xfe, 0x97, 0xef, 0xb8, 0x3d, 0x1c, 0x14, 0x93, 0x00, 0x5f, 0x7d, 0x06, 0x00, 0x00, 0xff, 0xff, + 0x46, 0xd1, 0x31, 0xe3, 0xce, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility/access_key.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility/access_key.pbext.go new file mode 100644 index 000000000..758253521 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility/access_key.pbext.go @@ -0,0 +1,27 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package awscompatibility + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *AccessKey) SetId(v string) { + m.Id = v +} + +func (m *AccessKey) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *AccessKey) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *AccessKey) SetDescription(v string) { + m.Description = v +} + +func (m *AccessKey) SetKeyId(v string) { + m.KeyId = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility/access_key_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility/access_key_service.pb.go index c5fd3ab56..ff928b7d4 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility/access_key_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility/access_key_service.pb.go @@ -7,9 +7,11 @@ import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" - empty "github.com/golang/protobuf/ptypes/empty" _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud/api" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -289,6 +291,105 @@ func (m *CreateAccessKeyResponse) GetSecret() string { return "" } +type UpdateAccessKeyRequest struct { + // ID of the AccessKey resource to update. + // To get the access key ID, use a [AccessKeyService.List] request. + AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"` + // Field mask that specifies which fields of the Accesskey resource are going to be updated. + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // Description of the access key. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateAccessKeyRequest) Reset() { *m = UpdateAccessKeyRequest{} } +func (m *UpdateAccessKeyRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateAccessKeyRequest) ProtoMessage() {} +func (*UpdateAccessKeyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_82e7adea57f560ab, []int{5} +} + +func (m *UpdateAccessKeyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateAccessKeyRequest.Unmarshal(m, b) +} +func (m *UpdateAccessKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateAccessKeyRequest.Marshal(b, m, deterministic) +} +func (m *UpdateAccessKeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateAccessKeyRequest.Merge(m, src) +} +func (m *UpdateAccessKeyRequest) XXX_Size() int { + return xxx_messageInfo_UpdateAccessKeyRequest.Size(m) +} +func (m *UpdateAccessKeyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateAccessKeyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateAccessKeyRequest proto.InternalMessageInfo + +func (m *UpdateAccessKeyRequest) GetAccessKeyId() string { + if m != nil { + return m.AccessKeyId + } + return "" +} + +func (m *UpdateAccessKeyRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdateAccessKeyRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type UpdateAccessKeyMetadata struct { + // ID of the AccessKey resource that is being updated. + AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateAccessKeyMetadata) Reset() { *m = UpdateAccessKeyMetadata{} } +func (m *UpdateAccessKeyMetadata) String() string { return proto.CompactTextString(m) } +func (*UpdateAccessKeyMetadata) ProtoMessage() {} +func (*UpdateAccessKeyMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_82e7adea57f560ab, []int{6} +} + +func (m *UpdateAccessKeyMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateAccessKeyMetadata.Unmarshal(m, b) +} +func (m *UpdateAccessKeyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateAccessKeyMetadata.Marshal(b, m, deterministic) +} +func (m *UpdateAccessKeyMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateAccessKeyMetadata.Merge(m, src) +} +func (m *UpdateAccessKeyMetadata) XXX_Size() int { + return xxx_messageInfo_UpdateAccessKeyMetadata.Size(m) +} +func (m *UpdateAccessKeyMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateAccessKeyMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateAccessKeyMetadata proto.InternalMessageInfo + +func (m *UpdateAccessKeyMetadata) GetAccessKeyId() string { + if m != nil { + return m.AccessKeyId + } + return "" +} + type DeleteAccessKeyRequest struct { // ID of the access key to delete. // To get the access key ID, use a [AccessKeyService.List] request. @@ -302,7 +403,7 @@ func (m *DeleteAccessKeyRequest) Reset() { *m = DeleteAccessKeyRequest{} func (m *DeleteAccessKeyRequest) String() string { return proto.CompactTextString(m) } func (*DeleteAccessKeyRequest) ProtoMessage() {} func (*DeleteAccessKeyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_82e7adea57f560ab, []int{5} + return fileDescriptor_82e7adea57f560ab, []int{7} } func (m *DeleteAccessKeyRequest) XXX_Unmarshal(b []byte) error { @@ -330,13 +431,173 @@ func (m *DeleteAccessKeyRequest) GetAccessKeyId() string { return "" } +type DeleteAccessKeyMetadata struct { + // ID of the access key that is being deleted. + AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteAccessKeyMetadata) Reset() { *m = DeleteAccessKeyMetadata{} } +func (m *DeleteAccessKeyMetadata) String() string { return proto.CompactTextString(m) } +func (*DeleteAccessKeyMetadata) ProtoMessage() {} +func (*DeleteAccessKeyMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_82e7adea57f560ab, []int{8} +} + +func (m *DeleteAccessKeyMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteAccessKeyMetadata.Unmarshal(m, b) +} +func (m *DeleteAccessKeyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteAccessKeyMetadata.Marshal(b, m, deterministic) +} +func (m *DeleteAccessKeyMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteAccessKeyMetadata.Merge(m, src) +} +func (m *DeleteAccessKeyMetadata) XXX_Size() int { + return xxx_messageInfo_DeleteAccessKeyMetadata.Size(m) +} +func (m *DeleteAccessKeyMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteAccessKeyMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteAccessKeyMetadata proto.InternalMessageInfo + +func (m *DeleteAccessKeyMetadata) GetAccessKeyId() string { + if m != nil { + return m.AccessKeyId + } + return "" +} + +type ListAccessKeyOperationsRequest struct { + // ID of the key to list operations for. + AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], + // the service returns a [ListAccessKeyOperationsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set [page_token] to the + // [ListAccessKeyOperationsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListAccessKeyOperationsRequest) Reset() { *m = ListAccessKeyOperationsRequest{} } +func (m *ListAccessKeyOperationsRequest) String() string { return proto.CompactTextString(m) } +func (*ListAccessKeyOperationsRequest) ProtoMessage() {} +func (*ListAccessKeyOperationsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_82e7adea57f560ab, []int{9} +} + +func (m *ListAccessKeyOperationsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListAccessKeyOperationsRequest.Unmarshal(m, b) +} +func (m *ListAccessKeyOperationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListAccessKeyOperationsRequest.Marshal(b, m, deterministic) +} +func (m *ListAccessKeyOperationsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListAccessKeyOperationsRequest.Merge(m, src) +} +func (m *ListAccessKeyOperationsRequest) XXX_Size() int { + return xxx_messageInfo_ListAccessKeyOperationsRequest.Size(m) +} +func (m *ListAccessKeyOperationsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListAccessKeyOperationsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListAccessKeyOperationsRequest proto.InternalMessageInfo + +func (m *ListAccessKeyOperationsRequest) GetAccessKeyId() string { + if m != nil { + return m.AccessKeyId + } + return "" +} + +func (m *ListAccessKeyOperationsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListAccessKeyOperationsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListAccessKeyOperationsResponse struct { + // List of operations for the specified access key. + Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` + // This token allows you to get the next page of results for list requests. If the number of results + // is larger than [ListAccessKeyOperationsRequest.page_size], use the [next_page_token] as the value + // for the [ListAccessKeyOperationsRequest.page_token] query parameter in the next list request. + // Each subsequent list request will have its own [next_page_token] to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListAccessKeyOperationsResponse) Reset() { *m = ListAccessKeyOperationsResponse{} } +func (m *ListAccessKeyOperationsResponse) String() string { return proto.CompactTextString(m) } +func (*ListAccessKeyOperationsResponse) ProtoMessage() {} +func (*ListAccessKeyOperationsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_82e7adea57f560ab, []int{10} +} + +func (m *ListAccessKeyOperationsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListAccessKeyOperationsResponse.Unmarshal(m, b) +} +func (m *ListAccessKeyOperationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListAccessKeyOperationsResponse.Marshal(b, m, deterministic) +} +func (m *ListAccessKeyOperationsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListAccessKeyOperationsResponse.Merge(m, src) +} +func (m *ListAccessKeyOperationsResponse) XXX_Size() int { + return xxx_messageInfo_ListAccessKeyOperationsResponse.Size(m) +} +func (m *ListAccessKeyOperationsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListAccessKeyOperationsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListAccessKeyOperationsResponse proto.InternalMessageInfo + +func (m *ListAccessKeyOperationsResponse) GetOperations() []*operation.Operation { + if m != nil { + return m.Operations + } + return nil +} + +func (m *ListAccessKeyOperationsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + func init() { proto.RegisterType((*GetAccessKeyRequest)(nil), "yandex.cloud.iam.v1.awscompatibility.GetAccessKeyRequest") proto.RegisterType((*ListAccessKeysRequest)(nil), "yandex.cloud.iam.v1.awscompatibility.ListAccessKeysRequest") proto.RegisterType((*ListAccessKeysResponse)(nil), "yandex.cloud.iam.v1.awscompatibility.ListAccessKeysResponse") proto.RegisterType((*CreateAccessKeyRequest)(nil), "yandex.cloud.iam.v1.awscompatibility.CreateAccessKeyRequest") proto.RegisterType((*CreateAccessKeyResponse)(nil), "yandex.cloud.iam.v1.awscompatibility.CreateAccessKeyResponse") + proto.RegisterType((*UpdateAccessKeyRequest)(nil), "yandex.cloud.iam.v1.awscompatibility.UpdateAccessKeyRequest") + proto.RegisterType((*UpdateAccessKeyMetadata)(nil), "yandex.cloud.iam.v1.awscompatibility.UpdateAccessKeyMetadata") proto.RegisterType((*DeleteAccessKeyRequest)(nil), "yandex.cloud.iam.v1.awscompatibility.DeleteAccessKeyRequest") + proto.RegisterType((*DeleteAccessKeyMetadata)(nil), "yandex.cloud.iam.v1.awscompatibility.DeleteAccessKeyMetadata") + proto.RegisterType((*ListAccessKeyOperationsRequest)(nil), "yandex.cloud.iam.v1.awscompatibility.ListAccessKeyOperationsRequest") + proto.RegisterType((*ListAccessKeyOperationsResponse)(nil), "yandex.cloud.iam.v1.awscompatibility.ListAccessKeyOperationsResponse") } func init() { @@ -344,57 +605,71 @@ func init() { } var fileDescriptor_82e7adea57f560ab = []byte{ - // 649 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x95, 0xbf, 0x6e, 0x13, 0x4b, - 0x14, 0xc6, 0x35, 0x71, 0x62, 0xc5, 0xc7, 0x37, 0xba, 0xd1, 0x5c, 0x5d, 0x63, 0x19, 0x90, 0xa2, - 0x55, 0x14, 0x4c, 0x20, 0x3b, 0xde, 0x40, 0x22, 0x41, 0xec, 0x22, 0x01, 0x14, 0x05, 0x10, 0x8a, - 0x1c, 0x1a, 0xa0, 0xb0, 0xc6, 0xbb, 0x07, 0x33, 0x8a, 0xbd, 0xb3, 0x78, 0xc6, 0x4e, 0x1c, 0x94, - 0x02, 0xca, 0x94, 0xd0, 0x52, 0xf1, 0x02, 0xe9, 0x78, 0x85, 0xa4, 0xa2, 0xe1, 0x15, 0x28, 0x78, - 0x06, 0x2a, 0xb4, 0xb3, 0x6b, 0x3b, 0x7f, 0x5c, 0x6c, 0x5c, 0xee, 0x9c, 0xf9, 0xce, 0xf9, 0xe6, - 0x77, 0xce, 0xcc, 0x42, 0xa5, 0xc7, 0x7d,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880 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcf, 0x8f, 0xdb, 0x44, + 0x14, 0xd6, 0x34, 0x25, 0x6a, 0x5e, 0x28, 0x54, 0x83, 0x9a, 0x46, 0x16, 0x3f, 0x82, 0xb5, 0x5a, + 0x42, 0x20, 0x76, 0x12, 0xd8, 0x48, 0x65, 0x13, 0xa1, 0x2c, 0x2d, 0x51, 0x81, 0x42, 0xe5, 0xc2, + 0x01, 0x2e, 0xd1, 0xc4, 0x9e, 0x86, 0x51, 0x12, 0xdb, 0x64, 0x26, 0x69, 0x53, 0xd4, 0x03, 0x48, + 0x5c, 0x56, 0x9c, 0xe0, 0x3f, 0x40, 0xe2, 0xbc, 0xd2, 0x0a, 0xf1, 0x2f, 0xec, 0x4a, 0xdc, 0x96, + 0x23, 0x57, 0x84, 0xf8, 0x1b, 0x38, 0x21, 0x8f, 0x1d, 0x3b, 0xce, 0x0f, 0x70, 0x0c, 0xb7, 0xc4, + 0xf3, 0xde, 0x37, 0xdf, 0xfb, 0xe6, 0xbd, 0x6f, 0x06, 0xda, 0x73, 0x62, 0x5b, 0xf4, 0x91, 0x6e, + 0x8e, 0x9c, 0xa9, 0xa5, 0x33, 0x32, 0xd6, 0x67, 0x75, 0x9d, 0x3c, 0xe4, 0xa6, 0x33, 0x76, 0x89, + 0x60, 0x7d, 0x36, 0x62, 0x62, 0xae, 0x13, 0xd3, 0xa4, 0x9c, 0xf7, 0x86, 0x74, 0xde, 0xe3, 0x74, + 0x32, 0x63, 0x26, 0xd5, 0xdc, 0x89, 0x23, 0x1c, 0xbc, 0xe7, 0xa7, 0x6b, 0x32, 0x5d, 0x63, 0x64, + 0xac, 0xcd, 0xea, 0xda, 0x6a, 0xba, 0xf2, 0xfc, 0xc0, 0x71, 0x06, 0x23, 0xaa, 0x13, 0x97, 0xe9, + 0xc4, 0xb6, 0x1d, 0x41, 0x04,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a7, 0x64, 0xa4, 0x21, 0x51, + 0x3e, 0xf6, 0xd6, 0xd4, 0xef, 0x10, 0x14, 0x56, 0x49, 0x72, 0xd7, 0xb1, 0x39, 0xc5, 0xf7, 0x20, + 0x1f, 0x55, 0xcc, 0x8b, 0xa8, 0x94, 0x29, 0xe7, 0x1b, 0xba, 0x96, 0xa4, 0x49, 0xb4, 0x48, 0x3e, + 0x08, 0x25, 0xe1, 0x78, 0x1f, 0x9e, 0xb5, 0xe9, 0x23, 0xd1, 0x5b, 0xe2, 0xe6, 0x55, 0x91, 0x33, + 0xae, 0x7a, 0x9f, 0xef, 0x85, 0xa4, 0x9e, 0x40, 0xe1, 0x9d, 0x09, 0x25, 0x82, 0xae, 0x9d, 0x42, + 0x5a, 0xe5, 0x5e, 0x83, 0xbc, 0x45, 0xb9, 0x39, 0x61, 0xae, 0x77, 0xd2, 0xfe, 0xae, 0x0b, 0x45, + 0x1a, 0x07, 0x4d, 0x63, 0x79, 0x55, 0xfd, 0x0a, 0xc1, 0x8d, 0xb5, 0xfd, 0x03, 0x51, 0x3e, 0x04, + 0x88, 0x44, 0x91, 0x1b, 0xa7, 0xd0, 0x24, 0x17, 0x6a, 0x82, 0x0b, 0x90, 0xe5, 0xd4, 0x9c, 0x50, + 0x11, 0x28, 0x11, 0xfc, 0x53, 0x7f, 0x42, 0x50, 0xf8, 0xc4, 0xb5, 0x36, 0x69, 0xb0, 0x73, 0x27, + 0xe2, 0x43, 0xc8, 0x4f, 0x25, 0x96, 0x9c, 0x43, 0xb9, 0x53, 0xbe, 0xa1, 0x68, 0xfe, 0xa8, 0x6a, + 0x8b, 0x51, 0xd5, 0xde, 0xf5, 0x46, 0xf5, 0x2e, 0xe1, 0x43, 0x03, 0xfc, 0x70, 0xef, 0xf7, 0xaa, + 0x74, 0x99, 0x7f, 0x94, 0xae, 0x0d, 0x37, 0x56, 0x58, 0xdf, 0xa5, 0x82, 0x58, 0x44, 0x10, 0xac, + 0x6e, 0xa4, 0x1d, 0x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f, 0xec, 0x8b, 0xca, 0xbf, 0x77, 0xb4, 0x3a, + 0x38, 0xbd, 0xa8, 0xec, 0x6d, 0xb7, 0xa8, 0x5c, 0xf8, 0x49, 0x16, 0x71, 0xb3, 0x91, 0xea, 0x28, + 0xbc, 0xa2, 0x7e, 0x43, 0x90, 0xf5, 0xdd, 0x27, 0x69, 0x51, 0x9b, 0x7d, 0x2f, 0x49, 0x51, 0xee, + 0xe9, 0x45, 0xa5, 0xb6, 0xdd, 0xec, 0xae, 0xaf, 0xda, 0xfc, 0xed, 0xb1, 0x2b, 0xfc, 0x02, 0x9b, + 0x95, 0x74, 0xbd, 0xf6, 0x07, 0x82, 0x67, 0xbc, 0x31, 0x8b, 0xac, 0x06, 0xdf, 0x4a, 0x31, 0x9c, + 0x6b, 0x8e, 0xaa, 0xdc, 0xfe, 0x8f, 0x28, 0x41, 0x0f, 0x76, 0x65, 0x75, 0x1d, 0xfc, 0x76, 0x9a, + 0xea, 0xa2, 0xf7, 0x22, 0x3f, 0xfa, 0x06, 0x41, 0x39, 0xc6, 0x88, 0xb8, 0x6c, 0x1b, 0xab, 0xcf, + 0x3e, 0x1d, 0x30, 0xf1, 0xf9, 0xb4, 0xaf, 0x99, 0xce, 0x58, 0xf7, 0x93, 0xaa, 0xfe, 0x13, 0x73, + 0xe0, 0x54, 0x07, 0xd4, 0x96, 0xfa, 0xeb, 0x49, 0x9e, 0xb6, 0x87, 0xab, 0x1f, 0xfa, 0x59, 0x99, + 0xfc, 0xc6, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x7a, 0x75, 0xbb, 0x58, 0xe1, 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // AccessKeyServiceClient is the client API for AccessKeyService service. // @@ -408,15 +683,19 @@ type AccessKeyServiceClient interface { Get(ctx context.Context, in *GetAccessKeyRequest, opts ...grpc.CallOption) (*AccessKey, error) // Creates an access key for the specified service account. Create(ctx context.Context, in *CreateAccessKeyRequest, opts ...grpc.CallOption) (*CreateAccessKeyResponse, error) + // Updates the specified access key. + Update(ctx context.Context, in *UpdateAccessKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Deletes the specified access key. - Delete(ctx context.Context, in *DeleteAccessKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) + Delete(ctx context.Context, in *DeleteAccessKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Retrieves the list of operations for the specified access key. + ListOperations(ctx context.Context, in *ListAccessKeyOperationsRequest, opts ...grpc.CallOption) (*ListAccessKeyOperationsResponse, error) } type accessKeyServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewAccessKeyServiceClient(cc *grpc.ClientConn) AccessKeyServiceClient { +func NewAccessKeyServiceClient(cc grpc.ClientConnInterface) AccessKeyServiceClient { return &accessKeyServiceClient{cc} } @@ -447,8 +726,17 @@ func (c *accessKeyServiceClient) Create(ctx context.Context, in *CreateAccessKey return out, nil } -func (c *accessKeyServiceClient) Delete(ctx context.Context, in *DeleteAccessKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) +func (c *accessKeyServiceClient) Update(ctx context.Context, in *UpdateAccessKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.iam.v1.awscompatibility.AccessKeyService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *accessKeyServiceClient) Delete(ctx context.Context, in *DeleteAccessKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) err := c.cc.Invoke(ctx, "/yandex.cloud.iam.v1.awscompatibility.AccessKeyService/Delete", in, out, opts...) if err != nil { return nil, err @@ -456,6 +744,15 @@ func (c *accessKeyServiceClient) Delete(ctx context.Context, in *DeleteAccessKey return out, nil } +func (c *accessKeyServiceClient) ListOperations(ctx context.Context, in *ListAccessKeyOperationsRequest, opts ...grpc.CallOption) (*ListAccessKeyOperationsResponse, error) { + out := new(ListAccessKeyOperationsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.iam.v1.awscompatibility.AccessKeyService/ListOperations", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // AccessKeyServiceServer is the server API for AccessKeyService service. type AccessKeyServiceServer interface { // Retrieves the list of access keys for the specified service account. @@ -466,8 +763,12 @@ type AccessKeyServiceServer interface { Get(context.Context, *GetAccessKeyRequest) (*AccessKey, error) // Creates an access key for the specified service account. Create(context.Context, *CreateAccessKeyRequest) (*CreateAccessKeyResponse, error) + // Updates the specified access key. + Update(context.Context, *UpdateAccessKeyRequest) (*operation.Operation, error) // Deletes the specified access key. - Delete(context.Context, *DeleteAccessKeyRequest) (*empty.Empty, error) + Delete(context.Context, *DeleteAccessKeyRequest) (*operation.Operation, error) + // Retrieves the list of operations for the specified access key. + ListOperations(context.Context, *ListAccessKeyOperationsRequest) (*ListAccessKeyOperationsResponse, error) } // UnimplementedAccessKeyServiceServer can be embedded to have forward compatible implementations. @@ -483,9 +784,15 @@ func (*UnimplementedAccessKeyServiceServer) Get(ctx context.Context, req *GetAcc func (*UnimplementedAccessKeyServiceServer) Create(ctx context.Context, req *CreateAccessKeyRequest) (*CreateAccessKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") } -func (*UnimplementedAccessKeyServiceServer) Delete(ctx context.Context, req *DeleteAccessKeyRequest) (*empty.Empty, error) { +func (*UnimplementedAccessKeyServiceServer) Update(ctx context.Context, req *UpdateAccessKeyRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedAccessKeyServiceServer) Delete(ctx context.Context, req *DeleteAccessKeyRequest) (*operation.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } +func (*UnimplementedAccessKeyServiceServer) ListOperations(ctx context.Context, req *ListAccessKeyOperationsRequest) (*ListAccessKeyOperationsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") +} func RegisterAccessKeyServiceServer(s *grpc.Server, srv AccessKeyServiceServer) { s.RegisterService(&_AccessKeyService_serviceDesc, srv) @@ -545,6 +852,24 @@ func _AccessKeyService_Create_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _AccessKeyService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateAccessKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccessKeyServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.iam.v1.awscompatibility.AccessKeyService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccessKeyServiceServer).Update(ctx, req.(*UpdateAccessKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _AccessKeyService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteAccessKeyRequest) if err := dec(in); err != nil { @@ -563,6 +888,24 @@ func _AccessKeyService_Delete_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _AccessKeyService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListAccessKeyOperationsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccessKeyServiceServer).ListOperations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.iam.v1.awscompatibility.AccessKeyService/ListOperations", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccessKeyServiceServer).ListOperations(ctx, req.(*ListAccessKeyOperationsRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _AccessKeyService_serviceDesc = grpc.ServiceDesc{ ServiceName: "yandex.cloud.iam.v1.awscompatibility.AccessKeyService", HandlerType: (*AccessKeyServiceServer)(nil), @@ -579,10 +922,18 @@ var _AccessKeyService_serviceDesc = grpc.ServiceDesc{ MethodName: "Create", Handler: _AccessKeyService_Create_Handler, }, + { + MethodName: "Update", + Handler: _AccessKeyService_Update_Handler, + }, { MethodName: "Delete", Handler: _AccessKeyService_Delete_Handler, }, + { + MethodName: "ListOperations", + Handler: _AccessKeyService_ListOperations_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "yandex/cloud/iam/v1/awscompatibility/access_key_service.proto", diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility/access_key_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility/access_key_service.pbext.go new file mode 100644 index 000000000..5a4059ab1 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility/access_key_service.pbext.go @@ -0,0 +1,92 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package awscompatibility + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetAccessKeyRequest) SetAccessKeyId(v string) { + m.AccessKeyId = v +} + +func (m *ListAccessKeysRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *ListAccessKeysRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListAccessKeysRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListAccessKeysResponse) SetAccessKeys(v []*AccessKey) { + m.AccessKeys = v +} + +func (m *ListAccessKeysResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateAccessKeyRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *CreateAccessKeyRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateAccessKeyResponse) SetAccessKey(v *AccessKey) { + m.AccessKey = v +} + +func (m *CreateAccessKeyResponse) SetSecret(v string) { + m.Secret = v +} + +func (m *UpdateAccessKeyRequest) SetAccessKeyId(v string) { + m.AccessKeyId = v +} + +func (m *UpdateAccessKeyRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateAccessKeyRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateAccessKeyMetadata) SetAccessKeyId(v string) { + m.AccessKeyId = v +} + +func (m *DeleteAccessKeyRequest) SetAccessKeyId(v string) { + m.AccessKeyId = v +} + +func (m *DeleteAccessKeyMetadata) SetAccessKeyId(v string) { + m.AccessKeyId = v +} + +func (m *ListAccessKeyOperationsRequest) SetAccessKeyId(v string) { + m.AccessKeyId = v +} + +func (m *ListAccessKeyOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListAccessKeyOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListAccessKeyOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListAccessKeyOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/iam_token_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/iam_token_service.pb.go index 5c183300f..524b1a6a9 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/iam_token_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/iam_token_service.pb.go @@ -169,40 +169,41 @@ func init() { } var fileDescriptor_b373624a21e738a7 = []byte{ - // 382 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x4e, 0xdb, 0x30, - 0x18, 0xc7, 0x97, 0x6e, 0xaa, 0x5a, 0x4f, 0xda, 0x26, 0x57, 0x9b, 0xba, 0x74, 0xd3, 0xa6, 0x9c, - 0x50, 0xab, 0xda, 0x6a, 0x39, 0x41, 0x85, 0x10, 0xe5, 0x02, 0x27, 0x50, 0xe8, 0x89, 0x4b, 0xe4, - 0x36, 0x26, 0x35, 0x34, 0xb6, 0x89, 0xbf, 0x84, 0x56, 0x42, 0x1c, 0x78, 0x01, 0x0e, 0xbc, 0x10, - 0x3c, 0x03, 0xaf, 0xc0, 0x83, 0xa0, 0xc4, 0x09, 0x12, 0xa8, 0x07, 0x4e, 0x96, 0xf5, 0xfd, 0xfc, - 0xfd, 0xff, 0xdf, 0xdf, 0x1f, 0xea, 0xad, 0x98, 0x0c, 0xf9, 0x92, 0xce, 0x16, 0x2a, 0x0d, 0xa9, - 0x60, 0x31, 0xcd, 0x06, 0xf9, 0x11, 0x80, 0xba, 0xe0, 0x32, 0x30, 0x3c, 0xc9, 0xc4, 0x8c, 0x13, - 0x9d, 0x28, 0x50, 0xb8, 0x65, 0x61, 0x52, 0xc0, 0x44, 0xb0, 0x98, 0x64, 0x03, 0xf7, 0x4f, 0xa4, - 0x54, 0xb4, 0xe0, 0x94, 0x69, 0x41, 0x99, 0x94, 0x0a, 0x18, 0x08, 0x25, 0x8d, 0x7d, 0xe2, 0xfe, - 0x2b, 0xab, 0xc5, 0x6d, 0x9a, 0x9e, 0x51, 0x10, 0x31, 0x37, 0xc0, 0x62, 0x5d, 0x02, 0x7f, 0xdf, - 0x18, 0xc8, 0xd8, 0x42, 0x84, 0x45, 0x03, 0x5b, 0xf6, 0x6e, 0xd0, 0xcf, 0xfd, 0x84, 0x33, 0xe0, - 0x87, 0x2c, 0x9e, 0xe4, 0x96, 0x7c, 0x7e, 0x99, 0x72, 0x03, 0x78, 0x17, 0x75, 0xec, 0xcb, 0x40, - 0x33, 0x63, 0xb4, 0x4a, 0x20, 0x50,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 0x00, 0x00, + // 386 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xb1, 0x4e, 0xf3, 0x30, + 0x14, 0x85, 0xff, 0xf4, 0x47, 0x55, 0x6b, 0x24, 0x40, 0xae, 0x80, 0x92, 0x82, 0x40, 0x99, 0x50, + 0xab, 0xda, 0x6a, 0x99, 0xa0, 0x03, 0xa2, 0x2c, 0x30, 0x81, 0x42, 0xc5, 0xc0, 0x12, 0xb9, 0x8d, + 0x49, 0x0d, 0x8d, 0x6d, 0x62, 0x27, 0xb4, 0x12, 0x62, 0xe0, 0x05, 0x18, 0x78, 0x21, 0x78, 0x06, + 0x5e, 0x81, 0x07, 0x41, 0x89, 0x13, 0xa4, 0xa2, 0x0e, 0x4c, 0x96, 0x75, 0x3f, 0xdf, 0x73, 0xee, + 0xf1, 0x05, 0xad, 0x19, 0xe1, 0x3e, 0x9d, 0xe2, 0xd1, 0x44, 0xc4, 0x3e, 0x66, 0x24, 0xc4, 0x49, + 0x27, 0x3d, 0x3c, 0x2d, 0xee, 0x29, 0xf7, 0x14, 0x8d, 0x12, 0x36, 0xa2, 0x48, 0x46, 0x42, 0x0b, + 0x58, 0x33, 0x30, 0xca, 0x60, 0xc4, 0x48, 0x88, 0x92, 0x8e, 0xbd, 0x1d, 0x08, 0x11, 0x4c, 0x28, + 0x26, 0x92, 0x61, 0xc2, 0xb9, 0xd0, 0x44, 0x33, 0xc1, 0x95, 0x79, 0x62, 0xef, 0xe6, 0xd5, 0xec, + 0x36, 0x8c, 0x6f, 0xb1, 0x66, 0x21, 0x55, 0x9a, 0x84, 0x32, 0x07, 0x76, 0xe6, 0x0c, 0x24, 0x64, + 0xc2, 0xfc, 0xac, 0x81, 0x29, 0x3b, 0xcf, 0x60, 0xfd, 0x34, 0xa2, 0x44, 0xd3, 0x73, 0x12, 0x0e, + 0x52, 0x4b, 0x2e, 0x7d, 0x88, 0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 0xac, 0xc7, 0x48, 0x38, + 0x2c, 0x67, 0xe5, 0x83, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x17, 0x26, 0x80, 0xfb, 0x84, 0x02, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // IamTokenServiceClient is the client API for IamTokenService service. // @@ -213,10 +214,10 @@ type IamTokenServiceClient interface { } type iamTokenServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewIamTokenServiceClient(cc *grpc.ClientConn) IamTokenServiceClient { +func NewIamTokenServiceClient(cc grpc.ClientConnInterface) IamTokenServiceClient { return &iamTokenServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/iam_token_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/iam_token_service.pbext.go new file mode 100644 index 000000000..950f22a39 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/iam_token_service.pbext.go @@ -0,0 +1,33 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package iam + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +type CreateIamTokenRequest_Identity = isCreateIamTokenRequest_Identity + +func (m *CreateIamTokenRequest) SetIdentity(v CreateIamTokenRequest_Identity) { + m.Identity = v +} + +func (m *CreateIamTokenRequest) SetYandexPassportOauthToken(v string) { + m.Identity = &CreateIamTokenRequest_YandexPassportOauthToken{ + YandexPassportOauthToken: v, + } +} + +func (m *CreateIamTokenRequest) SetJwt(v string) { + m.Identity = &CreateIamTokenRequest_Jwt{ + Jwt: v, + } +} + +func (m *CreateIamTokenResponse) SetIamToken(v string) { + m.IamToken = v +} + +func (m *CreateIamTokenResponse) SetExpiresAt(v *timestamp.Timestamp) { + m.ExpiresAt = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/key.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/key.pb.go index 79cb513c8..c0d91fd4b 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/key.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/key.pb.go @@ -182,32 +182,35 @@ func init() { proto.RegisterType((*Key)(nil), "yandex.cloud.iam.v1.Key") } -func init() { proto.RegisterFile("yandex/cloud/iam/v1/key.proto", fileDescriptor_d3c4378eab1afe9e) } +func init() { + proto.RegisterFile("yandex/cloud/iam/v1/key.proto", fileDescriptor_d3c4378eab1afe9e) +} var fileDescriptor_d3c4378eab1afe9e = []byte{ - // 384 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0x4b, 0x6f, 0xd4, 0x30, - 0x14, 0x85, 0x9b, 0x0c, 0xb4, 0xc4, 0x7d, 0x10, 0x19, 0x21, 0x85, 0x4a, 0x15, 0xd1, 0xac, 0xb2, - 0xa9, 0xdd, 0x0e, 0x15, 0xa2, 0xaa, 0x58, 0x64, 0xa0, 0xb4, 0xd1, 0xf0, 0x52, 0x5a, 0x36, 0x6c, - 0x22, 0xc7, 0xbe, 0xa4, 0x26, 0x0f, 0x47, 0x89, 0x33, 0xc2, 0x6b, 0xfe, 0x38, 0x6a, 0x32, 0x61, - 0x66, 0x31, 0xcb, 0x7b, 0xbe, 0xcf, 0xf2, 0xd1, 0xb5, 0xd1, 0x89, 0x61, 0x95, 0x80, 0x3f, 0x94, - 0x17, 0xaa, 0x13, 0x54, 0xb2, 0x92, 0x2e, 0xcf, 0x69, 0x0e, 0x86, 0xd4, 0x8d, 0xd2, 0x0a, 0xbf, - 0x18, 0x30, 0xe9, 0x31, 0x91, 0xac, 0x24, 0xcb, 0xf3, 0xe3, 0xd7, 0x99, 0x52, 0x59, 0x01, 0xb4, - 0x57, 0xd2, 0xee, 0x17, 0xd5, 0xb2, 0x84, 0x56, 0xb3, 0xb2, 0x1e, 0x4e, 0x4d, 0xff, 0x4e, 0xd0, - 0x64, 0x01, 0x06, 0x1f, 0x21, 0x5b, 0x0a, 0xcf, 0xf2, 0xad, 0xc0, 0x89, 0x6d, 0x29, 0x70, 0x80, - 0x9e, 0x77, 0x2d, 0x34, 0x09, 0xe3, 0x5c, 0x75, 0x95, 0x4e, 0xa4, 0xf0, 0xec, 0x47, 0x78, 0xbb, - 0x13, 0x1f, 0x3e, 0x82, 0x70, 0xc8, 0x23, 0x81, 0x09, 0xc2, 0x2d, 0x34, 0x4b, 0xc9, 0x61, 0x53, - 0x9e, 0xac, 0x64, 0x77, 0xc5, 0xd6, 0xfe, 0x25, 0x42, 0xbc, 0x01, 0xa6, 0x41, 0x24, 0x4c, 0x7b, - 0x4f, 0x7c, 0x2b, 0xd8, 0x9f, 0x1d, 0x93, 0xa1, 0x27, 0x19, 0x7b, 0x92, 0xfb, 0xb1, 0x67, 0xec, - 0xac, 0xec, 0x50, 0x63, 0x1f, 0xed, 0x0b, 0x68, 0x79, 0x23, 0x6b, 0x2d, 0x55, 0xe5, 0x3d, 0xed, - 0xdb, 0x6e, 0x46, 0xf8, 0x06, 0x1d, 0xe6, 0x60, 0x12, 0x56, 0x64, 0xaa, 0x91, 0xfa, 0xa1, 0xf4, - 0x76, 0x7d, 0x2b, 0x38, 0x9a, 0x4d, 0xc9, 0x96, 0xe5, 0x90, 0x05, 0x18, 0x12, 0x8e, 0x66, 0x7c, - 0x90, 0x83, 0xf9, 0x3f, 0xe1, 0x13, 0x84, 0xea, 0x2e, 0x2d, 0x24, 0x4f, 0x72, 0x30, 0xde, 0x5e, - 0x7f, 0x93, 0x33, 0x24, 0x0b, 0x30, 0xd3, 0x39, 0x72, 0xd6, 0xee, 0x2b, 0xf4, 0x32, 0xfc, 0x7c, - 0xf3, 0x2d, 0x8e, 0xee, 0x6f, 0xbf, 0x24, 0x3f, 0xbe, 0xde, 0x7d, 0xbf, 0xfe, 0x10, 0x7d, 0x8a, - 0xae, 0x3f, 0xba, 0x3b, 0xf8, 0x00, 0x3d, 0x8b, 0xef, 0xc2, 0x64, 0x76, 0x76, 0xf1, 0xce, 0xb5, - 0xc6, 0xe9, 0xe2, 0xec, 0xf2, 0xad, 0x6b, 0xcf, 0x1d, 0xb4, 0xd7, 0x76, 0xe9, 0x6f, 0xe0, 0x7a, - 0xfe, 0xfe, 0xe7, 0x55, 0x26, 0xf5, 0x43, 0x97, 0x12, 0xae, 0x4a, 0x3a, 0x74, 0x3d, 0x1d, 0xde, - 0x39, 0x53, 0xa7, 0x19, 0x54, 0xfd, 0x5e, 0xe8, 0x96, 0x0f, 0x70, 0x25, 0x59, 0x99, 0xee, 0xf6, - 0xf8, 0xcd, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x41, 0xba, 0x65, 0x21, 0x22, 0x02, 0x00, 0x00, + // 391 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xcb, 0x6f, 0xd4, 0x30, + 0x10, 0xc6, 0x9b, 0x5d, 0x68, 0xc9, 0xf4, 0xc1, 0xca, 0x08, 0x11, 0x2a, 0x55, 0xac, 0xf6, 0xb4, + 0x97, 0xda, 0xed, 0x52, 0x21, 0xaa, 0x9e, 0xb2, 0x50, 0xda, 0x68, 0x79, 0x29, 0x2d, 0x1c, 0xb8, + 0x44, 0x8e, 0x3d, 0xa4, 0x26, 0x0f, 0x47, 0x89, 0xb3, 0xc2, 0x67, 0xfe, 0x71, 0xd4, 0x3c, 0x68, + 0x91, 0x7a, 0x9c, 0xef, 0xfb, 0x59, 0xfe, 0x69, 0x34, 0x70, 0x60, 0x79, 0x21, 0xf1, 0x37, 0x13, + 0x99, 0x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, 0x28, 0x9b, 0x38, 0x53, 0x22, 0x4a, 0xd1, 0x7a, 0x5b, + 0xed, 0x4f, 0x6e, 0x97, 0xac, 0xd0, 0xce, 0x96, 0xe0, 0xde, 0xb1, 0x2f, 0xe1, 0xb9, 0xff, 0xf1, + 0xe2, 0x4b, 0x18, 0x5c, 0x5f, 0x7e, 0x8a, 0xbe, 0x7d, 0xbe, 0xfa, 0x7a, 0xfe, 0x2e, 0xf8, 0x10, + 0x9c, 0xbf, 0x9f, 0x6c, 0x90, 0x1d, 0x78, 0x12, 0x5e, 0xf9, 0xd1, 0xe2, 0xe8, 0xe4, 0xed, 0xc4, + 0x19, 0xa6, 0x93, 0xa3, 0xd3, 0x37, 0x93, 0xd1, 0xd2, 0x85, 0xad, 0xba, 0x89, 0x7f, 0xa1, 0x30, + 0xcb, 0xef, 0xf0, 0xe2, 0x3f, 0x41, 0x5e, 0xaa, 0x5e, 0xf2, 0xc7, 0x59, 0xa2, 0xcc, 0x4d, 0x13, + 0x53, 0xa1, 0x73, 0xd6, 0x31, 0x87, 0xdd, 0x01, 0x24, 0xfa, 0x30, 0xc1, 0xa2, 0x5d, 0x18, 0x7b, + 0xe0, 0x32, 0xce, 0x14, 0xcf, 0xe3, 0xcd, 0xb6, 0x7e, 0xfd, 0x37, 0x00, 0x00, 0xff, 0xff, 0x35, + 0xf9, 0x50, 0xd4, 0x3b, 0x02, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/key.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/key.pbext.go new file mode 100644 index 000000000..017d88dcd --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/key.pbext.go @@ -0,0 +1,45 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package iam + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +type Key_Subject = isKey_Subject + +func (m *Key) SetSubject(v Key_Subject) { + m.Subject = v +} + +func (m *Key) SetId(v string) { + m.Id = v +} + +func (m *Key) SetUserAccountId(v string) { + m.Subject = &Key_UserAccountId{ + UserAccountId: v, + } +} + +func (m *Key) SetServiceAccountId(v string) { + m.Subject = &Key_ServiceAccountId{ + ServiceAccountId: v, + } +} + +func (m *Key) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Key) SetDescription(v string) { + m.Description = v +} + +func (m *Key) SetKeyAlgorithm(v Key_Algorithm) { + m.KeyAlgorithm = v +} + +func (m *Key) SetPublicKey(v string) { + m.PublicKey = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/key_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/key_service.pb.go index b8d428694..b5d58f40f 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/key_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/key_service.pb.go @@ -7,9 +7,11 @@ import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" - empty "github.com/golang/protobuf/ptypes/empty" _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud/api" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -347,6 +349,105 @@ func (m *CreateKeyResponse) GetPrivateKey() string { return "" } +type UpdateKeyRequest struct { + // ID of the Key resource to update. + // To get key pair ID, use a [KeyService.List] request. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // Field mask that specifies which fields of the Key resource are going to be updated. + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // Description of the key pair. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateKeyRequest) Reset() { *m = UpdateKeyRequest{} } +func (m *UpdateKeyRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateKeyRequest) ProtoMessage() {} +func (*UpdateKeyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dce2d1f6e04851f2, []int{5} +} + +func (m *UpdateKeyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateKeyRequest.Unmarshal(m, b) +} +func (m *UpdateKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateKeyRequest.Marshal(b, m, deterministic) +} +func (m *UpdateKeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateKeyRequest.Merge(m, src) +} +func (m *UpdateKeyRequest) XXX_Size() int { + return xxx_messageInfo_UpdateKeyRequest.Size(m) +} +func (m *UpdateKeyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateKeyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateKeyRequest proto.InternalMessageInfo + +func (m *UpdateKeyRequest) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *UpdateKeyRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdateKeyRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type UpdateKeyMetadata struct { + // ID of the Key resource that is being updated. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateKeyMetadata) Reset() { *m = UpdateKeyMetadata{} } +func (m *UpdateKeyMetadata) String() string { return proto.CompactTextString(m) } +func (*UpdateKeyMetadata) ProtoMessage() {} +func (*UpdateKeyMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_dce2d1f6e04851f2, []int{6} +} + +func (m *UpdateKeyMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateKeyMetadata.Unmarshal(m, b) +} +func (m *UpdateKeyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateKeyMetadata.Marshal(b, m, deterministic) +} +func (m *UpdateKeyMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateKeyMetadata.Merge(m, src) +} +func (m *UpdateKeyMetadata) XXX_Size() int { + return xxx_messageInfo_UpdateKeyMetadata.Size(m) +} +func (m *UpdateKeyMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateKeyMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateKeyMetadata proto.InternalMessageInfo + +func (m *UpdateKeyMetadata) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + type DeleteKeyRequest struct { // ID of the key to delete. // To get key ID use a [KeyService.List] request. @@ -360,7 +461,7 @@ func (m *DeleteKeyRequest) Reset() { *m = DeleteKeyRequest{} } func (m *DeleteKeyRequest) String() string { return proto.CompactTextString(m) } func (*DeleteKeyRequest) ProtoMessage() {} func (*DeleteKeyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dce2d1f6e04851f2, []int{5} + return fileDescriptor_dce2d1f6e04851f2, []int{7} } func (m *DeleteKeyRequest) XXX_Unmarshal(b []byte) error { @@ -388,6 +489,161 @@ func (m *DeleteKeyRequest) GetKeyId() string { return "" } +type DeleteKeyMetadata struct { + // ID of the key that is being deleted. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteKeyMetadata) Reset() { *m = DeleteKeyMetadata{} } +func (m *DeleteKeyMetadata) String() string { return proto.CompactTextString(m) } +func (*DeleteKeyMetadata) ProtoMessage() {} +func (*DeleteKeyMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_dce2d1f6e04851f2, []int{8} +} + +func (m *DeleteKeyMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteKeyMetadata.Unmarshal(m, b) +} +func (m *DeleteKeyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteKeyMetadata.Marshal(b, m, deterministic) +} +func (m *DeleteKeyMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteKeyMetadata.Merge(m, src) +} +func (m *DeleteKeyMetadata) XXX_Size() int { + return xxx_messageInfo_DeleteKeyMetadata.Size(m) +} +func (m *DeleteKeyMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteKeyMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteKeyMetadata proto.InternalMessageInfo + +func (m *DeleteKeyMetadata) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +type ListKeyOperationsRequest struct { + // ID of the key to list operations for. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], + // the service returns a [ListKeyOperationsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set [page_token] to the + // [ListKeyOperationsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListKeyOperationsRequest) Reset() { *m = ListKeyOperationsRequest{} } +func (m *ListKeyOperationsRequest) String() string { return proto.CompactTextString(m) } +func (*ListKeyOperationsRequest) ProtoMessage() {} +func (*ListKeyOperationsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dce2d1f6e04851f2, []int{9} +} + +func (m *ListKeyOperationsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListKeyOperationsRequest.Unmarshal(m, b) +} +func (m *ListKeyOperationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListKeyOperationsRequest.Marshal(b, m, deterministic) +} +func (m *ListKeyOperationsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListKeyOperationsRequest.Merge(m, src) +} +func (m *ListKeyOperationsRequest) XXX_Size() int { + return xxx_messageInfo_ListKeyOperationsRequest.Size(m) +} +func (m *ListKeyOperationsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListKeyOperationsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListKeyOperationsRequest proto.InternalMessageInfo + +func (m *ListKeyOperationsRequest) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *ListKeyOperationsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListKeyOperationsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListKeyOperationsResponse struct { + // List of operations for the specified key. + Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` + // This token allows you to get the next page of results for list requests. If the number of results + // is larger than [ListKeyOperationsRequest.page_size], use the [next_page_token] as the value + // for the [ListKeyOperationsRequest.page_token] query parameter in the next list request. + // Each subsequent list request will have its own [next_page_token] to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListKeyOperationsResponse) Reset() { *m = ListKeyOperationsResponse{} } +func (m *ListKeyOperationsResponse) String() string { return proto.CompactTextString(m) } +func (*ListKeyOperationsResponse) ProtoMessage() {} +func (*ListKeyOperationsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dce2d1f6e04851f2, []int{10} +} + +func (m *ListKeyOperationsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListKeyOperationsResponse.Unmarshal(m, b) +} +func (m *ListKeyOperationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListKeyOperationsResponse.Marshal(b, m, deterministic) +} +func (m *ListKeyOperationsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListKeyOperationsResponse.Merge(m, src) +} +func (m *ListKeyOperationsResponse) XXX_Size() int { + return xxx_messageInfo_ListKeyOperationsResponse.Size(m) +} +func (m *ListKeyOperationsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListKeyOperationsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListKeyOperationsResponse proto.InternalMessageInfo + +func (m *ListKeyOperationsResponse) GetOperations() []*operation.Operation { + if m != nil { + return m.Operations + } + return nil +} + +func (m *ListKeyOperationsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + func init() { proto.RegisterEnum("yandex.cloud.iam.v1.KeyFormat", KeyFormat_name, KeyFormat_value) proto.RegisterType((*GetKeyRequest)(nil), "yandex.cloud.iam.v1.GetKeyRequest") @@ -395,7 +651,12 @@ func init() { proto.RegisterType((*ListKeysResponse)(nil), "yandex.cloud.iam.v1.ListKeysResponse") proto.RegisterType((*CreateKeyRequest)(nil), "yandex.cloud.iam.v1.CreateKeyRequest") proto.RegisterType((*CreateKeyResponse)(nil), "yandex.cloud.iam.v1.CreateKeyResponse") + proto.RegisterType((*UpdateKeyRequest)(nil), "yandex.cloud.iam.v1.UpdateKeyRequest") + proto.RegisterType((*UpdateKeyMetadata)(nil), "yandex.cloud.iam.v1.UpdateKeyMetadata") proto.RegisterType((*DeleteKeyRequest)(nil), "yandex.cloud.iam.v1.DeleteKeyRequest") + proto.RegisterType((*DeleteKeyMetadata)(nil), "yandex.cloud.iam.v1.DeleteKeyMetadata") + proto.RegisterType((*ListKeyOperationsRequest)(nil), "yandex.cloud.iam.v1.ListKeyOperationsRequest") + proto.RegisterType((*ListKeyOperationsResponse)(nil), "yandex.cloud.iam.v1.ListKeyOperationsResponse") } func init() { @@ -403,59 +664,74 @@ func init() { } var fileDescriptor_dce2d1f6e04851f2 = []byte{ - // 685 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x41, 0x53, 0xd3, 0x5c, - 0x14, 0xfd, 0x42, 0x4b, 0x87, 0x5e, 0x0a, 0x94, 0xf7, 0xa9, 0xd4, 0x2a, 0xda, 0x89, 0x82, 0x9d, - 0x2a, 0x49, 0x5b, 0x07, 0x9c, 0x11, 0x58, 0x80, 0x02, 0xc3, 0x14, 0x67, 0x98, 0xe0, 0xca, 0x4d, - 0x7d, 0x6d, 0x2f, 0xe5, 0x4d, 0x9b, 0xbc, 0x98, 0xbc, 0x76, 0x08, 0x8e, 0x1b, 0x97, 0x6c, 0xfd, - 0x2d, 0xfe, 0x06, 0xd8, 0xeb, 0x4f, 0x70, 0xe1, 0x4f, 0x70, 0x5c, 0x39, 0x79, 0x49, 0x4b, 0x60, - 0x52, 0x91, 0x65, 0x72, 0xcf, 0x3b, 0xe7, 0x9e, 0x73, 0xdf, 0xbb, 0xb0, 0xe0, 0x51, 0xab, 0x85, - 0xc7, 0x7a, 0xb3, 0xcb, 0x7b, 0x2d, 0x9d, 0x51, 0x53, 0xef, 0x57, 0xf4, 0x0e, 0x7a, 0x75, 0x17, - 0x9d, 0x3e, 0x6b, 0xa2, 0x66, 0x3b, 0x5c, 0x70, 0xf2, 0x7f, 0x00, 0xd3, 0x24, 0x4c, 0x63, 0xd4, - 0xd4, 0xfa, 0x95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 0x00, 0xff, 0xff, 0xca, 0x77, 0xed, 0xa5, 0x14, 0x06, 0x00, 0x00, + // 923 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x41, 0x73, 0xdb, 0x44, + 0x14, 0x66, 0xe3, 0xd4, 0x93, 0x3c, 0x27, 0xa9, 0xb3, 0xd0, 0x89, 0xab, 0xa1, 0x60, 0x04, 0x0d, + 0x1e, 0x43, 0x24, 0xdb, 0x4c, 0xc3, 0x0c, 0x49, 0x0f, 0x09, 0x24, 0x99, 0x8c, 0x9b, 0xa1, 0xa3, + 0x02, 0x07, 0x2e, 0x66, 0x63, 0xbd, 0x38, 0x3b, 0xb6, 0x25, 0x61, 0xad, 0x3d, 0x55, 0x19, 0x2e, + 0x1c, 0x38, 0xf4, 0xc4, 0xc0, 0x89, 0x0b, 0x0c, 0x7f, 0xa1, 0x7f, 0xa2, 0x3d, 0x17, 0x7e, 0x02, + 0x07, 0x7e, 0x02, 0xc3, 0x89, 0xd9, 0x95, 0x2c, 0x4b, 0xae, 0x6c, 0x27, 0x37, 0x4b, 0xef, 0xdb, + 0xf7, 0xbd, 0xfd, 0xde, 0xfb, 0x9e, 0x05, 0x77, 0x03, 0xe6, 0xd8, 0xf8, 0xd8, 0x6c, 0xf7, 0xdc, + 0xa1, 0x6d, 0x72, 0xd6, 0x37, 0x47, 0x75, 0xb3, 0x8b, 0x41, 0xcb, 0xc7, 0xc1, 0x88, 0xb7, 0xd1, + 0xf0, 0x06, 0xae, 0x70, 0xe9, 0xeb, 0x21, 0xcc, 0x50, 0x30, 0x83, 0xb3, 0xbe, 0x31, 0xaa, 0x6b, + 0x6f, 0x76, 0x5c, 0xb7, 0xd3, 0x43, 0x93, 0x79, 0xdc, 0x64, 0x8e, 0xe3, 0x0a, 0x26, 0xb8, 0xeb, + 0xf8, 0xe1, 0x11, 0xad, 0x1c, 0x45, 0xd5, 0xd3, 0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0xee, 0x74, 0xd0, 0x51, + 0x0a, 0x98, 0x19, 0x5f, 0x58, 0x7b, 0x9c, 0xf5, 0xcf, 0xf3, 0x2a, 0xfc, 0xd1, 0xff, 0x01, 0x00, + 0x00, 0xff, 0xff, 0xde, 0xfb, 0x78, 0xd3, 0xff, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // KeyServiceClient is the client API for KeyService service. // @@ -469,15 +745,19 @@ type KeyServiceClient interface { List(ctx context.Context, in *ListKeysRequest, opts ...grpc.CallOption) (*ListKeysResponse, error) // Creates a key pair for the specified service account. Create(ctx context.Context, in *CreateKeyRequest, opts ...grpc.CallOption) (*CreateKeyResponse, error) + // Updates the specified key pair. + Update(ctx context.Context, in *UpdateKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Deletes the specified key pair. - Delete(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) + Delete(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Lists operations for the specified key. + ListOperations(ctx context.Context, in *ListKeyOperationsRequest, opts ...grpc.CallOption) (*ListKeyOperationsResponse, error) } type keyServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewKeyServiceClient(cc *grpc.ClientConn) KeyServiceClient { +func NewKeyServiceClient(cc grpc.ClientConnInterface) KeyServiceClient { return &keyServiceClient{cc} } @@ -508,8 +788,17 @@ func (c *keyServiceClient) Create(ctx context.Context, in *CreateKeyRequest, opt return out, nil } -func (c *keyServiceClient) Delete(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) +func (c *keyServiceClient) Update(ctx context.Context, in *UpdateKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.iam.v1.KeyService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *keyServiceClient) Delete(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) err := c.cc.Invoke(ctx, "/yandex.cloud.iam.v1.KeyService/Delete", in, out, opts...) if err != nil { return nil, err @@ -517,6 +806,15 @@ func (c *keyServiceClient) Delete(ctx context.Context, in *DeleteKeyRequest, opt return out, nil } +func (c *keyServiceClient) ListOperations(ctx context.Context, in *ListKeyOperationsRequest, opts ...grpc.CallOption) (*ListKeyOperationsResponse, error) { + out := new(ListKeyOperationsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.iam.v1.KeyService/ListOperations", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // KeyServiceServer is the server API for KeyService service. type KeyServiceServer interface { // Returns the specified Key resource. @@ -527,8 +825,12 @@ type KeyServiceServer interface { List(context.Context, *ListKeysRequest) (*ListKeysResponse, error) // Creates a key pair for the specified service account. Create(context.Context, *CreateKeyRequest) (*CreateKeyResponse, error) + // Updates the specified key pair. + Update(context.Context, *UpdateKeyRequest) (*operation.Operation, error) // Deletes the specified key pair. - Delete(context.Context, *DeleteKeyRequest) (*empty.Empty, error) + Delete(context.Context, *DeleteKeyRequest) (*operation.Operation, error) + // Lists operations for the specified key. + ListOperations(context.Context, *ListKeyOperationsRequest) (*ListKeyOperationsResponse, error) } // UnimplementedKeyServiceServer can be embedded to have forward compatible implementations. @@ -544,9 +846,15 @@ func (*UnimplementedKeyServiceServer) List(ctx context.Context, req *ListKeysReq func (*UnimplementedKeyServiceServer) Create(ctx context.Context, req *CreateKeyRequest) (*CreateKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") } -func (*UnimplementedKeyServiceServer) Delete(ctx context.Context, req *DeleteKeyRequest) (*empty.Empty, error) { +func (*UnimplementedKeyServiceServer) Update(ctx context.Context, req *UpdateKeyRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedKeyServiceServer) Delete(ctx context.Context, req *DeleteKeyRequest) (*operation.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } +func (*UnimplementedKeyServiceServer) ListOperations(ctx context.Context, req *ListKeyOperationsRequest) (*ListKeyOperationsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") +} func RegisterKeyServiceServer(s *grpc.Server, srv KeyServiceServer) { s.RegisterService(&_KeyService_serviceDesc, srv) @@ -606,6 +914,24 @@ func _KeyService_Create_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } +func _KeyService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KeyServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.iam.v1.KeyService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KeyServiceServer).Update(ctx, req.(*UpdateKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _KeyService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteKeyRequest) if err := dec(in); err != nil { @@ -624,6 +950,24 @@ func _KeyService_Delete_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } +func _KeyService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListKeyOperationsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KeyServiceServer).ListOperations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.iam.v1.KeyService/ListOperations", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KeyServiceServer).ListOperations(ctx, req.(*ListKeyOperationsRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _KeyService_serviceDesc = grpc.ServiceDesc{ ServiceName: "yandex.cloud.iam.v1.KeyService", HandlerType: (*KeyServiceServer)(nil), @@ -640,10 +984,18 @@ var _KeyService_serviceDesc = grpc.ServiceDesc{ MethodName: "Create", Handler: _KeyService_Create_Handler, }, + { + MethodName: "Update", + Handler: _KeyService_Update_Handler, + }, { MethodName: "Delete", Handler: _KeyService_Delete_Handler, }, + { + MethodName: "ListOperations", + Handler: _KeyService_ListOperations_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "yandex/cloud/iam/v1/key_service.proto", diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/key_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/key_service.pbext.go new file mode 100644 index 000000000..b72cd757b --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/key_service.pbext.go @@ -0,0 +1,108 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package iam + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetKeyRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *GetKeyRequest) SetFormat(v KeyFormat) { + m.Format = v +} + +func (m *ListKeysRequest) SetFormat(v KeyFormat) { + m.Format = v +} + +func (m *ListKeysRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *ListKeysRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListKeysRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListKeysResponse) SetKeys(v []*Key) { + m.Keys = v +} + +func (m *ListKeysResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateKeyRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *CreateKeyRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateKeyRequest) SetFormat(v KeyFormat) { + m.Format = v +} + +func (m *CreateKeyRequest) SetKeyAlgorithm(v Key_Algorithm) { + m.KeyAlgorithm = v +} + +func (m *CreateKeyResponse) SetKey(v *Key) { + m.Key = v +} + +func (m *CreateKeyResponse) SetPrivateKey(v string) { + m.PrivateKey = v +} + +func (m *UpdateKeyRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *UpdateKeyRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateKeyRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateKeyMetadata) SetKeyId(v string) { + m.KeyId = v +} + +func (m *DeleteKeyRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *DeleteKeyMetadata) SetKeyId(v string) { + m.KeyId = v +} + +func (m *ListKeyOperationsRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *ListKeyOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListKeyOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListKeyOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListKeyOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/role.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/role.pb.go index dd1752c80..87e7b758a 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/role.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/role.pb.go @@ -74,18 +74,21 @@ func init() { proto.RegisterType((*Role)(nil), "yandex.cloud.iam.v1.Role") } -func init() { proto.RegisterFile("yandex/cloud/iam/v1/role.proto", fileDescriptor_1c9c017dca8060cc) } +func init() { + proto.RegisterFile("yandex/cloud/iam/v1/role.proto", fileDescriptor_1c9c017dca8060cc) +} var fileDescriptor_1c9c017dca8060cc = []byte{ - // 155 bytes of a gzipped FileDescriptorProto + // 165 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xab, 0x4c, 0xcc, 0x4b, 0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0xcf, 0x4c, 0xcc, 0xd5, 0x2f, 0x33, 0xd4, 0x2f, 0xca, 0xcf, 0x49, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0xc8, 0xeb, 0x81, 0xe5, 0xf5, 0x32, 0x13, 0x73, 0xf5, 0xca, 0x0c, 0x95, 0x2c, 0xb8, 0x58, 0x82, 0xf2, 0x73, 0x52, 0x85, 0xf8, 0xb8, 0x98, 0x32, 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x98, 0x32, 0x53, 0x84, 0x14, 0xb8, 0xb8, 0x53, 0x52, 0x8b, 0x93, 0x8b, 0x32, 0x0b, 0x4a, 0x32, 0xf3, 0xf3, 0x24, - 0x98, 0xc0, 0x12, 0xc8, 0x42, 0x4e, 0xb6, 0x51, 0xd6, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, - 0xc9, 0xf9, 0xb9, 0xfa, 0x10, 0xb3, 0x75, 0x21, 0x76, 0xa7, 0xe7, 0xeb, 0xa6, 0xa7, 0xe6, 0x81, - 0x6d, 0xd5, 0xc7, 0xe2, 0x28, 0xeb, 0xcc, 0xc4, 0xdc, 0x24, 0x36, 0xb0, 0xb4, 0x31, 0x20, 0x00, - 0x00, 0xff, 0xff, 0x48, 0x72, 0x28, 0xb9, 0xb6, 0x00, 0x00, 0x00, + 0x98, 0xc0, 0x12, 0xc8, 0x42, 0x4e, 0x61, 0x5c, 0xe2, 0x28, 0x06, 0x26, 0x16, 0x64, 0x42, 0x0d, + 0x8d, 0xb2, 0x4e, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x87, 0xa8, 0xd1, + 0x85, 0x38, 0x2a, 0x3d, 0x5f, 0x37, 0x3d, 0x35, 0x0f, 0xec, 0x1c, 0x7d, 0x2c, 0xae, 0xb5, 0xce, + 0x4c, 0xcc, 0x4d, 0x62, 0x03, 0x4b, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x32, 0xf5, 0xbd, + 0x25, 0xcf, 0x00, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/role.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/role.pbext.go new file mode 100644 index 000000000..996868aba --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/role.pbext.go @@ -0,0 +1,11 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package iam + +func (m *Role) SetId(v string) { + m.Id = v +} + +func (m *Role) SetDescription(v string) { + m.Description = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/role_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/role_service.pb.go index 31c87e340..db2510dd3 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/role_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/role_service.pb.go @@ -196,43 +196,44 @@ func init() { } var fileDescriptor_f5f653f182a3525c = []byte{ - // 431 bytes of a gzipped FileDescriptorProto + // 439 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0x3f, 0x6f, 0xd3, 0x40, - 0x14, 0x97, 0x9b, 0x36, 0x90, 0x57, 0x4a, 0xe1, 0x10, 0xc2, 0xb5, 0xf8, 0x53, 0x19, 0x35, 0x64, - 0xa9, 0xcf, 0x2e, 0x42, 0x0c, 0x6d, 0x96, 0x2c, 0x15, 0x12, 0x03, 0x72, 0x99, 0x58, 0xa2, 0x6b, - 0xfc, 0x6a, 0x4e, 0x9c, 0xef, 0x8c, 0xef, 0x62, 0x95, 0x22, 0x16, 0x36, 0xb2, 0xf2, 0xa1, 0x9a, - 0x9d, 0x8f, 0x00, 0x03, 0x9f, 0x81, 0x09, 0xf9, 0x2e, 0x45, 0x4d, 0xe5, 0x8a, 0xf5, 0x7e, 0x7f, - 0xef, 0xbd, 0x07, 0xfd, 0x4f, 0x4c, 0x66, 0x78, 0x4a, 0x27, 0x42, 0x4d, 0x33, 0xca, 0x59, 0x41, - 0xeb, 0x84, 0x56, 0x4a, 0xe0, 0x58, 0x63, 0x55, 0xf3, 0x09, 0x46, 0x65, 0xa5, 0x8c, 0x22, 0xf7, - 0x1c, 0x2f, 0xb2, 0xbc, 0x88, 0xb3, 0x22, 0xaa, 0x93, 0xe0, 0x61, 0xae, 0x54, 0x2e, 0x90, 0xb2, - 0x92, 0x53, 0x26, 0xa5, 0x32, 0xcc, 0x70, 0x25, 0xb5, 0x93, 0x04, 0x8f, 0x96, 0xac, 0x6b, 0x26, - 0x78, 0x66, 0xf1, 0x05, 0xfc, 0xf8, 0xba, 0x64, 0x87, 0x87, 0x2f, 0xe1, 0xf6, 0x21, 0x9a, 0x54, - 0x09, 0x4c, 0xf1, 0xe3, 0x14, 0xb5, 0x21, 0x3b, 0x70, 0xc3, 0x36, 0xe3, 0x99, 0xef, 0x6d, 0x7b, - 0x83, 0xde, 0xe8, 0xd6, 0xef, 0xf3, 0xc4, 0x9b, 0xcd, 0x93, 0xd5, 0x83, 0xe1, 0x8b, 0x38, 0xed, - 0x36, 0xe0, 0xab, 0x2c, 0xfc, 0xe6, 0xc1, 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, 0xa0, 0x73, 0x88, 0x86, 0x3c, 0x69, 0x0d, 0x68, + 0x0e, 0x77, 0x70, 0x7d, 0x0b, 0xff, 0xf1, 0xd7, 0x1f, 0xbf, 0xbe, 0x2f, 0x6d, 0x92, 0x8d, 0xcb, + 0x5b, 0xd2, 0xf4, 0x73, 0xbd, 0x8c, 0x2f, 0x44, 0xc0, 0x72, 0xf5, 0x4b, 0xb2, 0xdd, 0xea, 0x71, + 0x75, 0x17, 0x83, 0xe1, 0xff, 0x68, 0x6e, 0x4e, 0xfe, 0x7d, 0x9b, 0xbb, 0x4e, 0xd6, 0x1a, 0xb9, + 0xe3, 0xb7, 0xb0, 0xd1, 0xd0, 0xb3, 0x9c, 0xd7, 0x1e, 0xef, 0xf6, 0x52, 0x6e, 0xde, 0xcf, 0x8e, + 0x83, 0xa9, 0xca, 0xa8, 0xe3, 0xec, 0xb8, 0xf3, 0x4a, 0xd5, 0x4e, 0x8a, 0xd2, 0x1e, 0x16, 0x6d, + 0xb9, 0xbb, 0x3d, 0xce, 0xb2, 0xe3, 0xae, 0x85, 0x9f, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x14, + 0x6a, 0xee, 0xf9, 0x13, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // RoleServiceClient is the client API for RoleService service. // @@ -240,17 +241,17 @@ const _ = grpc.SupportPackageIsVersion4 type RoleServiceClient interface { // Returns the specified Role resource. // - // To get the list of available Role resources, use a [List] request. + // To get the list of available Role resources, make a [List] request. Get(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*Role, error) // Retrieves the list of Role resources. List(ctx context.Context, in *ListRolesRequest, opts ...grpc.CallOption) (*ListRolesResponse, error) } type roleServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewRoleServiceClient(cc *grpc.ClientConn) RoleServiceClient { +func NewRoleServiceClient(cc grpc.ClientConnInterface) RoleServiceClient { return &roleServiceClient{cc} } @@ -276,7 +277,7 @@ func (c *roleServiceClient) List(ctx context.Context, in *ListRolesRequest, opts type RoleServiceServer interface { // Returns the specified Role resource. // - // To get the list of available Role resources, use a [List] request. + // To get the list of available Role resources, make a [List] request. Get(context.Context, *GetRoleRequest) (*Role, error) // Retrieves the list of Role resources. List(context.Context, *ListRolesRequest) (*ListRolesResponse, error) diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/role_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/role_service.pbext.go new file mode 100644 index 000000000..6880c4e72 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/role_service.pbext.go @@ -0,0 +1,27 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package iam + +func (m *GetRoleRequest) SetRoleId(v string) { + m.RoleId = v +} + +func (m *ListRolesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListRolesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListRolesRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListRolesResponse) SetRoles(v []*Role) { + m.Roles = v +} + +func (m *ListRolesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/service_account.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/service_account.pb.go index e3fa7fab2..930d96cee 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/service_account.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/service_account.pb.go @@ -109,22 +109,23 @@ func init() { } var fileDescriptor_053d0ddb735dcde2 = []byte{ - // 269 bytes of a gzipped FileDescriptorProto + // 277 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x4b, 0xc3, 0x30, - 0x18, 0xc5, 0x69, 0x9d, 0x62, 0x33, 0xd8, 0x21, 0x5e, 0x4a, 0x45, 0x2c, 0x9e, 0xe6, 0x61, 0x09, - 0xd3, 0x93, 0x0c, 0x0f, 0xf3, 0xe6, 0x75, 0x7a, 0xf2, 0x52, 0xbe, 0x26, 0xdf, 0xea, 0x07, 0x4d, - 0x53, 0xd2, 0xb4, 0xe8, 0x3f, 0xe5, 0xdf, 0x28, 0x26, 0x0e, 0x14, 0x76, 0x0b, 0xef, 0xbd, 0xe4, - 0xfd, 0x5e, 0xd8, 0xed, 0x27, 0x74, 0x1a, 0x3f, 0xa4, 0x6a, 0xed, 0xa8, 0x25, 0x81, 0x91, 0xd3, - 0x5a, 0x0e, 0xe8, 0x26, 0x52, 0x58, 0x81, 0x52, 0x76, 0xec, 0xbc, 0xe8, 0x9d, 0xf5, 0x96, 0x5f, - 0xc4, 0xa8, 0x08, 0x51, 0x41, 0x60, 0xc4, 0xb4, 0x2e, 0xae, 0x1b, 0x6b, 0x9b, 0x16, 0x65, 0x88, - 0xd4, 0xe3, 0x5e, 0x7a, 0x32, 0x38, 0x78, 0x30, 0x7d, 0xbc, 0x55, 0x5c, 0xfd, 0x2b, 0x98, 0xa0, - 0x25, 0x0d, 0x9e, 0x6c, 0x17, 0xed, 0x9b, 0xaf, 0x84, 0x2d, 0x5e, 0x62, 0xdd, 0x36, 0xb6, 0xf1, - 0x05, 0x4b, 0x49, 0xe7, 0x49, 0x99, 0x2c, 0xb3, 0x5d, 0x4a, 0x9a, 0x5f, 0xb2, 0x6c, 0x6f, 0x5b, - 0x8d, 0xae, 0x22, 0x9d, 0xa7, 0x41, 0x3e, 0x8f, 0xc2, 0xb3, 0xe6, 0x0f, 0x8c, 0x29, 0x87, 0xe0, - 0x51, 0x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5b, 0x5b, 0x37, 0x28, 0x43, + 0xa4, 0x1a, 0x76, 0xd2, 0x93, 0xc1, 0xde, 0x83, 0xe9, 0xe2, 0xad, 0xfc, 0xfa, 0xa8, 0x60, 0x84, + 0x86, 0x34, 0x78, 0xb2, 0x6d, 0xb4, 0x6f, 0xbf, 0x13, 0x36, 0x7f, 0x89, 0x75, 0x9b, 0xd8, 0xc6, + 0xe7, 0x6c, 0x42, 0x3a, 0x4b, 0x8a, 0x64, 0x91, 0x6e, 0x27, 0xa4, 0xf9, 0x15, 0x4b, 0x77, 0xb6, + 0xd1, 0xe8, 0x4a, 0xd2, 0xd9, 0x24, 0xc8, 0xe7, 0x51, 0x78, 0xd6, 0xfc, 0x91, 0x31, 0xe5, 0x10, + 0x3c, 0xea, 0x12, 0x7c, 0x76, 0x52, 0x24, 0x8b, 0xd9, 0x7d, 0x2e, 0x22, 0x94, 0x38, 0x40, 0x89, + 0xd7, 0x03, 0xd4, 0x36, 0xdd, 0xa7, 0x37, 0x9e, 0x73, 0x36, 0x6d, 0xc1, 0x60, 0x36, 0x0d, 0x4f, + 0x86, 0x33, 0x2f, 0xd8, 0x4c, 0x63, 0xaf, 0x1c, 0x75, 0xbf, 0x8c, 0xd9, 0x69, 0xb0, 0xfe, 0x4a, + 0x4f, 0x6f, 0xec, 0xf2, 0x68, 0x07, 0xe8, 0x68, 0xbf, 0xc5, 0xfb, 0xba, 0x26, 0xff, 0x31, 0x54, + 0x42, 0x59, 0x23, 0x63, 0x66, 0x19, 0x7f, 0x5d, 0xdb, 0x65, 0x8d, 0x6d, 0xa0, 0x91, 0xff, 0xec, + 0xbd, 0x26, 0x30, 0xd5, 0x59, 0xb0, 0x1f, 0x7e, 0x02, 0x00, 0x00, 0xff, 0xff, 0x11, 0x3b, 0xcc, + 0x61, 0x91, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/service_account.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/service_account.pbext.go new file mode 100644 index 000000000..826f34f95 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/service_account.pbext.go @@ -0,0 +1,27 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package iam + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *ServiceAccount) SetId(v string) { + m.Id = v +} + +func (m *ServiceAccount) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ServiceAccount) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *ServiceAccount) SetName(v string) { + m.Name = v +} + +func (m *ServiceAccount) SetDescription(v string) { + m.Description = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/service_account_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/service_account_service.pb.go index 65b742a58..bcf29a053 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/service_account_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/service_account_service.pb.go @@ -627,80 +627,80 @@ func init() { } var fileDescriptor_b44ea8947de11d22 = []byte{ - // 1014 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcd, 0x6f, 0x1b, 0x45, - 0x1c, 0xd5, 0xd4, 0xc6, 0xaa, 0x7f, 0xa1, 0x1f, 0x0c, 0x54, 0x18, 0x27, 0x15, 0x66, 0x03, 0x25, - 0x35, 0xf1, 0xae, 0xd7, 0x90, 0xb6, 0xce, 0x87, 0x4a, 0xcc, 0x47, 0x55, 0xa9, 0x05, 0xb4, 0x29, - 0x48, 0x10, 0x55, 0xd6, 0x64, 0x77, 0x62, 0x46, 0xb1, 0x77, 0xcd, 0xce, 0x3a, 0x6a, 0x53, 0x2a, - 0x24, 0x24, 0x2e, 0xb9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, 0x2a, 0xc1, 0xb7, 0x50, 0xcb, 0xa9, 0xb4, 0xa8, 0x2d, 0xdc, 0xd3, 0x24, 0x5f, 0x66, - 0x4b, 0x8c, 0x74, 0x36, 0x72, 0x62, 0xf8, 0xcd, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0x99, 0x86, - 0xfe, 0x32, 0x65, 0x0e, 0x00, 0x00, + // 1022 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcf, 0x6f, 0x1b, 0x45, + 0x18, 0xd5, 0x34, 0xc6, 0xaa, 0xbf, 0xd0, 0x1f, 0x0c, 0x54, 0x35, 0x4e, 0x2a, 0xcc, 0x06, 0x4a, + 0x6a, 0xe2, 0x5d, 0xaf, 0x21, 0x6d, 0x9d, 0xa4, 0x2a, 0x31, 0x3f, 0xaa, 0x4a, 0x2d, 0xa0, 0x4d, + 0xa9, 0x04, 0x51, 0x65, 0x4d, 0x76, 0x27, 0x66, 0x14, 0x7b, 0x77, 0xd9, 0x59, 0x47, 0x6d, 0x4a, + 0x85, 0x84, 0xc4, 0x25, 0x17, 0x84, 0x10, 0xff, 0x07, 0x0a, 0x48, 0xdc, 0x38, 0x92, 0x1c, 0x38, + 0x85, 0x7f, 0x01, 0xa1, 0x9e, 0xe1, 0xc6, 0x01, 0xa1, 0x9d, 0x5d, 0x3b, 0xd9, 0xf5, 0xac, 0xb3, + 0x4e, 0xdb, 0x53, 0xb2, 0x3b, 0xdf, 0xbc, 0x79, 0xef, 0xcd, 0x37, 0x6f, 0xbc, 0xa0, 0x3f, 0x20, + 0xb6, 0x45, 0xef, 0x6b, 0x66, 0xc7, 0xe9, 0x59, 0x1a, 0x23, 0x5d, 0x6d, 0x53, 0xd7, 0x38, 0xf5, + 0x36, 0x99, 0x49, 0x5b, 0xc4, 0x34, 0x9d, 0x9e, 0xed, 0xb7, 0xa2, 0x67, 0xd5, 0xf5,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 0x63, 0x6c, 0xc8, 0x57, 0x3b, 0xfb, 0x95, 0x06, 0x94, 0xd3, 0x90, + 0xb2, 0x6c, 0xca, 0x92, 0x72, 0x25, 0x9b, 0x4c, 0x9e, 0x44, 0x0f, 0x3a, 0xee, 0x1f, 0x04, 0x2f, + 0x85, 0x9d, 0x9d, 0xd0, 0x5a, 0x93, 0x6a, 0x95, 0x95, 0x8e, 0x21, 0xf7, 0x1b, 0xb4, 0xb3, 0x5f, + 0x59, 0x82, 0x99, 0x11, 0x68, 0x59, 0x24, 0x5f, 0x57, 0x16, 0xb2, 0x49, 0xee, 0x49, 0x16, 0x08, + 0x54, 0xff, 0x86, 0xe0, 0x74, 0xd0, 0x3f, 0x07, 0xf7, 0x14, 0xbe, 0x9a, 0x31, 0x4e, 0x87, 0x6e, + 0xe4, 0x52, 0xe3, 0x18, 0x33, 0xa3, 0x46, 0xbd, 0x2e, 0xe4, 0x34, 0xf0, 0x95, 0x71, 0x8e, 0xd5, + 0xc1, 0x37, 0x10, 0x6f, 0xde, 0x85, 0xf3, 0xf1, 0x6d, 0x72, 0x59, 0x44, 0xe0, 0xb3, 0xc5, 0x36, + 0xf3, 0x3f, 0xef, 0xad, 0xa9, 0xa6, 0xd3, 0xd5, 0xc2, 0x9a, 0x6a, 0xf8, 0x91, 0xd4, 0x76, 0xaa, + 0x6d, 0x6a, 0x0b, 0x5b, 0x35, 0xc9, 0x27, 0xdb, 0x22, 0x23, 0xdd, 0xb5, 0xbc, 0x18, 0x7e, 0xeb, + 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x36, 0xed, 0xc8, 0x60, 0x7e, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // ServiceAccountServiceClient is the client API for ServiceAccountService service. // @@ -708,7 +708,7 @@ const _ = grpc.SupportPackageIsVersion4 type ServiceAccountServiceClient interface { // Returns the specified ServiceAccount resource. // - // To get the list of available ServiceAccount resources, use a [List] request. + // To get the list of available ServiceAccount resources, make a [List] request. Get(ctx context.Context, in *GetServiceAccountRequest, opts ...grpc.CallOption) (*ServiceAccount, error) // Retrieves the list of ServiceAccount resources in the specified folder. List(ctx context.Context, in *ListServiceAccountsRequest, opts ...grpc.CallOption) (*ListServiceAccountsResponse, error) @@ -729,10 +729,10 @@ type ServiceAccountServiceClient interface { } type serviceAccountServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewServiceAccountServiceClient(cc *grpc.ClientConn) ServiceAccountServiceClient { +func NewServiceAccountServiceClient(cc grpc.ClientConnInterface) ServiceAccountServiceClient { return &serviceAccountServiceClient{cc} } @@ -821,7 +821,7 @@ func (c *serviceAccountServiceClient) ListOperations(ctx context.Context, in *Li type ServiceAccountServiceServer interface { // Returns the specified ServiceAccount resource. // - // To get the list of available ServiceAccount resources, use a [List] request. + // To get the list of available ServiceAccount resources, make a [List] request. Get(context.Context, *GetServiceAccountRequest) (*ServiceAccount, error) // Retrieves the list of ServiceAccount resources in the specified folder. List(context.Context, *ListServiceAccountsRequest) (*ListServiceAccountsResponse, error) diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/service_account_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/service_account_service.pbext.go new file mode 100644 index 000000000..ec62c9ad1 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/service_account_service.pbext.go @@ -0,0 +1,100 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package iam + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetServiceAccountRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *ListServiceAccountsRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListServiceAccountsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListServiceAccountsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListServiceAccountsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListServiceAccountsResponse) SetServiceAccounts(v []*ServiceAccount) { + m.ServiceAccounts = v +} + +func (m *ListServiceAccountsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateServiceAccountRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateServiceAccountRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateServiceAccountRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateServiceAccountMetadata) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *UpdateServiceAccountRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *UpdateServiceAccountRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateServiceAccountRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateServiceAccountRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateServiceAccountMetadata) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *DeleteServiceAccountRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *DeleteServiceAccountMetadata) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *ListServiceAccountOperationsRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *ListServiceAccountOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListServiceAccountOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListServiceAccountOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListServiceAccountOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/user_account.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/user_account.pb.go index ed210eb40..4076fda22 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/user_account.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/user_account.pb.go @@ -27,6 +27,7 @@ type UserAccount struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Types that are valid to be assigned to UserAccount: // *UserAccount_YandexPassportUserAccount + // *UserAccount_SamlUserAccount UserAccount isUserAccount_UserAccount `protobuf_oneof:"user_account"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -73,8 +74,14 @@ type UserAccount_YandexPassportUserAccount struct { YandexPassportUserAccount *YandexPassportUserAccount `protobuf:"bytes,2,opt,name=yandex_passport_user_account,json=yandexPassportUserAccount,proto3,oneof"` } +type UserAccount_SamlUserAccount struct { + SamlUserAccount *SamlUserAccount `protobuf:"bytes,3,opt,name=saml_user_account,json=samlUserAccount,proto3,oneof"` +} + func (*UserAccount_YandexPassportUserAccount) isUserAccount_UserAccount() {} +func (*UserAccount_SamlUserAccount) isUserAccount_UserAccount() {} + func (m *UserAccount) GetUserAccount() isUserAccount_UserAccount { if m != nil { return m.UserAccount @@ -89,14 +96,23 @@ func (m *UserAccount) GetYandexPassportUserAccount() *YandexPassportUserAccount return nil } +func (m *UserAccount) GetSamlUserAccount() *SamlUserAccount { + if x, ok := m.GetUserAccount().(*UserAccount_SamlUserAccount); ok { + return x.SamlUserAccount + } + return nil +} + // XXX_OneofWrappers is for the internal use of the proto package. func (*UserAccount) XXX_OneofWrappers() []interface{} { return []interface{}{ (*UserAccount_YandexPassportUserAccount)(nil), + (*UserAccount_SamlUserAccount)(nil), } } -// A YandexPassportUserAccount resource. For more information, see [Yandex.Passport account](/docs/iam/concepts/#passport). +// A YandexPassportUserAccount resource. +// For more information, see [Yandex.Passport account](/docs/iam/concepts/#passport). type YandexPassportUserAccount struct { // Login of the Yandex.Passport user account. Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` @@ -146,9 +162,112 @@ func (m *YandexPassportUserAccount) GetDefaultEmail() string { return "" } +// A SAML federated user. +// For more information, see [federations](/docs/iam/concepts/users/saml-federations). +type SamlUserAccount struct { + // ID of the federation that the federation belongs to. + FederationId string `protobuf:"bytes,1,opt,name=federation_id,json=federationId,proto3" json:"federation_id,omitempty"` + // Name Id of the SAML federated user. + // The name is unique within the federation. 1-256 characters long. + NameId string `protobuf:"bytes,2,opt,name=name_id,json=nameId,proto3" json:"name_id,omitempty"` + // Additional attributes of the SAML federated user. + Attributes map[string]*SamlUserAccount_Attribute `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,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 *SamlUserAccount) Reset() { *m = SamlUserAccount{} } +func (m *SamlUserAccount) String() string { return proto.CompactTextString(m) } +func (*SamlUserAccount) ProtoMessage() {} +func (*SamlUserAccount) Descriptor() ([]byte, []int) { + return fileDescriptor_101d694eed7724ca, []int{2} +} + +func (m *SamlUserAccount) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SamlUserAccount.Unmarshal(m, b) +} +func (m *SamlUserAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SamlUserAccount.Marshal(b, m, deterministic) +} +func (m *SamlUserAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_SamlUserAccount.Merge(m, src) +} +func (m *SamlUserAccount) XXX_Size() int { + return xxx_messageInfo_SamlUserAccount.Size(m) +} +func (m *SamlUserAccount) XXX_DiscardUnknown() { + xxx_messageInfo_SamlUserAccount.DiscardUnknown(m) +} + +var xxx_messageInfo_SamlUserAccount proto.InternalMessageInfo + +func (m *SamlUserAccount) GetFederationId() string { + if m != nil { + return m.FederationId + } + return "" +} + +func (m *SamlUserAccount) GetNameId() string { + if m != nil { + return m.NameId + } + return "" +} + +func (m *SamlUserAccount) GetAttributes() map[string]*SamlUserAccount_Attribute { + if m != nil { + return m.Attributes + } + return nil +} + +type SamlUserAccount_Attribute struct { + Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SamlUserAccount_Attribute) Reset() { *m = SamlUserAccount_Attribute{} } +func (m *SamlUserAccount_Attribute) String() string { return proto.CompactTextString(m) } +func (*SamlUserAccount_Attribute) ProtoMessage() {} +func (*SamlUserAccount_Attribute) Descriptor() ([]byte, []int) { + return fileDescriptor_101d694eed7724ca, []int{2, 0} +} + +func (m *SamlUserAccount_Attribute) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SamlUserAccount_Attribute.Unmarshal(m, b) +} +func (m *SamlUserAccount_Attribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SamlUserAccount_Attribute.Marshal(b, m, deterministic) +} +func (m *SamlUserAccount_Attribute) XXX_Merge(src proto.Message) { + xxx_messageInfo_SamlUserAccount_Attribute.Merge(m, src) +} +func (m *SamlUserAccount_Attribute) XXX_Size() int { + return xxx_messageInfo_SamlUserAccount_Attribute.Size(m) +} +func (m *SamlUserAccount_Attribute) XXX_DiscardUnknown() { + xxx_messageInfo_SamlUserAccount_Attribute.DiscardUnknown(m) +} + +var xxx_messageInfo_SamlUserAccount_Attribute proto.InternalMessageInfo + +func (m *SamlUserAccount_Attribute) GetValue() []string { + if m != nil { + return m.Value + } + return nil +} + func init() { proto.RegisterType((*UserAccount)(nil), "yandex.cloud.iam.v1.UserAccount") proto.RegisterType((*YandexPassportUserAccount)(nil), "yandex.cloud.iam.v1.YandexPassportUserAccount") + proto.RegisterType((*SamlUserAccount)(nil), "yandex.cloud.iam.v1.SamlUserAccount") + proto.RegisterMapType((map[string]*SamlUserAccount_Attribute)(nil), "yandex.cloud.iam.v1.SamlUserAccount.AttributesEntry") + proto.RegisterType((*SamlUserAccount_Attribute)(nil), "yandex.cloud.iam.v1.SamlUserAccount.Attribute") } func init() { @@ -156,22 +275,34 @@ func init() { } var fileDescriptor_101d694eed7724ca = []byte{ - // 258 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x50, 0xcf, 0x4b, 0xc3, 0x30, - 0x14, 0xb6, 0x05, 0x85, 0x65, 0x73, 0x87, 0xe8, 0x61, 0x13, 0x85, 0x31, 0x41, 0x76, 0x59, 0xc2, - 0xf4, 0x38, 0x3c, 0x38, 0x10, 0x3c, 0x4a, 0x41, 0x41, 0x2f, 0xe5, 0xad, 0x89, 0xf5, 0x41, 0x7e, - 0xd4, 0x36, 0x29, 0xee, 0xbf, 0xf1, 0x4f, 0x15, 0x93, 0x1e, 0x2a, 0x6c, 0xc7, 0xf7, 0xbd, 0xef, - 0x17, 0x1f, 0xb9, 0xd9, 0x81, 0x11, 0xf2, 0x9b, 0x17, 0xca, 0x7a, 0xc1, 0x11, 0x34, 0x6f, 0x57, - 0xdc, 0x37, 0xb2, 0xce, 0xa1, 0x28, 0xac, 0x37, 0x8e, 0x55, 0xb5, 0x75, 0x96, 0x9e, 0x45, 0x1e, - 0x0b, 0x3c, 0x86, 0xa0, 0x59, 0xbb, 0xba, 0xb8, 0xfa, 0x27, 0x6e, 0x41, 0xa1, 0x00, 0x87, 0xd6, - 0x44, 0xcd, 0xfc, 0x27, 0x21, 0xc3, 0x97, 0x46, 0xd6, 0x0f, 0xd1, 0x89, 0x8e, 0x49, 0x8a, 0x62, - 0x92, 0xcc, 0x92, 0xc5, 0x20, 0x4b, 0x51, 0xd0, 0x2f, 0x72, 0x19, 0x0d, 0xf2, 0x0a, 0x9a, 0xa6, - 0xb2, 0xb5, 0xcb, 0xfb, 0xc9, 0x93, 0x74, 0x96, 0x2c, 0x86, 0xb7, 0x8c, 0xed, 0x89, 0x66, 0x6f, - 0x01, 0x7b, 0xee, 0x74, 0xbd, 0x94, 0xa7, 0xa3, 0x6c, 0xba, 0x3b, 0xf4, 0xdc, 0x8c, 0xc9, 0xa8, - 0x1f, 0x31, 0x7f, 0x25, 0xd3, 0x83, 0x4e, 0xf4, 0x9c, 0x1c, 0x2b, 0x5b, 0xa2, 0xe9, 0x2a, 0xc7, - 0x83, 0x5e, 0x93, 0x53, 0x21, 0x3f, 0xc0, 0x2b, 0x97, 0x4b, 0x0d, 0xa8, 0x42, 0xcd, 0x41, 0x36, - 0xea, 0xc0, 0xc7, 0x3f, 0x6c, 0x73, 0xff, 0xbe, 0x2e, 0xd1, 0x7d, 0xfa, 0x2d, 0x2b, 0xac, 0xe6, - 0xb1, 0xcf, 0x32, 0xce, 0x54, 0xda, 0x65, 0x29, 0x4d, 0x58, 0x88, 0xef, 0x19, 0x7f, 0x8d, 0xa0, - 0xb7, 0x27, 0xe1, 0x7d, 0xf7, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xf9, 0xdc, 0xc7, 0x2e, 0x9e, 0x01, - 0x00, 0x00, + // 451 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x4d, 0x6e, 0xd3, 0x40, + 0x14, 0xc6, 0x76, 0x5b, 0x94, 0x97, 0x84, 0xc0, 0x50, 0x89, 0x34, 0x02, 0x29, 0x04, 0x54, 0x65, + 0x93, 0x31, 0x0e, 0x14, 0x21, 0x0a, 0x8b, 0x46, 0x54, 0xa2, 0x3b, 0x64, 0xa0, 0x12, 0x6c, 0xac, + 0x97, 0xcc, 0x34, 0x8c, 0x98, 0xf1, 0x04, 0x7b, 0x1c, 0x91, 0x2b, 0x70, 0x2a, 0x58, 0xc1, 0x01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xe6, 0x37, 0x3a, 0x14, + 0xa8, 0xa6, 0x3b, 0x16, 0x7e, 0xf8, 0x27, 0x00, 0x00, 0xff, 0xff, 0xf4, 0x7a, 0xf0, 0xec, 0x68, + 0x03, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/user_account.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/user_account.pbext.go new file mode 100644 index 000000000..ed335a3b8 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/user_account.pbext.go @@ -0,0 +1,49 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package iam + +type UserAccount_UserAccount = isUserAccount_UserAccount + +func (m *UserAccount) SetUserAccount(v UserAccount_UserAccount) { + m.UserAccount = v +} + +func (m *UserAccount) SetId(v string) { + m.Id = v +} + +func (m *UserAccount) SetYandexPassportUserAccount(v *YandexPassportUserAccount) { + m.UserAccount = &UserAccount_YandexPassportUserAccount{ + YandexPassportUserAccount: v, + } +} + +func (m *UserAccount) SetSamlUserAccount(v *SamlUserAccount) { + m.UserAccount = &UserAccount_SamlUserAccount{ + SamlUserAccount: v, + } +} + +func (m *YandexPassportUserAccount) SetLogin(v string) { + m.Login = v +} + +func (m *YandexPassportUserAccount) SetDefaultEmail(v string) { + m.DefaultEmail = v +} + +func (m *SamlUserAccount) SetFederationId(v string) { + m.FederationId = v +} + +func (m *SamlUserAccount) SetNameId(v string) { + m.NameId = v +} + +func (m *SamlUserAccount) SetAttributes(v map[string]*SamlUserAccount_Attribute) { + m.Attributes = v +} + +func (m *SamlUserAccount_Attribute) SetValue(v []string) { + m.Value = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/user_account_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/user_account_service.pb.go index 7bcff518c..241b7c808 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/user_account_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/user_account_service.pb.go @@ -75,7 +75,7 @@ func init() { } var fileDescriptor_68bca2edf26b1c68 = []byte{ - // 284 bytes of a gzipped FileDescriptorProto + // 293 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xab, 0x4c, 0xcc, 0x4b, 0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0xcf, 0x4c, 0xcc, 0xd5, 0x2f, 0x33, 0xd4, 0x2f, 0x2d, 0x4e, 0x2d, 0x8a, 0x4f, 0x4c, 0x4e, 0xce, 0x2f, 0xcd, 0x2b, 0x89, 0x2f, 0x4e, 0x2d, @@ -90,19 +90,20 @@ var fileDescriptor_68bca2edf26b1c68 = []byte{ 0x23, 0x97, 0x10, 0x92, 0x61, 0xc1, 0x10, 0x5f, 0x0a, 0x35, 0x33, 0x72, 0x31, 0xbb, 0xa7, 0x96, 0x08, 0x69, 0xe9, 0x61, 0xf1, 0xa8, 0x1e, 0x56, 0x07, 0x48, 0x29, 0x60, 0x55, 0x8b, 0xa4, 0x50, 0x49, 0xaf, 0xe9, 0xf2, 0x93, 0xc9, 0x4c, 0x1a, 0x42, 0x6a, 0xc8, 0xde, 0x87, 0x4a, 0x16, 0xeb, - 0x57, 0xa3, 0x39, 0xbf, 0xd6, 0xc9, 0x36, 0xca, 0x3a, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, - 0x39, 0x3f, 0x57, 0x1f, 0x62, 0xba, 0x2e, 0x24, 0x5c, 0xd2, 0xf3, 0x75, 0xd3, 0x53, 0xf3, 0xc0, - 0x41, 0xa2, 0x8f, 0x25, 0x60, 0xad, 0x33, 0x13, 0x73, 0x93, 0xd8, 0xc0, 0xd2, 0xc6, 0x80, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x80, 0x94, 0x59, 0x76, 0xdd, 0x01, 0x00, 0x00, + 0x57, 0xa3, 0x39, 0xbf, 0xd6, 0x29, 0x8c, 0x4b, 0x1c, 0xc5, 0xc8, 0xc4, 0x82, 0x4c, 0xa8, 0xb1, + 0x51, 0xd6, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x10, 0x35, 0xba, + 0x90, 0x00, 0x4b, 0xcf, 0xd7, 0x4d, 0x4f, 0xcd, 0x03, 0x87, 0x95, 0x3e, 0x96, 0x10, 0xb7, 0xce, + 0x4c, 0xcc, 0x4d, 0x62, 0x03, 0x4b, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x42, 0x6c, 0x28, + 0xfe, 0xf6, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // UserAccountServiceClient is the client API for UserAccountService service. // @@ -113,10 +114,10 @@ type UserAccountServiceClient interface { } type userAccountServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewUserAccountServiceClient(cc *grpc.ClientConn) UserAccountServiceClient { +func NewUserAccountServiceClient(cc grpc.ClientConnInterface) UserAccountServiceClient { return &userAccountServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/user_account_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/user_account_service.pbext.go new file mode 100644 index 000000000..115437629 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/user_account_service.pbext.go @@ -0,0 +1,7 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package iam + +func (m *GetUserAccountRequest) SetUserAccountId(v string) { + m.UserAccountId = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/yandex_passport_user_account_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/yandex_passport_user_account_service.pb.go index 287451dc9..276719bb2 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/yandex_passport_user_account_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/yandex_passport_user_account_service.pb.go @@ -75,35 +75,35 @@ func init() { } var fileDescriptor_681b9335544bf99c = []byte{ - // 297 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0xab, 0x4c, 0xcc, 0x4b, - 0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0xcf, 0x4c, 0xcc, 0xd5, 0x2f, 0x33, 0xd4, - 0x87, 0x88, 0xc5, 0x17, 0x24, 0x16, 0x17, 0x17, 0xe4, 0x17, 0x95, 0xc4, 0x97, 0x16, 0xa7, 0x16, - 0xc5, 0x27, 0x26, 0x27, 0xe7, 0x97, 0xe6, 0x95, 0xc4, 0x17, 0xa7, 0x16, 0x95, 0x65, 0x26, 0xa7, - 0xea, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x09, 0x43, 0xd4, 0xea, 0x81, 0xf5, 0xeb, 0x65, 0x26, - 0xe6, 0xea, 0x95, 0x19, 0x4a, 0xc9, 0xa4, 0xe7, 0xe7, 0xa7, 0xe7, 0xa4, 0xea, 0x27, 0x16, 0x64, - 0xea, 0x27, 0xe6, 0xe5, 0xe5, 0x97, 0x24, 0x96, 0x64, 0xe6, 0xe7, 0x15, 0x43, 0xb4, 0x48, 0xa9, - 0x61, 0xb3, 0x12, 0xd9, 0x0a, 0xa8, 0x3a, 0x59, 0x14, 0x75, 0x65, 0x89, 0x39, 0x99, 0x29, 0x60, - 0x73, 0x20, 0xd2, 0x4a, 0x56, 0x5c, 0x32, 0xee, 0xa9, 0x25, 0xa1, 0xc5, 0xa9, 0x45, 0x8e, 0x10, - 0x6d, 0x4e, 0x95, 0x3e, 0xf9, 0xe9, 0x99, 0x79, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x42, - 0x52, 0x5c, 0xac, 0x39, 0x20, 0xbe, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xa7, 0x13, 0xcb, 0x8b, 0xe3, - 0x86, 0x8c, 0x41, 0x10, 0x21, 0xa3, 0x5d, 0x8c, 0x5c, 0x0a, 0x91, 0x60, 0xd3, 0x03, 0xa0, 0x7e, - 0x44, 0x32, 0x27, 0x18, 0xe2, 0x41, 0xa1, 0xa9, 0x8c, 0x5c, 0x5c, 0xee, 0xa9, 0x30, 0x63, 0x85, - 0x0c, 0xf5, 0xb0, 0x78, 0x55, 0x0f, 0x9f, 0x13, 0xa4, 0x14, 0xb0, 0x6a, 0x41, 0x52, 0xaf, 0x64, - 0xd4, 0x74, 0xf9, 0xc9, 0x64, 0x26, 0x1d, 0x21, 0x2d, 0xd4, 0xa0, 0xc7, 0xe2, 0xaa, 0x62, 0xab, - 0x24, 0x88, 0xe1, 0x4e, 0xb6, 0x51, 0xd6, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, - 0xb9, 0x50, 0x0d, 0xba, 0x90, 0x40, 0x4a, 0xcf, 0xd7, 0x4d, 0x4f, 0xcd, 0x03, 0x87, 0x8f, 0x3e, - 0x96, 0x50, 0xb6, 0xce, 0x4c, 0xcc, 0x4d, 0x62, 0x03, 0x4b, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, - 0xff, 0xd5, 0x6e, 0x8b, 0x84, 0xfa, 0x01, 0x00, 0x00, + // 304 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0x31, 0x4a, 0xc4, 0x40, + 0x14, 0x86, 0x89, 0xa8, 0xe0, 0x94, 0xb1, 0x50, 0xc2, 0x0a, 0xcb, 0x16, 0x22, 0xe2, 0xce, 0x90, + 0xb5, 0xdb, 0x05, 0xc1, 0x6d, 0xb6, 0xb1, 0x90, 0x15, 0x05, 0x6d, 0xc2, 0x4b, 0xf2, 0x18, 0x07, + 0x92, 0x79, 0x31, 0x33, 0x09, 0x6e, 0xeb, 0x15, 0xc4, 0xcb, 0x78, 0x01, 0x0f, 0xe0, 0x15, 0x2c, + 0x3c, 0x86, 0x98, 0x89, 0x90, 0x40, 0xb0, 0x9c, 0x79, 0xff, 0xff, 0xbd, 0xf7, 0xff, 0xec, 0x62, + 0x03, 0x3a, 0xc5, 0x67, 0x91, 0x64, 0x54, 0xa5, 0x42, 0x41, 0x2e, 0xea, 0x50, 0xb8, 0xbf, 0xa8, + 0x00, 0x63, 0x0a, 0x2a, 0x6d, 0x54, 0x19, 0x2c, 0x23, 0x48, 0x12, 0xaa, 0xb4, 0x8d, 0x0c, 0x96, + 0xb5, 0x4a, 0x90, 0x17, 0x25, 0x59, 0xf2, 0xf7, 0x9d, 0x96, 0x37, 0x7e, 0xae, 0x20, 0xe7, 0x75, + 0x18, 0x8c, 0x24, 0x91, 0xcc, 0x50, 0x40, 0xa1, 0x04, 0x68, 0x4d, 0x16, 0xac, 0x22, 0x6d, 0x9c, + 0x25, 0x38, 0x1e, 0x5a, 0xd9, 0x5d, 0xd1, 0xea, 0x8e, 0x7a, 0xba, 0x1a, 0x32, 0x95, 0x36, 0x1c, + 0x37, 0x9e, 0xcc, 0xd9, 0x68, 0x85, 0xf6, 0xd6, 0x60, 0x79, 0xe9, 0x6c, 0xcb, 0xcd, 0x15, 0x49, + 0xa5, 0xd7, 0xf8, 0x54, 0xa1, 0xb1, 0x7e, 0xc0, 0x76, 0xb2, 0xdf, 0xf7, 0xa1, 0x37, 0xf6, 0x4e, + 0xf6, 0x96, 0xdb, 0xdf, 0x1f, 0xa1, 0xb7, 0x76, 0x5f, 0xb3, 0x77, 0x8f, 0x8d, 0xef, 0x1b, 0xfa, + 0x75, 0x9b, 0xb1, 0xc3, 0xb9, 0x71, 0x01, 0xfd, 0x37, 0x8f, 0xb1, 0x15, 0xfe, 0x61, 0xfd, 0x90, + 0x0f, 0x44, 0xe5, 0xff, 0x9d, 0x10, 0x8c, 0x07, 0x2d, 0x1d, 0xfd, 0x64, 0xf6, 0xf2, 0xf9, 0xf5, + 0xba, 0x75, 0xe6, 0x9f, 0xf6, 0xab, 0x1f, 0xb8, 0xca, 0xcc, 0x63, 0x07, 0x5f, 0xde, 0xb1, 0x83, + 0x1e, 0x16, 0x0a, 0xd5, 0xa2, 0x1f, 0x16, 0x52, 0xd9, 0xc7, 0x2a, 0xe6, 0x09, 0xe5, 0x2d, 0x69, + 0xea, 0xda, 0x93, 0x34, 0x95, 0xa8, 0x9b, 0xe2, 0xc4, 0x40, 0xfd, 0x0b, 0x05, 0x79, 0xbc, 0xdb, + 0x8c, 0xcf, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x79, 0xeb, 0xca, 0x13, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // YandexPassportUserAccountServiceClient is the client API for YandexPassportUserAccountService service. // @@ -114,10 +114,10 @@ type YandexPassportUserAccountServiceClient interface { } type yandexPassportUserAccountServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewYandexPassportUserAccountServiceClient(cc *grpc.ClientConn) YandexPassportUserAccountServiceClient { +func NewYandexPassportUserAccountServiceClient(cc grpc.ClientConnInterface) YandexPassportUserAccountServiceClient { return &yandexPassportUserAccountServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/yandex_passport_user_account_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/yandex_passport_user_account_service.pbext.go new file mode 100644 index 000000000..5b6b3170f --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/yandex_passport_user_account_service.pbext.go @@ -0,0 +1,7 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package iam + +func (m *GetUserAccountByLoginRequest) SetLogin(v string) { + m.Login = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device.pb.go index c9a6c8b41..07b555f3d 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device.pb.go @@ -22,17 +22,61 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +type Device_Status int32 + +const ( + Device_STATUS_UNSPECIFIED Device_Status = 0 + // Device is being created. + Device_CREATING Device_Status = 1 + // Device is ready to use. + Device_ACTIVE Device_Status = 2 + // Device is being deleted. + Device_DELETING Device_Status = 3 +) + +var Device_Status_name = map[int32]string{ + 0: "STATUS_UNSPECIFIED", + 1: "CREATING", + 2: "ACTIVE", + 3: "DELETING", +} + +var Device_Status_value = map[string]int32{ + "STATUS_UNSPECIFIED": 0, + "CREATING": 1, + "ACTIVE": 2, + "DELETING": 3, +} + +func (x Device_Status) String() string { + return proto.EnumName(Device_Status_name, int32(x)) +} + +func (Device_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_dc5d5b38a6ba5ae6, []int{0, 0} +} + +// A device. For more information, see [Device](/docs/iot-core/concepts/index#device). type Device struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - RegistryId string `protobuf:"bytes,2,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` - // map from alias to canonical topic name prefix, e.g. my/custom/alias -> $device/abcdef/events - TopicAliases map[string]string `protobuf:"bytes,6,rep,name=topic_aliases,json=topicAliases,proto3" json:"topic_aliases,omitempty" protobuf_key:"bytes,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:"-"` + // ID of the device. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // ID of the registry that the device belongs to. + RegistryId string `protobuf:"bytes,2,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // Creation timestamp. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Name of the device. The name is unique within the registry. + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + // Description of the device. 0-256 characters long. + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + // Alias of a device topic. + // + // Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/abcdef/events`. + TopicAliases map[string]string `protobuf:"bytes,6,rep,name=topic_aliases,json=topicAliases,proto3" json:"topic_aliases,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Status of the device. + Status Device_Status `protobuf:"varint,7,opt,name=status,proto3,enum=yandex.cloud.iot.devices.v1.Device_Status" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Device) Reset() { *m = Device{} } @@ -102,10 +146,22 @@ func (m *Device) GetTopicAliases() map[string]string { return nil } +func (m *Device) GetStatus() Device_Status { + if m != nil { + return m.Status + } + return Device_STATUS_UNSPECIFIED +} + +// A device certificate. For more information, see [Managing device certificates](/docs/iot-core/operations/certificates/device-certificates). type DeviceCertificate struct { - DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` - Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` - CertificateData string `protobuf:"bytes,3,opt,name=certificate_data,json=certificateData,proto3" json:"certificate_data,omitempty"` + // ID of the device that the certificate belongs to. + DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // SHA256 hash of the certificate. + Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` + // Public part of the certificate. + CertificateData string `protobuf:"bytes,3,opt,name=certificate_data,json=certificateData,proto3" json:"certificate_data,omitempty"` + // Creation timestamp. CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -165,10 +221,71 @@ func (m *DeviceCertificate) GetCreatedAt() *timestamp.Timestamp { return nil } +// A device password. +type DevicePassword struct { + // ID of the device that the password belongs to. + DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // ID of the password. + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + // Creation timestamp. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DevicePassword) Reset() { *m = DevicePassword{} } +func (m *DevicePassword) String() string { return proto.CompactTextString(m) } +func (*DevicePassword) ProtoMessage() {} +func (*DevicePassword) Descriptor() ([]byte, []int) { + return fileDescriptor_dc5d5b38a6ba5ae6, []int{2} +} + +func (m *DevicePassword) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DevicePassword.Unmarshal(m, b) +} +func (m *DevicePassword) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DevicePassword.Marshal(b, m, deterministic) +} +func (m *DevicePassword) XXX_Merge(src proto.Message) { + xxx_messageInfo_DevicePassword.Merge(m, src) +} +func (m *DevicePassword) XXX_Size() int { + return xxx_messageInfo_DevicePassword.Size(m) +} +func (m *DevicePassword) XXX_DiscardUnknown() { + xxx_messageInfo_DevicePassword.DiscardUnknown(m) +} + +var xxx_messageInfo_DevicePassword proto.InternalMessageInfo + +func (m *DevicePassword) GetDeviceId() string { + if m != nil { + return m.DeviceId + } + return "" +} + +func (m *DevicePassword) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *DevicePassword) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + func init() { + proto.RegisterEnum("yandex.cloud.iot.devices.v1.Device_Status", Device_Status_name, Device_Status_value) proto.RegisterType((*Device)(nil), "yandex.cloud.iot.devices.v1.Device") proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.iot.devices.v1.Device.TopicAliasesEntry") proto.RegisterType((*DeviceCertificate)(nil), "yandex.cloud.iot.devices.v1.DeviceCertificate") + proto.RegisterType((*DevicePassword)(nil), "yandex.cloud.iot.devices.v1.DevicePassword") } func init() { @@ -176,31 +293,38 @@ func init() { } var fileDescriptor_dc5d5b38a6ba5ae6 = []byte{ - // 410 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x4d, 0x6f, 0x13, 0x31, - 0x10, 0xd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98, 0xc2, 0x5d, 0x14, 0x58, - 0x85, 0x71, 0x75, 0xcf, 0xc6, 0xbe, 0xef, 0xca, 0xd5, 0x28, 0x50, 0x5f, 0xfd, 0x0a, 0x00, 0x00, - 0xff, 0xff, 0xce, 0xaa, 0xbb, 0x53, 0xdf, 0x02, 0x00, 0x00, + // 526 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0xdf, 0x6f, 0xd3, 0x30, + 0x10, 0x26, 0xe9, 0x16, 0xd6, 0xeb, 0x18, 0x9d, 0x85, 0x50, 0xd4, 0x09, 0xad, 0xea, 0x53, 0x41, + 0x9a, 0xa3, 0x15, 0x21, 0xf1, 0xe3, 0x01, 0x75, 0x6d, 0x18, 0x91, 0xd0, 0x34, 0xa5, 0x19, 0x0f, + 0x7b, 0x89, 0xdc, 0xd8, 0x0d, 0x86, 0x36, 0x8e, 0x92, 0x6b, 0x59, 0xff, 0x33, 0xfe, 0x11, 0xfe, + 0x1f, 0x54, 0x3b, 0x1d, 0xdd, 0x90, 0x2a, 0xe0, 0xed, 0xfc, 0xdd, 0x77, 0x9f, 0x3f, 0xdf, 0x9d, + 0xa1, 0xbb, 0x64, 0x19, 0x17, 0x37, 0x5e, 0x32, 0x55, 0x73, 0xee, 0x49, 0x85, 0x1e, 0x17, 0x0b, + 0x99, 0x88, 0xd2, 0x5b, 0x9c, 0x56, 0x21, 0xcd, 0x0b, 0x85, 0x8a, 0x1c, 0x19, 0x26, 0xd5, 0x4c, + 0x2a, 0x15, 0xd2, 0x8a, 0x49, 0x17, 0xa7, 0xad, 0xe3, 0x54, 0xa9, 0x74, 0x2a, 0x3c, 0x4d, 0x1d, + 0xcf, 0x27, 0x1e, 0xca, 0x99, 0x28, 0x91, 0xcd, 0x72, 0x53, 0xdd, 0x7a, 0x76, 0xe7, 0x9e, 0x05, + 0x9b, 0x4a, 0xce, 0x50, 0xaa, 0xcc, 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02, 0x00, 0x00, 0xff, 0xff, 0xf2, 0x87, 0xa5, 0x1b, 0x08, 0x04, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device.pbext.go new file mode 100644 index 000000000..3533dc563 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device.pbext.go @@ -0,0 +1,63 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package devices + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Device) SetId(v string) { + m.Id = v +} + +func (m *Device) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *Device) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Device) SetName(v string) { + m.Name = v +} + +func (m *Device) SetDescription(v string) { + m.Description = v +} + +func (m *Device) SetTopicAliases(v map[string]string) { + m.TopicAliases = v +} + +func (m *Device) SetStatus(v Device_Status) { + m.Status = v +} + +func (m *DeviceCertificate) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *DeviceCertificate) SetFingerprint(v string) { + m.Fingerprint = v +} + +func (m *DeviceCertificate) SetCertificateData(v string) { + m.CertificateData = v +} + +func (m *DeviceCertificate) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *DevicePassword) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *DevicePassword) SetId(v string) { + m.Id = v +} + +func (m *DevicePassword) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device_data_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device_data_service.pb.go new file mode 100644 index 000000000..e7417fa4e --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device_data_service.pb.go @@ -0,0 +1,234 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/iot/devices/v1/device_data_service.proto + +package devices + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type PublishDeviceDataRequest struct { + // ID of device publishing message + DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // Topic where message should be published + Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` + // Content of the message + Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PublishDeviceDataRequest) Reset() { *m = PublishDeviceDataRequest{} } +func (m *PublishDeviceDataRequest) String() string { return proto.CompactTextString(m) } +func (*PublishDeviceDataRequest) ProtoMessage() {} +func (*PublishDeviceDataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_75768e640d794694, []int{0} +} + +func (m *PublishDeviceDataRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PublishDeviceDataRequest.Unmarshal(m, b) +} +func (m *PublishDeviceDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PublishDeviceDataRequest.Marshal(b, m, deterministic) +} +func (m *PublishDeviceDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PublishDeviceDataRequest.Merge(m, src) +} +func (m *PublishDeviceDataRequest) XXX_Size() int { + return xxx_messageInfo_PublishDeviceDataRequest.Size(m) +} +func (m *PublishDeviceDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PublishDeviceDataRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PublishDeviceDataRequest proto.InternalMessageInfo + +func (m *PublishDeviceDataRequest) GetDeviceId() string { + if m != nil { + return m.DeviceId + } + return "" +} + +func (m *PublishDeviceDataRequest) GetTopic() string { + if m != nil { + return m.Topic + } + return "" +} + +func (m *PublishDeviceDataRequest) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +type PublishDeviceDataResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PublishDeviceDataResponse) Reset() { *m = PublishDeviceDataResponse{} } +func (m *PublishDeviceDataResponse) String() string { return proto.CompactTextString(m) } +func (*PublishDeviceDataResponse) ProtoMessage() {} +func (*PublishDeviceDataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_75768e640d794694, []int{1} +} + +func (m *PublishDeviceDataResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PublishDeviceDataResponse.Unmarshal(m, b) +} +func (m *PublishDeviceDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PublishDeviceDataResponse.Marshal(b, m, deterministic) +} +func (m *PublishDeviceDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PublishDeviceDataResponse.Merge(m, src) +} +func (m *PublishDeviceDataResponse) XXX_Size() int { + return xxx_messageInfo_PublishDeviceDataResponse.Size(m) +} +func (m *PublishDeviceDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PublishDeviceDataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_PublishDeviceDataResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*PublishDeviceDataRequest)(nil), "yandex.cloud.iot.devices.v1.PublishDeviceDataRequest") + proto.RegisterType((*PublishDeviceDataResponse)(nil), "yandex.cloud.iot.devices.v1.PublishDeviceDataResponse") +} + +func init() { + proto.RegisterFile("yandex/cloud/iot/devices/v1/device_data_service.proto", fileDescriptor_75768e640d794694) +} + +var fileDescriptor_75768e640d794694 = []byte{ + // 368 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xcb, 0x4e, 0xf2, 0x40, + 0x18, 0xcd, 0xf0, 0xf3, 0x23, 0x4c, 0x88, 0x89, 0x5d, 0x55, 0xd0, 0x48, 0x1a, 0x17, 0xa8, 0x61, + 0x86, 0x56, 0x60, 0xa1, 0xb0, 0x21, 0x24, 0xc6, 0x9d, 0xa9, 0x3b, 0x37, 0x64, 0x68, 0x27, 0x65, + 0x4c, 0xed, 0x54, 0x66, 0xda, 0x68, 0x8c, 0x1b, 0x97, 0x24, 0xae, 0x7c, 0x11, 0x9f, 0x42, 0xd9, + 0xfb, 0x0a, 0x2e, 0x7c, 0x0c, 0xc3, 0x4c, 0xa3, 0xc1, 0x0b, 0x89, 0xbb, 0xaf, 0x3d, 0xe7, 0x7c, + 0x97, 0x73, 0x06, 0xb6, 0xaf, 0x49, 0xe4, 0xd3, 0x2b, 0xec, 0x85, 0x3c, 0xf1, 0x31, 0xe3, 0x12, + 0xfb, 0x34, 0x65, 0x1e, 0x15, 0x38, 0xb5, 0xb3, 0x72, 0xe8, 0x13, 0x49, 0x86, 0x82, 0x4e, 0xe6, + 0x1f, 0x28, 0x9e, 0x70, 0xc9, 0x8d, 0xaa, 0x96, 0x21, 0x25, 0x43, 0x8c, 0x4b, 0x94, 0xc9, 0x50, + 0x6a, 0x57, 0x36, 0x02, 0xce, 0x83, 0x90, 0x62, 0x12, 0x33, 0x4c, 0xa2, 0x88, 0x4b, 0x22, 0x19, + 0x8f, 0x84, 0x96, 0x56, 0x36, 0x17, 0x26, 0x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f, 0xb0, 0xe6, 0x36, + 0x74, 0x84, 0x01, 0x6f, 0x04, 0x34, 0x52, 0xe9, 0xe1, 0x25, 0xaf, 0xe9, 0x30, 0x2b, 0x47, 0x05, + 0x45, 0xdd, 0x7f, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x6e, 0x41, 0x3c, 0xef, 0x7b, 0x02, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// DeviceDataServiceClient is the client API for DeviceDataService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type DeviceDataServiceClient interface { + // Publishes message on behalf of specified device + Publish(ctx context.Context, in *PublishDeviceDataRequest, opts ...grpc.CallOption) (*PublishDeviceDataResponse, error) +} + +type deviceDataServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewDeviceDataServiceClient(cc grpc.ClientConnInterface) DeviceDataServiceClient { + return &deviceDataServiceClient{cc} +} + +func (c *deviceDataServiceClient) Publish(ctx context.Context, in *PublishDeviceDataRequest, opts ...grpc.CallOption) (*PublishDeviceDataResponse, error) { + out := new(PublishDeviceDataResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.iot.devices.v1.DeviceDataService/Publish", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DeviceDataServiceServer is the server API for DeviceDataService service. +type DeviceDataServiceServer interface { + // Publishes message on behalf of specified device + Publish(context.Context, *PublishDeviceDataRequest) (*PublishDeviceDataResponse, error) +} + +// UnimplementedDeviceDataServiceServer can be embedded to have forward compatible implementations. +type UnimplementedDeviceDataServiceServer struct { +} + +func (*UnimplementedDeviceDataServiceServer) Publish(ctx context.Context, req *PublishDeviceDataRequest) (*PublishDeviceDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Publish not implemented") +} + +func RegisterDeviceDataServiceServer(s *grpc.Server, srv DeviceDataServiceServer) { + s.RegisterService(&_DeviceDataService_serviceDesc, srv) +} + +func _DeviceDataService_Publish_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PublishDeviceDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DeviceDataServiceServer).Publish(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.iot.devices.v1.DeviceDataService/Publish", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DeviceDataServiceServer).Publish(ctx, req.(*PublishDeviceDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _DeviceDataService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.iot.devices.v1.DeviceDataService", + HandlerType: (*DeviceDataServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Publish", + Handler: _DeviceDataService_Publish_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/iot/devices/v1/device_data_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device_data_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device_data_service.pbext.go new file mode 100644 index 000000000..ad137252a --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device_data_service.pbext.go @@ -0,0 +1,15 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package devices + +func (m *PublishDeviceDataRequest) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *PublishDeviceDataRequest) SetTopic(v string) { + m.Topic = v +} + +func (m *PublishDeviceDataRequest) SetData(v []byte) { + m.Data = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device_service.pb.go index f239ba506..26fe7bd50 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device_service.pb.go @@ -30,6 +30,9 @@ var _ = math.Inf const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type GetDeviceRequest struct { + // ID of the device to return. + // + // To get a device ID make a [DeviceService.List] request. DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -72,12 +75,18 @@ type ListDevicesRequest struct { // Types that are valid to be assigned to Id: // *ListDevicesRequest_RegistryId // *ListDevicesRequest_FolderId - Id isListDevicesRequest_Id `protobuf_oneof:"id"` - PageSize int64 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id isListDevicesRequest_Id `protobuf_oneof:"id"` + // The maximum number of results per page to return. If the number of available + // results is larger than `page_size`, the service returns a [ListDevicesResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListDevicesResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListDevicesRequest) Reset() { *m = ListDevicesRequest{} } @@ -165,11 +174,17 @@ func (*ListDevicesRequest) XXX_OneofWrappers() []interface{} { } type ListDevicesResponse struct { - Devices []*Device `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"` - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // List of devices. + Devices []*Device `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListDevicesRequest.page_size], use `next_page_token` as the value + // for the [ListDevicesRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListDevicesResponse) Reset() { *m = ListDevicesResponse{} } @@ -212,15 +227,27 @@ func (m *ListDevicesResponse) GetNextPageToken() string { } type CreateDeviceRequest struct { - RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // ID of the registry to create a device in. + // + // To get a registry ID, make a [yandex.cloud.iot.devices.v1.RegistryService.List] request. + RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // Name of the device. The name must be unique within the registry. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Description of the device. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // Device certificate. Certificates []*CreateDeviceRequest_Certificate `protobuf:"bytes,4,rep,name=certificates,proto3" json:"certificates,omitempty"` - // map from alias to canonical topic name prefix, e.g. my/custom/alias -> $device/{id}/events - TopicAliases map[string]string `protobuf:"bytes,5,rep,name=topic_aliases,json=topicAliases,proto3" json:"topic_aliases,omitempty" protobuf_key:"bytes,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:"-"` + // Alias of a device topic. + // + // Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`. + TopicAliases map[string]string `protobuf:"bytes,5,rep,name=topic_aliases,json=topicAliases,proto3" json:"topic_aliases,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Device password. + // + // The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols. + Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CreateDeviceRequest) Reset() { *m = CreateDeviceRequest{} } @@ -283,7 +310,16 @@ func (m *CreateDeviceRequest) GetTopicAliases() map[string]string { return nil } +func (m *CreateDeviceRequest) GetPassword() string { + if m != nil { + return m.Password + } + return "" +} + +// Specification of a device certificate. type CreateDeviceRequest_Certificate struct { + // Public part of the device certificate. CertificateData string `protobuf:"bytes,1,opt,name=certificate_data,json=certificateData,proto3" json:"certificate_data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -323,6 +359,7 @@ func (m *CreateDeviceRequest_Certificate) GetCertificateData() string { } type CreateDeviceMetadata struct { + // ID of the device that is being created. DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -362,11 +399,19 @@ func (m *CreateDeviceMetadata) GetDeviceId() string { } type UpdateDeviceRequest struct { - DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` - UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - // map from alias to canonical topic name prefix, e.g. my/custom/alias -> $device/abcdef/events + // ID of the device to update. + // + // To get a device ID make a [DeviceService.List] request. + DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // Field mask that specifies which fields of the device are going to be updated. + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // Name of the device. The name must be unique within the registry. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // Description of the device. + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + // Alias of a device topic. + // + // Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`. TopicAliases map[string]string `protobuf:"bytes,5,rep,name=topic_aliases,json=topicAliases,proto3" json:"topic_aliases,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -434,6 +479,7 @@ func (m *UpdateDeviceRequest) GetTopicAliases() map[string]string { } type UpdateDeviceMetadata struct { + // ID of the device that is being updated. DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -473,6 +519,9 @@ func (m *UpdateDeviceMetadata) GetDeviceId() string { } type DeleteDeviceRequest struct { + // ID of the device to delete. + // + // To get a device ID make a [DeviceService.List] request. DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -512,6 +561,7 @@ func (m *DeleteDeviceRequest) GetDeviceId() string { } type DeleteDeviceMetadata struct { + // ID of the device that is being deleted. DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -551,6 +601,7 @@ func (m *DeleteDeviceMetadata) GetDeviceId() string { } type ListDeviceCertificatesRequest struct { + // ID of the device to list certificates for. DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -590,6 +641,7 @@ func (m *ListDeviceCertificatesRequest) GetDeviceId() string { } type ListDeviceCertificatesResponse struct { + // List of certificates for the specified device. Certificates []*DeviceCertificate `protobuf:"bytes,1,rep,name=certificates,proto3" json:"certificates,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -629,7 +681,11 @@ func (m *ListDeviceCertificatesResponse) GetCertificates() []*DeviceCertificate } type AddDeviceCertificateRequest struct { - DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // ID of the device for which the certificate is being added. + // + // To get a device ID make a [DeviceService.List] request. + DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // Public part of the certificate. CertificateData string `protobuf:"bytes,3,opt,name=certificate_data,json=certificateData,proto3" json:"certificate_data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -676,7 +732,9 @@ func (m *AddDeviceCertificateRequest) GetCertificateData() string { } type AddDeviceCertificateMetadata struct { - DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // ID of the device certificate that is being added. + DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // Fingerprint of the certificate that is being added. Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -723,7 +781,11 @@ func (m *AddDeviceCertificateMetadata) GetFingerprint() string { } type DeleteDeviceCertificateRequest struct { - DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // ID of the device to delete a certificate for. + // + // To get a device ID make a [DeviceService.List] request. + DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // Fingerprint of the certificate to delete. Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -770,7 +832,9 @@ func (m *DeleteDeviceCertificateRequest) GetFingerprint() string { } type DeleteDeviceCertificateMetadata struct { - DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // ID of the device certificate that is being deleted. + DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // Fingerprint of the certificate that is being deleted. Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -816,10 +880,307 @@ func (m *DeleteDeviceCertificateMetadata) GetFingerprint() string { return "" } -type ListDeviceOperationsRequest struct { +type ListDevicePasswordsRequest struct { + // ID of the registry to list passwords in. + // + // To get a registry ID make a [RegistryService.List] request. DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` - PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListDevicePasswordsRequest) Reset() { *m = ListDevicePasswordsRequest{} } +func (m *ListDevicePasswordsRequest) String() string { return proto.CompactTextString(m) } +func (*ListDevicePasswordsRequest) ProtoMessage() {} +func (*ListDevicePasswordsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4f9432a8c0088851, []int{15} +} + +func (m *ListDevicePasswordsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListDevicePasswordsRequest.Unmarshal(m, b) +} +func (m *ListDevicePasswordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListDevicePasswordsRequest.Marshal(b, m, deterministic) +} +func (m *ListDevicePasswordsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListDevicePasswordsRequest.Merge(m, src) +} +func (m *ListDevicePasswordsRequest) XXX_Size() int { + return xxx_messageInfo_ListDevicePasswordsRequest.Size(m) +} +func (m *ListDevicePasswordsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListDevicePasswordsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListDevicePasswordsRequest proto.InternalMessageInfo + +func (m *ListDevicePasswordsRequest) GetDeviceId() string { + if m != nil { + return m.DeviceId + } + return "" +} + +type ListDevicePasswordsResponse struct { + // List of passwords for the specified device. + Passwords []*DevicePassword `protobuf:"bytes,1,rep,name=passwords,proto3" json:"passwords,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListDevicePasswordsResponse) Reset() { *m = ListDevicePasswordsResponse{} } +func (m *ListDevicePasswordsResponse) String() string { return proto.CompactTextString(m) } +func (*ListDevicePasswordsResponse) ProtoMessage() {} +func (*ListDevicePasswordsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4f9432a8c0088851, []int{16} +} + +func (m *ListDevicePasswordsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListDevicePasswordsResponse.Unmarshal(m, b) +} +func (m *ListDevicePasswordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListDevicePasswordsResponse.Marshal(b, m, deterministic) +} +func (m *ListDevicePasswordsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListDevicePasswordsResponse.Merge(m, src) +} +func (m *ListDevicePasswordsResponse) XXX_Size() int { + return xxx_messageInfo_ListDevicePasswordsResponse.Size(m) +} +func (m *ListDevicePasswordsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListDevicePasswordsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListDevicePasswordsResponse proto.InternalMessageInfo + +func (m *ListDevicePasswordsResponse) GetPasswords() []*DevicePassword { + if m != nil { + return m.Passwords + } + return nil +} + +type AddDevicePasswordRequest struct { + // ID of the device to add a password for. + // + // To get a device ID make a [DeviceService.List] request. + DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // Passwords for the device. + // + // The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols. + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AddDevicePasswordRequest) Reset() { *m = AddDevicePasswordRequest{} } +func (m *AddDevicePasswordRequest) String() string { return proto.CompactTextString(m) } +func (*AddDevicePasswordRequest) ProtoMessage() {} +func (*AddDevicePasswordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4f9432a8c0088851, []int{17} +} + +func (m *AddDevicePasswordRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddDevicePasswordRequest.Unmarshal(m, b) +} +func (m *AddDevicePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddDevicePasswordRequest.Marshal(b, m, deterministic) +} +func (m *AddDevicePasswordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddDevicePasswordRequest.Merge(m, src) +} +func (m *AddDevicePasswordRequest) XXX_Size() int { + return xxx_messageInfo_AddDevicePasswordRequest.Size(m) +} +func (m *AddDevicePasswordRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AddDevicePasswordRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AddDevicePasswordRequest proto.InternalMessageInfo + +func (m *AddDevicePasswordRequest) GetDeviceId() string { + if m != nil { + return m.DeviceId + } + return "" +} + +func (m *AddDevicePasswordRequest) GetPassword() string { + if m != nil { + return m.Password + } + return "" +} + +type AddDevicePasswordMetadata struct { + // ID of the device for which the password is being added. + DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // ID of the password that is being added. + PasswordId string `protobuf:"bytes,2,opt,name=password_id,json=passwordId,proto3" json:"password_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AddDevicePasswordMetadata) Reset() { *m = AddDevicePasswordMetadata{} } +func (m *AddDevicePasswordMetadata) String() string { return proto.CompactTextString(m) } +func (*AddDevicePasswordMetadata) ProtoMessage() {} +func (*AddDevicePasswordMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_4f9432a8c0088851, []int{18} +} + +func (m *AddDevicePasswordMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddDevicePasswordMetadata.Unmarshal(m, b) +} +func (m *AddDevicePasswordMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddDevicePasswordMetadata.Marshal(b, m, deterministic) +} +func (m *AddDevicePasswordMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddDevicePasswordMetadata.Merge(m, src) +} +func (m *AddDevicePasswordMetadata) XXX_Size() int { + return xxx_messageInfo_AddDevicePasswordMetadata.Size(m) +} +func (m *AddDevicePasswordMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_AddDevicePasswordMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_AddDevicePasswordMetadata proto.InternalMessageInfo + +func (m *AddDevicePasswordMetadata) GetDeviceId() string { + if m != nil { + return m.DeviceId + } + return "" +} + +func (m *AddDevicePasswordMetadata) GetPasswordId() string { + if m != nil { + return m.PasswordId + } + return "" +} + +type DeleteDevicePasswordRequest struct { + // ID of the device to delete a password for. + // + // To get a device ID make a [DeviceService.List] request. + DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // ID of the password to delete. + // + // To get a password ID make a [DeviceService.ListPasswords] request. + PasswordId string `protobuf:"bytes,2,opt,name=password_id,json=passwordId,proto3" json:"password_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteDevicePasswordRequest) Reset() { *m = DeleteDevicePasswordRequest{} } +func (m *DeleteDevicePasswordRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteDevicePasswordRequest) ProtoMessage() {} +func (*DeleteDevicePasswordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4f9432a8c0088851, []int{19} +} + +func (m *DeleteDevicePasswordRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteDevicePasswordRequest.Unmarshal(m, b) +} +func (m *DeleteDevicePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteDevicePasswordRequest.Marshal(b, m, deterministic) +} +func (m *DeleteDevicePasswordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteDevicePasswordRequest.Merge(m, src) +} +func (m *DeleteDevicePasswordRequest) XXX_Size() int { + return xxx_messageInfo_DeleteDevicePasswordRequest.Size(m) +} +func (m *DeleteDevicePasswordRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteDevicePasswordRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteDevicePasswordRequest proto.InternalMessageInfo + +func (m *DeleteDevicePasswordRequest) GetDeviceId() string { + if m != nil { + return m.DeviceId + } + return "" +} + +func (m *DeleteDevicePasswordRequest) GetPasswordId() string { + if m != nil { + return m.PasswordId + } + return "" +} + +type DeleteDevicePasswordMetadata struct { + // ID of the device for which the password is being deleted. + DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // ID of the password that is being deleted. + PasswordId string `protobuf:"bytes,2,opt,name=password_id,json=passwordId,proto3" json:"password_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteDevicePasswordMetadata) Reset() { *m = DeleteDevicePasswordMetadata{} } +func (m *DeleteDevicePasswordMetadata) String() string { return proto.CompactTextString(m) } +func (*DeleteDevicePasswordMetadata) ProtoMessage() {} +func (*DeleteDevicePasswordMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_4f9432a8c0088851, []int{20} +} + +func (m *DeleteDevicePasswordMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteDevicePasswordMetadata.Unmarshal(m, b) +} +func (m *DeleteDevicePasswordMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteDevicePasswordMetadata.Marshal(b, m, deterministic) +} +func (m *DeleteDevicePasswordMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteDevicePasswordMetadata.Merge(m, src) +} +func (m *DeleteDevicePasswordMetadata) XXX_Size() int { + return xxx_messageInfo_DeleteDevicePasswordMetadata.Size(m) +} +func (m *DeleteDevicePasswordMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteDevicePasswordMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteDevicePasswordMetadata proto.InternalMessageInfo + +func (m *DeleteDevicePasswordMetadata) GetDeviceId() string { + if m != nil { + return m.DeviceId + } + return "" +} + +func (m *DeleteDevicePasswordMetadata) GetPasswordId() string { + if m != nil { + return m.PasswordId + } + return "" +} + +type ListDeviceOperationsRequest struct { + // ID of the device to list operations for. + // + // To get a device ID make a [DeviceService.List] request. + DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // The maximum number of results per page that should be returned. If the number of available + // results is larger than `page_size`, the service returns a [ListDeviceOperationsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListDeviceOperationsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters resources listed in the response. + // Currently you can use filtering only on [Device.name] field. Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -830,7 +1191,7 @@ func (m *ListDeviceOperationsRequest) Reset() { *m = ListDeviceOperation func (m *ListDeviceOperationsRequest) String() string { return proto.CompactTextString(m) } func (*ListDeviceOperationsRequest) ProtoMessage() {} func (*ListDeviceOperationsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4f9432a8c0088851, []int{15} + return fileDescriptor_4f9432a8c0088851, []int{21} } func (m *ListDeviceOperationsRequest) XXX_Unmarshal(b []byte) error { @@ -880,18 +1241,24 @@ func (m *ListDeviceOperationsRequest) GetFilter() string { } type ListDeviceOperationsResponse struct { - Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // List of operations for the specified device certificate. + Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListDeviceOperationsRequest.page_size], use `next_page_token` as the value + // for the [ListDeviceOperationsRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListDeviceOperationsResponse) Reset() { *m = ListDeviceOperationsResponse{} } func (m *ListDeviceOperationsResponse) String() string { return proto.CompactTextString(m) } func (*ListDeviceOperationsResponse) ProtoMessage() {} func (*ListDeviceOperationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4f9432a8c0088851, []int{16} + return fileDescriptor_4f9432a8c0088851, []int{22} } func (m *ListDeviceOperationsResponse) XXX_Unmarshal(b []byte) error { @@ -945,6 +1312,12 @@ func init() { proto.RegisterType((*AddDeviceCertificateMetadata)(nil), "yandex.cloud.iot.devices.v1.AddDeviceCertificateMetadata") proto.RegisterType((*DeleteDeviceCertificateRequest)(nil), "yandex.cloud.iot.devices.v1.DeleteDeviceCertificateRequest") proto.RegisterType((*DeleteDeviceCertificateMetadata)(nil), "yandex.cloud.iot.devices.v1.DeleteDeviceCertificateMetadata") + proto.RegisterType((*ListDevicePasswordsRequest)(nil), "yandex.cloud.iot.devices.v1.ListDevicePasswordsRequest") + proto.RegisterType((*ListDevicePasswordsResponse)(nil), "yandex.cloud.iot.devices.v1.ListDevicePasswordsResponse") + proto.RegisterType((*AddDevicePasswordRequest)(nil), "yandex.cloud.iot.devices.v1.AddDevicePasswordRequest") + proto.RegisterType((*AddDevicePasswordMetadata)(nil), "yandex.cloud.iot.devices.v1.AddDevicePasswordMetadata") + proto.RegisterType((*DeleteDevicePasswordRequest)(nil), "yandex.cloud.iot.devices.v1.DeleteDevicePasswordRequest") + proto.RegisterType((*DeleteDevicePasswordMetadata)(nil), "yandex.cloud.iot.devices.v1.DeleteDevicePasswordMetadata") proto.RegisterType((*ListDeviceOperationsRequest)(nil), "yandex.cloud.iot.devices.v1.ListDeviceOperationsRequest") proto.RegisterType((*ListDeviceOperationsResponse)(nil), "yandex.cloud.iot.devices.v1.ListDeviceOperationsResponse") } @@ -954,115 +1327,147 @@ func init() { } var fileDescriptor_4f9432a8c0088851 = []byte{ - // 1248 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0x67, 0x63, 0xc7, 0x24, 0xcf, 0x49, 0x9a, 0x4c, 0x8a, 0x30, 0x4e, 0x9a, 0xa6, 0x5b, 0x51, - 0x5c, 0x57, 0xde, 0x3f, 0xae, 0x52, 0xa5, 0xf9, 0x03, 0x4d, 0x9a, 0x12, 0x82, 0xa8, 0xa8, 0xb6, - 0xe5, 0x52, 0xa8, 0xcc, 0xc6, 0x3b, 0x36, 0xab, 0x38, 0xbb, 0x66, 0x77, 0x1c, 0x35, 0x49, 0x7b, - 0xa9, 0x10, 0x12, 0xb9, 0xf2, 0x05, 0x90, 0xf8, 0x00, 0x48, 0xb9, 0x70, 0x40, 0x48, 0x70, 0x40, - 0x09, 0xd7, 0xf0, 0x01, 0xb8, 0x70, 0x40, 0xe2, 0xc6, 0x09, 0x71, 0x42, 0x33, 0xb3, 0xb6, 0xc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9a, - 0x01, 0x3d, 0x6f, 0xb1, 0x78, 0x34, 0xa4, 0x44, 0x89, 0xa7, 0x39, 0xca, 0xd6, 0xb7, 0x1e, 0x6f, - 0x96, 0x6d, 0xf2, 0x59, 0x6d, 0x5b, 0x29, 0xba, 0xbb, 0x2a, 0x77, 0x9f, 0xe3, 0xff, 0x47, 0x94, - 0xdd, 0x5c, 0x19, 0x3b, 0x2c, 0x6b, 0x6a, 0x97, 0x3f, 0x2a, 0x96, 0x83, 0xc7, 0xed, 0x04, 0x13, - 0xbd, 0xf9, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x60, 0xf8, 0x9f, 0x2f, 0xce, 0x11, 0x00, 0x00, + // 1482 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcf, 0x73, 0xdb, 0xc4, + 0x1e, 0x7f, 0x8a, 0x5d, 0xbf, 0xe4, 0xeb, 0x26, 0x4d, 0x37, 0x7d, 0xf3, 0x5c, 0x25, 0x4d, 0x52, + 0xf5, 0xbd, 0x92, 0x3a, 0x63, 0x49, 0x76, 0x49, 0x71, 0x9b, 0xa6, 0x34, 0x69, 0x4a, 0x08, 0x43, + 0x87, 0x8e, 0x5a, 0x0e, 0x14, 0x3a, 0x46, 0xb5, 0x36, 0xae, 0x88, 0x63, 0x09, 0x49, 0x49, 0x9b, + 0xa6, 0xbd, 0x74, 0x18, 0x18, 0x72, 0xe5, 0xcc, 0x89, 0x3f, 0x80, 0x99, 0x5c, 0x18, 0x86, 0x61, + 0x06, 0x0e, 0x4c, 0xcb, 0x8d, 0x09, 0x7f, 0x00, 0x17, 0x0e, 0xcc, 0x70, 0xe3, 0xc4, 0x70, 0x62, + 0x56, 0x2b, 0xc9, 0x2b, 0x5b, 0xb6, 0xd7, 0xee, 0x70, 0xb2, 0xb4, 0xfb, 0xfd, 0xfd, 0xfd, 0xec, + 0x57, 0x9f, 0x35,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26, 0x88, 0x6e, 0x06, 0x93, + 0x78, 0x10, 0x34, 0xde, 0x87, 0xc9, 0x44, 0x43, 0x01, 0x14, 0xd7, 0x09, 0x8f, 0x08, 0x16, 0x03, + 0x1c, 0xce, 0x73, 0xe0, 0x30, 0x34, 0xa4, 0x35, 0xb5, 0xa5, 0x4d, 0xc8, 0x45, 0x60, 0x88, 0xf6, + 0xfb, 0xef, 0xd3, 0xff, 0x98, 0x2f, 0x11, 0xc3, 0x80, 0xae, 0x2c, 0x15, 0x5f, 0x6e, 0x7e, 0x93, + 0xa4, 0x77, 0xe0, 0x64, 0x9b, 0x33, 0x3e, 0xd8, 0xcd, 0x40, 0x36, 0xb4, 0x12, 0x91, 0x2c, 0x0d, + 0xc2, 0xa5, 0x75, 0x43, 0x7a, 0x00, 0x93, 0x6c, 0xe3, 0x5f, 0x20, 0x95, 0x42, 0x82, 0xab, 0x56, + 0xbe, 0xc2, 0x38, 0x7e, 0x08, 0x53, 0x49, 0x8e, 0x07, 0x81, 0x5b, 0x9f, 0x9e, 0xbf, 0x12, 0x58, + 0x94, 0xbc, 0x15, 0x32, 0xe8, 0x08, 0x6f, 0xa7, 0xdb, 0x3d, 0xa7, 0x89, 0x31, 0xc6, 0x63, 0x8c, + 0x90, 0x0e, 0x71, 0x13, 0xd2, 0x54, 0x67, 0x42, 0x8a, 0x24, 0xc8, 0x6c, 0x98, 0x75, 0x0f, 0x3b, + 0xc1, 0x27, 0x11, 0xf6, 0x9f, 0x17, 0x33, 0xbe, 0x94, 0xaa, 0x05, 0x3b, 0xd2, 0xa7, 0x02, 0x4c, + 0x25, 0x47, 0x1e, 0x00, 0x7c, 0x19, 0x20, 0xba, 0x11, 0x84, 0x08, 0x3f, 0x1d, 0x47, 0x78, 0xf3, + 0xc6, 0x10, 0xe9, 0x6b, 0x8c, 0x12, 0x2f, 0x6d, 0x2d, 0x7d, 0x8e, 0x60, 0x94, 0xc6, 0x71, 0x8b, + 0xde, 0xa3, 0xd0, 0xc7, 0x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0x02, 0x8c, 0x11, 0x5c, 0x34, 0x59, 0x0e, 0xe2, 0x05, 0x51, 0x1b, 0xa5, 0x13, 0x2f, 0x0e, + 0xa0, 0x19, 0xe0, 0xef, 0x82, 0x9f, 0x8c, 0x8a, 0x64, 0x9e, 0x64, 0x9a, 0x3c, 0x6a, 0xe5, 0x03, + 0x98, 0x89, 0xf9, 0xd4, 0x6d, 0xb3, 0xc5, 0xef, 0x9d, 0xb5, 0x9a, 0xe9, 0xdd, 0xdf, 0xbe, 0x27, + 0x57, 0xad, 0x2d, 0x85, 0xca, 0x16, 0xe8, 0xff, 0xb6, 0x35, 0xab, 0x50, 0xc3, 0x0d, 0xbf, 0xa6, + 0x4a, 0x97, 0x3f, 0x74, 0x17, 0x83, 0xc7, 0x7b, 0x19, 0x5f, 0xf4, 0xfc, 0xdf, 0x01, 0x00, 0x00, + 0xff, 0xff, 0xd9, 0xda, 0x51, 0x72, 0xf6, 0x16, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // DeviceServiceClient is the client API for DeviceService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type DeviceServiceClient interface { + // Returns the specified device. + // + // To get the list of available devices, make a [List] request. Get(ctx context.Context, in *GetDeviceRequest, opts ...grpc.CallOption) (*Device, error) + // Retrieves the list of devices in the specified registry. List(ctx context.Context, in *ListDevicesRequest, opts ...grpc.CallOption) (*ListDevicesResponse, error) + // Creates a device in the specified registry. Create(ctx context.Context, in *CreateDeviceRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Updates the specified device. Update(ctx context.Context, in *UpdateDeviceRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Deletes the specified device. Delete(ctx context.Context, in *DeleteDeviceRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Retrieves the list of device certificates for the specified device. ListCertificates(ctx context.Context, in *ListDeviceCertificatesRequest, opts ...grpc.CallOption) (*ListDeviceCertificatesResponse, error) + // Adds a certificate. AddCertificate(ctx context.Context, in *AddDeviceCertificateRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Deletes the specified device certificate. DeleteCertificate(ctx context.Context, in *DeleteDeviceCertificateRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Retrieves the list of passwords for the specified device. + ListPasswords(ctx context.Context, in *ListDevicePasswordsRequest, opts ...grpc.CallOption) (*ListDevicePasswordsResponse, error) + // Adds password for the specified device. + AddPassword(ctx context.Context, in *AddDevicePasswordRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Deletes the specified password. + DeletePassword(ctx context.Context, in *DeleteDevicePasswordRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Lists operations for the specified device. ListOperations(ctx context.Context, in *ListDeviceOperationsRequest, opts ...grpc.CallOption) (*ListDeviceOperationsResponse, error) } type deviceServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewDeviceServiceClient(cc *grpc.ClientConn) DeviceServiceClient { +func NewDeviceServiceClient(cc grpc.ClientConnInterface) DeviceServiceClient { return &deviceServiceClient{cc} } @@ -1138,6 +1543,33 @@ func (c *deviceServiceClient) DeleteCertificate(ctx context.Context, in *DeleteD return out, nil } +func (c *deviceServiceClient) ListPasswords(ctx context.Context, in *ListDevicePasswordsRequest, opts ...grpc.CallOption) (*ListDevicePasswordsResponse, error) { + out := new(ListDevicePasswordsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.iot.devices.v1.DeviceService/ListPasswords", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *deviceServiceClient) AddPassword(ctx context.Context, in *AddDevicePasswordRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.iot.devices.v1.DeviceService/AddPassword", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *deviceServiceClient) DeletePassword(ctx context.Context, in *DeleteDevicePasswordRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.iot.devices.v1.DeviceService/DeletePassword", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *deviceServiceClient) ListOperations(ctx context.Context, in *ListDeviceOperationsRequest, opts ...grpc.CallOption) (*ListDeviceOperationsResponse, error) { out := new(ListDeviceOperationsResponse) err := c.cc.Invoke(ctx, "/yandex.cloud.iot.devices.v1.DeviceService/ListOperations", in, out, opts...) @@ -1149,14 +1581,31 @@ func (c *deviceServiceClient) ListOperations(ctx context.Context, in *ListDevice // DeviceServiceServer is the server API for DeviceService service. type DeviceServiceServer interface { + // Returns the specified device. + // + // To get the list of available devices, make a [List] request. Get(context.Context, *GetDeviceRequest) (*Device, error) + // Retrieves the list of devices in the specified registry. List(context.Context, *ListDevicesRequest) (*ListDevicesResponse, error) + // Creates a device in the specified registry. Create(context.Context, *CreateDeviceRequest) (*operation.Operation, error) + // Updates the specified device. Update(context.Context, *UpdateDeviceRequest) (*operation.Operation, error) + // Deletes the specified device. Delete(context.Context, *DeleteDeviceRequest) (*operation.Operation, error) + // Retrieves the list of device certificates for the specified device. ListCertificates(context.Context, *ListDeviceCertificatesRequest) (*ListDeviceCertificatesResponse, error) + // Adds a certificate. AddCertificate(context.Context, *AddDeviceCertificateRequest) (*operation.Operation, error) + // Deletes the specified device certificate. DeleteCertificate(context.Context, *DeleteDeviceCertificateRequest) (*operation.Operation, error) + // Retrieves the list of passwords for the specified device. + ListPasswords(context.Context, *ListDevicePasswordsRequest) (*ListDevicePasswordsResponse, error) + // Adds password for the specified device. + AddPassword(context.Context, *AddDevicePasswordRequest) (*operation.Operation, error) + // Deletes the specified password. + DeletePassword(context.Context, *DeleteDevicePasswordRequest) (*operation.Operation, error) + // Lists operations for the specified device. ListOperations(context.Context, *ListDeviceOperationsRequest) (*ListDeviceOperationsResponse, error) } @@ -1188,6 +1637,15 @@ func (*UnimplementedDeviceServiceServer) AddCertificate(ctx context.Context, req func (*UnimplementedDeviceServiceServer) DeleteCertificate(ctx context.Context, req *DeleteDeviceCertificateRequest) (*operation.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteCertificate not implemented") } +func (*UnimplementedDeviceServiceServer) ListPasswords(ctx context.Context, req *ListDevicePasswordsRequest) (*ListDevicePasswordsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListPasswords not implemented") +} +func (*UnimplementedDeviceServiceServer) AddPassword(ctx context.Context, req *AddDevicePasswordRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddPassword not implemented") +} +func (*UnimplementedDeviceServiceServer) DeletePassword(ctx context.Context, req *DeleteDevicePasswordRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeletePassword not implemented") +} func (*UnimplementedDeviceServiceServer) ListOperations(ctx context.Context, req *ListDeviceOperationsRequest) (*ListDeviceOperationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") } @@ -1340,6 +1798,60 @@ func _DeviceService_DeleteCertificate_Handler(srv interface{}, ctx context.Conte return interceptor(ctx, in, info, handler) } +func _DeviceService_ListPasswords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListDevicePasswordsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DeviceServiceServer).ListPasswords(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.iot.devices.v1.DeviceService/ListPasswords", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DeviceServiceServer).ListPasswords(ctx, req.(*ListDevicePasswordsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DeviceService_AddPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddDevicePasswordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DeviceServiceServer).AddPassword(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.iot.devices.v1.DeviceService/AddPassword", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DeviceServiceServer).AddPassword(ctx, req.(*AddDevicePasswordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DeviceService_DeletePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteDevicePasswordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DeviceServiceServer).DeletePassword(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.iot.devices.v1.DeviceService/DeletePassword", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DeviceServiceServer).DeletePassword(ctx, req.(*DeleteDevicePasswordRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _DeviceService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListDeviceOperationsRequest) if err := dec(in); err != nil { @@ -1394,6 +1906,18 @@ var _DeviceService_serviceDesc = grpc.ServiceDesc{ MethodName: "DeleteCertificate", Handler: _DeviceService_DeleteCertificate_Handler, }, + { + MethodName: "ListPasswords", + Handler: _DeviceService_ListPasswords_Handler, + }, + { + MethodName: "AddPassword", + Handler: _DeviceService_AddPassword_Handler, + }, + { + MethodName: "DeletePassword", + Handler: _DeviceService_DeletePassword_Handler, + }, { MethodName: "ListOperations", Handler: _DeviceService_ListOperations_Handler, diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device_service.pbext.go new file mode 100644 index 000000000..0b3025ce5 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/device_service.pbext.go @@ -0,0 +1,214 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package devices + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetDeviceRequest) SetDeviceId(v string) { + m.DeviceId = v +} + +type ListDevicesRequest_Id = isListDevicesRequest_Id + +func (m *ListDevicesRequest) SetId(v ListDevicesRequest_Id) { + m.Id = v +} + +func (m *ListDevicesRequest) SetRegistryId(v string) { + m.Id = &ListDevicesRequest_RegistryId{ + RegistryId: v, + } +} + +func (m *ListDevicesRequest) SetFolderId(v string) { + m.Id = &ListDevicesRequest_FolderId{ + FolderId: v, + } +} + +func (m *ListDevicesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListDevicesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListDevicesResponse) SetDevices(v []*Device) { + m.Devices = v +} + +func (m *ListDevicesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateDeviceRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *CreateDeviceRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateDeviceRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateDeviceRequest) SetCertificates(v []*CreateDeviceRequest_Certificate) { + m.Certificates = v +} + +func (m *CreateDeviceRequest) SetTopicAliases(v map[string]string) { + m.TopicAliases = v +} + +func (m *CreateDeviceRequest) SetPassword(v string) { + m.Password = v +} + +func (m *CreateDeviceRequest_Certificate) SetCertificateData(v string) { + m.CertificateData = v +} + +func (m *CreateDeviceMetadata) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *UpdateDeviceRequest) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *UpdateDeviceRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateDeviceRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateDeviceRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateDeviceRequest) SetTopicAliases(v map[string]string) { + m.TopicAliases = v +} + +func (m *UpdateDeviceMetadata) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *DeleteDeviceRequest) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *DeleteDeviceMetadata) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *ListDeviceCertificatesRequest) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *ListDeviceCertificatesResponse) SetCertificates(v []*DeviceCertificate) { + m.Certificates = v +} + +func (m *AddDeviceCertificateRequest) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *AddDeviceCertificateRequest) SetCertificateData(v string) { + m.CertificateData = v +} + +func (m *AddDeviceCertificateMetadata) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *AddDeviceCertificateMetadata) SetFingerprint(v string) { + m.Fingerprint = v +} + +func (m *DeleteDeviceCertificateRequest) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *DeleteDeviceCertificateRequest) SetFingerprint(v string) { + m.Fingerprint = v +} + +func (m *DeleteDeviceCertificateMetadata) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *DeleteDeviceCertificateMetadata) SetFingerprint(v string) { + m.Fingerprint = v +} + +func (m *ListDevicePasswordsRequest) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *ListDevicePasswordsResponse) SetPasswords(v []*DevicePassword) { + m.Passwords = v +} + +func (m *AddDevicePasswordRequest) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *AddDevicePasswordRequest) SetPassword(v string) { + m.Password = v +} + +func (m *AddDevicePasswordMetadata) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *AddDevicePasswordMetadata) SetPasswordId(v string) { + m.PasswordId = v +} + +func (m *DeleteDevicePasswordRequest) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *DeleteDevicePasswordRequest) SetPasswordId(v string) { + m.PasswordId = v +} + +func (m *DeleteDevicePasswordMetadata) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *DeleteDevicePasswordMetadata) SetPasswordId(v string) { + m.PasswordId = v +} + +func (m *ListDeviceOperationsRequest) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *ListDeviceOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListDeviceOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListDeviceOperationsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListDeviceOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListDeviceOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry.pb.go index 4d6a8be67..e3ceb9b8a 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry.pb.go @@ -26,9 +26,12 @@ type Registry_Status int32 const ( Registry_STATUS_UNSPECIFIED Registry_Status = 0 - Registry_CREATING Registry_Status = 1 - Registry_ACTIVE Registry_Status = 2 - Registry_DELETING Registry_Status = 3 + // Registry is being created. + Registry_CREATING Registry_Status = 1 + // Registry is ready to use. + Registry_ACTIVE Registry_Status = 2 + // Registry is being deleted. + Registry_DELETING Registry_Status = 3 ) var Registry_Status_name = map[int32]string{ @@ -53,18 +56,27 @@ func (Registry_Status) EnumDescriptor() ([]byte, []int) { return fileDescriptor_39c05472a87f1ea4, []int{0, 0} } +// A registry. For more information, see [Registry](/docs/iot-core/concepts/index#registry). type Registry struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` - Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Status Registry_Status `protobuf:"varint,7,opt,name=status,proto3,enum=yandex.cloud.iot.devices.v1.Registry_Status" json:"status,omitempty"` - LogGroupId string `protobuf:"bytes,8,opt,name=log_group_id,json=logGroupId,proto3" json:"log_group_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // ID of the registry. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // ID of the folder that the registry belongs to. + FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // Creation timestamp. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Name of the registry. The name is unique within the folder. + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + // Description of the registry. 0-256 characters long. + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + // Resource labels as `key:value` pairs. Мaximum of 64 per resource. + Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Status of the registry. + Status Registry_Status `protobuf:"varint,7,opt,name=status,proto3,enum=yandex.cloud.iot.devices.v1.Registry_Status" json:"status,omitempty"` + // ID of the logs group for the specified registry. + LogGroupId string `protobuf:"bytes,8,opt,name=log_group_id,json=logGroupId,proto3" json:"log_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Registry) Reset() { *m = Registry{} } @@ -148,10 +160,15 @@ func (m *Registry) GetLogGroupId() string { return "" } +// A registry certificate. For more information, see [Managing registry certificates](/docs/iot-core/operations/certificates/registry-certificates). type RegistryCertificate struct { - RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` - Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` - CertificateData string `protobuf:"bytes,3,opt,name=certificate_data,json=certificateData,proto3" json:"certificate_data,omitempty"` + // ID of the registry that the certificate belongs to. + RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // SHA256 hash of the certificates. + Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` + // Public part of the certificate. + CertificateData string `protobuf:"bytes,3,opt,name=certificate_data,json=certificateData,proto3" json:"certificate_data,omitempty"` + // Creation timestamp. CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -211,10 +228,15 @@ func (m *RegistryCertificate) GetCreatedAt() *timestamp.Timestamp { return nil } +// A device topic alias. +// +// Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/abcdef/events`. For more information, see [Using topic aliases](/docs/iot-core/concepts/topic#aliases). type DeviceAlias struct { + // ID of the device that the alias belongs to. DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` - // prefix of canonical topic name to be aliased, e.g. $devices/abcdef - TopicPrefix string `protobuf:"bytes,2,opt,name=topic_prefix,json=topicPrefix,proto3" json:"topic_prefix,omitempty"` + // Prefix of a canonical topic name to be aliased, e.g. `$devices/abcdef`. + TopicPrefix string `protobuf:"bytes,2,opt,name=topic_prefix,json=topicPrefix,proto3" json:"topic_prefix,omitempty"` + // Alias of a device topic. Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -267,12 +289,72 @@ func (m *DeviceAlias) GetAlias() string { return "" } +// A registry password. +type RegistryPassword struct { + // ID of the registry that the password belongs to. + RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // ID of the password. + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + // Creation timestamp. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegistryPassword) Reset() { *m = RegistryPassword{} } +func (m *RegistryPassword) String() string { return proto.CompactTextString(m) } +func (*RegistryPassword) ProtoMessage() {} +func (*RegistryPassword) Descriptor() ([]byte, []int) { + return fileDescriptor_39c05472a87f1ea4, []int{3} +} + +func (m *RegistryPassword) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RegistryPassword.Unmarshal(m, b) +} +func (m *RegistryPassword) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RegistryPassword.Marshal(b, m, deterministic) +} +func (m *RegistryPassword) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegistryPassword.Merge(m, src) +} +func (m *RegistryPassword) XXX_Size() int { + return xxx_messageInfo_RegistryPassword.Size(m) +} +func (m *RegistryPassword) XXX_DiscardUnknown() { + xxx_messageInfo_RegistryPassword.DiscardUnknown(m) +} + +var xxx_messageInfo_RegistryPassword proto.InternalMessageInfo + +func (m *RegistryPassword) GetRegistryId() string { + if m != nil { + return m.RegistryId + } + return "" +} + +func (m *RegistryPassword) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *RegistryPassword) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + func init() { proto.RegisterEnum("yandex.cloud.iot.devices.v1.Registry_Status", Registry_Status_name, Registry_Status_value) proto.RegisterType((*Registry)(nil), "yandex.cloud.iot.devices.v1.Registry") proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.iot.devices.v1.Registry.LabelsEntry") proto.RegisterType((*RegistryCertificate)(nil), "yandex.cloud.iot.devices.v1.RegistryCertificate") proto.RegisterType((*DeviceAlias)(nil), "yandex.cloud.iot.devices.v1.DeviceAlias") + proto.RegisterType((*RegistryPassword)(nil), "yandex.cloud.iot.devices.v1.RegistryPassword") } func init() { @@ -280,40 +362,42 @@ func init() { } var fileDescriptor_39c05472a87f1ea4 = []byte{ - // 553 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x41, 0x6f, 0xd3, 0x30, - 0x14, 0x26, 0xed, 0x16, 0xda, 0x97, 0x69, 0x54, 0x06, 0xa1, 0xa8, 0x13, 0x5a, 0xe8, 0xa9, 0x20, - 0xe6, 0x68, 0xe3, 0xc2, 0xe0, 0x54, 0xda, 0x50, 0x22, 0x4d, 0xd3, 0x94, 0x76, 0x1c, 0xb8, 0x44, - 0x6e, 0xec, 0x06, 0x8b, 0x34, 0x8e, 0x1c, 0xa7, 0x5a, 0xff, 0x1c, 0xbf, 0x85, 0x9f, 0x82, 0x62, - 0x27, 0xac, 0x70, 0x98, 0xe0, 0x66, 0x7f, 0xef, 0x7b, 0xef, 0x7d, 0x7e, 0xef, 0x33, 0xbc, 0xde, - 0x91, 0x9c, 0xb2,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f6, 0xf0, 0x19, 0x51, 0xe4, 0x2f, 0xbb, 0x1c, 0xfc, 0x87, 0x5d, 0x46, 0x09, 0x38, 0x33, - 0xbd, 0x8d, 0x49, 0xc6, 0x49, 0x59, 0xbb, 0xd2, 0x2c, 0xe7, 0x5e, 0x75, 0xcf, 0x00, 0x21, 0x45, - 0x2f, 0xe1, 0x48, 0x89, 0x82, 0x27, 0x71, 0x21, 0xd9, 0x9a, 0xdf, 0xb5, 0xa2, 0x35, 0x76, 0xa3, - 0xa1, 0x7a, 0xe6, 0xa4, 0x2e, 0xd4, 0x28, 0x35, 0x97, 0x8f, 0xe1, 0xd7, 0x79, 0xca, 0xd5, 0xb7, - 0x6a, 0x85, 0x13, 0xb1, 0xf1, 0x8d, 0x1d, 0xce, 0xcc, 0xa7, 0x49, 0xc5, 0x59, 0xca, 0x72, 0xad, - 0xd1, 0x7f, 0xe0, 0xdf, 0x7e, 0x68, 0x8e, 0x2b, 0x5b, 0x53, 0xdf, 0xfe, 0x0a, 0x00, 0x00, 0xff, - 0xff, 0xea, 0xea, 0x45, 0x1e, 0xe5, 0x03, 0x00, 0x00, + // 588 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x4d, 0x6f, 0xd3, 0x30, + 0x18, 0x26, 0xed, 0x56, 0xda, 0xb7, 0xd3, 0xa8, 0x0c, 0x42, 0x51, 0x27, 0xb4, 0xd0, 0x53, 0x41, + 0xcc, 0xd1, 0xc6, 0x85, 0xc1, 0xa9, 0xb4, 0x61, 0x44, 0x9a, 0xa6, 0x2a, 0xed, 0x38, 0x70, 0x89, + 0xdc, 0xd8, 0x0d, 0x86, 0x34, 0x8e, 0x1c, 0xa7, 0xac, 0x17, 0x7e, 0x1a, 0xbf, 0x85, 0x9f, 0x82, + 0x62, 0x27, 0x5b, 0xb7, 0xc3, 0xf8, 0xb8, 0x39, 0x8f, 0xdf, 0x8f, 0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x5e, 0x74, 0x53, 0x31, 0xa4, 0x44, 0x11, + 0xed, 0x84, 0x4e, 0xf0, 0x68, 0x0b, 0x9f, 0x10, 0x45, 0xee, 0xd8, 0x65, 0xe7, 0x1f, 0xec, 0x32, + 0x88, 0xa0, 0x3b, 0xd1, 0xd3, 0x18, 0x25, 0x9c, 0xe4, 0xa5, 0x2b, 0xcd, 0x70, 0x6e, 0x58, 0xb7, + 0x0d, 0xe0, 0x53, 0xf4, 0x1c, 0xf6, 0x94, 0xc8, 0x78, 0x14, 0x66, 0x92, 0x2d, 0xf9, 0x55, 0x4d, + 0x5a, 0x63, 0x53, 0x0d, 0x95, 0x9a, 0x93, 0xb2, 0x50, 0xc5, 0xd4, 0x7c, 0x0c, 0x7e, 0x40, 0xaf, + 0x16, 0x69, 0x4a, 0xf2, 0xfc, 0xbb, 0x90, 0xf4, 0xcf, 0x0a, 0x99, 0x85, 0x69, 0x5c, 0x2f, 0xcc, + 0xff, 0xef, 0xc4, 0xfb, 0xaf, 0x70, 0x78, 0xcb, 0x83, 0x24, 0xe3, 0x77, 0x7c, 0xf8, 0xf9, 0x2c, + 0xe6, 0xea, 0x4b, 0xb1, 0xc0, 0x91, 0x58, 0xb9, 0x26, 0xf6, 0xc8, 0x6c, 0x75, 0x2c, 0x8e, 0x62, + 0x96, 0xea, 0xfa, 0xee, 0x3d, 0x3f, 0x96, 0x77, 0xd5, 0x71, 0xd1, 0xd2, 0xa1, 0xaf, 0x7f, 0x07, + 0x00, 0x00, 0xff, 0xff, 0xae, 0x9e, 0x11, 0xb4, 0x86, 0x04, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry.pbext.go new file mode 100644 index 000000000..a56ce6125 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry.pbext.go @@ -0,0 +1,79 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package devices + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Registry) SetId(v string) { + m.Id = v +} + +func (m *Registry) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Registry) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Registry) SetName(v string) { + m.Name = v +} + +func (m *Registry) SetDescription(v string) { + m.Description = v +} + +func (m *Registry) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *Registry) SetStatus(v Registry_Status) { + m.Status = v +} + +func (m *Registry) SetLogGroupId(v string) { + m.LogGroupId = v +} + +func (m *RegistryCertificate) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *RegistryCertificate) SetFingerprint(v string) { + m.Fingerprint = v +} + +func (m *RegistryCertificate) SetCertificateData(v string) { + m.CertificateData = v +} + +func (m *RegistryCertificate) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *DeviceAlias) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *DeviceAlias) SetTopicPrefix(v string) { + m.TopicPrefix = v +} + +func (m *DeviceAlias) SetAlias(v string) { + m.Alias = v +} + +func (m *RegistryPassword) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *RegistryPassword) SetId(v string) { + m.Id = v +} + +func (m *RegistryPassword) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry_data_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry_data_service.pb.go new file mode 100644 index 000000000..dcd681ca8 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry_data_service.pb.go @@ -0,0 +1,235 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/iot/devices/v1/registry_data_service.proto + +package devices + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type PublishRegistryDataRequest struct { + // ID of registry publishing message + RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // Topic where message should be published + Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` + // Content of the message + Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PublishRegistryDataRequest) Reset() { *m = PublishRegistryDataRequest{} } +func (m *PublishRegistryDataRequest) String() string { return proto.CompactTextString(m) } +func (*PublishRegistryDataRequest) ProtoMessage() {} +func (*PublishRegistryDataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_aa28c881df32e1b5, []int{0} +} + +func (m *PublishRegistryDataRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PublishRegistryDataRequest.Unmarshal(m, b) +} +func (m *PublishRegistryDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PublishRegistryDataRequest.Marshal(b, m, deterministic) +} +func (m *PublishRegistryDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PublishRegistryDataRequest.Merge(m, src) +} +func (m *PublishRegistryDataRequest) XXX_Size() int { + return xxx_messageInfo_PublishRegistryDataRequest.Size(m) +} +func (m *PublishRegistryDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PublishRegistryDataRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PublishRegistryDataRequest proto.InternalMessageInfo + +func (m *PublishRegistryDataRequest) GetRegistryId() string { + if m != nil { + return m.RegistryId + } + return "" +} + +func (m *PublishRegistryDataRequest) GetTopic() string { + if m != nil { + return m.Topic + } + return "" +} + +func (m *PublishRegistryDataRequest) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +type PublishRegistryDataResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PublishRegistryDataResponse) Reset() { *m = PublishRegistryDataResponse{} } +func (m *PublishRegistryDataResponse) String() string { return proto.CompactTextString(m) } +func (*PublishRegistryDataResponse) ProtoMessage() {} +func (*PublishRegistryDataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_aa28c881df32e1b5, []int{1} +} + +func (m *PublishRegistryDataResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PublishRegistryDataResponse.Unmarshal(m, b) +} +func (m *PublishRegistryDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PublishRegistryDataResponse.Marshal(b, m, deterministic) +} +func (m *PublishRegistryDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PublishRegistryDataResponse.Merge(m, src) +} +func (m *PublishRegistryDataResponse) XXX_Size() int { + return xxx_messageInfo_PublishRegistryDataResponse.Size(m) +} +func (m *PublishRegistryDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PublishRegistryDataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_PublishRegistryDataResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*PublishRegistryDataRequest)(nil), "yandex.cloud.iot.devices.v1.PublishRegistryDataRequest") + proto.RegisterType((*PublishRegistryDataResponse)(nil), "yandex.cloud.iot.devices.v1.PublishRegistryDataResponse") +} + +func init() { + proto.RegisterFile("yandex/cloud/iot/devices/v1/registry_data_service.proto", fileDescriptor_aa28c881df32e1b5) +} + +var fileDescriptor_aa28c881df32e1b5 = []byte{ + // 377 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcf, 0x4e, 0xea, 0x40, + 0x18, 0xc5, 0x33, 0x5c, 0x2e, 0xf7, 0xde, 0xb9, 0xc4, 0x45, 0xdd, 0x90, 0x22, 0x91, 0x34, 0x2e, + 0x88, 0x49, 0x67, 0x68, 0x05, 0x31, 0x02, 0x1b, 0x62, 0x62, 0xdc, 0x99, 0xba, 0x73, 0x43, 0x86, + 0x76, 0x52, 0xc6, 0xd4, 0x4e, 0xed, 0x4c, 0x1b, 0x89, 0x71, 0xe3, 0x92, 0x2d, 0x4f, 0xe3, 0x13, + 0xc8, 0xd6, 0xf8, 0x0a, 0x2e, 0x7c, 0x0c, 0x43, 0xa7, 0x1a, 0xf0, 0x0f, 0x89, 0xbb, 0x26, 0xe7, + 0xfc, 0xfa, 0x9d, 0xef, 0x3b, 0x03, 0x3b, 0x13, 0x12, 0x7a, 0xf4, 0x1a, 0xbb, 0x01, 0x4f, 0x3c, + 0xcc, 0xb8, 0xc4, 0x1e, 0x4d, 0x99, 0x4b, 0x05, 0x4e, 0x2d, 0x1c, 0x53, 0x9f, 0x09, 0x19, 0x4f, + 0x86, 0x1e, 0x91, 0x64, 0x28, 0x68, 0xbc, 0x50, 0x50, 0x14, 0x73, 0xc9, 0xb5, 0xaa, 0x02, 0x51, + 0x06, 0x22, 0xc6, 0x25, 0xca, 0x41, 0x94, 0x5a, 0xfa, 0x96, 0xcf, 0xb9, 0x1f, 0x50, 0x4c, 0x22, + 0x86, 0x49, 0x18, 0x72, 0x49, 0x24, 0xe3, 0xa1, 0x50, 0xa8, 0x5e, 0x5b, 0x99, 0x99, 0x92, 0x80, + 0x79, 0x99, 0xae, 0x64, 0x63, 0x06, 0xa0, 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 0xd3, 0xa7, 0x61, 0x56, + 0x28, 0x5e, 0xf3, 0xc4, 0xba, 0xf9, 0xe7, 0xa8, 0x94, 0x59, 0xf7, 0x5e, 0x03, 0x00, 0x00, 0xff, + 0xff, 0xc6, 0x00, 0x20, 0xef, 0x90, 0x02, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// RegistryDataServiceClient is the client API for RegistryDataService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RegistryDataServiceClient interface { + // Publishes message on behalf of specified registry + Publish(ctx context.Context, in *PublishRegistryDataRequest, opts ...grpc.CallOption) (*PublishRegistryDataResponse, error) +} + +type registryDataServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewRegistryDataServiceClient(cc grpc.ClientConnInterface) RegistryDataServiceClient { + return ®istryDataServiceClient{cc} +} + +func (c *registryDataServiceClient) Publish(ctx context.Context, in *PublishRegistryDataRequest, opts ...grpc.CallOption) (*PublishRegistryDataResponse, error) { + out := new(PublishRegistryDataResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.iot.devices.v1.RegistryDataService/Publish", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RegistryDataServiceServer is the server API for RegistryDataService service. +type RegistryDataServiceServer interface { + // Publishes message on behalf of specified registry + Publish(context.Context, *PublishRegistryDataRequest) (*PublishRegistryDataResponse, error) +} + +// UnimplementedRegistryDataServiceServer can be embedded to have forward compatible implementations. +type UnimplementedRegistryDataServiceServer struct { +} + +func (*UnimplementedRegistryDataServiceServer) Publish(ctx context.Context, req *PublishRegistryDataRequest) (*PublishRegistryDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Publish not implemented") +} + +func RegisterRegistryDataServiceServer(s *grpc.Server, srv RegistryDataServiceServer) { + s.RegisterService(&_RegistryDataService_serviceDesc, srv) +} + +func _RegistryDataService_Publish_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PublishRegistryDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegistryDataServiceServer).Publish(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.iot.devices.v1.RegistryDataService/Publish", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryDataServiceServer).Publish(ctx, req.(*PublishRegistryDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _RegistryDataService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.iot.devices.v1.RegistryDataService", + HandlerType: (*RegistryDataServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Publish", + Handler: _RegistryDataService_Publish_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/iot/devices/v1/registry_data_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry_data_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry_data_service.pbext.go new file mode 100644 index 000000000..b1007a137 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry_data_service.pbext.go @@ -0,0 +1,15 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package devices + +func (m *PublishRegistryDataRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *PublishRegistryDataRequest) SetTopic(v string) { + m.Topic = v +} + +func (m *PublishRegistryDataRequest) SetData(v []byte) { + m.Data = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry_service.pb.go index c493559bf..209200459 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry_service.pb.go @@ -30,6 +30,9 @@ var _ = math.Inf const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type GetRegistryRequest struct { + // ID of the registry to return. + // + // To get a registry ID make a [RegistryService.List] request. RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -69,8 +72,17 @@ func (m *GetRegistryRequest) GetRegistryId() string { } type ListRegistriesRequest struct { - FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` - PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // ID of the folder to list registries in. + // + // To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request. + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // The maximum number of results per page that should be returned. If the number of available + // results is larger than `page_size`, the service returns a [ListRegistriesResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListRegistriesResponse.next_page_token] returned by a previous list request. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -124,11 +136,17 @@ func (m *ListRegistriesRequest) GetPageToken() string { } type ListRegistriesResponse struct { - Registries []*Registry `protobuf:"bytes,1,rep,name=registries,proto3" json:"registries,omitempty"` - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // List of registries. + Registries []*Registry `protobuf:"bytes,1,rep,name=registries,proto3" json:"registries,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListRegistriesRequest.page_size], use `next_page_token` as the value + // for the [ListRegistriesRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListRegistriesResponse) Reset() { *m = ListRegistriesResponse{} } @@ -171,14 +189,25 @@ func (m *ListRegistriesResponse) GetNextPageToken() string { } type CreateRegistryRequest struct { - FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Certificates []*CreateRegistryRequest_Certificate `protobuf:"bytes,5,rep,name=certificates,proto3" json:"certificates,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // ID of the folder to create a registry in. + // + // To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request. + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // Name of the registry. The name must be unique within the folder. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Description of the registry. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // Resource labels as `key:value` pairs. + Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Registry certificates. + Certificates []*CreateRegistryRequest_Certificate `protobuf:"bytes,5,rep,name=certificates,proto3" json:"certificates,omitempty"` + // Registry passwords. + // + // The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols. + Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CreateRegistryRequest) Reset() { *m = CreateRegistryRequest{} } @@ -241,7 +270,16 @@ func (m *CreateRegistryRequest) GetCertificates() []*CreateRegistryRequest_Certi return nil } +func (m *CreateRegistryRequest) GetPassword() string { + if m != nil { + return m.Password + } + return "" +} + +// Specification of a registry certificate. type CreateRegistryRequest_Certificate struct { + // Public part of the registry certificate. CertificateData string `protobuf:"bytes,1,opt,name=certificate_data,json=certificateData,proto3" json:"certificate_data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -281,6 +319,7 @@ func (m *CreateRegistryRequest_Certificate) GetCertificateData() string { } type CreateRegistryMetadata struct { + // ID of the registry that is being created. RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -320,14 +359,23 @@ func (m *CreateRegistryMetadata) GetRegistryId() string { } type UpdateRegistryRequest struct { - RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` - UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,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:"-"` + // ID of the registry to update. + // + // To get a registry ID make a [RegistryService.List] request. + RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // Field mask that specifies which fields of the registry are going to be updated. + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // Name of the registry. The name must be unique within the folder. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // Description of the registry. + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + // Resource labels as `key:value` pairs. + // + // Existing set of `labels` is completely replaced by the provided set. + Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,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 *UpdateRegistryRequest) Reset() { *m = UpdateRegistryRequest{} } @@ -391,6 +439,7 @@ func (m *UpdateRegistryRequest) GetLabels() map[string]string { } type UpdateRegistryMetadata struct { + // ID of the registry that is being updated. RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -430,6 +479,9 @@ func (m *UpdateRegistryMetadata) GetRegistryId() string { } type DeleteRegistryRequest struct { + // ID of the registry to delete. + // + // To get a registry ID make a [RegistryService.List] request. RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -469,6 +521,7 @@ func (m *DeleteRegistryRequest) GetRegistryId() string { } type DeleteRegistryMetadata struct { + // ID of the registry that is being deleted. RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -508,6 +561,7 @@ func (m *DeleteRegistryMetadata) GetRegistryId() string { } type ListRegistryCertificatesRequest struct { + // ID of the registry to list certificates for. RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -547,6 +601,7 @@ func (m *ListRegistryCertificatesRequest) GetRegistryId() string { } type ListRegistryCertificatesResponse struct { + // List of certificates for the specified registry. Certificates []*RegistryCertificate `protobuf:"bytes,1,rep,name=certificates,proto3" json:"certificates,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -586,7 +641,11 @@ func (m *ListRegistryCertificatesResponse) GetCertificates() []*RegistryCertific } type AddRegistryCertificateRequest struct { - RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // ID of the registry for which the certificate is being added. + // + // To get a registry ID make a [RegistryService.List] request. + RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // Public part of the certificate that is being added. CertificateData string `protobuf:"bytes,3,opt,name=certificate_data,json=certificateData,proto3" json:"certificate_data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -633,7 +692,9 @@ func (m *AddRegistryCertificateRequest) GetCertificateData() string { } type AddRegistryCertificateMetadata struct { - RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // ID of the registry certificate that is being added. + RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // Fingerprint of the certificate that is being added. Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -680,7 +741,11 @@ func (m *AddRegistryCertificateMetadata) GetFingerprint() string { } type DeleteRegistryCertificateRequest struct { - RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // ID of the registry to delete a certificate for. + // + // To get a registry ID make a [RegistryService.List] request. + RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // Fingerprint of the certificate that is being deleted. Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -727,7 +792,9 @@ func (m *DeleteRegistryCertificateRequest) GetFingerprint() string { } type DeleteRegistryCertificateMetadata struct { - RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // ID of a registry for which the certificate is being delete. + RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // Fingerprint of the certificate to deleted. Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -773,9 +840,306 @@ func (m *DeleteRegistryCertificateMetadata) GetFingerprint() string { return "" } -type ListDeviceTopicAliasesRequest struct { +type ListRegistryPasswordsRequest struct { + // ID of the registry to list passwords in. + // + // To get a registry ID make a [RegistryService.List] request. RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` - PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListRegistryPasswordsRequest) Reset() { *m = ListRegistryPasswordsRequest{} } +func (m *ListRegistryPasswordsRequest) String() string { return proto.CompactTextString(m) } +func (*ListRegistryPasswordsRequest) ProtoMessage() {} +func (*ListRegistryPasswordsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_481ff402e1676179, []int{15} +} + +func (m *ListRegistryPasswordsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListRegistryPasswordsRequest.Unmarshal(m, b) +} +func (m *ListRegistryPasswordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListRegistryPasswordsRequest.Marshal(b, m, deterministic) +} +func (m *ListRegistryPasswordsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListRegistryPasswordsRequest.Merge(m, src) +} +func (m *ListRegistryPasswordsRequest) XXX_Size() int { + return xxx_messageInfo_ListRegistryPasswordsRequest.Size(m) +} +func (m *ListRegistryPasswordsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListRegistryPasswordsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListRegistryPasswordsRequest proto.InternalMessageInfo + +func (m *ListRegistryPasswordsRequest) GetRegistryId() string { + if m != nil { + return m.RegistryId + } + return "" +} + +type ListRegistryPasswordsResponse struct { + // List of passwords for the specified registry. + Passwords []*RegistryPassword `protobuf:"bytes,1,rep,name=passwords,proto3" json:"passwords,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListRegistryPasswordsResponse) Reset() { *m = ListRegistryPasswordsResponse{} } +func (m *ListRegistryPasswordsResponse) String() string { return proto.CompactTextString(m) } +func (*ListRegistryPasswordsResponse) ProtoMessage() {} +func (*ListRegistryPasswordsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_481ff402e1676179, []int{16} +} + +func (m *ListRegistryPasswordsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListRegistryPasswordsResponse.Unmarshal(m, b) +} +func (m *ListRegistryPasswordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListRegistryPasswordsResponse.Marshal(b, m, deterministic) +} +func (m *ListRegistryPasswordsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListRegistryPasswordsResponse.Merge(m, src) +} +func (m *ListRegistryPasswordsResponse) XXX_Size() int { + return xxx_messageInfo_ListRegistryPasswordsResponse.Size(m) +} +func (m *ListRegistryPasswordsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListRegistryPasswordsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListRegistryPasswordsResponse proto.InternalMessageInfo + +func (m *ListRegistryPasswordsResponse) GetPasswords() []*RegistryPassword { + if m != nil { + return m.Passwords + } + return nil +} + +type AddRegistryPasswordRequest struct { + // ID of the registry to add a password for. + // + // To get a registry ID make a [RegistryService.List] request. + RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // Passwords for the registry. + // + // The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols. + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AddRegistryPasswordRequest) Reset() { *m = AddRegistryPasswordRequest{} } +func (m *AddRegistryPasswordRequest) String() string { return proto.CompactTextString(m) } +func (*AddRegistryPasswordRequest) ProtoMessage() {} +func (*AddRegistryPasswordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_481ff402e1676179, []int{17} +} + +func (m *AddRegistryPasswordRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddRegistryPasswordRequest.Unmarshal(m, b) +} +func (m *AddRegistryPasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddRegistryPasswordRequest.Marshal(b, m, deterministic) +} +func (m *AddRegistryPasswordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddRegistryPasswordRequest.Merge(m, src) +} +func (m *AddRegistryPasswordRequest) XXX_Size() int { + return xxx_messageInfo_AddRegistryPasswordRequest.Size(m) +} +func (m *AddRegistryPasswordRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AddRegistryPasswordRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AddRegistryPasswordRequest proto.InternalMessageInfo + +func (m *AddRegistryPasswordRequest) GetRegistryId() string { + if m != nil { + return m.RegistryId + } + return "" +} + +func (m *AddRegistryPasswordRequest) GetPassword() string { + if m != nil { + return m.Password + } + return "" +} + +type AddRegistryPasswordMetadata struct { + // ID of the registry for which the password is being added. + RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // ID of a password that is being added. + PasswordId string `protobuf:"bytes,2,opt,name=password_id,json=passwordId,proto3" json:"password_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AddRegistryPasswordMetadata) Reset() { *m = AddRegistryPasswordMetadata{} } +func (m *AddRegistryPasswordMetadata) String() string { return proto.CompactTextString(m) } +func (*AddRegistryPasswordMetadata) ProtoMessage() {} +func (*AddRegistryPasswordMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_481ff402e1676179, []int{18} +} + +func (m *AddRegistryPasswordMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddRegistryPasswordMetadata.Unmarshal(m, b) +} +func (m *AddRegistryPasswordMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddRegistryPasswordMetadata.Marshal(b, m, deterministic) +} +func (m *AddRegistryPasswordMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddRegistryPasswordMetadata.Merge(m, src) +} +func (m *AddRegistryPasswordMetadata) XXX_Size() int { + return xxx_messageInfo_AddRegistryPasswordMetadata.Size(m) +} +func (m *AddRegistryPasswordMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_AddRegistryPasswordMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_AddRegistryPasswordMetadata proto.InternalMessageInfo + +func (m *AddRegistryPasswordMetadata) GetRegistryId() string { + if m != nil { + return m.RegistryId + } + return "" +} + +func (m *AddRegistryPasswordMetadata) GetPasswordId() string { + if m != nil { + return m.PasswordId + } + return "" +} + +type DeleteRegistryPasswordRequest struct { + // ID of the registry to delete a password for. + // + // To get a registry ID make a [DeviceService.List] request. + RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // ID of the password to delete. + // + // To get a password ID make a [RegistryService.ListPasswords] request. + PasswordId string `protobuf:"bytes,2,opt,name=password_id,json=passwordId,proto3" json:"password_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteRegistryPasswordRequest) Reset() { *m = DeleteRegistryPasswordRequest{} } +func (m *DeleteRegistryPasswordRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteRegistryPasswordRequest) ProtoMessage() {} +func (*DeleteRegistryPasswordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_481ff402e1676179, []int{19} +} + +func (m *DeleteRegistryPasswordRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteRegistryPasswordRequest.Unmarshal(m, b) +} +func (m *DeleteRegistryPasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteRegistryPasswordRequest.Marshal(b, m, deterministic) +} +func (m *DeleteRegistryPasswordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRegistryPasswordRequest.Merge(m, src) +} +func (m *DeleteRegistryPasswordRequest) XXX_Size() int { + return xxx_messageInfo_DeleteRegistryPasswordRequest.Size(m) +} +func (m *DeleteRegistryPasswordRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteRegistryPasswordRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteRegistryPasswordRequest proto.InternalMessageInfo + +func (m *DeleteRegistryPasswordRequest) GetRegistryId() string { + if m != nil { + return m.RegistryId + } + return "" +} + +func (m *DeleteRegistryPasswordRequest) GetPasswordId() string { + if m != nil { + return m.PasswordId + } + return "" +} + +type DeleteRegistryPasswordMetadata struct { + // ID of a registry for which the password is being delete. + RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // ID of the password to delete. + // + // To get a password ID make a [RegistryService.ListPasswords] request. + PasswordId string `protobuf:"bytes,2,opt,name=password_id,json=passwordId,proto3" json:"password_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteRegistryPasswordMetadata) Reset() { *m = DeleteRegistryPasswordMetadata{} } +func (m *DeleteRegistryPasswordMetadata) String() string { return proto.CompactTextString(m) } +func (*DeleteRegistryPasswordMetadata) ProtoMessage() {} +func (*DeleteRegistryPasswordMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_481ff402e1676179, []int{20} +} + +func (m *DeleteRegistryPasswordMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteRegistryPasswordMetadata.Unmarshal(m, b) +} +func (m *DeleteRegistryPasswordMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteRegistryPasswordMetadata.Marshal(b, m, deterministic) +} +func (m *DeleteRegistryPasswordMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRegistryPasswordMetadata.Merge(m, src) +} +func (m *DeleteRegistryPasswordMetadata) XXX_Size() int { + return xxx_messageInfo_DeleteRegistryPasswordMetadata.Size(m) +} +func (m *DeleteRegistryPasswordMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteRegistryPasswordMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteRegistryPasswordMetadata proto.InternalMessageInfo + +func (m *DeleteRegistryPasswordMetadata) GetRegistryId() string { + if m != nil { + return m.RegistryId + } + return "" +} + +func (m *DeleteRegistryPasswordMetadata) GetPasswordId() string { + if m != nil { + return m.PasswordId + } + return "" +} + +type ListDeviceTopicAliasesRequest struct { + // ID of the registry to list aliases for device topic. + // + // To get a registry ID make a [RegistryService.List] request. + RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // The maximum number of results per page that should be returned. If the number of available + // results is larger than `page_size`, the service returns a [ListDeviceTopicAliasesResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListDeviceTopicAliasesResponse.next_page_token] returned by a previous list request. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -786,7 +1150,7 @@ func (m *ListDeviceTopicAliasesRequest) Reset() { *m = ListDeviceTopicAl func (m *ListDeviceTopicAliasesRequest) String() string { return proto.CompactTextString(m) } func (*ListDeviceTopicAliasesRequest) ProtoMessage() {} func (*ListDeviceTopicAliasesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_481ff402e1676179, []int{15} + return fileDescriptor_481ff402e1676179, []int{21} } func (m *ListDeviceTopicAliasesRequest) XXX_Unmarshal(b []byte) error { @@ -829,18 +1193,24 @@ func (m *ListDeviceTopicAliasesRequest) GetPageToken() string { } type ListDeviceTopicAliasesResponse struct { - Aliases []*DeviceAlias `protobuf:"bytes,1,rep,name=aliases,proto3" json:"aliases,omitempty"` - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // List of device aliases for the specified registry. + Aliases []*DeviceAlias `protobuf:"bytes,1,rep,name=aliases,proto3" json:"aliases,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListDeviceTopicAliasesRequest.page_size], use `next_page_token` as the value + // for the [ListDeviceTopicAliasesRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListDeviceTopicAliasesResponse) Reset() { *m = ListDeviceTopicAliasesResponse{} } func (m *ListDeviceTopicAliasesResponse) String() string { return proto.CompactTextString(m) } func (*ListDeviceTopicAliasesResponse) ProtoMessage() {} func (*ListDeviceTopicAliasesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_481ff402e1676179, []int{16} + return fileDescriptor_481ff402e1676179, []int{22} } func (m *ListDeviceTopicAliasesResponse) XXX_Unmarshal(b []byte) error { @@ -876,9 +1246,18 @@ func (m *ListDeviceTopicAliasesResponse) GetNextPageToken() string { } type ListRegistryOperationsRequest struct { - RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` - PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // ID of the registry to list operations for. + RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // The maximum number of results per page that should be returned. If the number of available + // results is larger than `page_size`, the service returns a [ListRegistryOperationsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListRegistryOperationsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters resources listed in the response. + // Currently you can use filtering only on [Registry.name] field. Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -889,7 +1268,7 @@ func (m *ListRegistryOperationsRequest) Reset() { *m = ListRegistryOpera func (m *ListRegistryOperationsRequest) String() string { return proto.CompactTextString(m) } func (*ListRegistryOperationsRequest) ProtoMessage() {} func (*ListRegistryOperationsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_481ff402e1676179, []int{17} + return fileDescriptor_481ff402e1676179, []int{23} } func (m *ListRegistryOperationsRequest) XXX_Unmarshal(b []byte) error { @@ -939,18 +1318,24 @@ func (m *ListRegistryOperationsRequest) GetFilter() string { } type ListRegistryOperationsResponse struct { - Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // List of operations for the specified registry. + Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListRegistryOperationsRequest.page_size], use `next_page_token` as the value + // for the [ListRegistryOperationsRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListRegistryOperationsResponse) Reset() { *m = ListRegistryOperationsResponse{} } func (m *ListRegistryOperationsResponse) String() string { return proto.CompactTextString(m) } func (*ListRegistryOperationsResponse) ProtoMessage() {} func (*ListRegistryOperationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_481ff402e1676179, []int{18} + return fileDescriptor_481ff402e1676179, []int{24} } func (m *ListRegistryOperationsResponse) XXX_Unmarshal(b []byte) error { @@ -1004,6 +1389,12 @@ func init() { proto.RegisterType((*AddRegistryCertificateMetadata)(nil), "yandex.cloud.iot.devices.v1.AddRegistryCertificateMetadata") proto.RegisterType((*DeleteRegistryCertificateRequest)(nil), "yandex.cloud.iot.devices.v1.DeleteRegistryCertificateRequest") proto.RegisterType((*DeleteRegistryCertificateMetadata)(nil), "yandex.cloud.iot.devices.v1.DeleteRegistryCertificateMetadata") + proto.RegisterType((*ListRegistryPasswordsRequest)(nil), "yandex.cloud.iot.devices.v1.ListRegistryPasswordsRequest") + proto.RegisterType((*ListRegistryPasswordsResponse)(nil), "yandex.cloud.iot.devices.v1.ListRegistryPasswordsResponse") + proto.RegisterType((*AddRegistryPasswordRequest)(nil), "yandex.cloud.iot.devices.v1.AddRegistryPasswordRequest") + proto.RegisterType((*AddRegistryPasswordMetadata)(nil), "yandex.cloud.iot.devices.v1.AddRegistryPasswordMetadata") + proto.RegisterType((*DeleteRegistryPasswordRequest)(nil), "yandex.cloud.iot.devices.v1.DeleteRegistryPasswordRequest") + proto.RegisterType((*DeleteRegistryPasswordMetadata)(nil), "yandex.cloud.iot.devices.v1.DeleteRegistryPasswordMetadata") proto.RegisterType((*ListDeviceTopicAliasesRequest)(nil), "yandex.cloud.iot.devices.v1.ListDeviceTopicAliasesRequest") proto.RegisterType((*ListDeviceTopicAliasesResponse)(nil), "yandex.cloud.iot.devices.v1.ListDeviceTopicAliasesResponse") proto.RegisterType((*ListRegistryOperationsRequest)(nil), "yandex.cloud.iot.devices.v1.ListRegistryOperationsRequest") @@ -1015,121 +1406,154 @@ func init() { } var fileDescriptor_481ff402e1676179 = []byte{ - // 1322 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x3d, 0x6c, 0xdb, 0xc6, - 0x17, 0x07, 0x23, 0x45, 0xff, 0xe8, 0x29, 0xff, 0xd8, 0xbd, 0xd6, 0x81, 0xc0, 0xe6, 0x43, 0x21, - 0x90, 0x54, 0x61, 0xc1, 0x2f, 0xb9, 0x4e, 0x62, 0x3b, 0x6e, 0x20, 0xe5, 0xc3, 0x08, 0x9a, 0xa0, - 0x01, 0x93, 0x0e, 0x4d, 0x10, 0x08, 0xb4, 0x78, 0x52, 0x0f, 0xa6, 0x49, 0x95, 0xa4, 0x8c, 0xc8, - 0x41, 0x87, 0x66, 0x29, 0x90, 0x16, 0xe8, 0x10, 0xb4, 0x9d, 0xbb, 0x77, 0x32, 0xd0, 0xa5, 0x40, - 0xb7, 0xb6, 0xf6, 0xd4, 0xc1, 0xdd, 0x3a, 0x77, 0x28, 0x3a, 0x66, 0xec, 0x54, 0xf0, 0x8e, 0x94, - 0x49, 0x9b, 0x92, 0x68, 0x19, 0xde, 0xa8, 0xbb, 0xf7, 0x1e, 0x7f, 0xef, 0xbd, 0xdf, 0xbb, 0xfb, - 0x51, 0x50, 0xeb, 0x1b, 0xb6, 0x89, 0x9f, 0x29, 0x2d, 0xcb, 0xe9, 0x99, 0x0a, 0x71, 0x7c, 0xc5, - 0xc4, 0xeb, 0xa4, 0x85, 0x3d, 0x65, 0x5d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 0x89, 0x7c, 0x43, 0xd2, 0x2e, 0xd3, 0x94, - 0xea, 0xe8, 0x46, 0xe6, 0x23, 0xc4, 0x4a, 0xcf, 0xe0, 0x37, 0x0e, 0x4e, 0x05, 0xef, 0xda, 0xbd, - 0x84, 0x33, 0x24, 0x35, 0x54, 0x79, 0x64, 0x48, 0x6a, 0xf8, 0xad, 0x2f, 0x2c, 0xd2, 0xa4, 0xe6, - 0xd0, 0x6c, 0xe6, 0x3e, 0xed, 0xde, 0xf7, 0x8d, 0xbb, 0x8f, 0x97, 0x3b, 0xc4, 0xff, 0xa4, 0xb7, - 0x22, 0xb7, 0x9c, 0x35, 0x85, 0xa1, 0x90, 0xd8, 0xff, 0x6c, 0x1d, 0x47, 0xea, 0x60, 0x9b, 0x52, - 0x42, 0x19, 0xf1, 0x07, 0xdc, 0x62, 0xf8, 0xb8, 0x52, 0xa0, 0xa6, 0xb3, 0xff, 0x05, 0x00, 0x00, - 0xff, 0xff, 0x4f, 0x76, 0xb6, 0x31, 0xa8, 0x14, 0x00, 0x00, + // 1567 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0x4f, 0x4c, 0xdc, 0x46, + 0x17, 0x97, 0x61, 0xb3, 0x1f, 0xbc, 0x4d, 0x08, 0xdf, 0x7c, 0x21, 0x42, 0x4e, 0xf8, 0x13, 0xeb, + 0x4b, 0x3e, 0xb2, 0x9f, 0x6c, 0xaf, 0x97, 0x90, 0x84, 0x25, 0x24, 0x05, 0x42, 0x50, 0x94, 0x44, + 0x8d, 0x9c, 0xf4, 0xd0, 0x44, 0xd1, 0xca, 0xac, 0x87, 0xad, 0xcb, 0xb2, 0xde, 0xd8, 0x86, 0x06, + 0x22, 0x2a, 0x25, 0x3d, 0x54, 0x4d, 0x2b, 0xf5, 0x10, 0x55, 0x3d, 0xf7, 0xde, 0x13, 0x52, 0x2f, + 0x95, 0x7a, 0xa9,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xae, 0x53, 0xfa, 0xa8, 0x6d, 0xfe, 0xef, 0x31, 0xe5, 0x7f, 0x5c, 0xcc, 0x52, 0xd3, + 0xf1, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xb7, 0x69, 0x03, 0xcf, 0x1f, 0x1a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // RegistryServiceClient is the client API for RegistryService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type RegistryServiceClient interface { + // Returns the specified registry. + // + // To get the list of available registries, make a [List] request. Get(ctx context.Context, in *GetRegistryRequest, opts ...grpc.CallOption) (*Registry, error) + // Retrieves the list of registries in the specified folder. List(ctx context.Context, in *ListRegistriesRequest, opts ...grpc.CallOption) (*ListRegistriesResponse, error) + // Creates a registry in the specified folder. Create(ctx context.Context, in *CreateRegistryRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Updates the specified registry. Update(ctx context.Context, in *UpdateRegistryRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Deletes the specified registry. Delete(ctx context.Context, in *DeleteRegistryRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Retrieves the list of registry certificates for the specified registry. ListCertificates(ctx context.Context, in *ListRegistryCertificatesRequest, opts ...grpc.CallOption) (*ListRegistryCertificatesResponse, error) + // Adds a certificate. AddCertificate(ctx context.Context, in *AddRegistryCertificateRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Deletes the specified registry certificate. DeleteCertificate(ctx context.Context, in *DeleteRegistryCertificateRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Retrieves the list of passwords for the specified registry. + ListPasswords(ctx context.Context, in *ListRegistryPasswordsRequest, opts ...grpc.CallOption) (*ListRegistryPasswordsResponse, error) + // Adds password for the specified registry. + AddPassword(ctx context.Context, in *AddRegistryPasswordRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Deletes the specified password. + DeletePassword(ctx context.Context, in *DeleteRegistryPasswordRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Retrieves the list of device topic aliases for the specified registry. ListDeviceTopicAliases(ctx context.Context, in *ListDeviceTopicAliasesRequest, opts ...grpc.CallOption) (*ListDeviceTopicAliasesResponse, error) + // Lists operations for the specified registry. ListOperations(ctx context.Context, in *ListRegistryOperationsRequest, opts ...grpc.CallOption) (*ListRegistryOperationsResponse, error) } type registryServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewRegistryServiceClient(cc *grpc.ClientConn) RegistryServiceClient { +func NewRegistryServiceClient(cc grpc.ClientConnInterface) RegistryServiceClient { return ®istryServiceClient{cc} } @@ -1205,6 +1629,33 @@ func (c *registryServiceClient) DeleteCertificate(ctx context.Context, in *Delet return out, nil } +func (c *registryServiceClient) ListPasswords(ctx context.Context, in *ListRegistryPasswordsRequest, opts ...grpc.CallOption) (*ListRegistryPasswordsResponse, error) { + out := new(ListRegistryPasswordsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.iot.devices.v1.RegistryService/ListPasswords", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *registryServiceClient) AddPassword(ctx context.Context, in *AddRegistryPasswordRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.iot.devices.v1.RegistryService/AddPassword", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *registryServiceClient) DeletePassword(ctx context.Context, in *DeleteRegistryPasswordRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.iot.devices.v1.RegistryService/DeletePassword", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *registryServiceClient) ListDeviceTopicAliases(ctx context.Context, in *ListDeviceTopicAliasesRequest, opts ...grpc.CallOption) (*ListDeviceTopicAliasesResponse, error) { out := new(ListDeviceTopicAliasesResponse) err := c.cc.Invoke(ctx, "/yandex.cloud.iot.devices.v1.RegistryService/ListDeviceTopicAliases", in, out, opts...) @@ -1225,15 +1676,33 @@ func (c *registryServiceClient) ListOperations(ctx context.Context, in *ListRegi // RegistryServiceServer is the server API for RegistryService service. type RegistryServiceServer interface { + // Returns the specified registry. + // + // To get the list of available registries, make a [List] request. Get(context.Context, *GetRegistryRequest) (*Registry, error) + // Retrieves the list of registries in the specified folder. List(context.Context, *ListRegistriesRequest) (*ListRegistriesResponse, error) + // Creates a registry in the specified folder. Create(context.Context, *CreateRegistryRequest) (*operation.Operation, error) + // Updates the specified registry. Update(context.Context, *UpdateRegistryRequest) (*operation.Operation, error) + // Deletes the specified registry. Delete(context.Context, *DeleteRegistryRequest) (*operation.Operation, error) + // Retrieves the list of registry certificates for the specified registry. ListCertificates(context.Context, *ListRegistryCertificatesRequest) (*ListRegistryCertificatesResponse, error) + // Adds a certificate. AddCertificate(context.Context, *AddRegistryCertificateRequest) (*operation.Operation, error) + // Deletes the specified registry certificate. DeleteCertificate(context.Context, *DeleteRegistryCertificateRequest) (*operation.Operation, error) + // Retrieves the list of passwords for the specified registry. + ListPasswords(context.Context, *ListRegistryPasswordsRequest) (*ListRegistryPasswordsResponse, error) + // Adds password for the specified registry. + AddPassword(context.Context, *AddRegistryPasswordRequest) (*operation.Operation, error) + // Deletes the specified password. + DeletePassword(context.Context, *DeleteRegistryPasswordRequest) (*operation.Operation, error) + // Retrieves the list of device topic aliases for the specified registry. ListDeviceTopicAliases(context.Context, *ListDeviceTopicAliasesRequest) (*ListDeviceTopicAliasesResponse, error) + // Lists operations for the specified registry. ListOperations(context.Context, *ListRegistryOperationsRequest) (*ListRegistryOperationsResponse, error) } @@ -1265,6 +1734,15 @@ func (*UnimplementedRegistryServiceServer) AddCertificate(ctx context.Context, r func (*UnimplementedRegistryServiceServer) DeleteCertificate(ctx context.Context, req *DeleteRegistryCertificateRequest) (*operation.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteCertificate not implemented") } +func (*UnimplementedRegistryServiceServer) ListPasswords(ctx context.Context, req *ListRegistryPasswordsRequest) (*ListRegistryPasswordsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListPasswords not implemented") +} +func (*UnimplementedRegistryServiceServer) AddPassword(ctx context.Context, req *AddRegistryPasswordRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddPassword not implemented") +} +func (*UnimplementedRegistryServiceServer) DeletePassword(ctx context.Context, req *DeleteRegistryPasswordRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeletePassword not implemented") +} func (*UnimplementedRegistryServiceServer) ListDeviceTopicAliases(ctx context.Context, req *ListDeviceTopicAliasesRequest) (*ListDeviceTopicAliasesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListDeviceTopicAliases not implemented") } @@ -1420,6 +1898,60 @@ func _RegistryService_DeleteCertificate_Handler(srv interface{}, ctx context.Con return interceptor(ctx, in, info, handler) } +func _RegistryService_ListPasswords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListRegistryPasswordsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegistryServiceServer).ListPasswords(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.iot.devices.v1.RegistryService/ListPasswords", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServiceServer).ListPasswords(ctx, req.(*ListRegistryPasswordsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RegistryService_AddPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddRegistryPasswordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegistryServiceServer).AddPassword(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.iot.devices.v1.RegistryService/AddPassword", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServiceServer).AddPassword(ctx, req.(*AddRegistryPasswordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RegistryService_DeletePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteRegistryPasswordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegistryServiceServer).DeletePassword(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.iot.devices.v1.RegistryService/DeletePassword", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServiceServer).DeletePassword(ctx, req.(*DeleteRegistryPasswordRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _RegistryService_ListDeviceTopicAliases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListDeviceTopicAliasesRequest) if err := dec(in); err != nil { @@ -1492,6 +2024,18 @@ var _RegistryService_serviceDesc = grpc.ServiceDesc{ MethodName: "DeleteCertificate", Handler: _RegistryService_DeleteCertificate_Handler, }, + { + MethodName: "ListPasswords", + Handler: _RegistryService_ListPasswords_Handler, + }, + { + MethodName: "AddPassword", + Handler: _RegistryService_AddPassword_Handler, + }, + { + MethodName: "DeletePassword", + Handler: _RegistryService_DeletePassword_Handler, + }, { MethodName: "ListDeviceTopicAliases", Handler: _RegistryService_ListDeviceTopicAliases_Handler, diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry_service.pbext.go new file mode 100644 index 000000000..822397472 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1/registry_service.pbext.go @@ -0,0 +1,220 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package devices + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetRegistryRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *ListRegistriesRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListRegistriesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListRegistriesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListRegistriesResponse) SetRegistries(v []*Registry) { + m.Registries = v +} + +func (m *ListRegistriesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateRegistryRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateRegistryRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateRegistryRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateRegistryRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateRegistryRequest) SetCertificates(v []*CreateRegistryRequest_Certificate) { + m.Certificates = v +} + +func (m *CreateRegistryRequest) SetPassword(v string) { + m.Password = v +} + +func (m *CreateRegistryRequest_Certificate) SetCertificateData(v string) { + m.CertificateData = v +} + +func (m *CreateRegistryMetadata) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *UpdateRegistryRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *UpdateRegistryRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateRegistryRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateRegistryRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateRegistryRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateRegistryMetadata) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *DeleteRegistryRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *DeleteRegistryMetadata) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *ListRegistryCertificatesRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *ListRegistryCertificatesResponse) SetCertificates(v []*RegistryCertificate) { + m.Certificates = v +} + +func (m *AddRegistryCertificateRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *AddRegistryCertificateRequest) SetCertificateData(v string) { + m.CertificateData = v +} + +func (m *AddRegistryCertificateMetadata) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *AddRegistryCertificateMetadata) SetFingerprint(v string) { + m.Fingerprint = v +} + +func (m *DeleteRegistryCertificateRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *DeleteRegistryCertificateRequest) SetFingerprint(v string) { + m.Fingerprint = v +} + +func (m *DeleteRegistryCertificateMetadata) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *DeleteRegistryCertificateMetadata) SetFingerprint(v string) { + m.Fingerprint = v +} + +func (m *ListRegistryPasswordsRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *ListRegistryPasswordsResponse) SetPasswords(v []*RegistryPassword) { + m.Passwords = v +} + +func (m *AddRegistryPasswordRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *AddRegistryPasswordRequest) SetPassword(v string) { + m.Password = v +} + +func (m *AddRegistryPasswordMetadata) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *AddRegistryPasswordMetadata) SetPasswordId(v string) { + m.PasswordId = v +} + +func (m *DeleteRegistryPasswordRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *DeleteRegistryPasswordRequest) SetPasswordId(v string) { + m.PasswordId = v +} + +func (m *DeleteRegistryPasswordMetadata) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *DeleteRegistryPasswordMetadata) SetPasswordId(v string) { + m.PasswordId = v +} + +func (m *ListDeviceTopicAliasesRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *ListDeviceTopicAliasesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListDeviceTopicAliasesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListDeviceTopicAliasesResponse) SetAliases(v []*DeviceAlias) { + m.Aliases = v +} + +func (m *ListDeviceTopicAliasesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListRegistryOperationsRequest) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *ListRegistryOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListRegistryOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListRegistryOperationsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListRegistryOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListRegistryOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/cluster.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/cluster.pb.go new file mode 100644 index 000000000..cfc655f24 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/cluster.pb.go @@ -0,0 +1,1013 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/k8s/v1/cluster.proto + +package k8s + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ReleaseChannel int32 + +const ( + ReleaseChannel_RELEASE_CHANNEL_UNSPECIFIED ReleaseChannel = 0 + // Minor updates with new functions and improvements are often added. + // You can't disable automatic updates in this channel, but you can specify a time period for automatic updates. + ReleaseChannel_RAPID ReleaseChannel = 1 + // New functions and improvements are added in chunks shortly after they appear on `RAPID`. + ReleaseChannel_REGULAR ReleaseChannel = 2 + // Only updates related to bug fixes or security improvements are added. + ReleaseChannel_STABLE ReleaseChannel = 3 +) + +var ReleaseChannel_name = map[int32]string{ + 0: "RELEASE_CHANNEL_UNSPECIFIED", + 1: "RAPID", + 2: "REGULAR", + 3: "STABLE", +} + +var ReleaseChannel_value = map[string]int32{ + "RELEASE_CHANNEL_UNSPECIFIED": 0, + "RAPID": 1, + "REGULAR": 2, + "STABLE": 3, +} + +func (x ReleaseChannel) String() string { + return proto.EnumName(ReleaseChannel_name, int32(x)) +} + +func (ReleaseChannel) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_978615dae5f27f2e, []int{0} +} + +type Cluster_Status int32 + +const ( + Cluster_STATUS_UNSPECIFIED Cluster_Status = 0 + // Kubernetes cluster is waiting for resources to be allocated. + Cluster_PROVISIONING Cluster_Status = 1 + // Kubernetes cluster is running. + Cluster_RUNNING Cluster_Status = 2 + // Kubernetes cluster is being reconciled. + Cluster_RECONCILING Cluster_Status = 3 + // Kubernetes cluster is being stopped. + Cluster_STOPPING Cluster_Status = 4 + // Kubernetes cluster stopped. + Cluster_STOPPED Cluster_Status = 5 + // Kubernetes cluster is being deleted. + Cluster_DELETING Cluster_Status = 6 + // Kubernetes cluster is being started. + Cluster_STARTING Cluster_Status = 7 +) + +var Cluster_Status_name = map[int32]string{ + 0: "STATUS_UNSPECIFIED", + 1: "PROVISIONING", + 2: "RUNNING", + 3: "RECONCILING", + 4: "STOPPING", + 5: "STOPPED", + 6: "DELETING", + 7: "STARTING", +} + +var Cluster_Status_value = map[string]int32{ + "STATUS_UNSPECIFIED": 0, + "PROVISIONING": 1, + "RUNNING": 2, + "RECONCILING": 3, + "STOPPING": 4, + "STOPPED": 5, + "DELETING": 6, + "STARTING": 7, +} + +func (x Cluster_Status) String() string { + return proto.EnumName(Cluster_Status_name, int32(x)) +} + +func (Cluster_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_978615dae5f27f2e, []int{0, 0} +} + +type Cluster_Health int32 + +const ( + Cluster_HEALTH_UNSPECIFIED Cluster_Health = 0 + // Kubernetes cluster is alive and well. + Cluster_HEALTHY Cluster_Health = 1 + // Kubernetes cluster is inoperable. + Cluster_UNHEALTHY Cluster_Health = 2 +) + +var Cluster_Health_name = map[int32]string{ + 0: "HEALTH_UNSPECIFIED", + 1: "HEALTHY", + 2: "UNHEALTHY", +} + +var Cluster_Health_value = map[string]int32{ + "HEALTH_UNSPECIFIED": 0, + "HEALTHY": 1, + "UNHEALTHY": 2, +} + +func (x Cluster_Health) String() string { + return proto.EnumName(Cluster_Health_name, int32(x)) +} + +func (Cluster_Health) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_978615dae5f27f2e, []int{0, 1} +} + +type NetworkPolicy_Provider int32 + +const ( + NetworkPolicy_PROVIDER_UNSPECIFIED NetworkPolicy_Provider = 0 + NetworkPolicy_CALICO NetworkPolicy_Provider = 1 +) + +var NetworkPolicy_Provider_name = map[int32]string{ + 0: "PROVIDER_UNSPECIFIED", + 1: "CALICO", +} + +var NetworkPolicy_Provider_value = map[string]int32{ + "PROVIDER_UNSPECIFIED": 0, + "CALICO": 1, +} + +func (x NetworkPolicy_Provider) String() string { + return proto.EnumName(NetworkPolicy_Provider_name, int32(x)) +} + +func (NetworkPolicy_Provider) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_978615dae5f27f2e, []int{8, 0} +} + +// A Kubernetes cluster. +type Cluster struct { + // ID of the Kubernetes cluster. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // ID of the folder that the Kubernetes cluster belongs to. + FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // Creation timestamp. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Name of the Kubernetes cluster. + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + // Description of the Kubernetes cluster. 0-256 characters long. + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + // Resource labels as `key:value` pairs. Мaximum of 64 per resource. + Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Status of the Kubernetes cluster. + Status Cluster_Status `protobuf:"varint,7,opt,name=status,proto3,enum=yandex.cloud.k8s.v1.Cluster_Status" json:"status,omitempty"` + // Health of the Kubernetes cluster. + Health Cluster_Health `protobuf:"varint,8,opt,name=health,proto3,enum=yandex.cloud.k8s.v1.Cluster_Health" json:"health,omitempty"` + // ID of the network the Kubernetes cluster belongs to. + NetworkId string `protobuf:"bytes,9,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` + // Properties of the master for the Kubernetes cluster. + Master *Master `protobuf:"bytes,10,opt,name=master,proto3" json:"master,omitempty"` + // Allocation policy for IP addresses of services and pods inside the Kubernetes cluster in different availability zones. + IpAllocationPolicy *IPAllocationPolicy `protobuf:"bytes,11,opt,name=ip_allocation_policy,json=ipAllocationPolicy,proto3" json:"ip_allocation_policy,omitempty"` + // Types that are valid to be assigned to InternetGateway: + // *Cluster_GatewayIpv4Address + InternetGateway isCluster_InternetGateway `protobuf_oneof:"internet_gateway"` + // Service account to be used for provisioning Compute Cloud and VPC resources for Kubernetes cluster. + ServiceAccountId string `protobuf:"bytes,13,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + // Service account to be used by the worker nodes of the Kubernetes cluster to access Container Registry or to push node logs and metrics. + NodeServiceAccountId string `protobuf:"bytes,14,opt,name=node_service_account_id,json=nodeServiceAccountId,proto3" json:"node_service_account_id,omitempty"` + // When creating a Kubernetes cluster, you should specify one of three release channels. The release channel contains several Kubernetes versions. + // Channels differ in the set of available versions, the management of auto-updates, and the updates received. + // You can't change the channel once the Kubernetes cluster is created, you can only recreate the Kubernetes cluster and specify a new release channel. + // For more details see [documentation](https://cloud.yandex.com/docs/managed-kubernetes/concepts/release-channels-and-updates). + ReleaseChannel ReleaseChannel `protobuf:"varint,15,opt,name=release_channel,json=releaseChannel,proto3,enum=yandex.cloud.k8s.v1.ReleaseChannel" json:"release_channel,omitempty"` + NetworkPolicy *NetworkPolicy `protobuf:"bytes,16,opt,name=network_policy,json=networkPolicy,proto3" json:"network_policy,omitempty"` + // KMS provider configuration. + KmsProvider *KMSProvider `protobuf:"bytes,17,opt,name=kms_provider,json=kmsProvider,proto3" json:"kms_provider,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Cluster) Reset() { *m = Cluster{} } +func (m *Cluster) String() string { return proto.CompactTextString(m) } +func (*Cluster) ProtoMessage() {} +func (*Cluster) Descriptor() ([]byte, []int) { + return fileDescriptor_978615dae5f27f2e, []int{0} +} + +func (m *Cluster) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Cluster.Unmarshal(m, b) +} +func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Cluster.Marshal(b, m, deterministic) +} +func (m *Cluster) XXX_Merge(src proto.Message) { + xxx_messageInfo_Cluster.Merge(m, src) +} +func (m *Cluster) XXX_Size() int { + return xxx_messageInfo_Cluster.Size(m) +} +func (m *Cluster) XXX_DiscardUnknown() { + xxx_messageInfo_Cluster.DiscardUnknown(m) +} + +var xxx_messageInfo_Cluster proto.InternalMessageInfo + +func (m *Cluster) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Cluster) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *Cluster) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *Cluster) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Cluster) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *Cluster) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *Cluster) GetStatus() Cluster_Status { + if m != nil { + return m.Status + } + return Cluster_STATUS_UNSPECIFIED +} + +func (m *Cluster) GetHealth() Cluster_Health { + if m != nil { + return m.Health + } + return Cluster_HEALTH_UNSPECIFIED +} + +func (m *Cluster) GetNetworkId() string { + if m != nil { + return m.NetworkId + } + return "" +} + +func (m *Cluster) GetMaster() *Master { + if m != nil { + return m.Master + } + return nil +} + +func (m *Cluster) GetIpAllocationPolicy() *IPAllocationPolicy { + if m != nil { + return m.IpAllocationPolicy + } + return nil +} + +type isCluster_InternetGateway interface { + isCluster_InternetGateway() +} + +type Cluster_GatewayIpv4Address struct { + GatewayIpv4Address string `protobuf:"bytes,12,opt,name=gateway_ipv4_address,json=gatewayIpv4Address,proto3,oneof"` +} + +func (*Cluster_GatewayIpv4Address) isCluster_InternetGateway() {} + +func (m *Cluster) GetInternetGateway() isCluster_InternetGateway { + if m != nil { + return m.InternetGateway + } + return nil +} + +func (m *Cluster) GetGatewayIpv4Address() string { + if x, ok := m.GetInternetGateway().(*Cluster_GatewayIpv4Address); ok { + return x.GatewayIpv4Address + } + return "" +} + +func (m *Cluster) GetServiceAccountId() string { + if m != nil { + return m.ServiceAccountId + } + return "" +} + +func (m *Cluster) GetNodeServiceAccountId() string { + if m != nil { + return m.NodeServiceAccountId + } + return "" +} + +func (m *Cluster) GetReleaseChannel() ReleaseChannel { + if m != nil { + return m.ReleaseChannel + } + return ReleaseChannel_RELEASE_CHANNEL_UNSPECIFIED +} + +func (m *Cluster) GetNetworkPolicy() *NetworkPolicy { + if m != nil { + return m.NetworkPolicy + } + return nil +} + +func (m *Cluster) GetKmsProvider() *KMSProvider { + if m != nil { + return m.KmsProvider + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Cluster) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Cluster_GatewayIpv4Address)(nil), + } +} + +type Master struct { + // Types that are valid to be assigned to MasterType: + // *Master_ZonalMaster + // *Master_RegionalMaster + MasterType isMaster_MasterType `protobuf_oneof:"master_type"` + // Version of Kubernetes components that runs on the master. + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + // Endpoints of the master. Endpoints constitute of scheme and port (i.e. `https://ip-address:port`) + //and can be used by the clients to communicate with the Kubernetes API of the Kubernetes cluster. + Endpoints *MasterEndpoints `protobuf:"bytes,3,opt,name=endpoints,proto3" json:"endpoints,omitempty"` + // Master authentication parameters are used to establish trust between the master and a client. + MasterAuth *MasterAuth `protobuf:"bytes,4,opt,name=master_auth,json=masterAuth,proto3" json:"master_auth,omitempty"` + // Detailed information about the Kubernetes version that is running on the master. + VersionInfo *VersionInfo `protobuf:"bytes,5,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"` + // Maintenance policy of the master. + MaintenancePolicy *MasterMaintenancePolicy `protobuf:"bytes,6,opt,name=maintenance_policy,json=maintenancePolicy,proto3" json:"maintenance_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Master) Reset() { *m = Master{} } +func (m *Master) String() string { return proto.CompactTextString(m) } +func (*Master) ProtoMessage() {} +func (*Master) Descriptor() ([]byte, []int) { + return fileDescriptor_978615dae5f27f2e, []int{1} +} + +func (m *Master) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Master.Unmarshal(m, b) +} +func (m *Master) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Master.Marshal(b, m, deterministic) +} +func (m *Master) XXX_Merge(src proto.Message) { + xxx_messageInfo_Master.Merge(m, src) +} +func (m *Master) XXX_Size() int { + return xxx_messageInfo_Master.Size(m) +} +func (m *Master) XXX_DiscardUnknown() { + xxx_messageInfo_Master.DiscardUnknown(m) +} + +var xxx_messageInfo_Master proto.InternalMessageInfo + +type isMaster_MasterType interface { + isMaster_MasterType() +} + +type Master_ZonalMaster struct { + ZonalMaster *ZonalMaster `protobuf:"bytes,1,opt,name=zonal_master,json=zonalMaster,proto3,oneof"` +} + +type Master_RegionalMaster struct { + RegionalMaster *RegionalMaster `protobuf:"bytes,7,opt,name=regional_master,json=regionalMaster,proto3,oneof"` +} + +func (*Master_ZonalMaster) isMaster_MasterType() {} + +func (*Master_RegionalMaster) isMaster_MasterType() {} + +func (m *Master) GetMasterType() isMaster_MasterType { + if m != nil { + return m.MasterType + } + return nil +} + +func (m *Master) GetZonalMaster() *ZonalMaster { + if x, ok := m.GetMasterType().(*Master_ZonalMaster); ok { + return x.ZonalMaster + } + return nil +} + +func (m *Master) GetRegionalMaster() *RegionalMaster { + if x, ok := m.GetMasterType().(*Master_RegionalMaster); ok { + return x.RegionalMaster + } + return nil +} + +func (m *Master) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *Master) GetEndpoints() *MasterEndpoints { + if m != nil { + return m.Endpoints + } + return nil +} + +func (m *Master) GetMasterAuth() *MasterAuth { + if m != nil { + return m.MasterAuth + } + return nil +} + +func (m *Master) GetVersionInfo() *VersionInfo { + if m != nil { + return m.VersionInfo + } + return nil +} + +func (m *Master) GetMaintenancePolicy() *MasterMaintenancePolicy { + if m != nil { + return m.MaintenancePolicy + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Master) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Master_ZonalMaster)(nil), + (*Master_RegionalMaster)(nil), + } +} + +type MasterAuth struct { + // PEM-encoded public certificate that is the root of trust for the Kubernetes cluster. + ClusterCaCertificate string `protobuf:"bytes,1,opt,name=cluster_ca_certificate,json=clusterCaCertificate,proto3" json:"cluster_ca_certificate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MasterAuth) Reset() { *m = MasterAuth{} } +func (m *MasterAuth) String() string { return proto.CompactTextString(m) } +func (*MasterAuth) ProtoMessage() {} +func (*MasterAuth) Descriptor() ([]byte, []int) { + return fileDescriptor_978615dae5f27f2e, []int{2} +} + +func (m *MasterAuth) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MasterAuth.Unmarshal(m, b) +} +func (m *MasterAuth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MasterAuth.Marshal(b, m, deterministic) +} +func (m *MasterAuth) XXX_Merge(src proto.Message) { + xxx_messageInfo_MasterAuth.Merge(m, src) +} +func (m *MasterAuth) XXX_Size() int { + return xxx_messageInfo_MasterAuth.Size(m) +} +func (m *MasterAuth) XXX_DiscardUnknown() { + xxx_messageInfo_MasterAuth.DiscardUnknown(m) +} + +var xxx_messageInfo_MasterAuth proto.InternalMessageInfo + +func (m *MasterAuth) GetClusterCaCertificate() string { + if m != nil { + return m.ClusterCaCertificate + } + return "" +} + +type ZonalMaster struct { + // ID of the availability zone where the master resides. + ZoneId string `protobuf:"bytes,1,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"` + // IPv4 internal network address that is assigned to the master. + InternalV4Address string `protobuf:"bytes,2,opt,name=internal_v4_address,json=internalV4Address,proto3" json:"internal_v4_address,omitempty"` + // IPv4 external network address that is assigned to the master. + ExternalV4Address string `protobuf:"bytes,3,opt,name=external_v4_address,json=externalV4Address,proto3" json:"external_v4_address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ZonalMaster) Reset() { *m = ZonalMaster{} } +func (m *ZonalMaster) String() string { return proto.CompactTextString(m) } +func (*ZonalMaster) ProtoMessage() {} +func (*ZonalMaster) Descriptor() ([]byte, []int) { + return fileDescriptor_978615dae5f27f2e, []int{3} +} + +func (m *ZonalMaster) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ZonalMaster.Unmarshal(m, b) +} +func (m *ZonalMaster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ZonalMaster.Marshal(b, m, deterministic) +} +func (m *ZonalMaster) XXX_Merge(src proto.Message) { + xxx_messageInfo_ZonalMaster.Merge(m, src) +} +func (m *ZonalMaster) XXX_Size() int { + return xxx_messageInfo_ZonalMaster.Size(m) +} +func (m *ZonalMaster) XXX_DiscardUnknown() { + xxx_messageInfo_ZonalMaster.DiscardUnknown(m) +} + +var xxx_messageInfo_ZonalMaster proto.InternalMessageInfo + +func (m *ZonalMaster) GetZoneId() string { + if m != nil { + return m.ZoneId + } + return "" +} + +func (m *ZonalMaster) GetInternalV4Address() string { + if m != nil { + return m.InternalV4Address + } + return "" +} + +func (m *ZonalMaster) GetExternalV4Address() string { + if m != nil { + return m.ExternalV4Address + } + return "" +} + +type RegionalMaster struct { + // ID of the region where the master resides. + RegionId string `protobuf:"bytes,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + // IPv4 internal network address that is assigned to the master. + InternalV4Address string `protobuf:"bytes,2,opt,name=internal_v4_address,json=internalV4Address,proto3" json:"internal_v4_address,omitempty"` + // IPv4 external network address that is assigned to the master. + ExternalV4Address string `protobuf:"bytes,3,opt,name=external_v4_address,json=externalV4Address,proto3" json:"external_v4_address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionalMaster) Reset() { *m = RegionalMaster{} } +func (m *RegionalMaster) String() string { return proto.CompactTextString(m) } +func (*RegionalMaster) ProtoMessage() {} +func (*RegionalMaster) Descriptor() ([]byte, []int) { + return fileDescriptor_978615dae5f27f2e, []int{4} +} + +func (m *RegionalMaster) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RegionalMaster.Unmarshal(m, b) +} +func (m *RegionalMaster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RegionalMaster.Marshal(b, m, deterministic) +} +func (m *RegionalMaster) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionalMaster.Merge(m, src) +} +func (m *RegionalMaster) XXX_Size() int { + return xxx_messageInfo_RegionalMaster.Size(m) +} +func (m *RegionalMaster) XXX_DiscardUnknown() { + xxx_messageInfo_RegionalMaster.DiscardUnknown(m) +} + +var xxx_messageInfo_RegionalMaster proto.InternalMessageInfo + +func (m *RegionalMaster) GetRegionId() string { + if m != nil { + return m.RegionId + } + return "" +} + +func (m *RegionalMaster) GetInternalV4Address() string { + if m != nil { + return m.InternalV4Address + } + return "" +} + +func (m *RegionalMaster) GetExternalV4Address() string { + if m != nil { + return m.ExternalV4Address + } + return "" +} + +type MasterEndpoints struct { + // Internal endpoint that can be used to connect to the master from cloud networks. + InternalV4Endpoint string `protobuf:"bytes,1,opt,name=internal_v4_endpoint,json=internalV4Endpoint,proto3" json:"internal_v4_endpoint,omitempty"` + // External endpoint that can be used to access Kubernetes cluster API from the internet (outside of the cloud). + ExternalV4Endpoint string `protobuf:"bytes,2,opt,name=external_v4_endpoint,json=externalV4Endpoint,proto3" json:"external_v4_endpoint,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MasterEndpoints) Reset() { *m = MasterEndpoints{} } +func (m *MasterEndpoints) String() string { return proto.CompactTextString(m) } +func (*MasterEndpoints) ProtoMessage() {} +func (*MasterEndpoints) Descriptor() ([]byte, []int) { + return fileDescriptor_978615dae5f27f2e, []int{5} +} + +func (m *MasterEndpoints) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MasterEndpoints.Unmarshal(m, b) +} +func (m *MasterEndpoints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MasterEndpoints.Marshal(b, m, deterministic) +} +func (m *MasterEndpoints) XXX_Merge(src proto.Message) { + xxx_messageInfo_MasterEndpoints.Merge(m, src) +} +func (m *MasterEndpoints) XXX_Size() int { + return xxx_messageInfo_MasterEndpoints.Size(m) +} +func (m *MasterEndpoints) XXX_DiscardUnknown() { + xxx_messageInfo_MasterEndpoints.DiscardUnknown(m) +} + +var xxx_messageInfo_MasterEndpoints proto.InternalMessageInfo + +func (m *MasterEndpoints) GetInternalV4Endpoint() string { + if m != nil { + return m.InternalV4Endpoint + } + return "" +} + +func (m *MasterEndpoints) GetExternalV4Endpoint() string { + if m != nil { + return m.ExternalV4Endpoint + } + return "" +} + +type IPAllocationPolicy struct { + // CIDR block. IP range for allocating pod addresses. + // + // It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be + // set up for this CIDR blocks in node subnets. + ClusterIpv4CidrBlock string `protobuf:"bytes,1,opt,name=cluster_ipv4_cidr_block,json=clusterIpv4CidrBlock,proto3" json:"cluster_ipv4_cidr_block,omitempty"` + // Size of the masks that are assigned for each node in the cluster. + // + // If not specified, 24 is used. + NodeIpv4CidrMaskSize int64 `protobuf:"varint,5,opt,name=node_ipv4_cidr_mask_size,json=nodeIpv4CidrMaskSize,proto3" json:"node_ipv4_cidr_mask_size,omitempty"` + // CIDR block. IP range Kubernetes service Kubernetes cluster IP addresses will be allocated from. + // + // It should not overlap with any subnet in the network the Kubernetes cluster located in. + ServiceIpv4CidrBlock string `protobuf:"bytes,2,opt,name=service_ipv4_cidr_block,json=serviceIpv4CidrBlock,proto3" json:"service_ipv4_cidr_block,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IPAllocationPolicy) Reset() { *m = IPAllocationPolicy{} } +func (m *IPAllocationPolicy) String() string { return proto.CompactTextString(m) } +func (*IPAllocationPolicy) ProtoMessage() {} +func (*IPAllocationPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_978615dae5f27f2e, []int{6} +} + +func (m *IPAllocationPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IPAllocationPolicy.Unmarshal(m, b) +} +func (m *IPAllocationPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IPAllocationPolicy.Marshal(b, m, deterministic) +} +func (m *IPAllocationPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_IPAllocationPolicy.Merge(m, src) +} +func (m *IPAllocationPolicy) XXX_Size() int { + return xxx_messageInfo_IPAllocationPolicy.Size(m) +} +func (m *IPAllocationPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_IPAllocationPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_IPAllocationPolicy proto.InternalMessageInfo + +func (m *IPAllocationPolicy) GetClusterIpv4CidrBlock() string { + if m != nil { + return m.ClusterIpv4CidrBlock + } + return "" +} + +func (m *IPAllocationPolicy) GetNodeIpv4CidrMaskSize() int64 { + if m != nil { + return m.NodeIpv4CidrMaskSize + } + return 0 +} + +func (m *IPAllocationPolicy) GetServiceIpv4CidrBlock() string { + if m != nil { + return m.ServiceIpv4CidrBlock + } + return "" +} + +type MasterMaintenancePolicy struct { + // If set to true, automatic updates are installed in the specified period of time with no interaction from the user. + // If set to false, automatic upgrades are disabled. + AutoUpgrade bool `protobuf:"varint,1,opt,name=auto_upgrade,json=autoUpgrade,proto3" json:"auto_upgrade,omitempty"` + // Maintenance window settings. Update will start at the specified time and last no more than the specified duration. + // The time is set in UTC. + MaintenanceWindow *MaintenanceWindow `protobuf:"bytes,2,opt,name=maintenance_window,json=maintenanceWindow,proto3" json:"maintenance_window,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MasterMaintenancePolicy) Reset() { *m = MasterMaintenancePolicy{} } +func (m *MasterMaintenancePolicy) String() string { return proto.CompactTextString(m) } +func (*MasterMaintenancePolicy) ProtoMessage() {} +func (*MasterMaintenancePolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_978615dae5f27f2e, []int{7} +} + +func (m *MasterMaintenancePolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MasterMaintenancePolicy.Unmarshal(m, b) +} +func (m *MasterMaintenancePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MasterMaintenancePolicy.Marshal(b, m, deterministic) +} +func (m *MasterMaintenancePolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_MasterMaintenancePolicy.Merge(m, src) +} +func (m *MasterMaintenancePolicy) XXX_Size() int { + return xxx_messageInfo_MasterMaintenancePolicy.Size(m) +} +func (m *MasterMaintenancePolicy) XXX_DiscardUnknown() { + xxx_messageInfo_MasterMaintenancePolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_MasterMaintenancePolicy proto.InternalMessageInfo + +func (m *MasterMaintenancePolicy) GetAutoUpgrade() bool { + if m != nil { + return m.AutoUpgrade + } + return false +} + +func (m *MasterMaintenancePolicy) GetMaintenanceWindow() *MaintenanceWindow { + if m != nil { + return m.MaintenanceWindow + } + return nil +} + +type NetworkPolicy struct { + Provider NetworkPolicy_Provider `protobuf:"varint,1,opt,name=provider,proto3,enum=yandex.cloud.k8s.v1.NetworkPolicy_Provider" json:"provider,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkPolicy) Reset() { *m = NetworkPolicy{} } +func (m *NetworkPolicy) String() string { return proto.CompactTextString(m) } +func (*NetworkPolicy) ProtoMessage() {} +func (*NetworkPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_978615dae5f27f2e, []int{8} +} + +func (m *NetworkPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NetworkPolicy.Unmarshal(m, b) +} +func (m *NetworkPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NetworkPolicy.Marshal(b, m, deterministic) +} +func (m *NetworkPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkPolicy.Merge(m, src) +} +func (m *NetworkPolicy) XXX_Size() int { + return xxx_messageInfo_NetworkPolicy.Size(m) +} +func (m *NetworkPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkPolicy proto.InternalMessageInfo + +func (m *NetworkPolicy) GetProvider() NetworkPolicy_Provider { + if m != nil { + return m.Provider + } + return NetworkPolicy_PROVIDER_UNSPECIFIED +} + +type KMSProvider struct { + // KMS key ID for secrets encryption. + // To obtain a KMS key ID use a [yandex.cloud.kms.v1.SymmetricKeyService.List] request. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KMSProvider) Reset() { *m = KMSProvider{} } +func (m *KMSProvider) String() string { return proto.CompactTextString(m) } +func (*KMSProvider) ProtoMessage() {} +func (*KMSProvider) Descriptor() ([]byte, []int) { + return fileDescriptor_978615dae5f27f2e, []int{9} +} + +func (m *KMSProvider) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KMSProvider.Unmarshal(m, b) +} +func (m *KMSProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KMSProvider.Marshal(b, m, deterministic) +} +func (m *KMSProvider) XXX_Merge(src proto.Message) { + xxx_messageInfo_KMSProvider.Merge(m, src) +} +func (m *KMSProvider) XXX_Size() int { + return xxx_messageInfo_KMSProvider.Size(m) +} +func (m *KMSProvider) XXX_DiscardUnknown() { + xxx_messageInfo_KMSProvider.DiscardUnknown(m) +} + +var xxx_messageInfo_KMSProvider proto.InternalMessageInfo + +func (m *KMSProvider) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func init() { + proto.RegisterEnum("yandex.cloud.k8s.v1.ReleaseChannel", ReleaseChannel_name, ReleaseChannel_value) + proto.RegisterEnum("yandex.cloud.k8s.v1.Cluster_Status", Cluster_Status_name, Cluster_Status_value) + proto.RegisterEnum("yandex.cloud.k8s.v1.Cluster_Health", Cluster_Health_name, Cluster_Health_value) + proto.RegisterEnum("yandex.cloud.k8s.v1.NetworkPolicy_Provider", NetworkPolicy_Provider_name, NetworkPolicy_Provider_value) + proto.RegisterType((*Cluster)(nil), "yandex.cloud.k8s.v1.Cluster") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.k8s.v1.Cluster.LabelsEntry") + proto.RegisterType((*Master)(nil), "yandex.cloud.k8s.v1.Master") + proto.RegisterType((*MasterAuth)(nil), "yandex.cloud.k8s.v1.MasterAuth") + proto.RegisterType((*ZonalMaster)(nil), "yandex.cloud.k8s.v1.ZonalMaster") + proto.RegisterType((*RegionalMaster)(nil), "yandex.cloud.k8s.v1.RegionalMaster") + proto.RegisterType((*MasterEndpoints)(nil), "yandex.cloud.k8s.v1.MasterEndpoints") + proto.RegisterType((*IPAllocationPolicy)(nil), "yandex.cloud.k8s.v1.IPAllocationPolicy") + proto.RegisterType((*MasterMaintenancePolicy)(nil), "yandex.cloud.k8s.v1.MasterMaintenancePolicy") + proto.RegisterType((*NetworkPolicy)(nil), "yandex.cloud.k8s.v1.NetworkPolicy") + proto.RegisterType((*KMSProvider)(nil), "yandex.cloud.k8s.v1.KMSProvider") +} + +func init() { + proto.RegisterFile("yandex/cloud/k8s/v1/cluster.proto", fileDescriptor_978615dae5f27f2e) +} + +var fileDescriptor_978615dae5f27f2e = []byte{ + // 1352 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcd, 0x6e, 0xdb, 0xd6, + 0x12, 0x0e, 0x2d, 0x5b, 0x3f, 0x43, 0xff, 0x28, 0x27, 0xba, 0x31, 0xe1, 0x20, 0x88, 0xa3,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0x07, 0x90, 0xbb, 0x08, 0x3c, 0x87, 0x84, 0x96, 0xeb, 0x28, 0x2b, + 0x4c, 0x9d, 0xe5, 0x0a, 0xc3, 0x41, 0x2f, 0x01, 0xec, 0x90, 0xe0, 0x98, 0x38, 0x16, 0x8e, 0x95, + 0xd4, 0xae, 0xb4, 0x27, 0x57, 0x76, 0x54, 0x5e, 0x97, 0x9a, 0xd4, 0xa5, 0xb6, 0x93, 0xba, 0xcc, + 0x9c, 0x40, 0x6b, 0x31, 0x42, 0xb0, 0xea, 0xe3, 0x3e, 0x51, 0x56, 0x59, 0x48, 0xf6, 0x8d, 0x76, + 0x41, 0x76, 0x48, 0x64, 0x87, 0xee, 0x80, 0x26, 0xa7, 0xac, 0x31, 0xd3, 0xac, 0x0a, 0xbd, 0x81, + 0xb4, 0x87, 0xcf, 0x89, 0x17, 0x29, 0xe9, 0xdd, 0xd4, 0x9e, 0x5c, 0xd9, 0x53, 0x97, 0xdc, 0xac, + 0x2a, 0x6a, 0x51, 0xeb, 0x0c, 0xaa, 0xfb, 0x71, 0x38, 0x36, 0x85, 0x1f, 0x7a, 0x05, 0xe9, 0x28, + 0xc6, 0xf1, 0x30, 0x52, 0x32, 0xbb, 0xd2, 0xde, 0x66, 0xe5, 0xdf, 0xb7, 0x46, 0x68, 0x31, 0xa8, + 0x29, 0x5c, 0xa8, 0xf3, 0x25, 0xc1, 0x5e, 0x7c, 0xa9, 0x64, 0xff, 0x86, 0xf3, 0x31, 0x83, 0x9a, + 0xc2, 0x05, 0x3d, 0x04, 0xf0, 0x49, 0x7c, 0x15, 0x84, 0x3d, 0x7a, 0x95, 0x39, 0x56, 0x5c, 0x4e, + 0x68, 0x0c, 0x07, 0x3d, 0x87, 0x74, 0x1f, 0x53, 0x3f, 0x05, 0xd8, 0x3d, 0x3e, 0x58, 0x1a, 0xfb, + 0x84, 0x41, 0x4c, 0x01, 0x45, 0xef, 0xa0, 0xe0, 0x0e, 0x2c, 0xec, 0x79, 0x81, 0xcd,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ab, 0x29, 0x70, 0xa6, 0xdc, 0xeb, 0x47, 0x89, 0xb0, 0xf3, 0x12, 0xe4, 0x99, 0x06, + 0x46, 0x79, 0x48, 0xf5, 0xc8, 0x58, 0x4c, 0x26, 0xfd, 0x44, 0x05, 0x58, 0x1b, 0x61, 0x6f, 0x48, + 0xc4, 0x58, 0x72, 0xe1, 0xcb, 0x95, 0x43, 0xa9, 0xf8, 0x83, 0x04, 0x69, 0xde, 0xba, 0xe8, 0x3e, + 0xa0, 0x56, 0x5b, 0x6b, 0x77, 0x5a, 0x56, 0xa7, 0xd1, 0x6a, 0xea, 0x35, 0xe3, 0x6b, 0x43, 0x3f, + 0xca, 0xdf, 0x41, 0x79, 0x58, 0x6f, 0x9a, 0xa7, 0x67, 0x46, 0xcb, 0x38, 0x6d, 0x18, 0x8d, 0xb7, + 0x79, 0x09, 0xc9, 0x90, 0x31, 0x3b, 0x0d, 0x26, 0xac, 0xa0, 0x2d, 0x90, 0x4d, 0xbd, 0x76, 0xda, + 0xa8, 0x19, 0x75, 0xaa, 0x48, 0xa1, 0x75, 0xc8, 0xb6, 0xda, 0xa7, 0xcd, 0x26, 0x95, 0x56, 0x29, + 0x96, 0x49, 0xfa, 0x51, 0x7e, 0x8d, 0x9a, 0x8e, 0xf4, 0xba, 0xde, 0xa6, 0xa6, 0x34, 0x07, 0x6a, + 0x26, 0x93, 0x32, 0xc5, 0xd7, 0x90, 0xe6, 0x63, 0x40, 0x13, 0x39, 0xd6, 0xb5, 0x7a, 0xfb, 0x78, + 0x21, 0x11, 0x19, 0x32, 0x5c, 0xff, 0x2e, 0x2f, 0xa1, 0x0d, 0xc8, 0x75, 0x1a, 0x89, 0xb8, 0x52, + 0x45, 0x90, 0xa7, 0xdb, 0x2e, 0xf4, 0x49, 0x6c, 0x89, 0x26, 0x2b, 0xfe, 0x9e, 0x82, 0x34, 0x9f, + 0x02, 0xa4, 0xc3, 0xfa, 0x75, 0xe0, 0x63, 0xcf, 0x12, 0x83, 0x23, 0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, 0x1d, 0xf4, + 0xcb, 0x1c, 0xf3, 0x94, 0xff, 0x2b, 0x77, 0x83, 0xa7, 0x5d, 0xe2, 0xb3, 0x5f, 0xd9, 0xf2, 0x92, + 0xff, 0xec, 0x57, 0xbd, 0xc3, 0xe8, 0x3c, 0xcd, 0xcc, 0xcf, 0xff, 0x0c, 0x00, 0x00, 0xff, 0xff, + 0x76, 0xd5, 0x67, 0xed, 0x09, 0x0c, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/cluster.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/cluster.pbext.go new file mode 100644 index 000000000..a759b607a --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/cluster.pbext.go @@ -0,0 +1,185 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package k8s + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +type Cluster_InternetGateway = isCluster_InternetGateway + +func (m *Cluster) SetInternetGateway(v Cluster_InternetGateway) { + m.InternetGateway = v +} + +func (m *Cluster) SetId(v string) { + m.Id = v +} + +func (m *Cluster) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Cluster) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Cluster) SetName(v string) { + m.Name = v +} + +func (m *Cluster) SetDescription(v string) { + m.Description = v +} + +func (m *Cluster) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *Cluster) SetStatus(v Cluster_Status) { + m.Status = v +} + +func (m *Cluster) SetHealth(v Cluster_Health) { + m.Health = v +} + +func (m *Cluster) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *Cluster) SetMaster(v *Master) { + m.Master = v +} + +func (m *Cluster) SetIpAllocationPolicy(v *IPAllocationPolicy) { + m.IpAllocationPolicy = v +} + +func (m *Cluster) SetGatewayIpv4Address(v string) { + m.InternetGateway = &Cluster_GatewayIpv4Address{ + GatewayIpv4Address: v, + } +} + +func (m *Cluster) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *Cluster) SetNodeServiceAccountId(v string) { + m.NodeServiceAccountId = v +} + +func (m *Cluster) SetReleaseChannel(v ReleaseChannel) { + m.ReleaseChannel = v +} + +func (m *Cluster) SetNetworkPolicy(v *NetworkPolicy) { + m.NetworkPolicy = v +} + +func (m *Cluster) SetKmsProvider(v *KMSProvider) { + m.KmsProvider = v +} + +type Master_MasterType = isMaster_MasterType + +func (m *Master) SetMasterType(v Master_MasterType) { + m.MasterType = v +} + +func (m *Master) SetZonalMaster(v *ZonalMaster) { + m.MasterType = &Master_ZonalMaster{ + ZonalMaster: v, + } +} + +func (m *Master) SetRegionalMaster(v *RegionalMaster) { + m.MasterType = &Master_RegionalMaster{ + RegionalMaster: v, + } +} + +func (m *Master) SetVersion(v string) { + m.Version = v +} + +func (m *Master) SetEndpoints(v *MasterEndpoints) { + m.Endpoints = v +} + +func (m *Master) SetMasterAuth(v *MasterAuth) { + m.MasterAuth = v +} + +func (m *Master) SetVersionInfo(v *VersionInfo) { + m.VersionInfo = v +} + +func (m *Master) SetMaintenancePolicy(v *MasterMaintenancePolicy) { + m.MaintenancePolicy = v +} + +func (m *MasterAuth) SetClusterCaCertificate(v string) { + m.ClusterCaCertificate = v +} + +func (m *ZonalMaster) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *ZonalMaster) SetInternalV4Address(v string) { + m.InternalV4Address = v +} + +func (m *ZonalMaster) SetExternalV4Address(v string) { + m.ExternalV4Address = v +} + +func (m *RegionalMaster) SetRegionId(v string) { + m.RegionId = v +} + +func (m *RegionalMaster) SetInternalV4Address(v string) { + m.InternalV4Address = v +} + +func (m *RegionalMaster) SetExternalV4Address(v string) { + m.ExternalV4Address = v +} + +func (m *MasterEndpoints) SetInternalV4Endpoint(v string) { + m.InternalV4Endpoint = v +} + +func (m *MasterEndpoints) SetExternalV4Endpoint(v string) { + m.ExternalV4Endpoint = v +} + +func (m *IPAllocationPolicy) SetClusterIpv4CidrBlock(v string) { + m.ClusterIpv4CidrBlock = v +} + +func (m *IPAllocationPolicy) SetNodeIpv4CidrMaskSize(v int64) { + m.NodeIpv4CidrMaskSize = v +} + +func (m *IPAllocationPolicy) SetServiceIpv4CidrBlock(v string) { + m.ServiceIpv4CidrBlock = v +} + +func (m *MasterMaintenancePolicy) SetAutoUpgrade(v bool) { + m.AutoUpgrade = v +} + +func (m *MasterMaintenancePolicy) SetMaintenanceWindow(v *MaintenanceWindow) { + m.MaintenanceWindow = v +} + +func (m *NetworkPolicy) SetProvider(v NetworkPolicy_Provider) { + m.Provider = v +} + +func (m *KMSProvider) SetKeyId(v string) { + m.KeyId = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/cluster_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/cluster_service.pb.go new file mode 100644 index 000000000..4c1505b9a --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/cluster_service.pb.go @@ -0,0 +1,2237 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/k8s/v1/cluster_service.proto + +package k8s + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud/api" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GetClusterRequest struct { + // ID of the Kubernetes cluster to return. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetClusterRequest) Reset() { *m = GetClusterRequest{} } +func (m *GetClusterRequest) String() string { return proto.CompactTextString(m) } +func (*GetClusterRequest) ProtoMessage() {} +func (*GetClusterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{0} +} + +func (m *GetClusterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetClusterRequest.Unmarshal(m, b) +} +func (m *GetClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetClusterRequest.Marshal(b, m, deterministic) +} +func (m *GetClusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetClusterRequest.Merge(m, src) +} +func (m *GetClusterRequest) XXX_Size() int { + return xxx_messageInfo_GetClusterRequest.Size(m) +} +func (m *GetClusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetClusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetClusterRequest proto.InternalMessageInfo + +func (m *GetClusterRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +type ListClustersRequest struct { + // ID of the folder to list Kubernetes cluster in. + // To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request. + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], + // the service returns a [ListClustersResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListClustersResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters resources listed in the response. + // The expression must specify: + // 1. The field name. Currently you can use filtering only on [Cluster.name] field. + // 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values. + // 3. The value. Must be 1-61 characters long and match the regular expression `|[a-z][-a-z0-9]{1,61}[a-z0-9]`. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListClustersRequest) Reset() { *m = ListClustersRequest{} } +func (m *ListClustersRequest) String() string { return proto.CompactTextString(m) } +func (*ListClustersRequest) ProtoMessage() {} +func (*ListClustersRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{1} +} + +func (m *ListClustersRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListClustersRequest.Unmarshal(m, b) +} +func (m *ListClustersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListClustersRequest.Marshal(b, m, deterministic) +} +func (m *ListClustersRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListClustersRequest.Merge(m, src) +} +func (m *ListClustersRequest) XXX_Size() int { + return xxx_messageInfo_ListClustersRequest.Size(m) +} +func (m *ListClustersRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListClustersRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListClustersRequest proto.InternalMessageInfo + +func (m *ListClustersRequest) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *ListClustersRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListClustersRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +func (m *ListClustersRequest) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +type ListClustersResponse struct { + // List of Kubernetes cluster. + Clusters []*Cluster `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"` + // This token allows you to get the next page of results for list requests. If the number of results + // is larger than [ListClustersRequest.page_size], use + // the `next_page_token` as the value + // for the [ListClustersRequest.page_token] query parameter + // in the next list request. Each subsequent list request will have its own + // `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListClustersResponse) Reset() { *m = ListClustersResponse{} } +func (m *ListClustersResponse) String() string { return proto.CompactTextString(m) } +func (*ListClustersResponse) ProtoMessage() {} +func (*ListClustersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{2} +} + +func (m *ListClustersResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListClustersResponse.Unmarshal(m, b) +} +func (m *ListClustersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListClustersResponse.Marshal(b, m, deterministic) +} +func (m *ListClustersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListClustersResponse.Merge(m, src) +} +func (m *ListClustersResponse) XXX_Size() int { + return xxx_messageInfo_ListClustersResponse.Size(m) +} +func (m *ListClustersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListClustersResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListClustersResponse proto.InternalMessageInfo + +func (m *ListClustersResponse) GetClusters() []*Cluster { + if m != nil { + return m.Clusters + } + return nil +} + +func (m *ListClustersResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type DeleteClusterRequest struct { + // ID of the Kubernetes cluster to delete. + // To get Kubernetes cluster ID use a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteClusterRequest) Reset() { *m = DeleteClusterRequest{} } +func (m *DeleteClusterRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteClusterRequest) ProtoMessage() {} +func (*DeleteClusterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{3} +} + +func (m *DeleteClusterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteClusterRequest.Unmarshal(m, b) +} +func (m *DeleteClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteClusterRequest.Marshal(b, m, deterministic) +} +func (m *DeleteClusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteClusterRequest.Merge(m, src) +} +func (m *DeleteClusterRequest) XXX_Size() int { + return xxx_messageInfo_DeleteClusterRequest.Size(m) +} +func (m *DeleteClusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteClusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteClusterRequest proto.InternalMessageInfo + +func (m *DeleteClusterRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +type DeleteClusterMetadata struct { + // ID of the Kubernetes cluster that is being deleted. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteClusterMetadata) Reset() { *m = DeleteClusterMetadata{} } +func (m *DeleteClusterMetadata) String() string { return proto.CompactTextString(m) } +func (*DeleteClusterMetadata) ProtoMessage() {} +func (*DeleteClusterMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{4} +} + +func (m *DeleteClusterMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteClusterMetadata.Unmarshal(m, b) +} +func (m *DeleteClusterMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteClusterMetadata.Marshal(b, m, deterministic) +} +func (m *DeleteClusterMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteClusterMetadata.Merge(m, src) +} +func (m *DeleteClusterMetadata) XXX_Size() int { + return xxx_messageInfo_DeleteClusterMetadata.Size(m) +} +func (m *DeleteClusterMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteClusterMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteClusterMetadata proto.InternalMessageInfo + +func (m *DeleteClusterMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +type StopClusterRequest struct { + // ID of the Kubernetes cluster to stop. + // To get Kubernetes cluster ID use a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // ID of the service account which has permission to stop the Kubernetes cluster. + ServiceAccountId string `protobuf:"bytes,2,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StopClusterRequest) Reset() { *m = StopClusterRequest{} } +func (m *StopClusterRequest) String() string { return proto.CompactTextString(m) } +func (*StopClusterRequest) ProtoMessage() {} +func (*StopClusterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{5} +} + +func (m *StopClusterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopClusterRequest.Unmarshal(m, b) +} +func (m *StopClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopClusterRequest.Marshal(b, m, deterministic) +} +func (m *StopClusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopClusterRequest.Merge(m, src) +} +func (m *StopClusterRequest) XXX_Size() int { + return xxx_messageInfo_StopClusterRequest.Size(m) +} +func (m *StopClusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StopClusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StopClusterRequest proto.InternalMessageInfo + +func (m *StopClusterRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *StopClusterRequest) GetServiceAccountId() string { + if m != nil { + return m.ServiceAccountId + } + return "" +} + +type StopClusterMetadata struct { + // ID of the Kubernetes cluster that is being stopped. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StopClusterMetadata) Reset() { *m = StopClusterMetadata{} } +func (m *StopClusterMetadata) String() string { return proto.CompactTextString(m) } +func (*StopClusterMetadata) ProtoMessage() {} +func (*StopClusterMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{6} +} + +func (m *StopClusterMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopClusterMetadata.Unmarshal(m, b) +} +func (m *StopClusterMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopClusterMetadata.Marshal(b, m, deterministic) +} +func (m *StopClusterMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopClusterMetadata.Merge(m, src) +} +func (m *StopClusterMetadata) XXX_Size() int { + return xxx_messageInfo_StopClusterMetadata.Size(m) +} +func (m *StopClusterMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_StopClusterMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_StopClusterMetadata proto.InternalMessageInfo + +func (m *StopClusterMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +type StartClusterRequest struct { + // ID of the Kubernetes cluster to start. + // To get Kubernetes cluster ID use a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StartClusterRequest) Reset() { *m = StartClusterRequest{} } +func (m *StartClusterRequest) String() string { return proto.CompactTextString(m) } +func (*StartClusterRequest) ProtoMessage() {} +func (*StartClusterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{7} +} + +func (m *StartClusterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StartClusterRequest.Unmarshal(m, b) +} +func (m *StartClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StartClusterRequest.Marshal(b, m, deterministic) +} +func (m *StartClusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartClusterRequest.Merge(m, src) +} +func (m *StartClusterRequest) XXX_Size() int { + return xxx_messageInfo_StartClusterRequest.Size(m) +} +func (m *StartClusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StartClusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StartClusterRequest proto.InternalMessageInfo + +func (m *StartClusterRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +type StartClusterMetadata struct { + // ID of the Kubernetes cluster that is being started. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StartClusterMetadata) Reset() { *m = StartClusterMetadata{} } +func (m *StartClusterMetadata) String() string { return proto.CompactTextString(m) } +func (*StartClusterMetadata) ProtoMessage() {} +func (*StartClusterMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{8} +} + +func (m *StartClusterMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StartClusterMetadata.Unmarshal(m, b) +} +func (m *StartClusterMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StartClusterMetadata.Marshal(b, m, deterministic) +} +func (m *StartClusterMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartClusterMetadata.Merge(m, src) +} +func (m *StartClusterMetadata) XXX_Size() int { + return xxx_messageInfo_StartClusterMetadata.Size(m) +} +func (m *StartClusterMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_StartClusterMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_StartClusterMetadata proto.InternalMessageInfo + +func (m *StartClusterMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +type UpdateClusterRequest struct { + // ID of the Kubernetes cluster to update. + // To get the Kubernetes cluster ID use a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // Name of the Kubernetes cluster. + // The name must be unique within the folder. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // Description of the Kubernetes cluster. + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + // Resource labels as `key:value` pairs. + // + // Existing set of `labels` is completely replaced by the provided set. + Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,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 InternetGateway: + // *UpdateClusterRequest_GatewayIpv4Address + InternetGateway isUpdateClusterRequest_InternetGateway `protobuf_oneof:"internet_gateway"` + // Specification of the master update. + MasterSpec *MasterUpdateSpec `protobuf:"bytes,7,opt,name=master_spec,json=masterSpec,proto3" json:"master_spec,omitempty"` + // Service account to be used for provisioning Compute Cloud and VPC resources for Kubernetes cluster. + // Selected service account should have `edit` role on the folder where the Kubernetes cluster will be + // located and on the folder where selected network resides. + ServiceAccountId string `protobuf:"bytes,9,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + // Service account to be used by the worker nodes of the Kubernetes cluster to access Container Registry + // or to push node logs and metrics. + NodeServiceAccountId string `protobuf:"bytes,8,opt,name=node_service_account_id,json=nodeServiceAccountId,proto3" json:"node_service_account_id,omitempty"` + NetworkPolicy *NetworkPolicy `protobuf:"bytes,10,opt,name=network_policy,json=networkPolicy,proto3" json:"network_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateClusterRequest) Reset() { *m = UpdateClusterRequest{} } +func (m *UpdateClusterRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateClusterRequest) ProtoMessage() {} +func (*UpdateClusterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{9} +} + +func (m *UpdateClusterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateClusterRequest.Unmarshal(m, b) +} +func (m *UpdateClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateClusterRequest.Marshal(b, m, deterministic) +} +func (m *UpdateClusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateClusterRequest.Merge(m, src) +} +func (m *UpdateClusterRequest) XXX_Size() int { + return xxx_messageInfo_UpdateClusterRequest.Size(m) +} +func (m *UpdateClusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateClusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateClusterRequest proto.InternalMessageInfo + +func (m *UpdateClusterRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *UpdateClusterRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdateClusterRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *UpdateClusterRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *UpdateClusterRequest) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +type isUpdateClusterRequest_InternetGateway interface { + isUpdateClusterRequest_InternetGateway() +} + +type UpdateClusterRequest_GatewayIpv4Address struct { + GatewayIpv4Address string `protobuf:"bytes,6,opt,name=gateway_ipv4_address,json=gatewayIpv4Address,proto3,oneof"` +} + +func (*UpdateClusterRequest_GatewayIpv4Address) isUpdateClusterRequest_InternetGateway() {} + +func (m *UpdateClusterRequest) GetInternetGateway() isUpdateClusterRequest_InternetGateway { + if m != nil { + return m.InternetGateway + } + return nil +} + +func (m *UpdateClusterRequest) GetGatewayIpv4Address() string { + if x, ok := m.GetInternetGateway().(*UpdateClusterRequest_GatewayIpv4Address); ok { + return x.GatewayIpv4Address + } + return "" +} + +func (m *UpdateClusterRequest) GetMasterSpec() *MasterUpdateSpec { + if m != nil { + return m.MasterSpec + } + return nil +} + +func (m *UpdateClusterRequest) GetServiceAccountId() string { + if m != nil { + return m.ServiceAccountId + } + return "" +} + +func (m *UpdateClusterRequest) GetNodeServiceAccountId() string { + if m != nil { + return m.NodeServiceAccountId + } + return "" +} + +func (m *UpdateClusterRequest) GetNetworkPolicy() *NetworkPolicy { + if m != nil { + return m.NetworkPolicy + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*UpdateClusterRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*UpdateClusterRequest_GatewayIpv4Address)(nil), + } +} + +type MasterUpdateSpec struct { + // Specification of the master update. + Version *UpdateVersionSpec `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + // Maintenance policy of the master. + MaintenancePolicy *MasterMaintenancePolicy `protobuf:"bytes,2,opt,name=maintenance_policy,json=maintenancePolicy,proto3" json:"maintenance_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MasterUpdateSpec) Reset() { *m = MasterUpdateSpec{} } +func (m *MasterUpdateSpec) String() string { return proto.CompactTextString(m) } +func (*MasterUpdateSpec) ProtoMessage() {} +func (*MasterUpdateSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{10} +} + +func (m *MasterUpdateSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MasterUpdateSpec.Unmarshal(m, b) +} +func (m *MasterUpdateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MasterUpdateSpec.Marshal(b, m, deterministic) +} +func (m *MasterUpdateSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_MasterUpdateSpec.Merge(m, src) +} +func (m *MasterUpdateSpec) XXX_Size() int { + return xxx_messageInfo_MasterUpdateSpec.Size(m) +} +func (m *MasterUpdateSpec) XXX_DiscardUnknown() { + xxx_messageInfo_MasterUpdateSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_MasterUpdateSpec proto.InternalMessageInfo + +func (m *MasterUpdateSpec) GetVersion() *UpdateVersionSpec { + if m != nil { + return m.Version + } + return nil +} + +func (m *MasterUpdateSpec) GetMaintenancePolicy() *MasterMaintenancePolicy { + if m != nil { + return m.MaintenancePolicy + } + return nil +} + +type UpdateClusterMetadata struct { + // ID of the Kubernetes cluster that is being updated. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateClusterMetadata) Reset() { *m = UpdateClusterMetadata{} } +func (m *UpdateClusterMetadata) String() string { return proto.CompactTextString(m) } +func (*UpdateClusterMetadata) ProtoMessage() {} +func (*UpdateClusterMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{11} +} + +func (m *UpdateClusterMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateClusterMetadata.Unmarshal(m, b) +} +func (m *UpdateClusterMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateClusterMetadata.Marshal(b, m, deterministic) +} +func (m *UpdateClusterMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateClusterMetadata.Merge(m, src) +} +func (m *UpdateClusterMetadata) XXX_Size() int { + return xxx_messageInfo_UpdateClusterMetadata.Size(m) +} +func (m *UpdateClusterMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateClusterMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateClusterMetadata proto.InternalMessageInfo + +func (m *UpdateClusterMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +type CreateClusterRequest struct { + // ID of the folder to create a Kubernetes cluster in. + // To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request. + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // Name of the Kubernetes cluster. + // The name must be unique within the folder. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Description of the Kubernetes cluster. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // Resource labels as `key:value` pairs. + Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // ID of the network. + NetworkId string `protobuf:"bytes,5,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` + // IP allocation policy of the Kubernetes cluster. + MasterSpec *MasterSpec `protobuf:"bytes,6,opt,name=master_spec,json=masterSpec,proto3" json:"master_spec,omitempty"` + // IP allocation policy of the Kubernetes cluster. + IpAllocationPolicy *IPAllocationPolicy `protobuf:"bytes,7,opt,name=ip_allocation_policy,json=ipAllocationPolicy,proto3" json:"ip_allocation_policy,omitempty"` + // Types that are valid to be assigned to InternetGateway: + // *CreateClusterRequest_GatewayIpv4Address + InternetGateway isCreateClusterRequest_InternetGateway `protobuf_oneof:"internet_gateway"` + // Service account to be used for provisioning Compute Cloud and VPC resources for Kubernetes cluster. + // Selected service account should have `edit` role on the folder where the Kubernetes cluster will be + // located and on the folder where selected network resides. + ServiceAccountId string `protobuf:"bytes,9,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + // Service account to be used by the worker nodes of the Kubernetes cluster to access Container Registry or to push node logs and metrics. + NodeServiceAccountId string `protobuf:"bytes,10,opt,name=node_service_account_id,json=nodeServiceAccountId,proto3" json:"node_service_account_id,omitempty"` + // Release channel for the master. + ReleaseChannel ReleaseChannel `protobuf:"varint,11,opt,name=release_channel,json=releaseChannel,proto3,enum=yandex.cloud.k8s.v1.ReleaseChannel" json:"release_channel,omitempty"` + NetworkPolicy *NetworkPolicy `protobuf:"bytes,12,opt,name=network_policy,json=networkPolicy,proto3" json:"network_policy,omitempty"` + // KMS provider configuration. + KmsProvider *KMSProvider `protobuf:"bytes,13,opt,name=kms_provider,json=kmsProvider,proto3" json:"kms_provider,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateClusterRequest) Reset() { *m = CreateClusterRequest{} } +func (m *CreateClusterRequest) String() string { return proto.CompactTextString(m) } +func (*CreateClusterRequest) ProtoMessage() {} +func (*CreateClusterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{12} +} + +func (m *CreateClusterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateClusterRequest.Unmarshal(m, b) +} +func (m *CreateClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateClusterRequest.Marshal(b, m, deterministic) +} +func (m *CreateClusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateClusterRequest.Merge(m, src) +} +func (m *CreateClusterRequest) XXX_Size() int { + return xxx_messageInfo_CreateClusterRequest.Size(m) +} +func (m *CreateClusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateClusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateClusterRequest proto.InternalMessageInfo + +func (m *CreateClusterRequest) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *CreateClusterRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *CreateClusterRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *CreateClusterRequest) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *CreateClusterRequest) GetNetworkId() string { + if m != nil { + return m.NetworkId + } + return "" +} + +func (m *CreateClusterRequest) GetMasterSpec() *MasterSpec { + if m != nil { + return m.MasterSpec + } + return nil +} + +func (m *CreateClusterRequest) GetIpAllocationPolicy() *IPAllocationPolicy { + if m != nil { + return m.IpAllocationPolicy + } + return nil +} + +type isCreateClusterRequest_InternetGateway interface { + isCreateClusterRequest_InternetGateway() +} + +type CreateClusterRequest_GatewayIpv4Address struct { + GatewayIpv4Address string `protobuf:"bytes,8,opt,name=gateway_ipv4_address,json=gatewayIpv4Address,proto3,oneof"` +} + +func (*CreateClusterRequest_GatewayIpv4Address) isCreateClusterRequest_InternetGateway() {} + +func (m *CreateClusterRequest) GetInternetGateway() isCreateClusterRequest_InternetGateway { + if m != nil { + return m.InternetGateway + } + return nil +} + +func (m *CreateClusterRequest) GetGatewayIpv4Address() string { + if x, ok := m.GetInternetGateway().(*CreateClusterRequest_GatewayIpv4Address); ok { + return x.GatewayIpv4Address + } + return "" +} + +func (m *CreateClusterRequest) GetServiceAccountId() string { + if m != nil { + return m.ServiceAccountId + } + return "" +} + +func (m *CreateClusterRequest) GetNodeServiceAccountId() string { + if m != nil { + return m.NodeServiceAccountId + } + return "" +} + +func (m *CreateClusterRequest) GetReleaseChannel() ReleaseChannel { + if m != nil { + return m.ReleaseChannel + } + return ReleaseChannel_RELEASE_CHANNEL_UNSPECIFIED +} + +func (m *CreateClusterRequest) GetNetworkPolicy() *NetworkPolicy { + if m != nil { + return m.NetworkPolicy + } + return nil +} + +func (m *CreateClusterRequest) GetKmsProvider() *KMSProvider { + if m != nil { + return m.KmsProvider + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CreateClusterRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CreateClusterRequest_GatewayIpv4Address)(nil), + } +} + +type CreateClusterMetadata struct { + // ID of the Kubernetes cluster that is being created. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateClusterMetadata) Reset() { *m = CreateClusterMetadata{} } +func (m *CreateClusterMetadata) String() string { return proto.CompactTextString(m) } +func (*CreateClusterMetadata) ProtoMessage() {} +func (*CreateClusterMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{13} +} + +func (m *CreateClusterMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateClusterMetadata.Unmarshal(m, b) +} +func (m *CreateClusterMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateClusterMetadata.Marshal(b, m, deterministic) +} +func (m *CreateClusterMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateClusterMetadata.Merge(m, src) +} +func (m *CreateClusterMetadata) XXX_Size() int { + return xxx_messageInfo_CreateClusterMetadata.Size(m) +} +func (m *CreateClusterMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CreateClusterMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateClusterMetadata proto.InternalMessageInfo + +func (m *CreateClusterMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +type AutoUpgradeMasterMetadata struct { + // ID of the Kubernetes cluster that is being auto upgraded. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AutoUpgradeMasterMetadata) Reset() { *m = AutoUpgradeMasterMetadata{} } +func (m *AutoUpgradeMasterMetadata) String() string { return proto.CompactTextString(m) } +func (*AutoUpgradeMasterMetadata) ProtoMessage() {} +func (*AutoUpgradeMasterMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{14} +} + +func (m *AutoUpgradeMasterMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AutoUpgradeMasterMetadata.Unmarshal(m, b) +} +func (m *AutoUpgradeMasterMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AutoUpgradeMasterMetadata.Marshal(b, m, deterministic) +} +func (m *AutoUpgradeMasterMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_AutoUpgradeMasterMetadata.Merge(m, src) +} +func (m *AutoUpgradeMasterMetadata) XXX_Size() int { + return xxx_messageInfo_AutoUpgradeMasterMetadata.Size(m) +} +func (m *AutoUpgradeMasterMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_AutoUpgradeMasterMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_AutoUpgradeMasterMetadata proto.InternalMessageInfo + +func (m *AutoUpgradeMasterMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +type ListClusterOperationsRequest struct { + // ID of the Kubernetes cluster to list operations for. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // The maximum number of results per page that should be returned. If the number of available + // results is larger than [page_size], the service returns a [ListClusterOperationsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListClusterOperationsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters resources listed in the response. + // Currently you can use filtering only on [Cluster.name] field. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListClusterOperationsRequest) Reset() { *m = ListClusterOperationsRequest{} } +func (m *ListClusterOperationsRequest) String() string { return proto.CompactTextString(m) } +func (*ListClusterOperationsRequest) ProtoMessage() {} +func (*ListClusterOperationsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{15} +} + +func (m *ListClusterOperationsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListClusterOperationsRequest.Unmarshal(m, b) +} +func (m *ListClusterOperationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListClusterOperationsRequest.Marshal(b, m, deterministic) +} +func (m *ListClusterOperationsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListClusterOperationsRequest.Merge(m, src) +} +func (m *ListClusterOperationsRequest) XXX_Size() int { + return xxx_messageInfo_ListClusterOperationsRequest.Size(m) +} +func (m *ListClusterOperationsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListClusterOperationsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListClusterOperationsRequest proto.InternalMessageInfo + +func (m *ListClusterOperationsRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *ListClusterOperationsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListClusterOperationsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +func (m *ListClusterOperationsRequest) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +type ListClusterOperationsResponse struct { + // List of operations for the specified Kubernetes cluster. + Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` + // This token allows you to get the next page of results for list requests. If the number of results + // is larger than [ListClusterOperationsRequest.page_size], use the `next_page_token` as the value + // for the [ListClusterOperationsRequest.page_token] query parameter in the next list request. + // Each subsequent list request will have its own `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListClusterOperationsResponse) Reset() { *m = ListClusterOperationsResponse{} } +func (m *ListClusterOperationsResponse) String() string { return proto.CompactTextString(m) } +func (*ListClusterOperationsResponse) ProtoMessage() {} +func (*ListClusterOperationsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{16} +} + +func (m *ListClusterOperationsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListClusterOperationsResponse.Unmarshal(m, b) +} +func (m *ListClusterOperationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListClusterOperationsResponse.Marshal(b, m, deterministic) +} +func (m *ListClusterOperationsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListClusterOperationsResponse.Merge(m, src) +} +func (m *ListClusterOperationsResponse) XXX_Size() int { + return xxx_messageInfo_ListClusterOperationsResponse.Size(m) +} +func (m *ListClusterOperationsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListClusterOperationsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListClusterOperationsResponse proto.InternalMessageInfo + +func (m *ListClusterOperationsResponse) GetOperations() []*operation.Operation { + if m != nil { + return m.Operations + } + return nil +} + +func (m *ListClusterOperationsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type ListClusterNodeGroupsRequest struct { + // ID of the Kubernetes cluster to list node groups in. + // To get the Kubernetes cluster ID use a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], + // the service returns a [ListClusterNodeGroupsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListClusterNodeGroupsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters resources listed in the response. + // Currently you can use filtering only on [Cluster.name] field. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListClusterNodeGroupsRequest) Reset() { *m = ListClusterNodeGroupsRequest{} } +func (m *ListClusterNodeGroupsRequest) String() string { return proto.CompactTextString(m) } +func (*ListClusterNodeGroupsRequest) ProtoMessage() {} +func (*ListClusterNodeGroupsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{17} +} + +func (m *ListClusterNodeGroupsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListClusterNodeGroupsRequest.Unmarshal(m, b) +} +func (m *ListClusterNodeGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListClusterNodeGroupsRequest.Marshal(b, m, deterministic) +} +func (m *ListClusterNodeGroupsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListClusterNodeGroupsRequest.Merge(m, src) +} +func (m *ListClusterNodeGroupsRequest) XXX_Size() int { + return xxx_messageInfo_ListClusterNodeGroupsRequest.Size(m) +} +func (m *ListClusterNodeGroupsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListClusterNodeGroupsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListClusterNodeGroupsRequest proto.InternalMessageInfo + +func (m *ListClusterNodeGroupsRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *ListClusterNodeGroupsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListClusterNodeGroupsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +func (m *ListClusterNodeGroupsRequest) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +type ListClusterNodeGroupsResponse struct { + // List of node groups for the specified Kubernetes cluster. + NodeGroups []*NodeGroup `protobuf:"bytes,1,rep,name=node_groups,json=nodeGroups,proto3" json:"node_groups,omitempty"` + // This token allows you to get the next page of results for list requests. If the number of results + // is larger than [ListClusterNodeGroupsRequest.page_size], use + // the `next_page_token` as the value + // for the [ListClusterNodeGroupsRequest.page_token] query parameter + // in the next list request. Each subsequent list request will have its own + // `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListClusterNodeGroupsResponse) Reset() { *m = ListClusterNodeGroupsResponse{} } +func (m *ListClusterNodeGroupsResponse) String() string { return proto.CompactTextString(m) } +func (*ListClusterNodeGroupsResponse) ProtoMessage() {} +func (*ListClusterNodeGroupsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{18} +} + +func (m *ListClusterNodeGroupsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListClusterNodeGroupsResponse.Unmarshal(m, b) +} +func (m *ListClusterNodeGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListClusterNodeGroupsResponse.Marshal(b, m, deterministic) +} +func (m *ListClusterNodeGroupsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListClusterNodeGroupsResponse.Merge(m, src) +} +func (m *ListClusterNodeGroupsResponse) XXX_Size() int { + return xxx_messageInfo_ListClusterNodeGroupsResponse.Size(m) +} +func (m *ListClusterNodeGroupsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListClusterNodeGroupsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListClusterNodeGroupsResponse proto.InternalMessageInfo + +func (m *ListClusterNodeGroupsResponse) GetNodeGroups() []*NodeGroup { + if m != nil { + return m.NodeGroups + } + return nil +} + +func (m *ListClusterNodeGroupsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type ListClusterNodesRequest struct { + // ID of the Kubernetes cluster to list nodes in. + // To get the Kubernetes cluster ID use a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], + // the service returns a [ListClusterNodesResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListClusterNodeGroupsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListClusterNodesRequest) Reset() { *m = ListClusterNodesRequest{} } +func (m *ListClusterNodesRequest) String() string { return proto.CompactTextString(m) } +func (*ListClusterNodesRequest) ProtoMessage() {} +func (*ListClusterNodesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{19} +} + +func (m *ListClusterNodesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListClusterNodesRequest.Unmarshal(m, b) +} +func (m *ListClusterNodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListClusterNodesRequest.Marshal(b, m, deterministic) +} +func (m *ListClusterNodesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListClusterNodesRequest.Merge(m, src) +} +func (m *ListClusterNodesRequest) XXX_Size() int { + return xxx_messageInfo_ListClusterNodesRequest.Size(m) +} +func (m *ListClusterNodesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListClusterNodesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListClusterNodesRequest proto.InternalMessageInfo + +func (m *ListClusterNodesRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *ListClusterNodesRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListClusterNodesRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListClusterNodesResponse struct { + // List of nodes for the specified Kubernetes cluster. + Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` + // This token allows you to get the next page of results for list requests. If the number of results + // is larger than [ListClusterNodesRequest.page_size], use + // the `next_page_token` as the value + // for the [ListClusterNodesRequest.page_token] query parameter + // in the next list request. Each subsequent list request will have its own + // `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListClusterNodesResponse) Reset() { *m = ListClusterNodesResponse{} } +func (m *ListClusterNodesResponse) String() string { return proto.CompactTextString(m) } +func (*ListClusterNodesResponse) ProtoMessage() {} +func (*ListClusterNodesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{20} +} + +func (m *ListClusterNodesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListClusterNodesResponse.Unmarshal(m, b) +} +func (m *ListClusterNodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListClusterNodesResponse.Marshal(b, m, deterministic) +} +func (m *ListClusterNodesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListClusterNodesResponse.Merge(m, src) +} +func (m *ListClusterNodesResponse) XXX_Size() int { + return xxx_messageInfo_ListClusterNodesResponse.Size(m) +} +func (m *ListClusterNodesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListClusterNodesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListClusterNodesResponse proto.InternalMessageInfo + +func (m *ListClusterNodesResponse) GetNodes() []*Node { + if m != nil { + return m.Nodes + } + return nil +} + +func (m *ListClusterNodesResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type MasterSpec struct { + // Types that are valid to be assigned to MasterType: + // *MasterSpec_ZonalMasterSpec + // *MasterSpec_RegionalMasterSpec + MasterType isMasterSpec_MasterType `protobuf_oneof:"master_type"` + // Version of Kubernetes components that runs on the master. + Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + // Maintenance policy of the master. + MaintenancePolicy *MasterMaintenancePolicy `protobuf:"bytes,4,opt,name=maintenance_policy,json=maintenancePolicy,proto3" json:"maintenance_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MasterSpec) Reset() { *m = MasterSpec{} } +func (m *MasterSpec) String() string { return proto.CompactTextString(m) } +func (*MasterSpec) ProtoMessage() {} +func (*MasterSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{21} +} + +func (m *MasterSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MasterSpec.Unmarshal(m, b) +} +func (m *MasterSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MasterSpec.Marshal(b, m, deterministic) +} +func (m *MasterSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_MasterSpec.Merge(m, src) +} +func (m *MasterSpec) XXX_Size() int { + return xxx_messageInfo_MasterSpec.Size(m) +} +func (m *MasterSpec) XXX_DiscardUnknown() { + xxx_messageInfo_MasterSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_MasterSpec proto.InternalMessageInfo + +type isMasterSpec_MasterType interface { + isMasterSpec_MasterType() +} + +type MasterSpec_ZonalMasterSpec struct { + ZonalMasterSpec *ZonalMasterSpec `protobuf:"bytes,1,opt,name=zonal_master_spec,json=zonalMasterSpec,proto3,oneof"` +} + +type MasterSpec_RegionalMasterSpec struct { + RegionalMasterSpec *RegionalMasterSpec `protobuf:"bytes,2,opt,name=regional_master_spec,json=regionalMasterSpec,proto3,oneof"` +} + +func (*MasterSpec_ZonalMasterSpec) isMasterSpec_MasterType() {} + +func (*MasterSpec_RegionalMasterSpec) isMasterSpec_MasterType() {} + +func (m *MasterSpec) GetMasterType() isMasterSpec_MasterType { + if m != nil { + return m.MasterType + } + return nil +} + +func (m *MasterSpec) GetZonalMasterSpec() *ZonalMasterSpec { + if x, ok := m.GetMasterType().(*MasterSpec_ZonalMasterSpec); ok { + return x.ZonalMasterSpec + } + return nil +} + +func (m *MasterSpec) GetRegionalMasterSpec() *RegionalMasterSpec { + if x, ok := m.GetMasterType().(*MasterSpec_RegionalMasterSpec); ok { + return x.RegionalMasterSpec + } + return nil +} + +func (m *MasterSpec) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *MasterSpec) GetMaintenancePolicy() *MasterMaintenancePolicy { + if m != nil { + return m.MaintenancePolicy + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*MasterSpec) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*MasterSpec_ZonalMasterSpec)(nil), + (*MasterSpec_RegionalMasterSpec)(nil), + } +} + +type ZonalMasterSpec struct { + // ID of the availability zone. + ZoneId string `protobuf:"bytes,1,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"` + // Specification of parameters for internal IPv4 networking. + InternalV4AddressSpec *InternalAddressSpec `protobuf:"bytes,2,opt,name=internal_v4_address_spec,json=internalV4AddressSpec,proto3" json:"internal_v4_address_spec,omitempty"` + // Specification of parameters for external IPv4 networking. + ExternalV4AddressSpec *ExternalAddressSpec `protobuf:"bytes,3,opt,name=external_v4_address_spec,json=externalV4AddressSpec,proto3" json:"external_v4_address_spec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ZonalMasterSpec) Reset() { *m = ZonalMasterSpec{} } +func (m *ZonalMasterSpec) String() string { return proto.CompactTextString(m) } +func (*ZonalMasterSpec) ProtoMessage() {} +func (*ZonalMasterSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{22} +} + +func (m *ZonalMasterSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ZonalMasterSpec.Unmarshal(m, b) +} +func (m *ZonalMasterSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ZonalMasterSpec.Marshal(b, m, deterministic) +} +func (m *ZonalMasterSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_ZonalMasterSpec.Merge(m, src) +} +func (m *ZonalMasterSpec) XXX_Size() int { + return xxx_messageInfo_ZonalMasterSpec.Size(m) +} +func (m *ZonalMasterSpec) XXX_DiscardUnknown() { + xxx_messageInfo_ZonalMasterSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_ZonalMasterSpec proto.InternalMessageInfo + +func (m *ZonalMasterSpec) GetZoneId() string { + if m != nil { + return m.ZoneId + } + return "" +} + +func (m *ZonalMasterSpec) GetInternalV4AddressSpec() *InternalAddressSpec { + if m != nil { + return m.InternalV4AddressSpec + } + return nil +} + +func (m *ZonalMasterSpec) GetExternalV4AddressSpec() *ExternalAddressSpec { + if m != nil { + return m.ExternalV4AddressSpec + } + return nil +} + +type RegionalMasterSpec struct { + // ID of the availability zone where the master resides. + RegionId string `protobuf:"bytes,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + // List of locations where the master will be allocated. + Locations []*MasterLocation `protobuf:"bytes,2,rep,name=locations,proto3" json:"locations,omitempty"` + // Specify to allocate a static public IP for the master. + ExternalV4AddressSpec *ExternalAddressSpec `protobuf:"bytes,3,opt,name=external_v4_address_spec,json=externalV4AddressSpec,proto3" json:"external_v4_address_spec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionalMasterSpec) Reset() { *m = RegionalMasterSpec{} } +func (m *RegionalMasterSpec) String() string { return proto.CompactTextString(m) } +func (*RegionalMasterSpec) ProtoMessage() {} +func (*RegionalMasterSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{23} +} + +func (m *RegionalMasterSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RegionalMasterSpec.Unmarshal(m, b) +} +func (m *RegionalMasterSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RegionalMasterSpec.Marshal(b, m, deterministic) +} +func (m *RegionalMasterSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionalMasterSpec.Merge(m, src) +} +func (m *RegionalMasterSpec) XXX_Size() int { + return xxx_messageInfo_RegionalMasterSpec.Size(m) +} +func (m *RegionalMasterSpec) XXX_DiscardUnknown() { + xxx_messageInfo_RegionalMasterSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_RegionalMasterSpec proto.InternalMessageInfo + +func (m *RegionalMasterSpec) GetRegionId() string { + if m != nil { + return m.RegionId + } + return "" +} + +func (m *RegionalMasterSpec) GetLocations() []*MasterLocation { + if m != nil { + return m.Locations + } + return nil +} + +func (m *RegionalMasterSpec) GetExternalV4AddressSpec() *ExternalAddressSpec { + if m != nil { + return m.ExternalV4AddressSpec + } + return nil +} + +type InternalAddressSpec struct { + // ID of the subnet. If no ID is specified, and there only one subnet in specified zone, an address in this subnet will be allocated. + SubnetId string `protobuf:"bytes,2,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InternalAddressSpec) Reset() { *m = InternalAddressSpec{} } +func (m *InternalAddressSpec) String() string { return proto.CompactTextString(m) } +func (*InternalAddressSpec) ProtoMessage() {} +func (*InternalAddressSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{24} +} + +func (m *InternalAddressSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InternalAddressSpec.Unmarshal(m, b) +} +func (m *InternalAddressSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InternalAddressSpec.Marshal(b, m, deterministic) +} +func (m *InternalAddressSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_InternalAddressSpec.Merge(m, src) +} +func (m *InternalAddressSpec) XXX_Size() int { + return xxx_messageInfo_InternalAddressSpec.Size(m) +} +func (m *InternalAddressSpec) XXX_DiscardUnknown() { + xxx_messageInfo_InternalAddressSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_InternalAddressSpec proto.InternalMessageInfo + +func (m *InternalAddressSpec) GetSubnetId() string { + if m != nil { + return m.SubnetId + } + return "" +} + +type ExternalAddressSpec struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExternalAddressSpec) Reset() { *m = ExternalAddressSpec{} } +func (m *ExternalAddressSpec) String() string { return proto.CompactTextString(m) } +func (*ExternalAddressSpec) ProtoMessage() {} +func (*ExternalAddressSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{25} +} + +func (m *ExternalAddressSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExternalAddressSpec.Unmarshal(m, b) +} +func (m *ExternalAddressSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExternalAddressSpec.Marshal(b, m, deterministic) +} +func (m *ExternalAddressSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExternalAddressSpec.Merge(m, src) +} +func (m *ExternalAddressSpec) XXX_Size() int { + return xxx_messageInfo_ExternalAddressSpec.Size(m) +} +func (m *ExternalAddressSpec) XXX_DiscardUnknown() { + xxx_messageInfo_ExternalAddressSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_ExternalAddressSpec proto.InternalMessageInfo + +type MasterLocation struct { + // ID of the availability zone. + ZoneId string `protobuf:"bytes,1,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"` + // If not specified and there is a single subnet in specified zone, address + // in this subnet will be allocated. + InternalV4AddressSpec *InternalAddressSpec `protobuf:"bytes,2,opt,name=internal_v4_address_spec,json=internalV4AddressSpec,proto3" json:"internal_v4_address_spec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MasterLocation) Reset() { *m = MasterLocation{} } +func (m *MasterLocation) String() string { return proto.CompactTextString(m) } +func (*MasterLocation) ProtoMessage() {} +func (*MasterLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_19e070dea8611550, []int{26} +} + +func (m *MasterLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MasterLocation.Unmarshal(m, b) +} +func (m *MasterLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MasterLocation.Marshal(b, m, deterministic) +} +func (m *MasterLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_MasterLocation.Merge(m, src) +} +func (m *MasterLocation) XXX_Size() int { + return xxx_messageInfo_MasterLocation.Size(m) +} +func (m *MasterLocation) XXX_DiscardUnknown() { + xxx_messageInfo_MasterLocation.DiscardUnknown(m) +} + +var xxx_messageInfo_MasterLocation proto.InternalMessageInfo + +func (m *MasterLocation) GetZoneId() string { + if m != nil { + return m.ZoneId + } + return "" +} + +func (m *MasterLocation) GetInternalV4AddressSpec() *InternalAddressSpec { + if m != nil { + return m.InternalV4AddressSpec + } + return nil +} + +func init() { + proto.RegisterType((*GetClusterRequest)(nil), "yandex.cloud.k8s.v1.GetClusterRequest") + proto.RegisterType((*ListClustersRequest)(nil), "yandex.cloud.k8s.v1.ListClustersRequest") + proto.RegisterType((*ListClustersResponse)(nil), "yandex.cloud.k8s.v1.ListClustersResponse") + proto.RegisterType((*DeleteClusterRequest)(nil), "yandex.cloud.k8s.v1.DeleteClusterRequest") + proto.RegisterType((*DeleteClusterMetadata)(nil), "yandex.cloud.k8s.v1.DeleteClusterMetadata") + proto.RegisterType((*StopClusterRequest)(nil), "yandex.cloud.k8s.v1.StopClusterRequest") + proto.RegisterType((*StopClusterMetadata)(nil), "yandex.cloud.k8s.v1.StopClusterMetadata") + proto.RegisterType((*StartClusterRequest)(nil), "yandex.cloud.k8s.v1.StartClusterRequest") + proto.RegisterType((*StartClusterMetadata)(nil), "yandex.cloud.k8s.v1.StartClusterMetadata") + proto.RegisterType((*UpdateClusterRequest)(nil), "yandex.cloud.k8s.v1.UpdateClusterRequest") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.k8s.v1.UpdateClusterRequest.LabelsEntry") + proto.RegisterType((*MasterUpdateSpec)(nil), "yandex.cloud.k8s.v1.MasterUpdateSpec") + proto.RegisterType((*UpdateClusterMetadata)(nil), "yandex.cloud.k8s.v1.UpdateClusterMetadata") + proto.RegisterType((*CreateClusterRequest)(nil), "yandex.cloud.k8s.v1.CreateClusterRequest") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.k8s.v1.CreateClusterRequest.LabelsEntry") + proto.RegisterType((*CreateClusterMetadata)(nil), "yandex.cloud.k8s.v1.CreateClusterMetadata") + proto.RegisterType((*AutoUpgradeMasterMetadata)(nil), "yandex.cloud.k8s.v1.AutoUpgradeMasterMetadata") + proto.RegisterType((*ListClusterOperationsRequest)(nil), "yandex.cloud.k8s.v1.ListClusterOperationsRequest") + proto.RegisterType((*ListClusterOperationsResponse)(nil), "yandex.cloud.k8s.v1.ListClusterOperationsResponse") + proto.RegisterType((*ListClusterNodeGroupsRequest)(nil), "yandex.cloud.k8s.v1.ListClusterNodeGroupsRequest") + proto.RegisterType((*ListClusterNodeGroupsResponse)(nil), "yandex.cloud.k8s.v1.ListClusterNodeGroupsResponse") + proto.RegisterType((*ListClusterNodesRequest)(nil), "yandex.cloud.k8s.v1.ListClusterNodesRequest") + proto.RegisterType((*ListClusterNodesResponse)(nil), "yandex.cloud.k8s.v1.ListClusterNodesResponse") + proto.RegisterType((*MasterSpec)(nil), "yandex.cloud.k8s.v1.MasterSpec") + proto.RegisterType((*ZonalMasterSpec)(nil), "yandex.cloud.k8s.v1.ZonalMasterSpec") + proto.RegisterType((*RegionalMasterSpec)(nil), "yandex.cloud.k8s.v1.RegionalMasterSpec") + proto.RegisterType((*InternalAddressSpec)(nil), "yandex.cloud.k8s.v1.InternalAddressSpec") + proto.RegisterType((*ExternalAddressSpec)(nil), "yandex.cloud.k8s.v1.ExternalAddressSpec") + proto.RegisterType((*MasterLocation)(nil), "yandex.cloud.k8s.v1.MasterLocation") +} + +func init() { + proto.RegisterFile("yandex/cloud/k8s/v1/cluster_service.proto", fileDescriptor_19e070dea8611550) +} + +var fileDescriptor_19e070dea8611550 = []byte{ + // 1838 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0xcf, 0x6f, 0xdb, 0xc8, + 0x15, 0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0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ClusterServiceClient is the client API for ClusterService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ClusterServiceClient interface { + // Returns the specified Kubernetes cluster. + // + // To get the list of available Kubernetes cluster, make a [List] request. + Get(ctx context.Context, in *GetClusterRequest, opts ...grpc.CallOption) (*Cluster, error) + // Retrieves the list of Kubernetes cluster in the specified folder. + List(ctx context.Context, in *ListClustersRequest, opts ...grpc.CallOption) (*ListClustersResponse, error) + // Creates a Kubernetes cluster in the specified folder. + Create(ctx context.Context, in *CreateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Updates the specified Kubernetes cluster. + Update(ctx context.Context, in *UpdateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Deletes the specified Kubernetes cluster. + Delete(ctx context.Context, in *DeleteClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Stops the specified Kubernetes cluster. + Stop(ctx context.Context, in *StopClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Starts the specified Kubernetes cluster. + Start(ctx context.Context, in *StartClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Lists nodegroup for the specified Kubernetes cluster. + ListNodeGroups(ctx context.Context, in *ListClusterNodeGroupsRequest, opts ...grpc.CallOption) (*ListClusterNodeGroupsResponse, error) + // Lists operations for the specified Kubernetes cluster. + ListOperations(ctx context.Context, in *ListClusterOperationsRequest, opts ...grpc.CallOption) (*ListClusterOperationsResponse, error) + // Lists cluster's nodes. + ListNodes(ctx context.Context, in *ListClusterNodesRequest, opts ...grpc.CallOption) (*ListClusterNodesResponse, error) +} + +type clusterServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewClusterServiceClient(cc grpc.ClientConnInterface) ClusterServiceClient { + return &clusterServiceClient{cc} +} + +func (c *clusterServiceClient) Get(ctx context.Context, in *GetClusterRequest, opts ...grpc.CallOption) (*Cluster, error) { + out := new(Cluster) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.ClusterService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) List(ctx context.Context, in *ListClustersRequest, opts ...grpc.CallOption) (*ListClustersResponse, error) { + out := new(ListClustersResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.ClusterService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) Create(ctx context.Context, in *CreateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.ClusterService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) Update(ctx context.Context, in *UpdateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.ClusterService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) Delete(ctx context.Context, in *DeleteClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.ClusterService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) Stop(ctx context.Context, in *StopClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.ClusterService/Stop", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) Start(ctx context.Context, in *StartClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.ClusterService/Start", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) ListNodeGroups(ctx context.Context, in *ListClusterNodeGroupsRequest, opts ...grpc.CallOption) (*ListClusterNodeGroupsResponse, error) { + out := new(ListClusterNodeGroupsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.ClusterService/ListNodeGroups", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) ListOperations(ctx context.Context, in *ListClusterOperationsRequest, opts ...grpc.CallOption) (*ListClusterOperationsResponse, error) { + out := new(ListClusterOperationsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.ClusterService/ListOperations", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) ListNodes(ctx context.Context, in *ListClusterNodesRequest, opts ...grpc.CallOption) (*ListClusterNodesResponse, error) { + out := new(ListClusterNodesResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.ClusterService/ListNodes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ClusterServiceServer is the server API for ClusterService service. +type ClusterServiceServer interface { + // Returns the specified Kubernetes cluster. + // + // To get the list of available Kubernetes cluster, make a [List] request. + Get(context.Context, *GetClusterRequest) (*Cluster, error) + // Retrieves the list of Kubernetes cluster in the specified folder. + List(context.Context, *ListClustersRequest) (*ListClustersResponse, error) + // Creates a Kubernetes cluster in the specified folder. + Create(context.Context, *CreateClusterRequest) (*operation.Operation, error) + // Updates the specified Kubernetes cluster. + Update(context.Context, *UpdateClusterRequest) (*operation.Operation, error) + // Deletes the specified Kubernetes cluster. + Delete(context.Context, *DeleteClusterRequest) (*operation.Operation, error) + // Stops the specified Kubernetes cluster. + Stop(context.Context, *StopClusterRequest) (*operation.Operation, error) + // Starts the specified Kubernetes cluster. + Start(context.Context, *StartClusterRequest) (*operation.Operation, error) + // Lists nodegroup for the specified Kubernetes cluster. + ListNodeGroups(context.Context, *ListClusterNodeGroupsRequest) (*ListClusterNodeGroupsResponse, error) + // Lists operations for the specified Kubernetes cluster. + ListOperations(context.Context, *ListClusterOperationsRequest) (*ListClusterOperationsResponse, error) + // Lists cluster's nodes. + ListNodes(context.Context, *ListClusterNodesRequest) (*ListClusterNodesResponse, error) +} + +// UnimplementedClusterServiceServer can be embedded to have forward compatible implementations. +type UnimplementedClusterServiceServer struct { +} + +func (*UnimplementedClusterServiceServer) Get(ctx context.Context, req *GetClusterRequest) (*Cluster, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedClusterServiceServer) List(ctx context.Context, req *ListClustersRequest) (*ListClustersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (*UnimplementedClusterServiceServer) Create(ctx context.Context, req *CreateClusterRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (*UnimplementedClusterServiceServer) Update(ctx context.Context, req *UpdateClusterRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedClusterServiceServer) Delete(ctx context.Context, req *DeleteClusterRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (*UnimplementedClusterServiceServer) Stop(ctx context.Context, req *StopClusterRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Stop not implemented") +} +func (*UnimplementedClusterServiceServer) Start(ctx context.Context, req *StartClusterRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Start not implemented") +} +func (*UnimplementedClusterServiceServer) ListNodeGroups(ctx context.Context, req *ListClusterNodeGroupsRequest) (*ListClusterNodeGroupsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNodeGroups not implemented") +} +func (*UnimplementedClusterServiceServer) ListOperations(ctx context.Context, req *ListClusterOperationsRequest) (*ListClusterOperationsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") +} +func (*UnimplementedClusterServiceServer) ListNodes(ctx context.Context, req *ListClusterNodesRequest) (*ListClusterNodesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNodes not implemented") +} + +func RegisterClusterServiceServer(s *grpc.Server, srv ClusterServiceServer) { + s.RegisterService(&_ClusterService_serviceDesc, srv) +} + +func _ClusterService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetClusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.ClusterService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).Get(ctx, req.(*GetClusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListClustersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.ClusterService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).List(ctx, req.(*ListClustersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateClusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.ClusterService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).Create(ctx, req.(*CreateClusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateClusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.ClusterService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).Update(ctx, req.(*UpdateClusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteClusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.ClusterService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).Delete(ctx, req.(*DeleteClusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StopClusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).Stop(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.ClusterService/Stop", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).Stop(ctx, req.(*StopClusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StartClusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).Start(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.ClusterService/Start", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).Start(ctx, req.(*StartClusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_ListNodeGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListClusterNodeGroupsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).ListNodeGroups(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.ClusterService/ListNodeGroups", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).ListNodeGroups(ctx, req.(*ListClusterNodeGroupsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListClusterOperationsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).ListOperations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.ClusterService/ListOperations", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).ListOperations(ctx, req.(*ListClusterOperationsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_ListNodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListClusterNodesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).ListNodes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.ClusterService/ListNodes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).ListNodes(ctx, req.(*ListClusterNodesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ClusterService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.k8s.v1.ClusterService", + HandlerType: (*ClusterServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Get", + Handler: _ClusterService_Get_Handler, + }, + { + MethodName: "List", + Handler: _ClusterService_List_Handler, + }, + { + MethodName: "Create", + Handler: _ClusterService_Create_Handler, + }, + { + MethodName: "Update", + Handler: _ClusterService_Update_Handler, + }, + { + MethodName: "Delete", + Handler: _ClusterService_Delete_Handler, + }, + { + MethodName: "Stop", + Handler: _ClusterService_Stop_Handler, + }, + { + MethodName: "Start", + Handler: _ClusterService_Start_Handler, + }, + { + MethodName: "ListNodeGroups", + Handler: _ClusterService_ListNodeGroups_Handler, + }, + { + MethodName: "ListOperations", + Handler: _ClusterService_ListOperations_Handler, + }, + { + MethodName: "ListNodes", + Handler: _ClusterService_ListNodes_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/k8s/v1/cluster_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/cluster_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/cluster_service.pbext.go new file mode 100644 index 000000000..2b5bbc8ec --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/cluster_service.pbext.go @@ -0,0 +1,322 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package k8s + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClustersRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListClustersRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClustersRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClustersRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListClustersResponse) SetClusters(v []*Cluster) { + m.Clusters = v +} + +func (m *ListClustersResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *DeleteClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StopClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StopClusterRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *StopClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StartClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StartClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +type UpdateClusterRequest_InternetGateway = isUpdateClusterRequest_InternetGateway + +func (m *UpdateClusterRequest) SetInternetGateway(v UpdateClusterRequest_InternetGateway) { + m.InternetGateway = v +} + +func (m *UpdateClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateClusterRequest) SetGatewayIpv4Address(v string) { + m.InternetGateway = &UpdateClusterRequest_GatewayIpv4Address{ + GatewayIpv4Address: v, + } +} + +func (m *UpdateClusterRequest) SetMasterSpec(v *MasterUpdateSpec) { + m.MasterSpec = v +} + +func (m *UpdateClusterRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *UpdateClusterRequest) SetNodeServiceAccountId(v string) { + m.NodeServiceAccountId = v +} + +func (m *UpdateClusterRequest) SetNetworkPolicy(v *NetworkPolicy) { + m.NetworkPolicy = v +} + +func (m *MasterUpdateSpec) SetVersion(v *UpdateVersionSpec) { + m.Version = v +} + +func (m *MasterUpdateSpec) SetMaintenancePolicy(v *MasterMaintenancePolicy) { + m.MaintenancePolicy = v +} + +func (m *UpdateClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +type CreateClusterRequest_InternetGateway = isCreateClusterRequest_InternetGateway + +func (m *CreateClusterRequest) SetInternetGateway(v CreateClusterRequest_InternetGateway) { + m.InternetGateway = v +} + +func (m *CreateClusterRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateClusterRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *CreateClusterRequest) SetMasterSpec(v *MasterSpec) { + m.MasterSpec = v +} + +func (m *CreateClusterRequest) SetIpAllocationPolicy(v *IPAllocationPolicy) { + m.IpAllocationPolicy = v +} + +func (m *CreateClusterRequest) SetGatewayIpv4Address(v string) { + m.InternetGateway = &CreateClusterRequest_GatewayIpv4Address{ + GatewayIpv4Address: v, + } +} + +func (m *CreateClusterRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *CreateClusterRequest) SetNodeServiceAccountId(v string) { + m.NodeServiceAccountId = v +} + +func (m *CreateClusterRequest) SetReleaseChannel(v ReleaseChannel) { + m.ReleaseChannel = v +} + +func (m *CreateClusterRequest) SetNetworkPolicy(v *NetworkPolicy) { + m.NetworkPolicy = v +} + +func (m *CreateClusterRequest) SetKmsProvider(v *KMSProvider) { + m.KmsProvider = v +} + +func (m *CreateClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AutoUpgradeMasterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterOperationsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterOperationsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListClusterOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListClusterOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListClusterNodeGroupsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterNodeGroupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterNodeGroupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterNodeGroupsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListClusterNodeGroupsResponse) SetNodeGroups(v []*NodeGroup) { + m.NodeGroups = v +} + +func (m *ListClusterNodeGroupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListClusterNodesRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterNodesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterNodesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterNodesResponse) SetNodes(v []*Node) { + m.Nodes = v +} + +func (m *ListClusterNodesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +type MasterSpec_MasterType = isMasterSpec_MasterType + +func (m *MasterSpec) SetMasterType(v MasterSpec_MasterType) { + m.MasterType = v +} + +func (m *MasterSpec) SetZonalMasterSpec(v *ZonalMasterSpec) { + m.MasterType = &MasterSpec_ZonalMasterSpec{ + ZonalMasterSpec: v, + } +} + +func (m *MasterSpec) SetRegionalMasterSpec(v *RegionalMasterSpec) { + m.MasterType = &MasterSpec_RegionalMasterSpec{ + RegionalMasterSpec: v, + } +} + +func (m *MasterSpec) SetVersion(v string) { + m.Version = v +} + +func (m *MasterSpec) SetMaintenancePolicy(v *MasterMaintenancePolicy) { + m.MaintenancePolicy = v +} + +func (m *ZonalMasterSpec) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *ZonalMasterSpec) SetInternalV4AddressSpec(v *InternalAddressSpec) { + m.InternalV4AddressSpec = v +} + +func (m *ZonalMasterSpec) SetExternalV4AddressSpec(v *ExternalAddressSpec) { + m.ExternalV4AddressSpec = v +} + +func (m *RegionalMasterSpec) SetRegionId(v string) { + m.RegionId = v +} + +func (m *RegionalMasterSpec) SetLocations(v []*MasterLocation) { + m.Locations = v +} + +func (m *RegionalMasterSpec) SetExternalV4AddressSpec(v *ExternalAddressSpec) { + m.ExternalV4AddressSpec = v +} + +func (m *InternalAddressSpec) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *MasterLocation) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *MasterLocation) SetInternalV4AddressSpec(v *InternalAddressSpec) { + m.InternalV4AddressSpec = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/maintenance.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/maintenance.pb.go new file mode 100644 index 000000000..94c5567ae --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/maintenance.pb.go @@ -0,0 +1,347 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/k8s/v1/maintenance.proto + +package k8s + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + dayofweek "google.golang.org/genproto/googleapis/type/dayofweek" + timeofday "google.golang.org/genproto/googleapis/type/timeofday" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type MaintenanceWindow struct { + // Maintenance policy. + // + // Types that are valid to be assigned to Policy: + // *MaintenanceWindow_Anytime + // *MaintenanceWindow_DailyMaintenanceWindow + // *MaintenanceWindow_WeeklyMaintenanceWindow + Policy isMaintenanceWindow_Policy `protobuf_oneof:"policy"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MaintenanceWindow) Reset() { *m = MaintenanceWindow{} } +func (m *MaintenanceWindow) String() string { return proto.CompactTextString(m) } +func (*MaintenanceWindow) ProtoMessage() {} +func (*MaintenanceWindow) Descriptor() ([]byte, []int) { + return fileDescriptor_ed0cf6b897b3d063, []int{0} +} + +func (m *MaintenanceWindow) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MaintenanceWindow.Unmarshal(m, b) +} +func (m *MaintenanceWindow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MaintenanceWindow.Marshal(b, m, deterministic) +} +func (m *MaintenanceWindow) XXX_Merge(src proto.Message) { + xxx_messageInfo_MaintenanceWindow.Merge(m, src) +} +func (m *MaintenanceWindow) XXX_Size() int { + return xxx_messageInfo_MaintenanceWindow.Size(m) +} +func (m *MaintenanceWindow) XXX_DiscardUnknown() { + xxx_messageInfo_MaintenanceWindow.DiscardUnknown(m) +} + +var xxx_messageInfo_MaintenanceWindow proto.InternalMessageInfo + +type isMaintenanceWindow_Policy interface { + isMaintenanceWindow_Policy() +} + +type MaintenanceWindow_Anytime struct { + Anytime *AnytimeMaintenanceWindow `protobuf:"bytes,1,opt,name=anytime,proto3,oneof"` +} + +type MaintenanceWindow_DailyMaintenanceWindow struct { + DailyMaintenanceWindow *DailyMaintenanceWindow `protobuf:"bytes,2,opt,name=daily_maintenance_window,json=dailyMaintenanceWindow,proto3,oneof"` +} + +type MaintenanceWindow_WeeklyMaintenanceWindow struct { + WeeklyMaintenanceWindow *WeeklyMaintenanceWindow `protobuf:"bytes,3,opt,name=weekly_maintenance_window,json=weeklyMaintenanceWindow,proto3,oneof"` +} + +func (*MaintenanceWindow_Anytime) isMaintenanceWindow_Policy() {} + +func (*MaintenanceWindow_DailyMaintenanceWindow) isMaintenanceWindow_Policy() {} + +func (*MaintenanceWindow_WeeklyMaintenanceWindow) isMaintenanceWindow_Policy() {} + +func (m *MaintenanceWindow) GetPolicy() isMaintenanceWindow_Policy { + if m != nil { + return m.Policy + } + return nil +} + +func (m *MaintenanceWindow) GetAnytime() *AnytimeMaintenanceWindow { + if x, ok := m.GetPolicy().(*MaintenanceWindow_Anytime); ok { + return x.Anytime + } + return nil +} + +func (m *MaintenanceWindow) GetDailyMaintenanceWindow() *DailyMaintenanceWindow { + if x, ok := m.GetPolicy().(*MaintenanceWindow_DailyMaintenanceWindow); ok { + return x.DailyMaintenanceWindow + } + return nil +} + +func (m *MaintenanceWindow) GetWeeklyMaintenanceWindow() *WeeklyMaintenanceWindow { + if x, ok := m.GetPolicy().(*MaintenanceWindow_WeeklyMaintenanceWindow); ok { + return x.WeeklyMaintenanceWindow + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*MaintenanceWindow) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*MaintenanceWindow_Anytime)(nil), + (*MaintenanceWindow_DailyMaintenanceWindow)(nil), + (*MaintenanceWindow_WeeklyMaintenanceWindow)(nil), + } +} + +type AnytimeMaintenanceWindow struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AnytimeMaintenanceWindow) Reset() { *m = AnytimeMaintenanceWindow{} } +func (m *AnytimeMaintenanceWindow) String() string { return proto.CompactTextString(m) } +func (*AnytimeMaintenanceWindow) ProtoMessage() {} +func (*AnytimeMaintenanceWindow) Descriptor() ([]byte, []int) { + return fileDescriptor_ed0cf6b897b3d063, []int{1} +} + +func (m *AnytimeMaintenanceWindow) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AnytimeMaintenanceWindow.Unmarshal(m, b) +} +func (m *AnytimeMaintenanceWindow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AnytimeMaintenanceWindow.Marshal(b, m, deterministic) +} +func (m *AnytimeMaintenanceWindow) XXX_Merge(src proto.Message) { + xxx_messageInfo_AnytimeMaintenanceWindow.Merge(m, src) +} +func (m *AnytimeMaintenanceWindow) XXX_Size() int { + return xxx_messageInfo_AnytimeMaintenanceWindow.Size(m) +} +func (m *AnytimeMaintenanceWindow) XXX_DiscardUnknown() { + xxx_messageInfo_AnytimeMaintenanceWindow.DiscardUnknown(m) +} + +var xxx_messageInfo_AnytimeMaintenanceWindow proto.InternalMessageInfo + +type DailyMaintenanceWindow struct { + // Window start time, in the UTC timezone. + StartTime *timeofday.TimeOfDay `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // Window duration. + Duration *duration.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DailyMaintenanceWindow) Reset() { *m = DailyMaintenanceWindow{} } +func (m *DailyMaintenanceWindow) String() string { return proto.CompactTextString(m) } +func (*DailyMaintenanceWindow) ProtoMessage() {} +func (*DailyMaintenanceWindow) Descriptor() ([]byte, []int) { + return fileDescriptor_ed0cf6b897b3d063, []int{2} +} + +func (m *DailyMaintenanceWindow) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DailyMaintenanceWindow.Unmarshal(m, b) +} +func (m *DailyMaintenanceWindow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DailyMaintenanceWindow.Marshal(b, m, deterministic) +} +func (m *DailyMaintenanceWindow) XXX_Merge(src proto.Message) { + xxx_messageInfo_DailyMaintenanceWindow.Merge(m, src) +} +func (m *DailyMaintenanceWindow) XXX_Size() int { + return xxx_messageInfo_DailyMaintenanceWindow.Size(m) +} +func (m *DailyMaintenanceWindow) XXX_DiscardUnknown() { + xxx_messageInfo_DailyMaintenanceWindow.DiscardUnknown(m) +} + +var xxx_messageInfo_DailyMaintenanceWindow proto.InternalMessageInfo + +func (m *DailyMaintenanceWindow) GetStartTime() *timeofday.TimeOfDay { + if m != nil { + return m.StartTime + } + return nil +} + +func (m *DailyMaintenanceWindow) GetDuration() *duration.Duration { + if m != nil { + return m.Duration + } + return nil +} + +type DaysOfWeekMaintenanceWindow struct { + // Days of the week when automatic updates are allowed. + Days []dayofweek.DayOfWeek `protobuf:"varint,1,rep,packed,name=days,proto3,enum=google.type.DayOfWeek" json:"days,omitempty"` + // Window start time, in the UTC timezone. + StartTime *timeofday.TimeOfDay `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // Window duration. + Duration *duration.Duration `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DaysOfWeekMaintenanceWindow) Reset() { *m = DaysOfWeekMaintenanceWindow{} } +func (m *DaysOfWeekMaintenanceWindow) String() string { return proto.CompactTextString(m) } +func (*DaysOfWeekMaintenanceWindow) ProtoMessage() {} +func (*DaysOfWeekMaintenanceWindow) Descriptor() ([]byte, []int) { + return fileDescriptor_ed0cf6b897b3d063, []int{3} +} + +func (m *DaysOfWeekMaintenanceWindow) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DaysOfWeekMaintenanceWindow.Unmarshal(m, b) +} +func (m *DaysOfWeekMaintenanceWindow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DaysOfWeekMaintenanceWindow.Marshal(b, m, deterministic) +} +func (m *DaysOfWeekMaintenanceWindow) XXX_Merge(src proto.Message) { + xxx_messageInfo_DaysOfWeekMaintenanceWindow.Merge(m, src) +} +func (m *DaysOfWeekMaintenanceWindow) XXX_Size() int { + return xxx_messageInfo_DaysOfWeekMaintenanceWindow.Size(m) +} +func (m *DaysOfWeekMaintenanceWindow) XXX_DiscardUnknown() { + xxx_messageInfo_DaysOfWeekMaintenanceWindow.DiscardUnknown(m) +} + +var xxx_messageInfo_DaysOfWeekMaintenanceWindow proto.InternalMessageInfo + +func (m *DaysOfWeekMaintenanceWindow) GetDays() []dayofweek.DayOfWeek { + if m != nil { + return m.Days + } + return nil +} + +func (m *DaysOfWeekMaintenanceWindow) GetStartTime() *timeofday.TimeOfDay { + if m != nil { + return m.StartTime + } + return nil +} + +func (m *DaysOfWeekMaintenanceWindow) GetDuration() *duration.Duration { + if m != nil { + return m.Duration + } + return nil +} + +type WeeklyMaintenanceWindow struct { + // Days of the week and the maintenance window for these days when automatic updates are allowed. + DaysOfWeek []*DaysOfWeekMaintenanceWindow `protobuf:"bytes,1,rep,name=days_of_week,json=daysOfWeek,proto3" json:"days_of_week,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WeeklyMaintenanceWindow) Reset() { *m = WeeklyMaintenanceWindow{} } +func (m *WeeklyMaintenanceWindow) String() string { return proto.CompactTextString(m) } +func (*WeeklyMaintenanceWindow) ProtoMessage() {} +func (*WeeklyMaintenanceWindow) Descriptor() ([]byte, []int) { + return fileDescriptor_ed0cf6b897b3d063, []int{4} +} + +func (m *WeeklyMaintenanceWindow) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WeeklyMaintenanceWindow.Unmarshal(m, b) +} +func (m *WeeklyMaintenanceWindow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WeeklyMaintenanceWindow.Marshal(b, m, deterministic) +} +func (m *WeeklyMaintenanceWindow) XXX_Merge(src proto.Message) { + xxx_messageInfo_WeeklyMaintenanceWindow.Merge(m, src) +} +func (m *WeeklyMaintenanceWindow) XXX_Size() int { + return xxx_messageInfo_WeeklyMaintenanceWindow.Size(m) +} +func (m *WeeklyMaintenanceWindow) XXX_DiscardUnknown() { + xxx_messageInfo_WeeklyMaintenanceWindow.DiscardUnknown(m) +} + +var xxx_messageInfo_WeeklyMaintenanceWindow proto.InternalMessageInfo + +func (m *WeeklyMaintenanceWindow) GetDaysOfWeek() []*DaysOfWeekMaintenanceWindow { + if m != nil { + return m.DaysOfWeek + } + return nil +} + +func init() { + proto.RegisterType((*MaintenanceWindow)(nil), "yandex.cloud.k8s.v1.MaintenanceWindow") + proto.RegisterType((*AnytimeMaintenanceWindow)(nil), "yandex.cloud.k8s.v1.AnytimeMaintenanceWindow") + proto.RegisterType((*DailyMaintenanceWindow)(nil), "yandex.cloud.k8s.v1.DailyMaintenanceWindow") + proto.RegisterType((*DaysOfWeekMaintenanceWindow)(nil), "yandex.cloud.k8s.v1.DaysOfWeekMaintenanceWindow") + proto.RegisterType((*WeeklyMaintenanceWindow)(nil), "yandex.cloud.k8s.v1.WeeklyMaintenanceWindow") +} + +func init() { + proto.RegisterFile("yandex/cloud/k8s/v1/maintenance.proto", fileDescriptor_ed0cf6b897b3d063) +} + +var fileDescriptor_ed0cf6b897b3d063 = []byte{ + // 484 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x6b, 0x13, 0x41, + 0x18, 0x75, 0x93, 0x90, 0xea, 0x57, 0x29, 0xb8, 0x42, 0xb2, 0x6d, 0x51, 0x4a, 0x40, 0x28, 0xe8, + 0xce, 0xb8, 0xa9, 0x60, 0x20, 0xa7, 0x2e, 0x7b, 0xd0, 0x83, 0x14, 0x82, 0x58, 0xd0, 0xc3, 0x32, + 0xc9, 0xcc, 0x6e, 0xc6, 0x6c, 0x76, 0x42, 0x76, 0x93, 0x38, 0x57, 0x7f, 0x85, 0x3f, 0x47, 0xf1, + 0x50, 0xcf, 0xfe, 0x0a, 0x7f, 0x83, 0xa7, 0x32, 0xb3, 0x9b, 0x36, 0x69, 0x67, 0x2f, 0x39, 0x26, + 0xef, 0xbd, 0xef, 0x7b, 0xef, 0x7d, 0x93, 0xc0, 0x0b, 0x49, 0x52, 0xca, 0xbe, 0xe1, 0x51, 0x22, + 0x16, 0x14, 0x4f, 0x7a, 0x19, 0x5e, 0x7a, 0x78, 0x4a, 0x78, 0x9a, 0xb3, 0x94, 0xa4, 0x23, 0x86, + 0x66, 0x73, 0x91, 0x0b, 0xfb, 0x69, 0x41, 0x43, 0x9a, 0x86, 0x26, 0xbd, 0x0c, 0x2d, 0xbd, 0xa3, + 0xe3, 0x58, 0x88, 0x38, 0x61, 0x38, 0x97, 0x33, 0x86, 0x29, 0x91, 0x22, 0x5a, 0x31, 0x36, 0x29, + 0x14, 0xdb, 0x60, 0xce, 0xa7, 0x4c, 0x44, 0x94, 0xc8, 0x12, 0x7c, 0x5e, 0x82, 0xfa, 0xd3, 0x70, + 0x11, 0x61, 0xba, 0x98, 0x93, 0x9c, 0x8b, 0xb4, 0xc4, 0x9f, 0x6d, 0xb9, 0x5a, 0x92, 0x84, 0xd3, + 0x0d, 0xb8, 0xf3, 0xbb, 0x06, 0x4f, 0x3e, 0xdc, 0x7a, 0xbc, 0xe4, 0x29, 0x15, 0x2b, 0xfb, 0x3d, + 0xec, 0x91, 0x54, 0xaa, 0x55, 0x8e, 0x75, 0x62, 0x9d, 0xee, 0x77, 0x5d, 0x64, 0x70, 0x8d, 0xce, + 0x0b, 0xce, 0x3d, 0xfd, 0xbb, 0x07, 0x83, 0xb5, 0xde, 0x8e, 0xc1, 0xa1, 0x84, 0x27, 0x32, 0xdc, + 0x68, 0x22, 0x5c, 0x69, 0x9a, 0x53, 0xd3, 0xb3, 0x5f, 0x1a, 0x67, 0x07, 0x4a, 0x64, 0x9a, 0xdc, + 0xa2, 0x46, 0xc4, 0xfe, 0x0a, 0x87, 0xaa,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, 0xcb, 0xff, 0x04, 0xed, + 0xad, 0x39, 0x64, 0xc6, 0xcb, 0x59, 0x9f, 0xfb, 0x31, 0xcf, 0xc7, 0x8b, 0x21, 0x1a, 0x89, 0x29, + 0x2e, 0x38, 0x6e, 0xf1, 0x73, 0x8c, 0x85, 0x1b, 0xb3, 0x54, 0x27, 0xc3, 0x86, 0x7f, 0x8f, 0xfe, + 0xa4, 0x97, 0x0d, 0x9b, 0x1a, 0x3e, 0xbb, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xe6, 0xab, 0x45, 0x99, + 0x5f, 0x04, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/maintenance.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/maintenance.pbext.go new file mode 100644 index 000000000..251a6cf6a --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/maintenance.pbext.go @@ -0,0 +1,57 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package k8s + +import ( + duration "github.com/golang/protobuf/ptypes/duration" + dayofweek "google.golang.org/genproto/googleapis/type/dayofweek" + timeofday "google.golang.org/genproto/googleapis/type/timeofday" +) + +type MaintenanceWindow_Policy = isMaintenanceWindow_Policy + +func (m *MaintenanceWindow) SetPolicy(v MaintenanceWindow_Policy) { + m.Policy = v +} + +func (m *MaintenanceWindow) SetAnytime(v *AnytimeMaintenanceWindow) { + m.Policy = &MaintenanceWindow_Anytime{ + Anytime: v, + } +} + +func (m *MaintenanceWindow) SetDailyMaintenanceWindow(v *DailyMaintenanceWindow) { + m.Policy = &MaintenanceWindow_DailyMaintenanceWindow{ + DailyMaintenanceWindow: v, + } +} + +func (m *MaintenanceWindow) SetWeeklyMaintenanceWindow(v *WeeklyMaintenanceWindow) { + m.Policy = &MaintenanceWindow_WeeklyMaintenanceWindow{ + WeeklyMaintenanceWindow: v, + } +} + +func (m *DailyMaintenanceWindow) SetStartTime(v *timeofday.TimeOfDay) { + m.StartTime = v +} + +func (m *DailyMaintenanceWindow) SetDuration(v *duration.Duration) { + m.Duration = v +} + +func (m *DaysOfWeekMaintenanceWindow) SetDays(v []dayofweek.DayOfWeek) { + m.Days = v +} + +func (m *DaysOfWeekMaintenanceWindow) SetStartTime(v *timeofday.TimeOfDay) { + m.StartTime = v +} + +func (m *DaysOfWeekMaintenanceWindow) SetDuration(v *duration.Duration) { + m.Duration = v +} + +func (m *WeeklyMaintenanceWindow) SetDaysOfWeek(v []*DaysOfWeekMaintenanceWindow) { + m.DaysOfWeek = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node.pb.go new file mode 100644 index 000000000..b0bb53447 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node.pb.go @@ -0,0 +1,1009 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/k8s/v1/node.proto + +package k8s + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type IpVersion int32 + +const ( + IpVersion_IP_VERSION_UNSPECIFIED IpVersion = 0 + // IPv4 address, for example 192.168.0.0. + IpVersion_IPV4 IpVersion = 1 + // IPv6 address, not available yet. + IpVersion_IPV6 IpVersion = 2 +) + +var IpVersion_name = map[int32]string{ + 0: "IP_VERSION_UNSPECIFIED", + 1: "IPV4", + 2: "IPV6", +} + +var IpVersion_value = map[string]int32{ + "IP_VERSION_UNSPECIFIED": 0, + "IPV4": 1, + "IPV6": 2, +} + +func (x IpVersion) String() string { + return proto.EnumName(IpVersion_name, int32(x)) +} + +func (IpVersion) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0caaa97cecfcad1b, []int{0} +} + +// Computed node status. +type Node_Status int32 + +const ( + Node_STATUS_UNSPECIFIED Node_Status = 0 + // Node instance is not yet created (e.g. in progress). + Node_PROVISIONING Node_Status = 1 + // Node instance is created but not registered + // (e.g. is still initializing). + Node_NOT_CONNECTED Node_Status = 2 + // Node has connected but is not ready for + // workload (see conditions for details). + Node_NOT_READY Node_Status = 3 + // Node has connected and ready for workload. + Node_READY Node_Status = 4 + // Node is still registered but its instance + // is deleted (this is our bug). + Node_MISSING Node_Status = 5 +) + +var Node_Status_name = map[int32]string{ + 0: "STATUS_UNSPECIFIED", + 1: "PROVISIONING", + 2: "NOT_CONNECTED", + 3: "NOT_READY", + 4: "READY", + 5: "MISSING", +} + +var Node_Status_value = map[string]int32{ + "STATUS_UNSPECIFIED": 0, + "PROVISIONING": 1, + "NOT_CONNECTED": 2, + "NOT_READY": 3, + "READY": 4, + "MISSING": 5, +} + +func (x Node_Status) String() string { + return proto.EnumName(Node_Status_name, int32(x)) +} + +func (Node_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0caaa97cecfcad1b, []int{0, 0} +} + +type Taint_Effect int32 + +const ( + Taint_EFFECT_UNSPECIFIED Taint_Effect = 0 + // Do not allow new pods to schedule onto the node unless they tolerate the taint, + // but allow all pods submitted to Kubelet without going through the scheduler + // to start, and allow all already-running pods to continue running. + Taint_NO_SCHEDULE Taint_Effect = 1 + // Like NO_SCHEDULE, but the scheduler tries not to schedule + // new pods onto the node, rather than prohibiting new pods from scheduling + // onto the node entirely. Enforced by the scheduler. + Taint_PREFER_NO_SCHEDULE Taint_Effect = 2 + // Evict any already-running pods that do not tolerate the taint. + Taint_NO_EXECUTE Taint_Effect = 3 +) + +var Taint_Effect_name = map[int32]string{ + 0: "EFFECT_UNSPECIFIED", + 1: "NO_SCHEDULE", + 2: "PREFER_NO_SCHEDULE", + 3: "NO_EXECUTE", +} + +var Taint_Effect_value = map[string]int32{ + "EFFECT_UNSPECIFIED": 0, + "NO_SCHEDULE": 1, + "PREFER_NO_SCHEDULE": 2, + "NO_EXECUTE": 3, +} + +func (x Taint_Effect) String() string { + return proto.EnumName(Taint_Effect_name, int32(x)) +} + +func (Taint_Effect) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0caaa97cecfcad1b, []int{2, 0} +} + +type Node struct { + // Computed node status. + Status Node_Status `protobuf:"varint,1,opt,name=status,proto3,enum=yandex.cloud.k8s.v1.Node_Status" json:"status,omitempty"` + // Node specificaion. + Spec *Node_Spec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + // Cloud instance status. + // Not available in `MISSING` status. + CloudStatus *Node_CloudStatus `protobuf:"bytes,3,opt,name=cloud_status,json=cloudStatus,proto3" json:"cloud_status,omitempty"` + // Kubernetes node status. + // Not available in `PROVISIONING` and `NOT_CONNECTED` states. + KubernetesStatus *Node_KubernetesStatus `protobuf:"bytes,4,opt,name=kubernetes_status,json=kubernetesStatus,proto3" json:"kubernetes_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Node) Reset() { *m = Node{} } +func (m *Node) String() string { return proto.CompactTextString(m) } +func (*Node) ProtoMessage() {} +func (*Node) Descriptor() ([]byte, []int) { + return fileDescriptor_0caaa97cecfcad1b, []int{0} +} + +func (m *Node) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Node.Unmarshal(m, b) +} +func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Node.Marshal(b, m, deterministic) +} +func (m *Node) XXX_Merge(src proto.Message) { + xxx_messageInfo_Node.Merge(m, src) +} +func (m *Node) XXX_Size() int { + return xxx_messageInfo_Node.Size(m) +} +func (m *Node) XXX_DiscardUnknown() { + xxx_messageInfo_Node.DiscardUnknown(m) +} + +var xxx_messageInfo_Node proto.InternalMessageInfo + +func (m *Node) GetStatus() Node_Status { + if m != nil { + return m.Status + } + return Node_STATUS_UNSPECIFIED +} + +func (m *Node) GetSpec() *Node_Spec { + if m != nil { + return m.Spec + } + return nil +} + +func (m *Node) GetCloudStatus() *Node_CloudStatus { + if m != nil { + return m.CloudStatus + } + return nil +} + +func (m *Node) GetKubernetesStatus() *Node_KubernetesStatus { + if m != nil { + return m.KubernetesStatus + } + return nil +} + +// Kubernetes node info +type Node_KubernetesStatus struct { + // Node id (and instance name) + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Conditions is an array of current observed node conditions. + // More info: https://kubernetes.io/docs/concepts/nodes/node/#condition + Conditions []*Condition `protobuf:"bytes,2,rep,name=conditions,proto3" json:"conditions,omitempty"` + // If specified, the node's taints. + Taints []*Taint `protobuf:"bytes,3,rep,name=taints,proto3" json:"taints,omitempty"` + // List of volumes that are attached to the node. + AttachedVolumes []*AttachedVolume `protobuf:"bytes,4,rep,name=attached_volumes,json=attachedVolumes,proto3" json:"attached_volumes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Node_KubernetesStatus) Reset() { *m = Node_KubernetesStatus{} } +func (m *Node_KubernetesStatus) String() string { return proto.CompactTextString(m) } +func (*Node_KubernetesStatus) ProtoMessage() {} +func (*Node_KubernetesStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_0caaa97cecfcad1b, []int{0, 0} +} + +func (m *Node_KubernetesStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Node_KubernetesStatus.Unmarshal(m, b) +} +func (m *Node_KubernetesStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Node_KubernetesStatus.Marshal(b, m, deterministic) +} +func (m *Node_KubernetesStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_Node_KubernetesStatus.Merge(m, src) +} +func (m *Node_KubernetesStatus) XXX_Size() int { + return xxx_messageInfo_Node_KubernetesStatus.Size(m) +} +func (m *Node_KubernetesStatus) XXX_DiscardUnknown() { + xxx_messageInfo_Node_KubernetesStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_Node_KubernetesStatus proto.InternalMessageInfo + +func (m *Node_KubernetesStatus) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Node_KubernetesStatus) GetConditions() []*Condition { + if m != nil { + return m.Conditions + } + return nil +} + +func (m *Node_KubernetesStatus) GetTaints() []*Taint { + if m != nil { + return m.Taints + } + return nil +} + +func (m *Node_KubernetesStatus) GetAttachedVolumes() []*AttachedVolume { + if m != nil { + return m.AttachedVolumes + } + return nil +} + +// Cloud instance info +type Node_CloudStatus struct { + // Compute instance id + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // IG instance status + Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + // IG instance status message + StatusMessage string `protobuf:"bytes,3,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Node_CloudStatus) Reset() { *m = Node_CloudStatus{} } +func (m *Node_CloudStatus) String() string { return proto.CompactTextString(m) } +func (*Node_CloudStatus) ProtoMessage() {} +func (*Node_CloudStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_0caaa97cecfcad1b, []int{0, 1} +} + +func (m *Node_CloudStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Node_CloudStatus.Unmarshal(m, b) +} +func (m *Node_CloudStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Node_CloudStatus.Marshal(b, m, deterministic) +} +func (m *Node_CloudStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_Node_CloudStatus.Merge(m, src) +} +func (m *Node_CloudStatus) XXX_Size() int { + return xxx_messageInfo_Node_CloudStatus.Size(m) +} +func (m *Node_CloudStatus) XXX_DiscardUnknown() { + xxx_messageInfo_Node_CloudStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_Node_CloudStatus proto.InternalMessageInfo + +func (m *Node_CloudStatus) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Node_CloudStatus) GetStatus() string { + if m != nil { + return m.Status + } + return "" +} + +func (m *Node_CloudStatus) GetStatusMessage() string { + if m != nil { + return m.StatusMessage + } + return "" +} + +// Node specification. +type Node_Spec struct { + // Node group specified resources. + Resources *ResourcesSpec `protobuf:"bytes,1,opt,name=resources,proto3" json:"resources,omitempty"` + // Node group specified disk. + Disk *DiskSpec `protobuf:"bytes,2,opt,name=disk,proto3" json:"disk,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Node_Spec) Reset() { *m = Node_Spec{} } +func (m *Node_Spec) String() string { return proto.CompactTextString(m) } +func (*Node_Spec) ProtoMessage() {} +func (*Node_Spec) Descriptor() ([]byte, []int) { + return fileDescriptor_0caaa97cecfcad1b, []int{0, 2} +} + +func (m *Node_Spec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Node_Spec.Unmarshal(m, b) +} +func (m *Node_Spec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Node_Spec.Marshal(b, m, deterministic) +} +func (m *Node_Spec) XXX_Merge(src proto.Message) { + xxx_messageInfo_Node_Spec.Merge(m, src) +} +func (m *Node_Spec) XXX_Size() int { + return xxx_messageInfo_Node_Spec.Size(m) +} +func (m *Node_Spec) XXX_DiscardUnknown() { + xxx_messageInfo_Node_Spec.DiscardUnknown(m) +} + +var xxx_messageInfo_Node_Spec proto.InternalMessageInfo + +func (m *Node_Spec) GetResources() *ResourcesSpec { + if m != nil { + return m.Resources + } + return nil +} + +func (m *Node_Spec) GetDisk() *DiskSpec { + if m != nil { + return m.Disk + } + return nil +} + +type Condition struct { + // Type of node condition. + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + // Status is the status of the condition. + Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + // Human-readable message indicating details about last transition. + Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` + // Last time we got an update on a given condition. + LastHeartbeatTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_heartbeat_time,json=lastHeartbeatTime,proto3" json:"last_heartbeat_time,omitempty"` + // Last time the condition transit from one status to another. + LastTransitionTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=last_transition_time,json=lastTransitionTime,proto3" json:"last_transition_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Condition) Reset() { *m = Condition{} } +func (m *Condition) String() string { return proto.CompactTextString(m) } +func (*Condition) ProtoMessage() {} +func (*Condition) Descriptor() ([]byte, []int) { + return fileDescriptor_0caaa97cecfcad1b, []int{1} +} + +func (m *Condition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Condition.Unmarshal(m, b) +} +func (m *Condition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Condition.Marshal(b, m, deterministic) +} +func (m *Condition) XXX_Merge(src proto.Message) { + xxx_messageInfo_Condition.Merge(m, src) +} +func (m *Condition) XXX_Size() int { + return xxx_messageInfo_Condition.Size(m) +} +func (m *Condition) XXX_DiscardUnknown() { + xxx_messageInfo_Condition.DiscardUnknown(m) +} + +var xxx_messageInfo_Condition proto.InternalMessageInfo + +func (m *Condition) GetType() string { + if m != nil { + return m.Type + } + return "" +} + +func (m *Condition) GetStatus() string { + if m != nil { + return m.Status + } + return "" +} + +func (m *Condition) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +func (m *Condition) GetLastHeartbeatTime() *timestamp.Timestamp { + if m != nil { + return m.LastHeartbeatTime + } + return nil +} + +func (m *Condition) GetLastTransitionTime() *timestamp.Timestamp { + if m != nil { + return m.LastTransitionTime + } + return nil +} + +type Taint struct { + // The taint key to be applied to a node. + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // The taint value corresponding to the taint key. + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + // The effect of the taint on pods that do not tolerate the taint. + Effect Taint_Effect `protobuf:"varint,3,opt,name=effect,proto3,enum=yandex.cloud.k8s.v1.Taint_Effect" json:"effect,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Taint) Reset() { *m = Taint{} } +func (m *Taint) String() string { return proto.CompactTextString(m) } +func (*Taint) ProtoMessage() {} +func (*Taint) Descriptor() ([]byte, []int) { + return fileDescriptor_0caaa97cecfcad1b, []int{2} +} + +func (m *Taint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Taint.Unmarshal(m, b) +} +func (m *Taint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Taint.Marshal(b, m, deterministic) +} +func (m *Taint) XXX_Merge(src proto.Message) { + xxx_messageInfo_Taint.Merge(m, src) +} +func (m *Taint) XXX_Size() int { + return xxx_messageInfo_Taint.Size(m) +} +func (m *Taint) XXX_DiscardUnknown() { + xxx_messageInfo_Taint.DiscardUnknown(m) +} + +var xxx_messageInfo_Taint proto.InternalMessageInfo + +func (m *Taint) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *Taint) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +func (m *Taint) GetEffect() Taint_Effect { + if m != nil { + return m.Effect + } + return Taint_EFFECT_UNSPECIFIED +} + +// AttachedVolume describes a volume attached to a node +type AttachedVolume struct { + // Name of the driver which has attached the volume + DriverName string `protobuf:"bytes,1,opt,name=driver_name,json=driverName,proto3" json:"driver_name,omitempty"` + // Volume handle (cloud disk id) + VolumeHandle string `protobuf:"bytes,2,opt,name=volume_handle,json=volumeHandle,proto3" json:"volume_handle,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AttachedVolume) Reset() { *m = AttachedVolume{} } +func (m *AttachedVolume) String() string { return proto.CompactTextString(m) } +func (*AttachedVolume) ProtoMessage() {} +func (*AttachedVolume) Descriptor() ([]byte, []int) { + return fileDescriptor_0caaa97cecfcad1b, []int{3} +} + +func (m *AttachedVolume) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AttachedVolume.Unmarshal(m, b) +} +func (m *AttachedVolume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AttachedVolume.Marshal(b, m, deterministic) +} +func (m *AttachedVolume) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttachedVolume.Merge(m, src) +} +func (m *AttachedVolume) XXX_Size() int { + return xxx_messageInfo_AttachedVolume.Size(m) +} +func (m *AttachedVolume) XXX_DiscardUnknown() { + xxx_messageInfo_AttachedVolume.DiscardUnknown(m) +} + +var xxx_messageInfo_AttachedVolume proto.InternalMessageInfo + +func (m *AttachedVolume) GetDriverName() string { + if m != nil { + return m.DriverName + } + return "" +} + +func (m *AttachedVolume) GetVolumeHandle() string { + if m != nil { + return m.VolumeHandle + } + return "" +} + +type NodeTemplate struct { + // ID of the hardware platform configuration for the node. + PlatformId string `protobuf:"bytes,1,opt,name=platform_id,json=platformId,proto3" json:"platform_id,omitempty"` + // Computing resources of the node such as the amount of memory and number of cores. + ResourcesSpec *ResourcesSpec `protobuf:"bytes,2,opt,name=resources_spec,json=resourcesSpec,proto3" json:"resources_spec,omitempty"` + // Specification for the boot disk that will be attached to the node. + BootDiskSpec *DiskSpec `protobuf:"bytes,3,opt,name=boot_disk_spec,json=bootDiskSpec,proto3" json:"boot_disk_spec,omitempty"` + // The metadata as `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys. + // + // For example, you may use the metadata in order to provide your public SSH key to the node. + // For more information, see [Metadata](/docs/compute/concepts/vm-metadata). + Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Specification for the create network interfaces for the node group compute instances. + V4AddressSpec *NodeAddressSpec `protobuf:"bytes,5,opt,name=v4_address_spec,json=v4AddressSpec,proto3" json:"v4_address_spec,omitempty"` + // Scheduling policy configuration. + SchedulingPolicy *SchedulingPolicy `protobuf:"bytes,6,opt,name=scheduling_policy,json=schedulingPolicy,proto3" json:"scheduling_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeTemplate) Reset() { *m = NodeTemplate{} } +func (m *NodeTemplate) String() string { return proto.CompactTextString(m) } +func (*NodeTemplate) ProtoMessage() {} +func (*NodeTemplate) Descriptor() ([]byte, []int) { + return fileDescriptor_0caaa97cecfcad1b, []int{4} +} + +func (m *NodeTemplate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeTemplate.Unmarshal(m, b) +} +func (m *NodeTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeTemplate.Marshal(b, m, deterministic) +} +func (m *NodeTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeTemplate.Merge(m, src) +} +func (m *NodeTemplate) XXX_Size() int { + return xxx_messageInfo_NodeTemplate.Size(m) +} +func (m *NodeTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_NodeTemplate.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeTemplate proto.InternalMessageInfo + +func (m *NodeTemplate) GetPlatformId() string { + if m != nil { + return m.PlatformId + } + return "" +} + +func (m *NodeTemplate) GetResourcesSpec() *ResourcesSpec { + if m != nil { + return m.ResourcesSpec + } + return nil +} + +func (m *NodeTemplate) GetBootDiskSpec() *DiskSpec { + if m != nil { + return m.BootDiskSpec + } + return nil +} + +func (m *NodeTemplate) GetMetadata() map[string]string { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *NodeTemplate) GetV4AddressSpec() *NodeAddressSpec { + if m != nil { + return m.V4AddressSpec + } + return nil +} + +func (m *NodeTemplate) GetSchedulingPolicy() *SchedulingPolicy { + if m != nil { + return m.SchedulingPolicy + } + return nil +} + +type NodeAddressSpec struct { + // One-to-one NAT configuration. Setting up one-to-one NAT ensures that public IP addresses are assigned to nodes, and therefore internet is accessible for all nodes of the node group. If the field is not set, NAT will not be set up. + OneToOneNatSpec *OneToOneNatSpec `protobuf:"bytes,1,opt,name=one_to_one_nat_spec,json=oneToOneNatSpec,proto3" json:"one_to_one_nat_spec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeAddressSpec) Reset() { *m = NodeAddressSpec{} } +func (m *NodeAddressSpec) String() string { return proto.CompactTextString(m) } +func (*NodeAddressSpec) ProtoMessage() {} +func (*NodeAddressSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_0caaa97cecfcad1b, []int{5} +} + +func (m *NodeAddressSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeAddressSpec.Unmarshal(m, b) +} +func (m *NodeAddressSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeAddressSpec.Marshal(b, m, deterministic) +} +func (m *NodeAddressSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeAddressSpec.Merge(m, src) +} +func (m *NodeAddressSpec) XXX_Size() int { + return xxx_messageInfo_NodeAddressSpec.Size(m) +} +func (m *NodeAddressSpec) XXX_DiscardUnknown() { + xxx_messageInfo_NodeAddressSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeAddressSpec proto.InternalMessageInfo + +func (m *NodeAddressSpec) GetOneToOneNatSpec() *OneToOneNatSpec { + if m != nil { + return m.OneToOneNatSpec + } + return nil +} + +type OneToOneNatSpec struct { + // IP version for the public IP address. + IpVersion IpVersion `protobuf:"varint,1,opt,name=ip_version,json=ipVersion,proto3,enum=yandex.cloud.k8s.v1.IpVersion" json:"ip_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OneToOneNatSpec) Reset() { *m = OneToOneNatSpec{} } +func (m *OneToOneNatSpec) String() string { return proto.CompactTextString(m) } +func (*OneToOneNatSpec) ProtoMessage() {} +func (*OneToOneNatSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_0caaa97cecfcad1b, []int{6} +} + +func (m *OneToOneNatSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OneToOneNatSpec.Unmarshal(m, b) +} +func (m *OneToOneNatSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OneToOneNatSpec.Marshal(b, m, deterministic) +} +func (m *OneToOneNatSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_OneToOneNatSpec.Merge(m, src) +} +func (m *OneToOneNatSpec) XXX_Size() int { + return xxx_messageInfo_OneToOneNatSpec.Size(m) +} +func (m *OneToOneNatSpec) XXX_DiscardUnknown() { + xxx_messageInfo_OneToOneNatSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_OneToOneNatSpec proto.InternalMessageInfo + +func (m *OneToOneNatSpec) GetIpVersion() IpVersion { + if m != nil { + return m.IpVersion + } + return IpVersion_IP_VERSION_UNSPECIFIED +} + +type ResourcesSpec struct { + // Amount of memory available to the node, specified in bytes. + Memory int64 `protobuf:"varint,1,opt,name=memory,proto3" json:"memory,omitempty"` + // Number of cores available to the node. + Cores int64 `protobuf:"varint,2,opt,name=cores,proto3" json:"cores,omitempty"` + // Baseline level of CPU performance with the possibility to burst performance above that baseline level. + // This field sets baseline performance for each core. + CoreFraction int64 `protobuf:"varint,3,opt,name=core_fraction,json=coreFraction,proto3" json:"core_fraction,omitempty"` + // Number of GPUs available to the node. + Gpus int64 `protobuf:"varint,4,opt,name=gpus,proto3" json:"gpus,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResourcesSpec) Reset() { *m = ResourcesSpec{} } +func (m *ResourcesSpec) String() string { return proto.CompactTextString(m) } +func (*ResourcesSpec) ProtoMessage() {} +func (*ResourcesSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_0caaa97cecfcad1b, []int{7} +} + +func (m *ResourcesSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResourcesSpec.Unmarshal(m, b) +} +func (m *ResourcesSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResourcesSpec.Marshal(b, m, deterministic) +} +func (m *ResourcesSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourcesSpec.Merge(m, src) +} +func (m *ResourcesSpec) XXX_Size() int { + return xxx_messageInfo_ResourcesSpec.Size(m) +} +func (m *ResourcesSpec) XXX_DiscardUnknown() { + xxx_messageInfo_ResourcesSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourcesSpec proto.InternalMessageInfo + +func (m *ResourcesSpec) GetMemory() int64 { + if m != nil { + return m.Memory + } + return 0 +} + +func (m *ResourcesSpec) GetCores() int64 { + if m != nil { + return m.Cores + } + return 0 +} + +func (m *ResourcesSpec) GetCoreFraction() int64 { + if m != nil { + return m.CoreFraction + } + return 0 +} + +func (m *ResourcesSpec) GetGpus() int64 { + if m != nil { + return m.Gpus + } + return 0 +} + +type DiskSpec struct { + // ID of the disk type. + DiskTypeId string `protobuf:"bytes,1,opt,name=disk_type_id,json=diskTypeId,proto3" json:"disk_type_id,omitempty"` + // Size of the disk, specified in bytes. + DiskSize int64 `protobuf:"varint,2,opt,name=disk_size,json=diskSize,proto3" json:"disk_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DiskSpec) Reset() { *m = DiskSpec{} } +func (m *DiskSpec) String() string { return proto.CompactTextString(m) } +func (*DiskSpec) ProtoMessage() {} +func (*DiskSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_0caaa97cecfcad1b, []int{8} +} + +func (m *DiskSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DiskSpec.Unmarshal(m, b) +} +func (m *DiskSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DiskSpec.Marshal(b, m, deterministic) +} +func (m *DiskSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_DiskSpec.Merge(m, src) +} +func (m *DiskSpec) XXX_Size() int { + return xxx_messageInfo_DiskSpec.Size(m) +} +func (m *DiskSpec) XXX_DiscardUnknown() { + xxx_messageInfo_DiskSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_DiskSpec proto.InternalMessageInfo + +func (m *DiskSpec) GetDiskTypeId() string { + if m != nil { + return m.DiskTypeId + } + return "" +} + +func (m *DiskSpec) GetDiskSize() int64 { + if m != nil { + return m.DiskSize + } + return 0 +} + +type SchedulingPolicy struct { + // True for preemptible compute instances. Default value is false. Preemptible compute instances are stopped at least once every 24 hours, and can be stopped at any time + // if their resources are needed by Compute. + // For more information, see [Preemptible Virtual Machines](/docs/compute/concepts/preemptible-vm). + Preemptible bool `protobuf:"varint,1,opt,name=preemptible,proto3" json:"preemptible,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SchedulingPolicy) Reset() { *m = SchedulingPolicy{} } +func (m *SchedulingPolicy) String() string { return proto.CompactTextString(m) } +func (*SchedulingPolicy) ProtoMessage() {} +func (*SchedulingPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_0caaa97cecfcad1b, []int{9} +} + +func (m *SchedulingPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SchedulingPolicy.Unmarshal(m, b) +} +func (m *SchedulingPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SchedulingPolicy.Marshal(b, m, deterministic) +} +func (m *SchedulingPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchedulingPolicy.Merge(m, src) +} +func (m *SchedulingPolicy) XXX_Size() int { + return xxx_messageInfo_SchedulingPolicy.Size(m) +} +func (m *SchedulingPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_SchedulingPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_SchedulingPolicy proto.InternalMessageInfo + +func (m *SchedulingPolicy) GetPreemptible() bool { + if m != nil { + return m.Preemptible + } + return false +} + +func init() { + proto.RegisterEnum("yandex.cloud.k8s.v1.IpVersion", IpVersion_name, IpVersion_value) + proto.RegisterEnum("yandex.cloud.k8s.v1.Node_Status", Node_Status_name, Node_Status_value) + proto.RegisterEnum("yandex.cloud.k8s.v1.Taint_Effect", Taint_Effect_name, Taint_Effect_value) + proto.RegisterType((*Node)(nil), "yandex.cloud.k8s.v1.Node") + proto.RegisterType((*Node_KubernetesStatus)(nil), "yandex.cloud.k8s.v1.Node.KubernetesStatus") + proto.RegisterType((*Node_CloudStatus)(nil), "yandex.cloud.k8s.v1.Node.CloudStatus") + proto.RegisterType((*Node_Spec)(nil), "yandex.cloud.k8s.v1.Node.Spec") + proto.RegisterType((*Condition)(nil), "yandex.cloud.k8s.v1.Condition") + proto.RegisterType((*Taint)(nil), "yandex.cloud.k8s.v1.Taint") + proto.RegisterType((*AttachedVolume)(nil), "yandex.cloud.k8s.v1.AttachedVolume") + proto.RegisterType((*NodeTemplate)(nil), "yandex.cloud.k8s.v1.NodeTemplate") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.k8s.v1.NodeTemplate.MetadataEntry") + proto.RegisterType((*NodeAddressSpec)(nil), "yandex.cloud.k8s.v1.NodeAddressSpec") + proto.RegisterType((*OneToOneNatSpec)(nil), "yandex.cloud.k8s.v1.OneToOneNatSpec") + proto.RegisterType((*ResourcesSpec)(nil), "yandex.cloud.k8s.v1.ResourcesSpec") + proto.RegisterType((*DiskSpec)(nil), "yandex.cloud.k8s.v1.DiskSpec") + proto.RegisterType((*SchedulingPolicy)(nil), "yandex.cloud.k8s.v1.SchedulingPolicy") +} + +func init() { + proto.RegisterFile("yandex/cloud/k8s/v1/node.proto", fileDescriptor_0caaa97cecfcad1b) +} + +var fileDescriptor_0caaa97cecfcad1b = []byte{ + // 1367 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x56, 0xdd, 0x72, 0xda, 0xc6, + 0x17, 0xff, 0xf3, 0x61, 0x62, 0x0e, 0x06, 0xcb, 0xeb, 0x4c, 0xfe, 0x1e, 0xa6, 0x49, 0x5c, 0xd2, + 0xcc, 0x64, 0x3c, 0x0b, 0x48, 0x42, 0x26, 0xa4, 0x8e, 0x33, 0xb5, 0xb1, 0x5c, 0x93, 0x26, 0xe0, + 0x11, 0xd8, 0x6d, 0x9a, 0x76, 0x34, 0x6b, 0xb4, 0xc6, 0x1a, 0x40, 0x62, 0xa4, 0x85, 0xd6, 0x69, + 0x6e, 0xda, 0xcb, 0x3e, 0x46, 0x1f, 0x21, 0xef, 0xd0, 0xb1, 0xfb, 0x22, 0xbd, 0xe9, 0x5d, 0x2f, + 0x7d, 0xd5, 0x59, 0xad, 0x20, 0x86, 0x9a, 0x34, 0x57, 0x3a, 0x7b, 0xf6, 0xf7, 0x3b, 0xbb, 0xe7, + 0x73, 0x05, 0xf7, 0xce, 0x89, 0x63, 0xd1, 0x1f, 0x8b, 0xed, 0x9e, 0x3b, 0xb4, 0x8a, 0xdd, 0x8a, + 0x5f, 0x1c, 0x29, 0x45, 0xc7, 0xb5, 0x68, 0x61, 0xe0, 0xb9, 0xcc, 0x45, 0xab, 0x62, 0xbf, 0x10, + 0xec, 0x17, 0xba, 0x15, 0xbf, 0x30, 0x52, 0xb2, 0xf7, 0x3b, 0xae, 0xdb, 0xe9, 0xd1, 0x62, 0x00, + 0x39, 0x19, 0x9e, 0x16, 0x99, 0xdd, 0xa7, 0x3e, 0x23, 0xfd, 0x81, 0x60, 0x65, 0xef, 0x4e, 0x59, + 0x1d, 0x91, 0x9e, 0x6d, 0x11, 0x66, 0xbb, 0x8e, 0xd8, 0xce, 0xfd, 0x91, 0x80, 0x78, 0xdd, 0xb5, + 0x28, 0xaa, 0x40, 0xc2, 0x67, 0x84, 0x0d, 0xfd, 0xb5, 0xc8, 0x7a, 0xe4, 0x51, 0x46, 0x5d, 0x2f, + 0xdc, 0x70, 0x5c, 0x81, 0x43, 0x0b, 0xcd, 0x00, 0x67, 0x84, 0x78, 0xa4, 0x42, 0xdc, 0x1f, 0xd0, + 0xf6, 0x5a, 0x74, 0x3d, 0xf2, 0x28, 0xa5, 0xde, 0xfb, 0x00, 0x6f, 0x40, 0xdb, 0x46, 0x80, 0x45, + 0x07, 0xb0, 0x14, 0xec, 0x9b, 0xe1, 0x99, 0xb1, 0x80, 0xfb, 0x70, 0x3e, 0xb7, 0xca, 0x35, 0xe1, + 0xc1, 0xa9, 0xf6, 0xfb, 0x05, 0xfa, 0x1a, 0x56, 0xba, 0xc3, 0x13, 0xea, 0x39, 0x94, 0x51, 0x7f, + 0x6c, 0x2e, 0x1e, 0x98, 0xdb, 0x98, 0x6f, 0xee, 0xab, 0x09, 0x25, 0xb4, 0x29, 0x75, 0x67, 0x34, + 0xd9, 0x3f, 0x23, 0x20, 0xcd, 0xc2, 0x50, 0x06, 0xa2, 0xb6, 0x15, 0x44, 0x28, 0x69, 0x44, 0x6d, + 0x0b, 0x3d, 0x03, 0x68, 0xbb, 0x8e,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x35, 0xea, 0xb5, 0xfa, 0x97, + 0x52, 0x04, 0xad, 0x40, 0xba, 0xde, 0x68, 0x99, 0xd5, 0x46, 0xbd, 0xae, 0x57, 0x5b, 0xfa, 0x9e, + 0x14, 0x45, 0x69, 0x48, 0x72, 0x95, 0xa1, 0xef, 0xec, 0xbd, 0x92, 0x62, 0x28, 0x09, 0x0b, 0x42, + 0x8c, 0xa3, 0x14, 0xdc, 0x7a, 0x59, 0x6b, 0x36, 0x39, 0x73, 0x21, 0xf7, 0x57, 0x04, 0x92, 0x93, + 0x34, 0x23, 0x04, 0x71, 0x76, 0x3e, 0xa0, 0x61, 0x24, 0x03, 0x79, 0x6e, 0x2c, 0xd7, 0xe0, 0xd6, + 0x74, 0x10, 0xc7, 0x4b, 0xf4, 0x1c, 0x56, 0x7b, 0xc4, 0x67, 0xe6, 0x19, 0x25, 0x1e, 0x3b, 0xa1, + 0x84, 0x99, 0xbc, 0xc1, 0xc3, 0x02, 0xcf, 0x16, 0x44, 0xf7, 0x17, 0xc6, 0xdd, 0x5f, 0x68, 0x8d, + 0xbb, 0xdf, 0x58, 0xe1, 0xb4, 0x83, 0x31, 0x8b, 0xeb, 0xd1, 0x0b, 0xb8, 0x1d, 0xd8, 0x62, 0x1e, + 0x71, 0xfc, 0xe0, 0x92, 0xc2, 0xd8, 0xc2, 0x7f, 0x1a, 0x43, 0x9c, 0xd7, 0x9a, 0xd0, 0xf8, 0x46, + 0xee, 0xf7, 0x08, 0x2c, 0x04, 0x85, 0x89, 0x24, 0x88, 0x75, 0xe9, 0x79, 0xe8, 0x28, 0x17, 0xd1, + 0x6d, 0x58, 0x18, 0x91, 0xde, 0x90, 0x86, 0x6e, 0x8a, 0x05, 0x7a, 0x02, 0x09, 0x7a, 0x7a, 0x4a, + 0xdb, 0x2c, 0x70, 0x32, 0xa3, 0x7e, 0x3a, 0xbf, 0xd8, 0x0b, 0x7a, 0x00, 0x34, 0x42, 0x42, 0xee, + 0x15, 0x24, 0x84, 0x86, 0x27, 0x52, 0xdf, 0xdf, 0xd7, 0xab, 0xad, 0x99, 0x44, 0x2e, 0x43, 0xaa, + 0xde, 0x30, 0x9b, 0xd5, 0x03, 0x7d, 0xef, 0xe8, 0x85, 0x2e, 0x45, 0x38, 0xf0, 0xd0, 0xd0, 0xf7, + 0x75, 0xc3, 0xbc, 0xae, 0x8f, 0xa2, 0x0c, 0x40, 0xbd, 0x61, 0xea, 0xdf, 0xe8, 0xd5, 0xa3, 0x96, + 0x2e, 0xc5, 0x72, 0xc7, 0x90, 0x99, 0xee, 0x10, 0x74, 0x1f, 0x52, 0x96, 0x67, 0x8f, 0xa8, 0x67, + 0x3a, 0xa4, 0x3f, 0x4e, 0x20, 0x08, 0x55, 0x9d, 0xf4, 0x29, 0x7a, 0x00, 0x69, 0xd1, 0x78, 0xe6, + 0x19, 0x71, 0xac, 0xde, 0xd8, 0xcd, 0x25, 0xa1, 0x3c, 0x08, 0x74, 0xb9, 0xdf, 0xe2, 0xb0, 0xc4, + 0x67, 0x4d, 0x8b, 0xf6, 0x07, 0x3d, 0xc2, 0x02, 0xb3, 0x5c, 0x38, 0x75, 0xbd, 0xbe, 0x39, 0xe9, + 0x30, 0x18, 0xab, 0x6a, 0x16, 0xaa, 0x41, 0x66, 0x52, 0xed, 0xe6, 0xb5, 0x91, 0xfa, 0x31, 0x7d, + 0x92, 0xf6, 0xae, 0x2f, 0x51, 0x15, 0x32, 0x27, 0xae, 0xcb, 0x4c, 0xde, 0x05, 0xc2, 0x54, 0xec, + 0x63, 0xba, 0x66, 0x89, 0x93, 0xc6, 0x2b, 0xf4, 0x73, 0x04, 0x16, 0xfb, 0x94, 0x11, 0x8b, 0x30, + 0x12, 0x4e, 0x98, 0xe2, 0xdc, 0x91, 0x3a, 0x76, 0xb3, 0xf0, 0x32, 0x64, 0xe8, 0x0e, 0xf3, 0xce, + 0x77, 0xb5, 0x5f, 0x2e, 0x95, 0xf8, 0xd3, 0xed, 0xb2, 0xf6, 0xeb, 0xa5, 0x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0x13, 0xf9, 0xcc, 0xb2, 0x0c, 0xe0, 0x8c, 0xd6, + 0xf9, 0x80, 0xd6, 0x2c, 0x24, 0x43, 0x52, 0x34, 0xa9, 0xfd, 0x86, 0x86, 0xe1, 0x58, 0xbd, 0xba, + 0x50, 0x96, 0xe5, 0xbc, 0x56, 0x7a, 0x52, 0x91, 0xb5, 0xf2, 0xa6, 0xa2, 0x28, 0xb2, 0x66, 0x2c, + 0x72, 0x54, 0xd3, 0x7e, 0x43, 0x73, 0x1a, 0x48, 0xb3, 0x65, 0x89, 0xd6, 0x21, 0x35, 0xf0, 0x28, + 0xed, 0x0f, 0x98, 0x7d, 0xd2, 0x13, 0x23, 0x6b, 0xd1, 0xb8, 0xae, 0xda, 0xd8, 0x82, 0xe4, 0x24, + 0x91, 0x28, 0x0b, 0x77, 0x6a, 0x87, 0xe6, 0xb1, 0x6e, 0xf0, 0x67, 0x6f, 0x66, 0x90, 0x2e, 0x42, + 0xbc, 0x76, 0x78, 0xac, 0x49, 0x91, 0x50, 0x2a, 0x4b, 0xd1, 0xdd, 0x63, 0xf8, 0xff, 0x54, 0x65, + 0x90, 0x81, 0x1d, 0x56, 0xc7, 0xb7, 0x5b, 0x1d, 0x9b, 0x9d, 0x0d, 0x4f, 0x0a, 0x6d, 0xb7, 0x5f, + 0x14, 0x98, 0xbc, 0xf8, 0xd5, 0xec, 0xb8, 0xf9, 0x0e, 0x75, 0x82, 0xc7, 0xa4, 0x78, 0xc3, 0x9f, + 0xed, 0x56, 0xb7, 0xe2, 0x9f, 0x24, 0x82, 0xed, 0xd2, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xda, + 0x98, 0x33, 0xc0, 0xfb, 0x0a, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node.pbext.go new file mode 100644 index 000000000..a71f664c7 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node.pbext.go @@ -0,0 +1,159 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package k8s + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Node) SetStatus(v Node_Status) { + m.Status = v +} + +func (m *Node) SetSpec(v *Node_Spec) { + m.Spec = v +} + +func (m *Node) SetCloudStatus(v *Node_CloudStatus) { + m.CloudStatus = v +} + +func (m *Node) SetKubernetesStatus(v *Node_KubernetesStatus) { + m.KubernetesStatus = v +} + +func (m *Node_KubernetesStatus) SetId(v string) { + m.Id = v +} + +func (m *Node_KubernetesStatus) SetConditions(v []*Condition) { + m.Conditions = v +} + +func (m *Node_KubernetesStatus) SetTaints(v []*Taint) { + m.Taints = v +} + +func (m *Node_KubernetesStatus) SetAttachedVolumes(v []*AttachedVolume) { + m.AttachedVolumes = v +} + +func (m *Node_CloudStatus) SetId(v string) { + m.Id = v +} + +func (m *Node_CloudStatus) SetStatus(v string) { + m.Status = v +} + +func (m *Node_CloudStatus) SetStatusMessage(v string) { + m.StatusMessage = v +} + +func (m *Node_Spec) SetResources(v *ResourcesSpec) { + m.Resources = v +} + +func (m *Node_Spec) SetDisk(v *DiskSpec) { + m.Disk = v +} + +func (m *Condition) SetType(v string) { + m.Type = v +} + +func (m *Condition) SetStatus(v string) { + m.Status = v +} + +func (m *Condition) SetMessage(v string) { + m.Message = v +} + +func (m *Condition) SetLastHeartbeatTime(v *timestamp.Timestamp) { + m.LastHeartbeatTime = v +} + +func (m *Condition) SetLastTransitionTime(v *timestamp.Timestamp) { + m.LastTransitionTime = v +} + +func (m *Taint) SetKey(v string) { + m.Key = v +} + +func (m *Taint) SetValue(v string) { + m.Value = v +} + +func (m *Taint) SetEffect(v Taint_Effect) { + m.Effect = v +} + +func (m *AttachedVolume) SetDriverName(v string) { + m.DriverName = v +} + +func (m *AttachedVolume) SetVolumeHandle(v string) { + m.VolumeHandle = v +} + +func (m *NodeTemplate) SetPlatformId(v string) { + m.PlatformId = v +} + +func (m *NodeTemplate) SetResourcesSpec(v *ResourcesSpec) { + m.ResourcesSpec = v +} + +func (m *NodeTemplate) SetBootDiskSpec(v *DiskSpec) { + m.BootDiskSpec = v +} + +func (m *NodeTemplate) SetMetadata(v map[string]string) { + m.Metadata = v +} + +func (m *NodeTemplate) SetV4AddressSpec(v *NodeAddressSpec) { + m.V4AddressSpec = v +} + +func (m *NodeTemplate) SetSchedulingPolicy(v *SchedulingPolicy) { + m.SchedulingPolicy = v +} + +func (m *NodeAddressSpec) SetOneToOneNatSpec(v *OneToOneNatSpec) { + m.OneToOneNatSpec = v +} + +func (m *OneToOneNatSpec) SetIpVersion(v IpVersion) { + m.IpVersion = v +} + +func (m *ResourcesSpec) SetMemory(v int64) { + m.Memory = v +} + +func (m *ResourcesSpec) SetCores(v int64) { + m.Cores = v +} + +func (m *ResourcesSpec) SetCoreFraction(v int64) { + m.CoreFraction = v +} + +func (m *ResourcesSpec) SetGpus(v int64) { + m.Gpus = v +} + +func (m *DiskSpec) SetDiskTypeId(v string) { + m.DiskTypeId = v +} + +func (m *DiskSpec) SetDiskSize(v int64) { + m.DiskSize = v +} + +func (m *SchedulingPolicy) SetPreemptible(v bool) { + m.Preemptible = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node_group.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node_group.pb.go new file mode 100644 index 000000000..59b2b8e59 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node_group.pb.go @@ -0,0 +1,741 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/k8s/v1/node_group.proto + +package k8s + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type NodeGroup_Status int32 + +const ( + NodeGroup_STATUS_UNSPECIFIED NodeGroup_Status = 0 + // Node group is waiting for resources to be allocated. + NodeGroup_PROVISIONING NodeGroup_Status = 1 + // Node group is running. + NodeGroup_RUNNING NodeGroup_Status = 2 + // Node group is waiting for some work to be done, such as upgrading node software. + NodeGroup_RECONCILING NodeGroup_Status = 3 + // Node group is being stopped. + NodeGroup_STOPPING NodeGroup_Status = 4 + // Node group stopped. + NodeGroup_STOPPED NodeGroup_Status = 5 + // Node group is being deleted. + NodeGroup_DELETING NodeGroup_Status = 6 + // Node group is being started. + NodeGroup_STARTING NodeGroup_Status = 7 +) + +var NodeGroup_Status_name = map[int32]string{ + 0: "STATUS_UNSPECIFIED", + 1: "PROVISIONING", + 2: "RUNNING", + 3: "RECONCILING", + 4: "STOPPING", + 5: "STOPPED", + 6: "DELETING", + 7: "STARTING", +} + +var NodeGroup_Status_value = map[string]int32{ + "STATUS_UNSPECIFIED": 0, + "PROVISIONING": 1, + "RUNNING": 2, + "RECONCILING": 3, + "STOPPING": 4, + "STOPPED": 5, + "DELETING": 6, + "STARTING": 7, +} + +func (x NodeGroup_Status) String() string { + return proto.EnumName(NodeGroup_Status_name, int32(x)) +} + +func (NodeGroup_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_d5c271823cf8486a, []int{0, 0} +} + +type NodeGroup struct { + // ID of the node group. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // ID of the cluster that the node group belongs to. + ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Creation timestamp. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Name of the node group. + // The name is unique within the folder. + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + // Description of the node group. 0-256 characters long. + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + // Resource labels as `key:value` pairs. Мaximum of 64 per resource. + Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Status of the node group. + Status NodeGroup_Status `protobuf:"varint,7,opt,name=status,proto3,enum=yandex.cloud.k8s.v1.NodeGroup_Status" json:"status,omitempty"` + // Node template that specifies parameters of the compute instances for the node group. + NodeTemplate *NodeTemplate `protobuf:"bytes,8,opt,name=node_template,json=nodeTemplate,proto3" json:"node_template,omitempty"` + // Scale policy of the node group. For more information, see [Scaling policy](/docs/compute/concepts/instance-groups/policies#scale-policy). + ScalePolicy *ScalePolicy `protobuf:"bytes,9,opt,name=scale_policy,json=scalePolicy,proto3" json:"scale_policy,omitempty"` + // Allocation policy by which resources for node group are allocated to zones and regions. + AllocationPolicy *NodeGroupAllocationPolicy `protobuf:"bytes,10,opt,name=allocation_policy,json=allocationPolicy,proto3" json:"allocation_policy,omitempty"` + // Deploy policy according to which the updates are rolled out. + DeployPolicy *DeployPolicy `protobuf:"bytes,18,opt,name=deploy_policy,json=deployPolicy,proto3" json:"deploy_policy,omitempty"` + // ID of the managed instance group associated with this node group. + InstanceGroupId string `protobuf:"bytes,11,opt,name=instance_group_id,json=instanceGroupId,proto3" json:"instance_group_id,omitempty"` + // Version of Kubernetes components that runs on the nodes. + // Deprecated. Use version_info.current_version. + NodeVersion string `protobuf:"bytes,12,opt,name=node_version,json=nodeVersion,proto3" json:"node_version,omitempty"` + // Detailed information about the Kubernetes version that is running on the node. + VersionInfo *VersionInfo `protobuf:"bytes,13,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"` + // Maintenance policy of the node group. + MaintenancePolicy *NodeGroupMaintenancePolicy `protobuf:"bytes,14,opt,name=maintenance_policy,json=maintenancePolicy,proto3" json:"maintenance_policy,omitempty"` + // Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/). + AllowedUnsafeSysctls []string `protobuf:"bytes,15,rep,name=allowed_unsafe_sysctls,json=allowedUnsafeSysctls,proto3" json:"allowed_unsafe_sysctls,omitempty"` + // Taints that are applied to the nodes of the node group at creation time. + NodeTaints []*Taint `protobuf:"bytes,16,rep,name=node_taints,json=nodeTaints,proto3" json:"node_taints,omitempty"` + // Labels that are assigned to the nodes of the node group at creation time. + NodeLabels map[string]string `protobuf:"bytes,17,rep,name=node_labels,json=nodeLabels,proto3" json:"node_labels,omitempty" protobuf_key:"bytes,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 *NodeGroup) Reset() { *m = NodeGroup{} } +func (m *NodeGroup) String() string { return proto.CompactTextString(m) } +func (*NodeGroup) ProtoMessage() {} +func (*NodeGroup) Descriptor() ([]byte, []int) { + return fileDescriptor_d5c271823cf8486a, []int{0} +} + +func (m *NodeGroup) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeGroup.Unmarshal(m, b) +} +func (m *NodeGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeGroup.Marshal(b, m, deterministic) +} +func (m *NodeGroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeGroup.Merge(m, src) +} +func (m *NodeGroup) XXX_Size() int { + return xxx_messageInfo_NodeGroup.Size(m) +} +func (m *NodeGroup) XXX_DiscardUnknown() { + xxx_messageInfo_NodeGroup.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeGroup proto.InternalMessageInfo + +func (m *NodeGroup) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *NodeGroup) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *NodeGroup) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *NodeGroup) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NodeGroup) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *NodeGroup) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *NodeGroup) GetStatus() NodeGroup_Status { + if m != nil { + return m.Status + } + return NodeGroup_STATUS_UNSPECIFIED +} + +func (m *NodeGroup) GetNodeTemplate() *NodeTemplate { + if m != nil { + return m.NodeTemplate + } + return nil +} + +func (m *NodeGroup) GetScalePolicy() *ScalePolicy { + if m != nil { + return m.ScalePolicy + } + return nil +} + +func (m *NodeGroup) GetAllocationPolicy() *NodeGroupAllocationPolicy { + if m != nil { + return m.AllocationPolicy + } + return nil +} + +func (m *NodeGroup) GetDeployPolicy() *DeployPolicy { + if m != nil { + return m.DeployPolicy + } + return nil +} + +func (m *NodeGroup) GetInstanceGroupId() string { + if m != nil { + return m.InstanceGroupId + } + return "" +} + +func (m *NodeGroup) GetNodeVersion() string { + if m != nil { + return m.NodeVersion + } + return "" +} + +func (m *NodeGroup) GetVersionInfo() *VersionInfo { + if m != nil { + return m.VersionInfo + } + return nil +} + +func (m *NodeGroup) GetMaintenancePolicy() *NodeGroupMaintenancePolicy { + if m != nil { + return m.MaintenancePolicy + } + return nil +} + +func (m *NodeGroup) GetAllowedUnsafeSysctls() []string { + if m != nil { + return m.AllowedUnsafeSysctls + } + return nil +} + +func (m *NodeGroup) GetNodeTaints() []*Taint { + if m != nil { + return m.NodeTaints + } + return nil +} + +func (m *NodeGroup) GetNodeLabels() map[string]string { + if m != nil { + return m.NodeLabels + } + return nil +} + +type ScalePolicy struct { + // Types that are valid to be assigned to ScaleType: + // *ScalePolicy_FixedScale_ + // *ScalePolicy_AutoScale_ + ScaleType isScalePolicy_ScaleType `protobuf_oneof:"scale_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScalePolicy) Reset() { *m = ScalePolicy{} } +func (m *ScalePolicy) String() string { return proto.CompactTextString(m) } +func (*ScalePolicy) ProtoMessage() {} +func (*ScalePolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_d5c271823cf8486a, []int{1} +} + +func (m *ScalePolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ScalePolicy.Unmarshal(m, b) +} +func (m *ScalePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ScalePolicy.Marshal(b, m, deterministic) +} +func (m *ScalePolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScalePolicy.Merge(m, src) +} +func (m *ScalePolicy) XXX_Size() int { + return xxx_messageInfo_ScalePolicy.Size(m) +} +func (m *ScalePolicy) XXX_DiscardUnknown() { + xxx_messageInfo_ScalePolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_ScalePolicy proto.InternalMessageInfo + +type isScalePolicy_ScaleType interface { + isScalePolicy_ScaleType() +} + +type ScalePolicy_FixedScale_ struct { + FixedScale *ScalePolicy_FixedScale `protobuf:"bytes,1,opt,name=fixed_scale,json=fixedScale,proto3,oneof"` +} + +type ScalePolicy_AutoScale_ struct { + AutoScale *ScalePolicy_AutoScale `protobuf:"bytes,2,opt,name=auto_scale,json=autoScale,proto3,oneof"` +} + +func (*ScalePolicy_FixedScale_) isScalePolicy_ScaleType() {} + +func (*ScalePolicy_AutoScale_) isScalePolicy_ScaleType() {} + +func (m *ScalePolicy) GetScaleType() isScalePolicy_ScaleType { + if m != nil { + return m.ScaleType + } + return nil +} + +func (m *ScalePolicy) GetFixedScale() *ScalePolicy_FixedScale { + if x, ok := m.GetScaleType().(*ScalePolicy_FixedScale_); ok { + return x.FixedScale + } + return nil +} + +func (m *ScalePolicy) GetAutoScale() *ScalePolicy_AutoScale { + if x, ok := m.GetScaleType().(*ScalePolicy_AutoScale_); ok { + return x.AutoScale + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ScalePolicy) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ScalePolicy_FixedScale_)(nil), + (*ScalePolicy_AutoScale_)(nil), + } +} + +type ScalePolicy_FixedScale struct { + // Number of nodes in the node group. + Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScalePolicy_FixedScale) Reset() { *m = ScalePolicy_FixedScale{} } +func (m *ScalePolicy_FixedScale) String() string { return proto.CompactTextString(m) } +func (*ScalePolicy_FixedScale) ProtoMessage() {} +func (*ScalePolicy_FixedScale) Descriptor() ([]byte, []int) { + return fileDescriptor_d5c271823cf8486a, []int{1, 0} +} + +func (m *ScalePolicy_FixedScale) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ScalePolicy_FixedScale.Unmarshal(m, b) +} +func (m *ScalePolicy_FixedScale) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ScalePolicy_FixedScale.Marshal(b, m, deterministic) +} +func (m *ScalePolicy_FixedScale) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScalePolicy_FixedScale.Merge(m, src) +} +func (m *ScalePolicy_FixedScale) XXX_Size() int { + return xxx_messageInfo_ScalePolicy_FixedScale.Size(m) +} +func (m *ScalePolicy_FixedScale) XXX_DiscardUnknown() { + xxx_messageInfo_ScalePolicy_FixedScale.DiscardUnknown(m) +} + +var xxx_messageInfo_ScalePolicy_FixedScale proto.InternalMessageInfo + +func (m *ScalePolicy_FixedScale) GetSize() int64 { + if m != nil { + return m.Size + } + return 0 +} + +type ScalePolicy_AutoScale struct { + // Minimum number of nodes in the node group. + MinSize int64 `protobuf:"varint,1,opt,name=min_size,json=minSize,proto3" json:"min_size,omitempty"` + // Maximum number of nodes in the node group. + MaxSize int64 `protobuf:"varint,2,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"` + // Initial number of nodes in the node group. + InitialSize int64 `protobuf:"varint,3,opt,name=initial_size,json=initialSize,proto3" json:"initial_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScalePolicy_AutoScale) Reset() { *m = ScalePolicy_AutoScale{} } +func (m *ScalePolicy_AutoScale) String() string { return proto.CompactTextString(m) } +func (*ScalePolicy_AutoScale) ProtoMessage() {} +func (*ScalePolicy_AutoScale) Descriptor() ([]byte, []int) { + return fileDescriptor_d5c271823cf8486a, []int{1, 1} +} + +func (m *ScalePolicy_AutoScale) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ScalePolicy_AutoScale.Unmarshal(m, b) +} +func (m *ScalePolicy_AutoScale) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ScalePolicy_AutoScale.Marshal(b, m, deterministic) +} +func (m *ScalePolicy_AutoScale) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScalePolicy_AutoScale.Merge(m, src) +} +func (m *ScalePolicy_AutoScale) XXX_Size() int { + return xxx_messageInfo_ScalePolicy_AutoScale.Size(m) +} +func (m *ScalePolicy_AutoScale) XXX_DiscardUnknown() { + xxx_messageInfo_ScalePolicy_AutoScale.DiscardUnknown(m) +} + +var xxx_messageInfo_ScalePolicy_AutoScale proto.InternalMessageInfo + +func (m *ScalePolicy_AutoScale) GetMinSize() int64 { + if m != nil { + return m.MinSize + } + return 0 +} + +func (m *ScalePolicy_AutoScale) GetMaxSize() int64 { + if m != nil { + return m.MaxSize + } + return 0 +} + +func (m *ScalePolicy_AutoScale) GetInitialSize() int64 { + if m != nil { + return m.InitialSize + } + return 0 +} + +type NodeGroupAllocationPolicy struct { + // List of locations where resources for the node group will be allocated. + Locations []*NodeGroupLocation `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeGroupAllocationPolicy) Reset() { *m = NodeGroupAllocationPolicy{} } +func (m *NodeGroupAllocationPolicy) String() string { return proto.CompactTextString(m) } +func (*NodeGroupAllocationPolicy) ProtoMessage() {} +func (*NodeGroupAllocationPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_d5c271823cf8486a, []int{2} +} + +func (m *NodeGroupAllocationPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeGroupAllocationPolicy.Unmarshal(m, b) +} +func (m *NodeGroupAllocationPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeGroupAllocationPolicy.Marshal(b, m, deterministic) +} +func (m *NodeGroupAllocationPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeGroupAllocationPolicy.Merge(m, src) +} +func (m *NodeGroupAllocationPolicy) XXX_Size() int { + return xxx_messageInfo_NodeGroupAllocationPolicy.Size(m) +} +func (m *NodeGroupAllocationPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_NodeGroupAllocationPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeGroupAllocationPolicy proto.InternalMessageInfo + +func (m *NodeGroupAllocationPolicy) GetLocations() []*NodeGroupLocation { + if m != nil { + return m.Locations + } + return nil +} + +type NodeGroupLocation struct { + // ID of the availability zone where the nodes may reside. + ZoneId string `protobuf:"bytes,1,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"` + // ID of the subnet. If a network chosen for the Kubernetes cluster has only one subnet in the specified zone, subnet ID may be omitted. + SubnetId string `protobuf:"bytes,2,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeGroupLocation) Reset() { *m = NodeGroupLocation{} } +func (m *NodeGroupLocation) String() string { return proto.CompactTextString(m) } +func (*NodeGroupLocation) ProtoMessage() {} +func (*NodeGroupLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_d5c271823cf8486a, []int{3} +} + +func (m *NodeGroupLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeGroupLocation.Unmarshal(m, b) +} +func (m *NodeGroupLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeGroupLocation.Marshal(b, m, deterministic) +} +func (m *NodeGroupLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeGroupLocation.Merge(m, src) +} +func (m *NodeGroupLocation) XXX_Size() int { + return xxx_messageInfo_NodeGroupLocation.Size(m) +} +func (m *NodeGroupLocation) XXX_DiscardUnknown() { + xxx_messageInfo_NodeGroupLocation.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeGroupLocation proto.InternalMessageInfo + +func (m *NodeGroupLocation) GetZoneId() string { + if m != nil { + return m.ZoneId + } + return "" +} + +func (m *NodeGroupLocation) GetSubnetId() string { + if m != nil { + return m.SubnetId + } + return "" +} + +type NodeGroupMaintenancePolicy struct { + // If set to true, automatic updates are installed in the specified period of time with no interaction from the user. + // If set to false, automatic upgrades are disabled. + AutoUpgrade bool `protobuf:"varint,1,opt,name=auto_upgrade,json=autoUpgrade,proto3" json:"auto_upgrade,omitempty"` + // If set to true, automatic repairs are enabled. Default value is false. + AutoRepair bool `protobuf:"varint,2,opt,name=auto_repair,json=autoRepair,proto3" json:"auto_repair,omitempty"` + // Maintenance window settings. Update will start at the specified time and last no more than the specified duration. + // The time is set in UTC. + MaintenanceWindow *MaintenanceWindow `protobuf:"bytes,3,opt,name=maintenance_window,json=maintenanceWindow,proto3" json:"maintenance_window,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeGroupMaintenancePolicy) Reset() { *m = NodeGroupMaintenancePolicy{} } +func (m *NodeGroupMaintenancePolicy) String() string { return proto.CompactTextString(m) } +func (*NodeGroupMaintenancePolicy) ProtoMessage() {} +func (*NodeGroupMaintenancePolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_d5c271823cf8486a, []int{4} +} + +func (m *NodeGroupMaintenancePolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeGroupMaintenancePolicy.Unmarshal(m, b) +} +func (m *NodeGroupMaintenancePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeGroupMaintenancePolicy.Marshal(b, m, deterministic) +} +func (m *NodeGroupMaintenancePolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeGroupMaintenancePolicy.Merge(m, src) +} +func (m *NodeGroupMaintenancePolicy) XXX_Size() int { + return xxx_messageInfo_NodeGroupMaintenancePolicy.Size(m) +} +func (m *NodeGroupMaintenancePolicy) XXX_DiscardUnknown() { + xxx_messageInfo_NodeGroupMaintenancePolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeGroupMaintenancePolicy proto.InternalMessageInfo + +func (m *NodeGroupMaintenancePolicy) GetAutoUpgrade() bool { + if m != nil { + return m.AutoUpgrade + } + return false +} + +func (m *NodeGroupMaintenancePolicy) GetAutoRepair() bool { + if m != nil { + return m.AutoRepair + } + return false +} + +func (m *NodeGroupMaintenancePolicy) GetMaintenanceWindow() *MaintenanceWindow { + if m != nil { + return m.MaintenanceWindow + } + return nil +} + +type DeployPolicy struct { + // The maximum number of running instances that can be taken offline (i.e., + // stopped or deleted) at the same time during the update process. + // If [max_expansion] is not specified or set to zero, [max_unavailable] must + // be set to a non-zero value. + MaxUnavailable int64 `protobuf:"varint,1,opt,name=max_unavailable,json=maxUnavailable,proto3" json:"max_unavailable,omitempty"` + // The maximum number of instances that can be temporarily allocated above + // the group's target size during the update process. + // If [max_unavailable] is not specified or set to zero, [max_expansion] must + // be set to a non-zero value. + MaxExpansion int64 `protobuf:"varint,2,opt,name=max_expansion,json=maxExpansion,proto3" json:"max_expansion,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeployPolicy) Reset() { *m = DeployPolicy{} } +func (m *DeployPolicy) String() string { return proto.CompactTextString(m) } +func (*DeployPolicy) ProtoMessage() {} +func (*DeployPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_d5c271823cf8486a, []int{5} +} + +func (m *DeployPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeployPolicy.Unmarshal(m, b) +} +func (m *DeployPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeployPolicy.Marshal(b, m, deterministic) +} +func (m *DeployPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeployPolicy.Merge(m, src) +} +func (m *DeployPolicy) XXX_Size() int { + return xxx_messageInfo_DeployPolicy.Size(m) +} +func (m *DeployPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_DeployPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_DeployPolicy proto.InternalMessageInfo + +func (m *DeployPolicy) GetMaxUnavailable() int64 { + if m != nil { + return m.MaxUnavailable + } + return 0 +} + +func (m *DeployPolicy) GetMaxExpansion() int64 { + if m != nil { + return m.MaxExpansion + } + return 0 +} + +func init() { + proto.RegisterEnum("yandex.cloud.k8s.v1.NodeGroup_Status", NodeGroup_Status_name, NodeGroup_Status_value) + proto.RegisterType((*NodeGroup)(nil), "yandex.cloud.k8s.v1.NodeGroup") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.k8s.v1.NodeGroup.LabelsEntry") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.k8s.v1.NodeGroup.NodeLabelsEntry") + proto.RegisterType((*ScalePolicy)(nil), "yandex.cloud.k8s.v1.ScalePolicy") + proto.RegisterType((*ScalePolicy_FixedScale)(nil), "yandex.cloud.k8s.v1.ScalePolicy.FixedScale") + proto.RegisterType((*ScalePolicy_AutoScale)(nil), "yandex.cloud.k8s.v1.ScalePolicy.AutoScale") + proto.RegisterType((*NodeGroupAllocationPolicy)(nil), "yandex.cloud.k8s.v1.NodeGroupAllocationPolicy") + proto.RegisterType((*NodeGroupLocation)(nil), "yandex.cloud.k8s.v1.NodeGroupLocation") + proto.RegisterType((*NodeGroupMaintenancePolicy)(nil), "yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy") + proto.RegisterType((*DeployPolicy)(nil), "yandex.cloud.k8s.v1.DeployPolicy") +} + +func init() { + proto.RegisterFile("yandex/cloud/k8s/v1/node_group.proto", fileDescriptor_d5c271823cf8486a) +} + +var fileDescriptor_d5c271823cf8486a = []byte{ + // 1090 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xcf, 0x6f, 0xe2, 0x46, + 0x14, 0x5e, 0x03, 0x21, 0xf0, 0x4c, 0x12, 0x32, 0x5d, 0x6d, 0x5d, 0xaa, 0x74, 0x09, 0xda, 0xad, + 0xa2, 0x6c, 0x63, 0x42, 0xda, 0x43, 0xb6, 0xd1, 0x1e, 0xf2, 0x83, 0x6c, 0x51, 0x53, 0x88, 0x0c, + 0xa4, 0x52, 0x2b, 0xd5, 0x1a, 0xf0, 0x40, 0x47, 0x31, 0x36, 0xc2, 0x36, 0x81, 0xdc, 0xab, 0xfe, + 0x13, 0xfd, 0x3f, 0x7a, 0x6d, 0x4f, 0xfb, 0xaf, 0xf4, 0xde, 0x5b, 0x4f, 0xd5, 0xbc, 0x19, 0x07, + 0x92, 0x90, 0x44, 0x7b, 0xf3, 0xfb, 0xbe, 0xef, 0x7d, 0x9e, 0x37, 0xf3, 0xe6, 0xd9, 0xf0, 0x6a, + 0x4a, 0x3d, 0x87, 0x4d, 0xca, 0x5d, 0xd7, 0x8f, 0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xe6, + 0x21, 0x72, 0x04, 0x69, 0x97, 0x76, 0x98, 0x1b, 0x18, 0xe9, 0x62, 0x72, 0x4b, 0xdf, 0xdb, 0x36, + 0x17, 0xec, 0xbe, 0x79, 0x53, 0x8f, 0x79, 0x86, 0xe2, 0xaa, 0x17, 0x8e, 0xa6, 0x96, 0xca, 0x24, + 0xef, 0x20, 0x1d, 0x84, 0x34, 0x8c, 0x02, 0x63, 0xb9, 0xa8, 0x6d, 0xad, 0xee, 0xbd, 0x7e, 0xc2, + 0xa3, 0x89, 0x62, 0x4b, 0x25, 0x91, 0x53, 0x58, 0xc1, 0x1e, 0x08, 0xd9, 0x60, 0xe8, 0xd2, 0x90, + 0x19, 0x19, 0x2c, 0x7b, 0xf3, 0x41, 0x97, 0x96, 0x12, 0x5a, 0x39, 0x6f, 0x2e, 0x22, 0xc7, 0x90, + 0x0b, 0xba, 0xd4, 0x65, 0xf6, 0xd0, 0x77, 0x79, 0x77, 0x6a, 0x64, 0xd1, 0xa6, 0xb8, 0xd0, 0xa6, + 0x29, 0x84, 0xe7, 0xa8, 0xb3, 0xf4, 0x60, 0x16, 0x90, 0x9f, 0x61, 0x9d, 0xba, 0xae, 0xdf, 0xc5, + 0x13, 0x8d, 0x9d, 0x00, 0x9d, 0xcc, 0xc7, 0xcb, 0x3a, 0xbc, 0x49, 0x53, 0xbe, 0x79, 0x7a, 0x07, + 0x11, 0x95, 0x3a, 0x6c, 0xe8, 0xfa, 0xd3, 0xd8, 0x98, 0x3c, 0x52, 0xe9, 0x09, 0x2a, 0x95, 0x57, + 0xce, 0x99, 0x8b, 0xc8, 0x36, 0xac, 0x73, 0x2f, 0x08, 0x45, 0x5b, 0xcb, 0x9b, 0x23, 0x7a, 0x49, + 0xc7, 0xc3, 0x5d, 0x8b, 0x09, 0x5c, 0x53, 0xcd, 0x21, 0x9b, 0x80, 0xbb, 0x64, 0xab, 0x1e, 0x36, + 0x72, 0xb2, 0x07, 0x04, 0x76, 0x21, 0x21, 0xb1,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0xea, 0xe1, 0xe0, 0xbe, 0xd7, 0x1e, + 0xb9, 0x01, 0x9d, 0x54, 0x63, 0xfa, 0xe8, 0x02, 0x3e, 0xbd, 0xb5, 0x5e, 0x3a, 0xe4, 0x6a, 0xcd, + 0x3f, 0x1d, 0xf4, 0x79, 0xf8, 0x6b, 0xd4, 0x31, 0xbb, 0xfe, 0xa0, 0x2c, 0x35, 0x3b, 0xf2, 0xdf, + 0xa5, 0xef, 0xef, 0xf4, 0x99, 0x87, 0xbf, 0x15, 0xe5, 0x05, 0xff, 0x3d, 0x07, 0x97, 0xfb, 0x41, + 0x27, 0x8d, 0xf4, 0xd7, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x73, 0xad, 0xaf, 0x17, 0xbc, 0x09, + 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node_group.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node_group.pbext.go new file mode 100644 index 000000000..09438e8de --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node_group.pbext.go @@ -0,0 +1,145 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package k8s + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *NodeGroup) SetId(v string) { + m.Id = v +} + +func (m *NodeGroup) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *NodeGroup) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *NodeGroup) SetName(v string) { + m.Name = v +} + +func (m *NodeGroup) SetDescription(v string) { + m.Description = v +} + +func (m *NodeGroup) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *NodeGroup) SetStatus(v NodeGroup_Status) { + m.Status = v +} + +func (m *NodeGroup) SetNodeTemplate(v *NodeTemplate) { + m.NodeTemplate = v +} + +func (m *NodeGroup) SetScalePolicy(v *ScalePolicy) { + m.ScalePolicy = v +} + +func (m *NodeGroup) SetAllocationPolicy(v *NodeGroupAllocationPolicy) { + m.AllocationPolicy = v +} + +func (m *NodeGroup) SetDeployPolicy(v *DeployPolicy) { + m.DeployPolicy = v +} + +func (m *NodeGroup) SetInstanceGroupId(v string) { + m.InstanceGroupId = v +} + +func (m *NodeGroup) SetNodeVersion(v string) { + m.NodeVersion = v +} + +func (m *NodeGroup) SetVersionInfo(v *VersionInfo) { + m.VersionInfo = v +} + +func (m *NodeGroup) SetMaintenancePolicy(v *NodeGroupMaintenancePolicy) { + m.MaintenancePolicy = v +} + +func (m *NodeGroup) SetAllowedUnsafeSysctls(v []string) { + m.AllowedUnsafeSysctls = v +} + +func (m *NodeGroup) SetNodeTaints(v []*Taint) { + m.NodeTaints = v +} + +func (m *NodeGroup) SetNodeLabels(v map[string]string) { + m.NodeLabels = v +} + +type ScalePolicy_ScaleType = isScalePolicy_ScaleType + +func (m *ScalePolicy) SetScaleType(v ScalePolicy_ScaleType) { + m.ScaleType = v +} + +func (m *ScalePolicy) SetFixedScale(v *ScalePolicy_FixedScale) { + m.ScaleType = &ScalePolicy_FixedScale_{ + FixedScale: v, + } +} + +func (m *ScalePolicy) SetAutoScale(v *ScalePolicy_AutoScale) { + m.ScaleType = &ScalePolicy_AutoScale_{ + AutoScale: v, + } +} + +func (m *ScalePolicy_FixedScale) SetSize(v int64) { + m.Size = v +} + +func (m *ScalePolicy_AutoScale) SetMinSize(v int64) { + m.MinSize = v +} + +func (m *ScalePolicy_AutoScale) SetMaxSize(v int64) { + m.MaxSize = v +} + +func (m *ScalePolicy_AutoScale) SetInitialSize(v int64) { + m.InitialSize = v +} + +func (m *NodeGroupAllocationPolicy) SetLocations(v []*NodeGroupLocation) { + m.Locations = v +} + +func (m *NodeGroupLocation) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *NodeGroupLocation) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *NodeGroupMaintenancePolicy) SetAutoUpgrade(v bool) { + m.AutoUpgrade = v +} + +func (m *NodeGroupMaintenancePolicy) SetAutoRepair(v bool) { + m.AutoRepair = v +} + +func (m *NodeGroupMaintenancePolicy) SetMaintenanceWindow(v *MaintenanceWindow) { + m.MaintenanceWindow = v +} + +func (m *DeployPolicy) SetMaxUnavailable(v int64) { + m.MaxUnavailable = v +} + +func (m *DeployPolicy) SetMaxExpansion(v int64) { + m.MaxExpansion = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node_group_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node_group_service.pb.go new file mode 100644 index 000000000..87d183ede --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node_group_service.pb.go @@ -0,0 +1,1393 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/k8s/v1/node_group_service.proto + +package k8s + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud/api" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GetNodeGroupRequest struct { + // ID of the node group to return. + // To get the node group ID use a [NodeGroupService.List] request. + NodeGroupId string `protobuf:"bytes,1,opt,name=node_group_id,json=nodeGroupId,proto3" json:"node_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetNodeGroupRequest) Reset() { *m = GetNodeGroupRequest{} } +func (m *GetNodeGroupRequest) String() string { return proto.CompactTextString(m) } +func (*GetNodeGroupRequest) ProtoMessage() {} +func (*GetNodeGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b7cf1411620c03ca, []int{0} +} + +func (m *GetNodeGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetNodeGroupRequest.Unmarshal(m, b) +} +func (m *GetNodeGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetNodeGroupRequest.Marshal(b, m, deterministic) +} +func (m *GetNodeGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetNodeGroupRequest.Merge(m, src) +} +func (m *GetNodeGroupRequest) XXX_Size() int { + return xxx_messageInfo_GetNodeGroupRequest.Size(m) +} +func (m *GetNodeGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetNodeGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetNodeGroupRequest proto.InternalMessageInfo + +func (m *GetNodeGroupRequest) GetNodeGroupId() string { + if m != nil { + return m.NodeGroupId + } + return "" +} + +type ListNodeGroupsRequest struct { + // ID of the folder to list node groups in. + // To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request. + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], + // the service returns a [ListNodeGroupsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListNodeGroupsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters resources listed in the response. + // The expression must specify: + // 1. The field name. Currently you can use filtering only on [NodeGroup.name] field. + // 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values. + // 3. The value. Must be 1-61 characters long and match the regular expression `|[a-z][-a-z0-9]{1,61}[a-z0-9]`. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListNodeGroupsRequest) Reset() { *m = ListNodeGroupsRequest{} } +func (m *ListNodeGroupsRequest) String() string { return proto.CompactTextString(m) } +func (*ListNodeGroupsRequest) ProtoMessage() {} +func (*ListNodeGroupsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b7cf1411620c03ca, []int{1} +} + +func (m *ListNodeGroupsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListNodeGroupsRequest.Unmarshal(m, b) +} +func (m *ListNodeGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListNodeGroupsRequest.Marshal(b, m, deterministic) +} +func (m *ListNodeGroupsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListNodeGroupsRequest.Merge(m, src) +} +func (m *ListNodeGroupsRequest) XXX_Size() int { + return xxx_messageInfo_ListNodeGroupsRequest.Size(m) +} +func (m *ListNodeGroupsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListNodeGroupsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListNodeGroupsRequest proto.InternalMessageInfo + +func (m *ListNodeGroupsRequest) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *ListNodeGroupsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListNodeGroupsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +func (m *ListNodeGroupsRequest) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +type ListNodeGroupsResponse struct { + // List of node groups. + NodeGroups []*NodeGroup `protobuf:"bytes,1,rep,name=node_groups,json=nodeGroups,proto3" json:"node_groups,omitempty"` + // This token allows you to get the next page of results for list requests. If the number of results + // is larger than [ListNodeGroupsRequest.page_size], use + // the `next_page_token` as the value + // for the [ListNodeGroupsRequest.page_token] query parameter + // in the next list request. Each subsequent list request will have its own + // `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListNodeGroupsResponse) Reset() { *m = ListNodeGroupsResponse{} } +func (m *ListNodeGroupsResponse) String() string { return proto.CompactTextString(m) } +func (*ListNodeGroupsResponse) ProtoMessage() {} +func (*ListNodeGroupsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b7cf1411620c03ca, []int{2} +} + +func (m *ListNodeGroupsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListNodeGroupsResponse.Unmarshal(m, b) +} +func (m *ListNodeGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListNodeGroupsResponse.Marshal(b, m, deterministic) +} +func (m *ListNodeGroupsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListNodeGroupsResponse.Merge(m, src) +} +func (m *ListNodeGroupsResponse) XXX_Size() int { + return xxx_messageInfo_ListNodeGroupsResponse.Size(m) +} +func (m *ListNodeGroupsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListNodeGroupsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListNodeGroupsResponse proto.InternalMessageInfo + +func (m *ListNodeGroupsResponse) GetNodeGroups() []*NodeGroup { + if m != nil { + return m.NodeGroups + } + return nil +} + +func (m *ListNodeGroupsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type ListNodeGroupNodesRequest struct { + // ID of the node group to list. + // To get the node group ID use a [NodeGroupService.List] request. + NodeGroupId string `protobuf:"bytes,1,opt,name=node_group_id,json=nodeGroupId,proto3" json:"node_group_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], + // the service returns a [ListNodeGroupsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListNodeGroupNodesResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListNodeGroupNodesRequest) Reset() { *m = ListNodeGroupNodesRequest{} } +func (m *ListNodeGroupNodesRequest) String() string { return proto.CompactTextString(m) } +func (*ListNodeGroupNodesRequest) ProtoMessage() {} +func (*ListNodeGroupNodesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b7cf1411620c03ca, []int{3} +} + +func (m *ListNodeGroupNodesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListNodeGroupNodesRequest.Unmarshal(m, b) +} +func (m *ListNodeGroupNodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListNodeGroupNodesRequest.Marshal(b, m, deterministic) +} +func (m *ListNodeGroupNodesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListNodeGroupNodesRequest.Merge(m, src) +} +func (m *ListNodeGroupNodesRequest) XXX_Size() int { + return xxx_messageInfo_ListNodeGroupNodesRequest.Size(m) +} +func (m *ListNodeGroupNodesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListNodeGroupNodesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListNodeGroupNodesRequest proto.InternalMessageInfo + +func (m *ListNodeGroupNodesRequest) GetNodeGroupId() string { + if m != nil { + return m.NodeGroupId + } + return "" +} + +func (m *ListNodeGroupNodesRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListNodeGroupNodesRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListNodeGroupNodesResponse struct { + // List of nodes. + Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` + // This token allows you to get the next page of results for list requests. If the number of results + // is larger than [ListNodeGroupNodesRequest.page_size], use + // the `next_page_token` as the value + // for the [ListNodeGroupNodesRequest.page_token] query parameter + // in the next list request. Each subsequent list request will have its own + // `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListNodeGroupNodesResponse) Reset() { *m = ListNodeGroupNodesResponse{} } +func (m *ListNodeGroupNodesResponse) String() string { return proto.CompactTextString(m) } +func (*ListNodeGroupNodesResponse) ProtoMessage() {} +func (*ListNodeGroupNodesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b7cf1411620c03ca, []int{4} +} + +func (m *ListNodeGroupNodesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListNodeGroupNodesResponse.Unmarshal(m, b) +} +func (m *ListNodeGroupNodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListNodeGroupNodesResponse.Marshal(b, m, deterministic) +} +func (m *ListNodeGroupNodesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListNodeGroupNodesResponse.Merge(m, src) +} +func (m *ListNodeGroupNodesResponse) XXX_Size() int { + return xxx_messageInfo_ListNodeGroupNodesResponse.Size(m) +} +func (m *ListNodeGroupNodesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListNodeGroupNodesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListNodeGroupNodesResponse proto.InternalMessageInfo + +func (m *ListNodeGroupNodesResponse) GetNodes() []*Node { + if m != nil { + return m.Nodes + } + return nil +} + +func (m *ListNodeGroupNodesResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type DeleteNodeGroupRequest struct { + // ID of the node group to delete. + // To get node group ID use a [NodeGroupService.List] request. + NodeGroupId string `protobuf:"bytes,1,opt,name=node_group_id,json=nodeGroupId,proto3" json:"node_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteNodeGroupRequest) Reset() { *m = DeleteNodeGroupRequest{} } +func (m *DeleteNodeGroupRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteNodeGroupRequest) ProtoMessage() {} +func (*DeleteNodeGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b7cf1411620c03ca, []int{5} +} + +func (m *DeleteNodeGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteNodeGroupRequest.Unmarshal(m, b) +} +func (m *DeleteNodeGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteNodeGroupRequest.Marshal(b, m, deterministic) +} +func (m *DeleteNodeGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteNodeGroupRequest.Merge(m, src) +} +func (m *DeleteNodeGroupRequest) XXX_Size() int { + return xxx_messageInfo_DeleteNodeGroupRequest.Size(m) +} +func (m *DeleteNodeGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteNodeGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteNodeGroupRequest proto.InternalMessageInfo + +func (m *DeleteNodeGroupRequest) GetNodeGroupId() string { + if m != nil { + return m.NodeGroupId + } + return "" +} + +type DeleteNodeGroupMetadata struct { + // ID of the node group that is being deleted. + NodeGroupId string `protobuf:"bytes,1,opt,name=node_group_id,json=nodeGroupId,proto3" json:"node_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteNodeGroupMetadata) Reset() { *m = DeleteNodeGroupMetadata{} } +func (m *DeleteNodeGroupMetadata) String() string { return proto.CompactTextString(m) } +func (*DeleteNodeGroupMetadata) ProtoMessage() {} +func (*DeleteNodeGroupMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_b7cf1411620c03ca, []int{6} +} + +func (m *DeleteNodeGroupMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteNodeGroupMetadata.Unmarshal(m, b) +} +func (m *DeleteNodeGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteNodeGroupMetadata.Marshal(b, m, deterministic) +} +func (m *DeleteNodeGroupMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteNodeGroupMetadata.Merge(m, src) +} +func (m *DeleteNodeGroupMetadata) XXX_Size() int { + return xxx_messageInfo_DeleteNodeGroupMetadata.Size(m) +} +func (m *DeleteNodeGroupMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteNodeGroupMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteNodeGroupMetadata proto.InternalMessageInfo + +func (m *DeleteNodeGroupMetadata) GetNodeGroupId() string { + if m != nil { + return m.NodeGroupId + } + return "" +} + +type UpdateNodeGroupRequest struct { + // ID of the node group to update. + // To get the node group ID use a [NodeGroupService.List] request. + NodeGroupId string `protobuf:"bytes,1,opt,name=node_group_id,json=nodeGroupId,proto3" json:"node_group_id,omitempty"` + // Field mask that specifies which fields of the node group are going to be updated. + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // Name of the node group. + // The name must be unique within the folder. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // Description of the node group. + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + // Resource labels as `key:value` pairs. + // + // Existing set of `labels` is completely replaced by the provided set. + Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Node template for the node group. + // Change may trigger nodes rolling reboot or recreate. + NodeTemplate *NodeTemplate `protobuf:"bytes,8,opt,name=node_template,json=nodeTemplate,proto3" json:"node_template,omitempty"` + // Scale policy of the node group. + ScalePolicy *ScalePolicy `protobuf:"bytes,6,opt,name=scale_policy,json=scalePolicy,proto3" json:"scale_policy,omitempty"` + // Allocation policy of the node group by the zones and regions. + AllocationPolicy *NodeGroupAllocationPolicy `protobuf:"bytes,9,opt,name=allocation_policy,json=allocationPolicy,proto3" json:"allocation_policy,omitempty"` + // Deploy policy according to which the updates are rolled out. If not specified, + // the default is used. + DeployPolicy *DeployPolicy `protobuf:"bytes,15,opt,name=deploy_policy,json=deployPolicy,proto3" json:"deploy_policy,omitempty"` + // Version of Kubernetes components that runs on the nodes. + Version *UpdateVersionSpec `protobuf:"bytes,10,opt,name=version,proto3" json:"version,omitempty"` + // Maintenance policy of the node group. + MaintenancePolicy *NodeGroupMaintenancePolicy `protobuf:"bytes,11,opt,name=maintenance_policy,json=maintenancePolicy,proto3" json:"maintenance_policy,omitempty"` + // Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/). + AllowedUnsafeSysctls []string `protobuf:"bytes,12,rep,name=allowed_unsafe_sysctls,json=allowedUnsafeSysctls,proto3" json:"allowed_unsafe_sysctls,omitempty"` + // Taints that are applied to the nodes of the node group at creation time. + NodeTaints []*Taint `protobuf:"bytes,13,rep,name=node_taints,json=nodeTaints,proto3" json:"node_taints,omitempty"` + // Labels that are assigned to the nodes of the node group at creation time. + NodeLabels map[string]string `protobuf:"bytes,14,rep,name=node_labels,json=nodeLabels,proto3" json:"node_labels,omitempty" protobuf_key:"bytes,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 *UpdateNodeGroupRequest) Reset() { *m = UpdateNodeGroupRequest{} } +func (m *UpdateNodeGroupRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateNodeGroupRequest) ProtoMessage() {} +func (*UpdateNodeGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b7cf1411620c03ca, []int{7} +} + +func (m *UpdateNodeGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateNodeGroupRequest.Unmarshal(m, b) +} +func (m *UpdateNodeGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateNodeGroupRequest.Marshal(b, m, deterministic) +} +func (m *UpdateNodeGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateNodeGroupRequest.Merge(m, src) +} +func (m *UpdateNodeGroupRequest) XXX_Size() int { + return xxx_messageInfo_UpdateNodeGroupRequest.Size(m) +} +func (m *UpdateNodeGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateNodeGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateNodeGroupRequest proto.InternalMessageInfo + +func (m *UpdateNodeGroupRequest) GetNodeGroupId() string { + if m != nil { + return m.NodeGroupId + } + return "" +} + +func (m *UpdateNodeGroupRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdateNodeGroupRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *UpdateNodeGroupRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *UpdateNodeGroupRequest) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *UpdateNodeGroupRequest) GetNodeTemplate() *NodeTemplate { + if m != nil { + return m.NodeTemplate + } + return nil +} + +func (m *UpdateNodeGroupRequest) GetScalePolicy() *ScalePolicy { + if m != nil { + return m.ScalePolicy + } + return nil +} + +func (m *UpdateNodeGroupRequest) GetAllocationPolicy() *NodeGroupAllocationPolicy { + if m != nil { + return m.AllocationPolicy + } + return nil +} + +func (m *UpdateNodeGroupRequest) GetDeployPolicy() *DeployPolicy { + if m != nil { + return m.DeployPolicy + } + return nil +} + +func (m *UpdateNodeGroupRequest) GetVersion() *UpdateVersionSpec { + if m != nil { + return m.Version + } + return nil +} + +func (m *UpdateNodeGroupRequest) GetMaintenancePolicy() *NodeGroupMaintenancePolicy { + if m != nil { + return m.MaintenancePolicy + } + return nil +} + +func (m *UpdateNodeGroupRequest) GetAllowedUnsafeSysctls() []string { + if m != nil { + return m.AllowedUnsafeSysctls + } + return nil +} + +func (m *UpdateNodeGroupRequest) GetNodeTaints() []*Taint { + if m != nil { + return m.NodeTaints + } + return nil +} + +func (m *UpdateNodeGroupRequest) GetNodeLabels() map[string]string { + if m != nil { + return m.NodeLabels + } + return nil +} + +type UpdateNodeGroupMetadata struct { + // ID of the Node group that is being updated. + NodeGroupId string `protobuf:"bytes,1,opt,name=node_group_id,json=nodeGroupId,proto3" json:"node_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateNodeGroupMetadata) Reset() { *m = UpdateNodeGroupMetadata{} } +func (m *UpdateNodeGroupMetadata) String() string { return proto.CompactTextString(m) } +func (*UpdateNodeGroupMetadata) ProtoMessage() {} +func (*UpdateNodeGroupMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_b7cf1411620c03ca, []int{8} +} + +func (m *UpdateNodeGroupMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateNodeGroupMetadata.Unmarshal(m, b) +} +func (m *UpdateNodeGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateNodeGroupMetadata.Marshal(b, m, deterministic) +} +func (m *UpdateNodeGroupMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateNodeGroupMetadata.Merge(m, src) +} +func (m *UpdateNodeGroupMetadata) XXX_Size() int { + return xxx_messageInfo_UpdateNodeGroupMetadata.Size(m) +} +func (m *UpdateNodeGroupMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateNodeGroupMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateNodeGroupMetadata proto.InternalMessageInfo + +func (m *UpdateNodeGroupMetadata) GetNodeGroupId() string { + if m != nil { + return m.NodeGroupId + } + return "" +} + +type CreateNodeGroupRequest struct { + // ID of the Kubernetes cluster to create a node group in. + // To get the Kubernetes cluster ID, use a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Name of the node group. + // The name must be unique within the folder. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Description of the node group. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // Resource labels as `key:value` pairs. + Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Node template for creating the node group. + NodeTemplate *NodeTemplate `protobuf:"bytes,5,opt,name=node_template,json=nodeTemplate,proto3" json:"node_template,omitempty"` + // Scale policy of the node group. + ScalePolicy *ScalePolicy `protobuf:"bytes,6,opt,name=scale_policy,json=scalePolicy,proto3" json:"scale_policy,omitempty"` + // Allocation policy of the node group by the zones and regions. + AllocationPolicy *NodeGroupAllocationPolicy `protobuf:"bytes,7,opt,name=allocation_policy,json=allocationPolicy,proto3" json:"allocation_policy,omitempty"` + // Deploy policy according to which the updates are rolled out. If not specified, + // the default is used. + DeployPolicy *DeployPolicy `protobuf:"bytes,13,opt,name=deploy_policy,json=deployPolicy,proto3" json:"deploy_policy,omitempty"` + // Version of Kubernetes components that runs on the nodes. + Version string `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"` + // Maintenance policy of the node group. + MaintenancePolicy *NodeGroupMaintenancePolicy `protobuf:"bytes,9,opt,name=maintenance_policy,json=maintenancePolicy,proto3" json:"maintenance_policy,omitempty"` + // Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/). + AllowedUnsafeSysctls []string `protobuf:"bytes,10,rep,name=allowed_unsafe_sysctls,json=allowedUnsafeSysctls,proto3" json:"allowed_unsafe_sysctls,omitempty"` + // Taints that are applied to the nodes of the node group at creation time. + NodeTaints []*Taint `protobuf:"bytes,11,rep,name=node_taints,json=nodeTaints,proto3" json:"node_taints,omitempty"` + // Labels that are assigned to the nodes of the node group at creation time. + NodeLabels map[string]string `protobuf:"bytes,12,rep,name=node_labels,json=nodeLabels,proto3" json:"node_labels,omitempty" protobuf_key:"bytes,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 *CreateNodeGroupRequest) Reset() { *m = CreateNodeGroupRequest{} } +func (m *CreateNodeGroupRequest) String() string { return proto.CompactTextString(m) } +func (*CreateNodeGroupRequest) ProtoMessage() {} +func (*CreateNodeGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b7cf1411620c03ca, []int{9} +} + +func (m *CreateNodeGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateNodeGroupRequest.Unmarshal(m, b) +} +func (m *CreateNodeGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateNodeGroupRequest.Marshal(b, m, deterministic) +} +func (m *CreateNodeGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateNodeGroupRequest.Merge(m, src) +} +func (m *CreateNodeGroupRequest) XXX_Size() int { + return xxx_messageInfo_CreateNodeGroupRequest.Size(m) +} +func (m *CreateNodeGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateNodeGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateNodeGroupRequest proto.InternalMessageInfo + +func (m *CreateNodeGroupRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *CreateNodeGroupRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *CreateNodeGroupRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *CreateNodeGroupRequest) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *CreateNodeGroupRequest) GetNodeTemplate() *NodeTemplate { + if m != nil { + return m.NodeTemplate + } + return nil +} + +func (m *CreateNodeGroupRequest) GetScalePolicy() *ScalePolicy { + if m != nil { + return m.ScalePolicy + } + return nil +} + +func (m *CreateNodeGroupRequest) GetAllocationPolicy() *NodeGroupAllocationPolicy { + if m != nil { + return m.AllocationPolicy + } + return nil +} + +func (m *CreateNodeGroupRequest) GetDeployPolicy() *DeployPolicy { + if m != nil { + return m.DeployPolicy + } + return nil +} + +func (m *CreateNodeGroupRequest) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *CreateNodeGroupRequest) GetMaintenancePolicy() *NodeGroupMaintenancePolicy { + if m != nil { + return m.MaintenancePolicy + } + return nil +} + +func (m *CreateNodeGroupRequest) GetAllowedUnsafeSysctls() []string { + if m != nil { + return m.AllowedUnsafeSysctls + } + return nil +} + +func (m *CreateNodeGroupRequest) GetNodeTaints() []*Taint { + if m != nil { + return m.NodeTaints + } + return nil +} + +func (m *CreateNodeGroupRequest) GetNodeLabels() map[string]string { + if m != nil { + return m.NodeLabels + } + return nil +} + +type CreateNodeGroupMetadata struct { + // ID of the node group that is being created. + NodeGroupId string `protobuf:"bytes,1,opt,name=node_group_id,json=nodeGroupId,proto3" json:"node_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateNodeGroupMetadata) Reset() { *m = CreateNodeGroupMetadata{} } +func (m *CreateNodeGroupMetadata) String() string { return proto.CompactTextString(m) } +func (*CreateNodeGroupMetadata) ProtoMessage() {} +func (*CreateNodeGroupMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_b7cf1411620c03ca, []int{10} +} + +func (m *CreateNodeGroupMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateNodeGroupMetadata.Unmarshal(m, b) +} +func (m *CreateNodeGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateNodeGroupMetadata.Marshal(b, m, deterministic) +} +func (m *CreateNodeGroupMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateNodeGroupMetadata.Merge(m, src) +} +func (m *CreateNodeGroupMetadata) XXX_Size() int { + return xxx_messageInfo_CreateNodeGroupMetadata.Size(m) +} +func (m *CreateNodeGroupMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CreateNodeGroupMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateNodeGroupMetadata proto.InternalMessageInfo + +func (m *CreateNodeGroupMetadata) GetNodeGroupId() string { + if m != nil { + return m.NodeGroupId + } + return "" +} + +type AutoUpgradeNodeGroupMetadata struct { + // ID of the node group that is being auto upgraded. + NodeGroupId string `protobuf:"bytes,1,opt,name=node_group_id,json=nodeGroupId,proto3" json:"node_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AutoUpgradeNodeGroupMetadata) Reset() { *m = AutoUpgradeNodeGroupMetadata{} } +func (m *AutoUpgradeNodeGroupMetadata) String() string { return proto.CompactTextString(m) } +func (*AutoUpgradeNodeGroupMetadata) ProtoMessage() {} +func (*AutoUpgradeNodeGroupMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_b7cf1411620c03ca, []int{11} +} + +func (m *AutoUpgradeNodeGroupMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AutoUpgradeNodeGroupMetadata.Unmarshal(m, b) +} +func (m *AutoUpgradeNodeGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AutoUpgradeNodeGroupMetadata.Marshal(b, m, deterministic) +} +func (m *AutoUpgradeNodeGroupMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_AutoUpgradeNodeGroupMetadata.Merge(m, src) +} +func (m *AutoUpgradeNodeGroupMetadata) XXX_Size() int { + return xxx_messageInfo_AutoUpgradeNodeGroupMetadata.Size(m) +} +func (m *AutoUpgradeNodeGroupMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_AutoUpgradeNodeGroupMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_AutoUpgradeNodeGroupMetadata proto.InternalMessageInfo + +func (m *AutoUpgradeNodeGroupMetadata) GetNodeGroupId() string { + if m != nil { + return m.NodeGroupId + } + return "" +} + +type ListNodeGroupOperationsRequest struct { + // ID of the node group to list operations for. + NodeGroupId string `protobuf:"bytes,1,opt,name=node_group_id,json=nodeGroupId,proto3" json:"node_group_id,omitempty"` + // The maximum number of results per page that should be returned. If the number of available + // results is larger than [page_size], the service returns a [ListNodeGroupOperationsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListNodeGroupOperationsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters resources listed in the response. + // Currently you can use filtering only on [NodeGroup.name] field. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListNodeGroupOperationsRequest) Reset() { *m = ListNodeGroupOperationsRequest{} } +func (m *ListNodeGroupOperationsRequest) String() string { return proto.CompactTextString(m) } +func (*ListNodeGroupOperationsRequest) ProtoMessage() {} +func (*ListNodeGroupOperationsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b7cf1411620c03ca, []int{12} +} + +func (m *ListNodeGroupOperationsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListNodeGroupOperationsRequest.Unmarshal(m, b) +} +func (m *ListNodeGroupOperationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListNodeGroupOperationsRequest.Marshal(b, m, deterministic) +} +func (m *ListNodeGroupOperationsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListNodeGroupOperationsRequest.Merge(m, src) +} +func (m *ListNodeGroupOperationsRequest) XXX_Size() int { + return xxx_messageInfo_ListNodeGroupOperationsRequest.Size(m) +} +func (m *ListNodeGroupOperationsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListNodeGroupOperationsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListNodeGroupOperationsRequest proto.InternalMessageInfo + +func (m *ListNodeGroupOperationsRequest) GetNodeGroupId() string { + if m != nil { + return m.NodeGroupId + } + return "" +} + +func (m *ListNodeGroupOperationsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListNodeGroupOperationsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +func (m *ListNodeGroupOperationsRequest) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +type ListNodeGroupOperationsResponse struct { + // List of operations for the specified node group. + Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` + // This token allows you to get the next page of results for list requests. If the number of results + // is larger than [ListNodeGroupOperationsRequest.page_size], use the `next_page_token` as the value + // for the [ListNodeGroupOperationsRequest.page_token] query parameter in the next list request. + // Each subsequent list request will have its own `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListNodeGroupOperationsResponse) Reset() { *m = ListNodeGroupOperationsResponse{} } +func (m *ListNodeGroupOperationsResponse) String() string { return proto.CompactTextString(m) } +func (*ListNodeGroupOperationsResponse) ProtoMessage() {} +func (*ListNodeGroupOperationsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b7cf1411620c03ca, []int{13} +} + +func (m *ListNodeGroupOperationsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListNodeGroupOperationsResponse.Unmarshal(m, b) +} +func (m *ListNodeGroupOperationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListNodeGroupOperationsResponse.Marshal(b, m, deterministic) +} +func (m *ListNodeGroupOperationsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListNodeGroupOperationsResponse.Merge(m, src) +} +func (m *ListNodeGroupOperationsResponse) XXX_Size() int { + return xxx_messageInfo_ListNodeGroupOperationsResponse.Size(m) +} +func (m *ListNodeGroupOperationsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListNodeGroupOperationsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListNodeGroupOperationsResponse proto.InternalMessageInfo + +func (m *ListNodeGroupOperationsResponse) GetOperations() []*operation.Operation { + if m != nil { + return m.Operations + } + return nil +} + +func (m *ListNodeGroupOperationsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +func init() { + proto.RegisterType((*GetNodeGroupRequest)(nil), "yandex.cloud.k8s.v1.GetNodeGroupRequest") + proto.RegisterType((*ListNodeGroupsRequest)(nil), "yandex.cloud.k8s.v1.ListNodeGroupsRequest") + proto.RegisterType((*ListNodeGroupsResponse)(nil), "yandex.cloud.k8s.v1.ListNodeGroupsResponse") + proto.RegisterType((*ListNodeGroupNodesRequest)(nil), "yandex.cloud.k8s.v1.ListNodeGroupNodesRequest") + proto.RegisterType((*ListNodeGroupNodesResponse)(nil), "yandex.cloud.k8s.v1.ListNodeGroupNodesResponse") + proto.RegisterType((*DeleteNodeGroupRequest)(nil), "yandex.cloud.k8s.v1.DeleteNodeGroupRequest") + proto.RegisterType((*DeleteNodeGroupMetadata)(nil), "yandex.cloud.k8s.v1.DeleteNodeGroupMetadata") + proto.RegisterType((*UpdateNodeGroupRequest)(nil), "yandex.cloud.k8s.v1.UpdateNodeGroupRequest") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.k8s.v1.UpdateNodeGroupRequest.LabelsEntry") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.k8s.v1.UpdateNodeGroupRequest.NodeLabelsEntry") + proto.RegisterType((*UpdateNodeGroupMetadata)(nil), "yandex.cloud.k8s.v1.UpdateNodeGroupMetadata") + proto.RegisterType((*CreateNodeGroupRequest)(nil), "yandex.cloud.k8s.v1.CreateNodeGroupRequest") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.k8s.v1.CreateNodeGroupRequest.LabelsEntry") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.k8s.v1.CreateNodeGroupRequest.NodeLabelsEntry") + proto.RegisterType((*CreateNodeGroupMetadata)(nil), "yandex.cloud.k8s.v1.CreateNodeGroupMetadata") + proto.RegisterType((*AutoUpgradeNodeGroupMetadata)(nil), "yandex.cloud.k8s.v1.AutoUpgradeNodeGroupMetadata") + proto.RegisterType((*ListNodeGroupOperationsRequest)(nil), "yandex.cloud.k8s.v1.ListNodeGroupOperationsRequest") + proto.RegisterType((*ListNodeGroupOperationsResponse)(nil), "yandex.cloud.k8s.v1.ListNodeGroupOperationsResponse") +} + +func init() { + proto.RegisterFile("yandex/cloud/k8s/v1/node_group_service.proto", fileDescriptor_b7cf1411620c03ca) +} + +var fileDescriptor_b7cf1411620c03ca = []byte{ + // 1444 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcf, 0x6f, 0x13, 0xc7, + 0x17, 0xd7, 0x26, 0x8e, 0xc9, 0x3e, 0x27, 0x10, 0x06, 0x48, 0x8c, 0x05, 0xf9, 0x26, 0x06, 0xe5, + 0xeb, 0x18, 0xbc, 0xeb, 0x4d, 0x20, 0x4d, 0x08, 0x69, 0x8a, 0xf9, 0xa5, 0x48, 0x50, 0xd0, 0x26, + 0x70, 0x68, 0xa0, 0xd6, 0xc4, 0x3b, 0x71, 0x57, 0x5e, 0xef, 0x6e, 0x3d, 0xeb, 0x14, 0x87, 0x72, + 0x28, 0x52, 0x0f, 0x8d, 0x7a, 0xa8, 0xda, 0x4b, 0xff, 0x8a, 0x4a, 0xe5, 0x0f, 0xa8, 0xc4, 0x29, + 0x39, 0xd3, 0x7f, 0xa1, 0x52, 0x7b, 0xe6, 0xd8, 0x53, 0xb5, 0xb3, 0xb3, 0xeb, 0x1f, 0xac, 0x7f, + 0x25, 0xa2, 0xe5, 0x94, 0x9d, 0x99, 0xcf, 0x7b, 0xf3, 0x79, 0x6f, 0xde, 0x7c, 0x32, 0xcf, 0x70, + 0xb9, 0x86, 0x4d, 0x8d, 0x3c, 0x93, 0x0b, 0x86, 0x55, 0xd5, 0xe4, 0xd2, 0x22, 0x95, 0x77, 0x14, + 0xd9, 0xb4, 0x34, 0x92, 0x2f, 0x56, 0xac, 0xaa, 0x9d, 0xa7, 0xa4, 0xb2, 0xa3, 0x17, 0x88, 0x64, + 0x57, 0x2c, 0xc7, 0x42, 0xa7, 0x3c, 0xb4, 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 0xa2, 0x6c, 0x79, 0xfe, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdb, 0xbd, 0x9e, 0xf1, + 0x18, 0x15, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// NodeGroupServiceClient is the client API for NodeGroupService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type NodeGroupServiceClient interface { + // Returns the specified node group. + // + // To get the list of available node group, make a [List] request. + Get(ctx context.Context, in *GetNodeGroupRequest, opts ...grpc.CallOption) (*NodeGroup, error) + // Retrieves the list of node group in the specified Kubernetes cluster. + List(ctx context.Context, in *ListNodeGroupsRequest, opts ...grpc.CallOption) (*ListNodeGroupsResponse, error) + // Creates a node group in the specified Kubernetes cluster. + Create(ctx context.Context, in *CreateNodeGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Updates the specified node group. + Update(ctx context.Context, in *UpdateNodeGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Deletes the specified node group. + Delete(ctx context.Context, in *DeleteNodeGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Lists operations for the specified node group. + ListOperations(ctx context.Context, in *ListNodeGroupOperationsRequest, opts ...grpc.CallOption) (*ListNodeGroupOperationsResponse, error) + // Retrieves the list of nodes in the specified Kubernetes cluster. + ListNodes(ctx context.Context, in *ListNodeGroupNodesRequest, opts ...grpc.CallOption) (*ListNodeGroupNodesResponse, error) +} + +type nodeGroupServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewNodeGroupServiceClient(cc grpc.ClientConnInterface) NodeGroupServiceClient { + return &nodeGroupServiceClient{cc} +} + +func (c *nodeGroupServiceClient) Get(ctx context.Context, in *GetNodeGroupRequest, opts ...grpc.CallOption) (*NodeGroup, error) { + out := new(NodeGroup) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.NodeGroupService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nodeGroupServiceClient) List(ctx context.Context, in *ListNodeGroupsRequest, opts ...grpc.CallOption) (*ListNodeGroupsResponse, error) { + out := new(ListNodeGroupsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.NodeGroupService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nodeGroupServiceClient) Create(ctx context.Context, in *CreateNodeGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.NodeGroupService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nodeGroupServiceClient) Update(ctx context.Context, in *UpdateNodeGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.NodeGroupService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nodeGroupServiceClient) Delete(ctx context.Context, in *DeleteNodeGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.NodeGroupService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nodeGroupServiceClient) ListOperations(ctx context.Context, in *ListNodeGroupOperationsRequest, opts ...grpc.CallOption) (*ListNodeGroupOperationsResponse, error) { + out := new(ListNodeGroupOperationsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.NodeGroupService/ListOperations", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nodeGroupServiceClient) ListNodes(ctx context.Context, in *ListNodeGroupNodesRequest, opts ...grpc.CallOption) (*ListNodeGroupNodesResponse, error) { + out := new(ListNodeGroupNodesResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.NodeGroupService/ListNodes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// NodeGroupServiceServer is the server API for NodeGroupService service. +type NodeGroupServiceServer interface { + // Returns the specified node group. + // + // To get the list of available node group, make a [List] request. + Get(context.Context, *GetNodeGroupRequest) (*NodeGroup, error) + // Retrieves the list of node group in the specified Kubernetes cluster. + List(context.Context, *ListNodeGroupsRequest) (*ListNodeGroupsResponse, error) + // Creates a node group in the specified Kubernetes cluster. + Create(context.Context, *CreateNodeGroupRequest) (*operation.Operation, error) + // Updates the specified node group. + Update(context.Context, *UpdateNodeGroupRequest) (*operation.Operation, error) + // Deletes the specified node group. + Delete(context.Context, *DeleteNodeGroupRequest) (*operation.Operation, error) + // Lists operations for the specified node group. + ListOperations(context.Context, *ListNodeGroupOperationsRequest) (*ListNodeGroupOperationsResponse, error) + // Retrieves the list of nodes in the specified Kubernetes cluster. + ListNodes(context.Context, *ListNodeGroupNodesRequest) (*ListNodeGroupNodesResponse, error) +} + +// UnimplementedNodeGroupServiceServer can be embedded to have forward compatible implementations. +type UnimplementedNodeGroupServiceServer struct { +} + +func (*UnimplementedNodeGroupServiceServer) Get(ctx context.Context, req *GetNodeGroupRequest) (*NodeGroup, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedNodeGroupServiceServer) List(ctx context.Context, req *ListNodeGroupsRequest) (*ListNodeGroupsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (*UnimplementedNodeGroupServiceServer) Create(ctx context.Context, req *CreateNodeGroupRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (*UnimplementedNodeGroupServiceServer) Update(ctx context.Context, req *UpdateNodeGroupRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedNodeGroupServiceServer) Delete(ctx context.Context, req *DeleteNodeGroupRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (*UnimplementedNodeGroupServiceServer) ListOperations(ctx context.Context, req *ListNodeGroupOperationsRequest) (*ListNodeGroupOperationsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") +} +func (*UnimplementedNodeGroupServiceServer) ListNodes(ctx context.Context, req *ListNodeGroupNodesRequest) (*ListNodeGroupNodesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNodes not implemented") +} + +func RegisterNodeGroupServiceServer(s *grpc.Server, srv NodeGroupServiceServer) { + s.RegisterService(&_NodeGroupService_serviceDesc, srv) +} + +func _NodeGroupService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetNodeGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NodeGroupServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.NodeGroupService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NodeGroupServiceServer).Get(ctx, req.(*GetNodeGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NodeGroupService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListNodeGroupsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NodeGroupServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.NodeGroupService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NodeGroupServiceServer).List(ctx, req.(*ListNodeGroupsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NodeGroupService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateNodeGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NodeGroupServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.NodeGroupService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NodeGroupServiceServer).Create(ctx, req.(*CreateNodeGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NodeGroupService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateNodeGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NodeGroupServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.NodeGroupService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NodeGroupServiceServer).Update(ctx, req.(*UpdateNodeGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NodeGroupService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteNodeGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NodeGroupServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.NodeGroupService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NodeGroupServiceServer).Delete(ctx, req.(*DeleteNodeGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NodeGroupService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListNodeGroupOperationsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NodeGroupServiceServer).ListOperations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.NodeGroupService/ListOperations", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NodeGroupServiceServer).ListOperations(ctx, req.(*ListNodeGroupOperationsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NodeGroupService_ListNodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListNodeGroupNodesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NodeGroupServiceServer).ListNodes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.NodeGroupService/ListNodes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NodeGroupServiceServer).ListNodes(ctx, req.(*ListNodeGroupNodesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _NodeGroupService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.k8s.v1.NodeGroupService", + HandlerType: (*NodeGroupServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Get", + Handler: _NodeGroupService_Get_Handler, + }, + { + MethodName: "List", + Handler: _NodeGroupService_List_Handler, + }, + { + MethodName: "Create", + Handler: _NodeGroupService_Create_Handler, + }, + { + MethodName: "Update", + Handler: _NodeGroupService_Update_Handler, + }, + { + MethodName: "Delete", + Handler: _NodeGroupService_Delete_Handler, + }, + { + MethodName: "ListOperations", + Handler: _NodeGroupService_ListOperations_Handler, + }, + { + MethodName: "ListNodes", + Handler: _NodeGroupService_ListNodes_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/k8s/v1/node_group_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node_group_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node_group_service.pbext.go new file mode 100644 index 000000000..55813178c --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/node_group_service.pbext.go @@ -0,0 +1,208 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package k8s + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetNodeGroupRequest) SetNodeGroupId(v string) { + m.NodeGroupId = v +} + +func (m *ListNodeGroupsRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListNodeGroupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListNodeGroupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListNodeGroupsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListNodeGroupsResponse) SetNodeGroups(v []*NodeGroup) { + m.NodeGroups = v +} + +func (m *ListNodeGroupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListNodeGroupNodesRequest) SetNodeGroupId(v string) { + m.NodeGroupId = v +} + +func (m *ListNodeGroupNodesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListNodeGroupNodesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListNodeGroupNodesResponse) SetNodes(v []*Node) { + m.Nodes = v +} + +func (m *ListNodeGroupNodesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *DeleteNodeGroupRequest) SetNodeGroupId(v string) { + m.NodeGroupId = v +} + +func (m *DeleteNodeGroupMetadata) SetNodeGroupId(v string) { + m.NodeGroupId = v +} + +func (m *UpdateNodeGroupRequest) SetNodeGroupId(v string) { + m.NodeGroupId = v +} + +func (m *UpdateNodeGroupRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateNodeGroupRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateNodeGroupRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateNodeGroupRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateNodeGroupRequest) SetNodeTemplate(v *NodeTemplate) { + m.NodeTemplate = v +} + +func (m *UpdateNodeGroupRequest) SetScalePolicy(v *ScalePolicy) { + m.ScalePolicy = v +} + +func (m *UpdateNodeGroupRequest) SetAllocationPolicy(v *NodeGroupAllocationPolicy) { + m.AllocationPolicy = v +} + +func (m *UpdateNodeGroupRequest) SetDeployPolicy(v *DeployPolicy) { + m.DeployPolicy = v +} + +func (m *UpdateNodeGroupRequest) SetVersion(v *UpdateVersionSpec) { + m.Version = v +} + +func (m *UpdateNodeGroupRequest) SetMaintenancePolicy(v *NodeGroupMaintenancePolicy) { + m.MaintenancePolicy = v +} + +func (m *UpdateNodeGroupRequest) SetAllowedUnsafeSysctls(v []string) { + m.AllowedUnsafeSysctls = v +} + +func (m *UpdateNodeGroupRequest) SetNodeTaints(v []*Taint) { + m.NodeTaints = v +} + +func (m *UpdateNodeGroupRequest) SetNodeLabels(v map[string]string) { + m.NodeLabels = v +} + +func (m *UpdateNodeGroupMetadata) SetNodeGroupId(v string) { + m.NodeGroupId = v +} + +func (m *CreateNodeGroupRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateNodeGroupRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateNodeGroupRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateNodeGroupRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateNodeGroupRequest) SetNodeTemplate(v *NodeTemplate) { + m.NodeTemplate = v +} + +func (m *CreateNodeGroupRequest) SetScalePolicy(v *ScalePolicy) { + m.ScalePolicy = v +} + +func (m *CreateNodeGroupRequest) SetAllocationPolicy(v *NodeGroupAllocationPolicy) { + m.AllocationPolicy = v +} + +func (m *CreateNodeGroupRequest) SetDeployPolicy(v *DeployPolicy) { + m.DeployPolicy = v +} + +func (m *CreateNodeGroupRequest) SetVersion(v string) { + m.Version = v +} + +func (m *CreateNodeGroupRequest) SetMaintenancePolicy(v *NodeGroupMaintenancePolicy) { + m.MaintenancePolicy = v +} + +func (m *CreateNodeGroupRequest) SetAllowedUnsafeSysctls(v []string) { + m.AllowedUnsafeSysctls = v +} + +func (m *CreateNodeGroupRequest) SetNodeTaints(v []*Taint) { + m.NodeTaints = v +} + +func (m *CreateNodeGroupRequest) SetNodeLabels(v map[string]string) { + m.NodeLabels = v +} + +func (m *CreateNodeGroupMetadata) SetNodeGroupId(v string) { + m.NodeGroupId = v +} + +func (m *AutoUpgradeNodeGroupMetadata) SetNodeGroupId(v string) { + m.NodeGroupId = v +} + +func (m *ListNodeGroupOperationsRequest) SetNodeGroupId(v string) { + m.NodeGroupId = v +} + +func (m *ListNodeGroupOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListNodeGroupOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListNodeGroupOperationsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListNodeGroupOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListNodeGroupOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/version.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/version.pb.go new file mode 100644 index 000000000..6b0d8ba20 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/version.pb.go @@ -0,0 +1,207 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/k8s/v1/version.proto + +package k8s + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type VersionInfo struct { + // Current Kubernetes version, format: major.minor (e.g. 1.15). + CurrentVersion string `protobuf:"bytes,1,opt,name=current_version,json=currentVersion,proto3" json:"current_version,omitempty"` + // Newer revisions may include Kubernetes patches (e.g 1.15.1 -> 1.15.2) as well + // as some internal component updates — new features or bug fixes in Yandex specific + // components either on the master or nodes. + NewRevisionAvailable bool `protobuf:"varint,2,opt,name=new_revision_available,json=newRevisionAvailable,proto3" json:"new_revision_available,omitempty"` + // Description of the changes to be applied when updating to the latest + // revision. Empty if new_revision_available is false. + NewRevisionSummary string `protobuf:"bytes,3,opt,name=new_revision_summary,json=newRevisionSummary,proto3" json:"new_revision_summary,omitempty"` + // The current version is on the deprecation schedule, component (master or node group) + // should be upgraded. + VersionDeprecated bool `protobuf:"varint,4,opt,name=version_deprecated,json=versionDeprecated,proto3" json:"version_deprecated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VersionInfo) Reset() { *m = VersionInfo{} } +func (m *VersionInfo) String() string { return proto.CompactTextString(m) } +func (*VersionInfo) ProtoMessage() {} +func (*VersionInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_4f67617620d3cace, []int{0} +} + +func (m *VersionInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VersionInfo.Unmarshal(m, b) +} +func (m *VersionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VersionInfo.Marshal(b, m, deterministic) +} +func (m *VersionInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_VersionInfo.Merge(m, src) +} +func (m *VersionInfo) XXX_Size() int { + return xxx_messageInfo_VersionInfo.Size(m) +} +func (m *VersionInfo) XXX_DiscardUnknown() { + xxx_messageInfo_VersionInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_VersionInfo proto.InternalMessageInfo + +func (m *VersionInfo) GetCurrentVersion() string { + if m != nil { + return m.CurrentVersion + } + return "" +} + +func (m *VersionInfo) GetNewRevisionAvailable() bool { + if m != nil { + return m.NewRevisionAvailable + } + return false +} + +func (m *VersionInfo) GetNewRevisionSummary() string { + if m != nil { + return m.NewRevisionSummary + } + return "" +} + +func (m *VersionInfo) GetVersionDeprecated() bool { + if m != nil { + return m.VersionDeprecated + } + return false +} + +type UpdateVersionSpec struct { + // Types that are valid to be assigned to Specifier: + // *UpdateVersionSpec_Version + // *UpdateVersionSpec_LatestRevision + Specifier isUpdateVersionSpec_Specifier `protobuf_oneof:"specifier"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateVersionSpec) Reset() { *m = UpdateVersionSpec{} } +func (m *UpdateVersionSpec) String() string { return proto.CompactTextString(m) } +func (*UpdateVersionSpec) ProtoMessage() {} +func (*UpdateVersionSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_4f67617620d3cace, []int{1} +} + +func (m *UpdateVersionSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateVersionSpec.Unmarshal(m, b) +} +func (m *UpdateVersionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateVersionSpec.Marshal(b, m, deterministic) +} +func (m *UpdateVersionSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateVersionSpec.Merge(m, src) +} +func (m *UpdateVersionSpec) XXX_Size() int { + return xxx_messageInfo_UpdateVersionSpec.Size(m) +} +func (m *UpdateVersionSpec) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateVersionSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateVersionSpec proto.InternalMessageInfo + +type isUpdateVersionSpec_Specifier interface { + isUpdateVersionSpec_Specifier() +} + +type UpdateVersionSpec_Version struct { + Version string `protobuf:"bytes,1,opt,name=version,proto3,oneof"` +} + +type UpdateVersionSpec_LatestRevision struct { + LatestRevision bool `protobuf:"varint,2,opt,name=latest_revision,json=latestRevision,proto3,oneof"` +} + +func (*UpdateVersionSpec_Version) isUpdateVersionSpec_Specifier() {} + +func (*UpdateVersionSpec_LatestRevision) isUpdateVersionSpec_Specifier() {} + +func (m *UpdateVersionSpec) GetSpecifier() isUpdateVersionSpec_Specifier { + if m != nil { + return m.Specifier + } + return nil +} + +func (m *UpdateVersionSpec) GetVersion() string { + if x, ok := m.GetSpecifier().(*UpdateVersionSpec_Version); ok { + return x.Version + } + return "" +} + +func (m *UpdateVersionSpec) GetLatestRevision() bool { + if x, ok := m.GetSpecifier().(*UpdateVersionSpec_LatestRevision); ok { + return x.LatestRevision + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*UpdateVersionSpec) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*UpdateVersionSpec_Version)(nil), + (*UpdateVersionSpec_LatestRevision)(nil), + } +} + +func init() { + proto.RegisterType((*VersionInfo)(nil), "yandex.cloud.k8s.v1.VersionInfo") + proto.RegisterType((*UpdateVersionSpec)(nil), "yandex.cloud.k8s.v1.UpdateVersionSpec") +} + +func init() { + proto.RegisterFile("yandex/cloud/k8s/v1/version.proto", fileDescriptor_4f67617620d3cace) +} + +var fileDescriptor_4f67617620d3cace = []byte{ + // 323 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x41, 0x4f, 0xc2, 0x30, + 0x14, 0xc7, 0x99, 0x12, 0x95, 0x9a, 0x40, 0xa8, 0x44, 0x17, 0x12, 0x13, 0xe4, 0x22, 0x1e, 0xd8, + 0x24, 0x7a, 0x20, 0xe1, 0x24, 0xf1, 0x80, 0xd7, 0x11, 0x39, 0x78, 0x59, 0xca, 0xf6, 0xc0, 0x86, + 0xad, 0x6d, 0xda, 0xae, 0xc8, 0xb7, 0xd3, 0x0f, 0xe0, 0x77, 0x32, 0xae, 0x85, 0xb8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x43, 0x28, 0x3b, 0xc0, 0xac, 0x16, 0x35, 0x2d, 0xd8, 0x27, 0x9a, 0xb6, 0x51, + 0x43, 0x09, 0x48, 0xe8, 0x8a, 0x82, 0xc4, 0xf5, 0xcf, 0xaf, 0x91, 0x37, 0x5d, 0xa0, 0xab, 0xca, + 0xd2, 0x89, 0xa0, 0x6e, 0xf1, 0x6f, 0x93, 0x35, 0xd5, 0xef, 0xc5, 0x32, 0x48, 0x78, 0x1e, 0x5a, + 0xcd, 0xd0, 0xde, 0x60, 0xcd, 0x87, 0x6b, 0x60, 0xe5, 0xfa, 0xc3, 0x7f, 0x8e, 0x3a, 0xd9, 0x8c, + 0xd5, 0xf2, 0xa4, 0xc4, 0x0f, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x62, 0xab, 0x18, 0x2d, 0xf6, + 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/version.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/version.pbext.go new file mode 100644 index 000000000..95407e030 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/version.pbext.go @@ -0,0 +1,37 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package k8s + +func (m *VersionInfo) SetCurrentVersion(v string) { + m.CurrentVersion = v +} + +func (m *VersionInfo) SetNewRevisionAvailable(v bool) { + m.NewRevisionAvailable = v +} + +func (m *VersionInfo) SetNewRevisionSummary(v string) { + m.NewRevisionSummary = v +} + +func (m *VersionInfo) SetVersionDeprecated(v bool) { + m.VersionDeprecated = v +} + +type UpdateVersionSpec_Specifier = isUpdateVersionSpec_Specifier + +func (m *UpdateVersionSpec) SetSpecifier(v UpdateVersionSpec_Specifier) { + m.Specifier = v +} + +func (m *UpdateVersionSpec) SetVersion(v string) { + m.Specifier = &UpdateVersionSpec_Version{ + Version: v, + } +} + +func (m *UpdateVersionSpec) SetLatestRevision(v bool) { + m.Specifier = &UpdateVersionSpec_LatestRevision{ + LatestRevision: v, + } +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/version_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/version_service.pb.go new file mode 100644 index 000000000..a02efb893 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/version_service.pb.go @@ -0,0 +1,265 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/k8s/v1/version_service.proto + +package k8s + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ListVersionsRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListVersionsRequest) Reset() { *m = ListVersionsRequest{} } +func (m *ListVersionsRequest) String() string { return proto.CompactTextString(m) } +func (*ListVersionsRequest) ProtoMessage() {} +func (*ListVersionsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_fdec834344f5858f, []int{0} +} + +func (m *ListVersionsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListVersionsRequest.Unmarshal(m, b) +} +func (m *ListVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListVersionsRequest.Marshal(b, m, deterministic) +} +func (m *ListVersionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListVersionsRequest.Merge(m, src) +} +func (m *ListVersionsRequest) XXX_Size() int { + return xxx_messageInfo_ListVersionsRequest.Size(m) +} +func (m *ListVersionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListVersionsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListVersionsRequest proto.InternalMessageInfo + +type ListVersionsResponse struct { + // Versions available in the specified release channel. + AvailableVersions []*AvailableVersions `protobuf:"bytes,1,rep,name=available_versions,json=availableVersions,proto3" json:"available_versions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListVersionsResponse) Reset() { *m = ListVersionsResponse{} } +func (m *ListVersionsResponse) String() string { return proto.CompactTextString(m) } +func (*ListVersionsResponse) ProtoMessage() {} +func (*ListVersionsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_fdec834344f5858f, []int{1} +} + +func (m *ListVersionsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListVersionsResponse.Unmarshal(m, b) +} +func (m *ListVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListVersionsResponse.Marshal(b, m, deterministic) +} +func (m *ListVersionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListVersionsResponse.Merge(m, src) +} +func (m *ListVersionsResponse) XXX_Size() int { + return xxx_messageInfo_ListVersionsResponse.Size(m) +} +func (m *ListVersionsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListVersionsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListVersionsResponse proto.InternalMessageInfo + +func (m *ListVersionsResponse) GetAvailableVersions() []*AvailableVersions { + if m != nil { + return m.AvailableVersions + } + return nil +} + +type AvailableVersions struct { + // Release channel: `RAPID`, `REGULAR` or `STABLE`. For more details see [documentation](https://cloud.yandex.ru/docs/managed-kubernetes/concepts/release-channels-and-updates). + ReleaseChannel ReleaseChannel `protobuf:"varint,1,opt,name=release_channel,json=releaseChannel,proto3,enum=yandex.cloud.k8s.v1.ReleaseChannel" json:"release_channel,omitempty"` + // Version of Kubernetes components. + Versions []string `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AvailableVersions) Reset() { *m = AvailableVersions{} } +func (m *AvailableVersions) String() string { return proto.CompactTextString(m) } +func (*AvailableVersions) ProtoMessage() {} +func (*AvailableVersions) Descriptor() ([]byte, []int) { + return fileDescriptor_fdec834344f5858f, []int{2} +} + +func (m *AvailableVersions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AvailableVersions.Unmarshal(m, b) +} +func (m *AvailableVersions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AvailableVersions.Marshal(b, m, deterministic) +} +func (m *AvailableVersions) XXX_Merge(src proto.Message) { + xxx_messageInfo_AvailableVersions.Merge(m, src) +} +func (m *AvailableVersions) XXX_Size() int { + return xxx_messageInfo_AvailableVersions.Size(m) +} +func (m *AvailableVersions) XXX_DiscardUnknown() { + xxx_messageInfo_AvailableVersions.DiscardUnknown(m) +} + +var xxx_messageInfo_AvailableVersions proto.InternalMessageInfo + +func (m *AvailableVersions) GetReleaseChannel() ReleaseChannel { + if m != nil { + return m.ReleaseChannel + } + return ReleaseChannel_RELEASE_CHANNEL_UNSPECIFIED +} + +func (m *AvailableVersions) GetVersions() []string { + if m != nil { + return m.Versions + } + return nil +} + +func init() { + proto.RegisterType((*ListVersionsRequest)(nil), "yandex.cloud.k8s.v1.ListVersionsRequest") + proto.RegisterType((*ListVersionsResponse)(nil), "yandex.cloud.k8s.v1.ListVersionsResponse") + proto.RegisterType((*AvailableVersions)(nil), "yandex.cloud.k8s.v1.AvailableVersions") +} + +func init() { + proto.RegisterFile("yandex/cloud/k8s/v1/version_service.proto", fileDescriptor_fdec834344f5858f) +} + +var fileDescriptor_fdec834344f5858f = []byte{ + // 353 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x4a, 0xeb, 0x40, + 0x14, 0x86, 0x49, 0x7b, 0xb9, 0xdc, 0x3b, 0x42, 0xa5, 0x53, 0xc5, 0x12, 0x04, 0xdb, 0x08, 0x9a, + 0x2e, 0x9a, 0xa1, 0x75, 0x53, 0xe8, 0x4a, 0xdd, 0x76, 0x15, 0xb1, 0x0b, 0x37, 0x65, 0x92, 0x1e, + 0xd2, 0x21, 0xe9, 0x4c, 0x9c, 0x33, 0x09, 0xba, 0x70, 0x23, 0xbe, 0x81, 0x0b, 0x1f, 0xcc, 0x57, + 0xf0, 0x41, 0xc4, 0x4e, 0x2d, 0x56, 0xb3, 0x70, 0x79, 0xce, 0x7c, 0xf3, 0xff, 0x87, 0xff, 0x1c, + 0xd2, 0xbb, 0xe7, 0x72, 0x0e, 0x77, 0x2c, 0xce, 0x54, 0x31, 0x67, 0xe9, 0x08, 0x59, 0x39, 0x60, + 0x25, 0x68, 0x14, 0x4a, 0xce, 0x10, 0x74, 0x29, 0x62, 0x08, 0x72, 0xad, 0x8c, 0xa2, 0x2d, 0x8b, + 0x06, 0x2b, 0x34, 0x48, 0x47, 0x18, 0x94, 0x03, 0xf7, 0x30, 0x51, 0x2a, 0xc9, 0x80, 0xf1, 0x5c, + 0x30, 0x2e, 0xa5, 0x32, 0xdc, 0x08, 0x25, 0xd1, 0x7e, 0x71, 0xbb, 0x55, 0xea, 0x71, 0x56, 0xa0, + 0x01, 0x6d, 0x11, 0x6f, 0x9f, 0xb4, 0x26, 0x02, 0xcd, 0xd4, 0x5a, 0x62, 0x08, 0xb7, 0x05, 0xa0, + 0xf1, 0x96, 0x64, 0x6f, 0xbb, 0x8d, 0xb9, 0x92, 0x08, 0xf4, 0x9a, 0x50, 0x5e, 0x72, 0x91, 0xf1, + 0x28, 0x83, 0xd9, 0x7a, 0x4e, 0x6c, 0x3b, 0x9d, 0xba, 0xbf, 0x33, 0x3c, 0x09, 0x2a, 0x26, 0x0c, + 0xce, 0x3f, 0xf1, 0x8d, 0x56, 0x93, 0x7f, 0x6f, 0x79, 0x0f, 0xa4, 0xf9, 0x83, 0xa3, 0x13, 0xb2, + 0xab, 0x21, 0x03, 0x8e, 0x30, 0x8b, 0x17, 0x5c, 0x4a, 0xc8, 0xda, 0x4e, 0xc7, 0xf1, 0x1b, 0xc3, + 0xe3, 0x4a, 0xa3, 0xd0, 0xb2, 0x97, 0x16, 0x0d, 0x1b, 0x7a, 0xab, 0xa6, 0x2e, 0xf9, 0xb7, 0x99, + 0xb7, 0xd6, 0xa9, 0xfb, 0xff, 0xc3, 0x4d, 0x3d, 0x7c, 0x71, 0x48, 0x63, 0x6d, 0x7b, 0x65, 0x33, + 0xa7, 0x4f, 0x0e, 0xf9, 0xf3, 0x91, 0x00, 0xf5, 0x2b, 0xcd, 0x2a, 0x32, 0x73, 0x7b, 0xbf, 0x20, + 0x6d, 0x8c, 0xde, 0xe9, 0xe3, 0xeb, 0xdb, 0x73, 0xad, 0x4b, 0x8f, 0xd8, 0x92, 0x4b, 0x9e, 0xc0, + 0xbc, 0x9f, 0x16, 0x11, 0x68, 0x09, 0x06, 0xbe, 0x5e, 0x00, 0x5e, 0x4c, 0xc9, 0xc1, 0x96, 0x28, + 0xcf, 0xc5, 0x5a, 0xf8, 0x66, 0x9c, 0x08, 0xb3, 0x28, 0xa2, 0x20, 0x56, 0x4b, 0x66, 0x99, 0xbe, + 0xdd, 0x73, 0xa2, 0xfa, 0x09, 0xc8, 0xd5, 0x7a, 0x59, 0xc5, 0x01, 0x8c, 0xd3, 0x11, 0x46, 0x7f, + 0x57, 0xcf, 0x67, 0xef, 0x01, 0x00, 0x00, 0xff, 0xff, 0x4b, 0x2f, 0xe5, 0x4d, 0x80, 0x02, 0x00, + 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// VersionServiceClient is the client API for VersionService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type VersionServiceClient interface { + // Retrieves the list of versions in the specified release channel. + List(ctx context.Context, in *ListVersionsRequest, opts ...grpc.CallOption) (*ListVersionsResponse, error) +} + +type versionServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewVersionServiceClient(cc grpc.ClientConnInterface) VersionServiceClient { + return &versionServiceClient{cc} +} + +func (c *versionServiceClient) List(ctx context.Context, in *ListVersionsRequest, opts ...grpc.CallOption) (*ListVersionsResponse, error) { + out := new(ListVersionsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.k8s.v1.VersionService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// VersionServiceServer is the server API for VersionService service. +type VersionServiceServer interface { + // Retrieves the list of versions in the specified release channel. + List(context.Context, *ListVersionsRequest) (*ListVersionsResponse, error) +} + +// UnimplementedVersionServiceServer can be embedded to have forward compatible implementations. +type UnimplementedVersionServiceServer struct { +} + +func (*UnimplementedVersionServiceServer) List(ctx context.Context, req *ListVersionsRequest) (*ListVersionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} + +func RegisterVersionServiceServer(s *grpc.Server, srv VersionServiceServer) { + s.RegisterService(&_VersionService_serviceDesc, srv) +} + +func _VersionService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListVersionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VersionServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.k8s.v1.VersionService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VersionServiceServer).List(ctx, req.(*ListVersionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _VersionService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.k8s.v1.VersionService", + HandlerType: (*VersionServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "List", + Handler: _VersionService_List_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/k8s/v1/version_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/version_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/version_service.pbext.go new file mode 100644 index 000000000..0f3fee283 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1/version_service.pbext.go @@ -0,0 +1,15 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package k8s + +func (m *ListVersionsResponse) SetAvailableVersions(v []*AvailableVersions) { + m.AvailableVersions = v +} + +func (m *AvailableVersions) SetReleaseChannel(v ReleaseChannel) { + m.ReleaseChannel = v +} + +func (m *AvailableVersions) SetVersions(v []string) { + m.Versions = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_crypto_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_crypto_service.pb.go new file mode 100644 index 000000000..d9ef23155 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_crypto_service.pb.go @@ -0,0 +1,855 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/kms/v1/symmetric_crypto_service.proto + +package kms + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type SymmetricEncryptRequest struct { + // ID of the symmetric KMS key to use for encryption. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // ID of the key version to encrypt plaintext with. + // Defaults to the primary version if not specified. + VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` + // Additional authenticated data (AAD context), optional. + // If specified, this data will be required for decryption with the [SymmetricDecryptRequest]. + // Should be encoded with base64. + AadContext []byte `protobuf:"bytes,3,opt,name=aad_context,json=aadContext,proto3" json:"aad_context,omitempty"` + // Plaintext to be encrypted. + // Should be encoded with base64. + Plaintext []byte `protobuf:"bytes,4,opt,name=plaintext,proto3" json:"plaintext,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SymmetricEncryptRequest) Reset() { *m = SymmetricEncryptRequest{} } +func (m *SymmetricEncryptRequest) String() string { return proto.CompactTextString(m) } +func (*SymmetricEncryptRequest) ProtoMessage() {} +func (*SymmetricEncryptRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a384b1425a1aa84e, []int{0} +} + +func (m *SymmetricEncryptRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SymmetricEncryptRequest.Unmarshal(m, b) +} +func (m *SymmetricEncryptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SymmetricEncryptRequest.Marshal(b, m, deterministic) +} +func (m *SymmetricEncryptRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SymmetricEncryptRequest.Merge(m, src) +} +func (m *SymmetricEncryptRequest) XXX_Size() int { + return xxx_messageInfo_SymmetricEncryptRequest.Size(m) +} +func (m *SymmetricEncryptRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SymmetricEncryptRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SymmetricEncryptRequest proto.InternalMessageInfo + +func (m *SymmetricEncryptRequest) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *SymmetricEncryptRequest) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +func (m *SymmetricEncryptRequest) GetAadContext() []byte { + if m != nil { + return m.AadContext + } + return nil +} + +func (m *SymmetricEncryptRequest) GetPlaintext() []byte { + if m != nil { + return m.Plaintext + } + return nil +} + +type SymmetricEncryptResponse struct { + // ID of the symmetric KMS key that was used for encryption. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // ID of the key version that was used for encryption. + VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` + // Resulting ciphertext. + Ciphertext []byte `protobuf:"bytes,3,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SymmetricEncryptResponse) Reset() { *m = SymmetricEncryptResponse{} } +func (m *SymmetricEncryptResponse) String() string { return proto.CompactTextString(m) } +func (*SymmetricEncryptResponse) ProtoMessage() {} +func (*SymmetricEncryptResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a384b1425a1aa84e, []int{1} +} + +func (m *SymmetricEncryptResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SymmetricEncryptResponse.Unmarshal(m, b) +} +func (m *SymmetricEncryptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SymmetricEncryptResponse.Marshal(b, m, deterministic) +} +func (m *SymmetricEncryptResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SymmetricEncryptResponse.Merge(m, src) +} +func (m *SymmetricEncryptResponse) XXX_Size() int { + return xxx_messageInfo_SymmetricEncryptResponse.Size(m) +} +func (m *SymmetricEncryptResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SymmetricEncryptResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SymmetricEncryptResponse proto.InternalMessageInfo + +func (m *SymmetricEncryptResponse) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *SymmetricEncryptResponse) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +func (m *SymmetricEncryptResponse) GetCiphertext() []byte { + if m != nil { + return m.Ciphertext + } + return nil +} + +type SymmetricDecryptRequest struct { + // ID of the symmetric KMS key to use for decryption. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // Additional authenticated data, must be the same as was provided + // in the corresponding [SymmetricEncryptRequest]. + // Should be encoded with base64. + AadContext []byte `protobuf:"bytes,2,opt,name=aad_context,json=aadContext,proto3" json:"aad_context,omitempty"` + // Ciphertext to be decrypted. + // Should be encoded with base64. + Ciphertext []byte `protobuf:"bytes,3,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SymmetricDecryptRequest) Reset() { *m = SymmetricDecryptRequest{} } +func (m *SymmetricDecryptRequest) String() string { return proto.CompactTextString(m) } +func (*SymmetricDecryptRequest) ProtoMessage() {} +func (*SymmetricDecryptRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a384b1425a1aa84e, []int{2} +} + +func (m *SymmetricDecryptRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SymmetricDecryptRequest.Unmarshal(m, b) +} +func (m *SymmetricDecryptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SymmetricDecryptRequest.Marshal(b, m, deterministic) +} +func (m *SymmetricDecryptRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SymmetricDecryptRequest.Merge(m, src) +} +func (m *SymmetricDecryptRequest) XXX_Size() int { + return xxx_messageInfo_SymmetricDecryptRequest.Size(m) +} +func (m *SymmetricDecryptRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SymmetricDecryptRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SymmetricDecryptRequest proto.InternalMessageInfo + +func (m *SymmetricDecryptRequest) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *SymmetricDecryptRequest) GetAadContext() []byte { + if m != nil { + return m.AadContext + } + return nil +} + +func (m *SymmetricDecryptRequest) GetCiphertext() []byte { + if m != nil { + return m.Ciphertext + } + return nil +} + +type SymmetricDecryptResponse struct { + // ID of the symmetric KMS key that was used for decryption. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // ID of the key version that was used for decryption. + VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` + // Decrypted plaintext. + Plaintext []byte `protobuf:"bytes,3,opt,name=plaintext,proto3" json:"plaintext,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SymmetricDecryptResponse) Reset() { *m = SymmetricDecryptResponse{} } +func (m *SymmetricDecryptResponse) String() string { return proto.CompactTextString(m) } +func (*SymmetricDecryptResponse) ProtoMessage() {} +func (*SymmetricDecryptResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a384b1425a1aa84e, []int{3} +} + +func (m *SymmetricDecryptResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SymmetricDecryptResponse.Unmarshal(m, b) +} +func (m *SymmetricDecryptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SymmetricDecryptResponse.Marshal(b, m, deterministic) +} +func (m *SymmetricDecryptResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SymmetricDecryptResponse.Merge(m, src) +} +func (m *SymmetricDecryptResponse) XXX_Size() int { + return xxx_messageInfo_SymmetricDecryptResponse.Size(m) +} +func (m *SymmetricDecryptResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SymmetricDecryptResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SymmetricDecryptResponse proto.InternalMessageInfo + +func (m *SymmetricDecryptResponse) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *SymmetricDecryptResponse) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +func (m *SymmetricDecryptResponse) GetPlaintext() []byte { + if m != nil { + return m.Plaintext + } + return nil +} + +type GenerateDataKeyRequest struct { + // ID of the symmetric KMS key that the generated data key should be encrypted with. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // ID of the key version to encrypt the generated data key with. + // Defaults to the primary version if not specified. + VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` + // Additional authenticated data (AAD context), optional. + // If specified, this data will be required for decryption with the [SymmetricDecryptRequest]. + // Should be encoded with base64. + AadContext []byte `protobuf:"bytes,3,opt,name=aad_context,json=aadContext,proto3" json:"aad_context,omitempty"` + // Encryption algorithm and key length for the generated data key. + DataKeySpec SymmetricAlgorithm `protobuf:"varint,4,opt,name=data_key_spec,json=dataKeySpec,proto3,enum=yandex.cloud.kms.v1.SymmetricAlgorithm" json:"data_key_spec,omitempty"` + // If `true`, the method won't return the data key as plaintext. + // Default value is `false`. + SkipPlaintext bool `protobuf:"varint,5,opt,name=skip_plaintext,json=skipPlaintext,proto3" json:"skip_plaintext,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GenerateDataKeyRequest) Reset() { *m = GenerateDataKeyRequest{} } +func (m *GenerateDataKeyRequest) String() string { return proto.CompactTextString(m) } +func (*GenerateDataKeyRequest) ProtoMessage() {} +func (*GenerateDataKeyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a384b1425a1aa84e, []int{4} +} + +func (m *GenerateDataKeyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateDataKeyRequest.Unmarshal(m, b) +} +func (m *GenerateDataKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateDataKeyRequest.Marshal(b, m, deterministic) +} +func (m *GenerateDataKeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateDataKeyRequest.Merge(m, src) +} +func (m *GenerateDataKeyRequest) XXX_Size() int { + return xxx_messageInfo_GenerateDataKeyRequest.Size(m) +} +func (m *GenerateDataKeyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateDataKeyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateDataKeyRequest proto.InternalMessageInfo + +func (m *GenerateDataKeyRequest) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *GenerateDataKeyRequest) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +func (m *GenerateDataKeyRequest) GetAadContext() []byte { + if m != nil { + return m.AadContext + } + return nil +} + +func (m *GenerateDataKeyRequest) GetDataKeySpec() SymmetricAlgorithm { + if m != nil { + return m.DataKeySpec + } + return SymmetricAlgorithm_SYMMETRIC_ALGORITHM_UNSPECIFIED +} + +func (m *GenerateDataKeyRequest) GetSkipPlaintext() bool { + if m != nil { + return m.SkipPlaintext + } + return false +} + +type GenerateDataKeyResponse struct { + // ID of the symmetric KMS key that was used to encrypt the generated data key. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // ID of the key version that was used for encryption. + VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` + // Generated data key as plaintext. + // The field is empty, if the [GenerateDataKeyRequest.skip_plaintext] parameter + // was set to `true`. + DataKeyPlaintext []byte `protobuf:"bytes,3,opt,name=data_key_plaintext,json=dataKeyPlaintext,proto3" json:"data_key_plaintext,omitempty"` + // The encrypted data key. + DataKeyCiphertext []byte `protobuf:"bytes,4,opt,name=data_key_ciphertext,json=dataKeyCiphertext,proto3" json:"data_key_ciphertext,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GenerateDataKeyResponse) Reset() { *m = GenerateDataKeyResponse{} } +func (m *GenerateDataKeyResponse) String() string { return proto.CompactTextString(m) } +func (*GenerateDataKeyResponse) ProtoMessage() {} +func (*GenerateDataKeyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a384b1425a1aa84e, []int{5} +} + +func (m *GenerateDataKeyResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateDataKeyResponse.Unmarshal(m, b) +} +func (m *GenerateDataKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateDataKeyResponse.Marshal(b, m, deterministic) +} +func (m *GenerateDataKeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateDataKeyResponse.Merge(m, src) +} +func (m *GenerateDataKeyResponse) XXX_Size() int { + return xxx_messageInfo_GenerateDataKeyResponse.Size(m) +} +func (m *GenerateDataKeyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateDataKeyResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateDataKeyResponse proto.InternalMessageInfo + +func (m *GenerateDataKeyResponse) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *GenerateDataKeyResponse) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +func (m *GenerateDataKeyResponse) GetDataKeyPlaintext() []byte { + if m != nil { + return m.DataKeyPlaintext + } + return nil +} + +func (m *GenerateDataKeyResponse) GetDataKeyCiphertext() []byte { + if m != nil { + return m.DataKeyCiphertext + } + return nil +} + +type SymmetricReEncryptRequest struct { + // ID of the new key to be used for encryption. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // ID of the version of the new key to be used for encryption. + // Defaults to the primary version if not specified. + VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` + // Additional authenticated data to be required for decryption. + // Should be encoded with base64. + AadContext []byte `protobuf:"bytes,3,opt,name=aad_context,json=aadContext,proto3" json:"aad_context,omitempty"` + // ID of the key that the ciphertext is currently encrypted with. May be the same as for the new key. + SourceKeyId string `protobuf:"bytes,4,opt,name=source_key_id,json=sourceKeyId,proto3" json:"source_key_id,omitempty"` + // Additional authenticated data provided with the initial encryption request. + // Should be encoded with base64. + SourceAadContext []byte `protobuf:"bytes,5,opt,name=source_aad_context,json=sourceAadContext,proto3" json:"source_aad_context,omitempty"` + // Ciphertext to re-encrypt. + // Should be encoded with base64. + Ciphertext []byte `protobuf:"bytes,6,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SymmetricReEncryptRequest) Reset() { *m = SymmetricReEncryptRequest{} } +func (m *SymmetricReEncryptRequest) String() string { return proto.CompactTextString(m) } +func (*SymmetricReEncryptRequest) ProtoMessage() {} +func (*SymmetricReEncryptRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a384b1425a1aa84e, []int{6} +} + +func (m *SymmetricReEncryptRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SymmetricReEncryptRequest.Unmarshal(m, b) +} +func (m *SymmetricReEncryptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SymmetricReEncryptRequest.Marshal(b, m, deterministic) +} +func (m *SymmetricReEncryptRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SymmetricReEncryptRequest.Merge(m, src) +} +func (m *SymmetricReEncryptRequest) XXX_Size() int { + return xxx_messageInfo_SymmetricReEncryptRequest.Size(m) +} +func (m *SymmetricReEncryptRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SymmetricReEncryptRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SymmetricReEncryptRequest proto.InternalMessageInfo + +func (m *SymmetricReEncryptRequest) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *SymmetricReEncryptRequest) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +func (m *SymmetricReEncryptRequest) GetAadContext() []byte { + if m != nil { + return m.AadContext + } + return nil +} + +func (m *SymmetricReEncryptRequest) GetSourceKeyId() string { + if m != nil { + return m.SourceKeyId + } + return "" +} + +func (m *SymmetricReEncryptRequest) GetSourceAadContext() []byte { + if m != nil { + return m.SourceAadContext + } + return nil +} + +func (m *SymmetricReEncryptRequest) GetCiphertext() []byte { + if m != nil { + return m.Ciphertext + } + return nil +} + +type SymmetricReEncryptResponse struct { + // ID of the key that the ciphertext is encrypted with now. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // ID of key version that was used for encryption. + VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` + // ID of the key that the ciphertext was encrypted with previously. + SourceKeyId string `protobuf:"bytes,3,opt,name=source_key_id,json=sourceKeyId,proto3" json:"source_key_id,omitempty"` + // ID of the key version that was used to decrypt the re-encrypted ciphertext. + SourceVersionId string `protobuf:"bytes,4,opt,name=source_version_id,json=sourceVersionId,proto3" json:"source_version_id,omitempty"` + // Resulting re-encrypted ciphertext. + Ciphertext []byte `protobuf:"bytes,5,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SymmetricReEncryptResponse) Reset() { *m = SymmetricReEncryptResponse{} } +func (m *SymmetricReEncryptResponse) String() string { return proto.CompactTextString(m) } +func (*SymmetricReEncryptResponse) ProtoMessage() {} +func (*SymmetricReEncryptResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a384b1425a1aa84e, []int{7} +} + +func (m *SymmetricReEncryptResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SymmetricReEncryptResponse.Unmarshal(m, b) +} +func (m *SymmetricReEncryptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SymmetricReEncryptResponse.Marshal(b, m, deterministic) +} +func (m *SymmetricReEncryptResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SymmetricReEncryptResponse.Merge(m, src) +} +func (m *SymmetricReEncryptResponse) XXX_Size() int { + return xxx_messageInfo_SymmetricReEncryptResponse.Size(m) +} +func (m *SymmetricReEncryptResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SymmetricReEncryptResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SymmetricReEncryptResponse proto.InternalMessageInfo + +func (m *SymmetricReEncryptResponse) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *SymmetricReEncryptResponse) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +func (m *SymmetricReEncryptResponse) GetSourceKeyId() string { + if m != nil { + return m.SourceKeyId + } + return "" +} + +func (m *SymmetricReEncryptResponse) GetSourceVersionId() string { + if m != nil { + return m.SourceVersionId + } + return "" +} + +func (m *SymmetricReEncryptResponse) GetCiphertext() []byte { + if m != nil { + return m.Ciphertext + } + return nil +} + +func init() { + proto.RegisterType((*SymmetricEncryptRequest)(nil), "yandex.cloud.kms.v1.SymmetricEncryptRequest") + proto.RegisterType((*SymmetricEncryptResponse)(nil), "yandex.cloud.kms.v1.SymmetricEncryptResponse") + proto.RegisterType((*SymmetricDecryptRequest)(nil), "yandex.cloud.kms.v1.SymmetricDecryptRequest") + proto.RegisterType((*SymmetricDecryptResponse)(nil), "yandex.cloud.kms.v1.SymmetricDecryptResponse") + proto.RegisterType((*GenerateDataKeyRequest)(nil), "yandex.cloud.kms.v1.GenerateDataKeyRequest") + proto.RegisterType((*GenerateDataKeyResponse)(nil), "yandex.cloud.kms.v1.GenerateDataKeyResponse") + proto.RegisterType((*SymmetricReEncryptRequest)(nil), "yandex.cloud.kms.v1.SymmetricReEncryptRequest") + proto.RegisterType((*SymmetricReEncryptResponse)(nil), "yandex.cloud.kms.v1.SymmetricReEncryptResponse") +} + +func init() { + proto.RegisterFile("yandex/cloud/kms/v1/symmetric_crypto_service.proto", fileDescriptor_a384b1425a1aa84e) +} + +var fileDescriptor_a384b1425a1aa84e = []byte{ + // 770 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x96, 0xbf, 0x4f, 0xdb, 0x40, + 0x14, 0xc7, 0xe5, 0x90, 0x04, 0xf2, 0xf8, 0x6d, 0x54, 0xa0, 0x11, 0xb4, 0xc8, 0x05, 0x11, 0x05, + 0x62, 0x93, 0xa0, 0xb6, 0x94, 0x1f, 0x03, 0x81, 0xaa, 0x42, 0x2c, 0x95, 0x91, 0x18, 0xba, 0x44, + 0x87, 0x7d, 0x0a, 0x96, 0x13, 0x9f, 0x6b, 0x3b, 0x11, 0x56, 0xd5, 0xa5, 0x4b, 0x2b, 0xa6, 0x56, + 0x5d, 0x3a, 0x75, 0xee, 0xd2, 0x7f, 0xa2, 0x1d, 0xca, 0xde, 0x7f, 0xa1, 0x43, 0xff, 0x86, 0x4e, + 0x55, 0xee, 0x2e, 0x8e, 0x9d, 0x98, 0x40, 0x45, 0x07, 0x56, 0xdf, 0xf7, 0xf9, 0x7d, 0xde, 0xf7, + 0xee, 0xbd, 0x3b, 0x28, 0xf9, 0xc8, 0xd2, 0xf1, 0x99, 0xa2, 0xd5, 0x48, 0x43, 0x57, 0xcc, 0xba, + 0xab, 0x34, 0x8b, 0x8a, 0xeb, 0xd7, 0xeb, 0xd8, 0x73, 0x0c, 0xad, 0xa2, 0x39, 0xbe, 0xed, 0x91, + 0x8a, 0x8b, 0x9d, 0xa6, 0xa1, 0x61, 0xd9, 0x76, 0x88, 0x47, 0xc4, 0x29, 0x16, 0x23, 0xd3, 0x18, + 0xd9, 0xac, 0xbb, 0x72, 0xb3, 0x98, 0x9d, 0xab, 0x12, 0x52, 0xad, 0x61, 0x05, 0xd9, 0x86, 0x82, + 0x2c, 0x8b, 0x78, 0xc8, 0x33, 0x88, 0xe5, 0xb2, 0x90, 0xec, 0x72, 0xff, 0x34, 0x26, 0xf6, 0xb9, + 0x70, 0x3e, 0x22, 0x6c, 0xa2, 0x9a, 0xa1, 0xd3, 0x1f, 0xb1, 0x65, 0xe9, 0xbb, 0x00, 0x33, 0x47, + 0xed, 0xb0, 0xa7, 0x16, 0xc5, 0x53, 0xf1, 0xcb, 0x06, 0x76, 0x3d, 0xf1, 0x01, 0xa4, 0x4d, 0xec, + 0x57, 0x0c, 0x7d, 0x56, 0x58, 0x10, 0x72, 0x99, 0xf2, 0xc8, 0xef, 0x1f, 0x45, 0xe1, 0xfc, 0xa2, + 0x98, 0xdc, 0xde, 0x79, 0xb8, 0xa6, 0xa6, 0x4c, 0xec, 0x1f, 0xe8, 0xe2, 0x32, 0x40, 0x13, 0x3b, + 0xae, 0x41, 0xac, 0x96, 0x30, 0x41, 0x85, 0x43, 0x81, 0x28, 0xc3, 0xd7, 0x0e, 0x74, 0x71, 0x05, + 0x86, 0x11, 0xd2, 0x2b, 0x1a, 0xb1, 0x3c, 0x7c, 0xe6, 0xcd, 0x0e, 0x2c, 0x08, 0xb9, 0x91, 0x32, + 0x9c, 0x5f, 0x14, 0xd3, 0xdb, 0x3b, 0x1b, 0xc5, 0x27, 0x25, 0x15, 0x10, 0xd2, 0xf7, 0xd8, 0xaa, + 0x58, 0x80, 0x8c, 0x5d, 0x43, 0x06, 0x93, 0x26, 0xa9, 0x74, 0x9c, 0x67, 0x1f, 0xdc, 0xde,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ca, 0xb5, 0xf5, 0x1c, 0x2c, 0x4f, 0xc1, + 0x16, 0xa5, 0xfb, 0xf1, 0x60, 0x4e, 0x3b, 0xa0, 0x85, 0xf6, 0x59, 0x80, 0xf1, 0xae, 0xd9, 0x23, + 0xae, 0xc4, 0x26, 0x8c, 0x9f, 0xd5, 0xd9, 0xd5, 0xeb, 0x89, 0x39, 0xda, 0x1a, 0x45, 0xcb, 0x4b, + 0x4b, 0xf1, 0x68, 0xd5, 0x68, 0xd8, 0xa6, 0x90, 0x2f, 0x1f, 0xc3, 0x4c, 0x24, 0x01, 0xb2, 0x0d, + 0x9e, 0xe4, 0xc5, 0x56, 0xd5, 0xf0, 0x4e, 0x1b, 0x27, 0xb2, 0x46, 0xea, 0x0a, 0xd3, 0x14, 0xd8, + 0x03, 0xa6, 0x4a, 0x0a, 0x55, 0x6c, 0xd1, 0xb7, 0x8b, 0x12, 0xf3, 0x04, 0xda, 0x32, 0xeb, 0xee, + 0x49, 0x9a, 0x2e, 0xaf, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xd6, 0xc2, 0x9c, 0x0b, 0x8b, 0x09, + 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// SymmetricCryptoServiceClient is the client API for SymmetricCryptoService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type SymmetricCryptoServiceClient interface { + // Encrypts given plaintext with the specified key. + Encrypt(ctx context.Context, in *SymmetricEncryptRequest, opts ...grpc.CallOption) (*SymmetricEncryptResponse, error) + // Decrypts the given ciphertext with the specified key. + Decrypt(ctx context.Context, in *SymmetricDecryptRequest, opts ...grpc.CallOption) (*SymmetricDecryptResponse, error) + // Re-encrypts a ciphertext with the specified KMS key. + ReEncrypt(ctx context.Context, in *SymmetricReEncryptRequest, opts ...grpc.CallOption) (*SymmetricReEncryptResponse, error) + // Generates a new symmetric data encryption key (not a KMS key) and returns + // the generated key as plaintext and as ciphertext encrypted with the specified symmetric KMS key. + GenerateDataKey(ctx context.Context, in *GenerateDataKeyRequest, opts ...grpc.CallOption) (*GenerateDataKeyResponse, error) +} + +type symmetricCryptoServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSymmetricCryptoServiceClient(cc grpc.ClientConnInterface) SymmetricCryptoServiceClient { + return &symmetricCryptoServiceClient{cc} +} + +func (c *symmetricCryptoServiceClient) Encrypt(ctx context.Context, in *SymmetricEncryptRequest, opts ...grpc.CallOption) (*SymmetricEncryptResponse, error) { + out := new(SymmetricEncryptResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricCryptoService/Encrypt", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *symmetricCryptoServiceClient) Decrypt(ctx context.Context, in *SymmetricDecryptRequest, opts ...grpc.CallOption) (*SymmetricDecryptResponse, error) { + out := new(SymmetricDecryptResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricCryptoService/Decrypt", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *symmetricCryptoServiceClient) ReEncrypt(ctx context.Context, in *SymmetricReEncryptRequest, opts ...grpc.CallOption) (*SymmetricReEncryptResponse, error) { + out := new(SymmetricReEncryptResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricCryptoService/ReEncrypt", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *symmetricCryptoServiceClient) GenerateDataKey(ctx context.Context, in *GenerateDataKeyRequest, opts ...grpc.CallOption) (*GenerateDataKeyResponse, error) { + out := new(GenerateDataKeyResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricCryptoService/GenerateDataKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SymmetricCryptoServiceServer is the server API for SymmetricCryptoService service. +type SymmetricCryptoServiceServer interface { + // Encrypts given plaintext with the specified key. + Encrypt(context.Context, *SymmetricEncryptRequest) (*SymmetricEncryptResponse, error) + // Decrypts the given ciphertext with the specified key. + Decrypt(context.Context, *SymmetricDecryptRequest) (*SymmetricDecryptResponse, error) + // Re-encrypts a ciphertext with the specified KMS key. + ReEncrypt(context.Context, *SymmetricReEncryptRequest) (*SymmetricReEncryptResponse, error) + // Generates a new symmetric data encryption key (not a KMS key) and returns + // the generated key as plaintext and as ciphertext encrypted with the specified symmetric KMS key. + GenerateDataKey(context.Context, *GenerateDataKeyRequest) (*GenerateDataKeyResponse, error) +} + +// UnimplementedSymmetricCryptoServiceServer can be embedded to have forward compatible implementations. +type UnimplementedSymmetricCryptoServiceServer struct { +} + +func (*UnimplementedSymmetricCryptoServiceServer) Encrypt(ctx context.Context, req *SymmetricEncryptRequest) (*SymmetricEncryptResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Encrypt not implemented") +} +func (*UnimplementedSymmetricCryptoServiceServer) Decrypt(ctx context.Context, req *SymmetricDecryptRequest) (*SymmetricDecryptResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Decrypt not implemented") +} +func (*UnimplementedSymmetricCryptoServiceServer) ReEncrypt(ctx context.Context, req *SymmetricReEncryptRequest) (*SymmetricReEncryptResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReEncrypt not implemented") +} +func (*UnimplementedSymmetricCryptoServiceServer) GenerateDataKey(ctx context.Context, req *GenerateDataKeyRequest) (*GenerateDataKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GenerateDataKey not implemented") +} + +func RegisterSymmetricCryptoServiceServer(s *grpc.Server, srv SymmetricCryptoServiceServer) { + s.RegisterService(&_SymmetricCryptoService_serviceDesc, srv) +} + +func _SymmetricCryptoService_Encrypt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SymmetricEncryptRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricCryptoServiceServer).Encrypt(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricCryptoService/Encrypt", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricCryptoServiceServer).Encrypt(ctx, req.(*SymmetricEncryptRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SymmetricCryptoService_Decrypt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SymmetricDecryptRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricCryptoServiceServer).Decrypt(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricCryptoService/Decrypt", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricCryptoServiceServer).Decrypt(ctx, req.(*SymmetricDecryptRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SymmetricCryptoService_ReEncrypt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SymmetricReEncryptRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricCryptoServiceServer).ReEncrypt(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricCryptoService/ReEncrypt", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricCryptoServiceServer).ReEncrypt(ctx, req.(*SymmetricReEncryptRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SymmetricCryptoService_GenerateDataKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GenerateDataKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricCryptoServiceServer).GenerateDataKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricCryptoService/GenerateDataKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricCryptoServiceServer).GenerateDataKey(ctx, req.(*GenerateDataKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _SymmetricCryptoService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.kms.v1.SymmetricCryptoService", + HandlerType: (*SymmetricCryptoServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Encrypt", + Handler: _SymmetricCryptoService_Encrypt_Handler, + }, + { + MethodName: "Decrypt", + Handler: _SymmetricCryptoService_Decrypt_Handler, + }, + { + MethodName: "ReEncrypt", + Handler: _SymmetricCryptoService_ReEncrypt_Handler, + }, + { + MethodName: "GenerateDataKey", + Handler: _SymmetricCryptoService_GenerateDataKey_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/kms/v1/symmetric_crypto_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_crypto_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_crypto_service.pbext.go new file mode 100644 index 000000000..c29238420 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_crypto_service.pbext.go @@ -0,0 +1,135 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package kms + +func (m *SymmetricEncryptRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *SymmetricEncryptRequest) SetVersionId(v string) { + m.VersionId = v +} + +func (m *SymmetricEncryptRequest) SetAadContext(v []byte) { + m.AadContext = v +} + +func (m *SymmetricEncryptRequest) SetPlaintext(v []byte) { + m.Plaintext = v +} + +func (m *SymmetricEncryptResponse) SetKeyId(v string) { + m.KeyId = v +} + +func (m *SymmetricEncryptResponse) SetVersionId(v string) { + m.VersionId = v +} + +func (m *SymmetricEncryptResponse) SetCiphertext(v []byte) { + m.Ciphertext = v +} + +func (m *SymmetricDecryptRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *SymmetricDecryptRequest) SetAadContext(v []byte) { + m.AadContext = v +} + +func (m *SymmetricDecryptRequest) SetCiphertext(v []byte) { + m.Ciphertext = v +} + +func (m *SymmetricDecryptResponse) SetKeyId(v string) { + m.KeyId = v +} + +func (m *SymmetricDecryptResponse) SetVersionId(v string) { + m.VersionId = v +} + +func (m *SymmetricDecryptResponse) SetPlaintext(v []byte) { + m.Plaintext = v +} + +func (m *GenerateDataKeyRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *GenerateDataKeyRequest) SetVersionId(v string) { + m.VersionId = v +} + +func (m *GenerateDataKeyRequest) SetAadContext(v []byte) { + m.AadContext = v +} + +func (m *GenerateDataKeyRequest) SetDataKeySpec(v SymmetricAlgorithm) { + m.DataKeySpec = v +} + +func (m *GenerateDataKeyRequest) SetSkipPlaintext(v bool) { + m.SkipPlaintext = v +} + +func (m *GenerateDataKeyResponse) SetKeyId(v string) { + m.KeyId = v +} + +func (m *GenerateDataKeyResponse) SetVersionId(v string) { + m.VersionId = v +} + +func (m *GenerateDataKeyResponse) SetDataKeyPlaintext(v []byte) { + m.DataKeyPlaintext = v +} + +func (m *GenerateDataKeyResponse) SetDataKeyCiphertext(v []byte) { + m.DataKeyCiphertext = v +} + +func (m *SymmetricReEncryptRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *SymmetricReEncryptRequest) SetVersionId(v string) { + m.VersionId = v +} + +func (m *SymmetricReEncryptRequest) SetAadContext(v []byte) { + m.AadContext = v +} + +func (m *SymmetricReEncryptRequest) SetSourceKeyId(v string) { + m.SourceKeyId = v +} + +func (m *SymmetricReEncryptRequest) SetSourceAadContext(v []byte) { + m.SourceAadContext = v +} + +func (m *SymmetricReEncryptRequest) SetCiphertext(v []byte) { + m.Ciphertext = v +} + +func (m *SymmetricReEncryptResponse) SetKeyId(v string) { + m.KeyId = v +} + +func (m *SymmetricReEncryptResponse) SetVersionId(v string) { + m.VersionId = v +} + +func (m *SymmetricReEncryptResponse) SetSourceKeyId(v string) { + m.SourceKeyId = v +} + +func (m *SymmetricReEncryptResponse) SetSourceVersionId(v string) { + m.SourceVersionId = v +} + +func (m *SymmetricReEncryptResponse) SetCiphertext(v []byte) { + m.Ciphertext = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_key.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_key.pb.go new file mode 100644 index 000000000..231236f5d --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_key.pb.go @@ -0,0 +1,421 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/kms/v1/symmetric_key.proto + +package kms + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Supported symmetric encryption algorithms. +type SymmetricAlgorithm int32 + +const ( + SymmetricAlgorithm_SYMMETRIC_ALGORITHM_UNSPECIFIED SymmetricAlgorithm = 0 + // AES algorithm with 128-bit keys. + SymmetricAlgorithm_AES_128 SymmetricAlgorithm = 1 + // AES algorithm with 192-bit keys. + SymmetricAlgorithm_AES_192 SymmetricAlgorithm = 2 + // AES algorithm with 256-bit keys. + SymmetricAlgorithm_AES_256 SymmetricAlgorithm = 3 +) + +var SymmetricAlgorithm_name = map[int32]string{ + 0: "SYMMETRIC_ALGORITHM_UNSPECIFIED", + 1: "AES_128", + 2: "AES_192", + 3: "AES_256", +} + +var SymmetricAlgorithm_value = map[string]int32{ + "SYMMETRIC_ALGORITHM_UNSPECIFIED": 0, + "AES_128": 1, + "AES_192": 2, + "AES_256": 3, +} + +func (x SymmetricAlgorithm) String() string { + return proto.EnumName(SymmetricAlgorithm_name, int32(x)) +} + +func (SymmetricAlgorithm) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_01ef0714cb9d79e1, []int{0} +} + +type SymmetricKey_Status int32 + +const ( + SymmetricKey_STATUS_UNSPECIFIED SymmetricKey_Status = 0 + // The key is being created. + SymmetricKey_CREATING SymmetricKey_Status = 1 + // The key is active and can be used for encryption and decryption. + // Can be set to INACTIVE using the [SymmetricKeyService.Update] method. + SymmetricKey_ACTIVE SymmetricKey_Status = 2 + // The key is inactive and unusable. + // Can be set to ACTIVE using the [SymmetricKeyService.Update] method. + SymmetricKey_INACTIVE SymmetricKey_Status = 3 +) + +var SymmetricKey_Status_name = map[int32]string{ + 0: "STATUS_UNSPECIFIED", + 1: "CREATING", + 2: "ACTIVE", + 3: "INACTIVE", +} + +var SymmetricKey_Status_value = map[string]int32{ + "STATUS_UNSPECIFIED": 0, + "CREATING": 1, + "ACTIVE": 2, + "INACTIVE": 3, +} + +func (x SymmetricKey_Status) String() string { + return proto.EnumName(SymmetricKey_Status_name, int32(x)) +} + +func (SymmetricKey_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_01ef0714cb9d79e1, []int{0, 0} +} + +// Possible version status. +type SymmetricKeyVersion_Status int32 + +const ( + SymmetricKeyVersion_STATUS_UNSPECIFIED SymmetricKeyVersion_Status = 0 + // The version is active and can be used for encryption and decryption. + SymmetricKeyVersion_ACTIVE SymmetricKeyVersion_Status = 1 + // The version is scheduled for destruction, the time when it will be destroyed + // is specified in the [SymmetricKeyVersion.destroy_at] field. + SymmetricKeyVersion_SCHEDULED_FOR_DESTRUCTION SymmetricKeyVersion_Status = 2 + // The version is destroyed and cannot be recovered. + SymmetricKeyVersion_DESTROYED SymmetricKeyVersion_Status = 3 +) + +var SymmetricKeyVersion_Status_name = map[int32]string{ + 0: "STATUS_UNSPECIFIED", + 1: "ACTIVE", + 2: "SCHEDULED_FOR_DESTRUCTION", + 3: "DESTROYED", +} + +var SymmetricKeyVersion_Status_value = map[string]int32{ + "STATUS_UNSPECIFIED": 0, + "ACTIVE": 1, + "SCHEDULED_FOR_DESTRUCTION": 2, + "DESTROYED": 3, +} + +func (x SymmetricKeyVersion_Status) String() string { + return proto.EnumName(SymmetricKeyVersion_Status_name, int32(x)) +} + +func (SymmetricKeyVersion_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_01ef0714cb9d79e1, []int{1, 0} +} + +// A symmetric KMS key that may contain several versions of the cryptographic material. +type SymmetricKey struct { + // ID of the key. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // ID of the folder that the key belongs to. + FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // Time when the key was created. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Name of the key. + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + // Description of the key. + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + // Custom labels for the key as `key:value` pairs. Maximum 64 per key. + Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Current status of the key. + Status SymmetricKey_Status `protobuf:"varint,7,opt,name=status,proto3,enum=yandex.cloud.kms.v1.SymmetricKey_Status" json:"status,omitempty"` + // Primary version of the key, used as the default for all encrypt/decrypt operations, + // when no version ID is specified. + PrimaryVersion *SymmetricKeyVersion `protobuf:"bytes,8,opt,name=primary_version,json=primaryVersion,proto3" json:"primary_version,omitempty"` + // Default encryption algorithm to be used with new versions of the key. + DefaultAlgorithm SymmetricAlgorithm `protobuf:"varint,9,opt,name=default_algorithm,json=defaultAlgorithm,proto3,enum=yandex.cloud.kms.v1.SymmetricAlgorithm" json:"default_algorithm,omitempty"` + // Time of the last key rotation (time when the last version was created). + // Empty if the key does not have versions yet. + RotatedAt *timestamp.Timestamp `protobuf:"bytes,10,opt,name=rotated_at,json=rotatedAt,proto3" json:"rotated_at,omitempty"` + // Time period between automatic key rotations. + RotationPeriod *duration.Duration `protobuf:"bytes,11,opt,name=rotation_period,json=rotationPeriod,proto3" json:"rotation_period,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SymmetricKey) Reset() { *m = SymmetricKey{} } +func (m *SymmetricKey) String() string { return proto.CompactTextString(m) } +func (*SymmetricKey) ProtoMessage() {} +func (*SymmetricKey) Descriptor() ([]byte, []int) { + return fileDescriptor_01ef0714cb9d79e1, []int{0} +} + +func (m *SymmetricKey) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SymmetricKey.Unmarshal(m, b) +} +func (m *SymmetricKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SymmetricKey.Marshal(b, m, deterministic) +} +func (m *SymmetricKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_SymmetricKey.Merge(m, src) +} +func (m *SymmetricKey) XXX_Size() int { + return xxx_messageInfo_SymmetricKey.Size(m) +} +func (m *SymmetricKey) XXX_DiscardUnknown() { + xxx_messageInfo_SymmetricKey.DiscardUnknown(m) +} + +var xxx_messageInfo_SymmetricKey proto.InternalMessageInfo + +func (m *SymmetricKey) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *SymmetricKey) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *SymmetricKey) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *SymmetricKey) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SymmetricKey) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *SymmetricKey) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *SymmetricKey) GetStatus() SymmetricKey_Status { + if m != nil { + return m.Status + } + return SymmetricKey_STATUS_UNSPECIFIED +} + +func (m *SymmetricKey) GetPrimaryVersion() *SymmetricKeyVersion { + if m != nil { + return m.PrimaryVersion + } + return nil +} + +func (m *SymmetricKey) GetDefaultAlgorithm() SymmetricAlgorithm { + if m != nil { + return m.DefaultAlgorithm + } + return SymmetricAlgorithm_SYMMETRIC_ALGORITHM_UNSPECIFIED +} + +func (m *SymmetricKey) GetRotatedAt() *timestamp.Timestamp { + if m != nil { + return m.RotatedAt + } + return nil +} + +func (m *SymmetricKey) GetRotationPeriod() *duration.Duration { + if m != nil { + return m.RotationPeriod + } + return nil +} + +// Symmetric KMS key version: metadata about actual cryptographic data. +type SymmetricKeyVersion struct { + // ID of the key version. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // ID of the symmetric KMS key that the version belongs to. + KeyId string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // Status of the key version. + Status SymmetricKeyVersion_Status `protobuf:"varint,3,opt,name=status,proto3,enum=yandex.cloud.kms.v1.SymmetricKeyVersion_Status" json:"status,omitempty"` + // Encryption algorithm that should be used when using the key version to encrypt plaintext. + Algorithm SymmetricAlgorithm `protobuf:"varint,4,opt,name=algorithm,proto3,enum=yandex.cloud.kms.v1.SymmetricAlgorithm" json:"algorithm,omitempty"` + // Time when the key version was created. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Indication of a primary version, that is to be used by default for all cryptographic + // operations that don't have a key version explicitly specified. + Primary bool `protobuf:"varint,6,opt,name=primary,proto3" json:"primary,omitempty"` + // Time when the key version is going to be destroyed. Empty unless the status + // is `SCHEDULED_FOR_DESTRUCTION`. + DestroyAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=destroy_at,json=destroyAt,proto3" json:"destroy_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SymmetricKeyVersion) Reset() { *m = SymmetricKeyVersion{} } +func (m *SymmetricKeyVersion) String() string { return proto.CompactTextString(m) } +func (*SymmetricKeyVersion) ProtoMessage() {} +func (*SymmetricKeyVersion) Descriptor() ([]byte, []int) { + return fileDescriptor_01ef0714cb9d79e1, []int{1} +} + +func (m *SymmetricKeyVersion) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SymmetricKeyVersion.Unmarshal(m, b) +} +func (m *SymmetricKeyVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SymmetricKeyVersion.Marshal(b, m, deterministic) +} +func (m *SymmetricKeyVersion) XXX_Merge(src proto.Message) { + xxx_messageInfo_SymmetricKeyVersion.Merge(m, src) +} +func (m *SymmetricKeyVersion) XXX_Size() int { + return xxx_messageInfo_SymmetricKeyVersion.Size(m) +} +func (m *SymmetricKeyVersion) XXX_DiscardUnknown() { + xxx_messageInfo_SymmetricKeyVersion.DiscardUnknown(m) +} + +var xxx_messageInfo_SymmetricKeyVersion proto.InternalMessageInfo + +func (m *SymmetricKeyVersion) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *SymmetricKeyVersion) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *SymmetricKeyVersion) GetStatus() SymmetricKeyVersion_Status { + if m != nil { + return m.Status + } + return SymmetricKeyVersion_STATUS_UNSPECIFIED +} + +func (m *SymmetricKeyVersion) GetAlgorithm() SymmetricAlgorithm { + if m != nil { + return m.Algorithm + } + return SymmetricAlgorithm_SYMMETRIC_ALGORITHM_UNSPECIFIED +} + +func (m *SymmetricKeyVersion) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *SymmetricKeyVersion) GetPrimary() bool { + if m != nil { + return m.Primary + } + return false +} + +func (m *SymmetricKeyVersion) GetDestroyAt() *timestamp.Timestamp { + if m != nil { + return m.DestroyAt + } + return nil +} + +func init() { + proto.RegisterEnum("yandex.cloud.kms.v1.SymmetricAlgorithm", SymmetricAlgorithm_name, SymmetricAlgorithm_value) + proto.RegisterEnum("yandex.cloud.kms.v1.SymmetricKey_Status", SymmetricKey_Status_name, SymmetricKey_Status_value) + proto.RegisterEnum("yandex.cloud.kms.v1.SymmetricKeyVersion_Status", SymmetricKeyVersion_Status_name, SymmetricKeyVersion_Status_value) + proto.RegisterType((*SymmetricKey)(nil), "yandex.cloud.kms.v1.SymmetricKey") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.kms.v1.SymmetricKey.LabelsEntry") + proto.RegisterType((*SymmetricKeyVersion)(nil), "yandex.cloud.kms.v1.SymmetricKeyVersion") +} + +func init() { + proto.RegisterFile("yandex/cloud/kms/v1/symmetric_key.proto", fileDescriptor_01ef0714cb9d79e1) +} + +var fileDescriptor_01ef0714cb9d79e1 = []byte{ + // 702 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x6f, 0x4f, 0xda, 0x5e, + 0x14, 0xfe, 0x95, 0x4a, 0x81, 0x83, 0x3f, 0xec, 0xae, 0xfb, 0x53, 0x59, 0x36, 0x09, 0x7b, 0x21, + 0x59, 0x62, 0x1b, 0x59, 0xb6, 0xe8, 0x7c, 0xb3, 0x0a, 0x55, 0x9b, 0x29, 0xb8, 0xb6, 0x98, 0xe8, + 0x9b, 0xae, 0xd0, 0x2b, 0x36, 0xb4, 0x94, 0xb4, 0x17, 0xb2, 0x7e, 0xb3, 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0x7e, 0xae, + 0x59, 0x86, 0xde, 0xb2, 0xd5, 0xb3, 0x93, 0xae, 0xa1, 0x5b, 0xa7, 0xe7, 0x4b, 0x97, 0x96, 0xa1, + 0xa0, 0x6a, 0xa6, 0xbd, 0xd7, 0xdc, 0x17, 0xb9, 0xbb, 0xe2, 0xa0, 0x29, 0xe6, 0xb2, 0xa2, 0xf9, + 0xf1, 0x93, 0xc8, 0x1f, 0x5d, 0xc2, 0xab, 0x3f, 0x2c, 0x70, 0x26, 0x1e, 0xb3, 0xe1, 0xfa, 0x70, + 0xe8, 0x91, 0xdb, 0x69, 0x5f, 0x1e, 0x84, 0x81, 0x92, 0x62, 0x76, 0xd3, 0xdf, 0xf4, 0x30, 0xdc, + 0x1d, 0xe2, 0x31, 0xdd, 0x8a, 0xf2, 0xc8, 0xff, 0xfb, 0x70, 0x14, 0xc4, 0x7d, 0x81, 0x1e, 0x7f, + 0xf8, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x0f, 0x90, 0x72, 0x69, 0xe1, 0x05, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_key.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_key.pbext.go new file mode 100644 index 000000000..aa55dd52a --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_key.pbext.go @@ -0,0 +1,80 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package kms + +import ( + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *SymmetricKey) SetId(v string) { + m.Id = v +} + +func (m *SymmetricKey) SetFolderId(v string) { + m.FolderId = v +} + +func (m *SymmetricKey) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *SymmetricKey) SetName(v string) { + m.Name = v +} + +func (m *SymmetricKey) SetDescription(v string) { + m.Description = v +} + +func (m *SymmetricKey) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *SymmetricKey) SetStatus(v SymmetricKey_Status) { + m.Status = v +} + +func (m *SymmetricKey) SetPrimaryVersion(v *SymmetricKeyVersion) { + m.PrimaryVersion = v +} + +func (m *SymmetricKey) SetDefaultAlgorithm(v SymmetricAlgorithm) { + m.DefaultAlgorithm = v +} + +func (m *SymmetricKey) SetRotatedAt(v *timestamp.Timestamp) { + m.RotatedAt = v +} + +func (m *SymmetricKey) SetRotationPeriod(v *duration.Duration) { + m.RotationPeriod = v +} + +func (m *SymmetricKeyVersion) SetId(v string) { + m.Id = v +} + +func (m *SymmetricKeyVersion) SetKeyId(v string) { + m.KeyId = v +} + +func (m *SymmetricKeyVersion) SetStatus(v SymmetricKeyVersion_Status) { + m.Status = v +} + +func (m *SymmetricKeyVersion) SetAlgorithm(v SymmetricAlgorithm) { + m.Algorithm = v +} + +func (m *SymmetricKeyVersion) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *SymmetricKeyVersion) SetPrimary(v bool) { + m.Primary = v +} + +func (m *SymmetricKeyVersion) SetDestroyAt(v *timestamp.Timestamp) { + m.DestroyAt = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_key_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_key_service.pb.go new file mode 100644 index 000000000..575cf536c --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_key_service.pb.go @@ -0,0 +1,1930 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/kms/v1/symmetric_key_service.proto + +package kms + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + access "github.com/yandex-cloud/go-genproto/yandex/cloud/access" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud/api" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type CreateSymmetricKeyRequest struct { + // ID of the folder to create a symmetric KMS key in. + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // Name of the key. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Description of the key. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // Custom labels for the symmetric KMS key as `key:value` pairs. Maximum 64 per key. + // For example, `"project": "mvp"` or `"source": "dictionary"`. + Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Encryption algorithm to be used with a new key version, generated with the next rotation. + DefaultAlgorithm SymmetricAlgorithm `protobuf:"varint,5,opt,name=default_algorithm,json=defaultAlgorithm,proto3,enum=yandex.cloud.kms.v1.SymmetricAlgorithm" json:"default_algorithm,omitempty"` + // Interval between automatic rotations. To disable automatic rotation, don't include + // this field in the creation request. + RotationPeriod *duration.Duration `protobuf:"bytes,6,opt,name=rotation_period,json=rotationPeriod,proto3" json:"rotation_period,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateSymmetricKeyRequest) Reset() { *m = CreateSymmetricKeyRequest{} } +func (m *CreateSymmetricKeyRequest) String() string { return proto.CompactTextString(m) } +func (*CreateSymmetricKeyRequest) ProtoMessage() {} +func (*CreateSymmetricKeyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{0} +} + +func (m *CreateSymmetricKeyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateSymmetricKeyRequest.Unmarshal(m, b) +} +func (m *CreateSymmetricKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateSymmetricKeyRequest.Marshal(b, m, deterministic) +} +func (m *CreateSymmetricKeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateSymmetricKeyRequest.Merge(m, src) +} +func (m *CreateSymmetricKeyRequest) XXX_Size() int { + return xxx_messageInfo_CreateSymmetricKeyRequest.Size(m) +} +func (m *CreateSymmetricKeyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateSymmetricKeyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateSymmetricKeyRequest proto.InternalMessageInfo + +func (m *CreateSymmetricKeyRequest) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *CreateSymmetricKeyRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *CreateSymmetricKeyRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *CreateSymmetricKeyRequest) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *CreateSymmetricKeyRequest) GetDefaultAlgorithm() SymmetricAlgorithm { + if m != nil { + return m.DefaultAlgorithm + } + return SymmetricAlgorithm_SYMMETRIC_ALGORITHM_UNSPECIFIED +} + +func (m *CreateSymmetricKeyRequest) GetRotationPeriod() *duration.Duration { + if m != nil { + return m.RotationPeriod + } + return nil +} + +type CreateSymmetricKeyMetadata struct { + // ID of the key being created. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // ID of the primary version of the key being created. + PrimaryVersionId string `protobuf:"bytes,2,opt,name=primary_version_id,json=primaryVersionId,proto3" json:"primary_version_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateSymmetricKeyMetadata) Reset() { *m = CreateSymmetricKeyMetadata{} } +func (m *CreateSymmetricKeyMetadata) String() string { return proto.CompactTextString(m) } +func (*CreateSymmetricKeyMetadata) ProtoMessage() {} +func (*CreateSymmetricKeyMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{1} +} + +func (m *CreateSymmetricKeyMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateSymmetricKeyMetadata.Unmarshal(m, b) +} +func (m *CreateSymmetricKeyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateSymmetricKeyMetadata.Marshal(b, m, deterministic) +} +func (m *CreateSymmetricKeyMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateSymmetricKeyMetadata.Merge(m, src) +} +func (m *CreateSymmetricKeyMetadata) XXX_Size() int { + return xxx_messageInfo_CreateSymmetricKeyMetadata.Size(m) +} +func (m *CreateSymmetricKeyMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CreateSymmetricKeyMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateSymmetricKeyMetadata proto.InternalMessageInfo + +func (m *CreateSymmetricKeyMetadata) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *CreateSymmetricKeyMetadata) GetPrimaryVersionId() string { + if m != nil { + return m.PrimaryVersionId + } + return "" +} + +type GetSymmetricKeyRequest struct { + // ID of the symmetric KMS key to return. + // To get the ID of a symmetric KMS key use a [SymmetricKeyService.List] request. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetSymmetricKeyRequest) Reset() { *m = GetSymmetricKeyRequest{} } +func (m *GetSymmetricKeyRequest) String() string { return proto.CompactTextString(m) } +func (*GetSymmetricKeyRequest) ProtoMessage() {} +func (*GetSymmetricKeyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{2} +} + +func (m *GetSymmetricKeyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetSymmetricKeyRequest.Unmarshal(m, b) +} +func (m *GetSymmetricKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetSymmetricKeyRequest.Marshal(b, m, deterministic) +} +func (m *GetSymmetricKeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetSymmetricKeyRequest.Merge(m, src) +} +func (m *GetSymmetricKeyRequest) XXX_Size() int { + return xxx_messageInfo_GetSymmetricKeyRequest.Size(m) +} +func (m *GetSymmetricKeyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetSymmetricKeyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetSymmetricKeyRequest proto.InternalMessageInfo + +func (m *GetSymmetricKeyRequest) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +type ListSymmetricKeysRequest struct { + // ID of the folder to list symmetric KMS keys in. + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], the service returns a [ListSymmetricKeysResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set [page_token] to the + // [ListSymmetricKeysResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListSymmetricKeysRequest) Reset() { *m = ListSymmetricKeysRequest{} } +func (m *ListSymmetricKeysRequest) String() string { return proto.CompactTextString(m) } +func (*ListSymmetricKeysRequest) ProtoMessage() {} +func (*ListSymmetricKeysRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{3} +} + +func (m *ListSymmetricKeysRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListSymmetricKeysRequest.Unmarshal(m, b) +} +func (m *ListSymmetricKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListSymmetricKeysRequest.Marshal(b, m, deterministic) +} +func (m *ListSymmetricKeysRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListSymmetricKeysRequest.Merge(m, src) +} +func (m *ListSymmetricKeysRequest) XXX_Size() int { + return xxx_messageInfo_ListSymmetricKeysRequest.Size(m) +} +func (m *ListSymmetricKeysRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListSymmetricKeysRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListSymmetricKeysRequest proto.InternalMessageInfo + +func (m *ListSymmetricKeysRequest) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *ListSymmetricKeysRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListSymmetricKeysRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListSymmetricKeysResponse struct { + // List of symmetric KMS keys in the specified folder. + Keys []*SymmetricKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` + // This token allows you to get the next page of results for list requests. If the number + // of results is greater than the specified [ListSymmetricKeysRequest.page_size], use + // the [next_page_token] as the value for the [ListSymmetricKeysRequest.page_token] query parameter + // in the next list request. Each subsequent list request will have its own + // [next_page_token] to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListSymmetricKeysResponse) Reset() { *m = ListSymmetricKeysResponse{} } +func (m *ListSymmetricKeysResponse) String() string { return proto.CompactTextString(m) } +func (*ListSymmetricKeysResponse) ProtoMessage() {} +func (*ListSymmetricKeysResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{4} +} + +func (m *ListSymmetricKeysResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListSymmetricKeysResponse.Unmarshal(m, b) +} +func (m *ListSymmetricKeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListSymmetricKeysResponse.Marshal(b, m, deterministic) +} +func (m *ListSymmetricKeysResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListSymmetricKeysResponse.Merge(m, src) +} +func (m *ListSymmetricKeysResponse) XXX_Size() int { + return xxx_messageInfo_ListSymmetricKeysResponse.Size(m) +} +func (m *ListSymmetricKeysResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListSymmetricKeysResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListSymmetricKeysResponse proto.InternalMessageInfo + +func (m *ListSymmetricKeysResponse) GetKeys() []*SymmetricKey { + if m != nil { + return m.Keys + } + return nil +} + +func (m *ListSymmetricKeysResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type ListSymmetricKeyVersionsRequest struct { + // ID of the symmetric KMS key to list versions for. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], the service returns a [ListSymmetricKeyVersionsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set [page_token] to the + // [ListSymmetricKeyVersionsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListSymmetricKeyVersionsRequest) Reset() { *m = ListSymmetricKeyVersionsRequest{} } +func (m *ListSymmetricKeyVersionsRequest) String() string { return proto.CompactTextString(m) } +func (*ListSymmetricKeyVersionsRequest) ProtoMessage() {} +func (*ListSymmetricKeyVersionsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{5} +} + +func (m *ListSymmetricKeyVersionsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListSymmetricKeyVersionsRequest.Unmarshal(m, b) +} +func (m *ListSymmetricKeyVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListSymmetricKeyVersionsRequest.Marshal(b, m, deterministic) +} +func (m *ListSymmetricKeyVersionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListSymmetricKeyVersionsRequest.Merge(m, src) +} +func (m *ListSymmetricKeyVersionsRequest) XXX_Size() int { + return xxx_messageInfo_ListSymmetricKeyVersionsRequest.Size(m) +} +func (m *ListSymmetricKeyVersionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListSymmetricKeyVersionsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListSymmetricKeyVersionsRequest proto.InternalMessageInfo + +func (m *ListSymmetricKeyVersionsRequest) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *ListSymmetricKeyVersionsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListSymmetricKeyVersionsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListSymmetricKeyVersionsResponse struct { + // List of versions for the specified symmetric KMS key. + KeyVersions []*SymmetricKeyVersion `protobuf:"bytes,1,rep,name=key_versions,json=keyVersions,proto3" json:"key_versions,omitempty"` + // This token allows you to get the next page of results for list requests. If the number + // of results is greater than the specified [ListSymmetricKeyVersionsRequest.page_size], use + // the [next_page_token] as the value for the [ListSymmetricKeyVersionsRequest.page_token] query parameter + // in the next list request. Each subsequent list request will have its own + // [next_page_token] to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListSymmetricKeyVersionsResponse) Reset() { *m = ListSymmetricKeyVersionsResponse{} } +func (m *ListSymmetricKeyVersionsResponse) String() string { return proto.CompactTextString(m) } +func (*ListSymmetricKeyVersionsResponse) ProtoMessage() {} +func (*ListSymmetricKeyVersionsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{6} +} + +func (m *ListSymmetricKeyVersionsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListSymmetricKeyVersionsResponse.Unmarshal(m, b) +} +func (m *ListSymmetricKeyVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListSymmetricKeyVersionsResponse.Marshal(b, m, deterministic) +} +func (m *ListSymmetricKeyVersionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListSymmetricKeyVersionsResponse.Merge(m, src) +} +func (m *ListSymmetricKeyVersionsResponse) XXX_Size() int { + return xxx_messageInfo_ListSymmetricKeyVersionsResponse.Size(m) +} +func (m *ListSymmetricKeyVersionsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListSymmetricKeyVersionsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListSymmetricKeyVersionsResponse proto.InternalMessageInfo + +func (m *ListSymmetricKeyVersionsResponse) GetKeyVersions() []*SymmetricKeyVersion { + if m != nil { + return m.KeyVersions + } + return nil +} + +func (m *ListSymmetricKeyVersionsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type UpdateSymmetricKeyRequest struct { + // ID of the symmetric KMS key to update. + // To get the ID of a symmetric KMS key use a [SymmetricKeyService.List] request. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // Field mask that specifies which attributes of the symmetric KMS key are going to be updated. + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // New name for the symmetric KMS key. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // New description for the symmetric KMS key. + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + // New status for the symmetric KMS key. + // Using the [SymmetricKeyService.Update] method you can only set ACTIVE or INACTIVE status. + Status SymmetricKey_Status `protobuf:"varint,5,opt,name=status,proto3,enum=yandex.cloud.kms.v1.SymmetricKey_Status" json:"status,omitempty"` + // Custom labels for the symmetric KMS key as `key:value` pairs. Maximum 64 per key. + Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Default encryption algorithm to be used with new versions of the symmetric KMS key. + DefaultAlgorithm SymmetricAlgorithm `protobuf:"varint,7,opt,name=default_algorithm,json=defaultAlgorithm,proto3,enum=yandex.cloud.kms.v1.SymmetricAlgorithm" json:"default_algorithm,omitempty"` + // Time period between automatic symmetric KMS key rotations. + RotationPeriod *duration.Duration `protobuf:"bytes,8,opt,name=rotation_period,json=rotationPeriod,proto3" json:"rotation_period,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateSymmetricKeyRequest) Reset() { *m = UpdateSymmetricKeyRequest{} } +func (m *UpdateSymmetricKeyRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateSymmetricKeyRequest) ProtoMessage() {} +func (*UpdateSymmetricKeyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{7} +} + +func (m *UpdateSymmetricKeyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateSymmetricKeyRequest.Unmarshal(m, b) +} +func (m *UpdateSymmetricKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateSymmetricKeyRequest.Marshal(b, m, deterministic) +} +func (m *UpdateSymmetricKeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateSymmetricKeyRequest.Merge(m, src) +} +func (m *UpdateSymmetricKeyRequest) XXX_Size() int { + return xxx_messageInfo_UpdateSymmetricKeyRequest.Size(m) +} +func (m *UpdateSymmetricKeyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateSymmetricKeyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateSymmetricKeyRequest proto.InternalMessageInfo + +func (m *UpdateSymmetricKeyRequest) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *UpdateSymmetricKeyRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdateSymmetricKeyRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *UpdateSymmetricKeyRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *UpdateSymmetricKeyRequest) GetStatus() SymmetricKey_Status { + if m != nil { + return m.Status + } + return SymmetricKey_STATUS_UNSPECIFIED +} + +func (m *UpdateSymmetricKeyRequest) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *UpdateSymmetricKeyRequest) GetDefaultAlgorithm() SymmetricAlgorithm { + if m != nil { + return m.DefaultAlgorithm + } + return SymmetricAlgorithm_SYMMETRIC_ALGORITHM_UNSPECIFIED +} + +func (m *UpdateSymmetricKeyRequest) GetRotationPeriod() *duration.Duration { + if m != nil { + return m.RotationPeriod + } + return nil +} + +type UpdateSymmetricKeyMetadata struct { + // ID of the key being updated. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateSymmetricKeyMetadata) Reset() { *m = UpdateSymmetricKeyMetadata{} } +func (m *UpdateSymmetricKeyMetadata) String() string { return proto.CompactTextString(m) } +func (*UpdateSymmetricKeyMetadata) ProtoMessage() {} +func (*UpdateSymmetricKeyMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{8} +} + +func (m *UpdateSymmetricKeyMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateSymmetricKeyMetadata.Unmarshal(m, b) +} +func (m *UpdateSymmetricKeyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateSymmetricKeyMetadata.Marshal(b, m, deterministic) +} +func (m *UpdateSymmetricKeyMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateSymmetricKeyMetadata.Merge(m, src) +} +func (m *UpdateSymmetricKeyMetadata) XXX_Size() int { + return xxx_messageInfo_UpdateSymmetricKeyMetadata.Size(m) +} +func (m *UpdateSymmetricKeyMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateSymmetricKeyMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateSymmetricKeyMetadata proto.InternalMessageInfo + +func (m *UpdateSymmetricKeyMetadata) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +type DeleteSymmetricKeyRequest struct { + // ID of the key to be deleted. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteSymmetricKeyRequest) Reset() { *m = DeleteSymmetricKeyRequest{} } +func (m *DeleteSymmetricKeyRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteSymmetricKeyRequest) ProtoMessage() {} +func (*DeleteSymmetricKeyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{9} +} + +func (m *DeleteSymmetricKeyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteSymmetricKeyRequest.Unmarshal(m, b) +} +func (m *DeleteSymmetricKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteSymmetricKeyRequest.Marshal(b, m, deterministic) +} +func (m *DeleteSymmetricKeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteSymmetricKeyRequest.Merge(m, src) +} +func (m *DeleteSymmetricKeyRequest) XXX_Size() int { + return xxx_messageInfo_DeleteSymmetricKeyRequest.Size(m) +} +func (m *DeleteSymmetricKeyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteSymmetricKeyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteSymmetricKeyRequest proto.InternalMessageInfo + +func (m *DeleteSymmetricKeyRequest) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +type DeleteSymmetricKeyMetadata struct { + // ID of the key being deleted. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteSymmetricKeyMetadata) Reset() { *m = DeleteSymmetricKeyMetadata{} } +func (m *DeleteSymmetricKeyMetadata) String() string { return proto.CompactTextString(m) } +func (*DeleteSymmetricKeyMetadata) ProtoMessage() {} +func (*DeleteSymmetricKeyMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{10} +} + +func (m *DeleteSymmetricKeyMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteSymmetricKeyMetadata.Unmarshal(m, b) +} +func (m *DeleteSymmetricKeyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteSymmetricKeyMetadata.Marshal(b, m, deterministic) +} +func (m *DeleteSymmetricKeyMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteSymmetricKeyMetadata.Merge(m, src) +} +func (m *DeleteSymmetricKeyMetadata) XXX_Size() int { + return xxx_messageInfo_DeleteSymmetricKeyMetadata.Size(m) +} +func (m *DeleteSymmetricKeyMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteSymmetricKeyMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteSymmetricKeyMetadata proto.InternalMessageInfo + +func (m *DeleteSymmetricKeyMetadata) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +type SetPrimarySymmetricKeyVersionRequest struct { + // ID of the key to set a primary version for. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // ID of the version that should become primary for the specified key. + VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SetPrimarySymmetricKeyVersionRequest) Reset() { *m = SetPrimarySymmetricKeyVersionRequest{} } +func (m *SetPrimarySymmetricKeyVersionRequest) String() string { return proto.CompactTextString(m) } +func (*SetPrimarySymmetricKeyVersionRequest) ProtoMessage() {} +func (*SetPrimarySymmetricKeyVersionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{11} +} + +func (m *SetPrimarySymmetricKeyVersionRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetPrimarySymmetricKeyVersionRequest.Unmarshal(m, b) +} +func (m *SetPrimarySymmetricKeyVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetPrimarySymmetricKeyVersionRequest.Marshal(b, m, deterministic) +} +func (m *SetPrimarySymmetricKeyVersionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetPrimarySymmetricKeyVersionRequest.Merge(m, src) +} +func (m *SetPrimarySymmetricKeyVersionRequest) XXX_Size() int { + return xxx_messageInfo_SetPrimarySymmetricKeyVersionRequest.Size(m) +} +func (m *SetPrimarySymmetricKeyVersionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetPrimarySymmetricKeyVersionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SetPrimarySymmetricKeyVersionRequest proto.InternalMessageInfo + +func (m *SetPrimarySymmetricKeyVersionRequest) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *SetPrimarySymmetricKeyVersionRequest) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +type SetPrimarySymmetricKeyVersionMetadata struct { + // ID of the key that the primary version if being changed for. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // ID of the version that is being made primary for the key. + VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SetPrimarySymmetricKeyVersionMetadata) Reset() { *m = SetPrimarySymmetricKeyVersionMetadata{} } +func (m *SetPrimarySymmetricKeyVersionMetadata) String() string { return proto.CompactTextString(m) } +func (*SetPrimarySymmetricKeyVersionMetadata) ProtoMessage() {} +func (*SetPrimarySymmetricKeyVersionMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{12} +} + +func (m *SetPrimarySymmetricKeyVersionMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetPrimarySymmetricKeyVersionMetadata.Unmarshal(m, b) +} +func (m *SetPrimarySymmetricKeyVersionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetPrimarySymmetricKeyVersionMetadata.Marshal(b, m, deterministic) +} +func (m *SetPrimarySymmetricKeyVersionMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetPrimarySymmetricKeyVersionMetadata.Merge(m, src) +} +func (m *SetPrimarySymmetricKeyVersionMetadata) XXX_Size() int { + return xxx_messageInfo_SetPrimarySymmetricKeyVersionMetadata.Size(m) +} +func (m *SetPrimarySymmetricKeyVersionMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_SetPrimarySymmetricKeyVersionMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_SetPrimarySymmetricKeyVersionMetadata proto.InternalMessageInfo + +func (m *SetPrimarySymmetricKeyVersionMetadata) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *SetPrimarySymmetricKeyVersionMetadata) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +type RotateSymmetricKeyRequest struct { + // ID of the key to be rotated. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RotateSymmetricKeyRequest) Reset() { *m = RotateSymmetricKeyRequest{} } +func (m *RotateSymmetricKeyRequest) String() string { return proto.CompactTextString(m) } +func (*RotateSymmetricKeyRequest) ProtoMessage() {} +func (*RotateSymmetricKeyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{13} +} + +func (m *RotateSymmetricKeyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RotateSymmetricKeyRequest.Unmarshal(m, b) +} +func (m *RotateSymmetricKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RotateSymmetricKeyRequest.Marshal(b, m, deterministic) +} +func (m *RotateSymmetricKeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RotateSymmetricKeyRequest.Merge(m, src) +} +func (m *RotateSymmetricKeyRequest) XXX_Size() int { + return xxx_messageInfo_RotateSymmetricKeyRequest.Size(m) +} +func (m *RotateSymmetricKeyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RotateSymmetricKeyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RotateSymmetricKeyRequest proto.InternalMessageInfo + +func (m *RotateSymmetricKeyRequest) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +type RotateSymmetricKeyMetadata struct { + // ID of the key being rotated. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // ID of the version generated as a result of key rotation. + NewPrimaryVersionId string `protobuf:"bytes,2,opt,name=new_primary_version_id,json=newPrimaryVersionId,proto3" json:"new_primary_version_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RotateSymmetricKeyMetadata) Reset() { *m = RotateSymmetricKeyMetadata{} } +func (m *RotateSymmetricKeyMetadata) String() string { return proto.CompactTextString(m) } +func (*RotateSymmetricKeyMetadata) ProtoMessage() {} +func (*RotateSymmetricKeyMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{14} +} + +func (m *RotateSymmetricKeyMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RotateSymmetricKeyMetadata.Unmarshal(m, b) +} +func (m *RotateSymmetricKeyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RotateSymmetricKeyMetadata.Marshal(b, m, deterministic) +} +func (m *RotateSymmetricKeyMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_RotateSymmetricKeyMetadata.Merge(m, src) +} +func (m *RotateSymmetricKeyMetadata) XXX_Size() int { + return xxx_messageInfo_RotateSymmetricKeyMetadata.Size(m) +} +func (m *RotateSymmetricKeyMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_RotateSymmetricKeyMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_RotateSymmetricKeyMetadata proto.InternalMessageInfo + +func (m *RotateSymmetricKeyMetadata) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *RotateSymmetricKeyMetadata) GetNewPrimaryVersionId() string { + if m != nil { + return m.NewPrimaryVersionId + } + return "" +} + +type ScheduleSymmetricKeyVersionDestructionRequest struct { + // ID of the key whose version should be scheduled for destruction. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // ID of the version to be destroyed. + VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` + // Time interval between the version destruction request and actual destruction. + // Default value: 7 days. + PendingPeriod *duration.Duration `protobuf:"bytes,3,opt,name=pending_period,json=pendingPeriod,proto3" json:"pending_period,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScheduleSymmetricKeyVersionDestructionRequest) Reset() { + *m = ScheduleSymmetricKeyVersionDestructionRequest{} +} +func (m *ScheduleSymmetricKeyVersionDestructionRequest) String() string { + return proto.CompactTextString(m) +} +func (*ScheduleSymmetricKeyVersionDestructionRequest) ProtoMessage() {} +func (*ScheduleSymmetricKeyVersionDestructionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{15} +} + +func (m *ScheduleSymmetricKeyVersionDestructionRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ScheduleSymmetricKeyVersionDestructionRequest.Unmarshal(m, b) +} +func (m *ScheduleSymmetricKeyVersionDestructionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ScheduleSymmetricKeyVersionDestructionRequest.Marshal(b, m, deterministic) +} +func (m *ScheduleSymmetricKeyVersionDestructionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScheduleSymmetricKeyVersionDestructionRequest.Merge(m, src) +} +func (m *ScheduleSymmetricKeyVersionDestructionRequest) XXX_Size() int { + return xxx_messageInfo_ScheduleSymmetricKeyVersionDestructionRequest.Size(m) +} +func (m *ScheduleSymmetricKeyVersionDestructionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ScheduleSymmetricKeyVersionDestructionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ScheduleSymmetricKeyVersionDestructionRequest proto.InternalMessageInfo + +func (m *ScheduleSymmetricKeyVersionDestructionRequest) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *ScheduleSymmetricKeyVersionDestructionRequest) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +func (m *ScheduleSymmetricKeyVersionDestructionRequest) GetPendingPeriod() *duration.Duration { + if m != nil { + return m.PendingPeriod + } + return nil +} + +type ScheduleSymmetricKeyVersionDestructionMetadata struct { + // ID of the key whose version is being scheduled for destruction. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // ID of the version that is being scheduled for destruction. + VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` + // Time when the version is scheduled to be destroyed. + DestroyAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=destroy_at,json=destroyAt,proto3" json:"destroy_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScheduleSymmetricKeyVersionDestructionMetadata) Reset() { + *m = ScheduleSymmetricKeyVersionDestructionMetadata{} +} +func (m *ScheduleSymmetricKeyVersionDestructionMetadata) String() string { + return proto.CompactTextString(m) +} +func (*ScheduleSymmetricKeyVersionDestructionMetadata) ProtoMessage() {} +func (*ScheduleSymmetricKeyVersionDestructionMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{16} +} + +func (m *ScheduleSymmetricKeyVersionDestructionMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ScheduleSymmetricKeyVersionDestructionMetadata.Unmarshal(m, b) +} +func (m *ScheduleSymmetricKeyVersionDestructionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ScheduleSymmetricKeyVersionDestructionMetadata.Marshal(b, m, deterministic) +} +func (m *ScheduleSymmetricKeyVersionDestructionMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScheduleSymmetricKeyVersionDestructionMetadata.Merge(m, src) +} +func (m *ScheduleSymmetricKeyVersionDestructionMetadata) XXX_Size() int { + return xxx_messageInfo_ScheduleSymmetricKeyVersionDestructionMetadata.Size(m) +} +func (m *ScheduleSymmetricKeyVersionDestructionMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_ScheduleSymmetricKeyVersionDestructionMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_ScheduleSymmetricKeyVersionDestructionMetadata proto.InternalMessageInfo + +func (m *ScheduleSymmetricKeyVersionDestructionMetadata) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *ScheduleSymmetricKeyVersionDestructionMetadata) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +func (m *ScheduleSymmetricKeyVersionDestructionMetadata) GetDestroyAt() *timestamp.Timestamp { + if m != nil { + return m.DestroyAt + } + return nil +} + +type CancelSymmetricKeyVersionDestructionRequest struct { + // ID of the key to cancel a version's destruction for. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // ID of the version whose scheduled destruction should be cancelled. + VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CancelSymmetricKeyVersionDestructionRequest) Reset() { + *m = CancelSymmetricKeyVersionDestructionRequest{} +} +func (m *CancelSymmetricKeyVersionDestructionRequest) String() string { + return proto.CompactTextString(m) +} +func (*CancelSymmetricKeyVersionDestructionRequest) ProtoMessage() {} +func (*CancelSymmetricKeyVersionDestructionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{17} +} + +func (m *CancelSymmetricKeyVersionDestructionRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CancelSymmetricKeyVersionDestructionRequest.Unmarshal(m, b) +} +func (m *CancelSymmetricKeyVersionDestructionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CancelSymmetricKeyVersionDestructionRequest.Marshal(b, m, deterministic) +} +func (m *CancelSymmetricKeyVersionDestructionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelSymmetricKeyVersionDestructionRequest.Merge(m, src) +} +func (m *CancelSymmetricKeyVersionDestructionRequest) XXX_Size() int { + return xxx_messageInfo_CancelSymmetricKeyVersionDestructionRequest.Size(m) +} +func (m *CancelSymmetricKeyVersionDestructionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CancelSymmetricKeyVersionDestructionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CancelSymmetricKeyVersionDestructionRequest proto.InternalMessageInfo + +func (m *CancelSymmetricKeyVersionDestructionRequest) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *CancelSymmetricKeyVersionDestructionRequest) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +type CancelSymmetricKeyVersionDestructionMetadata struct { + // ID of the key whose version's destruction is being cancelled. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // ID of the version whose scheduled destruction is being cancelled. + VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CancelSymmetricKeyVersionDestructionMetadata) Reset() { + *m = CancelSymmetricKeyVersionDestructionMetadata{} +} +func (m *CancelSymmetricKeyVersionDestructionMetadata) String() string { + return proto.CompactTextString(m) +} +func (*CancelSymmetricKeyVersionDestructionMetadata) ProtoMessage() {} +func (*CancelSymmetricKeyVersionDestructionMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{18} +} + +func (m *CancelSymmetricKeyVersionDestructionMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CancelSymmetricKeyVersionDestructionMetadata.Unmarshal(m, b) +} +func (m *CancelSymmetricKeyVersionDestructionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CancelSymmetricKeyVersionDestructionMetadata.Marshal(b, m, deterministic) +} +func (m *CancelSymmetricKeyVersionDestructionMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelSymmetricKeyVersionDestructionMetadata.Merge(m, src) +} +func (m *CancelSymmetricKeyVersionDestructionMetadata) XXX_Size() int { + return xxx_messageInfo_CancelSymmetricKeyVersionDestructionMetadata.Size(m) +} +func (m *CancelSymmetricKeyVersionDestructionMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CancelSymmetricKeyVersionDestructionMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CancelSymmetricKeyVersionDestructionMetadata proto.InternalMessageInfo + +func (m *CancelSymmetricKeyVersionDestructionMetadata) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *CancelSymmetricKeyVersionDestructionMetadata) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +type ListSymmetricKeyOperationsRequest struct { + // ID of the symmetric KMS key to get operations for. + // + // To get the key ID, use a [SymmetricKeyService.List] request. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // The maximum number of results per page that should be returned. If the number of available + // results is larger than [page_size], the service returns a [ListSymmetricKeyOperationsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set [page_token] to the + // [ListSymmetricKeyOperationsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListSymmetricKeyOperationsRequest) Reset() { *m = ListSymmetricKeyOperationsRequest{} } +func (m *ListSymmetricKeyOperationsRequest) String() string { return proto.CompactTextString(m) } +func (*ListSymmetricKeyOperationsRequest) ProtoMessage() {} +func (*ListSymmetricKeyOperationsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{19} +} + +func (m *ListSymmetricKeyOperationsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListSymmetricKeyOperationsRequest.Unmarshal(m, b) +} +func (m *ListSymmetricKeyOperationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListSymmetricKeyOperationsRequest.Marshal(b, m, deterministic) +} +func (m *ListSymmetricKeyOperationsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListSymmetricKeyOperationsRequest.Merge(m, src) +} +func (m *ListSymmetricKeyOperationsRequest) XXX_Size() int { + return xxx_messageInfo_ListSymmetricKeyOperationsRequest.Size(m) +} +func (m *ListSymmetricKeyOperationsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListSymmetricKeyOperationsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListSymmetricKeyOperationsRequest proto.InternalMessageInfo + +func (m *ListSymmetricKeyOperationsRequest) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *ListSymmetricKeyOperationsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListSymmetricKeyOperationsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListSymmetricKeyOperationsResponse struct { + // List of operations for the specified key. + Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` + // This token allows you to get the next page of results for list requests. If the number of results + // is larger than [ListSymmetricKeyOperationsRequest.page_size], use the [next_page_token] as the value + // for the [ListSymmetricKeyOperationsRequest.page_token] query parameter in the next list request. + // Each subsequent list request will have its own [next_page_token] to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListSymmetricKeyOperationsResponse) Reset() { *m = ListSymmetricKeyOperationsResponse{} } +func (m *ListSymmetricKeyOperationsResponse) String() string { return proto.CompactTextString(m) } +func (*ListSymmetricKeyOperationsResponse) ProtoMessage() {} +func (*ListSymmetricKeyOperationsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8ca66c5a96ca41ef, []int{20} +} + +func (m *ListSymmetricKeyOperationsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListSymmetricKeyOperationsResponse.Unmarshal(m, b) +} +func (m *ListSymmetricKeyOperationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListSymmetricKeyOperationsResponse.Marshal(b, m, deterministic) +} +func (m *ListSymmetricKeyOperationsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListSymmetricKeyOperationsResponse.Merge(m, src) +} +func (m *ListSymmetricKeyOperationsResponse) XXX_Size() int { + return xxx_messageInfo_ListSymmetricKeyOperationsResponse.Size(m) +} +func (m *ListSymmetricKeyOperationsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListSymmetricKeyOperationsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListSymmetricKeyOperationsResponse proto.InternalMessageInfo + +func (m *ListSymmetricKeyOperationsResponse) GetOperations() []*operation.Operation { + if m != nil { + return m.Operations + } + return nil +} + +func (m *ListSymmetricKeyOperationsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +func init() { + proto.RegisterType((*CreateSymmetricKeyRequest)(nil), "yandex.cloud.kms.v1.CreateSymmetricKeyRequest") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.kms.v1.CreateSymmetricKeyRequest.LabelsEntry") + proto.RegisterType((*CreateSymmetricKeyMetadata)(nil), "yandex.cloud.kms.v1.CreateSymmetricKeyMetadata") + proto.RegisterType((*GetSymmetricKeyRequest)(nil), "yandex.cloud.kms.v1.GetSymmetricKeyRequest") + proto.RegisterType((*ListSymmetricKeysRequest)(nil), "yandex.cloud.kms.v1.ListSymmetricKeysRequest") + proto.RegisterType((*ListSymmetricKeysResponse)(nil), "yandex.cloud.kms.v1.ListSymmetricKeysResponse") + proto.RegisterType((*ListSymmetricKeyVersionsRequest)(nil), "yandex.cloud.kms.v1.ListSymmetricKeyVersionsRequest") + proto.RegisterType((*ListSymmetricKeyVersionsResponse)(nil), "yandex.cloud.kms.v1.ListSymmetricKeyVersionsResponse") + proto.RegisterType((*UpdateSymmetricKeyRequest)(nil), "yandex.cloud.kms.v1.UpdateSymmetricKeyRequest") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.kms.v1.UpdateSymmetricKeyRequest.LabelsEntry") + proto.RegisterType((*UpdateSymmetricKeyMetadata)(nil), "yandex.cloud.kms.v1.UpdateSymmetricKeyMetadata") + proto.RegisterType((*DeleteSymmetricKeyRequest)(nil), "yandex.cloud.kms.v1.DeleteSymmetricKeyRequest") + proto.RegisterType((*DeleteSymmetricKeyMetadata)(nil), "yandex.cloud.kms.v1.DeleteSymmetricKeyMetadata") + proto.RegisterType((*SetPrimarySymmetricKeyVersionRequest)(nil), "yandex.cloud.kms.v1.SetPrimarySymmetricKeyVersionRequest") + proto.RegisterType((*SetPrimarySymmetricKeyVersionMetadata)(nil), "yandex.cloud.kms.v1.SetPrimarySymmetricKeyVersionMetadata") + proto.RegisterType((*RotateSymmetricKeyRequest)(nil), "yandex.cloud.kms.v1.RotateSymmetricKeyRequest") + proto.RegisterType((*RotateSymmetricKeyMetadata)(nil), "yandex.cloud.kms.v1.RotateSymmetricKeyMetadata") + proto.RegisterType((*ScheduleSymmetricKeyVersionDestructionRequest)(nil), "yandex.cloud.kms.v1.ScheduleSymmetricKeyVersionDestructionRequest") + proto.RegisterType((*ScheduleSymmetricKeyVersionDestructionMetadata)(nil), "yandex.cloud.kms.v1.ScheduleSymmetricKeyVersionDestructionMetadata") + proto.RegisterType((*CancelSymmetricKeyVersionDestructionRequest)(nil), "yandex.cloud.kms.v1.CancelSymmetricKeyVersionDestructionRequest") + proto.RegisterType((*CancelSymmetricKeyVersionDestructionMetadata)(nil), "yandex.cloud.kms.v1.CancelSymmetricKeyVersionDestructionMetadata") + proto.RegisterType((*ListSymmetricKeyOperationsRequest)(nil), "yandex.cloud.kms.v1.ListSymmetricKeyOperationsRequest") + proto.RegisterType((*ListSymmetricKeyOperationsResponse)(nil), "yandex.cloud.kms.v1.ListSymmetricKeyOperationsResponse") +} + +func init() { + proto.RegisterFile("yandex/cloud/kms/v1/symmetric_key_service.proto", fileDescriptor_8ca66c5a96ca41ef) +} + +var fileDescriptor_8ca66c5a96ca41ef = []byte{ + // 1611 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0xcd, 0x6f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0x2b, 0x5e, + 0x5c, 0x3f, 0xb1, 0x0e, 0xe8, 0x7a, 0x9a, 0xf6, 0xdd, 0xdd, 0x63, 0xd7, 0x47, 0x61, 0x58, 0x7b, + 0x07, 0xa9, 0x45, 0x48, 0x06, 0x45, 0x3a, 0x94, 0xa9, 0x6e, 0xf5, 0xbd, 0x5a, 0xad, 0x5b, 0xac, + 0x4e, 0x72, 0xd2, 0x4c, 0x97, 0xdc, 0x88, 0x3b, 0xa4, 0x5d, 0xec, 0xbf, 0x0a, 0x30, 0xce, 0xe6, + 0x9a, 0x2b, 0xc1, 0xac, 0x6f, 0x82, 0x7e, 0xa6, 0x7d, 0xe4, 0xb8, 0xb3, 0x77, 0x90, 0xba, 0x02, + 0xe7, 0xbb, 0x04, 0x0b, 0x93, 0xe6, 0xbc, 0x94, 0xe9, 0x92, 0x66, 0xc3, 0x27, 0xea, 0x92, 0x90, + 0xca, 0xdf, 0x83, 0x53, 0x9d, 0x19, 0xd5, 0x75, 0x5e, 0xde, 0xef, 0x5f, 0x2e, 0xe9, 0xd6, 0x56, + 0x63, 0x43, 0x2e, 0x1a, 0x55, 0xfe, 0xdb, 0x49, 0x9a, 0x7d, 0xd3, 0x5f, 0x32, 0xd2, 0x25, 0x5c, + 0xa3, 0x10, 0xfc, 0x7e, 0x54, 0xb9, 0x5c, 0xae, 0x92, 0x8d, 0x18, 0x5d, 0x9e, 0xfb, 0x27, 0x00, + 0x00, 0xff, 0xff, 0xc8, 0x72, 0x44, 0x01, 0x76, 0x19, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// SymmetricKeyServiceClient is the client API for SymmetricKeyService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type SymmetricKeyServiceClient interface { + // Creates a symmetric KMS key in the specified folder. + Create(ctx context.Context, in *CreateSymmetricKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Returns the specified symmetric KMS key. + // + // To get the list of available symmetric KMS keys, make a [SymmetricKeyService.List] request. + Get(ctx context.Context, in *GetSymmetricKeyRequest, opts ...grpc.CallOption) (*SymmetricKey, error) + // Returns the list of symmetric KMS keys in the specified folder. + List(ctx context.Context, in *ListSymmetricKeysRequest, opts ...grpc.CallOption) (*ListSymmetricKeysResponse, error) + // Returns the list of versions of the specified symmetric KMS key. + ListVersions(ctx context.Context, in *ListSymmetricKeyVersionsRequest, opts ...grpc.CallOption) (*ListSymmetricKeyVersionsResponse, error) + // Updates the specified symmetric KMS key. + Update(ctx context.Context, in *UpdateSymmetricKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Deletes the specified symmetric KMS key. This action also automatically schedules + // the destruction of all of the key's versions in 72 hours. + // + // The key and its versions appear absent in [SymmetricKeyService.Get] and [SymmetricKeyService.List] + // requests, but can be restored within 72 hours with a request to tech support. + Delete(ctx context.Context, in *DeleteSymmetricKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Sets the primary version for the specified key. The primary version is used + // by default for all encrypt/decrypt operations where no version ID is specified. + SetPrimaryVersion(ctx context.Context, in *SetPrimarySymmetricKeyVersionRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Schedules the specified key version for destruction. + // + // Scheduled destruction can be cancelled with the [SymmetricKeyService.CancelVersionDestruction] method. + ScheduleVersionDestruction(ctx context.Context, in *ScheduleSymmetricKeyVersionDestructionRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Cancels previously scheduled version destruction, if the version hasn't been destroyed yet. + CancelVersionDestruction(ctx context.Context, in *CancelSymmetricKeyVersionDestructionRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Rotates the specified key: creates a new key version and makes it the primary version. + // The old version remains available for decryption of ciphertext encrypted with it. + Rotate(ctx context.Context, in *RotateSymmetricKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Lists operations for the specified symmetric KMS key. + ListOperations(ctx context.Context, in *ListSymmetricKeyOperationsRequest, opts ...grpc.CallOption) (*ListSymmetricKeyOperationsResponse, error) + // Lists existing access bindings for the specified key. + ListAccessBindings(ctx context.Context, in *access.ListAccessBindingsRequest, opts ...grpc.CallOption) (*access.ListAccessBindingsResponse, error) + // Sets access bindings for the key. + SetAccessBindings(ctx context.Context, in *access.SetAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Updates access bindings for the specified key. + UpdateAccessBindings(ctx context.Context, in *access.UpdateAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error) +} + +type symmetricKeyServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSymmetricKeyServiceClient(cc grpc.ClientConnInterface) SymmetricKeyServiceClient { + return &symmetricKeyServiceClient{cc} +} + +func (c *symmetricKeyServiceClient) Create(ctx context.Context, in *CreateSymmetricKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricKeyService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *symmetricKeyServiceClient) Get(ctx context.Context, in *GetSymmetricKeyRequest, opts ...grpc.CallOption) (*SymmetricKey, error) { + out := new(SymmetricKey) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricKeyService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *symmetricKeyServiceClient) List(ctx context.Context, in *ListSymmetricKeysRequest, opts ...grpc.CallOption) (*ListSymmetricKeysResponse, error) { + out := new(ListSymmetricKeysResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricKeyService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *symmetricKeyServiceClient) ListVersions(ctx context.Context, in *ListSymmetricKeyVersionsRequest, opts ...grpc.CallOption) (*ListSymmetricKeyVersionsResponse, error) { + out := new(ListSymmetricKeyVersionsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricKeyService/ListVersions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *symmetricKeyServiceClient) Update(ctx context.Context, in *UpdateSymmetricKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricKeyService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *symmetricKeyServiceClient) Delete(ctx context.Context, in *DeleteSymmetricKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricKeyService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *symmetricKeyServiceClient) SetPrimaryVersion(ctx context.Context, in *SetPrimarySymmetricKeyVersionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricKeyService/SetPrimaryVersion", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *symmetricKeyServiceClient) ScheduleVersionDestruction(ctx context.Context, in *ScheduleSymmetricKeyVersionDestructionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricKeyService/ScheduleVersionDestruction", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *symmetricKeyServiceClient) CancelVersionDestruction(ctx context.Context, in *CancelSymmetricKeyVersionDestructionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricKeyService/CancelVersionDestruction", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *symmetricKeyServiceClient) Rotate(ctx context.Context, in *RotateSymmetricKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricKeyService/Rotate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *symmetricKeyServiceClient) ListOperations(ctx context.Context, in *ListSymmetricKeyOperationsRequest, opts ...grpc.CallOption) (*ListSymmetricKeyOperationsResponse, error) { + out := new(ListSymmetricKeyOperationsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricKeyService/ListOperations", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *symmetricKeyServiceClient) ListAccessBindings(ctx context.Context, in *access.ListAccessBindingsRequest, opts ...grpc.CallOption) (*access.ListAccessBindingsResponse, error) { + out := new(access.ListAccessBindingsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricKeyService/ListAccessBindings", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *symmetricKeyServiceClient) SetAccessBindings(ctx context.Context, in *access.SetAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricKeyService/SetAccessBindings", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *symmetricKeyServiceClient) UpdateAccessBindings(ctx context.Context, in *access.UpdateAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.kms.v1.SymmetricKeyService/UpdateAccessBindings", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SymmetricKeyServiceServer is the server API for SymmetricKeyService service. +type SymmetricKeyServiceServer interface { + // Creates a symmetric KMS key in the specified folder. + Create(context.Context, *CreateSymmetricKeyRequest) (*operation.Operation, error) + // Returns the specified symmetric KMS key. + // + // To get the list of available symmetric KMS keys, make a [SymmetricKeyService.List] request. + Get(context.Context, *GetSymmetricKeyRequest) (*SymmetricKey, error) + // Returns the list of symmetric KMS keys in the specified folder. + List(context.Context, *ListSymmetricKeysRequest) (*ListSymmetricKeysResponse, error) + // Returns the list of versions of the specified symmetric KMS key. + ListVersions(context.Context, *ListSymmetricKeyVersionsRequest) (*ListSymmetricKeyVersionsResponse, error) + // Updates the specified symmetric KMS key. + Update(context.Context, *UpdateSymmetricKeyRequest) (*operation.Operation, error) + // Deletes the specified symmetric KMS key. This action also automatically schedules + // the destruction of all of the key's versions in 72 hours. + // + // The key and its versions appear absent in [SymmetricKeyService.Get] and [SymmetricKeyService.List] + // requests, but can be restored within 72 hours with a request to tech support. + Delete(context.Context, *DeleteSymmetricKeyRequest) (*operation.Operation, error) + // Sets the primary version for the specified key. The primary version is used + // by default for all encrypt/decrypt operations where no version ID is specified. + SetPrimaryVersion(context.Context, *SetPrimarySymmetricKeyVersionRequest) (*operation.Operation, error) + // Schedules the specified key version for destruction. + // + // Scheduled destruction can be cancelled with the [SymmetricKeyService.CancelVersionDestruction] method. + ScheduleVersionDestruction(context.Context, *ScheduleSymmetricKeyVersionDestructionRequest) (*operation.Operation, error) + // Cancels previously scheduled version destruction, if the version hasn't been destroyed yet. + CancelVersionDestruction(context.Context, *CancelSymmetricKeyVersionDestructionRequest) (*operation.Operation, error) + // Rotates the specified key: creates a new key version and makes it the primary version. + // The old version remains available for decryption of ciphertext encrypted with it. + Rotate(context.Context, *RotateSymmetricKeyRequest) (*operation.Operation, error) + // Lists operations for the specified symmetric KMS key. + ListOperations(context.Context, *ListSymmetricKeyOperationsRequest) (*ListSymmetricKeyOperationsResponse, error) + // Lists existing access bindings for the specified key. + ListAccessBindings(context.Context, *access.ListAccessBindingsRequest) (*access.ListAccessBindingsResponse, error) + // Sets access bindings for the key. + SetAccessBindings(context.Context, *access.SetAccessBindingsRequest) (*operation.Operation, error) + // Updates access bindings for the specified key. + UpdateAccessBindings(context.Context, *access.UpdateAccessBindingsRequest) (*operation.Operation, error) +} + +// UnimplementedSymmetricKeyServiceServer can be embedded to have forward compatible implementations. +type UnimplementedSymmetricKeyServiceServer struct { +} + +func (*UnimplementedSymmetricKeyServiceServer) Create(ctx context.Context, req *CreateSymmetricKeyRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (*UnimplementedSymmetricKeyServiceServer) Get(ctx context.Context, req *GetSymmetricKeyRequest) (*SymmetricKey, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedSymmetricKeyServiceServer) List(ctx context.Context, req *ListSymmetricKeysRequest) (*ListSymmetricKeysResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (*UnimplementedSymmetricKeyServiceServer) ListVersions(ctx context.Context, req *ListSymmetricKeyVersionsRequest) (*ListSymmetricKeyVersionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListVersions not implemented") +} +func (*UnimplementedSymmetricKeyServiceServer) Update(ctx context.Context, req *UpdateSymmetricKeyRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedSymmetricKeyServiceServer) Delete(ctx context.Context, req *DeleteSymmetricKeyRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (*UnimplementedSymmetricKeyServiceServer) SetPrimaryVersion(ctx context.Context, req *SetPrimarySymmetricKeyVersionRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetPrimaryVersion not implemented") +} +func (*UnimplementedSymmetricKeyServiceServer) ScheduleVersionDestruction(ctx context.Context, req *ScheduleSymmetricKeyVersionDestructionRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method ScheduleVersionDestruction not implemented") +} +func (*UnimplementedSymmetricKeyServiceServer) CancelVersionDestruction(ctx context.Context, req *CancelSymmetricKeyVersionDestructionRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelVersionDestruction not implemented") +} +func (*UnimplementedSymmetricKeyServiceServer) Rotate(ctx context.Context, req *RotateSymmetricKeyRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Rotate not implemented") +} +func (*UnimplementedSymmetricKeyServiceServer) ListOperations(ctx context.Context, req *ListSymmetricKeyOperationsRequest) (*ListSymmetricKeyOperationsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") +} +func (*UnimplementedSymmetricKeyServiceServer) ListAccessBindings(ctx context.Context, req *access.ListAccessBindingsRequest) (*access.ListAccessBindingsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListAccessBindings not implemented") +} +func (*UnimplementedSymmetricKeyServiceServer) SetAccessBindings(ctx context.Context, req *access.SetAccessBindingsRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetAccessBindings not implemented") +} +func (*UnimplementedSymmetricKeyServiceServer) UpdateAccessBindings(ctx context.Context, req *access.UpdateAccessBindingsRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateAccessBindings not implemented") +} + +func RegisterSymmetricKeyServiceServer(s *grpc.Server, srv SymmetricKeyServiceServer) { + s.RegisterService(&_SymmetricKeyService_serviceDesc, srv) +} + +func _SymmetricKeyService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateSymmetricKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricKeyServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricKeyService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricKeyServiceServer).Create(ctx, req.(*CreateSymmetricKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SymmetricKeyService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSymmetricKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricKeyServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricKeyService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricKeyServiceServer).Get(ctx, req.(*GetSymmetricKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SymmetricKeyService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListSymmetricKeysRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricKeyServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricKeyService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricKeyServiceServer).List(ctx, req.(*ListSymmetricKeysRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SymmetricKeyService_ListVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListSymmetricKeyVersionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricKeyServiceServer).ListVersions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricKeyService/ListVersions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricKeyServiceServer).ListVersions(ctx, req.(*ListSymmetricKeyVersionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SymmetricKeyService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateSymmetricKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricKeyServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricKeyService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricKeyServiceServer).Update(ctx, req.(*UpdateSymmetricKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SymmetricKeyService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteSymmetricKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricKeyServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricKeyService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricKeyServiceServer).Delete(ctx, req.(*DeleteSymmetricKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SymmetricKeyService_SetPrimaryVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetPrimarySymmetricKeyVersionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricKeyServiceServer).SetPrimaryVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricKeyService/SetPrimaryVersion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricKeyServiceServer).SetPrimaryVersion(ctx, req.(*SetPrimarySymmetricKeyVersionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SymmetricKeyService_ScheduleVersionDestruction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ScheduleSymmetricKeyVersionDestructionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricKeyServiceServer).ScheduleVersionDestruction(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricKeyService/ScheduleVersionDestruction", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricKeyServiceServer).ScheduleVersionDestruction(ctx, req.(*ScheduleSymmetricKeyVersionDestructionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SymmetricKeyService_CancelVersionDestruction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CancelSymmetricKeyVersionDestructionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricKeyServiceServer).CancelVersionDestruction(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricKeyService/CancelVersionDestruction", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricKeyServiceServer).CancelVersionDestruction(ctx, req.(*CancelSymmetricKeyVersionDestructionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SymmetricKeyService_Rotate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RotateSymmetricKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricKeyServiceServer).Rotate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricKeyService/Rotate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricKeyServiceServer).Rotate(ctx, req.(*RotateSymmetricKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SymmetricKeyService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListSymmetricKeyOperationsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricKeyServiceServer).ListOperations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricKeyService/ListOperations", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricKeyServiceServer).ListOperations(ctx, req.(*ListSymmetricKeyOperationsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SymmetricKeyService_ListAccessBindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(access.ListAccessBindingsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricKeyServiceServer).ListAccessBindings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricKeyService/ListAccessBindings", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricKeyServiceServer).ListAccessBindings(ctx, req.(*access.ListAccessBindingsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SymmetricKeyService_SetAccessBindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(access.SetAccessBindingsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricKeyServiceServer).SetAccessBindings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricKeyService/SetAccessBindings", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricKeyServiceServer).SetAccessBindings(ctx, req.(*access.SetAccessBindingsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SymmetricKeyService_UpdateAccessBindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(access.UpdateAccessBindingsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SymmetricKeyServiceServer).UpdateAccessBindings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.kms.v1.SymmetricKeyService/UpdateAccessBindings", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SymmetricKeyServiceServer).UpdateAccessBindings(ctx, req.(*access.UpdateAccessBindingsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _SymmetricKeyService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.kms.v1.SymmetricKeyService", + HandlerType: (*SymmetricKeyServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Create", + Handler: _SymmetricKeyService_Create_Handler, + }, + { + MethodName: "Get", + Handler: _SymmetricKeyService_Get_Handler, + }, + { + MethodName: "List", + Handler: _SymmetricKeyService_List_Handler, + }, + { + MethodName: "ListVersions", + Handler: _SymmetricKeyService_ListVersions_Handler, + }, + { + MethodName: "Update", + Handler: _SymmetricKeyService_Update_Handler, + }, + { + MethodName: "Delete", + Handler: _SymmetricKeyService_Delete_Handler, + }, + { + MethodName: "SetPrimaryVersion", + Handler: _SymmetricKeyService_SetPrimaryVersion_Handler, + }, + { + MethodName: "ScheduleVersionDestruction", + Handler: _SymmetricKeyService_ScheduleVersionDestruction_Handler, + }, + { + MethodName: "CancelVersionDestruction", + Handler: _SymmetricKeyService_CancelVersionDestruction_Handler, + }, + { + MethodName: "Rotate", + Handler: _SymmetricKeyService_Rotate_Handler, + }, + { + MethodName: "ListOperations", + Handler: _SymmetricKeyService_ListOperations_Handler, + }, + { + MethodName: "ListAccessBindings", + Handler: _SymmetricKeyService_ListAccessBindings_Handler, + }, + { + MethodName: "SetAccessBindings", + Handler: _SymmetricKeyService_SetAccessBindings_Handler, + }, + { + MethodName: "UpdateAccessBindings", + Handler: _SymmetricKeyService_UpdateAccessBindings_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/kms/v1/symmetric_key_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_key_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_key_service.pbext.go new file mode 100644 index 000000000..344a0c4d0 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/symmetric_key_service.pbext.go @@ -0,0 +1,218 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package kms + +import ( + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *CreateSymmetricKeyRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateSymmetricKeyRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateSymmetricKeyRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateSymmetricKeyRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateSymmetricKeyRequest) SetDefaultAlgorithm(v SymmetricAlgorithm) { + m.DefaultAlgorithm = v +} + +func (m *CreateSymmetricKeyRequest) SetRotationPeriod(v *duration.Duration) { + m.RotationPeriod = v +} + +func (m *CreateSymmetricKeyMetadata) SetKeyId(v string) { + m.KeyId = v +} + +func (m *CreateSymmetricKeyMetadata) SetPrimaryVersionId(v string) { + m.PrimaryVersionId = v +} + +func (m *GetSymmetricKeyRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *ListSymmetricKeysRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListSymmetricKeysRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListSymmetricKeysRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListSymmetricKeysResponse) SetKeys(v []*SymmetricKey) { + m.Keys = v +} + +func (m *ListSymmetricKeysResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListSymmetricKeyVersionsRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *ListSymmetricKeyVersionsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListSymmetricKeyVersionsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListSymmetricKeyVersionsResponse) SetKeyVersions(v []*SymmetricKeyVersion) { + m.KeyVersions = v +} + +func (m *ListSymmetricKeyVersionsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *UpdateSymmetricKeyRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *UpdateSymmetricKeyRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateSymmetricKeyRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateSymmetricKeyRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateSymmetricKeyRequest) SetStatus(v SymmetricKey_Status) { + m.Status = v +} + +func (m *UpdateSymmetricKeyRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateSymmetricKeyRequest) SetDefaultAlgorithm(v SymmetricAlgorithm) { + m.DefaultAlgorithm = v +} + +func (m *UpdateSymmetricKeyRequest) SetRotationPeriod(v *duration.Duration) { + m.RotationPeriod = v +} + +func (m *UpdateSymmetricKeyMetadata) SetKeyId(v string) { + m.KeyId = v +} + +func (m *DeleteSymmetricKeyRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *DeleteSymmetricKeyMetadata) SetKeyId(v string) { + m.KeyId = v +} + +func (m *SetPrimarySymmetricKeyVersionRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *SetPrimarySymmetricKeyVersionRequest) SetVersionId(v string) { + m.VersionId = v +} + +func (m *SetPrimarySymmetricKeyVersionMetadata) SetKeyId(v string) { + m.KeyId = v +} + +func (m *SetPrimarySymmetricKeyVersionMetadata) SetVersionId(v string) { + m.VersionId = v +} + +func (m *RotateSymmetricKeyRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *RotateSymmetricKeyMetadata) SetKeyId(v string) { + m.KeyId = v +} + +func (m *RotateSymmetricKeyMetadata) SetNewPrimaryVersionId(v string) { + m.NewPrimaryVersionId = v +} + +func (m *ScheduleSymmetricKeyVersionDestructionRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *ScheduleSymmetricKeyVersionDestructionRequest) SetVersionId(v string) { + m.VersionId = v +} + +func (m *ScheduleSymmetricKeyVersionDestructionRequest) SetPendingPeriod(v *duration.Duration) { + m.PendingPeriod = v +} + +func (m *ScheduleSymmetricKeyVersionDestructionMetadata) SetKeyId(v string) { + m.KeyId = v +} + +func (m *ScheduleSymmetricKeyVersionDestructionMetadata) SetVersionId(v string) { + m.VersionId = v +} + +func (m *ScheduleSymmetricKeyVersionDestructionMetadata) SetDestroyAt(v *timestamp.Timestamp) { + m.DestroyAt = v +} + +func (m *CancelSymmetricKeyVersionDestructionRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *CancelSymmetricKeyVersionDestructionRequest) SetVersionId(v string) { + m.VersionId = v +} + +func (m *CancelSymmetricKeyVersionDestructionMetadata) SetKeyId(v string) { + m.KeyId = v +} + +func (m *CancelSymmetricKeyVersionDestructionMetadata) SetVersionId(v string) { + m.VersionId = v +} + +func (m *ListSymmetricKeyOperationsRequest) SetKeyId(v string) { + m.KeyId = v +} + +func (m *ListSymmetricKeyOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListSymmetricKeyOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListSymmetricKeyOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListSymmetricKeyOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/health_check.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/health_check.pb.go index 731f72363..2fff716ab 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/health_check.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/health_check.pb.go @@ -253,33 +253,34 @@ func init() { } var fileDescriptor_9b62ad9bb627f411 = []byte{ - // 446 bytes of a gzipped FileDescriptorProto + // 454 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x6f, 0xd3, 0x30, 0x14, 0xc6, 0x09, 0x0d, 0xeb, 0xf6, 0x82, 0x04, 0x98, 0x4b, 0xa8, 0x18, 0x54, 0x48, 0x48, 0x3d, - 0x60, 0x67, 0x6e, 0xe9, 0xa6, 0x8a, 0x5b, 0xe0, 0xd0, 0x0b, 0x9a, 0x14, 0x4d, 0x42, 0x5a, 0x35, - 0x55, 0x6e, 0x62, 0xe2, 0x88, 0x34, 0x8e, 0xb2, 0x97, 0x8a, 0x0d, 0xf8, 0xdf, 0xe0, 0xd4, 0x3f, - 0x83, 0x2b, 0x67, 0x8e, 0x3b, 0xa1, 0x39, 0x69, 0x1b, 0x98, 0xb4, 0x72, 0xcb, 0x93, 0xbf, 0xdf, - 0xf7, 0xbe, 0xf8, 0x3d, 0x83, 0x77, 0x21, 0xb2, 0x48, 0x7e, 0xf6, 0xc2, 0x54, 0x97, 0x91, 0x97, - 0x6a, 0x11, 0xcd, 0x44, 0x2a, 0xb2, 0x50, 0x16, 0xde, 0x82, 0x7b, 0x4a, 0x8a, 0x14, 0xd5, 0x34, - 0x54, 0x32, 0xfc, 0xc4, 0xf2, 0x42, 0xa3, 0x26, 0x4f, 0x2b, 0x80, 0x19, 0x80, 0x35, 0x01, 0xb6, - 0xe0, 0x9d, 0x67, 0xb1, 0xd6, 0x71, 0x2a, 0x3d, 0xa3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0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/health_check.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/health_check.pbext.go new file mode 100644 index 000000000..797a6b4f3 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/health_check.pbext.go @@ -0,0 +1,57 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package loadbalancer + +import ( + duration "github.com/golang/protobuf/ptypes/duration" +) + +type HealthCheck_Options = isHealthCheck_Options + +func (m *HealthCheck) SetOptions(v HealthCheck_Options) { + m.Options = v +} + +func (m *HealthCheck) SetName(v string) { + m.Name = v +} + +func (m *HealthCheck) SetInterval(v *duration.Duration) { + m.Interval = v +} + +func (m *HealthCheck) SetTimeout(v *duration.Duration) { + m.Timeout = v +} + +func (m *HealthCheck) SetUnhealthyThreshold(v int64) { + m.UnhealthyThreshold = v +} + +func (m *HealthCheck) SetHealthyThreshold(v int64) { + m.HealthyThreshold = v +} + +func (m *HealthCheck) SetTcpOptions(v *HealthCheck_TcpOptions) { + m.Options = &HealthCheck_TcpOptions_{ + TcpOptions: v, + } +} + +func (m *HealthCheck) SetHttpOptions(v *HealthCheck_HttpOptions) { + m.Options = &HealthCheck_HttpOptions_{ + HttpOptions: v, + } +} + +func (m *HealthCheck_TcpOptions) SetPort(v int64) { + m.Port = v +} + +func (m *HealthCheck_HttpOptions) SetPort(v int64) { + m.Port = v +} + +func (m *HealthCheck_HttpOptions) SetPath(v string) { + m.Path = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/network_load_balancer.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/network_load_balancer.pb.go index 85fbb1e5c..4d77c1ec2 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/network_load_balancer.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/network_load_balancer.pb.go @@ -113,16 +113,20 @@ const ( NetworkLoadBalancer_TYPE_UNSPECIFIED NetworkLoadBalancer_Type = 0 // External network load balancer. NetworkLoadBalancer_EXTERNAL NetworkLoadBalancer_Type = 1 + // Internal network load balancer. + NetworkLoadBalancer_INTERNAL NetworkLoadBalancer_Type = 2 ) var NetworkLoadBalancer_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "EXTERNAL", + 2: "INTERNAL", } var NetworkLoadBalancer_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "EXTERNAL": 1, + "INTERNAL": 2, } func (x NetworkLoadBalancer_Type) String() string { @@ -167,16 +171,19 @@ type Listener_Protocol int32 const ( Listener_PROTOCOL_UNSPECIFIED Listener_Protocol = 0 Listener_TCP Listener_Protocol = 1 + Listener_UDP Listener_Protocol = 2 ) var Listener_Protocol_name = map[int32]string{ 0: "PROTOCOL_UNSPECIFIED", 1: "TCP", + 2: "UDP", } var Listener_Protocol_value = map[string]int32{ "PROTOCOL_UNSPECIFIED": 0, "TCP": 1, + "UDP": 2, } func (x Listener_Protocol) String() string { @@ -432,7 +439,9 @@ type Listener struct { // Network protocol for incoming traffic. Protocol Listener_Protocol `protobuf:"varint,4,opt,name=protocol,proto3,enum=yandex.cloud.loadbalancer.v1.Listener_Protocol" json:"protocol,omitempty"` // Port of a target. - TargetPort int64 `protobuf:"varint,5,opt,name=target_port,json=targetPort,proto3" json:"target_port,omitempty"` + TargetPort int64 `protobuf:"varint,5,opt,name=target_port,json=targetPort,proto3" json:"target_port,omitempty"` + // ID of the subnet. + SubnetId string `protobuf:"bytes,6,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -498,6 +507,13 @@ func (m *Listener) GetTargetPort() int64 { return 0 } +func (m *Listener) GetSubnetId() string { + if m != nil { + return m.SubnetId + } + return "" +} + // State of the target that was returned after the last health check. type TargetState struct { // ID of the subnet that the target is connected to. @@ -576,65 +592,67 @@ func init() { } var fileDescriptor_33d34a5ec4bd7fd4 = []byte{ - // 952 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcd, 0x6e, 0xdb, 0x46, - 0x10, 0x2e, 0xf5, 0xaf, 0x91, 0x7f, 0x88, 0x8d, 0x61, 0x10, 0x6a, 0x8a, 0x08, 0x3a, 0x14, 0x6e, - 0x00, 0x53, 0x91, 0x9b, 0x06, 0x4e, 0xd3, 0x1c, 0x68, 0x89, 0x8e, 0xb7, 0x55, 0x28, 0x62, 0x45, - 0x19, 0x75, 0x2f, 0xc4, 0x4a, 0x5c, 0x4b, 0x84, 0x69, 0x52, 0x20, 0x57, 0x6e, 0x75, 0x2a, 0xd0, - 0x63, 0xdf, 0xa0, 0xd7, 0xbe, 0x4c, 0xf3, 0x28, 0xed, 0x03, 0xf4, 0x5e, 0xec, 0x92, 0xb2, 0x69, - 0x27, 0x50, 0x9b, 0xde, 0x76, 0x66, 0xf6, 0xfb, 0x66, 0x67, 0xbf, 0xd9, 0x59, 0x38, 0x5e, 0xd1, - 0xd0, 0x63, 0x3f, 0x75, 0xa6, 0x41, 0xb4, 0xf4, 0x3a, 0x41, 0x44, 0xbd, 0x09, 0x0d, 0x68, 0x38, - 0x65, 0x71, 0xe7, 0xa6, 0xdb, 0x09, 0x19, 0xff, 0x31, 0x8a, 0xaf, 0x5c, 0xe1, 0x77, 0xd7, 0x01, - 0x7d, 0x11, 0x47, 0x3c, 0x42, 0x8f, 0x53, 0xa4, 0x2e, 0x91, 0x7a, 0x1e, 0xa9, 0xdf, 0x74, 0x9b, - 0x4f, 0x66, 0x51, 0x34, 0x0b, 0x58, 0x47, 0xee, 0x9d, 0x2c, 0x2f, 0x3b, 0xdc, 0xbf, 0x66, 0x09, - 0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0xab, 0x41, 0x09, 0xdb, 0xe7, - 0xcf, 0x55, 0x25, 0x5b, 0xbd, 0x50, 0x0b, 0x27, 0xc3, 0x1f, 0xde, 0xce, 0x7c, 0x3e, 0x5f, 0x4e, - 0xf4, 0x69, 0x74, 0x9d, 0xfd, 0x8f, 0x87, 0xe9, 0xff, 0x38, 0x8b, 0x0e, 0x67, 0x2c, 0x94, 0x72, - 0x6d, 0xfc, 0x38, 0x5f, 0xe5, 0xed, 0x49, 0x45, 0x02, 0xbe, 0xfc, 0x27, 0x00, 0x00, 0xff, 0xff, - 0x2c, 0x7c, 0x99, 0x24, 0x04, 0x08, 0x00, 0x00, + // 981 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcf, 0x6e, 0xdb, 0xc6, + 0x13, 0xfe, 0x91, 0xfa, 0x3f, 0xf2, 0x1f, 0x62, 0x63, 0x18, 0x84, 0x93, 0x1f, 0x22, 0xe8, 0x50, + 0xb8, 0x05, 0x42, 0x45, 0x6e, 0x6a, 0x38, 0x4d, 0x73, 0xa0, 0x25, 0x3a, 0xde, 0x56, 0xa1, 0x08, + 0x8a, 0x32, 0xea, 0x5e, 0x88, 0x95, 0xb8, 0x96, 0x08, 0xd3, 0xa4, 0x4a, 0xae, 0xdc, 0xea, 0x54, + 0xa0, 0xc7, 0x5e, 0xfa, 0x0e, 0xbd, 0xf4, 0x51, 0x9a, 0x47, 0xe9, 0x0b, 0xf4, 0x5e, 0xec, 0x2e, + 0x65, 0x4b, 0x4e, 0xa0, 0x36, 0xbd, 0xed, 0xcc, 0xee, 0xf7, 0xcd, 0xce, 0x7c, 0xb3, 0xb3, 0x70, + 0xb2, 0x20, 0x71, 0x40, 0x7f, 0x6c, 0x8d, 0xa3, 0x64, 0x1e, 0xb4, 0xa2, 0x84, 0x04, 0x23, 0x12, + 0x91, 0x78, 0x4c, 0xd3, 0xd6, 0x6d, 0xbb, 0x15, 0x53, 0xf6, 0x43, 0x92, 0x5e, 0xfb, 0xdc, 0xef, + 0x2f, 0x37, 0x8c, 0x59, 0x9a, 0xb0, 0x04, 0x3d, 0x91, 0x48, 0x43, 0x20, 0x8d, 0x55, 0xa4, 0x71, + 0xdb, 0x3e, 0x78, 0x3a, 0x49, 0x92, 0x49, 0x44, 0x5b, 0xe2, 0xec, 0x68, 0x7e, 0xd5, 0x62, 0xe1, + 0x0d, 0xcd, 0x18, 0xb9, 0x99, 0x49, 0xf8, 0xc1, 0xff, 0xd7, 0x02, 0xdf, 0x92, 0x28, 0x0c, 0x08, + 0x0b, 0x93, 0x38, 0xdf, 0x6e, 0x6d, 0xbc, 0xd7, 0x94, 0x92, 0x88, 0x4d, 0xfd, 0xf1, 0x94, 0x8e, + 0xaf, 0x25, 0xa0, 0xf9, 0x7b, 0x15, 0x1e, 0xd9, 0xf2, 0xba, 0xbd, 0x84, 0x04, 0xa7, 0xf9, 0x69, + 0xb4, 0x03, 0x6a, 0x18, 0xe8, 0x4a, 0x43, 0x39, 0xac, 0xb9, 0x6a, 0x18, 0xa0, 0xc7, 0x50, 0xbb, + 0x4a, 0xa2, 0x80, 0xa6, 0x7e, 0x18, 0xe8, 0xaa, 0x70, 0x57, 0xa5, 0x03, 0x07, 0xe8, 0x25, 0xc0, + 0x38, 0xa5, 0x84, 0xd1, 0xc0, 0x27, 0x4c, 0x2f, 0x34, 0x94, 0xc3, 0xfa, 0xd1, 0x81, 0x21, 0x53, + 0x31, 0x96, 0xa9, 0x18, 0xde, 0x32, 0x15, 0xb7, 0x96, 0x9f, 0x36, 0x19, 0x42, 0x50, 0x8c, 0xc9, + 0x0d, 0xd5, 0x8b, 0x82, 0x52, 0xac, 0x51, 0x03, 0xea, 0x01, 0xcd, 0xc6, 0x69, 0x38, 0xe3, 0x99, + 0xe9, 0x25, 0xb1, 0xb5, 0xea, 0x42, 0x43, 0x28, 0x47, 0x64, 0x44, 0xa3, 0x4c, 0x2f, 0x37, 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, 0xbd, 0x26, 0xfd, 0xc7, 0x17, 0x55, 0x87, 0x0a, 0x6f, 0x4d, 0x2c, 0x7a, 0xba, 0x0e, 0x95, + 0x73, 0xcb, 0xec, 0x79, 0xe7, 0x97, 0x9a, 0x8a, 0xb6, 0xa1, 0x36, 0xb4, 0x97, 0xa6, 0x78, 0x52, + 0x5d, 0xd7, 0xc4, 0xb6, 0x7c, 0x52, 0xab, 0xef, 0xa6, 0xf4, 0xd9, 0x2b, 0xa8, 0xe1, 0xd9, 0x05, + 0x4d, 0x79, 0xff, 0xa3, 0x03, 0xd8, 0xc7, 0x8e, 0x7f, 0x61, 0xb9, 0xa2, 0xf5, 0xd7, 0xa3, 0x55, + 0xa1, 0x88, 0x9d, 0x8b, 0x17, 0x9a, 0x92, 0xaf, 0x8e, 0x35, 0xf5, 0xf4, 0x7b, 0x68, 0xac, 0xa5, + 0x47, 0x66, 0xe1, 0xc3, 0x14, 0xbf, 0x7b, 0x3b, 0x09, 0xd9, 0x74, 0x3e, 0x32, 0xc6, 0xc9, 0x4d, + 0xfe, 0xeb, 0x3e, 0x93, 0xbf, 0xee, 0x24, 0x79, 0x36, 0xa1, 0xb1, 0x90, 0x7d, 0xe3, 0x77, 0xfc, + 0x6a, 0xd5, 0x1e, 0x95, 0x05, 0xe0, 0xf3, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x30, 0x82, 0x4d, + 0x0e, 0x5a, 0x08, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/network_load_balancer.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/network_load_balancer.pbext.go new file mode 100644 index 000000000..ea82e2caf --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/network_load_balancer.pbext.go @@ -0,0 +1,99 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package loadbalancer + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *NetworkLoadBalancer) SetId(v string) { + m.Id = v +} + +func (m *NetworkLoadBalancer) SetFolderId(v string) { + m.FolderId = v +} + +func (m *NetworkLoadBalancer) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *NetworkLoadBalancer) SetName(v string) { + m.Name = v +} + +func (m *NetworkLoadBalancer) SetDescription(v string) { + m.Description = v +} + +func (m *NetworkLoadBalancer) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *NetworkLoadBalancer) SetRegionId(v string) { + m.RegionId = v +} + +func (m *NetworkLoadBalancer) SetStatus(v NetworkLoadBalancer_Status) { + m.Status = v +} + +func (m *NetworkLoadBalancer) SetType(v NetworkLoadBalancer_Type) { + m.Type = v +} + +func (m *NetworkLoadBalancer) SetSessionAffinity(v NetworkLoadBalancer_SessionAffinity) { + m.SessionAffinity = v +} + +func (m *NetworkLoadBalancer) SetListeners(v []*Listener) { + m.Listeners = v +} + +func (m *NetworkLoadBalancer) SetAttachedTargetGroups(v []*AttachedTargetGroup) { + m.AttachedTargetGroups = v +} + +func (m *AttachedTargetGroup) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *AttachedTargetGroup) SetHealthChecks(v []*HealthCheck) { + m.HealthChecks = v +} + +func (m *Listener) SetName(v string) { + m.Name = v +} + +func (m *Listener) SetAddress(v string) { + m.Address = v +} + +func (m *Listener) SetPort(v int64) { + m.Port = v +} + +func (m *Listener) SetProtocol(v Listener_Protocol) { + m.Protocol = v +} + +func (m *Listener) SetTargetPort(v int64) { + m.TargetPort = v +} + +func (m *Listener) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *TargetState) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *TargetState) SetAddress(v string) { + m.Address = v +} + +func (m *TargetState) SetStatus(v TargetState_Status) { + m.Status = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/network_load_balancer_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/network_load_balancer_service.pb.go index d5379aa33..df4bc8acf 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/network_load_balancer_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/network_load_balancer_service.pb.go @@ -218,7 +218,7 @@ type CreateNetworkLoadBalancerRequest struct { Type NetworkLoadBalancer_Type `protobuf:"varint,6,opt,name=type,proto3,enum=yandex.cloud.loadbalancer.v1.NetworkLoadBalancer_Type" json:"type,omitempty"` // List of listeners and their specs for the network load balancer. ListenerSpecs []*ListenerSpec `protobuf:"bytes,7,rep,name=listener_specs,json=listenerSpecs,proto3" json:"listener_specs,omitempty"` - // List of attached target groups for the network load balancer. For now, we accept only one target_group per NetworkLoadBalancer resource. + // List of attached target groups for the network load balancer. AttachedTargetGroups []*AttachedTargetGroup `protobuf:"bytes,8,rep,name=attached_target_groups,json=attachedTargetGroups,proto3" json:"attached_target_groups,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -363,7 +363,7 @@ type UpdateNetworkLoadBalancerRequest struct { Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // A list of listeners and their specs for the network load balancer. ListenerSpecs []*ListenerSpec `protobuf:"bytes,6,rep,name=listener_specs,json=listenerSpecs,proto3" json:"listener_specs,omitempty"` - // A list of attached target groups for the network load balancer. For now, we accept only one target_group per NetworkLoadBalancer resource. + // A list of attached target groups for the network load balancer. AttachedTargetGroups []*AttachedTargetGroup `protobuf:"bytes,7,rep,name=attached_target_groups,json=attachedTargetGroups,proto3" json:"attached_target_groups,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1387,6 +1387,65 @@ func (m *ExternalAddressSpec) GetIpVersion() IpVersion { return IpVersion_IP_VERSION_UNSPECIFIED } +// Internal address specification that is used by [ListenerSpec]. +type InternalAddressSpec struct { + // Internal IP address for a listener. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // ID of the subnet. + SubnetId string `protobuf:"bytes,2,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` + // IP version. + IpVersion IpVersion `protobuf:"varint,3,opt,name=ip_version,json=ipVersion,proto3,enum=yandex.cloud.loadbalancer.v1.IpVersion" json:"ip_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InternalAddressSpec) Reset() { *m = InternalAddressSpec{} } +func (m *InternalAddressSpec) String() string { return proto.CompactTextString(m) } +func (*InternalAddressSpec) ProtoMessage() {} +func (*InternalAddressSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ed3f675ebca1fa76, []int{26} +} + +func (m *InternalAddressSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InternalAddressSpec.Unmarshal(m, b) +} +func (m *InternalAddressSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InternalAddressSpec.Marshal(b, m, deterministic) +} +func (m *InternalAddressSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_InternalAddressSpec.Merge(m, src) +} +func (m *InternalAddressSpec) XXX_Size() int { + return xxx_messageInfo_InternalAddressSpec.Size(m) +} +func (m *InternalAddressSpec) XXX_DiscardUnknown() { + xxx_messageInfo_InternalAddressSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_InternalAddressSpec proto.InternalMessageInfo + +func (m *InternalAddressSpec) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *InternalAddressSpec) GetSubnetId() string { + if m != nil { + return m.SubnetId + } + return "" +} + +func (m *InternalAddressSpec) GetIpVersion() IpVersion { + if m != nil { + return m.IpVersion + } + return IpVersion_IP_VERSION_UNSPECIFIED +} + // Listener specification that will be used by a network load balancer. type ListenerSpec struct { // Name of the listener. The name must be unique for each listener on a single load balancer. 3-63 characters long. @@ -1399,9 +1458,10 @@ type ListenerSpec struct { // // Types that are valid to be assigned to Address: // *ListenerSpec_ExternalAddressSpec + // *ListenerSpec_InternalAddressSpec Address isListenerSpec_Address `protobuf_oneof:"address"` // Port of a target. - // Acceptable values are 1 to 32767, inclusive. + // Acceptable values are 1 to 65535, inclusive. TargetPort int64 `protobuf:"varint,5,opt,name=target_port,json=targetPort,proto3" json:"target_port,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1412,7 +1472,7 @@ func (m *ListenerSpec) Reset() { *m = ListenerSpec{} } func (m *ListenerSpec) String() string { return proto.CompactTextString(m) } func (*ListenerSpec) ProtoMessage() {} func (*ListenerSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_ed3f675ebca1fa76, []int{26} + return fileDescriptor_ed3f675ebca1fa76, []int{27} } func (m *ListenerSpec) XXX_Unmarshal(b []byte) error { @@ -1462,8 +1522,14 @@ type ListenerSpec_ExternalAddressSpec struct { ExternalAddressSpec *ExternalAddressSpec `protobuf:"bytes,4,opt,name=external_address_spec,json=externalAddressSpec,proto3,oneof"` } +type ListenerSpec_InternalAddressSpec struct { + InternalAddressSpec *InternalAddressSpec `protobuf:"bytes,6,opt,name=internal_address_spec,json=internalAddressSpec,proto3,oneof"` +} + func (*ListenerSpec_ExternalAddressSpec) isListenerSpec_Address() {} +func (*ListenerSpec_InternalAddressSpec) isListenerSpec_Address() {} + func (m *ListenerSpec) GetAddress() isListenerSpec_Address { if m != nil { return m.Address @@ -1478,6 +1544,13 @@ func (m *ListenerSpec) GetExternalAddressSpec() *ExternalAddressSpec { return nil } +func (m *ListenerSpec) GetInternalAddressSpec() *InternalAddressSpec { + if x, ok := m.GetAddress().(*ListenerSpec_InternalAddressSpec); ok { + return x.InternalAddressSpec + } + return nil +} + func (m *ListenerSpec) GetTargetPort() int64 { if m != nil { return m.TargetPort @@ -1489,6 +1562,7 @@ func (m *ListenerSpec) GetTargetPort() int64 { func (*ListenerSpec) XXX_OneofWrappers() []interface{} { return []interface{}{ (*ListenerSpec_ExternalAddressSpec)(nil), + (*ListenerSpec_InternalAddressSpec)(nil), } } @@ -1521,6 +1595,7 @@ func init() { proto.RegisterType((*GetTargetStatesRequest)(nil), "yandex.cloud.loadbalancer.v1.GetTargetStatesRequest") proto.RegisterType((*GetTargetStatesResponse)(nil), "yandex.cloud.loadbalancer.v1.GetTargetStatesResponse") proto.RegisterType((*ExternalAddressSpec)(nil), "yandex.cloud.loadbalancer.v1.ExternalAddressSpec") + proto.RegisterType((*InternalAddressSpec)(nil), "yandex.cloud.loadbalancer.v1.InternalAddressSpec") proto.RegisterType((*ListenerSpec)(nil), "yandex.cloud.loadbalancer.v1.ListenerSpec") } @@ -1529,130 +1604,133 @@ func init() { } var fileDescriptor_ed3f675ebca1fa76 = []byte{ - // 1809 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0x4b, 0x6c, 0x1b, 0xc7, - 0x19, 0xee, 0x4a, 0x24, 0x25, 0xfe, 0xb4, 0x95, 0x74, 0xfc, 0x28, 0x4b, 0xc4, 0x35, 0xbd, 0x40, - 0x1c, 0x5a, 0x0e, 0x1f, 0x4b, 0xdb, 0xb2, 0x65, 0x5b, 0x69, 0x44, 0xc7, 0x52, 0x18, 0xc8, 0x8e, - 0xb2, 0xb4, 0x8b, 0x36, 0x6a, 0x40, 0x8c, 0xb8, 0x63, 0x7a, 0xa1, 0xd5, 0xee, 0x76, 0x77, 0xa4, - 0x58, 0x4e, 0x73, 0xf1, 0xa5, 0x85, 0xd1, 0xa2, 0x28, 0x0a, 0x14, 0xe8, 0xa1, 0xe8, 0xa1, 0xe8, - 0xa1, 0x3d, 0xa6, 0xe8, 0xa1, 0x05, 0x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x30, 0xc3, - 0x9e, 0xf7, 0x05, 0x71, 0x14, 0x3f, 0x71, 0x1b, 0x03, 0x85, 0xe5, 0xc4, 0x76, 0xbc, 0x94, 0x79, - 0xc0, 0x09, 0xb8, 0x8f, 0x56, 0x12, 0x13, 0xb0, 0xff, 0xc7, 0x05, 0xb7, 0xf1, 0xf6, 0xbb, 0xf7, - 0xba, 0x3a, 0x7d, 0xbc, 0xb5, 0x5e, 0xe9, 0x58, 0x9b, 0x55, 0x71, 0xd4, 0xb2, 0xf8, 0x03, 0x43, - 0xd7, 0x2a, 0x77, 0x89, 0xc9, 0xef, 0xb7, 0x6a, 0xd8, 0x3f, 0x1b, 0x6e, 0xf9, 0x9f, 0xd7, 0x33, - 0x7c, 0xc1, 0x95, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x74, 0x1a, 0xf5, 0xb2, 0x16, 0x22, 0x00, - 0x00, + // 1863 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0x4f, 0x6c, 0x1b, 0x59, + 0x19, 0x67, 0x62, 0xc7, 0x89, 0x3f, 0xb7, 0xdd, 0xe5, 0xa5, 0x29, 0xc6, 0x6c, 0xa9, 0x3b, 0xd2, + 0x76, 0xd3, 0x74, 0x6d, 0x67, 0xd2, 0x26, 0x34, 0x6d, 0xb3, 0x6c, 0xdc, 0x6d, 0xb2, 0x5e, 0xa5, + 0x25, 0x3b, 0x6e, 0x11, 0x6c, 0xa8, 0xac, 0x17, 0xcf, 0xab, 0x3b, 0xca, 0x64, 0x66, 0x76, 0xe6, + 0x39, 0xdb, 0x74, 0xd9, 0x4b, 0x2f, 0xa0, 0x0a, 0x84, 0x10, 0x08, 0x89, 0x03, 0xe2, 0x80, 0x38, + 0xc0, 0x71, 0x11, 0x07, 0x04, 0x48, 0x48, 0x80, 0x92, 0x33, 0x9c, 0xe0, 0x04, 0x12, 0x07, 0xce, + 0x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44, 0xea, 0x5a, 0x5e, 0x2a, 0x4a, 0x33, 0xd9, 0xea, + 0xe4, 0xd3, 0x03, 0x25, 0x7d, 0x63, 0x79, 0x61, 0x4e, 0x9d, 0x36, 0x8f, 0xfa, 0xa9, 0x69, 0xf2, + 0xef, 0x25, 0x38, 0xb7, 0xae, 0xbb, 0x41, 0xab, 0xb8, 0x9d, 0x65, 0x2e, 0x42, 0xf6, 0x81, 0x65, + 0x68, 0x7e, 0xbf, 0x27, 0xfe, 0xb9, 0xaf, 0x48, 0x5d, 0xdf, 0x93, 0xc2, 0x5c, 0xd3, 0xd0, 0x2b, + 0x90, 0xb5, 0x71, 0x8b, 0x34, 0x5c, 0xfd, 0x31, 0xc9, 0x8f, 0x15, 0xa5, 0x99, 0x54, 0x15, 0x3e, + 0xde, 0x57, 0x32, 0x37, 0x96, 0x95, 0xb9, 0xb9, 0x39, 0x75, 0x92, 0x19, 0xeb, 0xfa, 0x63, 0x82, + 0x66, 0x00, 0xf8, 0x40, 0x6a, 0x6d, 0x13, 0x33, 0x9f, 0xe2, 0x4e, 0xb3, 0x4f, 0x0f, 0x94, 0x71, + 0x3e, 0x52, 0xe5, 0x5e, 0xee, 0x32, 0x1b, 0x92, 0x21, 0xf3, 0x40, 0x37, 0x28, 0x71, 0xf2, 0x69, + 0x3e, 0x0a, 0x9e, 0x1e, 0x74, 0xfd, 0x79, 0x16, 0xf9, 0x17, 0x12, 0x14, 0x07, 0xa3, 0x70, 0x6d, + 0xcb, 0x74, 0x09, 0x6a, 0xc1, 0x99, 0x40, 0xb6, 0xdc, 0xbc, 0x54, 0x4c, 0xcd, 0xe4, 0xe6, 0x95, + 0x72, 0x58, 0xc0, 0x95, 0x83, 0xce, 0xe1, 0x74, 0x00, 0xa9, 0x2e, 0xba, 0x00, 0x2f, 0x98, 0xe4, + 0x11, 0x6d, 0xf8, 0x00, 0x32, 0x2a, 0xb2, 0xea, 0x49, 0xf6, 0x7a, 0xa3, 0x83, 0x4c, 0xfe, 0xd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0x33, 0xd3, 0x71, + 0x33, 0x73, 0x3c, 0x4e, 0x66, 0x46, 0x11, 0xf7, 0x7c, 0x32, 0xf3, 0x68, 0x72, 0x64, 0x8e, 0x27, + 0x39, 0x26, 0x3e, 0x91, 0xc9, 0x31, 0xf0, 0x10, 0x92, 0x27, 0x87, 0x0e, 0xc5, 0x37, 0x88, 0x41, + 0x8e, 0x21, 0x37, 0x18, 0x90, 0x81, 0x4b, 0x25, 0x07, 0xf2, 0x10, 0xce, 0xd5, 0x29, 0x76, 0xe8, + 0xf3, 0xc7, 0xb1, 0x09, 0xc5, 0x41, 0x2b, 0x25, 0x87, 0xd1, 0x82, 0xcf, 0xd7, 0xa9, 0x65, 0x3f, + 0x7f, 0x14, 0xef, 0x30, 0xbe, 0x02, 0x17, 0x4a, 0x0e, 0xe2, 0xef, 0x12, 0x5c, 0x12, 0x49, 0x12, + 0xe0, 0xde, 0x97, 0x17, 0x23, 0x2e, 0xbe, 0xdb, 0x30, 0x1d, 0x98, 0xd6, 0x5e, 0x19, 0x7e, 0x86, + 0xac, 0x16, 0x17, 0xf6, 0x54, 0x40, 0x4a, 0xcb, 0xdf, 0x91, 0xe0, 0xd5, 0x38, 0x18, 0x13, 0xb3, + 0xc9, 0x3e, 0x14, 0xfd, 0x68, 0xd8, 0x78, 0xef, 0x43, 0x91, 0x1e, 0x2e, 0x53, 0xd3, 0xe4, 0x9f, + 0x4b, 0x70, 0xe9, 0x0d, 0x72, 0xec, 0xac, 0x5f, 0x19, 0xb0, 0xbd, 0xbe, 0xd9, 0x7d, 0x9b, 0x65, + 0xf4, 0xc5, 0xd9, 0xec, 0xf1, 0xd1, 0xf7, 0x47, 0x09, 0x5e, 0x5e, 0xd1, 0xb4, 0x80, 0xed, 0x74, + 0xae, 0x95, 0x11, 0x13, 0x77, 0x0f, 0x4e, 0xf6, 0x5c, 0x72, 0x5e, 0x98, 0x0e, 0x73, 0xc7, 0x89, + 0xf8, 0x3c, 0xe1, 0xbf, 0xdd, 0x64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7c, 0x73, 0xa1, 0x22, 0x68, 0x61, 0x78, 0xd9, 0x4e, 0xae, 0x3d, 0xf9, 0xf3, 0x3f, + 0xbe, 0x37, 0x76, 0x13, 0xad, 0x70, 0x39, 0xb6, 0x14, 0xa0, 0xc7, 0xf6, 0x08, 0x7a, 0x95, 0xf7, + 0x07, 0x95, 0x9c, 0x0f, 0xd0, 0x2f, 0x25, 0x48, 0xb3, 0x28, 0x40, 0xcb, 0xd1, 0x91, 0x12, 0xa2, + 0xb1, 0x16, 0x5e, 0x7b, 0xd6, 0xe9, 0xa2, 0x0e, 0xc9, 0x65, 0x0e, 0x69, 0x06, 0x5d, 0x88, 0x07, + 0x09, 0xfd, 0x55, 0x82, 0x8c, 0x50, 0x66, 0xd0, 0x6b, 0xc9, 0x14, 0xbc, 0x42, 0xf4, 0x25, 0x20, + 0xef, 0x7c, 0xf8, 0xa7, 0xd9, 0xab, 0x71, 0xa4, 0xa0, 0xa9, 0x00, 0x23, 0x47, 0x76, 0x49, 0x8e, + 0x89, 0xec, 0x9a, 0x34, 0x8b, 0xfe, 0x23, 0x41, 0x46, 0x74, 0xd6, 0x51, 0xe0, 0xa2, 0x44, 0x90, + 0x38, 0xe0, 0xbe, 0x29, 0x09, 0x74, 0xd1, 0xbd, 0xfc, 0x40, 0x74, 0xab, 0xf3, 0xc9, 0x43, 0x91, + 0x01, 0xff, 0xb7, 0x04, 0x19, 0xd1, 0x89, 0x47, 0x01, 0x8f, 0x92, 0x06, 0xe2, 0x00, 0xff, 0x06, + 0x03, 0x7e, 0x2d, 0x4e, 0xef, 0x3f, 0xdd, 0x2f, 0x93, 0xdd, 0xda, 0xb1, 0xe9, 0x9e, 0xc8, 0xc2, + 0xd9, 0x11, 0x64, 0xe1, 0xff, 0x24, 0x18, 0xe7, 0x9d, 0x7b, 0x54, 0x1a, 0x46, 0x08, 0x09, 0x71, + 0x50, 0x7f, 0x8b, 0xa1, 0x5e, 0x8a, 0xa1, 0x14, 0x84, 0x80, 0xae, 0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, 0x12, 0x87, 0x99, 0x1f, 0x33, 0x66, 0x5e, 0x1f, 0x46, 0xb3, 0x18, 0x48, 0xce, + 0x3d, 0x79, 0x23, 0x39, 0x39, 0x4e, 0x0f, 0x13, 0x8c, 0x9f, 0xff, 0x4a, 0x70, 0x8a, 0x3d, 0x1f, + 0x0a, 0x02, 0x51, 0xfc, 0xc4, 0x15, 0x46, 0x0a, 0x6b, 0x89, 0xfd, 0x78, 0x29, 0x73, 0x97, 0x13, + 0x70, 0x07, 0xad, 0x27, 0x26, 0xe0, 0xf0, 0xcf, 0x1b, 0x6e, 0xf5, 0x5d, 0x28, 0xf6, 0xec, 0x0f, + 0xdb, 0x7a, 0xff, 0x1e, 0xdf, 0xb9, 0xdd, 0xd2, 0xe9, 0xc3, 0xf6, 0x56, 0xb9, 0x69, 0xed, 0x54, + 0xc4, 0xe0, 0x92, 0xf8, 0x9b, 0x47, 0xcb, 0x2a, 0xb5, 0x88, 0xc9, 0x6f, 0xc0, 0x4a, 0xd8, 0xff, + 0x3f, 0xae, 0xfb, 0x9f, 0xb7, 0x32, 0x7c, 0xc2, 0xe5, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x51, + 0x8b, 0x71, 0x7a, 0x3c, 0x23, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // NetworkLoadBalancerServiceClient is the client API for NetworkLoadBalancerService service. // @@ -1691,10 +1769,10 @@ type NetworkLoadBalancerServiceClient interface { } type networkLoadBalancerServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewNetworkLoadBalancerServiceClient(cc *grpc.ClientConn) NetworkLoadBalancerServiceClient { +func NewNetworkLoadBalancerServiceClient(cc grpc.ClientConnInterface) NetworkLoadBalancerServiceClient { return &networkLoadBalancerServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/network_load_balancer_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/network_load_balancer_service.pbext.go new file mode 100644 index 000000000..7934e2c85 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/network_load_balancer_service.pbext.go @@ -0,0 +1,270 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package loadbalancer + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetNetworkLoadBalancerRequest) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *ListNetworkLoadBalancersRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListNetworkLoadBalancersRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListNetworkLoadBalancersRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListNetworkLoadBalancersRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListNetworkLoadBalancersResponse) SetNetworkLoadBalancers(v []*NetworkLoadBalancer) { + m.NetworkLoadBalancers = v +} + +func (m *ListNetworkLoadBalancersResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateNetworkLoadBalancerRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateNetworkLoadBalancerRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateNetworkLoadBalancerRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateNetworkLoadBalancerRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateNetworkLoadBalancerRequest) SetRegionId(v string) { + m.RegionId = v +} + +func (m *CreateNetworkLoadBalancerRequest) SetType(v NetworkLoadBalancer_Type) { + m.Type = v +} + +func (m *CreateNetworkLoadBalancerRequest) SetListenerSpecs(v []*ListenerSpec) { + m.ListenerSpecs = v +} + +func (m *CreateNetworkLoadBalancerRequest) SetAttachedTargetGroups(v []*AttachedTargetGroup) { + m.AttachedTargetGroups = v +} + +func (m *CreateNetworkLoadBalancerMetadata) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *UpdateNetworkLoadBalancerRequest) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *UpdateNetworkLoadBalancerRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateNetworkLoadBalancerRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateNetworkLoadBalancerRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateNetworkLoadBalancerRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateNetworkLoadBalancerRequest) SetListenerSpecs(v []*ListenerSpec) { + m.ListenerSpecs = v +} + +func (m *UpdateNetworkLoadBalancerRequest) SetAttachedTargetGroups(v []*AttachedTargetGroup) { + m.AttachedTargetGroups = v +} + +func (m *UpdateNetworkLoadBalancerMetadata) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *DeleteNetworkLoadBalancerRequest) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *DeleteNetworkLoadBalancerMetadata) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *StartNetworkLoadBalancerRequest) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *StartNetworkLoadBalancerMetadata) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *StopNetworkLoadBalancerRequest) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *StopNetworkLoadBalancerMetadata) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *AttachNetworkLoadBalancerTargetGroupRequest) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *AttachNetworkLoadBalancerTargetGroupRequest) SetAttachedTargetGroup(v *AttachedTargetGroup) { + m.AttachedTargetGroup = v +} + +func (m *AttachNetworkLoadBalancerTargetGroupMetadata) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *AttachNetworkLoadBalancerTargetGroupMetadata) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *DetachNetworkLoadBalancerTargetGroupRequest) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *DetachNetworkLoadBalancerTargetGroupRequest) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *DetachNetworkLoadBalancerTargetGroupMetadata) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *DetachNetworkLoadBalancerTargetGroupMetadata) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *AddNetworkLoadBalancerListenerRequest) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *AddNetworkLoadBalancerListenerRequest) SetListenerSpec(v *ListenerSpec) { + m.ListenerSpec = v +} + +func (m *AddNetworkLoadBalancerListenerMetadata) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *RemoveNetworkLoadBalancerListenerRequest) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *RemoveNetworkLoadBalancerListenerRequest) SetListenerName(v string) { + m.ListenerName = v +} + +func (m *RemoveNetworkLoadBalancerListenerMetadata) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *ListNetworkLoadBalancerOperationsRequest) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *ListNetworkLoadBalancerOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListNetworkLoadBalancerOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListNetworkLoadBalancerOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListNetworkLoadBalancerOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *GetTargetStatesRequest) SetNetworkLoadBalancerId(v string) { + m.NetworkLoadBalancerId = v +} + +func (m *GetTargetStatesRequest) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *GetTargetStatesResponse) SetTargetStates(v []*TargetState) { + m.TargetStates = v +} + +func (m *ExternalAddressSpec) SetAddress(v string) { + m.Address = v +} + +func (m *ExternalAddressSpec) SetIpVersion(v IpVersion) { + m.IpVersion = v +} + +func (m *InternalAddressSpec) SetAddress(v string) { + m.Address = v +} + +func (m *InternalAddressSpec) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *InternalAddressSpec) SetIpVersion(v IpVersion) { + m.IpVersion = v +} + +type ListenerSpec_Address = isListenerSpec_Address + +func (m *ListenerSpec) SetAddress(v ListenerSpec_Address) { + m.Address = v +} + +func (m *ListenerSpec) SetName(v string) { + m.Name = v +} + +func (m *ListenerSpec) SetPort(v int64) { + m.Port = v +} + +func (m *ListenerSpec) SetProtocol(v Listener_Protocol) { + m.Protocol = v +} + +func (m *ListenerSpec) SetExternalAddressSpec(v *ExternalAddressSpec) { + m.Address = &ListenerSpec_ExternalAddressSpec{ + ExternalAddressSpec: v, + } +} + +func (m *ListenerSpec) SetInternalAddressSpec(v *InternalAddressSpec) { + m.Address = &ListenerSpec_InternalAddressSpec{ + InternalAddressSpec: v, + } +} + +func (m *ListenerSpec) SetTargetPort(v int64) { + m.TargetPort = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/target_group.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/target_group.pb.go index e16b9eb77..9b83c5187 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/target_group.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/target_group.pb.go @@ -189,31 +189,32 @@ func init() { } var fileDescriptor_eb82306a182641a6 = []byte{ - // 415 bytes of a gzipped FileDescriptorProto + // 424 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0x8b, 0x14, 0x31, - 0x10, 0x65, 0x3e, 0x76, 0x66, 0xba, 0x1a, 0x44, 0x82, 0x87, 0x30, 0x2a, 0x0e, 0x8b, 0xc2, 0x5c, - 0x36, 0xed, 0xac, 0x2c, 0xb8, 0x7e, 0x81, 0x0b, 0x22, 0x03, 0x2e, 0x42, 0xb3, 0x27, 0x2f, 0x43, - 0xba, 0x53, 0x1b, 0x83, 0x99, 0x64, 0x48, 0xa7, 0x1b, 0xe7, 0x2f, 0x78, 0xf4, 0x57, 0xf9, 0xb3, - 0xa4, 0x93, 0x6e, 0x68, 0x2f, 0x83, 0xb7, 0x54, 0x55, 0x5e, 0xbd, 0xf7, 0xaa, 0x0a, 0xb2, 0x23, - 0x37, 0x02, 0x7f, 0x66, 0xa5, 0xb6, 0xb5, 0xc8, 0xb4, 0xe5, 0xa2, 0xe0, 0x9a, 0x9b, 0x12, 0x5d, - 0xd6, 0x6c, 0x32, 0xcf, 0x9d, 0x44, 0xbf, 0x93, 0xce, 0xd6, 0x07, 0x76, 0x70, 0xd6, 0x5b, 0xf2, - 0x24, 0x02, 0x58, 0x00, 0xb0, 0x21, 0x80, 0x35, 0x9b, 0xe5, 0x33, 0x69, 0xad, 0xd4, 0x98, 0x85, - 0xbf, 0x45, 0x7d, 0x9f, 0x79, 0xb5, 0xc7, 0xca, 0xf3, 0x7d, 0x07, 0x5f, 0x3e, 0xfd, 0x87, 0xaf, - 0xe1, 0x5a, 0x09, 0xee, 0x95, 0x35, 0xb1, 0x7c, 0xfe, 0x7b, 0x02, 0xe9, 0x5d, 0x20, 0xfd, 0xdc, - 0x72, 0x92, 0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7, 0x6e, 0xb2, 0xed, 0x93, 0x3c, 0x82, 0x93, 0x03, 0xd7, + 0x0d, 0x76, 0x63, 0x8d, 0xc1, 0x9b, 0xf1, 0xeb, 0xd1, 0xe9, 0x06, 0x66, 0xb1, 0x1b, 0x79, 0x01, + 0x49, 0xdd, 0x94, 0x06, 0xfd, 0xb6, 0xdf, 0xca, 0xd5, 0xe2, 0xd7, 0x9f, 0xf5, 0xf4, 0xdd, 0xfb, + 0x8b, 0x97, 0xc5, 0x22, 0x96, 0x36, 0x82, 0x50, 0x98, 0x73, 0x21, 0x1c, 0xd6, 0x75, 0xd7, 0xac, + 0x0f, 0xaf, 0x7e, 0x40, 0x76, 0x47, 0x35, 0xdf, 0xab, 0x7f, 0x95, 0x7f, 0xbd, 0x96, 0xca, 0x7f, + 0x6b, 0x4a, 0x56, 0xd9, 0x5d, 0x77, 0x9d, 0x67, 0xf1, 0x5a, 0xa4, 0x3d, 0x93, 0x68, 0xc2, 0x22, + 0xef, 0x3d, 0xdb, 0xb7, 0xc3, 0xb8, 0x9c, 0x05, 0xc0, 0xab, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xf7, 0x22, 0x64, 0x9d, 0xea, 0x02, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/target_group.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/target_group.pbext.go new file mode 100644 index 000000000..81cf51a46 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/target_group.pbext.go @@ -0,0 +1,47 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package loadbalancer + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *TargetGroup) SetId(v string) { + m.Id = v +} + +func (m *TargetGroup) SetFolderId(v string) { + m.FolderId = v +} + +func (m *TargetGroup) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *TargetGroup) SetName(v string) { + m.Name = v +} + +func (m *TargetGroup) SetDescription(v string) { + m.Description = v +} + +func (m *TargetGroup) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *TargetGroup) SetRegionId(v string) { + m.RegionId = v +} + +func (m *TargetGroup) SetTargets(v []*Target) { + m.Targets = v +} + +func (m *Target) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *Target) SetAddress(v string) { + m.Address = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/target_group_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/target_group_service.pb.go index c73ab4bdf..8d82b27d5 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/target_group_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/target_group_service.pb.go @@ -858,89 +858,90 @@ func init() { } var fileDescriptor_53eed3308238c6c4 = []byte{ - // 1164 bytes of a gzipped FileDescriptorProto + // 1172 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcd, 0x6f, 0x1b, 0x45, 0x14, 0xd7, 0xc4, 0x8e, 0x53, 0x3f, 0x27, 0xb4, 0x8c, 0x1a, 0xb1, 0x58, 0x2d, 0x72, 0x96, 0x2a, - 0xa4, 0x06, 0xaf, 0xbd, 0x4e, 0x63, 0x9a, 0xe6, 0x8b, 0x3a, 0x94, 0x28, 0x52, 0x43, 0xab, 0x6d, - 0x7b, 0x21, 0xaa, 0xac, 0x49, 0x76, 0x62, 0x56, 0xd9, 0xec, 0xba, 0xbb, 0x6b, 0xab, 0x49, 0xe9, - 0x25, 0xc7, 0x1c, 0x38, 0x14, 0x71, 0x42, 0x88, 0x3f, 0x80, 0x5b, 0x8e, 0x20, 0xce, 0xf1, 0x01, - 0x2e, 0xa9, 0x84, 0x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, 0x92, 0xe5, 0xd1, 0xbf, 0x8e, 0x64, 0x74, - 0xd0, 0x94, 0xe3, 0xf3, 0x0b, 0x33, 0x05, 0x65, 0xcc, 0xe9, 0x9a, 0xae, 0xaa, 0xe2, 0xcf, 0x08, - 0xde, 0xb9, 0xab, 0xd9, 0x5e, 0x87, 0x76, 0xdb, 0xe3, 0x75, 0x48, 0x6e, 0x99, 0xba, 0x4a, 0xad, - 0x41, 0xbe, 0x2e, 0x70, 0xf1, 0xaa, 0x8a, 0x3f, 0x80, 0x64, 0x8d, 0x54, 0x69, 0xc5, 0xd6, 0xf6, - 0xa8, 0x30, 0x94, 0x41, 0x53, 0xb1, 0x32, 0xfc, 0x73, 0x24, 0x27, 0xe6, 0x17, 0xe4, 0x42, 0xa1, - 0xa0, 0x5c, 0x70, 0x85, 0x0f, 0xb4, 0x3d, 0x8a, 0xa7, 0x00, 0x98, 0xa2, 0x63, 0x6e, 0x53, 0x43, - 0x88, 0x31, 0xa7, 0xc9, 0x83, 0xa6, 0x3c, 0xcc, 0x34, 0x15, 0xe6, 0xe5, 0xa1, 0x2b, 0xc3, 0x22, - 0x24, 0xb6, 0x34, 0xdd, 0xa1, 0x96, 0x10, 0x67, 0x5a, 0x70, 0xd0, 0xec, 0xf8, 0x6b, 0x49, 0xc4, - 0x17, 0x08, 0x04, 0x3f, 0x7a, 0xbb, 0x66, 0x1a, 0x36, 0xc5, 0x9f, 0xc3, 0x98, 0x37, 0x20, 0xb6, - 0x80, 0x32, 0xb1, 0xa9, 0x54, 0xf1, 0xba, 0x14, 0x54, 0x39, 0x92, 0x37, 0xb2, 0xa3, 0x9e, 0x58, - 0xd9, 0x78, 0x12, 0x2e, 0x1a, 0xf4, 0xa9, 0x53, 0xf1, 0xe0, 0x77, 0x99, 0x26, 0x95, 0x31, 0xf7, - 0xf3, 0xfd, 0x36, 0x70, 0xf1, 0xef, 0x18, 0x08, 0xcb, 0x16, 0x25, 0x0e, 0xed, 0x93, 0xa5, 0x08, - 0x31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d, 0x43, 0xda, 0x34, 0x77, 0x9a, 0x4f, + 0x09, 0x39, 0xfe, 0x94, 0x50, 0x35, 0x73, 0x55, 0x6a, 0xb0, 0xeb, 0x10, 0xf8, 0xc6, 0x30, 0xe7, + 0x3d, 0x6f, 0x24, 0x98, 0xc1, 0xf4, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb1, 0x3e, 0x34, 0x91, + 0x97, 0x11, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // TargetGroupServiceClient is the client API for TargetGroupService service. // @@ -965,10 +966,10 @@ type TargetGroupServiceClient interface { } type targetGroupServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewTargetGroupServiceClient(cc *grpc.ClientConn) TargetGroupServiceClient { +func NewTargetGroupServiceClient(cc grpc.ClientConnInterface) TargetGroupServiceClient { return &targetGroupServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/target_group_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/target_group_service.pbext.go new file mode 100644 index 000000000..98f8ececd --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1/target_group_service.pbext.go @@ -0,0 +1,144 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package loadbalancer + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetTargetGroupRequest) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *ListTargetGroupsRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListTargetGroupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListTargetGroupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListTargetGroupsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListTargetGroupsResponse) SetTargetGroups(v []*TargetGroup) { + m.TargetGroups = v +} + +func (m *ListTargetGroupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateTargetGroupRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateTargetGroupRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateTargetGroupRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateTargetGroupRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateTargetGroupRequest) SetRegionId(v string) { + m.RegionId = v +} + +func (m *CreateTargetGroupRequest) SetTargets(v []*Target) { + m.Targets = v +} + +func (m *CreateTargetGroupMetadata) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *UpdateTargetGroupRequest) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *UpdateTargetGroupRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateTargetGroupRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateTargetGroupRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateTargetGroupRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateTargetGroupRequest) SetTargets(v []*Target) { + m.Targets = v +} + +func (m *UpdateTargetGroupMetadata) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *DeleteTargetGroupRequest) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *DeleteTargetGroupMetadata) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *AddTargetsRequest) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *AddTargetsRequest) SetTargets(v []*Target) { + m.Targets = v +} + +func (m *AddTargetsMetadata) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *RemoveTargetsRequest) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *RemoveTargetsRequest) SetTargets(v []*Target) { + m.Targets = v +} + +func (m *RemoveTargetsMetadata) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *ListTargetGroupOperationsRequest) SetTargetGroupId(v string) { + m.TargetGroupId = v +} + +func (m *ListTargetGroupOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListTargetGroupOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListTargetGroupOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListTargetGroupOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/v1/metering/image_product_usage_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/v1/metering/image_product_usage_service.pb.go new file mode 100644 index 000000000..665e047ea --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/v1/metering/image_product_usage_service.pb.go @@ -0,0 +1,257 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/marketplace/v1/metering/image_product_usage_service.proto + +package metering + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type WriteImageProductUsageRequest struct { + // Checks whether you have the access required for the emit usage + ValidateOnly bool `protobuf:"varint,1,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"` + // Marketplace Product's ID + ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` + // List of product usage records (up to 25 pet request) + UsageRecords []*UsageRecord `protobuf:"bytes,3,rep,name=usage_records,json=usageRecords,proto3" json:"usage_records,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WriteImageProductUsageRequest) Reset() { *m = WriteImageProductUsageRequest{} } +func (m *WriteImageProductUsageRequest) String() string { return proto.CompactTextString(m) } +func (*WriteImageProductUsageRequest) ProtoMessage() {} +func (*WriteImageProductUsageRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_613da1456bc6e886, []int{0} +} + +func (m *WriteImageProductUsageRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WriteImageProductUsageRequest.Unmarshal(m, b) +} +func (m *WriteImageProductUsageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WriteImageProductUsageRequest.Marshal(b, m, deterministic) +} +func (m *WriteImageProductUsageRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteImageProductUsageRequest.Merge(m, src) +} +func (m *WriteImageProductUsageRequest) XXX_Size() int { + return xxx_messageInfo_WriteImageProductUsageRequest.Size(m) +} +func (m *WriteImageProductUsageRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WriteImageProductUsageRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WriteImageProductUsageRequest proto.InternalMessageInfo + +func (m *WriteImageProductUsageRequest) GetValidateOnly() bool { + if m != nil { + return m.ValidateOnly + } + return false +} + +func (m *WriteImageProductUsageRequest) GetProductId() string { + if m != nil { + return m.ProductId + } + return "" +} + +func (m *WriteImageProductUsageRequest) GetUsageRecords() []*UsageRecord { + if m != nil { + return m.UsageRecords + } + return nil +} + +type WriteImageProductUsageResponse struct { + // List of accepted product usage records + Accepted []*AcceptedUsageRecord `protobuf:"bytes,1,rep,name=accepted,proto3" json:"accepted,omitempty"` + // List of rejected product usage records (with reason) + Rejected []*RejectedUsageRecord `protobuf:"bytes,2,rep,name=rejected,proto3" json:"rejected,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WriteImageProductUsageResponse) Reset() { *m = WriteImageProductUsageResponse{} } +func (m *WriteImageProductUsageResponse) String() string { return proto.CompactTextString(m) } +func (*WriteImageProductUsageResponse) ProtoMessage() {} +func (*WriteImageProductUsageResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_613da1456bc6e886, []int{1} +} + +func (m *WriteImageProductUsageResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WriteImageProductUsageResponse.Unmarshal(m, b) +} +func (m *WriteImageProductUsageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WriteImageProductUsageResponse.Marshal(b, m, deterministic) +} +func (m *WriteImageProductUsageResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteImageProductUsageResponse.Merge(m, src) +} +func (m *WriteImageProductUsageResponse) XXX_Size() int { + return xxx_messageInfo_WriteImageProductUsageResponse.Size(m) +} +func (m *WriteImageProductUsageResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WriteImageProductUsageResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WriteImageProductUsageResponse proto.InternalMessageInfo + +func (m *WriteImageProductUsageResponse) GetAccepted() []*AcceptedUsageRecord { + if m != nil { + return m.Accepted + } + return nil +} + +func (m *WriteImageProductUsageResponse) GetRejected() []*RejectedUsageRecord { + if m != nil { + return m.Rejected + } + return nil +} + +func init() { + proto.RegisterType((*WriteImageProductUsageRequest)(nil), "yandex.cloud.marketplace.v1.metering.WriteImageProductUsageRequest") + proto.RegisterType((*WriteImageProductUsageResponse)(nil), "yandex.cloud.marketplace.v1.metering.WriteImageProductUsageResponse") +} + +func init() { + proto.RegisterFile("yandex/cloud/marketplace/v1/metering/image_product_usage_service.proto", fileDescriptor_613da1456bc6e886) +} + +var fileDescriptor_613da1456bc6e886 = []byte{ + // 448 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0x31, 0x8f, 0xd3, 0x30, + 0x14, 0xc7, 0xe5, 0xde, 0x81, 0x7a, 0xa6, 0xb7, 0x64, 0x8a, 0x2a, 0x0e, 0x55, 0x85, 0xa1, 0x02, + 0xd5, 0xbe, 0x14, 0x55, 0x08, 0x0e, 0x06, 0x0a, 0x42, 0xba, 0x09, 0x08, 0x3a, 0x21, 0xb1, 0x14, + 0x9f, 0xfd, 0x14, 0x0c, 0xa9, 0x1d, 0x6c, 0xa7, 0xd0, 0x81, 0xe5, 0x46, 0x56, 0x3e, 0x14, 0x37, + 0xc1, 0x70, 0x5f, 0x81, 0x81, 0x81, 0x0f, 0x81, 0x12, 0x27, 0x90, 0x0a, 0x5d, 0x15, 0x74, 0x5b, + 0xe2, 0x97, 0xff, 0xef, 0xfd, 0xff, 0x2f, 0x7e, 0xf8, 0xc9, 0x8a, 0x29, 0x01, 0x1f, 0x29, 0x4f, + 0x75, 0x2e, 0xe8, 0x82, 0x99, 0x77, 0xe0, 0xb2, 0x94, 0x71, 0xa0, 0xcb, 0x88, 0x2e, 0xc0, 0x81, + 0x91, 0x2a, 0xa1, 0x72, 0xc1, 0x12, 0x98, 0x67, 0x46, 0x8b, 0x9c, 0xbb, 0x79, 0x6e, 0x8b, 0x37, + 0x0b, 0x66, 0x29, 0x39, 0x90, 0xcc, 0x68, 0xa7, 0x83, 0x1b, 0x9e, 0x43, 0x4a, 0x0e, 0x69, 0x70, + 0xc8, 0x32, 0x22, 0x35, 0xa7, 0x7f, 0x35, 0xd1, 0x3a, 0x49, 0x81, 0xb2, 0x4c, 0x52, 0xa6, 0x94, + 0x76, 0xcc, 0x49, 0xad, 0xac, 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f, 0x96, 0x17, 0xfe, 0x96, + 0x05, 0xdf, 0x11, 0xbe, 0x54, 0xa6, 0x0d, 0x1e, 0xb5, 0xeb, 0xb5, 0xf1, 0x87, 0xf7, 0x1f, 0x5f, + 0x0c, 0xe2, 0xe7, 0x3b, 0x3c, 0x38, 0x39, 0xfb, 0xf1, 0xa5, 0x33, 0x1d, 0xee, 0x6f, 0x5e, 0x9c, + 0xa6, 0x96, 0x7e, 0x28, 0x90, 0xf7, 0xd0, 0xcd, 0xd9, 0x27, 0x3c, 0x5a, 0xf3, 0xc0, 0x32, 0x79, + 0x9e, 0x8f, 0x57, 0xcf, 0x13, 0xe9, 0xde, 0xe4, 0xc7, 0x84, 0xeb, 0x05, 0xf5, 0xa2, 0xb1, 0xdf, + 0x82, 0x44, 0x8f, 0x13, 0x50, 0xe5, 0x35, 0xa7, 0x6d, 0xd6, 0xe3, 0xa0, 0x7e, 0x38, 0xbe, 0x5c, + 0x8a, 0x6e, 0xff, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x2b, 0x7d, 0x1b, 0xcc, 0x01, 0x04, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ImageProductUsageServiceClient is the client API for ImageProductUsageService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ImageProductUsageServiceClient interface { + // Writes image product's usage (authenticated by user's service account) + Write(ctx context.Context, in *WriteImageProductUsageRequest, opts ...grpc.CallOption) (*WriteImageProductUsageResponse, error) +} + +type imageProductUsageServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewImageProductUsageServiceClient(cc grpc.ClientConnInterface) ImageProductUsageServiceClient { + return &imageProductUsageServiceClient{cc} +} + +func (c *imageProductUsageServiceClient) Write(ctx context.Context, in *WriteImageProductUsageRequest, opts ...grpc.CallOption) (*WriteImageProductUsageResponse, error) { + out := new(WriteImageProductUsageResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.marketplace.v1.metering.ImageProductUsageService/Write", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ImageProductUsageServiceServer is the server API for ImageProductUsageService service. +type ImageProductUsageServiceServer interface { + // Writes image product's usage (authenticated by user's service account) + Write(context.Context, *WriteImageProductUsageRequest) (*WriteImageProductUsageResponse, error) +} + +// UnimplementedImageProductUsageServiceServer can be embedded to have forward compatible implementations. +type UnimplementedImageProductUsageServiceServer struct { +} + +func (*UnimplementedImageProductUsageServiceServer) Write(ctx context.Context, req *WriteImageProductUsageRequest) (*WriteImageProductUsageResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Write not implemented") +} + +func RegisterImageProductUsageServiceServer(s *grpc.Server, srv ImageProductUsageServiceServer) { + s.RegisterService(&_ImageProductUsageService_serviceDesc, srv) +} + +func _ImageProductUsageService_Write_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WriteImageProductUsageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ImageProductUsageServiceServer).Write(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.marketplace.v1.metering.ImageProductUsageService/Write", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ImageProductUsageServiceServer).Write(ctx, req.(*WriteImageProductUsageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ImageProductUsageService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.marketplace.v1.metering.ImageProductUsageService", + HandlerType: (*ImageProductUsageServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Write", + Handler: _ImageProductUsageService_Write_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/marketplace/v1/metering/image_product_usage_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/v1/metering/image_product_usage_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/v1/metering/image_product_usage_service.pbext.go new file mode 100644 index 000000000..11329cad3 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/v1/metering/image_product_usage_service.pbext.go @@ -0,0 +1,23 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package metering + +func (m *WriteImageProductUsageRequest) SetValidateOnly(v bool) { + m.ValidateOnly = v +} + +func (m *WriteImageProductUsageRequest) SetProductId(v string) { + m.ProductId = v +} + +func (m *WriteImageProductUsageRequest) SetUsageRecords(v []*UsageRecord) { + m.UsageRecords = v +} + +func (m *WriteImageProductUsageResponse) SetAccepted(v []*AcceptedUsageRecord) { + m.Accepted = v +} + +func (m *WriteImageProductUsageResponse) SetRejected(v []*RejectedUsageRecord) { + m.Rejected = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/v1/metering/usage_record.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/v1/metering/usage_record.pb.go new file mode 100644 index 000000000..f21fb377e --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/v1/metering/usage_record.pb.go @@ -0,0 +1,270 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/marketplace/v1/metering/usage_record.proto + +package metering + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "google.golang.org/genproto/googleapis/api/annotations" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RejectedUsageRecord_Reason int32 + +const ( + RejectedUsageRecord_REASON_UNSPECIFIED RejectedUsageRecord_Reason = 0 + RejectedUsageRecord_DUPLICATE RejectedUsageRecord_Reason = 1 + RejectedUsageRecord_EXPIRED RejectedUsageRecord_Reason = 2 + RejectedUsageRecord_INVALID_TIMESTAMP RejectedUsageRecord_Reason = 3 + RejectedUsageRecord_INVALID_SKU_ID RejectedUsageRecord_Reason = 4 + RejectedUsageRecord_INVALID_PRODUCT_ID RejectedUsageRecord_Reason = 5 + RejectedUsageRecord_INVALID_QUANTITY RejectedUsageRecord_Reason = 6 + RejectedUsageRecord_INVALID_ID RejectedUsageRecord_Reason = 7 +) + +var RejectedUsageRecord_Reason_name = map[int32]string{ + 0: "REASON_UNSPECIFIED", + 1: "DUPLICATE", + 2: "EXPIRED", + 3: "INVALID_TIMESTAMP", + 4: "INVALID_SKU_ID", + 5: "INVALID_PRODUCT_ID", + 6: "INVALID_QUANTITY", + 7: "INVALID_ID", +} + +var RejectedUsageRecord_Reason_value = map[string]int32{ + "REASON_UNSPECIFIED": 0, + "DUPLICATE": 1, + "EXPIRED": 2, + "INVALID_TIMESTAMP": 3, + "INVALID_SKU_ID": 4, + "INVALID_PRODUCT_ID": 5, + "INVALID_QUANTITY": 6, + "INVALID_ID": 7, +} + +func (x RejectedUsageRecord_Reason) String() string { + return proto.EnumName(RejectedUsageRecord_Reason_name, int32(x)) +} + +func (RejectedUsageRecord_Reason) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_ed020edab63683f5, []int{2, 0} +} + +type UsageRecord struct { + // Unique identitifier of the usage record (UUID format) + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + // Consumed Marketplace SaaS Sku ID, linked to `UsageRecord.product_id` + SkuId string `protobuf:"bytes,2,opt,name=sku_id,json=skuId,proto3" json:"sku_id,omitempty"` + // Quantity of sku consumed, measured in `sku.usage_unit` units (e.g. bytes) + Quantity int64 `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"` + // Timestamp in UTC for which the usage is being reported + Timestamp *timestamp.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UsageRecord) Reset() { *m = UsageRecord{} } +func (m *UsageRecord) String() string { return proto.CompactTextString(m) } +func (*UsageRecord) ProtoMessage() {} +func (*UsageRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_ed020edab63683f5, []int{0} +} + +func (m *UsageRecord) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UsageRecord.Unmarshal(m, b) +} +func (m *UsageRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UsageRecord.Marshal(b, m, deterministic) +} +func (m *UsageRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_UsageRecord.Merge(m, src) +} +func (m *UsageRecord) XXX_Size() int { + return xxx_messageInfo_UsageRecord.Size(m) +} +func (m *UsageRecord) XXX_DiscardUnknown() { + xxx_messageInfo_UsageRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_UsageRecord proto.InternalMessageInfo + +func (m *UsageRecord) GetUuid() string { + if m != nil { + return m.Uuid + } + return "" +} + +func (m *UsageRecord) GetSkuId() string { + if m != nil { + return m.SkuId + } + return "" +} + +func (m *UsageRecord) GetQuantity() int64 { + if m != nil { + return m.Quantity + } + return 0 +} + +func (m *UsageRecord) GetTimestamp() *timestamp.Timestamp { + if m != nil { + return m.Timestamp + } + return nil +} + +type AcceptedUsageRecord struct { + // Unique identitifier of the usage record (UUID format) + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AcceptedUsageRecord) Reset() { *m = AcceptedUsageRecord{} } +func (m *AcceptedUsageRecord) String() string { return proto.CompactTextString(m) } +func (*AcceptedUsageRecord) ProtoMessage() {} +func (*AcceptedUsageRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_ed020edab63683f5, []int{1} +} + +func (m *AcceptedUsageRecord) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AcceptedUsageRecord.Unmarshal(m, b) +} +func (m *AcceptedUsageRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AcceptedUsageRecord.Marshal(b, m, deterministic) +} +func (m *AcceptedUsageRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_AcceptedUsageRecord.Merge(m, src) +} +func (m *AcceptedUsageRecord) XXX_Size() int { + return xxx_messageInfo_AcceptedUsageRecord.Size(m) +} +func (m *AcceptedUsageRecord) XXX_DiscardUnknown() { + xxx_messageInfo_AcceptedUsageRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_AcceptedUsageRecord proto.InternalMessageInfo + +func (m *AcceptedUsageRecord) GetUuid() string { + if m != nil { + return m.Uuid + } + return "" +} + +type RejectedUsageRecord struct { + // Unique identitifier of the usage record (UUID format) + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + // The reason of rejection + Reason RejectedUsageRecord_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=yandex.cloud.marketplace.v1.metering.RejectedUsageRecord_Reason" json:"reason,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RejectedUsageRecord) Reset() { *m = RejectedUsageRecord{} } +func (m *RejectedUsageRecord) String() string { return proto.CompactTextString(m) } +func (*RejectedUsageRecord) ProtoMessage() {} +func (*RejectedUsageRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_ed020edab63683f5, []int{2} +} + +func (m *RejectedUsageRecord) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RejectedUsageRecord.Unmarshal(m, b) +} +func (m *RejectedUsageRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RejectedUsageRecord.Marshal(b, m, deterministic) +} +func (m *RejectedUsageRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_RejectedUsageRecord.Merge(m, src) +} +func (m *RejectedUsageRecord) XXX_Size() int { + return xxx_messageInfo_RejectedUsageRecord.Size(m) +} +func (m *RejectedUsageRecord) XXX_DiscardUnknown() { + xxx_messageInfo_RejectedUsageRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_RejectedUsageRecord proto.InternalMessageInfo + +func (m *RejectedUsageRecord) GetUuid() string { + if m != nil { + return m.Uuid + } + return "" +} + +func (m *RejectedUsageRecord) GetReason() RejectedUsageRecord_Reason { + if m != nil { + return m.Reason + } + return RejectedUsageRecord_REASON_UNSPECIFIED +} + +func init() { + proto.RegisterEnum("yandex.cloud.marketplace.v1.metering.RejectedUsageRecord_Reason", RejectedUsageRecord_Reason_name, RejectedUsageRecord_Reason_value) + proto.RegisterType((*UsageRecord)(nil), "yandex.cloud.marketplace.v1.metering.UsageRecord") + proto.RegisterType((*AcceptedUsageRecord)(nil), "yandex.cloud.marketplace.v1.metering.AcceptedUsageRecord") + proto.RegisterType((*RejectedUsageRecord)(nil), "yandex.cloud.marketplace.v1.metering.RejectedUsageRecord") +} + +func init() { + proto.RegisterFile("yandex/cloud/marketplace/v1/metering/usage_record.proto", fileDescriptor_ed020edab63683f5) +} + +var fileDescriptor_ed020edab63683f5 = []byte{ + // 512 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xd1, 0x6e, 0xd3, 0x3c, + 0x18, 0xfd, 0xd3, 0x76, 0xd9, 0x5f, 0x17, 0xaa, 0xe0, 0x01, 0xaa, 0x2a, 0x10, 0x55, 0xe1, 0xa2, + 0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0, 0x35, 0x32, 0x78, 0x69, + 0x1e, 0x10, 0x6b, 0xec, 0x90, 0x43, 0x7b, 0xe4, 0x98, 0x87, 0x43, 0xa3, 0x0c, 0x21, 0xa8, 0x17, + 0xf0, 0xe8, 0x85, 0x3b, 0x26, 0x96, 0x51, 0x59, 0xda, 0x17, 0xd8, 0x90, 0x1e, 0x59, 0x6e, 0xdf, + 0x59, 0xe2, 0x1b, 0xf0, 0x3a, 0x30, 0x0a, 0xfc, 0xd8, 0x35, 0x07, 0x0e, 0x71, 0x5e, 0x19, 0x3a, + 0xac, 0x03, 0x50, 0xa0, 0xc4, 0x32, 0x36, 0x7b, 0x1f, 0x41, 0xe7, 0x42, 0x65, 0x16, 0x89, 0xbf, + 0xd5, 0x7e, 0x7d, 0x1c, 0x08, 0xf5, 0x36, 0x9d, 0x20, 0x4f, 0xce, 0x71, 0x2e, 0xda, 0xce, 0x6f, + 0x5a, 0x20, 0xb7, 0x03, 0x1e, 0x66, 0x7b, 0xc4, 0x97, 0x79, 0x20, 0x8f, 0x8b, 0x8f, 0x89, 0x9e, + 0x89, 0xf6, 0x7e, 0x06, 0x00, 0x00, 0xff, 0xff, 0x6b, 0x49, 0x6b, 0x91, 0x58, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/v1/metering/usage_record.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/v1/metering/usage_record.pbext.go new file mode 100644 index 000000000..c1ba1075e --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/v1/metering/usage_record.pbext.go @@ -0,0 +1,35 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package metering + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *UsageRecord) SetUuid(v string) { + m.Uuid = v +} + +func (m *UsageRecord) SetSkuId(v string) { + m.SkuId = v +} + +func (m *UsageRecord) SetQuantity(v int64) { + m.Quantity = v +} + +func (m *UsageRecord) SetTimestamp(v *timestamp.Timestamp) { + m.Timestamp = v +} + +func (m *AcceptedUsageRecord) SetUuid(v string) { + m.Uuid = v +} + +func (m *RejectedUsageRecord) SetUuid(v string) { + m.Uuid = v +} + +func (m *RejectedUsageRecord) SetReason(v RejectedUsageRecord_Reason) { + m.Reason = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/backup.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/backup.pb.go index 828bb4f1d..0a6c2b2cd 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/backup.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/backup.pb.go @@ -118,24 +118,25 @@ func init() { } var fileDescriptor_a022447e16843e8f = []byte{ - // 297 bytes of a gzipped FileDescriptorProto + // 305 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xcd, 0x4e, 0x02, 0x31, - 0x14, 0x85, 0xc3, 0xa0, 0xc4, 0xa9, 0x89, 0x3f, 0x5d, 0x4d, 0x30, 0x51, 0xe2, 0x8a, 0xa8, 0xb4, - 0x41, 0x57, 0xc6, 0x15, 0xb8, 0x62, 0xa1, 0x26, 0xe8, 0xca, 0xcd, 0xa4, 0xed, 0x2d, 0x43, 0xc3, - 0x94, 0x92, 0xfe, 0x10, 0x7d, 0x00, 0xdf, 0xdb, 0x4c, 0x3b, 0x84, 0x9d, 0x2e, 0x7b, 0xee, 0x77, - 0xcf, 0x39, 0xe9, 0x45, 0xb7, 0xdf, 0x6c, 0x0d, 0xf2, 0x8b, 0x8a, 0xda, 0x04, 0xa0, 0x1a, 0x38, - 0x15, 0xb5, 0x12, 0xab, 0xa5, 0x09, 0x4e, 0xd2, 0xed, 0x98, 0x72, 0x26, 0x56, 0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, 0xef, 0xba, 0x24, 0xa5, 0x91, 0x5d, 0x1a, 0x79, 0xdb, 0xa5, 0xcd, 0xf2, 0x86, 0x1e, 0x7b, + 0x7c, 0x8d, 0xce, 0x9d, 0x09, 0x56, 0xc8, 0x52, 0xd4, 0xc1, 0xf9, 0xe4, 0x7f, 0x10, 0xfd, 0x4f, + 0xd3, 0xe0, 0x29, 0xe9, 0x53, 0xc0, 0xb7, 0x08, 0x37, 0xac, 0x5b, 0x30, 0x0b, 0xe5, 0x8a, 0x69, + 0xe9, 0x8a, 0x4e, 0xaf, 0x3d, 0xc8, 0x67, 0x67, 0x69, 0xf2, 0xba, 0x1d, 0xbc, 0x6c, 0xf5, 0x6d, + 0x29, 0xe7, 0x99, 0x6d, 0x4a, 0x1d, 0xfe, 0x5f, 0xaa, 0xa1, 0xc7, 0x7e, 0xe2, 0x50, 0xff, 0xc7, + 0x2a, 0xd9, 0x5a, 0xfd, 0x5e, 0xe7, 0xfb, 0x73, 0xa5, 0xfc, 0x22, 0x70, 0x22, 0x8c, 0xa6, 0x09, + 0x1f, 0xa6, 0x33, 0x55, 0x66, 0x58, 0xc9, 0x55, 0x8c, 0xa0, 0x7f, 0xdf, 0xef, 0x71, 0xff, 0xe2, + 0x9d, 0xf8, 0xe1, 0xfe, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x55, 0x2e, 0x58, 0xa1, 0xf3, 0x01, 0x00, + 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/backup.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/backup.pbext.go new file mode 100644 index 000000000..6e47e8dc7 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/backup.pbext.go @@ -0,0 +1,31 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package clickhouse + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Backup) SetId(v string) { + m.Id = v +} + +func (m *Backup) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Backup) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Backup) SetSourceClusterId(v string) { + m.SourceClusterId = v +} + +func (m *Backup) SetSourceShardNames(v []string) { + m.SourceShardNames = v +} + +func (m *Backup) SetStartedAt(v *timestamp.Timestamp) { + m.StartedAt = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/backup_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/backup_service.pb.go index caa3077ca..dea430691 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/backup_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/backup_service.pb.go @@ -192,46 +192,46 @@ func init() { } var fileDescriptor_8e7968965ca8aa6a = []byte{ - // 466 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x3f, 0x6f, 0xd3, 0x40, - 0x14, 0xc0, 0xe5, 0x24, 0x94, 0xf8, 0xa0, 0x02, 0x1d, 0x4b, 0x14, 0x41, 0x15, 0x3c, 0x84, 0xf0, - 0x27, 0x3e, 0x3b, 0x51, 0x27, 0x5a, 0x09, 0x65, 0xa9, 0x2a, 0x81, 0x40, 0x2e, 0x13, 0x4b, 0x74, - 0xf6, 0x3d, 0xdc, 0x53, 0x9c, 0x3b, 0x93, 0x3b, 0x47, 0xa5, 0x08, 0x21, 0x31, 0x76, 0xa4, 0x03, - 0x1f, 0x87, 0xb1, 0xdd, 0xf9, 0x0a, 0x0c, 0x7c, 0x06, 0x26, 0xe4, 0x3b, 0x87, 0x50, 0x40, 0x69, - 0x18, 0x7d, 0xef, 0xfd, 0xde, 0xfb, 0xe9, 0xbd, 0x67, 0x34,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, 0x00, 0xff, 0xff, 0xda, 0x84, 0x09, 0x05, 0xa7, 0x03, - 0x00, 0x00, + // 474 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xcf, 0x6e, 0xd3, 0x40, + 0x10, 0xc6, 0xe5, 0x24, 0x94, 0x78, 0xa1, 0x02, 0x2d, 0x97, 0x28, 0x82, 0x2a, 0xf8, 0x10, 0xc2, + 0x9f, 0x78, 0xed, 0x44, 0x3d, 0xd1, 0x4a, 0x28, 0x97, 0xaa, 0x12, 0x48, 0xc8, 0xe5, 0xc4, 0x25, + 0x5a, 0x7b, 0x07, 0x77, 0x15, 0x67, 0xd7, 0x64, 0xd7, 0x51, 0x29, 0x42, 0x48, 0x1c, 0x7b, 0xa4, + 0x07, 0x1e, 0x87, 0x63, 0x7b, 0xe7, 0x15, 0x38, 0xf0, 0x0c, 0x9c, 0x90, 0x77, 0x1d, 0x42, 0x28, + 0x4a, 0xcb, 0xd1, 0x3b, 0xdf, 0x6f, 0xe6, 0xd3, 0x7c, 0x63, 0x34, 0x7c, 0x47, 0x05, 0x83, 0x23, + 0x92, 0x64, 0xb2, 0x60, 0x64, 0xca, 0x62, 0x92, 0x64, 0x3c, 0x99, 0x1c, 0xca, 0x42, 0x01, 0x99, + 0x87, 0x24, 0xa6, 0xc9, 0xa4, 0xc8, 0xc7, 0x0a, 0x66, 0x73, 0x9e, 0x80, 0x9f, 0xcf, 0xa4, 0x96, + 0x78, 0xcb, 0x42, 0xbe, 0x81, 0xfc, 0x29, 0x8b, 0xfd, 0x25, 0xe4, 0xcf, 0xc3, 0xf6, 0xdd, 0x54, + 0xca, 0x34, 0x03, 0x42, 0x73, 0x4e, 0xa8, 0x10, 0x52, 0x53, 0xcd, 0xa5, 0x50, 0x96, 0x6e, 0x3f, + 0xbe, 0xd2, 0xc8, 0x4a, 0x7c, 0x6f, 0x45, 0x3c, 0xa7, 0x19, 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, 0x36, + 0x6e, 0x7c, 0xea, 0xa0, 0xfa, 0x1e, 0x68, 0x1c, 0x5c, 0x36, 0xf2, 0xef, 0x10, 0xda, 0x57, 0x34, + 0xe9, 0x0d, 0x3e, 0x7d, 0xfb, 0x7e, 0x5a, 0x7b, 0x82, 0x1f, 0x91, 0x29, 0x15, 0x34, 0x05, 0xd6, + 0xff, 0xd7, 0x31, 0x28, 0xf2, 0xfe, 0x77, 0xa4, 0x1f, 0xf0, 0x17, 0x07, 0x35, 0xca, 0x4d, 0xe1, + 0xc1, 0x65, 0x43, 0x2e, 0x66, 0xdc, 0x1e, 0xfe, 0x17, 0x63, 0x33, 0xf0, 0xba, 0xc6, 0x65, 0x07, + 0x6f, 0xad, 0x77, 0x39, 0x52, 0xc8, 0x5b, 0xe9, 0x4e, 0x73, 0x7e, 0x71, 0xc2, 0xeb, 0x17, 0x29, + 0xd7, 0x87, 0x45, 0xec, 0x27, 0x72, 0x4a, 0xac, 0xbc, 0x6f, 0xcf, 0x3b, 0x95, 0xfd, 0x14, 0x84, + 0xb9, 0x6c, 0xb2, 0xfe, 0x27, 0x79, 0xba, 0xfc, 0x8a, 0x37, 0x0c, 0x30, 0xfc, 0x15, 0x00, 0x00, + 0xff, 0xff, 0x7c, 0x78, 0x02, 0x3c, 0xcb, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // BackupServiceClient is the client API for BackupService service. // @@ -246,10 +246,10 @@ type BackupServiceClient interface { } type backupServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewBackupServiceClient(cc *grpc.ClientConn) BackupServiceClient { +func NewBackupServiceClient(cc grpc.ClientConnInterface) BackupServiceClient { return &backupServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/backup_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/backup_service.pbext.go new file mode 100644 index 000000000..a957eed40 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/backup_service.pbext.go @@ -0,0 +1,27 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package clickhouse + +func (m *GetBackupRequest) SetBackupId(v string) { + m.BackupId = v +} + +func (m *ListBackupsRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListBackupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListBackupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListBackupsResponse) SetBackups(v []*Backup) { + m.Backups = v +} + +func (m *ListBackupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/cluster.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/cluster.pb.go index 5f4d76e6d..b67bc608e 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/cluster.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/cluster.pb.go @@ -170,7 +170,7 @@ func (x Host_Type) String() string { } func (Host_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1a6d463853631481, []int{5, 0} + return fileDescriptor_1a6d463853631481, []int{6, 0} } type Host_Health int32 @@ -205,7 +205,7 @@ func (x Host_Health) String() string { } func (Host_Health) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1a6d463853631481, []int{5, 1} + return fileDescriptor_1a6d463853631481, []int{6, 1} } type Service_Type int32 @@ -235,7 +235,7 @@ func (x Service_Type) String() string { } func (Service_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1a6d463853631481, []int{6, 0} + return fileDescriptor_1a6d463853631481, []int{7, 0} } type Service_Health int32 @@ -266,7 +266,7 @@ func (x Service_Health) String() string { } func (Service_Health) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1a6d463853631481, []int{6, 1} + return fileDescriptor_1a6d463853631481, []int{7, 1} } // A ClickHouse Cluster resource. For more information, see the @@ -297,10 +297,12 @@ type Cluster struct { // Aggregated cluster health. Health Cluster_Health `protobuf:"varint,11,opt,name=health,proto3,enum=yandex.cloud.mdb.clickhouse.v1.Cluster_Health" json:"health,omitempty"` // Current state of the cluster. - Status Cluster_Status `protobuf:"varint,12,opt,name=status,proto3,enum=yandex.cloud.mdb.clickhouse.v1.Cluster_Status" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Status Cluster_Status `protobuf:"varint,12,opt,name=status,proto3,enum=yandex.cloud.mdb.clickhouse.v1.Cluster_Status" json:"status,omitempty"` + // ID of the service account used for access to Yandex Object Storage. + ServiceAccountId string `protobuf:"bytes,13,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Cluster) Reset() { *m = Cluster{} } @@ -412,6 +414,13 @@ func (m *Cluster) GetStatus() Cluster_Status { return Cluster_STATUS_UNKNOWN } +func (m *Cluster) GetServiceAccountId() string { + if m != nil { + return m.ServiceAccountId + } + return "" +} + // Monitoring system metadata. type Monitoring struct { // Name of the monitoring system. @@ -694,6 +703,73 @@ func (m *Shard) GetConfig() *ShardConfig { return nil } +type ShardGroup struct { + // Name of the shard group + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // ID of the cluster that the shard belongs to. + ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Description of the ClickHouse cluster shard group. 0-256 characters long. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // List of shard names contained in shard group + ShardNames []string `protobuf:"bytes,4,rep,name=shard_names,json=shardNames,proto3" json:"shard_names,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ShardGroup) Reset() { *m = ShardGroup{} } +func (m *ShardGroup) String() string { return proto.CompactTextString(m) } +func (*ShardGroup) ProtoMessage() {} +func (*ShardGroup) Descriptor() ([]byte, []int) { + return fileDescriptor_1a6d463853631481, []int{4} +} + +func (m *ShardGroup) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ShardGroup.Unmarshal(m, b) +} +func (m *ShardGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ShardGroup.Marshal(b, m, deterministic) +} +func (m *ShardGroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShardGroup.Merge(m, src) +} +func (m *ShardGroup) XXX_Size() int { + return xxx_messageInfo_ShardGroup.Size(m) +} +func (m *ShardGroup) XXX_DiscardUnknown() { + xxx_messageInfo_ShardGroup.DiscardUnknown(m) +} + +var xxx_messageInfo_ShardGroup proto.InternalMessageInfo + +func (m *ShardGroup) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ShardGroup) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *ShardGroup) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *ShardGroup) GetShardNames() []string { + if m != nil { + return m.ShardNames + } + return nil +} + type ShardConfig struct { // ClickHouse configuration for a shard. Clickhouse *ShardConfig_Clickhouse `protobuf:"bytes,1,opt,name=clickhouse,proto3" json:"clickhouse,omitempty"` @@ -706,7 +782,7 @@ func (m *ShardConfig) Reset() { *m = ShardConfig{} } func (m *ShardConfig) String() string { return proto.CompactTextString(m) } func (*ShardConfig) ProtoMessage() {} func (*ShardConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_1a6d463853631481, []int{4} + return fileDescriptor_1a6d463853631481, []int{5} } func (m *ShardConfig) XXX_Unmarshal(b []byte) error { @@ -751,7 +827,7 @@ func (m *ShardConfig_Clickhouse) Reset() { *m = ShardConfig_Clickhouse{} func (m *ShardConfig_Clickhouse) String() string { return proto.CompactTextString(m) } func (*ShardConfig_Clickhouse) ProtoMessage() {} func (*ShardConfig_Clickhouse) Descriptor() ([]byte, []int) { - return fileDescriptor_1a6d463853631481, []int{4, 0} + return fileDescriptor_1a6d463853631481, []int{5, 0} } func (m *ShardConfig_Clickhouse) XXX_Unmarshal(b []byte) error { @@ -825,7 +901,7 @@ func (m *Host) Reset() { *m = Host{} } func (m *Host) String() string { return proto.CompactTextString(m) } func (*Host) ProtoMessage() {} func (*Host) Descriptor() ([]byte, []int) { - return fileDescriptor_1a6d463853631481, []int{5} + return fileDescriptor_1a6d463853631481, []int{6} } func (m *Host) XXX_Unmarshal(b []byte) error { @@ -930,7 +1006,7 @@ func (m *Service) Reset() { *m = Service{} } func (m *Service) String() string { return proto.CompactTextString(m) } func (*Service) ProtoMessage() {} func (*Service) Descriptor() ([]byte, []int) { - return fileDescriptor_1a6d463853631481, []int{6} + return fileDescriptor_1a6d463853631481, []int{7} } func (m *Service) XXX_Unmarshal(b []byte) error { @@ -986,7 +1062,7 @@ func (m *Resources) Reset() { *m = Resources{} } func (m *Resources) String() string { return proto.CompactTextString(m) } func (*Resources) ProtoMessage() {} func (*Resources) Descriptor() ([]byte, []int) { - return fileDescriptor_1a6d463853631481, []int{7} + return fileDescriptor_1a6d463853631481, []int{8} } func (m *Resources) XXX_Unmarshal(b []byte) error { @@ -1032,7 +1108,11 @@ type Access struct { // Allow access for DataLens DataLens bool `protobuf:"varint,1,opt,name=data_lens,json=dataLens,proto3" json:"data_lens,omitempty"` // Allow access for Web SQL - WebSql bool `protobuf:"varint,2,opt,name=web_sql,json=webSql,proto3" json:"web_sql,omitempty"` + WebSql bool `protobuf:"varint,2,opt,name=web_sql,json=webSql,proto3" json:"web_sql,omitempty"` + // Allow access for Metrika + Metrika bool `protobuf:"varint,3,opt,name=metrika,proto3" json:"metrika,omitempty"` + // Allow access for Serverless + Serverless bool `protobuf:"varint,4,opt,name=serverless,proto3" json:"serverless,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1042,7 +1122,7 @@ func (m *Access) Reset() { *m = Access{} } func (m *Access) String() string { return proto.CompactTextString(m) } func (*Access) ProtoMessage() {} func (*Access) Descriptor() ([]byte, []int) { - return fileDescriptor_1a6d463853631481, []int{8} + return fileDescriptor_1a6d463853631481, []int{9} } func (m *Access) XXX_Unmarshal(b []byte) error { @@ -1077,6 +1157,20 @@ func (m *Access) GetWebSql() bool { return false } +func (m *Access) GetMetrika() bool { + if m != nil { + return m.Metrika + } + return false +} + +func (m *Access) GetServerless() bool { + if m != nil { + return m.Serverless + } + return false +} + func init() { proto.RegisterEnum("yandex.cloud.mdb.clickhouse.v1.Cluster_Environment", Cluster_Environment_name, Cluster_Environment_value) proto.RegisterEnum("yandex.cloud.mdb.clickhouse.v1.Cluster_Health", Cluster_Health_name, Cluster_Health_value) @@ -1092,6 +1186,7 @@ func init() { proto.RegisterType((*ClusterConfig_Clickhouse)(nil), "yandex.cloud.mdb.clickhouse.v1.ClusterConfig.Clickhouse") proto.RegisterType((*ClusterConfig_Zookeeper)(nil), "yandex.cloud.mdb.clickhouse.v1.ClusterConfig.Zookeeper") proto.RegisterType((*Shard)(nil), "yandex.cloud.mdb.clickhouse.v1.Shard") + proto.RegisterType((*ShardGroup)(nil), "yandex.cloud.mdb.clickhouse.v1.ShardGroup") proto.RegisterType((*ShardConfig)(nil), "yandex.cloud.mdb.clickhouse.v1.ShardConfig") proto.RegisterType((*ShardConfig_Clickhouse)(nil), "yandex.cloud.mdb.clickhouse.v1.ShardConfig.Clickhouse") proto.RegisterType((*Host)(nil), "yandex.cloud.mdb.clickhouse.v1.Host") @@ -1105,86 +1200,92 @@ func init() { } var fileDescriptor_1a6d463853631481 = []byte{ - // 1290 bytes of a gzipped FileDescriptorProto + // 1381 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0xcb, 0x6e, 0xdb, 0x46, - 0x14, 0x0d, 0x65, 0x99, 0x12, 0x2f, 0x1d, 0x83, 0x9d, 0x06, 0x8d, 0x20, 0x23, 0xa9, 0xc1, 0x45, - 0xeb, 0xe6, 0x41, 0x21, 0x4e, 0x91, 0xe6, 0x81, 0xa6, 0x55, 0x24, 0x26, 0x66, 0xed, 0x48, 0xc2, - 0x88, 0x72, 0xda, 0x6c, 0x08, 0x8a, 0x1c, 0xcb, 0x84, 0x28, 0x92, 0xe1, 0x50, 0x76, 0xe4, 0x4d, - 0xbf, 0xa7, 0x9f, 0xd1, 0x4d, 0xb7, 0xfd, 0x83, 0xae, 0xfa, 0x19, 0x5d, 0x14, 0x33, 0x43, 0x3d, - 0x1c, 0x37, 0x91, 0x9c, 0xac, 0xba, 0xd3, 0xdc, 0x7b, 0xcf, 0xe1, 0xdc, 0xf7, 0x08, 0xee, 0x4c, - 0xdc, 0xc8, 0x27, 0x6f, 0x6b, 0x5e, 0x18, 0x8f, 0xfd, 0xda, 0xc8, 0xef, 0xd7, 0xbc, 0x30, 0xf0, - 0x86, 0xc7, 0xf1, 0x98, 0x92, 0xda, 0xc9, 0xbd, 0x9a, 0x17, 0x8e, 0x69, 0x46, 0x52, 0x23, 0x49, - 0xe3, 0x2c, 0x46, 0x37, 0x85, 0xb5, 0xc1, 0xad, 0x8d, 0x91, 0xdf, 0x37, 0xe6, 0xd6, 0xc6, 0xc9, - 0xbd, 0xea, 0x97, 0x83, 0x38, 0x1e, 0x84, 0xa4, 0xc6, 0xad, 0xfb, 0xe3, 0xa3, 0x5a, 0x16, 0x8c, - 0x08, 0xcd, 0xdc, 0x51, 0x22, 0x08, 0xaa, 0x37, 0xdf, 0x35, 0x38, 0x4d, 0xdd, 0x24, 0x21, 0x29, - 0xcd, 0xf5, 0x5b, 0xb9, 0x3e, 0x9b, 0x24, 0x84, 0x83, 0xe3, 0x23, 0xdf, 0x9d, 0xe4, 0xca, 0x07, - 0xcb, 0xee, 0x1a, 0x47, 0x47, 0xc1, 0x60, 0x41, 0x28, 0x70, 0xfa, 0x9f, 0x25, 0x28, 0x35, 0x84, - 0x1f, 0x68, 0x13, 0x0a, 0x81, 0x5f, 0x91, 0xb6, 0xa5, 0x1d, 0x05, 0x17, 0x02, 0x1f, 0x6d, 0x81, - 0x72, 0x14, 0x87, 0x3e, 0x49, 0x9d, 0xc0, 0xaf, 0x14, 0xb8, 0xb8, 0x2c, 0x04, 0x96, 0x8f, 0x1e, - 0x01, 0x78, 0x29, 0x71, 0x33, 0xe2, 0x3b, 0x6e, 0x56, 0x59, 0xdb, 0x96, 0x76, 0xd4, 0xdd, 0xaa, - 0x21, 0xae, 0x68, 0x4c, 0x5d, 0x30, 0xec, 0xa9, 0x8f, 0x58, 0xc9, 0xad, 0xeb, 0x19, 0x42, 0x50, - 0x8c, 0xdc, 0x11, 0xa9, 0x14, 0x39, 0x25, 0xff, 0x8d, 0xb6, 0x41, 0xf5, 0x09, 0xf5, 0xd2, 0x20, - 0xc9, 0x82, 0x38, 0xaa, 0xac, 0x73, 0xd5, 0xa2, 0x08, 0xed, 0x83, 0x1c, 0xba, 0x7d, 0x12, 0xd2, - 0x8a, 0xbc, 0xbd, 0xb6, 0xa3, 0xee, 0xde, 0x37, 0x3e, 0x1c, 0x70, 0x23, 0x77, 0xcb, 0x38, 0xe0, - 0x28, 0x33, 0xca, 0xd2, 0x09, 0xce, 0x29, 0x50, 0x0f, 0x54, 0x12, 0x9d, 0x04, 0x69, 0x1c, 0x8d, - 0x48, 0x94, 0x55, 0x4a, 0xdb, 0xd2, 0xce, 0xe6, 0xea, 0x8c, 0xe6, 0x1c, 0x8a, 0x17, 0x79, 0xd0, - 0x4f, 0x00, 0xa3, 0x38, 0x0a, 0xb2, 0x38, 0x0d, 0xa2, 0x41, 0xa5, 0xcc, 0xef, 0x79, 0x6b, 0x19, - 0xeb, 0xcb, 0x19, 0x02, 0x2f, 0xa0, 0x91, 0x09, 0xb2, 0x48, 0x5a, 0x45, 0xe1, 0xc1, 0xbd, 0xbb, - 0xe2, 0xed, 0x1a, 0x1c, 0x84, 0x73, 0x30, 0xba, 0x01, 0x10, 0x91, 0xec, 0x34, 0x4e, 0x87, 0x2c, - 0x8b, 0xc0, 0xe3, 0xaa, 0xe4, 0x12, 0xcb, 0x47, 0xcf, 0x41, 0x3e, 0x26, 0x6e, 0x98, 0x1d, 0x57, - 0x54, 0x1e, 0x03, 0x63, 0xd5, 0x18, 0xec, 0x71, 0x14, 0xce, 0xd1, 0x8c, 0x87, 0x66, 0x6e, 0x36, - 0xa6, 0x95, 0x8d, 0xcb, 0xf1, 0x74, 0x39, 0x0a, 0xe7, 0xe8, 0xea, 0x23, 0x50, 0x17, 0xf2, 0x85, - 0x34, 0x58, 0x1b, 0x92, 0x49, 0x5e, 0x93, 0xec, 0x27, 0xba, 0x06, 0xeb, 0x27, 0x6e, 0x38, 0x26, - 0x79, 0x41, 0x8a, 0xc3, 0xe3, 0xc2, 0x43, 0x49, 0xb7, 0x40, 0x5d, 0x48, 0x0c, 0xda, 0x82, 0xeb, - 0x66, 0xeb, 0xd0, 0xc2, 0xed, 0xd6, 0x4b, 0xb3, 0x65, 0x3b, 0xbd, 0x56, 0xb7, 0x63, 0x36, 0xac, - 0xe7, 0x96, 0xd9, 0xd4, 0xae, 0xa0, 0x4d, 0x80, 0x0e, 0x6e, 0x37, 0x7b, 0x0d, 0xdb, 0x6a, 0xb7, - 0x34, 0x09, 0x5d, 0x05, 0xa5, 0x83, 0xcd, 0xae, 0x5d, 0x7f, 0x76, 0x60, 0x6a, 0x05, 0xfd, 0x07, - 0x90, 0x85, 0x7f, 0x08, 0xc1, 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 0xa9, 0xe4, 0xea, 0x5f, 0xff, 0x9f, 0x54, 0xa3, 0xfb, 0x20, 0x9f, 0x92, 0x60, 0x70, 0x3c, 0x5d, - 0xf4, 0x5b, 0x17, 0x16, 0xbd, 0x15, 0x65, 0x0f, 0xbe, 0x3d, 0x64, 0xb3, 0x18, 0xe7, 0xa6, 0xfa, - 0xef, 0x45, 0x28, 0xee, 0xc5, 0x34, 0xfb, 0x98, 0x4c, 0x5e, 0x87, 0xd2, 0x59, 0x1c, 0x11, 0xa6, - 0x13, 0x33, 0x48, 0x66, 0x47, 0xcb, 0x47, 0xdf, 0x43, 0x91, 0x75, 0x21, 0xef, 0xcc, 0xcd, 0xe5, - 0xde, 0xb0, 0xef, 0x1b, 0xf6, 0x24, 0x21, 0x98, 0xc3, 0xce, 0x47, 0x64, 0xfd, 0x13, 0x22, 0xd2, - 0x98, 0xed, 0x4d, 0x99, 0xdf, 0xe4, 0xf6, 0x4a, 0x37, 0x79, 0x67, 0x69, 0x36, 0xa0, 0x4c, 0x49, - 0x7a, 0x12, 0xb0, 0xcb, 0x94, 0xf8, 0x63, 0xe1, 0xeb, 0xa5, 0x85, 0x25, 0xec, 0xf1, 0x0c, 0xc8, - 0x5e, 0x69, 0x74, 0xdc, 0x8f, 0x48, 0xc6, 0x82, 0x55, 0x16, 0xaf, 0x34, 0x21, 0xb0, 0x7c, 0xb4, - 0x03, 0x9a, 0x4b, 0x69, 0x30, 0x88, 0x9c, 0x64, 0xdc, 0x0f, 0x03, 0xcf, 0x09, 0x12, 0xfe, 0x9c, - 0x28, 0xe3, 0x4d, 0x21, 0xef, 0x70, 0xb1, 0x95, 0xb0, 0x84, 0x50, 0x56, 0xb4, 0x0e, 0x4f, 0x55, - 0xfe, 0x4e, 0xe0, 0x92, 0x96, 0x3b, 0x22, 0xfa, 0x13, 0x28, 0xb2, 0x30, 0xa2, 0x6b, 0xa0, 0xd9, - 0xbf, 0x74, 0xcc, 0x8b, 0xeb, 0xb4, 0x71, 0x60, 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 0x83, 0xb3, 0xc4, 0x89, 0x63, 0x92, + 0xd0, 0x4c, 0xbf, 0x95, 0xe9, 0xd3, 0x71, 0x4c, 0x38, 0x38, 0x3a, 0xf6, 0x9c, 0x71, 0xa6, 0x7c, + 0xbc, 0xec, 0xae, 0x51, 0x78, 0xec, 0xf7, 0xe7, 0x84, 0x02, 0xa7, 0xff, 0x5d, 0x82, 0x52, 0x4d, + 0xbc, 0x03, 0x6d, 0x40, 0xce, 0xf7, 0x34, 0x69, 0x5b, 0xda, 0x91, 0x71, 0xce, 0xf7, 0xd0, 0x16, + 0xc8, 0xc7, 0x51, 0xe0, 0x91, 0xc4, 0xf6, 0x3d, 0x2d, 0xc7, 0xc5, 0x65, 0x21, 0xb0, 0x3c, 0xf4, + 0x14, 0xc0, 0x4d, 0x88, 0x93, 0x12, 0xcf, 0x76, 0x52, 0x2d, 0xbf, 0x2d, 0xed, 0x28, 0xbb, 0x9b, + 0x86, 0xb8, 0xa2, 0x31, 0x79, 0x82, 0xd1, 0x99, 0xbc, 0x11, 0xcb, 0x99, 0x75, 0x35, 0x45, 0x08, + 0x0a, 0xa1, 0x33, 0x24, 0x5a, 0x81, 0x53, 0xf2, 0xdf, 0x68, 0x1b, 0x14, 0x8f, 0x50, 0x37, 0xf1, + 0xe3, 0xd4, 0x8f, 0x42, 0x6d, 0x8d, 0xab, 0xe6, 0x45, 0xe8, 0x00, 0x8a, 0x81, 0xd3, 0x23, 0x01, + 0xd5, 0x8a, 0xdb, 0xf9, 0x1d, 0x65, 0xf7, 0x91, 0xf1, 0x61, 0x87, 0x1b, 0xd9, 0xb3, 0x8c, 0x43, + 0x8e, 0x32, 0xc3, 0x34, 0x19, 0xe3, 0x8c, 0x02, 0x75, 0x41, 0x21, 0xe1, 0xa9, 0x9f, 0x44, 0xe1, + 0x90, 0x84, 0xa9, 0x56, 0xda, 0x96, 0x76, 0x36, 0x56, 0x67, 0x34, 0x67, 0x50, 0x3c, 0xcf, 0x83, + 0x7e, 0x00, 0x18, 0x46, 0xa1, 0x9f, 0x46, 0x89, 0x1f, 0xf6, 0xb5, 0x32, 0xbf, 0xe7, 0xdd, 0x65, + 0xac, 0xaf, 0xa6, 0x08, 0x3c, 0x87, 0x46, 0x26, 0x14, 0x45, 0xd0, 0x34, 0x99, 0x3b, 0xf7, 0xc1, + 0x8a, 0xb7, 0xab, 0x71, 0x10, 0xce, 0xc0, 0xe8, 0x16, 0x40, 0x48, 0xd2, 0xb3, 0x28, 0x19, 0xb0, + 0x28, 0x02, 0xf7, 0xab, 0x9c, 0x49, 0x2c, 0x0f, 0xbd, 0x84, 0xe2, 0x09, 0x71, 0x82, 0xf4, 0x44, + 0x53, 0xb8, 0x0f, 0x8c, 0x55, 0x7d, 0xb0, 0xcf, 0x51, 0x38, 0x43, 0x33, 0x1e, 0x9a, 0x3a, 0xe9, + 0x88, 0x6a, 0xeb, 0x57, 0xe3, 0x69, 0x73, 0x14, 0xce, 0xd0, 0xe8, 0x3e, 0x20, 0x4a, 0x92, 0x53, + 0xdf, 0x25, 0xb6, 0xe3, 0xba, 0xd1, 0x28, 0x4c, 0xd9, 0xb5, 0xaf, 0xf3, 0x6b, 0xab, 0x99, 0xa6, + 0x2a, 0x14, 0x96, 0xb7, 0xf9, 0x14, 0x94, 0xb9, 0xe8, 0x22, 0x15, 0xf2, 0x03, 0x32, 0xce, 0x32, + 0x98, 0xfd, 0x44, 0x37, 0x60, 0xed, 0xd4, 0x09, 0x46, 0x24, 0x4b, 0x5f, 0x71, 0x78, 0x96, 0x7b, + 0x22, 0xe9, 0x16, 0x28, 0x73, 0x61, 0x44, 0x5b, 0x70, 0xd3, 0x6c, 0x1c, 0x59, 0xb8, 0xd9, 0x78, + 0x65, 0x36, 0x3a, 0x76, 0xb7, 0xd1, 0x6e, 0x99, 0x35, 0xeb, 0xa5, 0x65, 0xd6, 0xd5, 0x6b, 0x68, + 0x03, 0xa0, 0x85, 0x9b, 0xf5, 0x6e, 0xad, 0x63, 0x35, 0x1b, 0xaa,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, 0xbc, 0x94, 0x71, 0x99, 0x09, 0x0e, 0x49, 0x48, 0x59, 0x9d, + 0x9e, 0x91, 0x9e, 0x4d, 0xdf, 0x06, 0xfc, 0x1b, 0x65, 0x56, 0xfc, 0xbd, 0xf6, 0xdb, 0x80, 0x2d, + 0x28, 0x43, 0x92, 0x26, 0xfe, 0xc0, 0xe1, 0xe4, 0x65, 0x3c, 0x39, 0xa2, 0xdb, 0x00, 0x2c, 0x77, + 0x49, 0x12, 0xb0, 0x59, 0x5d, 0xe0, 0xca, 0x39, 0xc9, 0x0b, 0x0a, 0xfa, 0x42, 0x54, 0x9c, 0xd8, + 0xbf, 0x1c, 0x99, 0x37, 0xaf, 0xfa, 0x7e, 0x7a, 0x32, 0xea, 0x19, 0x6e, 0x34, 0xac, 0x08, 0xf3, + 0x07, 0xe2, 0xdf, 0x5a, 0x3f, 0x7a, 0xd0, 0x27, 0x21, 0xef, 0x4b, 0x95, 0x0f, 0xff, 0x8d, 0x7b, + 0x3e, 0x3b, 0xf5, 0x8a, 0x1c, 0xf0, 0xe8, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x38, 0x32, 0x45, + 0x42, 0xa6, 0x0e, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/cluster.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/cluster.pbext.go new file mode 100644 index 000000000..f30a8846d --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/cluster.pbext.go @@ -0,0 +1,226 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package clickhouse + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + config "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/config" + timeofday "google.golang.org/genproto/googleapis/type/timeofday" +) + +func (m *Cluster) SetId(v string) { + m.Id = v +} + +func (m *Cluster) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Cluster) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Cluster) SetName(v string) { + m.Name = v +} + +func (m *Cluster) SetDescription(v string) { + m.Description = v +} + +func (m *Cluster) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *Cluster) SetEnvironment(v Cluster_Environment) { + m.Environment = v +} + +func (m *Cluster) SetMonitoring(v []*Monitoring) { + m.Monitoring = v +} + +func (m *Cluster) SetConfig(v *ClusterConfig) { + m.Config = v +} + +func (m *Cluster) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *Cluster) SetHealth(v Cluster_Health) { + m.Health = v +} + +func (m *Cluster) SetStatus(v Cluster_Status) { + m.Status = v +} + +func (m *Cluster) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *Monitoring) SetName(v string) { + m.Name = v +} + +func (m *Monitoring) SetDescription(v string) { + m.Description = v +} + +func (m *Monitoring) SetLink(v string) { + m.Link = v +} + +func (m *ClusterConfig) SetVersion(v string) { + m.Version = v +} + +func (m *ClusterConfig) SetClickhouse(v *ClusterConfig_Clickhouse) { + m.Clickhouse = v +} + +func (m *ClusterConfig) SetZookeeper(v *ClusterConfig_Zookeeper) { + m.Zookeeper = v +} + +func (m *ClusterConfig) SetBackupWindowStart(v *timeofday.TimeOfDay) { + m.BackupWindowStart = v +} + +func (m *ClusterConfig) SetAccess(v *Access) { + m.Access = v +} + +func (m *ClusterConfig_Clickhouse) SetConfig(v *config.ClickhouseConfigSet) { + m.Config = v +} + +func (m *ClusterConfig_Clickhouse) SetResources(v *Resources) { + m.Resources = v +} + +func (m *ClusterConfig_Zookeeper) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Shard) SetName(v string) { + m.Name = v +} + +func (m *Shard) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *Shard) SetConfig(v *ShardConfig) { + m.Config = v +} + +func (m *ShardGroup) SetName(v string) { + m.Name = v +} + +func (m *ShardGroup) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ShardGroup) SetDescription(v string) { + m.Description = v +} + +func (m *ShardGroup) SetShardNames(v []string) { + m.ShardNames = v +} + +func (m *ShardConfig) SetClickhouse(v *ShardConfig_Clickhouse) { + m.Clickhouse = v +} + +func (m *ShardConfig_Clickhouse) SetConfig(v *config.ClickhouseConfigSet) { + m.Config = v +} + +func (m *ShardConfig_Clickhouse) SetResources(v *Resources) { + m.Resources = v +} + +func (m *ShardConfig_Clickhouse) SetWeight(v *wrappers.Int64Value) { + m.Weight = v +} + +func (m *Host) SetName(v string) { + m.Name = v +} + +func (m *Host) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *Host) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *Host) SetType(v Host_Type) { + m.Type = v +} + +func (m *Host) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Host) SetHealth(v Host_Health) { + m.Health = v +} + +func (m *Host) SetServices(v []*Service) { + m.Services = v +} + +func (m *Host) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *Host) SetAssignPublicIp(v bool) { + m.AssignPublicIp = v +} + +func (m *Host) SetShardName(v string) { + m.ShardName = v +} + +func (m *Service) SetType(v Service_Type) { + m.Type = v +} + +func (m *Service) SetHealth(v Service_Health) { + m.Health = v +} + +func (m *Resources) SetResourcePresetId(v string) { + m.ResourcePresetId = v +} + +func (m *Resources) SetDiskSize(v int64) { + m.DiskSize = v +} + +func (m *Resources) SetDiskTypeId(v string) { + m.DiskTypeId = v +} + +func (m *Access) SetDataLens(v bool) { + m.DataLens = v +} + +func (m *Access) SetWebSql(v bool) { + m.WebSql = v +} + +func (m *Access) SetMetrika(v bool) { + m.Metrika = v +} + +func (m *Access) SetServerless(v bool) { + m.Serverless = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/cluster_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/cluster_service.pb.go index 189e99211..9145c3b98 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/cluster_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/cluster_service.pb.go @@ -59,6 +59,32 @@ func (ListClusterLogsRequest_ServiceType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_abf45d3bff6c2a2e, []int{22, 0} } +type StreamClusterLogsRequest_ServiceType int32 + +const ( + StreamClusterLogsRequest_SERVICE_TYPE_UNSPECIFIED StreamClusterLogsRequest_ServiceType = 0 + // Logs of ClickHouse activity. + StreamClusterLogsRequest_CLICKHOUSE StreamClusterLogsRequest_ServiceType = 1 +) + +var StreamClusterLogsRequest_ServiceType_name = map[int32]string{ + 0: "SERVICE_TYPE_UNSPECIFIED", + 1: "CLICKHOUSE", +} + +var StreamClusterLogsRequest_ServiceType_value = map[string]int32{ + "SERVICE_TYPE_UNSPECIFIED": 0, + "CLICKHOUSE": 1, +} + +func (x StreamClusterLogsRequest_ServiceType) String() string { + return proto.EnumName(StreamClusterLogsRequest_ServiceType_name, int32(x)) +} + +func (StreamClusterLogsRequest_ServiceType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_abf45d3bff6c2a2e, []int{25, 0} +} + type GetClusterRequest struct { // ID of the ClickHouse Cluster resource to return. // To get the cluster ID, use a [ClusterService.List] request. @@ -250,7 +276,9 @@ type CreateClusterRequest struct { // ID of the network to create the cluster in. NetworkId string `protobuf:"bytes,10,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` // Name of the first shard in cluster. If not set, defaults to the value 'shard1'. - ShardName string `protobuf:"bytes,11,opt,name=shard_name,json=shardName,proto3" json:"shard_name,omitempty"` + ShardName string `protobuf:"bytes,11,opt,name=shard_name,json=shardName,proto3" json:"shard_name,omitempty"` + // ID of the service account used for access to Yandex Object Storage. + ServiceAccountId string `protobuf:"bytes,12,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -358,6 +386,13 @@ func (m *CreateClusterRequest) GetShardName() string { return "" } +func (m *CreateClusterRequest) GetServiceAccountId() string { + if m != nil { + return m.ServiceAccountId + } + return "" +} + type CreateClusterMetadata struct { // ID of the ClickHouse cluster that is being created. ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` @@ -413,10 +448,14 @@ type UpdateClusterRequest struct { // set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // New configuration and resources for hosts in the cluster. - ConfigSpec *ConfigSpec `protobuf:"bytes,5,opt,name=config_spec,json=configSpec,proto3" json:"config_spec,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ConfigSpec *ConfigSpec `protobuf:"bytes,5,opt,name=config_spec,json=configSpec,proto3" json:"config_spec,omitempty"` + // New name for the cluster. + Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` + // ID of the service account used for access to Yandex Object Storage. + ServiceAccountId string `protobuf:"bytes,7,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UpdateClusterRequest) Reset() { *m = UpdateClusterRequest{} } @@ -479,6 +518,20 @@ func (m *UpdateClusterRequest) GetConfigSpec() *ConfigSpec { return nil } +func (m *UpdateClusterRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *UpdateClusterRequest) GetServiceAccountId() string { + if m != nil { + return m.ServiceAccountId + } + return "" +} + type UpdateClusterMetadata struct { // ID of the ClickHouse Cluster resource that is being updated. ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` @@ -1067,7 +1120,9 @@ type RestoreClusterRequest struct { // ID of the network to create the ClickHouse cluster in. NetworkId string `protobuf:"bytes,8,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` // ID of the folder to create the ClickHouse cluster in. - FolderId string `protobuf:"bytes,9,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + FolderId string `protobuf:"bytes,9,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // ID of the service account used for access to Yandex Object Storage. + ServiceAccountId string `protobuf:"bytes,10,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1161,6 +1216,13 @@ func (m *RestoreClusterRequest) GetFolderId() string { return "" } +func (m *RestoreClusterRequest) GetServiceAccountId() string { + if m != nil { + return m.ServiceAccountId + } + return "" +} + type RestoreClusterMetadata struct { // ID of the new ClickHouse cluster that is being created from a backup. ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` @@ -1471,6 +1533,83 @@ func (m *ListClusterOperationsRequest) GetPageToken() string { return "" } +type StreamClusterLogsRequest struct { + // Required. ID of the ClickHouse cluster. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Columns from logs table to get in the response. + ColumnFilter []string `protobuf:"bytes,2,rep,name=column_filter,json=columnFilter,proto3" json:"column_filter,omitempty"` + ServiceType StreamClusterLogsRequest_ServiceType `protobuf:"varint,3,opt,name=service_type,json=serviceType,proto3,enum=yandex.cloud.mdb.clickhouse.v1.StreamClusterLogsRequest_ServiceType" json:"service_type,omitempty"` + // Start timestamp for the logs request. + FromTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=from_time,json=fromTime,proto3" json:"from_time,omitempty"` + // End timestamp for the logs request. + // If this field is not set, all existing logs will be sent and then the new ones as + // they appear. In essence it has 'tail -f' semantics. + ToTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=to_time,json=toTime,proto3" json:"to_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamClusterLogsRequest) Reset() { *m = StreamClusterLogsRequest{} } +func (m *StreamClusterLogsRequest) String() string { return proto.CompactTextString(m) } +func (*StreamClusterLogsRequest) ProtoMessage() {} +func (*StreamClusterLogsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_abf45d3bff6c2a2e, []int{25} +} + +func (m *StreamClusterLogsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamClusterLogsRequest.Unmarshal(m, b) +} +func (m *StreamClusterLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamClusterLogsRequest.Marshal(b, m, deterministic) +} +func (m *StreamClusterLogsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamClusterLogsRequest.Merge(m, src) +} +func (m *StreamClusterLogsRequest) XXX_Size() int { + return xxx_messageInfo_StreamClusterLogsRequest.Size(m) +} +func (m *StreamClusterLogsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StreamClusterLogsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamClusterLogsRequest proto.InternalMessageInfo + +func (m *StreamClusterLogsRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *StreamClusterLogsRequest) GetColumnFilter() []string { + if m != nil { + return m.ColumnFilter + } + return nil +} + +func (m *StreamClusterLogsRequest) GetServiceType() StreamClusterLogsRequest_ServiceType { + if m != nil { + return m.ServiceType + } + return StreamClusterLogsRequest_SERVICE_TYPE_UNSPECIFIED +} + +func (m *StreamClusterLogsRequest) GetFromTime() *timestamp.Timestamp { + if m != nil { + return m.FromTime + } + return nil +} + +func (m *StreamClusterLogsRequest) GetToTime() *timestamp.Timestamp { + if m != nil { + return m.ToTime + } + return nil +} + type ListClusterOperationsResponse struct { // List of Operation resources for the specified ClickHouse cluster. Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` @@ -1488,7 +1627,7 @@ func (m *ListClusterOperationsResponse) Reset() { *m = ListClusterOperat func (m *ListClusterOperationsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterOperationsResponse) ProtoMessage() {} func (*ListClusterOperationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{25} + return fileDescriptor_abf45d3bff6c2a2e, []int{26} } func (m *ListClusterOperationsResponse) XXX_Unmarshal(b []byte) error { @@ -1543,7 +1682,7 @@ func (m *ListClusterBackupsRequest) Reset() { *m = ListClusterBackupsReq func (m *ListClusterBackupsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterBackupsRequest) ProtoMessage() {} func (*ListClusterBackupsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{26} + return fileDescriptor_abf45d3bff6c2a2e, []int{27} } func (m *ListClusterBackupsRequest) XXX_Unmarshal(b []byte) error { @@ -1602,7 +1741,7 @@ func (m *ListClusterBackupsResponse) Reset() { *m = ListClusterBackupsRe func (m *ListClusterBackupsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterBackupsResponse) ProtoMessage() {} func (*ListClusterBackupsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{27} + return fileDescriptor_abf45d3bff6c2a2e, []int{28} } func (m *ListClusterBackupsResponse) XXX_Unmarshal(b []byte) error { @@ -1657,7 +1796,7 @@ func (m *ListClusterHostsRequest) Reset() { *m = ListClusterHostsRequest func (m *ListClusterHostsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterHostsRequest) ProtoMessage() {} func (*ListClusterHostsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{28} + return fileDescriptor_abf45d3bff6c2a2e, []int{29} } func (m *ListClusterHostsRequest) XXX_Unmarshal(b []byte) error { @@ -1716,7 +1855,7 @@ func (m *ListClusterHostsResponse) Reset() { *m = ListClusterHostsRespon func (m *ListClusterHostsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterHostsResponse) ProtoMessage() {} func (*ListClusterHostsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{29} + return fileDescriptor_abf45d3bff6c2a2e, []int{30} } func (m *ListClusterHostsResponse) XXX_Unmarshal(b []byte) error { @@ -1766,7 +1905,7 @@ func (m *AddClusterHostsRequest) Reset() { *m = AddClusterHostsRequest{} func (m *AddClusterHostsRequest) String() string { return proto.CompactTextString(m) } func (*AddClusterHostsRequest) ProtoMessage() {} func (*AddClusterHostsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{30} + return fileDescriptor_abf45d3bff6c2a2e, []int{31} } func (m *AddClusterHostsRequest) XXX_Unmarshal(b []byte) error { @@ -1815,7 +1954,7 @@ func (m *AddClusterHostsMetadata) Reset() { *m = AddClusterHostsMetadata func (m *AddClusterHostsMetadata) String() string { return proto.CompactTextString(m) } func (*AddClusterHostsMetadata) ProtoMessage() {} func (*AddClusterHostsMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{31} + return fileDescriptor_abf45d3bff6c2a2e, []int{32} } func (m *AddClusterHostsMetadata) XXX_Unmarshal(b []byte) error { @@ -1865,7 +2004,7 @@ func (m *DeleteClusterHostsRequest) Reset() { *m = DeleteClusterHostsReq func (m *DeleteClusterHostsRequest) String() string { return proto.CompactTextString(m) } func (*DeleteClusterHostsRequest) ProtoMessage() {} func (*DeleteClusterHostsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{32} + return fileDescriptor_abf45d3bff6c2a2e, []int{33} } func (m *DeleteClusterHostsRequest) XXX_Unmarshal(b []byte) error { @@ -1914,7 +2053,7 @@ func (m *DeleteClusterHostsMetadata) Reset() { *m = DeleteClusterHostsMe func (m *DeleteClusterHostsMetadata) String() string { return proto.CompactTextString(m) } func (*DeleteClusterHostsMetadata) ProtoMessage() {} func (*DeleteClusterHostsMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{33} + return fileDescriptor_abf45d3bff6c2a2e, []int{34} } func (m *DeleteClusterHostsMetadata) XXX_Unmarshal(b []byte) error { @@ -1966,7 +2105,7 @@ func (m *GetClusterShardRequest) Reset() { *m = GetClusterShardRequest{} func (m *GetClusterShardRequest) String() string { return proto.CompactTextString(m) } func (*GetClusterShardRequest) ProtoMessage() {} func (*GetClusterShardRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{34} + return fileDescriptor_abf45d3bff6c2a2e, []int{35} } func (m *GetClusterShardRequest) XXX_Unmarshal(b []byte) error { @@ -2021,7 +2160,7 @@ func (m *ListClusterShardsRequest) Reset() { *m = ListClusterShardsReque func (m *ListClusterShardsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterShardsRequest) ProtoMessage() {} func (*ListClusterShardsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{35} + return fileDescriptor_abf45d3bff6c2a2e, []int{36} } func (m *ListClusterShardsRequest) XXX_Unmarshal(b []byte) error { @@ -2080,7 +2219,7 @@ func (m *ListClusterShardsResponse) Reset() { *m = ListClusterShardsResp func (m *ListClusterShardsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterShardsResponse) ProtoMessage() {} func (*ListClusterShardsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{36} + return fileDescriptor_abf45d3bff6c2a2e, []int{37} } func (m *ListClusterShardsResponse) XXX_Unmarshal(b []byte) error { @@ -2134,7 +2273,7 @@ func (m *AddClusterShardRequest) Reset() { *m = AddClusterShardRequest{} func (m *AddClusterShardRequest) String() string { return proto.CompactTextString(m) } func (*AddClusterShardRequest) ProtoMessage() {} func (*AddClusterShardRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{37} + return fileDescriptor_abf45d3bff6c2a2e, []int{38} } func (m *AddClusterShardRequest) XXX_Unmarshal(b []byte) error { @@ -2197,7 +2336,7 @@ func (m *AddClusterShardMetadata) Reset() { *m = AddClusterShardMetadata func (m *AddClusterShardMetadata) String() string { return proto.CompactTextString(m) } func (*AddClusterShardMetadata) ProtoMessage() {} func (*AddClusterShardMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{38} + return fileDescriptor_abf45d3bff6c2a2e, []int{39} } func (m *AddClusterShardMetadata) XXX_Unmarshal(b []byte) error { @@ -2252,7 +2391,7 @@ func (m *UpdateClusterShardRequest) Reset() { *m = UpdateClusterShardReq func (m *UpdateClusterShardRequest) String() string { return proto.CompactTextString(m) } func (*UpdateClusterShardRequest) ProtoMessage() {} func (*UpdateClusterShardRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{39} + return fileDescriptor_abf45d3bff6c2a2e, []int{40} } func (m *UpdateClusterShardRequest) XXX_Unmarshal(b []byte) error { @@ -2315,7 +2454,7 @@ func (m *UpdateClusterShardMetadata) Reset() { *m = UpdateClusterShardMe func (m *UpdateClusterShardMetadata) String() string { return proto.CompactTextString(m) } func (*UpdateClusterShardMetadata) ProtoMessage() {} func (*UpdateClusterShardMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{40} + return fileDescriptor_abf45d3bff6c2a2e, []int{41} } func (m *UpdateClusterShardMetadata) XXX_Unmarshal(b []byte) error { @@ -2366,7 +2505,7 @@ func (m *DeleteClusterShardRequest) Reset() { *m = DeleteClusterShardReq func (m *DeleteClusterShardRequest) String() string { return proto.CompactTextString(m) } func (*DeleteClusterShardRequest) ProtoMessage() {} func (*DeleteClusterShardRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{41} + return fileDescriptor_abf45d3bff6c2a2e, []int{42} } func (m *DeleteClusterShardRequest) XXX_Unmarshal(b []byte) error { @@ -2415,7 +2554,7 @@ func (m *DeleteClusterShardMetadata) Reset() { *m = DeleteClusterShardMe func (m *DeleteClusterShardMetadata) String() string { return proto.CompactTextString(m) } func (*DeleteClusterShardMetadata) ProtoMessage() {} func (*DeleteClusterShardMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{42} + return fileDescriptor_abf45d3bff6c2a2e, []int{43} } func (m *DeleteClusterShardMetadata) XXX_Unmarshal(b []byte) error { @@ -2450,6 +2589,509 @@ func (m *DeleteClusterShardMetadata) GetShardName() string { return "" } +type GetClusterShardGroupRequest struct { + // ID of the cluster that the shard group belongs to. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Name of the shard group to request information about. + // To get the name of a shard group , use a [ClusterService.ListShardGroups] request. + ShardGroupName string `protobuf:"bytes,2,opt,name=shard_group_name,json=shardGroupName,proto3" json:"shard_group_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetClusterShardGroupRequest) Reset() { *m = GetClusterShardGroupRequest{} } +func (m *GetClusterShardGroupRequest) String() string { return proto.CompactTextString(m) } +func (*GetClusterShardGroupRequest) ProtoMessage() {} +func (*GetClusterShardGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_abf45d3bff6c2a2e, []int{44} +} + +func (m *GetClusterShardGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetClusterShardGroupRequest.Unmarshal(m, b) +} +func (m *GetClusterShardGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetClusterShardGroupRequest.Marshal(b, m, deterministic) +} +func (m *GetClusterShardGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetClusterShardGroupRequest.Merge(m, src) +} +func (m *GetClusterShardGroupRequest) XXX_Size() int { + return xxx_messageInfo_GetClusterShardGroupRequest.Size(m) +} +func (m *GetClusterShardGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetClusterShardGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetClusterShardGroupRequest proto.InternalMessageInfo + +func (m *GetClusterShardGroupRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *GetClusterShardGroupRequest) GetShardGroupName() string { + if m != nil { + return m.ShardGroupName + } + return "" +} + +type ListClusterShardGroupsRequest struct { + // ID of the cluster that the shard group belongs to. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than [page_size], the service returns a [ListClusterShardGroupsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set [page_token] to the [ListClusterShardGroupsResponse.next_page_token] + // returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListClusterShardGroupsRequest) Reset() { *m = ListClusterShardGroupsRequest{} } +func (m *ListClusterShardGroupsRequest) String() string { return proto.CompactTextString(m) } +func (*ListClusterShardGroupsRequest) ProtoMessage() {} +func (*ListClusterShardGroupsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_abf45d3bff6c2a2e, []int{45} +} + +func (m *ListClusterShardGroupsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListClusterShardGroupsRequest.Unmarshal(m, b) +} +func (m *ListClusterShardGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListClusterShardGroupsRequest.Marshal(b, m, deterministic) +} +func (m *ListClusterShardGroupsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListClusterShardGroupsRequest.Merge(m, src) +} +func (m *ListClusterShardGroupsRequest) XXX_Size() int { + return xxx_messageInfo_ListClusterShardGroupsRequest.Size(m) +} +func (m *ListClusterShardGroupsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListClusterShardGroupsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListClusterShardGroupsRequest proto.InternalMessageInfo + +func (m *ListClusterShardGroupsRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *ListClusterShardGroupsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListClusterShardGroupsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListClusterShardGroupsResponse struct { + // List of ClickHouse Cluster shard groups. + ShardGroups []*ShardGroup `protobuf:"bytes,1,rep,name=shard_groups,json=shardGroups,proto3" json:"shard_groups,omitempty"` + // This token allows you to get the next page of results for list requests. If the number of results + // is larger than [ListClusterShardGroupsRequest.page_size], use the [next_page_token] as the value + // for the [ListClusterShardGroupsRequest.page_token] parameter in the next list request. Each subsequent + // list request will have its own [next_page_token] to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListClusterShardGroupsResponse) Reset() { *m = ListClusterShardGroupsResponse{} } +func (m *ListClusterShardGroupsResponse) String() string { return proto.CompactTextString(m) } +func (*ListClusterShardGroupsResponse) ProtoMessage() {} +func (*ListClusterShardGroupsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_abf45d3bff6c2a2e, []int{46} +} + +func (m *ListClusterShardGroupsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListClusterShardGroupsResponse.Unmarshal(m, b) +} +func (m *ListClusterShardGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListClusterShardGroupsResponse.Marshal(b, m, deterministic) +} +func (m *ListClusterShardGroupsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListClusterShardGroupsResponse.Merge(m, src) +} +func (m *ListClusterShardGroupsResponse) XXX_Size() int { + return xxx_messageInfo_ListClusterShardGroupsResponse.Size(m) +} +func (m *ListClusterShardGroupsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListClusterShardGroupsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListClusterShardGroupsResponse proto.InternalMessageInfo + +func (m *ListClusterShardGroupsResponse) GetShardGroups() []*ShardGroup { + if m != nil { + return m.ShardGroups + } + return nil +} + +func (m *ListClusterShardGroupsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type CreateClusterShardGroupRequest struct { + // ID of the ClickHouse cluster to add a shard group to. + // To get the ClickHouse cluster ID, use a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Name for the new shard group. + ShardGroupName string `protobuf:"bytes,2,opt,name=shard_group_name,json=shardGroupName,proto3" json:"shard_group_name,omitempty"` + // Description of the ClickHouse cluster shard group. 0-256 characters long. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // List of shard names that belongs to the new group. + ShardNames []string `protobuf:"bytes,4,rep,name=shard_names,json=shardNames,proto3" json:"shard_names,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateClusterShardGroupRequest) Reset() { *m = CreateClusterShardGroupRequest{} } +func (m *CreateClusterShardGroupRequest) String() string { return proto.CompactTextString(m) } +func (*CreateClusterShardGroupRequest) ProtoMessage() {} +func (*CreateClusterShardGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_abf45d3bff6c2a2e, []int{47} +} + +func (m *CreateClusterShardGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateClusterShardGroupRequest.Unmarshal(m, b) +} +func (m *CreateClusterShardGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateClusterShardGroupRequest.Marshal(b, m, deterministic) +} +func (m *CreateClusterShardGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateClusterShardGroupRequest.Merge(m, src) +} +func (m *CreateClusterShardGroupRequest) XXX_Size() int { + return xxx_messageInfo_CreateClusterShardGroupRequest.Size(m) +} +func (m *CreateClusterShardGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateClusterShardGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateClusterShardGroupRequest proto.InternalMessageInfo + +func (m *CreateClusterShardGroupRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *CreateClusterShardGroupRequest) GetShardGroupName() string { + if m != nil { + return m.ShardGroupName + } + return "" +} + +func (m *CreateClusterShardGroupRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *CreateClusterShardGroupRequest) GetShardNames() []string { + if m != nil { + return m.ShardNames + } + return nil +} + +type CreateClusterShardGroupMetadata struct { + // ID of the ClickHouse cluster to add a shard group to. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Name for the new shard group. + ShardGroupName string `protobuf:"bytes,2,opt,name=shard_group_name,json=shardGroupName,proto3" json:"shard_group_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateClusterShardGroupMetadata) Reset() { *m = CreateClusterShardGroupMetadata{} } +func (m *CreateClusterShardGroupMetadata) String() string { return proto.CompactTextString(m) } +func (*CreateClusterShardGroupMetadata) ProtoMessage() {} +func (*CreateClusterShardGroupMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_abf45d3bff6c2a2e, []int{48} +} + +func (m *CreateClusterShardGroupMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateClusterShardGroupMetadata.Unmarshal(m, b) +} +func (m *CreateClusterShardGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateClusterShardGroupMetadata.Marshal(b, m, deterministic) +} +func (m *CreateClusterShardGroupMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateClusterShardGroupMetadata.Merge(m, src) +} +func (m *CreateClusterShardGroupMetadata) XXX_Size() int { + return xxx_messageInfo_CreateClusterShardGroupMetadata.Size(m) +} +func (m *CreateClusterShardGroupMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CreateClusterShardGroupMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateClusterShardGroupMetadata proto.InternalMessageInfo + +func (m *CreateClusterShardGroupMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *CreateClusterShardGroupMetadata) GetShardGroupName() string { + if m != nil { + return m.ShardGroupName + } + return "" +} + +type UpdateClusterShardGroupRequest struct { + // ID of the cluster that contains the shard group being updated. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Name of the shard group that should be updated. + ShardGroupName string `protobuf:"bytes,2,opt,name=shard_group_name,json=shardGroupName,proto3" json:"shard_group_name,omitempty"` + // Field mask that specifies which attributes of the ClickHouse shard group should be updated. + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // Description of the ClickHouse cluster shard group. 0-256 characters long. + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + // Updated list of shard names that belongs to the new group. + ShardNames []string `protobuf:"bytes,5,rep,name=shard_names,json=shardNames,proto3" json:"shard_names,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateClusterShardGroupRequest) Reset() { *m = UpdateClusterShardGroupRequest{} } +func (m *UpdateClusterShardGroupRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateClusterShardGroupRequest) ProtoMessage() {} +func (*UpdateClusterShardGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_abf45d3bff6c2a2e, []int{49} +} + +func (m *UpdateClusterShardGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateClusterShardGroupRequest.Unmarshal(m, b) +} +func (m *UpdateClusterShardGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateClusterShardGroupRequest.Marshal(b, m, deterministic) +} +func (m *UpdateClusterShardGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateClusterShardGroupRequest.Merge(m, src) +} +func (m *UpdateClusterShardGroupRequest) XXX_Size() int { + return xxx_messageInfo_UpdateClusterShardGroupRequest.Size(m) +} +func (m *UpdateClusterShardGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateClusterShardGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateClusterShardGroupRequest proto.InternalMessageInfo + +func (m *UpdateClusterShardGroupRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *UpdateClusterShardGroupRequest) GetShardGroupName() string { + if m != nil { + return m.ShardGroupName + } + return "" +} + +func (m *UpdateClusterShardGroupRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdateClusterShardGroupRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *UpdateClusterShardGroupRequest) GetShardNames() []string { + if m != nil { + return m.ShardNames + } + return nil +} + +type UpdateClusterShardGroupMetadata struct { + // ID of the cluster that contains the shard group being updated. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Name of the shard group that should be updated. + ShardGroupName string `protobuf:"bytes,2,opt,name=shard_group_name,json=shardGroupName,proto3" json:"shard_group_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateClusterShardGroupMetadata) Reset() { *m = UpdateClusterShardGroupMetadata{} } +func (m *UpdateClusterShardGroupMetadata) String() string { return proto.CompactTextString(m) } +func (*UpdateClusterShardGroupMetadata) ProtoMessage() {} +func (*UpdateClusterShardGroupMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_abf45d3bff6c2a2e, []int{50} +} + +func (m *UpdateClusterShardGroupMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateClusterShardGroupMetadata.Unmarshal(m, b) +} +func (m *UpdateClusterShardGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateClusterShardGroupMetadata.Marshal(b, m, deterministic) +} +func (m *UpdateClusterShardGroupMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateClusterShardGroupMetadata.Merge(m, src) +} +func (m *UpdateClusterShardGroupMetadata) XXX_Size() int { + return xxx_messageInfo_UpdateClusterShardGroupMetadata.Size(m) +} +func (m *UpdateClusterShardGroupMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateClusterShardGroupMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateClusterShardGroupMetadata proto.InternalMessageInfo + +func (m *UpdateClusterShardGroupMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *UpdateClusterShardGroupMetadata) GetShardGroupName() string { + if m != nil { + return m.ShardGroupName + } + return "" +} + +type DeleteClusterShardGroupRequest struct { + // ID of the ClickHouse cluster the shard group belongs to. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Name of the shard group that should be deleted. + ShardGroupName string `protobuf:"bytes,2,opt,name=shard_group_name,json=shardGroupName,proto3" json:"shard_group_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteClusterShardGroupRequest) Reset() { *m = DeleteClusterShardGroupRequest{} } +func (m *DeleteClusterShardGroupRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteClusterShardGroupRequest) ProtoMessage() {} +func (*DeleteClusterShardGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_abf45d3bff6c2a2e, []int{51} +} + +func (m *DeleteClusterShardGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteClusterShardGroupRequest.Unmarshal(m, b) +} +func (m *DeleteClusterShardGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteClusterShardGroupRequest.Marshal(b, m, deterministic) +} +func (m *DeleteClusterShardGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteClusterShardGroupRequest.Merge(m, src) +} +func (m *DeleteClusterShardGroupRequest) XXX_Size() int { + return xxx_messageInfo_DeleteClusterShardGroupRequest.Size(m) +} +func (m *DeleteClusterShardGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteClusterShardGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteClusterShardGroupRequest proto.InternalMessageInfo + +func (m *DeleteClusterShardGroupRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *DeleteClusterShardGroupRequest) GetShardGroupName() string { + if m != nil { + return m.ShardGroupName + } + return "" +} + +type DeleteClusterShardGroupMetadata struct { + // ID of the ClickHouse cluster the shard group belongs to. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Name of the shard group that should be deleted. + ShardGroupName string `protobuf:"bytes,2,opt,name=shard_group_name,json=shardGroupName,proto3" json:"shard_group_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteClusterShardGroupMetadata) Reset() { *m = DeleteClusterShardGroupMetadata{} } +func (m *DeleteClusterShardGroupMetadata) String() string { return proto.CompactTextString(m) } +func (*DeleteClusterShardGroupMetadata) ProtoMessage() {} +func (*DeleteClusterShardGroupMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_abf45d3bff6c2a2e, []int{52} +} + +func (m *DeleteClusterShardGroupMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteClusterShardGroupMetadata.Unmarshal(m, b) +} +func (m *DeleteClusterShardGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteClusterShardGroupMetadata.Marshal(b, m, deterministic) +} +func (m *DeleteClusterShardGroupMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteClusterShardGroupMetadata.Merge(m, src) +} +func (m *DeleteClusterShardGroupMetadata) XXX_Size() int { + return xxx_messageInfo_DeleteClusterShardGroupMetadata.Size(m) +} +func (m *DeleteClusterShardGroupMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteClusterShardGroupMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteClusterShardGroupMetadata proto.InternalMessageInfo + +func (m *DeleteClusterShardGroupMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *DeleteClusterShardGroupMetadata) GetShardGroupName() string { + if m != nil { + return m.ShardGroupName + } + return "" +} + type CreateClusterExternalDictionaryRequest struct { // ID of the ClickHouse cluster to create the external dictionary for. // To get the cluster ID, use a [ClusterService.List] request. @@ -2467,7 +3109,7 @@ func (m *CreateClusterExternalDictionaryRequest) Reset() { func (m *CreateClusterExternalDictionaryRequest) String() string { return proto.CompactTextString(m) } func (*CreateClusterExternalDictionaryRequest) ProtoMessage() {} func (*CreateClusterExternalDictionaryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{43} + return fileDescriptor_abf45d3bff6c2a2e, []int{53} } func (m *CreateClusterExternalDictionaryRequest) XXX_Unmarshal(b []byte) error { @@ -2516,7 +3158,7 @@ func (m *CreateClusterExternalDictionaryMetadata) Reset() { func (m *CreateClusterExternalDictionaryMetadata) String() string { return proto.CompactTextString(m) } func (*CreateClusterExternalDictionaryMetadata) ProtoMessage() {} func (*CreateClusterExternalDictionaryMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{44} + return fileDescriptor_abf45d3bff6c2a2e, []int{54} } func (m *CreateClusterExternalDictionaryMetadata) XXX_Unmarshal(b []byte) error { @@ -2561,7 +3203,7 @@ func (m *DeleteClusterExternalDictionaryRequest) Reset() { func (m *DeleteClusterExternalDictionaryRequest) String() string { return proto.CompactTextString(m) } func (*DeleteClusterExternalDictionaryRequest) ProtoMessage() {} func (*DeleteClusterExternalDictionaryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{45} + return fileDescriptor_abf45d3bff6c2a2e, []int{55} } func (m *DeleteClusterExternalDictionaryRequest) XXX_Unmarshal(b []byte) error { @@ -2610,7 +3252,7 @@ func (m *DeleteClusterExternalDictionaryMetadata) Reset() { func (m *DeleteClusterExternalDictionaryMetadata) String() string { return proto.CompactTextString(m) } func (*DeleteClusterExternalDictionaryMetadata) ProtoMessage() {} func (*DeleteClusterExternalDictionaryMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{46} + return fileDescriptor_abf45d3bff6c2a2e, []int{56} } func (m *DeleteClusterExternalDictionaryMetadata) XXX_Unmarshal(b []byte) error { @@ -2668,7 +3310,7 @@ func (m *HostSpec) Reset() { *m = HostSpec{} } func (m *HostSpec) String() string { return proto.CompactTextString(m) } func (*HostSpec) ProtoMessage() {} func (*HostSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{47} + return fileDescriptor_abf45d3bff6c2a2e, []int{57} } func (m *HostSpec) XXX_Unmarshal(b []byte) error { @@ -2744,7 +3386,7 @@ func (m *ConfigSpec) Reset() { *m = ConfigSpec{} } func (m *ConfigSpec) String() string { return proto.CompactTextString(m) } func (*ConfigSpec) ProtoMessage() {} func (*ConfigSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{48} + return fileDescriptor_abf45d3bff6c2a2e, []int{58} } func (m *ConfigSpec) XXX_Unmarshal(b []byte) error { @@ -2814,7 +3456,7 @@ func (m *ConfigSpec_Clickhouse) Reset() { *m = ConfigSpec_Clickhouse{} } func (m *ConfigSpec_Clickhouse) String() string { return proto.CompactTextString(m) } func (*ConfigSpec_Clickhouse) ProtoMessage() {} func (*ConfigSpec_Clickhouse) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{48, 0} + return fileDescriptor_abf45d3bff6c2a2e, []int{58, 0} } func (m *ConfigSpec_Clickhouse) XXX_Unmarshal(b []byte) error { @@ -2862,7 +3504,7 @@ func (m *ConfigSpec_Zookeeper) Reset() { *m = ConfigSpec_Zookeeper{} } func (m *ConfigSpec_Zookeeper) String() string { return proto.CompactTextString(m) } func (*ConfigSpec_Zookeeper) ProtoMessage() {} func (*ConfigSpec_Zookeeper) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{48, 1} + return fileDescriptor_abf45d3bff6c2a2e, []int{58, 1} } func (m *ConfigSpec_Zookeeper) XXX_Unmarshal(b []byte) error { @@ -2902,7 +3544,7 @@ func (m *ShardConfigSpec) Reset() { *m = ShardConfigSpec{} } func (m *ShardConfigSpec) String() string { return proto.CompactTextString(m) } func (*ShardConfigSpec) ProtoMessage() {} func (*ShardConfigSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{49} + return fileDescriptor_abf45d3bff6c2a2e, []int{59} } func (m *ShardConfigSpec) XXX_Unmarshal(b []byte) error { @@ -2947,7 +3589,7 @@ func (m *ShardConfigSpec_Clickhouse) Reset() { *m = ShardConfigSpec_Clic func (m *ShardConfigSpec_Clickhouse) String() string { return proto.CompactTextString(m) } func (*ShardConfigSpec_Clickhouse) ProtoMessage() {} func (*ShardConfigSpec_Clickhouse) Descriptor() ([]byte, []int) { - return fileDescriptor_abf45d3bff6c2a2e, []int{49, 0} + return fileDescriptor_abf45d3bff6c2a2e, []int{59, 0} } func (m *ShardConfigSpec_Clickhouse) XXX_Unmarshal(b []byte) error { @@ -2991,6 +3633,7 @@ func (m *ShardConfigSpec_Clickhouse) GetWeight() *wrappers.Int64Value { func init() { proto.RegisterEnum("yandex.cloud.mdb.clickhouse.v1.ListClusterLogsRequest_ServiceType", ListClusterLogsRequest_ServiceType_name, ListClusterLogsRequest_ServiceType_value) + proto.RegisterEnum("yandex.cloud.mdb.clickhouse.v1.StreamClusterLogsRequest_ServiceType", StreamClusterLogsRequest_ServiceType_name, StreamClusterLogsRequest_ServiceType_value) proto.RegisterType((*GetClusterRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.GetClusterRequest") proto.RegisterType((*ListClustersRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.ListClustersRequest") proto.RegisterType((*ListClustersResponse)(nil), "yandex.cloud.mdb.clickhouse.v1.ListClustersResponse") @@ -3020,6 +3663,7 @@ func init() { proto.RegisterType((*ListClusterLogsRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.ListClusterLogsRequest") proto.RegisterType((*ListClusterLogsResponse)(nil), "yandex.cloud.mdb.clickhouse.v1.ListClusterLogsResponse") proto.RegisterType((*ListClusterOperationsRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.ListClusterOperationsRequest") + proto.RegisterType((*StreamClusterLogsRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.StreamClusterLogsRequest") proto.RegisterType((*ListClusterOperationsResponse)(nil), "yandex.cloud.mdb.clickhouse.v1.ListClusterOperationsResponse") proto.RegisterType((*ListClusterBackupsRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.ListClusterBackupsRequest") proto.RegisterType((*ListClusterBackupsResponse)(nil), "yandex.cloud.mdb.clickhouse.v1.ListClusterBackupsResponse") @@ -3038,6 +3682,15 @@ func init() { proto.RegisterType((*UpdateClusterShardMetadata)(nil), "yandex.cloud.mdb.clickhouse.v1.UpdateClusterShardMetadata") proto.RegisterType((*DeleteClusterShardRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.DeleteClusterShardRequest") proto.RegisterType((*DeleteClusterShardMetadata)(nil), "yandex.cloud.mdb.clickhouse.v1.DeleteClusterShardMetadata") + proto.RegisterType((*GetClusterShardGroupRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.GetClusterShardGroupRequest") + proto.RegisterType((*ListClusterShardGroupsRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.ListClusterShardGroupsRequest") + proto.RegisterType((*ListClusterShardGroupsResponse)(nil), "yandex.cloud.mdb.clickhouse.v1.ListClusterShardGroupsResponse") + proto.RegisterType((*CreateClusterShardGroupRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.CreateClusterShardGroupRequest") + proto.RegisterType((*CreateClusterShardGroupMetadata)(nil), "yandex.cloud.mdb.clickhouse.v1.CreateClusterShardGroupMetadata") + proto.RegisterType((*UpdateClusterShardGroupRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.UpdateClusterShardGroupRequest") + proto.RegisterType((*UpdateClusterShardGroupMetadata)(nil), "yandex.cloud.mdb.clickhouse.v1.UpdateClusterShardGroupMetadata") + proto.RegisterType((*DeleteClusterShardGroupRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.DeleteClusterShardGroupRequest") + proto.RegisterType((*DeleteClusterShardGroupMetadata)(nil), "yandex.cloud.mdb.clickhouse.v1.DeleteClusterShardGroupMetadata") proto.RegisterType((*CreateClusterExternalDictionaryRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.CreateClusterExternalDictionaryRequest") proto.RegisterType((*CreateClusterExternalDictionaryMetadata)(nil), "yandex.cloud.mdb.clickhouse.v1.CreateClusterExternalDictionaryMetadata") proto.RegisterType((*DeleteClusterExternalDictionaryRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.DeleteClusterExternalDictionaryRequest") @@ -3055,203 +3708,230 @@ func init() { } var fileDescriptor_abf45d3bff6c2a2e = []byte{ - // 2984 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5b, 0x4d, 0x6c, 0x1b, 0xc7, - 0xf5, 0xff, 0x8f, 0x44, 0x51, 0xe4, 0xa3, 0xa3, 0x38, 0xe3, 0x8f, 0x30, 0x74, 0xec, 0xc8, 0x9b, - 0x44, 0x96, 0x19, 0x8b, 0x14, 0x29, 0x59, 0xb6, 0xe4, 0x8f, 0x58, 0x92, 0x25, 0x5b, 0x89, 0xbf, - 0xfe, 0x2b, 0x3b, 0x41, 0x6d, 0xb8, 0xc4, 0x8a, 0x3b, 0xa2, 0x08, 0x91, 0xbb, 0xec, 0xee, 0x52, - 0xb6, 0x1c, 0xa4, 0x0d, 0x9c, 0x22, 0x05, 0x7c, 0x68, 0x8b, 0x16, 0x48, 0x91, 0x14, 0xe8, 0xb1, - 0x3d, 0x57, 0x05, 0x5a, 0x20, 0x68, 0x73, 0x08, 0x0a, 0x58, 0x45, 0x81, 0x16, 0x55, 0x2e, 0x05, - 0x82, 0xa2, 0x97, 0x1c, 0x7a, 0x28, 0x7a, 0xc8, 0xb1, 0x87, 0xa2, 0x98, 0x8f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b, 0x15, 0x8b, 0x18, 0xc9, 0x08, 0xdb, 0x05, - 0x8f, 0x36, 0x1b, 0xfc, 0xc4, 0x17, 0xe9, 0x5d, 0x04, 0xfb, 0xdd, 0x92, 0x9b, 0x35, 0x5d, 0x33, - 0x09, 0x9e, 0x85, 0x98, 0xc0, 0x67, 0x26, 0xd1, 0x60, 0xef, 0x70, 0x22, 0x7f, 0x2c, 0xb3, 0xbd, - 0xef, 0x64, 0x6c, 0x0d, 0x36, 0x08, 0xf1, 0x10, 0x3c, 0xad, 0x91, 0xfb, 0x56, 0xc1, 0x21, 0x30, - 0x85, 0x16, 0x97, 0x9f, 0xa2, 0xcb, 0x37, 0x6c, 0x49, 0xa5, 0xef, 0xf7, 0xc3, 0xfe, 0x59, 0x83, - 0x28, 0x16, 0x69, 0xb9, 0x85, 0x10, 0x0a, 0xcc, 0x43, 0x44, 0x53, 0xaa, 0x5c, 0x77, 0xf1, 0x99, - 0x23, 0x74, 0xd7, 0x17, 0x8f, 0x73, 0x03, 0x77, 0x94, 0x91, 0x07, 0xd3, 0x23, 0xb7, 0x47, 0x47, - 0x26, 0x0b, 0x23, 0x77, 0xd3, 0x9c, 0x6e, 0x62, 0x4c, 0x66, 0x7b, 0xf1, 0x2b, 0x90, 0x50, 0x89, - 0x59, 0x34, 0xca, 0x35, 0x6a, 0xfb, 0x6e, 0x65, 0xe6, 0x4f, 0x4e, 0xc8, 0xce, 0xaf, 0xf8, 0x03, - 0x04, 0xd1, 0x8a, 0xb2, 0x44, 0x2a, 0x66, 0x32, 0xc2, 0x14, 0x72, 0xc1, 0x57, 0x21, 0x1e, 0x90, - 0x32, 0x57, 0x18, 0x8b, 0x39, 0xcd, 0x32, 0xd6, 0x67, 0x5e, 0xfd, 0xe2, 0x71, 0x2e, 0x71, 0x67, - 0xa4, 0x30, 0x3a, 0x32, 0xa9, 0x8c, 0x3c, 0xb8, 0x9b, 0x7e, 0xc8, 0xc5, 0x1b, 0xb7, 0xc5, 0xdc, - 0xd8,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x55, 0xb9, - 0xec, 0x13, 0xc1, 0x63, 0xad, 0x4b, 0xf4, 0x00, 0xce, 0xfc, 0xf6, 0xc6, 0x56, 0x7a, 0xb4, 0xf3, - 0xfc, 0x63, 0x9b, 0xfa, 0x63, 0x56, 0x3a, 0x1f, 0x1e, 0xd7, 0xd4, 0x92, 0x62, 0x15, 0x57, 0x78, - 0x81, 0x49, 0x5d, 0xfe, 0x1f, 0x08, 0x12, 0xbc, 0xf2, 0xe1, 0x48, 0x27, 0x43, 0x55, 0x59, 0x61, - 0xc1, 0xbe, 0x83, 0x36, 0xb6, 0xd2, 0x63, 0xdb, 0x8e, 0x46, 0xbe, 0x1c, 0xc0, 0xfc, 0x40, 0x0a, - 0xf8, 0x17, 0x08, 0x62, 0x97, 0x88, 0xc5, 0x1e, 0x87, 0xfe, 0xf7, 0xea, 0x3d, 0x66, 0x49, 0x05, - 0x9b, 0x17, 0x48, 0x97, 0x99, 0xd8, 0x33, 0xf8, 0x42, 0x28, 0xb1, 0xf9, 0x90, 0x21, 0xfb, 0x56, - 0xb3, 0x37, 0xc3, 0x6a, 0x47, 0xa0, 0x66, 0xce, 0xe7, 0x18, 0x38, 0x8c, 0x4b, 0xb8, 0xe6, 0x32, - 0xa9, 0xc9, 0x2e, 0x28, 0x85, 0x37, 0x9d, 0xe1, 0x99, 0x11, 0x8f, 0x75, 0x81, 0x86, 0x16, 0xf2, - 0xd4, 0x9d, 0x02, 0xaa, 0xdd, 0x7b, 0x68, 0x12, 0xc4, 0xc2, 0x96, 0x58, 0x8a, 0xef, 0x38, 0x4c, - 0xe8, 0x63, 0x3f, 0x19, 0x90, 0xd3, 0x52, 0x37, 0x40, 0xa8, 0x09, 0xfd, 0x15, 0x41, 0x82, 0x3f, - 0x77, 0x38, 0x9c, 0xc9, 0x50, 0x4f, 0xab, 0xb0, 0x88, 0x8c, 0x8d, 0xad, 0xf4, 0x8b, 0xdb, 0x36, - 0xeb, 0x1d, 0xa0, 0xe6, 0xf2, 0x3b, 0xb6, 0x35, 0x8a, 0xf0, 0xef, 0x8d, 0xa8, 0x10, 0x10, 0x61, - 0xc7, 0x6e, 0x7f, 0x10, 0x84, 0xdf, 0xf2, 0x08, 0x0a, 0x6e, 0x84, 0xdb, 0x04, 0x85, 0x99, 0xf4, - 0xce, 0xbd, 0xeb, 0xbb, 0x3d, 0x90, 0xe4, 0x21, 0xb1, 0xbd, 0x25, 0x8c, 0xe7, 0x43, 0x3d, 0xf6, - 0x3b, 0x36, 0xb9, 0x83, 0x28, 0xe2, 0x3d, 0x1a, 0x1e, 0xf3, 0xc1, 0x3b, 0xf0, 0xae, 0x52, 0xef, - 0x35, 0x69, 0x2e, 0x54, 0xe1, 0x54, 0xec, 0x00, 0x98, 0xde, 0x3f, 0x55, 0x08, 0xbf, 0x8e, 0x6e, - 0x14, 0x12, 0xac, 0xeb, 0x1f, 0x46, 0x21, 0x41, 0xdb, 0xf6, 0x3b, 0x52, 0x88, 0xda, 0x01, 0xf0, - 0x14, 0x4a, 0xcf, 0x5c, 0xbf, 0x7d, 0xb5, 0x54, 0xb6, 0x56, 0xea, 0x4b, 0x99, 0xa2, 0x5e, 0xcd, - 0x72, 0xb9, 0x47, 0xf8, 0x7f, 0x5d, 0x2b, 0xe9, 0x23, 0x25, 0xa2, 0x31, 0xcb, 0xcc, 0x6e, 0xff, - 0x7f, 0xda, 0xce, 0x34, 0x7f, 0x2d, 0x45, 0x19, 0xc1, 0xd8, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, - 0x34, 0xb5, 0xb8, 0xae, 0x19, 0x39, 0x00, 0x00, + // 3420 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5c, 0x4d, 0x6c, 0x1b, 0xc7, + 0xf5, 0xff, 0x8f, 0x3e, 0x28, 0xf1, 0xd1, 0x96, 0x95, 0xf1, 0x47, 0x18, 0x3a, 0x96, 0xe5, 0x4d, + 0x62, 0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, 0x20, 0xa7, 0xa1, 0xa3, 0xa8, 0xe5, 0xad, 0x37, 0x90, 0xa3, 0x81, 0x0d, + 0x4f, 0x66, 0x64, 0x81, 0x5f, 0x40, 0xbe, 0x87, 0xe0, 0x69, 0x87, 0x08, 0x57, 0xac, 0xe7, 0xba, + 0xd6, 0x4c, 0x6b, 0xfb, 0x1f, 0x93, 0xa4, 0x37, 0xda, 0x21, 0xbe, 0x60, 0xea, 0x44, 0x29, 0x7d, + 0x29, 0x76, 0x9f, 0xf7, 0xb4, 0xfb, 0x73, 0x7e, 0xea, 0x6f, 0x26, 0xe1, 0x63, 0x62, 0xf9, 0x5b, + 0x33, 0xd3, 0xfb, 0x08, 0x0e, 0x34, 0xb1, 0x11, 0x61, 0xac, 0x53, 0x00, 0xb5, 0x87, 0x5e, 0xcb, + 0x64, 0x0f, 0xb9, 0x75, 0x66, 0x3f, 0x04, 0xd7, 0xe8, 0x65, 0x07, 0x51, 0x60, 0x83, 0xfd, 0x10, + 0xc1, 0x53, 0x0e, 0x61, 0x78, 0xba, 0xf5, 0xd8, 0x58, 0xeb, 0x5b, 0x08, 0x12, 0x5e, 0xd2, 0x09, + 0x3d, 0x9d, 0x85, 0x2e, 0x7e, 0x48, 0x59, 0x4a, 0x3a, 0xec, 0x67, 0x58, 0x9c, 0x83, 0x6c, 0x91, + 0x05, 0x56, 0xd3, 0xfb, 0xee, 0xd0, 0x42, 0x13, 0x88, 0xc7, 0x46, 0x49, 0x5f, 0x87, 0x78, 0xa3, + 0x68, 0x42, 0x43, 0x93, 0xd0, 0x49, 0x53, 0x1b, 0x4b, 0x3f, 0xcf, 0x06, 0xc9, 0x8c, 0x64, 0x4e, + 0x12, 0x58, 0x37, 0xef, 0x22, 0xd8, 0x67, 0xdf, 0x14, 0x5a, 0x57, 0x8d, 0x3b, 0x95, 0x6b, 0xdb, + 0x72, 0x2a, 0x27, 0xbd, 0x02, 0x4f, 0xd6, 0xc9, 0x15, 0x34, 0x1d, 0x3a, 0x20, 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d8, 0xb1, 0xec, 0x60, 0x84, 0x65, 0x88, 0xde, 0xb5, 0x2a, 0x92, 0xc2, 0x33, 0x46, 0x43, 0x70, + 0xb5, 0x4b, 0xb5, 0x36, 0x1b, 0x7c, 0x1e, 0x76, 0x8b, 0x12, 0xc8, 0xed, 0x42, 0x59, 0xd5, 0x6e, + 0x67, 0x0d, 0x53, 0xd1, 0x4d, 0x91, 0x13, 0xef, 0xb3, 0x22, 0x39, 0xdd, 0x0a, 0xf6, 0x20, 0x78, + 0x65, 0xe9, 0x9c, 0xb2, 0x26, 0x3f, 0xc1, 0x49, 0x5e, 0x61, 0x14, 0xac, 0xae, 0x8f, 0xcf, 0x40, + 0x44, 0xc9, 0xe5, 0x88, 0x61, 0x88, 0xf7, 0x44, 0xdf, 0x37, 0xa9, 0x29, 0x36, 0x5b, 0x16, 0x54, + 0x89, 0x1f, 0x20, 0x00, 0x1b, 0x36, 0xbe, 0x02, 0x11, 0xee, 0xd3, 0x42, 0x7b, 0x27, 0x5a, 0x8c, + 0x00, 0xb2, 0x60, 0xb3, 0x6d, 0x95, 0xe6, 0xc4, 0x35, 0x88, 0xd6, 0x14, 0xe9, 0xe6, 0x8a, 0x5a, + 0xe7, 0x2a, 0xfd, 0xba, 0x0d, 0x76, 0xd5, 0x5d, 0x30, 0xf0, 0x0d, 0x0f, 0x2b, 0x9a, 0x0c, 0x79, + 0x4b, 0x69, 0x62, 0x4a, 0x89, 0xcf, 0xfe, 0x43, 0xd4, 0x8d, 0x47, 0x20, 0x72, 0x9b, 0x14, 0xf2, + 0xcb, 0xa6, 0x48, 0x2e, 0xf6, 0x37, 0x24, 0x17, 0x73, 0x65, 0x73, 0x6c, 0xf4, 0x65, 0xa5, 0x58, + 0x25, 0xb2, 0x98, 0x3a, 0xfc, 0x61, 0x06, 0x7a, 0xac, 0xb3, 0x90, 0x3f, 0x58, 0xe3, 0xf7, 0x10, + 0xb4, 0x5f, 0x20, 0x26, 0xce, 0xf8, 0x49, 0xd1, 0xd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d7, 0x0d, 0xfa, 0x45, 0x69, 0x36, + 0xd4, 0x05, 0x2f, 0xd7, 0x04, 0x30, 0x35, 0x0d, 0xaa, 0x10, 0xbe, 0x3d, 0xad, 0x28, 0x24, 0x58, + 0x31, 0x35, 0x8c, 0x42, 0x82, 0x56, 0x43, 0xb7, 0xa4, 0x10, 0xb5, 0x09, 0xe0, 0x49, 0x94, 0x9c, + 0x36, 0x40, 0x72, 0x09, 0xab, 0x54, 0x0a, 0x8d, 0xc0, 0x6f, 0xcc, 0xe7, 0x0b, 0xe6, 0x72, 0x75, + 0x31, 0x95, 0xd3, 0x4a, 0x69, 0x3e, 0x7d, 0x90, 0xff, 0x6b, 0x90, 0xbc, 0x36, 0x98, 0x27, 0x65, + 0x66, 0xc8, 0xe9, 0xcd, 0xff, 0x67, 0xc8, 0x49, 0xfb, 0xd7, 0x62, 0x84, 0x11, 0x8c, 0xfc, 0x3b, + 0x00, 0x00, 0xff, 0xff, 0xe0, 0xe8, 0x84, 0x31, 0x79, 0x46, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // ClusterServiceClient is the client API for ClusterService service. // @@ -3283,8 +3963,9 @@ type ClusterServiceClient interface { // Creates a new ClickHouse cluster using the specified backup. Restore(ctx context.Context, in *RestoreClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Retrieves logs for the specified ClickHouse cluster. - // For more information about logs, see the [Logs](/docs/managed-clickhouse/concepts/logs) section of the documentation. ListLogs(ctx context.Context, in *ListClusterLogsRequest, opts ...grpc.CallOption) (*ListClusterLogsResponse, error) + // Same as ListLogs but using server-side streaming. Also allows for 'tail -f' semantics. + StreamLogs(ctx context.Context, in *StreamClusterLogsRequest, opts ...grpc.CallOption) (ClusterService_StreamLogsClient, error) // Retrieves the list of Operation resources for the specified cluster. ListOperations(ctx context.Context, in *ListClusterOperationsRequest, opts ...grpc.CallOption) (*ListClusterOperationsResponse, error) // Retrieves the list of available backups for the specified ClickHouse cluster. @@ -3305,6 +3986,16 @@ type ClusterServiceClient interface { UpdateShard(ctx context.Context, in *UpdateClusterShardRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Deletes the specified shard. DeleteShard(ctx context.Context, in *DeleteClusterShardRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Returns the specified shard group. + GetShardGroup(ctx context.Context, in *GetClusterShardGroupRequest, opts ...grpc.CallOption) (*ShardGroup, error) + // Retrieves a list of shard groups that belong to specified cluster. + ListShardGroups(ctx context.Context, in *ListClusterShardGroupsRequest, opts ...grpc.CallOption) (*ListClusterShardGroupsResponse, error) + // Creates a new shard group in the specified cluster. + CreateShardGroup(ctx context.Context, in *CreateClusterShardGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Modifies the specified shard group. + UpdateShardGroup(ctx context.Context, in *UpdateClusterShardGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Deletes the specified shard group. + DeleteShardGroup(ctx context.Context, in *DeleteClusterShardGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Creates an external dictionary for the specified ClickHouse cluster. CreateExternalDictionary(ctx context.Context, in *CreateClusterExternalDictionaryRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Deletes the specified external dictionary. @@ -3312,10 +4003,10 @@ type ClusterServiceClient interface { } type clusterServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewClusterServiceClient(cc *grpc.ClientConn) ClusterServiceClient { +func NewClusterServiceClient(cc grpc.ClientConnInterface) ClusterServiceClient { return &clusterServiceClient{cc} } @@ -3427,6 +4118,38 @@ func (c *clusterServiceClient) ListLogs(ctx context.Context, in *ListClusterLogs return out, nil } +func (c *clusterServiceClient) StreamLogs(ctx context.Context, in *StreamClusterLogsRequest, opts ...grpc.CallOption) (ClusterService_StreamLogsClient, error) { + stream, err := c.cc.NewStream(ctx, &_ClusterService_serviceDesc.Streams[0], "/yandex.cloud.mdb.clickhouse.v1.ClusterService/StreamLogs", opts...) + if err != nil { + return nil, err + } + x := &clusterServiceStreamLogsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ClusterService_StreamLogsClient interface { + Recv() (*LogRecord, error) + grpc.ClientStream +} + +type clusterServiceStreamLogsClient struct { + grpc.ClientStream +} + +func (x *clusterServiceStreamLogsClient) Recv() (*LogRecord, error) { + m := new(LogRecord) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + func (c *clusterServiceClient) ListOperations(ctx context.Context, in *ListClusterOperationsRequest, opts ...grpc.CallOption) (*ListClusterOperationsResponse, error) { out := new(ListClusterOperationsResponse) err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.ClusterService/ListOperations", in, out, opts...) @@ -3517,6 +4240,51 @@ func (c *clusterServiceClient) DeleteShard(ctx context.Context, in *DeleteCluste return out, nil } +func (c *clusterServiceClient) GetShardGroup(ctx context.Context, in *GetClusterShardGroupRequest, opts ...grpc.CallOption) (*ShardGroup, error) { + out := new(ShardGroup) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.ClusterService/GetShardGroup", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) ListShardGroups(ctx context.Context, in *ListClusterShardGroupsRequest, opts ...grpc.CallOption) (*ListClusterShardGroupsResponse, error) { + out := new(ListClusterShardGroupsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.ClusterService/ListShardGroups", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) CreateShardGroup(ctx context.Context, in *CreateClusterShardGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.ClusterService/CreateShardGroup", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) UpdateShardGroup(ctx context.Context, in *UpdateClusterShardGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.ClusterService/UpdateShardGroup", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) DeleteShardGroup(ctx context.Context, in *DeleteClusterShardGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.ClusterService/DeleteShardGroup", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *clusterServiceClient) CreateExternalDictionary(ctx context.Context, in *CreateClusterExternalDictionaryRequest, opts ...grpc.CallOption) (*operation.Operation, error) { out := new(operation.Operation) err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.ClusterService/CreateExternalDictionary", in, out, opts...) @@ -3563,8 +4331,9 @@ type ClusterServiceServer interface { // Creates a new ClickHouse cluster using the specified backup. Restore(context.Context, *RestoreClusterRequest) (*operation.Operation, error) // Retrieves logs for the specified ClickHouse cluster. - // For more information about logs, see the [Logs](/docs/managed-clickhouse/concepts/logs) section of the documentation. ListLogs(context.Context, *ListClusterLogsRequest) (*ListClusterLogsResponse, error) + // Same as ListLogs but using server-side streaming. Also allows for 'tail -f' semantics. + StreamLogs(*StreamClusterLogsRequest, ClusterService_StreamLogsServer) error // Retrieves the list of Operation resources for the specified cluster. ListOperations(context.Context, *ListClusterOperationsRequest) (*ListClusterOperationsResponse, error) // Retrieves the list of available backups for the specified ClickHouse cluster. @@ -3585,6 +4354,16 @@ type ClusterServiceServer interface { UpdateShard(context.Context, *UpdateClusterShardRequest) (*operation.Operation, error) // Deletes the specified shard. DeleteShard(context.Context, *DeleteClusterShardRequest) (*operation.Operation, error) + // Returns the specified shard group. + GetShardGroup(context.Context, *GetClusterShardGroupRequest) (*ShardGroup, error) + // Retrieves a list of shard groups that belong to specified cluster. + ListShardGroups(context.Context, *ListClusterShardGroupsRequest) (*ListClusterShardGroupsResponse, error) + // Creates a new shard group in the specified cluster. + CreateShardGroup(context.Context, *CreateClusterShardGroupRequest) (*operation.Operation, error) + // Modifies the specified shard group. + UpdateShardGroup(context.Context, *UpdateClusterShardGroupRequest) (*operation.Operation, error) + // Deletes the specified shard group. + DeleteShardGroup(context.Context, *DeleteClusterShardGroupRequest) (*operation.Operation, error) // Creates an external dictionary for the specified ClickHouse cluster. CreateExternalDictionary(context.Context, *CreateClusterExternalDictionaryRequest) (*operation.Operation, error) // Deletes the specified external dictionary. @@ -3631,6 +4410,9 @@ func (*UnimplementedClusterServiceServer) Restore(ctx context.Context, req *Rest func (*UnimplementedClusterServiceServer) ListLogs(ctx context.Context, req *ListClusterLogsRequest) (*ListClusterLogsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListLogs not implemented") } +func (*UnimplementedClusterServiceServer) StreamLogs(req *StreamClusterLogsRequest, srv ClusterService_StreamLogsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamLogs not implemented") +} func (*UnimplementedClusterServiceServer) ListOperations(ctx context.Context, req *ListClusterOperationsRequest) (*ListClusterOperationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") } @@ -3661,6 +4443,21 @@ func (*UnimplementedClusterServiceServer) UpdateShard(ctx context.Context, req * func (*UnimplementedClusterServiceServer) DeleteShard(ctx context.Context, req *DeleteClusterShardRequest) (*operation.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteShard not implemented") } +func (*UnimplementedClusterServiceServer) GetShardGroup(ctx context.Context, req *GetClusterShardGroupRequest) (*ShardGroup, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetShardGroup not implemented") +} +func (*UnimplementedClusterServiceServer) ListShardGroups(ctx context.Context, req *ListClusterShardGroupsRequest) (*ListClusterShardGroupsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListShardGroups not implemented") +} +func (*UnimplementedClusterServiceServer) CreateShardGroup(ctx context.Context, req *CreateClusterShardGroupRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateShardGroup not implemented") +} +func (*UnimplementedClusterServiceServer) UpdateShardGroup(ctx context.Context, req *UpdateClusterShardGroupRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateShardGroup not implemented") +} +func (*UnimplementedClusterServiceServer) DeleteShardGroup(ctx context.Context, req *DeleteClusterShardGroupRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteShardGroup not implemented") +} func (*UnimplementedClusterServiceServer) CreateExternalDictionary(ctx context.Context, req *CreateClusterExternalDictionaryRequest) (*operation.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateExternalDictionary not implemented") } @@ -3888,6 +4685,27 @@ func _ClusterService_ListLogs_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _ClusterService_StreamLogs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(StreamClusterLogsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ClusterServiceServer).StreamLogs(m, &clusterServiceStreamLogsServer{stream}) +} + +type ClusterService_StreamLogsServer interface { + Send(*LogRecord) error + grpc.ServerStream +} + +type clusterServiceStreamLogsServer struct { + grpc.ServerStream +} + +func (x *clusterServiceStreamLogsServer) Send(m *LogRecord) error { + return x.ServerStream.SendMsg(m) +} + func _ClusterService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListClusterOperationsRequest) if err := dec(in); err != nil { @@ -4068,6 +4886,96 @@ func _ClusterService_DeleteShard_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } +func _ClusterService_GetShardGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetClusterShardGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).GetShardGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.clickhouse.v1.ClusterService/GetShardGroup", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).GetShardGroup(ctx, req.(*GetClusterShardGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_ListShardGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListClusterShardGroupsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).ListShardGroups(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.clickhouse.v1.ClusterService/ListShardGroups", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).ListShardGroups(ctx, req.(*ListClusterShardGroupsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_CreateShardGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateClusterShardGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).CreateShardGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.clickhouse.v1.ClusterService/CreateShardGroup", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).CreateShardGroup(ctx, req.(*CreateClusterShardGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_UpdateShardGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateClusterShardGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).UpdateShardGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.clickhouse.v1.ClusterService/UpdateShardGroup", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).UpdateShardGroup(ctx, req.(*UpdateClusterShardGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_DeleteShardGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteClusterShardGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).DeleteShardGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.clickhouse.v1.ClusterService/DeleteShardGroup", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).DeleteShardGroup(ctx, req.(*DeleteClusterShardGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _ClusterService_CreateExternalDictionary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateClusterExternalDictionaryRequest) if err := dec(in); err != nil { @@ -4196,6 +5104,26 @@ var _ClusterService_serviceDesc = grpc.ServiceDesc{ MethodName: "DeleteShard", Handler: _ClusterService_DeleteShard_Handler, }, + { + MethodName: "GetShardGroup", + Handler: _ClusterService_GetShardGroup_Handler, + }, + { + MethodName: "ListShardGroups", + Handler: _ClusterService_ListShardGroups_Handler, + }, + { + MethodName: "CreateShardGroup", + Handler: _ClusterService_CreateShardGroup_Handler, + }, + { + MethodName: "UpdateShardGroup", + Handler: _ClusterService_UpdateShardGroup_Handler, + }, + { + MethodName: "DeleteShardGroup", + Handler: _ClusterService_DeleteShardGroup_Handler, + }, { MethodName: "CreateExternalDictionary", Handler: _ClusterService_CreateExternalDictionary_Handler, @@ -4205,6 +5133,12 @@ var _ClusterService_serviceDesc = grpc.ServiceDesc{ Handler: _ClusterService_DeleteExternalDictionary_Handler, }, }, - Streams: []grpc.StreamDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamLogs", + Handler: _ClusterService_StreamLogs_Handler, + ServerStreams: true, + }, + }, Metadata: "yandex/cloud/mdb/clickhouse/v1/cluster_service.proto", } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/cluster_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/cluster_service.pbext.go new file mode 100644 index 000000000..91b301727 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/cluster_service.pbext.go @@ -0,0 +1,676 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package clickhouse + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + config "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/config" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + timeofday "google.golang.org/genproto/googleapis/type/timeofday" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClustersRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListClustersRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClustersRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClustersRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListClustersResponse) SetClusters(v []*Cluster) { + m.Clusters = v +} + +func (m *ListClustersResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateClusterRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateClusterRequest) SetEnvironment(v Cluster_Environment) { + m.Environment = v +} + +func (m *CreateClusterRequest) SetConfigSpec(v *ConfigSpec) { + m.ConfigSpec = v +} + +func (m *CreateClusterRequest) SetDatabaseSpecs(v []*DatabaseSpec) { + m.DatabaseSpecs = v +} + +func (m *CreateClusterRequest) SetUserSpecs(v []*UserSpec) { + m.UserSpecs = v +} + +func (m *CreateClusterRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *CreateClusterRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *CreateClusterRequest) SetShardName(v string) { + m.ShardName = v +} + +func (m *CreateClusterRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *CreateClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateClusterRequest) SetConfigSpec(v *ConfigSpec) { + m.ConfigSpec = v +} + +func (m *UpdateClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateClusterRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *UpdateClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StartClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StartClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StopClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StopClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *MoveClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *MoveClusterRequest) SetDestinationFolderId(v string) { + m.DestinationFolderId = v +} + +func (m *MoveClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *MoveClusterMetadata) SetSourceFolderId(v string) { + m.SourceFolderId = v +} + +func (m *MoveClusterMetadata) SetDestinationFolderId(v string) { + m.DestinationFolderId = v +} + +func (m *AddClusterZookeeperRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterZookeeperRequest) SetResources(v *Resources) { + m.Resources = v +} + +func (m *AddClusterZookeeperRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *AddClusterZookeeperMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *BackupClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *BackupClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RestoreClusterRequest) SetBackupId(v string) { + m.BackupId = v +} + +func (m *RestoreClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *RestoreClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *RestoreClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *RestoreClusterRequest) SetEnvironment(v Cluster_Environment) { + m.Environment = v +} + +func (m *RestoreClusterRequest) SetConfigSpec(v *ConfigSpec) { + m.ConfigSpec = v +} + +func (m *RestoreClusterRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *RestoreClusterRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *RestoreClusterRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *RestoreClusterRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *RestoreClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RestoreClusterMetadata) SetBackupId(v string) { + m.BackupId = v +} + +func (m *LogRecord) SetTimestamp(v *timestamp.Timestamp) { + m.Timestamp = v +} + +func (m *LogRecord) SetMessage(v map[string]string) { + m.Message = v +} + +func (m *ListClusterLogsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterLogsRequest) SetColumnFilter(v []string) { + m.ColumnFilter = v +} + +func (m *ListClusterLogsRequest) SetServiceType(v ListClusterLogsRequest_ServiceType) { + m.ServiceType = v +} + +func (m *ListClusterLogsRequest) SetFromTime(v *timestamp.Timestamp) { + m.FromTime = v +} + +func (m *ListClusterLogsRequest) SetToTime(v *timestamp.Timestamp) { + m.ToTime = v +} + +func (m *ListClusterLogsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterLogsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterLogsResponse) SetLogs(v []*LogRecord) { + m.Logs = v +} + +func (m *ListClusterLogsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListClusterOperationsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *StreamClusterLogsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StreamClusterLogsRequest) SetColumnFilter(v []string) { + m.ColumnFilter = v +} + +func (m *StreamClusterLogsRequest) SetServiceType(v StreamClusterLogsRequest_ServiceType) { + m.ServiceType = v +} + +func (m *StreamClusterLogsRequest) SetFromTime(v *timestamp.Timestamp) { + m.FromTime = v +} + +func (m *StreamClusterLogsRequest) SetToTime(v *timestamp.Timestamp) { + m.ToTime = v +} + +func (m *ListClusterOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListClusterOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListClusterBackupsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterBackupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterBackupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterBackupsResponse) SetBackups(v []*Backup) { + m.Backups = v +} + +func (m *ListClusterBackupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterHostsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterHostsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterHostsResponse) SetHosts(v []*Host) { + m.Hosts = v +} + +func (m *ListClusterHostsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *AddClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterHostsRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *AddClusterHostsMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterHostsMetadata) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *DeleteClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterHostsRequest) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *DeleteClusterHostsMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterHostsMetadata) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *GetClusterShardRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetClusterShardRequest) SetShardName(v string) { + m.ShardName = v +} + +func (m *ListClusterShardsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterShardsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterShardsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterShardsResponse) SetShards(v []*Shard) { + m.Shards = v +} + +func (m *ListClusterShardsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *AddClusterShardRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterShardRequest) SetShardName(v string) { + m.ShardName = v +} + +func (m *AddClusterShardRequest) SetConfigSpec(v *ShardConfigSpec) { + m.ConfigSpec = v +} + +func (m *AddClusterShardRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *AddClusterShardMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterShardMetadata) SetShardName(v string) { + m.ShardName = v +} + +func (m *UpdateClusterShardRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterShardRequest) SetShardName(v string) { + m.ShardName = v +} + +func (m *UpdateClusterShardRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateClusterShardRequest) SetConfigSpec(v *ShardConfigSpec) { + m.ConfigSpec = v +} + +func (m *UpdateClusterShardMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterShardMetadata) SetShardName(v string) { + m.ShardName = v +} + +func (m *DeleteClusterShardRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterShardRequest) SetShardName(v string) { + m.ShardName = v +} + +func (m *DeleteClusterShardMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterShardMetadata) SetShardName(v string) { + m.ShardName = v +} + +func (m *GetClusterShardGroupRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetClusterShardGroupRequest) SetShardGroupName(v string) { + m.ShardGroupName = v +} + +func (m *ListClusterShardGroupsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterShardGroupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterShardGroupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterShardGroupsResponse) SetShardGroups(v []*ShardGroup) { + m.ShardGroups = v +} + +func (m *ListClusterShardGroupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateClusterShardGroupRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateClusterShardGroupRequest) SetShardGroupName(v string) { + m.ShardGroupName = v +} + +func (m *CreateClusterShardGroupRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateClusterShardGroupRequest) SetShardNames(v []string) { + m.ShardNames = v +} + +func (m *CreateClusterShardGroupMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateClusterShardGroupMetadata) SetShardGroupName(v string) { + m.ShardGroupName = v +} + +func (m *UpdateClusterShardGroupRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterShardGroupRequest) SetShardGroupName(v string) { + m.ShardGroupName = v +} + +func (m *UpdateClusterShardGroupRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateClusterShardGroupRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateClusterShardGroupRequest) SetShardNames(v []string) { + m.ShardNames = v +} + +func (m *UpdateClusterShardGroupMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterShardGroupMetadata) SetShardGroupName(v string) { + m.ShardGroupName = v +} + +func (m *DeleteClusterShardGroupRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterShardGroupRequest) SetShardGroupName(v string) { + m.ShardGroupName = v +} + +func (m *DeleteClusterShardGroupMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterShardGroupMetadata) SetShardGroupName(v string) { + m.ShardGroupName = v +} + +func (m *CreateClusterExternalDictionaryRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateClusterExternalDictionaryRequest) SetExternalDictionary(v *config.ClickhouseConfig_ExternalDictionary) { + m.ExternalDictionary = v +} + +func (m *CreateClusterExternalDictionaryMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterExternalDictionaryRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterExternalDictionaryRequest) SetExternalDictionaryName(v string) { + m.ExternalDictionaryName = v +} + +func (m *DeleteClusterExternalDictionaryMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *HostSpec) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *HostSpec) SetType(v Host_Type) { + m.Type = v +} + +func (m *HostSpec) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *HostSpec) SetAssignPublicIp(v bool) { + m.AssignPublicIp = v +} + +func (m *HostSpec) SetShardName(v string) { + m.ShardName = v +} + +func (m *ConfigSpec) SetVersion(v string) { + m.Version = v +} + +func (m *ConfigSpec) SetClickhouse(v *ConfigSpec_Clickhouse) { + m.Clickhouse = v +} + +func (m *ConfigSpec) SetZookeeper(v *ConfigSpec_Zookeeper) { + m.Zookeeper = v +} + +func (m *ConfigSpec) SetBackupWindowStart(v *timeofday.TimeOfDay) { + m.BackupWindowStart = v +} + +func (m *ConfigSpec) SetAccess(v *Access) { + m.Access = v +} + +func (m *ConfigSpec_Clickhouse) SetConfig(v *config.ClickhouseConfig) { + m.Config = v +} + +func (m *ConfigSpec_Clickhouse) SetResources(v *Resources) { + m.Resources = v +} + +func (m *ConfigSpec_Zookeeper) SetResources(v *Resources) { + m.Resources = v +} + +func (m *ShardConfigSpec) SetClickhouse(v *ShardConfigSpec_Clickhouse) { + m.Clickhouse = v +} + +func (m *ShardConfigSpec_Clickhouse) SetConfig(v *config.ClickhouseConfig) { + m.Config = v +} + +func (m *ShardConfigSpec_Clickhouse) SetResources(v *Resources) { + m.Resources = v +} + +func (m *ShardConfigSpec_Clickhouse) SetWeight(v *wrappers.Int64Value) { + m.Weight = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/config/clickhouse.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/config/clickhouse.pb.go index 9944811e5..3c552da0e 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/config/clickhouse.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/config/clickhouse.pb.go @@ -93,11 +93,16 @@ type ClickhouseConfig_ExternalDictionary_PostgresqlSource_SslMode int32 const ( ClickhouseConfig_ExternalDictionary_PostgresqlSource_SSL_MODE_UNSPECIFIED ClickhouseConfig_ExternalDictionary_PostgresqlSource_SslMode = 0 - ClickhouseConfig_ExternalDictionary_PostgresqlSource_DISABLE ClickhouseConfig_ExternalDictionary_PostgresqlSource_SslMode = 1 - ClickhouseConfig_ExternalDictionary_PostgresqlSource_ALLOW ClickhouseConfig_ExternalDictionary_PostgresqlSource_SslMode = 2 - ClickhouseConfig_ExternalDictionary_PostgresqlSource_PREFER ClickhouseConfig_ExternalDictionary_PostgresqlSource_SslMode = 3 - ClickhouseConfig_ExternalDictionary_PostgresqlSource_VERIFY_CA ClickhouseConfig_ExternalDictionary_PostgresqlSource_SslMode = 4 - ClickhouseConfig_ExternalDictionary_PostgresqlSource_VERIFY_FULL ClickhouseConfig_ExternalDictionary_PostgresqlSource_SslMode = 5 + // Only try a non-SSL connection. + ClickhouseConfig_ExternalDictionary_PostgresqlSource_DISABLE ClickhouseConfig_ExternalDictionary_PostgresqlSource_SslMode = 1 + // First try a non-SSL connection; if that fails, try an SSL connection. + ClickhouseConfig_ExternalDictionary_PostgresqlSource_ALLOW ClickhouseConfig_ExternalDictionary_PostgresqlSource_SslMode = 2 + // First try an SSL connection; if that fails, try a non-SSL connection. + ClickhouseConfig_ExternalDictionary_PostgresqlSource_PREFER ClickhouseConfig_ExternalDictionary_PostgresqlSource_SslMode = 3 + // Only try an SSL connection, and verify that the server certificate is issued by a trusted certificate authority (CA). + ClickhouseConfig_ExternalDictionary_PostgresqlSource_VERIFY_CA ClickhouseConfig_ExternalDictionary_PostgresqlSource_SslMode = 4 + // Only try an SSL connection, verify that the server certificate is issued by a trusted CA and that the requested server host name matches that in the certificate. + ClickhouseConfig_ExternalDictionary_PostgresqlSource_VERIFY_FULL ClickhouseConfig_ExternalDictionary_PostgresqlSource_SslMode = 5 ) var ClickhouseConfig_ExternalDictionary_PostgresqlSource_SslMode_name = map[int32]string{ @@ -184,7 +189,7 @@ func (ClickhouseConfig_ExternalDictionary_Layout_Type) EnumDescriptor() ([]byte, // // Any options not listed here are not supported. type ClickhouseConfig struct { - // Logging level for the ClickHouse cluster. + // Logging level for the ClickHouse cluster. Possible values: TRACE, DEBUG, INFORMATION, WARNING, ERROR. LogLevel ClickhouseConfig_LogLevel `protobuf:"varint,1,opt,name=log_level,json=logLevel,proto3,enum=yandex.cloud.mdb.clickhouse.v1.config.ClickhouseConfig_LogLevel" json:"log_level,omitempty"` // Settings for the MergeTree engine. // See description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/server_settings/settings/#merge_tree). @@ -205,26 +210,68 @@ type ClickhouseConfig struct { // Number of milliseconds that ClickHouse waits for incoming requests before closing the connection. KeepAliveTimeout *wrappers.Int64Value `protobuf:"bytes,8,opt,name=keep_alive_timeout,json=keepAliveTimeout,proto3" json:"keep_alive_timeout,omitempty"` // Cache size (in bytes) for uncompressed data used by MergeTree tables. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/server_settings/settings/#uncompressed_cache_size). UncompressedCacheSize *wrappers.Int64Value `protobuf:"bytes,9,opt,name=uncompressed_cache_size,json=uncompressedCacheSize,proto3" json:"uncompressed_cache_size,omitempty"` // Approximate size (in bytes) of the cache of "marks" used by MergeTree tables. - // See details in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/server_settings/settings/#mark_cache_size). MarkCacheSize *wrappers.Int64Value `protobuf:"bytes,10,opt,name=mark_cache_size,json=markCacheSize,proto3" json:"mark_cache_size,omitempty"` // Maximum size of the table that can be deleted using a DROP query. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/server_settings/settings/#max_table_size_to_drop). MaxTableSizeToDrop *wrappers.Int64Value `protobuf:"bytes,11,opt,name=max_table_size_to_drop,json=maxTableSizeToDrop,proto3" json:"max_table_size_to_drop,omitempty"` // Maximum size of the partition that can be deleted using a DROP query. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/server_settings/settings/#max_partition_size_to_drop). MaxPartitionSizeToDrop *wrappers.Int64Value `protobuf:"bytes,13,opt,name=max_partition_size_to_drop,json=maxPartitionSizeToDrop,proto3" json:"max_partition_size_to_drop,omitempty"` - // Time interval for reloading built-in dictionaries. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/server_settings/settings/#builtin_dictionaries_reload_interval). - BuiltinDictionariesReloadInterval *wrappers.Int64Value `protobuf:"bytes,12,opt,name=builtin_dictionaries_reload_interval,json=builtinDictionariesReloadInterval,proto3" json:"builtin_dictionaries_reload_interval,omitempty"` + // The setting is deprecated and has no effect. + BuiltinDictionariesReloadInterval *wrappers.Int64Value `protobuf:"bytes,12,opt,name=builtin_dictionaries_reload_interval,json=builtinDictionariesReloadInterval,proto3" json:"builtin_dictionaries_reload_interval,omitempty"` // Deprecated: Do not use. // The server's time zone to be used in DateTime fields conversions. Specified as an IANA identifier. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/server_settings/settings/#timezone). - Timezone string `protobuf:"bytes,14,opt,name=timezone,proto3" json:"timezone,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Timezone string `protobuf:"bytes,14,opt,name=timezone,proto3" json:"timezone,omitempty"` + // Address of the archive with the user geobase in Object Storage. + GeobaseUri string `protobuf:"bytes,15,opt,name=geobase_uri,json=geobaseUri,proto3" json:"geobase_uri,omitempty"` + // The maximum size that query_log can grow to before old data will be removed. If set to 0, automatic removal of + // query_log data based on size is disabled. + QueryLogRetentionSize *wrappers.Int64Value `protobuf:"bytes,16,opt,name=query_log_retention_size,json=queryLogRetentionSize,proto3" json:"query_log_retention_size,omitempty"` + // The maximum time that query_log records will be retained before removal. If set to 0, automatic removal of + // query_log data based on time is disabled. + QueryLogRetentionTime *wrappers.Int64Value `protobuf:"bytes,17,opt,name=query_log_retention_time,json=queryLogRetentionTime,proto3" json:"query_log_retention_time,omitempty"` + // Whether query_thread_log system table is enabled. + QueryThreadLogEnabled *wrappers.BoolValue `protobuf:"bytes,18,opt,name=query_thread_log_enabled,json=queryThreadLogEnabled,proto3" json:"query_thread_log_enabled,omitempty"` + // The maximum size that query_thread_log can grow to before old data will be removed. If set to 0, automatic removal of + // query_thread_log data based on size is disabled. + QueryThreadLogRetentionSize *wrappers.Int64Value `protobuf:"bytes,19,opt,name=query_thread_log_retention_size,json=queryThreadLogRetentionSize,proto3" json:"query_thread_log_retention_size,omitempty"` + // The maximum time that query_thread_log records will be retained before removal. If set to 0, automatic removal of + // query_thread_log data based on time is disabled. + QueryThreadLogRetentionTime *wrappers.Int64Value `protobuf:"bytes,20,opt,name=query_thread_log_retention_time,json=queryThreadLogRetentionTime,proto3" json:"query_thread_log_retention_time,omitempty"` + // The maximum size that part_log can grow to before old data will be removed. If set to 0, automatic removal of + // part_log data based on size is disabled. + PartLogRetentionSize *wrappers.Int64Value `protobuf:"bytes,21,opt,name=part_log_retention_size,json=partLogRetentionSize,proto3" json:"part_log_retention_size,omitempty"` + // The maximum time that part_log records will be retained before removal. If set to 0, automatic removal of + // part_log data based on time is disabled. + PartLogRetentionTime *wrappers.Int64Value `protobuf:"bytes,22,opt,name=part_log_retention_time,json=partLogRetentionTime,proto3" json:"part_log_retention_time,omitempty"` + // Whether metric_log system table is enabled. + MetricLogEnabled *wrappers.BoolValue `protobuf:"bytes,23,opt,name=metric_log_enabled,json=metricLogEnabled,proto3" json:"metric_log_enabled,omitempty"` + // The maximum size that metric_log can grow to before old data will be removed. If set to 0, automatic removal of + // metric_log data based on size is disabled. + MetricLogRetentionSize *wrappers.Int64Value `protobuf:"bytes,24,opt,name=metric_log_retention_size,json=metricLogRetentionSize,proto3" json:"metric_log_retention_size,omitempty"` + // The maximum time that metric_log records will be retained before removal. If set to 0, automatic removal of + // metric_log data based on time is disabled. + MetricLogRetentionTime *wrappers.Int64Value `protobuf:"bytes,25,opt,name=metric_log_retention_time,json=metricLogRetentionTime,proto3" json:"metric_log_retention_time,omitempty"` + // Whether trace_log system table is enabled. + TraceLogEnabled *wrappers.BoolValue `protobuf:"bytes,26,opt,name=trace_log_enabled,json=traceLogEnabled,proto3" json:"trace_log_enabled,omitempty"` + // The maximum size that trace_log can grow to before old data will be removed. If set to 0, automatic removal of + // trace_log data based on size is disabled. + TraceLogRetentionSize *wrappers.Int64Value `protobuf:"bytes,27,opt,name=trace_log_retention_size,json=traceLogRetentionSize,proto3" json:"trace_log_retention_size,omitempty"` + // The maximum time that trace_log records will be retained before removal. If set to 0, automatic removal of + // trace_log data based on time is disabled. + TraceLogRetentionTime *wrappers.Int64Value `protobuf:"bytes,28,opt,name=trace_log_retention_time,json=traceLogRetentionTime,proto3" json:"trace_log_retention_time,omitempty"` + // Whether text_log system table is enabled. + TextLogEnabled *wrappers.BoolValue `protobuf:"bytes,29,opt,name=text_log_enabled,json=textLogEnabled,proto3" json:"text_log_enabled,omitempty"` + // The maximum size that text_log can grow to before old data will be removed. If set to 0, automatic removal of + // text_log data based on size is disabled. + TextLogRetentionSize *wrappers.Int64Value `protobuf:"bytes,30,opt,name=text_log_retention_size,json=textLogRetentionSize,proto3" json:"text_log_retention_size,omitempty"` + // The maximum time that text_log records will be retained before removal. If set to 0, automatic removal of + // text_log data based on time is disabled. + TextLogRetentionTime *wrappers.Int64Value `protobuf:"bytes,31,opt,name=text_log_retention_time,json=textLogRetentionTime,proto3" json:"text_log_retention_time,omitempty"` + // Logging level for text_log system table. Possible values: TRACE, DEBUG, INFORMATION, WARNING, ERROR. + TextLogLevel ClickhouseConfig_LogLevel `protobuf:"varint,32,opt,name=text_log_level,json=textLogLevel,proto3,enum=yandex.cloud.mdb.clickhouse.v1.config.ClickhouseConfig_LogLevel" json:"text_log_level,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ClickhouseConfig) Reset() { *m = ClickhouseConfig{} } @@ -336,6 +383,7 @@ func (m *ClickhouseConfig) GetMaxPartitionSizeToDrop() *wrappers.Int64Value { return nil } +// Deprecated: Do not use. func (m *ClickhouseConfig) GetBuiltinDictionariesReloadInterval() *wrappers.Int64Value { if m != nil { return m.BuiltinDictionariesReloadInterval @@ -350,22 +398,153 @@ func (m *ClickhouseConfig) GetTimezone() string { return "" } +func (m *ClickhouseConfig) GetGeobaseUri() string { + if m != nil { + return m.GeobaseUri + } + return "" +} + +func (m *ClickhouseConfig) GetQueryLogRetentionSize() *wrappers.Int64Value { + if m != nil { + return m.QueryLogRetentionSize + } + return nil +} + +func (m *ClickhouseConfig) GetQueryLogRetentionTime() *wrappers.Int64Value { + if m != nil { + return m.QueryLogRetentionTime + } + return nil +} + +func (m *ClickhouseConfig) GetQueryThreadLogEnabled() *wrappers.BoolValue { + if m != nil { + return m.QueryThreadLogEnabled + } + return nil +} + +func (m *ClickhouseConfig) GetQueryThreadLogRetentionSize() *wrappers.Int64Value { + if m != nil { + return m.QueryThreadLogRetentionSize + } + return nil +} + +func (m *ClickhouseConfig) GetQueryThreadLogRetentionTime() *wrappers.Int64Value { + if m != nil { + return m.QueryThreadLogRetentionTime + } + return nil +} + +func (m *ClickhouseConfig) GetPartLogRetentionSize() *wrappers.Int64Value { + if m != nil { + return m.PartLogRetentionSize + } + return nil +} + +func (m *ClickhouseConfig) GetPartLogRetentionTime() *wrappers.Int64Value { + if m != nil { + return m.PartLogRetentionTime + } + return nil +} + +func (m *ClickhouseConfig) GetMetricLogEnabled() *wrappers.BoolValue { + if m != nil { + return m.MetricLogEnabled + } + return nil +} + +func (m *ClickhouseConfig) GetMetricLogRetentionSize() *wrappers.Int64Value { + if m != nil { + return m.MetricLogRetentionSize + } + return nil +} + +func (m *ClickhouseConfig) GetMetricLogRetentionTime() *wrappers.Int64Value { + if m != nil { + return m.MetricLogRetentionTime + } + return nil +} + +func (m *ClickhouseConfig) GetTraceLogEnabled() *wrappers.BoolValue { + if m != nil { + return m.TraceLogEnabled + } + return nil +} + +func (m *ClickhouseConfig) GetTraceLogRetentionSize() *wrappers.Int64Value { + if m != nil { + return m.TraceLogRetentionSize + } + return nil +} + +func (m *ClickhouseConfig) GetTraceLogRetentionTime() *wrappers.Int64Value { + if m != nil { + return m.TraceLogRetentionTime + } + return nil +} + +func (m *ClickhouseConfig) GetTextLogEnabled() *wrappers.BoolValue { + if m != nil { + return m.TextLogEnabled + } + return nil +} + +func (m *ClickhouseConfig) GetTextLogRetentionSize() *wrappers.Int64Value { + if m != nil { + return m.TextLogRetentionSize + } + return nil +} + +func (m *ClickhouseConfig) GetTextLogRetentionTime() *wrappers.Int64Value { + if m != nil { + return m.TextLogRetentionTime + } + return nil +} + +func (m *ClickhouseConfig) GetTextLogLevel() ClickhouseConfig_LogLevel { + if m != nil { + return m.TextLogLevel + } + return ClickhouseConfig_LOG_LEVEL_UNSPECIFIED +} + // Options specific to the MergeTree table engine. type ClickhouseConfig_MergeTree struct { // Number of blocks of hashes to keep in ZooKeeper. - // See detailed description in [ClickHouse sources](https://github.com/yandex/ClickHouse/blob/v18.1.0-stable/dbms/src/Storages/MergeTree/MergeTreeSettings.h#L59). ReplicatedDeduplicationWindow *wrappers.Int64Value `protobuf:"bytes,1,opt,name=replicated_deduplication_window,json=replicatedDeduplicationWindow,proto3" json:"replicated_deduplication_window,omitempty"` // Period of time to keep blocks of hashes for. - // See detailed description in [ClickHouse sources](https://github.com/yandex/ClickHouse/blob/v18.1.0-stable/dbms/src/Storages/MergeTree/MergeTreeSettings.h#L64). - ReplicatedDeduplicationWindowSeconds *wrappers.Int64Value `protobuf:"bytes,2,opt,name=replicated_deduplication_window_seconds,json=replicatedDeduplicationWindowSeconds,proto3" json:"replicated_deduplication_window_seconds,omitempty"` - PartsToDelayInsert *wrappers.Int64Value `protobuf:"bytes,3,opt,name=parts_to_delay_insert,json=partsToDelayInsert,proto3" json:"parts_to_delay_insert,omitempty"` - PartsToThrowInsert *wrappers.Int64Value `protobuf:"bytes,4,opt,name=parts_to_throw_insert,json=partsToThrowInsert,proto3" json:"parts_to_throw_insert,omitempty"` - MaxReplicatedMergesInQueue *wrappers.Int64Value `protobuf:"bytes,5,opt,name=max_replicated_merges_in_queue,json=maxReplicatedMergesInQueue,proto3" json:"max_replicated_merges_in_queue,omitempty"` + ReplicatedDeduplicationWindowSeconds *wrappers.Int64Value `protobuf:"bytes,2,opt,name=replicated_deduplication_window_seconds,json=replicatedDeduplicationWindowSeconds,proto3" json:"replicated_deduplication_window_seconds,omitempty"` + // If table contains at least that many active parts in single partition, artificially slow down insert into table. + PartsToDelayInsert *wrappers.Int64Value `protobuf:"bytes,3,opt,name=parts_to_delay_insert,json=partsToDelayInsert,proto3" json:"parts_to_delay_insert,omitempty"` + // If more than this number active parts in single partition, throw 'Too many parts ...' exception. + PartsToThrowInsert *wrappers.Int64Value `protobuf:"bytes,4,opt,name=parts_to_throw_insert,json=partsToThrowInsert,proto3" json:"parts_to_throw_insert,omitempty"` + // How many tasks of merging and mutating parts are allowed simultaneously in ReplicatedMergeTree queue. + MaxReplicatedMergesInQueue *wrappers.Int64Value `protobuf:"bytes,5,opt,name=max_replicated_merges_in_queue,json=maxReplicatedMergesInQueue,proto3" json:"max_replicated_merges_in_queue,omitempty"` + // If there is less than specified number of free entries in background pool (or replicated queue), start to lower + // maximum size of merge to process. NumberOfFreeEntriesInPoolToLowerMaxSizeOfMerge *wrappers.Int64Value `protobuf:"bytes,6,opt,name=number_of_free_entries_in_pool_to_lower_max_size_of_merge,json=numberOfFreeEntriesInPoolToLowerMaxSizeOfMerge,proto3" json:"number_of_free_entries_in_pool_to_lower_max_size_of_merge,omitempty"` - MaxBytesToMergeAtMinSpaceInPool *wrappers.Int64Value `protobuf:"bytes,7,opt,name=max_bytes_to_merge_at_min_space_in_pool,json=maxBytesToMergeAtMinSpaceInPool,proto3" json:"max_bytes_to_merge_at_min_space_in_pool,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // Maximum in total size of parts to merge, when there are minimum free threads in background pool (or entries + // in replication queue). + MaxBytesToMergeAtMinSpaceInPool *wrappers.Int64Value `protobuf:"bytes,7,opt,name=max_bytes_to_merge_at_min_space_in_pool,json=maxBytesToMergeAtMinSpaceInPool,proto3" json:"max_bytes_to_merge_at_min_space_in_pool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ClickhouseConfig_MergeTree) Reset() { *m = ClickhouseConfig_MergeTree{} } @@ -1140,18 +1319,23 @@ func (m *ClickhouseConfig_ExternalDictionary_MongodbSource) GetPassword() string } type ClickhouseConfig_ExternalDictionary_PostgresqlSource struct { - // Required. + // Name of the PostrgreSQL database. Db string `protobuf:"bytes,1,opt,name=db,proto3" json:"db,omitempty"` - // Required. + // Name of the table in the specified database to be used as the dictionary source. Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"` - // Required. + // Name of the PostrgreSQL host Hosts []string `protobuf:"bytes,3,rep,name=hosts,proto3" json:"hosts,omitempty"` - Port int64 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` - // Required. - User string `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` + // Port to use when connecting to the host. + Port int64 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` + // Name of the PostrgreSQL database user. + User string `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` + // Password of the PostrgreSQL database user. Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"` - // Query for checking the dictionary status and figuring out whether the data should be reloaded. - InvalidateQuery string `protobuf:"bytes,7,opt,name=invalidate_query,json=invalidateQuery,proto3" json:"invalidate_query,omitempty"` + // Query for checking the dictionary status, to pull only updated data. + // For more details, see [ClickHouse documentation on dictionaries](https://clickhouse.yandex/docs/en/query_language/dicts/external_dicts_dict_lifetime/). + InvalidateQuery string `protobuf:"bytes,7,opt,name=invalidate_query,json=invalidateQuery,proto3" json:"invalidate_query,omitempty"` + // Mode of SSL TCP/IP connection to the PostgreSQL host. + // For more details, see [PostgreSQL documentation](https://www.postgresql.org/docs/current/libpq-ssl.html). SslMode ClickhouseConfig_ExternalDictionary_PostgresqlSource_SslMode `protobuf:"varint,8,opt,name=ssl_mode,json=sslMode,proto3,enum=yandex.cloud.mdb.clickhouse.v1.config.ClickhouseConfig_ExternalDictionary_PostgresqlSource_SslMode" json:"ssl_mode,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1868,149 +2052,167 @@ func init() { } var fileDescriptor_d960d4060d8a4a84 = []byte{ - // 2290 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0xcd, 0x8f, 0xdb, 0xc6, - 0x15, 0x8f, 0x44, 0x49, 0x2b, 0x3d, 0x79, 0x77, 0x99, 0x89, 0xed, 0xaa, 0x6a, 0xe2, 0x38, 0x0b, - 0xb7, 0x71, 0x11, 0x58, 0x6b, 0xad, 0x63, 0xa7, 0x41, 0x1b, 0xa3, 0xfa, 0x5a, 0xaf, 0x62, 0xed, - 0x87, 0x47, 0xf2, 0xfa, 0x23, 0xa8, 0x59, 0x8a, 0x1c, 0x49, 0x8c, 0x49, 0x0e, 0x33, 0x24, 0x77, - 0x25, 0x07, 0x30, 0x50, 0x1f, 0x7a, 0xc8, 0x21, 0xe8, 0x5f, 0xd0, 0x5b, 0xff, 0x80, 0x1e, 0x7b, - 0x4b, 0x0f, 0xc5, 0xe6, 0xd0, 0x02, 0x3d, 0x14, 0x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, 0xcb, 0x39, 0x3c, 0x1e, 0x17, 0xff, - 0x95, 0x86, 0xdc, 0x38, 0x6f, 0x20, 0x03, 0xde, 0x65, 0xc4, 0xb3, 0x2d, 0x43, 0x0f, 0x88, 0xa9, - 0x99, 0xc4, 0x0c, 0xe5, 0x80, 0xaf, 0x7d, 0xdf, 0x72, 0x4d, 0xba, 0x2f, 0x72, 0xe0, 0x11, 0x26, - 0xbd, 0x33, 0xc1, 0xa8, 0x4f, 0x43, 0xdc, 0x13, 0x08, 0x88, 0xc1, 0xfb, 0x47, 0x90, 0x68, 0x3e, - 0x31, 0xa8, 0x6b, 0xfa, 0x51, 0x42, 0x7c, 0x2d, 0xd9, 0xa5, 0xd7, 0x92, 0xb5, 0x25, 0x10, 0xda, - 0x82, 0x73, 0x7c, 0x17, 0x7d, 0xb1, 0x79, 0xc4, 0xd6, 0x47, 0x9a, 0xe5, 0xfa, 0x84, 0x05, 0x05, - 0xe5, 0x18, 0x91, 0x21, 0x34, 0x3b, 0xb4, 0xce, 0xf5, 0x9a, 0x42, 0x6d, 0x06, 0x2f, 0x18, 0x30, - 0xba, 0x1f, 0xe3, 0xa5, 0x8e, 0x8f, 0xd7, 0xe1, 0x7a, 0x11, 0x9e, 0x06, 0x17, 0x78, 0xa4, 0x4d, - 0xf9, 0x45, 0x64, 0x70, 0x5f, 0xb3, 0x5c, 0x9e, 0x17, 0x42, 0x52, 0x48, 0x1f, 0x0d, 0xcc, 0x83, - 0x15, 0x8f, 0x11, 0xc4, 0xae, 0xfa, 0x4d, 0xf7, 0x0e, 0x57, 0x47, 0x5f, 0x27, 0xe0, 0x63, 0x37, - 0x74, 0xba, 0x84, 0x69, 0xb4, 0xa7, 0xf5, 0x18, 0x21, 0x1a, 0x71, 0x03, 0x11, 0x74, 0x96, 0xab, - 0x79, 0x94, 0xda, 0x7c, 0x29, 0x36, 0xdd, 0x27, 0x4c, 0xe3, 0x96, 0x88, 0x48, 0xa7, 0x3d, 0x69, - 0xc6, 0x31, 0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6, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x98, 0xbf, 0xf5, 0x38, 0x89, 0x1c, - 0x00, 0x00, + // 2584 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x9a, 0x4b, 0x8f, 0xdb, 0xd6, + 0x15, 0x80, 0xa3, 0xe7, 0x48, 0x47, 0x1e, 0x0d, 0x7d, 0xe3, 0x07, 0xa3, 0xf8, 0x95, 0x81, 0xdb, + 0x38, 0x08, 0xac, 0xb1, 0xec, 0xd8, 0x69, 0xd0, 0xc6, 0x88, 0x5e, 0xe3, 0x51, 0xac, 0x79, 0xf8, + 0x4a, 0x7e, 0x24, 0x41, 0xc3, 0x52, 0xe2, 0x95, 0xc4, 0x98, 0xe2, 0x65, 0x2e, 0xa9, 0x19, 0x29, + 0x01, 0x02, 0x24, 0x8b, 0x2e, 0xb2, 0x08, 0xfa, 0x0b, 0xba, 0x6a, 0x7f, 0x40, 0x97, 0xdd, 0xa5, + 0x8b, 0xc2, 0xd9, 0x14, 0xe8, 0xa2, 0x40, 0x7f, 0x41, 0x81, 0xfe, 0x06, 0x2f, 0x8a, 0xe2, 0xde, + 0x4b, 0x4a, 0x94, 0x66, 0x6c, 0x4d, 0x15, 0x4d, 0xb3, 0x23, 0x0f, 0x79, 0xbe, 0xf3, 0xb8, 0xaf, + 0x73, 0x28, 0xc1, 0x9d, 0x91, 0x6e, 0x1b, 0x64, 0xb8, 0xd1, 0xb6, 0xe8, 0xc0, 0xd8, 0xe8, 0x1b, + 0xad, 0x8d, 0xb6, 0x65, 0xb6, 0x9f, 0xf6, 0xe8, 0xc0, 0x25, 0x1b, 0xfb, 0x85, 0x8d, 0x36, 0xb5, + 0x3b, 0x66, 0x37, 0x24, 0xcc, 0x3b, 0x8c, 0x7a, 0x14, 0xfd, 0x4c, 0xea, 0xe5, 0x85, 0x5e, 0xbe, + 0x6f, 0xb4, 0xf2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, 0x5c, 0x80, 0x04, 0xf7, + 0xd2, 0x15, 0x5f, 0x97, 0xd3, 0xe3, 0xf9, 0x2e, 0x85, 0x27, 0x35, 0x32, 0x47, 0xad, 0x96, 0x95, + 0x23, 0x57, 0x0b, 0xfa, 0x0a, 0x52, 0xae, 0x6b, 0x69, 0x7d, 0x6a, 0xc8, 0xe3, 0x25, 0x7b, 0xb3, + 0x7d, 0x82, 0xbb, 0x69, 0xbe, 0xe1, 0x5a, 0xdb, 0xd4, 0x20, 0x78, 0xc5, 0x95, 0x17, 0xeb, 0x5d, + 0x58, 0xf1, 0x65, 0x48, 0x85, 0x33, 0x8d, 0x46, 0x5d, 0xdb, 0xde, 0xad, 0x54, 0x67, 0xea, 0xba, + 0x0c, 0xac, 0x54, 0x6a, 0x8d, 0x62, 0xa9, 0x5e, 0x55, 0x22, 0x28, 0x0d, 0x89, 0x62, 0xbd, 0xbe, + 0xfb, 0x58, 0x89, 0x22, 0x80, 0xe4, 0x1e, 0xae, 0x6e, 0x56, 0xb1, 0x12, 0x43, 0xab, 0x90, 0x7e, + 0x54, 0xc5, 0xb5, 0xcd, 0x8f, 0xb4, 0x72, 0x51, 0x89, 0xa3, 0x35, 0xc8, 0xf8, 0xb7, 0x9b, 0x0f, + 0xeb, 0x75, 0x25, 0x91, 0xfb, 0xe7, 0x0a, 0xa4, 0xc7, 0xc5, 0x17, 0xea, 0x42, 0xd4, 0x34, 0xfc, + 0xc6, 0xee, 0xf1, 0x49, 0x94, 0x77, 0xf9, 0x9a, 0x81, 0xa3, 0xa6, 0x81, 0x3e, 0x83, 0xd8, 0x53, + 0x32, 0xf2, 0x2b, 0xba, 0x27, 0x27, 0x62, 0xe9, 0x3e, 0x19, 0x61, 0x6e, 0x04, 0x7d, 0x09, 0x69, + 0x51, 0x9d, 0xf1, 0x7e, 0xc2, 0xef, 0xca, 0x3e, 0x3d, 0x11, 0x8b, 0x45, 0xcf, 0x63, 0x66, 0x6b, + 0xe0, 0x11, 0x9c, 0x12,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 0xe3, 0x66, 0xd7, 0xf4, 0x7a, 0x83, 0x56, 0xbe, 0x4d, 0xfb, 0x1b, + 0x52, 0xeb, 0xba, 0xfc, 0xeb, 0x46, 0x97, 0x5e, 0xef, 0x12, 0x5b, 0x7c, 0x2f, 0xdc, 0x38, 0xd6, + 0x5f, 0x4a, 0x7e, 0x39, 0x11, 0xb6, 0x92, 0x42, 0xef, 0xd6, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, + 0xa4, 0x6b, 0x58, 0x58, 0x8d, 0x22, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/config/clickhouse.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/config/clickhouse.pbext.go new file mode 100644 index 000000000..ed32acb21 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/config/clickhouse.pbext.go @@ -0,0 +1,493 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package clickhouse + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *ClickhouseConfig) SetLogLevel(v ClickhouseConfig_LogLevel) { + m.LogLevel = v +} + +func (m *ClickhouseConfig) SetMergeTree(v *ClickhouseConfig_MergeTree) { + m.MergeTree = v +} + +func (m *ClickhouseConfig) SetCompression(v []*ClickhouseConfig_Compression) { + m.Compression = v +} + +func (m *ClickhouseConfig) SetDictionaries(v []*ClickhouseConfig_ExternalDictionary) { + m.Dictionaries = v +} + +func (m *ClickhouseConfig) SetGraphiteRollup(v []*ClickhouseConfig_GraphiteRollup) { + m.GraphiteRollup = v +} + +func (m *ClickhouseConfig) SetMaxConnections(v *wrappers.Int64Value) { + m.MaxConnections = v +} + +func (m *ClickhouseConfig) SetMaxConcurrentQueries(v *wrappers.Int64Value) { + m.MaxConcurrentQueries = v +} + +func (m *ClickhouseConfig) SetKeepAliveTimeout(v *wrappers.Int64Value) { + m.KeepAliveTimeout = v +} + +func (m *ClickhouseConfig) SetUncompressedCacheSize(v *wrappers.Int64Value) { + m.UncompressedCacheSize = v +} + +func (m *ClickhouseConfig) SetMarkCacheSize(v *wrappers.Int64Value) { + m.MarkCacheSize = v +} + +func (m *ClickhouseConfig) SetMaxTableSizeToDrop(v *wrappers.Int64Value) { + m.MaxTableSizeToDrop = v +} + +func (m *ClickhouseConfig) SetMaxPartitionSizeToDrop(v *wrappers.Int64Value) { + m.MaxPartitionSizeToDrop = v +} + +func (m *ClickhouseConfig) SetBuiltinDictionariesReloadInterval(v *wrappers.Int64Value) { + m.BuiltinDictionariesReloadInterval = v +} + +func (m *ClickhouseConfig) SetTimezone(v string) { + m.Timezone = v +} + +func (m *ClickhouseConfig) SetGeobaseUri(v string) { + m.GeobaseUri = v +} + +func (m *ClickhouseConfig) SetQueryLogRetentionSize(v *wrappers.Int64Value) { + m.QueryLogRetentionSize = v +} + +func (m *ClickhouseConfig) SetQueryLogRetentionTime(v *wrappers.Int64Value) { + m.QueryLogRetentionTime = v +} + +func (m *ClickhouseConfig) SetQueryThreadLogEnabled(v *wrappers.BoolValue) { + m.QueryThreadLogEnabled = v +} + +func (m *ClickhouseConfig) SetQueryThreadLogRetentionSize(v *wrappers.Int64Value) { + m.QueryThreadLogRetentionSize = v +} + +func (m *ClickhouseConfig) SetQueryThreadLogRetentionTime(v *wrappers.Int64Value) { + m.QueryThreadLogRetentionTime = v +} + +func (m *ClickhouseConfig) SetPartLogRetentionSize(v *wrappers.Int64Value) { + m.PartLogRetentionSize = v +} + +func (m *ClickhouseConfig) SetPartLogRetentionTime(v *wrappers.Int64Value) { + m.PartLogRetentionTime = v +} + +func (m *ClickhouseConfig) SetMetricLogEnabled(v *wrappers.BoolValue) { + m.MetricLogEnabled = v +} + +func (m *ClickhouseConfig) SetMetricLogRetentionSize(v *wrappers.Int64Value) { + m.MetricLogRetentionSize = v +} + +func (m *ClickhouseConfig) SetMetricLogRetentionTime(v *wrappers.Int64Value) { + m.MetricLogRetentionTime = v +} + +func (m *ClickhouseConfig) SetTraceLogEnabled(v *wrappers.BoolValue) { + m.TraceLogEnabled = v +} + +func (m *ClickhouseConfig) SetTraceLogRetentionSize(v *wrappers.Int64Value) { + m.TraceLogRetentionSize = v +} + +func (m *ClickhouseConfig) SetTraceLogRetentionTime(v *wrappers.Int64Value) { + m.TraceLogRetentionTime = v +} + +func (m *ClickhouseConfig) SetTextLogEnabled(v *wrappers.BoolValue) { + m.TextLogEnabled = v +} + +func (m *ClickhouseConfig) SetTextLogRetentionSize(v *wrappers.Int64Value) { + m.TextLogRetentionSize = v +} + +func (m *ClickhouseConfig) SetTextLogRetentionTime(v *wrappers.Int64Value) { + m.TextLogRetentionTime = v +} + +func (m *ClickhouseConfig) SetTextLogLevel(v ClickhouseConfig_LogLevel) { + m.TextLogLevel = v +} + +func (m *ClickhouseConfig_MergeTree) SetReplicatedDeduplicationWindow(v *wrappers.Int64Value) { + m.ReplicatedDeduplicationWindow = v +} + +func (m *ClickhouseConfig_MergeTree) SetReplicatedDeduplicationWindowSeconds(v *wrappers.Int64Value) { + m.ReplicatedDeduplicationWindowSeconds = v +} + +func (m *ClickhouseConfig_MergeTree) SetPartsToDelayInsert(v *wrappers.Int64Value) { + m.PartsToDelayInsert = v +} + +func (m *ClickhouseConfig_MergeTree) SetPartsToThrowInsert(v *wrappers.Int64Value) { + m.PartsToThrowInsert = v +} + +func (m *ClickhouseConfig_MergeTree) SetMaxReplicatedMergesInQueue(v *wrappers.Int64Value) { + m.MaxReplicatedMergesInQueue = v +} + +func (m *ClickhouseConfig_MergeTree) SetNumberOfFreeEntriesInPoolToLowerMaxSizeOfMerge(v *wrappers.Int64Value) { + m.NumberOfFreeEntriesInPoolToLowerMaxSizeOfMerge = v +} + +func (m *ClickhouseConfig_MergeTree) SetMaxBytesToMergeAtMinSpaceInPool(v *wrappers.Int64Value) { + m.MaxBytesToMergeAtMinSpaceInPool = v +} + +func (m *ClickhouseConfig_Compression) SetMethod(v ClickhouseConfig_Compression_Method) { + m.Method = v +} + +func (m *ClickhouseConfig_Compression) SetMinPartSize(v int64) { + m.MinPartSize = v +} + +func (m *ClickhouseConfig_Compression) SetMinPartSizeRatio(v float64) { + m.MinPartSizeRatio = v +} + +type ClickhouseConfig_ExternalDictionary_Lifetime = isClickhouseConfig_ExternalDictionary_Lifetime + +func (m *ClickhouseConfig_ExternalDictionary) SetLifetime(v ClickhouseConfig_ExternalDictionary_Lifetime) { + m.Lifetime = v +} + +type ClickhouseConfig_ExternalDictionary_Source = isClickhouseConfig_ExternalDictionary_Source + +func (m *ClickhouseConfig_ExternalDictionary) SetSource(v ClickhouseConfig_ExternalDictionary_Source) { + m.Source = v +} + +func (m *ClickhouseConfig_ExternalDictionary) SetName(v string) { + m.Name = v +} + +func (m *ClickhouseConfig_ExternalDictionary) SetStructure(v *ClickhouseConfig_ExternalDictionary_Structure) { + m.Structure = v +} + +func (m *ClickhouseConfig_ExternalDictionary) SetLayout(v *ClickhouseConfig_ExternalDictionary_Layout) { + m.Layout = v +} + +func (m *ClickhouseConfig_ExternalDictionary) SetFixedLifetime(v int64) { + m.Lifetime = &ClickhouseConfig_ExternalDictionary_FixedLifetime{ + FixedLifetime: v, + } +} + +func (m *ClickhouseConfig_ExternalDictionary) SetLifetimeRange(v *ClickhouseConfig_ExternalDictionary_Range) { + m.Lifetime = &ClickhouseConfig_ExternalDictionary_LifetimeRange{ + LifetimeRange: v, + } +} + +func (m *ClickhouseConfig_ExternalDictionary) SetHttpSource(v *ClickhouseConfig_ExternalDictionary_HttpSource) { + m.Source = &ClickhouseConfig_ExternalDictionary_HttpSource_{ + HttpSource: v, + } +} + +func (m *ClickhouseConfig_ExternalDictionary) SetMysqlSource(v *ClickhouseConfig_ExternalDictionary_MysqlSource) { + m.Source = &ClickhouseConfig_ExternalDictionary_MysqlSource_{ + MysqlSource: v, + } +} + +func (m *ClickhouseConfig_ExternalDictionary) SetClickhouseSource(v *ClickhouseConfig_ExternalDictionary_ClickhouseSource) { + m.Source = &ClickhouseConfig_ExternalDictionary_ClickhouseSource_{ + ClickhouseSource: v, + } +} + +func (m *ClickhouseConfig_ExternalDictionary) SetMongodbSource(v *ClickhouseConfig_ExternalDictionary_MongodbSource) { + m.Source = &ClickhouseConfig_ExternalDictionary_MongodbSource_{ + MongodbSource: v, + } +} + +func (m *ClickhouseConfig_ExternalDictionary) SetPostgresqlSource(v *ClickhouseConfig_ExternalDictionary_PostgresqlSource) { + m.Source = &ClickhouseConfig_ExternalDictionary_PostgresqlSource_{ + PostgresqlSource: v, + } +} + +func (m *ClickhouseConfig_ExternalDictionary_HttpSource) SetUrl(v string) { + m.Url = v +} + +func (m *ClickhouseConfig_ExternalDictionary_HttpSource) SetFormat(v string) { + m.Format = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MysqlSource) SetDb(v string) { + m.Db = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MysqlSource) SetTable(v string) { + m.Table = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MysqlSource) SetPort(v int64) { + m.Port = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MysqlSource) SetUser(v string) { + m.User = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MysqlSource) SetPassword(v string) { + m.Password = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MysqlSource) SetReplicas(v []*ClickhouseConfig_ExternalDictionary_MysqlSource_Replica) { + m.Replicas = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MysqlSource) SetWhere(v string) { + m.Where = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MysqlSource) SetInvalidateQuery(v string) { + m.InvalidateQuery = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MysqlSource_Replica) SetHost(v string) { + m.Host = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MysqlSource_Replica) SetPriority(v int64) { + m.Priority = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MysqlSource_Replica) SetPort(v int64) { + m.Port = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MysqlSource_Replica) SetUser(v string) { + m.User = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MysqlSource_Replica) SetPassword(v string) { + m.Password = v +} + +func (m *ClickhouseConfig_ExternalDictionary_ClickhouseSource) SetDb(v string) { + m.Db = v +} + +func (m *ClickhouseConfig_ExternalDictionary_ClickhouseSource) SetTable(v string) { + m.Table = v +} + +func (m *ClickhouseConfig_ExternalDictionary_ClickhouseSource) SetHost(v string) { + m.Host = v +} + +func (m *ClickhouseConfig_ExternalDictionary_ClickhouseSource) SetPort(v int64) { + m.Port = v +} + +func (m *ClickhouseConfig_ExternalDictionary_ClickhouseSource) SetUser(v string) { + m.User = v +} + +func (m *ClickhouseConfig_ExternalDictionary_ClickhouseSource) SetPassword(v string) { + m.Password = v +} + +func (m *ClickhouseConfig_ExternalDictionary_ClickhouseSource) SetWhere(v string) { + m.Where = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MongodbSource) SetDb(v string) { + m.Db = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MongodbSource) SetCollection(v string) { + m.Collection = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MongodbSource) SetHost(v string) { + m.Host = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MongodbSource) SetPort(v int64) { + m.Port = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MongodbSource) SetUser(v string) { + m.User = v +} + +func (m *ClickhouseConfig_ExternalDictionary_MongodbSource) SetPassword(v string) { + m.Password = v +} + +func (m *ClickhouseConfig_ExternalDictionary_PostgresqlSource) SetDb(v string) { + m.Db = v +} + +func (m *ClickhouseConfig_ExternalDictionary_PostgresqlSource) SetTable(v string) { + m.Table = v +} + +func (m *ClickhouseConfig_ExternalDictionary_PostgresqlSource) SetHosts(v []string) { + m.Hosts = v +} + +func (m *ClickhouseConfig_ExternalDictionary_PostgresqlSource) SetPort(v int64) { + m.Port = v +} + +func (m *ClickhouseConfig_ExternalDictionary_PostgresqlSource) SetUser(v string) { + m.User = v +} + +func (m *ClickhouseConfig_ExternalDictionary_PostgresqlSource) SetPassword(v string) { + m.Password = v +} + +func (m *ClickhouseConfig_ExternalDictionary_PostgresqlSource) SetInvalidateQuery(v string) { + m.InvalidateQuery = v +} + +func (m *ClickhouseConfig_ExternalDictionary_PostgresqlSource) SetSslMode(v ClickhouseConfig_ExternalDictionary_PostgresqlSource_SslMode) { + m.SslMode = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Structure) SetId(v *ClickhouseConfig_ExternalDictionary_Structure_Id) { + m.Id = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Structure) SetKey(v *ClickhouseConfig_ExternalDictionary_Structure_Key) { + m.Key = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Structure) SetRangeMin(v *ClickhouseConfig_ExternalDictionary_Structure_Attribute) { + m.RangeMin = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Structure) SetRangeMax(v *ClickhouseConfig_ExternalDictionary_Structure_Attribute) { + m.RangeMax = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Structure) SetAttributes(v []*ClickhouseConfig_ExternalDictionary_Structure_Attribute) { + m.Attributes = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Structure_Attribute) SetName(v string) { + m.Name = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Structure_Attribute) SetType(v string) { + m.Type = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Structure_Attribute) SetNullValue(v string) { + m.NullValue = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Structure_Attribute) SetExpression(v string) { + m.Expression = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Structure_Attribute) SetHierarchical(v bool) { + m.Hierarchical = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Structure_Attribute) SetInjective(v bool) { + m.Injective = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Structure_Id) SetName(v string) { + m.Name = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Structure_Key) SetAttributes(v []*ClickhouseConfig_ExternalDictionary_Structure_Attribute) { + m.Attributes = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Layout) SetType(v ClickhouseConfig_ExternalDictionary_Layout_Type) { + m.Type = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Layout) SetSizeInCells(v int64) { + m.SizeInCells = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Range) SetMin(v int64) { + m.Min = v +} + +func (m *ClickhouseConfig_ExternalDictionary_Range) SetMax(v int64) { + m.Max = v +} + +func (m *ClickhouseConfig_GraphiteRollup) SetName(v string) { + m.Name = v +} + +func (m *ClickhouseConfig_GraphiteRollup) SetPatterns(v []*ClickhouseConfig_GraphiteRollup_Pattern) { + m.Patterns = v +} + +func (m *ClickhouseConfig_GraphiteRollup_Pattern) SetRegexp(v string) { + m.Regexp = v +} + +func (m *ClickhouseConfig_GraphiteRollup_Pattern) SetFunction(v string) { + m.Function = v +} + +func (m *ClickhouseConfig_GraphiteRollup_Pattern) SetRetention(v []*ClickhouseConfig_GraphiteRollup_Pattern_Retention) { + m.Retention = v +} + +func (m *ClickhouseConfig_GraphiteRollup_Pattern_Retention) SetAge(v int64) { + m.Age = v +} + +func (m *ClickhouseConfig_GraphiteRollup_Pattern_Retention) SetPrecision(v int64) { + m.Precision = v +} + +func (m *ClickhouseConfigSet) SetEffectiveConfig(v *ClickhouseConfig) { + m.EffectiveConfig = v +} + +func (m *ClickhouseConfigSet) SetUserConfig(v *ClickhouseConfig) { + m.UserConfig = v +} + +func (m *ClickhouseConfigSet) SetDefaultConfig(v *ClickhouseConfig) { + m.DefaultConfig = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/database.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/database.pb.go index 28d505124..3b592dfe6 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/database.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/database.pb.go @@ -122,7 +122,7 @@ func init() { } var fileDescriptor_15a51ab89e06ec6b = []byte{ - // 240 bytes of a gzipped FileDescriptorProto + // 250 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xad, 0x4c, 0xcc, 0x4b, 0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0xcf, 0x4d, 0x49, 0xd2, 0x4f, 0xce, 0xc9, 0x4c, 0xce, 0xce, 0xc8, 0x2f, 0x2d, 0x4e, 0xd5, 0x2f, 0x33, 0xd4, 0x4f, 0x49, 0x2c, 0x49, 0x4c, @@ -134,8 +134,9 @@ var fileDescriptor_15a51ab89e06ec6b = []byte{ 0x22, 0xc1, 0x04, 0x96, 0xe1, 0x84, 0x8a, 0x78, 0xa6, 0x28, 0x39, 0x71, 0xf1, 0xc0, 0xb4, 0x07, 0x17, 0xa4, 0x26, 0x0b, 0x19, 0x21, 0x1b, 0xe1, 0x24, 0xf7, 0xe2, 0xb8, 0x21, 0xe3, 0xa7, 0xe3, 0x86, 0x7c, 0xd1, 0x89, 0xba, 0x55, 0x8e, 0xba, 0x51, 0x06, 0xba, 0x96, 0xf1, 0xba, 0xb1, 0x5a, - 0x5d, 0x27, 0x0c, 0x59, 0x6c, 0x6c, 0xcd, 0x8c, 0x21, 0x56, 0x38, 0xf9, 0x47, 0xf9, 0xa6, 0x67, - 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x43, 0x9c, 0xab, 0x0b, 0x71, 0x6e, 0x7a, - 0xbe, 0x6e, 0x7a, 0x6a, 0x1e, 0xd8, 0xa5, 0xfa, 0xf8, 0x83, 0xc5, 0x1a, 0xc1, 0x4b, 0x62, 0x03, - 0x6b, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x76, 0xaf, 0x2f, 0xc6, 0x4a, 0x01, 0x00, 0x00, + 0x5d, 0x27, 0x0c, 0x59, 0x6c, 0x6c, 0xcd, 0x8c, 0x21, 0x56, 0x38, 0x15, 0x73, 0x29, 0xa1, 0xf8, + 0x21, 0xb1, 0x20, 0x13, 0xd3, 0x1f, 0x51, 0xbe, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, + 0xf9, 0xb9, 0xfa, 0x10, 0xe5, 0xba, 0x10, 0x2f, 0xa5, 0xe7, 0xeb, 0xa6, 0xa7, 0xe6, 0x81, 0x7d, + 0xa3, 0x8f, 0x3f, 0xe8, 0xac, 0x11, 0xbc, 0x24, 0x36, 0xb0, 0x06, 0x63, 0x40, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x2a, 0x2b, 0xf9, 0xb6, 0x6e, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/database.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/database.pbext.go new file mode 100644 index 000000000..6cafad8f2 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/database.pbext.go @@ -0,0 +1,15 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package clickhouse + +func (m *Database) SetName(v string) { + m.Name = v +} + +func (m *Database) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DatabaseSpec) SetName(v string) { + m.Name = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/database_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/database_service.pb.go index e006476be..581926a31 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/database_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/database_service.pb.go @@ -407,60 +407,61 @@ func init() { } var fileDescriptor_18a32bf44b43aca7 = []byte{ - // 702 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x5f, 0x4f, 0x13, 0x4b, - 0x1c, 0xcd, 0x50, 0x6e, 0x43, 0x07, 0xb8, 0x24, 0x93, 0x5b, 0xd2, 0x34, 0x17, 0xc2, 0xdd, 0x9b, - 0x60, 0x53, 0xdd, 0xdd, 0x6e, 0x11, 0xa2, 0x02, 0x26, 0x16, 0x04, 0x4d, 0x04, 0x4c, 0x31, 0x31, - 0x41, 0x4c, 0x33, 0xdd, 0xfd, 0xb9, 0x6c, 0x68, 0x77, 0xd7, 0xce, 0xb4, 0xe1, 0x4f, 0x78, 0xd0, - 0x07, 0x8d, 0xbc, 0x9a, 0xf8, 0xe6, 0x97, 0x40, 0xbf, 0x03, 0x24, 0xbe, 0xe1, 0x57, 0x30, 0xc6, - 0x67, 0x1f, 0x7d, 0x32, 0xbb, 0xd3, 0x6e, 0xbb, 0x50, 0x68, 0x05, 0xde, 0x76, 0xe7, 0x77, 0xce, - 0xcc, 0x39, 0x33, 0xe7, 0x37, 0x83, 0x27, 0xb7, 0xa9, 0x6d, 0xc0, 0x96, 0xaa, 0x97, 0x9c, 0xaa, - 0xa1, 0x96, 0x8d, 0xa2, 0xaa, 0x97, 0x2c, 0x7d, 0x73, 0xc3, 0xa9, 0x32, 0x50, 0x6b, 0x9a, 0x6a, - 0x50, 0x4e, 0x8b, 0x94, 0x41, 0x81, 0x41, 0xa5, 0x66, 0xe9, 0xa0, 0xb8, 0x15, 0x87, 0x3b, 0x64, - 0x54, 0xd0, 0x14, 0x9f, 0xa6, 0x94, 0x8d, 0xa2, 0xd2, 0xa4, 0x29, 0x35, 0x2d, 0xf9, 0xaf, 0xe9, - 0x38, 0x66, 0x09, 0x54, 0xea, 0x5a, 0x2a, 0xb5, 0x6d, 0x87, 0x53, 0x6e, 0x39, 0x36, 0x13, 0xec, - 0x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, 0xee, 0x86, 0xcc, - 0xed, 0x79, 0xaa, 0x7b, 0xbd, 0xde, 0x21, 0x37, 0x3b, 0x49, 0x68, 0xd7, 0xfa, 0xc9, 0xc9, 0x3f, - 0x64, 0x89, 0xbe, 0x94, 0xee, 0xfa, 0x2e, 0x6e, 0x91, 0xa9, 0x8b, 0xb9, 0x20, 0x5f, 0x10, 0x8e, - 0x8a, 0x20, 0x93, 0x8e, 0x0a, 0xda, 0xf6, 0x63, 0xf2, 0xbf, 0x30, 0xad, 0x79, 0x85, 0xaf, 0x34, - 0xbe, 0x24, 0xf3, 0xe0, 0x38, 0x2d, 0x9d, 0xd9, 0x30, 0x7d, 0x8d, 0x11, 0xdf, 0xca, 0xb4, 0x74, - 0x41, 0x2b, 0x77, 0x50, 0x9a, 0x7c, 0x47, 0x38, 0x2a, 0xc2, 0xda, 0xd9, 0x4d, 0xdb, 0xfe, 0xea, - 0xc6, 0xcd, 0x2b, 0x74, 0x70, 0x9c, 0x56, 0xcf, 0xec, 0x8a, 0xb8, 0x78, 0x1b, 0xc5, 0x9b, 0x53, - 0xac, 0xbe, 0x50, 0xee, 0x97, 0x5d, 0xbe, 0x2d, 0xc2, 0x96, 0xbe, 0xa2, 0xb0, 0xe5, 0x56, 0xd6, - 0x96, 0x4c, 0x8b, 0x6f, 0x54, 0x8b, 0x8a, 0xee, 0x94, 0x55, 0x21, 0x59, 0x16, 0xcf, 0xa0, 0xe9, - 0xc8, 0x26, 0xd8, 0xfe, 0xea, 0xea, 0xf9, 0xef, 0xe3, 0x74, 0xf3, 0xaf, 0x18, 0xf5, 0x09, 0x13, - 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x71, 0x7e, 0xe2, 0x82, 0x31, 0x08, 0x00, 0x00, + // 705 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcf, 0x4f, 0x13, 0x41, + 0x18, 0xcd, 0x50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0x05, 0xf9, 0x8e, 0x70, 0x58, 0x04, 0x99, 0x74, + 0x54, 0xd0, 0xb6, 0x1f, 0xe3, 0xd7, 0x82, 0xb4, 0xc6, 0x13, 0xfe, 0xb4, 0xf6, 0x4b, 0x32, 0xf7, + 0x8f, 0x92, 0xd2, 0x89, 0x0d, 0xd3, 0x57, 0x5b, 0xf1, 0xad, 0x4c, 0x4b, 0x67, 0xb4, 0x72, 0x0f, + 0x25, 0xc9, 0x2f, 0x84, 0xc3, 0x22, 0xac, 0x9d, 0xdd, 0xb4, 0xed, 0xaf, 0x6e, 0xdc, 0xbc, 0x45, + 0xfb, 0x47, 0x49, 0xf5, 0xc4, 0xae, 0x88, 0x8a, 0xd9, 0x28, 0x66, 0x4e, 0xbe, 0xfc, 0x5a, 0x79, + 0x58, 0x74, 0xf9, 0x96, 0x08, 0x5b, 0xf2, 0x82, 0xc2, 0x96, 0x61, 0x58, 0x0a, 0xe8, 0xa4, 0xae, + 0xd5, 0x6a, 0x71, 0x75, 0xc9, 0xb4, 0xf8, 0x7a, 0x39, 0xaf, 0xe8, 0x4e, 0x51, 0x15, 0x70, 0x59, + 0x8c, 0x4a, 0xd3, 0x91, 0x4d, 0xb0, 0x7d, 0x85, 0xea, 0xe9, 0x33, 0x74, 0xba, 0xf1, 0x2f, 0x1f, + 0xf6, 0x09, 0x13, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x7a, 0x12, 0x01, 0xbf, 0x55, 0x08, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // DatabaseServiceClient is the client API for DatabaseService service. // @@ -479,10 +480,10 @@ type DatabaseServiceClient interface { } type databaseServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewDatabaseServiceClient(cc *grpc.ClientConn) DatabaseServiceClient { +func NewDatabaseServiceClient(cc grpc.ClientConnInterface) DatabaseServiceClient { return &databaseServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/database_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/database_service.pbext.go new file mode 100644 index 000000000..e9d7b06cc --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/database_service.pbext.go @@ -0,0 +1,63 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package clickhouse + +func (m *GetDatabaseRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetDatabaseRequest) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *ListDatabasesRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListDatabasesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListDatabasesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListDatabasesResponse) SetDatabases(v []*Database) { + m.Databases = v +} + +func (m *ListDatabasesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateDatabaseRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateDatabaseRequest) SetDatabaseSpec(v *DatabaseSpec) { + m.DatabaseSpec = v +} + +func (m *CreateDatabaseMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateDatabaseMetadata) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *DeleteDatabaseRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteDatabaseRequest) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *DeleteDatabaseMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteDatabaseMetadata) SetDatabaseName(v string) { + m.DatabaseName = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/format_schema.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/format_schema.pb.go new file mode 100644 index 000000000..c55844f40 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/format_schema.pb.go @@ -0,0 +1,144 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/mdb/clickhouse/v1/format_schema.proto + +package clickhouse + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FormatSchemaType int32 + +const ( + FormatSchemaType_FORMAT_SCHEMA_TYPE_UNSPECIFIED FormatSchemaType = 0 + FormatSchemaType_FORMAT_SCHEMA_TYPE_PROTOBUF FormatSchemaType = 1 + FormatSchemaType_FORMAT_SCHEMA_TYPE_CAPNPROTO FormatSchemaType = 2 +) + +var FormatSchemaType_name = map[int32]string{ + 0: "FORMAT_SCHEMA_TYPE_UNSPECIFIED", + 1: "FORMAT_SCHEMA_TYPE_PROTOBUF", + 2: "FORMAT_SCHEMA_TYPE_CAPNPROTO", +} + +var FormatSchemaType_value = map[string]int32{ + "FORMAT_SCHEMA_TYPE_UNSPECIFIED": 0, + "FORMAT_SCHEMA_TYPE_PROTOBUF": 1, + "FORMAT_SCHEMA_TYPE_CAPNPROTO": 2, +} + +func (x FormatSchemaType) String() string { + return proto.EnumName(FormatSchemaType_name, int32(x)) +} + +func (FormatSchemaType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4c7a760fa94ec85b, []int{0} +} + +type FormatSchema struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Type FormatSchemaType `protobuf:"varint,3,opt,name=type,proto3,enum=yandex.cloud.mdb.clickhouse.v1.FormatSchemaType" json:"type,omitempty"` + Uri string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FormatSchema) Reset() { *m = FormatSchema{} } +func (m *FormatSchema) String() string { return proto.CompactTextString(m) } +func (*FormatSchema) ProtoMessage() {} +func (*FormatSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_4c7a760fa94ec85b, []int{0} +} + +func (m *FormatSchema) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FormatSchema.Unmarshal(m, b) +} +func (m *FormatSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FormatSchema.Marshal(b, m, deterministic) +} +func (m *FormatSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_FormatSchema.Merge(m, src) +} +func (m *FormatSchema) XXX_Size() int { + return xxx_messageInfo_FormatSchema.Size(m) +} +func (m *FormatSchema) XXX_DiscardUnknown() { + xxx_messageInfo_FormatSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_FormatSchema proto.InternalMessageInfo + +func (m *FormatSchema) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *FormatSchema) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *FormatSchema) GetType() FormatSchemaType { + if m != nil { + return m.Type + } + return FormatSchemaType_FORMAT_SCHEMA_TYPE_UNSPECIFIED +} + +func (m *FormatSchema) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func init() { + proto.RegisterEnum("yandex.cloud.mdb.clickhouse.v1.FormatSchemaType", FormatSchemaType_name, FormatSchemaType_value) + proto.RegisterType((*FormatSchema)(nil), "yandex.cloud.mdb.clickhouse.v1.FormatSchema") +} + +func init() { + proto.RegisterFile("yandex/cloud/mdb/clickhouse/v1/format_schema.proto", fileDescriptor_4c7a760fa94ec85b) +} + +var fileDescriptor_4c7a760fa94ec85b = []byte{ + // 303 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x4d, 0x4b, 0xc3, 0x30, + 0x18, 0xc7, 0xed, 0x36, 0x84, 0x3d, 0x88, 0x94, 0x9c, 0x0a, 0xea, 0x1c, 0x3b, 0x0d, 0x61, 0x89, + 0x9b, 0x47, 0x4f, 0x7b, 0x69, 0x71, 0x87, 0x6d, 0xa5, 0xeb, 0x0e, 0x7a, 0x29, 0x6d, 0x12, 0xdb, + 0x62, 0xd3, 0x94, 0xbe, 0x0c, 0xfb, 0x51, 0xfc, 0xb6, 0x62, 0x2a, 0xcc, 0x97, 0xb1, 0xdb, 0x93, + 0xe4, 0xf7, 0xcb, 0xc3, 0x9f, 0x3f, 0x4c, 0x6a, 0x3f, 0x65, 0xfc, 0x9d, 0xd0, 0x44, 0x56, 0x8c, + 0x08, 0x16, 0x10, 0x9a, 0xc4, 0xf4, 0x2d, 0x92, 0x55, 0xc1, 0xc9, 0x7e, 0x4c, 0x5e, 0x65, 0x2e, + 0xfc, 0xd2, 0x2b, 0x68, 0xc4, 0x85, 0x8f, 0xb3, 0x5c, 0x96, 0x12, 0xf5, 0x1a, 0x07, 0x2b, 0x07, + 0x0b, 0x16, 0xe0, 0x83, 0x83, 0xf7, 0xe3, 0xc1, 0x87, 0x06, 0x17, 0x96, 0xf2, 0xb6, 0x4a, 0x43, + 0x08, 0x3a, 0xa9, 0x2f, 0xb8, 0xa1, 0xf5, 0xb5, 0x61, 0xd7, 0x51, 0x33, 0xba, 0x01, 0xa0, 0x49, + 0x55, 0x94, 0x3c, 0xf7, 0x62, 0x66, 0xb4, 0xd4, 0x4b, 0xf7, 0xfb, 0x66, 0xc9, 0xd0, 0x02, 0x3a, + 0x65, 0x9d, 0x71, 0xa3, 0xdd, 0xd7, 0x86, 0x97, 0x93, 0x7b, 0x7c, 0x7a, 0x25, 0xfe, 0xb9, 0xce, + 0xad, 0x33, 0xee, 0x28, 0x1b, 0xe9, 0xd0, 0xae, 0xf2, 0xd8, 0xe8, 0xa8, 0xdf, 0xbf, 0xc6, 0xbb, + 0x1a, 0xf4, 0xbf, 0x2c, 0x1a, 0x40, 0xcf, 0xda, 0x38, 0xab, 0xa9, 0xeb, 0x6d, 0xe7, 0x4f, 0xe6, + 0x6a, 0xea, 0xb9, 0xcf, 0xb6, 0xe9, 0xed, 0xd6, 0x5b, 0xdb, 0x9c, 0x2f, 0xad, 0xa5, 0xb9, 0xd0, + 0xcf, 0xd0, 0x2d, 0x5c, 0x1d, 0x61, 0x6c, 0x67, 0xe3, 0x6e, 0x66, 0x3b, 0x4b, 0xd7, 0x50, 0x1f, + 0xae, 0x8f, 0x00, 0xf3, 0xa9, 0xbd, 0x56, 0x90, 0xde, 0x9a, 0x15, 0x30, 0xf8, 0x95, 0xc2, 0xcf, + 0xe2, 0xff, 0x49, 0x5e, 0x56, 0x61, 0x5c, 0x46, 0x55, 0x80, 0xa9, 0x14, 0xa4, 0xc1, 0x47, 0x4d, + 0x37, 0xa1, 0x1c, 0x85, 0x3c, 0x55, 0x0d, 0x90, 0xd3, 0xa5, 0x3d, 0x1e, 0x4e, 0xc1, 0xb9, 0x12, + 0x1e, 0x3e, 0x03, 0x00, 0x00, 0xff, 0xff, 0x49, 0xaa, 0x8c, 0x28, 0xe8, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/format_schema.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/format_schema.pbext.go new file mode 100644 index 000000000..8b43b6ef6 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/format_schema.pbext.go @@ -0,0 +1,19 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package clickhouse + +func (m *FormatSchema) SetName(v string) { + m.Name = v +} + +func (m *FormatSchema) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *FormatSchema) SetType(v FormatSchemaType) { + m.Type = v +} + +func (m *FormatSchema) SetUri(v string) { + m.Uri = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/format_schema_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/format_schema_service.pb.go new file mode 100644 index 000000000..66a6c04e4 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/format_schema_service.pb.go @@ -0,0 +1,789 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/mdb/clickhouse/v1/format_schema_service.proto + +package clickhouse + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud/api" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GetFormatSchemaRequest struct { + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + FormatSchemaName string `protobuf:"bytes,2,opt,name=format_schema_name,json=formatSchemaName,proto3" json:"format_schema_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetFormatSchemaRequest) Reset() { *m = GetFormatSchemaRequest{} } +func (m *GetFormatSchemaRequest) String() string { return proto.CompactTextString(m) } +func (*GetFormatSchemaRequest) ProtoMessage() {} +func (*GetFormatSchemaRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_7a66ff94ae18f1fd, []int{0} +} + +func (m *GetFormatSchemaRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetFormatSchemaRequest.Unmarshal(m, b) +} +func (m *GetFormatSchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetFormatSchemaRequest.Marshal(b, m, deterministic) +} +func (m *GetFormatSchemaRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetFormatSchemaRequest.Merge(m, src) +} +func (m *GetFormatSchemaRequest) XXX_Size() int { + return xxx_messageInfo_GetFormatSchemaRequest.Size(m) +} +func (m *GetFormatSchemaRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetFormatSchemaRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetFormatSchemaRequest proto.InternalMessageInfo + +func (m *GetFormatSchemaRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *GetFormatSchemaRequest) GetFormatSchemaName() string { + if m != nil { + return m.FormatSchemaName + } + return "" +} + +type ListFormatSchemasRequest struct { + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListFormatSchemasRequest) Reset() { *m = ListFormatSchemasRequest{} } +func (m *ListFormatSchemasRequest) String() string { return proto.CompactTextString(m) } +func (*ListFormatSchemasRequest) ProtoMessage() {} +func (*ListFormatSchemasRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_7a66ff94ae18f1fd, []int{1} +} + +func (m *ListFormatSchemasRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListFormatSchemasRequest.Unmarshal(m, b) +} +func (m *ListFormatSchemasRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListFormatSchemasRequest.Marshal(b, m, deterministic) +} +func (m *ListFormatSchemasRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListFormatSchemasRequest.Merge(m, src) +} +func (m *ListFormatSchemasRequest) XXX_Size() int { + return xxx_messageInfo_ListFormatSchemasRequest.Size(m) +} +func (m *ListFormatSchemasRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListFormatSchemasRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListFormatSchemasRequest proto.InternalMessageInfo + +func (m *ListFormatSchemasRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *ListFormatSchemasRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListFormatSchemasRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListFormatSchemasResponse struct { + FormatSchemas []*FormatSchema `protobuf:"bytes,1,rep,name=format_schemas,json=formatSchemas,proto3" json:"format_schemas,omitempty"` + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListFormatSchemasResponse) Reset() { *m = ListFormatSchemasResponse{} } +func (m *ListFormatSchemasResponse) String() string { return proto.CompactTextString(m) } +func (*ListFormatSchemasResponse) ProtoMessage() {} +func (*ListFormatSchemasResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_7a66ff94ae18f1fd, []int{2} +} + +func (m *ListFormatSchemasResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListFormatSchemasResponse.Unmarshal(m, b) +} +func (m *ListFormatSchemasResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListFormatSchemasResponse.Marshal(b, m, deterministic) +} +func (m *ListFormatSchemasResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListFormatSchemasResponse.Merge(m, src) +} +func (m *ListFormatSchemasResponse) XXX_Size() int { + return xxx_messageInfo_ListFormatSchemasResponse.Size(m) +} +func (m *ListFormatSchemasResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListFormatSchemasResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListFormatSchemasResponse proto.InternalMessageInfo + +func (m *ListFormatSchemasResponse) GetFormatSchemas() []*FormatSchema { + if m != nil { + return m.FormatSchemas + } + return nil +} + +func (m *ListFormatSchemasResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type CreateFormatSchemaRequest struct { + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + FormatSchemaName string `protobuf:"bytes,2,opt,name=format_schema_name,json=formatSchemaName,proto3" json:"format_schema_name,omitempty"` + Type FormatSchemaType `protobuf:"varint,3,opt,name=type,proto3,enum=yandex.cloud.mdb.clickhouse.v1.FormatSchemaType" json:"type,omitempty"` + Uri string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateFormatSchemaRequest) Reset() { *m = CreateFormatSchemaRequest{} } +func (m *CreateFormatSchemaRequest) String() string { return proto.CompactTextString(m) } +func (*CreateFormatSchemaRequest) ProtoMessage() {} +func (*CreateFormatSchemaRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_7a66ff94ae18f1fd, []int{3} +} + +func (m *CreateFormatSchemaRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateFormatSchemaRequest.Unmarshal(m, b) +} +func (m *CreateFormatSchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateFormatSchemaRequest.Marshal(b, m, deterministic) +} +func (m *CreateFormatSchemaRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateFormatSchemaRequest.Merge(m, src) +} +func (m *CreateFormatSchemaRequest) XXX_Size() int { + return xxx_messageInfo_CreateFormatSchemaRequest.Size(m) +} +func (m *CreateFormatSchemaRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateFormatSchemaRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateFormatSchemaRequest proto.InternalMessageInfo + +func (m *CreateFormatSchemaRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *CreateFormatSchemaRequest) GetFormatSchemaName() string { + if m != nil { + return m.FormatSchemaName + } + return "" +} + +func (m *CreateFormatSchemaRequest) GetType() FormatSchemaType { + if m != nil { + return m.Type + } + return FormatSchemaType_FORMAT_SCHEMA_TYPE_UNSPECIFIED +} + +func (m *CreateFormatSchemaRequest) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +type CreateFormatSchemaMetadata struct { + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + FormatSchemaName string `protobuf:"bytes,2,opt,name=format_schema_name,json=formatSchemaName,proto3" json:"format_schema_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateFormatSchemaMetadata) Reset() { *m = CreateFormatSchemaMetadata{} } +func (m *CreateFormatSchemaMetadata) String() string { return proto.CompactTextString(m) } +func (*CreateFormatSchemaMetadata) ProtoMessage() {} +func (*CreateFormatSchemaMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_7a66ff94ae18f1fd, []int{4} +} + +func (m *CreateFormatSchemaMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateFormatSchemaMetadata.Unmarshal(m, b) +} +func (m *CreateFormatSchemaMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateFormatSchemaMetadata.Marshal(b, m, deterministic) +} +func (m *CreateFormatSchemaMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateFormatSchemaMetadata.Merge(m, src) +} +func (m *CreateFormatSchemaMetadata) XXX_Size() int { + return xxx_messageInfo_CreateFormatSchemaMetadata.Size(m) +} +func (m *CreateFormatSchemaMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CreateFormatSchemaMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateFormatSchemaMetadata proto.InternalMessageInfo + +func (m *CreateFormatSchemaMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *CreateFormatSchemaMetadata) GetFormatSchemaName() string { + if m != nil { + return m.FormatSchemaName + } + return "" +} + +type UpdateFormatSchemaRequest struct { + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + FormatSchemaName string `protobuf:"bytes,2,opt,name=format_schema_name,json=formatSchemaName,proto3" json:"format_schema_name,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + Uri string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateFormatSchemaRequest) Reset() { *m = UpdateFormatSchemaRequest{} } +func (m *UpdateFormatSchemaRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateFormatSchemaRequest) ProtoMessage() {} +func (*UpdateFormatSchemaRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_7a66ff94ae18f1fd, []int{5} +} + +func (m *UpdateFormatSchemaRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateFormatSchemaRequest.Unmarshal(m, b) +} +func (m *UpdateFormatSchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateFormatSchemaRequest.Marshal(b, m, deterministic) +} +func (m *UpdateFormatSchemaRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateFormatSchemaRequest.Merge(m, src) +} +func (m *UpdateFormatSchemaRequest) XXX_Size() int { + return xxx_messageInfo_UpdateFormatSchemaRequest.Size(m) +} +func (m *UpdateFormatSchemaRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateFormatSchemaRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateFormatSchemaRequest proto.InternalMessageInfo + +func (m *UpdateFormatSchemaRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *UpdateFormatSchemaRequest) GetFormatSchemaName() string { + if m != nil { + return m.FormatSchemaName + } + return "" +} + +func (m *UpdateFormatSchemaRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdateFormatSchemaRequest) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +type UpdateFormatSchemaMetadata struct { + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + FormatSchemaName string `protobuf:"bytes,2,opt,name=format_schema_name,json=formatSchemaName,proto3" json:"format_schema_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateFormatSchemaMetadata) Reset() { *m = UpdateFormatSchemaMetadata{} } +func (m *UpdateFormatSchemaMetadata) String() string { return proto.CompactTextString(m) } +func (*UpdateFormatSchemaMetadata) ProtoMessage() {} +func (*UpdateFormatSchemaMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_7a66ff94ae18f1fd, []int{6} +} + +func (m *UpdateFormatSchemaMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateFormatSchemaMetadata.Unmarshal(m, b) +} +func (m *UpdateFormatSchemaMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateFormatSchemaMetadata.Marshal(b, m, deterministic) +} +func (m *UpdateFormatSchemaMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateFormatSchemaMetadata.Merge(m, src) +} +func (m *UpdateFormatSchemaMetadata) XXX_Size() int { + return xxx_messageInfo_UpdateFormatSchemaMetadata.Size(m) +} +func (m *UpdateFormatSchemaMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateFormatSchemaMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateFormatSchemaMetadata proto.InternalMessageInfo + +func (m *UpdateFormatSchemaMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *UpdateFormatSchemaMetadata) GetFormatSchemaName() string { + if m != nil { + return m.FormatSchemaName + } + return "" +} + +type DeleteFormatSchemaRequest struct { + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + FormatSchemaName string `protobuf:"bytes,2,opt,name=format_schema_name,json=formatSchemaName,proto3" json:"format_schema_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteFormatSchemaRequest) Reset() { *m = DeleteFormatSchemaRequest{} } +func (m *DeleteFormatSchemaRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteFormatSchemaRequest) ProtoMessage() {} +func (*DeleteFormatSchemaRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_7a66ff94ae18f1fd, []int{7} +} + +func (m *DeleteFormatSchemaRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteFormatSchemaRequest.Unmarshal(m, b) +} +func (m *DeleteFormatSchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteFormatSchemaRequest.Marshal(b, m, deterministic) +} +func (m *DeleteFormatSchemaRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteFormatSchemaRequest.Merge(m, src) +} +func (m *DeleteFormatSchemaRequest) XXX_Size() int { + return xxx_messageInfo_DeleteFormatSchemaRequest.Size(m) +} +func (m *DeleteFormatSchemaRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteFormatSchemaRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteFormatSchemaRequest proto.InternalMessageInfo + +func (m *DeleteFormatSchemaRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *DeleteFormatSchemaRequest) GetFormatSchemaName() string { + if m != nil { + return m.FormatSchemaName + } + return "" +} + +type DeleteFormatSchemaMetadata struct { + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + FormatSchemaName string `protobuf:"bytes,2,opt,name=format_schema_name,json=formatSchemaName,proto3" json:"format_schema_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteFormatSchemaMetadata) Reset() { *m = DeleteFormatSchemaMetadata{} } +func (m *DeleteFormatSchemaMetadata) String() string { return proto.CompactTextString(m) } +func (*DeleteFormatSchemaMetadata) ProtoMessage() {} +func (*DeleteFormatSchemaMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_7a66ff94ae18f1fd, []int{8} +} + +func (m *DeleteFormatSchemaMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteFormatSchemaMetadata.Unmarshal(m, b) +} +func (m *DeleteFormatSchemaMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteFormatSchemaMetadata.Marshal(b, m, deterministic) +} +func (m *DeleteFormatSchemaMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteFormatSchemaMetadata.Merge(m, src) +} +func (m *DeleteFormatSchemaMetadata) XXX_Size() int { + return xxx_messageInfo_DeleteFormatSchemaMetadata.Size(m) +} +func (m *DeleteFormatSchemaMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteFormatSchemaMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteFormatSchemaMetadata proto.InternalMessageInfo + +func (m *DeleteFormatSchemaMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *DeleteFormatSchemaMetadata) GetFormatSchemaName() string { + if m != nil { + return m.FormatSchemaName + } + return "" +} + +func init() { + proto.RegisterType((*GetFormatSchemaRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.GetFormatSchemaRequest") + proto.RegisterType((*ListFormatSchemasRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.ListFormatSchemasRequest") + proto.RegisterType((*ListFormatSchemasResponse)(nil), "yandex.cloud.mdb.clickhouse.v1.ListFormatSchemasResponse") + proto.RegisterType((*CreateFormatSchemaRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.CreateFormatSchemaRequest") + proto.RegisterType((*CreateFormatSchemaMetadata)(nil), "yandex.cloud.mdb.clickhouse.v1.CreateFormatSchemaMetadata") + proto.RegisterType((*UpdateFormatSchemaRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.UpdateFormatSchemaRequest") + proto.RegisterType((*UpdateFormatSchemaMetadata)(nil), "yandex.cloud.mdb.clickhouse.v1.UpdateFormatSchemaMetadata") + proto.RegisterType((*DeleteFormatSchemaRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.DeleteFormatSchemaRequest") + proto.RegisterType((*DeleteFormatSchemaMetadata)(nil), "yandex.cloud.mdb.clickhouse.v1.DeleteFormatSchemaMetadata") +} + +func init() { + proto.RegisterFile("yandex/cloud/mdb/clickhouse/v1/format_schema_service.proto", fileDescriptor_7a66ff94ae18f1fd) +} + +var fileDescriptor_7a66ff94ae18f1fd = []byte{ + // 831 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x96, 0xcd, 0x4f, 0x1b, 0x47, + 0x18, 0xc6, 0x35, 0xd8, 0xb5, 0xf0, 0xf0, 0x51, 0x34, 0x55, 0x91, 0x6d, 0x15, 0x44, 0xf7, 0x40, + 0x91, 0x8b, 0x77, 0xbd, 0x46, 0x45, 0xe5, 0x4b, 0x55, 0xdd, 0x16, 0xd4, 0x0a, 0x4a, 0xbb, 0xa6, + 0xaa, 0x44, 0x55, 0x59, 0x63, 0xef, 0xd8, 0xac, 0xec, 0xfd, 0xa8, 0x67, 0xd6, 0xc2, 0x20, 0x2e, + 0x3d, 0x45, 0x1c, 0x72, 0x41, 0x8a, 0xa2, 0xfc, 0x19, 0xf9, 0x07, 0x72, 0x89, 0x04, 0xe7, 0xe4, + 0x98, 0x6b, 0x22, 0x45, 0xb9, 0x25, 0x97, 0x48, 0x9c, 0xa2, 0x9d, 0x31, 0x78, 0x37, 0x8b, 0x6d, + 0x20, 0x20, 0x71, 0xdb, 0xdd, 0xf7, 0x7d, 0x67, 0x9f, 0xdf, 0xb3, 0x3b, 0xcf, 0x2e, 0x5c, 0x6c, + 0x61, 0x4b, 0x27, 0xbb, 0x4a, 0xb9, 0x6e, 0xbb, 0xba, 0x62, 0xea, 0x25, 0xa5, 0x5c, 0x37, 0xca, + 0xb5, 0x1d, 0xdb, 0xa5, 0x44, 0x69, 0xaa, 0x4a, 0xc5, 0x6e, 0x98, 0x98, 0x15, 0x69, 0x79, 0x87, + 0x98, 0xb8, 0x48, 0x49, 0xa3, 0x69, 0x94, 0x89, 0xec, 0x34, 0x6c, 0x66, 0xa3, 0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x83, 0x06, 0x64, 0xd1, 0x6b, 0xe9, 0xfa, 0x06, 0xc6, 0x1d, 0x5c, 0x25, 0x45, 0x6a, + 0xec, 0x09, 0x39, 0x91, 0x3c, 0x3c, 0x3d, 0x56, 0x63, 0xcb, 0x2b, 0x6a, 0x36, 0x9b, 0xd5, 0x06, + 0xbd, 0x62, 0xc1, 0xd8, 0x23, 0x68, 0x06, 0x42, 0xde, 0xc8, 0xec, 0x1a, 0xb1, 0x12, 0x11, 0xbe, + 0x6a, 0xfc, 0xf0, 0x44, 0xfd, 0x8c, 0x77, 0x6a, 0x7c, 0x95, 0x2d, 0xaf, 0x26, 0x3d, 0x04, 0x30, + 0x79, 0x81, 0x38, 0xea, 0xd8, 0x16, 0x25, 0xa8, 0x00, 0x47, 0x03, 0x46, 0xd0, 0x04, 0x98, 0x8a, + 0xcc, 0x0c, 0xe5, 0x66, 0xe5, 0xde, 0xaf, 0x99, 0x1c, 0x78, 0x04, 0x23, 0x7e, 0x4b, 0x28, 0x9a, + 0x86, 0x9f, 0x5b, 0x64, 0x97, 0x15, 0x7d, 0x0a, 0xb9, 0xb5, 0xda, 0x88, 0x77, 0xf9, 0x8f, 0x73, + 0x69, 0xa7, 0x00, 0x26, 0x7f, 0x6a, 0x10, 0xcc, 0xc8, 0xdd, 0x7a, 0xa0, 0xe8, 0x37, 0x18, 0x65, + 0x2d, 0x87, 0x70, 0x5f, 0x47, 0x73, 0xd9, 0xab, 0x78, 0xb1, 0xd5, 0x72, 0x48, 0x3e, 0xea, 0xdd, + 0x51, 0xe3, 0x6b, 0xa0, 0x71, 0x18, 0x71, 0x1b, 0x46, 0x22, 0xca, 0xa5, 0x88, 0x82, 0x77, 0x41, + 0x32, 0x60, 0x2a, 0xcc, 0xbe, 0x41, 0x18, 0xd6, 0x31, 0xc3, 0x68, 0x22, 0x0c, 0xef, 0xc7, 0x9d, + 0xed, 0x8e, 0x7b, 0xc1, 0xfb, 0xf9, 0x0a, 0xc0, 0xe4, 0x5f, 0x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xfe, + 0xab, 0x1c, 0xed, 0x07, 0xe9, 0x13, 0xd0, 0x16, 0x41, 0x1a, 0xbd, 0x05, 0x30, 0x26, 0xb6, 0x7b, + 0x7f, 0xba, 0xae, 0xe9, 0x77, 0x19, 0xba, 0x7b, 0x40, 0xe0, 0xf5, 0xc8, 0x96, 0x30, 0xde, 0x56, + 0xee, 0xa6, 0x5f, 0x48, 0x8f, 0xf9, 0x3d, 0x80, 0x31, 0xb1, 0xbd, 0xfb, 0x33, 0x77, 0x8d, 0xa7, + 0xcb, 0x30, 0xdf, 0xf7, 0x98, 0xe7, 0x7a, 0x66, 0xc9, 0x97, 0x1f, 0xc7, 0xf4, 0x2f, 0xa6, 0xc3, + 0x5a, 0x62, 0x37, 0xa6, 0x6f, 0x1a, 0x3e, 0x4f, 0xa1, 0x14, 0x10, 0x8d, 0x1d, 0x23, 0xcc, 0xbc, + 0xbd, 0x51, 0x35, 0xd8, 0x8e, 0x5b, 0x92, 0xcb, 0xb6, 0xa9, 0x88, 0xf6, 0x8c, 0xf8, 0xbd, 0xac, + 0xda, 0x99, 0x2a, 0xb1, 0xb8, 0x54, 0xa5, 0xf7, 0x7f, 0xe7, 0x52, 0xe7, 0xac, 0x14, 0xe3, 0x03, + 0x73, 0x1f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x98, 0x05, 0xc8, 0x5b, 0xb0, 0x0b, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// FormatSchemaServiceClient is the client API for FormatSchemaService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type FormatSchemaServiceClient interface { + Get(ctx context.Context, in *GetFormatSchemaRequest, opts ...grpc.CallOption) (*FormatSchema, error) + List(ctx context.Context, in *ListFormatSchemasRequest, opts ...grpc.CallOption) (*ListFormatSchemasResponse, error) + Create(ctx context.Context, in *CreateFormatSchemaRequest, opts ...grpc.CallOption) (*operation.Operation, error) + Update(ctx context.Context, in *UpdateFormatSchemaRequest, opts ...grpc.CallOption) (*operation.Operation, error) + Delete(ctx context.Context, in *DeleteFormatSchemaRequest, opts ...grpc.CallOption) (*operation.Operation, error) +} + +type formatSchemaServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewFormatSchemaServiceClient(cc grpc.ClientConnInterface) FormatSchemaServiceClient { + return &formatSchemaServiceClient{cc} +} + +func (c *formatSchemaServiceClient) Get(ctx context.Context, in *GetFormatSchemaRequest, opts ...grpc.CallOption) (*FormatSchema, error) { + out := new(FormatSchema) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.FormatSchemaService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *formatSchemaServiceClient) List(ctx context.Context, in *ListFormatSchemasRequest, opts ...grpc.CallOption) (*ListFormatSchemasResponse, error) { + out := new(ListFormatSchemasResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.FormatSchemaService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *formatSchemaServiceClient) Create(ctx context.Context, in *CreateFormatSchemaRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.FormatSchemaService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *formatSchemaServiceClient) Update(ctx context.Context, in *UpdateFormatSchemaRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.FormatSchemaService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *formatSchemaServiceClient) Delete(ctx context.Context, in *DeleteFormatSchemaRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.FormatSchemaService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// FormatSchemaServiceServer is the server API for FormatSchemaService service. +type FormatSchemaServiceServer interface { + Get(context.Context, *GetFormatSchemaRequest) (*FormatSchema, error) + List(context.Context, *ListFormatSchemasRequest) (*ListFormatSchemasResponse, error) + Create(context.Context, *CreateFormatSchemaRequest) (*operation.Operation, error) + Update(context.Context, *UpdateFormatSchemaRequest) (*operation.Operation, error) + Delete(context.Context, *DeleteFormatSchemaRequest) (*operation.Operation, error) +} + +// UnimplementedFormatSchemaServiceServer can be embedded to have forward compatible implementations. +type UnimplementedFormatSchemaServiceServer struct { +} + +func (*UnimplementedFormatSchemaServiceServer) Get(ctx context.Context, req *GetFormatSchemaRequest) (*FormatSchema, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedFormatSchemaServiceServer) List(ctx context.Context, req *ListFormatSchemasRequest) (*ListFormatSchemasResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (*UnimplementedFormatSchemaServiceServer) Create(ctx context.Context, req *CreateFormatSchemaRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (*UnimplementedFormatSchemaServiceServer) Update(ctx context.Context, req *UpdateFormatSchemaRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedFormatSchemaServiceServer) Delete(ctx context.Context, req *DeleteFormatSchemaRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} + +func RegisterFormatSchemaServiceServer(s *grpc.Server, srv FormatSchemaServiceServer) { + s.RegisterService(&_FormatSchemaService_serviceDesc, srv) +} + +func _FormatSchemaService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetFormatSchemaRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FormatSchemaServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.clickhouse.v1.FormatSchemaService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FormatSchemaServiceServer).Get(ctx, req.(*GetFormatSchemaRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FormatSchemaService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListFormatSchemasRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FormatSchemaServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.clickhouse.v1.FormatSchemaService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FormatSchemaServiceServer).List(ctx, req.(*ListFormatSchemasRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FormatSchemaService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateFormatSchemaRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FormatSchemaServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.clickhouse.v1.FormatSchemaService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FormatSchemaServiceServer).Create(ctx, req.(*CreateFormatSchemaRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FormatSchemaService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateFormatSchemaRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FormatSchemaServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.clickhouse.v1.FormatSchemaService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FormatSchemaServiceServer).Update(ctx, req.(*UpdateFormatSchemaRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FormatSchemaService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteFormatSchemaRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FormatSchemaServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.clickhouse.v1.FormatSchemaService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FormatSchemaServiceServer).Delete(ctx, req.(*DeleteFormatSchemaRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _FormatSchemaService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.mdb.clickhouse.v1.FormatSchemaService", + HandlerType: (*FormatSchemaServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Get", + Handler: _FormatSchemaService_Get_Handler, + }, + { + MethodName: "List", + Handler: _FormatSchemaService_List_Handler, + }, + { + MethodName: "Create", + Handler: _FormatSchemaService_Create_Handler, + }, + { + MethodName: "Update", + Handler: _FormatSchemaService_Update_Handler, + }, + { + MethodName: "Delete", + Handler: _FormatSchemaService_Delete_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/mdb/clickhouse/v1/format_schema_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/format_schema_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/format_schema_service.pbext.go new file mode 100644 index 000000000..152feaf0c --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/format_schema_service.pbext.go @@ -0,0 +1,99 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package clickhouse + +import ( + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetFormatSchemaRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetFormatSchemaRequest) SetFormatSchemaName(v string) { + m.FormatSchemaName = v +} + +func (m *ListFormatSchemasRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListFormatSchemasRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListFormatSchemasRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListFormatSchemasResponse) SetFormatSchemas(v []*FormatSchema) { + m.FormatSchemas = v +} + +func (m *ListFormatSchemasResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateFormatSchemaRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateFormatSchemaRequest) SetFormatSchemaName(v string) { + m.FormatSchemaName = v +} + +func (m *CreateFormatSchemaRequest) SetType(v FormatSchemaType) { + m.Type = v +} + +func (m *CreateFormatSchemaRequest) SetUri(v string) { + m.Uri = v +} + +func (m *CreateFormatSchemaMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateFormatSchemaMetadata) SetFormatSchemaName(v string) { + m.FormatSchemaName = v +} + +func (m *UpdateFormatSchemaRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateFormatSchemaRequest) SetFormatSchemaName(v string) { + m.FormatSchemaName = v +} + +func (m *UpdateFormatSchemaRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateFormatSchemaRequest) SetUri(v string) { + m.Uri = v +} + +func (m *UpdateFormatSchemaMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateFormatSchemaMetadata) SetFormatSchemaName(v string) { + m.FormatSchemaName = v +} + +func (m *DeleteFormatSchemaRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteFormatSchemaRequest) SetFormatSchemaName(v string) { + m.FormatSchemaName = v +} + +func (m *DeleteFormatSchemaMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteFormatSchemaMetadata) SetFormatSchemaName(v string) { + m.FormatSchemaName = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/ml_model.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/ml_model.pb.go new file mode 100644 index 000000000..fa3c38fff --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/ml_model.pb.go @@ -0,0 +1,145 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/mdb/clickhouse/v1/ml_model.proto + +package clickhouse + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type MlModelType int32 + +const ( + MlModelType_ML_MODEL_TYPE_UNSPECIFIED MlModelType = 0 + // CatBoost model. + MlModelType_ML_MODEL_TYPE_CATBOOST MlModelType = 1 +) + +var MlModelType_name = map[int32]string{ + 0: "ML_MODEL_TYPE_UNSPECIFIED", + 1: "ML_MODEL_TYPE_CATBOOST", +} + +var MlModelType_value = map[string]int32{ + "ML_MODEL_TYPE_UNSPECIFIED": 0, + "ML_MODEL_TYPE_CATBOOST": 1, +} + +func (x MlModelType) String() string { + return proto.EnumName(MlModelType_name, int32(x)) +} + +func (MlModelType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_94ab55beb9dff409, []int{0} +} + +type MlModel struct { + // Name of the the model. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // ID of the ClickHouse cluster that the model belongs to. + ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Type of the model. + Type MlModelType `protobuf:"varint,3,opt,name=type,proto3,enum=yandex.cloud.mdb.clickhouse.v1.MlModelType" json:"type,omitempty"` + // Model file URL. You can only use models stored in Yandex Object Storage. + Uri string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MlModel) Reset() { *m = MlModel{} } +func (m *MlModel) String() string { return proto.CompactTextString(m) } +func (*MlModel) ProtoMessage() {} +func (*MlModel) Descriptor() ([]byte, []int) { + return fileDescriptor_94ab55beb9dff409, []int{0} +} + +func (m *MlModel) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MlModel.Unmarshal(m, b) +} +func (m *MlModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MlModel.Marshal(b, m, deterministic) +} +func (m *MlModel) XXX_Merge(src proto.Message) { + xxx_messageInfo_MlModel.Merge(m, src) +} +func (m *MlModel) XXX_Size() int { + return xxx_messageInfo_MlModel.Size(m) +} +func (m *MlModel) XXX_DiscardUnknown() { + xxx_messageInfo_MlModel.DiscardUnknown(m) +} + +var xxx_messageInfo_MlModel proto.InternalMessageInfo + +func (m *MlModel) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *MlModel) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *MlModel) GetType() MlModelType { + if m != nil { + return m.Type + } + return MlModelType_ML_MODEL_TYPE_UNSPECIFIED +} + +func (m *MlModel) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func init() { + proto.RegisterEnum("yandex.cloud.mdb.clickhouse.v1.MlModelType", MlModelType_name, MlModelType_value) + proto.RegisterType((*MlModel)(nil), "yandex.cloud.mdb.clickhouse.v1.MlModel") +} + +func init() { + proto.RegisterFile("yandex/cloud/mdb/clickhouse/v1/ml_model.proto", fileDescriptor_94ab55beb9dff409) +} + +var fileDescriptor_94ab55beb9dff409 = []byte{ + // 283 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xad, 0x4c, 0xcc, 0x4b, + 0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0xcf, 0x4d, 0x49, 0xd2, 0x4f, 0xce, 0xc9, + 0x4c, 0xce, 0xce, 0xc8, 0x2f, 0x2d, 0x4e, 0xd5, 0x2f, 0x33, 0xd4, 0xcf, 0xcd, 0x89, 0xcf, 0xcd, + 0x4f, 0x49, 0xcd, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x83, 0x28, 0xd7, 0x03, 0x2b, + 0xd7, 0xcb, 0x4d, 0x49, 0xd2, 0x43, 0x28, 0xd7, 0x2b, 0x33, 0x54, 0xea, 0x67, 0xe4, 0x62, 0xf7, + 0xcd, 0xf1, 0x05, 0xe9, 0x10, 0x12, 0xe2, 0x62, 0xc9, 0x4b, 0xcc, 0x4d, 0x95, 0x60, 0x54, 0x60, + 0xd4, 0xe0, 0x0c, 0x02, 0xb3, 0x85, 0x64, 0xb9, 0xb8, 0x92, 0x73, 0x4a, 0x8b, 0x4b, 0x52, 0x8b, + 0xe2, 0x33, 0x53, 0x24, 0x98, 0xc0, 0x32, 0x9c, 0x50, 0x11, 0xcf, 0x14, 0x21, 0x7b, 0x2e, 0x96, + 0x92, 0xca, 0x82, 0x54, 0x09, 0x66, 0x05, 0x46, 0x0d, 0x3e, 0x23, 0x6d, 0x3d, 0xfc, 0xb6, 0xe9, + 0x41, 0x6d, 0x0a, 0xa9, 0x2c, 0x48, 0x0d, 0x02, 0x6b, 0x14, 0x12, 0xe0, 0x62, 0x2e, 0x2d, 0xca, + 0x94, 0x60, 0x01, 0x1b, 0x0c, 0x62, 0x6a, 0x79, 0x70, 0x71, 0x23, 0x29, 0x13, 0x92, 0xe5, 0x92, + 0xf4, 0xf5, 0x89, 0xf7, 0xf5, 0x77, 0x71, 0xf5, 0x89, 0x0f, 0x89, 0x0c, 0x70, 0x8d, 0x0f, 0xf5, + 0x0b, 0x0e, 0x70, 0x75, 0xf6, 0x74, 0xf3, 0x74, 0x75, 0x11, 0x60, 0x10, 0x92, 0xe2, 0x12, 0x43, + 0x95, 0x76, 0x76, 0x0c, 0x71, 0xf2, 0xf7, 0x0f, 0x0e, 0x11, 0x60, 0x74, 0x2a, 0xe6, 0x52, 0x42, + 0x71, 0x4f, 0x62, 0x41, 0x26, 0xa6, 0x9b, 0xa2, 0x7c, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, + 0x92, 0xf3, 0x73, 0xf5, 0x21, 0xca, 0x75, 0x21, 0x61, 0x9b, 0x9e, 0xaf, 0x9b, 0x9e, 0x9a, 0x07, + 0x0e, 0x46, 0x7d, 0xfc, 0x81, 0x6e, 0x8d, 0xe0, 0x25, 0xb1, 0x81, 0x35, 0x18, 0x03, 0x02, 0x00, + 0x00, 0xff, 0xff, 0xce, 0xb6, 0x78, 0x8c, 0xa8, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/ml_model.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/ml_model.pbext.go new file mode 100644 index 000000000..b1f2d069d --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/ml_model.pbext.go @@ -0,0 +1,19 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package clickhouse + +func (m *MlModel) SetName(v string) { + m.Name = v +} + +func (m *MlModel) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *MlModel) SetType(v MlModelType) { + m.Type = v +} + +func (m *MlModel) SetUri(v string) { + m.Uri = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/ml_model_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/ml_model_service.pb.go new file mode 100644 index 000000000..f64c59e2c --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/ml_model_service.pb.go @@ -0,0 +1,840 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/mdb/clickhouse/v1/ml_model_service.proto + +package clickhouse + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud/api" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GetMlModelRequest struct { + // ID of the cluster that the model belongs to. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Name of the model to return. + // + // To get a model name make a [MlModelService.List] request. + MlModelName string `protobuf:"bytes,2,opt,name=ml_model_name,json=mlModelName,proto3" json:"ml_model_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetMlModelRequest) Reset() { *m = GetMlModelRequest{} } +func (m *GetMlModelRequest) String() string { return proto.CompactTextString(m) } +func (*GetMlModelRequest) ProtoMessage() {} +func (*GetMlModelRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f35e6f9d9932e714, []int{0} +} + +func (m *GetMlModelRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetMlModelRequest.Unmarshal(m, b) +} +func (m *GetMlModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetMlModelRequest.Marshal(b, m, deterministic) +} +func (m *GetMlModelRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMlModelRequest.Merge(m, src) +} +func (m *GetMlModelRequest) XXX_Size() int { + return xxx_messageInfo_GetMlModelRequest.Size(m) +} +func (m *GetMlModelRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetMlModelRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetMlModelRequest proto.InternalMessageInfo + +func (m *GetMlModelRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *GetMlModelRequest) GetMlModelName() string { + if m != nil { + return m.MlModelName + } + return "" +} + +type ListMlModelsRequest struct { + // ID of the cluster that models belongs to. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than `page_size`, the service returns a [ListMlModelsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `page_token` to the + // [ListMlModelsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListMlModelsRequest) Reset() { *m = ListMlModelsRequest{} } +func (m *ListMlModelsRequest) String() string { return proto.CompactTextString(m) } +func (*ListMlModelsRequest) ProtoMessage() {} +func (*ListMlModelsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f35e6f9d9932e714, []int{1} +} + +func (m *ListMlModelsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListMlModelsRequest.Unmarshal(m, b) +} +func (m *ListMlModelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListMlModelsRequest.Marshal(b, m, deterministic) +} +func (m *ListMlModelsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListMlModelsRequest.Merge(m, src) +} +func (m *ListMlModelsRequest) XXX_Size() int { + return xxx_messageInfo_ListMlModelsRequest.Size(m) +} +func (m *ListMlModelsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListMlModelsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListMlModelsRequest proto.InternalMessageInfo + +func (m *ListMlModelsRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *ListMlModelsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListMlModelsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListMlModelsResponse struct { + // List of models in the specified cluster. + MlModels []*MlModel `protobuf:"bytes,1,rep,name=ml_models,json=mlModels,proto3" json:"ml_models,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListMlModelsRequest.page_size], use `next_page_token` as the value + // for the [ListMlModelsRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `next_page_token` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListMlModelsResponse) Reset() { *m = ListMlModelsResponse{} } +func (m *ListMlModelsResponse) String() string { return proto.CompactTextString(m) } +func (*ListMlModelsResponse) ProtoMessage() {} +func (*ListMlModelsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f35e6f9d9932e714, []int{2} +} + +func (m *ListMlModelsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListMlModelsResponse.Unmarshal(m, b) +} +func (m *ListMlModelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListMlModelsResponse.Marshal(b, m, deterministic) +} +func (m *ListMlModelsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListMlModelsResponse.Merge(m, src) +} +func (m *ListMlModelsResponse) XXX_Size() int { + return xxx_messageInfo_ListMlModelsResponse.Size(m) +} +func (m *ListMlModelsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListMlModelsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListMlModelsResponse proto.InternalMessageInfo + +func (m *ListMlModelsResponse) GetMlModels() []*MlModel { + if m != nil { + return m.MlModels + } + return nil +} + +func (m *ListMlModelsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type CreateMlModelRequest struct { + // ID of the cluster to create a model in. + // + // To get a cluster ID make a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Model name. The model name is one of the arguments of the modelEvaluate() function, which is used to call the model in ClickHouse. + MlModelName string `protobuf:"bytes,2,opt,name=ml_model_name,json=mlModelName,proto3" json:"ml_model_name,omitempty"` + // Type of the model. + Type MlModelType `protobuf:"varint,3,opt,name=type,proto3,enum=yandex.cloud.mdb.clickhouse.v1.MlModelType" json:"type,omitempty"` + // Model file URL. You can only use models stored in Yandex Object Storage. + Uri string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateMlModelRequest) Reset() { *m = CreateMlModelRequest{} } +func (m *CreateMlModelRequest) String() string { return proto.CompactTextString(m) } +func (*CreateMlModelRequest) ProtoMessage() {} +func (*CreateMlModelRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f35e6f9d9932e714, []int{3} +} + +func (m *CreateMlModelRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateMlModelRequest.Unmarshal(m, b) +} +func (m *CreateMlModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateMlModelRequest.Marshal(b, m, deterministic) +} +func (m *CreateMlModelRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateMlModelRequest.Merge(m, src) +} +func (m *CreateMlModelRequest) XXX_Size() int { + return xxx_messageInfo_CreateMlModelRequest.Size(m) +} +func (m *CreateMlModelRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateMlModelRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateMlModelRequest proto.InternalMessageInfo + +func (m *CreateMlModelRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *CreateMlModelRequest) GetMlModelName() string { + if m != nil { + return m.MlModelName + } + return "" +} + +func (m *CreateMlModelRequest) GetType() MlModelType { + if m != nil { + return m.Type + } + return MlModelType_ML_MODEL_TYPE_UNSPECIFIED +} + +func (m *CreateMlModelRequest) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +type CreateMlModelMetadata struct { + // ID of the cluster that a model is being added to. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Name of the the model that is being created. + MlModelName string `protobuf:"bytes,2,opt,name=ml_model_name,json=mlModelName,proto3" json:"ml_model_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateMlModelMetadata) Reset() { *m = CreateMlModelMetadata{} } +func (m *CreateMlModelMetadata) String() string { return proto.CompactTextString(m) } +func (*CreateMlModelMetadata) ProtoMessage() {} +func (*CreateMlModelMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_f35e6f9d9932e714, []int{4} +} + +func (m *CreateMlModelMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateMlModelMetadata.Unmarshal(m, b) +} +func (m *CreateMlModelMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateMlModelMetadata.Marshal(b, m, deterministic) +} +func (m *CreateMlModelMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateMlModelMetadata.Merge(m, src) +} +func (m *CreateMlModelMetadata) XXX_Size() int { + return xxx_messageInfo_CreateMlModelMetadata.Size(m) +} +func (m *CreateMlModelMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CreateMlModelMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateMlModelMetadata proto.InternalMessageInfo + +func (m *CreateMlModelMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *CreateMlModelMetadata) GetMlModelName() string { + if m != nil { + return m.MlModelName + } + return "" +} + +type UpdateMlModelRequest struct { + // ID of the cluster to update the model in. + // + // To get a cluster ID make a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Name of the the model to update. + MlModelName string `protobuf:"bytes,2,opt,name=ml_model_name,json=mlModelName,proto3" json:"ml_model_name,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // The new model file URL. You can only use models stored in Yandex Object Storage. + Uri string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateMlModelRequest) Reset() { *m = UpdateMlModelRequest{} } +func (m *UpdateMlModelRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateMlModelRequest) ProtoMessage() {} +func (*UpdateMlModelRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f35e6f9d9932e714, []int{5} +} + +func (m *UpdateMlModelRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateMlModelRequest.Unmarshal(m, b) +} +func (m *UpdateMlModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateMlModelRequest.Marshal(b, m, deterministic) +} +func (m *UpdateMlModelRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateMlModelRequest.Merge(m, src) +} +func (m *UpdateMlModelRequest) XXX_Size() int { + return xxx_messageInfo_UpdateMlModelRequest.Size(m) +} +func (m *UpdateMlModelRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateMlModelRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateMlModelRequest proto.InternalMessageInfo + +func (m *UpdateMlModelRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *UpdateMlModelRequest) GetMlModelName() string { + if m != nil { + return m.MlModelName + } + return "" +} + +func (m *UpdateMlModelRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdateMlModelRequest) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +type UpdateMlModelMetadata struct { + // ID of the cluster that contains the model being updated. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Name of the the model that is being updated. + MlModelName string `protobuf:"bytes,2,opt,name=ml_model_name,json=mlModelName,proto3" json:"ml_model_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateMlModelMetadata) Reset() { *m = UpdateMlModelMetadata{} } +func (m *UpdateMlModelMetadata) String() string { return proto.CompactTextString(m) } +func (*UpdateMlModelMetadata) ProtoMessage() {} +func (*UpdateMlModelMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_f35e6f9d9932e714, []int{6} +} + +func (m *UpdateMlModelMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateMlModelMetadata.Unmarshal(m, b) +} +func (m *UpdateMlModelMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateMlModelMetadata.Marshal(b, m, deterministic) +} +func (m *UpdateMlModelMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateMlModelMetadata.Merge(m, src) +} +func (m *UpdateMlModelMetadata) XXX_Size() int { + return xxx_messageInfo_UpdateMlModelMetadata.Size(m) +} +func (m *UpdateMlModelMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateMlModelMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateMlModelMetadata proto.InternalMessageInfo + +func (m *UpdateMlModelMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *UpdateMlModelMetadata) GetMlModelName() string { + if m != nil { + return m.MlModelName + } + return "" +} + +type DeleteMlModelRequest struct { + // ID of the cluster to delete the model in. + // + // To get a cluster ID make a [ClusterService.List] request. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Name of the the model to delete. + MlModelName string `protobuf:"bytes,2,opt,name=ml_model_name,json=mlModelName,proto3" json:"ml_model_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteMlModelRequest) Reset() { *m = DeleteMlModelRequest{} } +func (m *DeleteMlModelRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteMlModelRequest) ProtoMessage() {} +func (*DeleteMlModelRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f35e6f9d9932e714, []int{7} +} + +func (m *DeleteMlModelRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteMlModelRequest.Unmarshal(m, b) +} +func (m *DeleteMlModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteMlModelRequest.Marshal(b, m, deterministic) +} +func (m *DeleteMlModelRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteMlModelRequest.Merge(m, src) +} +func (m *DeleteMlModelRequest) XXX_Size() int { + return xxx_messageInfo_DeleteMlModelRequest.Size(m) +} +func (m *DeleteMlModelRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteMlModelRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteMlModelRequest proto.InternalMessageInfo + +func (m *DeleteMlModelRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *DeleteMlModelRequest) GetMlModelName() string { + if m != nil { + return m.MlModelName + } + return "" +} + +type DeleteMlModelMetadata struct { + // ID of the cluster that contains the model being deleted. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Name of the the model that is being deleted. + MlModelName string `protobuf:"bytes,2,opt,name=ml_model_name,json=mlModelName,proto3" json:"ml_model_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteMlModelMetadata) Reset() { *m = DeleteMlModelMetadata{} } +func (m *DeleteMlModelMetadata) String() string { return proto.CompactTextString(m) } +func (*DeleteMlModelMetadata) ProtoMessage() {} +func (*DeleteMlModelMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_f35e6f9d9932e714, []int{8} +} + +func (m *DeleteMlModelMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteMlModelMetadata.Unmarshal(m, b) +} +func (m *DeleteMlModelMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteMlModelMetadata.Marshal(b, m, deterministic) +} +func (m *DeleteMlModelMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteMlModelMetadata.Merge(m, src) +} +func (m *DeleteMlModelMetadata) XXX_Size() int { + return xxx_messageInfo_DeleteMlModelMetadata.Size(m) +} +func (m *DeleteMlModelMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteMlModelMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteMlModelMetadata proto.InternalMessageInfo + +func (m *DeleteMlModelMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *DeleteMlModelMetadata) GetMlModelName() string { + if m != nil { + return m.MlModelName + } + return "" +} + +func init() { + proto.RegisterType((*GetMlModelRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.GetMlModelRequest") + proto.RegisterType((*ListMlModelsRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.ListMlModelsRequest") + proto.RegisterType((*ListMlModelsResponse)(nil), "yandex.cloud.mdb.clickhouse.v1.ListMlModelsResponse") + proto.RegisterType((*CreateMlModelRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.CreateMlModelRequest") + proto.RegisterType((*CreateMlModelMetadata)(nil), "yandex.cloud.mdb.clickhouse.v1.CreateMlModelMetadata") + proto.RegisterType((*UpdateMlModelRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.UpdateMlModelRequest") + proto.RegisterType((*UpdateMlModelMetadata)(nil), "yandex.cloud.mdb.clickhouse.v1.UpdateMlModelMetadata") + proto.RegisterType((*DeleteMlModelRequest)(nil), "yandex.cloud.mdb.clickhouse.v1.DeleteMlModelRequest") + proto.RegisterType((*DeleteMlModelMetadata)(nil), "yandex.cloud.mdb.clickhouse.v1.DeleteMlModelMetadata") +} + +func init() { + proto.RegisterFile("yandex/cloud/mdb/clickhouse/v1/ml_model_service.proto", fileDescriptor_f35e6f9d9932e714) +} + +var fileDescriptor_f35e6f9d9932e714 = []byte{ + // 813 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x96, 0xcf, 0x6b, 0xdb, 0x48, + 0x14, 0xc7, 0x51, 0xec, 0x75, 0xe2, 0xf1, 0x26, 0xbb, 0x3b, 0xeb, 0x2c, 0xc6, 0x6c, 0x82, 0x57, + 0x87, 0x24, 0x38, 0x48, 0xb2, 0x9c, 0xcd, 0x2e, 0x9b, 0x1f, 0x87, 0x75, 0x93, 0x86, 0x96, 0xba, + 0x2d, 0x4a, 0x7a, 0x49, 0x29, 0x66, 0x6c, 0x4d, 0x1c, 0x61, 0xfd, 0xaa, 0x67, 0x64, 0xe2, 0x84, + 0x50, 0x28, 0x85, 0x42, 0xae, 0xa5, 0xff, 0x47, 0xc9, 0x3f, 0xe1, 0x9c, 0x53, 0x68, 0xef, 0xa5, + 0x94, 0x9e, 0x7b, 0xec, 0xa5, 0x45, 0x33, 0xfe, 0xa5, 0xda, 0x89, 0xdd, 0x60, 0x48, 0x6f, 0xd6, + 0xbc, 0xf7, 0x66, 0xbe, 0x9f, 0xe7, 0x79, 0x5f, 0x09, 0x2c, 0xd7, 0x91, 0xad, 0xe3, 0x03, 0xa5, + 0x64, 0x3a, 0x9e, 0xae, 0x58, 0x7a, 0x51, 0x29, 0x99, 0x46, 0xa9, 0xb2, 0xef, 0x78, 0x04, 0x2b, + 0x35, 0x55, 0xb1, 0xcc, 0x82, 0xe5, 0xe8, 0xd8, 0x2c, 0x10, 0x5c, 0xad, 0x19, 0x25, 0x2c, 0xbb, + 0x55, 0x87, 0x3a, 0x70, 0x96, 0x97, 0xc9, 0xac, 0x4c, 0xb6, 0xf4, 0xa2, 0xdc, 0x29, 0x93, 0x6b, + 0x6a, 0xf2, 0xcf, 0xb2, 0xe3, 0x94, 0x4d, 0xac, 0x20, 0xd7, 0x50, 0x90, 0x6d, 0x3b, 0x14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0xbd, 0x13, 0x40, 0x84, 0x4f, 0xde, 0x60, 0xb2, 0x7e, 0x56, 0x31, 0x0c, 0xd9, + 0x93, 0xd3, 0xf3, 0xb4, 0x7c, 0xd1, 0x80, 0x4f, 0x7f, 0x6b, 0x8c, 0x9b, 0x96, 0x4b, 0xeb, 0x7c, + 0x76, 0xd2, 0xa3, 0xe1, 0xcc, 0x11, 0x20, 0x06, 0x44, 0x22, 0xd7, 0xe8, 0xc5, 0xdb, 0xcd, 0x97, + 0x0d, 0xba, 0xef, 0x15, 0xe5, 0x92, 0x63, 0x29, 0x3c, 0x5d, 0xe2, 0xdf, 0x59, 0x65, 0x47, 0x2a, + 0x63, 0x9b, 0x09, 0x54, 0x2e, 0xff, 0x00, 0x5b, 0xed, 0x3c, 0x15, 0x23, 0xac, 0x60, 0xe9, 0x6b, + 0x00, 0x00, 0x00, 0xff, 0xff, 0xd6, 0xb7, 0xc5, 0x33, 0xb4, 0x0a, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// MlModelServiceClient is the client API for MlModelService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MlModelServiceClient interface { + // Returns the specified machine learning model. + // + // To get the list of all available models, make a [List] request. + Get(ctx context.Context, in *GetMlModelRequest, opts ...grpc.CallOption) (*MlModel, error) + // Retrieves the list of machine learning models in the specified cluster. + List(ctx context.Context, in *ListMlModelsRequest, opts ...grpc.CallOption) (*ListMlModelsResponse, error) + // Creates a machine learning model in the specified cluster. + Create(ctx context.Context, in *CreateMlModelRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Updates the specified machine learning model. + Update(ctx context.Context, in *UpdateMlModelRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Deletes the specified machine learning model. + Delete(ctx context.Context, in *DeleteMlModelRequest, opts ...grpc.CallOption) (*operation.Operation, error) +} + +type mlModelServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewMlModelServiceClient(cc grpc.ClientConnInterface) MlModelServiceClient { + return &mlModelServiceClient{cc} +} + +func (c *mlModelServiceClient) Get(ctx context.Context, in *GetMlModelRequest, opts ...grpc.CallOption) (*MlModel, error) { + out := new(MlModel) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.MlModelService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *mlModelServiceClient) List(ctx context.Context, in *ListMlModelsRequest, opts ...grpc.CallOption) (*ListMlModelsResponse, error) { + out := new(ListMlModelsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.MlModelService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *mlModelServiceClient) Create(ctx context.Context, in *CreateMlModelRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.MlModelService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *mlModelServiceClient) Update(ctx context.Context, in *UpdateMlModelRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.MlModelService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *mlModelServiceClient) Delete(ctx context.Context, in *DeleteMlModelRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.clickhouse.v1.MlModelService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MlModelServiceServer is the server API for MlModelService service. +type MlModelServiceServer interface { + // Returns the specified machine learning model. + // + // To get the list of all available models, make a [List] request. + Get(context.Context, *GetMlModelRequest) (*MlModel, error) + // Retrieves the list of machine learning models in the specified cluster. + List(context.Context, *ListMlModelsRequest) (*ListMlModelsResponse, error) + // Creates a machine learning model in the specified cluster. + Create(context.Context, *CreateMlModelRequest) (*operation.Operation, error) + // Updates the specified machine learning model. + Update(context.Context, *UpdateMlModelRequest) (*operation.Operation, error) + // Deletes the specified machine learning model. + Delete(context.Context, *DeleteMlModelRequest) (*operation.Operation, error) +} + +// UnimplementedMlModelServiceServer can be embedded to have forward compatible implementations. +type UnimplementedMlModelServiceServer struct { +} + +func (*UnimplementedMlModelServiceServer) Get(ctx context.Context, req *GetMlModelRequest) (*MlModel, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedMlModelServiceServer) List(ctx context.Context, req *ListMlModelsRequest) (*ListMlModelsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (*UnimplementedMlModelServiceServer) Create(ctx context.Context, req *CreateMlModelRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (*UnimplementedMlModelServiceServer) Update(ctx context.Context, req *UpdateMlModelRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedMlModelServiceServer) Delete(ctx context.Context, req *DeleteMlModelRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} + +func RegisterMlModelServiceServer(s *grpc.Server, srv MlModelServiceServer) { + s.RegisterService(&_MlModelService_serviceDesc, srv) +} + +func _MlModelService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetMlModelRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MlModelServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.clickhouse.v1.MlModelService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MlModelServiceServer).Get(ctx, req.(*GetMlModelRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MlModelService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListMlModelsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MlModelServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.clickhouse.v1.MlModelService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MlModelServiceServer).List(ctx, req.(*ListMlModelsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MlModelService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateMlModelRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MlModelServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.clickhouse.v1.MlModelService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MlModelServiceServer).Create(ctx, req.(*CreateMlModelRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MlModelService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateMlModelRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MlModelServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.clickhouse.v1.MlModelService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MlModelServiceServer).Update(ctx, req.(*UpdateMlModelRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MlModelService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteMlModelRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MlModelServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.clickhouse.v1.MlModelService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MlModelServiceServer).Delete(ctx, req.(*DeleteMlModelRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _MlModelService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.mdb.clickhouse.v1.MlModelService", + HandlerType: (*MlModelServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Get", + Handler: _MlModelService_Get_Handler, + }, + { + MethodName: "List", + Handler: _MlModelService_List_Handler, + }, + { + MethodName: "Create", + Handler: _MlModelService_Create_Handler, + }, + { + MethodName: "Update", + Handler: _MlModelService_Update_Handler, + }, + { + MethodName: "Delete", + Handler: _MlModelService_Delete_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/mdb/clickhouse/v1/ml_model_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/ml_model_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/ml_model_service.pbext.go new file mode 100644 index 000000000..3475c1df8 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/ml_model_service.pbext.go @@ -0,0 +1,99 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package clickhouse + +import ( + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetMlModelRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetMlModelRequest) SetMlModelName(v string) { + m.MlModelName = v +} + +func (m *ListMlModelsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListMlModelsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListMlModelsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListMlModelsResponse) SetMlModels(v []*MlModel) { + m.MlModels = v +} + +func (m *ListMlModelsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateMlModelRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateMlModelRequest) SetMlModelName(v string) { + m.MlModelName = v +} + +func (m *CreateMlModelRequest) SetType(v MlModelType) { + m.Type = v +} + +func (m *CreateMlModelRequest) SetUri(v string) { + m.Uri = v +} + +func (m *CreateMlModelMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateMlModelMetadata) SetMlModelName(v string) { + m.MlModelName = v +} + +func (m *UpdateMlModelRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateMlModelRequest) SetMlModelName(v string) { + m.MlModelName = v +} + +func (m *UpdateMlModelRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateMlModelRequest) SetUri(v string) { + m.Uri = v +} + +func (m *UpdateMlModelMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateMlModelMetadata) SetMlModelName(v string) { + m.MlModelName = v +} + +func (m *DeleteMlModelRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteMlModelRequest) SetMlModelName(v string) { + m.MlModelName = v +} + +func (m *DeleteMlModelMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteMlModelMetadata) SetMlModelName(v string) { + m.MlModelName = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/resource_preset.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/resource_preset.pb.go index ad0ff7f59..2acdc155f 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/resource_preset.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/resource_preset.pb.go @@ -97,19 +97,20 @@ func init() { } var fileDescriptor_24eaf27369654811 = []byte{ - // 215 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0xcf, 0xb1, 0x4b, 0x03, 0x31, - 0x14, 0xc7, 0x71, 0xee, 0x4e, 0xab, 0xcd, 0xd0, 0x21, 0x88, 0xc4, 0x45, 0x0e, 0xa7, 0x5b, 0x9a, - 0x50, 0x74, 0x73, 0x73, 0x73, 0x10, 0x25, 0xa3, 0x4b, 0x31, 0x79, 0x8f, 0x6b, 0xb0, 0xb9, 0x57, - 0x92, 0x4b, 0xb1, 0xfe, 0xf5, 0x62, 0x72, 0x70, 0x5b, 0xc7, 0xef, 0x83, 0x0f, 0xbc, 0x1f, 0x7b, - 0x3a, 0x7d, 0x0d, 0x80, 0x3f, 0xca, 0xee, 0x29, 0x81, 0xf2, 0x60, 0x94, 0xdd, 0x3b, 0xfb, 0xbd, - 0xa3, 0x14, 0x51, 0x1d, 0x37, 0x2a, 0x60, 0xa4, 0x14, 0x2c, 0x6e, 0x0f, 0x01, 0x23, 0x8e, 0xf2, - 0x10, 0x68, 0x24, 0x7e, 0x5f, 0x94, 0xcc, 0x4a, 0x7a, 0x30, 0x72, 0x56, 0xf2, 0xb8, 0x79, 0x70, - 0x6c, 0xa5, 0x27, 0xf8, 0x91, 0x1d, 0x5f, 0xb1, 0xda, 0x81, 0xa8, 0xda, 0xaa, 0x5b, 0xea, 0xda, - 0x01, 0xbf, 0x63, 0xd7, 0xbf, 0x34, 0xe0, 0xd6, 0x41, 0x14, 0x75, 0xdb, 0x74, 0x4b, 0x7d, 0xf5, - 0xdf, 0xaf, 0x10, 0xf9, 0x0d, 0xbb, 0xb4, 0x14, 0x30, 0x8a, 0xa6, 0xad, 0xba, 0x46, 0x97, 0xe0, - 0xb7, 0x6c, 0xe1, 0xd1, 0x53, 0x38, 0x89, 0x8b, 0x7c, 0x9e, 0xea, 0xe5, 0xfd, 0xf3, 0xad, 0x77, - 0xe3, 0x2e, 0x19, 0x69, 0xc9, 0xab, 0xf2, 0xd7, 0xba, 0xac, 0xe9, 0x69, 0xdd, 0xe3, 0x90, 0x3f, - 0x56, 0xe7, 0x67, 0x3e, 0xcf, 0x65, 0x16, 0x19, 0x3c, 0xfe, 0x05, 0x00, 0x00, 0xff, 0xff, 0x10, - 0xb1, 0xd0, 0xe7, 0x1a, 0x01, 0x00, 0x00, + // 225 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xb1, 0x4b, 0x03, 0x31, + 0x14, 0xc6, 0xb9, 0x3b, 0xad, 0x36, 0x43, 0x87, 0x20, 0x12, 0x17, 0x39, 0x3a, 0xdd, 0xd2, 0x84, + 0xa2, 0x9b, 0x9b, 0x9b, 0x83, 0x20, 0x19, 0x5d, 0x4a, 0x93, 0xf7, 0xb8, 0x06, 0x9b, 0x7b, 0x47, + 0x72, 0x29, 0xd6, 0xbf, 0x5e, 0x4c, 0x0a, 0x45, 0x04, 0xc7, 0xdf, 0xe3, 0xfd, 0xe0, 0xfb, 0x3e, + 0xf6, 0x78, 0xdc, 0x0e, 0x80, 0x9f, 0xca, 0xee, 0x29, 0x81, 0xf2, 0x60, 0x94, 0xdd, 0x3b, 0xfb, + 0xb1, 0xa3, 0x14, 0x51, 0x1d, 0xd6, 0x2a, 0x60, 0xa4, 0x14, 0x2c, 0x6e, 0xc6, 0x80, 0x11, 0x27, + 0x39, 0x06, 0x9a, 0x88, 0xdf, 0x17, 0x4b, 0x66, 0x4b, 0x7a, 0x30, 0xf2, 0x6c, 0xc9, 0xc3, 0x7a, + 0xe9, 0xd8, 0x42, 0x9f, 0xc4, 0xb7, 0xec, 0xf1, 0x05, 0xab, 0x1d, 0x88, 0xaa, 0xad, 0xba, 0xb9, + 0xae, 0x1d, 0xf0, 0x3b, 0x76, 0xfd, 0x45, 0x03, 0x6e, 0x1c, 0x44, 0x51, 0xb7, 0x4d, 0x37, 0xd7, + 0x57, 0x3f, 0xfc, 0x02, 0x91, 0xdf, 0xb0, 0x4b, 0x4b, 0x01, 0xa3, 0x68, 0xda, 0xaa, 0x6b, 0x74, + 0x01, 0x7e, 0xcb, 0x66, 0x1e, 0x3d, 0x85, 0xa3, 0xb8, 0xc8, 0xe7, 0x13, 0x3d, 0x47, 0xb6, 0xfc, + 0x15, 0x66, 0x3b, 0xba, 0xbf, 0x81, 0xde, 0x5f, 0x7b, 0x37, 0xed, 0x92, 0x91, 0x96, 0xbc, 0x2a, + 0xef, 0xab, 0xd2, 0xb8, 0xa7, 0x55, 0x8f, 0x43, 0x6e, 0xa5, 0xfe, 0x9f, 0xe2, 0xe9, 0x4c, 0x66, + 0x96, 0x85, 0x87, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x75, 0x2a, 0x7f, 0x4c, 0x3e, 0x01, 0x00, + 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/resource_preset.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/resource_preset.pbext.go new file mode 100644 index 000000000..7a5bfeb16 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/resource_preset.pbext.go @@ -0,0 +1,19 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package clickhouse + +func (m *ResourcePreset) SetId(v string) { + m.Id = v +} + +func (m *ResourcePreset) SetZoneIds(v []string) { + m.ZoneIds = v +} + +func (m *ResourcePreset) SetCores(v int64) { + m.Cores = v +} + +func (m *ResourcePreset) SetMemory(v int64) { + m.Memory = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/resource_preset_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/resource_preset_service.pb.go index ba558aa1b..c90a800fb 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/resource_preset_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/resource_preset_service.pb.go @@ -182,46 +182,46 @@ func init() { } var fileDescriptor_2cc2720a06dabed9 = []byte{ - // 470 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0x4d, 0x6b, 0x13, 0x41, - 0x18, 0x66, 0xba, 0xb5, 0x98, 0x51, 0x69, 0x19, 0x10, 0x96, 0xf5, 0x83, 0xb0, 0x87, 0xba, 0x97, - 0xcc, 0x64, 0xab, 0x82, 0x34, 0xc9, 0x25, 0x1e, 0x8a, 0xa0, 0x58, 0xb6, 0x22, 0xe8, 0x25, 0x4c, - 0x76, 0x5e, 0xb6, 0x43, 0x93, 0x99, 0x75, 0x67, 0x36, 0xd4, 0x8a, 0x20, 0x1e, 0x7b, 0xf5, 0x0f, - 0xf8, 0x0f, 0xbc, 0xf8, 0x1f, 0xda, 0xbb, 0x7f, 0xc1, 0x83, 0xbf, 0xc1, 0x93, 0xec, 0x6c, 0x4a, - 0x4d, 0xec, 0x87, 0xe9, 0x71, 0xf7, 0x99, 0xe7, 0x79, 0xde, 0xe7, 0xfd, 0xc0, 0xdd, 0xf7, 0x5c, - 0x09, 0xd8, 0x67, 0xe9, 0x48, 0x97, 0x82, 0x8d, 0xc5, 0x90, 0xa5, 0x23, 0x99, 0xee, 0xed, 0xea, - 0xd2, 0x00, 0x9b, 0xc4, 0xac, 0x00, 0xa3, 0xcb, 0x22, 0x85, 0x41, 0x5e, 0x80, 0x01, 0x3b, 0x30, - 0x50, 0x4c, 0x64, 0x0a, 0x34, 0x2f, 0xb4, 0xd5, 0xe4, 0x7e, 0xcd, 0xa6, 0x8e, 0x4d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, 0x78, 0x55, 0xc1, 0xbe, 0x1d, 0xfc, 0x55, 0x69, 0x95, 0xa9, 0x91, - 0xdc, 0xaa, 0x7e, 0x6f, 0x9f, 0x94, 0xb8, 0xf1, 0xc9, 0xc3, 0xb7, 0x67, 0xb5, 0x76, 0xea, 0xf5, - 0x20, 0xdf, 0x11, 0xf6, 0xb6, 0xc0, 0x92, 0x27, 0x97, 0x95, 0x72, 0xde, 0xac, 0x82, 0x05, 0x43, - 0x84, 0x4f, 0x3f, 0xff, 0xf8, 0xf9, 0x65, 0xa9, 0x47, 0x3a, 0x6c, 0xcc, 0x15, 0xcf, 0x40, 0xb4, - 0xce, 0xde, 0x96, 0x69, 0x46, 0xf6, 0xe1, 0xdf, 0x4d, 0xf8, 0x48, 0xbe, 0x21, 0xbc, 0x5c, 0xf5, - 0x9c, 0x6c, 0x5e, 0xe6, 0x7e, 0xfe, 0x2e, 0x04, 0x9d, 0x2b, 0x71, 0xeb, 0xa9, 0x86, 0xd4, 0xc5, - 0x88, 0xc8, 0xfa, 0xff, 0xc5, 0xe8, 0xbf, 0x7c, 0xfb, 0x22, 0x93, 0x76, 0xb7, 0x1c, 0xd2, 0x54, - 0x8f, 0x59, 0x6d, 0xdc, 0xaa, 0x2f, 0x26, 0xd3, 0xad, 0x0c, 0x94, 0xbb, 0x0a, 0x76, 0xf1, 0x29, - 0x75, 0x4e, 0xbf, 0x86, 0x2b, 0x8e, 0xf0, 0xf0, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8a, 0xea, - 0x85, 0x77, 0x19, 0x04, 0x00, 0x00, + // 477 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0x4d, 0x6b, 0xd4, 0x40, + 0x18, 0x26, 0x4d, 0x2d, 0xee, 0xa8, 0xb4, 0x0c, 0x08, 0x21, 0x7e, 0xb0, 0xe4, 0x50, 0x73, 0xd9, + 0x99, 0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0xcb, 0xe5, + 0x9b, 0xe3, 0xcd, 0xab, 0xdc, 0x2f, 0xde, 0x05, 0xbf, 0x77, 0x2d, 0x6e, 0x35, 0xd5, 0x80, 0xd8, + 0x18, 0x21, 0x5e, 0xff, 0xbf, 0x18, 0x43, 0x8d, 0x82, 0x9a, 0x1b, 0xcb, 0xc4, 0x59, 0xc7, 0x77, + 0xaf, 0x52, 0x61, 0x76, 0x8b, 0x31, 0x49, 0xd4, 0x94, 0x56, 0xe5, 0x9d, 0xea, 0xaa, 0x52, 0xd5, + 0x49, 0x41, 0xda, 0xcb, 0xa1, 0x97, 0x9f, 0x5b, 0xef, 0xf4, 0x6b, 0xbc, 0x62, 0x09, 0x8f, 0xff, + 0x06, 0x00, 0x00, 0xff, 0xff, 0x14, 0xfa, 0xf6, 0x05, 0x3d, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // ResourcePresetServiceClient is the client API for ResourcePresetService service. // @@ -236,10 +236,10 @@ type ResourcePresetServiceClient interface { } type resourcePresetServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewResourcePresetServiceClient(cc *grpc.ClientConn) ResourcePresetServiceClient { +func NewResourcePresetServiceClient(cc grpc.ClientConnInterface) ResourcePresetServiceClient { return &resourcePresetServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/resource_preset_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/resource_preset_service.pbext.go new file mode 100644 index 000000000..bc198024e --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/resource_preset_service.pbext.go @@ -0,0 +1,23 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package clickhouse + +func (m *GetResourcePresetRequest) SetResourcePresetId(v string) { + m.ResourcePresetId = v +} + +func (m *ListResourcePresetsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListResourcePresetsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListResourcePresetsResponse) SetResourcePresets(v []*ResourcePreset) { + m.ResourcePresets = v +} + +func (m *ListResourcePresetsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/user.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/user.pb.go index d3d471500..589176465 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/user.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/user.pb.go @@ -85,10 +85,14 @@ type UserSettings_DistributedProductMode int32 const ( UserSettings_DISTRIBUTED_PRODUCT_MODE_UNSPECIFIED UserSettings_DistributedProductMode = 0 - UserSettings_DISTRIBUTED_PRODUCT_MODE_DENY UserSettings_DistributedProductMode = 1 - UserSettings_DISTRIBUTED_PRODUCT_MODE_LOCAL UserSettings_DistributedProductMode = 2 - UserSettings_DISTRIBUTED_PRODUCT_MODE_GLOBAL UserSettings_DistributedProductMode = 3 - UserSettings_DISTRIBUTED_PRODUCT_MODE_ALLOW UserSettings_DistributedProductMode = 4 + // Default value. Prohibits using these types of subqueries (returns the "Double-distributed in/JOIN subqueries is denied" exception). + UserSettings_DISTRIBUTED_PRODUCT_MODE_DENY UserSettings_DistributedProductMode = 1 + //Replaces the database and table in the subquery with local ones for the destination server (shard), leaving the normal IN/JOIN. + UserSettings_DISTRIBUTED_PRODUCT_MODE_LOCAL UserSettings_DistributedProductMode = 2 + //Replaces the IN/JOIN query with GLOBAL IN/GLOBAL JOIN. + UserSettings_DISTRIBUTED_PRODUCT_MODE_GLOBAL UserSettings_DistributedProductMode = 3 + //Allows the use of these types of subqueries. + UserSettings_DISTRIBUTED_PRODUCT_MODE_ALLOW UserSettings_DistributedProductMode = 4 ) var UserSettings_DistributedProductMode_name = map[int32]string{ @@ -123,11 +127,13 @@ type User struct { // ID of the ClickHouse cluster the user belongs to. ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` // Set of permissions granted to the user. - Permissions []*Permission `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"` - Settings *UserSettings `protobuf:"bytes,4,opt,name=settings,proto3" json:"settings,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Permissions []*Permission `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"` + Settings *UserSettings `protobuf:"bytes,4,opt,name=settings,proto3" json:"settings,omitempty"` + // Set of quotas assigned to the user. + Quotas []*UserQuota `protobuf:"bytes,5,rep,name=quotas,proto3" json:"quotas,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *User) Reset() { *m = User{} } @@ -183,6 +189,13 @@ func (m *User) GetSettings() *UserSettings { return nil } +func (m *User) GetQuotas() []*UserQuota { + if m != nil { + return m.Quotas + } + return nil +} + type Permission struct { // Name of the database that the permission grants access to. DatabaseName string `protobuf:"bytes,1,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"` @@ -229,11 +242,13 @@ type UserSpec struct { // Password of the ClickHouse user. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // Set of permissions to grant to the user. - Permissions []*Permission `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"` - Settings *UserSettings `protobuf:"bytes,4,opt,name=settings,proto3" json:"settings,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Permissions []*Permission `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"` + Settings *UserSettings `protobuf:"bytes,4,opt,name=settings,proto3" json:"settings,omitempty"` + // Set of quotas assigned to the user. + Quotas []*UserQuota `protobuf:"bytes,5,rep,name=quotas,proto3" json:"quotas,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UserSpec) Reset() { *m = UserSpec{} } @@ -289,81 +304,82 @@ func (m *UserSpec) GetSettings() *UserSettings { return nil } +func (m *UserSpec) GetQuotas() []*UserQuota { + if m != nil { + return m.Quotas + } + return nil +} + // ClickHouse user settings. Supported settings are a limited subset of all settings // described in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/). type UserSettings struct { - // Restricts permissions for non-DDL queries. - // Possible values: - // * 0 (default) — no restrictions. - // * 1 — only read data queries are allowed. - // * 2 — read data and change settings queries are allowed. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/permissions_for_queries/#settings_readonly). + // Restricts permissions for non-DDL queries. Possible values: 0 (default) — no restrictions, + // 1 — only read data queries are allowed, 2 — read data and change settings queries are allowed. Readonly *wrappers.Int64Value `protobuf:"bytes,1,opt,name=readonly,proto3" json:"readonly,omitempty"` - // Whether DDL queries are allowed. Default value: `false`. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/permissions_for_queries/#settings_allow_ddl). + // Whether DDL queries are allowed. Default value: false. AllowDdl *wrappers.BoolValue `protobuf:"bytes,2,opt,name=allow_ddl,json=allowDdl,proto3" json:"allow_ddl,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#settings-insert_quorum). + // For INSERT queries in the replicated table, wait writing for the specified number of replicas and linearize + // the addition of the data. InsertQuorum *wrappers.Int64Value `protobuf:"bytes,3,opt,name=insert_quorum,json=insertQuorum,proto3" json:"insert_quorum,omitempty"` // Connection timeout in milliseconds. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#connect-timeout-receive-timeout-send-timeout). ConnectTimeout *wrappers.Int64Value `protobuf:"bytes,39,opt,name=connect_timeout,json=connectTimeout,proto3" json:"connect_timeout,omitempty"` // Receive timeout in milliseconds. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#connect-timeout-receive-timeout-send-timeout). ReceiveTimeout *wrappers.Int64Value `protobuf:"bytes,40,opt,name=receive_timeout,json=receiveTimeout,proto3" json:"receive_timeout,omitempty"` // Send timeout in milliseconds. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#connect-timeout-receive-timeout-send-timeout). SendTimeout *wrappers.Int64Value `protobuf:"bytes,41,opt,name=send_timeout,json=sendTimeout,proto3" json:"send_timeout,omitempty"` // Quorum write timeout in milliseconds. Default value: 60000. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#settings-insert_quorum_timeout). InsertQuorumTimeout *wrappers.Int64Value `protobuf:"bytes,4,opt,name=insert_quorum_timeout,json=insertQuorumTimeout,proto3" json:"insert_quorum_timeout,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#settings-select_sequential_consistency). + // For SELECT queries from the replicated table, throw an exception if the replica does not have a chunk written + // with the quorum; do not read the parts that have not yet been written with the quorum. SelectSequentialConsistency *wrappers.BoolValue `protobuf:"bytes,5,opt,name=select_sequential_consistency,json=selectSequentialConsistency,proto3" json:"select_sequential_consistency,omitempty"` - // Max replica delay in milliseconds. If a replica lags more than the set value, this replica is not used. Default value: 300000. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#settings-max_replica_delay_for_distributed_queries). + // Max replica delay in milliseconds. If a replica lags more than the set value, this replica is not used. + // Default value: 300000. MaxReplicaDelayForDistributedQueries *wrappers.Int64Value `protobuf:"bytes,6,opt,name=max_replica_delay_for_distributed_queries,json=maxReplicaDelayForDistributedQueries,proto3" json:"max_replica_delay_for_distributed_queries,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#settings-fallback_to_stale_replicas_for_distributed_queries). + // Determine the behavior when all replicas for the queried table are stale. If enabled, the query will be + // performed anyway. Otherwise, the error will be thrown. FallbackToStaleReplicasForDistributedQueries *wrappers.BoolValue `protobuf:"bytes,7,opt,name=fallback_to_stale_replicas_for_distributed_queries,json=fallbackToStaleReplicasForDistributedQueries,proto3" json:"fallback_to_stale_replicas_for_distributed_queries,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/query_language/alter/#synchronicity-of-alter-queries). + // Wait mode for ALTER queries on replicated tables. + // Possible values: 0 - do not wait, 1 - wait for execution only of itself, 2 - wait for everyone. ReplicationAlterPartitionsSync *wrappers.Int64Value `protobuf:"bytes,42,opt,name=replication_alter_partitions_sync,json=replicationAlterPartitionsSync,proto3" json:"replication_alter_partitions_sync,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#distributed-product-mode). + // Determine the behavior of distributed subqueries. Possible values: DISTRIBUTED_PRODUCT_MODE_DENY, + // DISTRIBUTED_PRODUCT_MODE_LOCAL, DISTRIBUTED_PRODUCT_MODE_GLOBAL, DISTRIBUTED_PRODUCT_MODE_ALLOW. DistributedProductMode UserSettings_DistributedProductMode `protobuf:"varint,43,opt,name=distributed_product_mode,json=distributedProductMode,proto3,enum=yandex.cloud.mdb.clickhouse.v1.UserSettings_DistributedProductMode" json:"distributed_product_mode,omitempty"` // Whether the memory-saving mode of distributed aggregation is enabled. DistributedAggregationMemoryEfficient *wrappers.BoolValue `protobuf:"bytes,72,opt,name=distributed_aggregation_memory_efficient,json=distributedAggregationMemoryEfficient,proto3" json:"distributed_aggregation_memory_efficient,omitempty"` // Timeout for DDL queries, in milliseconds. DistributedDdlTaskTimeout *wrappers.Int64Value `protobuf:"bytes,73,opt,name=distributed_ddl_task_timeout,json=distributedDdlTaskTimeout,proto3" json:"distributed_ddl_task_timeout,omitempty"` + // Whether unavailable shards can be skipped. + SkipUnavailableShards *wrappers.BoolValue `protobuf:"bytes,81,opt,name=skip_unavailable_shards,json=skipUnavailableShards,proto3" json:"skip_unavailable_shards,omitempty"` // Whether query compilation is enabled. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#compile). Compile *wrappers.BoolValue `protobuf:"bytes,44,opt,name=compile,proto3" json:"compile,omitempty"` // The number of structurally identical queries before they are compiled. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#min-count-to-compile). MinCountToCompile *wrappers.Int64Value `protobuf:"bytes,45,opt,name=min_count_to_compile,json=minCountToCompile,proto3" json:"min_count_to_compile,omitempty"` // Whether expression compilation is enabled. CompileExpressions *wrappers.BoolValue `protobuf:"bytes,46,opt,name=compile_expressions,json=compileExpressions,proto3" json:"compile_expressions,omitempty"` // The number of identical expressions before they are compiled. MinCountToCompileExpression *wrappers.Int64Value `protobuf:"bytes,47,opt,name=min_count_to_compile_expression,json=minCountToCompileExpression,proto3" json:"min_count_to_compile_expression,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#max-block-size). + // The maximum block size for reading. MaxBlockSize *wrappers.Int64Value `protobuf:"bytes,9,opt,name=max_block_size,json=maxBlockSize,proto3" json:"max_block_size,omitempty"` - // Squash blocks passed to INSERT query to specified size in rows, if blocks are not big enough. If set to `0`, + // Squash blocks passed to INSERT query to specified size in rows, if blocks are not big enough. If set to 0, // blocks will never be squashed. MinInsertBlockSizeRows *wrappers.Int64Value `protobuf:"bytes,48,opt,name=min_insert_block_size_rows,json=minInsertBlockSizeRows,proto3" json:"min_insert_block_size_rows,omitempty"` - // Squash blocks passed to INSERT query to specified size in bytes, if blocks are not big enough. If set to `0`, + // Squash blocks passed to INSERT query to specified size in bytes, if blocks are not big enough. If set to 0, // blocks will never be squashed. MinInsertBlockSizeBytes *wrappers.Int64Value `protobuf:"bytes,49,opt,name=min_insert_block_size_bytes,json=minInsertBlockSizeBytes,proto3" json:"min_insert_block_size_bytes,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#settings-max_insert_block_size). + // The maximum block size for insertion. MaxInsertBlockSize *wrappers.Int64Value `protobuf:"bytes,10,opt,name=max_insert_block_size,json=maxInsertBlockSize,proto3" json:"max_insert_block_size,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#settings-min_bytes_to_use_direct_io). + // The minimum number of bytes for reading the data with O_DIRECT option during SELECT queries execution. MinBytesToUseDirectIo *wrappers.Int64Value `protobuf:"bytes,50,opt,name=min_bytes_to_use_direct_io,json=minBytesToUseDirectIo,proto3" json:"min_bytes_to_use_direct_io,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#setting-use_uncompressed_cache). + // Whether to use the cache of uncompressed blocks. UseUncompressedCache *wrappers.BoolValue `protobuf:"bytes,51,opt,name=use_uncompressed_cache,json=useUncompressedCache,proto3" json:"use_uncompressed_cache,omitempty"` // The maximum request size in rows to use the cache of uncompressed data. The cache is not used for requests larger // than the specified value. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#setting-merge_tree_max_rows_to_use_cache). MergeTreeMaxRowsToUseCache *wrappers.Int64Value `protobuf:"bytes,52,opt,name=merge_tree_max_rows_to_use_cache,json=mergeTreeMaxRowsToUseCache,proto3" json:"merge_tree_max_rows_to_use_cache,omitempty"` // The maximum request size in bytes to use the cache of uncompressed data. The cache is not used for requests larger // than the specified value. MergeTreeMaxBytesToUseCache *wrappers.Int64Value `protobuf:"bytes,53,opt,name=merge_tree_max_bytes_to_use_cache,json=mergeTreeMaxBytesToUseCache,proto3" json:"merge_tree_max_bytes_to_use_cache,omitempty"` // The minimum number of rows to be read from a file to enable concurrent read. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#setting-merge_tree_min_rows_for_concurrent_read). MergeTreeMinRowsForConcurrentRead *wrappers.Int64Value `protobuf:"bytes,54,opt,name=merge_tree_min_rows_for_concurrent_read,json=mergeTreeMinRowsForConcurrentRead,proto3" json:"merge_tree_min_rows_for_concurrent_read,omitempty"` // The minimum number of bytes to be read from a file to enable concurrent read. MergeTreeMinBytesForConcurrentRead *wrappers.Int64Value `protobuf:"bytes,55,opt,name=merge_tree_min_bytes_for_concurrent_read,json=mergeTreeMinBytesForConcurrentRead,proto3" json:"merge_tree_min_bytes_for_concurrent_read,omitempty"` @@ -373,104 +389,105 @@ type UserSettings struct { GroupByTwoLevelThresholdBytes *wrappers.Int64Value `protobuf:"bytes,77,opt,name=group_by_two_level_threshold_bytes,json=groupByTwoLevelThresholdBytes,proto3" json:"group_by_two_level_threshold_bytes,omitempty"` // Priority of the query. Priority *wrappers.Int64Value `protobuf:"bytes,56,opt,name=priority,proto3" json:"priority,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#settings-max_threads). + // The maximum number of threads to execute the request. MaxThreads *wrappers.Int64Value `protobuf:"bytes,8,opt,name=max_threads,json=maxThreads,proto3" json:"max_threads,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#settings_max_memory_usage). + // The maximum memory usage for processing of a single query. MaxMemoryUsage *wrappers.Int64Value `protobuf:"bytes,11,opt,name=max_memory_usage,json=maxMemoryUsage,proto3" json:"max_memory_usage,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-memory-usage-for-user). + // The maximum memory usage for processing all concurrently running queries for the user. MaxMemoryUsageForUser *wrappers.Int64Value `protobuf:"bytes,12,opt,name=max_memory_usage_for_user,json=maxMemoryUsageForUser,proto3" json:"max_memory_usage_for_user,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#settings-max_network_bandwidth). + // The maximum speed of data exchange over the network in bytes per second for a query. MaxNetworkBandwidth *wrappers.Int64Value `protobuf:"bytes,57,opt,name=max_network_bandwidth,json=maxNetworkBandwidth,proto3" json:"max_network_bandwidth,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#settings-max_network_bandwidth_for_user). + // The maximum speed of data exchange over the network in bytes per second for all concurrently running user queries. MaxNetworkBandwidthForUser *wrappers.Int64Value `protobuf:"bytes,58,opt,name=max_network_bandwidth_for_user,json=maxNetworkBandwidthForUser,proto3" json:"max_network_bandwidth_for_user,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#settings-force_index_by_date). + // Disables query execution if the index can’t be used by date. ForceIndexByDate *wrappers.BoolValue `protobuf:"bytes,59,opt,name=force_index_by_date,json=forceIndexByDate,proto3" json:"force_index_by_date,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#force-primary-key). + // Disables query execution if indexing by the primary key is not possible. ForcePrimaryKey *wrappers.BoolValue `protobuf:"bytes,60,opt,name=force_primary_key,json=forcePrimaryKey,proto3" json:"force_primary_key,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-rows-to-read). + // The maximum number of rows that can be read from a table when running a query. MaxRowsToRead *wrappers.Int64Value `protobuf:"bytes,13,opt,name=max_rows_to_read,json=maxRowsToRead,proto3" json:"max_rows_to_read,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-bytes-to-read). + // The maximum number of bytes (uncompressed data) that can be read from a table when running a query. MaxBytesToRead *wrappers.Int64Value `protobuf:"bytes,14,opt,name=max_bytes_to_read,json=maxBytesToRead,proto3" json:"max_bytes_to_read,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#read-overflow-mode). + // Determine the behavior on exceeding max_rows_to_read or max_bytes_to_read limit. + // Possible values: OVERFLOW_MODE_THROW, OVERFLOW_MODE_BREAK. ReadOverflowMode UserSettings_OverflowMode `protobuf:"varint,15,opt,name=read_overflow_mode,json=readOverflowMode,proto3,enum=yandex.cloud.mdb.clickhouse.v1.UserSettings_OverflowMode" json:"read_overflow_mode,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-rows-to-group-by). + // The maximum number of unique keys received from aggregation. MaxRowsToGroupBy *wrappers.Int64Value `protobuf:"bytes,16,opt,name=max_rows_to_group_by,json=maxRowsToGroupBy,proto3" json:"max_rows_to_group_by,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#group-by-overflow-mode). + // Determine the behavior on exceeding max_rows_to_group_by limit. Possible values: GROUP_BY_OVERFLOW_MODE_THROW, + // GROUP_BY_OVERFLOW_MODE_BREAK, GROUP_BY_OVERFLOW_MODE_ANY. GroupByOverflowMode UserSettings_GroupByOverflowMode `protobuf:"varint,17,opt,name=group_by_overflow_mode,json=groupByOverflowMode,proto3,enum=yandex.cloud.mdb.clickhouse.v1.UserSettings_GroupByOverflowMode" json:"group_by_overflow_mode,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-rows-to-sort). + // The maximum number of rows before sorting. MaxRowsToSort *wrappers.Int64Value `protobuf:"bytes,18,opt,name=max_rows_to_sort,json=maxRowsToSort,proto3" json:"max_rows_to_sort,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-bytes-to-sort). + // The maximum number of bytes before sorting. MaxBytesToSort *wrappers.Int64Value `protobuf:"bytes,19,opt,name=max_bytes_to_sort,json=maxBytesToSort,proto3" json:"max_bytes_to_sort,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#sort-overflow-mode). + // Determine the behavior on exceeding max_rows_to_sort or max_bytes_to_sort limit. + // Possible values: OVERFLOW_MODE_THROW, OVERFLOW_MODE_BREAK. SortOverflowMode UserSettings_OverflowMode `protobuf:"varint,20,opt,name=sort_overflow_mode,json=sortOverflowMode,proto3,enum=yandex.cloud.mdb.clickhouse.v1.UserSettings_OverflowMode" json:"sort_overflow_mode,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-result-rows). + // Limit on the number of rows in the result. MaxResultRows *wrappers.Int64Value `protobuf:"bytes,21,opt,name=max_result_rows,json=maxResultRows,proto3" json:"max_result_rows,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-result-bytes). + // Limit on the number of bytes in the result. MaxResultBytes *wrappers.Int64Value `protobuf:"bytes,22,opt,name=max_result_bytes,json=maxResultBytes,proto3" json:"max_result_bytes,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#result-overflow-mode). + // Determine the behavior on exceeding max_result_rows or max_result_bytes limit. + // Possible values: OVERFLOW_MODE_THROW, OVERFLOW_MODE_BREAK. ResultOverflowMode UserSettings_OverflowMode `protobuf:"varint,23,opt,name=result_overflow_mode,json=resultOverflowMode,proto3,enum=yandex.cloud.mdb.clickhouse.v1.UserSettings_OverflowMode" json:"result_overflow_mode,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-rows-in-distinct). + // The maximum number of different rows when using DISTINCT. MaxRowsInDistinct *wrappers.Int64Value `protobuf:"bytes,24,opt,name=max_rows_in_distinct,json=maxRowsInDistinct,proto3" json:"max_rows_in_distinct,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-bytes-in-distinct). + // The maximum number of bytes used by a hash table when using DISTINCT. MaxBytesInDistinct *wrappers.Int64Value `protobuf:"bytes,25,opt,name=max_bytes_in_distinct,json=maxBytesInDistinct,proto3" json:"max_bytes_in_distinct,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#distinct-overflow-mode). + // Determine the behavior on exceeding max_rows_in_distinct or max_bytes_in_distinct limit. + // Possible values: OVERFLOW_MODE_THROW, OVERFLOW_MODE_BREAK. DistinctOverflowMode UserSettings_OverflowMode `protobuf:"varint,26,opt,name=distinct_overflow_mode,json=distinctOverflowMode,proto3,enum=yandex.cloud.mdb.clickhouse.v1.UserSettings_OverflowMode" json:"distinct_overflow_mode,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-rows-to-transfer). + // The maximum number of rows that can be passed to a remote server or saved in a temporary table when using GLOBAL IN. MaxRowsToTransfer *wrappers.Int64Value `protobuf:"bytes,27,opt,name=max_rows_to_transfer,json=maxRowsToTransfer,proto3" json:"max_rows_to_transfer,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-bytes-to-transfer). + // The maximum number of bytes (uncompressed data) that can be passed to a remote server or saved in a temporary + // table when using GLOBAL IN. MaxBytesToTransfer *wrappers.Int64Value `protobuf:"bytes,28,opt,name=max_bytes_to_transfer,json=maxBytesToTransfer,proto3" json:"max_bytes_to_transfer,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#transfer-overflow-mode). + // Determine the behavior on exceeding max_rows_to_transfer or max_bytes_to_transfer limit. + // Possible values: OVERFLOW_MODE_THROW, OVERFLOW_MODE_BREAK. TransferOverflowMode UserSettings_OverflowMode `protobuf:"varint,29,opt,name=transfer_overflow_mode,json=transferOverflowMode,proto3,enum=yandex.cloud.mdb.clickhouse.v1.UserSettings_OverflowMode" json:"transfer_overflow_mode,omitempty"` - // Maximum query execution time in milliseconds. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-execution-time). + // The maximum query execution time in milliseconds. MaxExecutionTime *wrappers.Int64Value `protobuf:"bytes,30,opt,name=max_execution_time,json=maxExecutionTime,proto3" json:"max_execution_time,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#timeout-overflow-mode). + // Determine the behavior on exceeding max_execution_time limit. + // Possible values: OVERFLOW_MODE_THROW, OVERFLOW_MODE_BREAK. TimeoutOverflowMode UserSettings_OverflowMode `protobuf:"varint,31,opt,name=timeout_overflow_mode,json=timeoutOverflowMode,proto3,enum=yandex.cloud.mdb.clickhouse.v1.UserSettings_OverflowMode" json:"timeout_overflow_mode,omitempty"` - // Maximum number of columns that can be read from a table in a single query. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-columns-to-read). + // The maximum number of columns that can be read from a table in a single query. MaxColumnsToRead *wrappers.Int64Value `protobuf:"bytes,32,opt,name=max_columns_to_read,json=maxColumnsToRead,proto3" json:"max_columns_to_read,omitempty"` - // Maximum number of temporary columns that must be kept in RAM at the same time when running a query, including constant columns. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-temporary-columns). + // The maximum number of temporary columns that must be kept in RAM at the same time when running a query, including constant columns. MaxTemporaryColumns *wrappers.Int64Value `protobuf:"bytes,33,opt,name=max_temporary_columns,json=maxTemporaryColumns,proto3" json:"max_temporary_columns,omitempty"` - // Maximum number of temporary columns that must be kept in RAM at the same time when running a query, excluding constant columns. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-temporary-non-const-columns). + // The maximum number of temporary columns that must be kept in RAM at the same time when running a query, excluding constant columns. MaxTemporaryNonConstColumns *wrappers.Int64Value `protobuf:"bytes,34,opt,name=max_temporary_non_const_columns,json=maxTemporaryNonConstColumns,proto3" json:"max_temporary_non_const_columns,omitempty"` // The maximum part of a query that can be taken to RAM for parsing with the SQL parser, in bytes. Default value: 262144. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#settings-max_query_size). MaxQuerySize *wrappers.Int64Value `protobuf:"bytes,35,opt,name=max_query_size,json=maxQuerySize,proto3" json:"max_query_size,omitempty"` - // Maximum depth of query syntax tree. Default value: 1000. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-ast-depth). + // The maximum depth of query syntax tree. Default value: 1000. MaxAstDepth *wrappers.Int64Value `protobuf:"bytes,36,opt,name=max_ast_depth,json=maxAstDepth,proto3" json:"max_ast_depth,omitempty"` - // Maximum size of query syntax tree in number of nodes. Default value: 50000. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/query_complexity/#max-ast-elements). + // The maximum size of query syntax tree in number of nodes. Default value: 50000. MaxAstElements *wrappers.Int64Value `protobuf:"bytes,37,opt,name=max_ast_elements,json=maxAstElements,proto3" json:"max_ast_elements,omitempty"` - // Maximum size of query syntax tree in number of nodes after expansion of aliases and the asterisk. Default value: 500000. + // The maximum size of query syntax tree in number of nodes after expansion of aliases and the asterisk. Default value: 500000. MaxExpandedAstElements *wrappers.Int64Value `protobuf:"bytes,38,opt,name=max_expanded_ast_elements,json=maxExpandedAstElements,proto3" json:"max_expanded_ast_elements,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#settings-input_format_values_interpret_expressions). + // Enables or disables the full SQL parser if the fast stream parser cannot parse the data. InputFormatValuesInterpretExpressions *wrappers.BoolValue `protobuf:"bytes,61,opt,name=input_format_values_interpret_expressions,json=inputFormatValuesInterpretExpressions,proto3" json:"input_format_values_interpret_expressions,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#session_settings-input_format_defaults_for_omitted_fields). + // When performing INSERT queries, replace omitted input column values with default values of the respective columns. InputFormatDefaultsForOmittedFields *wrappers.BoolValue `protobuf:"bytes,62,opt,name=input_format_defaults_for_omitted_fields,json=inputFormatDefaultsForOmittedFields,proto3" json:"input_format_defaults_for_omitted_fields,omitempty"` // Whether quoting of 64-bit integers is enabled in JSON output format. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#session_settings-output_format_json_quote_64bit_integers). OutputFormatJsonQuote_64BitIntegers *wrappers.BoolValue `protobuf:"bytes,63,opt,name=output_format_json_quote_64bit_integers,json=outputFormatJsonQuote64bitIntegers,proto3" json:"output_format_json_quote_64bit_integers,omitempty"` - // Whether output of special floating-point values (`+nan`, `-nan`, `+inf` and `-inf`) is enabled in JSON output format. - OutputFormatJsonQuoteDenormals *wrappers.BoolValue `protobuf:"bytes,64,opt,name=output_format_json_quote_denormals,json=outputFormatJsonQuoteDenormals,proto3" json:"output_format_json_quote_denormals,omitempty"` - LowCardinalityAllowInNativeFormat *wrappers.BoolValue `protobuf:"bytes,78,opt,name=low_cardinality_allow_in_native_format,json=lowCardinalityAllowInNativeFormat,proto3" json:"low_cardinality_allow_in_native_format,omitempty"` + // Whether output of special floating-point values (+nan, -nan, +inf and -inf) is enabled in JSON output format. + OutputFormatJsonQuoteDenormals *wrappers.BoolValue `protobuf:"bytes,64,opt,name=output_format_json_quote_denormals,json=outputFormatJsonQuoteDenormals,proto3" json:"output_format_json_quote_denormals,omitempty"` + // Whether LowCardinality type is enabled in Native format. + LowCardinalityAllowInNativeFormat *wrappers.BoolValue `protobuf:"bytes,78,opt,name=low_cardinality_allow_in_native_format,json=lowCardinalityAllowInNativeFormat,proto3" json:"low_cardinality_allow_in_native_format,omitempty"` + // Return empty result when aggregating without keys on empty set. EmptyResultForAggregationByEmptySet *wrappers.BoolValue `protobuf:"bytes,79,opt,name=empty_result_for_aggregation_by_empty_set,json=emptyResultForAggregationByEmptySet,proto3" json:"empty_result_for_aggregation_by_empty_set,omitempty"` // HTTP connection timeout, in milliseconds. - HttpConnectTimeout *wrappers.Int64Value `protobuf:"bytes,65,opt,name=http_connect_timeout,json=httpConnectTimeout,proto3" json:"http_connect_timeout,omitempty"` + HttpConnectionTimeout *wrappers.Int64Value `protobuf:"bytes,65,opt,name=http_connection_timeout,json=httpConnectionTimeout,proto3" json:"http_connection_timeout,omitempty"` // HTTP receive timeout, in milliseconds. HttpReceiveTimeout *wrappers.Int64Value `protobuf:"bytes,66,opt,name=http_receive_timeout,json=httpReceiveTimeout,proto3" json:"http_receive_timeout,omitempty"` // HTTP send timeout, in milliseconds. HttpSendTimeout *wrappers.Int64Value `protobuf:"bytes,67,opt,name=http_send_timeout,json=httpSendTimeout,proto3" json:"http_send_timeout,omitempty"` - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#settings-enable_http_compression). + // Whether data compression is enabled in HTTP responses. EnableHttpCompression *wrappers.BoolValue `protobuf:"bytes,68,opt,name=enable_http_compression,json=enableHttpCompression,proto3" json:"enable_http_compression,omitempty"` - // Whether progress notifications using X-ClickHouse-Progress headers are enabled. Default value: `false`. - // See in-depth description in [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/settings/settings/#settings-send_progress_in_http_headers). + // Whether progress notifications using X-ClickHouse-Progress headers are enabled. Default value: false. SendProgressInHttpHeaders *wrappers.BoolValue `protobuf:"bytes,69,opt,name=send_progress_in_http_headers,json=sendProgressInHttpHeaders,proto3" json:"send_progress_in_http_headers,omitempty"` // Minimum interval between progress notifications, in milliseconds. Default value: 100. HttpHeadersProgressInterval *wrappers.Int64Value `protobuf:"bytes,70,opt,name=http_headers_progress_interval,json=httpHeadersProgressInterval,proto3" json:"http_headers_progress_interval,omitempty"` - // Whether CORS header in HTTP responses is enabled. Default value: `false`. + // Whether CORS header in HTTP responses is enabled. Default value: false. AddHttpCorsHeader *wrappers.BoolValue `protobuf:"bytes,71,opt,name=add_http_cors_header,json=addHttpCorsHeader,proto3" json:"add_http_cors_header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -600,6 +617,13 @@ func (m *UserSettings) GetDistributedDdlTaskTimeout() *wrappers.Int64Value { return nil } +func (m *UserSettings) GetSkipUnavailableShards() *wrappers.BoolValue { + if m != nil { + return m.SkipUnavailableShards + } + return nil +} + func (m *UserSettings) GetCompile() *wrappers.BoolValue { if m != nil { return m.Compile @@ -1006,9 +1030,9 @@ func (m *UserSettings) GetEmptyResultForAggregationByEmptySet() *wrappers.BoolVa return nil } -func (m *UserSettings) GetHttpConnectTimeout() *wrappers.Int64Value { +func (m *UserSettings) GetHttpConnectionTimeout() *wrappers.Int64Value { if m != nil { - return m.HttpConnectTimeout + return m.HttpConnectionTimeout } return nil } @@ -1055,6 +1079,99 @@ func (m *UserSettings) GetAddHttpCorsHeader() *wrappers.BoolValue { return nil } +// ClickHouse quota representation. Each quota associated with an user and limits it resource usage for an interval. +// See in-depth description [ClickHouse documentation](https://clickhouse.yandex/docs/en/operations/quotas/). +type UserQuota struct { + // Duration of interval for quota in milliseconds. + // Minimal value is 1 second. + IntervalDuration *wrappers.Int64Value `protobuf:"bytes,1,opt,name=interval_duration,json=intervalDuration,proto3" json:"interval_duration,omitempty"` + // The total number of queries. + // 0 - unlimited. + Queries *wrappers.Int64Value `protobuf:"bytes,2,opt,name=queries,proto3" json:"queries,omitempty"` + // The number of queries that threw exception. + // 0 - unlimited. + Errors *wrappers.Int64Value `protobuf:"bytes,3,opt,name=errors,proto3" json:"errors,omitempty"` + // The total number of rows given as the result.. + // 0 - unlimited. + ResultRows *wrappers.Int64Value `protobuf:"bytes,4,opt,name=result_rows,json=resultRows,proto3" json:"result_rows,omitempty"` + // The total number of source rows read from tables for running the query, on all remote servers. + // 0 - unlimited. + ReadRows *wrappers.Int64Value `protobuf:"bytes,5,opt,name=read_rows,json=readRows,proto3" json:"read_rows,omitempty"` + // The total query execution time, in milliseconds (wall time). + // 0 - unlimited. + ExecutionTime *wrappers.Int64Value `protobuf:"bytes,6,opt,name=execution_time,json=executionTime,proto3" json:"execution_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserQuota) Reset() { *m = UserQuota{} } +func (m *UserQuota) String() string { return proto.CompactTextString(m) } +func (*UserQuota) ProtoMessage() {} +func (*UserQuota) Descriptor() ([]byte, []int) { + return fileDescriptor_f24bb57d787c6d5e, []int{4} +} + +func (m *UserQuota) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserQuota.Unmarshal(m, b) +} +func (m *UserQuota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserQuota.Marshal(b, m, deterministic) +} +func (m *UserQuota) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserQuota.Merge(m, src) +} +func (m *UserQuota) XXX_Size() int { + return xxx_messageInfo_UserQuota.Size(m) +} +func (m *UserQuota) XXX_DiscardUnknown() { + xxx_messageInfo_UserQuota.DiscardUnknown(m) +} + +var xxx_messageInfo_UserQuota proto.InternalMessageInfo + +func (m *UserQuota) GetIntervalDuration() *wrappers.Int64Value { + if m != nil { + return m.IntervalDuration + } + return nil +} + +func (m *UserQuota) GetQueries() *wrappers.Int64Value { + if m != nil { + return m.Queries + } + return nil +} + +func (m *UserQuota) GetErrors() *wrappers.Int64Value { + if m != nil { + return m.Errors + } + return nil +} + +func (m *UserQuota) GetResultRows() *wrappers.Int64Value { + if m != nil { + return m.ResultRows + } + return nil +} + +func (m *UserQuota) GetReadRows() *wrappers.Int64Value { + if m != nil { + return m.ReadRows + } + return nil +} + +func (m *UserQuota) GetExecutionTime() *wrappers.Int64Value { + if m != nil { + return m.ExecutionTime + } + return nil +} + func init() { proto.RegisterEnum("yandex.cloud.mdb.clickhouse.v1.UserSettings_OverflowMode", UserSettings_OverflowMode_name, UserSettings_OverflowMode_value) proto.RegisterEnum("yandex.cloud.mdb.clickhouse.v1.UserSettings_GroupByOverflowMode", UserSettings_GroupByOverflowMode_name, UserSettings_GroupByOverflowMode_value) @@ -1063,6 +1180,7 @@ func init() { proto.RegisterType((*Permission)(nil), "yandex.cloud.mdb.clickhouse.v1.Permission") proto.RegisterType((*UserSpec)(nil), "yandex.cloud.mdb.clickhouse.v1.UserSpec") proto.RegisterType((*UserSettings)(nil), "yandex.cloud.mdb.clickhouse.v1.UserSettings") + proto.RegisterType((*UserQuota)(nil), "yandex.cloud.mdb.clickhouse.v1.UserQuota") } func init() { @@ -1070,163 +1188,174 @@ func init() { } var fileDescriptor_f24bb57d787c6d5e = []byte{ - // 2519 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x9a, 0x5d, 0x77, 0x13, 0x37, - 0xfe, 0xc7, 0xff, 0x01, 0x4a, 0x83, 0x12, 0xc0, 0x28, 0x21, 0x0c, 0x09, 0x49, 0x43, 0xe8, 0x43, - 0xe8, 0xbf, 0x71, 0xe2, 0x94, 0xa5, 0xed, 0xb6, 0xb0, 0xc4, 0x0f, 0x01, 0x17, 0x27, 0x0e, 0x8e, - 0x53, 0xb6, 0x0f, 0x5b, 0x55, 0x9e, 0x91, 0x9d, 0x69, 0x66, 0x24, 0x23, 0x69, 0x62, 0xbb, 0xe7, - 0xec, 0x39, 0xbd, 0xd8, 0xab, 0xde, 0xec, 0x6b, 0xd8, 0x57, 0x43, 0x6f, 0x77, 0x5f, 0xc5, 0x5e, - 0xef, 0x25, 0x57, 0x7b, 0x24, 0xcd, 0xd8, 0x63, 0x27, 0x61, 0x3c, 0x70, 0xb3, 0x77, 0x30, 0xa3, - 0xef, 0xe7, 0xfb, 0xd3, 0x4f, 0xf2, 0x4f, 0x0f, 0x13,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0xd5, 0x65, - 0x76, 0x74, 0x54, 0x35, 0x6f, 0xe6, 0xcd, 0x46, 0x55, 0x03, 0x5b, 0x00, 0x2a, 0xc6, 0x48, 0x4a, - 0x66, 0xdf, 0x7a, 0x54, 0x15, 0x74, 0x28, 0x11, 0x15, 0x70, 0xd5, 0x9c, 0x71, 0x45, 0xe0, 0x49, - 0xb3, 0xf7, 0xbc, 0x9e, 0x36, 0x0f, 0x5a, 0xab, 0xb7, 0x9c, 0x61, 0x85, 0x0c, 0x69, 0xa6, 0xfe, - 0xcf, 0xa5, 0x4c, 0x83, 0xc1, 0x99, 0xca, 0x7f, 0x04, 0x66, 0x43, 0xd6, 0x70, 0x22, 0x6e, 0xbc, - 0x6d, 0x22, 0xa0, 0xc1, 0x0e, 0xa5, 0xe2, 0x20, 0x36, 0xc1, 0x5d, 0xaa, 0x0f, 0xd6, 0x2e, 0xb5, - 0xa5, 0x65, 0xa5, 0x3a, 0xec, 0x98, 0x79, 0x51, 0xa6, 0xc5, 0x50, 0x0e, 0x9f, 0x9b, 0x2a, 0x6c, - 0xe6, 0x46, 0x9c, 0x7b, 0x33, 0x05, 0x17, 0x46, 0xf3, 0x23, 0x06, 0x66, 0x60, 0x2e, 0x62, 0x8d, - 0xa4, 0x67, 0xfe, 0x6d, 0xd3, 0x33, 0x1b, 0x81, 0xcf, 0x4c, 0x90, 0x64, 0x48, 0x72, 0x4c, 0x45, - 0x93, 0x70, 0x6b, 0xe1, 0x0d, 0x12, 0x54, 0x67, 0xf5, 0x50, 0x3e, 0x9c, 0xa0, 0x38, 0xf7, 0xd6, - 0x9b, 0x24, 0x28, 0x06, 0x66, 0x60, 0x2e, 0x62, 0x8d, 0x24, 0x68, 0xf1, 0xad, 0x13, 0x14, 0x81, - 0x87, 0x12, 0x54, 0x03, 0x2a, 0x0c, 0x44, 0xba, 0xc4, 0x0e, 0xf4, 0x6d, 0x81, 0x3a, 0xbb, 0x5b, - 0x4b, 0x29, 0x0b, 0x64, 0x29, 0x92,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9b, 0x0d, - 0xd8, 0x9a, 0xf9, 0x3b, 0x86, 0x16, 0x5b, 0x6b, 0x11, 0xaa, 0x27, 0xc8, 0xfa, 0xeb, 0xff, 0x96, - 0xe2, 0xcb, 0xc1, 0xff, 0x1a, 0x17, 0xb5, 0xe0, 0xd3, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x16, - 0x3d, 0x51, 0x95, 0x7f, 0x21, 0x00, 0x00, + // 2692 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x9a, 0xcb, 0x76, 0x1b, 0xb7, + 0x19, 0xc7, 0xab, 0x8b, 0x6d, 0x19, 0x92, 0x6d, 0x0a, 0xba, 0x78, 0x2c, 0x59, 0x8a, 0x4c, 0xe7, + 0x22, 0xa5, 0xd1, 0x35, 0xae, 0x93, 0x34, 0xb1, 0x6b, 0xf1, 0x22, 0x9b, 0xb1, 0x24, 0xca, 0x24, + 0x15, 0x37, 0x97, 0x06, 0x01, 0x67, 0x20, 0x0a, 0xd1, 0xcc, 0x80, 0x02, 0x30, 0x92, 0x98, 0x73, + 0x7a, 0x4e, 0x17, 0x5d, 0x65, 0xdd, 0x17, 0xe8, 0x4b, 0xf4, 0x05, 0xba, 0x70, 0xd6, 0x7d, 0x8a, + 0x76, 0xdb, 0x65, 0x56, 0x3d, 0x00, 0x66, 0xc8, 0x21, 0x25, 0x79, 0x38, 0xf6, 0xae, 0x3b, 0x7b, + 0x06, 0xff, 0xdf, 0xff, 0xc3, 0x07, 0xf0, 0xc3, 0x65, 0x04, 0x96, 0x5a, 0xd8, 0x77, 0xc8, 0xd9, + 0xaa, 0xed, 0xb2, 0xc0, 0x59, 0xf5, 0x9c, 0xfa, 0xaa, 0xed, 0x52, 0xfb, 0xe8, 0x90, 0x05, 0x82, + 0xac, 0x9e, 0xac, 0xaf, 0x06, 0x82, 0xf0, 0x95, 0x26, 0x67, 0x92, 0xc1, 0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c5, 0x11, 0x6d, 0xa2, 0xc0, 0xc7, 0x27, 0x98, 0xba, 0xb8, 0xee, 0x12, 0x24, + 0x0e, 0x31, 0x77, 0x84, 0xf5, 0x22, 0xb1, 0x07, 0x53, 0x4a, 0xba, 0xdf, 0x51, 0x56, 0xb5, 0x10, + 0x3e, 0x00, 0xd7, 0x6c, 0xe6, 0x35, 0xa9, 0x4b, 0xac, 0x8f, 0x12, 0x19, 0x51, 0x53, 0xb8, 0x0f, + 0x26, 0x3d, 0xea, 0x23, 0x9b, 0x05, 0xbe, 0x54, 0x73, 0x3a, 0x42, 0x2c, 0xa7, 0xa8, 0xa4, 0xe3, + 0x1e, 0xf5, 0xf3, 0x0a, 0x50, 0x63, 0xf9, 0x10, 0xfb, 0x1c, 0x4c, 0x84, 0x24, 0x44, 0xce, 0x9a, + 0x9c, 0x84, 0x0b, 0xe1, 0x4a, 0x62, 0x60, 0x30, 0x94, 0x15, 0x3b, 0x2a, 0xf8, 0x23, 0x78, 0xe7, + 0xa2, 0x18, 0x63, 0x64, 0x6b, 0x35, 0x45, 0xb8, 0xb3, 0xe7, 0xc2, 0xed, 0x98, 0xc1, 0x12, 0xb8, + 0xa9, 0xaa, 0x4c, 0xdd, 0x65, 0xf6, 0x11, 0x12, 0xf4, 0x27, 0x62, 0x5d, 0xef, 0xbf, 0xda, 0x8e, + 0x79, 0xf8, 0x2c, 0xa7, 0x94, 0x55, 0xfa, 0x13, 0x81, 0x3f, 0x80, 0x19, 0x15, 0x76, 0x58, 0x72, + 0x3b, 0x44, 0xc4, 0xd9, 0xa9, 0xb0, 0xd6, 0x52, 0x44, 0x3c, 0xed, 0x51, 0xbf, 0xa4, 0x31, 0x6d, + 0x7a, 0x85, 0x9d, 0x0a, 0x58, 0x07, 0xb3, 0x17, 0x3b, 0xd4, 0x5b, 0x92, 0x08, 0x6b, 0x3d, 0x85, + 0xc5, 0xed, 0xf3, 0x16, 0x39, 0x05, 0x81, 0x5f, 0x81, 0x29, 0x95, 0x90,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, 0xec, 0x79, 0xeb, 0x03, 0x90, 0xed, 0x64, 0xb5, 0x4e, 0x0e, 0x18, 0x57, 0xf5, 0x44, + 0x12, 0xee, 0x63, 0x17, 0x35, 0x38, 0x0b, 0x9a, 0xa8, 0xde, 0xb2, 0xbe, 0x4c, 0xae, 0xf2, 0x73, + 0x5e, 0x98, 0xd0, 0x9c, 0x86, 0x14, 0x43, 0xc6, 0x53, 0x85, 0xc8, 0xb5, 0x20, 0x02, 0xf3, 0x97, + 0xfb, 0x08, 0xc6, 0xa5, 0xf5, 0x3c, 0xd9, 0x63, 0xe6, 0x62, 0x8f, 0x2a, 0xe3, 0x6a, 0x53, 0x77, + 0x37, 0x0a, 0x17, 0xc9, 0x53, 0x86, 0x5c, 0x72, 0x42, 0x5c, 0x24, 0x0f, 0x39, 0x11, 0x87, 0xcc, + 0x75, 0xac, 0xed, 0x64, 0xbc, 0xd5, 0x30, 0xc1, 0xd6, 0x4e, 0xd9, 0xb6, 0x52, 0xd7, 0x22, 0xb1, + 0xca, 0xd2, 0xeb, 0xe0, 0x61, 0x9d, 0xd9, 0xe9, 0x23, 0x4b, 0x97, 0x59, 0x98, 0x22, 0xf3, 0x04, + 0x8c, 0x34, 0x39, 0x65, 0x9c, 0xca, 0x96, 0xf5, 0x69, 0x8a, 0x9f, 0x7e, 0x5b, 0x05, 0x0b, 0x60, + 0x54, 0xe5, 0x59, 0x85, 0x86, 0x1d, 0x61, 0x8d, 0xf4, 0x3f, 0x5b, 0x80, 0x87, 0xcf, 0x6a, 0x46, + 0x06, 0x77, 0x41, 0x46, 0x51, 0xc2, 0x6d, 0x45, 0x20, 0x70, 0x83, 0x58, 0xa3, 0x29, 0xe2, 0x51, + 0x6b, 0x87, 0xd9, 0x49, 0xec, 0x2b, 0x2d, 0xfc, 0x1e, 0xdc, 0xe9, 0xe5, 0xe9, 0xc9, 0x1d, 0x08, + 0xc2, 0xad, 0xb1, 0x54, 0x35, 0xae, 0x0b, 0xbc, 0xc5, 0xb8, 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, 0xc2, 0xfb, 0xe0, 0x9d, 0x4b, 0xdb, 0x3c, 0xdd, 0x2e, 0xe7, 0x36, 0xb7, 0x33, 0x43, 0xaf, + 0x05, 0x6d, 0x6e, 0x6f, 0x97, 0x5f, 0x66, 0x86, 0xb3, 0xff, 0x18, 0x02, 0xd7, 0xdb, 0x5f, 0xc0, + 0x61, 0x0d, 0x8c, 0x47, 0x13, 0x10, 0x39, 0x01, 0xd7, 0x45, 0xa5, 0x9f, 0x2f, 0xde, 0xf1, 0x0f, + 0x8d, 0x99, 0x88, 0x50, 0x08, 0x01, 0xf0, 0x31, 0xb8, 0x16, 0x7d, 0x28, 0x1c, 0x4c, 0xb1, 0x8f, + 0x89, 0x44, 0xf0, 0x0b, 0x70, 0x95, 0x70, 0xce, 0xb8, 0x48, 0xf5, 0xf1, 0x3b, 0xd4, 0xc0, 0x22, + 0x18, 0x8d, 0x1f, 0x0c, 0x87, 0x53, 0x20, 0x00, 0xef, 0x9c, 0x0a, 0x37, 0xc1, 0x75, 0x7d, 0x45, + 0xa1, 0x21, 0x57, 0xd2, 0x5c, 0xe0, 0x29, 0x99, 0x46, 0x3c, 0x07, 0x37, 0x7b, 0x76, 0xd5, 0x57, + 0xd3, 0x9c, 0x52, 0x49, 0x7c, 0x4b, 0x9d, 0x13, 0x20, 0xdb, 0xb5, 0x69, 0xc6, 0x4d, 0x7a, 0x7e, + 0xe3, 0xfc, 0xcd, 0x4e, 0x83, 0xca, 0xc3, 0xa0, 0xbe, 0x62, 0x33, 0x6f, 0xd5, 0x34, 0x5f, 0x36, + 0x7f, 0x8a, 0xd3, 0x60, 0xcb, 0x0d, 0xe2, 0x6b, 0xc3, 0xd5, 0xd7, 0xff, 0x39, 0xd0, 0xe7, 0x9d, + 0xff, 0xd5, 0xaf, 0x6a, 0xc1, 0xc7, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x8d, 0xba, 0xab, 0xde, + 0x42, 0x24, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/user.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/user.pbext.go new file mode 100644 index 000000000..4d11e0f33 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/user.pbext.go @@ -0,0 +1,395 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package clickhouse + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *User) SetName(v string) { + m.Name = v +} + +func (m *User) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *User) SetPermissions(v []*Permission) { + m.Permissions = v +} + +func (m *User) SetSettings(v *UserSettings) { + m.Settings = v +} + +func (m *User) SetQuotas(v []*UserQuota) { + m.Quotas = v +} + +func (m *Permission) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *UserSpec) SetName(v string) { + m.Name = v +} + +func (m *UserSpec) SetPassword(v string) { + m.Password = v +} + +func (m *UserSpec) SetPermissions(v []*Permission) { + m.Permissions = v +} + +func (m *UserSpec) SetSettings(v *UserSettings) { + m.Settings = v +} + +func (m *UserSpec) SetQuotas(v []*UserQuota) { + m.Quotas = v +} + +func (m *UserSettings) SetReadonly(v *wrappers.Int64Value) { + m.Readonly = v +} + +func (m *UserSettings) SetAllowDdl(v *wrappers.BoolValue) { + m.AllowDdl = v +} + +func (m *UserSettings) SetInsertQuorum(v *wrappers.Int64Value) { + m.InsertQuorum = v +} + +func (m *UserSettings) SetConnectTimeout(v *wrappers.Int64Value) { + m.ConnectTimeout = v +} + +func (m *UserSettings) SetReceiveTimeout(v *wrappers.Int64Value) { + m.ReceiveTimeout = v +} + +func (m *UserSettings) SetSendTimeout(v *wrappers.Int64Value) { + m.SendTimeout = v +} + +func (m *UserSettings) SetInsertQuorumTimeout(v *wrappers.Int64Value) { + m.InsertQuorumTimeout = v +} + +func (m *UserSettings) SetSelectSequentialConsistency(v *wrappers.BoolValue) { + m.SelectSequentialConsistency = v +} + +func (m *UserSettings) SetMaxReplicaDelayForDistributedQueries(v *wrappers.Int64Value) { + m.MaxReplicaDelayForDistributedQueries = v +} + +func (m *UserSettings) SetFallbackToStaleReplicasForDistributedQueries(v *wrappers.BoolValue) { + m.FallbackToStaleReplicasForDistributedQueries = v +} + +func (m *UserSettings) SetReplicationAlterPartitionsSync(v *wrappers.Int64Value) { + m.ReplicationAlterPartitionsSync = v +} + +func (m *UserSettings) SetDistributedProductMode(v UserSettings_DistributedProductMode) { + m.DistributedProductMode = v +} + +func (m *UserSettings) SetDistributedAggregationMemoryEfficient(v *wrappers.BoolValue) { + m.DistributedAggregationMemoryEfficient = v +} + +func (m *UserSettings) SetDistributedDdlTaskTimeout(v *wrappers.Int64Value) { + m.DistributedDdlTaskTimeout = v +} + +func (m *UserSettings) SetSkipUnavailableShards(v *wrappers.BoolValue) { + m.SkipUnavailableShards = v +} + +func (m *UserSettings) SetCompile(v *wrappers.BoolValue) { + m.Compile = v +} + +func (m *UserSettings) SetMinCountToCompile(v *wrappers.Int64Value) { + m.MinCountToCompile = v +} + +func (m *UserSettings) SetCompileExpressions(v *wrappers.BoolValue) { + m.CompileExpressions = v +} + +func (m *UserSettings) SetMinCountToCompileExpression(v *wrappers.Int64Value) { + m.MinCountToCompileExpression = v +} + +func (m *UserSettings) SetMaxBlockSize(v *wrappers.Int64Value) { + m.MaxBlockSize = v +} + +func (m *UserSettings) SetMinInsertBlockSizeRows(v *wrappers.Int64Value) { + m.MinInsertBlockSizeRows = v +} + +func (m *UserSettings) SetMinInsertBlockSizeBytes(v *wrappers.Int64Value) { + m.MinInsertBlockSizeBytes = v +} + +func (m *UserSettings) SetMaxInsertBlockSize(v *wrappers.Int64Value) { + m.MaxInsertBlockSize = v +} + +func (m *UserSettings) SetMinBytesToUseDirectIo(v *wrappers.Int64Value) { + m.MinBytesToUseDirectIo = v +} + +func (m *UserSettings) SetUseUncompressedCache(v *wrappers.BoolValue) { + m.UseUncompressedCache = v +} + +func (m *UserSettings) SetMergeTreeMaxRowsToUseCache(v *wrappers.Int64Value) { + m.MergeTreeMaxRowsToUseCache = v +} + +func (m *UserSettings) SetMergeTreeMaxBytesToUseCache(v *wrappers.Int64Value) { + m.MergeTreeMaxBytesToUseCache = v +} + +func (m *UserSettings) SetMergeTreeMinRowsForConcurrentRead(v *wrappers.Int64Value) { + m.MergeTreeMinRowsForConcurrentRead = v +} + +func (m *UserSettings) SetMergeTreeMinBytesForConcurrentRead(v *wrappers.Int64Value) { + m.MergeTreeMinBytesForConcurrentRead = v +} + +func (m *UserSettings) SetMaxBytesBeforeExternalGroupBy(v *wrappers.Int64Value) { + m.MaxBytesBeforeExternalGroupBy = v +} + +func (m *UserSettings) SetMaxBytesBeforeExternalSort(v *wrappers.Int64Value) { + m.MaxBytesBeforeExternalSort = v +} + +func (m *UserSettings) SetGroupByTwoLevelThreshold(v *wrappers.Int64Value) { + m.GroupByTwoLevelThreshold = v +} + +func (m *UserSettings) SetGroupByTwoLevelThresholdBytes(v *wrappers.Int64Value) { + m.GroupByTwoLevelThresholdBytes = v +} + +func (m *UserSettings) SetPriority(v *wrappers.Int64Value) { + m.Priority = v +} + +func (m *UserSettings) SetMaxThreads(v *wrappers.Int64Value) { + m.MaxThreads = v +} + +func (m *UserSettings) SetMaxMemoryUsage(v *wrappers.Int64Value) { + m.MaxMemoryUsage = v +} + +func (m *UserSettings) SetMaxMemoryUsageForUser(v *wrappers.Int64Value) { + m.MaxMemoryUsageForUser = v +} + +func (m *UserSettings) SetMaxNetworkBandwidth(v *wrappers.Int64Value) { + m.MaxNetworkBandwidth = v +} + +func (m *UserSettings) SetMaxNetworkBandwidthForUser(v *wrappers.Int64Value) { + m.MaxNetworkBandwidthForUser = v +} + +func (m *UserSettings) SetForceIndexByDate(v *wrappers.BoolValue) { + m.ForceIndexByDate = v +} + +func (m *UserSettings) SetForcePrimaryKey(v *wrappers.BoolValue) { + m.ForcePrimaryKey = v +} + +func (m *UserSettings) SetMaxRowsToRead(v *wrappers.Int64Value) { + m.MaxRowsToRead = v +} + +func (m *UserSettings) SetMaxBytesToRead(v *wrappers.Int64Value) { + m.MaxBytesToRead = v +} + +func (m *UserSettings) SetReadOverflowMode(v UserSettings_OverflowMode) { + m.ReadOverflowMode = v +} + +func (m *UserSettings) SetMaxRowsToGroupBy(v *wrappers.Int64Value) { + m.MaxRowsToGroupBy = v +} + +func (m *UserSettings) SetGroupByOverflowMode(v UserSettings_GroupByOverflowMode) { + m.GroupByOverflowMode = v +} + +func (m *UserSettings) SetMaxRowsToSort(v *wrappers.Int64Value) { + m.MaxRowsToSort = v +} + +func (m *UserSettings) SetMaxBytesToSort(v *wrappers.Int64Value) { + m.MaxBytesToSort = v +} + +func (m *UserSettings) SetSortOverflowMode(v UserSettings_OverflowMode) { + m.SortOverflowMode = v +} + +func (m *UserSettings) SetMaxResultRows(v *wrappers.Int64Value) { + m.MaxResultRows = v +} + +func (m *UserSettings) SetMaxResultBytes(v *wrappers.Int64Value) { + m.MaxResultBytes = v +} + +func (m *UserSettings) SetResultOverflowMode(v UserSettings_OverflowMode) { + m.ResultOverflowMode = v +} + +func (m *UserSettings) SetMaxRowsInDistinct(v *wrappers.Int64Value) { + m.MaxRowsInDistinct = v +} + +func (m *UserSettings) SetMaxBytesInDistinct(v *wrappers.Int64Value) { + m.MaxBytesInDistinct = v +} + +func (m *UserSettings) SetDistinctOverflowMode(v UserSettings_OverflowMode) { + m.DistinctOverflowMode = v +} + +func (m *UserSettings) SetMaxRowsToTransfer(v *wrappers.Int64Value) { + m.MaxRowsToTransfer = v +} + +func (m *UserSettings) SetMaxBytesToTransfer(v *wrappers.Int64Value) { + m.MaxBytesToTransfer = v +} + +func (m *UserSettings) SetTransferOverflowMode(v UserSettings_OverflowMode) { + m.TransferOverflowMode = v +} + +func (m *UserSettings) SetMaxExecutionTime(v *wrappers.Int64Value) { + m.MaxExecutionTime = v +} + +func (m *UserSettings) SetTimeoutOverflowMode(v UserSettings_OverflowMode) { + m.TimeoutOverflowMode = v +} + +func (m *UserSettings) SetMaxColumnsToRead(v *wrappers.Int64Value) { + m.MaxColumnsToRead = v +} + +func (m *UserSettings) SetMaxTemporaryColumns(v *wrappers.Int64Value) { + m.MaxTemporaryColumns = v +} + +func (m *UserSettings) SetMaxTemporaryNonConstColumns(v *wrappers.Int64Value) { + m.MaxTemporaryNonConstColumns = v +} + +func (m *UserSettings) SetMaxQuerySize(v *wrappers.Int64Value) { + m.MaxQuerySize = v +} + +func (m *UserSettings) SetMaxAstDepth(v *wrappers.Int64Value) { + m.MaxAstDepth = v +} + +func (m *UserSettings) SetMaxAstElements(v *wrappers.Int64Value) { + m.MaxAstElements = v +} + +func (m *UserSettings) SetMaxExpandedAstElements(v *wrappers.Int64Value) { + m.MaxExpandedAstElements = v +} + +func (m *UserSettings) SetInputFormatValuesInterpretExpressions(v *wrappers.BoolValue) { + m.InputFormatValuesInterpretExpressions = v +} + +func (m *UserSettings) SetInputFormatDefaultsForOmittedFields(v *wrappers.BoolValue) { + m.InputFormatDefaultsForOmittedFields = v +} + +func (m *UserSettings) SetOutputFormatJsonQuote_64BitIntegers(v *wrappers.BoolValue) { + m.OutputFormatJsonQuote_64BitIntegers = v +} + +func (m *UserSettings) SetOutputFormatJsonQuoteDenormals(v *wrappers.BoolValue) { + m.OutputFormatJsonQuoteDenormals = v +} + +func (m *UserSettings) SetLowCardinalityAllowInNativeFormat(v *wrappers.BoolValue) { + m.LowCardinalityAllowInNativeFormat = v +} + +func (m *UserSettings) SetEmptyResultForAggregationByEmptySet(v *wrappers.BoolValue) { + m.EmptyResultForAggregationByEmptySet = v +} + +func (m *UserSettings) SetHttpConnectionTimeout(v *wrappers.Int64Value) { + m.HttpConnectionTimeout = v +} + +func (m *UserSettings) SetHttpReceiveTimeout(v *wrappers.Int64Value) { + m.HttpReceiveTimeout = v +} + +func (m *UserSettings) SetHttpSendTimeout(v *wrappers.Int64Value) { + m.HttpSendTimeout = v +} + +func (m *UserSettings) SetEnableHttpCompression(v *wrappers.BoolValue) { + m.EnableHttpCompression = v +} + +func (m *UserSettings) SetSendProgressInHttpHeaders(v *wrappers.BoolValue) { + m.SendProgressInHttpHeaders = v +} + +func (m *UserSettings) SetHttpHeadersProgressInterval(v *wrappers.Int64Value) { + m.HttpHeadersProgressInterval = v +} + +func (m *UserSettings) SetAddHttpCorsHeader(v *wrappers.BoolValue) { + m.AddHttpCorsHeader = v +} + +func (m *UserQuota) SetIntervalDuration(v *wrappers.Int64Value) { + m.IntervalDuration = v +} + +func (m *UserQuota) SetQueries(v *wrappers.Int64Value) { + m.Queries = v +} + +func (m *UserQuota) SetErrors(v *wrappers.Int64Value) { + m.Errors = v +} + +func (m *UserQuota) SetResultRows(v *wrappers.Int64Value) { + m.ResultRows = v +} + +func (m *UserQuota) SetReadRows(v *wrappers.Int64Value) { + m.ReadRows = v +} + +func (m *UserQuota) SetExecutionTime(v *wrappers.Int64Value) { + m.ExecutionTime = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/user_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/user_service.pb.go index b91b84342..95214c24c 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/user_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/user_service.pb.go @@ -307,6 +307,7 @@ type UpdateUserRequest struct { // New set of permissions for the user. Permissions []*Permission `protobuf:"bytes,5,rep,name=permissions,proto3" json:"permissions,omitempty"` Settings *UserSettings `protobuf:"bytes,6,opt,name=settings,proto3" json:"settings,omitempty"` + Quotas []*UserQuota `protobuf:"bytes,7,rep,name=quotas,proto3" json:"quotas,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -379,6 +380,13 @@ func (m *UpdateUserRequest) GetSettings() *UserSettings { return nil } +func (m *UpdateUserRequest) GetQuotas() []*UserQuota { + if m != nil { + return m.Quotas + } + return nil +} + type UpdateUserMetadata struct { // ID of the ClickHouse cluster the user belongs to. ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` @@ -767,80 +775,81 @@ func init() { } var fileDescriptor_7d727f99e64df8b6 = []byte{ - // 1010 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xcb, 0x6f, 0x1b, 0x45, - 0x18, 0xd7, 0xe4, 0x61, 0xc5, 0x9f, 0x9b, 0xb6, 0x19, 0x09, 0xc9, 0x72, 0x1a, 0x14, 0x96, 0x52, - 0x82, 0x8b, 0x77, 0xbd, 0x2e, 0x8f, 0xe2, 0xb4, 0x3c, 0x52, 0x68, 0x78, 0x34, 0x4d, 0xb4, 0x69, - 0x0f, 0xa4, 0x42, 0xd6, 0xd8, 0x3b, 0xdd, 0xae, 0xec, 0x7d, 0xb0, 0xb3, 0xeb, 0x36, 0x29, 0x95, - 0x50, 0x8f, 0x95, 0xb8, 0xc0, 0x9f, 0xc0, 0x81, 0x13, 0x97, 0x5c, 0xf9, 0x03, 0xdc, 0x2b, 0x41, - 0xfc, 0x07, 0x1c, 0x38, 0x97, 0x03, 0x88, 0x13, 0x9a, 0x19, 0xc7, 0xbb, 0x8e, 0x4d, 0xd6, 0x89, - 0xa3, 0xf6, 0xb6, 0xe3, 0xf9, 0x7e, 0xf3, 0xfd, 0x7e, 0xf3, 0xbd, 0xc6, 0xa0, 0x6f, 0x13, 0xd7, - 0xa4, 0x0f, 0xb4, 0x46, 0xcb, 0x8b, 0x4c, 0xcd, 0x31, 0xeb, 0x5a, 0xa3, 0x65, 0x37, 0x9a, 0xf7, - 0xbc, 0x88, 0x51, 0xad, 0xad, 0x6b, 0x11, 0xa3, 0x41, 0x8d, 0xd1, 0xa0, 0x6d, 0x37, 0xa8, 0x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x97, 0x0e, 0xce, 0xef, 0x4f, 0x1c, 0x3f, 0xdc, - 0x96, 0x95, 0x50, 0x1c, 0xb7, 0x12, 0xfe, 0x42, 0x70, 0x46, 0x74, 0xd0, 0xb8, 0x2f, 0xe0, 0x6a, - 0x6a, 0xed, 0xfe, 0xef, 0x14, 0x19, 0x45, 0xe9, 0xb7, 0x68, 0x77, 0xaf, 0xf8, 0xea, 0xe1, 0x8d, - 0x3b, 0x8e, 0xde, 0xa6, 0x72, 0x73, 0xcc, 0xe8, 0x59, 0xfd, 0xf2, 0x78, 0x34, 0xff, 0x46, 0x70, - 0x56, 0xb6, 0xc4, 0x84, 0xec, 0xe5, 0x34, 0xd9, 0x87, 0x4c, 0x83, 0x51, 0x74, 0x3f, 0xe6, 0xba, - 0xcf, 0xa7, 0xf4, 0xe2, 0x58, 0xf8, 0x2d, 0x65, 0x7d, 0x4c, 0xe1, 0xc1, 0x01, 0x85, 0x55, 0x54, - 0x5c, 0x59, 0xdf, 0x5a, 0xb3, 0xec, 0xf0, 0x5e, 0x54, 0x57, 0x1b, 0x9e, 0xa3, 0x49, 0xce, 0x25, - 0xf9, 0xc7, 0xc9, 0xf2, 0x4a, 0x16, 0x75, 0x45, 0x96, 0x69, 0x87, 0xff, 0x3d, 0x5b, 0x8e, 0x57, - 0xf5, 0x8c, 0x00, 0x5c, 0xfa, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x3b, 0x91, 0xd1, 0xe1, 0x8d, 0x0e, - 0x00, 0x00, + // 1039 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0x4d, 0x6f, 0x1b, 0x45, + 0x18, 0xd6, 0xd4, 0x8e, 0x89, 0x5f, 0x37, 0x6d, 0x33, 0x12, 0x92, 0xe5, 0x34, 0x28, 0x2c, 0xa5, + 0xa4, 0x2e, 0xde, 0xf5, 0xba, 0x7c, 0x14, 0xa7, 0x05, 0x9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 0x25, 0xc6, 0x64, 0x2f, 0x8d, 0x93, 0xbd, 0xcf, 0x34, + 0x48, 0xa2, 0xfb, 0x09, 0xd7, 0x7d, 0x66, 0x4c, 0x2f, 0x8e, 0x84, 0xdf, 0x52, 0x6e, 0x4e, 0x28, + 0xdc, 0xdf, 0xa3, 0xb0, 0x8a, 0x8a, 0xcb, 0x0c, 0x94, 0x01, 0xa2, 0xc4, 0xb3, 0x87, 0x95, 0x6e, + 0xac, 0x5a, 0x76, 0x70, 0x2f, 0xac, 0xab, 0x0d, 0xb7, 0xad, 0x49, 0xf3, 0x92, 0xfc, 0x7f, 0x66, + 0xb9, 0x25, 0x8b, 0x3a, 0x22, 0x13, 0xb5, 0xfd, 0xff, 0x05, 0x2e, 0x45, 0xab, 0x7a, 0x46, 0x00, + 0x2e, 0xfc, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xb4, 0x5d, 0x00, 0xca, 0xf4, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // UserServiceClient is the client API for UserService service. // @@ -865,10 +874,10 @@ type UserServiceClient interface { } type userServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient { +func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient { return &userServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/user_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/user_service.pbext.go new file mode 100644 index 000000000..a0769d035 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/user_service.pbext.go @@ -0,0 +1,143 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package clickhouse + +import ( + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetUserRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetUserRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *ListUsersRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListUsersRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListUsersRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListUsersResponse) SetUsers(v []*User) { + m.Users = v +} + +func (m *ListUsersResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateUserRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateUserRequest) SetUserSpec(v *UserSpec) { + m.UserSpec = v +} + +func (m *CreateUserMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateUserMetadata) SetUserName(v string) { + m.UserName = v +} + +func (m *UpdateUserRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateUserRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *UpdateUserRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateUserRequest) SetPassword(v string) { + m.Password = v +} + +func (m *UpdateUserRequest) SetPermissions(v []*Permission) { + m.Permissions = v +} + +func (m *UpdateUserRequest) SetSettings(v *UserSettings) { + m.Settings = v +} + +func (m *UpdateUserRequest) SetQuotas(v []*UserQuota) { + m.Quotas = v +} + +func (m *UpdateUserMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateUserMetadata) SetUserName(v string) { + m.UserName = v +} + +func (m *DeleteUserRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteUserRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *DeleteUserMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteUserMetadata) SetUserName(v string) { + m.UserName = v +} + +func (m *GrantUserPermissionRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GrantUserPermissionRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *GrantUserPermissionRequest) SetPermission(v *Permission) { + m.Permission = v +} + +func (m *GrantUserPermissionMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GrantUserPermissionMetadata) SetUserName(v string) { + m.UserName = v +} + +func (m *RevokeUserPermissionRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RevokeUserPermissionRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *RevokeUserPermissionRequest) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *RevokeUserPermissionMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RevokeUserPermissionMetadata) SetUserName(v string) { + m.UserName = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/backup.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/backup.pb.go index 63218b771..dcfae8774 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/backup.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/backup.pb.go @@ -118,24 +118,24 @@ func init() { } var fileDescriptor_461e9a87253eb299 = []byte{ - // 290 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xbd, 0x4e, 0xf3, 0x30, - 0x18, 0x85, 0xd5, 0xf4, 0xfb, 0x2a, 0x62, 0x24, 0x7e, 0x3c, 0x45, 0xed, 0x40, 0xc5, 0x14, 0x21, - 0x6a, 0xab, 0x30, 0x21, 0xa6, 0x96, 0x01, 0x75, 0x61, 0x28, 0x4c, 0x2c, 0x91, 0xed, 0xd7, 0x75, - 0x23, 0xe2, 0xb8, 0xf2, 0x4f, 0x05, 0x17, 0xc0, 0x7d, 0xa3, 0xda, 0xee, 0x0a,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72, 0xc8, 0x97, 0xab, 0xf7, 0x67, 0xd5, 0xfa, 0x6d, 0xe0, 0x44, 0x18, 0x4d, - 0xd3, 0x49, 0x67, 0xe9, 0xf8, 0xca, 0xcc, 0x94, 0xec, 0xa3, 0x8c, 0xfe, 0xf2, 0x2a, 0x8f, 0xf9, - 0x93, 0x8f, 0x22, 0x7a, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0xbe, 0xb9, 0x9c, 0x42, 0xc3, 0x01, - 0x00, 0x00, + // 300 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0x3d, 0x4f, 0xc3, 0x30, + 0x10, 0x86, 0xd5, 0x14, 0x2a, 0x62, 0x24, 0x3e, 0x3c, 0x45, 0xed, 0xd0, 0x8a, 0x29, 0x42, 0xd4, + 0x56, 0x61, 0x42, 0x4c, 0x2d, 0x03, 0x62, 0x61, 0x28, 0x4c, 0x2c, 0x91, 0x9d, 0x73, 0x53, 0x43, + 0x1c, 0x57, 0xfe, 0xa8, 0xe0, 0x07, 0xf0, 0xbf, 0x51, 0x6d, 0x77, 0x80, 0x01, 0xb6, 0xe8, 0xbd, + 0x27, 0xef, 0x63, 0xdd, 0xa1, 0xf2, 0x93, 0x75, 0x20, 0x3e, 0x68, 0xdd, 0x6a, 0x0f, 0x54, 0x01, + 0xa7, 0x4a, 0x77, 0x8d, 0x06, 0x4e, 0xb7, 0x33, 0xca, 0x59, 0xfd, 0xee, 0x37, 0x64, 0x63, 0xb4, + 0xd3, 0x78, 0x14, 0x49, 0x12, 0x48, 0xa2, 0x80, 0x93, 0x44, 0x92, 0xed, 0x6c, 0x38, 0x6e, 0xb4, + 0x6e, 0x5a, 0x41, 0x03, 0xca, 0xfd, 0x8a, 0x3a, 0xa9, 0x84, 0x75, 0x4c, 0xa5, 0xbf, 0x2f, 0xbe, + 0x32, 0x34, 0x58, 0x84, 0x3a, 0x7c, 0x82, 0x32, 0x09, 0x45, 0x6f, 0xd2, 0x2b, 0xf3, 0x65, 0x26, + 0x01, 0x8f, 0x50, 0xbe, 0xd2, 0x2d, 0x08, 0x53, 0x49, 0x28, 0xb2, 0x10, 0x1f, 0xc5, 0xe0, 0x11, + 0xf0, 0x2d, 0x42, 0xb5, 0x11, 0xcc, 0x09, 0xa8, 0x98, 0x2b, 0xfa, 0x93, 0x5e, 0x79, 0x7c, 0x3d, + 0x24, 0xd1, 0x46, 0xf6, 0x36, 0xf2, 0xb2, 0xb7, 0x2d, 0xf3, 0x44, 0xcf, 0x1d, 0xbe, 0x44, 0xe7, + 0x56, 0x7b, 0x53, 0x8b, 0xaa, 0x6e, 0xbd, 0x75, 0xb1, 0xff, 0x20, 0xf4, 0x9f, 0xc6, 0xc1, 0x7d, + 0xcc, 0xa3, 0xc6, 0x3a, 0x66, 0x92, 0xe6, 0xf0, 0x7f, 0x4d, 0xa2, 0xe7, 0x0e, 0x5f, 0x21, 0x9c, + 0x34, 0x76, 0xcd, 0x0c, 0x54, 0x1d, 0x53, 0xc2, 0x16, 0x83, 0x49, 0xbf, 0xcc, 0x97, 0x67, 0x71, + 0xf2, 0xbc, 0x1b, 0x3c, 0xed, 0xf2, 0xc5, 0x1b, 0x1a, 0xff, 0xd8, 0x23, 0xdb, 0xc8, 0x5f, 0xbb, + 0x7c, 0x7d, 0x68, 0xa4, 0x5b, 0x7b, 0x4e, 0x6a, 0xad, 0x68, 0x64, 0xa7, 0xf1, 0x3a, 0x8d, 0x9e, + 0x36, 0xa2, 0x0b, 0xaf, 0xa1, 0x7f, 0x9c, 0xed, 0x2e, 0x7d, 0xf2, 0x41, 0x40, 0x6f, 0xbe, 0x03, + 0x00, 0x00, 0xff, 0xff, 0x78, 0xe0, 0x54, 0xfc, 0xe4, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/backup.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/backup.pbext.go new file mode 100644 index 000000000..52bb0d653 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/backup.pbext.go @@ -0,0 +1,31 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mongodb + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Backup) SetId(v string) { + m.Id = v +} + +func (m *Backup) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Backup) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Backup) SetSourceClusterId(v string) { + m.SourceClusterId = v +} + +func (m *Backup) SetStartedAt(v *timestamp.Timestamp) { + m.StartedAt = v +} + +func (m *Backup) SetSourceShardNames(v []string) { + m.SourceShardNames = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/backup_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/backup_service.pb.go index 3687cade3..ffbd20833 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/backup_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/backup_service.pb.go @@ -189,45 +189,46 @@ func init() { } var fileDescriptor_11029ddc87f407e2 = []byte{ - // 459 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x31, 0x6f, 0xd3, 0x40, - 0x14, 0xc7, 0xe5, 0x24, 0x94, 0xf8, 0xa0, 0x02, 0x1d, 0x4b, 0x94, 0x52, 0x29, 0xb8, 0x12, 0x75, - 0x87, 0xf8, 0xec, 0xa2, 0x4e, 0x34, 0x4b, 0x96, 0x28, 0x12, 0x03, 0x72, 0x99, 0x58, 0xa2, 0x73, - 0xee, 0x71, 0x9c, 0x1a, 0xdf, 0x99, 0xd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xaf, 0x57, 0x59, 0x34, 0x57, 0x39, 0x71, 0x23, 0x86, 0xee, 0x60, 0xb9, 0x1a, 0x72, - 0x90, 0xf6, 0x40, 0x49, 0xc3, 0x25, 0x3f, 0xad, 0x9f, 0xd9, 0x96, 0x2d, 0x7d, 0xf2, 0x2b, 0x00, - 0x00, 0xff, 0xff, 0x1f, 0x32, 0xcb, 0x4a, 0x83, 0x03, 0x00, 0x00, + // 468 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x31, 0x6f, 0x13, 0x31, + 0x14, 0xc7, 0x75, 0x49, 0x28, 0x39, 0x43, 0x05, 0x32, 0x4b, 0x94, 0x52, 0x11, 0xae, 0x12, 0xbd, + 0x0e, 0x39, 0xdf, 0x15, 0x75, 0xa2, 0x59, 0xb2, 0x44, 0x95, 0x18, 0xd0, 0x95, 0x89, 0x25, 0xf2, + 0xc5, 0x0f, 0x63, 0x9a, 0xb3, 0x8f, 0xd8, 0x89, 0x4a, 0x81, 0x85, 0x31, 0x03, 0x03, 0x7c, 0x0e, + 0x3e, 0x47, 0xbb, 0xf3, 0x15, 0x18, 0xf8, 0x0c, 0x4c, 0xe8, 0xec, 0x0b, 0x90, 0x56, 0xba, 0x76, + 0xb3, 0xfc, 0xde, 0xef, 0xff, 0xfe, 0xfa, 0xbf, 0x87, 0xe2, 0xf7, 0x54, 0x32, 0x38, 0x25, 0x93, + 0xa9, 0x9a, 0x33, 0x92, 0xb3, 0x8c, 0xe4, 0x4a, 0x72, 0xc5, 0x32, 0xb2, 0x48, 0x48, 0x46, 0x27, + 0x27, 0xf3, 0x62, 0xac, 0x61, 0xb6, 0x10, 0x13, 0x88, 0x8a, 0x99, 0x32, 0x0a, 0x6f, 0x39, 0x22, + 0xb2, 0x44, 0x94, 0xb3, 0x2c, 0xaa, 0x88, 0x68, 0x91, 0x74, 0x1f, 0x72, 0xa5, 0xf8, 0x14,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, 0x4e, 0xcd, 0xf8, 0x3f, 0x13, 0xa5, 0x5d, 0x3f, 0xdd, 0x2c, 0xbf, + 0x5f, 0xac, 0xa6, 0xef, 0x7f, 0x6f, 0xa0, 0x4d, 0xc7, 0x1e, 0xbb, 0x2d, 0xe3, 0xa5, 0x87, 0x9a, + 0x23, 0x30, 0xb8, 0x5f, 0x3b, 0xef, 0x72, 0xfc, 0xdd, 0x9b, 0xd8, 0x0b, 0xc8, 0xe7, 0x1f, 0x3f, + 0xbf, 0x35, 0xf6, 0xf0, 0x2e, 0xc9, 0xa9, 0xa4, 0x1c, 0x58, 0xff, 0xca, 0x86, 0x35, 0xf9, 0xf0, + 0x77, 0x8d, 0x9f, 0xf0, 0x17, 0x0f, 0xb5, 0xca, 0x74, 0x30, 0xa9, 0x95, 0xbf, 0xba, 0xd4, 0x6e, + 0x7c, 0x73, 0xc0, 0x25, 0x1e, 0xec, 0x58, 0x73, 0xdb, 0x78, 0xab, 0xc6, 0xdc, 0xf0, 0x2d, 0x7a, + 0xb4, 0xa6, 0x4b, 0x0b, 0x71, 0x49, 0xfb, 0xd5, 0x88, 0x0b, 0xf3, 0x66, 0x9e, 0x45, 0x13, 0x95, + 0x13, 0xd7, 0xdb, 0x77, 0x17, 0xcd, 0x55, 0x9f, 0x83, 0xb4, 0x17, 0x4c, 0x6a, 0x4e, 0xfd, 0x59, + 0xf5, 0xcc, 0x36, 0x6c, 0xeb, 0xd3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x09, 0xcb, 0xeb, + 0xa4, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // BackupServiceClient is the client API for BackupService service. // @@ -242,10 +243,10 @@ type BackupServiceClient interface { } type backupServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewBackupServiceClient(cc *grpc.ClientConn) BackupServiceClient { +func NewBackupServiceClient(cc grpc.ClientConnInterface) BackupServiceClient { return &backupServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/backup_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/backup_service.pbext.go new file mode 100644 index 000000000..743f30171 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/backup_service.pbext.go @@ -0,0 +1,27 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mongodb + +func (m *GetBackupRequest) SetBackupId(v string) { + m.BackupId = v +} + +func (m *ListBackupsRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListBackupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListBackupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListBackupsResponse) SetBackups(v []*Backup) { + m.Backups = v +} + +func (m *ListBackupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/cluster.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/cluster.pb.go index 355cdd449..cf5b10150 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/cluster.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/cluster.pb.go @@ -173,7 +173,7 @@ func (x Host_Type) String() string { } func (Host_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ccaf7a2567168975, []int{6, 0} + return fileDescriptor_ccaf7a2567168975, []int{7, 0} } type Host_Role int32 @@ -204,7 +204,7 @@ func (x Host_Role) String() string { } func (Host_Role) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ccaf7a2567168975, []int{6, 1} + return fileDescriptor_ccaf7a2567168975, []int{7, 1} } type Host_Health int32 @@ -239,7 +239,7 @@ func (x Host_Health) String() string { } func (Host_Health) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ccaf7a2567168975, []int{6, 2} + return fileDescriptor_ccaf7a2567168975, []int{7, 2} } type Service_Type int32 @@ -273,7 +273,7 @@ func (x Service_Type) String() string { } func (Service_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ccaf7a2567168975, []int{7, 0} + return fileDescriptor_ccaf7a2567168975, []int{8, 0} } type Service_Health int32 @@ -304,7 +304,7 @@ func (x Service_Health) String() string { } func (Service_Health) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ccaf7a2567168975, []int{7, 1} + return fileDescriptor_ccaf7a2567168975, []int{8, 1} } // A managed MongoDB cluster. For more information, see the [documentation](/docs/managed-mongodb/concepts). @@ -518,19 +518,21 @@ func (m *Monitoring) GetLink() string { } type ClusterConfig struct { - // Version of MongoDB server software. + // Version of MongoDB server software. Possible values: `3.6`, `4.0`, `4.2`. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // MongoDB feature compatibility version. See usage details in [MongoDB documentation](https://docs.mongodb.com/manual/reference/command/setFeatureCompatibilityVersion/). // // Possible values: - // * 3.6 — persist data compatibility for version 3.6. After setting this option the data will not be compatible with 3.4 or lower. - // * 4.0 — persist data compatibility for version 4.0. After setting this option the data will not be compatible with 3.6 or lower. + // * `3.6` — persist data compatibility for version 3.6. After setting this option the data will not be compatible with 3.4 or lower. + // * `4.0` — persist data compatibility for version 4.0. After setting this option the data will not be compatible with 3.6 or lower. + // * `4.2` — persist data compatibility for version 4.2. After setting this option the data will not be compatible with 4.0 or lower. FeatureCompatibilityVersion string `protobuf:"bytes,5,opt,name=feature_compatibility_version,json=featureCompatibilityVersion,proto3" json:"feature_compatibility_version,omitempty"` // Configuration for MongoDB servers in the cluster. // // Types that are valid to be assigned to Mongodb: // *ClusterConfig_Mongodb_3_6 // *ClusterConfig_Mongodb_4_0 + // *ClusterConfig_Mongodb_4_2 Mongodb isClusterConfig_Mongodb `protobuf_oneof:"mongodb"` // Time to start the daily backup, in the UTC timezone. BackupWindowStart *timeofday.TimeOfDay `protobuf:"bytes,3,opt,name=backup_window_start,json=backupWindowStart,proto3" json:"backup_window_start,omitempty"` @@ -592,10 +594,16 @@ type ClusterConfig_Mongodb_4_0 struct { Mongodb_4_0 *Mongodb4_0 `protobuf:"bytes,4,opt,name=mongodb_4_0,json=mongodb40,proto3,oneof"` } +type ClusterConfig_Mongodb_4_2 struct { + Mongodb_4_2 *Mongodb4_2 `protobuf:"bytes,7,opt,name=mongodb_4_2,json=mongodb42,proto3,oneof"` +} + func (*ClusterConfig_Mongodb_3_6) isClusterConfig_Mongodb() {} func (*ClusterConfig_Mongodb_4_0) isClusterConfig_Mongodb() {} +func (*ClusterConfig_Mongodb_4_2) isClusterConfig_Mongodb() {} + func (m *ClusterConfig) GetMongodb() isClusterConfig_Mongodb { if m != nil { return m.Mongodb @@ -617,6 +625,13 @@ func (m *ClusterConfig) GetMongodb_4_0() *Mongodb4_0 { return nil } +func (m *ClusterConfig) GetMongodb_4_2() *Mongodb4_2 { + if x, ok := m.GetMongodb().(*ClusterConfig_Mongodb_4_2); ok { + return x.Mongodb_4_2 + } + return nil +} + func (m *ClusterConfig) GetBackupWindowStart() *timeofday.TimeOfDay { if m != nil { return m.BackupWindowStart @@ -636,6 +651,7 @@ func (*ClusterConfig) XXX_OneofWrappers() []interface{} { return []interface{}{ (*ClusterConfig_Mongodb_3_6)(nil), (*ClusterConfig_Mongodb_4_0)(nil), + (*ClusterConfig_Mongodb_4_2)(nil), } } @@ -1047,6 +1063,211 @@ func (m *Mongodb4_0_Mongos) GetResources() *Resources { return nil } +type Mongodb4_2 struct { + // Configuration and resource allocation for mongod in a MongoDB 4.2 cluster. + Mongod *Mongodb4_2_Mongod `protobuf:"bytes,1,opt,name=mongod,proto3" json:"mongod,omitempty"` + // Configuration and resource allocation for mongocfg in a MongoDB 4.2 cluster. + Mongocfg *Mongodb4_2_MongoCfg `protobuf:"bytes,2,opt,name=mongocfg,proto3" json:"mongocfg,omitempty"` + // Configuration and resource allocation for mongos in a MongoDB 4.2 cluster. + Mongos *Mongodb4_2_Mongos `protobuf:"bytes,3,opt,name=mongos,proto3" json:"mongos,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mongodb4_2) Reset() { *m = Mongodb4_2{} } +func (m *Mongodb4_2) String() string { return proto.CompactTextString(m) } +func (*Mongodb4_2) ProtoMessage() {} +func (*Mongodb4_2) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaf7a2567168975, []int{5} +} + +func (m *Mongodb4_2) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Mongodb4_2.Unmarshal(m, b) +} +func (m *Mongodb4_2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Mongodb4_2.Marshal(b, m, deterministic) +} +func (m *Mongodb4_2) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mongodb4_2.Merge(m, src) +} +func (m *Mongodb4_2) XXX_Size() int { + return xxx_messageInfo_Mongodb4_2.Size(m) +} +func (m *Mongodb4_2) XXX_DiscardUnknown() { + xxx_messageInfo_Mongodb4_2.DiscardUnknown(m) +} + +var xxx_messageInfo_Mongodb4_2 proto.InternalMessageInfo + +func (m *Mongodb4_2) GetMongod() *Mongodb4_2_Mongod { + if m != nil { + return m.Mongod + } + return nil +} + +func (m *Mongodb4_2) GetMongocfg() *Mongodb4_2_MongoCfg { + if m != nil { + return m.Mongocfg + } + return nil +} + +func (m *Mongodb4_2) GetMongos() *Mongodb4_2_Mongos { + if m != nil { + return m.Mongos + } + return nil +} + +type Mongodb4_2_Mongod struct { + // Configuration for mongod 4.2 hosts. + Config *config.MongodConfigSet4_2 `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + // Resources allocated to mongod hosts. + Resources *Resources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mongodb4_2_Mongod) Reset() { *m = Mongodb4_2_Mongod{} } +func (m *Mongodb4_2_Mongod) String() string { return proto.CompactTextString(m) } +func (*Mongodb4_2_Mongod) ProtoMessage() {} +func (*Mongodb4_2_Mongod) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaf7a2567168975, []int{5, 0} +} + +func (m *Mongodb4_2_Mongod) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Mongodb4_2_Mongod.Unmarshal(m, b) +} +func (m *Mongodb4_2_Mongod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Mongodb4_2_Mongod.Marshal(b, m, deterministic) +} +func (m *Mongodb4_2_Mongod) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mongodb4_2_Mongod.Merge(m, src) +} +func (m *Mongodb4_2_Mongod) XXX_Size() int { + return xxx_messageInfo_Mongodb4_2_Mongod.Size(m) +} +func (m *Mongodb4_2_Mongod) XXX_DiscardUnknown() { + xxx_messageInfo_Mongodb4_2_Mongod.DiscardUnknown(m) +} + +var xxx_messageInfo_Mongodb4_2_Mongod proto.InternalMessageInfo + +func (m *Mongodb4_2_Mongod) GetConfig() *config.MongodConfigSet4_2 { + if m != nil { + return m.Config + } + return nil +} + +func (m *Mongodb4_2_Mongod) GetResources() *Resources { + if m != nil { + return m.Resources + } + return nil +} + +type Mongodb4_2_MongoCfg struct { + // Configuration for mongocfg 4.2 hosts. + Config *config.MongoCfgConfigSet4_2 `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + // Resources allocated to mongocfg hosts. + Resources *Resources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mongodb4_2_MongoCfg) Reset() { *m = Mongodb4_2_MongoCfg{} } +func (m *Mongodb4_2_MongoCfg) String() string { return proto.CompactTextString(m) } +func (*Mongodb4_2_MongoCfg) ProtoMessage() {} +func (*Mongodb4_2_MongoCfg) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaf7a2567168975, []int{5, 1} +} + +func (m *Mongodb4_2_MongoCfg) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Mongodb4_2_MongoCfg.Unmarshal(m, b) +} +func (m *Mongodb4_2_MongoCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Mongodb4_2_MongoCfg.Marshal(b, m, deterministic) +} +func (m *Mongodb4_2_MongoCfg) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mongodb4_2_MongoCfg.Merge(m, src) +} +func (m *Mongodb4_2_MongoCfg) XXX_Size() int { + return xxx_messageInfo_Mongodb4_2_MongoCfg.Size(m) +} +func (m *Mongodb4_2_MongoCfg) XXX_DiscardUnknown() { + xxx_messageInfo_Mongodb4_2_MongoCfg.DiscardUnknown(m) +} + +var xxx_messageInfo_Mongodb4_2_MongoCfg proto.InternalMessageInfo + +func (m *Mongodb4_2_MongoCfg) GetConfig() *config.MongoCfgConfigSet4_2 { + if m != nil { + return m.Config + } + return nil +} + +func (m *Mongodb4_2_MongoCfg) GetResources() *Resources { + if m != nil { + return m.Resources + } + return nil +} + +type Mongodb4_2_Mongos struct { + // Configuration for mongos 4.2 hosts. + Config *config.MongosConfigSet4_2 `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + // Resources allocated to mongos hosts. + Resources *Resources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mongodb4_2_Mongos) Reset() { *m = Mongodb4_2_Mongos{} } +func (m *Mongodb4_2_Mongos) String() string { return proto.CompactTextString(m) } +func (*Mongodb4_2_Mongos) ProtoMessage() {} +func (*Mongodb4_2_Mongos) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaf7a2567168975, []int{5, 2} +} + +func (m *Mongodb4_2_Mongos) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Mongodb4_2_Mongos.Unmarshal(m, b) +} +func (m *Mongodb4_2_Mongos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Mongodb4_2_Mongos.Marshal(b, m, deterministic) +} +func (m *Mongodb4_2_Mongos) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mongodb4_2_Mongos.Merge(m, src) +} +func (m *Mongodb4_2_Mongos) XXX_Size() int { + return xxx_messageInfo_Mongodb4_2_Mongos.Size(m) +} +func (m *Mongodb4_2_Mongos) XXX_DiscardUnknown() { + xxx_messageInfo_Mongodb4_2_Mongos.DiscardUnknown(m) +} + +var xxx_messageInfo_Mongodb4_2_Mongos proto.InternalMessageInfo + +func (m *Mongodb4_2_Mongos) GetConfig() *config.MongosConfigSet4_2 { + if m != nil { + return m.Config + } + return nil +} + +func (m *Mongodb4_2_Mongos) GetResources() *Resources { + if m != nil { + return m.Resources + } + return nil +} + type Shard struct { // Name of the shard. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` @@ -1061,7 +1282,7 @@ func (m *Shard) Reset() { *m = Shard{} } func (m *Shard) String() string { return proto.CompactTextString(m) } func (*Shard) ProtoMessage() {} func (*Shard) Descriptor() ([]byte, []int) { - return fileDescriptor_ccaf7a2567168975, []int{5} + return fileDescriptor_ccaf7a2567168975, []int{6} } func (m *Shard) XXX_Unmarshal(b []byte) error { @@ -1131,7 +1352,7 @@ func (m *Host) Reset() { *m = Host{} } func (m *Host) String() string { return proto.CompactTextString(m) } func (*Host) ProtoMessage() {} func (*Host) Descriptor() ([]byte, []int) { - return fileDescriptor_ccaf7a2567168975, []int{6} + return fileDescriptor_ccaf7a2567168975, []int{7} } func (m *Host) XXX_Unmarshal(b []byte) error { @@ -1243,7 +1464,7 @@ func (m *Service) Reset() { *m = Service{} } func (m *Service) String() string { return proto.CompactTextString(m) } func (*Service) ProtoMessage() {} func (*Service) Descriptor() ([]byte, []int) { - return fileDescriptor_ccaf7a2567168975, []int{7} + return fileDescriptor_ccaf7a2567168975, []int{8} } func (m *Service) XXX_Unmarshal(b []byte) error { @@ -1299,7 +1520,7 @@ func (m *Resources) Reset() { *m = Resources{} } func (m *Resources) String() string { return proto.CompactTextString(m) } func (*Resources) ProtoMessage() {} func (*Resources) Descriptor() ([]byte, []int) { - return fileDescriptor_ccaf7a2567168975, []int{8} + return fileDescriptor_ccaf7a2567168975, []int{9} } func (m *Resources) XXX_Unmarshal(b []byte) error { @@ -1353,7 +1574,7 @@ func (m *Access) Reset() { *m = Access{} } func (m *Access) String() string { return proto.CompactTextString(m) } func (*Access) ProtoMessage() {} func (*Access) Descriptor() ([]byte, []int) { - return fileDescriptor_ccaf7a2567168975, []int{9} + return fileDescriptor_ccaf7a2567168975, []int{10} } func (m *Access) XXX_Unmarshal(b []byte) error { @@ -1402,6 +1623,10 @@ func init() { proto.RegisterType((*Mongodb4_0_Mongod)(nil), "yandex.cloud.mdb.mongodb.v1.Mongodb4_0.Mongod") proto.RegisterType((*Mongodb4_0_MongoCfg)(nil), "yandex.cloud.mdb.mongodb.v1.Mongodb4_0.MongoCfg") proto.RegisterType((*Mongodb4_0_Mongos)(nil), "yandex.cloud.mdb.mongodb.v1.Mongodb4_0.Mongos") + proto.RegisterType((*Mongodb4_2)(nil), "yandex.cloud.mdb.mongodb.v1.Mongodb4_2") + proto.RegisterType((*Mongodb4_2_Mongod)(nil), "yandex.cloud.mdb.mongodb.v1.Mongodb4_2.Mongod") + proto.RegisterType((*Mongodb4_2_MongoCfg)(nil), "yandex.cloud.mdb.mongodb.v1.Mongodb4_2.MongoCfg") + proto.RegisterType((*Mongodb4_2_Mongos)(nil), "yandex.cloud.mdb.mongodb.v1.Mongodb4_2.Mongos") proto.RegisterType((*Shard)(nil), "yandex.cloud.mdb.mongodb.v1.Shard") proto.RegisterType((*Host)(nil), "yandex.cloud.mdb.mongodb.v1.Host") proto.RegisterType((*Service)(nil), "yandex.cloud.mdb.mongodb.v1.Service") @@ -1414,93 +1639,97 @@ func init() { } var fileDescriptor_ccaf7a2567168975 = []byte{ - // 1404 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x5f, 0x73, 0xda, 0xc6, - 0x16, 0x8f, 0x00, 0x0b, 0x71, 0x70, 0x3c, 0xba, 0x7b, 0x33, 0x37, 0x8c, 0x3d, 0x99, 0xeb, 0xe1, - 0xde, 0xb6, 0x4e, 0xdb, 0x08, 0x12, 0x33, 0x9e, 0xc4, 0x99, 0x4e, 0x83, 0x41, 0xb6, 0x35, 0xc5, - 0x82, 0x59, 0xb0, 0x33, 0xe9, 0x8b, 0x46, 0xa0, 0x05, 0x6b, 0x2c, 0x24, 0x46, 0x2b, 0x9c, 0x90, - 0xe7, 0x7e, 0x83, 0xbe, 0xf7, 0xa1, 0xdf, 0xa1, 0x1f, 0xa4, 0x4f, 0xfd, 0x3a, 0x9d, 0xfd, 0x23, - 0x4c, 0xd2, 0x96, 0xe0, 0x94, 0xcc, 0xf4, 0x6d, 0xf7, 0x9c, 0xf3, 0xfb, 0x71, 0xfe, 0xed, 0xea, - 0x2c, 0xf0, 0x70, 0xe6, 0x86, 0x1e, 0x79, 0x53, 0x19, 0x04, 0xd1, 0xd4, 0xab, 0x8c, 0xbd, 0x7e, - 0x65, 0x1c, 0x85, 0xa3, 0xc8, 0xeb, 0x57, 0xae, 0x1f, 0x57, 0x06, 0xc1, 0x94, 0x26, 0x24, 0x36, - 0x26, 0x71, 0x94, 0x44, 0x68, 0x47, 0x98, 0x1a, 0xdc, 0xd4, 0x18, 0x7b, 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, 0x35, 0x0c, 0xc1, 0x3f, 0x64, 0x20, 0x2f, 0x53, 0x8e, 0xbe, 0x91, 0x29, 0x50, 0x78, - 0x0a, 0x1e, 0xae, 0x52, 0xa6, 0x85, 0x2c, 0x2c, 0x3c, 0x5d, 0x32, 0x2b, 0xbc, 0x3a, 0x52, 0x82, - 0x77, 0xdb, 0x65, 0x2d, 0xa9, 0x7c, 0x7c, 0xeb, 0xa4, 0x94, 0xdf, 0x40, 0x61, 0x7e, 0x76, 0xd0, - 0xd7, 0x80, 0xd2, 0xd3, 0xe3, 0x4c, 0x62, 0x42, 0x45, 0xe7, 0x89, 0x03, 0xad, 0xa7, 0x9a, 0x0e, - 0x57, 0x58, 0xfc, 0x25, 0xee, 0xf9, 0xf4, 0xca, 0xa1, 0xfe, 0x5b, 0xf1, 0xe0, 0xc9, 0x62, 0x8d, - 0x09, 0xba, 0xfe, 0x5b, 0x36, 0xc6, 0x6f, 0x72, 0x25, 0x4b, 0xd0, 0xcd, 0xf9, 0x06, 0x26, 0x63, - 0x61, 0x5a, 0x5e, 0xf9, 0x33, 0x50, 0xc5, 0xe4, 0xc8, 0x89, 0xdc, 0xc4, 0x75, 0x02, 0x12, 0x52, - 0xfe, 0x6b, 0x1a, 0xd6, 0x98, 0xa0, 0x45, 0x42, 0x7a, 0x64, 0x7d, 0x7f, 0x32, 0xf2, 0x93, 0xcb, - 0x69, 0xdf, 0x18, 0x44, 0xe3, 0x8a, 0x48, 0xec, 0x23, 0xf1, 0x6f, 0xc2, 0x28, 0x7a, 0x34, 0x22, - 0x21, 0x7f, 0xd6, 0x57, 0x96, 0xfc, 0xcd, 0xf0, 0x5c, 0x2e, 0xfb, 0x2a, 0x37, 0xdd, 0xff, 0x3d, - 0x00, 0x00, 0xff, 0xff, 0x05, 0xe4, 0xe8, 0xa2, 0x4f, 0x11, 0x00, 0x00, + // 1460 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x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0x50, 0xb4, 0x0f, 0x12, 0xdf, 0xab, 0xa2, 0xcc, 0x34, 0xfd, 0x6a, + 0x91, 0xb8, 0xea, 0x0c, 0x81, 0x05, 0x12, 0x3d, 0x02, 0xf0, 0x48, 0xf4, 0xd6, 0x0f, 0xce, 0xe9, + 0xce, 0x01, 0xd3, 0x52, 0x16, 0x16, 0xdd, 0x46, 0x75, 0x90, 0xce, 0x88, 0xe5, 0x46, 0x67, 0xc5, + 0x02, 0x4b, 0xfd, 0xeb, 0x85, 0x52, 0x3f, 0x62, 0x10, 0x2c, 0xa0, 0x94, 0x24, 0x8c, 0xac, 0x68, + 0x12, 0x16, 0x57, 0x6f, 0x40, 0xd2, 0x61, 0x10, 0x2c, 0xa0, 0xa8, 0x08, 0xb9, 0xf0, 0xcc, 0x0a, + 0x6c, 0x62, 0x17, 0xef, 0x6f, 0xa6, 0xb6, 0xf2, 0x38, 0x9e, 0xae, 0xbf, 0x80, 0x42, 0x62, 0xeb, + 0x90, 0x02, 0x99, 0x73, 0x32, 0x15, 0xb5, 0x49, 0x87, 0xe8, 0x01, 0xac, 0x5c, 0x58, 0xee, 0x84, + 0x88, 0xc2, 0xe4, 0x93, 0xbd, 0xf4, 0xf3, 0x54, 0x49, 0x87, 0x42, 0x62, 0x9b, 0xd0, 0x06, 0x3c, + 0xd4, 0x8c, 0x53, 0x1d, 0xb7, 0x8c, 0x63, 0xcd, 0xe8, 0x9a, 0x27, 0x46, 0xa7, 0xad, 0xd5, 0xf5, + 0x03, 0x5d, 0x6b, 0x28, 0xf7, 0xd0, 0x1a, 0x40, 0x1b, 0xb7, 0x1a, 0x27, 0xf5, 0xae, 0xde, 0x32, + 0x94, 0x14, 0xba, 0x0f, 0x72, 0x1b, 0x6b, 0x9d, 0x6e, 0x6d, 0xbf, 0xa9, 0x29, 0xe9, 0xd2, 0x77, + 0x20, 0xf1, 0xb4, 0x11, 0x82, 0xb5, 0x23, 0xad, 0xd6, 0xec, 0x1e, 0x99, 0x27, 0xc6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x90, 0x13, 0x92, 0xa3, 0x6f, 0x85, 0x04, 0x29, 0x26, 0xc1, + 0x93, 0x45, 0xb6, 0x29, 0xa1, 0x42, 0xa2, 0xb3, 0x4f, 0x2f, 0xd0, 0x94, 0xc7, 0x04, 0x57, 0xcb, + 0x65, 0x29, 0x52, 0x3e, 0xbb, 0xb1, 0x28, 0xa5, 0x77, 0x20, 0xcf, 0xce, 0x0e, 0xfa, 0x06, 0x50, + 0x7c, 0x7a, 0xcc, 0x71, 0x40, 0x42, 0x5e, 0x79, 0xfc, 0x40, 0x2b, 0xf1, 0x4a, 0x9b, 0x2d, 0xe8, + 0xec, 0xa1, 0xca, 0x76, 0xc2, 0x73, 0x33, 0x74, 0xde, 0xf3, 0xf7, 0x80, 0x0c, 0xce, 0x53, 0x43, + 0xc7, 0x79, 0x4f, 0xbb, 0xdc, 0x55, 0xb6, 0x48, 0x05, 0xba, 0x3c, 0xdf, 0x40, 0x6d, 0x34, 0x4d, + 0xdd, 0x2e, 0x7d, 0x0e, 0x12, 0xef, 0x86, 0x18, 0x91, 0x15, 0x59, 0xa6, 0x4b, 0xbc, 0x90, 0xfd, + 0x5a, 0x1e, 0xe7, 0xa9, 0xa1, 0x49, 0xbc, 0x70, 0xff, 0x47, 0x78, 0x7c, 0x45, 0x4d, 0x6b, 0xec, + 0x5c, 0x53, 0xf4, 0x87, 0xc3, 0xa1, 0x13, 0x9d, 0x4d, 0x7a, 0x6a, 0xdf, 0x1f, 0x95, 0xb9, 0xef, + 0x53, 0xfe, 0x1a, 0x37, 0xf4, 0x9f, 0x0e, 0x89, 0xc7, 0x9e, 0xc5, 0xca, 0x73, 0x9e, 0xe9, 0x5e, + 0x8a, 0x61, 0x4f, 0x62, 0xae, 0xdb, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, 0x1d, 0x69, 0x6a, 0x68, + 0xc4, 0x14, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/cluster.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/cluster.pbext.go new file mode 100644 index 000000000..f600bc1de --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/cluster.pbext.go @@ -0,0 +1,297 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mongodb + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" + config "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config" + timeofday "google.golang.org/genproto/googleapis/type/timeofday" +) + +func (m *Cluster) SetId(v string) { + m.Id = v +} + +func (m *Cluster) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Cluster) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Cluster) SetName(v string) { + m.Name = v +} + +func (m *Cluster) SetDescription(v string) { + m.Description = v +} + +func (m *Cluster) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *Cluster) SetEnvironment(v Cluster_Environment) { + m.Environment = v +} + +func (m *Cluster) SetMonitoring(v []*Monitoring) { + m.Monitoring = v +} + +func (m *Cluster) SetConfig(v *ClusterConfig) { + m.Config = v +} + +func (m *Cluster) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *Cluster) SetHealth(v Cluster_Health) { + m.Health = v +} + +func (m *Cluster) SetStatus(v Cluster_Status) { + m.Status = v +} + +func (m *Cluster) SetSharded(v bool) { + m.Sharded = v +} + +func (m *Monitoring) SetName(v string) { + m.Name = v +} + +func (m *Monitoring) SetDescription(v string) { + m.Description = v +} + +func (m *Monitoring) SetLink(v string) { + m.Link = v +} + +type ClusterConfig_Mongodb = isClusterConfig_Mongodb + +func (m *ClusterConfig) SetMongodb(v ClusterConfig_Mongodb) { + m.Mongodb = v +} + +func (m *ClusterConfig) SetVersion(v string) { + m.Version = v +} + +func (m *ClusterConfig) SetFeatureCompatibilityVersion(v string) { + m.FeatureCompatibilityVersion = v +} + +func (m *ClusterConfig) SetMongodb_3_6(v *Mongodb3_6) { + m.Mongodb = &ClusterConfig_Mongodb_3_6{ + Mongodb_3_6: v, + } +} + +func (m *ClusterConfig) SetMongodb_4_0(v *Mongodb4_0) { + m.Mongodb = &ClusterConfig_Mongodb_4_0{ + Mongodb_4_0: v, + } +} + +func (m *ClusterConfig) SetMongodb_4_2(v *Mongodb4_2) { + m.Mongodb = &ClusterConfig_Mongodb_4_2{ + Mongodb_4_2: v, + } +} + +func (m *ClusterConfig) SetBackupWindowStart(v *timeofday.TimeOfDay) { + m.BackupWindowStart = v +} + +func (m *ClusterConfig) SetAccess(v *Access) { + m.Access = v +} + +func (m *Mongodb3_6) SetMongod(v *Mongodb3_6_Mongod) { + m.Mongod = v +} + +func (m *Mongodb3_6) SetMongocfg(v *Mongodb3_6_MongoCfg) { + m.Mongocfg = v +} + +func (m *Mongodb3_6) SetMongos(v *Mongodb3_6_Mongos) { + m.Mongos = v +} + +func (m *Mongodb3_6_Mongod) SetConfig(v *config.MongodConfigSet3_6) { + m.Config = v +} + +func (m *Mongodb3_6_Mongod) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Mongodb3_6_MongoCfg) SetConfig(v *config.MongoCfgConfigSet3_6) { + m.Config = v +} + +func (m *Mongodb3_6_MongoCfg) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Mongodb3_6_Mongos) SetConfig(v *config.MongosConfigSet3_6) { + m.Config = v +} + +func (m *Mongodb3_6_Mongos) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Mongodb4_0) SetMongod(v *Mongodb4_0_Mongod) { + m.Mongod = v +} + +func (m *Mongodb4_0) SetMongocfg(v *Mongodb4_0_MongoCfg) { + m.Mongocfg = v +} + +func (m *Mongodb4_0) SetMongos(v *Mongodb4_0_Mongos) { + m.Mongos = v +} + +func (m *Mongodb4_0_Mongod) SetConfig(v *config.MongodConfigSet4_0) { + m.Config = v +} + +func (m *Mongodb4_0_Mongod) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Mongodb4_0_MongoCfg) SetConfig(v *config.MongoCfgConfigSet4_0) { + m.Config = v +} + +func (m *Mongodb4_0_MongoCfg) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Mongodb4_0_Mongos) SetConfig(v *config.MongosConfigSet4_0) { + m.Config = v +} + +func (m *Mongodb4_0_Mongos) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Mongodb4_2) SetMongod(v *Mongodb4_2_Mongod) { + m.Mongod = v +} + +func (m *Mongodb4_2) SetMongocfg(v *Mongodb4_2_MongoCfg) { + m.Mongocfg = v +} + +func (m *Mongodb4_2) SetMongos(v *Mongodb4_2_Mongos) { + m.Mongos = v +} + +func (m *Mongodb4_2_Mongod) SetConfig(v *config.MongodConfigSet4_2) { + m.Config = v +} + +func (m *Mongodb4_2_Mongod) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Mongodb4_2_MongoCfg) SetConfig(v *config.MongoCfgConfigSet4_2) { + m.Config = v +} + +func (m *Mongodb4_2_MongoCfg) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Mongodb4_2_Mongos) SetConfig(v *config.MongosConfigSet4_2) { + m.Config = v +} + +func (m *Mongodb4_2_Mongos) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Shard) SetName(v string) { + m.Name = v +} + +func (m *Shard) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *Host) SetName(v string) { + m.Name = v +} + +func (m *Host) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *Host) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *Host) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Host) SetRole(v Host_Role) { + m.Role = v +} + +func (m *Host) SetHealth(v Host_Health) { + m.Health = v +} + +func (m *Host) SetServices(v []*Service) { + m.Services = v +} + +func (m *Host) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *Host) SetAssignPublicIp(v bool) { + m.AssignPublicIp = v +} + +func (m *Host) SetShardName(v string) { + m.ShardName = v +} + +func (m *Host) SetType(v Host_Type) { + m.Type = v +} + +func (m *Service) SetType(v Service_Type) { + m.Type = v +} + +func (m *Service) SetHealth(v Service_Health) { + m.Health = v +} + +func (m *Resources) SetResourcePresetId(v string) { + m.ResourcePresetId = v +} + +func (m *Resources) SetDiskSize(v int64) { + m.DiskSize = v +} + +func (m *Resources) SetDiskTypeId(v string) { + m.DiskTypeId = v +} + +func (m *Access) SetDataLens(v bool) { + m.DataLens = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/cluster_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/cluster_service.pb.go index 60228a061..73dbda9da 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/cluster_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/cluster_service.pb.go @@ -58,6 +58,32 @@ func (ListClusterLogsRequest_ServiceType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_fdf7200f72aab6ae, []int{20, 0} } +type StreamClusterLogsRequest_ServiceType int32 + +const ( + StreamClusterLogsRequest_SERVICE_TYPE_UNSPECIFIED StreamClusterLogsRequest_ServiceType = 0 + // Logs of MongoDB activity. + StreamClusterLogsRequest_MONGOD StreamClusterLogsRequest_ServiceType = 1 +) + +var StreamClusterLogsRequest_ServiceType_name = map[int32]string{ + 0: "SERVICE_TYPE_UNSPECIFIED", + 1: "MONGOD", +} + +var StreamClusterLogsRequest_ServiceType_value = map[string]int32{ + "SERVICE_TYPE_UNSPECIFIED": 0, + "MONGOD": 1, +} + +func (x StreamClusterLogsRequest_ServiceType) String() string { + return proto.EnumName(StreamClusterLogsRequest_ServiceType_name, int32(x)) +} + +func (StreamClusterLogsRequest_ServiceType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_fdf7200f72aab6ae, []int{22, 0} +} + type GetClusterRequest struct { // ID of the MongoDB Cluster resource to return. // To get the cluster ID, use a [ClusterService.List] request. @@ -400,10 +426,12 @@ type UpdateClusterRequest struct { // set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // New configuration and resources for hosts in the cluster. - ConfigSpec *ConfigSpec `protobuf:"bytes,5,opt,name=config_spec,json=configSpec,proto3" json:"config_spec,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ConfigSpec *ConfigSpec `protobuf:"bytes,5,opt,name=config_spec,json=configSpec,proto3" json:"config_spec,omitempty"` + // New name for the cluster. + Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UpdateClusterRequest) Reset() { *m = UpdateClusterRequest{} } @@ -466,6 +494,13 @@ func (m *UpdateClusterRequest) GetConfigSpec() *ConfigSpec { return nil } +func (m *UpdateClusterRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + type UpdateClusterMetadata struct { // ID of the MongoDB Cluster resource that is being updated. ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` @@ -956,10 +991,12 @@ type RestoreClusterRequest struct { // ID of the network to create the MongoDB cluster in. NetworkId string `protobuf:"bytes,8,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` // Required. ID of the folder to create the MongoDB cluster in. - FolderId string `protobuf:"bytes,9,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + FolderId string `protobuf:"bytes,9,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // Specification of the moment to which the MongoDB cluster should be restored. + RecoveryTargetSpec *RestoreClusterRequest_RecoveryTargetSpec `protobuf:"bytes,10,opt,name=recovery_target_spec,json=recoveryTargetSpec,proto3" json:"recovery_target_spec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RestoreClusterRequest) Reset() { *m = RestoreClusterRequest{} } @@ -1050,6 +1087,55 @@ func (m *RestoreClusterRequest) GetFolderId() string { return "" } +func (m *RestoreClusterRequest) GetRecoveryTargetSpec() *RestoreClusterRequest_RecoveryTargetSpec { + if m != nil { + return m.RecoveryTargetSpec + } + return nil +} + +type RestoreClusterRequest_RecoveryTargetSpec struct { + // Timestamp of the recovery target + Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RestoreClusterRequest_RecoveryTargetSpec) Reset() { + *m = RestoreClusterRequest_RecoveryTargetSpec{} +} +func (m *RestoreClusterRequest_RecoveryTargetSpec) String() string { return proto.CompactTextString(m) } +func (*RestoreClusterRequest_RecoveryTargetSpec) ProtoMessage() {} +func (*RestoreClusterRequest_RecoveryTargetSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_fdf7200f72aab6ae, []int{17, 1} +} + +func (m *RestoreClusterRequest_RecoveryTargetSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RestoreClusterRequest_RecoveryTargetSpec.Unmarshal(m, b) +} +func (m *RestoreClusterRequest_RecoveryTargetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RestoreClusterRequest_RecoveryTargetSpec.Marshal(b, m, deterministic) +} +func (m *RestoreClusterRequest_RecoveryTargetSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_RestoreClusterRequest_RecoveryTargetSpec.Merge(m, src) +} +func (m *RestoreClusterRequest_RecoveryTargetSpec) XXX_Size() int { + return xxx_messageInfo_RestoreClusterRequest_RecoveryTargetSpec.Size(m) +} +func (m *RestoreClusterRequest_RecoveryTargetSpec) XXX_DiscardUnknown() { + xxx_messageInfo_RestoreClusterRequest_RecoveryTargetSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_RestoreClusterRequest_RecoveryTargetSpec proto.InternalMessageInfo + +func (m *RestoreClusterRequest_RecoveryTargetSpec) GetTimestamp() int64 { + if m != nil { + return m.Timestamp + } + return 0 +} + type RestoreClusterMetadata struct { // ID of the new MongoDB cluster that is being created from a backup. ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` @@ -1296,6 +1382,83 @@ func (m *ListClusterLogsResponse) GetNextPageToken() string { return "" } +type StreamClusterLogsRequest struct { + // Required. ID of the MongoDB cluster. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Columns from logs table to get in the response. + ColumnFilter []string `protobuf:"bytes,2,rep,name=column_filter,json=columnFilter,proto3" json:"column_filter,omitempty"` + ServiceType StreamClusterLogsRequest_ServiceType `protobuf:"varint,3,opt,name=service_type,json=serviceType,proto3,enum=yandex.cloud.mdb.mongodb.v1.StreamClusterLogsRequest_ServiceType" json:"service_type,omitempty"` + // Start timestamp for the logs request. + FromTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=from_time,json=fromTime,proto3" json:"from_time,omitempty"` + // End timestamp for the logs request. + // If this field is not set, all existing logs will be sent and then the new ones as + // they appear. In essence it has 'tail -f' semantics. + ToTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=to_time,json=toTime,proto3" json:"to_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamClusterLogsRequest) Reset() { *m = StreamClusterLogsRequest{} } +func (m *StreamClusterLogsRequest) String() string { return proto.CompactTextString(m) } +func (*StreamClusterLogsRequest) ProtoMessage() {} +func (*StreamClusterLogsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_fdf7200f72aab6ae, []int{22} +} + +func (m *StreamClusterLogsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamClusterLogsRequest.Unmarshal(m, b) +} +func (m *StreamClusterLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamClusterLogsRequest.Marshal(b, m, deterministic) +} +func (m *StreamClusterLogsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamClusterLogsRequest.Merge(m, src) +} +func (m *StreamClusterLogsRequest) XXX_Size() int { + return xxx_messageInfo_StreamClusterLogsRequest.Size(m) +} +func (m *StreamClusterLogsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StreamClusterLogsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamClusterLogsRequest proto.InternalMessageInfo + +func (m *StreamClusterLogsRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *StreamClusterLogsRequest) GetColumnFilter() []string { + if m != nil { + return m.ColumnFilter + } + return nil +} + +func (m *StreamClusterLogsRequest) GetServiceType() StreamClusterLogsRequest_ServiceType { + if m != nil { + return m.ServiceType + } + return StreamClusterLogsRequest_SERVICE_TYPE_UNSPECIFIED +} + +func (m *StreamClusterLogsRequest) GetFromTime() *timestamp.Timestamp { + if m != nil { + return m.FromTime + } + return nil +} + +func (m *StreamClusterLogsRequest) GetToTime() *timestamp.Timestamp { + if m != nil { + return m.ToTime + } + return nil +} + type ListClusterOperationsRequest struct { // ID of the MongoDB Cluster resource to list operations for. ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` @@ -1312,7 +1475,7 @@ func (m *ListClusterOperationsRequest) Reset() { *m = ListClusterOperati func (m *ListClusterOperationsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterOperationsRequest) ProtoMessage() {} func (*ListClusterOperationsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{22} + return fileDescriptor_fdf7200f72aab6ae, []int{23} } func (m *ListClusterOperationsRequest) XXX_Unmarshal(b []byte) error { @@ -1371,7 +1534,7 @@ func (m *ListClusterOperationsResponse) Reset() { *m = ListClusterOperat func (m *ListClusterOperationsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterOperationsResponse) ProtoMessage() {} func (*ListClusterOperationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{23} + return fileDescriptor_fdf7200f72aab6ae, []int{24} } func (m *ListClusterOperationsResponse) XXX_Unmarshal(b []byte) error { @@ -1423,7 +1586,7 @@ func (m *ListClusterBackupsRequest) Reset() { *m = ListClusterBackupsReq func (m *ListClusterBackupsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterBackupsRequest) ProtoMessage() {} func (*ListClusterBackupsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{24} + return fileDescriptor_fdf7200f72aab6ae, []int{25} } func (m *ListClusterBackupsRequest) XXX_Unmarshal(b []byte) error { @@ -1482,7 +1645,7 @@ func (m *ListClusterBackupsResponse) Reset() { *m = ListClusterBackupsRe func (m *ListClusterBackupsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterBackupsResponse) ProtoMessage() {} func (*ListClusterBackupsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{25} + return fileDescriptor_fdf7200f72aab6ae, []int{26} } func (m *ListClusterBackupsResponse) XXX_Unmarshal(b []byte) error { @@ -1534,7 +1697,7 @@ func (m *ListClusterHostsRequest) Reset() { *m = ListClusterHostsRequest func (m *ListClusterHostsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterHostsRequest) ProtoMessage() {} func (*ListClusterHostsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{26} + return fileDescriptor_fdf7200f72aab6ae, []int{27} } func (m *ListClusterHostsRequest) XXX_Unmarshal(b []byte) error { @@ -1593,7 +1756,7 @@ func (m *ListClusterHostsResponse) Reset() { *m = ListClusterHostsRespon func (m *ListClusterHostsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterHostsResponse) ProtoMessage() {} func (*ListClusterHostsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{27} + return fileDescriptor_fdf7200f72aab6ae, []int{28} } func (m *ListClusterHostsResponse) XXX_Unmarshal(b []byte) error { @@ -1643,7 +1806,7 @@ func (m *AddClusterHostsRequest) Reset() { *m = AddClusterHostsRequest{} func (m *AddClusterHostsRequest) String() string { return proto.CompactTextString(m) } func (*AddClusterHostsRequest) ProtoMessage() {} func (*AddClusterHostsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{28} + return fileDescriptor_fdf7200f72aab6ae, []int{29} } func (m *AddClusterHostsRequest) XXX_Unmarshal(b []byte) error { @@ -1692,7 +1855,7 @@ func (m *AddClusterHostsMetadata) Reset() { *m = AddClusterHostsMetadata func (m *AddClusterHostsMetadata) String() string { return proto.CompactTextString(m) } func (*AddClusterHostsMetadata) ProtoMessage() {} func (*AddClusterHostsMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{29} + return fileDescriptor_fdf7200f72aab6ae, []int{30} } func (m *AddClusterHostsMetadata) XXX_Unmarshal(b []byte) error { @@ -1742,7 +1905,7 @@ func (m *DeleteClusterHostsRequest) Reset() { *m = DeleteClusterHostsReq func (m *DeleteClusterHostsRequest) String() string { return proto.CompactTextString(m) } func (*DeleteClusterHostsRequest) ProtoMessage() {} func (*DeleteClusterHostsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{30} + return fileDescriptor_fdf7200f72aab6ae, []int{31} } func (m *DeleteClusterHostsRequest) XXX_Unmarshal(b []byte) error { @@ -1791,7 +1954,7 @@ func (m *DeleteClusterHostsMetadata) Reset() { *m = DeleteClusterHostsMe func (m *DeleteClusterHostsMetadata) String() string { return proto.CompactTextString(m) } func (*DeleteClusterHostsMetadata) ProtoMessage() {} func (*DeleteClusterHostsMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{31} + return fileDescriptor_fdf7200f72aab6ae, []int{32} } func (m *DeleteClusterHostsMetadata) XXX_Unmarshal(b []byte) error { @@ -1844,7 +2007,7 @@ func (m *EnableClusterShardingRequest) Reset() { *m = EnableClusterShard func (m *EnableClusterShardingRequest) String() string { return proto.CompactTextString(m) } func (*EnableClusterShardingRequest) ProtoMessage() {} func (*EnableClusterShardingRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{32} + return fileDescriptor_fdf7200f72aab6ae, []int{33} } func (m *EnableClusterShardingRequest) XXX_Unmarshal(b []byte) error { @@ -1905,7 +2068,7 @@ func (m *EnableClusterShardingRequest_MongoCfg) Reset() { *m = EnableClu func (m *EnableClusterShardingRequest_MongoCfg) String() string { return proto.CompactTextString(m) } func (*EnableClusterShardingRequest_MongoCfg) ProtoMessage() {} func (*EnableClusterShardingRequest_MongoCfg) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{32, 0} + return fileDescriptor_fdf7200f72aab6ae, []int{33, 0} } func (m *EnableClusterShardingRequest_MongoCfg) XXX_Unmarshal(b []byte) error { @@ -1945,7 +2108,7 @@ func (m *EnableClusterShardingRequest_Mongos) Reset() { *m = EnableClust func (m *EnableClusterShardingRequest_Mongos) String() string { return proto.CompactTextString(m) } func (*EnableClusterShardingRequest_Mongos) ProtoMessage() {} func (*EnableClusterShardingRequest_Mongos) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{32, 1} + return fileDescriptor_fdf7200f72aab6ae, []int{33, 1} } func (m *EnableClusterShardingRequest_Mongos) XXX_Unmarshal(b []byte) error { @@ -1985,7 +2148,7 @@ func (m *EnableClusterShardingMetadata) Reset() { *m = EnableClusterShar func (m *EnableClusterShardingMetadata) String() string { return proto.CompactTextString(m) } func (*EnableClusterShardingMetadata) ProtoMessage() {} func (*EnableClusterShardingMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{33} + return fileDescriptor_fdf7200f72aab6ae, []int{34} } func (m *EnableClusterShardingMetadata) XXX_Unmarshal(b []byte) error { @@ -2029,7 +2192,7 @@ func (m *GetClusterShardRequest) Reset() { *m = GetClusterShardRequest{} func (m *GetClusterShardRequest) String() string { return proto.CompactTextString(m) } func (*GetClusterShardRequest) ProtoMessage() {} func (*GetClusterShardRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{34} + return fileDescriptor_fdf7200f72aab6ae, []int{35} } func (m *GetClusterShardRequest) XXX_Unmarshal(b []byte) error { @@ -2084,7 +2247,7 @@ func (m *ListClusterShardsRequest) Reset() { *m = ListClusterShardsReque func (m *ListClusterShardsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterShardsRequest) ProtoMessage() {} func (*ListClusterShardsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{35} + return fileDescriptor_fdf7200f72aab6ae, []int{36} } func (m *ListClusterShardsRequest) XXX_Unmarshal(b []byte) error { @@ -2143,7 +2306,7 @@ func (m *ListClusterShardsResponse) Reset() { *m = ListClusterShardsResp func (m *ListClusterShardsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterShardsResponse) ProtoMessage() {} func (*ListClusterShardsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{36} + return fileDescriptor_fdf7200f72aab6ae, []int{37} } func (m *ListClusterShardsResponse) XXX_Unmarshal(b []byte) error { @@ -2195,7 +2358,7 @@ func (m *AddClusterShardRequest) Reset() { *m = AddClusterShardRequest{} func (m *AddClusterShardRequest) String() string { return proto.CompactTextString(m) } func (*AddClusterShardRequest) ProtoMessage() {} func (*AddClusterShardRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{37} + return fileDescriptor_fdf7200f72aab6ae, []int{38} } func (m *AddClusterShardRequest) XXX_Unmarshal(b []byte) error { @@ -2251,7 +2414,7 @@ func (m *AddClusterShardMetadata) Reset() { *m = AddClusterShardMetadata func (m *AddClusterShardMetadata) String() string { return proto.CompactTextString(m) } func (*AddClusterShardMetadata) ProtoMessage() {} func (*AddClusterShardMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{38} + return fileDescriptor_fdf7200f72aab6ae, []int{39} } func (m *AddClusterShardMetadata) XXX_Unmarshal(b []byte) error { @@ -2302,7 +2465,7 @@ func (m *DeleteClusterShardRequest) Reset() { *m = DeleteClusterShardReq func (m *DeleteClusterShardRequest) String() string { return proto.CompactTextString(m) } func (*DeleteClusterShardRequest) ProtoMessage() {} func (*DeleteClusterShardRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{39} + return fileDescriptor_fdf7200f72aab6ae, []int{40} } func (m *DeleteClusterShardRequest) XXX_Unmarshal(b []byte) error { @@ -2351,7 +2514,7 @@ func (m *DeleteClusterShardMetadata) Reset() { *m = DeleteClusterShardMe func (m *DeleteClusterShardMetadata) String() string { return proto.CompactTextString(m) } func (*DeleteClusterShardMetadata) ProtoMessage() {} func (*DeleteClusterShardMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{40} + return fileDescriptor_fdf7200f72aab6ae, []int{41} } func (m *DeleteClusterShardMetadata) XXX_Unmarshal(b []byte) error { @@ -2386,6 +2549,202 @@ func (m *DeleteClusterShardMetadata) GetShardName() string { return "" } +type ResetupHostsRequest struct { + // Required. ID of the MongoDB cluster. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Required. Name of the hosts to resetup. + HostNames []string `protobuf:"bytes,2,rep,name=host_names,json=hostNames,proto3" json:"host_names,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResetupHostsRequest) Reset() { *m = ResetupHostsRequest{} } +func (m *ResetupHostsRequest) String() string { return proto.CompactTextString(m) } +func (*ResetupHostsRequest) ProtoMessage() {} +func (*ResetupHostsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_fdf7200f72aab6ae, []int{42} +} + +func (m *ResetupHostsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResetupHostsRequest.Unmarshal(m, b) +} +func (m *ResetupHostsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResetupHostsRequest.Marshal(b, m, deterministic) +} +func (m *ResetupHostsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResetupHostsRequest.Merge(m, src) +} +func (m *ResetupHostsRequest) XXX_Size() int { + return xxx_messageInfo_ResetupHostsRequest.Size(m) +} +func (m *ResetupHostsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ResetupHostsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ResetupHostsRequest proto.InternalMessageInfo + +func (m *ResetupHostsRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *ResetupHostsRequest) GetHostNames() []string { + if m != nil { + return m.HostNames + } + return nil +} + +type ResetupHostsMetadata struct { + // Required. ID of the MongoDB cluster. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Required. The name of hosts to resetup. + HostNames []string `protobuf:"bytes,2,rep,name=host_names,json=hostNames,proto3" json:"host_names,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResetupHostsMetadata) Reset() { *m = ResetupHostsMetadata{} } +func (m *ResetupHostsMetadata) String() string { return proto.CompactTextString(m) } +func (*ResetupHostsMetadata) ProtoMessage() {} +func (*ResetupHostsMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_fdf7200f72aab6ae, []int{43} +} + +func (m *ResetupHostsMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResetupHostsMetadata.Unmarshal(m, b) +} +func (m *ResetupHostsMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResetupHostsMetadata.Marshal(b, m, deterministic) +} +func (m *ResetupHostsMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResetupHostsMetadata.Merge(m, src) +} +func (m *ResetupHostsMetadata) XXX_Size() int { + return xxx_messageInfo_ResetupHostsMetadata.Size(m) +} +func (m *ResetupHostsMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_ResetupHostsMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_ResetupHostsMetadata proto.InternalMessageInfo + +func (m *ResetupHostsMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *ResetupHostsMetadata) GetHostNames() []string { + if m != nil { + return m.HostNames + } + return nil +} + +type RestartHostsRequest struct { + // Required. ID of the MongoDB cluster. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Required. Name of the hosts to restart. + HostNames []string `protobuf:"bytes,2,rep,name=host_names,json=hostNames,proto3" json:"host_names,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RestartHostsRequest) Reset() { *m = RestartHostsRequest{} } +func (m *RestartHostsRequest) String() string { return proto.CompactTextString(m) } +func (*RestartHostsRequest) ProtoMessage() {} +func (*RestartHostsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_fdf7200f72aab6ae, []int{44} +} + +func (m *RestartHostsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RestartHostsRequest.Unmarshal(m, b) +} +func (m *RestartHostsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RestartHostsRequest.Marshal(b, m, deterministic) +} +func (m *RestartHostsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RestartHostsRequest.Merge(m, src) +} +func (m *RestartHostsRequest) XXX_Size() int { + return xxx_messageInfo_RestartHostsRequest.Size(m) +} +func (m *RestartHostsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RestartHostsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RestartHostsRequest proto.InternalMessageInfo + +func (m *RestartHostsRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *RestartHostsRequest) GetHostNames() []string { + if m != nil { + return m.HostNames + } + return nil +} + +type RestartHostsMetadata struct { + // Required. ID of the MongoDB cluster. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Required. The name of hosts to restart. + HostNames []string `protobuf:"bytes,2,rep,name=host_names,json=hostNames,proto3" json:"host_names,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RestartHostsMetadata) Reset() { *m = RestartHostsMetadata{} } +func (m *RestartHostsMetadata) String() string { return proto.CompactTextString(m) } +func (*RestartHostsMetadata) ProtoMessage() {} +func (*RestartHostsMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_fdf7200f72aab6ae, []int{45} +} + +func (m *RestartHostsMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RestartHostsMetadata.Unmarshal(m, b) +} +func (m *RestartHostsMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RestartHostsMetadata.Marshal(b, m, deterministic) +} +func (m *RestartHostsMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_RestartHostsMetadata.Merge(m, src) +} +func (m *RestartHostsMetadata) XXX_Size() int { + return xxx_messageInfo_RestartHostsMetadata.Size(m) +} +func (m *RestartHostsMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_RestartHostsMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_RestartHostsMetadata proto.InternalMessageInfo + +func (m *RestartHostsMetadata) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *RestartHostsMetadata) GetHostNames() []string { + if m != nil { + return m.HostNames + } + return nil +} + type HostSpec struct { // ID of the availability zone where the host resides. // To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request. @@ -2416,7 +2775,7 @@ func (m *HostSpec) Reset() { *m = HostSpec{} } func (m *HostSpec) String() string { return proto.CompactTextString(m) } func (*HostSpec) ProtoMessage() {} func (*HostSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{41} + return fileDescriptor_fdf7200f72aab6ae, []int{46} } func (m *HostSpec) XXX_Unmarshal(b []byte) error { @@ -2488,7 +2847,7 @@ func (m *MongodbSpec3_6) Reset() { *m = MongodbSpec3_6{} } func (m *MongodbSpec3_6) String() string { return proto.CompactTextString(m) } func (*MongodbSpec3_6) ProtoMessage() {} func (*MongodbSpec3_6) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{42} + return fileDescriptor_fdf7200f72aab6ae, []int{47} } func (m *MongodbSpec3_6) XXX_Unmarshal(b []byte) error { @@ -2544,7 +2903,7 @@ func (m *MongodbSpec3_6_Mongod) Reset() { *m = MongodbSpec3_6_Mongod{} } func (m *MongodbSpec3_6_Mongod) String() string { return proto.CompactTextString(m) } func (*MongodbSpec3_6_Mongod) ProtoMessage() {} func (*MongodbSpec3_6_Mongod) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{42, 0} + return fileDescriptor_fdf7200f72aab6ae, []int{47, 0} } func (m *MongodbSpec3_6_Mongod) XXX_Unmarshal(b []byte) error { @@ -2593,7 +2952,7 @@ func (m *MongodbSpec3_6_MongoCfg) Reset() { *m = MongodbSpec3_6_MongoCfg func (m *MongodbSpec3_6_MongoCfg) String() string { return proto.CompactTextString(m) } func (*MongodbSpec3_6_MongoCfg) ProtoMessage() {} func (*MongodbSpec3_6_MongoCfg) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{42, 1} + return fileDescriptor_fdf7200f72aab6ae, []int{47, 1} } func (m *MongodbSpec3_6_MongoCfg) XXX_Unmarshal(b []byte) error { @@ -2642,7 +3001,7 @@ func (m *MongodbSpec3_6_Mongos) Reset() { *m = MongodbSpec3_6_Mongos{} } func (m *MongodbSpec3_6_Mongos) String() string { return proto.CompactTextString(m) } func (*MongodbSpec3_6_Mongos) ProtoMessage() {} func (*MongodbSpec3_6_Mongos) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{42, 2} + return fileDescriptor_fdf7200f72aab6ae, []int{47, 2} } func (m *MongodbSpec3_6_Mongos) XXX_Unmarshal(b []byte) error { @@ -2693,7 +3052,7 @@ func (m *MongodbSpec4_0) Reset() { *m = MongodbSpec4_0{} } func (m *MongodbSpec4_0) String() string { return proto.CompactTextString(m) } func (*MongodbSpec4_0) ProtoMessage() {} func (*MongodbSpec4_0) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{43} + return fileDescriptor_fdf7200f72aab6ae, []int{48} } func (m *MongodbSpec4_0) XXX_Unmarshal(b []byte) error { @@ -2749,7 +3108,7 @@ func (m *MongodbSpec4_0_Mongod) Reset() { *m = MongodbSpec4_0_Mongod{} } func (m *MongodbSpec4_0_Mongod) String() string { return proto.CompactTextString(m) } func (*MongodbSpec4_0_Mongod) ProtoMessage() {} func (*MongodbSpec4_0_Mongod) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{43, 0} + return fileDescriptor_fdf7200f72aab6ae, []int{48, 0} } func (m *MongodbSpec4_0_Mongod) XXX_Unmarshal(b []byte) error { @@ -2798,7 +3157,7 @@ func (m *MongodbSpec4_0_MongoCfg) Reset() { *m = MongodbSpec4_0_MongoCfg func (m *MongodbSpec4_0_MongoCfg) String() string { return proto.CompactTextString(m) } func (*MongodbSpec4_0_MongoCfg) ProtoMessage() {} func (*MongodbSpec4_0_MongoCfg) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{43, 1} + return fileDescriptor_fdf7200f72aab6ae, []int{48, 1} } func (m *MongodbSpec4_0_MongoCfg) XXX_Unmarshal(b []byte) error { @@ -2847,7 +3206,7 @@ func (m *MongodbSpec4_0_Mongos) Reset() { *m = MongodbSpec4_0_Mongos{} } func (m *MongodbSpec4_0_Mongos) String() string { return proto.CompactTextString(m) } func (*MongodbSpec4_0_Mongos) ProtoMessage() {} func (*MongodbSpec4_0_Mongos) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{43, 2} + return fileDescriptor_fdf7200f72aab6ae, []int{48, 2} } func (m *MongodbSpec4_0_Mongos) XXX_Unmarshal(b []byte) error { @@ -2882,21 +3241,225 @@ func (m *MongodbSpec4_0_Mongos) GetResources() *Resources { return nil } +type MongodbSpec4_2 struct { + // Configuration and resource allocation for mongod 4.2 hosts. + Mongod *MongodbSpec4_2_Mongod `protobuf:"bytes,1,opt,name=mongod,proto3" json:"mongod,omitempty"` + // Configuration and resource allocation for mongocfg 4.2 hosts. + Mongocfg *MongodbSpec4_2_MongoCfg `protobuf:"bytes,2,opt,name=mongocfg,proto3" json:"mongocfg,omitempty"` + // Configuration and resource allocation for mongos 4.2 hosts. + Mongos *MongodbSpec4_2_Mongos `protobuf:"bytes,3,opt,name=mongos,proto3" json:"mongos,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongodbSpec4_2) Reset() { *m = MongodbSpec4_2{} } +func (m *MongodbSpec4_2) String() string { return proto.CompactTextString(m) } +func (*MongodbSpec4_2) ProtoMessage() {} +func (*MongodbSpec4_2) Descriptor() ([]byte, []int) { + return fileDescriptor_fdf7200f72aab6ae, []int{49} +} + +func (m *MongodbSpec4_2) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongodbSpec4_2.Unmarshal(m, b) +} +func (m *MongodbSpec4_2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongodbSpec4_2.Marshal(b, m, deterministic) +} +func (m *MongodbSpec4_2) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongodbSpec4_2.Merge(m, src) +} +func (m *MongodbSpec4_2) XXX_Size() int { + return xxx_messageInfo_MongodbSpec4_2.Size(m) +} +func (m *MongodbSpec4_2) XXX_DiscardUnknown() { + xxx_messageInfo_MongodbSpec4_2.DiscardUnknown(m) +} + +var xxx_messageInfo_MongodbSpec4_2 proto.InternalMessageInfo + +func (m *MongodbSpec4_2) GetMongod() *MongodbSpec4_2_Mongod { + if m != nil { + return m.Mongod + } + return nil +} + +func (m *MongodbSpec4_2) GetMongocfg() *MongodbSpec4_2_MongoCfg { + if m != nil { + return m.Mongocfg + } + return nil +} + +func (m *MongodbSpec4_2) GetMongos() *MongodbSpec4_2_Mongos { + if m != nil { + return m.Mongos + } + return nil +} + +type MongodbSpec4_2_Mongod struct { + // Configuration for mongod 4.2 hosts. + Config *config.MongodConfig4_2 `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + // Resources allocated to each mongod host. + Resources *Resources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongodbSpec4_2_Mongod) Reset() { *m = MongodbSpec4_2_Mongod{} } +func (m *MongodbSpec4_2_Mongod) String() string { return proto.CompactTextString(m) } +func (*MongodbSpec4_2_Mongod) ProtoMessage() {} +func (*MongodbSpec4_2_Mongod) Descriptor() ([]byte, []int) { + return fileDescriptor_fdf7200f72aab6ae, []int{49, 0} +} + +func (m *MongodbSpec4_2_Mongod) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongodbSpec4_2_Mongod.Unmarshal(m, b) +} +func (m *MongodbSpec4_2_Mongod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongodbSpec4_2_Mongod.Marshal(b, m, deterministic) +} +func (m *MongodbSpec4_2_Mongod) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongodbSpec4_2_Mongod.Merge(m, src) +} +func (m *MongodbSpec4_2_Mongod) XXX_Size() int { + return xxx_messageInfo_MongodbSpec4_2_Mongod.Size(m) +} +func (m *MongodbSpec4_2_Mongod) XXX_DiscardUnknown() { + xxx_messageInfo_MongodbSpec4_2_Mongod.DiscardUnknown(m) +} + +var xxx_messageInfo_MongodbSpec4_2_Mongod proto.InternalMessageInfo + +func (m *MongodbSpec4_2_Mongod) GetConfig() *config.MongodConfig4_2 { + if m != nil { + return m.Config + } + return nil +} + +func (m *MongodbSpec4_2_Mongod) GetResources() *Resources { + if m != nil { + return m.Resources + } + return nil +} + +type MongodbSpec4_2_MongoCfg struct { + // Configuration for mongocfg 4.2 hosts. + Config *config.MongoCfgConfig4_2 `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + // Resources allocated to each mongocfg host. + Resources *Resources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongodbSpec4_2_MongoCfg) Reset() { *m = MongodbSpec4_2_MongoCfg{} } +func (m *MongodbSpec4_2_MongoCfg) String() string { return proto.CompactTextString(m) } +func (*MongodbSpec4_2_MongoCfg) ProtoMessage() {} +func (*MongodbSpec4_2_MongoCfg) Descriptor() ([]byte, []int) { + return fileDescriptor_fdf7200f72aab6ae, []int{49, 1} +} + +func (m *MongodbSpec4_2_MongoCfg) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongodbSpec4_2_MongoCfg.Unmarshal(m, b) +} +func (m *MongodbSpec4_2_MongoCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongodbSpec4_2_MongoCfg.Marshal(b, m, deterministic) +} +func (m *MongodbSpec4_2_MongoCfg) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongodbSpec4_2_MongoCfg.Merge(m, src) +} +func (m *MongodbSpec4_2_MongoCfg) XXX_Size() int { + return xxx_messageInfo_MongodbSpec4_2_MongoCfg.Size(m) +} +func (m *MongodbSpec4_2_MongoCfg) XXX_DiscardUnknown() { + xxx_messageInfo_MongodbSpec4_2_MongoCfg.DiscardUnknown(m) +} + +var xxx_messageInfo_MongodbSpec4_2_MongoCfg proto.InternalMessageInfo + +func (m *MongodbSpec4_2_MongoCfg) GetConfig() *config.MongoCfgConfig4_2 { + if m != nil { + return m.Config + } + return nil +} + +func (m *MongodbSpec4_2_MongoCfg) GetResources() *Resources { + if m != nil { + return m.Resources + } + return nil +} + +type MongodbSpec4_2_Mongos struct { + // Configuration for mongos 4.2 hosts. + Config *config.MongosConfig4_2 `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + // Resources allocated to each mongos host. + Resources *Resources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongodbSpec4_2_Mongos) Reset() { *m = MongodbSpec4_2_Mongos{} } +func (m *MongodbSpec4_2_Mongos) String() string { return proto.CompactTextString(m) } +func (*MongodbSpec4_2_Mongos) ProtoMessage() {} +func (*MongodbSpec4_2_Mongos) Descriptor() ([]byte, []int) { + return fileDescriptor_fdf7200f72aab6ae, []int{49, 2} +} + +func (m *MongodbSpec4_2_Mongos) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongodbSpec4_2_Mongos.Unmarshal(m, b) +} +func (m *MongodbSpec4_2_Mongos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongodbSpec4_2_Mongos.Marshal(b, m, deterministic) +} +func (m *MongodbSpec4_2_Mongos) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongodbSpec4_2_Mongos.Merge(m, src) +} +func (m *MongodbSpec4_2_Mongos) XXX_Size() int { + return xxx_messageInfo_MongodbSpec4_2_Mongos.Size(m) +} +func (m *MongodbSpec4_2_Mongos) XXX_DiscardUnknown() { + xxx_messageInfo_MongodbSpec4_2_Mongos.DiscardUnknown(m) +} + +var xxx_messageInfo_MongodbSpec4_2_Mongos proto.InternalMessageInfo + +func (m *MongodbSpec4_2_Mongos) GetConfig() *config.MongosConfig4_2 { + if m != nil { + return m.Config + } + return nil +} + +func (m *MongodbSpec4_2_Mongos) GetResources() *Resources { + if m != nil { + return m.Resources + } + return nil +} + type ConfigSpec struct { - // Version of MongoDB used in the cluster. - // Possible values: - // * 3.6 - // * 4.0 + // Version of MongoDB used in the cluster. Possible values: `3.6`, `4.0`, `4.2`. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // MongoDB feature compatibility version. See usage details in [MongoDB documentation](https://docs.mongodb.com/manual/reference/command/setFeatureCompatibilityVersion/). // // Possible values: - // * 3.6 — persist data compatibility for version 3.6. After setting this option the data will not be compatible with 3.4 or older. - // * 4.0 — persist data compatibility for version 4.0. After setting this option the data will not be compatible with 3.6 or older. + // * `3.6` — persist data compatibility for version 3.6. After setting this option the data will not be compatible with 3.4 or older. + // * `4.0` — persist data compatibility for version 4.0. After setting this option the data will not be compatible with 3.6 or older. + // * `4.2` — persist data compatibility for version 4.2. After setting this option the data will not be compatible with 4.0 or older. FeatureCompatibilityVersion string `protobuf:"bytes,5,opt,name=feature_compatibility_version,json=featureCompatibilityVersion,proto3" json:"feature_compatibility_version,omitempty"` // Types that are valid to be assigned to MongodbSpec: // *ConfigSpec_MongodbSpec_3_6 // *ConfigSpec_MongodbSpec_4_0 + // *ConfigSpec_MongodbSpec_4_2 MongodbSpec isConfigSpec_MongodbSpec `protobuf_oneof:"mongodb_spec"` // Time to start the daily backup, in the UTC timezone. BackupWindowStart *timeofday.TimeOfDay `protobuf:"bytes,3,opt,name=backup_window_start,json=backupWindowStart,proto3" json:"backup_window_start,omitempty"` @@ -2911,7 +3474,7 @@ func (m *ConfigSpec) Reset() { *m = ConfigSpec{} } func (m *ConfigSpec) String() string { return proto.CompactTextString(m) } func (*ConfigSpec) ProtoMessage() {} func (*ConfigSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_fdf7200f72aab6ae, []int{44} + return fileDescriptor_fdf7200f72aab6ae, []int{50} } func (m *ConfigSpec) XXX_Unmarshal(b []byte) error { @@ -2951,17 +3514,23 @@ type isConfigSpec_MongodbSpec interface { } type ConfigSpec_MongodbSpec_3_6 struct { - MongodbSpec_3_6 *MongodbSpec3_6 `protobuf:"bytes,2,opt,name=mongodb_spec_3_6,json=mongodbSpec36,proto3,oneof"` + MongodbSpec_3_6 *MongodbSpec3_6 `protobuf:"bytes,2,opt,name=mongodb_spec_3_6,json=mongodbSpec_3_6,proto3,oneof"` } type ConfigSpec_MongodbSpec_4_0 struct { - MongodbSpec_4_0 *MongodbSpec4_0 `protobuf:"bytes,4,opt,name=mongodb_spec_4_0,json=mongodbSpec40,proto3,oneof"` + MongodbSpec_4_0 *MongodbSpec4_0 `protobuf:"bytes,4,opt,name=mongodb_spec_4_0,json=mongodbSpec_4_0,proto3,oneof"` +} + +type ConfigSpec_MongodbSpec_4_2 struct { + MongodbSpec_4_2 *MongodbSpec4_2 `protobuf:"bytes,7,opt,name=mongodb_spec_4_2,json=mongodbSpec_4_2,proto3,oneof"` } func (*ConfigSpec_MongodbSpec_3_6) isConfigSpec_MongodbSpec() {} func (*ConfigSpec_MongodbSpec_4_0) isConfigSpec_MongodbSpec() {} +func (*ConfigSpec_MongodbSpec_4_2) isConfigSpec_MongodbSpec() {} + func (m *ConfigSpec) GetMongodbSpec() isConfigSpec_MongodbSpec { if m != nil { return m.MongodbSpec @@ -2983,6 +3552,13 @@ func (m *ConfigSpec) GetMongodbSpec_4_0() *MongodbSpec4_0 { return nil } +func (m *ConfigSpec) GetMongodbSpec_4_2() *MongodbSpec4_2 { + if x, ok := m.GetMongodbSpec().(*ConfigSpec_MongodbSpec_4_2); ok { + return x.MongodbSpec_4_2 + } + return nil +} + func (m *ConfigSpec) GetBackupWindowStart() *timeofday.TimeOfDay { if m != nil { return m.BackupWindowStart @@ -3002,11 +3578,13 @@ func (*ConfigSpec) XXX_OneofWrappers() []interface{} { return []interface{}{ (*ConfigSpec_MongodbSpec_3_6)(nil), (*ConfigSpec_MongodbSpec_4_0)(nil), + (*ConfigSpec_MongodbSpec_4_2)(nil), } } func init() { proto.RegisterEnum("yandex.cloud.mdb.mongodb.v1.ListClusterLogsRequest_ServiceType", ListClusterLogsRequest_ServiceType_name, ListClusterLogsRequest_ServiceType_value) + proto.RegisterEnum("yandex.cloud.mdb.mongodb.v1.StreamClusterLogsRequest_ServiceType", StreamClusterLogsRequest_ServiceType_name, StreamClusterLogsRequest_ServiceType_value) proto.RegisterType((*GetClusterRequest)(nil), "yandex.cloud.mdb.mongodb.v1.GetClusterRequest") proto.RegisterType((*ListClustersRequest)(nil), "yandex.cloud.mdb.mongodb.v1.ListClustersRequest") proto.RegisterType((*ListClustersResponse)(nil), "yandex.cloud.mdb.mongodb.v1.ListClustersResponse") @@ -3028,11 +3606,13 @@ func init() { proto.RegisterType((*BackupClusterMetadata)(nil), "yandex.cloud.mdb.mongodb.v1.BackupClusterMetadata") proto.RegisterType((*RestoreClusterRequest)(nil), "yandex.cloud.mdb.mongodb.v1.RestoreClusterRequest") proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.mdb.mongodb.v1.RestoreClusterRequest.LabelsEntry") + proto.RegisterType((*RestoreClusterRequest_RecoveryTargetSpec)(nil), "yandex.cloud.mdb.mongodb.v1.RestoreClusterRequest.RecoveryTargetSpec") proto.RegisterType((*RestoreClusterMetadata)(nil), "yandex.cloud.mdb.mongodb.v1.RestoreClusterMetadata") proto.RegisterType((*LogRecord)(nil), "yandex.cloud.mdb.mongodb.v1.LogRecord") proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.mdb.mongodb.v1.LogRecord.MessageEntry") proto.RegisterType((*ListClusterLogsRequest)(nil), "yandex.cloud.mdb.mongodb.v1.ListClusterLogsRequest") proto.RegisterType((*ListClusterLogsResponse)(nil), "yandex.cloud.mdb.mongodb.v1.ListClusterLogsResponse") + proto.RegisterType((*StreamClusterLogsRequest)(nil), "yandex.cloud.mdb.mongodb.v1.StreamClusterLogsRequest") proto.RegisterType((*ListClusterOperationsRequest)(nil), "yandex.cloud.mdb.mongodb.v1.ListClusterOperationsRequest") proto.RegisterType((*ListClusterOperationsResponse)(nil), "yandex.cloud.mdb.mongodb.v1.ListClusterOperationsResponse") proto.RegisterType((*ListClusterBackupsRequest)(nil), "yandex.cloud.mdb.mongodb.v1.ListClusterBackupsRequest") @@ -3054,6 +3634,10 @@ func init() { proto.RegisterType((*AddClusterShardMetadata)(nil), "yandex.cloud.mdb.mongodb.v1.AddClusterShardMetadata") proto.RegisterType((*DeleteClusterShardRequest)(nil), "yandex.cloud.mdb.mongodb.v1.DeleteClusterShardRequest") proto.RegisterType((*DeleteClusterShardMetadata)(nil), "yandex.cloud.mdb.mongodb.v1.DeleteClusterShardMetadata") + proto.RegisterType((*ResetupHostsRequest)(nil), "yandex.cloud.mdb.mongodb.v1.ResetupHostsRequest") + proto.RegisterType((*ResetupHostsMetadata)(nil), "yandex.cloud.mdb.mongodb.v1.ResetupHostsMetadata") + proto.RegisterType((*RestartHostsRequest)(nil), "yandex.cloud.mdb.mongodb.v1.RestartHostsRequest") + proto.RegisterType((*RestartHostsMetadata)(nil), "yandex.cloud.mdb.mongodb.v1.RestartHostsMetadata") proto.RegisterType((*HostSpec)(nil), "yandex.cloud.mdb.mongodb.v1.HostSpec") proto.RegisterType((*MongodbSpec3_6)(nil), "yandex.cloud.mdb.mongodb.v1.MongodbSpec3_6") proto.RegisterType((*MongodbSpec3_6_Mongod)(nil), "yandex.cloud.mdb.mongodb.v1.MongodbSpec3_6.Mongod") @@ -3063,6 +3647,10 @@ func init() { proto.RegisterType((*MongodbSpec4_0_Mongod)(nil), "yandex.cloud.mdb.mongodb.v1.MongodbSpec4_0.Mongod") proto.RegisterType((*MongodbSpec4_0_MongoCfg)(nil), "yandex.cloud.mdb.mongodb.v1.MongodbSpec4_0.MongoCfg") proto.RegisterType((*MongodbSpec4_0_Mongos)(nil), "yandex.cloud.mdb.mongodb.v1.MongodbSpec4_0.Mongos") + proto.RegisterType((*MongodbSpec4_2)(nil), "yandex.cloud.mdb.mongodb.v1.MongodbSpec4_2") + proto.RegisterType((*MongodbSpec4_2_Mongod)(nil), "yandex.cloud.mdb.mongodb.v1.MongodbSpec4_2.Mongod") + proto.RegisterType((*MongodbSpec4_2_MongoCfg)(nil), "yandex.cloud.mdb.mongodb.v1.MongodbSpec4_2.MongoCfg") + proto.RegisterType((*MongodbSpec4_2_Mongos)(nil), "yandex.cloud.mdb.mongodb.v1.MongodbSpec4_2.Mongos") proto.RegisterType((*ConfigSpec)(nil), "yandex.cloud.mdb.mongodb.v1.ConfigSpec") } @@ -3071,197 +3659,215 @@ func init() { } var fileDescriptor_fdf7200f72aab6ae = []byte{ - // 2893 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x5b, 0x5d, 0x6c, 0x1c, 0x57, - 0x15, 0xee, 0xf8, 0x67, 0xbd, 0x7b, 0x36, 0x71, 0xd3, 0x1b, 0x27, 0x75, 0x37, 0x71, 0xeb, 0x4c, - 0xdb, 0xd4, 0x71, 0xe4, 0xfd, 0x75, 0x36, 0x7f, 0x75, 0x93, 0xd8, 0x71, 0x52, 0xb7, 0x71, 0x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0xa8, 0x6c, 0x3c, 0x3c, 0x9c, 0x61, 0x09, 0x1c, 0x65, - 0xa3, 0x2a, 0x41, 0x4e, 0xdc, 0x24, 0x3e, 0x88, 0x18, 0x39, 0xb8, 0x5b, 0x21, 0xe2, 0x48, 0x2a, - 0x3d, 0x83, 0x6c, 0xd9, 0x1a, 0x18, 0xa6, 0x8f, 0x54, 0x85, 0x53, 0x72, 0x64, 0x15, 0x88, 0xab, - 0xfc, 0xa3, 0x1d, 0x04, 0x98, 0x22, 0x11, 0x82, 0x40, 0x54, 0x5d, 0xbe, 0x16, 0x10, 0x04, 0xfc, - 0xea, 0x84, 0xec, 0x88, 0x0b, 0xd3, 0xfd, 0xb9, 0xd9, 0xfc, 0xd2, 0xed, 0xab, 0x55, 0xc3, 0xb9, - 0xd3, 0x2a, 0xa5, 0xcb, 0x56, 0x3d, 0xc3, 0xc0, 0xce, 0xb0, 0x7f, 0xf6, 0x54, 0xad, 0x99, 0x2a, - 0x36, 0xe9, 0xa2, 0x99, 0x90, 0xbf, 0xfc, 0x9c, 0xe7, 0x3f, 0x4b, 0x31, 0x4a, 0x5a, 0xf8, 0x5f, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x23, 0x73, 0xab, 0xf7, 0x35, 0x36, 0x00, 0x00, + // 3176 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x5b, 0x4d, 0x6c, 0x1b, 0xd7, + 0xf1, 0xcf, 0xea, 0x83, 0x22, 0x87, 0xb6, 0xe2, 0x3c, 0xcb, 0x8e, 0x42, 0x5b, 0x89, 0xbc, 0x71, + 0x1c, 0x99, 0x86, 0xf8, 0x25, 0x89, 0xb6, 0xe5, 0x28, 0xb6, 0x24, 0xcb, 0x8e, 0x12, 0xc9, 0x36, + 0x56, 0x4a, 0xe2, 0xbf, 0xf3, 0x4f, 0x17, 0x4b, 0xee, 0x13, 0xbd, 0x35, 0xc9, 0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d8, 0x25, 0x7d, 0x13, 0x13, 0x8f, 0xff, 0xb5, 0x00, 0x21, 0x56, 0xe2, 0xeb, + 0xe0, 0xf1, 0xad, 0xda, 0xdf, 0xfc, 0xa0, 0xff, 0x7f, 0xb6, 0x59, 0x5b, 0x37, 0xbe, 0xb9, 0xf0, + 0x67, 0xc4, 0x94, 0x7f, 0xfc, 0xec, 0xa4, 0x42, 0xbf, 0x14, 0x60, 0x88, 0xf7, 0xe9, 0xa0, 0x4c, + 0xf0, 0x26, 0x24, 0x3f, 0x0a, 0xac, 0x6f, 0xef, 0xc4, 0x4f, 0xb4, 0xed, 0x06, 0x72, 0x69, 0x70, + 0x5a, 0x3c, 0xe9, 0x19, 0x1c, 0x0d, 0x26, 0x83, 0xd8, 0xfd, 0xa7, 0x02, 0x84, 0xc9, 0x89, 0xb0, + 0xa2, 0x17, 0x4c, 0x34, 0xb5, 0x8b, 0x06, 0x96, 0xd8, 0x74, 0x30, 0x26, 0x7e, 0xe0, 0x64, 0x99, + 0x87, 0xa3, 0x00, 0xae, 0x42, 0x9b, 0x38, 0x7e, 0x22, 0x00, 0xb0, 0xee, 0x07, 0x8a, 0x78, 0x66, + 0x57, 0x6d, 0x12, 0x31, 0x9f, 0x8d, 0x23, 0xe2, 0x1c, 0x45, 0x79, 0x16, 0xcd, 0x04, 0xd9, 0x87, + 0x64, 0x4e, 0x99, 0x80, 0x4d, 0x09, 0xe8, 0x77, 0x02, 0x0c, 0x13, 0x13, 0xd4, 0xfb, 0x04, 0xd0, + 0x79, 0xbf, 0xf6, 0x6a, 0x6a, 0x7e, 0x88, 0xcd, 0xee, 0x86, 0x95, 0x1b, 0xfc, 0x25, 0xaa, 0x4a, + 0x16, 0x4d, 0xfb, 0x56, 0x25, 0xe9, 0xe8, 0x48, 0xf8, 0x95, 0x00, 0x51, 0x22, 0x9f, 0x17, 0xf1, + 0x51, 0xd6, 0x2f, 0x12, 0x77, 0x4f, 0x42, 0xec, 0x6c, 0x60, 0x3e, 0x0e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 0xfa, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x50, 0xb3, 0xb9, 0x29, 0x1c, 0x40, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // ClusterServiceClient is the client API for ClusterService service. // @@ -3291,8 +3897,9 @@ type ClusterServiceClient interface { // Creates a new MongoDB cluster using the specified backup. Restore(ctx context.Context, in *RestoreClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Retrieves logs for the specified MongoDB cluster. - // See the [Logs](/docs/yandex-mdb-guide/concepts/logs) section in the developers guide for detailed logs description. ListLogs(ctx context.Context, in *ListClusterLogsRequest, opts ...grpc.CallOption) (*ListClusterLogsResponse, error) + // Same as ListLogs but using server-side streaming. Also allows for 'tail -f' semantics. + StreamLogs(ctx context.Context, in *StreamClusterLogsRequest, opts ...grpc.CallOption) (ClusterService_StreamLogsClient, error) // Retrieves the list of Operation resources for the specified cluster. ListOperations(ctx context.Context, in *ListClusterOperationsRequest, opts ...grpc.CallOption) (*ListClusterOperationsResponse, error) // Retrieves the list of available backups for the specified MongoDB cluster. @@ -3314,13 +3921,17 @@ type ClusterServiceClient interface { AddShard(ctx context.Context, in *AddClusterShardRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Deletes the specified shard. DeleteShard(ctx context.Context, in *DeleteClusterShardRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Resetup hosts. + ResetupHosts(ctx context.Context, in *ResetupHostsRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Restart hosts. + RestartHosts(ctx context.Context, in *RestartHostsRequest, opts ...grpc.CallOption) (*operation.Operation, error) } type clusterServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewClusterServiceClient(cc *grpc.ClientConn) ClusterServiceClient { +func NewClusterServiceClient(cc grpc.ClientConnInterface) ClusterServiceClient { return &clusterServiceClient{cc} } @@ -3423,6 +4034,38 @@ func (c *clusterServiceClient) ListLogs(ctx context.Context, in *ListClusterLogs return out, nil } +func (c *clusterServiceClient) StreamLogs(ctx context.Context, in *StreamClusterLogsRequest, opts ...grpc.CallOption) (ClusterService_StreamLogsClient, error) { + stream, err := c.cc.NewStream(ctx, &_ClusterService_serviceDesc.Streams[0], "/yandex.cloud.mdb.mongodb.v1.ClusterService/StreamLogs", opts...) + if err != nil { + return nil, err + } + x := &clusterServiceStreamLogsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ClusterService_StreamLogsClient interface { + Recv() (*LogRecord, error) + grpc.ClientStream +} + +type clusterServiceStreamLogsClient struct { + grpc.ClientStream +} + +func (x *clusterServiceStreamLogsClient) Recv() (*LogRecord, error) { + m := new(LogRecord) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + func (c *clusterServiceClient) ListOperations(ctx context.Context, in *ListClusterOperationsRequest, opts ...grpc.CallOption) (*ListClusterOperationsResponse, error) { out := new(ListClusterOperationsResponse) err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.mongodb.v1.ClusterService/ListOperations", in, out, opts...) @@ -3513,6 +4156,24 @@ func (c *clusterServiceClient) DeleteShard(ctx context.Context, in *DeleteCluste return out, nil } +func (c *clusterServiceClient) ResetupHosts(ctx context.Context, in *ResetupHostsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.mongodb.v1.ClusterService/ResetupHosts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterServiceClient) RestartHosts(ctx context.Context, in *RestartHostsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.mongodb.v1.ClusterService/RestartHosts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // ClusterServiceServer is the server API for ClusterService service. type ClusterServiceServer interface { // Returns the specified MongoDB Cluster resource. @@ -3539,8 +4200,9 @@ type ClusterServiceServer interface { // Creates a new MongoDB cluster using the specified backup. Restore(context.Context, *RestoreClusterRequest) (*operation.Operation, error) // Retrieves logs for the specified MongoDB cluster. - // See the [Logs](/docs/yandex-mdb-guide/concepts/logs) section in the developers guide for detailed logs description. ListLogs(context.Context, *ListClusterLogsRequest) (*ListClusterLogsResponse, error) + // Same as ListLogs but using server-side streaming. Also allows for 'tail -f' semantics. + StreamLogs(*StreamClusterLogsRequest, ClusterService_StreamLogsServer) error // Retrieves the list of Operation resources for the specified cluster. ListOperations(context.Context, *ListClusterOperationsRequest) (*ListClusterOperationsResponse, error) // Retrieves the list of available backups for the specified MongoDB cluster. @@ -3562,6 +4224,10 @@ type ClusterServiceServer interface { AddShard(context.Context, *AddClusterShardRequest) (*operation.Operation, error) // Deletes the specified shard. DeleteShard(context.Context, *DeleteClusterShardRequest) (*operation.Operation, error) + // Resetup hosts. + ResetupHosts(context.Context, *ResetupHostsRequest) (*operation.Operation, error) + // Restart hosts. + RestartHosts(context.Context, *RestartHostsRequest) (*operation.Operation, error) } // UnimplementedClusterServiceServer can be embedded to have forward compatible implementations. @@ -3601,6 +4267,9 @@ func (*UnimplementedClusterServiceServer) Restore(ctx context.Context, req *Rest func (*UnimplementedClusterServiceServer) ListLogs(ctx context.Context, req *ListClusterLogsRequest) (*ListClusterLogsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListLogs not implemented") } +func (*UnimplementedClusterServiceServer) StreamLogs(req *StreamClusterLogsRequest, srv ClusterService_StreamLogsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamLogs not implemented") +} func (*UnimplementedClusterServiceServer) ListOperations(ctx context.Context, req *ListClusterOperationsRequest) (*ListClusterOperationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") } @@ -3631,6 +4300,12 @@ func (*UnimplementedClusterServiceServer) AddShard(ctx context.Context, req *Add func (*UnimplementedClusterServiceServer) DeleteShard(ctx context.Context, req *DeleteClusterShardRequest) (*operation.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteShard not implemented") } +func (*UnimplementedClusterServiceServer) ResetupHosts(ctx context.Context, req *ResetupHostsRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResetupHosts not implemented") +} +func (*UnimplementedClusterServiceServer) RestartHosts(ctx context.Context, req *RestartHostsRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method RestartHosts not implemented") +} func RegisterClusterServiceServer(s *grpc.Server, srv ClusterServiceServer) { s.RegisterService(&_ClusterService_serviceDesc, srv) @@ -3834,6 +4509,27 @@ func _ClusterService_ListLogs_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _ClusterService_StreamLogs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(StreamClusterLogsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ClusterServiceServer).StreamLogs(m, &clusterServiceStreamLogsServer{stream}) +} + +type ClusterService_StreamLogsServer interface { + Send(*LogRecord) error + grpc.ServerStream +} + +type clusterServiceStreamLogsServer struct { + grpc.ServerStream +} + +func (x *clusterServiceStreamLogsServer) Send(m *LogRecord) error { + return x.ServerStream.SendMsg(m) +} + func _ClusterService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListClusterOperationsRequest) if err := dec(in); err != nil { @@ -4014,6 +4710,42 @@ func _ClusterService_DeleteShard_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } +func _ClusterService_ResetupHosts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResetupHostsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).ResetupHosts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.mongodb.v1.ClusterService/ResetupHosts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).ResetupHosts(ctx, req.(*ResetupHostsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterService_RestartHosts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RestartHostsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServiceServer).RestartHosts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.mdb.mongodb.v1.ClusterService/RestartHosts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServiceServer).RestartHosts(ctx, req.(*RestartHostsRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _ClusterService_serviceDesc = grpc.ServiceDesc{ ServiceName: "yandex.cloud.mdb.mongodb.v1.ClusterService", HandlerType: (*ClusterServiceServer)(nil), @@ -4102,7 +4834,21 @@ var _ClusterService_serviceDesc = grpc.ServiceDesc{ MethodName: "DeleteShard", Handler: _ClusterService_DeleteShard_Handler, }, + { + MethodName: "ResetupHosts", + Handler: _ClusterService_ResetupHosts_Handler, + }, + { + MethodName: "RestartHosts", + Handler: _ClusterService_RestartHosts_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamLogs", + Handler: _ClusterService_StreamLogs_Handler, + ServerStreams: true, + }, }, - Streams: []grpc.StreamDesc{}, Metadata: "yandex/cloud/mdb/mongodb/v1/cluster_service.proto", } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/cluster_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/cluster_service.pbext.go new file mode 100644 index 000000000..a15190498 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/cluster_service.pbext.go @@ -0,0 +1,663 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mongodb + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" + config "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + timeofday "google.golang.org/genproto/googleapis/type/timeofday" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClustersRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListClustersRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClustersRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClustersRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListClustersResponse) SetClusters(v []*Cluster) { + m.Clusters = v +} + +func (m *ListClustersResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateClusterRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateClusterRequest) SetEnvironment(v Cluster_Environment) { + m.Environment = v +} + +func (m *CreateClusterRequest) SetConfigSpec(v *ConfigSpec) { + m.ConfigSpec = v +} + +func (m *CreateClusterRequest) SetDatabaseSpecs(v []*DatabaseSpec) { + m.DatabaseSpecs = v +} + +func (m *CreateClusterRequest) SetUserSpecs(v []*UserSpec) { + m.UserSpecs = v +} + +func (m *CreateClusterRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *CreateClusterRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *CreateClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateClusterRequest) SetConfigSpec(v *ConfigSpec) { + m.ConfigSpec = v +} + +func (m *UpdateClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StartClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StartClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StopClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StopClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *MoveClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *MoveClusterRequest) SetDestinationFolderId(v string) { + m.DestinationFolderId = v +} + +func (m *MoveClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *MoveClusterMetadata) SetSourceFolderId(v string) { + m.SourceFolderId = v +} + +func (m *MoveClusterMetadata) SetDestinationFolderId(v string) { + m.DestinationFolderId = v +} + +func (m *BackupClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *BackupClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RestoreClusterRequest) SetBackupId(v string) { + m.BackupId = v +} + +func (m *RestoreClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *RestoreClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *RestoreClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *RestoreClusterRequest) SetEnvironment(v Cluster_Environment) { + m.Environment = v +} + +func (m *RestoreClusterRequest) SetConfigSpec(v *ConfigSpec) { + m.ConfigSpec = v +} + +func (m *RestoreClusterRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *RestoreClusterRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *RestoreClusterRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *RestoreClusterRequest) SetRecoveryTargetSpec(v *RestoreClusterRequest_RecoveryTargetSpec) { + m.RecoveryTargetSpec = v +} + +func (m *RestoreClusterRequest_RecoveryTargetSpec) SetTimestamp(v int64) { + m.Timestamp = v +} + +func (m *RestoreClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RestoreClusterMetadata) SetBackupId(v string) { + m.BackupId = v +} + +func (m *LogRecord) SetTimestamp(v *timestamp.Timestamp) { + m.Timestamp = v +} + +func (m *LogRecord) SetMessage(v map[string]string) { + m.Message = v +} + +func (m *ListClusterLogsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterLogsRequest) SetColumnFilter(v []string) { + m.ColumnFilter = v +} + +func (m *ListClusterLogsRequest) SetServiceType(v ListClusterLogsRequest_ServiceType) { + m.ServiceType = v +} + +func (m *ListClusterLogsRequest) SetFromTime(v *timestamp.Timestamp) { + m.FromTime = v +} + +func (m *ListClusterLogsRequest) SetToTime(v *timestamp.Timestamp) { + m.ToTime = v +} + +func (m *ListClusterLogsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterLogsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterLogsResponse) SetLogs(v []*LogRecord) { + m.Logs = v +} + +func (m *ListClusterLogsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *StreamClusterLogsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StreamClusterLogsRequest) SetColumnFilter(v []string) { + m.ColumnFilter = v +} + +func (m *StreamClusterLogsRequest) SetServiceType(v StreamClusterLogsRequest_ServiceType) { + m.ServiceType = v +} + +func (m *StreamClusterLogsRequest) SetFromTime(v *timestamp.Timestamp) { + m.FromTime = v +} + +func (m *StreamClusterLogsRequest) SetToTime(v *timestamp.Timestamp) { + m.ToTime = v +} + +func (m *ListClusterOperationsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListClusterOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListClusterBackupsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterBackupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterBackupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterBackupsResponse) SetBackups(v []*Backup) { + m.Backups = v +} + +func (m *ListClusterBackupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterHostsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterHostsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterHostsResponse) SetHosts(v []*Host) { + m.Hosts = v +} + +func (m *ListClusterHostsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *AddClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterHostsRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *AddClusterHostsMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterHostsMetadata) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *DeleteClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterHostsRequest) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *DeleteClusterHostsMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterHostsMetadata) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *EnableClusterShardingRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *EnableClusterShardingRequest) SetMongocfg(v *EnableClusterShardingRequest_MongoCfg) { + m.Mongocfg = v +} + +func (m *EnableClusterShardingRequest) SetMongos(v *EnableClusterShardingRequest_Mongos) { + m.Mongos = v +} + +func (m *EnableClusterShardingRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *EnableClusterShardingRequest_MongoCfg) SetResources(v *Resources) { + m.Resources = v +} + +func (m *EnableClusterShardingRequest_Mongos) SetResources(v *Resources) { + m.Resources = v +} + +func (m *EnableClusterShardingMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetClusterShardRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetClusterShardRequest) SetShardName(v string) { + m.ShardName = v +} + +func (m *ListClusterShardsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterShardsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterShardsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterShardsResponse) SetShards(v []*Shard) { + m.Shards = v +} + +func (m *ListClusterShardsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *AddClusterShardRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterShardRequest) SetShardName(v string) { + m.ShardName = v +} + +func (m *AddClusterShardRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *AddClusterShardMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterShardMetadata) SetShardName(v string) { + m.ShardName = v +} + +func (m *DeleteClusterShardRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterShardRequest) SetShardName(v string) { + m.ShardName = v +} + +func (m *DeleteClusterShardMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterShardMetadata) SetShardName(v string) { + m.ShardName = v +} + +func (m *ResetupHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ResetupHostsRequest) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *ResetupHostsMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ResetupHostsMetadata) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *RestartHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RestartHostsRequest) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *RestartHostsMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RestartHostsMetadata) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *HostSpec) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *HostSpec) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *HostSpec) SetAssignPublicIp(v bool) { + m.AssignPublicIp = v +} + +func (m *HostSpec) SetType(v Host_Type) { + m.Type = v +} + +func (m *HostSpec) SetShardName(v string) { + m.ShardName = v +} + +func (m *MongodbSpec3_6) SetMongod(v *MongodbSpec3_6_Mongod) { + m.Mongod = v +} + +func (m *MongodbSpec3_6) SetMongocfg(v *MongodbSpec3_6_MongoCfg) { + m.Mongocfg = v +} + +func (m *MongodbSpec3_6) SetMongos(v *MongodbSpec3_6_Mongos) { + m.Mongos = v +} + +func (m *MongodbSpec3_6_Mongod) SetConfig(v *config.MongodConfig3_6) { + m.Config = v +} + +func (m *MongodbSpec3_6_Mongod) SetResources(v *Resources) { + m.Resources = v +} + +func (m *MongodbSpec3_6_MongoCfg) SetConfig(v *config.MongoCfgConfig3_6) { + m.Config = v +} + +func (m *MongodbSpec3_6_MongoCfg) SetResources(v *Resources) { + m.Resources = v +} + +func (m *MongodbSpec3_6_Mongos) SetConfig(v *config.MongosConfig3_6) { + m.Config = v +} + +func (m *MongodbSpec3_6_Mongos) SetResources(v *Resources) { + m.Resources = v +} + +func (m *MongodbSpec4_0) SetMongod(v *MongodbSpec4_0_Mongod) { + m.Mongod = v +} + +func (m *MongodbSpec4_0) SetMongocfg(v *MongodbSpec4_0_MongoCfg) { + m.Mongocfg = v +} + +func (m *MongodbSpec4_0) SetMongos(v *MongodbSpec4_0_Mongos) { + m.Mongos = v +} + +func (m *MongodbSpec4_0_Mongod) SetConfig(v *config.MongodConfig4_0) { + m.Config = v +} + +func (m *MongodbSpec4_0_Mongod) SetResources(v *Resources) { + m.Resources = v +} + +func (m *MongodbSpec4_0_MongoCfg) SetConfig(v *config.MongoCfgConfig4_0) { + m.Config = v +} + +func (m *MongodbSpec4_0_MongoCfg) SetResources(v *Resources) { + m.Resources = v +} + +func (m *MongodbSpec4_0_Mongos) SetConfig(v *config.MongosConfig4_0) { + m.Config = v +} + +func (m *MongodbSpec4_0_Mongos) SetResources(v *Resources) { + m.Resources = v +} + +func (m *MongodbSpec4_2) SetMongod(v *MongodbSpec4_2_Mongod) { + m.Mongod = v +} + +func (m *MongodbSpec4_2) SetMongocfg(v *MongodbSpec4_2_MongoCfg) { + m.Mongocfg = v +} + +func (m *MongodbSpec4_2) SetMongos(v *MongodbSpec4_2_Mongos) { + m.Mongos = v +} + +func (m *MongodbSpec4_2_Mongod) SetConfig(v *config.MongodConfig4_2) { + m.Config = v +} + +func (m *MongodbSpec4_2_Mongod) SetResources(v *Resources) { + m.Resources = v +} + +func (m *MongodbSpec4_2_MongoCfg) SetConfig(v *config.MongoCfgConfig4_2) { + m.Config = v +} + +func (m *MongodbSpec4_2_MongoCfg) SetResources(v *Resources) { + m.Resources = v +} + +func (m *MongodbSpec4_2_Mongos) SetConfig(v *config.MongosConfig4_2) { + m.Config = v +} + +func (m *MongodbSpec4_2_Mongos) SetResources(v *Resources) { + m.Resources = v +} + +type ConfigSpec_MongodbSpec = isConfigSpec_MongodbSpec + +func (m *ConfigSpec) SetMongodbSpec(v ConfigSpec_MongodbSpec) { + m.MongodbSpec = v +} + +func (m *ConfigSpec) SetVersion(v string) { + m.Version = v +} + +func (m *ConfigSpec) SetFeatureCompatibilityVersion(v string) { + m.FeatureCompatibilityVersion = v +} + +func (m *ConfigSpec) SetMongodbSpec_3_6(v *MongodbSpec3_6) { + m.MongodbSpec = &ConfigSpec_MongodbSpec_3_6{ + MongodbSpec_3_6: v, + } +} + +func (m *ConfigSpec) SetMongodbSpec_4_0(v *MongodbSpec4_0) { + m.MongodbSpec = &ConfigSpec_MongodbSpec_4_0{ + MongodbSpec_4_0: v, + } +} + +func (m *ConfigSpec) SetMongodbSpec_4_2(v *MongodbSpec4_2) { + m.MongodbSpec = &ConfigSpec_MongodbSpec_4_2{ + MongodbSpec_4_2: v, + } +} + +func (m *ConfigSpec) SetBackupWindowStart(v *timeofday.TimeOfDay) { + m.BackupWindowStart = v +} + +func (m *ConfigSpec) SetAccess(v *Access) { + m.Access = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb3_6.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb3_6.pb.go index 95829c5a1..a0c5dcab2 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb3_6.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb3_6.pb.go @@ -1077,68 +1077,69 @@ func init() { } var fileDescriptor_8069fc8835af3200 = []byte{ - // 1004 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x97, 0xcd, 0x6e, 0xe3, 0x54, - 0x14, 0xc7, 0x71, 0x52, 0xea, 0x72, 0xd2, 0x36, 0xee, 0x65, 0x34, 0xaa, 0xcc, 0x87, 0x50, 0x56, - 0x6c, 0x6a, 0x37, 0x93, 0x4e, 0x85, 0x54, 0x81, 0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 0x0a, 0xe6, 0x09, 0xb5, 0xdf, 0x3e, 0x6b, 0x59, 0x76, - 0x78, 0xde, 0xd3, 0x05, 0x83, 0xb8, 0x62, 0xc2, 0xdb, 0x4a, 0x7e, 0xe9, 0x5a, 0x64, 0xcb, 0xc2, - 0x5e, 0xdc, 0xdd, 0xe2, 0xeb, 0x7f, 0x7b, 0xef, 0x51, 0x8b, 0xbe, 0x1c, 0x7b, 0x54, 0xfe, 0x09, - 0x00, 0x00, 0xff, 0xff, 0x7e, 0x26, 0x51, 0xb4, 0xb0, 0x0f, 0x00, 0x00, + // 1014 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x97, 0x4d, 0x6f, 0xe3, 0x54, + 0x17, 0xc7, 0x1f, 0x27, 0x7d, 0x9a, 0x72, 0xd2, 0x36, 0xee, 0x65, 0x34, 0xaa, 0xcc, 0x8b, 0x50, + 0x16, 0x88, 0x4d, 0x9d, 0x66, 0xd2, 0xa9, 0x90, 0x2a, 0x10, 0xd3, 0x34, 0xa1, 0x81, 0x26, 0x8e, + 0xec, 0x76, 0x2a, 0x2a, 0xc0, 0xf8, 0xe5, 0xc6, 0x35, 0x63, 0xfb, 0x5a, 0xb6, 0xf3, 0x32, 0xdd, + 0x32, 0x2c, 0x91, 0xf8, 0x14, 0x2c, 0xd9, 0xf1, 0x19, 0xba, 0x43, 0xb0, 0x65, 0xc1, 0x27, 0xe0, + 0x13, 0x74, 0x85, 0x6c, 0x5f, 0xe7, 0x3d, 0x9d, 0xe2, 0xa6, 0xac, 0xd8, 0x35, 0xa7, 0xf7, 0xfc, + 0xce, 0x3d, 0xff, 0x9c, 0x97, 0x1b, 0xa8, 0xbc, 0x54, 0x1c, 0x1d, 0x0f, 0x4a, 0x9a, 0x45, 0xba, + 0x7a, 0xc9, 0xd6, 0xd5, 0x92, 0x4d, 0x1c, 0x83, 0xe8, 0x6a, 0xa9, 0x57, 0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, 0x1b, 0xf5, 0x46, 0xed, 0x88, 0xfd, + 0x1f, 0x5a, 0x83, 0x95, 0x96, 0xd0, 0xaa, 0xb1, 0x0c, 0x02, 0x58, 0x95, 0x5a, 0xcf, 0xda, 0xed, + 0x2f, 0xd8, 0x4c, 0x68, 0xbd, 0x38, 0x69, 0x1c, 0xb2, 0x59, 0xee, 0x47, 0x06, 0x72, 0xb4, 0xca, + 0xd0, 0x1e, 0xe4, 0xb0, 0xa3, 0xa8, 0x16, 0xd6, 0xa9, 0x6c, 0xdc, 0x8c, 0x6c, 0x87, 0x84, 0x58, + 0xb1, 0x68, 0xc9, 0x51, 0x24, 0x40, 0x41, 0x23, 0xb6, 0x6d, 0x06, 0xb2, 0xe9, 0x04, 0xd8, 0xeb, + 0x0d, 0x2b, 0xff, 0xad, 0x19, 0xef, 0x86, 0x13, 0xec, 0xef, 0x45, 0xee, 0x87, 0x6f, 0xdc, 0x5c, + 0x97, 0xff, 0x5f, 0xde, 0x79, 0xba, 0xbb, 0x2b, 0x6e, 0xc6, 0xee, 0x0d, 0xea, 0xcd, 0x7d, 0x97, + 0x01, 0x34, 0x3b, 0x31, 0x90, 0x0c, 0x2b, 0x36, 0xd1, 0x31, 0x95, 0xfd, 0xf3, 0xe5, 0xcc, 0x21, + 0xbe, 0x49, 0x74, 0x2c, 0x46, 0x60, 0x24, 0xc0, 0x96, 0x6f, 0x91, 0xbe, 0x4c, 0x5c, 0x39, 0xb8, + 0xf4, 0xb0, 0x7f, 0x49, 0x2c, 0xfd, 0x2e, 0xa9, 0xac, 0xde, 0x5c, 0x97, 0x33, 0x1f, 0xef, 0x8a, + 0x85, 0xd0, 0x5b, 0x70, 0x4f, 0x13, 0xdf, 0xe2, 0x01, 0xac, 0x84, 0x78, 0xf4, 0x08, 0xd8, 0xa6, + 0x70, 0x54, 0x9b, 0xfa, 0x66, 0x72, 0x90, 0x15, 0xea, 0x75, 0x96, 0x41, 0x79, 0xc8, 0x49, 0x27, + 0xc2, 0xb9, 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 0xaf, 0x81, 0xc5, 0x9d, 0x4e, 0x78, 0xa8, 0x37, + 0xd5, 0x32, 0x95, 0x14, 0xbb, 0x45, 0x2c, 0x0c, 0x61, 0xb4, 0x07, 0x4e, 0x21, 0xdf, 0xf5, 0xb1, + 0x37, 0xf9, 0x34, 0x4a, 0x85, 0x86, 0x90, 0x43, 0xa9, 0x17, 0xb0, 0xa9, 0xe3, 0x8e, 0xd2, 0xb5, + 0x82, 0x04, 0x9c, 0x4d, 0x0f, 0xde, 0xa0, 0xa8, 0xd8, 0x52, 0xfc, 0x39, 0x03, 0x8f, 0x26, 0xbb, + 0x85, 0x4a, 0xf5, 0xcd, 0x42, 0xa9, 0x9e, 0xa6, 0xea, 0xc0, 0x59, 0xb1, 0x9e, 0xcf, 0x13, 0x2b, + 0x25, 0x7c, 0x5c, 0xae, 0x2f, 0x17, 0xc8, 0x95, 0x12, 0x3d, 0x25, 0xd8, 0xb0, 0xb2, 0xfc, 0xa5, + 0x57, 0x96, 0xff, 0x70, 0x95, 0xe5, 0x3f, 0x54, 0x65, 0xf9, 0x8b, 0x84, 0x3a, 0x1c, 0xc0, 0xfb, + 0x13, 0x10, 0xc5, 0x35, 0xe7, 0x83, 0x2e, 0x5a, 0x86, 0x19, 0x5c, 0x76, 0x55, 0x5e, 0x23, 0x76, + 0x29, 0x76, 0xd9, 0x89, 0x7f, 0x11, 0x1b, 0x64, 0xc7, 0xc0, 0x4e, 0x34, 0x05, 0x4a, 0xaf, 0xff, + 0x8d, 0x7e, 0x40, 0x2d, 0xea, 0x6a, 0xe4, 0x51, 0xf9, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x57, 0xd5, + 0x5b, 0x84, 0xd8, 0x0f, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb3_6.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb3_6.pbext.go new file mode 100644 index 000000000..f181e03db --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb3_6.pbext.go @@ -0,0 +1,143 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mongodb + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *MongodConfig3_6) SetStorage(v *MongodConfig3_6_Storage) { + m.Storage = v +} + +func (m *MongodConfig3_6) SetOperationProfiling(v *MongodConfig3_6_OperationProfiling) { + m.OperationProfiling = v +} + +func (m *MongodConfig3_6) SetNet(v *MongodConfig3_6_Network) { + m.Net = v +} + +func (m *MongodConfig3_6_Storage) SetWiredTiger(v *MongodConfig3_6_Storage_WiredTiger) { + m.WiredTiger = v +} + +func (m *MongodConfig3_6_Storage) SetJournal(v *MongodConfig3_6_Storage_Journal) { + m.Journal = v +} + +func (m *MongodConfig3_6_Storage_WiredTiger) SetEngineConfig(v *MongodConfig3_6_Storage_WiredTiger_EngineConfig) { + m.EngineConfig = v +} + +func (m *MongodConfig3_6_Storage_WiredTiger) SetCollectionConfig(v *MongodConfig3_6_Storage_WiredTiger_CollectionConfig) { + m.CollectionConfig = v +} + +func (m *MongodConfig3_6_Storage_WiredTiger_EngineConfig) SetCacheSizeGb(v *wrappers.DoubleValue) { + m.CacheSizeGb = v +} + +func (m *MongodConfig3_6_Storage_WiredTiger_CollectionConfig) SetBlockCompressor(v MongodConfig3_6_Storage_WiredTiger_CollectionConfig_Compressor) { + m.BlockCompressor = v +} + +func (m *MongodConfig3_6_Storage_Journal) SetEnabled(v *wrappers.BoolValue) { + m.Enabled = v +} + +func (m *MongodConfig3_6_Storage_Journal) SetCommitInterval(v *wrappers.Int64Value) { + m.CommitInterval = v +} + +func (m *MongodConfig3_6_OperationProfiling) SetMode(v MongodConfig3_6_OperationProfiling_Mode) { + m.Mode = v +} + +func (m *MongodConfig3_6_OperationProfiling) SetSlowOpThreshold(v *wrappers.Int64Value) { + m.SlowOpThreshold = v +} + +func (m *MongodConfig3_6_Network) SetMaxIncomingConnections(v *wrappers.Int64Value) { + m.MaxIncomingConnections = v +} + +func (m *MongoCfgConfig3_6) SetStorage(v *MongoCfgConfig3_6_Storage) { + m.Storage = v +} + +func (m *MongoCfgConfig3_6) SetOperationProfiling(v *MongoCfgConfig3_6_OperationProfiling) { + m.OperationProfiling = v +} + +func (m *MongoCfgConfig3_6) SetNet(v *MongoCfgConfig3_6_Network) { + m.Net = v +} + +func (m *MongoCfgConfig3_6_Storage) SetWiredTiger(v *MongoCfgConfig3_6_Storage_WiredTiger) { + m.WiredTiger = v +} + +func (m *MongoCfgConfig3_6_Storage_WiredTiger) SetEngineConfig(v *MongoCfgConfig3_6_Storage_WiredTiger_EngineConfig) { + m.EngineConfig = v +} + +func (m *MongoCfgConfig3_6_Storage_WiredTiger_EngineConfig) SetCacheSizeGb(v *wrappers.DoubleValue) { + m.CacheSizeGb = v +} + +func (m *MongoCfgConfig3_6_OperationProfiling) SetMode(v MongoCfgConfig3_6_OperationProfiling_Mode) { + m.Mode = v +} + +func (m *MongoCfgConfig3_6_OperationProfiling) SetSlowOpThreshold(v *wrappers.Int64Value) { + m.SlowOpThreshold = v +} + +func (m *MongoCfgConfig3_6_Network) SetMaxIncomingConnections(v *wrappers.Int64Value) { + m.MaxIncomingConnections = v +} + +func (m *MongosConfig3_6) SetNet(v *MongosConfig3_6_Network) { + m.Net = v +} + +func (m *MongosConfig3_6_Network) SetMaxIncomingConnections(v *wrappers.Int64Value) { + m.MaxIncomingConnections = v +} + +func (m *MongodConfigSet3_6) SetEffectiveConfig(v *MongodConfig3_6) { + m.EffectiveConfig = v +} + +func (m *MongodConfigSet3_6) SetUserConfig(v *MongodConfig3_6) { + m.UserConfig = v +} + +func (m *MongodConfigSet3_6) SetDefaultConfig(v *MongodConfig3_6) { + m.DefaultConfig = v +} + +func (m *MongoCfgConfigSet3_6) SetEffectiveConfig(v *MongoCfgConfig3_6) { + m.EffectiveConfig = v +} + +func (m *MongoCfgConfigSet3_6) SetUserConfig(v *MongoCfgConfig3_6) { + m.UserConfig = v +} + +func (m *MongoCfgConfigSet3_6) SetDefaultConfig(v *MongoCfgConfig3_6) { + m.DefaultConfig = v +} + +func (m *MongosConfigSet3_6) SetEffectiveConfig(v *MongosConfig3_6) { + m.EffectiveConfig = v +} + +func (m *MongosConfigSet3_6) SetUserConfig(v *MongosConfig3_6) { + m.UserConfig = v +} + +func (m *MongosConfigSet3_6) SetDefaultConfig(v *MongosConfig3_6) { + m.DefaultConfig = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb4_0.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb4_0.pb.go index 0c09c450d..9604ea6fd 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb4_0.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb4_0.pb.go @@ -1064,67 +1064,67 @@ func init() { } var fileDescriptor_3e01ff1b28bd2657 = []byte{ - // 982 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x97, 0xcd, 0x6e, 0xe3, 0x54, - 0x14, 0xc7, 0x49, 0x52, 0x9a, 0x72, 0xd2, 0x36, 0xee, 0x65, 0x34, 0xaa, 0xcc, 0x87, 0x50, 0x56, - 0x6c, 0x7a, 0x9d, 0x4c, 0x3b, 0x23, 0xa4, 0x0a, 0xc4, 0x34, 0x4d, 0x68, 0xa0, 0x89, 0x23, 0xbb, - 0x9d, 0x8a, 0x0a, 0x30, 0xfe, 0xb8, 0x71, 0xcd, 0xd8, 0xbe, 0x91, 0xed, 0x24, 0x9d, 0x6e, 0x19, - 0x96, 0xbc, 0x06, 0xec, 0x78, 0x8d, 0xee, 0x10, 0x6c, 0x79, 0x06, 0x9e, 0xa0, 0x0b, 0x84, 0x6c, - 0x5f, 0xe7, 0xb3, 0x69, 0x8b, 0x9b, 0xb2, 0x9a, 0x5d, 0x7d, 0xea, 0xf3, 0x3b, 0xf7, 0xfc, 0x73, - 0x3e, 0xae, 0x61, 0xfb, 0x95, 0xea, 0x1a, 0xe4, 0x5c, 0xd0, 0x6d, 0xda, 0x33, 0x04, 0xc7, 0xd0, - 0x04, 0x87, 0xba, 0x26, 0x35, 0x34, 0xa1, 0x5f, 0x11, 0x74, 0xea, 0x76, 0x2c, 0x33, 0xb1, 0xec, - 0x28, 0x65, 0xdc, 0xf5, 0x68, 0x40, 0x51, 0x29, 0x76, 0xc2, 0x91, 0x13, 0x76, 0x0c, 0x0d, 0xb3, - 0x57, 0x70, 0xbf, 0x82, 0x63, 0x27, 0xfe, 0x43, 0x93, 0x52, 0xd3, 0x26, 0x42, 0xe4, 0xa1, 0xf5, - 0x3a, 0xc2, 0xc0, 0x53, 0xbb, 0x5d, 0xe2, 0xf9, 0x31, 0x83, 0xff, 0x60, 0x22, 0x70, 0x5f, 0xb5, - 0x2d, 0x43, 0x0d, 0x2c, 0xea, 0xc6, 0xff, 0x2e, 0xfd, 0xba, 0x0a, 0xc5, 0x66, 0x04, 0xad, 0x46, - 0xbc, 0x1d, 0xa5, 0x8c, 0x8e, 0x21, 0xef, 0x07, 0xd4, 0x53, 0x4d, 0xb2, 0x99, 0xf9, 0x28, 0xf3, - 0x71, 0xe1, 0xc9, 0x2e, 0xbe, 0xfd, 0x20, 0x78, 0x8a, 0x82, 0xe5, 0x18, 0x21, 0x25, 0x2c, 0x34, - 0x80, 0x77, 0x69, 0x97, 0x78, 0x51, 0x74, 0xa5, 0xeb, 0xd1, 0x8e, 0x65, 0x5b, 0xae, 0xb9, 0x99, - 0x8d, 0x42, 0xd4, 0xd3, 0x84, 0x10, 0x13, 0x5c, 0x3b, 0xa1, 0x49, 0x88, 0xce, 0xd8, 0x50, 0x13, - 0x72, 0x2e, 0x09, 0x36, 0x73, 0xe9, 0x73, 0x69, 0x91, 0x60, 0x40, 0xbd, 0x97, 0x52, 0xc8, 0xe1, - 0xff, 0x59, 0x86, 0x3c, 0x4b, 0x0e, 0x99, 0x50, 0x18, 0x58, 0x1e, 0x31, 0x94, 0xc0, 0x32, 0x89, - 0xc7, 0xe4, 0xaa, 0xdf, 0x43, 0x2e, 0x7c, 0x12, 0xe2, 0x8e, 0x42, 0x9a, 0x04, 0x83, 0xe1, 0xdf, - 0xe8, 0x5b, 0xc8, 0xff, 0x40, 0x7b, 0x9e, 0xab, 0xda, 0x4c, 0xb0, 0xea, 0x7d, 0x82, 0x7c, 0x19, - 0xa3, 0xa4, 0x84, 0xc9, 0xff, 0xbe, 0x04, 0x30, 0x8a, 0x8c, 0xce, 0x61, 0x8d, 0xb8, 0xa6, 0xe5, - 0x12, 0x25, 0x06, 0xb1, 0xc4, 0xe4, 0xc5, 0x24, 0x86, 0x6b, 0x11, 0x3b, 0x7e, 0x45, 0x5a, 0x25, - 0x63, 0x4f, 0xe8, 0x75, 0x06, 0x36, 0x74, 0x6a, 0xdb, 0x44, 0x8f, 0xca, 0x84, 0x85, 0x8f, 0x53, - 0x3e, 0x59, 0x50, 0xf8, 0xea, 0x90, 0xcf, 0x8e, 0xc0, 0xe9, 0x53, 0x16, 0xbe, 0x0d, 0xab, 0xe3, - 0x87, 0x44, 0x9f, 0xc3, 0x9a, 0xae, 0xea, 0x67, 0x44, 0xf1, 0xad, 0x0b, 0xa2, 0x98, 0x1a, 0x13, - 0xe4, 0x7d, 0x1c, 0x77, 0x1f, 0x4e, 0xba, 0x0f, 0xef, 0xd3, 0x9e, 0x66, 0x93, 0x17, 0xaa, 0xdd, - 0x23, 0x52, 0x21, 0x72, 0x91, 0xad, 0x0b, 0xf2, 0x85, 0xc6, 0xff, 0x9d, 0x01, 0x6e, 0x3a, 0x30, - 0xfa, 0x39, 0x03, 0x9c, 0x66, 0x53, 0xfd, 0xa5, 0xa2, 0x53, 0xa7, 0xeb, 0x11, 0xdf, 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0xc0, 0x2e, 0x58, 0xff, 0xf5, 0xb2, 0xe8, - 0xcf, 0x69, 0x97, 0xff, 0x3b, 0xa5, 0x5f, 0xb2, 0x80, 0xc6, 0x37, 0x81, 0x4c, 0x82, 0x30, 0xab, - 0xef, 0x80, 0x23, 0x9d, 0x4e, 0xf8, 0x52, 0x7f, 0xaa, 0x65, 0xb6, 0x53, 0xec, 0x16, 0xa9, 0x38, - 0x84, 0xb1, 0x1e, 0x38, 0x82, 0x42, 0xcf, 0x27, 0xde, 0xe4, 0x1d, 0x27, 0x15, 0x1a, 0x42, 0x0e, - 0xa3, 0x9e, 0xc2, 0xba, 0x41, 0x3a, 0x6a, 0xcf, 0x0e, 0x12, 0x70, 0x2e, 0x3d, 0x78, 0x8d, 0xa1, - 0x62, 0x4b, 0xe9, 0xb7, 0x2c, 0x3c, 0x9a, 0xec, 0x16, 0x26, 0xd5, 0xf7, 0x73, 0xa5, 0x7a, 0x9a, - 0xaa, 0x03, 0x67, 0xc5, 0x7a, 0x71, 0x9d, 0x58, 0x29, 0xe1, 0xe3, 0x72, 0x7d, 0x33, 0x47, 0xae, - 0x94, 0xe8, 0x29, 0xc1, 0x86, 0x95, 0xe5, 0x2f, 0xbc, 0xb2, 0xfc, 0x87, 0xab, 0x2c, 0xff, 0xa1, - 0x2a, 0xcb, 0x9f, 0x27, 0xd4, 0x5e, 0xfb, 0xb4, 0x65, 0x5a, 0xc1, 0x59, 0x4f, 0xc3, 0x3a, 0x75, - 0x84, 0x98, 0xb7, 0x15, 0x7f, 0xb2, 0x9a, 0x74, 0xcb, 0x24, 0x6e, 0xd4, 0xdd, 0xc2, 0xed, 0x1f, - 0xd1, 0xbb, 0xcc, 0xa2, 0x2d, 0x47, 0x1e, 0xdb, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x09, 0x1a, - 0x1d, 0xf2, 0x79, 0x0f, 0x00, 0x00, + // 990 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 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0xb0, 0xb2, 0xfc, 0xa5, 0x57, 0x96, 0xff, 0x70, 0x95, 0xe5, 0x3f, 0x54, + 0x65, 0xf9, 0x8b, 0x84, 0x3a, 0x18, 0xc0, 0x87, 0x13, 0x10, 0xc5, 0x35, 0xe7, 0x83, 0xce, 0x5b, + 0x86, 0x19, 0x5c, 0x74, 0x55, 0x4e, 0x23, 0x36, 0x1f, 0xbb, 0xec, 0xc4, 0x9f, 0xb6, 0x06, 0xd9, + 0x31, 0xb0, 0x13, 0x4d, 0x01, 0xfe, 0xf6, 0x8f, 0xed, 0x7d, 0x6a, 0x51, 0x57, 0x23, 0x8f, 0xdd, + 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xb2, 0x63, 0xde, 0xc1, 0xa1, 0x0f, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb4_0.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb4_0.pbext.go new file mode 100644 index 000000000..89e336054 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb4_0.pbext.go @@ -0,0 +1,139 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mongodb + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *MongodConfig4_0) SetStorage(v *MongodConfig4_0_Storage) { + m.Storage = v +} + +func (m *MongodConfig4_0) SetOperationProfiling(v *MongodConfig4_0_OperationProfiling) { + m.OperationProfiling = v +} + +func (m *MongodConfig4_0) SetNet(v *MongodConfig4_0_Network) { + m.Net = v +} + +func (m *MongodConfig4_0_Storage) SetWiredTiger(v *MongodConfig4_0_Storage_WiredTiger) { + m.WiredTiger = v +} + +func (m *MongodConfig4_0_Storage) SetJournal(v *MongodConfig4_0_Storage_Journal) { + m.Journal = v +} + +func (m *MongodConfig4_0_Storage_WiredTiger) SetEngineConfig(v *MongodConfig4_0_Storage_WiredTiger_EngineConfig) { + m.EngineConfig = v +} + +func (m *MongodConfig4_0_Storage_WiredTiger) SetCollectionConfig(v *MongodConfig4_0_Storage_WiredTiger_CollectionConfig) { + m.CollectionConfig = v +} + +func (m *MongodConfig4_0_Storage_WiredTiger_EngineConfig) SetCacheSizeGb(v *wrappers.DoubleValue) { + m.CacheSizeGb = v +} + +func (m *MongodConfig4_0_Storage_WiredTiger_CollectionConfig) SetBlockCompressor(v MongodConfig4_0_Storage_WiredTiger_CollectionConfig_Compressor) { + m.BlockCompressor = v +} + +func (m *MongodConfig4_0_Storage_Journal) SetCommitInterval(v *wrappers.Int64Value) { + m.CommitInterval = v +} + +func (m *MongodConfig4_0_OperationProfiling) SetMode(v MongodConfig4_0_OperationProfiling_Mode) { + m.Mode = v +} + +func (m *MongodConfig4_0_OperationProfiling) SetSlowOpThreshold(v *wrappers.Int64Value) { + m.SlowOpThreshold = v +} + +func (m *MongodConfig4_0_Network) SetMaxIncomingConnections(v *wrappers.Int64Value) { + m.MaxIncomingConnections = v +} + +func (m *MongoCfgConfig4_0) SetStorage(v *MongoCfgConfig4_0_Storage) { + m.Storage = v +} + +func (m *MongoCfgConfig4_0) SetOperationProfiling(v *MongoCfgConfig4_0_OperationProfiling) { + m.OperationProfiling = v +} + +func (m *MongoCfgConfig4_0) SetNet(v *MongoCfgConfig4_0_Network) { + m.Net = v +} + +func (m *MongoCfgConfig4_0_Storage) SetWiredTiger(v *MongoCfgConfig4_0_Storage_WiredTiger) { + m.WiredTiger = v +} + +func (m *MongoCfgConfig4_0_Storage_WiredTiger) SetEngineConfig(v *MongoCfgConfig4_0_Storage_WiredTiger_EngineConfig) { + m.EngineConfig = v +} + +func (m *MongoCfgConfig4_0_Storage_WiredTiger_EngineConfig) SetCacheSizeGb(v *wrappers.DoubleValue) { + m.CacheSizeGb = v +} + +func (m *MongoCfgConfig4_0_OperationProfiling) SetMode(v MongoCfgConfig4_0_OperationProfiling_Mode) { + m.Mode = v +} + +func (m *MongoCfgConfig4_0_OperationProfiling) SetSlowOpThreshold(v *wrappers.Int64Value) { + m.SlowOpThreshold = v +} + +func (m *MongoCfgConfig4_0_Network) SetMaxIncomingConnections(v *wrappers.Int64Value) { + m.MaxIncomingConnections = v +} + +func (m *MongosConfig4_0) SetNet(v *MongosConfig4_0_Network) { + m.Net = v +} + +func (m *MongosConfig4_0_Network) SetMaxIncomingConnections(v *wrappers.Int64Value) { + m.MaxIncomingConnections = v +} + +func (m *MongodConfigSet4_0) SetEffectiveConfig(v *MongodConfig4_0) { + m.EffectiveConfig = v +} + +func (m *MongodConfigSet4_0) SetUserConfig(v *MongodConfig4_0) { + m.UserConfig = v +} + +func (m *MongodConfigSet4_0) SetDefaultConfig(v *MongodConfig4_0) { + m.DefaultConfig = v +} + +func (m *MongoCfgConfigSet4_0) SetEffectiveConfig(v *MongoCfgConfig4_0) { + m.EffectiveConfig = v +} + +func (m *MongoCfgConfigSet4_0) SetUserConfig(v *MongoCfgConfig4_0) { + m.UserConfig = v +} + +func (m *MongoCfgConfigSet4_0) SetDefaultConfig(v *MongoCfgConfig4_0) { + m.DefaultConfig = v +} + +func (m *MongosConfigSet4_0) SetEffectiveConfig(v *MongosConfig4_0) { + m.EffectiveConfig = v +} + +func (m *MongosConfigSet4_0) SetUserConfig(v *MongosConfig4_0) { + m.UserConfig = v +} + +func (m *MongosConfigSet4_0) SetDefaultConfig(v *MongosConfig4_0) { + m.DefaultConfig = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb4_2.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb4_2.pb.go new file mode 100644 index 000000000..3452b0563 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb4_2.pb.go @@ -0,0 +1,1130 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/mdb/mongodb/v1/config/mongodb4_2.proto + +package mongodb + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor int32 + +const ( + MongodConfig4_2_Storage_WiredTiger_CollectionConfig_COMPRESSOR_UNSPECIFIED MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor = 0 + // No compression. + MongodConfig4_2_Storage_WiredTiger_CollectionConfig_NONE MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor = 1 + // The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression. + MongodConfig4_2_Storage_WiredTiger_CollectionConfig_SNAPPY MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor = 2 + // The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression. + MongodConfig4_2_Storage_WiredTiger_CollectionConfig_ZLIB MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor = 3 +) + +var MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor_name = map[int32]string{ + 0: "COMPRESSOR_UNSPECIFIED", + 1: "NONE", + 2: "SNAPPY", + 3: "ZLIB", +} + +var MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor_value = map[string]int32{ + "COMPRESSOR_UNSPECIFIED": 0, + "NONE": 1, + "SNAPPY": 2, + "ZLIB": 3, +} + +func (x MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor) String() string { + return proto.EnumName(MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor_name, int32(x)) +} + +func (MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{0, 0, 0, 1, 0} +} + +type MongodConfig4_2_OperationProfiling_Mode int32 + +const ( + MongodConfig4_2_OperationProfiling_MODE_UNSPECIFIED MongodConfig4_2_OperationProfiling_Mode = 0 + // The profiler is off and does not collect any data. + MongodConfig4_2_OperationProfiling_OFF MongodConfig4_2_OperationProfiling_Mode = 1 + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + MongodConfig4_2_OperationProfiling_SLOW_OP MongodConfig4_2_OperationProfiling_Mode = 2 + // The profiler collects data for all operations. + MongodConfig4_2_OperationProfiling_ALL MongodConfig4_2_OperationProfiling_Mode = 3 +) + +var MongodConfig4_2_OperationProfiling_Mode_name = map[int32]string{ + 0: "MODE_UNSPECIFIED", + 1: "OFF", + 2: "SLOW_OP", + 3: "ALL", +} + +var MongodConfig4_2_OperationProfiling_Mode_value = map[string]int32{ + "MODE_UNSPECIFIED": 0, + "OFF": 1, + "SLOW_OP": 2, + "ALL": 3, +} + +func (x MongodConfig4_2_OperationProfiling_Mode) String() string { + return proto.EnumName(MongodConfig4_2_OperationProfiling_Mode_name, int32(x)) +} + +func (MongodConfig4_2_OperationProfiling_Mode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{0, 1, 0} +} + +type MongoCfgConfig4_2_OperationProfiling_Mode int32 + +const ( + MongoCfgConfig4_2_OperationProfiling_MODE_UNSPECIFIED MongoCfgConfig4_2_OperationProfiling_Mode = 0 + // The profiler is off and does not collect any data. + MongoCfgConfig4_2_OperationProfiling_OFF MongoCfgConfig4_2_OperationProfiling_Mode = 1 + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + MongoCfgConfig4_2_OperationProfiling_SLOW_OP MongoCfgConfig4_2_OperationProfiling_Mode = 2 + // The profiler collects data for all operations. + MongoCfgConfig4_2_OperationProfiling_ALL MongoCfgConfig4_2_OperationProfiling_Mode = 3 +) + +var MongoCfgConfig4_2_OperationProfiling_Mode_name = map[int32]string{ + 0: "MODE_UNSPECIFIED", + 1: "OFF", + 2: "SLOW_OP", + 3: "ALL", +} + +var MongoCfgConfig4_2_OperationProfiling_Mode_value = map[string]int32{ + "MODE_UNSPECIFIED": 0, + "OFF": 1, + "SLOW_OP": 2, + "ALL": 3, +} + +func (x MongoCfgConfig4_2_OperationProfiling_Mode) String() string { + return proto.EnumName(MongoCfgConfig4_2_OperationProfiling_Mode_name, int32(x)) +} + +func (MongoCfgConfig4_2_OperationProfiling_Mode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{1, 1, 0} +} + +// Configuration of a mongod daemon. Supported options are a limited subset of all +// options described in [MongoDB documentation](https://docs.mongodb.com/v4.2/reference/configuration-options/). +type MongodConfig4_2 struct { + // `storage` section of mongod configuration. + Storage *MongodConfig4_2_Storage `protobuf:"bytes,1,opt,name=storage,proto3" json:"storage,omitempty"` + // `operationProfiling` section of mongod configuration. + OperationProfiling *MongodConfig4_2_OperationProfiling `protobuf:"bytes,2,opt,name=operation_profiling,json=operationProfiling,proto3" json:"operation_profiling,omitempty"` + // `net` section of mongod configuration. + Net *MongodConfig4_2_Network `protobuf:"bytes,3,opt,name=net,proto3" json:"net,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongodConfig4_2) Reset() { *m = MongodConfig4_2{} } +func (m *MongodConfig4_2) String() string { return proto.CompactTextString(m) } +func (*MongodConfig4_2) ProtoMessage() {} +func (*MongodConfig4_2) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{0} +} + +func (m *MongodConfig4_2) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongodConfig4_2.Unmarshal(m, b) +} +func (m *MongodConfig4_2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongodConfig4_2.Marshal(b, m, deterministic) +} +func (m *MongodConfig4_2) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongodConfig4_2.Merge(m, src) +} +func (m *MongodConfig4_2) XXX_Size() int { + return xxx_messageInfo_MongodConfig4_2.Size(m) +} +func (m *MongodConfig4_2) XXX_DiscardUnknown() { + xxx_messageInfo_MongodConfig4_2.DiscardUnknown(m) +} + +var xxx_messageInfo_MongodConfig4_2 proto.InternalMessageInfo + +func (m *MongodConfig4_2) GetStorage() *MongodConfig4_2_Storage { + if m != nil { + return m.Storage + } + return nil +} + +func (m *MongodConfig4_2) GetOperationProfiling() *MongodConfig4_2_OperationProfiling { + if m != nil { + return m.OperationProfiling + } + return nil +} + +func (m *MongodConfig4_2) GetNet() *MongodConfig4_2_Network { + if m != nil { + return m.Net + } + return nil +} + +type MongodConfig4_2_Storage struct { + // Configuration of the WiredTiger storage engine. + WiredTiger *MongodConfig4_2_Storage_WiredTiger `protobuf:"bytes,1,opt,name=wired_tiger,json=wiredTiger,proto3" json:"wired_tiger,omitempty"` + // Configuration of the MongoDB [journal](https://docs.mongodb.com/v4.2/reference/glossary/#term-journal). + Journal *MongodConfig4_2_Storage_Journal `protobuf:"bytes,2,opt,name=journal,proto3" json:"journal,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongodConfig4_2_Storage) Reset() { *m = MongodConfig4_2_Storage{} } +func (m *MongodConfig4_2_Storage) String() string { return proto.CompactTextString(m) } +func (*MongodConfig4_2_Storage) ProtoMessage() {} +func (*MongodConfig4_2_Storage) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{0, 0} +} + +func (m *MongodConfig4_2_Storage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongodConfig4_2_Storage.Unmarshal(m, b) +} +func (m *MongodConfig4_2_Storage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongodConfig4_2_Storage.Marshal(b, m, deterministic) +} +func (m *MongodConfig4_2_Storage) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongodConfig4_2_Storage.Merge(m, src) +} +func (m *MongodConfig4_2_Storage) XXX_Size() int { + return xxx_messageInfo_MongodConfig4_2_Storage.Size(m) +} +func (m *MongodConfig4_2_Storage) XXX_DiscardUnknown() { + xxx_messageInfo_MongodConfig4_2_Storage.DiscardUnknown(m) +} + +var xxx_messageInfo_MongodConfig4_2_Storage proto.InternalMessageInfo + +func (m *MongodConfig4_2_Storage) GetWiredTiger() *MongodConfig4_2_Storage_WiredTiger { + if m != nil { + return m.WiredTiger + } + return nil +} + +func (m *MongodConfig4_2_Storage) GetJournal() *MongodConfig4_2_Storage_Journal { + if m != nil { + return m.Journal + } + return nil +} + +// Configuration of WiredTiger storage engine. +type MongodConfig4_2_Storage_WiredTiger struct { + // Engine configuration for WiredTiger. + EngineConfig *MongodConfig4_2_Storage_WiredTiger_EngineConfig `protobuf:"bytes,1,opt,name=engine_config,json=engineConfig,proto3" json:"engine_config,omitempty"` + // Collection configuration for WiredTiger. + CollectionConfig *MongodConfig4_2_Storage_WiredTiger_CollectionConfig `protobuf:"bytes,2,opt,name=collection_config,json=collectionConfig,proto3" json:"collection_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongodConfig4_2_Storage_WiredTiger) Reset() { *m = MongodConfig4_2_Storage_WiredTiger{} } +func (m *MongodConfig4_2_Storage_WiredTiger) String() string { return proto.CompactTextString(m) } +func (*MongodConfig4_2_Storage_WiredTiger) ProtoMessage() {} +func (*MongodConfig4_2_Storage_WiredTiger) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{0, 0, 0} +} + +func (m *MongodConfig4_2_Storage_WiredTiger) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger.Unmarshal(m, b) +} +func (m *MongodConfig4_2_Storage_WiredTiger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger.Marshal(b, m, deterministic) +} +func (m *MongodConfig4_2_Storage_WiredTiger) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger.Merge(m, src) +} +func (m *MongodConfig4_2_Storage_WiredTiger) XXX_Size() int { + return xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger.Size(m) +} +func (m *MongodConfig4_2_Storage_WiredTiger) XXX_DiscardUnknown() { + xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger.DiscardUnknown(m) +} + +var xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger proto.InternalMessageInfo + +func (m *MongodConfig4_2_Storage_WiredTiger) GetEngineConfig() *MongodConfig4_2_Storage_WiredTiger_EngineConfig { + if m != nil { + return m.EngineConfig + } + return nil +} + +func (m *MongodConfig4_2_Storage_WiredTiger) GetCollectionConfig() *MongodConfig4_2_Storage_WiredTiger_CollectionConfig { + if m != nil { + return m.CollectionConfig + } + return nil +} + +type MongodConfig4_2_Storage_WiredTiger_EngineConfig struct { + // The maximum size of the internal cache that WiredTiger will use for all data. + CacheSizeGb *wrappers.DoubleValue `protobuf:"bytes,1,opt,name=cache_size_gb,json=cacheSizeGb,proto3" json:"cache_size_gb,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongodConfig4_2_Storage_WiredTiger_EngineConfig) Reset() { + *m = MongodConfig4_2_Storage_WiredTiger_EngineConfig{} +} +func (m *MongodConfig4_2_Storage_WiredTiger_EngineConfig) String() string { + return proto.CompactTextString(m) +} +func (*MongodConfig4_2_Storage_WiredTiger_EngineConfig) ProtoMessage() {} +func (*MongodConfig4_2_Storage_WiredTiger_EngineConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{0, 0, 0, 0} +} + +func (m *MongodConfig4_2_Storage_WiredTiger_EngineConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger_EngineConfig.Unmarshal(m, b) +} +func (m *MongodConfig4_2_Storage_WiredTiger_EngineConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger_EngineConfig.Marshal(b, m, deterministic) +} +func (m *MongodConfig4_2_Storage_WiredTiger_EngineConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger_EngineConfig.Merge(m, src) +} +func (m *MongodConfig4_2_Storage_WiredTiger_EngineConfig) XXX_Size() int { + return xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger_EngineConfig.Size(m) +} +func (m *MongodConfig4_2_Storage_WiredTiger_EngineConfig) XXX_DiscardUnknown() { + xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger_EngineConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger_EngineConfig proto.InternalMessageInfo + +func (m *MongodConfig4_2_Storage_WiredTiger_EngineConfig) GetCacheSizeGb() *wrappers.DoubleValue { + if m != nil { + return m.CacheSizeGb + } + return nil +} + +type MongodConfig4_2_Storage_WiredTiger_CollectionConfig struct { + // Default type of compression to use for collection data. + BlockCompressor MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor `protobuf:"varint,1,opt,name=block_compressor,json=blockCompressor,proto3,enum=yandex.cloud.mdb.mongodb.v1.config.MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor" json:"block_compressor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongodConfig4_2_Storage_WiredTiger_CollectionConfig) Reset() { + *m = MongodConfig4_2_Storage_WiredTiger_CollectionConfig{} +} +func (m *MongodConfig4_2_Storage_WiredTiger_CollectionConfig) String() string { + return proto.CompactTextString(m) +} +func (*MongodConfig4_2_Storage_WiredTiger_CollectionConfig) ProtoMessage() {} +func (*MongodConfig4_2_Storage_WiredTiger_CollectionConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{0, 0, 0, 1} +} + +func (m *MongodConfig4_2_Storage_WiredTiger_CollectionConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger_CollectionConfig.Unmarshal(m, b) +} +func (m *MongodConfig4_2_Storage_WiredTiger_CollectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger_CollectionConfig.Marshal(b, m, deterministic) +} +func (m *MongodConfig4_2_Storage_WiredTiger_CollectionConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger_CollectionConfig.Merge(m, src) +} +func (m *MongodConfig4_2_Storage_WiredTiger_CollectionConfig) XXX_Size() int { + return xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger_CollectionConfig.Size(m) +} +func (m *MongodConfig4_2_Storage_WiredTiger_CollectionConfig) XXX_DiscardUnknown() { + xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger_CollectionConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_MongodConfig4_2_Storage_WiredTiger_CollectionConfig proto.InternalMessageInfo + +func (m *MongodConfig4_2_Storage_WiredTiger_CollectionConfig) GetBlockCompressor() MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor { + if m != nil { + return m.BlockCompressor + } + return MongodConfig4_2_Storage_WiredTiger_CollectionConfig_COMPRESSOR_UNSPECIFIED +} + +type MongodConfig4_2_Storage_Journal struct { + // Commit interval between journal operations, in milliseconds. + // Default: 100. + CommitInterval *wrappers.Int64Value `protobuf:"bytes,1,opt,name=commit_interval,json=commitInterval,proto3" json:"commit_interval,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongodConfig4_2_Storage_Journal) Reset() { *m = MongodConfig4_2_Storage_Journal{} } +func (m *MongodConfig4_2_Storage_Journal) String() string { return proto.CompactTextString(m) } +func (*MongodConfig4_2_Storage_Journal) ProtoMessage() {} +func (*MongodConfig4_2_Storage_Journal) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{0, 0, 1} +} + +func (m *MongodConfig4_2_Storage_Journal) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongodConfig4_2_Storage_Journal.Unmarshal(m, b) +} +func (m *MongodConfig4_2_Storage_Journal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongodConfig4_2_Storage_Journal.Marshal(b, m, deterministic) +} +func (m *MongodConfig4_2_Storage_Journal) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongodConfig4_2_Storage_Journal.Merge(m, src) +} +func (m *MongodConfig4_2_Storage_Journal) XXX_Size() int { + return xxx_messageInfo_MongodConfig4_2_Storage_Journal.Size(m) +} +func (m *MongodConfig4_2_Storage_Journal) XXX_DiscardUnknown() { + xxx_messageInfo_MongodConfig4_2_Storage_Journal.DiscardUnknown(m) +} + +var xxx_messageInfo_MongodConfig4_2_Storage_Journal proto.InternalMessageInfo + +func (m *MongodConfig4_2_Storage_Journal) GetCommitInterval() *wrappers.Int64Value { + if m != nil { + return m.CommitInterval + } + return nil +} + +type MongodConfig4_2_OperationProfiling struct { + // Mode which specifies operations that should be profiled. + Mode MongodConfig4_2_OperationProfiling_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=yandex.cloud.mdb.mongodb.v1.config.MongodConfig4_2_OperationProfiling_Mode" json:"mode,omitempty"` + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. + SlowOpThreshold *wrappers.Int64Value `protobuf:"bytes,2,opt,name=slow_op_threshold,json=slowOpThreshold,proto3" json:"slow_op_threshold,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongodConfig4_2_OperationProfiling) Reset() { *m = MongodConfig4_2_OperationProfiling{} } +func (m *MongodConfig4_2_OperationProfiling) String() string { return proto.CompactTextString(m) } +func (*MongodConfig4_2_OperationProfiling) ProtoMessage() {} +func (*MongodConfig4_2_OperationProfiling) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{0, 1} +} + +func (m *MongodConfig4_2_OperationProfiling) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongodConfig4_2_OperationProfiling.Unmarshal(m, b) +} +func (m *MongodConfig4_2_OperationProfiling) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongodConfig4_2_OperationProfiling.Marshal(b, m, deterministic) +} +func (m *MongodConfig4_2_OperationProfiling) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongodConfig4_2_OperationProfiling.Merge(m, src) +} +func (m *MongodConfig4_2_OperationProfiling) XXX_Size() int { + return xxx_messageInfo_MongodConfig4_2_OperationProfiling.Size(m) +} +func (m *MongodConfig4_2_OperationProfiling) XXX_DiscardUnknown() { + xxx_messageInfo_MongodConfig4_2_OperationProfiling.DiscardUnknown(m) +} + +var xxx_messageInfo_MongodConfig4_2_OperationProfiling proto.InternalMessageInfo + +func (m *MongodConfig4_2_OperationProfiling) GetMode() MongodConfig4_2_OperationProfiling_Mode { + if m != nil { + return m.Mode + } + return MongodConfig4_2_OperationProfiling_MODE_UNSPECIFIED +} + +func (m *MongodConfig4_2_OperationProfiling) GetSlowOpThreshold() *wrappers.Int64Value { + if m != nil { + return m.SlowOpThreshold + } + return nil +} + +type MongodConfig4_2_Network struct { + // The maximum number of simultaneous connections that mongod will accept. + MaxIncomingConnections *wrappers.Int64Value `protobuf:"bytes,1,opt,name=max_incoming_connections,json=maxIncomingConnections,proto3" json:"max_incoming_connections,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongodConfig4_2_Network) Reset() { *m = MongodConfig4_2_Network{} } +func (m *MongodConfig4_2_Network) String() string { return proto.CompactTextString(m) } +func (*MongodConfig4_2_Network) ProtoMessage() {} +func (*MongodConfig4_2_Network) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{0, 2} +} + +func (m *MongodConfig4_2_Network) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongodConfig4_2_Network.Unmarshal(m, b) +} +func (m *MongodConfig4_2_Network) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongodConfig4_2_Network.Marshal(b, m, deterministic) +} +func (m *MongodConfig4_2_Network) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongodConfig4_2_Network.Merge(m, src) +} +func (m *MongodConfig4_2_Network) XXX_Size() int { + return xxx_messageInfo_MongodConfig4_2_Network.Size(m) +} +func (m *MongodConfig4_2_Network) XXX_DiscardUnknown() { + xxx_messageInfo_MongodConfig4_2_Network.DiscardUnknown(m) +} + +var xxx_messageInfo_MongodConfig4_2_Network proto.InternalMessageInfo + +func (m *MongodConfig4_2_Network) GetMaxIncomingConnections() *wrappers.Int64Value { + if m != nil { + return m.MaxIncomingConnections + } + return nil +} + +type MongoCfgConfig4_2 struct { + // `storage` section of mongocfg configuration. + Storage *MongoCfgConfig4_2_Storage `protobuf:"bytes,1,opt,name=storage,proto3" json:"storage,omitempty"` + // `operationProfiling` section of mongocfg configuration. + OperationProfiling *MongoCfgConfig4_2_OperationProfiling `protobuf:"bytes,2,opt,name=operation_profiling,json=operationProfiling,proto3" json:"operation_profiling,omitempty"` + // `net` section of mongocfg configuration. + Net *MongoCfgConfig4_2_Network `protobuf:"bytes,3,opt,name=net,proto3" json:"net,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongoCfgConfig4_2) Reset() { *m = MongoCfgConfig4_2{} } +func (m *MongoCfgConfig4_2) String() string { return proto.CompactTextString(m) } +func (*MongoCfgConfig4_2) ProtoMessage() {} +func (*MongoCfgConfig4_2) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{1} +} + +func (m *MongoCfgConfig4_2) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongoCfgConfig4_2.Unmarshal(m, b) +} +func (m *MongoCfgConfig4_2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongoCfgConfig4_2.Marshal(b, m, deterministic) +} +func (m *MongoCfgConfig4_2) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongoCfgConfig4_2.Merge(m, src) +} +func (m *MongoCfgConfig4_2) XXX_Size() int { + return xxx_messageInfo_MongoCfgConfig4_2.Size(m) +} +func (m *MongoCfgConfig4_2) XXX_DiscardUnknown() { + xxx_messageInfo_MongoCfgConfig4_2.DiscardUnknown(m) +} + +var xxx_messageInfo_MongoCfgConfig4_2 proto.InternalMessageInfo + +func (m *MongoCfgConfig4_2) GetStorage() *MongoCfgConfig4_2_Storage { + if m != nil { + return m.Storage + } + return nil +} + +func (m *MongoCfgConfig4_2) GetOperationProfiling() *MongoCfgConfig4_2_OperationProfiling { + if m != nil { + return m.OperationProfiling + } + return nil +} + +func (m *MongoCfgConfig4_2) GetNet() *MongoCfgConfig4_2_Network { + if m != nil { + return m.Net + } + return nil +} + +type MongoCfgConfig4_2_Storage struct { + // Configuration of the WiredTiger storage engine. + WiredTiger *MongoCfgConfig4_2_Storage_WiredTiger `protobuf:"bytes,1,opt,name=wired_tiger,json=wiredTiger,proto3" json:"wired_tiger,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongoCfgConfig4_2_Storage) Reset() { *m = MongoCfgConfig4_2_Storage{} } +func (m *MongoCfgConfig4_2_Storage) String() string { return proto.CompactTextString(m) } +func (*MongoCfgConfig4_2_Storage) ProtoMessage() {} +func (*MongoCfgConfig4_2_Storage) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{1, 0} +} + +func (m *MongoCfgConfig4_2_Storage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongoCfgConfig4_2_Storage.Unmarshal(m, b) +} +func (m *MongoCfgConfig4_2_Storage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongoCfgConfig4_2_Storage.Marshal(b, m, deterministic) +} +func (m *MongoCfgConfig4_2_Storage) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongoCfgConfig4_2_Storage.Merge(m, src) +} +func (m *MongoCfgConfig4_2_Storage) XXX_Size() int { + return xxx_messageInfo_MongoCfgConfig4_2_Storage.Size(m) +} +func (m *MongoCfgConfig4_2_Storage) XXX_DiscardUnknown() { + xxx_messageInfo_MongoCfgConfig4_2_Storage.DiscardUnknown(m) +} + +var xxx_messageInfo_MongoCfgConfig4_2_Storage proto.InternalMessageInfo + +func (m *MongoCfgConfig4_2_Storage) GetWiredTiger() *MongoCfgConfig4_2_Storage_WiredTiger { + if m != nil { + return m.WiredTiger + } + return nil +} + +// Configuration of WiredTiger storage engine. +type MongoCfgConfig4_2_Storage_WiredTiger struct { + // Engine configuration for WiredTiger. + EngineConfig *MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig `protobuf:"bytes,1,opt,name=engine_config,json=engineConfig,proto3" json:"engine_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongoCfgConfig4_2_Storage_WiredTiger) Reset() { *m = MongoCfgConfig4_2_Storage_WiredTiger{} } +func (m *MongoCfgConfig4_2_Storage_WiredTiger) String() string { return proto.CompactTextString(m) } +func (*MongoCfgConfig4_2_Storage_WiredTiger) ProtoMessage() {} +func (*MongoCfgConfig4_2_Storage_WiredTiger) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{1, 0, 0} +} + +func (m *MongoCfgConfig4_2_Storage_WiredTiger) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongoCfgConfig4_2_Storage_WiredTiger.Unmarshal(m, b) +} +func (m *MongoCfgConfig4_2_Storage_WiredTiger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongoCfgConfig4_2_Storage_WiredTiger.Marshal(b, m, deterministic) +} +func (m *MongoCfgConfig4_2_Storage_WiredTiger) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongoCfgConfig4_2_Storage_WiredTiger.Merge(m, src) +} +func (m *MongoCfgConfig4_2_Storage_WiredTiger) XXX_Size() int { + return xxx_messageInfo_MongoCfgConfig4_2_Storage_WiredTiger.Size(m) +} +func (m *MongoCfgConfig4_2_Storage_WiredTiger) XXX_DiscardUnknown() { + xxx_messageInfo_MongoCfgConfig4_2_Storage_WiredTiger.DiscardUnknown(m) +} + +var xxx_messageInfo_MongoCfgConfig4_2_Storage_WiredTiger proto.InternalMessageInfo + +func (m *MongoCfgConfig4_2_Storage_WiredTiger) GetEngineConfig() *MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig { + if m != nil { + return m.EngineConfig + } + return nil +} + +type MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig struct { + // The maximum size of the internal cache that WiredTiger will use for all data. + CacheSizeGb *wrappers.DoubleValue `protobuf:"bytes,1,opt,name=cache_size_gb,json=cacheSizeGb,proto3" json:"cache_size_gb,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig) Reset() { + *m = MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig{} +} +func (m *MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig) String() string { + return proto.CompactTextString(m) +} +func (*MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig) ProtoMessage() {} +func (*MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{1, 0, 0, 0} +} + +func (m *MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig.Unmarshal(m, b) +} +func (m *MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig.Marshal(b, m, deterministic) +} +func (m *MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig.Merge(m, src) +} +func (m *MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig) XXX_Size() int { + return xxx_messageInfo_MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig.Size(m) +} +func (m *MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig) XXX_DiscardUnknown() { + xxx_messageInfo_MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig proto.InternalMessageInfo + +func (m *MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig) GetCacheSizeGb() *wrappers.DoubleValue { + if m != nil { + return m.CacheSizeGb + } + return nil +} + +type MongoCfgConfig4_2_OperationProfiling struct { + // Mode which specifies operations that should be profiled. + Mode MongoCfgConfig4_2_OperationProfiling_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig4_2_OperationProfiling_Mode" json:"mode,omitempty"` + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v4.2/reference/configuration-options/#operationProfiling.slowOpThresholdMs). + SlowOpThreshold *wrappers.Int64Value `protobuf:"bytes,2,opt,name=slow_op_threshold,json=slowOpThreshold,proto3" json:"slow_op_threshold,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongoCfgConfig4_2_OperationProfiling) Reset() { *m = MongoCfgConfig4_2_OperationProfiling{} } +func (m *MongoCfgConfig4_2_OperationProfiling) String() string { return proto.CompactTextString(m) } +func (*MongoCfgConfig4_2_OperationProfiling) ProtoMessage() {} +func (*MongoCfgConfig4_2_OperationProfiling) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{1, 1} +} + +func (m *MongoCfgConfig4_2_OperationProfiling) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongoCfgConfig4_2_OperationProfiling.Unmarshal(m, b) +} +func (m *MongoCfgConfig4_2_OperationProfiling) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongoCfgConfig4_2_OperationProfiling.Marshal(b, m, deterministic) +} +func (m *MongoCfgConfig4_2_OperationProfiling) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongoCfgConfig4_2_OperationProfiling.Merge(m, src) +} +func (m *MongoCfgConfig4_2_OperationProfiling) XXX_Size() int { + return xxx_messageInfo_MongoCfgConfig4_2_OperationProfiling.Size(m) +} +func (m *MongoCfgConfig4_2_OperationProfiling) XXX_DiscardUnknown() { + xxx_messageInfo_MongoCfgConfig4_2_OperationProfiling.DiscardUnknown(m) +} + +var xxx_messageInfo_MongoCfgConfig4_2_OperationProfiling proto.InternalMessageInfo + +func (m *MongoCfgConfig4_2_OperationProfiling) GetMode() MongoCfgConfig4_2_OperationProfiling_Mode { + if m != nil { + return m.Mode + } + return MongoCfgConfig4_2_OperationProfiling_MODE_UNSPECIFIED +} + +func (m *MongoCfgConfig4_2_OperationProfiling) GetSlowOpThreshold() *wrappers.Int64Value { + if m != nil { + return m.SlowOpThreshold + } + return nil +} + +type MongoCfgConfig4_2_Network struct { + // The maximum number of simultaneous connections that mongocfg will accept. + MaxIncomingConnections *wrappers.Int64Value `protobuf:"bytes,1,opt,name=max_incoming_connections,json=maxIncomingConnections,proto3" json:"max_incoming_connections,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongoCfgConfig4_2_Network) Reset() { *m = MongoCfgConfig4_2_Network{} } +func (m *MongoCfgConfig4_2_Network) String() string { return proto.CompactTextString(m) } +func (*MongoCfgConfig4_2_Network) ProtoMessage() {} +func (*MongoCfgConfig4_2_Network) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{1, 2} +} + +func (m *MongoCfgConfig4_2_Network) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongoCfgConfig4_2_Network.Unmarshal(m, b) +} +func (m *MongoCfgConfig4_2_Network) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongoCfgConfig4_2_Network.Marshal(b, m, deterministic) +} +func (m *MongoCfgConfig4_2_Network) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongoCfgConfig4_2_Network.Merge(m, src) +} +func (m *MongoCfgConfig4_2_Network) XXX_Size() int { + return xxx_messageInfo_MongoCfgConfig4_2_Network.Size(m) +} +func (m *MongoCfgConfig4_2_Network) XXX_DiscardUnknown() { + xxx_messageInfo_MongoCfgConfig4_2_Network.DiscardUnknown(m) +} + +var xxx_messageInfo_MongoCfgConfig4_2_Network proto.InternalMessageInfo + +func (m *MongoCfgConfig4_2_Network) GetMaxIncomingConnections() *wrappers.Int64Value { + if m != nil { + return m.MaxIncomingConnections + } + return nil +} + +type MongosConfig4_2 struct { + // Network settings for mongos. + Net *MongosConfig4_2_Network `protobuf:"bytes,1,opt,name=net,proto3" json:"net,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongosConfig4_2) Reset() { *m = MongosConfig4_2{} } +func (m *MongosConfig4_2) String() string { return proto.CompactTextString(m) } +func (*MongosConfig4_2) ProtoMessage() {} +func (*MongosConfig4_2) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{2} +} + +func (m *MongosConfig4_2) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongosConfig4_2.Unmarshal(m, b) +} +func (m *MongosConfig4_2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongosConfig4_2.Marshal(b, m, deterministic) +} +func (m *MongosConfig4_2) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongosConfig4_2.Merge(m, src) +} +func (m *MongosConfig4_2) XXX_Size() int { + return xxx_messageInfo_MongosConfig4_2.Size(m) +} +func (m *MongosConfig4_2) XXX_DiscardUnknown() { + xxx_messageInfo_MongosConfig4_2.DiscardUnknown(m) +} + +var xxx_messageInfo_MongosConfig4_2 proto.InternalMessageInfo + +func (m *MongosConfig4_2) GetNet() *MongosConfig4_2_Network { + if m != nil { + return m.Net + } + return nil +} + +type MongosConfig4_2_Network struct { + // The maximum number of simultaneous connections that mongos will accept. + MaxIncomingConnections *wrappers.Int64Value `protobuf:"bytes,1,opt,name=max_incoming_connections,json=maxIncomingConnections,proto3" json:"max_incoming_connections,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongosConfig4_2_Network) Reset() { *m = MongosConfig4_2_Network{} } +func (m *MongosConfig4_2_Network) String() string { return proto.CompactTextString(m) } +func (*MongosConfig4_2_Network) ProtoMessage() {} +func (*MongosConfig4_2_Network) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{2, 0} +} + +func (m *MongosConfig4_2_Network) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongosConfig4_2_Network.Unmarshal(m, b) +} +func (m *MongosConfig4_2_Network) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongosConfig4_2_Network.Marshal(b, m, deterministic) +} +func (m *MongosConfig4_2_Network) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongosConfig4_2_Network.Merge(m, src) +} +func (m *MongosConfig4_2_Network) XXX_Size() int { + return xxx_messageInfo_MongosConfig4_2_Network.Size(m) +} +func (m *MongosConfig4_2_Network) XXX_DiscardUnknown() { + xxx_messageInfo_MongosConfig4_2_Network.DiscardUnknown(m) +} + +var xxx_messageInfo_MongosConfig4_2_Network proto.InternalMessageInfo + +func (m *MongosConfig4_2_Network) GetMaxIncomingConnections() *wrappers.Int64Value { + if m != nil { + return m.MaxIncomingConnections + } + return nil +} + +type MongodConfigSet4_2 struct { + // Effective mongod settings for a MongoDB 4.2 cluster (a combination of settings defined + // in [user_config] and [default_config]). + EffectiveConfig *MongodConfig4_2 `protobuf:"bytes,1,opt,name=effective_config,json=effectiveConfig,proto3" json:"effective_config,omitempty"` + // User-defined mongod settings for a MongoDB 4.2 cluster. + UserConfig *MongodConfig4_2 `protobuf:"bytes,2,opt,name=user_config,json=userConfig,proto3" json:"user_config,omitempty"` + // Default mongod configuration for a MongoDB 4.2 cluster. + DefaultConfig *MongodConfig4_2 `protobuf:"bytes,3,opt,name=default_config,json=defaultConfig,proto3" json:"default_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongodConfigSet4_2) Reset() { *m = MongodConfigSet4_2{} } +func (m *MongodConfigSet4_2) String() string { return proto.CompactTextString(m) } +func (*MongodConfigSet4_2) ProtoMessage() {} +func (*MongodConfigSet4_2) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{3} +} + +func (m *MongodConfigSet4_2) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongodConfigSet4_2.Unmarshal(m, b) +} +func (m *MongodConfigSet4_2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongodConfigSet4_2.Marshal(b, m, deterministic) +} +func (m *MongodConfigSet4_2) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongodConfigSet4_2.Merge(m, src) +} +func (m *MongodConfigSet4_2) XXX_Size() int { + return xxx_messageInfo_MongodConfigSet4_2.Size(m) +} +func (m *MongodConfigSet4_2) XXX_DiscardUnknown() { + xxx_messageInfo_MongodConfigSet4_2.DiscardUnknown(m) +} + +var xxx_messageInfo_MongodConfigSet4_2 proto.InternalMessageInfo + +func (m *MongodConfigSet4_2) GetEffectiveConfig() *MongodConfig4_2 { + if m != nil { + return m.EffectiveConfig + } + return nil +} + +func (m *MongodConfigSet4_2) GetUserConfig() *MongodConfig4_2 { + if m != nil { + return m.UserConfig + } + return nil +} + +func (m *MongodConfigSet4_2) GetDefaultConfig() *MongodConfig4_2 { + if m != nil { + return m.DefaultConfig + } + return nil +} + +type MongoCfgConfigSet4_2 struct { + // Effective mongocfg settings for a MongoDB 4.2 cluster (a combination of settings defined + // in [user_config] and [default_config]). + EffectiveConfig *MongoCfgConfig4_2 `protobuf:"bytes,1,opt,name=effective_config,json=effectiveConfig,proto3" json:"effective_config,omitempty"` + // User-defined mongocfg settings for a MongoDB 4.2 cluster. + UserConfig *MongoCfgConfig4_2 `protobuf:"bytes,2,opt,name=user_config,json=userConfig,proto3" json:"user_config,omitempty"` + // Default mongocfg configuration for a MongoDB 4.2 cluster. + DefaultConfig *MongoCfgConfig4_2 `protobuf:"bytes,3,opt,name=default_config,json=defaultConfig,proto3" json:"default_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongoCfgConfigSet4_2) Reset() { *m = MongoCfgConfigSet4_2{} } +func (m *MongoCfgConfigSet4_2) String() string { return proto.CompactTextString(m) } +func (*MongoCfgConfigSet4_2) ProtoMessage() {} +func (*MongoCfgConfigSet4_2) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{4} +} + +func (m *MongoCfgConfigSet4_2) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongoCfgConfigSet4_2.Unmarshal(m, b) +} +func (m *MongoCfgConfigSet4_2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongoCfgConfigSet4_2.Marshal(b, m, deterministic) +} +func (m *MongoCfgConfigSet4_2) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongoCfgConfigSet4_2.Merge(m, src) +} +func (m *MongoCfgConfigSet4_2) XXX_Size() int { + return xxx_messageInfo_MongoCfgConfigSet4_2.Size(m) +} +func (m *MongoCfgConfigSet4_2) XXX_DiscardUnknown() { + xxx_messageInfo_MongoCfgConfigSet4_2.DiscardUnknown(m) +} + +var xxx_messageInfo_MongoCfgConfigSet4_2 proto.InternalMessageInfo + +func (m *MongoCfgConfigSet4_2) GetEffectiveConfig() *MongoCfgConfig4_2 { + if m != nil { + return m.EffectiveConfig + } + return nil +} + +func (m *MongoCfgConfigSet4_2) GetUserConfig() *MongoCfgConfig4_2 { + if m != nil { + return m.UserConfig + } + return nil +} + +func (m *MongoCfgConfigSet4_2) GetDefaultConfig() *MongoCfgConfig4_2 { + if m != nil { + return m.DefaultConfig + } + return nil +} + +type MongosConfigSet4_2 struct { + // Effective mongos settings for a MongoDB 4.2 cluster (a combination of settings defined + // in [user_config] and [default_config]). + EffectiveConfig *MongosConfig4_2 `protobuf:"bytes,1,opt,name=effective_config,json=effectiveConfig,proto3" json:"effective_config,omitempty"` + // User-defined mongos settings for a MongoDB 4.2 cluster. + UserConfig *MongosConfig4_2 `protobuf:"bytes,2,opt,name=user_config,json=userConfig,proto3" json:"user_config,omitempty"` + // Default mongos configuration for a MongoDB 4.2 cluster. + DefaultConfig *MongosConfig4_2 `protobuf:"bytes,3,opt,name=default_config,json=defaultConfig,proto3" json:"default_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongosConfigSet4_2) Reset() { *m = MongosConfigSet4_2{} } +func (m *MongosConfigSet4_2) String() string { return proto.CompactTextString(m) } +func (*MongosConfigSet4_2) ProtoMessage() {} +func (*MongosConfigSet4_2) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6766506241cbac, []int{5} +} + +func (m *MongosConfigSet4_2) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongosConfigSet4_2.Unmarshal(m, b) +} +func (m *MongosConfigSet4_2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongosConfigSet4_2.Marshal(b, m, deterministic) +} +func (m *MongosConfigSet4_2) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongosConfigSet4_2.Merge(m, src) +} +func (m *MongosConfigSet4_2) XXX_Size() int { + return xxx_messageInfo_MongosConfigSet4_2.Size(m) +} +func (m *MongosConfigSet4_2) XXX_DiscardUnknown() { + xxx_messageInfo_MongosConfigSet4_2.DiscardUnknown(m) +} + +var xxx_messageInfo_MongosConfigSet4_2 proto.InternalMessageInfo + +func (m *MongosConfigSet4_2) GetEffectiveConfig() *MongosConfig4_2 { + if m != nil { + return m.EffectiveConfig + } + return nil +} + +func (m *MongosConfigSet4_2) GetUserConfig() *MongosConfig4_2 { + if m != nil { + return m.UserConfig + } + return nil +} + +func (m *MongosConfigSet4_2) GetDefaultConfig() *MongosConfig4_2 { + if m != nil { + return m.DefaultConfig + } + return nil +} + +func init() { + proto.RegisterEnum("yandex.cloud.mdb.mongodb.v1.config.MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor", MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor_name, MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor_value) + proto.RegisterEnum("yandex.cloud.mdb.mongodb.v1.config.MongodConfig4_2_OperationProfiling_Mode", MongodConfig4_2_OperationProfiling_Mode_name, MongodConfig4_2_OperationProfiling_Mode_value) + proto.RegisterEnum("yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig4_2_OperationProfiling_Mode", MongoCfgConfig4_2_OperationProfiling_Mode_name, MongoCfgConfig4_2_OperationProfiling_Mode_value) + proto.RegisterType((*MongodConfig4_2)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongodConfig4_2") + proto.RegisterType((*MongodConfig4_2_Storage)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongodConfig4_2.Storage") + proto.RegisterType((*MongodConfig4_2_Storage_WiredTiger)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongodConfig4_2.Storage.WiredTiger") + proto.RegisterType((*MongodConfig4_2_Storage_WiredTiger_EngineConfig)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongodConfig4_2.Storage.WiredTiger.EngineConfig") + proto.RegisterType((*MongodConfig4_2_Storage_WiredTiger_CollectionConfig)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongodConfig4_2.Storage.WiredTiger.CollectionConfig") + proto.RegisterType((*MongodConfig4_2_Storage_Journal)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongodConfig4_2.Storage.Journal") + proto.RegisterType((*MongodConfig4_2_OperationProfiling)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongodConfig4_2.OperationProfiling") + proto.RegisterType((*MongodConfig4_2_Network)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongodConfig4_2.Network") + proto.RegisterType((*MongoCfgConfig4_2)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig4_2") + proto.RegisterType((*MongoCfgConfig4_2_Storage)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig4_2.Storage") + proto.RegisterType((*MongoCfgConfig4_2_Storage_WiredTiger)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig4_2.Storage.WiredTiger") + proto.RegisterType((*MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig4_2.Storage.WiredTiger.EngineConfig") + proto.RegisterType((*MongoCfgConfig4_2_OperationProfiling)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig4_2.OperationProfiling") + proto.RegisterType((*MongoCfgConfig4_2_Network)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig4_2.Network") + proto.RegisterType((*MongosConfig4_2)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongosConfig4_2") + proto.RegisterType((*MongosConfig4_2_Network)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongosConfig4_2.Network") + proto.RegisterType((*MongodConfigSet4_2)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongodConfigSet4_2") + proto.RegisterType((*MongoCfgConfigSet4_2)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfigSet4_2") + proto.RegisterType((*MongosConfigSet4_2)(nil), "yandex.cloud.mdb.mongodb.v1.config.MongosConfigSet4_2") +} + +func init() { + proto.RegisterFile("yandex/cloud/mdb/mongodb/v1/config/mongodb4_2.proto", fileDescriptor_1b6766506241cbac) +} + +var fileDescriptor_1b6766506241cbac = []byte{ + // 990 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x97, 0x4b, 0x6f, 0xe3, 0x54, + 0x14, 0xc7, 0x71, 0x52, 0x9a, 0x72, 0xfa, 0x88, 0x7b, 0x19, 0x8d, 0x2a, 0xf3, 0x10, 0xca, 0x02, + 0xb1, 0xa9, 0xdd, 0xb4, 0x9d, 0x11, 0x52, 0x05, 0x62, 0x9a, 0x26, 0x34, 0xd0, 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, 0x93, 0x4f, 0x5b, 0x93, 0x6c, + 0x9b, 0xd8, 0x8d, 0xa7, 0x80, 0xf0, 0xfa, 0x8f, 0xed, 0x03, 0x6a, 0xd1, 0x96, 0x63, 0x8f, 0xbd, + 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xdd, 0x52, 0x42, 0xa4, 0xa1, 0x0f, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb4_2.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb4_2.pbext.go new file mode 100644 index 000000000..a1d682cb4 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config/mongodb4_2.pbext.go @@ -0,0 +1,139 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mongodb + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *MongodConfig4_2) SetStorage(v *MongodConfig4_2_Storage) { + m.Storage = v +} + +func (m *MongodConfig4_2) SetOperationProfiling(v *MongodConfig4_2_OperationProfiling) { + m.OperationProfiling = v +} + +func (m *MongodConfig4_2) SetNet(v *MongodConfig4_2_Network) { + m.Net = v +} + +func (m *MongodConfig4_2_Storage) SetWiredTiger(v *MongodConfig4_2_Storage_WiredTiger) { + m.WiredTiger = v +} + +func (m *MongodConfig4_2_Storage) SetJournal(v *MongodConfig4_2_Storage_Journal) { + m.Journal = v +} + +func (m *MongodConfig4_2_Storage_WiredTiger) SetEngineConfig(v *MongodConfig4_2_Storage_WiredTiger_EngineConfig) { + m.EngineConfig = v +} + +func (m *MongodConfig4_2_Storage_WiredTiger) SetCollectionConfig(v *MongodConfig4_2_Storage_WiredTiger_CollectionConfig) { + m.CollectionConfig = v +} + +func (m *MongodConfig4_2_Storage_WiredTiger_EngineConfig) SetCacheSizeGb(v *wrappers.DoubleValue) { + m.CacheSizeGb = v +} + +func (m *MongodConfig4_2_Storage_WiredTiger_CollectionConfig) SetBlockCompressor(v MongodConfig4_2_Storage_WiredTiger_CollectionConfig_Compressor) { + m.BlockCompressor = v +} + +func (m *MongodConfig4_2_Storage_Journal) SetCommitInterval(v *wrappers.Int64Value) { + m.CommitInterval = v +} + +func (m *MongodConfig4_2_OperationProfiling) SetMode(v MongodConfig4_2_OperationProfiling_Mode) { + m.Mode = v +} + +func (m *MongodConfig4_2_OperationProfiling) SetSlowOpThreshold(v *wrappers.Int64Value) { + m.SlowOpThreshold = v +} + +func (m *MongodConfig4_2_Network) SetMaxIncomingConnections(v *wrappers.Int64Value) { + m.MaxIncomingConnections = v +} + +func (m *MongoCfgConfig4_2) SetStorage(v *MongoCfgConfig4_2_Storage) { + m.Storage = v +} + +func (m *MongoCfgConfig4_2) SetOperationProfiling(v *MongoCfgConfig4_2_OperationProfiling) { + m.OperationProfiling = v +} + +func (m *MongoCfgConfig4_2) SetNet(v *MongoCfgConfig4_2_Network) { + m.Net = v +} + +func (m *MongoCfgConfig4_2_Storage) SetWiredTiger(v *MongoCfgConfig4_2_Storage_WiredTiger) { + m.WiredTiger = v +} + +func (m *MongoCfgConfig4_2_Storage_WiredTiger) SetEngineConfig(v *MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig) { + m.EngineConfig = v +} + +func (m *MongoCfgConfig4_2_Storage_WiredTiger_EngineConfig) SetCacheSizeGb(v *wrappers.DoubleValue) { + m.CacheSizeGb = v +} + +func (m *MongoCfgConfig4_2_OperationProfiling) SetMode(v MongoCfgConfig4_2_OperationProfiling_Mode) { + m.Mode = v +} + +func (m *MongoCfgConfig4_2_OperationProfiling) SetSlowOpThreshold(v *wrappers.Int64Value) { + m.SlowOpThreshold = v +} + +func (m *MongoCfgConfig4_2_Network) SetMaxIncomingConnections(v *wrappers.Int64Value) { + m.MaxIncomingConnections = v +} + +func (m *MongosConfig4_2) SetNet(v *MongosConfig4_2_Network) { + m.Net = v +} + +func (m *MongosConfig4_2_Network) SetMaxIncomingConnections(v *wrappers.Int64Value) { + m.MaxIncomingConnections = v +} + +func (m *MongodConfigSet4_2) SetEffectiveConfig(v *MongodConfig4_2) { + m.EffectiveConfig = v +} + +func (m *MongodConfigSet4_2) SetUserConfig(v *MongodConfig4_2) { + m.UserConfig = v +} + +func (m *MongodConfigSet4_2) SetDefaultConfig(v *MongodConfig4_2) { + m.DefaultConfig = v +} + +func (m *MongoCfgConfigSet4_2) SetEffectiveConfig(v *MongoCfgConfig4_2) { + m.EffectiveConfig = v +} + +func (m *MongoCfgConfigSet4_2) SetUserConfig(v *MongoCfgConfig4_2) { + m.UserConfig = v +} + +func (m *MongoCfgConfigSet4_2) SetDefaultConfig(v *MongoCfgConfig4_2) { + m.DefaultConfig = v +} + +func (m *MongosConfigSet4_2) SetEffectiveConfig(v *MongosConfig4_2) { + m.EffectiveConfig = v +} + +func (m *MongosConfigSet4_2) SetUserConfig(v *MongosConfig4_2) { + m.UserConfig = v +} + +func (m *MongosConfigSet4_2) SetDefaultConfig(v *MongosConfig4_2) { + m.DefaultConfig = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/database.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/database.pb.go index 4396190ea..b9bd4cdbe 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/database.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/database.pb.go @@ -122,7 +122,7 @@ func init() { } var fileDescriptor_258e27fd8d7bf873 = []byte{ - // 242 bytes of a gzipped FileDescriptorProto + // 252 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xaa, 0x4c, 0xcc, 0x4b, 0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0xcf, 0x4d, 0x49, 0xd2, 0xcf, 0xcd, 0xcf, 0x4b, 0xcf, 0x4f, 0x49, 0xd2, 0x2f, 0x33, 0xd4, 0x4f, 0x49, 0x2c, 0x49, 0x4c, 0x4a, 0x2c, 0x4e, @@ -134,9 +134,9 @@ var fileDescriptor_258e27fd8d7bf873 = []byte{ 0x96, 0xe1, 0x84, 0x8a, 0x78, 0xa6, 0x28, 0xb9, 0x73, 0xf1, 0xc0, 0xb4, 0x07, 0x17, 0xa4, 0x26, 0x0b, 0x99, 0x23, 0x1b, 0xe1, 0xa4, 0xfc, 0xe2, 0xb8, 0x21, 0xe3, 0xa7, 0xe3, 0x86, 0xc2, 0xd1, 0x89, 0xba, 0x55, 0x8e, 0xba, 0x51, 0x06, 0xba, 0x96, 0xf1, 0xba, 0xb1, 0xd5, 0x86, 0x3a, 0x66, - 0xc6, 0xb5, 0x5d, 0x27, 0x0c, 0x59, 0x6c, 0x6c, 0xcd, 0x8c, 0x21, 0xf6, 0x38, 0x79, 0x46, 0xb9, - 0xa7, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x43, 0xdc, 0xac, 0x0b, 0x71, - 0x73, 0x7a, 0xbe, 0x6e, 0x7a, 0x6a, 0x1e, 0xd8, 0xb9, 0xfa, 0x78, 0x42, 0xc5, 0x1a, 0xca, 0x4c, - 0x62, 0x03, 0x2b, 0x35, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xea, 0xaf, 0x3d, 0x16, 0x43, 0x01, - 0x00, 0x00, + 0xc6, 0xb5, 0x5d, 0x27, 0x0c, 0x59, 0x6c, 0x6c, 0xcd, 0x8c, 0x21, 0xf6, 0x38, 0x65, 0x71, 0xc9, + 0xa3, 0xf8, 0x22, 0xb1, 0x20, 0x13, 0xcd, 0x27, 0x51, 0xee, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, + 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x10, 0xb5, 0xba, 0x10, 0x4f, 0xa5, 0xe7, 0xeb, 0xa6, 0xa7, 0xe6, + 0x81, 0xfd, 0xa3, 0x8f, 0x27, 0xd8, 0xac, 0xa1, 0xcc, 0x24, 0x36, 0xb0, 0x52, 0x63, 0x40, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xc5, 0x18, 0x78, 0xf5, 0x64, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/database.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/database.pbext.go new file mode 100644 index 000000000..b38c33db3 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/database.pbext.go @@ -0,0 +1,15 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mongodb + +func (m *Database) SetName(v string) { + m.Name = v +} + +func (m *Database) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DatabaseSpec) SetName(v string) { + m.Name = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/database_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/database_service.pb.go index d19690c61..73437a84e 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/database_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/database_service.pb.go @@ -407,60 +407,60 @@ func init() { } var fileDescriptor_b50db49f4a5ed11a = []byte{ - // 697 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcf, 0x4f, 0x13, 0x4d, - 0x18, 0xce, 0x52, 0xbe, 0x86, 0x0e, 0xf0, 0x91, 0x4c, 0xbe, 0x92, 0xa6, 0xdf, 0xc7, 0x17, 0x5c, - 0x23, 0x62, 0x4d, 0x77, 0xba,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, 0xed, 0x4f, 0xfa, 0x61, 0x6b, 0xa5, 0x9a, - 0xfb, 0x47, 0x19, 0xf5, 0xd4, 0xde, 0x18, 0x6a, 0xed, 0x04, 0x22, 0x6e, 0xaa, 0x67, 0x11, 0x71, - 0x5b, 0xc9, 0xe0, 0xaf, 0x0a, 0x8a, 0x4b, 0x53, 0xfe, 0x46, 0x47, 0xd7, 0x26, 0xea, 0x47, 0xc7, - 0xcb, 0xfd, 0xa3, 0x0c, 0x39, 0xd5, 0xf9, 0x49, 0x39, 0xf6, 0xe4, 0x44, 0x31, 0xea, 0x4f, 0xb5, - 0x25, 0xc7, 0x13, 0x5b, 0xd2, 0x56, 0x99, 0x8b, 0xb0, 0x55, 0x61, 0x65, 0x7d, 0xd9, 0xb2, 0xc5, - 0xb3, 0xba, 0xa1, 0x55, 0x98, 0x43, 0x24, 0xdd, 0xac, 0x1c, 0x6f, 0x16, 0xcb, 0x5a, 0xe0, 0x06, - 0xa5, 0x49, 0x8f, 0xb9, 0x37, 0xd7, 0x5c, 0x1a, 0xf1, 0x00, 0x3a, 0xf3, 0x2b, 0x00, 0x00, 0xff, - 0xff, 0xbd, 0x5a, 0x6d, 0x5f, 0xfd, 0x07, 0x00, 0x00, + // 701 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4f, 0x4f, 0x13, 0x41, + 0x1c, 0xcd, 0x52, 0x6c, 0xe8, 0x00, 0x92, 0x4c, 0x2c, 0x69, 0xaa, 0x28, 0xae, 0x11, 0xb1, 0xa6, + 0x3b, 0xdd, 0x12, 0x8c, 0x0a, 0x1c, 0x6c, 0x21, 0xc4, 0xf8, 0x37, 0x85, 0x13, 0x62, 0x9a, 0x69, + 0xf7, 0xe7, 0xba, 0xda, 0xdd, 0x59, 0x3b, 0xd3, 0x86, 0x3f, 0xc1, 0x83, 0x31, 0x26, 0x72, 0x35, + 0x7a, 0xf0, 0x23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, 0xe1, 0xa3, 0x63, 0x13, 0xf5, 0xe2, 0xe3, 0xcd, 0xce, 0x7e, 0x8a, 0x1c, + 0x99, 0xfc, 0xb8, 0xfc, 0xf6, 0xe4, 0x8f, 0x52, 0xaa, 0x3d, 0xd7, 0x16, 0x6c, 0x57, 0xac, 0xcb, + 0x58, 0xa5, 0x4e, 0x23, 0x56, 0xb9, 0x97, 0xe8, 0x52, 0x48, 0x23, 0x75, 0xad, 0x03, 0xde, 0x56, + 0x16, 0x4d, 0x4b, 0xbc, 0xa8, 0x95, 0xb4, 0x32, 0xb3, 0x89, 0xc4, 0xa6, 0xe5, 0xff, 0x67, 0xb2, + 0xb4, 0x09, 0x8e, 0xaf, 0x8d, 0x74, 0xf9, 0x18, 0x67, 0x1a, 0xc3, 0x52, 0xd4, 0x87, 0x4e, 0xfd, + 0x0d, 0x00, 0x00, 0xff, 0xff, 0x21, 0x35, 0x04, 0xb8, 0x1e, 0x08, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // DatabaseServiceClient is the client API for DatabaseService service. // @@ -479,10 +479,10 @@ type DatabaseServiceClient interface { } type databaseServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewDatabaseServiceClient(cc *grpc.ClientConn) DatabaseServiceClient { +func NewDatabaseServiceClient(cc grpc.ClientConnInterface) DatabaseServiceClient { return &databaseServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/database_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/database_service.pbext.go new file mode 100644 index 000000000..f6b018d02 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/database_service.pbext.go @@ -0,0 +1,63 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mongodb + +func (m *GetDatabaseRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetDatabaseRequest) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *ListDatabasesRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListDatabasesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListDatabasesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListDatabasesResponse) SetDatabases(v []*Database) { + m.Databases = v +} + +func (m *ListDatabasesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateDatabaseRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateDatabaseRequest) SetDatabaseSpec(v *DatabaseSpec) { + m.DatabaseSpec = v +} + +func (m *CreateDatabaseMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateDatabaseMetadata) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *DeleteDatabaseRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteDatabaseRequest) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *DeleteDatabaseMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteDatabaseMetadata) SetDatabaseName(v string) { + m.DatabaseName = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/resource_preset.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/resource_preset.pb.go index 2bcf70446..16e19ca57 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/resource_preset.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/resource_preset.pb.go @@ -97,19 +97,19 @@ func init() { } var fileDescriptor_07c48b84d9988201 = []byte{ - // 211 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b,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, 0xae, 0x2b, 0x2f, 0x0c, 0x7c, 0xa9, - 0xa7, 0xde, 0xe4, 0xe8, 0xf3, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x03, 0xbd, 0x87, 0x16, 0x0e, - 0x01, 0x00, 0x00, + // 222 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xb1, 0x4b, 0xc4, 0x30, + 0x14, 0xc6, 0x69, 0xab, 0xa7, 0x97, 0xe1, 0x86, 0x20, 0x52, 0x71, 0xb0, 0x38, 0x75, 0xb9, 0x84, + 0xe2, 0xe8, 0xe6, 0x22, 0x6e, 0xd2, 0xd1, 0xe5, 0xb8, 0xe4, 0x3d, 0x62, 0xc4, 0xe4, 0x95, 0xa4, + 0x3d, 0x3c, 0xff, 0x7a, 0x31, 0xc9, 0xa2, 0xc3, 0x6d, 0xf9, 0x85, 0xef, 0x07, 0xdf, 0xf7, 0xd8, + 0x70, 0xdc, 0x7b, 0xc0, 0x2f, 0xa9, 0x3f, 0x69, 0x01, 0xe9, 0x40, 0x49, 0x47, 0xde, 0x10, 0x28, + 0x79, 0x18, 0x64, 0xc0, 0x48, 0x4b, 0xd0, 0xb8, 0x9b, 0x02, 0x46, 0x9c, 0xc5, 0x14, 0x68, 0x26, + 0x7e, 0x9b, 0x15, 0x91, 0x14, 0xe1, 0x40, 0x89, 0xa2, 0x88, 0xc3, 0x70, 0x6f, 0xd9, 0x66, 0x2c, + 0xd6, 0x6b, 0x92, 0xf8, 0x86, 0xd5, 0x16, 0xda, 0xaa, 0xab, 0xfa, 0xf5, 0x58, 0x5b, 0xe0, 0x37, + 0xec, 0xf2, 0x9b, 0x3c, 0xee, 0x2c, 0xc4, 0xb6, 0xee, 0x9a, 0x7e, 0x3d, 0x5e, 0xfc, 0xf2, 0x0b, + 0x44, 0x7e, 0xc5, 0xce, 0x35, 0x05, 0x8c, 0x6d, 0xd3, 0x55, 0x7d, 0x33, 0x66, 0xe0, 0xd7, 0x6c, + 0xe5, 0xd0, 0x51, 0x38, 0xb6, 0x67, 0xe9, 0xbb, 0xd0, 0xd3, 0x07, 0xbb, 0xfb, 0xd3, 0x64, 0x3f, + 0xd9, 0x7f, 0x6d, 0xde, 0x9e, 0x8d, 0x9d, 0xdf, 0x17, 0x25, 0x34, 0x39, 0x99, 0xb3, 0xdb, 0x3c, + 0xd4, 0xd0, 0xd6, 0xa0, 0x4f, 0x7b, 0xe4, 0x89, 0x0b, 0x3c, 0x96, 0xa7, 0x5a, 0xa5, 0xe8, 0xc3, + 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x76, 0x1c, 0x05, 0xd6, 0x2f, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/resource_preset.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/resource_preset.pbext.go new file mode 100644 index 000000000..eed7535fb --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/resource_preset.pbext.go @@ -0,0 +1,19 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mongodb + +func (m *ResourcePreset) SetId(v string) { + m.Id = v +} + +func (m *ResourcePreset) SetZoneIds(v []string) { + m.ZoneIds = v +} + +func (m *ResourcePreset) SetCores(v int64) { + m.Cores = v +} + +func (m *ResourcePreset) SetMemory(v int64) { + m.Memory = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/resource_preset_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/resource_preset_service.pb.go index 17d526e7a..9e298f125 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/resource_preset_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/resource_preset_service.pb.go @@ -182,45 +182,46 @@ func init() { } var fileDescriptor_9f044bfca767b977 = []byte{ - // 457 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x4f, 0x6b, 0x13, 0x41, - 0x1c, 0x65, 0x92, 0x5a, 0xcc, 0x88, 0xb4, 0x0c, 0x08, 0xcb, 0x56, 0x21, 0xac, 0xa8, 0x81, 0x92, - 0x99, 0x6c, 0x44, 0xac, 0xff, 0x40, 0x72, 0x09, 0x05, 0x91, 0xb2, 0x15, 0x0f, 0x5e, 0xc2, 0x6c, - 0xe6, 0xc7, 0x38, 0x98, 0x9d, 0x59, 0x77, 0x26, 0xa1, 0x56, 0xbc, 0x78, 0xf4, 0xea, 0xd9, 0xab, - 0x17, 0x3f, 0x48, 0xbd, 0xfb, 0x15, 0x3c, 0x78, 0xf2, 0x03, 0x78, 0x92, 0x9d, 0xdd, 0x82, 0x89, - 0xed, 0xd2, 0xdc, 0x96, 0x7d, 0xf3, 0x7e, 0xef, 0xbd, 0x79, 0xbf, 0xc1, 0x0f, 0xde, 0x71, 0x2d, - 0xe0, 0x88, 0x4d, 0x67, 0x66, 0x2e, 0x58, 0x26, 0x52, 0x96, 0x19, 0x2d, 0x8d, 0x48, 0xd9, 0x22, - 0x66, 0x05, 0x58, 0x33, 0x2f, 0xa6, 0x30, 0xc9, 0x0b, 0xb0, 0xe0, 0x26, 0x16, 0x8a, 0x85, 0x9a, - 0x02, 0xcd, 0x0b, 0xe3, 0x0c, 0xd9, 0xa9, 0xa8, 0xd4, 0x53, 0x69, 0x26, 0x52, 0x5a, 0x53, 0xe9, - 0x22, 0x0e, 0xaf, 0x4b, 0x63, 0xe4, 0x0c, 0x18, 0xcf, 0x15, 0xe3, 0x5a, 0x1b, 0xc7, 0x9d, 0x32, - 0xda, 0x56, 0xd4, 0xf0, 0xc6, 0x92, 0xea, 0x82, 0xcf, 0x94, 0xf0, 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x13, 0xae, 0x63, 0x3f, 0x7a, 0xfa, 0xf1, 0xc7, 0xcf, 0xcf, 0xad, 0x87, 0x64, 0x8f, 0x65, - 0x5c, 0x73, 0x09, 0xa2, 0x7f, 0xc6, 0x66, 0xd4, 0xd1, 0xd8, 0xfb, 0xff, 0x5b, 0xff, 0x40, 0xbe, - 0x22, 0xbc, 0x51, 0xde, 0x33, 0xb9, 0xdf, 0xa8, 0x7b, 0x7e, 0xf9, 0xe1, 0xde, 0xfa, 0xc4, 0xaa, - 0xc3, 0x68, 0xd7, 0xbb, 0xbf, 0x45, 0x6e, 0x5e, 0xc0, 0xfd, 0x68, 0xff, 0xd5, 0x58, 0x2a, 0xf7, - 0x7a, 0x9e, 0xd2, 0xa9, 0xc9, 0x58, 0x25, 0xd9, 0xaf, 0x5e, 0x84, 0x34, 0x7d, 0x09, 0xda, 0x2f, - 0x3e, 0x6b, 0x78, 0x2a, 0x8f, 0xea, 0xcf, 0x74, 0xd3, 0x1f, 0xbd, 0xfb, 0x37, 0x00, 0x00, 0xff, - 0xff, 0xcf, 0x5c, 0x51, 0x57, 0xed, 0x03, 0x00, 0x00, + // 465 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x4f, 0x8b, 0xd3, 0x40, + 0x1c, 0x25, 0xed, 0xba, 0xd8, 0x11, 0xd9, 0x65, 0x40, 0x08, 0x59, 0xc5, 0x12, 0x51, 0x0b, 0x4b, + 0x67, 0x9a, 0x8a, 0xb8, 0xfe, 0x03, 0xe9, 0xa5, 0x08, 0x22, 0x4b, 0x56, 0x3c, 0x78, 0x29, 0x93, + 0xce, 0x8f, 0x71, 0xb4, 0x99, 0x89, 0x99, 0x69, 0x59, 0x57, 0xbc, 0x78, 0xf4, 0xea, 0xd9, 0xab, + 0x17, 0x3f, 0xc8, 0x7a, 0xf7, 0x2b, 0x78, 0xf0, 0xe4, 0x07, 0xf0, 0x24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c, 0xcb, 0xa0, 0x2d, 0x6f, 0xe9, 0x7e, 0xf5, 0x99, 0x6c, + 0xba, 0xd1, 0x5b, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x99, 0x69, 0x68, 0x61, 0x0e, 0x04, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // ResourcePresetServiceClient is the client API for ResourcePresetService service. // @@ -235,10 +236,10 @@ type ResourcePresetServiceClient interface { } type resourcePresetServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewResourcePresetServiceClient(cc *grpc.ClientConn) ResourcePresetServiceClient { +func NewResourcePresetServiceClient(cc grpc.ClientConnInterface) ResourcePresetServiceClient { return &resourcePresetServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/resource_preset_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/resource_preset_service.pbext.go new file mode 100644 index 000000000..b2bc62e6b --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/resource_preset_service.pbext.go @@ -0,0 +1,23 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mongodb + +func (m *GetResourcePresetRequest) SetResourcePresetId(v string) { + m.ResourcePresetId = v +} + +func (m *ListResourcePresetsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListResourcePresetsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListResourcePresetsResponse) SetResourcePresets(v []*ResourcePreset) { + m.ResourcePresets = v +} + +func (m *ListResourcePresetsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/user.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/user.pb.go index de11b278a..ff648dd58 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/user.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/user.pb.go @@ -199,27 +199,28 @@ func init() { } var fileDescriptor_4fde2355fb6bae94 = []byte{ - // 345 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xab, 0x4c, 0xcc, 0x4b, - 0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0xcf, 0x4d, 0x49, 0xd2, 0xcf, 0xcd, 0xcf, - 0x4b, 0xcf, 0x4f, 0x49, 0xd2, 0x2f, 0x33, 0xd4, 0x2f, 0x2d, 0x4e, 0x2d, 0xd2, 0x2b, 0x28, 0xca, - 0x2f, 0xc9, 0x17, 0x92, 0x86, 0xa8, 0xd3, 0x03, 0xab, 0xd3, 0xcb, 0x4d, 0x49, 0xd2, 0x83, 0xaa, - 0xd3, 0x2b, 0x33, 0x94, 0x92, 0x45, 0x31, 0xa4, 0x2c, 0x31, 0x27, 0x33, 0x25, 0xb1, 0x24, 0x33, - 0x3f, 0x0f, 0xa2, 0x57, 0xa9, 0x85, 0x91, 0x8b, 0x25, 0xb4, 0x38, 0xb5, 0x48, 0x48, 0x88, 0x8b, - 0x25, 0x2f, 0x31, 0x37, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, 0x16, 0x92, 0xe5, - 0xe2, 0x4a, 0xce, 0x29, 0x2d, 0x2e, 0x49, 0x2d, 0x8a, 0xcf, 0x4c, 0x91, 0x60, 0x02, 0xcb, 0x70, - 0x42, 0x45, 0x3c, 0x53, 0x84, 0x3c, 0xb9, 0xb8, 0x0b, 0x52, 0x8b, 0x72, 0x33, 0x8b, 0x8b, 0x33, - 0xf3, 0xf3, 0x8a, 0x25, 0x98, 0x15, 0x98, 0x35, 0xb8, 0x8d, 0xd4, 0xf5, 0xf0, 0xb8, 0x46, 0x2f, - 0x00, 0xae, 0x3e, 0x08, 0x59, 0xaf, 0x92, 0x3b, 0x17, 0x17, 0x42, 0x4a, 0x48, 0x99, 0x8b, 0x37, - 0x25, 0xb1, 0x24, 0x31, 0x29, 0xb1, 0x38, 0x35, 0x1e, 0xc9, 0x51, 0x3c, 0x30, 0x41, 0x3f, 0x90, - 0xe3, 0x44, 0xb8, 0x58, 0x8b, 0xf2, 0x73, 0x52, 0x8b, 0x25, 0x98, 0x14, 0x98, 0x35, 0x38, 0x83, - 0x20, 0x1c, 0xa5, 0xcd, 0x8c, 0x5c, 0x1c, 0x20, 0xff, 0x04, 0x17, 0xa4, 0x26, 0x0b, 0x19, 0x22, - 0xfb, 0xc9, 0x49, 0xf6, 0xc5, 0x71, 0x43, 0xc6, 0x4f, 0xc7, 0x0d, 0x79, 0xa3, 0x13, 0x75, 0xab, - 0x1c, 0x75, 0xa3, 0x0c, 0x74, 0x2d, 0xe3, 0x63, 0xb5, 0xba, 0x4e, 0x18, 0xb2, 0xd8, 0xd8, 0x9a, - 0x19, 0x43, 0xbd, 0xac, 0xc9, 0xc5, 0x51, 0x90, 0x58, 0x5c, 0x5c, 0x9e, 0x5f, 0x04, 0xf5, 0xb0, - 0x13, 0x2f, 0x48, 0x5b, 0xd7, 0x09, 0x43, 0x56, 0x0b, 0x5d, 0x43, 0x23, 0x8b, 0x20, 0xb8, 0x34, - 0x15, 0xbd, 0xef, 0xe4, 0x19, 0xe5, 0x9e, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, - 0xab, 0x0f, 0x31, 0x41, 0x17, 0x12, 0x63, 0xe9, 0xf9, 0xba, 0xe9, 0xa9, 0x79, 0xe0, 0xc8, 0xd2, - 0xc7, 0x93, 0x1e, 0xac, 0xa1, 0xcc, 0x24, 0x36, 0xb0, 0x52, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xb7, 0x04, 0x46, 0xbf, 0x3d, 0x02, 0x00, 0x00, + // 354 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xcd, 0x4a, 0xfb, 0x40, + 0x14, 0xc5, 0x49, 0x3f, 0xfe, 0xb4, 0xd3, 0x7f, 0x37, 0x83, 0x8b, 0xa0, 0x14, 0x4b, 0x05, 0xad, + 0x42, 0x66, 0x9c, 0x16, 0xa4, 0xa2, 0x2e, 0xec, 0xa6, 0x74, 0x23, 0x12, 0x71, 0x53, 0x91, 0x32, + 0xc9, 0x0c, 0x71, 0x24, 0xc9, 0x84, 0x99, 0xa4, 0x7e, 0xac, 0x5d, 0xf5, 0x75, 0x7c, 0x88, 0xf6, + 0x51, 0x5c, 0xfb, 0x04, 0xd2, 0x24, 0xd6, 0xd6, 0x45, 0x57, 0xee, 0x6e, 0xee, 0xf9, 0x9d, 0x70, + 0x0e, 0x77, 0xc0, 0xfe, 0x0b, 0x0d, 0x19, 0x7f, 0xc6, 0xae, 0x2f, 0x13, 0x86, 0x03, 0xe6, 0xe0, + 0x40, 0x86, 0x9e, 0x64, 0x0e, 0x9e, 0x10, 0x9c, 0x68, 0xae, 0x50, 0xa4, 0x64, 0x2c, 0xe1, 0x4e, + 0xc6, 0xa1, 0x94, 0x43, 0x01, 0x73, 0x50, 0xce, 0xa1, 0x09, 0xd9, 0x6e, 0xac, 0xfd, 0x64, 0x42, + 0x7d, 0xc1, 0x68, 0x2c, 0x64, 0x98, 0x79, 0x5b, 0x6f, 0x06, 0x28, 0xdd, 0x6a, 0xae, 0x20, 0x04, + 0xa5, 0x90, 0x06, 0xdc, 0x34, 0x9a, 0x46, 0xbb, 0x6a, 0xa7, 0x33, 0x6c, 0x00, 0xe0, 0x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 0xee, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7d, 0x62, 0x62, 0xd0, 0x5e, 0x02, + 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/user.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/user.pbext.go new file mode 100644 index 000000000..4aea519fa --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/user.pbext.go @@ -0,0 +1,35 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mongodb + +func (m *User) SetName(v string) { + m.Name = v +} + +func (m *User) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *User) SetPermissions(v []*Permission) { + m.Permissions = v +} + +func (m *Permission) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *Permission) SetRoles(v []string) { + m.Roles = v +} + +func (m *UserSpec) SetName(v string) { + m.Name = v +} + +func (m *UserSpec) SetPassword(v string) { + m.Password = v +} + +func (m *UserSpec) SetPermissions(v []*Permission) { + m.Permissions = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/user_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/user_service.pb.go index 8d816c014..082644aea 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/user_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/user_service.pb.go @@ -757,78 +757,79 @@ func init() { } var fileDescriptor_4731409bfcdabc65 = []byte{ - // 985 bytes of a gzipped FileDescriptorProto + // 993 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0x4d, 0x6f, 0x1b, 0x45, - 0x18, 0xd6, 0x24, 0x8e, 0x15, 0xbf, 0x6e,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, 0xe3, 0x1f, 0x07, 0xeb, 0x5c, 0xe2, 0xff, - 0x05, 0xcc, 0xbe, 0x49, 0x5b, 0xf4, 0x62, 0xc2, 0xcf, 0xf5, 0xc4, 0xde, 0xcf, 0x45, 0xcf, 0x6f, - 0x08, 0x8a, 0x9b, 0x01, 0x71, 0x45, 0x83, 0x26, 0xc2, 0xf8, 0xac, 0x0b, 0x6b, 0x1b, 0x20, 0x4e, - 0x5c, 0x54, 0x57, 0xa3, 0xe6, 0xbc, 0x96, 0xe1, 0x5e, 0x8c, 0xc4, 0x03, 0xca, 0x47, 0x30, 0x37, - 0x40, 0xd5, 0xb9, 0x44, 0xec, 0x67, 0x04, 0x73, 0x06, 0xed, 0x78, 0x7b, 0xf4, 0x82, 0x43, 0xb6, - 0x01, 0x33, 0x5c, 0x4c, 0x83, 0x30, 0x2a, 0xef, 0xcb, 0x31, 0xfc, 0x7c, 0x74, 0xff, 0x72, 0xe2, - 0x7e, 0x39, 0xf1, 0xc0, 0xa5, 0xd3, 0x4b, 0x42, 0xcd, 0x2e, 0x5c, 0x1b, 0x24, 0xe6, 0x3c, 0x22, + 0x18, 0xd6, 0x24, 0x8e, 0x15, 0xbf, 0x6e, 0xda, 0x66, 0x24, 0x24, 0xcb, 0x69, 0x20, 0x2c, 0xb4, + 0x8d, 0x1c, 0x79, 0xd7, 0xeb, 0x02, 0x09, 0x49, 0x23, 0x81, 0x03, 0x44, 0x15, 0x0d, 0x84, 0x2d, + 0x95, 0x20, 0x08, 0x59, 0x63, 0xef, 0x74, 0x59, 0xe2, 0xfd, 0x60, 0x67, 0x6d, 0x9a, 0x94, 0x08, + 0x09, 0x71, 0xea, 0x11, 0x6e, 0x1c, 0xf8, 0x03, 0xdc, 0x22, 0xf1, 0x03, 0x38, 0xa5, 0x12, 0x07, + 0xa4, 0xc0, 0x4f, 0xe0, 0xc0, 0x81, 0x03, 0xe2, 0x08, 0x17, 0x34, 0x33, 0x9b, 0xec, 0xfa, 0x83, + 0xb5, 0x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ed, 0x86, 0xda, 0xf4, 0x1c, 0x4d, 0x62, 0xcb, 0xf2, + 0x8f, 0x8d, 0xe5, 0x95, 0x2d, 0xea, 0x8a, 0xaa, 0xd3, 0x52, 0xfe, 0x19, 0xad, 0x45, 0xc7, 0x46, + 0x56, 0x40, 0x6f, 0xfc, 0x17, 0x00, 0x00, 0xff, 0xff, 0xe3, 0x0e, 0x4f, 0xc2, 0x1b, 0x0e, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // UserServiceClient is the client API for UserService service. // @@ -853,10 +854,10 @@ type UserServiceClient interface { } type userServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient { +func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient { return &userServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/user_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/user_service.pbext.go new file mode 100644 index 000000000..e27f87bb7 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/user_service.pbext.go @@ -0,0 +1,135 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mongodb + +import ( + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetUserRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetUserRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *ListUsersRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListUsersRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListUsersRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListUsersResponse) SetUsers(v []*User) { + m.Users = v +} + +func (m *ListUsersResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateUserRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateUserRequest) SetUserSpec(v *UserSpec) { + m.UserSpec = v +} + +func (m *CreateUserMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateUserMetadata) SetUserName(v string) { + m.UserName = v +} + +func (m *UpdateUserRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateUserRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *UpdateUserRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateUserRequest) SetPassword(v string) { + m.Password = v +} + +func (m *UpdateUserRequest) SetPermissions(v []*Permission) { + m.Permissions = v +} + +func (m *UpdateUserMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateUserMetadata) SetUserName(v string) { + m.UserName = v +} + +func (m *DeleteUserRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteUserRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *DeleteUserMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteUserMetadata) SetUserName(v string) { + m.UserName = v +} + +func (m *GrantUserPermissionRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GrantUserPermissionRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *GrantUserPermissionRequest) SetPermission(v *Permission) { + m.Permission = v +} + +func (m *GrantUserPermissionMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GrantUserPermissionMetadata) SetUserName(v string) { + m.UserName = v +} + +func (m *RevokeUserPermissionRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RevokeUserPermissionRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *RevokeUserPermissionRequest) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *RevokeUserPermissionMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RevokeUserPermissionMetadata) SetUserName(v string) { + m.UserName = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/backup.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/backup.pb.go index 4c4191842..8e25fc586 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/backup.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/backup.pb.go @@ -108,23 +108,24 @@ func init() { } var fileDescriptor_a9951bfdbe6ddc67 = []byte{ - // 286 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xbf, 0x4e, 0xc3, 0x30, - 0x10, 0x87, 0x95, 0x50, 0x2a, 0x62, 0x06, 0x44, 0xc4, 0x10, 0x82, 0x10, 0x15, 0x03, 0xaa, 0x90, - 0x6a, 0x2b, 0x30, 0x21, 0xa6, 0xa6, 0x62, 0x60, 0x8d, 0x98, 0x58, 0x22, 0xff, 0x6b, 0xb0, 0xb0, - 0xe3, 0x92, 0x9c, 0x23, 0xfa, 0x84, 0x3c, 0x05, 0x3b, 0x8f, 0x81, 0xb0, 0xd3, 0x81, 0x01, 0xb1, - 0xd9, 0x77, 0xdf, 0xfd, 0x3e, 0xe9, 0x0e, 0x5d, 0x6d, 0x69, 0x2b, 0xe4, 0x3b, 0xe1, 0xda, 0x3a, - 0x41, 0x8c, 0x60, 0xc4, 0x6c, 0xfb, 0x37, 0x4d, 0x86, 0x82, 0x30, 0xca, 0x5f, 0xdd, 0x06, 0x6f, - 0x3a, 0x0b, 0x36, 0x3d, 0x0d, 0x1c, 0xf6, 0x1c, 0x36, 0x82, 0x61, 0xcf, 0xe1, 0xa1, 0xc8, 0xcf, - 0x7f, 0x45, 0x0c, 0x54, 0x2b, 0x41, 0x41, 0xd9, 0x36, 0x4c, 0xe6, 0x17, 0x8d, 0xb5, 0x8d, 0x96, - 0xc4, 0xff, 0x98, 0x5b, 0x13, 0x50, 0x46, 0xf6, 0x40, 0xcd, 0x18, 0x7d, 0xf9, 0x19, 0xa1, 0x69, - 0xe9, 0x5d, 0xe9, 0x09, 0x8a, 0x95, 0xc8, 0xa2, 0x59, 0x34, 0x4f, 0xca, 0xc9, 0xd7, 0x47, 0x11, - 0x55, 0xb1, 0x12, 0xe9, 0x19, 0x4a, 0xd6, 0x56, 0x0b, 0xd9, 0xd5, 0x4a, 0x64, 0xf1, 0x4f, 0xb3, - 0x3a, 0x08, 0x85, 0x47, 0x91, 0xde, 0x21, 0xc4, 0x3b, 0x49, 0x41, 0x8a, 0x9a, 0x42, 0xb6, 0x37, - 0x8b, 0xe6, 0x87, 0x37, 0x39, 0x0e, 0x4e, 0xbc, 0x73, 0xe2, 0xa7, 0x9d, 0xb3, 0x4a, 0x46, 0x7a, - 0x09, 0xe9, 0x35, 0x3a, 0xee, 0xad, 0xeb, 0xb8, 0xac, 0xb9, 0x76, 0x3d, 0x84, 0xfc, 0x89, 0xcf, - 0x3f, 0x0a, 0x8d, 0x55, 0xa8, 0x07, 0x4d, 0x0f, 0xb4, 0x1b, 0x35, 0xfb, 0xff, 0x6b, 0x46, 0x7a, - 0x09, 0xe5, 0xc3, 0xf3, 0xaa, 0x51, 0xf0, 0xe2, 0x18, 0xe6, 0xd6, 0x90, 0xb0, 0xac, 0x45, 0x58, - 0x56, 0x63, 0x17, 0x8d, 0x6c, 0xfd, 0x38, 0xf9, 0xf3, 0x10, 0xf7, 0xfe, 0xc1, 0xa6, 0x1e, 0xbb, - 0xfd, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x78, 0xbb, 0x89, 0x97, 0xb2, 0x01, 0x00, 0x00, + // 294 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xb1, 0x4e, 0xeb, 0x30, + 0x14, 0x86, 0x95, 0xde, 0xde, 0x8a, 0x9a, 0x01, 0x11, 0x31, 0x84, 0xa0, 0x8a, 0x8a, 0x01, 0x55, + 0x48, 0xb5, 0x15, 0x98, 0x10, 0x53, 0xd3, 0x89, 0x35, 0x62, 0x62, 0x89, 0x6c, 0x1f, 0x37, 0x58, + 0xd8, 0x71, 0x48, 0xec, 0x88, 0x3e, 0x21, 0x4f, 0xc1, 0xce, 0x63, 0x20, 0xec, 0x74, 0xc8, 0x80, + 0xd8, 0xec, 0x73, 0x3e, 0xff, 0x9f, 0xf4, 0x1b, 0x5d, 0xef, 0x69, 0x0d, 0xe2, 0x9d, 0x70, 0x65, + 0x1c, 0x10, 0x0d, 0x8c, 0xe8, 0x7d, 0xf7, 0xa6, 0x48, 0x9f, 0x11, 0x46, 0xf9, 0xab, 0x6b, 0x70, + 0xd3, 0x1a, 0x6b, 0xe2, 0xf3, 0xc0, 0x61, 0xcf, 0x61, 0x0d, 0x0c, 0x7b, 0x0e, 0xf7, 0x59, 0xba, + 0x18, 0x45, 0xf4, 0x54, 0x49, 0xa0, 0x56, 0x9a, 0x3a, 0xbc, 0x4c, 0x2f, 0x2b, 0x63, 0x2a, 0x25, + 0x88, 0xbf, 0x31, 0xb7, 0x23, 0x56, 0x6a, 0xd1, 0x59, 0xaa, 0x87, 0xe8, 0xab, 0xcf, 0x08, 0xcd, + 0x72, 0xef, 0x8a, 0xcf, 0xd0, 0x44, 0x42, 0x12, 0x2d, 0xa3, 0xd5, 0x3c, 0x9f, 0x7e, 0x7d, 0x64, + 0x51, 0x31, 0x91, 0x10, 0x5f, 0xa0, 0xf9, 0xce, 0x28, 0x10, 0x6d, 0x29, 0x21, 0x99, 0xfc, 0x2c, + 0x8b, 0xa3, 0x30, 0x78, 0x84, 0xf8, 0x1e, 0x21, 0xde, 0x0a, 0x6a, 0x05, 0x94, 0xd4, 0x26, 0xff, + 0x96, 0xd1, 0xea, 0xf8, 0x36, 0xc5, 0xc1, 0x89, 0x0f, 0x4e, 0xfc, 0x74, 0x70, 0x16, 0xf3, 0x81, + 0xde, 0xd8, 0xf8, 0x06, 0x9d, 0x76, 0xc6, 0xb5, 0x5c, 0x94, 0x5c, 0xb9, 0xce, 0x86, 0xfc, 0xa9, + 0xcf, 0x3f, 0x09, 0x8b, 0x6d, 0x98, 0x07, 0x4d, 0x67, 0x69, 0x3b, 0x68, 0xfe, 0xff, 0xad, 0x19, + 0xe8, 0x8d, 0xcd, 0x01, 0x2d, 0x46, 0xe5, 0xd1, 0x46, 0x8e, 0x0a, 0x7c, 0xde, 0x56, 0xd2, 0xbe, + 0x38, 0x86, 0xb9, 0xd1, 0x24, 0x90, 0xeb, 0xd0, 0x65, 0x65, 0xd6, 0x95, 0xa8, 0x7d, 0x3a, 0xf9, + 0xf5, 0x9f, 0x1e, 0xfc, 0x81, 0xcd, 0x3c, 0x76, 0xf7, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x8e, 0xfb, + 0xfd, 0x7a, 0xd1, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/backup.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/backup.pbext.go new file mode 100644 index 000000000..0dbc65845 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/backup.pbext.go @@ -0,0 +1,27 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mysql + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Backup) SetId(v string) { + m.Id = v +} + +func (m *Backup) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Backup) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Backup) SetSourceClusterId(v string) { + m.SourceClusterId = v +} + +func (m *Backup) SetStartedAt(v *timestamp.Timestamp) { + m.StartedAt = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/backup_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/backup_service.pb.go index 5a338cd7f..4c556cc86 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/backup_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/backup_service.pb.go @@ -192,45 +192,46 @@ func init() { } var fileDescriptor_db0cba3bba75d8e1 = []byte{ - // 462 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x41, 0x6b, 0x13, 0x41, - 0x18, 0x86, 0x99, 0x24, 0xd6, 0xec, 0x68, 0x51, 0xc6, 0x4b, 0x1a, 0x15, 0x92, 0x05, 0x6d, 0x44, - 0x76, 0x26, 0x5b, 0xe9, 0xa9, 0xed, 0x25, 0x22, 0xa5, 0xe0, 0x41, 0xb6, 0x9e, 0xbc, 0x84, 0xd9, - 0xcc, 0xe7, 0x3a, 0x74, 0x77, 0x66, 0x9b, 0x99, 0x84, 0xb6, 0xe2, 0x45, 0x14, 0xa4, 0x47, 0xfd, - 0x05, 0xfe, 0x9a, 0xf6, 0xee, 0x5f, 0xf0, 0xe0, 0x6f, 0xf0, 0x24, 0x3b, 0x93, 0xa8, 0x8d, 0xa4, - 0xf5, 0xb6, 0xec, 0xf7, 0xbe, 0xef, 0x3c, 0x7c, 0xef, 0x87, 0xe9, 0x31, 0x57, 0x02, 0x8e, 0xd8, - 0x28, 0xd7, 0x13, 0xc1, 0x0a, 0x91, 0xb2, 0xe2, 0xd8, 0x1c, 0xe6, 0x6c, 0x1a, 0xb3, 0x94, 0x8f, - 0x0e, 0x26, 0xe5, 0xd0, 0xc0, 0x78, 0x2a, 0x47, 0x40, 0xcb, 0xb1, 0xb6, 0x9a, 0xac, 0x79, 0x3d, - 0x75, 0x7a, 0x5a, 0x88, 0x94, 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 0xd1, 0xa5, 0x4b, 0xb7, 0x4e, 0x67, - 0xab, 0x98, 0x3b, 0x48, 0x8c, 0x6f, 0x29, 0x38, 0xb2, 0xc3, 0xbf, 0x18, 0x6a, 0x8b, 0x0c, 0xab, - 0x95, 0xe2, 0xc5, 0x9c, 0x63, 0xe3, 0x6b, 0x0d, 0xaf, 0xfa, 0x98, 0x7d, 0xdf, 0x35, 0xf9, 0x80, - 0x70, 0x7d, 0x17, 0x2c, 0x79, 0x7c, 0xc9, 0xc3, 0x8b, 0x35, 0xb4, 0xaf, 0xa6, 0x0c, 0xa3, 0xf7, - 0xdf, 0xbe, 0x7f, 0xa9, 0xad, 0x93, 0x07, 0xac, 0xe0, 0x8a, 0x67, 0x20, 0xa2, 0x85, 0x96, 0x0d, - 0x7b, 0xfb, 0xbb, 0xca, 0x77, 0xe4, 0x13, 0xc2, 0x8d, 0x6a, 0x41, 0x24, 0xba, 0x24, 0xfa, 0xdf, - 0x5a, 0xdb, 0xf4, 0x7f, 0xe5, 0x7e, 0xe1, 0x61, 0xd7, 0x61, 0xdd, 0x25, 0x6b, 0x4b, 0xb1, 0x06, - 0xcf, 0x5e, 0x3d, 0xcd, 0xa4, 0x7d, 0x33, 0x49, 0xe9, 0x48, 0x17, 0xcc, 0xc7, 0x47, 0xfe, 0x58, - 0x33, 0x1d, 0x65, 0xa0, 0xdc, 0x79, 0xb2, 0xa5, 0x57, 0xbc, 0xe5, 0x3e, 0xd2, 0x15, 0x27, 0x7b, - 0xf2, 0x2b, 0x00, 0x00, 0xff, 0xff, 0xee, 0xd6, 0xa3, 0xe7, 0x77, 0x03, 0x00, 0x00, + // 469 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x31, 0x6f, 0x13, 0x31, + 0x18, 0x86, 0xe5, 0xa4, 0x94, 0x9c, 0xa1, 0x02, 0x99, 0x25, 0x0d, 0x54, 0x4a, 0x4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0x09, 0xe1, 0x95, 0x6a, 0x41, 0x24, 0xba, 0x22, 0xfa, 0xdf, + 0x5a, 0x5b, 0xf4, 0x7f, 0xe5, 0x7e, 0xe1, 0x61, 0xc7, 0x61, 0xdd, 0x27, 0xeb, 0x4b, 0xb1, 0xfa, + 0x02, 0x6f, 0xcc, 0x65, 0xf2, 0x52, 0xce, 0xe5, 0xbe, 0x7a, 0x96, 0x49, 0xfb, 0x66, 0x9c, 0xd2, + 0xa1, 0x2e, 0x98, 0x57, 0x46, 0xfe, 0x96, 0x33, 0x1d, 0x65, 0xa0, 0xdc, 0xf5, 0xb2, 0xa5, 0x47, + 0xbe, 0xe3, 0x3e, 0xd2, 0x55, 0x27, 0x7b, 0xfa, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x09, 0xd4, 0xc3, + 0x5e, 0x96, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // BackupServiceClient is the client API for BackupService service. // @@ -245,10 +246,10 @@ type BackupServiceClient interface { } type backupServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewBackupServiceClient(cc *grpc.ClientConn) BackupServiceClient { +func NewBackupServiceClient(cc grpc.ClientConnInterface) BackupServiceClient { return &backupServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/backup_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/backup_service.pbext.go new file mode 100644 index 000000000..fbd5503d6 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/backup_service.pbext.go @@ -0,0 +1,27 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mysql + +func (m *GetBackupRequest) SetBackupId(v string) { + m.BackupId = v +} + +func (m *ListBackupsRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListBackupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListBackupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListBackupsResponse) SetBackups(v []*Backup) { + m.Backups = v +} + +func (m *ListBackupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/cluster.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/cluster.pb.go index dfffa226b..56caeaae7 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/cluster.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/cluster.pb.go @@ -473,6 +473,7 @@ type ClusterConfig struct { // // Types that are valid to be assigned to MysqlConfig: // *ClusterConfig_MysqlConfig_5_7 + // *ClusterConfig_MysqlConfig_8_0 MysqlConfig isClusterConfig_MysqlConfig `protobuf_oneof:"mysql_config"` // Resources allocated to MySQL hosts. Resources *Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` @@ -525,8 +526,14 @@ type ClusterConfig_MysqlConfig_5_7 struct { MysqlConfig_5_7 *config.MysqlConfigSet5_7 `protobuf:"bytes,2,opt,name=mysql_config_5_7,json=mysqlConfig57,proto3,oneof"` } +type ClusterConfig_MysqlConfig_8_0 struct { + MysqlConfig_8_0 *config.MysqlConfigSet8_0 `protobuf:"bytes,6,opt,name=mysql_config_8_0,json=mysqlConfig80,proto3,oneof"` +} + func (*ClusterConfig_MysqlConfig_5_7) isClusterConfig_MysqlConfig() {} +func (*ClusterConfig_MysqlConfig_8_0) isClusterConfig_MysqlConfig() {} + func (m *ClusterConfig) GetMysqlConfig() isClusterConfig_MysqlConfig { if m != nil { return m.MysqlConfig @@ -541,6 +548,13 @@ func (m *ClusterConfig) GetMysqlConfig_5_7() *config.MysqlConfigSet5_7 { return nil } +func (m *ClusterConfig) GetMysqlConfig_8_0() *config.MysqlConfigSet8_0 { + if x, ok := m.GetMysqlConfig().(*ClusterConfig_MysqlConfig_8_0); ok { + return x.MysqlConfig_8_0 + } + return nil +} + func (m *ClusterConfig) GetResources() *Resources { if m != nil { return m.Resources @@ -566,6 +580,7 @@ func (m *ClusterConfig) GetAccess() *Access { func (*ClusterConfig) XXX_OneofWrappers() []interface{} { return []interface{}{ (*ClusterConfig_MysqlConfig_5_7)(nil), + (*ClusterConfig_MysqlConfig_8_0)(nil), } } @@ -860,77 +875,79 @@ func init() { } var fileDescriptor_4544583b17c4e771 = []byte{ - // 1143 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xef, 0x6e, 0xe2, 0x46, - 0x10, 0x0f, 0xe0, 0x18, 0x3c, 0x10, 0xe4, 0x6e, 0x4f, 0x3d, 0x37, 0xd1, 0xa9, 0xa9, 0xd5, 0x6b, - 0xa8, 0xd4, 0x33, 0x0a, 0xa7, 0x28, 0x97, 0x9e, 0x74, 0xad, 0x03, 0xce, 0xc5, 0x2a, 0x01, 0xba, - 0x36, 0x39, 0x5d, 0x3f, 0xd4, 0x32, 0x78, 0x43, 0xac, 0x18, 0x9b, 0xda, 0x86, 0x1c, 0x79, 0x85, - 0x3e, 0x4d, 0xdf, 0xa8, 0x5f, 0xfa, 0x1e, 0xd5, 0xee, 0x9a, 0x40, 0xae, 0x0d, 0x49, 0xab, 0x7e, - 0xf3, 0xcc, 0xce, 0x6f, 0x3c, 0x7f, 0x7f, 0xbb, 0xb0, 0x37, 0x77, 0x43, 0x8f, 0x7c, 0xa8, 0x0f, - 0x83, 0x68, 0xea, 0xd5, 0xc7, 0xde, 0xa0, 0x3e, 0x9e, 0x27, 0xbf, 0x06, 0xf5, 0xd9, 0x7e, 0x7d, - 0x18, 0x4c, 0x93, 0x94, 0xc4, 0xda, 0x24, 0x8e, 0xd2, 0x08, 0x7d, 0xce, 0x0d, 0x35, 0x66, 0xa8, - 0x8d, 0xbd, 0x81, 0xc6, 0x0c, 0xb5, 0xd9, 0xfe, 0xf6, 0x17, 0xa3, 0x28, 0x1a, 0x05, 0xa4, 0xce, - 0x0c, 0x07, 0xd3, 0x8b, 0x7a, 0xea, 0x8f, 0x49, 0x92, 0xba, 0xe3, 0x09, 0xc7, 0x6e, 0xef, 0x64, - 0x06, 0xe9, 0x7c, 0x42, 0xd8, 0x61, 0x74, 0xe1, 0xb9, 0xf3, 0xec, 0xb0, 0xbe, 0x26, 0x82, 0x28, - 0xbc, 0xf0, 0x47, 0x5c, 0x3e, 0x70, 0x0e, 0x39, 0x40, 0xfd, 0xbd, 0x08, 0xc5, 0x26, 0x8f, 0x0d, - 0x55, 0x21, 0xef, 0x7b, 0x4a, 0x6e, 0x37, 0x57, 0x93, 0x70, 0xde, 0xf7, 0xd0, 0x0e, 0x48, 0x17, - 0x51, 0xe0, 0x91, 0xd8, 0xf1, 0x3d, 0x25, 0xcf, 0xd4, 0x25, 0xae, 0x30, 0x3d, 0x74, 0x04, 0x30, - 0x8c, 0x89, 0x9b, 0x12, 0xcf, 0x71, 0x53, 0xa5, 0xb0, 0x9b, 0xab, 0x95, 0x1b, 0xdb, 0x1a, 0x8f, - 0x4d, 0x5b, 0x04, 0xaf, 0xd9, 0x8b, 0xe0, 0xb1, 0x94, 0x59, 0xeb, 0x29, 0x42, 0x20, 0x84, 0xee, - 0x98, 0x28, 0x02, 0x73, 0xc9, 0xbe, 0xd1, 0x2e, 0x94, 0x3d, 0x92, 0x0c, 0x63, 0x7f, 0x92, 0xfa, - 0x51, 0xa8, 0x6c, 0xb2, 0xa3, 0x55, 0x15, 0x3a, 0x01, 0x31, 0x70, 0x07, 0x24, 0x48, 0x14, 0x71, - 0xb7, 0x50, 0x2b, 0x37, 0x34, 0xed, 0xde, 0x22, 0x6a, 0x59, 0x46, 0x5a, 0x9b, 0x01, 0x8c, 0x30, - 0x8d, 0xe7, 0x38, 0x43, 0xa3, 0x1e, 0x94, 0x49, 0x38, 0xf3, 0xe3, 0x28, 0x1c, 0x93, 0x30, 0x55, - 0x8a, 0xbb, 0xb9, 0x5a, 0xf5, 0x51, 0xce, 0x8c, 0x25, 0x0a, 0xaf, 0xba, 0x40, 0x06, 0xc0, 0x38, - 0x0a, 0xfd, 0x34, 0x8a, 0xfd, 0x70, 0xa4, 0x94, 0x58, 0x74, 0xcf, 0xd7, 0x38, 0x3c, 0xbb, 0x35, - 0xc6, 0x2b, 0x40, 0xf4, 0x03, 0x88, 0xbc, 0x47, 0x8a, 0xc4, 0xaa, 0x59, 0x7b, 0x38, 0xa6, 0x26, - 0xb3, 0xc7, 0x19, 0x0e, 0x3d, 0x03, 0x08, 0x49, 0x7a, 0x1d, 0xc5, 0x57, 0xb4, 0x63, 0xc0, 0x6a, - 0x28, 0x65, 0x1a, 0xd3, 0x43, 0x3a, 0x88, 0x97, 0xc4, 0x0d, 0xd2, 0x4b, 0xa5, 0xcc, 0x92, 0xfe, - 0xe6, 0x11, 0x49, 0x9f, 0x32, 0x00, 0xce, 0x80, 0xd4, 0x45, 0x92, 0xba, 0xe9, 0x34, 0x51, 0x2a, - 0x8f, 0x76, 0x61, 0x31, 0x00, 0xce, 0x80, 0xdb, 0x47, 0x50, 0x5e, 0x69, 0x0b, 0x92, 0xa1, 0x70, - 0x45, 0xe6, 0xd9, 0xd4, 0xd1, 0x4f, 0xf4, 0x04, 0x36, 0x67, 0x6e, 0x30, 0x25, 0xd9, 0xc8, 0x71, - 0xe1, 0xbb, 0xfc, 0xab, 0x9c, 0x6a, 0x42, 0x79, 0xa5, 0x09, 0x68, 0x07, 0x9e, 0x1a, 0x9d, 0x73, - 0x13, 0x77, 0x3b, 0x67, 0x46, 0xc7, 0x76, 0xfa, 0x1d, 0xab, 0x67, 0x34, 0xcd, 0x13, 0xd3, 0x68, - 0xc9, 0x1b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88, 0x7e, 0x01, 0x99, 0x35, 0xda, 0xe1, 0xa3, 0xe7, - 0x1c, 0x38, 0x87, 0xec, 0x37, 0xe5, 0xc6, 0xcb, 0x35, 0x23, 0xc1, 0x8d, 0xb5, 0x33, 0x2a, 0xf3, - 0x5f, 0x58, 0x24, 0x3d, 0x70, 0x0e, 0x4f, 0x37, 0xf0, 0xd6, 0x78, 0xa9, 0x3c, 0x38, 0x44, 0xc7, - 0x20, 0xc5, 0x24, 0x89, 0xa6, 0xf1, 0x90, 0x24, 0x19, 0xbb, 0x7c, 0xb5, 0xc6, 0x31, 0x5e, 0xd8, - 0xe2, 0x25, 0x0c, 0x9d, 0xc0, 0xa7, 0x03, 0x77, 0x78, 0x35, 0x9d, 0x38, 0xd7, 0x7e, 0xe8, 0x45, - 0xd7, 0x4e, 0x92, 0xba, 0x71, 0xca, 0x68, 0xa7, 0xdc, 0xf8, 0x6c, 0xc1, 0x55, 0x94, 0x47, 0x19, - 0x4f, 0x75, 0x2f, 0x5a, 0xee, 0x1c, 0x7f, 0xc2, 0x21, 0xef, 0x18, 0xc2, 0xa2, 0x00, 0x74, 0x04, - 0xa2, 0x3b, 0x1c, 0x92, 0x24, 0x61, 0xb4, 0x54, 0x6e, 0x7c, 0xb9, 0x26, 0x10, 0x9d, 0x19, 0xe2, - 0x0c, 0x70, 0x5c, 0x85, 0xca, 0x6a, 0x99, 0xd4, 0xdf, 0x04, 0x10, 0x4e, 0xa3, 0x24, 0xfd, 0xc7, - 0xae, 0x3d, 0x03, 0xc8, 0xae, 0x89, 0x25, 0xe1, 0x4a, 0x99, 0xc6, 0xf4, 0xd0, 0x53, 0x28, 0xde, - 0x44, 0x21, 0xa1, 0x67, 0xbc, 0x6b, 0x22, 0x15, 0x4d, 0xef, 0x6e, 0xad, 0x84, 0xff, 0x56, 0xab, - 0x57, 0x20, 0xc4, 0x51, 0x40, 0x58, 0x86, 0xd5, 0xb5, 0x70, 0x1a, 0xbe, 0x86, 0xa3, 0x80, 0x60,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0xc2, 0x1b, 0xc7, 0xf7, 0x40, 0x5e, 0x9c, 0xf4, 0xd8, 0x81, 0xc9, 0xde, - 0x20, 0x9e, 0x9f, 0x5c, 0x39, 0x89, 0x7f, 0xc3, 0x2f, 0x84, 0x02, 0x2e, 0x51, 0x85, 0xe5, 0xdf, - 0x50, 0x9a, 0xab, 0xb0, 0x43, 0x5a, 0x83, 0xe5, 0x5a, 0x00, 0xd5, 0xd1, 0x5c, 0x4c, 0x4f, 0x7d, - 0x0e, 0x22, 0xdf, 0x48, 0xe6, 0xc8, 0x4d, 0x5d, 0x27, 0x20, 0x61, 0xc2, 0xfe, 0x56, 0xc2, 0x25, - 0xaa, 0x68, 0x93, 0x30, 0x39, 0x36, 0x7e, 0x6e, 0x8e, 0xfc, 0xf4, 0x72, 0x3a, 0xd0, 0x86, 0xd1, - 0x38, 0x7b, 0x43, 0xbd, 0xe0, 0x6f, 0xa8, 0x51, 0xf4, 0x62, 0x44, 0x42, 0xf6, 0xa0, 0xb9, 0xff, - 0x71, 0xf5, 0x9a, 0x7d, 0x0c, 0x44, 0x66, 0xf6, 0xf2, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x74, - 0x71, 0xe5, 0xd8, 0x08, 0x0a, 0x00, 0x00, + // 1177 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xef, 0x72, 0xda, 0xc6, + 0x17, 0x0d, 0x20, 0x0b, 0x74, 0x21, 0x8c, 0x7e, 0xfb, 0xcb, 0x34, 0xaa, 0x33, 0x99, 0xba, 0x9a, + 0xa6, 0xa1, 0x33, 0x8d, 0xb0, 0xc9, 0x78, 0x4c, 0x9a, 0x99, 0xb4, 0x32, 0x28, 0xb1, 0xa6, 0x18, + 0xe8, 0x4a, 0x24, 0x93, 0x7e, 0xa8, 0x46, 0xa0, 0x35, 0xd6, 0x58, 0x48, 0x54, 0x12, 0x38, 0xf8, +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, 0x6b, 0xbc, 0x18, 0x6d, 0x59, 0xad, 0x66, 0x2f, 0xab, 0xc5, + 0x52, 0x96, 0xad, 0xa7, 0x08, 0x81, 0x10, 0xba, 0x13, 0xa2, 0x08, 0x8c, 0x92, 0x7d, 0xa3, 0x1d, + 0x28, 0x7b, 0x24, 0x19, 0xc5, 0xfe, 0x34, 0xf5, 0xa3, 0x50, 0xd9, 0x62, 0xa1, 0x75, 0x17, 0x7a, + 0x0d, 0x62, 0xe0, 0x0e, 0x49, 0x90, 0x28, 0xe2, 0x4e, 0xa1, 0x56, 0x6e, 0x68, 0xda, 0x8d, 0x5d, + 0xd7, 0xb2, 0x8a, 0xb4, 0x0e, 0x03, 0x18, 0x61, 0x1a, 0x2f, 0x70, 0x86, 0x46, 0x7d, 0x28, 0x93, + 0x70, 0xee, 0xc7, 0x51, 0x38, 0x21, 0x61, 0xaa, 0x14, 0x77, 0x72, 0xb5, 0xea, 0x9d, 0xc8, 0x8c, + 0x15, 0x0a, 0xaf, 0x53, 0x20, 0x03, 0x60, 0x12, 0x85, 0x7e, 0x1a, 0xc5, 0x7e, 0x38, 0x56, 0x4a, + 0x6c, 0x75, 0x4f, 0x36, 0x10, 0x1e, 0x5f, 0x26, 0xe3, 0x35, 0x20, 0xfa, 0x09, 0x44, 0xbe, 0x47, + 0x8a, 0xc4, 0xba, 0x59, 0xbb, 0x7d, 0x4d, 0x2d, 0x96, 0x8f, 0x33, 0x1c, 0x7a, 0x0c, 0x10, 0x92, + 0xf4, 0x3c, 0x8a, 0xcf, 0xe8, 0x8e, 0x01, 0xeb, 0xa1, 0x94, 0x79, 0x4c, 0x0f, 0xe9, 0x20, 0x9e, + 0x12, 0x37, 0x48, 0x4f, 0x95, 0x32, 0x2b, 0xfa, 0xbb, 0x3b, 0x14, 0x7d, 0xc4, 0x00, 0x38, 0x03, + 0x52, 0x8a, 0x24, 0x75, 0xd3, 0x59, 0xa2, 0x54, 0xee, 0x4c, 0x61, 0x31, 0x00, 0xce, 0x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xda, 0xf3, 0x7f, 0x02, 0x00, 0x00, 0xff, + 0xff, 0xc1, 0x23, 0xf8, 0xe8, 0xb8, 0x0a, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/cluster.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/cluster.pbext.go new file mode 100644 index 000000000..d962a710b --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/cluster.pbext.go @@ -0,0 +1,163 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mysql + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" + config "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/config" + timeofday "google.golang.org/genproto/googleapis/type/timeofday" +) + +func (m *Cluster) SetId(v string) { + m.Id = v +} + +func (m *Cluster) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Cluster) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Cluster) SetName(v string) { + m.Name = v +} + +func (m *Cluster) SetDescription(v string) { + m.Description = v +} + +func (m *Cluster) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *Cluster) SetEnvironment(v Cluster_Environment) { + m.Environment = v +} + +func (m *Cluster) SetMonitoring(v []*Monitoring) { + m.Monitoring = v +} + +func (m *Cluster) SetConfig(v *ClusterConfig) { + m.Config = v +} + +func (m *Cluster) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *Cluster) SetHealth(v Cluster_Health) { + m.Health = v +} + +func (m *Cluster) SetStatus(v Cluster_Status) { + m.Status = v +} + +func (m *Monitoring) SetName(v string) { + m.Name = v +} + +func (m *Monitoring) SetDescription(v string) { + m.Description = v +} + +func (m *Monitoring) SetLink(v string) { + m.Link = v +} + +type ClusterConfig_MysqlConfig = isClusterConfig_MysqlConfig + +func (m *ClusterConfig) SetMysqlConfig(v ClusterConfig_MysqlConfig) { + m.MysqlConfig = v +} + +func (m *ClusterConfig) SetVersion(v string) { + m.Version = v +} + +func (m *ClusterConfig) SetMysqlConfig_5_7(v *config.MysqlConfigSet5_7) { + m.MysqlConfig = &ClusterConfig_MysqlConfig_5_7{ + MysqlConfig_5_7: v, + } +} + +func (m *ClusterConfig) SetMysqlConfig_8_0(v *config.MysqlConfigSet8_0) { + m.MysqlConfig = &ClusterConfig_MysqlConfig_8_0{ + MysqlConfig_8_0: v, + } +} + +func (m *ClusterConfig) SetResources(v *Resources) { + m.Resources = v +} + +func (m *ClusterConfig) SetBackupWindowStart(v *timeofday.TimeOfDay) { + m.BackupWindowStart = v +} + +func (m *ClusterConfig) SetAccess(v *Access) { + m.Access = v +} + +func (m *Host) SetName(v string) { + m.Name = v +} + +func (m *Host) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *Host) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *Host) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Host) SetRole(v Host_Role) { + m.Role = v +} + +func (m *Host) SetHealth(v Host_Health) { + m.Health = v +} + +func (m *Host) SetServices(v []*Service) { + m.Services = v +} + +func (m *Host) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *Host) SetAssignPublicIp(v bool) { + m.AssignPublicIp = v +} + +func (m *Service) SetType(v Service_Type) { + m.Type = v +} + +func (m *Service) SetHealth(v Service_Health) { + m.Health = v +} + +func (m *Resources) SetResourcePresetId(v string) { + m.ResourcePresetId = v +} + +func (m *Resources) SetDiskSize(v int64) { + m.DiskSize = v +} + +func (m *Resources) SetDiskTypeId(v string) { + m.DiskTypeId = v +} + +func (m *Access) SetDataLens(v bool) { + m.DataLens = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/cluster_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/cluster_service.pb.go index 5b229fd59..f0a9fd7cd 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/cluster_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/cluster_service.pb.go @@ -70,6 +70,44 @@ func (ListClusterLogsRequest_ServiceType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_f04e32aaf9db2926, []int{16, 0} } +type StreamClusterLogsRequest_ServiceType int32 + +const ( + StreamClusterLogsRequest_SERVICE_TYPE_UNSPECIFIED StreamClusterLogsRequest_ServiceType = 0 + // MySQL error log. + StreamClusterLogsRequest_MYSQL_ERROR StreamClusterLogsRequest_ServiceType = 1 + // MySQL general query log. + StreamClusterLogsRequest_MYSQL_GENERAL StreamClusterLogsRequest_ServiceType = 2 + // MySQL slow query log. + StreamClusterLogsRequest_MYSQL_SLOW_QUERY StreamClusterLogsRequest_ServiceType = 3 + // MySQL audit log. + StreamClusterLogsRequest_MYSQL_AUDIT StreamClusterLogsRequest_ServiceType = 4 +) + +var StreamClusterLogsRequest_ServiceType_name = map[int32]string{ + 0: "SERVICE_TYPE_UNSPECIFIED", + 1: "MYSQL_ERROR", + 2: "MYSQL_GENERAL", + 3: "MYSQL_SLOW_QUERY", + 4: "MYSQL_AUDIT", +} + +var StreamClusterLogsRequest_ServiceType_value = map[string]int32{ + "SERVICE_TYPE_UNSPECIFIED": 0, + "MYSQL_ERROR": 1, + "MYSQL_GENERAL": 2, + "MYSQL_SLOW_QUERY": 3, + "MYSQL_AUDIT": 4, +} + +func (x StreamClusterLogsRequest_ServiceType) String() string { + return proto.EnumName(StreamClusterLogsRequest_ServiceType_name, int32(x)) +} + +func (StreamClusterLogsRequest_ServiceType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f04e32aaf9db2926, []int{18, 0} +} + type GetClusterRequest struct { // ID of the MySQL cluster to return. // To get the cluster ID use a [ClusterService.List] request. @@ -1163,6 +1201,83 @@ func (m *ListClusterLogsResponse) GetNextPageToken() string { return "" } +type StreamClusterLogsRequest struct { + // Required. ID of the MySQL cluster. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Columns from logs table to get in the response. + ColumnFilter []string `protobuf:"bytes,2,rep,name=column_filter,json=columnFilter,proto3" json:"column_filter,omitempty"` + ServiceType StreamClusterLogsRequest_ServiceType `protobuf:"varint,3,opt,name=service_type,json=serviceType,proto3,enum=yandex.cloud.mdb.mysql.v1.StreamClusterLogsRequest_ServiceType" json:"service_type,omitempty"` + // Start timestamp for the logs request. + FromTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=from_time,json=fromTime,proto3" json:"from_time,omitempty"` + // End timestamp for the logs request. + // If this field is not set, all existing logs will be sent and then the new ones as + // they appear. In essence it has 'tail -f' semantics. + ToTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=to_time,json=toTime,proto3" json:"to_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamClusterLogsRequest) Reset() { *m = StreamClusterLogsRequest{} } +func (m *StreamClusterLogsRequest) String() string { return proto.CompactTextString(m) } +func (*StreamClusterLogsRequest) ProtoMessage() {} +func (*StreamClusterLogsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f04e32aaf9db2926, []int{18} +} + +func (m *StreamClusterLogsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamClusterLogsRequest.Unmarshal(m, b) +} +func (m *StreamClusterLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamClusterLogsRequest.Marshal(b, m, deterministic) +} +func (m *StreamClusterLogsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamClusterLogsRequest.Merge(m, src) +} +func (m *StreamClusterLogsRequest) XXX_Size() int { + return xxx_messageInfo_StreamClusterLogsRequest.Size(m) +} +func (m *StreamClusterLogsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StreamClusterLogsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamClusterLogsRequest proto.InternalMessageInfo + +func (m *StreamClusterLogsRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *StreamClusterLogsRequest) GetColumnFilter() []string { + if m != nil { + return m.ColumnFilter + } + return nil +} + +func (m *StreamClusterLogsRequest) GetServiceType() StreamClusterLogsRequest_ServiceType { + if m != nil { + return m.ServiceType + } + return StreamClusterLogsRequest_SERVICE_TYPE_UNSPECIFIED +} + +func (m *StreamClusterLogsRequest) GetFromTime() *timestamp.Timestamp { + if m != nil { + return m.FromTime + } + return nil +} + +func (m *StreamClusterLogsRequest) GetToTime() *timestamp.Timestamp { + if m != nil { + return m.ToTime + } + return nil +} + type ListClusterOperationsRequest struct { // ID of the MySQL cluster to list operations for. ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` @@ -1182,7 +1297,7 @@ func (m *ListClusterOperationsRequest) Reset() { *m = ListClusterOperati func (m *ListClusterOperationsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterOperationsRequest) ProtoMessage() {} func (*ListClusterOperationsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{18} + return fileDescriptor_f04e32aaf9db2926, []int{19} } func (m *ListClusterOperationsRequest) XXX_Unmarshal(b []byte) error { @@ -1241,7 +1356,7 @@ func (m *ListClusterOperationsResponse) Reset() { *m = ListClusterOperat func (m *ListClusterOperationsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterOperationsResponse) ProtoMessage() {} func (*ListClusterOperationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{19} + return fileDescriptor_f04e32aaf9db2926, []int{20} } func (m *ListClusterOperationsResponse) XXX_Unmarshal(b []byte) error { @@ -1296,7 +1411,7 @@ func (m *ListClusterBackupsRequest) Reset() { *m = ListClusterBackupsReq func (m *ListClusterBackupsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterBackupsRequest) ProtoMessage() {} func (*ListClusterBackupsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{20} + return fileDescriptor_f04e32aaf9db2926, []int{21} } func (m *ListClusterBackupsRequest) XXX_Unmarshal(b []byte) error { @@ -1355,7 +1470,7 @@ func (m *ListClusterBackupsResponse) Reset() { *m = ListClusterBackupsRe func (m *ListClusterBackupsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterBackupsResponse) ProtoMessage() {} func (*ListClusterBackupsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{21} + return fileDescriptor_f04e32aaf9db2926, []int{22} } func (m *ListClusterBackupsResponse) XXX_Unmarshal(b []byte) error { @@ -1410,7 +1525,7 @@ func (m *ListClusterHostsRequest) Reset() { *m = ListClusterHostsRequest func (m *ListClusterHostsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterHostsRequest) ProtoMessage() {} func (*ListClusterHostsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{22} + return fileDescriptor_f04e32aaf9db2926, []int{23} } func (m *ListClusterHostsRequest) XXX_Unmarshal(b []byte) error { @@ -1469,7 +1584,7 @@ func (m *ListClusterHostsResponse) Reset() { *m = ListClusterHostsRespon func (m *ListClusterHostsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterHostsResponse) ProtoMessage() {} func (*ListClusterHostsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{23} + return fileDescriptor_f04e32aaf9db2926, []int{24} } func (m *ListClusterHostsResponse) XXX_Unmarshal(b []byte) error { @@ -1519,7 +1634,7 @@ func (m *AddClusterHostsRequest) Reset() { *m = AddClusterHostsRequest{} func (m *AddClusterHostsRequest) String() string { return proto.CompactTextString(m) } func (*AddClusterHostsRequest) ProtoMessage() {} func (*AddClusterHostsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{24} + return fileDescriptor_f04e32aaf9db2926, []int{25} } func (m *AddClusterHostsRequest) XXX_Unmarshal(b []byte) error { @@ -1568,7 +1683,7 @@ func (m *AddClusterHostsMetadata) Reset() { *m = AddClusterHostsMetadata func (m *AddClusterHostsMetadata) String() string { return proto.CompactTextString(m) } func (*AddClusterHostsMetadata) ProtoMessage() {} func (*AddClusterHostsMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{25} + return fileDescriptor_f04e32aaf9db2926, []int{26} } func (m *AddClusterHostsMetadata) XXX_Unmarshal(b []byte) error { @@ -1618,7 +1733,7 @@ func (m *DeleteClusterHostsRequest) Reset() { *m = DeleteClusterHostsReq func (m *DeleteClusterHostsRequest) String() string { return proto.CompactTextString(m) } func (*DeleteClusterHostsRequest) ProtoMessage() {} func (*DeleteClusterHostsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{26} + return fileDescriptor_f04e32aaf9db2926, []int{27} } func (m *DeleteClusterHostsRequest) XXX_Unmarshal(b []byte) error { @@ -1667,7 +1782,7 @@ func (m *DeleteClusterHostsMetadata) Reset() { *m = DeleteClusterHostsMe func (m *DeleteClusterHostsMetadata) String() string { return proto.CompactTextString(m) } func (*DeleteClusterHostsMetadata) ProtoMessage() {} func (*DeleteClusterHostsMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{27} + return fileDescriptor_f04e32aaf9db2926, []int{28} } func (m *DeleteClusterHostsMetadata) XXX_Unmarshal(b []byte) error { @@ -1714,7 +1829,7 @@ func (m *StartClusterRequest) Reset() { *m = StartClusterRequest{} } func (m *StartClusterRequest) String() string { return proto.CompactTextString(m) } func (*StartClusterRequest) ProtoMessage() {} func (*StartClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{28} + return fileDescriptor_f04e32aaf9db2926, []int{29} } func (m *StartClusterRequest) XXX_Unmarshal(b []byte) error { @@ -1754,7 +1869,7 @@ func (m *StartClusterMetadata) Reset() { *m = StartClusterMetadata{} } func (m *StartClusterMetadata) String() string { return proto.CompactTextString(m) } func (*StartClusterMetadata) ProtoMessage() {} func (*StartClusterMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{29} + return fileDescriptor_f04e32aaf9db2926, []int{30} } func (m *StartClusterMetadata) XXX_Unmarshal(b []byte) error { @@ -1794,7 +1909,7 @@ func (m *StopClusterRequest) Reset() { *m = StopClusterRequest{} } func (m *StopClusterRequest) String() string { return proto.CompactTextString(m) } func (*StopClusterRequest) ProtoMessage() {} func (*StopClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{30} + return fileDescriptor_f04e32aaf9db2926, []int{31} } func (m *StopClusterRequest) XXX_Unmarshal(b []byte) error { @@ -1834,7 +1949,7 @@ func (m *StopClusterMetadata) Reset() { *m = StopClusterMetadata{} } func (m *StopClusterMetadata) String() string { return proto.CompactTextString(m) } func (*StopClusterMetadata) ProtoMessage() {} func (*StopClusterMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{31} + return fileDescriptor_f04e32aaf9db2926, []int{32} } func (m *StopClusterMetadata) XXX_Unmarshal(b []byte) error { @@ -1876,7 +1991,7 @@ func (m *MoveClusterRequest) Reset() { *m = MoveClusterRequest{} } func (m *MoveClusterRequest) String() string { return proto.CompactTextString(m) } func (*MoveClusterRequest) ProtoMessage() {} func (*MoveClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{32} + return fileDescriptor_f04e32aaf9db2926, []int{33} } func (m *MoveClusterRequest) XXX_Unmarshal(b []byte) error { @@ -1927,7 +2042,7 @@ func (m *MoveClusterMetadata) Reset() { *m = MoveClusterMetadata{} } func (m *MoveClusterMetadata) String() string { return proto.CompactTextString(m) } func (*MoveClusterMetadata) ProtoMessage() {} func (*MoveClusterMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{33} + return fileDescriptor_f04e32aaf9db2926, []int{34} } func (m *MoveClusterMetadata) XXX_Unmarshal(b []byte) error { @@ -1983,7 +2098,7 @@ func (m *UpdateClusterHostsMetadata) Reset() { *m = UpdateClusterHostsMe func (m *UpdateClusterHostsMetadata) String() string { return proto.CompactTextString(m) } func (*UpdateClusterHostsMetadata) ProtoMessage() {} func (*UpdateClusterHostsMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{34} + return fileDescriptor_f04e32aaf9db2926, []int{35} } func (m *UpdateClusterHostsMetadata) XXX_Unmarshal(b []byte) error { @@ -2044,7 +2159,7 @@ func (m *HostSpec) Reset() { *m = HostSpec{} } func (m *HostSpec) String() string { return proto.CompactTextString(m) } func (*HostSpec) ProtoMessage() {} func (*HostSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{35} + return fileDescriptor_f04e32aaf9db2926, []int{36} } func (m *HostSpec) XXX_Unmarshal(b []byte) error { @@ -2090,11 +2205,13 @@ type ConfigSpec struct { // Version of MySQL used in the cluster. // Possible values: // * 5.7 + // * 8.0 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // Configuration of a MySQL cluster. // // Types that are valid to be assigned to MysqlConfig: // *ConfigSpec_MysqlConfig_5_7 + // *ConfigSpec_MysqlConfig_8_0 MysqlConfig isConfigSpec_MysqlConfig `protobuf_oneof:"mysql_config"` // Resources allocated to MySQL hosts. Resources *Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` @@ -2111,7 +2228,7 @@ func (m *ConfigSpec) Reset() { *m = ConfigSpec{} } func (m *ConfigSpec) String() string { return proto.CompactTextString(m) } func (*ConfigSpec) ProtoMessage() {} func (*ConfigSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e32aaf9db2926, []int{36} + return fileDescriptor_f04e32aaf9db2926, []int{37} } func (m *ConfigSpec) XXX_Unmarshal(b []byte) error { @@ -2147,8 +2264,14 @@ type ConfigSpec_MysqlConfig_5_7 struct { MysqlConfig_5_7 *config.MysqlConfig5_7 `protobuf:"bytes,2,opt,name=mysql_config_5_7,json=mysqlConfig57,proto3,oneof"` } +type ConfigSpec_MysqlConfig_8_0 struct { + MysqlConfig_8_0 *config.MysqlConfig8_0 `protobuf:"bytes,6,opt,name=mysql_config_8_0,json=mysqlConfig80,proto3,oneof"` +} + func (*ConfigSpec_MysqlConfig_5_7) isConfigSpec_MysqlConfig() {} +func (*ConfigSpec_MysqlConfig_8_0) isConfigSpec_MysqlConfig() {} + func (m *ConfigSpec) GetMysqlConfig() isConfigSpec_MysqlConfig { if m != nil { return m.MysqlConfig @@ -2163,6 +2286,13 @@ func (m *ConfigSpec) GetMysqlConfig_5_7() *config.MysqlConfig5_7 { return nil } +func (m *ConfigSpec) GetMysqlConfig_8_0() *config.MysqlConfig8_0 { + if x, ok := m.GetMysqlConfig().(*ConfigSpec_MysqlConfig_8_0); ok { + return x.MysqlConfig_8_0 + } + return nil +} + func (m *ConfigSpec) GetResources() *Resources { if m != nil { return m.Resources @@ -2188,11 +2318,13 @@ func (m *ConfigSpec) GetAccess() *Access { func (*ConfigSpec) XXX_OneofWrappers() []interface{} { return []interface{}{ (*ConfigSpec_MysqlConfig_5_7)(nil), + (*ConfigSpec_MysqlConfig_8_0)(nil), } } func init() { proto.RegisterEnum("yandex.cloud.mdb.mysql.v1.ListClusterLogsRequest_ServiceType", ListClusterLogsRequest_ServiceType_name, ListClusterLogsRequest_ServiceType_value) + proto.RegisterEnum("yandex.cloud.mdb.mysql.v1.StreamClusterLogsRequest_ServiceType", StreamClusterLogsRequest_ServiceType_name, StreamClusterLogsRequest_ServiceType_value) proto.RegisterType((*GetClusterRequest)(nil), "yandex.cloud.mdb.mysql.v1.GetClusterRequest") proto.RegisterType((*ListClustersRequest)(nil), "yandex.cloud.mdb.mysql.v1.ListClustersRequest") proto.RegisterType((*ListClustersResponse)(nil), "yandex.cloud.mdb.mysql.v1.ListClustersResponse") @@ -2215,6 +2347,7 @@ func init() { proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.mdb.mysql.v1.LogRecord.MessageEntry") proto.RegisterType((*ListClusterLogsRequest)(nil), "yandex.cloud.mdb.mysql.v1.ListClusterLogsRequest") proto.RegisterType((*ListClusterLogsResponse)(nil), "yandex.cloud.mdb.mysql.v1.ListClusterLogsResponse") + proto.RegisterType((*StreamClusterLogsRequest)(nil), "yandex.cloud.mdb.mysql.v1.StreamClusterLogsRequest") proto.RegisterType((*ListClusterOperationsRequest)(nil), "yandex.cloud.mdb.mysql.v1.ListClusterOperationsRequest") proto.RegisterType((*ListClusterOperationsResponse)(nil), "yandex.cloud.mdb.mysql.v1.ListClusterOperationsResponse") proto.RegisterType((*ListClusterBackupsRequest)(nil), "yandex.cloud.mdb.mysql.v1.ListClusterBackupsRequest") @@ -2241,172 +2374,178 @@ func init() { } var fileDescriptor_f04e32aaf9db2926 = []byte{ - // 2484 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0x4d, 0x6c, 0x1b, 0xd7, - 0x11, 0xce, 0x4a, 0x14, 0x45, 0x0e, 0x2d, 0x45, 0x79, 0x92, 0x15, 0x9a, 0xb6, 0x63, 0x79, 0x93, - 0x58, 0x0a, 0x63, 0x2e, 0x49, 0xfd, 0x58, 0xb6, 0xfc, 0xd3, 0x88, 0x32, 0xe5, 0xa8, 0x95, 0x6c, - 0x67, 0x25, 0xc7, 0xb5, 0x0d, 0x63, 0xbb, 0xe2, 0x3e, 0xd1, 0x84, 0xc8, 0x5d, 0x86, 0x6f, 0x29, - 0x5b, 0x36, 0x1a, 0xa0, 0xee, 0xa5, 0x70, 0x0f, 0x45, 0xff, 0x0e, 0x45, 0x81, 0x5e, 0x73, 0xe8, - 0xa5, 0x50, 0x02, 0xb4, 0xe8, 0x25, 0x47, 0xbb, 0x3d, 0xf4, 0xa0, 0x1e, 0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, - 0x42, 0x43, 0x54, 0x8f, 0x87, 0x2e, 0x7a, 0x55, 0x60, 0x41, 0xb7, 0x21, 0x86, 0xcd, 0xad, 0x52, - 0xcd, 0x32, 0x2b, 0xd8, 0xb4, 0xe3, 0x7d, 0x63, 0xd2, 0xc4, 0xe0, 0xa4, 0xb2, 0xff, 0x31, 0x29, - 0xf9, 0x26, 0x97, 0xea, 0x16, 0x81, 0x16, 0x21, 0xc6, 0x43, 0x44, 0x23, 0x55, 0x5c, 0x88, 0x87, - 0xc7, 0xa4, 0x89, 0xd8, 0xe4, 0xbb, 0x7e, 0x12, 0x19, 0xf5, 0x6a, 0x15, 0x17, 0x54, 0x28, 0x34, - 0x9e, 0xd1, 0x4d, 0x18, 0x74, 0x42, 0x97, 0x49, 0x22, 0xf1, 0x7e, 0x66, 0xb7, 0x71, 0x1f, 0x51, - 0xd7, 0x05, 0x03, 0x13, 0x36, 0x60, 0xb8, 0xde, 0x08, 0xca, 0x01, 0xd0, 0x00, 0x17, 0xb2, 0x22, - 0x4c, 0xd6, 0xdb, 0x3e, 0xb2, 0xee, 0x10, 0x5c, 0x63, 0x72, 0xa2, 0x75, 0xf1, 0xc4, 0x64, 0x3c, - 0xb2, 0x88, 0x2d, 0x64, 0x44, 0xf7, 0x95, 0xf1, 0xa1, 0x45, 0x6c, 0x2e, 0xe3, 0x91, 0x78, 0x22, - 0x68, 0x1c, 0xc0, 0xc4, 0xf6, 0x63, 0xab, 0xb6, 0x49, 0xbd, 0x12, 0x98, 0xd3, 0x44, 0x9a, 0x17, - 0x82, 0x58, 0x5b, 0x32, 0x12, 0x97, 0x20, 0xe6, 0x3a, 0x72, 0x34, 0x04, 0xbd, 0x9b, 0x78, 0x9b, - 0xbb, 0xb1, 0x4a, 0x1f, 0xd1, 0x08, 0xf4, 0x6d, 0xe9, 0xe5, 0xba, 0x70, 0x5a, 0x95, 0xbf, 0xcc, - 0xf5, 0x5c, 0x94, 0xe4, 0x0b, 0x70, 0xdc, 0xe3, 0x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b9, 0xe7, 0x80, 0x44, 0x73, 0x77, 0x11, 0x42, 0x65, - 0xab, 0xe8, 0x34, 0x76, 0xef, 0x04, 0xf1, 0x6e, 0x95, 0x71, 0x04, 0x6e, 0xeb, 0x7e, 0x27, 0xc1, - 0x29, 0xd7, 0xee, 0xb7, 0x9c, 0x11, 0xc3, 0xc1, 0xfc, 0xf7, 0xe8, 0x7b, 0x63, 0xf9, 0x85, 0x04, - 0xa7, 0x3b, 0x00, 0x14, 0x46, 0x9a, 0x07, 0x68, 0x4c, 0x46, 0x1c, 0x53, 0x9d, 0xf5, 0x9a, 0xaa, - 0x39, 0x39, 0x69, 0xf0, 0xab, 0x2e, 0xa6, 0xc0, 0xd6, 0xfa, 0xad, 0x04, 0x27, 0x5c, 0x60, 0x78, - 0x49, 0x73, 0xb4, 0xa6, 0x12, 0x6d, 0xff, 0x41, 0x4c, 0xf5, 0x23, 0x09, 0x12, 0xed, 0xd0, 0x09, - 0x3b, 0x5d, 0x86, 0x7e, 0x9e, 0x34, 0x3a, 0x18, 0xc9, 0xe3, 0x4f, 0x9c, 0x59, 0x75, 0x38, 0x02, - 0x5b, 0xe8, 0x37, 0x92, 0xc7, 0x9b, 0x69, 0x46, 0xfe, 0xbf, 0x71, 0xa5, 0x6d, 0x88, 0xef, 0x85, - 0x26, 0x8c, 0x33, 0x03, 0x7d, 0x34, 0xbb, 0x39, 0xa6, 0x39, 0xb3, 0x4f, 0x95, 0xa1, 0x72, 0xea, - 0xc0, 0x66, 0xf9, 0xb9, 0x04, 0xa3, 0xf3, 0x86, 0x71, 0x68, 0xab, 0x7c, 0xd7, 0x53, 0x11, 0xf5, - 0x04, 0xae, 0x88, 0x72, 0xe1, 0xe7, 0xaf, 0xb2, 0x3d, 0xd7, 0x32, 0xae, 0xca, 0x48, 0xbe, 0x0b, - 0x6f, 0xb6, 0x40, 0x0a, 0x5a, 0x8f, 0x9c, 0x16, 0x28, 0x68, 0x99, 0x40, 0x44, 0x8e, 0x8a, 0x3a, -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0x74, 0x53, 0x2f, 0x62, 0x23, - 0xd5, 0xfa, 0xdb, 0x0e, 0x49, 0x3f, 0x6b, 0x7a, 0xea, 0x0f, 0xd1, 0x4f, 0x25, 0x08, 0xd1, 0x24, - 0x89, 0x94, 0x60, 0xfd, 0x84, 0x73, 0xaf, 0x27, 0xd2, 0x81, 0xe9, 0x79, 0xc6, 0x95, 0x65, 0x06, - 0xed, 0x14, 0x4a, 0x74, 0x86, 0x86, 0x3e, 0x93, 0x20, 0xcc, 0x67, 0xac, 0x28, 0xdd, 0xe5, 0x24, - 0x3f, 0xb1, 0x7f, 0x09, 0x28, 0x2f, 0xed, 0xec, 0x26, 0xc7, 0x3a, 0x4d, 0x71, 0xfb, 0xc5, 0x07, - 0x06, 0xf3, 0x8c, 0xec, 0x03, 0x73, 0x4e, 0x4a, 0xa2, 0x2f, 0x24, 0x08, 0xf3, 0xfb, 0xc0, 0x17, - 0x69, 0xbb, 0xf1, 0x68, 0x10, 0xa4, 0x1f, 0x73, 0xa4, 0xed, 0xa7, 0x87, 0x1e, 0xa4, 0xe7, 0x27, - 0x83, 0x9e, 0x35, 0x85, 0xfd, 0xa5, 0x04, 0x61, 0x9e, 0x31, 0x7d, 0x61, 0xb7, 0x9b, 0x3e, 0x06, - 0x81, 0xad, 0xef, 0xec, 0x26, 0x95, 0x4e, 0x73, 0xc7, 0xe3, 0xad, 0xad, 0x61, 0xbe, 0x52, 0xb5, - 0xb7, 0xb9, 0xc3, 0x26, 0x03, 0x3b, 0xec, 0x17, 0x12, 0xf4, 0xf1, 0x18, 0xf5, 0xf3, 0xd8, 0x36, - 0x99, 0x3b, 0x08, 0xfe, 0xef, 0xef, 0xec, 0x26, 0xcf, 0x74, 0xc8, 0xd9, 0x1e, 0xab, 0xa7, 0xe5, - 0x54, 0x50, 0xab, 0xb3, 0x1b, 0x08, 0xfd, 0x41, 0x82, 0x10, 0x4d, 0xc8, 0x28, 0xe5, 0x8b, 0xba, - 0x35, 0xe9, 0x07, 0xf5,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x56, 0x97, - 0xd9, 0xc3, 0x7a, 0x98, 0x91, 0x4d, 0xfd, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x8c, 0xdd, 0x54, 0x68, - 0x65, 0x27, 0x00, 0x00, + // 2581 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0x4d, 0x70, 0xdb, 0xd6, + 0xf1, 0x0f, 0x24, 0x8a, 0x22, 0x97, 0x96, 0xa2, 0x3c, 0xc9, 0x0a, 0xcd, 0xd8, 0xb1, 0x8c, 0x24, + 0x96, 0xc2, 0x98, 0x20, 0xa9, 0x0f, 0x4b, 0x96, 0x3f, 0x12, 0x51, 0xa6, 0x1c, 0xfd, 0xff, 0x92, + 0xed, 0x40, 0x72, 0x5c, 0xdb, 0xe3, 0x41, 0x41, 0xe2, 0x89, 0xc6, 0x88, 0x04, 0x18, 0x02, 0x94, + 0x2d, 0x7b, 0x9a, 0x99, 0xba, 0x97, 0x8e, 0x7b, 0xe8, 0xf4, 0xeb, 0xd0, 0xe9, 0x4c, 0x8f, 0xcd, + 0xa1, 0x97, 0x8e, 0x92, 0x69, 0x3a, 0xbd, 0xf4, 0x68, 0x4f, 0x0f, 0x3d, 0xa8, 0x87, 0xce, 0xf4, + 0xda, 0x1e, 0x7a, 0xf6, 0xa5, 0x33, 0x3d, 0x75, 0xde, 0x07, 0x44, 0x80, 0x1f, 0x10, 0x28, 0x29, + 0x6e, 0x6e, 0x04, 0xde, 0xee, 0xbe, 0xdf, 0xee, 0xdb, 0x7d, 0xfb, 0x01, 0x42, 0x7a, 0x5b, 0x35, + 0x34, 0xfc, 0x28, 0x5d, 0x2c, 0x9b, 0x75, 0x2d, 0x5d, 0xd1, 0x0a, 0xe9, 0xca, 0xb6, 0xf5, 0x59, + 0x39, 0xbd, 0x95, 0x4d, 0x17, 0xcb, 0x75, 0xcb, 0xc6, 0x35, 0xc5, 0xc2, 0xb5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0xed, + 0x6b, 0x09, 0x0f, 0x66, 0x49, 0x3c, 0x17, 0x1c, 0xb3, 0x59, 0x45, 0x5f, 0x0a, 0x10, 0x22, 0x39, + 0xde, 0x17, 0x72, 0x6b, 0x29, 0x12, 0x04, 0xf2, 0x1d, 0x06, 0xb9, 0x5d, 0x05, 0xe1, 0x81, 0x9c, + 0x0d, 0x0e, 0xb9, 0x62, 0x6e, 0x61, 0xe2, 0xe1, 0x7f, 0x10, 0x20, 0xcc, 0x3a, 0x25, 0x5f, 0x0f, + 0x6f, 0xf7, 0xe1, 0x23, 0x08, 0xf2, 0xbb, 0x2c, 0x30, 0xdb, 0x7f, 0xf2, 0xf0, 0x60, 0xcf, 0x88, + 0x52, 0x50, 0xec, 0x2c, 0xff, 0xa0, 0x1d, 0x01, 0xfa, 0xf9, 0x18, 0x19, 0x65, 0xba, 0xfd, 0x82, + 0x10, 0x04, 0xbc, 0xbc, 0xb3, 0x9b, 0x3c, 0xd3, 0x71, 0x54, 0xed, 0x41, 0x3f, 0x2e, 0x8a, 0x3e, + 0x17, 0x60, 0x8d, 0x49, 0x20, 0xf6, 0xfe, 0x9b, 0x00, 0x03, 0x34, 0x5e, 0x9c, 0x51, 0x31, 0x3a, + 0x1f, 0x30, 0x2e, 0x9b, 0xe6, 0xd9, 0x41, 0x14, 0xd8, 0xdc, 0xd9, 0x4d, 0x8e, 0xef, 0x33, 0xa1, + 0xf6, 0xa8, 0x31, 0x2f, 0xce, 0x74, 0x15, 0xa7, 0x8e, 0x34, 0xa2, 0xd9, 0x17, 0x02, 0x44, 0x48, + 0x26, 0x5b, 0x31, 0x4b, 0x16, 0xca, 0x76, 0x3d, 0x84, 0x4d, 0x4c, 0x76, 0xc3, 0xc2, 0x93, 0xe4, + 0x34, 0x8b, 0x54, 0x14, 0xd8, 0xed, 0xe9, 0x48, 0xf0, 0x37, 0x02, 0x00, 0x9b, 0xa6, 0x51, 0xac, + 0x53, 0x07, 0x18, 0xba, 0x25, 0x02, 0x8d, 0x20, 0xc5, 0x8b, 0x14, 0xdf, 0x0c, 0x9a, 0x0a, 0x6e, + 0x55, 0xb2, 0x9f, 0x42, 0x60, 0x66, 0x04, 0x92, 0x7e, 0x06, 0x89, 0xea, 0x8d, 0x91, 0x11, 0x9a, + 0x0d, 0x66, 0xa5, 0x96, 0x29, 0x58, 0x62, 0xae, 0x7b, 0x46, 0x6e, 0xe4, 0x79, 0xaa, 0xc4, 0x34, + 0x9a, 0x0c, 0xa8, 0x44, 0xda, 0x35, 0x96, 0xfa, 0x52, 0x80, 0x18, 0x91, 0xce, 0x27, 0x39, 0x68, + 0x3a, 0x18, 0x0a, 0xef, 0x58, 0x2a, 0x31, 0xd3, 0x25, 0x17, 0x07, 0x3e, 0xcb, 0x2e, 0x45, 0x94, + 0x0e, 0x0a, 0xdc, 0x19, 0x15, 0xfd, 0x56, 0x80, 0x28, 0x91, 0x4b, 0x3b, 0x22, 0x14, 0xd0, 0x31, + 0xdd, 0x33, 0x82, 0xc4, 0x54, 0x57, 0x3c, 0x1c, 0xef, 0x0c, 0xcb, 0x95, 0x28, 0x68, 0xae, 0x4c, + 0xb3, 0x09, 0xce, 0xdf, 0x05, 0x88, 0x2c, 0x68, 0x1a, 0x03, 0xeb, 0x17, 0x78, 0xed, 0xc7, 0x37, + 0x41, 0x2e, 0x92, 0x47, 0x3b, 0xbb, 0xc9, 0x4c, 0xe7, 0x61, 0x8b, 0x4f, 0xa9, 0x72, 0x45, 0xbc, + 0xd0, 0x95, 0x36, 0xf3, 0x05, 0xd5, 0x2e, 0x3e, 0x60, 0x25, 0x27, 0xb9, 0x55, 0xfe, 0x21, 0x40, + 0x8c, 0xd5, 0x47, 0x4c, 0xbf, 0xe9, 0xa0, 0x65, 0x58, 0xb7, 0x2a, 0x3e, 0xd9, 0xd9, 0x4d, 0x4e, + 0xf9, 0x0e, 0x5f, 0x8e, 0x5c, 0x4b, 0xb6, 0xd7, 0xbc, 0x90, 0xcc, 0x69, 0x70, 0xca, 0x03, 0x50, + 0xad, 0xea, 0x1e, 0xd5, 0xee, 0x2e, 0x96, 0x74, 0xfb, 0x41, 0xbd, 0x20, 0x15, 0xcd, 0x0a, 0xff, + 0xb3, 0x60, 0x8a, 0xfd, 0x59, 0xb0, 0x64, 0xa6, 0x4a, 0xd8, 0xa0, 0x90, 0x3a, 0xff, 0x8b, 0xf0, + 0x22, 0xfd, 0x51, 0x08, 0x53, 0xb2, 0xa9, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x71, 0xbb, 0xee, + 0x7b, 0x74, 0x2a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // ClusterServiceClient is the client API for ClusterService service. // @@ -2437,8 +2576,9 @@ type ClusterServiceClient interface { // Start a manual failover on the specified MySQL cluster. StartFailover(ctx context.Context, in *StartClusterFailoverRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Retrieves logs for the specified MySQL cluster. - // For more information about logs, see the [Logs](/docs/managed-mysql/concepts/logs) section in the documentation. ListLogs(ctx context.Context, in *ListClusterLogsRequest, opts ...grpc.CallOption) (*ListClusterLogsResponse, error) + // Same as ListLogs but using server-side streaming. Also allows for 'tail -f' semantics. + StreamLogs(ctx context.Context, in *StreamClusterLogsRequest, opts ...grpc.CallOption) (ClusterService_StreamLogsClient, error) // Retrieves the list of operations for the specified MySQL cluster. ListOperations(ctx context.Context, in *ListClusterOperationsRequest, opts ...grpc.CallOption) (*ListClusterOperationsResponse, error) // Retrieves the list of available backups for the specified MySQL cluster. @@ -2452,10 +2592,10 @@ type ClusterServiceClient interface { } type clusterServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewClusterServiceClient(cc *grpc.ClientConn) ClusterServiceClient { +func NewClusterServiceClient(cc grpc.ClientConnInterface) ClusterServiceClient { return &clusterServiceClient{cc} } @@ -2567,6 +2707,38 @@ func (c *clusterServiceClient) ListLogs(ctx context.Context, in *ListClusterLogs return out, nil } +func (c *clusterServiceClient) StreamLogs(ctx context.Context, in *StreamClusterLogsRequest, opts ...grpc.CallOption) (ClusterService_StreamLogsClient, error) { + stream, err := c.cc.NewStream(ctx, &_ClusterService_serviceDesc.Streams[0], "/yandex.cloud.mdb.mysql.v1.ClusterService/StreamLogs", opts...) + if err != nil { + return nil, err + } + x := &clusterServiceStreamLogsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ClusterService_StreamLogsClient interface { + Recv() (*LogRecord, error) + grpc.ClientStream +} + +type clusterServiceStreamLogsClient struct { + grpc.ClientStream +} + +func (x *clusterServiceStreamLogsClient) Recv() (*LogRecord, error) { + m := new(LogRecord) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + func (c *clusterServiceClient) ListOperations(ctx context.Context, in *ListClusterOperationsRequest, opts ...grpc.CallOption) (*ListClusterOperationsResponse, error) { out := new(ListClusterOperationsResponse) err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.mysql.v1.ClusterService/ListOperations", in, out, opts...) @@ -2639,8 +2811,9 @@ type ClusterServiceServer interface { // Start a manual failover on the specified MySQL cluster. StartFailover(context.Context, *StartClusterFailoverRequest) (*operation.Operation, error) // Retrieves logs for the specified MySQL cluster. - // For more information about logs, see the [Logs](/docs/managed-mysql/concepts/logs) section in the documentation. ListLogs(context.Context, *ListClusterLogsRequest) (*ListClusterLogsResponse, error) + // Same as ListLogs but using server-side streaming. Also allows for 'tail -f' semantics. + StreamLogs(*StreamClusterLogsRequest, ClusterService_StreamLogsServer) error // Retrieves the list of operations for the specified MySQL cluster. ListOperations(context.Context, *ListClusterOperationsRequest) (*ListClusterOperationsResponse, error) // Retrieves the list of available backups for the specified MySQL cluster. @@ -2693,6 +2866,9 @@ func (*UnimplementedClusterServiceServer) StartFailover(ctx context.Context, req func (*UnimplementedClusterServiceServer) ListLogs(ctx context.Context, req *ListClusterLogsRequest) (*ListClusterLogsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListLogs not implemented") } +func (*UnimplementedClusterServiceServer) StreamLogs(req *StreamClusterLogsRequest, srv ClusterService_StreamLogsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamLogs not implemented") +} func (*UnimplementedClusterServiceServer) ListOperations(ctx context.Context, req *ListClusterOperationsRequest) (*ListClusterOperationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") } @@ -2929,6 +3105,27 @@ func _ClusterService_ListLogs_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _ClusterService_StreamLogs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(StreamClusterLogsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ClusterServiceServer).StreamLogs(m, &clusterServiceStreamLogsServer{stream}) +} + +type ClusterService_StreamLogsServer interface { + Send(*LogRecord) error + grpc.ServerStream +} + +type clusterServiceStreamLogsServer struct { + grpc.ServerStream +} + +func (x *clusterServiceStreamLogsServer) Send(m *LogRecord) error { + return x.ServerStream.SendMsg(m) +} + func _ClusterService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListClusterOperationsRequest) if err := dec(in); err != nil { @@ -3092,6 +3289,12 @@ var _ClusterService_serviceDesc = grpc.ServiceDesc{ Handler: _ClusterService_DeleteHosts_Handler, }, }, - Streams: []grpc.StreamDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamLogs", + Handler: _ClusterService_StreamLogs_Handler, + ServerStreams: true, + }, + }, Metadata: "yandex/cloud/mdb/mysql/v1/cluster_service.proto", } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/cluster_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/cluster_service.pbext.go new file mode 100644 index 000000000..3ee022198 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/cluster_service.pbext.go @@ -0,0 +1,437 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mysql + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" + config "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/config" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + timeofday "google.golang.org/genproto/googleapis/type/timeofday" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClustersRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListClustersRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClustersRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClustersRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListClustersResponse) SetClusters(v []*Cluster) { + m.Clusters = v +} + +func (m *ListClustersResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateClusterRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateClusterRequest) SetEnvironment(v Cluster_Environment) { + m.Environment = v +} + +func (m *CreateClusterRequest) SetConfigSpec(v *ConfigSpec) { + m.ConfigSpec = v +} + +func (m *CreateClusterRequest) SetDatabaseSpecs(v []*DatabaseSpec) { + m.DatabaseSpecs = v +} + +func (m *CreateClusterRequest) SetUserSpecs(v []*UserSpec) { + m.UserSpecs = v +} + +func (m *CreateClusterRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *CreateClusterRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *CreateClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateClusterRequest) SetConfigSpec(v *ConfigSpec) { + m.ConfigSpec = v +} + +func (m *UpdateClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *BackupClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *BackupClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RestoreClusterRequest) SetBackupId(v string) { + m.BackupId = v +} + +func (m *RestoreClusterRequest) SetTime(v *timestamp.Timestamp) { + m.Time = v +} + +func (m *RestoreClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *RestoreClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *RestoreClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *RestoreClusterRequest) SetEnvironment(v Cluster_Environment) { + m.Environment = v +} + +func (m *RestoreClusterRequest) SetConfigSpec(v *ConfigSpec) { + m.ConfigSpec = v +} + +func (m *RestoreClusterRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *RestoreClusterRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *RestoreClusterRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *RestoreClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RestoreClusterMetadata) SetBackupId(v string) { + m.BackupId = v +} + +func (m *StartClusterFailoverRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StartClusterFailoverRequest) SetHostName(v string) { + m.HostName = v +} + +func (m *StartClusterFailoverMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *LogRecord) SetTimestamp(v *timestamp.Timestamp) { + m.Timestamp = v +} + +func (m *LogRecord) SetMessage(v map[string]string) { + m.Message = v +} + +func (m *ListClusterLogsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterLogsRequest) SetColumnFilter(v []string) { + m.ColumnFilter = v +} + +func (m *ListClusterLogsRequest) SetServiceType(v ListClusterLogsRequest_ServiceType) { + m.ServiceType = v +} + +func (m *ListClusterLogsRequest) SetFromTime(v *timestamp.Timestamp) { + m.FromTime = v +} + +func (m *ListClusterLogsRequest) SetToTime(v *timestamp.Timestamp) { + m.ToTime = v +} + +func (m *ListClusterLogsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterLogsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterLogsRequest) SetAlwaysNextPageToken(v bool) { + m.AlwaysNextPageToken = v +} + +func (m *ListClusterLogsResponse) SetLogs(v []*LogRecord) { + m.Logs = v +} + +func (m *ListClusterLogsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *StreamClusterLogsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StreamClusterLogsRequest) SetColumnFilter(v []string) { + m.ColumnFilter = v +} + +func (m *StreamClusterLogsRequest) SetServiceType(v StreamClusterLogsRequest_ServiceType) { + m.ServiceType = v +} + +func (m *StreamClusterLogsRequest) SetFromTime(v *timestamp.Timestamp) { + m.FromTime = v +} + +func (m *StreamClusterLogsRequest) SetToTime(v *timestamp.Timestamp) { + m.ToTime = v +} + +func (m *ListClusterOperationsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListClusterOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListClusterBackupsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterBackupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterBackupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterBackupsResponse) SetBackups(v []*Backup) { + m.Backups = v +} + +func (m *ListClusterBackupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterHostsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterHostsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterHostsResponse) SetHosts(v []*Host) { + m.Hosts = v +} + +func (m *ListClusterHostsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *AddClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterHostsRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *AddClusterHostsMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterHostsMetadata) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *DeleteClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterHostsRequest) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *DeleteClusterHostsMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterHostsMetadata) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *StartClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StartClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StopClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StopClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *MoveClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *MoveClusterRequest) SetDestinationFolderId(v string) { + m.DestinationFolderId = v +} + +func (m *MoveClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *MoveClusterMetadata) SetSourceFolderId(v string) { + m.SourceFolderId = v +} + +func (m *MoveClusterMetadata) SetDestinationFolderId(v string) { + m.DestinationFolderId = v +} + +func (m *UpdateClusterHostsMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterHostsMetadata) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *HostSpec) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *HostSpec) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *HostSpec) SetAssignPublicIp(v bool) { + m.AssignPublicIp = v +} + +type ConfigSpec_MysqlConfig = isConfigSpec_MysqlConfig + +func (m *ConfigSpec) SetMysqlConfig(v ConfigSpec_MysqlConfig) { + m.MysqlConfig = v +} + +func (m *ConfigSpec) SetVersion(v string) { + m.Version = v +} + +func (m *ConfigSpec) SetMysqlConfig_5_7(v *config.MysqlConfig5_7) { + m.MysqlConfig = &ConfigSpec_MysqlConfig_5_7{ + MysqlConfig_5_7: v, + } +} + +func (m *ConfigSpec) SetMysqlConfig_8_0(v *config.MysqlConfig8_0) { + m.MysqlConfig = &ConfigSpec_MysqlConfig_8_0{ + MysqlConfig_8_0: v, + } +} + +func (m *ConfigSpec) SetResources(v *Resources) { + m.Resources = v +} + +func (m *ConfigSpec) SetBackupWindowStart(v *timeofday.TimeOfDay) { + m.BackupWindowStart = v +} + +func (m *ConfigSpec) SetAccess(v *Access) { + m.Access = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/config/mysql5_7.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/config/mysql5_7.pb.go index e5100f3f7..0b533da16 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/config/mysql5_7.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/config/mysql5_7.pb.go @@ -131,6 +131,70 @@ func (MysqlConfig5_7_SQLMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_6392ad3afb3c33c0, []int{0, 0} } +type MysqlConfig5_7_AuthPlugin int32 + +const ( + MysqlConfig5_7_AUTH_PLUGIN_UNSPECIFIED MysqlConfig5_7_AuthPlugin = 0 + // Using [Native Pluggable Authentication](https://dev.mysql.com/doc/refman/5.7/en/native-pluggable-authentication.html). + MysqlConfig5_7_MYSQL_NATIVE_PASSWORD MysqlConfig5_7_AuthPlugin = 1 + MysqlConfig5_7_CACHING_SHA2_PASSWORD MysqlConfig5_7_AuthPlugin = 2 // Deprecated: Do not use. + // Using [SHA-256 Pluggable Authentication](https://dev.mysql.com/doc/refman/5.7/en/sha256-pluggable-authentication.html). + MysqlConfig5_7_SHA256_PASSWORD MysqlConfig5_7_AuthPlugin = 3 +) + +var MysqlConfig5_7_AuthPlugin_name = map[int32]string{ + 0: "AUTH_PLUGIN_UNSPECIFIED", + 1: "MYSQL_NATIVE_PASSWORD", + 2: "CACHING_SHA2_PASSWORD", + 3: "SHA256_PASSWORD", +} + +var MysqlConfig5_7_AuthPlugin_value = map[string]int32{ + "AUTH_PLUGIN_UNSPECIFIED": 0, + "MYSQL_NATIVE_PASSWORD": 1, + "CACHING_SHA2_PASSWORD": 2, + "SHA256_PASSWORD": 3, +} + +func (x MysqlConfig5_7_AuthPlugin) String() string { + return proto.EnumName(MysqlConfig5_7_AuthPlugin_name, int32(x)) +} + +func (MysqlConfig5_7_AuthPlugin) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_6392ad3afb3c33c0, []int{0, 1} +} + +type MysqlConfig5_7_TransactionIsolation int32 + +const ( + MysqlConfig5_7_TRANSACTION_ISOLATION_UNSPECIFIED MysqlConfig5_7_TransactionIsolation = 0 + MysqlConfig5_7_READ_COMMITTED MysqlConfig5_7_TransactionIsolation = 1 + MysqlConfig5_7_REPEATABLE_READ MysqlConfig5_7_TransactionIsolation = 2 + MysqlConfig5_7_SERIALIZABLE MysqlConfig5_7_TransactionIsolation = 3 +) + +var MysqlConfig5_7_TransactionIsolation_name = map[int32]string{ + 0: "TRANSACTION_ISOLATION_UNSPECIFIED", + 1: "READ_COMMITTED", + 2: "REPEATABLE_READ", + 3: "SERIALIZABLE", +} + +var MysqlConfig5_7_TransactionIsolation_value = map[string]int32{ + "TRANSACTION_ISOLATION_UNSPECIFIED": 0, + "READ_COMMITTED": 1, + "REPEATABLE_READ": 2, + "SERIALIZABLE": 3, +} + +func (x MysqlConfig5_7_TransactionIsolation) String() string { + return proto.EnumName(MysqlConfig5_7_TransactionIsolation_name, int32(x)) +} + +func (MysqlConfig5_7_TransactionIsolation) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_6392ad3afb3c33c0, []int{0, 2} +} + // Options and structure of `MysqlConfig5_7` reflects MySQL 5.7 configuration file type MysqlConfig5_7 struct { // Size of the InnoDB buffer pool used for caching table and index data. @@ -160,10 +224,62 @@ type MysqlConfig5_7 struct { // The maximum size in bytes of one packet. // // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_max_allowed_packet). - MaxAllowedPacket *wrappers.Int64Value `protobuf:"bytes,7,opt,name=max_allowed_packet,json=maxAllowedPacket,proto3" json:"max_allowed_packet,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MaxAllowedPacket *wrappers.Int64Value `protobuf:"bytes,7,opt,name=max_allowed_packet,json=maxAllowedPacket,proto3" json:"max_allowed_packet,omitempty"` + // Authentication plugin used in the managed MySQL cluster. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_default_authentication_plugin) + DefaultAuthenticationPlugin MysqlConfig5_7_AuthPlugin `protobuf:"varint,8,opt,name=default_authentication_plugin,json=defaultAuthenticationPlugin,proto3,enum=yandex.cloud.mdb.mysql.v1.config.MysqlConfig5_7_AuthPlugin" json:"default_authentication_plugin,omitempty"` + // Transaction log flush behaviour. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_flush_log_at_trx_commit) + InnodbFlushLogAtTrxCommit *wrappers.Int64Value `protobuf:"bytes,9,opt,name=innodb_flush_log_at_trx_commit,json=innodbFlushLogAtTrxCommit,proto3" json:"innodb_flush_log_at_trx_commit,omitempty"` + // Max time in seconds for a transaction to wait for a row lock + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_lock_wait_timeout) + InnodbLockWaitTimeout *wrappers.Int64Value `protobuf:"bytes,10,opt,name=innodb_lock_wait_timeout,json=innodbLockWaitTimeout,proto3" json:"innodb_lock_wait_timeout,omitempty"` + // Default transaction isolation level. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_transaction_isolation) + TransactionIsolation MysqlConfig5_7_TransactionIsolation `protobuf:"varint,11,opt,name=transaction_isolation,json=transactionIsolation,proto3,enum=yandex.cloud.mdb.mysql.v1.config.MysqlConfig5_7_TransactionIsolation" json:"transaction_isolation,omitempty"` + // Print information about deadlocks in error log + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_print_all_deadlocks) + InnodbPrintAllDeadlocks *wrappers.BoolValue `protobuf:"bytes,12,opt,name=innodb_print_all_deadlocks,json=innodbPrintAllDeadlocks,proto3" json:"innodb_print_all_deadlocks,omitempty"` + // The number of seconds to wait for more data from a connection before aborting the read. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_net_read_timeout) + NetReadTimeout *wrappers.Int64Value `protobuf:"bytes,13,opt,name=net_read_timeout,json=netReadTimeout,proto3" json:"net_read_timeout,omitempty"` + // The number of seconds to wait for a block to be written to a connection before aborting the write. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_net_write_timeout) + NetWriteTimeout *wrappers.Int64Value `protobuf:"bytes,14,opt,name=net_write_timeout,json=netWriteTimeout,proto3" json:"net_write_timeout,omitempty"` + // The maximum permitted result length in bytes for the GROUP_CONCAT() function. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_group_concat_max_len) + GroupConcatMaxLen *wrappers.Int64Value `protobuf:"bytes,15,opt,name=group_concat_max_len,json=groupConcatMaxLen,proto3" json:"group_concat_max_len,omitempty"` + // The maximum size of internal in-memory temporary tables. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_tmp_table_size) + TmpTableSize *wrappers.Int64Value `protobuf:"bytes,16,opt,name=tmp_table_size,json=tmpTableSize,proto3" json:"tmp_table_size,omitempty"` + // This variable sets the maximum size to which user-created MEMORY tables are permitted to grow. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_max_heap_table_size) + MaxHeapTableSize *wrappers.Int64Value `protobuf:"bytes,17,opt,name=max_heap_table_size,json=maxHeapTableSize,proto3" json:"max_heap_table_size,omitempty"` + // The servers default time zone. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_default-time-zone) + DefaultTimeZone string `protobuf:"bytes,18,opt,name=default_time_zone,json=defaultTimeZone,proto3" json:"default_time_zone,omitempty"` + // The servers default character set. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_character_set_server) + CharacterSetServer string `protobuf:"bytes,19,opt,name=character_set_server,json=characterSetServer,proto3" json:"character_set_server,omitempty"` + // The server default collation. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_collation_server) + CollationServer string `protobuf:"bytes,20,opt,name=collation_server,json=collationServer,proto3" json:"collation_server,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *MysqlConfig5_7) Reset() { *m = MysqlConfig5_7{} } @@ -240,6 +356,97 @@ func (m *MysqlConfig5_7) GetMaxAllowedPacket() *wrappers.Int64Value { return nil } +func (m *MysqlConfig5_7) GetDefaultAuthenticationPlugin() MysqlConfig5_7_AuthPlugin { + if m != nil { + return m.DefaultAuthenticationPlugin + } + return MysqlConfig5_7_AUTH_PLUGIN_UNSPECIFIED +} + +func (m *MysqlConfig5_7) GetInnodbFlushLogAtTrxCommit() *wrappers.Int64Value { + if m != nil { + return m.InnodbFlushLogAtTrxCommit + } + return nil +} + +func (m *MysqlConfig5_7) GetInnodbLockWaitTimeout() *wrappers.Int64Value { + if m != nil { + return m.InnodbLockWaitTimeout + } + return nil +} + +func (m *MysqlConfig5_7) GetTransactionIsolation() MysqlConfig5_7_TransactionIsolation { + if m != nil { + return m.TransactionIsolation + } + return MysqlConfig5_7_TRANSACTION_ISOLATION_UNSPECIFIED +} + +func (m *MysqlConfig5_7) GetInnodbPrintAllDeadlocks() *wrappers.BoolValue { + if m != nil { + return m.InnodbPrintAllDeadlocks + } + return nil +} + +func (m *MysqlConfig5_7) GetNetReadTimeout() *wrappers.Int64Value { + if m != nil { + return m.NetReadTimeout + } + return nil +} + +func (m *MysqlConfig5_7) GetNetWriteTimeout() *wrappers.Int64Value { + if m != nil { + return m.NetWriteTimeout + } + return nil +} + +func (m *MysqlConfig5_7) GetGroupConcatMaxLen() *wrappers.Int64Value { + if m != nil { + return m.GroupConcatMaxLen + } + return nil +} + +func (m *MysqlConfig5_7) GetTmpTableSize() *wrappers.Int64Value { + if m != nil { + return m.TmpTableSize + } + return nil +} + +func (m *MysqlConfig5_7) GetMaxHeapTableSize() *wrappers.Int64Value { + if m != nil { + return m.MaxHeapTableSize + } + return nil +} + +func (m *MysqlConfig5_7) GetDefaultTimeZone() string { + if m != nil { + return m.DefaultTimeZone + } + return "" +} + +func (m *MysqlConfig5_7) GetCharacterSetServer() string { + if m != nil { + return m.CharacterSetServer + } + return "" +} + +func (m *MysqlConfig5_7) GetCollationServer() string { + if m != nil { + return m.CollationServer + } + return "" +} + type MysqlConfigSet5_7 struct { // Effective settings for a MySQL 5.7 cluster (a combination of settings defined // in [user_config] and [default_config]). @@ -301,6 +508,8 @@ func (m *MysqlConfigSet5_7) GetDefaultConfig() *MysqlConfig5_7 { func init() { proto.RegisterEnum("yandex.cloud.mdb.mysql.v1.config.MysqlConfig5_7_SQLMode", MysqlConfig5_7_SQLMode_name, MysqlConfig5_7_SQLMode_value) + proto.RegisterEnum("yandex.cloud.mdb.mysql.v1.config.MysqlConfig5_7_AuthPlugin", MysqlConfig5_7_AuthPlugin_name, MysqlConfig5_7_AuthPlugin_value) + proto.RegisterEnum("yandex.cloud.mdb.mysql.v1.config.MysqlConfig5_7_TransactionIsolation", MysqlConfig5_7_TransactionIsolation_name, MysqlConfig5_7_TransactionIsolation_value) proto.RegisterType((*MysqlConfig5_7)(nil), "yandex.cloud.mdb.mysql.v1.config.MysqlConfig5_7") proto.RegisterType((*MysqlConfigSet5_7)(nil), "yandex.cloud.mdb.mysql.v1.config.MysqlConfigSet5_7") } @@ -310,66 +519,101 @@ func init() { } var fileDescriptor_6392ad3afb3c33c0 = []byte{ - // 971 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x95, 0x5d, 0x53, 0xe3, 0x36, - 0x17, 0xc7, 0x1f, 0x5e, 0x13, 0x14, 0x48, 0x84, 0x78, 0xcb, 0x86, 0xdd, 0x1d, 0x86, 0xab,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0xf5, 0x52, 0xe7, 0xad, 0xaf, 0xdb, - 0x66, 0x89, 0xa6, 0x77, 0xa1, 0xbb, 0x8a, 0x67, 0xc6, 0x37, 0x91, 0x59, 0xa0, 0x5f, 0x01, 0x32, - 0x2f, 0x39, 0x8c, 0x22, 0xfd, 0x59, 0x75, 0xe5, 0x75, 0xd8, 0xf9, 0x5d, 0x4d, 0x8a, 0x99, 0x97, - 0xdf, 0x33, 0x7a, 0x7c, 0xa8, 0xe6, 0xab, 0x95, 0xda, 0xd1, 0x41, 0xf5, 0xf0, 0xa8, 0x56, 0x3d, - 0x39, 0xa9, 0x9d, 0x72, 0x38, 0x0c, 0xef, 0x70, 0x4a, 0xf2, 0x13, 0xd0, 0xfe, 0x5f, 0x8b, 0x20, - 0x33, 0xab, 0x89, 0x76, 0xc0, 0x86, 0x59, 0x32, 0x87, 0xc8, 0x16, 0x15, 0x3e, 0xb1, 0xdd, 0x33, - 0x97, 0x38, 0xf0, 0x7f, 0x26, 0x80, 0x3d, 0x8f, 0x7d, 0x94, 0x2e, 0xbd, 0xc4, 0x9e, 0xeb, 0x48, - 0x07, 0x07, 0x44, 0xc0, 0x39, 0x54, 0x00, 0x39, 0x4c, 0x85, 0x2b, 0x9b, 0x2d, 0x66, 0x84, 0x79, - 0xf4, 0x16, 0x94, 0x08, 0xe7, 0x8c, 0xcb, 0x33, 0xc6, 0xa5, 0xe3, 0x5e, 0xba, 0xc2, 0x65, 0x54, - 0xd6, 0xaf, 0xe4, 0x27, 0xc2, 0x19, 0x5c, 0x30, 0xa4, 0x73, 0xb7, 0x71, 0x2e, 0x29, 0x0b, 0xa4, - 0xcf, 0x89, 0x4d, 0x1c, 0x42, 0x6d, 0x02, 0x17, 0x11, 0x04, 0xab, 0x6e, 0x83, 0x32, 0x4e, 0xa4, - 0xf0, 0xb1, 0x4d, 0xe0, 0x12, 0x7a, 0x05, 0xb6, 0x28, 0x93, 0xb8, 0x15, 0x30, 0x79, 0x89, 0xbd, - 0x16, 0x91, 0x8c, 0xa6, 0x94, 0x65, 0x54, 0x04, 0x9b, 0x94, 0xc9, 0x3a, 0xb6, 0x3f, 0x08, 0x0f, - 0x8b, 0x73, 0x49, 0x84, 0x8d, 0x7d, 0x22, 0x60, 0x06, 0x95, 0xc0, 0x36, 0x65, 0x92, 0xd0, 0x86, - 0x4b, 0x89, 0x14, 0xad, 0xba, 0x08, 0xdc, 0xa0, 0x15, 0xb8, 0x8c, 0xc2, 0x2c, 0xda, 0x05, 0x3b, - 0x94, 0x99, 0x27, 0x73, 0x1b, 0x94, 0x38, 0x26, 0x1a, 0x70, 0x6c, 0x27, 0xc1, 0x15, 0x53, 0x9f, - 0xb2, 0x84, 0x9f, 0x3c, 0x1c, 0x04, 0x68, 0x03, 0x14, 0x9e, 0x14, 0x97, 0xa6, 0x62, 0x0e, 0x6d, - 0x02, 0x48, 0x99, 0x3c, 0x73, 0x89, 0xe7, 0x48, 0xe6, 0x1b, 0xaf, 0x80, 0xab, 0x08, 0x81, 0x3c, - 0x65, 0xf2, 0x03, 0xb9, 0x7a, 0xd6, 0xd6, 0x66, 0x99, 0x01, 0xae, 0x7b, 0xe4, 0x59, 0xcd, 0xa3, - 0x6d, 0x80, 0x18, 0xf5, 0xae, 0xe4, 0x59, 0xcb, 0xf3, 0x64, 0x83, 0xb3, 0x96, 0x2f, 0xeb, 0x57, - 0xb0, 0x60, 0xce, 0xe6, 0x63, 0x47, 0xda, 0xe7, 0x98, 0xcb, 0x80, 0xa5, 0x61, 0x8f, 0xd0, 0x46, - 0x70, 0x0e, 0xa1, 0x39, 0x89, 0xef, 0xfa, 0x44, 0x48, 0x2c, 0xa4, 0xcd, 0xa8, 0x8d, 0x03, 0xb8, - 0x8e, 0xd6, 0xc1, 0x1a, 0x27, 0xd8, 0x33, 0xda, 0x99, 0xc7, 0x70, 0x00, 0x11, 0xda, 0x02, 0xeb, - 0x22, 0xe0, 0xae, 0x1d, 0x48, 0xec, 0x79, 0x69, 0x69, 0x01, 0x37, 0x92, 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f, 0xf1, 0xef, 0xf3, 0x3e, 0xd9, 0xb7, 0x97, 0x93, 0xec, 0xc3, 0xbf, 0x03, 0x00, - 0x00, 0xff, 0xff, 0xae, 0x44, 0x48, 0x11, 0xae, 0x06, 0x00, 0x00, + // 1525 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x96, 0xef, 0x6e, 0xdb, 0xba, + 0x15, 0xc0, 0x97, 0xa4, 0xcd, 0x1f, 0x26, 0xb1, 0x15, 0xc6, 0x69, 0xd5, 0xf4, 0xb6, 0xc8, 0x82, + 0x0d, 0xe8, 0x06, 0xc4, 0xb1, 0x9c, 0xe4, 0xa6, 0x40, 0xb1, 0x01, 0xb4, 0xcc, 0xd8, 0xda, 0x55, + 0x24, 0x85, 0x94, 0x93, 0xa5, 0xfb, 0x43, 0xc8, 0x36, 0xe3, 0x08, 0x95, 0x45, 0x57, 0xa6, 0x53, + 0xb7, 0x5f, 0xb6, 0x07, 0xd9, 0xfb, 0xe4, 0x5d, 0xf6, 0x08, 0xf9, 0x34, 0x90, 0xb2, 0x93, 0x9b, + 0xb5, 0x80, 0xd1, 0x7e, 0x93, 0xce, 0x9f, 0xdf, 0xe1, 0x39, 0x3c, 0x3c, 0x24, 0xd8, 0xff, 0x1c, + 0xa5, 0x5d, 0x3e, 0xde, 0xef, 0x24, 0x62, 0xd4, 0xdd, 0xef, 0x77, 0xdb, 0xfb, 0xfd, 0xcf, 0xc3, + 0x8f, 0xc9, 0xfe, 0x8d, 0xb5, 0xdf, 0x11, 0xe9, 0x55, 0xdc, 0xcb, 0xff, 0x8f, 0xd8, 0x71, 0x79, + 0x90, 0x09, 0x29, 0xe0, 0x4e, 0xee, 0x50, 0xd6, 0x0e, 0xe5, 0x7e, 0xb7, 0x5d, 0xd6, 0x06, 0xe5, + 0x1b, 0xab, 0x9c, 0x3b, 0x6c, 0xbf, 0xee, 0x09, 0xd1, 0x4b,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, 0xf9, 0x57, 0xf9, 0xde, 0xcb, 0x88, 0x14, 0xef, 0x49, 0xb9, 0x0c, 0x9e, 0x81, 0xd5, + 0xd1, 0x90, 0x67, 0x53, 0xee, 0xfc, 0x0f, 0x72, 0x81, 0x82, 0x4c, 0x90, 0x17, 0xa0, 0x30, 0x9d, + 0x57, 0x13, 0xea, 0xc2, 0x0f, 0x52, 0xd7, 0x27, 0x9c, 0x5c, 0x52, 0xcb, 0xc0, 0xef, 0x1e, 0x11, + 0xa2, 0x41, 0xfc, 0x2d, 0xca, 0xfb, 0xbf, 0xf4, 0x62, 0x79, 0x3d, 0x6a, 0x97, 0x3b, 0xa2, 0x3f, + 0x79, 0xe6, 0xef, 0xe5, 0x6f, 0xee, 0x9e, 0xd8, 0xeb, 0xf1, 0x54, 0x4f, 0xe2, 0x99, 0xef, 0xff, + 0x77, 0xfa, 0xbf, 0xbd, 0xa8, 0xad, 0x0f, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0x70, 0xb1, 0xe8, + 0xc7, 0x30, 0x0c, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/config/mysql5_7.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/config/mysql5_7.pbext.go new file mode 100644 index 000000000..0a9dd80c1 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/config/mysql5_7.pbext.go @@ -0,0 +1,99 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mysql + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *MysqlConfig5_7) SetInnodbBufferPoolSize(v *wrappers.Int64Value) { + m.InnodbBufferPoolSize = v +} + +func (m *MysqlConfig5_7) SetMaxConnections(v *wrappers.Int64Value) { + m.MaxConnections = v +} + +func (m *MysqlConfig5_7) SetLongQueryTime(v *wrappers.DoubleValue) { + m.LongQueryTime = v +} + +func (m *MysqlConfig5_7) SetGeneralLog(v *wrappers.BoolValue) { + m.GeneralLog = v +} + +func (m *MysqlConfig5_7) SetAuditLog(v *wrappers.BoolValue) { + m.AuditLog = v +} + +func (m *MysqlConfig5_7) SetSqlMode(v []MysqlConfig5_7_SQLMode) { + m.SqlMode = v +} + +func (m *MysqlConfig5_7) SetMaxAllowedPacket(v *wrappers.Int64Value) { + m.MaxAllowedPacket = v +} + +func (m *MysqlConfig5_7) SetDefaultAuthenticationPlugin(v MysqlConfig5_7_AuthPlugin) { + m.DefaultAuthenticationPlugin = v +} + +func (m *MysqlConfig5_7) SetInnodbFlushLogAtTrxCommit(v *wrappers.Int64Value) { + m.InnodbFlushLogAtTrxCommit = v +} + +func (m *MysqlConfig5_7) SetInnodbLockWaitTimeout(v *wrappers.Int64Value) { + m.InnodbLockWaitTimeout = v +} + +func (m *MysqlConfig5_7) SetTransactionIsolation(v MysqlConfig5_7_TransactionIsolation) { + m.TransactionIsolation = v +} + +func (m *MysqlConfig5_7) SetInnodbPrintAllDeadlocks(v *wrappers.BoolValue) { + m.InnodbPrintAllDeadlocks = v +} + +func (m *MysqlConfig5_7) SetNetReadTimeout(v *wrappers.Int64Value) { + m.NetReadTimeout = v +} + +func (m *MysqlConfig5_7) SetNetWriteTimeout(v *wrappers.Int64Value) { + m.NetWriteTimeout = v +} + +func (m *MysqlConfig5_7) SetGroupConcatMaxLen(v *wrappers.Int64Value) { + m.GroupConcatMaxLen = v +} + +func (m *MysqlConfig5_7) SetTmpTableSize(v *wrappers.Int64Value) { + m.TmpTableSize = v +} + +func (m *MysqlConfig5_7) SetMaxHeapTableSize(v *wrappers.Int64Value) { + m.MaxHeapTableSize = v +} + +func (m *MysqlConfig5_7) SetDefaultTimeZone(v string) { + m.DefaultTimeZone = v +} + +func (m *MysqlConfig5_7) SetCharacterSetServer(v string) { + m.CharacterSetServer = v +} + +func (m *MysqlConfig5_7) SetCollationServer(v string) { + m.CollationServer = v +} + +func (m *MysqlConfigSet5_7) SetEffectiveConfig(v *MysqlConfig5_7) { + m.EffectiveConfig = v +} + +func (m *MysqlConfigSet5_7) SetUserConfig(v *MysqlConfig5_7) { + m.UserConfig = v +} + +func (m *MysqlConfigSet5_7) SetDefaultConfig(v *MysqlConfig5_7) { + m.DefaultConfig = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/config/mysql8_0.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/config/mysql8_0.pb.go new file mode 100644 index 000000000..cef2e399c --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/config/mysql8_0.pb.go @@ -0,0 +1,587 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/mdb/mysql/v1/config/mysql8_0.proto + +package mysql + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type MysqlConfig8_0_SQLMode int32 + +const ( + MysqlConfig8_0_SQLMODE_UNSPECIFIED MysqlConfig8_0_SQLMode = 0 + MysqlConfig8_0_ALLOW_INVALID_DATES MysqlConfig8_0_SQLMode = 1 + MysqlConfig8_0_ANSI_QUOTES MysqlConfig8_0_SQLMode = 2 + MysqlConfig8_0_ERROR_FOR_DIVISION_BY_ZERO MysqlConfig8_0_SQLMode = 3 + MysqlConfig8_0_HIGH_NOT_PRECEDENCE MysqlConfig8_0_SQLMode = 4 + MysqlConfig8_0_IGNORE_SPACE MysqlConfig8_0_SQLMode = 5 + MysqlConfig8_0_NO_AUTO_VALUE_ON_ZERO MysqlConfig8_0_SQLMode = 6 + MysqlConfig8_0_NO_BACKSLASH_ESCAPES MysqlConfig8_0_SQLMode = 7 + MysqlConfig8_0_NO_ENGINE_SUBSTITUTION MysqlConfig8_0_SQLMode = 8 + MysqlConfig8_0_NO_UNSIGNED_SUBTRACTION MysqlConfig8_0_SQLMode = 9 + MysqlConfig8_0_NO_ZERO_DATE MysqlConfig8_0_SQLMode = 10 + MysqlConfig8_0_NO_ZERO_IN_DATE MysqlConfig8_0_SQLMode = 11 + MysqlConfig8_0_ONLY_FULL_GROUP_BY MysqlConfig8_0_SQLMode = 15 + MysqlConfig8_0_PAD_CHAR_TO_FULL_LENGTH MysqlConfig8_0_SQLMode = 16 + MysqlConfig8_0_PIPES_AS_CONCAT MysqlConfig8_0_SQLMode = 17 + MysqlConfig8_0_REAL_AS_FLOAT MysqlConfig8_0_SQLMode = 18 + MysqlConfig8_0_STRICT_ALL_TABLES MysqlConfig8_0_SQLMode = 19 + MysqlConfig8_0_STRICT_TRANS_TABLES MysqlConfig8_0_SQLMode = 20 + MysqlConfig8_0_TIME_TRUNCATE_FRACTIONAL MysqlConfig8_0_SQLMode = 21 + MysqlConfig8_0_ANSI MysqlConfig8_0_SQLMode = 22 + MysqlConfig8_0_TRADITIONAL MysqlConfig8_0_SQLMode = 23 +) + +var MysqlConfig8_0_SQLMode_name = map[int32]string{ + 0: "SQLMODE_UNSPECIFIED", + 1: "ALLOW_INVALID_DATES", + 2: "ANSI_QUOTES", + 3: "ERROR_FOR_DIVISION_BY_ZERO", + 4: "HIGH_NOT_PRECEDENCE", + 5: "IGNORE_SPACE", + 6: "NO_AUTO_VALUE_ON_ZERO", + 7: "NO_BACKSLASH_ESCAPES", + 8: "NO_ENGINE_SUBSTITUTION", + 9: "NO_UNSIGNED_SUBTRACTION", + 10: "NO_ZERO_DATE", + 11: "NO_ZERO_IN_DATE", + 15: "ONLY_FULL_GROUP_BY", + 16: "PAD_CHAR_TO_FULL_LENGTH", + 17: "PIPES_AS_CONCAT", + 18: "REAL_AS_FLOAT", + 19: "STRICT_ALL_TABLES", + 20: "STRICT_TRANS_TABLES", + 21: "TIME_TRUNCATE_FRACTIONAL", + 22: "ANSI", + 23: "TRADITIONAL", +} + +var MysqlConfig8_0_SQLMode_value = map[string]int32{ + "SQLMODE_UNSPECIFIED": 0, + "ALLOW_INVALID_DATES": 1, + "ANSI_QUOTES": 2, + "ERROR_FOR_DIVISION_BY_ZERO": 3, + "HIGH_NOT_PRECEDENCE": 4, + "IGNORE_SPACE": 5, + "NO_AUTO_VALUE_ON_ZERO": 6, + "NO_BACKSLASH_ESCAPES": 7, + "NO_ENGINE_SUBSTITUTION": 8, + "NO_UNSIGNED_SUBTRACTION": 9, + "NO_ZERO_DATE": 10, + "NO_ZERO_IN_DATE": 11, + "ONLY_FULL_GROUP_BY": 15, + "PAD_CHAR_TO_FULL_LENGTH": 16, + "PIPES_AS_CONCAT": 17, + "REAL_AS_FLOAT": 18, + "STRICT_ALL_TABLES": 19, + "STRICT_TRANS_TABLES": 20, + "TIME_TRUNCATE_FRACTIONAL": 21, + "ANSI": 22, + "TRADITIONAL": 23, +} + +func (x MysqlConfig8_0_SQLMode) String() string { + return proto.EnumName(MysqlConfig8_0_SQLMode_name, int32(x)) +} + +func (MysqlConfig8_0_SQLMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_d7b57328ffba4745, []int{0, 0} +} + +type MysqlConfig8_0_AuthPlugin int32 + +const ( + MysqlConfig8_0_AUTH_PLUGIN_UNSPECIFIED MysqlConfig8_0_AuthPlugin = 0 + // Using [Native Pluggable Authentication](https://dev.mysql.com/doc/refman/8.0/en/native-pluggable-authentication.html). + MysqlConfig8_0_MYSQL_NATIVE_PASSWORD MysqlConfig8_0_AuthPlugin = 1 + // Using [Caching SHA-2 Pluggable Authentication](https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html). + MysqlConfig8_0_CACHING_SHA2_PASSWORD MysqlConfig8_0_AuthPlugin = 2 + // Using [SHA-256 Pluggable Authentication](https://dev.mysql.com/doc/refman/8.0/en/sha256-pluggable-authentication.html). + MysqlConfig8_0_SHA256_PASSWORD MysqlConfig8_0_AuthPlugin = 3 +) + +var MysqlConfig8_0_AuthPlugin_name = map[int32]string{ + 0: "AUTH_PLUGIN_UNSPECIFIED", + 1: "MYSQL_NATIVE_PASSWORD", + 2: "CACHING_SHA2_PASSWORD", + 3: "SHA256_PASSWORD", +} + +var MysqlConfig8_0_AuthPlugin_value = map[string]int32{ + "AUTH_PLUGIN_UNSPECIFIED": 0, + "MYSQL_NATIVE_PASSWORD": 1, + "CACHING_SHA2_PASSWORD": 2, + "SHA256_PASSWORD": 3, +} + +func (x MysqlConfig8_0_AuthPlugin) String() string { + return proto.EnumName(MysqlConfig8_0_AuthPlugin_name, int32(x)) +} + +func (MysqlConfig8_0_AuthPlugin) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_d7b57328ffba4745, []int{0, 1} +} + +type MysqlConfig8_0_TransactionIsolation int32 + +const ( + MysqlConfig8_0_TRANSACTION_ISOLATION_UNSPECIFIED MysqlConfig8_0_TransactionIsolation = 0 + MysqlConfig8_0_READ_COMMITTED MysqlConfig8_0_TransactionIsolation = 1 + MysqlConfig8_0_REPEATABLE_READ MysqlConfig8_0_TransactionIsolation = 2 + MysqlConfig8_0_SERIALIZABLE MysqlConfig8_0_TransactionIsolation = 3 +) + +var MysqlConfig8_0_TransactionIsolation_name = map[int32]string{ + 0: "TRANSACTION_ISOLATION_UNSPECIFIED", + 1: "READ_COMMITTED", + 2: "REPEATABLE_READ", + 3: "SERIALIZABLE", +} + +var MysqlConfig8_0_TransactionIsolation_value = map[string]int32{ + "TRANSACTION_ISOLATION_UNSPECIFIED": 0, + "READ_COMMITTED": 1, + "REPEATABLE_READ": 2, + "SERIALIZABLE": 3, +} + +func (x MysqlConfig8_0_TransactionIsolation) String() string { + return proto.EnumName(MysqlConfig8_0_TransactionIsolation_name, int32(x)) +} + +func (MysqlConfig8_0_TransactionIsolation) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_d7b57328ffba4745, []int{0, 2} +} + +// Options and structure of `MysqlConfig8_0` reflects MySQL 8.0 configuration file +type MysqlConfig8_0 struct { + // Size of the InnoDB buffer pool used for caching table and index data. + // + // For details, see [MySQL documentation for the parameter](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_buffer_pool_size). + InnodbBufferPoolSize *wrappers.Int64Value `protobuf:"bytes,1,opt,name=innodb_buffer_pool_size,json=innodbBufferPoolSize,proto3" json:"innodb_buffer_pool_size,omitempty"` + // The maximum permitted number of simultaneous client connections. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_connections). + MaxConnections *wrappers.Int64Value `protobuf:"bytes,2,opt,name=max_connections,json=maxConnections,proto3" json:"max_connections,omitempty"` + // Time that it takes to process a query before it is considered slow. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_long_query_time). + LongQueryTime *wrappers.DoubleValue `protobuf:"bytes,3,opt,name=long_query_time,json=longQueryTime,proto3" json:"long_query_time,omitempty"` + // Enable writing of general query log of MySQL. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_general_log). + GeneralLog *wrappers.BoolValue `protobuf:"bytes,4,opt,name=general_log,json=generalLog,proto3" json:"general_log,omitempty"` + // Enable writing of audit log of MySQL. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/audit-log-reference.html#audit-log-options-variables). + AuditLog *wrappers.BoolValue `protobuf:"bytes,5,opt,name=audit_log,json=auditLog,proto3" json:"audit_log,omitempty"` + // Server SQL mode of MySQL. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sql-mode-setting). + SqlMode []MysqlConfig8_0_SQLMode `protobuf:"varint,6,rep,packed,name=sql_mode,json=sqlMode,proto3,enum=yandex.cloud.mdb.mysql.v1.config.MysqlConfig8_0_SQLMode" json:"sql_mode,omitempty"` + // The maximum size in bytes of one packet. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_allowed_packet). + MaxAllowedPacket *wrappers.Int64Value `protobuf:"bytes,7,opt,name=max_allowed_packet,json=maxAllowedPacket,proto3" json:"max_allowed_packet,omitempty"` + // Authentication plugin used in the managed MySQL cluster. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_default_authentication_plugin) + DefaultAuthenticationPlugin MysqlConfig8_0_AuthPlugin `protobuf:"varint,8,opt,name=default_authentication_plugin,json=defaultAuthenticationPlugin,proto3,enum=yandex.cloud.mdb.mysql.v1.config.MysqlConfig8_0_AuthPlugin" json:"default_authentication_plugin,omitempty"` + // Transaction log flush behaviour. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_flush_log_at_trx_commit) + InnodbFlushLogAtTrxCommit *wrappers.Int64Value `protobuf:"bytes,9,opt,name=innodb_flush_log_at_trx_commit,json=innodbFlushLogAtTrxCommit,proto3" json:"innodb_flush_log_at_trx_commit,omitempty"` + // Max time in seconds for a transaction to wait for a row lock + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_lock_wait_timeout) + InnodbLockWaitTimeout *wrappers.Int64Value `protobuf:"bytes,10,opt,name=innodb_lock_wait_timeout,json=innodbLockWaitTimeout,proto3" json:"innodb_lock_wait_timeout,omitempty"` + // Default transaction isolation level. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_transaction_isolation) + TransactionIsolation MysqlConfig8_0_TransactionIsolation `protobuf:"varint,11,opt,name=transaction_isolation,json=transactionIsolation,proto3,enum=yandex.cloud.mdb.mysql.v1.config.MysqlConfig8_0_TransactionIsolation" json:"transaction_isolation,omitempty"` + // Print information about deadlocks in error log + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_print_all_deadlocks) + InnodbPrintAllDeadlocks *wrappers.BoolValue `protobuf:"bytes,12,opt,name=innodb_print_all_deadlocks,json=innodbPrintAllDeadlocks,proto3" json:"innodb_print_all_deadlocks,omitempty"` + // The number of seconds to wait for more data from a connection before aborting the read. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_net_read_timeout) + NetReadTimeout *wrappers.Int64Value `protobuf:"bytes,13,opt,name=net_read_timeout,json=netReadTimeout,proto3" json:"net_read_timeout,omitempty"` + // The number of seconds to wait for a block to be written to a connection before aborting the write. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_net_write_timeout) + NetWriteTimeout *wrappers.Int64Value `protobuf:"bytes,14,opt,name=net_write_timeout,json=netWriteTimeout,proto3" json:"net_write_timeout,omitempty"` + // The maximum permitted result length in bytes for the GROUP_CONCAT() function. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_group_concat_max_len) + GroupConcatMaxLen *wrappers.Int64Value `protobuf:"bytes,15,opt,name=group_concat_max_len,json=groupConcatMaxLen,proto3" json:"group_concat_max_len,omitempty"` + // The maximum size of internal in-memory temporary tables. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_tmp_table_size) + TmpTableSize *wrappers.Int64Value `protobuf:"bytes,16,opt,name=tmp_table_size,json=tmpTableSize,proto3" json:"tmp_table_size,omitempty"` + // This variable sets the maximum size to which user-created MEMORY tables are permitted to grow. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_heap_table_size) + MaxHeapTableSize *wrappers.Int64Value `protobuf:"bytes,17,opt,name=max_heap_table_size,json=maxHeapTableSize,proto3" json:"max_heap_table_size,omitempty"` + // The servers default time zone. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/server-options.html#option_mysqld_default-time-zone) + DefaultTimeZone string `protobuf:"bytes,18,opt,name=default_time_zone,json=defaultTimeZone,proto3" json:"default_time_zone,omitempty"` + // The servers default character set. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_character_set_server) + CharacterSetServer string `protobuf:"bytes,19,opt,name=character_set_server,json=characterSetServer,proto3" json:"character_set_server,omitempty"` + // The server default collation. + // + // For details, see [MySQL documentation for the variable](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_collation_server) + CollationServer string `protobuf:"bytes,20,opt,name=collation_server,json=collationServer,proto3" json:"collation_server,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MysqlConfig8_0) Reset() { *m = MysqlConfig8_0{} } +func (m *MysqlConfig8_0) String() string { return proto.CompactTextString(m) } +func (*MysqlConfig8_0) ProtoMessage() {} +func (*MysqlConfig8_0) Descriptor() ([]byte, []int) { + return fileDescriptor_d7b57328ffba4745, []int{0} +} + +func (m *MysqlConfig8_0) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MysqlConfig8_0.Unmarshal(m, b) +} +func (m *MysqlConfig8_0) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MysqlConfig8_0.Marshal(b, m, deterministic) +} +func (m *MysqlConfig8_0) XXX_Merge(src proto.Message) { + xxx_messageInfo_MysqlConfig8_0.Merge(m, src) +} +func (m *MysqlConfig8_0) XXX_Size() int { + return xxx_messageInfo_MysqlConfig8_0.Size(m) +} +func (m *MysqlConfig8_0) XXX_DiscardUnknown() { + xxx_messageInfo_MysqlConfig8_0.DiscardUnknown(m) +} + +var xxx_messageInfo_MysqlConfig8_0 proto.InternalMessageInfo + +func (m *MysqlConfig8_0) GetInnodbBufferPoolSize() *wrappers.Int64Value { + if m != nil { + return m.InnodbBufferPoolSize + } + return nil +} + +func (m *MysqlConfig8_0) GetMaxConnections() *wrappers.Int64Value { + if m != nil { + return m.MaxConnections + } + return nil +} + +func (m *MysqlConfig8_0) GetLongQueryTime() *wrappers.DoubleValue { + if m != nil { + return m.LongQueryTime + } + return nil +} + +func (m *MysqlConfig8_0) GetGeneralLog() *wrappers.BoolValue { + if m != nil { + return m.GeneralLog + } + return nil +} + +func (m *MysqlConfig8_0) GetAuditLog() *wrappers.BoolValue { + if m != nil { + return m.AuditLog + } + return nil +} + +func (m *MysqlConfig8_0) GetSqlMode() []MysqlConfig8_0_SQLMode { + if m != nil { + return m.SqlMode + } + return nil +} + +func (m *MysqlConfig8_0) GetMaxAllowedPacket() *wrappers.Int64Value { + if m != nil { + return m.MaxAllowedPacket + } + return nil +} + +func (m *MysqlConfig8_0) GetDefaultAuthenticationPlugin() MysqlConfig8_0_AuthPlugin { + if m != nil { + return m.DefaultAuthenticationPlugin + } + return MysqlConfig8_0_AUTH_PLUGIN_UNSPECIFIED +} + +func (m *MysqlConfig8_0) GetInnodbFlushLogAtTrxCommit() *wrappers.Int64Value { + if m != nil { + return m.InnodbFlushLogAtTrxCommit + } + return nil +} + +func (m *MysqlConfig8_0) GetInnodbLockWaitTimeout() *wrappers.Int64Value { + if m != nil { + return m.InnodbLockWaitTimeout + } + return nil +} + +func (m *MysqlConfig8_0) GetTransactionIsolation() MysqlConfig8_0_TransactionIsolation { + if m != nil { + return m.TransactionIsolation + } + return MysqlConfig8_0_TRANSACTION_ISOLATION_UNSPECIFIED +} + +func (m *MysqlConfig8_0) GetInnodbPrintAllDeadlocks() *wrappers.BoolValue { + if m != nil { + return m.InnodbPrintAllDeadlocks + } + return nil +} + +func (m *MysqlConfig8_0) GetNetReadTimeout() *wrappers.Int64Value { + if m != nil { + return m.NetReadTimeout + } + return nil +} + +func (m *MysqlConfig8_0) GetNetWriteTimeout() *wrappers.Int64Value { + if m != nil { + return m.NetWriteTimeout + } + return nil +} + +func (m *MysqlConfig8_0) GetGroupConcatMaxLen() *wrappers.Int64Value { + if m != nil { + return m.GroupConcatMaxLen + } + return nil +} + +func (m *MysqlConfig8_0) GetTmpTableSize() *wrappers.Int64Value { + if m != nil { + return m.TmpTableSize + } + return nil +} + +func (m *MysqlConfig8_0) GetMaxHeapTableSize() *wrappers.Int64Value { + if m != nil { + return m.MaxHeapTableSize + } + return nil +} + +func (m *MysqlConfig8_0) GetDefaultTimeZone() string { + if m != nil { + return m.DefaultTimeZone + } + return "" +} + +func (m *MysqlConfig8_0) GetCharacterSetServer() string { + if m != nil { + return m.CharacterSetServer + } + return "" +} + +func (m *MysqlConfig8_0) GetCollationServer() string { + if m != nil { + return m.CollationServer + } + return "" +} + +type MysqlConfigSet8_0 struct { + // Effective settings for a MySQL 8.0 cluster (a combination of settings defined + // in [user_config] and [default_config]). + EffectiveConfig *MysqlConfig8_0 `protobuf:"bytes,1,opt,name=effective_config,json=effectiveConfig,proto3" json:"effective_config,omitempty"` + // User-defined settings for a MySQL 8.0 cluster. + UserConfig *MysqlConfig8_0 `protobuf:"bytes,2,opt,name=user_config,json=userConfig,proto3" json:"user_config,omitempty"` + // Default configuration for a MySQL 8.0 cluster. + DefaultConfig *MysqlConfig8_0 `protobuf:"bytes,3,opt,name=default_config,json=defaultConfig,proto3" json:"default_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MysqlConfigSet8_0) Reset() { *m = MysqlConfigSet8_0{} } +func (m *MysqlConfigSet8_0) String() string { return proto.CompactTextString(m) } +func (*MysqlConfigSet8_0) ProtoMessage() {} +func (*MysqlConfigSet8_0) Descriptor() ([]byte, []int) { + return fileDescriptor_d7b57328ffba4745, []int{1} +} + +func (m *MysqlConfigSet8_0) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MysqlConfigSet8_0.Unmarshal(m, b) +} +func (m *MysqlConfigSet8_0) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MysqlConfigSet8_0.Marshal(b, m, deterministic) +} +func (m *MysqlConfigSet8_0) XXX_Merge(src proto.Message) { + xxx_messageInfo_MysqlConfigSet8_0.Merge(m, src) +} +func (m *MysqlConfigSet8_0) XXX_Size() int { + return xxx_messageInfo_MysqlConfigSet8_0.Size(m) +} +func (m *MysqlConfigSet8_0) XXX_DiscardUnknown() { + xxx_messageInfo_MysqlConfigSet8_0.DiscardUnknown(m) +} + +var xxx_messageInfo_MysqlConfigSet8_0 proto.InternalMessageInfo + +func (m *MysqlConfigSet8_0) GetEffectiveConfig() *MysqlConfig8_0 { + if m != nil { + return m.EffectiveConfig + } + return nil +} + +func (m *MysqlConfigSet8_0) GetUserConfig() *MysqlConfig8_0 { + if m != nil { + return m.UserConfig + } + return nil +} + +func (m *MysqlConfigSet8_0) GetDefaultConfig() *MysqlConfig8_0 { + if m != nil { + return m.DefaultConfig + } + return nil +} + +func init() { + proto.RegisterEnum("yandex.cloud.mdb.mysql.v1.config.MysqlConfig8_0_SQLMode", MysqlConfig8_0_SQLMode_name, MysqlConfig8_0_SQLMode_value) + proto.RegisterEnum("yandex.cloud.mdb.mysql.v1.config.MysqlConfig8_0_AuthPlugin", MysqlConfig8_0_AuthPlugin_name, MysqlConfig8_0_AuthPlugin_value) + proto.RegisterEnum("yandex.cloud.mdb.mysql.v1.config.MysqlConfig8_0_TransactionIsolation", MysqlConfig8_0_TransactionIsolation_name, MysqlConfig8_0_TransactionIsolation_value) + proto.RegisterType((*MysqlConfig8_0)(nil), "yandex.cloud.mdb.mysql.v1.config.MysqlConfig8_0") + proto.RegisterType((*MysqlConfigSet8_0)(nil), "yandex.cloud.mdb.mysql.v1.config.MysqlConfigSet8_0") +} + +func init() { + proto.RegisterFile("yandex/cloud/mdb/mysql/v1/config/mysql8_0.proto", fileDescriptor_d7b57328ffba4745) +} + +var fileDescriptor_d7b57328ffba4745 = []byte{ + // 1439 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x96, 0xdb, 0x4f, 0xe3, 0xca, + 0x19, 0xc0, 0x0b, 0xd9, 0xb3, 0xc0, 0xb0, 0x24, 0xce, 0x10, 0x76, 0xbd, 0xec, 0x39, 0x2b, 0x8a, + 0x5a, 0x69, 0x5b, 0x29, 0x17, 0x07, 0xf6, 0x2c, 0xd2, 0xaa, 0x95, 0x26, 0x8e, 0x49, 0xdc, 0x1a, + 0x3b, 0x8c, 0x1d, 0xd0, 0xd2, 0xcb, 0x68, 0x92, 0x4c, 0x82, 0xb5, 0x8e, 0x27, 0x38, 0x63, 0x60, + 0x79, 0xe9, 0x4b, 0xff, 0x8c, 0xfe, 0x3f, 0xfc, 0x3f, 0x7d, 0xe4, 0xa9, 0x9a, 0x71, 0x02, 0x87, + 0x9e, 0x95, 0x22, 0x78, 0x73, 0xbe, 0xcb, 0xef, 0x9b, 0xef, 0x32, 0x5f, 0x06, 0x54, 0xbf, 0xd1, + 0x78, 0xc0, 0xae, 0xab, 0xfd, 0x88, 0xa7, 0x83, 0xea, 0x78, 0xd0, 0xab, 0x8e, 0xbf, 0x4d, 0x2f, + 0xa2, 0xea, 0xa5, 0x51, 0xed, 0xf3, 0x78, 0x18, 0x8e, 0xb2, 0xdf, 0x07, 0xa4, 0x56, 0x99, 0x24, + 0x5c, 0x70, 0xb8, 0x93, 0x39, 0x54, 0x94, 0x43, 0x65, 0x3c, 0xe8, 0x55, 0x94, 0x41, 0xe5, 0xd2, + 0xa8, 0x64, 0x0e, 0xdb, 0xef, 0x47, 0x9c, 0x8f, 0x22, 0x56, 0x55, 0xf6, 0xbd, 0x74, 0x58, 0xbd, + 0x4a, 0xe8, 0x64, 0xc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} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/config/mysql8_0.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/config/mysql8_0.pbext.go new file mode 100644 index 000000000..da4240fa5 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/config/mysql8_0.pbext.go @@ -0,0 +1,99 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mysql + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *MysqlConfig8_0) SetInnodbBufferPoolSize(v *wrappers.Int64Value) { + m.InnodbBufferPoolSize = v +} + +func (m *MysqlConfig8_0) SetMaxConnections(v *wrappers.Int64Value) { + m.MaxConnections = v +} + +func (m *MysqlConfig8_0) SetLongQueryTime(v *wrappers.DoubleValue) { + m.LongQueryTime = v +} + +func (m *MysqlConfig8_0) SetGeneralLog(v *wrappers.BoolValue) { + m.GeneralLog = v +} + +func (m *MysqlConfig8_0) SetAuditLog(v *wrappers.BoolValue) { + m.AuditLog = v +} + +func (m *MysqlConfig8_0) SetSqlMode(v []MysqlConfig8_0_SQLMode) { + m.SqlMode = v +} + +func (m *MysqlConfig8_0) SetMaxAllowedPacket(v *wrappers.Int64Value) { + m.MaxAllowedPacket = v +} + +func (m *MysqlConfig8_0) SetDefaultAuthenticationPlugin(v MysqlConfig8_0_AuthPlugin) { + m.DefaultAuthenticationPlugin = v +} + +func (m *MysqlConfig8_0) SetInnodbFlushLogAtTrxCommit(v *wrappers.Int64Value) { + m.InnodbFlushLogAtTrxCommit = v +} + +func (m *MysqlConfig8_0) SetInnodbLockWaitTimeout(v *wrappers.Int64Value) { + m.InnodbLockWaitTimeout = v +} + +func (m *MysqlConfig8_0) SetTransactionIsolation(v MysqlConfig8_0_TransactionIsolation) { + m.TransactionIsolation = v +} + +func (m *MysqlConfig8_0) SetInnodbPrintAllDeadlocks(v *wrappers.BoolValue) { + m.InnodbPrintAllDeadlocks = v +} + +func (m *MysqlConfig8_0) SetNetReadTimeout(v *wrappers.Int64Value) { + m.NetReadTimeout = v +} + +func (m *MysqlConfig8_0) SetNetWriteTimeout(v *wrappers.Int64Value) { + m.NetWriteTimeout = v +} + +func (m *MysqlConfig8_0) SetGroupConcatMaxLen(v *wrappers.Int64Value) { + m.GroupConcatMaxLen = v +} + +func (m *MysqlConfig8_0) SetTmpTableSize(v *wrappers.Int64Value) { + m.TmpTableSize = v +} + +func (m *MysqlConfig8_0) SetMaxHeapTableSize(v *wrappers.Int64Value) { + m.MaxHeapTableSize = v +} + +func (m *MysqlConfig8_0) SetDefaultTimeZone(v string) { + m.DefaultTimeZone = v +} + +func (m *MysqlConfig8_0) SetCharacterSetServer(v string) { + m.CharacterSetServer = v +} + +func (m *MysqlConfig8_0) SetCollationServer(v string) { + m.CollationServer = v +} + +func (m *MysqlConfigSet8_0) SetEffectiveConfig(v *MysqlConfig8_0) { + m.EffectiveConfig = v +} + +func (m *MysqlConfigSet8_0) SetUserConfig(v *MysqlConfig8_0) { + m.UserConfig = v +} + +func (m *MysqlConfigSet8_0) SetDefaultConfig(v *MysqlConfig8_0) { + m.DefaultConfig = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/database.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/database.pb.go index 4d2eaed10..2a7bc41ca 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/database.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/database.pb.go @@ -122,7 +122,7 @@ func init() { } var fileDescriptor_b0f1bbaaf00a6a25 = []byte{ - // 235 bytes of a gzipped FileDescriptorProto + // 245 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xa8, 0x4c, 0xcc, 0x4b, 0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0xcf, 0x4d, 0x49, 0xd2, 0xcf, 0xad, 0x2c, 0x2e, 0xcc, 0xd1, 0x2f, 0x33, 0xd4, 0x4f, 0x49, 0x2c, 0x49, 0x4c, 0x4a, 0x2c, 0x4e, 0xd5, 0x2b, @@ -134,8 +134,9 @@ var fileDescriptor_b0f1bbaaf00a6a25 = []byte{ 0x84, 0x8a, 0x78, 0xa6, 0x28, 0x39, 0x71, 0xf1, 0xc0, 0xb4, 0x07, 0x17, 0xa4, 0x26, 0x0b, 0x19, 0x21, 0x1b, 0xe1, 0x24, 0xf7, 0xe2, 0xb8, 0x21, 0xe3, 0xa7, 0xe3, 0x86, 0x7c, 0xd1, 0x89, 0xba, 0x55, 0x8e, 0xba, 0x51, 0x06, 0xba, 0x96, 0xf1, 0xba, 0xb1, 0x5a, 0x5d, 0x27, 0x0c, 0x59, 0x6c, - 0x6c, 0xcd, 0x8c, 0x21, 0x56, 0x38, 0xb9, 0x46, 0x39, 0xa7, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, - 0x25, 0xe7, 0xe7, 0xea, 0x43, 0x9c, 0xab, 0x0b, 0x71, 0x6e, 0x7a, 0xbe, 0x6e, 0x7a, 0x6a, 0x1e, - 0xd8, 0xa5, 0xfa, 0x38, 0x03, 0xc3, 0x1a, 0xcc, 0x48, 0x62, 0x03, 0x2b, 0x33, 0x06, 0x04, 0x00, - 0x00, 0xff, 0xff, 0xec, 0x26, 0x38, 0x79, 0x36, 0x01, 0x00, 0x00, + 0x6c, 0xcd, 0x8c, 0x21, 0x56, 0x38, 0xa5, 0x70, 0xc9, 0xa2, 0x38, 0x3f, 0xb1, 0x20, 0x13, 0xc5, + 0x0b, 0x51, 0xce, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x10, 0x95, + 0xba, 0x10, 0xdf, 0xa4, 0xe7, 0xeb, 0xa6, 0xa7, 0xe6, 0x81, 0x3d, 0xa2, 0x8f, 0x33, 0xac, 0xac, + 0xc1, 0x8c, 0x24, 0x36, 0xb0, 0x32, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe5, 0xbc, 0xb6, + 0x52, 0x55, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/database.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/database.pbext.go new file mode 100644 index 000000000..d72c6c31d --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/database.pbext.go @@ -0,0 +1,15 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mysql + +func (m *Database) SetName(v string) { + m.Name = v +} + +func (m *Database) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DatabaseSpec) SetName(v string) { + m.Name = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/database_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/database_service.pb.go index 7b298a80f..cd428248f 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/database_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/database_service.pb.go @@ -407,60 +407,60 @@ func init() { } var fileDescriptor_2a4229dfcf64927d = []byte{ - // 693 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4d, 0x4f, 0x13, 0x41, - 0x18, 0xce, 0x52, 0x6c, 0xe8, 0x00, 0x92, 0x4c, 0x2c, 0xa9, 0x8d, 0x18, 0x5c, 0x12, 0x68, 0x6a, - 0x76, 0x67, 0x17, 0x22, 0x09, 0x0a, 0x07, 0x5a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0x57, 0xb2, 0x79, 0x7c, 0x96, 0x97, - 0xbb, 0x76, 0xc3, 0x50, 0x73, 0x87, 0x0b, 0x98, 0x97, 0x2f, 0x2f, 0xe0, 0xa1, 0x94, 0x87, 0x3f, - 0x24, 0x90, 0x14, 0x26, 0xec, 0xa9, 0xa1, 0x63, 0xcb, 0xf4, 0xa3, 0xe1, 0xdd, 0xf1, 0x59, 0x1e, - 0x75, 0xf5, 0x79, 0x5a, 0x8c, 0x37, 0x31, 0x3b, 0xcc, 0xda, 0x6b, 0x75, 0xd5, 0x0d, 0xd8, 0xae, - 0x30, 0x52, 0xfe, 0xea, 0x46, 0x2a, 0xac, 0x6e, 0x16, 0x6d, 0x87, 0xbd, 0xa9, 0x99, 0x6a, 0xd9, - 0x77, 0x91, 0x20, 0xab, 0x88, 0x21, 0x66, 0xfb, 0x8a, 0x4d, 0x3c, 0x5e, 0x18, 0x75, 0x9d, 0x6e, - 0x8f, 0xf8, 0xc2, 0x4c, 0x72, 0xd8, 0xdc, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4c, 0xce, 0x0f, - 0xe4, 0xdb, 0x07, 0x00, 0x00, + // 701 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4d, 0x4f, 0x13, 0x4f, + 0x1c, 0xce, 0x52, 0xfe, 0x0d, 0x1d, 0xe0, 0x4f, 0x32, 0xb1, 0xa4, 0x36, 0x62, 0x70, 0x49, 0xa0, + 0xa9, 0xd9, 0x9d, 0x5d, 0x88, 0x24, 0x28, 0x1c, 0x68, 0x31, 0x84, 0xc4, 0xb7, 0x2c, 0x9e, 0x10, + 0xd3, 0xcc, 0x76, 0xc7, 0x75, 0x63, 0xf7, 0x85, 0xce, 0xb4, 0xe1, 0x45, 0x0e, 0x72, 0x30, 0x91, + 0xab, 0x89, 0xf1, 0x03, 0xf8, 0x09, 0xf8, 0x06, 0x9e, 0xe0, 0x8c, 0x47, 0xaf, 0x1e, 0x3c, 0x7b, + 0xf4, 0x64, 0x76, 0xa6, 0xdd, 0x76, 0xa1, 0xad, 0xc5, 0x72, 0x9b, 0xcc, 0xef, 0x79, 0x66, 0x9e, + 0x67, 0xe6, 0xf9, 0xcd, 0x00, 0x6d, 0x0f, 0x7b, 0x16, 0xd9, 0x45, 0xe5, 0x8a, 0x5f, 0xb3, 0x90, + 0x6b, 0x99, 0xc8, 0xdd, 0xa3, 0x3b, 0x15, 0x54, 0xd7, 0x91, 0x85, 0x19, 0x36, 0x31, 0x25, 0x25, + 0x4a, 0xaa, 0x75, 0xa7, 0x4c, 0xd4, 0xa0, 0xea, 0x33, 0x1f, 0xde, 0x14, 0x0c, 0x95, 0x33, 0x54, + 0xd7, 0x32, 0x55, 0xce, 0x50, 0xeb, 0x7a, 0xf6, 0x96, 0xed, 0xfb, 0x76, 0x85, 0x20, 0x1c, 0x38, + 0x08, 0x7b, 0x9e, 0xcf, 0x30, 0x73, 0x7c, 0x8f, 0x0a, 0x62, 0x76, 0x3a, 0xb6, 0x55, 0x88, 0xf1, + 0x03, 0x52, 0xe5, 0x90, 0x06, 0x62, 0x36, 0x86, 0x88, 0xaa, 0x97, 0x70, 0x53, 0x31, 0x5c, 0x1d, + 0x57, 0x1c, 0xab, 0xbd, 0x9c, 0xfb, 0xbb, 0x27, 0x81, 0x94, 0xdf, 0x4b, 0x00, 0xae, 0x13, 0xb6, + 0xd6, 0x98, 0x35, 0xc8, 0x4e, 0x8d, 0x50, 0x06, 0xef, 0x02, 0x50, 0xae, 0xd4, 0x28, 0x23, 0xd5, + 0x92, 0x63, 0x65, 0xa4, 0x69, 0x29, 0x97, 0x2a, 0x8c, 0xfd, 0x3c, 0xd5, 0xa5, 0xe3, 0x33, 0x7d, + 0x78, 0x79, 0xe5, 0x9e, 0x66, 0xa4, 0x1a, 0xf5, 0x0d, 0x0b, 0x16, 0xc1, 0x78, 0x74, 0x52, 0x1e, + 0x76, 0x49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x39, 0xcf, + 0xa3, 0xae, 0x39, 0x4f, 0x8b, 0xef, 0x4d, 0xfc, 0x1d, 0x66, 0xed, 0x95, 0xfa, 0xd0, 0x0d, 0xd8, + 0x9e, 0x08, 0x52, 0x7e, 0xf0, 0x20, 0x15, 0x2c, 0x30, 0x15, 0x53, 0x88, 0x03, 0x27, 0xe6, 0x6b, + 0xab, 0x68, 0x3b, 0xec, 0x75, 0xcd, 0x54, 0xcb, 0xbe, 0x8b, 0x04, 0x52, 0x11, 0x7f, 0x9c, 0xed, + 0x2b, 0x36, 0xf1, 0xb8, 0x2e, 0xd4, 0xf5, 0xf3, 0x7b, 0xc0, 0x07, 0x66, 0x92, 0xc3, 0x16, 0xfe, + 0x04, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x8b, 0xc4, 0xd2, 0xfa, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // DatabaseServiceClient is the client API for DatabaseService service. // @@ -479,10 +479,10 @@ type DatabaseServiceClient interface { } type databaseServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewDatabaseServiceClient(cc *grpc.ClientConn) DatabaseServiceClient { +func NewDatabaseServiceClient(cc grpc.ClientConnInterface) DatabaseServiceClient { return &databaseServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/database_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/database_service.pbext.go new file mode 100644 index 000000000..99be747ae --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/database_service.pbext.go @@ -0,0 +1,63 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mysql + +func (m *GetDatabaseRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetDatabaseRequest) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *ListDatabasesRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListDatabasesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListDatabasesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListDatabasesResponse) SetDatabases(v []*Database) { + m.Databases = v +} + +func (m *ListDatabasesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateDatabaseRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateDatabaseRequest) SetDatabaseSpec(v *DatabaseSpec) { + m.DatabaseSpec = v +} + +func (m *CreateDatabaseMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateDatabaseMetadata) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *DeleteDatabaseRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteDatabaseRequest) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *DeleteDatabaseMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteDatabaseMetadata) SetDatabaseName(v string) { + m.DatabaseName = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/resource_preset.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/resource_preset.pb.go index 25a2dab8a..a0a6c2e44 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/resource_preset.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/resource_preset.pb.go @@ -97,18 +97,19 @@ func init() { } var fileDescriptor_9a481545fa1a0dc2 = []byte{ - // 207 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x8f, 0x31, 0x4f, 0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00, 0x00, 0xff, 0xff, 0x19, 0xab, 0x2d, 0xdf, 0x06, 0x01, 0x00, 0x00, + // 217 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x8f, 0xb1, 0x4b, 0xc4, 0x30, + 0x14, 0x87, 0x69, 0xab, 0xa7, 0x97, 0xe1, 0x86, 0x20, 0x92, 0x1b, 0x84, 0xe2, 0xd4, 0xe5, 0x12, + 0x0e, 0x47, 0x37, 0x9d, 0xdc, 0x24, 0xa3, 0xcb, 0xd1, 0xe4, 0x3d, 0x6a, 0xa0, 0xe9, 0xab, 0x49, + 0x5b, 0xac, 0x7f, 0xbd, 0x98, 0x76, 0xe9, 0xe0, 0x96, 0x2f, 0xbc, 0x0f, 0x7e, 0x1f, 0x53, 0x73, + 0xdd, 0x01, 0x7e, 0x2b, 0xdb, 0xd2, 0x08, 0xca, 0x83, 0x51, 0x7e, 0x8e, 0x5f, 0xad, 0x9a, 0xce, + 0x2a, 0x60, 0xa4, 0x31, 0x58, 0xbc, 0xf4, 0x01, 0x23, 0x0e, 0xb2, 0x0f, 0x34, 0x10, 0x3f, 0x2e, + 0x82, 0x4c, 0x82, 0xf4, 0x60, 0x64, 0x12, 0xe4, 0x74, 0x7e, 0x74, 0xec, 0xa0, 0x57, 0xe7, 0x3d, + 0x29, 0xfc, 0xc0, 0x72, 0x07, 0x22, 0x2b, 0xb3, 0x6a, 0xaf, 0x73, 0x07, 0xfc, 0xc8, 0x6e, 0x7f, + 0xa8, 0xc3, 0x8b, 0x83, 0x28, 0xf2, 0xb2, 0xa8, 0xf6, 0xfa, 0xe6, 0x8f, 0xdf, 0x20, 0xf2, 0x3b, + 0x76, 0x6d, 0x29, 0x60, 0x14, 0x45, 0x99, 0x55, 0x85, 0x5e, 0x80, 0xdf, 0xb3, 0x9d, 0x47, 0x4f, + 0x61, 0x16, 0x57, 0xe9, 0x7b, 0xa5, 0x17, 0x60, 0x0f, 0x9b, 0x1d, 0x75, 0xef, 0x36, 0x5b, 0x3e, + 0x5e, 0x1b, 0x37, 0x7c, 0x8e, 0x46, 0x5a, 0xf2, 0x6b, 0xe2, 0x69, 0x49, 0x6c, 0xe8, 0xd4, 0x60, + 0x97, 0x5a, 0xfe, 0x6f, 0x7f, 0x4e, 0x0f, 0xb3, 0x4b, 0x67, 0x4f, 0xbf, 0x01, 0x00, 0x00, 0xff, + 0xff, 0x62, 0xa7, 0x5e, 0x00, 0x25, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/resource_preset.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/resource_preset.pbext.go new file mode 100644 index 000000000..ffd0cf82a --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/resource_preset.pbext.go @@ -0,0 +1,19 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mysql + +func (m *ResourcePreset) SetId(v string) { + m.Id = v +} + +func (m *ResourcePreset) SetZoneIds(v []string) { + m.ZoneIds = v +} + +func (m *ResourcePreset) SetCores(v int64) { + m.Cores = v +} + +func (m *ResourcePreset) SetMemory(v int64) { + m.Memory = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/resource_preset_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/resource_preset_service.pb.go index 1626d3ac0..64cf2d3b2 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/resource_preset_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/resource_preset_service.pb.go @@ -182,45 +182,46 @@ func init() { } var fileDescriptor_ca3c22c0aa16c49e = []byte{ - // 458 bytes of a gzipped FileDescriptorProto + // 465 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x4f, 0x6b, 0x13, 0x41, - 0x18, 0xc6, 0x99, 0xa4, 0x16, 0x33, 0x22, 0x2d, 0x03, 0xc2, 0xba, 0x2a, 0xc4, 0xf5, 0x60, 0x7a, - 0xc8, 0xcc, 0x4e, 0x8a, 0x55, 0xf0, 0xcf, 0x21, 0x22, 0x45, 0x10, 0x29, 0xdb, 0x9e, 0xbc, 0x84, - 0x49, 0xe6, 0x65, 0x1d, 0xcc, 0xce, 0x6c, 0x77, 0x26, 0xa1, 0xad, 0x78, 0xf1, 0xe8, 0xd5, 0x2f, - 0xe0, 0x45, 0xbf, 0x4a, 0xbd, 0xfb, 0x0d, 0xc4, 0x83, 0x9f, 0xc1, 0x93, 0x64, 0x36, 0x05, 0x77, - 0xeb, 0xd6, 0x78, 0x5b, 0x78, 0xdf, 0xdf, 0xfb, 0x3e, 0xcf, 0x3e, 0xef, 0xe0, 0xfb, 0xc7, 0x42, - 0x4b, 0x38, 0x62, 0x93, 0xa9, 0x99, 0x49, 0x96, 0xc9, 0x31, 0xcb, 0x8e, 0xed, 0xe1, 0x94, 0xcd, - 0x39, 0x2b, 0xc0, 0x9a, 0x59, 0x31, 0x81, 0x51, 0x5e, 0x80, 0x05, 0x37, 0xb2, 0x50, 0xcc, 0xd5, - 0x04, 0x68, 0x5e, 0x18, 0x67, 0xc8, 0xf5, 0x12, 0xa4, 0x1e, 0xa4, 0x99, 0x1c, 0x53, 0x0f, 0xd2, - 0x39, 0x0f, 0x6f, 0xa6, 0xc6, 0xa4, 0x53, 0x60, 0x22, 0x57, 0x4c, 0x68, 0x6d, 0x9c, 0x70, 0xca, - 0x68, 0x5b, 0x82, 0x21, 0x5b, 0x79, 0xe3, 0x12, 0xb8, 0x55, 0x01, 0xe6, 0x62, 0xaa, 0xa4, 0x1f, - 0x58, 0x96, 0xa3, 0x97, 0x38, 0xd8, 0x05, 0x97, 0x2c, 0xd1, 0x3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c8, 0x21, 0xde, 0xac, 0x2d, 0x61, 0x03, 0xd4, 0x6d, 0xf7, 0xae, 0x0d, 0xb6, + 0x69, 0x63, 0x08, 0xb4, 0xf6, 0x43, 0x36, 0xaa, 0x7b, 0x5a, 0xc2, 0xf1, 0x86, 0x86, 0x63, 0x37, + 0xfa, 0xc3, 0x64, 0xab, 0x6e, 0xf2, 0xfa, 0xa2, 0x63, 0xff, 0xdc, 0xe8, 0xe0, 0x7b, 0x0b, 0xdf, + 0xa8, 0x8e, 0x3d, 0x28, 0x9f, 0x04, 0xf9, 0x8c, 0x70, 0x7b, 0x0f, 0x1c, 0xd9, 0xb9, 0xc4, 0x50, + 0x53, 0x48, 0xe1, 0xea, 0x5b, 0x44, 0x4f, 0xdf, 0x7f, 0xfb, 0xf1, 0xb1, 0xf5, 0x90, 0xec, 0xb2, + 0x4c, 0x68, 0x91, 0x82, 0xec, 0x5f, 0x78, 0x3b, 0xcb, 0xfd, 0xd8, 0xdb, 0x8b, 0xc1, 0xbf, 0x23, + 0x9f, 0x10, 0x5e, 0x5b, 0xfc, 0x6a, 0x72, 0xff, 0x12, 0xcd, 0xe6, 0xf4, 0xc3, 0xdd, 0xff, 0xc5, + 0xca, 0x08, 0xa3, 0x6d, 0xef, 0xfb, 0x2e, 0xb9, 0xf3, 0x4f, 0xdf, 0x43, 0x89, 0xb7, 0x2a, 0x1a, + 0x22, 0x57, 0x15, 0x9d, 0x57, 0xcf, 0x52, 0xe5, 0x5e, 0xcf, 0xc6, 0x74, 0x62, 0xb2, 0xe5, 0x29, + 0xf5, 0xcb, 0xcb, 0x48, 0x4d, 0x3f, 0x05, 0xed, 0x8f, 0xa2, 0xf9, 0xc6, 0x1e, 0xf9, 0x8f, 0xf1, + 0xba, 0x6f, 0xdb, 0xf9, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x81, 0xf6, 0x7d, 0xa0, 0xff, 0x03, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // ResourcePresetServiceClient is the client API for ResourcePresetService service. // @@ -235,10 +236,10 @@ type ResourcePresetServiceClient interface { } type resourcePresetServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewResourcePresetServiceClient(cc *grpc.ClientConn) ResourcePresetServiceClient { +func NewResourcePresetServiceClient(cc grpc.ClientConnInterface) ResourcePresetServiceClient { return &resourcePresetServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/resource_preset_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/resource_preset_service.pbext.go new file mode 100644 index 000000000..d1fb3cd0e --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/resource_preset_service.pbext.go @@ -0,0 +1,23 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mysql + +func (m *GetResourcePresetRequest) SetResourcePresetId(v string) { + m.ResourcePresetId = v +} + +func (m *ListResourcePresetsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListResourcePresetsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListResourcePresetsResponse) SetResourcePresets(v []*ResourcePreset) { + m.ResourcePresets = v +} + +func (m *ListResourcePresetsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/user.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/user.pb.go index 51bf5b6d8..a128396e2 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/user.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/user.pb.go @@ -6,7 +6,7 @@ package mysql import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - _ "github.com/golang/protobuf/ptypes/wrappers" + wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "github.com/yandex-cloud/go-genproto/yandex/cloud" math "math" ) @@ -22,6 +22,71 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +type GlobalPermission int32 + +const ( + GlobalPermission_GLOBAL_PERMISSION_UNSPECIFIED GlobalPermission = 0 + // Enables use of the SHOW MASTER STATUS, SHOW SLAVE STATUS, and SHOW BINARY LOGS statements. + GlobalPermission_REPLICATION_CLIENT GlobalPermission = 1 + // Enables the account to request updates that have been made to databases on the master server, + // using the SHOW SLAVE HOSTS, SHOW RELAYLOG EVENTS, and SHOW BINLOG EVENTS statements. + GlobalPermission_REPLICATION_SLAVE GlobalPermission = 2 +) + +var GlobalPermission_name = map[int32]string{ + 0: "GLOBAL_PERMISSION_UNSPECIFIED", + 1: "REPLICATION_CLIENT", + 2: "REPLICATION_SLAVE", +} + +var GlobalPermission_value = map[string]int32{ + "GLOBAL_PERMISSION_UNSPECIFIED": 0, + "REPLICATION_CLIENT": 1, + "REPLICATION_SLAVE": 2, +} + +func (x GlobalPermission) String() string { + return proto.EnumName(GlobalPermission_name, int32(x)) +} + +func (GlobalPermission) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5965312201724c83, []int{0} +} + +type AuthPlugin int32 + +const ( + AuthPlugin_AUTH_PLUGIN_UNSPECIFIED AuthPlugin = 0 + // Use [Native Pluggable Authentication](https://dev.mysql.com/doc/refman/8.0/en/native-pluggable-authentication.html). + AuthPlugin_MYSQL_NATIVE_PASSWORD AuthPlugin = 1 + // Use [Caching SHA-2 Pluggable Authentication](https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html). + AuthPlugin_CACHING_SHA2_PASSWORD AuthPlugin = 2 + // Use [SHA-256 Pluggable Authentication](https://dev.mysql.com/doc/refman/8.0/en/sha256-pluggable-authentication.html). + AuthPlugin_SHA256_PASSWORD AuthPlugin = 3 +) + +var AuthPlugin_name = map[int32]string{ + 0: "AUTH_PLUGIN_UNSPECIFIED", + 1: "MYSQL_NATIVE_PASSWORD", + 2: "CACHING_SHA2_PASSWORD", + 3: "SHA256_PASSWORD", +} + +var AuthPlugin_value = map[string]int32{ + "AUTH_PLUGIN_UNSPECIFIED": 0, + "MYSQL_NATIVE_PASSWORD": 1, + "CACHING_SHA2_PASSWORD": 2, + "SHA256_PASSWORD": 3, +} + +func (x AuthPlugin) String() string { + return proto.EnumName(AuthPlugin_name, int32(x)) +} + +func (AuthPlugin) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5965312201724c83, []int{1} +} + type Permission_Privilege int32 const ( @@ -128,10 +193,16 @@ type User struct { // ID of the MySQL cluster the user belongs to. ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` // Set of permissions granted to the user. - Permissions []*Permission `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Permissions []*Permission `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"` + // Set of global permissions to grant to the user. + GlobalPermissions []GlobalPermission `protobuf:"varint,4,rep,packed,name=global_permissions,json=globalPermissions,proto3,enum=yandex.cloud.mdb.mysql.v1.GlobalPermission" json:"global_permissions,omitempty"` + // Set of user connection limits. + ConnectionLimits *ConnectionLimits `protobuf:"bytes,5,opt,name=connection_limits,json=connectionLimits,proto3" json:"connection_limits,omitempty"` + // User authentication plugin. + AuthenticationPlugin AuthPlugin `protobuf:"varint,6,opt,name=authentication_plugin,json=authenticationPlugin,proto3,enum=yandex.cloud.mdb.mysql.v1.AuthPlugin" json:"authentication_plugin,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *User) Reset() { *m = User{} } @@ -180,6 +251,27 @@ func (m *User) GetPermissions() []*Permission { return nil } +func (m *User) GetGlobalPermissions() []GlobalPermission { + if m != nil { + return m.GlobalPermissions + } + return nil +} + +func (m *User) GetConnectionLimits() *ConnectionLimits { + if m != nil { + return m.ConnectionLimits + } + return nil +} + +func (m *User) GetAuthenticationPlugin() AuthPlugin { + if m != nil { + return m.AuthenticationPlugin + } + return AuthPlugin_AUTH_PLUGIN_UNSPECIFIED +} + type Permission struct { // Name of the database that the permission grants access to. DatabaseName string `protobuf:"bytes,1,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"` @@ -229,23 +321,96 @@ func (m *Permission) GetRoles() []Permission_Privilege { return nil } +type ConnectionLimits struct { + // The maximum permitted number of user questions per hour. + MaxQuestionsPerHour *wrappers.Int64Value `protobuf:"bytes,1,opt,name=max_questions_per_hour,json=maxQuestionsPerHour,proto3" json:"max_questions_per_hour,omitempty"` + // The maximum permitted number of user updates per hour. + MaxUpdatesPerHour *wrappers.Int64Value `protobuf:"bytes,2,opt,name=max_updates_per_hour,json=maxUpdatesPerHour,proto3" json:"max_updates_per_hour,omitempty"` + // The maximum permitted number of simultaneous client connections per hour. + MaxConnectionsPerHour *wrappers.Int64Value `protobuf:"bytes,3,opt,name=max_connections_per_hour,json=maxConnectionsPerHour,proto3" json:"max_connections_per_hour,omitempty"` + // The maximum number of simultaneous connections permitted to any given MySQL user account. + MaxUserConnections *wrappers.Int64Value `protobuf:"bytes,4,opt,name=max_user_connections,json=maxUserConnections,proto3" json:"max_user_connections,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ConnectionLimits) Reset() { *m = ConnectionLimits{} } +func (m *ConnectionLimits) String() string { return proto.CompactTextString(m) } +func (*ConnectionLimits) ProtoMessage() {} +func (*ConnectionLimits) Descriptor() ([]byte, []int) { + return fileDescriptor_5965312201724c83, []int{2} +} + +func (m *ConnectionLimits) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ConnectionLimits.Unmarshal(m, b) +} +func (m *ConnectionLimits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ConnectionLimits.Marshal(b, m, deterministic) +} +func (m *ConnectionLimits) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConnectionLimits.Merge(m, src) +} +func (m *ConnectionLimits) XXX_Size() int { + return xxx_messageInfo_ConnectionLimits.Size(m) +} +func (m *ConnectionLimits) XXX_DiscardUnknown() { + xxx_messageInfo_ConnectionLimits.DiscardUnknown(m) +} + +var xxx_messageInfo_ConnectionLimits proto.InternalMessageInfo + +func (m *ConnectionLimits) GetMaxQuestionsPerHour() *wrappers.Int64Value { + if m != nil { + return m.MaxQuestionsPerHour + } + return nil +} + +func (m *ConnectionLimits) GetMaxUpdatesPerHour() *wrappers.Int64Value { + if m != nil { + return m.MaxUpdatesPerHour + } + return nil +} + +func (m *ConnectionLimits) GetMaxConnectionsPerHour() *wrappers.Int64Value { + if m != nil { + return m.MaxConnectionsPerHour + } + return nil +} + +func (m *ConnectionLimits) GetMaxUserConnections() *wrappers.Int64Value { + if m != nil { + return m.MaxUserConnections + } + return nil +} + type UserSpec struct { // Name of the MySQL user. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Password of the MySQL user. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // Set of permissions to grant to the user. - Permissions []*Permission `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Permissions []*Permission `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"` + // Set of global permissions to grant to the user. + GlobalPermissions []GlobalPermission `protobuf:"varint,4,rep,packed,name=global_permissions,json=globalPermissions,proto3,enum=yandex.cloud.mdb.mysql.v1.GlobalPermission" json:"global_permissions,omitempty"` + // Set of user connection limits. + ConnectionLimits *ConnectionLimits `protobuf:"bytes,5,opt,name=connection_limits,json=connectionLimits,proto3" json:"connection_limits,omitempty"` + // User authentication plugin. + AuthenticationPlugin AuthPlugin `protobuf:"varint,6,opt,name=authentication_plugin,json=authenticationPlugin,proto3,enum=yandex.cloud.mdb.mysql.v1.AuthPlugin" json:"authentication_plugin,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UserSpec) Reset() { *m = UserSpec{} } func (m *UserSpec) String() string { return proto.CompactTextString(m) } func (*UserSpec) ProtoMessage() {} func (*UserSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_5965312201724c83, []int{2} + return fileDescriptor_5965312201724c83, []int{3} } func (m *UserSpec) XXX_Unmarshal(b []byte) error { @@ -287,10 +452,34 @@ func (m *UserSpec) GetPermissions() []*Permission { return nil } +func (m *UserSpec) GetGlobalPermissions() []GlobalPermission { + if m != nil { + return m.GlobalPermissions + } + return nil +} + +func (m *UserSpec) GetConnectionLimits() *ConnectionLimits { + if m != nil { + return m.ConnectionLimits + } + return nil +} + +func (m *UserSpec) GetAuthenticationPlugin() AuthPlugin { + if m != nil { + return m.AuthenticationPlugin + } + return AuthPlugin_AUTH_PLUGIN_UNSPECIFIED +} + func init() { + proto.RegisterEnum("yandex.cloud.mdb.mysql.v1.GlobalPermission", GlobalPermission_name, GlobalPermission_value) + proto.RegisterEnum("yandex.cloud.mdb.mysql.v1.AuthPlugin", AuthPlugin_name, AuthPlugin_value) proto.RegisterEnum("yandex.cloud.mdb.mysql.v1.Permission_Privilege", Permission_Privilege_name, Permission_Privilege_value) proto.RegisterType((*User)(nil), "yandex.cloud.mdb.mysql.v1.User") proto.RegisterType((*Permission)(nil), "yandex.cloud.mdb.mysql.v1.Permission") + proto.RegisterType((*ConnectionLimits)(nil), "yandex.cloud.mdb.mysql.v1.ConnectionLimits") proto.RegisterType((*UserSpec)(nil), "yandex.cloud.mdb.mysql.v1.UserSpec") } @@ -299,43 +488,66 @@ func init() { } var fileDescriptor_5965312201724c83 = []byte{ - // 597 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0x4d, 0x6f, 0xd3, 0x4e, - 0x10, 0xc6, 0xff, 0x79, 0x6b, 0x93, 0x49, 0xd3, 0x6e, 0x57, 0xfa, 0x8b, 0xb4, 0xa8, 0xa8, 0x0a, - 0x20, 0x15, 0xa4, 0xd8, 0x38, 0xbd, 0x14, 0x41, 0x91, 0xf2, 0x32, 0x04, 0x0b, 0xe3, 0x58, 0x6b, - 0xa7, 0x2d, 0x45, 0xc8, 0x72, 0xe2, 0x25, 0x58, 0x72, 0xe2, 0x60, 0x27, 0x29, 0xe5, 0xd8, 0x63, - 0x3f, 0x0d, 0x48, 0x7c, 0x87, 0xf6, 0xa3, 0x70, 0xe6, 0x13, 0xa0, 0xb5, 0xd3, 0x10, 0x0e, 0x95, - 0x38, 0x70, 0x1b, 0xcd, 0xef, 0x79, 0x66, 0x66, 0xa5, 0x67, 0xe1, 0xc1, 0xb9, 0x33, 0x72, 0xf9, - 0x67, 0xb9, 0xef, 0x07, 0x53, 0x57, 0x1e, 0xba, 0x3d, 0x79, 0x78, 0x1e, 0x7d, 0xf2, 0xe5, 0x99, - 0x22, 0x4f, 0x23, 0x1e, 0x4a, 0xe3, 0x30, 0x98, 0x04, 0x74, 0x2b, 0x51, 0x49, 0xb1, 0x4a, 0x1a, - 0xba, 0x3d, 0x29, 0x56, 0x49, 0x33, 0x65, 0xfb, 0xde, 0x20, 0x08, 0x06, 0x3e, 0x97, 0x63, 0x61, - 0x6f, 0xfa, 0x41, 0x3e, 0x0b, 0x9d, 0xf1, 0x98, 0x87, 0x51, 0x62, 0xdd, 0xde, 0xf9, 0x63, 0xc1, - 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 0xb3, 0x20, - 0x9c, 0x87, 0xab, 0x51, 0x12, 0xb6, 0xcb, 0x6b, 0x25, 0x77, 0x50, 0x55, 0x6a, 0x07, 0x6c, 0x81, - 0xff, 0x59, 0xd4, 0x1a, 0x78, 0xda, 0x1c, 0x78, 0x93, 0x8f, 0xd3, 0x9e, 0xd4, 0x0f, 0x86, 0x72, - 0xe2, 0xaf, 0x26, 0x7f, 0x63, 0x10, 0x54, 0x07, 0x7c, 0x14, 0x7f, 0x0b, 0xf9, 0xd6, 0x5f, 0xf9, - 0x2c, 0x2e, 0x7a, 0x2b, 0xb1, 0x6c, 0xff, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x01, 0x0c, 0xd4, - 0x9c, 0xbf, 0x03, 0x00, 0x00, + // 962 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x96, 0xcb, 0x6e, 0xdb, 0x46, + 0x17, 0xc7, 0x3f, 0x5d, 0x7c, 0xd1, 0x51, 0x64, 0x8f, 0x26, 0x71, 0x3e, 0x39, 0x81, 0x0b, 0xd7, + 0x6d, 0x01, 0xd7, 0x85, 0xa8, 0x48, 0x69, 0x83, 0x14, 0x6d, 0x0a, 0x50, 0xd4, 0x54, 0x26, 0x4a, + 0x4b, 0xcc, 0x90, 0x92, 0x2f, 0x45, 0x40, 0x50, 0xe2, 0x54, 0x26, 0x40, 0x8a, 0x0a, 0x2f, 0x8e, + 0xd3, 0x65, 0x97, 0x59, 0xf7, 0x41, 0xba, 0xe8, 0x1b, 0x74, 0x61, 0x3f, 0x4a, 0xd7, 0x5d, 0xb6, + 0x9b, 0x62, 0x48, 0x5d, 0x68, 0x01, 0x31, 0xea, 0x45, 0x77, 0xdd, 0x0d, 0xfe, 0xff, 0x73, 0x7e, + 0x33, 0x73, 0x0e, 0xe7, 0x48, 0xf0, 0xf1, 0x5b, 0x73, 0x6c, 0xb1, 0xcb, 0xda, 0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, 0xd3, 0xba, 0xa6, 0x88, 0x7d, 0x82, 0xb2, 0x07, 0x21, 0xc0, 0xe2, 0x24, 0x7c, 0xde, 0x88, + 0x3d, 0xfd, 0xd0, 0x50, 0x95, 0x5e, 0x5b, 0x5e, 0x26, 0x6f, 0xc3, 0xd6, 0xd1, 0xa9, 0xf6, 0x52, + 0x31, 0x3a, 0xa2, 0x2e, 0xf7, 0x89, 0xa1, 0x8a, 0x9a, 0x76, 0xdc, 0xa5, 0x2d, 0x94, 0xe1, 0x96, + 0x24, 0x4a, 0x87, 0x72, 0xa7, 0x6d, 0x68, 0x87, 0x62, 0x63, 0x61, 0x65, 0xf1, 0x7d, 0xd8, 0xe4, + 0xd2, 0x17, 0xcf, 0x16, 0x62, 0xae, 0x69, 0xc1, 0xce, 0x8d, 0xca, 0x98, 0x13, 0xfb, 0x46, 0x75, + 0xce, 0xa4, 0x91, 0x1d, 0x9e, 0x47, 0x03, 0x61, 0xe8, 0xb9, 0xb5, 0x24, 0xb2, 0x9a, 0xfc, 0x70, + 0x8f, 0xbc, 0xea, 0x88, 0x8d, 0xe3, 0x27, 0x51, 0x7b, 0xef, 0x5f, 0x86, 0xaf, 0xe2, 0xc5, 0x60, + 0x35, 0x0e, 0x7b, 0xfa, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2c, 0x1d, 0x8f, 0xee, 0x5c, 0x08, + 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/user.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/user.pbext.go new file mode 100644 index 000000000..bbc9efc3c --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/user.pbext.go @@ -0,0 +1,79 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mysql + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *User) SetName(v string) { + m.Name = v +} + +func (m *User) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *User) SetPermissions(v []*Permission) { + m.Permissions = v +} + +func (m *User) SetGlobalPermissions(v []GlobalPermission) { + m.GlobalPermissions = v +} + +func (m *User) SetConnectionLimits(v *ConnectionLimits) { + m.ConnectionLimits = v +} + +func (m *User) SetAuthenticationPlugin(v AuthPlugin) { + m.AuthenticationPlugin = v +} + +func (m *Permission) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *Permission) SetRoles(v []Permission_Privilege) { + m.Roles = v +} + +func (m *ConnectionLimits) SetMaxQuestionsPerHour(v *wrappers.Int64Value) { + m.MaxQuestionsPerHour = v +} + +func (m *ConnectionLimits) SetMaxUpdatesPerHour(v *wrappers.Int64Value) { + m.MaxUpdatesPerHour = v +} + +func (m *ConnectionLimits) SetMaxConnectionsPerHour(v *wrappers.Int64Value) { + m.MaxConnectionsPerHour = v +} + +func (m *ConnectionLimits) SetMaxUserConnections(v *wrappers.Int64Value) { + m.MaxUserConnections = v +} + +func (m *UserSpec) SetName(v string) { + m.Name = v +} + +func (m *UserSpec) SetPassword(v string) { + m.Password = v +} + +func (m *UserSpec) SetPermissions(v []*Permission) { + m.Permissions = v +} + +func (m *UserSpec) SetGlobalPermissions(v []GlobalPermission) { + m.GlobalPermissions = v +} + +func (m *UserSpec) SetConnectionLimits(v *ConnectionLimits) { + m.ConnectionLimits = v +} + +func (m *UserSpec) SetAuthenticationPlugin(v AuthPlugin) { + m.AuthenticationPlugin = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/user_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/user_service.pb.go index e87ec396b..877b47de3 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/user_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/user_service.pb.go @@ -303,10 +303,16 @@ type UpdateUserRequest struct { // New password for the user. Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // New set of permissions for the user. - Permissions []*Permission `protobuf:"bytes,5,rep,name=permissions,proto3" json:"permissions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Permissions []*Permission `protobuf:"bytes,5,rep,name=permissions,proto3" json:"permissions,omitempty"` + // New set of global permissions to grant to the user. + GlobalPermissions []GlobalPermission `protobuf:"varint,6,rep,packed,name=global_permissions,json=globalPermissions,proto3,enum=yandex.cloud.mdb.mysql.v1.GlobalPermission" json:"global_permissions,omitempty"` + // Set of changed user connection limits. + ConnectionLimits *ConnectionLimits `protobuf:"bytes,7,opt,name=connection_limits,json=connectionLimits,proto3" json:"connection_limits,omitempty"` + // New user authentication plugin. + AuthenticationPlugin AuthPlugin `protobuf:"varint,8,opt,name=authentication_plugin,json=authenticationPlugin,proto3,enum=yandex.cloud.mdb.mysql.v1.AuthPlugin" json:"authentication_plugin,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UpdateUserRequest) Reset() { *m = UpdateUserRequest{} } @@ -369,6 +375,27 @@ func (m *UpdateUserRequest) GetPermissions() []*Permission { return nil } +func (m *UpdateUserRequest) GetGlobalPermissions() []GlobalPermission { + if m != nil { + return m.GlobalPermissions + } + return nil +} + +func (m *UpdateUserRequest) GetConnectionLimits() *ConnectionLimits { + if m != nil { + return m.ConnectionLimits + } + return nil +} + +func (m *UpdateUserRequest) GetAuthenticationPlugin() AuthPlugin { + if m != nil { + return m.AuthenticationPlugin + } + return AuthPlugin_AUTH_PLUGIN_UNSPECIFIED +} + type UpdateUserMetadata struct { // ID of the MySQL cluster the user belongs to. ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` @@ -758,77 +785,84 @@ func init() { } var fileDescriptor_3d3e45e6c932b8d1 = []byte{ - // 962 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x57, 0xcd, 0x6f, 0x1b, 0x45, - 0x14, 0xd7, 0x24, 0x8e, 0x15, 0x3f, 0x53, 0xda, 0x8c, 0x84, 0x64, 0x9c, 0x46, 0x84, 0xed, 0x07, - 0xc1, 0xe9, 0xee, 0x7a, 0x5d, 0xa5, 0x6a, 0x93, 0x16, 0xa9, 0x29, 0x6d, 0x54, 0xa0, 0x6d, 0xb4, - 0xa5, 0x48, 0x04, 0x21, 0x6b, 0xec, 0x9d, 0x2e, 0xab, 0x78, 0x3f, 0xba, 0xb3, 0x36, 0x4d, 0x42, - 0x2e, 0x9c, 0x50, 0x8f, 0xc0, 0x81, 0x7f, 0x81, 0x23, 0xb9, 0x73, 0x4e, 0x25, 0x6e, 0xee, 0x91, - 0x2b, 0x87, 0x1e, 0x38, 0x71, 0xe4, 0x84, 0x66, 0xc6, 0xf1, 0xae, 0x63, 0x67, 0xe3, 0x38, 0x16, - 0x48, 0xdc, 0x76, 0xfd, 0x7e, 0x33, 0xef, 0xf7, 0x7b, 0x9f, 0x5e, 0xb8, 0xb2, 0x45, 0x3c, 0x8b, - 0x3e, 0xd7, 0xeb, 0x0d, 0xbf, 0x69, 0xe9, 0xae, 0x55, 0xd3, 0xdd, 0x2d, 0xf6, 0xac, 0xa1, 0xb7, - 0x0c, 0xbd, 0xc9, 0x68, 0x58, 0x65, 0x34, 0x6c, 0x39, 0x75, 0xaa, 0x05, 0xa1, 0x1f, 0xf9, 0xf8, - 0x6d, 0x89, 0xd6, 0x04, 0x5a, 0x73, 0xad, 0x9a, 0x26, 0xd0, 0x5a, 0xcb, 0x28, 0x9e, 0xb7, 0x7d, - 0xdf, 0x6e, 0x50, 0x9d, 0x04, 0x8e, 0x4e, 0x3c, 0xcf, 0x8f, 0x48, 0xe4, 0xf8, 0x1e, 0x93, 0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6, 0x91, 0xf2, 0xd1, 0xe8, 0x6a, 0xc3, 0x43, 0xb2, 0x96, 0x51, 0x69, - 0xf5, 0xee, 0xc6, 0x1d, 0xdb, 0x89, 0xbe, 0x6a, 0xd6, 0xb4, 0xba, 0xef, 0xea, 0x92, 0xad, 0x2a, - 0xbf, 0x50, 0x6c, 0x5f, 0xb5, 0xa9, 0x27, 0x4a, 0x49, 0x3f, 0xf2, 0xd3, 0x65, 0x45, 0x3c, 0xd4, - 0xb2, 0x02, 0x76, 0xf5, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x6e, 0xa2, 0x92, 0xd6, 0x0d, - 0x00, 0x00, + // 1073 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x57, 0xcd, 0x6f, 0xdc, 0x44, + 0x14, 0x97, 0x9b, 0xcd, 0x92, 0xbc, 0xa5, 0x69, 0x76, 0x44, 0xa5, 0x65, 0xd3, 0x88, 0xe0, 0x7e, + 0x10, 0x36, 0x5d, 0x7b, 0xbd, 0x55, 0xaa, 0x36, 0x69, 0x91, 0x92, 0x40, 0xa3, 0x42, 0x3f, 0x22, + 0x97, 0x22, 0x58, 0x84, 0x56, 0xb3, 0xf6, 0xd4, 0xb1, 0xe2, 0xaf, 0x7a, 0xec, 0xa5, 0x49, 0xc8, + 0x85, 0x13, 0xea, 0x11, 0x38, 0xf0, 0x6f, 0x90, 0x2b, 0xe2, 0x9c, 0x4a, 0xdc, 0xb6, 0x47, 0xae, + 0x1c, 0x7a, 0xe0, 0xc4, 0x91, 0x13, 0xf2, 0xcc, 0x66, 0xed, 0xfd, 0x88, 0xb3, 0xdd, 0x44, 0x20, + 0x71, 0xb3, 0x3d, 0xbf, 0x79, 0xef, 0xf7, 0xde, 0xbc, 0xf7, 0x9b, 0x67, 0xb8, 0xba, 0x8d, 0x1d, + 0x9d, 0x3c, 0x93, 0x35, 0xcb, 0x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 0xad, 0x19, 0x66, 0xb0, 0x19, 0x36, 0x24, 0xcd, 0xb5, 0x65, 0x8e, 0x2c, 0xf3, 0x5f, + 0x3a, 0xc3, 0x2d, 0x1b, 0xc4, 0x61, 0x95, 0x26, 0x1f, 0xf9, 0xaf, 0xb7, 0xcc, 0x1e, 0x1a, 0x59, + 0x06, 0xbb, 0xf6, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x37, 0x01, 0x6e, 0x6d, 0x07, 0x0f, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // UserServiceClient is the client API for UserService service. // @@ -853,10 +887,10 @@ type UserServiceClient interface { } type userServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient { +func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient { return &userServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/user_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/user_service.pbext.go new file mode 100644 index 000000000..60a795e60 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1/user_service.pbext.go @@ -0,0 +1,147 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package mysql + +import ( + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetUserRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetUserRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *ListUsersRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListUsersRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListUsersRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListUsersResponse) SetUsers(v []*User) { + m.Users = v +} + +func (m *ListUsersResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateUserRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateUserRequest) SetUserSpec(v *UserSpec) { + m.UserSpec = v +} + +func (m *CreateUserMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateUserMetadata) SetUserName(v string) { + m.UserName = v +} + +func (m *UpdateUserRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateUserRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *UpdateUserRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateUserRequest) SetPassword(v string) { + m.Password = v +} + +func (m *UpdateUserRequest) SetPermissions(v []*Permission) { + m.Permissions = v +} + +func (m *UpdateUserRequest) SetGlobalPermissions(v []GlobalPermission) { + m.GlobalPermissions = v +} + +func (m *UpdateUserRequest) SetConnectionLimits(v *ConnectionLimits) { + m.ConnectionLimits = v +} + +func (m *UpdateUserRequest) SetAuthenticationPlugin(v AuthPlugin) { + m.AuthenticationPlugin = v +} + +func (m *UpdateUserMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateUserMetadata) SetUserName(v string) { + m.UserName = v +} + +func (m *DeleteUserRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteUserRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *DeleteUserMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteUserMetadata) SetUserName(v string) { + m.UserName = v +} + +func (m *GrantUserPermissionRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GrantUserPermissionRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *GrantUserPermissionRequest) SetPermission(v *Permission) { + m.Permission = v +} + +func (m *GrantUserPermissionMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GrantUserPermissionMetadata) SetUserName(v string) { + m.UserName = v +} + +func (m *RevokeUserPermissionRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RevokeUserPermissionRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *RevokeUserPermissionRequest) SetPermission(v *Permission) { + m.Permission = v +} + +func (m *RevokeUserPermissionMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RevokeUserPermissionMetadata) SetUserName(v string) { + m.UserName = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/backup.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/backup.pb.go index 46713e745..7ef0ee69c 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/backup.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/backup.pb.go @@ -109,22 +109,23 @@ func init() { } var fileDescriptor_12b8aee21e233390 = []byte{ - // 268 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0xc1, 0x4a, 0x33, 0x31, - 0x14, 0x85, 0x99, 0xf9, 0x7f, 0x8b, 0x13, 0x41, 0x71, 0x56, 0x43, 0x05, 0x2d, 0xae, 0x8a, 0xd2, - 0x84, 0xea, 0x4a, 0x5c, 0xb5, 0xae, 0x5c, 0x88, 0x50, 0x5c, 0xb9, 0x19, 0x92, 0xdc, 0x34, 0x0e, - 0xce, 0xf4, 0x8e, 0xc9, 0x4d, 0xd1, 0x27, 0xf5, 0x75, 0x84, 0x64, 0x4a, 0x77, 0xba, 0xcc, 0xc9, - 0x77, 0xcf, 0x07, 0x87, 0x5d, 0x7f, 0xc9, 0x0d, 0x98, 0x4f, 0xa1, 0x5b, 0x0c, 0x20, 0x3a, 0x50, - 0xa2, 0x47, 0x4f, 0xd6, 0x19, 0xff, 0xd1, 0x8a, 0xed, 0x5c, 0x28, 0xa9, 0xdf, 0x43, 0xcf, 0x7b, - 0x87, 0x84, 0xe5, 0x79, 0x82, 0x79, 0x84, 0x79, 0x07, 0x8a, 0xef, 0x61, 0xbe, 0x9d, 0x8f, 0x2f, - 0x2c, 0xa2, 0x6d, 0x8d, 0x88, 0xb4, 0x0a, 0x6b, 0x41, 0x4d, 0x67, 0x3c, 0xc9, 0x6e, 0x28, 0xb8, - 0xfc, 0xce, 0xd8, 0x68, 0x19, 0x1b, 0xcb, 0x63, 0x96, 0x37, 0x50, 0x65, 0x93, 0x6c, 0x5a, 0xac, - 0xf2, 0x06, 0xca, 0x33, 0x56, 0xac, 0xb1, 0x05, 0xe3, 0xea, 0x06, 0xaa, 0x3c, 0xc6, 0x87, 0x29, - 0x78, 0x84, 0xf2, 0x8e, 0x31, 0xed, 0x8c, 0x24, 0x03, 0xb5, 0xa4, 0xea, 0xdf, 0x24, 0x9b, 0x1e, - 0xdd, 0x8c, 0x79, 0xb2, 0xf1, 0x9d, 0x8d, 0xbf, 0xec, 0x6c, 0xab, 0x62, 0xa0, 0x17, 0x54, 0x5e, - 0xb1, 0x53, 0x8f, 0xc1, 0x69, 0x53, 0xeb, 0x36, 0x78, 0x4a, 0xfd, 0xff, 0x63, 0xff, 0x49, 0xfa, - 0x78, 0x48, 0x79, 0xd2, 0x78, 0x92, 0x6e, 0xd0, 0x1c, 0xfc, 0xad, 0x19, 0xe8, 0x05, 0x2d, 0x9f, - 0x5f, 0x9f, 0x6c, 0x43, 0x6f, 0x41, 0x71, 0x8d, 0x9d, 0x48, 0x3b, 0xcd, 0xd2, 0xa8, 0x16, 0x67, - 0xd6, 0x6c, 0xe2, 0xb9, 0xf8, 0x7d, 0xed, 0xfb, 0xfd, 0x4b, 0x8d, 0xe2, 0xc1, 0xed, 0x4f, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xed, 0x24, 0x15, 0xfb, 0xa1, 0x01, 0x00, 0x00, + // 274 bytes of a gzipped FileDescriptorProto + 0x1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cb, 0xd6, 0xb6, 0x2c, 0x7a, 0x7a, 0x8e, 0xe5, 0x35, + 0x39, 0xf7, 0x10, 0x9c, 0xd4, 0xb5, 0x6c, 0x82, 0xc7, 0xd4, 0x7f, 0x18, 0xfb, 0xcf, 0xd2, 0xc5, + 0x63, 0xca, 0x93, 0xc6, 0x23, 0x77, 0xbd, 0xe6, 0x68, 0xbf, 0xa6, 0xa7, 0xe7, 0xb8, 0xf0, 0x64, + 0xfc, 0x6b, 0x1c, 0xde, 0xd9, 0xbf, 0x03, 0xbd, 0x3e, 0x1b, 0x8b, 0x6f, 0x41, 0x50, 0x09, 0x2d, + 0x4b, 0xf8, 0x34, 0x0d, 0x6f, 0x60, 0x6a, 0xf4, 0x3a, 0x2a, 0xd8, 0xff, 0x3f, 0xf2, 0xb0, 0x3b, + 0x89, 0x41, 0x7c, 0x70, 0xf7, 0x13, 0x00, 0x00, 0xff, 0xff, 0x77, 0x28, 0x9f, 0xf7, 0xc5, 0x01, + 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/backup.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/backup.pbext.go new file mode 100644 index 000000000..0510e92e5 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/backup.pbext.go @@ -0,0 +1,27 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Backup) SetId(v string) { + m.Id = v +} + +func (m *Backup) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Backup) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Backup) SetSourceClusterId(v string) { + m.SourceClusterId = v +} + +func (m *Backup) SetStartedAt(v *timestamp.Timestamp) { + m.StartedAt = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/backup_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/backup_service.pb.go index b1a9fe03e..417bbeee4 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/backup_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/backup_service.pb.go @@ -192,46 +192,46 @@ func init() { } var fileDescriptor_173a66996cdfa60b = []byte{ - // 466 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xbf, 0x6f, 0x13, 0x31, + // 473 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xbf, 0x6f, 0x13, 0x31, 0x14, 0xc7, 0xe5, 0x24, 0x94, 0x9c, 0xa1, 0x02, 0x99, 0x25, 0x8a, 0xa0, 0x0a, 0x37, 0x94, 0xf0, - 0x23, 0xe7, 0xbb, 0x44, 0x9d, 0x68, 0x25, 0x94, 0xa5, 0xaa, 0x04, 0x02, 0x5d, 0x99, 0x58, 0x22, - 0x5f, 0xfc, 0x30, 0x56, 0x2f, 0xf6, 0x35, 0x76, 0xa2, 0x52, 0xc4, 0xc2, 0x98, 0x91, 0x0e, 0xfc, - 0x39, 0x8c, 0xed, 0xce, 0xbf, 0xc0, 0xc0, 0xdf, 0xc0, 0x84, 0xce, 0x4e, 0x08, 0x2d, 0x28, 0x2d, - 0xa3, 0xfd, 0x7d, 0x9f, 0xf7, 0xbe, 0x7a, 0xdf, 0x87, 0x7b, 0xef, 0x99, 0xe2, 0x70, 0x44, 0x87, - 0xb9, 0x9e, 0x70, 0x3a, 0xe2, 0x19, 0x2d, 0xb4, 0xb1, 0x62, 0x0c, 0xe6, 0x30, 0xa7, 0xd3, 0x84, - 0x66, 0x6c, 0x78, 0x30, 0x29,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d, 0x5b, 0x64, 0x6b, + 0xb5, 0x65, 0x5f, 0x63, 0x7f, 0x69, 0x3a, 0xcb, 0xc5, 0xd5, 0x0d, 0x6f, 0x5f, 0xa5, 0xc2, 0xbc, + 0x9f, 0x24, 0xc1, 0x50, 0x8d, 0xa8, 0x6b, 0xef, 0xb8, 0x87, 0x9f, 0xaa, 0x4e, 0x0a, 0xd2, 0xbe, + 0x72, 0xba, 0xfa, 0x8f, 0x78, 0xbe, 0xf8, 0x4a, 0x36, 0x2c, 0xd0, 0xfb, 0x1d, 0x00, 0x00, 0xff, + 0xff, 0x3f, 0xfc, 0x77, 0xf2, 0xd7, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // BackupServiceClient is the client API for BackupService service. // @@ -246,10 +246,10 @@ type BackupServiceClient interface { } type backupServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewBackupServiceClient(cc *grpc.ClientConn) BackupServiceClient { +func NewBackupServiceClient(cc grpc.ClientConnInterface) BackupServiceClient { return &backupServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/backup_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/backup_service.pbext.go new file mode 100644 index 000000000..0ec68ee75 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/backup_service.pbext.go @@ -0,0 +1,27 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +func (m *GetBackupRequest) SetBackupId(v string) { + m.BackupId = v +} + +func (m *ListBackupsRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListBackupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListBackupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListBackupsResponse) SetBackups(v []*Backup) { + m.Backups = v +} + +func (m *ListBackupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/cluster.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/cluster.pb.go index 6fd2690cc..17058c39a 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/cluster.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/cluster.pb.go @@ -213,18 +213,21 @@ const ( Host_REPLICA_TYPE_UNKNOWN Host_ReplicaType = 0 Host_ASYNC Host_ReplicaType = 1 Host_SYNC Host_ReplicaType = 2 + Host_QUORUM Host_ReplicaType = 3 ) var Host_ReplicaType_name = map[int32]string{ 0: "REPLICA_TYPE_UNKNOWN", 1: "ASYNC", 2: "SYNC", + 3: "QUORUM", } var Host_ReplicaType_value = map[string]int32{ "REPLICA_TYPE_UNKNOWN": 0, "ASYNC": 1, "SYNC": 2, + "QUORUM": 3, } func (x Host_ReplicaType) String() string { @@ -541,8 +544,10 @@ type ClusterConfig struct { // // Types that are valid to be assigned to PostgresqlConfig: // *ClusterConfig_PostgresqlConfig_9_6 + // *ClusterConfig_PostgresqlConfig_10_1C // *ClusterConfig_PostgresqlConfig_10 // *ClusterConfig_PostgresqlConfig_11 + // *ClusterConfig_PostgresqlConfig_12 PostgresqlConfig isClusterConfig_PostgresqlConfig `protobuf_oneof:"postgresql_config"` // Configuration of the connection pooler. PoolerConfig *ConnectionPoolerConfig `protobuf:"bytes,4,opt,name=pooler_config,json=poolerConfig,proto3" json:"pooler_config,omitempty"` @@ -599,6 +604,10 @@ type ClusterConfig_PostgresqlConfig_9_6 struct { PostgresqlConfig_9_6 *config.PostgresqlConfigSet9_6 `protobuf:"bytes,2,opt,name=postgresql_config_9_6,json=postgresqlConfig96,proto3,oneof"` } +type ClusterConfig_PostgresqlConfig_10_1C struct { + PostgresqlConfig_10_1C *config.PostgresqlConfigSet10_1C `protobuf:"bytes,10,opt,name=postgresql_config_10_1c,json=postgresqlConfig101c,proto3,oneof"` +} + type ClusterConfig_PostgresqlConfig_10 struct { PostgresqlConfig_10 *config.PostgresqlConfigSet10 `protobuf:"bytes,3,opt,name=postgresql_config_10,json=postgresqlConfig10,proto3,oneof"` } @@ -607,12 +616,20 @@ type ClusterConfig_PostgresqlConfig_11 struct { PostgresqlConfig_11 *config.PostgresqlConfigSet11 `protobuf:"bytes,8,opt,name=postgresql_config_11,json=postgresqlConfig11,proto3,oneof"` } +type ClusterConfig_PostgresqlConfig_12 struct { + PostgresqlConfig_12 *config.PostgresqlConfigSet12 `protobuf:"bytes,11,opt,name=postgresql_config_12,json=postgresqlConfig12,proto3,oneof"` +} + func (*ClusterConfig_PostgresqlConfig_9_6) isClusterConfig_PostgresqlConfig() {} +func (*ClusterConfig_PostgresqlConfig_10_1C) isClusterConfig_PostgresqlConfig() {} + func (*ClusterConfig_PostgresqlConfig_10) isClusterConfig_PostgresqlConfig() {} func (*ClusterConfig_PostgresqlConfig_11) isClusterConfig_PostgresqlConfig() {} +func (*ClusterConfig_PostgresqlConfig_12) isClusterConfig_PostgresqlConfig() {} + func (m *ClusterConfig) GetPostgresqlConfig() isClusterConfig_PostgresqlConfig { if m != nil { return m.PostgresqlConfig @@ -627,6 +644,13 @@ func (m *ClusterConfig) GetPostgresqlConfig_9_6() *config.PostgresqlConfigSet9_6 return nil } +func (m *ClusterConfig) GetPostgresqlConfig_10_1C() *config.PostgresqlConfigSet10_1C { + if x, ok := m.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_10_1C); ok { + return x.PostgresqlConfig_10_1C + } + return nil +} + func (m *ClusterConfig) GetPostgresqlConfig_10() *config.PostgresqlConfigSet10 { if x, ok := m.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_10); ok { return x.PostgresqlConfig_10 @@ -641,6 +665,13 @@ func (m *ClusterConfig) GetPostgresqlConfig_11() *config.PostgresqlConfigSet11 { return nil } +func (m *ClusterConfig) GetPostgresqlConfig_12() *config.PostgresqlConfigSet12 { + if x, ok := m.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_12); ok { + return x.PostgresqlConfig_12 + } + return nil +} + func (m *ClusterConfig) GetPoolerConfig() *ConnectionPoolerConfig { if m != nil { return m.PoolerConfig @@ -680,8 +711,10 @@ func (m *ClusterConfig) GetAccess() *Access { func (*ClusterConfig) XXX_OneofWrappers() []interface{} { return []interface{}{ (*ClusterConfig_PostgresqlConfig_9_6)(nil), + (*ClusterConfig_PostgresqlConfig_10_1C)(nil), (*ClusterConfig_PostgresqlConfig_10)(nil), (*ClusterConfig_PostgresqlConfig_11)(nil), + (*ClusterConfig_PostgresqlConfig_12)(nil), } } @@ -689,7 +722,7 @@ type ConnectionPoolerConfig struct { // Mode that the connection pooler is working in. // See descriptions of all modes in the [documentation for PgBouncer](https://pgbouncer.github.io/usage). PoolingMode ConnectionPoolerConfig_PoolingMode `protobuf:"varint,1,opt,name=pooling_mode,json=poolingMode,proto3,enum=yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig_PoolingMode" json:"pooling_mode,omitempty"` - // Setting pool_discard in Odyssey; server_reset_query_always in PgBouncer + // Setting `server_reset_query_always` parameter in PgBouncer. PoolDiscard *wrappers.BoolValue `protobuf:"bytes,2,opt,name=pool_discard,json=poolDiscard,proto3" json:"pool_discard,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -895,8 +928,10 @@ type HostConfig struct { // // Types that are valid to be assigned to PostgresqlConfig: // *HostConfig_PostgresqlConfig_9_6 + // *HostConfig_PostgresqlConfig_10_1C // *HostConfig_PostgresqlConfig_10 // *HostConfig_PostgresqlConfig_11 + // *HostConfig_PostgresqlConfig_12 PostgresqlConfig isHostConfig_PostgresqlConfig `protobuf_oneof:"postgresql_config"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -936,6 +971,10 @@ type HostConfig_PostgresqlConfig_9_6 struct { PostgresqlConfig_9_6 *config.PostgresqlHostConfig9_6 `protobuf:"bytes,1,opt,name=postgresql_config_9_6,json=postgresqlConfig96,proto3,oneof"` } +type HostConfig_PostgresqlConfig_10_1C struct { + PostgresqlConfig_10_1C *config.PostgresqlHostConfig10_1C `protobuf:"bytes,4,opt,name=postgresql_config_10_1c,json=postgresqlConfig101c,proto3,oneof"` +} + type HostConfig_PostgresqlConfig_10 struct { PostgresqlConfig_10 *config.PostgresqlHostConfig10 `protobuf:"bytes,2,opt,name=postgresql_config_10,json=postgresqlConfig10,proto3,oneof"` } @@ -944,12 +983,20 @@ type HostConfig_PostgresqlConfig_11 struct { PostgresqlConfig_11 *config.PostgresqlHostConfig11 `protobuf:"bytes,3,opt,name=postgresql_config_11,json=postgresqlConfig11,proto3,oneof"` } +type HostConfig_PostgresqlConfig_12 struct { + PostgresqlConfig_12 *config.PostgresqlHostConfig12 `protobuf:"bytes,5,opt,name=postgresql_config_12,json=postgresqlConfig12,proto3,oneof"` +} + func (*HostConfig_PostgresqlConfig_9_6) isHostConfig_PostgresqlConfig() {} +func (*HostConfig_PostgresqlConfig_10_1C) isHostConfig_PostgresqlConfig() {} + func (*HostConfig_PostgresqlConfig_10) isHostConfig_PostgresqlConfig() {} func (*HostConfig_PostgresqlConfig_11) isHostConfig_PostgresqlConfig() {} +func (*HostConfig_PostgresqlConfig_12) isHostConfig_PostgresqlConfig() {} + func (m *HostConfig) GetPostgresqlConfig() isHostConfig_PostgresqlConfig { if m != nil { return m.PostgresqlConfig @@ -964,6 +1011,13 @@ func (m *HostConfig) GetPostgresqlConfig_9_6() *config.PostgresqlHostConfig9_6 { return nil } +func (m *HostConfig) GetPostgresqlConfig_10_1C() *config.PostgresqlHostConfig10_1C { + if x, ok := m.GetPostgresqlConfig().(*HostConfig_PostgresqlConfig_10_1C); ok { + return x.PostgresqlConfig_10_1C + } + return nil +} + func (m *HostConfig) GetPostgresqlConfig_10() *config.PostgresqlHostConfig10 { if x, ok := m.GetPostgresqlConfig().(*HostConfig_PostgresqlConfig_10); ok { return x.PostgresqlConfig_10 @@ -978,12 +1032,21 @@ func (m *HostConfig) GetPostgresqlConfig_11() *config.PostgresqlHostConfig11 { return nil } +func (m *HostConfig) GetPostgresqlConfig_12() *config.PostgresqlHostConfig12 { + if x, ok := m.GetPostgresqlConfig().(*HostConfig_PostgresqlConfig_12); ok { + return x.PostgresqlConfig_12 + } + return nil +} + // XXX_OneofWrappers is for the internal use of the proto package. func (*HostConfig) XXX_OneofWrappers() []interface{} { return []interface{}{ (*HostConfig_PostgresqlConfig_9_6)(nil), + (*HostConfig_PostgresqlConfig_10_1C)(nil), (*HostConfig_PostgresqlConfig_10)(nil), (*HostConfig_PostgresqlConfig_11)(nil), + (*HostConfig_PostgresqlConfig_12)(nil), } } @@ -1166,103 +1229,109 @@ func init() { } var fileDescriptor_66e5c6384d029c45 = []byte{ - // 1556 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xdf, 0x76, 0xda, 0xcc, - 0x11, 0x0f, 0x7f, 0x2c, 0x60, 0x84, 0x5d, 0x65, 0x3f, 0xf7, 0xfb, 0x74, 0xec, 0x7e, 0xa9, 0x0f, - 0xe7, 0xb4, 0x75, 0xd3, 0x58, 0x18, 0xd2, 0xe3, 0xc6, 0x6d, 0x92, 0x16, 0x83, 0x62, 0xab, 0xc1, - 0x40, 0x57, 0xd8, 0x69, 0xda, 0x0b, 0x1d, 0x81, 0xd6, 0x58, 0xc7, 0x42, 0xab, 0x48, 0xc2, 0x0e, - 0xb9, 0xea, 0x45, 0x1f, 0xa2, 0x6f, 0xd5, 0x37, 0xe8, 0x93, 0xf4, 0xa2, 0x67, 0x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0x90, 0xce, 0x89, 0xed, 0xc5, 0xe7, - 0xaa, 0xcc, 0xef, 0x40, 0x5b, 0xf6, 0x0e, 0x8e, 0x38, 0x0a, 0x27, 0x68, 0xe6, 0x27, 0x8a, 0xed, - 0x78, 0x14, 0xa9, 0xc5, 0x87, 0xf9, 0x31, 0x39, 0x0a, 0x27, 0xe8, 0x8d, 0x7d, 0x90, 0x67, 0xf2, - 0x85, 0x14, 0xc8, 0x5c, 0x90, 0x71, 0x52, 0x93, 0xec, 0x13, 0xad, 0xc3, 0xca, 0xa5, 0xed, 0x8d, - 0x48, 0x52, 0x90, 0x62, 0xf1, 0xfb, 0xf4, 0xab, 0x54, 0xc9, 0x00, 0x79, 0x26, 0x31, 0x68, 0x13, - 0x7e, 0xd0, 0x5b, 0xa7, 0x06, 0x6e, 0xb7, 0x8e, 0xf5, 0x56, 0xd7, 0x3a, 0x69, 0x99, 0x1d, 0xbd, - 0x6e, 0xbc, 0x33, 0xf4, 0x86, 0xf2, 0x04, 0xad, 0x01, 0x74, 0x70, 0xbb, 0x71, 0x52, 0xef, 0x1a, - 0xed, 0x96, 0x92, 0x42, 0xab, 0x50, 0xe8, 0x60, 0xdd, 0xec, 0xd6, 0x0e, 0x9a, 0xba, 0x92, 0x2e, - 0xfd, 0x11, 0x24, 0x71, 0x3e, 0x84, 0x60, 0xed, 0x48, 0xaf, 0x35, 0xbb, 0x47, 0xd6, 0x49, 0xeb, - 0x7d, 0xab, 0xfd, 0xa1, 0xa5, 0x3c, 0x41, 0x05, 0x58, 0xa9, 0x35, 0x8d, 0x53, 0x5d, 0x49, 0xa1, - 0x3c, 0x64, 0x1b, 0x7a, 0xad, 0xa1, 0xa4, 0x51, 0x11, 0xf2, 0x0d, 0xfd, 0x10, 0xd7, 0x1a, 0x7a, - 0x43, 0xc9, 0x94, 0xc6, 0x20, 0x89, 0x83, 0x31, 0x07, 0x66, 0xb7, 0xd6, 0x3d, 0x31, 0x67, 0x1c, - 0x14, 0x21, 0x5f, 0x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, 0x49, 0x1c, 0xf0, 0xf2, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbd, 0x6b, 0x5f, 0x33, - 0x21, 0x11, 0x00, 0x00, + // 1656 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0x6d, 0x77, 0xda, 0xc8, + 0x15, 0x0e, 0x2f, 0xe6, 0xe5, 0x8a, 0xb8, 0xca, 0xac, 0xbb, 0xd1, 0x49, 0xba, 0x5b, 0x1f, 0x9d, + 0xd3, 0xd6, 0xdd, 0x26, 0x22, 0x90, 0xd6, 0x8d, 0xbb, 0x4d, 0x76, 0x31, 0x28, 0xb6, 0xba, 0x18, + 0xd8, 0x11, 0x64, 0xbb, 0xed, 0x07, 0x1d, 0x81, 0xc6, 0x44, 0xc7, 0x42, 0xa3, 0x48, 0xc2, 0x0e, + 0xf9, 0xd4, 0x9f, 0xd1, 0x7f, 0xd5, 0xff, 0x91, 0x4f, 0xfd, 0x09, 0x7b, 0x66, 0x46, 0x06, 0x8c, + 0x8d, 0xc1, 0xe6, 0x9b, 0x66, 0xe6, 0x3e, 0xcf, 0xd5, 0xdc, 0xb9, 0x73, 0xef, 0x23, 0xc1, 0xb3, + 0x89, 0xed, 0x3b, 0xe4, 0x63, 0x79, 0xe0, 0xd1, 0xb1, 0x53, 0x1e, 0x39, 0xfd, 0x72, 0x40, 0xa3, + 0x78, 0x18, 0x92, 0xe8, 0x83, 0x57, 0x3e, 0xaf, 0x94, 0x07, 0xde, 0x38, 0x8a, 0x49, 0xa8, 0x05, + 0x21, 0x8d, 0x29, 0xfa, 0x5a, 0x58, 0x6b, 0xdc, 0x5a, 0x1b, 0x39, 0x7d, 0x6d, 0x66, 0xad, 0x9d, + 0x57, 0x9e, 0xfc, 0x76, 0x48, 0xe9, 0xd0, 0x23, 0x65, 0x6e, 0xdd, 0x1f, 0x9f, 0x96, 0x63, 0x77, + 0x44,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e, 0x7e, 0x8d, 0x0c, 0xe9, 0xf3, 0x21, 0xf1, 0x79, 0xd1, 0x2f, 0xdf, + 0xfe, 0xcf, 0xe4, 0xdb, 0xd9, 0xa8, 0x9f, 0xe3, 0x80, 0x97, 0xbf, 0x04, 0x00, 0x00, 0xff, 0xff, + 0xe3, 0x20, 0xa0, 0x2e, 0x0d, 0x14, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/cluster.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/cluster.pbext.go new file mode 100644 index 000000000..af7ae378e --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/cluster.pbext.go @@ -0,0 +1,250 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + config "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config" + timeofday "google.golang.org/genproto/googleapis/type/timeofday" +) + +func (m *Cluster) SetId(v string) { + m.Id = v +} + +func (m *Cluster) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Cluster) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Cluster) SetName(v string) { + m.Name = v +} + +func (m *Cluster) SetDescription(v string) { + m.Description = v +} + +func (m *Cluster) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *Cluster) SetEnvironment(v Cluster_Environment) { + m.Environment = v +} + +func (m *Cluster) SetMonitoring(v []*Monitoring) { + m.Monitoring = v +} + +func (m *Cluster) SetConfig(v *ClusterConfig) { + m.Config = v +} + +func (m *Cluster) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *Cluster) SetHealth(v Cluster_Health) { + m.Health = v +} + +func (m *Cluster) SetStatus(v Cluster_Status) { + m.Status = v +} + +func (m *Monitoring) SetName(v string) { + m.Name = v +} + +func (m *Monitoring) SetDescription(v string) { + m.Description = v +} + +func (m *Monitoring) SetLink(v string) { + m.Link = v +} + +type ClusterConfig_PostgresqlConfig = isClusterConfig_PostgresqlConfig + +func (m *ClusterConfig) SetPostgresqlConfig(v ClusterConfig_PostgresqlConfig) { + m.PostgresqlConfig = v +} + +func (m *ClusterConfig) SetVersion(v string) { + m.Version = v +} + +func (m *ClusterConfig) SetPostgresqlConfig_9_6(v *config.PostgresqlConfigSet9_6) { + m.PostgresqlConfig = &ClusterConfig_PostgresqlConfig_9_6{ + PostgresqlConfig_9_6: v, + } +} + +func (m *ClusterConfig) SetPostgresqlConfig_10_1C(v *config.PostgresqlConfigSet10_1C) { + m.PostgresqlConfig = &ClusterConfig_PostgresqlConfig_10_1C{ + PostgresqlConfig_10_1C: v, + } +} + +func (m *ClusterConfig) SetPostgresqlConfig_10(v *config.PostgresqlConfigSet10) { + m.PostgresqlConfig = &ClusterConfig_PostgresqlConfig_10{ + PostgresqlConfig_10: v, + } +} + +func (m *ClusterConfig) SetPostgresqlConfig_11(v *config.PostgresqlConfigSet11) { + m.PostgresqlConfig = &ClusterConfig_PostgresqlConfig_11{ + PostgresqlConfig_11: v, + } +} + +func (m *ClusterConfig) SetPostgresqlConfig_12(v *config.PostgresqlConfigSet12) { + m.PostgresqlConfig = &ClusterConfig_PostgresqlConfig_12{ + PostgresqlConfig_12: v, + } +} + +func (m *ClusterConfig) SetPoolerConfig(v *ConnectionPoolerConfig) { + m.PoolerConfig = v +} + +func (m *ClusterConfig) SetResources(v *Resources) { + m.Resources = v +} + +func (m *ClusterConfig) SetAutofailover(v *wrappers.BoolValue) { + m.Autofailover = v +} + +func (m *ClusterConfig) SetBackupWindowStart(v *timeofday.TimeOfDay) { + m.BackupWindowStart = v +} + +func (m *ClusterConfig) SetAccess(v *Access) { + m.Access = v +} + +func (m *ConnectionPoolerConfig) SetPoolingMode(v ConnectionPoolerConfig_PoolingMode) { + m.PoolingMode = v +} + +func (m *ConnectionPoolerConfig) SetPoolDiscard(v *wrappers.BoolValue) { + m.PoolDiscard = v +} + +func (m *Host) SetName(v string) { + m.Name = v +} + +func (m *Host) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *Host) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *Host) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Host) SetRole(v Host_Role) { + m.Role = v +} + +func (m *Host) SetHealth(v Host_Health) { + m.Health = v +} + +func (m *Host) SetServices(v []*Service) { + m.Services = v +} + +func (m *Host) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *Host) SetReplicationSource(v string) { + m.ReplicationSource = v +} + +func (m *Host) SetPriority(v *wrappers.Int64Value) { + m.Priority = v +} + +func (m *Host) SetConfig(v *HostConfig) { + m.Config = v +} + +func (m *Host) SetAssignPublicIp(v bool) { + m.AssignPublicIp = v +} + +func (m *Host) SetReplicaType(v Host_ReplicaType) { + m.ReplicaType = v +} + +type HostConfig_PostgresqlConfig = isHostConfig_PostgresqlConfig + +func (m *HostConfig) SetPostgresqlConfig(v HostConfig_PostgresqlConfig) { + m.PostgresqlConfig = v +} + +func (m *HostConfig) SetPostgresqlConfig_9_6(v *config.PostgresqlHostConfig9_6) { + m.PostgresqlConfig = &HostConfig_PostgresqlConfig_9_6{ + PostgresqlConfig_9_6: v, + } +} + +func (m *HostConfig) SetPostgresqlConfig_10_1C(v *config.PostgresqlHostConfig10_1C) { + m.PostgresqlConfig = &HostConfig_PostgresqlConfig_10_1C{ + PostgresqlConfig_10_1C: v, + } +} + +func (m *HostConfig) SetPostgresqlConfig_10(v *config.PostgresqlHostConfig10) { + m.PostgresqlConfig = &HostConfig_PostgresqlConfig_10{ + PostgresqlConfig_10: v, + } +} + +func (m *HostConfig) SetPostgresqlConfig_11(v *config.PostgresqlHostConfig11) { + m.PostgresqlConfig = &HostConfig_PostgresqlConfig_11{ + PostgresqlConfig_11: v, + } +} + +func (m *HostConfig) SetPostgresqlConfig_12(v *config.PostgresqlHostConfig12) { + m.PostgresqlConfig = &HostConfig_PostgresqlConfig_12{ + PostgresqlConfig_12: v, + } +} + +func (m *Service) SetType(v Service_Type) { + m.Type = v +} + +func (m *Service) SetHealth(v Service_Health) { + m.Health = v +} + +func (m *Resources) SetResourcePresetId(v string) { + m.ResourcePresetId = v +} + +func (m *Resources) SetDiskSize(v int64) { + m.DiskSize = v +} + +func (m *Resources) SetDiskTypeId(v string) { + m.DiskTypeId = v +} + +func (m *Access) SetDataLens(v bool) { + m.DataLens = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/cluster_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/cluster_service.pb.go index 1265ec1c4..27925fc30 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/cluster_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/cluster_service.pb.go @@ -63,6 +63,36 @@ func (ListClusterLogsRequest_ServiceType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_fd68e7d7288beb05, []int{22, 0} } +type StreamClusterLogsRequest_ServiceType int32 + +const ( + StreamClusterLogsRequest_SERVICE_TYPE_UNSPECIFIED StreamClusterLogsRequest_ServiceType = 0 + // Logs of PostgreSQL activity. + StreamClusterLogsRequest_POSTGRESQL StreamClusterLogsRequest_ServiceType = 1 + // Logs of connection pooler activity. + StreamClusterLogsRequest_POOLER StreamClusterLogsRequest_ServiceType = 2 +) + +var StreamClusterLogsRequest_ServiceType_name = map[int32]string{ + 0: "SERVICE_TYPE_UNSPECIFIED", + 1: "POSTGRESQL", + 2: "POOLER", +} + +var StreamClusterLogsRequest_ServiceType_value = map[string]int32{ + "SERVICE_TYPE_UNSPECIFIED": 0, + "POSTGRESQL": 1, + "POOLER": 2, +} + +func (x StreamClusterLogsRequest_ServiceType) String() string { + return proto.EnumName(StreamClusterLogsRequest_ServiceType_name, int32(x)) +} + +func (StreamClusterLogsRequest_ServiceType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_fd68e7d7288beb05, []int{24, 0} +} + type GetClusterRequest struct { // ID of the PostgreSQL Cluster resource to return. // To get the cluster ID use a [ClusterService.List] request. @@ -1437,6 +1467,83 @@ func (m *ListClusterLogsResponse) GetNextPageToken() string { return "" } +type StreamClusterLogsRequest struct { + // Required. ID of the PostgreSQL cluster. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Columns from logs table to get in the response. + ColumnFilter []string `protobuf:"bytes,2,rep,name=column_filter,json=columnFilter,proto3" json:"column_filter,omitempty"` + ServiceType StreamClusterLogsRequest_ServiceType `protobuf:"varint,3,opt,name=service_type,json=serviceType,proto3,enum=yandex.cloud.mdb.postgresql.v1.StreamClusterLogsRequest_ServiceType" json:"service_type,omitempty"` + // Start timestamp for the logs request. + FromTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=from_time,json=fromTime,proto3" json:"from_time,omitempty"` + // End timestamp for the logs request. + // If this field is not set, all existing logs will be sent and then the new ones as + // they appear. In essence it has 'tail -f' semantics. + ToTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=to_time,json=toTime,proto3" json:"to_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamClusterLogsRequest) Reset() { *m = StreamClusterLogsRequest{} } +func (m *StreamClusterLogsRequest) String() string { return proto.CompactTextString(m) } +func (*StreamClusterLogsRequest) ProtoMessage() {} +func (*StreamClusterLogsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_fd68e7d7288beb05, []int{24} +} + +func (m *StreamClusterLogsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamClusterLogsRequest.Unmarshal(m, b) +} +func (m *StreamClusterLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamClusterLogsRequest.Marshal(b, m, deterministic) +} +func (m *StreamClusterLogsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamClusterLogsRequest.Merge(m, src) +} +func (m *StreamClusterLogsRequest) XXX_Size() int { + return xxx_messageInfo_StreamClusterLogsRequest.Size(m) +} +func (m *StreamClusterLogsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StreamClusterLogsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamClusterLogsRequest proto.InternalMessageInfo + +func (m *StreamClusterLogsRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *StreamClusterLogsRequest) GetColumnFilter() []string { + if m != nil { + return m.ColumnFilter + } + return nil +} + +func (m *StreamClusterLogsRequest) GetServiceType() StreamClusterLogsRequest_ServiceType { + if m != nil { + return m.ServiceType + } + return StreamClusterLogsRequest_SERVICE_TYPE_UNSPECIFIED +} + +func (m *StreamClusterLogsRequest) GetFromTime() *timestamp.Timestamp { + if m != nil { + return m.FromTime + } + return nil +} + +func (m *StreamClusterLogsRequest) GetToTime() *timestamp.Timestamp { + if m != nil { + return m.ToTime + } + return nil +} + type ListClusterOperationsRequest struct { // ID of the PostgreSQL Cluster resource to list operations for. ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` @@ -1456,7 +1563,7 @@ func (m *ListClusterOperationsRequest) Reset() { *m = ListClusterOperati func (m *ListClusterOperationsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterOperationsRequest) ProtoMessage() {} func (*ListClusterOperationsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fd68e7d7288beb05, []int{24} + return fileDescriptor_fd68e7d7288beb05, []int{25} } func (m *ListClusterOperationsRequest) XXX_Unmarshal(b []byte) error { @@ -1515,7 +1622,7 @@ func (m *ListClusterOperationsResponse) Reset() { *m = ListClusterOperat func (m *ListClusterOperationsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterOperationsResponse) ProtoMessage() {} func (*ListClusterOperationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fd68e7d7288beb05, []int{25} + return fileDescriptor_fd68e7d7288beb05, []int{26} } func (m *ListClusterOperationsResponse) XXX_Unmarshal(b []byte) error { @@ -1570,7 +1677,7 @@ func (m *ListClusterBackupsRequest) Reset() { *m = ListClusterBackupsReq func (m *ListClusterBackupsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterBackupsRequest) ProtoMessage() {} func (*ListClusterBackupsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fd68e7d7288beb05, []int{26} + return fileDescriptor_fd68e7d7288beb05, []int{27} } func (m *ListClusterBackupsRequest) XXX_Unmarshal(b []byte) error { @@ -1629,7 +1736,7 @@ func (m *ListClusterBackupsResponse) Reset() { *m = ListClusterBackupsRe func (m *ListClusterBackupsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterBackupsResponse) ProtoMessage() {} func (*ListClusterBackupsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fd68e7d7288beb05, []int{27} + return fileDescriptor_fd68e7d7288beb05, []int{28} } func (m *ListClusterBackupsResponse) XXX_Unmarshal(b []byte) error { @@ -1684,7 +1791,7 @@ func (m *ListClusterHostsRequest) Reset() { *m = ListClusterHostsRequest func (m *ListClusterHostsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterHostsRequest) ProtoMessage() {} func (*ListClusterHostsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fd68e7d7288beb05, []int{28} + return fileDescriptor_fd68e7d7288beb05, []int{29} } func (m *ListClusterHostsRequest) XXX_Unmarshal(b []byte) error { @@ -1743,7 +1850,7 @@ func (m *ListClusterHostsResponse) Reset() { *m = ListClusterHostsRespon func (m *ListClusterHostsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterHostsResponse) ProtoMessage() {} func (*ListClusterHostsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fd68e7d7288beb05, []int{29} + return fileDescriptor_fd68e7d7288beb05, []int{30} } func (m *ListClusterHostsResponse) XXX_Unmarshal(b []byte) error { @@ -1793,7 +1900,7 @@ func (m *AddClusterHostsRequest) Reset() { *m = AddClusterHostsRequest{} func (m *AddClusterHostsRequest) String() string { return proto.CompactTextString(m) } func (*AddClusterHostsRequest) ProtoMessage() {} func (*AddClusterHostsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fd68e7d7288beb05, []int{30} + return fileDescriptor_fd68e7d7288beb05, []int{31} } func (m *AddClusterHostsRequest) XXX_Unmarshal(b []byte) error { @@ -1842,7 +1949,7 @@ func (m *AddClusterHostsMetadata) Reset() { *m = AddClusterHostsMetadata func (m *AddClusterHostsMetadata) String() string { return proto.CompactTextString(m) } func (*AddClusterHostsMetadata) ProtoMessage() {} func (*AddClusterHostsMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_fd68e7d7288beb05, []int{31} + return fileDescriptor_fd68e7d7288beb05, []int{32} } func (m *AddClusterHostsMetadata) XXX_Unmarshal(b []byte) error { @@ -1892,7 +1999,7 @@ func (m *DeleteClusterHostsRequest) Reset() { *m = DeleteClusterHostsReq func (m *DeleteClusterHostsRequest) String() string { return proto.CompactTextString(m) } func (*DeleteClusterHostsRequest) ProtoMessage() {} func (*DeleteClusterHostsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fd68e7d7288beb05, []int{32} + return fileDescriptor_fd68e7d7288beb05, []int{33} } func (m *DeleteClusterHostsRequest) XXX_Unmarshal(b []byte) error { @@ -1941,7 +2048,7 @@ func (m *DeleteClusterHostsMetadata) Reset() { *m = DeleteClusterHostsMe func (m *DeleteClusterHostsMetadata) String() string { return proto.CompactTextString(m) } func (*DeleteClusterHostsMetadata) ProtoMessage() {} func (*DeleteClusterHostsMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_fd68e7d7288beb05, []int{33} + return fileDescriptor_fd68e7d7288beb05, []int{34} } func (m *DeleteClusterHostsMetadata) XXX_Unmarshal(b []byte) error { @@ -1991,7 +2098,7 @@ func (m *UpdateClusterHostsRequest) Reset() { *m = UpdateClusterHostsReq func (m *UpdateClusterHostsRequest) String() string { return proto.CompactTextString(m) } func (*UpdateClusterHostsRequest) ProtoMessage() {} func (*UpdateClusterHostsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fd68e7d7288beb05, []int{34} + return fileDescriptor_fd68e7d7288beb05, []int{35} } func (m *UpdateClusterHostsRequest) XXX_Unmarshal(b []byte) error { @@ -2040,7 +2147,7 @@ func (m *UpdateClusterHostsMetadata) Reset() { *m = UpdateClusterHostsMe func (m *UpdateClusterHostsMetadata) String() string { return proto.CompactTextString(m) } func (*UpdateClusterHostsMetadata) ProtoMessage() {} func (*UpdateClusterHostsMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_fd68e7d7288beb05, []int{35} + return fileDescriptor_fd68e7d7288beb05, []int{36} } func (m *UpdateClusterHostsMetadata) XXX_Unmarshal(b []byte) error { @@ -2098,7 +2205,7 @@ func (m *UpdateHostSpec) Reset() { *m = UpdateHostSpec{} } func (m *UpdateHostSpec) String() string { return proto.CompactTextString(m) } func (*UpdateHostSpec) ProtoMessage() {} func (*UpdateHostSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_fd68e7d7288beb05, []int{36} + return fileDescriptor_fd68e7d7288beb05, []int{37} } func (m *UpdateHostSpec) XXX_Unmarshal(b []byte) error { @@ -2184,7 +2291,7 @@ func (m *HostSpec) Reset() { *m = HostSpec{} } func (m *HostSpec) String() string { return proto.CompactTextString(m) } func (*HostSpec) ProtoMessage() {} func (*HostSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_fd68e7d7288beb05, []int{37} + return fileDescriptor_fd68e7d7288beb05, []int{38} } func (m *HostSpec) XXX_Unmarshal(b []byte) error { @@ -2249,17 +2356,16 @@ func (m *HostSpec) GetConfigSpec() *ConfigHostSpec { type ConfigSpec struct { // Version of PostgreSQL used in the cluster. - // Possible values: - // * 9.6 - // * 10 - // * 11 + // Possible values: `9.6`, `10`, `10_1c`, `11`, `12`. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // Configuration of a PostgreSQL cluster. // // Types that are valid to be assigned to PostgresqlConfig: // *ConfigSpec_PostgresqlConfig_9_6 + // *ConfigSpec_PostgresqlConfig_10_1C // *ConfigSpec_PostgresqlConfig_10 // *ConfigSpec_PostgresqlConfig_11 + // *ConfigSpec_PostgresqlConfig_12 PostgresqlConfig isConfigSpec_PostgresqlConfig `protobuf_oneof:"postgresql_config"` // Configuration of the connection pooler. PoolerConfig *ConnectionPoolerConfig `protobuf:"bytes,4,opt,name=pooler_config,json=poolerConfig,proto3" json:"pooler_config,omitempty"` @@ -2280,7 +2386,7 @@ func (m *ConfigSpec) Reset() { *m = ConfigSpec{} } func (m *ConfigSpec) String() string { return proto.CompactTextString(m) } func (*ConfigSpec) ProtoMessage() {} func (*ConfigSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_fd68e7d7288beb05, []int{38} + return fileDescriptor_fd68e7d7288beb05, []int{39} } func (m *ConfigSpec) XXX_Unmarshal(b []byte) error { @@ -2316,6 +2422,10 @@ type ConfigSpec_PostgresqlConfig_9_6 struct { PostgresqlConfig_9_6 *config.PostgresqlConfig9_6 `protobuf:"bytes,2,opt,name=postgresql_config_9_6,json=postgresqlConfig96,proto3,oneof"` } +type ConfigSpec_PostgresqlConfig_10_1C struct { + PostgresqlConfig_10_1C *config.PostgresqlConfig10_1C `protobuf:"bytes,10,opt,name=postgresql_config_10_1c,json=postgresqlConfig101c,proto3,oneof"` +} + type ConfigSpec_PostgresqlConfig_10 struct { PostgresqlConfig_10 *config.PostgresqlConfig10 `protobuf:"bytes,3,opt,name=postgresql_config_10,json=postgresqlConfig10,proto3,oneof"` } @@ -2324,12 +2434,20 @@ type ConfigSpec_PostgresqlConfig_11 struct { PostgresqlConfig_11 *config.PostgresqlConfig11 `protobuf:"bytes,7,opt,name=postgresql_config_11,json=postgresqlConfig11,proto3,oneof"` } +type ConfigSpec_PostgresqlConfig_12 struct { + PostgresqlConfig_12 *config.PostgresqlConfig12 `protobuf:"bytes,11,opt,name=postgresql_config_12,json=postgresqlConfig12,proto3,oneof"` +} + func (*ConfigSpec_PostgresqlConfig_9_6) isConfigSpec_PostgresqlConfig() {} +func (*ConfigSpec_PostgresqlConfig_10_1C) isConfigSpec_PostgresqlConfig() {} + func (*ConfigSpec_PostgresqlConfig_10) isConfigSpec_PostgresqlConfig() {} func (*ConfigSpec_PostgresqlConfig_11) isConfigSpec_PostgresqlConfig() {} +func (*ConfigSpec_PostgresqlConfig_12) isConfigSpec_PostgresqlConfig() {} + func (m *ConfigSpec) GetPostgresqlConfig() isConfigSpec_PostgresqlConfig { if m != nil { return m.PostgresqlConfig @@ -2344,6 +2462,13 @@ func (m *ConfigSpec) GetPostgresqlConfig_9_6() *config.PostgresqlConfig9_6 { return nil } +func (m *ConfigSpec) GetPostgresqlConfig_10_1C() *config.PostgresqlConfig10_1C { + if x, ok := m.GetPostgresqlConfig().(*ConfigSpec_PostgresqlConfig_10_1C); ok { + return x.PostgresqlConfig_10_1C + } + return nil +} + func (m *ConfigSpec) GetPostgresqlConfig_10() *config.PostgresqlConfig10 { if x, ok := m.GetPostgresqlConfig().(*ConfigSpec_PostgresqlConfig_10); ok { return x.PostgresqlConfig_10 @@ -2358,6 +2483,13 @@ func (m *ConfigSpec) GetPostgresqlConfig_11() *config.PostgresqlConfig11 { return nil } +func (m *ConfigSpec) GetPostgresqlConfig_12() *config.PostgresqlConfig12 { + if x, ok := m.GetPostgresqlConfig().(*ConfigSpec_PostgresqlConfig_12); ok { + return x.PostgresqlConfig_12 + } + return nil +} + func (m *ConfigSpec) GetPoolerConfig() *ConnectionPoolerConfig { if m != nil { return m.PoolerConfig @@ -2397,16 +2529,20 @@ func (m *ConfigSpec) GetAccess() *Access { func (*ConfigSpec) XXX_OneofWrappers() []interface{} { return []interface{}{ (*ConfigSpec_PostgresqlConfig_9_6)(nil), + (*ConfigSpec_PostgresqlConfig_10_1C)(nil), (*ConfigSpec_PostgresqlConfig_10)(nil), (*ConfigSpec_PostgresqlConfig_11)(nil), + (*ConfigSpec_PostgresqlConfig_12)(nil), } } type ConfigHostSpec struct { // Types that are valid to be assigned to PostgresqlConfig: // *ConfigHostSpec_PostgresqlConfig_9_6 + // *ConfigHostSpec_PostgresqlConfig_10_1C // *ConfigHostSpec_PostgresqlConfig_10 // *ConfigHostSpec_PostgresqlConfig_11 + // *ConfigHostSpec_PostgresqlConfig_12 PostgresqlConfig isConfigHostSpec_PostgresqlConfig `protobuf_oneof:"postgresql_config"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -2417,7 +2553,7 @@ func (m *ConfigHostSpec) Reset() { *m = ConfigHostSpec{} } func (m *ConfigHostSpec) String() string { return proto.CompactTextString(m) } func (*ConfigHostSpec) ProtoMessage() {} func (*ConfigHostSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_fd68e7d7288beb05, []int{39} + return fileDescriptor_fd68e7d7288beb05, []int{40} } func (m *ConfigHostSpec) XXX_Unmarshal(b []byte) error { @@ -2446,6 +2582,10 @@ type ConfigHostSpec_PostgresqlConfig_9_6 struct { PostgresqlConfig_9_6 *config.PostgresqlHostConfig9_6 `protobuf:"bytes,1,opt,name=postgresql_config_9_6,json=postgresqlConfig96,proto3,oneof"` } +type ConfigHostSpec_PostgresqlConfig_10_1C struct { + PostgresqlConfig_10_1C *config.PostgresqlHostConfig10_1C `protobuf:"bytes,4,opt,name=postgresql_config_10_1c,json=postgresqlConfig101c,proto3,oneof"` +} + type ConfigHostSpec_PostgresqlConfig_10 struct { PostgresqlConfig_10 *config.PostgresqlHostConfig10 `protobuf:"bytes,2,opt,name=postgresql_config_10,json=postgresqlConfig10,proto3,oneof"` } @@ -2454,12 +2594,20 @@ type ConfigHostSpec_PostgresqlConfig_11 struct { PostgresqlConfig_11 *config.PostgresqlHostConfig11 `protobuf:"bytes,3,opt,name=postgresql_config_11,json=postgresqlConfig11,proto3,oneof"` } +type ConfigHostSpec_PostgresqlConfig_12 struct { + PostgresqlConfig_12 *config.PostgresqlHostConfig12 `protobuf:"bytes,5,opt,name=postgresql_config_12,json=postgresqlConfig12,proto3,oneof"` +} + func (*ConfigHostSpec_PostgresqlConfig_9_6) isConfigHostSpec_PostgresqlConfig() {} +func (*ConfigHostSpec_PostgresqlConfig_10_1C) isConfigHostSpec_PostgresqlConfig() {} + func (*ConfigHostSpec_PostgresqlConfig_10) isConfigHostSpec_PostgresqlConfig() {} func (*ConfigHostSpec_PostgresqlConfig_11) isConfigHostSpec_PostgresqlConfig() {} +func (*ConfigHostSpec_PostgresqlConfig_12) isConfigHostSpec_PostgresqlConfig() {} + func (m *ConfigHostSpec) GetPostgresqlConfig() isConfigHostSpec_PostgresqlConfig { if m != nil { return m.PostgresqlConfig @@ -2474,6 +2622,13 @@ func (m *ConfigHostSpec) GetPostgresqlConfig_9_6() *config.PostgresqlHostConfig9 return nil } +func (m *ConfigHostSpec) GetPostgresqlConfig_10_1C() *config.PostgresqlHostConfig10_1C { + if x, ok := m.GetPostgresqlConfig().(*ConfigHostSpec_PostgresqlConfig_10_1C); ok { + return x.PostgresqlConfig_10_1C + } + return nil +} + func (m *ConfigHostSpec) GetPostgresqlConfig_10() *config.PostgresqlHostConfig10 { if x, ok := m.GetPostgresqlConfig().(*ConfigHostSpec_PostgresqlConfig_10); ok { return x.PostgresqlConfig_10 @@ -2488,17 +2643,27 @@ func (m *ConfigHostSpec) GetPostgresqlConfig_11() *config.PostgresqlHostConfig11 return nil } +func (m *ConfigHostSpec) GetPostgresqlConfig_12() *config.PostgresqlHostConfig12 { + if x, ok := m.GetPostgresqlConfig().(*ConfigHostSpec_PostgresqlConfig_12); ok { + return x.PostgresqlConfig_12 + } + return nil +} + // XXX_OneofWrappers is for the internal use of the proto package. func (*ConfigHostSpec) XXX_OneofWrappers() []interface{} { return []interface{}{ (*ConfigHostSpec_PostgresqlConfig_9_6)(nil), + (*ConfigHostSpec_PostgresqlConfig_10_1C)(nil), (*ConfigHostSpec_PostgresqlConfig_10)(nil), (*ConfigHostSpec_PostgresqlConfig_11)(nil), + (*ConfigHostSpec_PostgresqlConfig_12)(nil), } } func init() { proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.ListClusterLogsRequest_ServiceType", ListClusterLogsRequest_ServiceType_name, ListClusterLogsRequest_ServiceType_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.StreamClusterLogsRequest_ServiceType", StreamClusterLogsRequest_ServiceType_name, StreamClusterLogsRequest_ServiceType_value) proto.RegisterType((*GetClusterRequest)(nil), "yandex.cloud.mdb.postgresql.v1.GetClusterRequest") proto.RegisterType((*ListClustersRequest)(nil), "yandex.cloud.mdb.postgresql.v1.ListClustersRequest") proto.RegisterType((*ListClustersResponse)(nil), "yandex.cloud.mdb.postgresql.v1.ListClustersResponse") @@ -2527,6 +2692,7 @@ func init() { proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.mdb.postgresql.v1.LogRecord.MessageEntry") proto.RegisterType((*ListClusterLogsRequest)(nil), "yandex.cloud.mdb.postgresql.v1.ListClusterLogsRequest") proto.RegisterType((*ListClusterLogsResponse)(nil), "yandex.cloud.mdb.postgresql.v1.ListClusterLogsResponse") + proto.RegisterType((*StreamClusterLogsRequest)(nil), "yandex.cloud.mdb.postgresql.v1.StreamClusterLogsRequest") proto.RegisterType((*ListClusterOperationsRequest)(nil), "yandex.cloud.mdb.postgresql.v1.ListClusterOperationsRequest") proto.RegisterType((*ListClusterOperationsResponse)(nil), "yandex.cloud.mdb.postgresql.v1.ListClusterOperationsResponse") proto.RegisterType((*ListClusterBackupsRequest)(nil), "yandex.cloud.mdb.postgresql.v1.ListClusterBackupsRequest") @@ -2550,192 +2716,201 @@ func init() { } var fileDescriptor_fd68e7d7288beb05 = []byte{ - // 2801 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x3a, 0xc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d1, 0x41, 0xd9, 0x49, 0xbb, - 0x17, 0x13, 0x94, 0xff, 0xef, 0x8f, 0x9b, 0xa1, 0xa8, 0x71, 0xe3, 0x8b, 0x98, 0x1c, 0x4f, 0x6f, - 0x71, 0x6a, 0x8e, 0x4c, 0x50, 0x6a, 0xeb, 0xd3, 0x77, 0x7c, 0x46, 0x0a, 0xeb, 0x3b, 0x4b, 0x30, - 0x76, 0x0b, 0x57, 0x70, 0x5f, 0xae, 0x43, 0x98, 0xfb, 0x88, 0x84, 0x65, 0xbe, 0x08, 0xa3, 0x5b, - 0x8e, 0x62, 0xf5, 0x75, 0x8d, 0x5f, 0x86, 0x31, 0x2f, 0x8d, 0xb0, 0xac, 0x17, 0x00, 0x6d, 0x39, - 0x86, 0xd9, 0x0f, 0xe7, 0x19, 0x22, 0x7d, 0x83, 0x44, 0x58, 0xc6, 0x9f, 0x09, 0x80, 0xd6, 0x8d, - 0x7a, 0x5f, 0xa1, 0x7a, 0x13, 0x4e, 0xa8, 0xd8, 0x76, 0x34, 0x9d, 0x96, 0xc4, 0x72, 0xf3, 0xb6, - 0x1d, 0xe8, 0x80, 0x37, 0xea, 0x01, 0x5d, 0xe1, 0x17, 0xaf, 0xf8, 0x2b, 0x01, 0x46, 0x3d, 0x52, - 0x84, 0x14, 0x1e, 0x4d, 0xc0, 0x31, 0xdb, 0xa8, 0x59, 0x25, 0xdc, 0xca, 0x53, 0x1a, 0x61, 0xeb, - 0x2b, 0xcd, 0x9b, 0xbd, 0x8b, 0x88, 0x34, 0x35, 0x74, 0x16, 0x6a, 0x09, 0xc6, 0x16, 0x69, 0xdd, - 0xde, 0xa7, 0x2f, 0xfa, 0x88, 0x84, 0x3d, 0x97, 0xcf, 0xe3, 0x70, 0x42, 0xc2, 0xb6, 0x63, 0x58, - 0xad, 0x47, 0x73, 0x0e, 0x92, 0xac, 0x9d, 0x68, 0x72, 0x67, 0x57, 0x44, 0x82, 0x2d, 0xaf, 0xaa, - 0x68, 0x06, 0x62, 0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bc, 0x90, 0x5d, 0xdc, 0xf8, 0x70, - 0xbd, 0xac, 0x39, 0x0f, 0x6b, 0xdb, 0xb9, 0x92, 0x51, 0xcd, 0x33, 0x89, 0x27, 0xd9, 0x6f, 0xa2, - 0xcb, 0xc6, 0x64, 0x19, 0xeb, 0x94, 0x71, 0xfe, 0xf0, 0x1f, 0x4b, 0xbf, 0xd5, 0xfc, 0xda, 0x8e, - 0x53, 0x84, 0xe9, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xe7, 0x54, 0xea, 0xbb, 0x8a, 0x30, 0x00, - 0x00, + // 2953 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x1b, 0x4d, 0x6f, 0x1b, 0xc7, + 0x35, 0x2b, 0x51, 0x14, 0xf9, 0x68, 0x2b, 0xf6, 0x48, 0x76, 0x18, 0xfa, 0x23, 0xf2, 0x36, 0xb1, + 0x65, 0xc6, 0x22, 0x45, 0x4a, 0x96, 0x2d, 0xf9, 0x23, 0x96, 0x64, 0xc9, 0x11, 0x2a, 0x59, 0xca, + 0xca, 0x4e, 0x90, 0x18, 0xee, 0x62, 0xc5, 0x1d, 0xd1, 0x0b, 0x93, 0xbb, 0xeb, 0xdd, 0xa5, 0x1c, + 0xb9, 0x48, 0x91, 0x26, 0x40, 0x0f, 0x46, 0x0f, 0x45, 0x0b, 0xb4, 0x48, 0x0a, 0xf4, 0x17, 0xf4, + 0x52, 0x01, 0x6d, 0x80, 0xb4, 0xcd, 0x21, 0x17, 0xbb, 0x97, 0x16, 0x50, 0xee, 0x05, 0x0a, 0xe4, + 0xd0, 0x43, 0x91, 0x43, 0x8e, 0x3d, 0x15, 0xf3, 0xb1, 0xe4, 0x2e, 0x3f, 0xb4, 0xbb, 0xa4, 0x5d, + 0xf8, 0x64, 0xed, 0xcc, 0xfb, 0x9e, 0xf7, 0xde, 0xbc, 0x79, 0x8f, 0x86, 0xa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5b, 0x37, 0xa4, 0xc5, 0x8d, 0x77, 0x56, 0x0e, 0x09, 0x08, 0x20, + 0xbe, 0xbe, 0xb6, 0xb6, 0xb2, 0x28, 0x1d, 0xea, 0x13, 0x3f, 0x16, 0xe0, 0x95, 0x16, 0x93, 0xf3, + 0x2e, 0xc3, 0x15, 0x88, 0x55, 0x8c, 0xb2, 0xdb, 0x61, 0x38, 0x1b, 0xda, 0x73, 0x25, 0x8a, 0x16, + 0xba, 0xbf, 0xf0, 0xf3, 0x7e, 0x48, 0x6f, 0x38, 0x16, 0x56, 0xaa, 0xff, 0x17, 0xbf, 0x2c, 0xb7, + 0xf5, 0xcb, 0xeb, 0x41, 0xda, 0x75, 0x92, 0xf0, 0x05, 0xf1, 0xcc, 0x67, 0xe7, 0x11, 0xbf, 0x13, + 0xe0, 0xb8, 0xc7, 0x23, 0xd6, 0xdc, 0x8e, 0x74, 0x77, 0x47, 0xf2, 0xec, 0x3b, 0x67, 0xe2, 0x63, + 0x01, 0x4e, 0x74, 0x10, 0x90, 0x3b, 0xee, 0x1c, 0x40, 0xbd, 0x91, 0xee, 0xba, 0xef, 0x29, 0xff, + 0x01, 0x37, 0x1a, 0xed, 0x75, 0x7c, 0xc9, 0x83, 0x14, 0xda, 0x79, 0x7f, 0x2b, 0xc0, 0xab, 0x1e, + 0x61, 0x58, 0x45, 0xfa, 0xc2, 0x98, 0xea, 0x67, 0x02, 0x64, 0xda, 0x49, 0xc7, 0xed, 0x74, 0x0d, + 0x06, 0xd9, 0x25, 0xed, 0x1a, 0xe9, 0x74, 0x50, 0x14, 0x30, 0x0a, 0x92, 0x8b, 0x16, 0xda, 0x4c, + 0x9f, 0xf9, 0xd3, 0x0c, 0x29, 0x89, 0x5e, 0x18, 0x23, 0xfd, 0x04, 0xd2, 0xad, 0xa2, 0x71, 0x0b, + 0xcd, 0xc2, 0x00, 0x29, 0x29, 0x5c, 0xfb, 0xbc, 0x1e, 0xa6, 0xd6, 0x93, 0x18, 0x4a, 0x68,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, + 0x97, 0x00, 0x07, 0x69, 0x70, 0xb9, 0xf3, 0x33, 0x74, 0x29, 0x4a, 0x24, 0x37, 0x4d, 0xfa, 0xc2, + 0xa8, 0x62, 0xee, 0xee, 0x65, 0xcf, 0x04, 0xcc, 0xee, 0x7c, 0x0a, 0xbd, 0x25, 0xce, 0x46, 0x8f, + 0x6c, 0x97, 0x24, 0xd1, 0xf1, 0x4f, 0x02, 0x24, 0xc8, 0x45, 0xb9, 0x62, 0x94, 0x6d, 0x34, 0xdd, + 0xdd, 0x78, 0x2a, 0x73, 0x21, 0x32, 0x1e, 0xbf, 0x8d, 0x67, 0x58, 0x80, 0xa3, 0x68, 0x31, 0x42, + 0xe7, 0x2b, 0x7f, 0x14, 0x00, 0xd8, 0x54, 0x82, 0x8a, 0x7e, 0xb1, 0xdb, 0x09, 0x46, 0x26, 0xfc, + 0x64, 0x47, 0xbc, 0x46, 0xc5, 0x9d, 0x45, 0x17, 0x23, 0xda, 0x9c, 0x70, 0x96, 0x89, 0xd4, 0x13, + 0x02, 0xfa, 0xbb, 0x00, 0x43, 0xc4, 0x1c, 0x8d, 0xc6, 0x3d, 0xba, 0x1c, 0xc1, 0x7c, 0x2d, 0x03, + 0x89, 0xcc, 0x95, 0x2e, 0xb1, 0xf9, 0x11, 0xbc, 0x45, 0x75, 0x9a, 0x41, 0x17, 0xa2, 0xe8, 0x94, + 0xf7, 0xcc, 0x0a, 0xbe, 0x16, 0x20, 0x45, 0x58, 0xf0, 0xf6, 0x3a, 0x9a, 0x89, 0x20, 0x8f, 0x7f, + 0x60, 0x90, 0x99, 0xed, 0x06, 0x95, 0xeb, 0x71, 0x99, 0xa5, 0x5b, 0x34, 0x15, 0x49, 0x0f, 0xb7, + 0x93, 0xff, 0xa5, 0x00, 0x49, 0x42, 0x9c, 0xb6, 0x01, 0x51, 0x14, 0x7f, 0xf6, 0xb6, 0x39, 0x33, + 0x17, 0xa3, 0x23, 0x72, 0xf1, 0x67, 0xd9, 0x45, 0x8d, 0x22, 0x5d, 0xd4, 0x79, 0xd6, 0x6a, 0xff, + 0x56, 0x80, 0xc4, 0x9c, 0xaa, 0x32, 0xd9, 0x03, 0x63, 0xb8, 0x7d, 0xb3, 0x3d, 0x4c, 0x76, 0xfa, + 0x68, 0x77, 0x2f, 0x3b, 0xd1, 0xb9, 0x2b, 0xbe, 0x4f, 0xed, 0xb4, 0x20, 0x5e, 0x8d, 0xae, 0xd7, + 0xec, 0xa6, 0xe2, 0x94, 0xee, 0xb1, 0xe2, 0x98, 0xa4, 0xaa, 0xef, 0x04, 0x48, 0xb1, 0xaa, 0x8d, + 0x69, 0x3a, 0x13, 0xa9, 0x42, 0x8c, 0xaa, 0xec, 0xc7, 0xc2, 0xee, 0x5e, 0x76, 0x72, 0xdf, 0x86, + 0xf9, 0xf3, 0x51, 0x98, 0x31, 0x74, 0x15, 0x6e, 0xf4, 0x91, 0x43, 0x28, 0xdc, 0xb1, 0xff, 0x1e, + 0x45, 0xe1, 0x7d, 0xda, 0xe2, 0xcf, 0x47, 0x61, 0xc6, 0x70, 0x56, 0xc8, 0xce, 0xdb, 0x20, 0xfa, + 0xc4, 0x54, 0x4c, 0xad, 0x55, 0xcb, 0x0f, 0x56, 0xcb, 0x9a, 0x73, 0xaf, 0xb6, 0x99, 0x2b, 0x19, + 0xd5, 0x3c, 0x03, 0x1f, 0x67, 0xff, 0xa5, 0xa2, 0x6c, 0x8c, 0x97, 0xb1, 0x4e, 0x85, 0xcb, 0xef, + 0xff, 0x7f, 0x2d, 0x2e, 0x35, 0xbe, 0x36, 0xe3, 0x14, 0x61, 0xf2, 0x7f, 0x01, 0x00, 0x00, 0xff, + 0xff, 0x0c, 0x8c, 0xb1, 0xff, 0xab, 0x35, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // ClusterServiceClient is the client API for ClusterService service. // @@ -2767,8 +2942,9 @@ type ClusterServiceClient interface { // Start a manual failover on the specified PostgreSQL cluster. StartFailover(ctx context.Context, in *StartClusterFailoverRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Retrieves logs for the specified PostgreSQL cluster. - // For more information about logs, see the [Logs](/docs/managed-postgresql/concepts/logs) section in the documentation. ListLogs(ctx context.Context, in *ListClusterLogsRequest, opts ...grpc.CallOption) (*ListClusterLogsResponse, error) + // Same as ListLogs but using server-side streaming. Also allows for 'tail -f' semantics. + StreamLogs(ctx context.Context, in *StreamClusterLogsRequest, opts ...grpc.CallOption) (ClusterService_StreamLogsClient, error) // Retrieves the list of Operation resources for the specified cluster. ListOperations(ctx context.Context, in *ListClusterOperationsRequest, opts ...grpc.CallOption) (*ListClusterOperationsResponse, error) // Retrieves the list of available backups for the specified PostgreSQL cluster. @@ -2784,10 +2960,10 @@ type ClusterServiceClient interface { } type clusterServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewClusterServiceClient(cc *grpc.ClientConn) ClusterServiceClient { +func NewClusterServiceClient(cc grpc.ClientConnInterface) ClusterServiceClient { return &clusterServiceClient{cc} } @@ -2899,6 +3075,38 @@ func (c *clusterServiceClient) ListLogs(ctx context.Context, in *ListClusterLogs return out, nil } +func (c *clusterServiceClient) StreamLogs(ctx context.Context, in *StreamClusterLogsRequest, opts ...grpc.CallOption) (ClusterService_StreamLogsClient, error) { + stream, err := c.cc.NewStream(ctx, &_ClusterService_serviceDesc.Streams[0], "/yandex.cloud.mdb.postgresql.v1.ClusterService/StreamLogs", opts...) + if err != nil { + return nil, err + } + x := &clusterServiceStreamLogsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ClusterService_StreamLogsClient interface { + Recv() (*LogRecord, error) + grpc.ClientStream +} + +type clusterServiceStreamLogsClient struct { + grpc.ClientStream +} + +func (x *clusterServiceStreamLogsClient) Recv() (*LogRecord, error) { + m := new(LogRecord) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + func (c *clusterServiceClient) ListOperations(ctx context.Context, in *ListClusterOperationsRequest, opts ...grpc.CallOption) (*ListClusterOperationsResponse, error) { out := new(ListClusterOperationsResponse) err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.postgresql.v1.ClusterService/ListOperations", in, out, opts...) @@ -2981,8 +3189,9 @@ type ClusterServiceServer interface { // Start a manual failover on the specified PostgreSQL cluster. StartFailover(context.Context, *StartClusterFailoverRequest) (*operation.Operation, error) // Retrieves logs for the specified PostgreSQL cluster. - // For more information about logs, see the [Logs](/docs/managed-postgresql/concepts/logs) section in the documentation. ListLogs(context.Context, *ListClusterLogsRequest) (*ListClusterLogsResponse, error) + // Same as ListLogs but using server-side streaming. Also allows for 'tail -f' semantics. + StreamLogs(*StreamClusterLogsRequest, ClusterService_StreamLogsServer) error // Retrieves the list of Operation resources for the specified cluster. ListOperations(context.Context, *ListClusterOperationsRequest) (*ListClusterOperationsResponse, error) // Retrieves the list of available backups for the specified PostgreSQL cluster. @@ -3037,6 +3246,9 @@ func (*UnimplementedClusterServiceServer) StartFailover(ctx context.Context, req func (*UnimplementedClusterServiceServer) ListLogs(ctx context.Context, req *ListClusterLogsRequest) (*ListClusterLogsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListLogs not implemented") } +func (*UnimplementedClusterServiceServer) StreamLogs(req *StreamClusterLogsRequest, srv ClusterService_StreamLogsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamLogs not implemented") +} func (*UnimplementedClusterServiceServer) ListOperations(ctx context.Context, req *ListClusterOperationsRequest) (*ListClusterOperationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") } @@ -3276,6 +3488,27 @@ func _ClusterService_ListLogs_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _ClusterService_StreamLogs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(StreamClusterLogsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ClusterServiceServer).StreamLogs(m, &clusterServiceStreamLogsServer{stream}) +} + +type ClusterService_StreamLogsServer interface { + Send(*LogRecord) error + grpc.ServerStream +} + +type clusterServiceStreamLogsServer struct { + grpc.ServerStream +} + +func (x *clusterServiceStreamLogsServer) Send(m *LogRecord) error { + return x.ServerStream.SendMsg(m) +} + func _ClusterService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListClusterOperationsRequest) if err := dec(in); err != nil { @@ -3461,6 +3694,12 @@ var _ClusterService_serviceDesc = grpc.ServiceDesc{ Handler: _ClusterService_UpdateHosts_Handler, }, }, - Streams: []grpc.StreamDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamLogs", + Handler: _ClusterService_StreamLogs_Handler, + ServerStreams: true, + }, + }, Metadata: "yandex/cloud/mdb/postgresql/v1/cluster_service.proto", } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/cluster_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/cluster_service.pbext.go new file mode 100644 index 000000000..156c6c88a --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/cluster_service.pbext.go @@ -0,0 +1,540 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + config "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + timeofday "google.golang.org/genproto/googleapis/type/timeofday" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClustersRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListClustersRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClustersRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClustersRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListClustersResponse) SetClusters(v []*Cluster) { + m.Clusters = v +} + +func (m *ListClustersResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateClusterRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateClusterRequest) SetEnvironment(v Cluster_Environment) { + m.Environment = v +} + +func (m *CreateClusterRequest) SetConfigSpec(v *ConfigSpec) { + m.ConfigSpec = v +} + +func (m *CreateClusterRequest) SetDatabaseSpecs(v []*DatabaseSpec) { + m.DatabaseSpecs = v +} + +func (m *CreateClusterRequest) SetUserSpecs(v []*UserSpec) { + m.UserSpecs = v +} + +func (m *CreateClusterRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *CreateClusterRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *CreateClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateClusterRequest) SetConfigSpec(v *ConfigSpec) { + m.ConfigSpec = v +} + +func (m *UpdateClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StartClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StartClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StopClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StopClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *MoveClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *MoveClusterRequest) SetDestinationFolderId(v string) { + m.DestinationFolderId = v +} + +func (m *MoveClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *MoveClusterMetadata) SetSourceFolderId(v string) { + m.SourceFolderId = v +} + +func (m *MoveClusterMetadata) SetDestinationFolderId(v string) { + m.DestinationFolderId = v +} + +func (m *BackupClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *BackupClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RestoreClusterRequest) SetBackupId(v string) { + m.BackupId = v +} + +func (m *RestoreClusterRequest) SetTime(v *timestamp.Timestamp) { + m.Time = v +} + +func (m *RestoreClusterRequest) SetTimeInclusive(v bool) { + m.TimeInclusive = v +} + +func (m *RestoreClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *RestoreClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *RestoreClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *RestoreClusterRequest) SetEnvironment(v Cluster_Environment) { + m.Environment = v +} + +func (m *RestoreClusterRequest) SetConfigSpec(v *ConfigSpec) { + m.ConfigSpec = v +} + +func (m *RestoreClusterRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *RestoreClusterRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *RestoreClusterRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *RestoreClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RestoreClusterMetadata) SetBackupId(v string) { + m.BackupId = v +} + +func (m *StartClusterFailoverRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StartClusterFailoverRequest) SetHostName(v string) { + m.HostName = v +} + +func (m *StartClusterFailoverMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *LogRecord) SetTimestamp(v *timestamp.Timestamp) { + m.Timestamp = v +} + +func (m *LogRecord) SetMessage(v map[string]string) { + m.Message = v +} + +func (m *ListClusterLogsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterLogsRequest) SetColumnFilter(v []string) { + m.ColumnFilter = v +} + +func (m *ListClusterLogsRequest) SetServiceType(v ListClusterLogsRequest_ServiceType) { + m.ServiceType = v +} + +func (m *ListClusterLogsRequest) SetFromTime(v *timestamp.Timestamp) { + m.FromTime = v +} + +func (m *ListClusterLogsRequest) SetToTime(v *timestamp.Timestamp) { + m.ToTime = v +} + +func (m *ListClusterLogsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterLogsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterLogsRequest) SetAlwaysNextPageToken(v bool) { + m.AlwaysNextPageToken = v +} + +func (m *ListClusterLogsResponse) SetLogs(v []*LogRecord) { + m.Logs = v +} + +func (m *ListClusterLogsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *StreamClusterLogsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StreamClusterLogsRequest) SetColumnFilter(v []string) { + m.ColumnFilter = v +} + +func (m *StreamClusterLogsRequest) SetServiceType(v StreamClusterLogsRequest_ServiceType) { + m.ServiceType = v +} + +func (m *StreamClusterLogsRequest) SetFromTime(v *timestamp.Timestamp) { + m.FromTime = v +} + +func (m *StreamClusterLogsRequest) SetToTime(v *timestamp.Timestamp) { + m.ToTime = v +} + +func (m *ListClusterOperationsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListClusterOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListClusterBackupsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterBackupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterBackupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterBackupsResponse) SetBackups(v []*Backup) { + m.Backups = v +} + +func (m *ListClusterBackupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterHostsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterHostsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterHostsResponse) SetHosts(v []*Host) { + m.Hosts = v +} + +func (m *ListClusterHostsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *AddClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterHostsRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *AddClusterHostsMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterHostsMetadata) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *DeleteClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterHostsRequest) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *DeleteClusterHostsMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterHostsMetadata) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *UpdateClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterHostsRequest) SetUpdateHostSpecs(v []*UpdateHostSpec) { + m.UpdateHostSpecs = v +} + +func (m *UpdateClusterHostsMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterHostsMetadata) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *UpdateHostSpec) SetHostName(v string) { + m.HostName = v +} + +func (m *UpdateHostSpec) SetReplicationSource(v string) { + m.ReplicationSource = v +} + +func (m *UpdateHostSpec) SetPriority(v *wrappers.Int64Value) { + m.Priority = v +} + +func (m *UpdateHostSpec) SetConfigSpec(v *ConfigHostSpec) { + m.ConfigSpec = v +} + +func (m *HostSpec) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *HostSpec) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *HostSpec) SetAssignPublicIp(v bool) { + m.AssignPublicIp = v +} + +func (m *HostSpec) SetReplicationSource(v string) { + m.ReplicationSource = v +} + +func (m *HostSpec) SetPriority(v *wrappers.Int64Value) { + m.Priority = v +} + +func (m *HostSpec) SetConfigSpec(v *ConfigHostSpec) { + m.ConfigSpec = v +} + +type ConfigSpec_PostgresqlConfig = isConfigSpec_PostgresqlConfig + +func (m *ConfigSpec) SetPostgresqlConfig(v ConfigSpec_PostgresqlConfig) { + m.PostgresqlConfig = v +} + +func (m *ConfigSpec) SetVersion(v string) { + m.Version = v +} + +func (m *ConfigSpec) SetPostgresqlConfig_9_6(v *config.PostgresqlConfig9_6) { + m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_9_6{ + PostgresqlConfig_9_6: v, + } +} + +func (m *ConfigSpec) SetPostgresqlConfig_10_1C(v *config.PostgresqlConfig10_1C) { + m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_10_1C{ + PostgresqlConfig_10_1C: v, + } +} + +func (m *ConfigSpec) SetPostgresqlConfig_10(v *config.PostgresqlConfig10) { + m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_10{ + PostgresqlConfig_10: v, + } +} + +func (m *ConfigSpec) SetPostgresqlConfig_11(v *config.PostgresqlConfig11) { + m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_11{ + PostgresqlConfig_11: v, + } +} + +func (m *ConfigSpec) SetPostgresqlConfig_12(v *config.PostgresqlConfig12) { + m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_12{ + PostgresqlConfig_12: v, + } +} + +func (m *ConfigSpec) SetPoolerConfig(v *ConnectionPoolerConfig) { + m.PoolerConfig = v +} + +func (m *ConfigSpec) SetResources(v *Resources) { + m.Resources = v +} + +func (m *ConfigSpec) SetAutofailover(v *wrappers.BoolValue) { + m.Autofailover = v +} + +func (m *ConfigSpec) SetBackupWindowStart(v *timeofday.TimeOfDay) { + m.BackupWindowStart = v +} + +func (m *ConfigSpec) SetAccess(v *Access) { + m.Access = v +} + +type ConfigHostSpec_PostgresqlConfig = isConfigHostSpec_PostgresqlConfig + +func (m *ConfigHostSpec) SetPostgresqlConfig(v ConfigHostSpec_PostgresqlConfig) { + m.PostgresqlConfig = v +} + +func (m *ConfigHostSpec) SetPostgresqlConfig_9_6(v *config.PostgresqlHostConfig9_6) { + m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_9_6{ + PostgresqlConfig_9_6: v, + } +} + +func (m *ConfigHostSpec) SetPostgresqlConfig_10_1C(v *config.PostgresqlHostConfig10_1C) { + m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_10_1C{ + PostgresqlConfig_10_1C: v, + } +} + +func (m *ConfigHostSpec) SetPostgresqlConfig_10(v *config.PostgresqlHostConfig10) { + m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_10{ + PostgresqlConfig_10: v, + } +} + +func (m *ConfigHostSpec) SetPostgresqlConfig_11(v *config.PostgresqlHostConfig11) { + m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_11{ + PostgresqlConfig_11: v, + } +} + +func (m *ConfigHostSpec) SetPostgresqlConfig_12(v *config.PostgresqlHostConfig12) { + m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_12{ + PostgresqlConfig_12: v, + } +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host10.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host10.pb.go index 66cd69bb3..5364e7888 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host10.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host10.pb.go @@ -426,6 +426,8 @@ type PostgresqlHostConfig10 struct { MaxParallelWorkers *wrappers.Int64Value `protobuf:"bytes,65,opt,name=max_parallel_workers,json=maxParallelWorkers,proto3" json:"max_parallel_workers,omitempty"` MaxParallelWorkersPerGather *wrappers.Int64Value `protobuf:"bytes,66,opt,name=max_parallel_workers_per_gather,json=maxParallelWorkersPerGather,proto3" json:"max_parallel_workers_per_gather,omitempty"` Timezone string `protobuf:"bytes,67,opt,name=timezone,proto3" json:"timezone,omitempty"` + EffectiveIoConcurrency *wrappers.Int64Value `protobuf:"bytes,68,opt,name=effective_io_concurrency,json=effectiveIoConcurrency,proto3" json:"effective_io_concurrency,omitempty"` + EffectiveCacheSize *wrappers.Int64Value `protobuf:"bytes,69,opt,name=effective_cache_size,json=effectiveCacheSize,proto3" json:"effective_cache_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -918,6 +920,20 @@ func (m *PostgresqlHostConfig10) GetTimezone() string { return "" } +func (m *PostgresqlHostConfig10) GetEffectiveIoConcurrency() *wrappers.Int64Value { + if m != nil { + return m.EffectiveIoConcurrency + } + return nil +} + +func (m *PostgresqlHostConfig10) GetEffectiveCacheSize() *wrappers.Int64Value { + if m != nil { + return m.EffectiveCacheSize + } + return nil +} + func init() { proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_ConstraintExclusion", PostgresqlHostConfig10_ConstraintExclusion_name, PostgresqlHostConfig10_ConstraintExclusion_value) proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_ForceParallelMode", PostgresqlHostConfig10_ForceParallelMode_name, PostgresqlHostConfig10_ForceParallelMode_value) @@ -937,159 +953,165 @@ func init() { } var fileDescriptor_53efe89f28d25315 = []byte{ - // 2457 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x99, 0x5b, 0x73, 0xdb, 0xc6, - 0x15, 0xc7, 0x4b, 0xd9, 0x71, 0xec, 0xd5, 0x0d, 0x5c, 0xea, 0x02, 0x4b, 0xf1, 0x25, 0x4a, 0x9c, - 0x3a, 0x69, 0x45, 0x5d, 0xac, 0xda, 0x6e, 0xd3, 0xa4, 0x01, 0x49, 0x50, 0x66, 0x4b, 0x12, 0x0c, - 0x00, 0xd9, 0x4e, 0x3a, 0x99, 0x9d, 0x25, 0xb0, 0x24, 0x51, 0x03, 0x58, 0x78, 0x17, 0xd4, 0x25, - 0x33, 0x9d, 0xbe, 0xf4, 0xa9, 0x8f, 0x7d, 0xe8, 0x4c, 0xfb, 0x11, 0xfa, 0x45, 0xf2, 0x4d, 0xfa, - 0x21, 0xf2, 0xd4, 0xd9, 0x05, 0xc0, 0x8b, 0xc4, 0x16, 0x6c, 0xe5, 0x37, 0xf1, 0xec, 0xfe, 0x7f, - 0xe7, 0xec, 0x9e, 0xb3, 0x37, 0x08, 0x1c, 0x5e, 0xe0, 0xd0, 0x25, 0xe7, 0x7b, 0x8e, 0x4f, 0x87, - 0xee, 0x5e, 0xe0, 0x76, 0xf7, 0x22, 0xca, 0xe3, 0x3e, 0x23, 0xfc, 0xad, 0xbf, 0x77, 0x7a, 0xb0, - 0xe7, 0xd0, 0xb0, 0xe7, 0xf5, 0xf7, 0x06, 0x94, 0xc7, 0x07, 0xfb, 0xe5, 0x88, 0xd1, 0x98, 0xc2, - 0x47, 0x89, 0xa6, 0x2c, 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, 0x51, 0x38, - 0x13, 0x0d, 0x55, 0xa3, 0x6d, 0x0b, 0xfb, 0x82, 0xd8, 0x63, 0x57, 0xa6, 0x9f, 0x2f, 0xa2, 0x68, - 0x2b, 0x5a, 0xf5, 0x77, 0x56, 0x53, 0xb3, 0x5e, 0xa0, 0xaf, 0x4f, 0x0c, 0xfb, 0xf2, 0xfe, 0x55, - 0x02, 0xab, 0x97, 0x3a, 0x24, 0x0e, 0x2e, 0xab, 0x8c, 0xb6, 0xb2, 0x20, 0x22, 0xba, 0x62, 0xaf, - 0xd7, 0x95, 0x1b, 0xf0, 0x43, 0x70, 0xef, 0x72, 0x83, 0xa5, 0xd5, 0x75, 0xa4, 0xb7, 0xab, 0x46, - 0x4d, 0x2c, 0xfc, 0x9b, 0x95, 0x97, 0xdf, 0xda, 0x7d, 0x2f, 0x1e, 0x0c, 0xbb, 0x65, 0x87, 0x06, - 0x7b, 0xc9, 0x13, 0x6d, 0x37, 0xf9, 0xc7, 0x5e, 0x9f, 0xee, 0xf6, 0x49, 0x28, 0x8f, 0x9e, 0xbd, - 0xb9, 0xfe, 0xd9, 0xf8, 0xf9, 0xd8, 0xd8, 0xbd, 0x25, 0x75, 0x4f, 0xfe, 0x1d, 0x00, 0x00, 0xff, - 0xff, 0xfc, 0x6e, 0xa1, 0xe5, 0xa7, 0x1c, 0x00, 0x00, + // 2548 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x99, 0xdb, 0x73, 0xdb, 0xc6, + 0xf5, 0xc7, 0x7f, 0x94, 0x1c, 0xc7, 0x5e, 0xdd, 0xc0, 0xa5, 0x2e, 0xb0, 0x14, 0x5f, 0xa2, 0xc4, + 0xf9, 0x39, 0x69, 0x45, 0x89, 0xb2, 0x6c, 0x2b, 0x4d, 0x93, 0x06, 0x24, 0x41, 0x99, 0x2d, 0x49, + 0x30, 0x00, 0x64, 0x3b, 0xe9, 0x64, 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9, 0x10, 0xe1, 0x36, + 0xaf, 0xe0, 0xca, 0x94, 0xba, 0x31, 0x4d, 0xcc, 0x4e, 0x65, 0xa4, 0x18, 0x42, 0xa8, 0xef, 0x93, + 0x68, 0x61, 0x71, 0x79, 0x75, 0x36, 0xc8, 0x48, 0x01, 0xeb, 0x00, 0x0a, 0x88, 0xed, 0xf0, 0x71, + 0xce, 0x5a, 0x26, 0x27, 0xef, 0xd2, 0x5e, 0x75, 0x42, 0x04, 0xbf, 0x06, 0x8b, 0x11, 0x2a, 0x19, + 0xad, 0xbc, 0x9e, 0x09, 0x59, 0x10, 0x90, 0xa4, 0xbb, 0x58, 0x57, 0x42, 0x1e, 0x27, 0xfa, 0x94, + 0xb0, 0x0e, 0xe5, 0x4e, 0x78, 0x21, 0x6f, 0xbc, 0x8f, 0x75, 0xd5, 0xa0, 0xbd, 0x28, 0xb7, 0x2f, + 0x52, 0x6c, 0x14, 0xff, 0xa4, 0x09, 0x7e, 0x0b, 0xc4, 0xe4, 0x20, 0x97, 0x5a, 0xaf, 0xd1, 0x19, + 0x76, 0x42, 0x2e, 0xcb, 0x99, 0x23, 0x10, 0x23, 0x6e, 0x50, 0xeb, 0xf5, 0x4b, 0xd1, 0x1f, 0x52, + 0xb0, 0x24, 0x08, 0xa3, 0x1a, 0xb9, 0x13, 0x05, 0xff, 0xdb, 0x6b, 0x07, 0x3f, 0xac, 0x9c, 0xc8, + 0xe1, 0xa8, 0x8e, 0x94, 0x38, 0xe4, 0xe1, 0x09, 0xcc, 0xe5, 0xcd, 0xec, 0xaa, 0x14, 0x08, 0x33, + 0x39, 0x7f, 0x39, 0xbc, 0x0f, 0x16, 0x38, 0xc1, 0xcc, 0xea, 0xa3, 0x00, 0x87, 0x7d, 0x79, 0xeb, + 0x41, 0xee, 0xd1, 0x6d, 0x1d, 0xc4, 0xa6, 0x36, 0x0e, 0xfb, 0x22, 0xad, 0x8c, 0x9e, 0x21, 0x4e, + 0xac, 0x01, 0x13, 0x09, 0xf9,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x39, 0x77, 0x42, 0x44, 0x93, 0x1b, 0xb2, 0xbc, 0x9f, 0x7d, 0x3a, + 0x0b, 0x81, 0x16, 0xdf, 0x75, 0xe1, 0xb7, 0x60, 0x89, 0x93, 0x13, 0x14, 0xe0, 0x1e, 0x41, 0x16, + 0xe5, 0xa1, 0xfc, 0x78, 0x86, 0x47, 0xdd, 0x02, 0x27, 0x27, 0x6d, 0xdc, 0x23, 0x15, 0xca, 0xa3, + 0x3d, 0x8c, 0x61, 0xdf, 0xa6, 0xde, 0x18, 0xe4, 0x60, 0x06, 0xc8, 0x72, 0xac, 0x1a, 0x72, 0x8e, + 0x40, 0x9e, 0xf8, 0xb8, 0xe3, 0x12, 0xd4, 0x71, 0x42, 0x0f, 0x07, 0x62, 0xbe, 0xe4, 0xa7, 0x99, + 0xa3, 0x91, 0x62, 0x51, 0x79, 0xa8, 0x11, 0x77, 0xa2, 0x04, 0xd4, 0xc7, 0xbc, 0x8f, 0x7b, 0x3d, + 0xf9, 0x59, 0x26, 0x65, 0x29, 0x56, 0x3c, 0x8f, 0x05, 0xe2, 0x66, 0x3d, 0x86, 0x10, 0x4f, 0x40, + 0xf9, 0x30, 0xfb, 0x66, 0x3d, 0x62, 0x08, 0x05, 0x54, 0x41, 0x12, 0x1b, 0x72, 0xc4, 0x66, 0x14, + 0x8d, 0xe7, 0xcb, 0xec, 0x6d, 0x22, 0xd6, 0xd4, 0x53, 0x89, 0x28, 0xc0, 0x71, 0x0c, 0xf5, 0xdd, + 0x8b, 0x08, 0xf5, 0xab, 0x19, 0x76, 0x89, 0x11, 0x2a, 0x95, 0x8d, 0x0d, 0xcd, 0xc3, 0x21, 0x61, + 0x0e, 0x76, 0xe5, 0xaf, 0x66, 0x1d, 0x5a, 0x33, 0x51, 0x8c, 0x0d, 0xcd, 0x23, 0xac, 0x47, 0xa2, + 0x09, 0xfa, 0xf5, 0xac, 0x43, 0x6b, 0xa6, 0x92, 0xb1, 0x58, 0x7c, 0xc2, 0x43, 0x97, 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 0xcb, 0x14, 0xf6, 0x39, 0xb1, 0xc7, 0x2e, 0x4f, 0x3e, 0xc2, 0x44, 0xd1, + 0x96, 0x95, 0xca, 0xef, 0x8c, 0x86, 0x62, 0x3c, 0x47, 0xdf, 0x1d, 0x6b, 0xe6, 0xe5, 0xfd, 0xab, + 0x00, 0x56, 0x2e, 0x75, 0x88, 0x1d, 0x5c, 0x56, 0x69, 0x2d, 0x69, 0x4e, 0x44, 0x74, 0xc5, 0x5e, + 0xab, 0x49, 0xf3, 0xf0, 0x63, 0x70, 0xf7, 0x72, 0x83, 0xa1, 0xd4, 0x54, 0xa4, 0xb6, 0x2a, 0x5a, + 0x55, 0x2c, 0xfc, 0x1b, 0xe5, 0x3f, 0xe7, 0xc0, 0xe7, 0x13, 0xcf, 0x4b, 0x1c, 0x38, 0x3f, 0xf9, + 0xc4, 0xfc, 0xc1, 0xec, 0x39, 0x61, 0x7f, 0xd0, 0x29, 0x5a, 0xd4, 0xdb, 0x8d, 0x55, 0x3b, 0xf1, + 0xbf, 0x32, 0x7b, 0x74, 0xa7, 0x47, 0xfc, 0xe8, 0x24, 0xda, 0x9d, 0xe9, 0xdf, 0xab, 0x5f, 0x8d, + 0x8c, 0x9d, 0x9b, 0x91, 0xee, 0xf1, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x6b, 0x92, 0xe1, 0xd5, + 0x99, 0x1d, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host10.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host10.pbext.go new file mode 100644 index 000000000..b598fc5b6 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host10.pbext.go @@ -0,0 +1,279 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *PostgresqlHostConfig10) SetRecoveryMinApplyDelay(v *wrappers.Int64Value) { + m.RecoveryMinApplyDelay = v +} + +func (m *PostgresqlHostConfig10) SetSharedBuffers(v *wrappers.Int64Value) { + m.SharedBuffers = v +} + +func (m *PostgresqlHostConfig10) SetTempBuffers(v *wrappers.Int64Value) { + m.TempBuffers = v +} + +func (m *PostgresqlHostConfig10) SetWorkMem(v *wrappers.Int64Value) { + m.WorkMem = v +} + +func (m *PostgresqlHostConfig10) SetReplacementSortTuples(v *wrappers.Int64Value) { + m.ReplacementSortTuples = v +} + +func (m *PostgresqlHostConfig10) SetTempFileLimit(v *wrappers.Int64Value) { + m.TempFileLimit = v +} + +func (m *PostgresqlHostConfig10) SetBackendFlushAfter(v *wrappers.Int64Value) { + m.BackendFlushAfter = v +} + +func (m *PostgresqlHostConfig10) SetOldSnapshotThreshold(v *wrappers.Int64Value) { + m.OldSnapshotThreshold = v +} + +func (m *PostgresqlHostConfig10) SetMaxStandbyStreamingDelay(v *wrappers.Int64Value) { + m.MaxStandbyStreamingDelay = v +} + +func (m *PostgresqlHostConfig10) SetConstraintExclusion(v PostgresqlHostConfig10_ConstraintExclusion) { + m.ConstraintExclusion = v +} + +func (m *PostgresqlHostConfig10) SetCursorTupleFraction(v *wrappers.DoubleValue) { + m.CursorTupleFraction = v +} + +func (m *PostgresqlHostConfig10) SetFromCollapseLimit(v *wrappers.Int64Value) { + m.FromCollapseLimit = v +} + +func (m *PostgresqlHostConfig10) SetJoinCollapseLimit(v *wrappers.Int64Value) { + m.JoinCollapseLimit = v +} + +func (m *PostgresqlHostConfig10) SetForceParallelMode(v PostgresqlHostConfig10_ForceParallelMode) { + m.ForceParallelMode = v +} + +func (m *PostgresqlHostConfig10) SetClientMinMessages(v PostgresqlHostConfig10_LogLevel) { + m.ClientMinMessages = v +} + +func (m *PostgresqlHostConfig10) SetLogMinMessages(v PostgresqlHostConfig10_LogLevel) { + m.LogMinMessages = v +} + +func (m *PostgresqlHostConfig10) SetLogMinErrorStatement(v PostgresqlHostConfig10_LogLevel) { + m.LogMinErrorStatement = v +} + +func (m *PostgresqlHostConfig10) SetLogMinDurationStatement(v *wrappers.Int64Value) { + m.LogMinDurationStatement = v +} + +func (m *PostgresqlHostConfig10) SetLogCheckpoints(v *wrappers.BoolValue) { + m.LogCheckpoints = v +} + +func (m *PostgresqlHostConfig10) SetLogConnections(v *wrappers.BoolValue) { + m.LogConnections = v +} + +func (m *PostgresqlHostConfig10) SetLogDisconnections(v *wrappers.BoolValue) { + m.LogDisconnections = v +} + +func (m *PostgresqlHostConfig10) SetLogDuration(v *wrappers.BoolValue) { + m.LogDuration = v +} + +func (m *PostgresqlHostConfig10) SetLogErrorVerbosity(v PostgresqlHostConfig10_LogErrorVerbosity) { + m.LogErrorVerbosity = v +} + +func (m *PostgresqlHostConfig10) SetLogLockWaits(v *wrappers.BoolValue) { + m.LogLockWaits = v +} + +func (m *PostgresqlHostConfig10) SetLogStatement(v PostgresqlHostConfig10_LogStatement) { + m.LogStatement = v +} + +func (m *PostgresqlHostConfig10) SetLogTempFiles(v *wrappers.Int64Value) { + m.LogTempFiles = v +} + +func (m *PostgresqlHostConfig10) SetSearchPath(v string) { + m.SearchPath = v +} + +func (m *PostgresqlHostConfig10) SetRowSecurity(v *wrappers.BoolValue) { + m.RowSecurity = v +} + +func (m *PostgresqlHostConfig10) SetDefaultTransactionIsolation(v PostgresqlHostConfig10_TransactionIsolation) { + m.DefaultTransactionIsolation = v +} + +func (m *PostgresqlHostConfig10) SetStatementTimeout(v *wrappers.Int64Value) { + m.StatementTimeout = v +} + +func (m *PostgresqlHostConfig10) SetLockTimeout(v *wrappers.Int64Value) { + m.LockTimeout = v +} + +func (m *PostgresqlHostConfig10) SetIdleInTransactionSessionTimeout(v *wrappers.Int64Value) { + m.IdleInTransactionSessionTimeout = v +} + +func (m *PostgresqlHostConfig10) SetByteaOutput(v PostgresqlHostConfig10_ByteaOutput) { + m.ByteaOutput = v +} + +func (m *PostgresqlHostConfig10) SetXmlbinary(v PostgresqlHostConfig10_XmlBinary) { + m.Xmlbinary = v +} + +func (m *PostgresqlHostConfig10) SetXmloption(v PostgresqlHostConfig10_XmlOption) { + m.Xmloption = v +} + +func (m *PostgresqlHostConfig10) SetGinPendingListLimit(v *wrappers.Int64Value) { + m.GinPendingListLimit = v +} + +func (m *PostgresqlHostConfig10) SetDeadlockTimeout(v *wrappers.Int64Value) { + m.DeadlockTimeout = v +} + +func (m *PostgresqlHostConfig10) SetMaxLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxLocksPerTransaction = v +} + +func (m *PostgresqlHostConfig10) SetMaxPredLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxPredLocksPerTransaction = v +} + +func (m *PostgresqlHostConfig10) SetArrayNulls(v *wrappers.BoolValue) { + m.ArrayNulls = v +} + +func (m *PostgresqlHostConfig10) SetBackslashQuote(v PostgresqlHostConfig10_BackslashQuote) { + m.BackslashQuote = v +} + +func (m *PostgresqlHostConfig10) SetDefaultWithOids(v *wrappers.BoolValue) { + m.DefaultWithOids = v +} + +func (m *PostgresqlHostConfig10) SetEscapeStringWarning(v *wrappers.BoolValue) { + m.EscapeStringWarning = v +} + +func (m *PostgresqlHostConfig10) SetLoCompatPrivileges(v *wrappers.BoolValue) { + m.LoCompatPrivileges = v +} + +func (m *PostgresqlHostConfig10) SetOperatorPrecedenceWarning(v *wrappers.BoolValue) { + m.OperatorPrecedenceWarning = v +} + +func (m *PostgresqlHostConfig10) SetQuoteAllIdentifiers(v *wrappers.BoolValue) { + m.QuoteAllIdentifiers = v +} + +func (m *PostgresqlHostConfig10) SetStandardConformingStrings(v *wrappers.BoolValue) { + m.StandardConformingStrings = v +} + +func (m *PostgresqlHostConfig10) SetSynchronizeSeqscans(v *wrappers.BoolValue) { + m.SynchronizeSeqscans = v +} + +func (m *PostgresqlHostConfig10) SetTransformNullEquals(v *wrappers.BoolValue) { + m.TransformNullEquals = v +} + +func (m *PostgresqlHostConfig10) SetExitOnError(v *wrappers.BoolValue) { + m.ExitOnError = v +} + +func (m *PostgresqlHostConfig10) SetSeqPageCost(v *wrappers.DoubleValue) { + m.SeqPageCost = v +} + +func (m *PostgresqlHostConfig10) SetRandomPageCost(v *wrappers.DoubleValue) { + m.RandomPageCost = v +} + +func (m *PostgresqlHostConfig10) SetEnableBitmapscan(v *wrappers.BoolValue) { + m.EnableBitmapscan = v +} + +func (m *PostgresqlHostConfig10) SetEnableHashagg(v *wrappers.BoolValue) { + m.EnableHashagg = v +} + +func (m *PostgresqlHostConfig10) SetEnableHashjoin(v *wrappers.BoolValue) { + m.EnableHashjoin = v +} + +func (m *PostgresqlHostConfig10) SetEnableIndexscan(v *wrappers.BoolValue) { + m.EnableIndexscan = v +} + +func (m *PostgresqlHostConfig10) SetEnableIndexonlyscan(v *wrappers.BoolValue) { + m.EnableIndexonlyscan = v +} + +func (m *PostgresqlHostConfig10) SetEnableMaterial(v *wrappers.BoolValue) { + m.EnableMaterial = v +} + +func (m *PostgresqlHostConfig10) SetEnableMergejoin(v *wrappers.BoolValue) { + m.EnableMergejoin = v +} + +func (m *PostgresqlHostConfig10) SetEnableNestloop(v *wrappers.BoolValue) { + m.EnableNestloop = v +} + +func (m *PostgresqlHostConfig10) SetEnableSeqscan(v *wrappers.BoolValue) { + m.EnableSeqscan = v +} + +func (m *PostgresqlHostConfig10) SetEnableSort(v *wrappers.BoolValue) { + m.EnableSort = v +} + +func (m *PostgresqlHostConfig10) SetEnableTidscan(v *wrappers.BoolValue) { + m.EnableTidscan = v +} + +func (m *PostgresqlHostConfig10) SetMaxParallelWorkers(v *wrappers.Int64Value) { + m.MaxParallelWorkers = v +} + +func (m *PostgresqlHostConfig10) SetMaxParallelWorkersPerGather(v *wrappers.Int64Value) { + m.MaxParallelWorkersPerGather = v +} + +func (m *PostgresqlHostConfig10) SetTimezone(v string) { + m.Timezone = v +} + +func (m *PostgresqlHostConfig10) SetEffectiveIoConcurrency(v *wrappers.Int64Value) { + m.EffectiveIoConcurrency = v +} + +func (m *PostgresqlHostConfig10) SetEffectiveCacheSize(v *wrappers.Int64Value) { + m.EffectiveCacheSize = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host10_1c.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host10_1c.pb.go new file mode 100644 index 000000000..ece8744df --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host10_1c.pb.go @@ -0,0 +1,1117 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/mdb/postgresql/v1/config/host10_1c.proto + +package postgresql + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type PostgresqlHostConfig10_1C_ConstraintExclusion int32 + +const ( + PostgresqlHostConfig10_1C_CONSTRAINT_EXCLUSION_UNSPECIFIED PostgresqlHostConfig10_1C_ConstraintExclusion = 0 + PostgresqlHostConfig10_1C_CONSTRAINT_EXCLUSION_ON PostgresqlHostConfig10_1C_ConstraintExclusion = 1 + PostgresqlHostConfig10_1C_CONSTRAINT_EXCLUSION_OFF PostgresqlHostConfig10_1C_ConstraintExclusion = 2 + PostgresqlHostConfig10_1C_CONSTRAINT_EXCLUSION_PARTITION PostgresqlHostConfig10_1C_ConstraintExclusion = 3 +) + +var PostgresqlHostConfig10_1C_ConstraintExclusion_name = map[int32]string{ + 0: "CONSTRAINT_EXCLUSION_UNSPECIFIED", + 1: "CONSTRAINT_EXCLUSION_ON", + 2: "CONSTRAINT_EXCLUSION_OFF", + 3: "CONSTRAINT_EXCLUSION_PARTITION", +} + +var PostgresqlHostConfig10_1C_ConstraintExclusion_value = map[string]int32{ + "CONSTRAINT_EXCLUSION_UNSPECIFIED": 0, + "CONSTRAINT_EXCLUSION_ON": 1, + "CONSTRAINT_EXCLUSION_OFF": 2, + "CONSTRAINT_EXCLUSION_PARTITION": 3, +} + +func (x PostgresqlHostConfig10_1C_ConstraintExclusion) String() string { + return proto.EnumName(PostgresqlHostConfig10_1C_ConstraintExclusion_name, int32(x)) +} + +func (PostgresqlHostConfig10_1C_ConstraintExclusion) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e28e471f7a72295d, []int{0, 0} +} + +type PostgresqlHostConfig10_1C_ForceParallelMode int32 + +const ( + PostgresqlHostConfig10_1C_FORCE_PARALLEL_MODE_UNSPECIFIED PostgresqlHostConfig10_1C_ForceParallelMode = 0 + PostgresqlHostConfig10_1C_FORCE_PARALLEL_MODE_ON PostgresqlHostConfig10_1C_ForceParallelMode = 1 + PostgresqlHostConfig10_1C_FORCE_PARALLEL_MODE_OFF PostgresqlHostConfig10_1C_ForceParallelMode = 2 + PostgresqlHostConfig10_1C_FORCE_PARALLEL_MODE_REGRESS PostgresqlHostConfig10_1C_ForceParallelMode = 3 +) + +var PostgresqlHostConfig10_1C_ForceParallelMode_name = map[int32]string{ + 0: "FORCE_PARALLEL_MODE_UNSPECIFIED", + 1: "FORCE_PARALLEL_MODE_ON", + 2: "FORCE_PARALLEL_MODE_OFF", + 3: "FORCE_PARALLEL_MODE_REGRESS", +} + +var PostgresqlHostConfig10_1C_ForceParallelMode_value = map[string]int32{ + "FORCE_PARALLEL_MODE_UNSPECIFIED": 0, + "FORCE_PARALLEL_MODE_ON": 1, + "FORCE_PARALLEL_MODE_OFF": 2, + "FORCE_PARALLEL_MODE_REGRESS": 3, +} + +func (x PostgresqlHostConfig10_1C_ForceParallelMode) String() string { + return proto.EnumName(PostgresqlHostConfig10_1C_ForceParallelMode_name, int32(x)) +} + +func (PostgresqlHostConfig10_1C_ForceParallelMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e28e471f7a72295d, []int{0, 1} +} + +type PostgresqlHostConfig10_1C_LogLevel int32 + +const ( + PostgresqlHostConfig10_1C_LOG_LEVEL_UNSPECIFIED PostgresqlHostConfig10_1C_LogLevel = 0 + PostgresqlHostConfig10_1C_LOG_LEVEL_DEBUG5 PostgresqlHostConfig10_1C_LogLevel = 1 + PostgresqlHostConfig10_1C_LOG_LEVEL_DEBUG4 PostgresqlHostConfig10_1C_LogLevel = 2 + PostgresqlHostConfig10_1C_LOG_LEVEL_DEBUG3 PostgresqlHostConfig10_1C_LogLevel = 3 + PostgresqlHostConfig10_1C_LOG_LEVEL_DEBUG2 PostgresqlHostConfig10_1C_LogLevel = 4 + PostgresqlHostConfig10_1C_LOG_LEVEL_DEBUG1 PostgresqlHostConfig10_1C_LogLevel = 5 + PostgresqlHostConfig10_1C_LOG_LEVEL_LOG PostgresqlHostConfig10_1C_LogLevel = 6 + PostgresqlHostConfig10_1C_LOG_LEVEL_NOTICE PostgresqlHostConfig10_1C_LogLevel = 7 + PostgresqlHostConfig10_1C_LOG_LEVEL_WARNING PostgresqlHostConfig10_1C_LogLevel = 8 + PostgresqlHostConfig10_1C_LOG_LEVEL_ERROR PostgresqlHostConfig10_1C_LogLevel = 9 + PostgresqlHostConfig10_1C_LOG_LEVEL_FATAL PostgresqlHostConfig10_1C_LogLevel = 10 + PostgresqlHostConfig10_1C_LOG_LEVEL_PANIC PostgresqlHostConfig10_1C_LogLevel = 11 +) + +var PostgresqlHostConfig10_1C_LogLevel_name = map[int32]string{ + 0: "LOG_LEVEL_UNSPECIFIED", + 1: "LOG_LEVEL_DEBUG5", + 2: "LOG_LEVEL_DEBUG4", + 3: "LOG_LEVEL_DEBUG3", + 4: "LOG_LEVEL_DEBUG2", + 5: "LOG_LEVEL_DEBUG1", + 6: "LOG_LEVEL_LOG", + 7: "LOG_LEVEL_NOTICE", + 8: "LOG_LEVEL_WARNING", + 9: "LOG_LEVEL_ERROR", + 10: "LOG_LEVEL_FATAL", + 11: "LOG_LEVEL_PANIC", +} + +var PostgresqlHostConfig10_1C_LogLevel_value = map[string]int32{ + "LOG_LEVEL_UNSPECIFIED": 0, + "LOG_LEVEL_DEBUG5": 1, + "LOG_LEVEL_DEBUG4": 2, + "LOG_LEVEL_DEBUG3": 3, + "LOG_LEVEL_DEBUG2": 4, + "LOG_LEVEL_DEBUG1": 5, + "LOG_LEVEL_LOG": 6, + "LOG_LEVEL_NOTICE": 7, + "LOG_LEVEL_WARNING": 8, + "LOG_LEVEL_ERROR": 9, + "LOG_LEVEL_FATAL": 10, + "LOG_LEVEL_PANIC": 11, +} + +func (x PostgresqlHostConfig10_1C_LogLevel) String() string { + return proto.EnumName(PostgresqlHostConfig10_1C_LogLevel_name, int32(x)) +} + +func (PostgresqlHostConfig10_1C_LogLevel) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e28e471f7a72295d, []int{0, 2} +} + +type PostgresqlHostConfig10_1C_LogErrorVerbosity int32 + +const ( + PostgresqlHostConfig10_1C_LOG_ERROR_VERBOSITY_UNSPECIFIED PostgresqlHostConfig10_1C_LogErrorVerbosity = 0 + PostgresqlHostConfig10_1C_LOG_ERROR_VERBOSITY_TERSE PostgresqlHostConfig10_1C_LogErrorVerbosity = 1 + PostgresqlHostConfig10_1C_LOG_ERROR_VERBOSITY_DEFAULT PostgresqlHostConfig10_1C_LogErrorVerbosity = 2 + PostgresqlHostConfig10_1C_LOG_ERROR_VERBOSITY_VERBOSE PostgresqlHostConfig10_1C_LogErrorVerbosity = 3 +) + +var PostgresqlHostConfig10_1C_LogErrorVerbosity_name = map[int32]string{ + 0: "LOG_ERROR_VERBOSITY_UNSPECIFIED", + 1: "LOG_ERROR_VERBOSITY_TERSE", + 2: "LOG_ERROR_VERBOSITY_DEFAULT", + 3: "LOG_ERROR_VERBOSITY_VERBOSE", +} + +var PostgresqlHostConfig10_1C_LogErrorVerbosity_value = map[string]int32{ + "LOG_ERROR_VERBOSITY_UNSPECIFIED": 0, + "LOG_ERROR_VERBOSITY_TERSE": 1, + "LOG_ERROR_VERBOSITY_DEFAULT": 2, + "LOG_ERROR_VERBOSITY_VERBOSE": 3, +} + +func (x PostgresqlHostConfig10_1C_LogErrorVerbosity) String() string { + return proto.EnumName(PostgresqlHostConfig10_1C_LogErrorVerbosity_name, int32(x)) +} + +func (PostgresqlHostConfig10_1C_LogErrorVerbosity) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e28e471f7a72295d, []int{0, 3} +} + +type PostgresqlHostConfig10_1C_LogStatement int32 + +const ( + PostgresqlHostConfig10_1C_LOG_STATEMENT_UNSPECIFIED PostgresqlHostConfig10_1C_LogStatement = 0 + PostgresqlHostConfig10_1C_LOG_STATEMENT_NONE PostgresqlHostConfig10_1C_LogStatement = 1 + PostgresqlHostConfig10_1C_LOG_STATEMENT_DDL PostgresqlHostConfig10_1C_LogStatement = 2 + PostgresqlHostConfig10_1C_LOG_STATEMENT_MOD PostgresqlHostConfig10_1C_LogStatement = 3 + PostgresqlHostConfig10_1C_LOG_STATEMENT_ALL PostgresqlHostConfig10_1C_LogStatement = 4 +) + +var PostgresqlHostConfig10_1C_LogStatement_name = map[int32]string{ + 0: "LOG_STATEMENT_UNSPECIFIED", + 1: "LOG_STATEMENT_NONE", + 2: "LOG_STATEMENT_DDL", + 3: "LOG_STATEMENT_MOD", + 4: "LOG_STATEMENT_ALL", +} + +var PostgresqlHostConfig10_1C_LogStatement_value = map[string]int32{ + "LOG_STATEMENT_UNSPECIFIED": 0, + "LOG_STATEMENT_NONE": 1, + "LOG_STATEMENT_DDL": 2, + "LOG_STATEMENT_MOD": 3, + "LOG_STATEMENT_ALL": 4, +} + +func (x PostgresqlHostConfig10_1C_LogStatement) String() string { + return proto.EnumName(PostgresqlHostConfig10_1C_LogStatement_name, int32(x)) +} + +func (PostgresqlHostConfig10_1C_LogStatement) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e28e471f7a72295d, []int{0, 4} +} + +type PostgresqlHostConfig10_1C_TransactionIsolation int32 + +const ( + PostgresqlHostConfig10_1C_TRANSACTION_ISOLATION_UNSPECIFIED PostgresqlHostConfig10_1C_TransactionIsolation = 0 + PostgresqlHostConfig10_1C_TRANSACTION_ISOLATION_READ_UNCOMMITTED PostgresqlHostConfig10_1C_TransactionIsolation = 1 + PostgresqlHostConfig10_1C_TRANSACTION_ISOLATION_READ_COMMITTED PostgresqlHostConfig10_1C_TransactionIsolation = 2 + PostgresqlHostConfig10_1C_TRANSACTION_ISOLATION_REPEATABLE_READ PostgresqlHostConfig10_1C_TransactionIsolation = 3 + PostgresqlHostConfig10_1C_TRANSACTION_ISOLATION_SERIALIZABLE PostgresqlHostConfig10_1C_TransactionIsolation = 4 +) + +var PostgresqlHostConfig10_1C_TransactionIsolation_name = map[int32]string{ + 0: "TRANSACTION_ISOLATION_UNSPECIFIED", + 1: "TRANSACTION_ISOLATION_READ_UNCOMMITTED", + 2: "TRANSACTION_ISOLATION_READ_COMMITTED", + 3: "TRANSACTION_ISOLATION_REPEATABLE_READ", + 4: "TRANSACTION_ISOLATION_SERIALIZABLE", +} + +var PostgresqlHostConfig10_1C_TransactionIsolation_value = map[string]int32{ + "TRANSACTION_ISOLATION_UNSPECIFIED": 0, + "TRANSACTION_ISOLATION_READ_UNCOMMITTED": 1, + "TRANSACTION_ISOLATION_READ_COMMITTED": 2, + "TRANSACTION_ISOLATION_REPEATABLE_READ": 3, + "TRANSACTION_ISOLATION_SERIALIZABLE": 4, +} + +func (x PostgresqlHostConfig10_1C_TransactionIsolation) String() string { + return proto.EnumName(PostgresqlHostConfig10_1C_TransactionIsolation_name, int32(x)) +} + +func (PostgresqlHostConfig10_1C_TransactionIsolation) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e28e471f7a72295d, []int{0, 5} +} + +type PostgresqlHostConfig10_1C_ByteaOutput int32 + +const ( + PostgresqlHostConfig10_1C_BYTEA_OUTPUT_UNSPECIFIED PostgresqlHostConfig10_1C_ByteaOutput = 0 + PostgresqlHostConfig10_1C_BYTEA_OUTPUT_HEX PostgresqlHostConfig10_1C_ByteaOutput = 1 + PostgresqlHostConfig10_1C_BYTEA_OUTPUT_ESCAPED PostgresqlHostConfig10_1C_ByteaOutput = 2 +) + +var PostgresqlHostConfig10_1C_ByteaOutput_name = map[int32]string{ + 0: "BYTEA_OUTPUT_UNSPECIFIED", + 1: "BYTEA_OUTPUT_HEX", + 2: "BYTEA_OUTPUT_ESCAPED", +} + +var PostgresqlHostConfig10_1C_ByteaOutput_value = map[string]int32{ + "BYTEA_OUTPUT_UNSPECIFIED": 0, + "BYTEA_OUTPUT_HEX": 1, + "BYTEA_OUTPUT_ESCAPED": 2, +} + +func (x PostgresqlHostConfig10_1C_ByteaOutput) String() string { + return proto.EnumName(PostgresqlHostConfig10_1C_ByteaOutput_name, int32(x)) +} + +func (PostgresqlHostConfig10_1C_ByteaOutput) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e28e471f7a72295d, []int{0, 6} +} + +type PostgresqlHostConfig10_1C_XmlBinary int32 + +const ( + PostgresqlHostConfig10_1C_XML_BINARY_UNSPECIFIED PostgresqlHostConfig10_1C_XmlBinary = 0 + PostgresqlHostConfig10_1C_XML_BINARY_BASE64 PostgresqlHostConfig10_1C_XmlBinary = 1 + PostgresqlHostConfig10_1C_XML_BINARY_HEX PostgresqlHostConfig10_1C_XmlBinary = 2 +) + +var PostgresqlHostConfig10_1C_XmlBinary_name = map[int32]string{ + 0: "XML_BINARY_UNSPECIFIED", + 1: "XML_BINARY_BASE64", + 2: "XML_BINARY_HEX", +} + +var PostgresqlHostConfig10_1C_XmlBinary_value = map[string]int32{ + "XML_BINARY_UNSPECIFIED": 0, + "XML_BINARY_BASE64": 1, + "XML_BINARY_HEX": 2, +} + +func (x PostgresqlHostConfig10_1C_XmlBinary) String() string { + return proto.EnumName(PostgresqlHostConfig10_1C_XmlBinary_name, int32(x)) +} + +func (PostgresqlHostConfig10_1C_XmlBinary) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e28e471f7a72295d, []int{0, 7} +} + +type PostgresqlHostConfig10_1C_XmlOption int32 + +const ( + PostgresqlHostConfig10_1C_XML_OPTION_UNSPECIFIED PostgresqlHostConfig10_1C_XmlOption = 0 + PostgresqlHostConfig10_1C_XML_OPTION_DOCUMENT PostgresqlHostConfig10_1C_XmlOption = 1 + PostgresqlHostConfig10_1C_XML_OPTION_CONTENT PostgresqlHostConfig10_1C_XmlOption = 2 +) + +var PostgresqlHostConfig10_1C_XmlOption_name = map[int32]string{ + 0: "XML_OPTION_UNSPECIFIED", + 1: "XML_OPTION_DOCUMENT", + 2: "XML_OPTION_CONTENT", +} + +var PostgresqlHostConfig10_1C_XmlOption_value = map[string]int32{ + "XML_OPTION_UNSPECIFIED": 0, + "XML_OPTION_DOCUMENT": 1, + "XML_OPTION_CONTENT": 2, +} + +func (x PostgresqlHostConfig10_1C_XmlOption) String() string { + return proto.EnumName(PostgresqlHostConfig10_1C_XmlOption_name, int32(x)) +} + +func (PostgresqlHostConfig10_1C_XmlOption) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e28e471f7a72295d, []int{0, 8} +} + +type PostgresqlHostConfig10_1C_BackslashQuote int32 + +const ( + PostgresqlHostConfig10_1C_BACKSLASH_QUOTE_UNSPECIFIED PostgresqlHostConfig10_1C_BackslashQuote = 0 + PostgresqlHostConfig10_1C_BACKSLASH_QUOTE PostgresqlHostConfig10_1C_BackslashQuote = 1 + PostgresqlHostConfig10_1C_BACKSLASH_QUOTE_ON PostgresqlHostConfig10_1C_BackslashQuote = 2 + PostgresqlHostConfig10_1C_BACKSLASH_QUOTE_OFF PostgresqlHostConfig10_1C_BackslashQuote = 3 + PostgresqlHostConfig10_1C_BACKSLASH_QUOTE_SAFE_ENCODING PostgresqlHostConfig10_1C_BackslashQuote = 4 +) + +var PostgresqlHostConfig10_1C_BackslashQuote_name = map[int32]string{ + 0: "BACKSLASH_QUOTE_UNSPECIFIED", + 1: "BACKSLASH_QUOTE", + 2: "BACKSLASH_QUOTE_ON", + 3: "BACKSLASH_QUOTE_OFF", + 4: "BACKSLASH_QUOTE_SAFE_ENCODING", +} + +var PostgresqlHostConfig10_1C_BackslashQuote_value = map[string]int32{ + "BACKSLASH_QUOTE_UNSPECIFIED": 0, + "BACKSLASH_QUOTE": 1, + "BACKSLASH_QUOTE_ON": 2, + "BACKSLASH_QUOTE_OFF": 3, + "BACKSLASH_QUOTE_SAFE_ENCODING": 4, +} + +func (x PostgresqlHostConfig10_1C_BackslashQuote) String() string { + return proto.EnumName(PostgresqlHostConfig10_1C_BackslashQuote_name, int32(x)) +} + +func (PostgresqlHostConfig10_1C_BackslashQuote) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e28e471f7a72295d, []int{0, 9} +} + +// Options and structure of `PostgresqlHostConfig` reflects PostgreSQL configuration file +// parameters whose detailed description is available in +// [PostgreSQL documentation](https://www.postgresql.org/docs/10/runtime-config.html). +type PostgresqlHostConfig10_1C struct { + RecoveryMinApplyDelay *wrappers.Int64Value `protobuf:"bytes,1,opt,name=recovery_min_apply_delay,json=recoveryMinApplyDelay,proto3" json:"recovery_min_apply_delay,omitempty"` + SharedBuffers *wrappers.Int64Value `protobuf:"bytes,2,opt,name=shared_buffers,json=sharedBuffers,proto3" json:"shared_buffers,omitempty"` + TempBuffers *wrappers.Int64Value `protobuf:"bytes,3,opt,name=temp_buffers,json=tempBuffers,proto3" json:"temp_buffers,omitempty"` + WorkMem *wrappers.Int64Value `protobuf:"bytes,4,opt,name=work_mem,json=workMem,proto3" json:"work_mem,omitempty"` + ReplacementSortTuples *wrappers.Int64Value `protobuf:"bytes,5,opt,name=replacement_sort_tuples,json=replacementSortTuples,proto3" json:"replacement_sort_tuples,omitempty"` + TempFileLimit *wrappers.Int64Value `protobuf:"bytes,6,opt,name=temp_file_limit,json=tempFileLimit,proto3" json:"temp_file_limit,omitempty"` + BackendFlushAfter *wrappers.Int64Value `protobuf:"bytes,7,opt,name=backend_flush_after,json=backendFlushAfter,proto3" json:"backend_flush_after,omitempty"` + OldSnapshotThreshold *wrappers.Int64Value `protobuf:"bytes,8,opt,name=old_snapshot_threshold,json=oldSnapshotThreshold,proto3" json:"old_snapshot_threshold,omitempty"` + MaxStandbyStreamingDelay *wrappers.Int64Value `protobuf:"bytes,9,opt,name=max_standby_streaming_delay,json=maxStandbyStreamingDelay,proto3" json:"max_standby_streaming_delay,omitempty"` + ConstraintExclusion PostgresqlHostConfig10_1C_ConstraintExclusion `protobuf:"varint,10,opt,name=constraint_exclusion,json=constraintExclusion,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_ConstraintExclusion" json:"constraint_exclusion,omitempty"` + CursorTupleFraction *wrappers.DoubleValue `protobuf:"bytes,11,opt,name=cursor_tuple_fraction,json=cursorTupleFraction,proto3" json:"cursor_tuple_fraction,omitempty"` + FromCollapseLimit *wrappers.Int64Value `protobuf:"bytes,12,opt,name=from_collapse_limit,json=fromCollapseLimit,proto3" json:"from_collapse_limit,omitempty"` + JoinCollapseLimit *wrappers.Int64Value `protobuf:"bytes,13,opt,name=join_collapse_limit,json=joinCollapseLimit,proto3" json:"join_collapse_limit,omitempty"` + ForceParallelMode PostgresqlHostConfig10_1C_ForceParallelMode `protobuf:"varint,14,opt,name=force_parallel_mode,json=forceParallelMode,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_ForceParallelMode" json:"force_parallel_mode,omitempty"` + ClientMinMessages PostgresqlHostConfig10_1C_LogLevel `protobuf:"varint,15,opt,name=client_min_messages,json=clientMinMessages,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_LogLevel" json:"client_min_messages,omitempty"` + LogMinMessages PostgresqlHostConfig10_1C_LogLevel `protobuf:"varint,16,opt,name=log_min_messages,json=logMinMessages,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_LogLevel" json:"log_min_messages,omitempty"` + LogMinErrorStatement PostgresqlHostConfig10_1C_LogLevel `protobuf:"varint,17,opt,name=log_min_error_statement,json=logMinErrorStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_LogLevel" json:"log_min_error_statement,omitempty"` + LogMinDurationStatement *wrappers.Int64Value `protobuf:"bytes,18,opt,name=log_min_duration_statement,json=logMinDurationStatement,proto3" json:"log_min_duration_statement,omitempty"` + LogCheckpoints *wrappers.BoolValue `protobuf:"bytes,19,opt,name=log_checkpoints,json=logCheckpoints,proto3" json:"log_checkpoints,omitempty"` + LogConnections *wrappers.BoolValue `protobuf:"bytes,20,opt,name=log_connections,json=logConnections,proto3" json:"log_connections,omitempty"` + LogDisconnections *wrappers.BoolValue `protobuf:"bytes,21,opt,name=log_disconnections,json=logDisconnections,proto3" json:"log_disconnections,omitempty"` + LogDuration *wrappers.BoolValue `protobuf:"bytes,22,opt,name=log_duration,json=logDuration,proto3" json:"log_duration,omitempty"` + LogErrorVerbosity PostgresqlHostConfig10_1C_LogErrorVerbosity `protobuf:"varint,23,opt,name=log_error_verbosity,json=logErrorVerbosity,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_LogErrorVerbosity" json:"log_error_verbosity,omitempty"` + LogLockWaits *wrappers.BoolValue `protobuf:"bytes,24,opt,name=log_lock_waits,json=logLockWaits,proto3" json:"log_lock_waits,omitempty"` + LogStatement PostgresqlHostConfig10_1C_LogStatement `protobuf:"varint,25,opt,name=log_statement,json=logStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_LogStatement" json:"log_statement,omitempty"` + LogTempFiles *wrappers.Int64Value `protobuf:"bytes,26,opt,name=log_temp_files,json=logTempFiles,proto3" json:"log_temp_files,omitempty"` + SearchPath string `protobuf:"bytes,27,opt,name=search_path,json=searchPath,proto3" json:"search_path,omitempty"` + RowSecurity *wrappers.BoolValue `protobuf:"bytes,28,opt,name=row_security,json=rowSecurity,proto3" json:"row_security,omitempty"` + DefaultTransactionIsolation PostgresqlHostConfig10_1C_TransactionIsolation `protobuf:"varint,29,opt,name=default_transaction_isolation,json=defaultTransactionIsolation,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_TransactionIsolation" json:"default_transaction_isolation,omitempty"` + StatementTimeout *wrappers.Int64Value `protobuf:"bytes,30,opt,name=statement_timeout,json=statementTimeout,proto3" json:"statement_timeout,omitempty"` + LockTimeout *wrappers.Int64Value `protobuf:"bytes,31,opt,name=lock_timeout,json=lockTimeout,proto3" json:"lock_timeout,omitempty"` + IdleInTransactionSessionTimeout *wrappers.Int64Value `protobuf:"bytes,32,opt,name=idle_in_transaction_session_timeout,json=idleInTransactionSessionTimeout,proto3" json:"idle_in_transaction_session_timeout,omitempty"` + ByteaOutput PostgresqlHostConfig10_1C_ByteaOutput `protobuf:"varint,33,opt,name=bytea_output,json=byteaOutput,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_ByteaOutput" json:"bytea_output,omitempty"` + Xmlbinary PostgresqlHostConfig10_1C_XmlBinary `protobuf:"varint,34,opt,name=xmlbinary,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_XmlBinary" json:"xmlbinary,omitempty"` + Xmloption PostgresqlHostConfig10_1C_XmlOption `protobuf:"varint,35,opt,name=xmloption,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_XmlOption" json:"xmloption,omitempty"` + GinPendingListLimit *wrappers.Int64Value `protobuf:"bytes,36,opt,name=gin_pending_list_limit,json=ginPendingListLimit,proto3" json:"gin_pending_list_limit,omitempty"` + DeadlockTimeout *wrappers.Int64Value `protobuf:"bytes,37,opt,name=deadlock_timeout,json=deadlockTimeout,proto3" json:"deadlock_timeout,omitempty"` + MaxLocksPerTransaction *wrappers.Int64Value `protobuf:"bytes,38,opt,name=max_locks_per_transaction,json=maxLocksPerTransaction,proto3" json:"max_locks_per_transaction,omitempty"` + MaxPredLocksPerTransaction *wrappers.Int64Value `protobuf:"bytes,39,opt,name=max_pred_locks_per_transaction,json=maxPredLocksPerTransaction,proto3" json:"max_pred_locks_per_transaction,omitempty"` + ArrayNulls *wrappers.BoolValue `protobuf:"bytes,40,opt,name=array_nulls,json=arrayNulls,proto3" json:"array_nulls,omitempty"` + BackslashQuote PostgresqlHostConfig10_1C_BackslashQuote `protobuf:"varint,41,opt,name=backslash_quote,json=backslashQuote,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_BackslashQuote" json:"backslash_quote,omitempty"` + DefaultWithOids *wrappers.BoolValue `protobuf:"bytes,42,opt,name=default_with_oids,json=defaultWithOids,proto3" json:"default_with_oids,omitempty"` + EscapeStringWarning *wrappers.BoolValue `protobuf:"bytes,43,opt,name=escape_string_warning,json=escapeStringWarning,proto3" json:"escape_string_warning,omitempty"` + LoCompatPrivileges *wrappers.BoolValue `protobuf:"bytes,44,opt,name=lo_compat_privileges,json=loCompatPrivileges,proto3" json:"lo_compat_privileges,omitempty"` + OperatorPrecedenceWarning *wrappers.BoolValue `protobuf:"bytes,45,opt,name=operator_precedence_warning,json=operatorPrecedenceWarning,proto3" json:"operator_precedence_warning,omitempty"` + QuoteAllIdentifiers *wrappers.BoolValue `protobuf:"bytes,46,opt,name=quote_all_identifiers,json=quoteAllIdentifiers,proto3" json:"quote_all_identifiers,omitempty"` + StandardConformingStrings *wrappers.BoolValue `protobuf:"bytes,47,opt,name=standard_conforming_strings,json=standardConformingStrings,proto3" json:"standard_conforming_strings,omitempty"` + SynchronizeSeqscans *wrappers.BoolValue `protobuf:"bytes,48,opt,name=synchronize_seqscans,json=synchronizeSeqscans,proto3" json:"synchronize_seqscans,omitempty"` + TransformNullEquals *wrappers.BoolValue `protobuf:"bytes,49,opt,name=transform_null_equals,json=transformNullEquals,proto3" json:"transform_null_equals,omitempty"` + ExitOnError *wrappers.BoolValue `protobuf:"bytes,50,opt,name=exit_on_error,json=exitOnError,proto3" json:"exit_on_error,omitempty"` + SeqPageCost *wrappers.DoubleValue `protobuf:"bytes,51,opt,name=seq_page_cost,json=seqPageCost,proto3" json:"seq_page_cost,omitempty"` + RandomPageCost *wrappers.DoubleValue `protobuf:"bytes,52,opt,name=random_page_cost,json=randomPageCost,proto3" json:"random_page_cost,omitempty"` + EnableBitmapscan *wrappers.BoolValue `protobuf:"bytes,54,opt,name=enable_bitmapscan,json=enableBitmapscan,proto3" json:"enable_bitmapscan,omitempty"` + EnableHashagg *wrappers.BoolValue `protobuf:"bytes,55,opt,name=enable_hashagg,json=enableHashagg,proto3" json:"enable_hashagg,omitempty"` + EnableHashjoin *wrappers.BoolValue `protobuf:"bytes,56,opt,name=enable_hashjoin,json=enableHashjoin,proto3" json:"enable_hashjoin,omitempty"` + EnableIndexscan *wrappers.BoolValue `protobuf:"bytes,57,opt,name=enable_indexscan,json=enableIndexscan,proto3" json:"enable_indexscan,omitempty"` + EnableIndexonlyscan *wrappers.BoolValue `protobuf:"bytes,58,opt,name=enable_indexonlyscan,json=enableIndexonlyscan,proto3" json:"enable_indexonlyscan,omitempty"` + EnableMaterial *wrappers.BoolValue `protobuf:"bytes,59,opt,name=enable_material,json=enableMaterial,proto3" json:"enable_material,omitempty"` + EnableMergejoin *wrappers.BoolValue `protobuf:"bytes,60,opt,name=enable_mergejoin,json=enableMergejoin,proto3" json:"enable_mergejoin,omitempty"` + EnableNestloop *wrappers.BoolValue `protobuf:"bytes,61,opt,name=enable_nestloop,json=enableNestloop,proto3" json:"enable_nestloop,omitempty"` + EnableSeqscan *wrappers.BoolValue `protobuf:"bytes,62,opt,name=enable_seqscan,json=enableSeqscan,proto3" json:"enable_seqscan,omitempty"` + EnableSort *wrappers.BoolValue `protobuf:"bytes,63,opt,name=enable_sort,json=enableSort,proto3" json:"enable_sort,omitempty"` + EnableTidscan *wrappers.BoolValue `protobuf:"bytes,64,opt,name=enable_tidscan,json=enableTidscan,proto3" json:"enable_tidscan,omitempty"` + MaxParallelWorkers *wrappers.Int64Value `protobuf:"bytes,65,opt,name=max_parallel_workers,json=maxParallelWorkers,proto3" json:"max_parallel_workers,omitempty"` + MaxParallelWorkersPerGather *wrappers.Int64Value `protobuf:"bytes,66,opt,name=max_parallel_workers_per_gather,json=maxParallelWorkersPerGather,proto3" json:"max_parallel_workers_per_gather,omitempty"` + Timezone string `protobuf:"bytes,67,opt,name=timezone,proto3" json:"timezone,omitempty"` + EffectiveIoConcurrency *wrappers.Int64Value `protobuf:"bytes,68,opt,name=effective_io_concurrency,json=effectiveIoConcurrency,proto3" json:"effective_io_concurrency,omitempty"` + EffectiveCacheSize *wrappers.Int64Value `protobuf:"bytes,69,opt,name=effective_cache_size,json=effectiveCacheSize,proto3" json:"effective_cache_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PostgresqlHostConfig10_1C) Reset() { *m = PostgresqlHostConfig10_1C{} } +func (m *PostgresqlHostConfig10_1C) String() string { return proto.CompactTextString(m) } +func (*PostgresqlHostConfig10_1C) ProtoMessage() {} +func (*PostgresqlHostConfig10_1C) Descriptor() ([]byte, []int) { + return fileDescriptor_e28e471f7a72295d, []int{0} +} + +func (m *PostgresqlHostConfig10_1C) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PostgresqlHostConfig10_1C.Unmarshal(m, b) +} +func (m *PostgresqlHostConfig10_1C) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PostgresqlHostConfig10_1C.Marshal(b, m, deterministic) +} +func (m *PostgresqlHostConfig10_1C) XXX_Merge(src proto.Message) { + xxx_messageInfo_PostgresqlHostConfig10_1C.Merge(m, src) +} +func (m *PostgresqlHostConfig10_1C) XXX_Size() int { + return xxx_messageInfo_PostgresqlHostConfig10_1C.Size(m) +} +func (m *PostgresqlHostConfig10_1C) XXX_DiscardUnknown() { + xxx_messageInfo_PostgresqlHostConfig10_1C.DiscardUnknown(m) +} + +var xxx_messageInfo_PostgresqlHostConfig10_1C proto.InternalMessageInfo + +func (m *PostgresqlHostConfig10_1C) GetRecoveryMinApplyDelay() *wrappers.Int64Value { + if m != nil { + return m.RecoveryMinApplyDelay + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetSharedBuffers() *wrappers.Int64Value { + if m != nil { + return m.SharedBuffers + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetTempBuffers() *wrappers.Int64Value { + if m != nil { + return m.TempBuffers + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetWorkMem() *wrappers.Int64Value { + if m != nil { + return m.WorkMem + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetReplacementSortTuples() *wrappers.Int64Value { + if m != nil { + return m.ReplacementSortTuples + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetTempFileLimit() *wrappers.Int64Value { + if m != nil { + return m.TempFileLimit + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetBackendFlushAfter() *wrappers.Int64Value { + if m != nil { + return m.BackendFlushAfter + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetOldSnapshotThreshold() *wrappers.Int64Value { + if m != nil { + return m.OldSnapshotThreshold + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetMaxStandbyStreamingDelay() *wrappers.Int64Value { + if m != nil { + return m.MaxStandbyStreamingDelay + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetConstraintExclusion() PostgresqlHostConfig10_1C_ConstraintExclusion { + if m != nil { + return m.ConstraintExclusion + } + return PostgresqlHostConfig10_1C_CONSTRAINT_EXCLUSION_UNSPECIFIED +} + +func (m *PostgresqlHostConfig10_1C) GetCursorTupleFraction() *wrappers.DoubleValue { + if m != nil { + return m.CursorTupleFraction + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetFromCollapseLimit() *wrappers.Int64Value { + if m != nil { + return m.FromCollapseLimit + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetJoinCollapseLimit() *wrappers.Int64Value { + if m != nil { + return m.JoinCollapseLimit + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetForceParallelMode() PostgresqlHostConfig10_1C_ForceParallelMode { + if m != nil { + return m.ForceParallelMode + } + return PostgresqlHostConfig10_1C_FORCE_PARALLEL_MODE_UNSPECIFIED +} + +func (m *PostgresqlHostConfig10_1C) GetClientMinMessages() PostgresqlHostConfig10_1C_LogLevel { + if m != nil { + return m.ClientMinMessages + } + return PostgresqlHostConfig10_1C_LOG_LEVEL_UNSPECIFIED +} + +func (m *PostgresqlHostConfig10_1C) GetLogMinMessages() PostgresqlHostConfig10_1C_LogLevel { + if m != nil { + return m.LogMinMessages + } + return PostgresqlHostConfig10_1C_LOG_LEVEL_UNSPECIFIED +} + +func (m *PostgresqlHostConfig10_1C) GetLogMinErrorStatement() PostgresqlHostConfig10_1C_LogLevel { + if m != nil { + return m.LogMinErrorStatement + } + return PostgresqlHostConfig10_1C_LOG_LEVEL_UNSPECIFIED +} + +func (m *PostgresqlHostConfig10_1C) GetLogMinDurationStatement() *wrappers.Int64Value { + if m != nil { + return m.LogMinDurationStatement + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetLogCheckpoints() *wrappers.BoolValue { + if m != nil { + return m.LogCheckpoints + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetLogConnections() *wrappers.BoolValue { + if m != nil { + return m.LogConnections + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetLogDisconnections() *wrappers.BoolValue { + if m != nil { + return m.LogDisconnections + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetLogDuration() *wrappers.BoolValue { + if m != nil { + return m.LogDuration + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetLogErrorVerbosity() PostgresqlHostConfig10_1C_LogErrorVerbosity { + if m != nil { + return m.LogErrorVerbosity + } + return PostgresqlHostConfig10_1C_LOG_ERROR_VERBOSITY_UNSPECIFIED +} + +func (m *PostgresqlHostConfig10_1C) GetLogLockWaits() *wrappers.BoolValue { + if m != nil { + return m.LogLockWaits + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetLogStatement() PostgresqlHostConfig10_1C_LogStatement { + if m != nil { + return m.LogStatement + } + return PostgresqlHostConfig10_1C_LOG_STATEMENT_UNSPECIFIED +} + +func (m *PostgresqlHostConfig10_1C) GetLogTempFiles() *wrappers.Int64Value { + if m != nil { + return m.LogTempFiles + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetSearchPath() string { + if m != nil { + return m.SearchPath + } + return "" +} + +func (m *PostgresqlHostConfig10_1C) GetRowSecurity() *wrappers.BoolValue { + if m != nil { + return m.RowSecurity + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetDefaultTransactionIsolation() PostgresqlHostConfig10_1C_TransactionIsolation { + if m != nil { + return m.DefaultTransactionIsolation + } + return PostgresqlHostConfig10_1C_TRANSACTION_ISOLATION_UNSPECIFIED +} + +func (m *PostgresqlHostConfig10_1C) GetStatementTimeout() *wrappers.Int64Value { + if m != nil { + return m.StatementTimeout + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetLockTimeout() *wrappers.Int64Value { + if m != nil { + return m.LockTimeout + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetIdleInTransactionSessionTimeout() *wrappers.Int64Value { + if m != nil { + return m.IdleInTransactionSessionTimeout + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetByteaOutput() PostgresqlHostConfig10_1C_ByteaOutput { + if m != nil { + return m.ByteaOutput + } + return PostgresqlHostConfig10_1C_BYTEA_OUTPUT_UNSPECIFIED +} + +func (m *PostgresqlHostConfig10_1C) GetXmlbinary() PostgresqlHostConfig10_1C_XmlBinary { + if m != nil { + return m.Xmlbinary + } + return PostgresqlHostConfig10_1C_XML_BINARY_UNSPECIFIED +} + +func (m *PostgresqlHostConfig10_1C) GetXmloption() PostgresqlHostConfig10_1C_XmlOption { + if m != nil { + return m.Xmloption + } + return PostgresqlHostConfig10_1C_XML_OPTION_UNSPECIFIED +} + +func (m *PostgresqlHostConfig10_1C) GetGinPendingListLimit() *wrappers.Int64Value { + if m != nil { + return m.GinPendingListLimit + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetDeadlockTimeout() *wrappers.Int64Value { + if m != nil { + return m.DeadlockTimeout + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetMaxLocksPerTransaction() *wrappers.Int64Value { + if m != nil { + return m.MaxLocksPerTransaction + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetMaxPredLocksPerTransaction() *wrappers.Int64Value { + if m != nil { + return m.MaxPredLocksPerTransaction + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetArrayNulls() *wrappers.BoolValue { + if m != nil { + return m.ArrayNulls + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetBackslashQuote() PostgresqlHostConfig10_1C_BackslashQuote { + if m != nil { + return m.BackslashQuote + } + return PostgresqlHostConfig10_1C_BACKSLASH_QUOTE_UNSPECIFIED +} + +func (m *PostgresqlHostConfig10_1C) GetDefaultWithOids() *wrappers.BoolValue { + if m != nil { + return m.DefaultWithOids + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetEscapeStringWarning() *wrappers.BoolValue { + if m != nil { + return m.EscapeStringWarning + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetLoCompatPrivileges() *wrappers.BoolValue { + if m != nil { + return m.LoCompatPrivileges + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetOperatorPrecedenceWarning() *wrappers.BoolValue { + if m != nil { + return m.OperatorPrecedenceWarning + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetQuoteAllIdentifiers() *wrappers.BoolValue { + if m != nil { + return m.QuoteAllIdentifiers + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetStandardConformingStrings() *wrappers.BoolValue { + if m != nil { + return m.StandardConformingStrings + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetSynchronizeSeqscans() *wrappers.BoolValue { + if m != nil { + return m.SynchronizeSeqscans + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetTransformNullEquals() *wrappers.BoolValue { + if m != nil { + return m.TransformNullEquals + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetExitOnError() *wrappers.BoolValue { + if m != nil { + return m.ExitOnError + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetSeqPageCost() *wrappers.DoubleValue { + if m != nil { + return m.SeqPageCost + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetRandomPageCost() *wrappers.DoubleValue { + if m != nil { + return m.RandomPageCost + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetEnableBitmapscan() *wrappers.BoolValue { + if m != nil { + return m.EnableBitmapscan + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetEnableHashagg() *wrappers.BoolValue { + if m != nil { + return m.EnableHashagg + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetEnableHashjoin() *wrappers.BoolValue { + if m != nil { + return m.EnableHashjoin + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetEnableIndexscan() *wrappers.BoolValue { + if m != nil { + return m.EnableIndexscan + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetEnableIndexonlyscan() *wrappers.BoolValue { + if m != nil { + return m.EnableIndexonlyscan + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetEnableMaterial() *wrappers.BoolValue { + if m != nil { + return m.EnableMaterial + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetEnableMergejoin() *wrappers.BoolValue { + if m != nil { + return m.EnableMergejoin + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetEnableNestloop() *wrappers.BoolValue { + if m != nil { + return m.EnableNestloop + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetEnableSeqscan() *wrappers.BoolValue { + if m != nil { + return m.EnableSeqscan + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetEnableSort() *wrappers.BoolValue { + if m != nil { + return m.EnableSort + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetEnableTidscan() *wrappers.BoolValue { + if m != nil { + return m.EnableTidscan + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetMaxParallelWorkers() *wrappers.Int64Value { + if m != nil { + return m.MaxParallelWorkers + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetMaxParallelWorkersPerGather() *wrappers.Int64Value { + if m != nil { + return m.MaxParallelWorkersPerGather + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetTimezone() string { + if m != nil { + return m.Timezone + } + return "" +} + +func (m *PostgresqlHostConfig10_1C) GetEffectiveIoConcurrency() *wrappers.Int64Value { + if m != nil { + return m.EffectiveIoConcurrency + } + return nil +} + +func (m *PostgresqlHostConfig10_1C) GetEffectiveCacheSize() *wrappers.Int64Value { + if m != nil { + return m.EffectiveCacheSize + } + return nil +} + +func init() { + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_ConstraintExclusion", PostgresqlHostConfig10_1C_ConstraintExclusion_name, PostgresqlHostConfig10_1C_ConstraintExclusion_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_ForceParallelMode", PostgresqlHostConfig10_1C_ForceParallelMode_name, PostgresqlHostConfig10_1C_ForceParallelMode_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_LogLevel", PostgresqlHostConfig10_1C_LogLevel_name, PostgresqlHostConfig10_1C_LogLevel_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_LogErrorVerbosity", PostgresqlHostConfig10_1C_LogErrorVerbosity_name, PostgresqlHostConfig10_1C_LogErrorVerbosity_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_LogStatement", PostgresqlHostConfig10_1C_LogStatement_name, PostgresqlHostConfig10_1C_LogStatement_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_TransactionIsolation", PostgresqlHostConfig10_1C_TransactionIsolation_name, PostgresqlHostConfig10_1C_TransactionIsolation_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_ByteaOutput", PostgresqlHostConfig10_1C_ByteaOutput_name, PostgresqlHostConfig10_1C_ByteaOutput_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_XmlBinary", PostgresqlHostConfig10_1C_XmlBinary_name, PostgresqlHostConfig10_1C_XmlBinary_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_XmlOption", PostgresqlHostConfig10_1C_XmlOption_name, PostgresqlHostConfig10_1C_XmlOption_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C_BackslashQuote", PostgresqlHostConfig10_1C_BackslashQuote_name, PostgresqlHostConfig10_1C_BackslashQuote_value) + proto.RegisterType((*PostgresqlHostConfig10_1C)(nil), "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C") +} + +func init() { + proto.RegisterFile("yandex/cloud/mdb/postgresql/v1/config/host10_1c.proto", fileDescriptor_e28e471f7a72295d) +} + +var fileDescriptor_e28e471f7a72295d = []byte{ + // 2551 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x99, 0xdb, 0x76, 0xdb, 0xc6, + 0xd5, 0xc7, 0x3f, 0xca, 0x8e, 0x63, 0x8f, 0x2c, 0x09, 0x1c, 0xea, 0x00, 0x4b, 0xf1, 0x21, 0x4a, + 0x9c, 0xcf, 0x49, 0x2b, 0x4a, 0x94, 0x65, 0x5b, 0x69, 0x9a, 0x34, 0x20, 0x09, 0xca, 0x6c, 0x79, + 0x0a, 0x00, 0xd9, 0x4e, 0xba, 0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x1d, 0xb0, 0xde, 0x77, 0x03, + 0x14, 0x92, 0xc0, 0x11, 0xb7, 0x40, 0xcf, 0xe5, 0x51, 0x72, 0xf7, 0xf8, 0x34, 0x3b, 0x45, 0x85, + 0xbe, 0x1b, 0x74, 0x62, 0x65, 0xc3, 0xe5, 0x51, 0x7c, 0xd7, 0xa8, 0x01, 0xc5, 0x21, 0xd8, 0x99, + 0xaa, 0xa2, 0xfb, 0xd9, 0xac, 0x95, 0x54, 0x94, 0xa6, 0xf7, 0x19, 0xb8, 0x25, 0x6e, 0xaa, 0xc2, + 0xc4, 0x51, 0x48, 0xd8, 0x64, 0x3d, 0xa9, 0x9f, 0x65, 0x03, 0xd7, 0x7d, 0x7c, 0x26, 0x36, 0x35, + 0xde, 0x21, 0x6c, 0xa2, 0x88, 0x20, 0x02, 0x77, 0x04, 0x37, 0x14, 0x6f, 0xa2, 0xd9, 0xf0, 0xff, + 0xcf, 0x86, 0x6f, 0xfa, 0xf8, 0xac, 0xc3, 0x88, 0x33, 0xcb, 0xc1, 0x57, 0x60, 0x11, 0x33, 0x86, + 0xcf, 0x51, 0x30, 0xf4, 0x3c, 0xae, 0x3e, 0xc8, 0xdc, 0x66, 0x80, 0xec, 0xde, 0x12, 0xbd, 0xe1, + 0x19, 0x58, 0x11, 0xaf, 0x02, 0xee, 0x61, 0x3e, 0x40, 0xaf, 0x86, 0x34, 0x22, 0xea, 0xe7, 0x32, + 0xff, 0xed, 0x77, 0xaf, 0xeb, 0x94, 0xfb, 0x9d, 0xc0, 0x1a, 0xcb, 0xdd, 0xa9, 0xdf, 0xb0, 0x06, + 0xf2, 0xe9, 0xf6, 0x76, 0xea, 0x46, 0x03, 0x44, 0x5d, 0x87, 0xab, 0x5f, 0x64, 0x06, 0xbf, 0x92, + 0x88, 0x9e, 0xbb, 0xd1, 0xa0, 0xed, 0x3a, 0x1c, 0xb6, 0xc0, 0x1a, 0xe1, 0x36, 0x0e, 0x89, 0x78, + 0x5c, 0x88, 0x9a, 0x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93, 0xab, 0xb3, 0xba, 0x9f, 0x7d, + 0x58, 0x0b, 0x41, 0x3b, 0xbe, 0x01, 0xc3, 0x6f, 0xc1, 0x12, 0x27, 0xaf, 0x50, 0x88, 0xfb, 0x04, + 0xd9, 0x94, 0x47, 0xea, 0xc3, 0x39, 0x1e, 0x7e, 0x8b, 0x9c, 0xbc, 0xea, 0xe0, 0x3e, 0xa9, 0x50, + 0x2e, 0xb7, 0x31, 0x86, 0x03, 0x87, 0xfa, 0x13, 0x90, 0x83, 0x39, 0x20, 0xcb, 0xb1, 0x6a, 0xc4, + 0x39, 0x02, 0x79, 0x12, 0xe0, 0xae, 0x47, 0x50, 0xd7, 0x8d, 0x7c, 0x1c, 0x8a, 0xf9, 0x52, 0x1f, + 0x67, 0x8e, 0x46, 0x89, 0x45, 0xe5, 0x91, 0x46, 0x5c, 0x91, 0x12, 0xd0, 0x00, 0xf3, 0x01, 0xee, + 0xf7, 0xd5, 0x27, 0x99, 0x94, 0xa5, 0x58, 0xf1, 0x34, 0x16, 0x88, 0xfb, 0xf6, 0x04, 0x42, 0x3c, + 0x13, 0xd5, 0xc3, 0xec, 0xfb, 0xf6, 0x98, 0x21, 0x14, 0x50, 0x07, 0x49, 0x6c, 0xc8, 0x15, 0xfb, + 0x91, 0x1c, 0xcf, 0x97, 0xd9, 0xdb, 0x44, 0xac, 0xa9, 0xa7, 0x12, 0x51, 0x80, 0x93, 0x18, 0x1a, + 0x78, 0xe7, 0x12, 0xf5, 0xbb, 0x39, 0x76, 0x89, 0x31, 0x2a, 0x95, 0x4d, 0x0c, 0xcd, 0xc7, 0x11, + 0x61, 0x2e, 0xf6, 0xd4, 0xaf, 0xe6, 0x1d, 0x5a, 0x33, 0x51, 0x4c, 0x0c, 0xcd, 0x27, 0xac, 0x4f, + 0xe4, 0x04, 0xfd, 0x7e, 0xde, 0xa1, 0x35, 0x53, 0xc9, 0x44, 0x2c, 0x01, 0xe1, 0x91, 0x47, 0x69, + 0xa8, 0x7e, 0x3d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0x61, 0x5f, 0x10, 0x7b, 0xec, 0xf2, 0xf4, 0x23, + 0x4c, 0x14, 0x6d, 0x59, 0xab, 0xfc, 0xc9, 0x6c, 0x68, 0xe6, 0x53, 0xf4, 0xdd, 0x71, 0xdb, 0xba, + 0xb8, 0x7f, 0x15, 0xc0, 0xca, 0x85, 0x0e, 0xb1, 0x83, 0x8b, 0xaa, 0x76, 0x4b, 0x59, 0x10, 0x11, + 0x5d, 0xb2, 0xd7, 0x6a, 0xca, 0x15, 0xf8, 0x31, 0xb8, 0x7d, 0xb1, 0xc1, 0xd4, 0x6a, 0x3a, 0xd2, + 0x5b, 0x95, 0x76, 0x55, 0x2c, 0xfc, 0xab, 0xe5, 0xbf, 0xe5, 0xc0, 0xe7, 0x53, 0x2f, 0x4c, 0x1c, + 0xba, 0xbf, 0xf8, 0xca, 0xfc, 0xc1, 0xea, 0xbb, 0xd1, 0x60, 0xd8, 0x2d, 0xda, 0xd4, 0xdf, 0x8d, + 0x55, 0x3b, 0xf1, 0x3f, 0x3d, 0xfb, 0x74, 0xa7, 0x4f, 0x02, 0x79, 0x12, 0xed, 0xce, 0xf5, 0xbf, + 0xd8, 0xaf, 0xc6, 0xc6, 0xee, 0x35, 0xa9, 0x7b, 0xf8, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x70, + 0x58, 0x36, 0x62, 0xc6, 0x1d, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host10_1c.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host10_1c.pbext.go new file mode 100644 index 000000000..4dcb19690 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host10_1c.pbext.go @@ -0,0 +1,279 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *PostgresqlHostConfig10_1C) SetRecoveryMinApplyDelay(v *wrappers.Int64Value) { + m.RecoveryMinApplyDelay = v +} + +func (m *PostgresqlHostConfig10_1C) SetSharedBuffers(v *wrappers.Int64Value) { + m.SharedBuffers = v +} + +func (m *PostgresqlHostConfig10_1C) SetTempBuffers(v *wrappers.Int64Value) { + m.TempBuffers = v +} + +func (m *PostgresqlHostConfig10_1C) SetWorkMem(v *wrappers.Int64Value) { + m.WorkMem = v +} + +func (m *PostgresqlHostConfig10_1C) SetReplacementSortTuples(v *wrappers.Int64Value) { + m.ReplacementSortTuples = v +} + +func (m *PostgresqlHostConfig10_1C) SetTempFileLimit(v *wrappers.Int64Value) { + m.TempFileLimit = v +} + +func (m *PostgresqlHostConfig10_1C) SetBackendFlushAfter(v *wrappers.Int64Value) { + m.BackendFlushAfter = v +} + +func (m *PostgresqlHostConfig10_1C) SetOldSnapshotThreshold(v *wrappers.Int64Value) { + m.OldSnapshotThreshold = v +} + +func (m *PostgresqlHostConfig10_1C) SetMaxStandbyStreamingDelay(v *wrappers.Int64Value) { + m.MaxStandbyStreamingDelay = v +} + +func (m *PostgresqlHostConfig10_1C) SetConstraintExclusion(v PostgresqlHostConfig10_1C_ConstraintExclusion) { + m.ConstraintExclusion = v +} + +func (m *PostgresqlHostConfig10_1C) SetCursorTupleFraction(v *wrappers.DoubleValue) { + m.CursorTupleFraction = v +} + +func (m *PostgresqlHostConfig10_1C) SetFromCollapseLimit(v *wrappers.Int64Value) { + m.FromCollapseLimit = v +} + +func (m *PostgresqlHostConfig10_1C) SetJoinCollapseLimit(v *wrappers.Int64Value) { + m.JoinCollapseLimit = v +} + +func (m *PostgresqlHostConfig10_1C) SetForceParallelMode(v PostgresqlHostConfig10_1C_ForceParallelMode) { + m.ForceParallelMode = v +} + +func (m *PostgresqlHostConfig10_1C) SetClientMinMessages(v PostgresqlHostConfig10_1C_LogLevel) { + m.ClientMinMessages = v +} + +func (m *PostgresqlHostConfig10_1C) SetLogMinMessages(v PostgresqlHostConfig10_1C_LogLevel) { + m.LogMinMessages = v +} + +func (m *PostgresqlHostConfig10_1C) SetLogMinErrorStatement(v PostgresqlHostConfig10_1C_LogLevel) { + m.LogMinErrorStatement = v +} + +func (m *PostgresqlHostConfig10_1C) SetLogMinDurationStatement(v *wrappers.Int64Value) { + m.LogMinDurationStatement = v +} + +func (m *PostgresqlHostConfig10_1C) SetLogCheckpoints(v *wrappers.BoolValue) { + m.LogCheckpoints = v +} + +func (m *PostgresqlHostConfig10_1C) SetLogConnections(v *wrappers.BoolValue) { + m.LogConnections = v +} + +func (m *PostgresqlHostConfig10_1C) SetLogDisconnections(v *wrappers.BoolValue) { + m.LogDisconnections = v +} + +func (m *PostgresqlHostConfig10_1C) SetLogDuration(v *wrappers.BoolValue) { + m.LogDuration = v +} + +func (m *PostgresqlHostConfig10_1C) SetLogErrorVerbosity(v PostgresqlHostConfig10_1C_LogErrorVerbosity) { + m.LogErrorVerbosity = v +} + +func (m *PostgresqlHostConfig10_1C) SetLogLockWaits(v *wrappers.BoolValue) { + m.LogLockWaits = v +} + +func (m *PostgresqlHostConfig10_1C) SetLogStatement(v PostgresqlHostConfig10_1C_LogStatement) { + m.LogStatement = v +} + +func (m *PostgresqlHostConfig10_1C) SetLogTempFiles(v *wrappers.Int64Value) { + m.LogTempFiles = v +} + +func (m *PostgresqlHostConfig10_1C) SetSearchPath(v string) { + m.SearchPath = v +} + +func (m *PostgresqlHostConfig10_1C) SetRowSecurity(v *wrappers.BoolValue) { + m.RowSecurity = v +} + +func (m *PostgresqlHostConfig10_1C) SetDefaultTransactionIsolation(v PostgresqlHostConfig10_1C_TransactionIsolation) { + m.DefaultTransactionIsolation = v +} + +func (m *PostgresqlHostConfig10_1C) SetStatementTimeout(v *wrappers.Int64Value) { + m.StatementTimeout = v +} + +func (m *PostgresqlHostConfig10_1C) SetLockTimeout(v *wrappers.Int64Value) { + m.LockTimeout = v +} + +func (m *PostgresqlHostConfig10_1C) SetIdleInTransactionSessionTimeout(v *wrappers.Int64Value) { + m.IdleInTransactionSessionTimeout = v +} + +func (m *PostgresqlHostConfig10_1C) SetByteaOutput(v PostgresqlHostConfig10_1C_ByteaOutput) { + m.ByteaOutput = v +} + +func (m *PostgresqlHostConfig10_1C) SetXmlbinary(v PostgresqlHostConfig10_1C_XmlBinary) { + m.Xmlbinary = v +} + +func (m *PostgresqlHostConfig10_1C) SetXmloption(v PostgresqlHostConfig10_1C_XmlOption) { + m.Xmloption = v +} + +func (m *PostgresqlHostConfig10_1C) SetGinPendingListLimit(v *wrappers.Int64Value) { + m.GinPendingListLimit = v +} + +func (m *PostgresqlHostConfig10_1C) SetDeadlockTimeout(v *wrappers.Int64Value) { + m.DeadlockTimeout = v +} + +func (m *PostgresqlHostConfig10_1C) SetMaxLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxLocksPerTransaction = v +} + +func (m *PostgresqlHostConfig10_1C) SetMaxPredLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxPredLocksPerTransaction = v +} + +func (m *PostgresqlHostConfig10_1C) SetArrayNulls(v *wrappers.BoolValue) { + m.ArrayNulls = v +} + +func (m *PostgresqlHostConfig10_1C) SetBackslashQuote(v PostgresqlHostConfig10_1C_BackslashQuote) { + m.BackslashQuote = v +} + +func (m *PostgresqlHostConfig10_1C) SetDefaultWithOids(v *wrappers.BoolValue) { + m.DefaultWithOids = v +} + +func (m *PostgresqlHostConfig10_1C) SetEscapeStringWarning(v *wrappers.BoolValue) { + m.EscapeStringWarning = v +} + +func (m *PostgresqlHostConfig10_1C) SetLoCompatPrivileges(v *wrappers.BoolValue) { + m.LoCompatPrivileges = v +} + +func (m *PostgresqlHostConfig10_1C) SetOperatorPrecedenceWarning(v *wrappers.BoolValue) { + m.OperatorPrecedenceWarning = v +} + +func (m *PostgresqlHostConfig10_1C) SetQuoteAllIdentifiers(v *wrappers.BoolValue) { + m.QuoteAllIdentifiers = v +} + +func (m *PostgresqlHostConfig10_1C) SetStandardConformingStrings(v *wrappers.BoolValue) { + m.StandardConformingStrings = v +} + +func (m *PostgresqlHostConfig10_1C) SetSynchronizeSeqscans(v *wrappers.BoolValue) { + m.SynchronizeSeqscans = v +} + +func (m *PostgresqlHostConfig10_1C) SetTransformNullEquals(v *wrappers.BoolValue) { + m.TransformNullEquals = v +} + +func (m *PostgresqlHostConfig10_1C) SetExitOnError(v *wrappers.BoolValue) { + m.ExitOnError = v +} + +func (m *PostgresqlHostConfig10_1C) SetSeqPageCost(v *wrappers.DoubleValue) { + m.SeqPageCost = v +} + +func (m *PostgresqlHostConfig10_1C) SetRandomPageCost(v *wrappers.DoubleValue) { + m.RandomPageCost = v +} + +func (m *PostgresqlHostConfig10_1C) SetEnableBitmapscan(v *wrappers.BoolValue) { + m.EnableBitmapscan = v +} + +func (m *PostgresqlHostConfig10_1C) SetEnableHashagg(v *wrappers.BoolValue) { + m.EnableHashagg = v +} + +func (m *PostgresqlHostConfig10_1C) SetEnableHashjoin(v *wrappers.BoolValue) { + m.EnableHashjoin = v +} + +func (m *PostgresqlHostConfig10_1C) SetEnableIndexscan(v *wrappers.BoolValue) { + m.EnableIndexscan = v +} + +func (m *PostgresqlHostConfig10_1C) SetEnableIndexonlyscan(v *wrappers.BoolValue) { + m.EnableIndexonlyscan = v +} + +func (m *PostgresqlHostConfig10_1C) SetEnableMaterial(v *wrappers.BoolValue) { + m.EnableMaterial = v +} + +func (m *PostgresqlHostConfig10_1C) SetEnableMergejoin(v *wrappers.BoolValue) { + m.EnableMergejoin = v +} + +func (m *PostgresqlHostConfig10_1C) SetEnableNestloop(v *wrappers.BoolValue) { + m.EnableNestloop = v +} + +func (m *PostgresqlHostConfig10_1C) SetEnableSeqscan(v *wrappers.BoolValue) { + m.EnableSeqscan = v +} + +func (m *PostgresqlHostConfig10_1C) SetEnableSort(v *wrappers.BoolValue) { + m.EnableSort = v +} + +func (m *PostgresqlHostConfig10_1C) SetEnableTidscan(v *wrappers.BoolValue) { + m.EnableTidscan = v +} + +func (m *PostgresqlHostConfig10_1C) SetMaxParallelWorkers(v *wrappers.Int64Value) { + m.MaxParallelWorkers = v +} + +func (m *PostgresqlHostConfig10_1C) SetMaxParallelWorkersPerGather(v *wrappers.Int64Value) { + m.MaxParallelWorkersPerGather = v +} + +func (m *PostgresqlHostConfig10_1C) SetTimezone(v string) { + m.Timezone = v +} + +func (m *PostgresqlHostConfig10_1C) SetEffectiveIoConcurrency(v *wrappers.Int64Value) { + m.EffectiveIoConcurrency = v +} + +func (m *PostgresqlHostConfig10_1C) SetEffectiveCacheSize(v *wrappers.Int64Value) { + m.EffectiveCacheSize = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host11.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host11.pb.go index ca2b569d6..99565acc7 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host11.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host11.pb.go @@ -425,6 +425,8 @@ type PostgresqlHostConfig11 struct { MaxParallelWorkers *wrappers.Int64Value `protobuf:"bytes,65,opt,name=max_parallel_workers,json=maxParallelWorkers,proto3" json:"max_parallel_workers,omitempty"` MaxParallelWorkersPerGather *wrappers.Int64Value `protobuf:"bytes,66,opt,name=max_parallel_workers_per_gather,json=maxParallelWorkersPerGather,proto3" json:"max_parallel_workers_per_gather,omitempty"` Timezone string `protobuf:"bytes,67,opt,name=timezone,proto3" json:"timezone,omitempty"` + EffectiveIoConcurrency *wrappers.Int64Value `protobuf:"bytes,68,opt,name=effective_io_concurrency,json=effectiveIoConcurrency,proto3" json:"effective_io_concurrency,omitempty"` + EffectiveCacheSize *wrappers.Int64Value `protobuf:"bytes,69,opt,name=effective_cache_size,json=effectiveCacheSize,proto3" json:"effective_cache_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -910,6 +912,20 @@ func (m *PostgresqlHostConfig11) GetTimezone() string { return "" } +func (m *PostgresqlHostConfig11) GetEffectiveIoConcurrency() *wrappers.Int64Value { + if m != nil { + return m.EffectiveIoConcurrency + } + return nil +} + +func (m *PostgresqlHostConfig11) GetEffectiveCacheSize() *wrappers.Int64Value { + if m != nil { + return m.EffectiveCacheSize + } + return nil +} + func init() { proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_ConstraintExclusion", PostgresqlHostConfig11_ConstraintExclusion_name, PostgresqlHostConfig11_ConstraintExclusion_value) proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_ForceParallelMode", PostgresqlHostConfig11_ForceParallelMode_name, PostgresqlHostConfig11_ForceParallelMode_value) @@ -929,157 +945,163 @@ func init() { } var fileDescriptor_129a0454cf81f4f0 = []byte{ - // 2432 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x99, 0x5b, 0x73, 0xdb, 0xc6, - 0xd9, 0xc7, 0x5f, 0xca, 0x8e, 0x63, 0xaf, 0x4e, 0xe0, 0x52, 0x92, 0x61, 0x29, 0x3e, 0x44, 0x89, - 0xf3, 0x3a, 0x79, 0x5f, 0x51, 0xa6, 0xac, 0x2a, 0x6e, 0xd3, 0xa4, 0x01, 0x49, 0x50, 0x66, 0x0b, - 0x12, 0x0c, 0x08, 0xd9, 0x4e, 0x3a, 0x99, 0x9d, 0x25, 0xb0, 0x24, 0x51, 0x2f, 0xb0, 0x30, 0x16, - 0xd4, 0x21, 0x33, 0x9d, 0xde, 0xf4, 0xaa, 0x97, 0xbd, 0xe8, 0x4c, 0xfb, 0x85, 0xf2, 0x09, 0xfa, - 0x15, 0xfa, 0x21, 0x72, 0xd5, 0xd9, 0x05, 0xc0, 0x83, 0xc4, 0x16, 0x6c, 0xe5, 0x3b, 0xf1, 0xd9, - 0xfd, 0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x04, 0xb1, 0xdc, 0x82, 0x7c, 0xc2, 0x39, 0x1e, 0x10, 0xae, 0xae, - 0xc9, 0x00, 0x1a, 0xd7, 0x0b, 0xc0, 0x60, 0x03, 0x83, 0x9c, 0x12, 0x6a, 0x15, 0x13, 0x17, 0x2d, - 0x2f, 0x68, 0xa5, 0x0e, 0x60, 0x08, 0x14, 0xca, 0x06, 0xb3, 0x4e, 0xd7, 0xdf, 0xa9, 0xd3, 0x35, - 0xca, 0x06, 0xd3, 0x1e, 0x7f, 0x0f, 0xee, 0x66, 0x1e, 0x49, 0x14, 0xb1, 0x48, 0xac, 0xb3, 0x98, - 0xf8, 0x24, 0x88, 0x55, 0xe5, 0x9d, 0x3a, 0xde, 0x48, 0x1c, 0xeb, 0xc2, 0x49, 0x37, 0xf3, 0x01, - 0x5f, 0x83, 0xed, 0xcc, 0xbd, 0x3b, 0x8a, 0xe4, 0x11, 0x31, 0x15, 0x41, 0x31, 0x7f, 0x6d, 0xdf, - 0x4d, 0xb0, 0xf5, 0x54, 0x3c, 0x21, 0xd7, 0xc0, 0xba, 0x20, 0x3b, 0x43, 0xe2, 0xbc, 0x09, 0x99, - 0x17, 0xc4, 0x5c, 0x85, 0x12, 0xb7, 0x7d, 0x05, 0x57, 0x65, 0x8c, 0x26, 0x34, 0x31, 0x3b, 0xb5, - 0x89, 0x62, 0x0c, 0x61, 0x41, 0x40, 0xe4, 0xc2, 0xe2, 0x6a, 0x69, 0x31, 0xc8, 0x44, 0x01, 0x9b, - 0x00, 0x0a, 0x88, 0xeb, 0xf1, 0x69, 0xce, 0x46, 0x2e, 0xa7, 0x48, 0xd9, 0xa0, 0x3e, 0x23, 0x82, - 0x5f, 0x82, 0x15, 0x89, 0x4a, 0x47, 0xab, 0x6e, 0xe6, 0x42, 0x96, 0x05, 0x24, 0xed, 0x2e, 0xd6, - 0x95, 0x90, 0x27, 0x89, 0x3e, 0x25, 0x51, 0x8f, 0x71, 0x2f, 0xbe, 0x50, 0xb7, 0xde, 0xc5, 0xba, - 0x32, 0xd8, 0x40, 0xe6, 0xf6, 0x65, 0x86, 0x95, 0xf1, 0xcf, 0x9a, 0xe0, 0xd7, 0x40, 0x4c, 0x0e, - 0xa2, 0xcc, 0x79, 0x83, 0xce, 0xb0, 0x17, 0x73, 0xf5, 0x6e, 0xee, 0x08, 0xc4, 0x88, 0x0d, 0xe6, - 0xbc, 0x79, 0x25, 0xfa, 0x43, 0x06, 0x56, 0x05, 0x61, 0x52, 0x23, 0xaa, 0x0c, 0xfe, 0xd7, 0xd7, - 0x0e, 0x7e, 0x5c, 0x39, 0xd2, 0xe1, 0xa4, 0x8e, 0xb4, 0x24, 0xe4, 0xf1, 0x09, 0xcc, 0xd5, 0x7b, - 0xf9, 0x55, 0x29, 0x10, 0x76, 0x7a, 0xfe, 0x72, 0xf8, 0x10, 0x2c, 0x73, 0x82, 0x23, 0x67, 0x88, - 0x42, 0x1c, 0x0f, 0xd5, 0xed, 0x47, 0x85, 0x27, 0x77, 0x2c, 0x90, 0x98, 0x3a, 0x38, 0x1e, 0x8a, - 0xb4, 0x46, 0xec, 0x0c, 0x71, 0xe2, 0x8c, 0x22, 0x91, 0x90, 0x9d, 0xfc, 0xb4, 0x46, 0xec, 0xac, - 0x9b, 0x76, 0x87, 0x7f, 0x29, 0x80, 0xfb, 0x2e, 0xe9, 0xe3, 0x11, 0x8d, 0x51, 0x1c, 0xe1, 0x80, - 0x27, 0x87, 0x00, 0xf2, 0x38, 0xa3, 0x49, 0x9d, 0x7c, 0x20, 0x27, 0xc9, 0xba, 0xde, 0x24, 0xd9, - 0x13, 0x74, 0x33, 0x23, 0x5b, 0x3b, 0xa9, 0xe3, 0x79, 0x8d, 0xf0, 0x05, 0x28, 0x8e, 0x13, 0x85, - 0x62, 0xcf, 0x27, 0x6c, 0x14, 0xab, 0xf7, 0xf3, 0xa7, 0x4f, 0x19, 0xab, 0xec, 0x44, 0x24, 0xee, - 0x5e, 0xb2, 0x68, 0x32, 0xc8, 0x83, 0x05,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x31, 0xcd, 0xce, 0x9c, 0x14, 0xdc, 0x05, 0xa5, 0xa9, 0xb6, 0xba, 0x59, 0x3b, - 0x11, 0xf9, 0x55, 0x0a, 0xa2, 0x70, 0xa6, 0x1a, 0x6a, 0x66, 0xdb, 0x16, 0xf6, 0x25, 0xb1, 0xc7, - 0xae, 0xcd, 0x3e, 0x5f, 0x44, 0xd1, 0x56, 0xb5, 0xda, 0x6f, 0xba, 0x86, 0xd6, 0x7d, 0x81, 0xbe, - 0x39, 0x31, 0xed, 0xcb, 0xfb, 0x57, 0x09, 0xac, 0x5f, 0xea, 0x90, 0x38, 0xb8, 0xac, 0x32, 0xdb, - 0xca, 0x92, 0x88, 0xe8, 0x8a, 0xbd, 0xd1, 0x50, 0x6e, 0xc0, 0x0f, 0xc1, 0xfd, 0xcb, 0x0d, 0x5d, - 0xad, 0xa1, 0x23, 0xbd, 0x5d, 0x33, 0xeb, 0x62, 0xe1, 0xdf, 0xac, 0xbe, 0xfc, 0xce, 0x1e, 0x78, - 0xf1, 0x70, 0xd4, 0x2b, 0x3b, 0xcc, 0xdf, 0x4f, 0x9e, 0x68, 0x7b, 0xc9, 0xff, 0xe0, 0x06, 0x6c, - 0x6f, 0x40, 0x02, 0x79, 0xf4, 0xec, 0x2f, 0xf4, 0x7f, 0xc1, 0x2f, 0x26, 0xc6, 0xde, 0x2d, 0xa9, - 0x7b, 0xf6, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdf, 0xd2, 0x82, 0xcc, 0x52, 0x1c, 0x00, 0x00, + // 2520 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x99, 0xdb, 0x73, 0xdb, 0xc6, + 0xf5, 0xc7, 0x7f, 0x94, 0x1c, 0xc7, 0x5e, 0xdd, 0xc0, 0xa5, 0x24, 0xc3, 0x52, 0x7c, 0x89, 0x12, + 0xe7, 0xe7, 0xa4, 0x15, 0x25, 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c, 0x4d, 0x3f, 0x82, 0xc2, 0x1f, 0xa8, 0xe3, + 0x5f, 0xc4, 0x2f, 0xff, 0x4f, 0x78, 0x41, 0x9a, 0xc6, 0xff, 0x09, 0x14, 0xba, 0x94, 0x59, 0x04, + 0x05, 0x98, 0x61, 0xd7, 0x25, 0x2e, 0xf2, 0xa8, 0x4d, 0xe4, 0x95, 0x28, 0x29, 0xfa, 0xd5, 0x92, + 0x52, 0x13, 0xe0, 0x56, 0xc2, 0x6d, 0x50, 0x9b, 0x18, 0xf9, 0xee, 0x45, 0x13, 0x3c, 0x05, 0x05, + 0xcb, 0x75, 0x88, 0x1f, 0x46, 0x5b, 0x90, 0x47, 0x38, 0xc7, 0x3d, 0xc2, 0xe5, 0xd5, 0x28, 0x80, + 0xda, 0xd5, 0x02, 0xd0, 0x68, 0x4f, 0x23, 0xa7, 0xc4, 0x35, 0xf2, 0xb1, 0x8b, 0x86, 0xe3, 0x37, + 0x12, 0x07, 0x30, 0x00, 0x92, 0x4b, 0x7b, 0xd3, 0x4e, 0xd7, 0xde, 0xab, 0xd3, 0x55, 0x97, 0xf6, + 0x26, 0x3d, 0xfe, 0x11, 0xdc, 0x4a, 0x3d, 0x12, 0xc6, 0x28, 0x13, 0xeb, 0x2c, 0x24, 0x1e, 0xf1, + 0x43, 0x59, 0x7a, 0xaf, 0x8e, 0xd7, 0x63, 0xc7, 0xaa, 0x70, 0xd2, 0x4e, 0x7d, 0xc0, 0x97, 0x60, + 0x2b, 0x75, 0x6f, 0x0f, 0x58, 0x74, 0x44, 0x4c, 0x44, 0x90, 0xcf, 0x5e, 0xdb, 0xb7, 0x62, 0x6c, + 0x35, 0x11, 0x8f, 0xc9, 0x15, 0xb0, 0x26, 0xc8, 0x56, 0x9f, 0x58, 0xaf, 0x02, 0xea, 0xf8, 0x21, + 0x97, 0x61, 0x84, 0xdb, 0xba, 0x84, 0x2b, 0x53, 0xea, 0xc6, 0x34, 0x31, 0x3b, 0x95, 0xb1, 0x62, + 0x04, 0xa1, 0xbe, 0x4f, 0xa2, 0x85, 0xc5, 0xe5, 0xc2, 0x7c, 0x90, 0xb1, 0x02, 0xd6, 0x01, 0x14, + 0x10, 0xdb, 0xe1, 0x93, 0x9c, 0xf5, 0x4c, 0x4e, 0xde, 0xa5, 0xbd, 0xea, 0x94, 0x08, 0x7e, 0x0d, + 0x96, 0x23, 0x54, 0x32, 0x5a, 0x79, 0x23, 0x13, 0xb2, 0x24, 0x20, 0x49, 0x77, 0xb1, 0xae, 0x84, + 0x3c, 0x4e, 0xf4, 0x29, 0x61, 0x1d, 0xca, 0x9d, 0x70, 0x28, 0x6f, 0xbe, 0x8f, 0x75, 0xa5, 0xd1, + 0x5e, 0x94, 0xdb, 0xe7, 0x29, 0x36, 0x8a, 0x7f, 0xda, 0x04, 0xbf, 0x05, 0x62, 0x72, 0x90, 0x4b, + 0xad, 0x57, 0xe8, 0x0c, 0x3b, 0x21, 0x97, 0x6f, 0x65, 0x8e, 0x40, 0x8c, 0x58, 0xa3, 0xd6, 0xab, + 0x17, 0xa2, 0x3f, 0xa4, 0x60, 0x45, 0x10, 0xc6, 0x35, 0x22, 0x47, 0xc1, 0xff, 0xf6, 0xca, 0xc1, + 0x8f, 0x2a, 0x27, 0x72, 0x38, 0xae, 0x23, 0x25, 0x0e, 0x79, 0x74, 0x02, 0x73, 0xf9, 0x76, 0x76, + 0x55, 0x0a, 0x84, 0x99, 0x9c, 0xbf, 0x1c, 0xde, 0x03, 0x4b, 0x9c, 0x60, 0x66, 0xf5, 0x51, 0x80, + 0xc3, 0xbe, 0xbc, 0x75, 0x3f, 0xf7, 0xf0, 0xa6, 0x01, 0x62, 0x53, 0x0b, 0x87, 0x7d, 0x91, 0x56, + 0x46, 0xcf, 0x10, 0x27, 0xd6, 0x80, 0x89, 0x84, 0x6c, 0x67, 0xa7, 0x95, 0xd1, 0xb3, 0x76, 0xd2, + 0x1d, 0xfe, 0x3d, 0x07, 0xee, 0xd8, 0xa4, 0x8b, 0x07, 0x6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x4a, 0xe5, 0x77, 0x6d, 0x4d, 0x69, 0x3f, 0x43, 0xdf, 0x9d, 0xe8, + 0xe6, 0xc5, 0xfd, 0xab, 0x00, 0xd6, 0x2e, 0x74, 0x88, 0x1d, 0x5c, 0x54, 0xe9, 0x4d, 0x69, 0x41, + 0x44, 0x74, 0xc9, 0x5e, 0xab, 0x49, 0x8b, 0xf0, 0x63, 0x70, 0xe7, 0x62, 0x43, 0x5b, 0xa9, 0xa9, + 0x48, 0x6d, 0x56, 0xf4, 0xaa, 0x58, 0xf8, 0xd7, 0xca, 0x7f, 0xce, 0x81, 0xcf, 0xa7, 0x9e, 0x97, + 0x38, 0x70, 0x7e, 0xf2, 0x89, 0xf9, 0x83, 0xd9, 0x73, 0xc2, 0xfe, 0xa0, 0x53, 0xb4, 0xa8, 0xb7, + 0x17, 0xab, 0x76, 0xe3, 0xff, 0x3a, 0xf6, 0xe8, 0x6e, 0x8f, 0xf8, 0xd1, 0x49, 0xb4, 0x37, 0xd7, + 0x7f, 0x42, 0xbf, 0x1a, 0x1b, 0x3b, 0xd7, 0x23, 0xdd, 0xa3, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, + 0x75, 0x6d, 0x4c, 0xf4, 0x44, 0x1d, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host11.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host11.pbext.go new file mode 100644 index 000000000..c2c15cda2 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host11.pbext.go @@ -0,0 +1,275 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *PostgresqlHostConfig11) SetRecoveryMinApplyDelay(v *wrappers.Int64Value) { + m.RecoveryMinApplyDelay = v +} + +func (m *PostgresqlHostConfig11) SetSharedBuffers(v *wrappers.Int64Value) { + m.SharedBuffers = v +} + +func (m *PostgresqlHostConfig11) SetTempBuffers(v *wrappers.Int64Value) { + m.TempBuffers = v +} + +func (m *PostgresqlHostConfig11) SetWorkMem(v *wrappers.Int64Value) { + m.WorkMem = v +} + +func (m *PostgresqlHostConfig11) SetTempFileLimit(v *wrappers.Int64Value) { + m.TempFileLimit = v +} + +func (m *PostgresqlHostConfig11) SetBackendFlushAfter(v *wrappers.Int64Value) { + m.BackendFlushAfter = v +} + +func (m *PostgresqlHostConfig11) SetOldSnapshotThreshold(v *wrappers.Int64Value) { + m.OldSnapshotThreshold = v +} + +func (m *PostgresqlHostConfig11) SetMaxStandbyStreamingDelay(v *wrappers.Int64Value) { + m.MaxStandbyStreamingDelay = v +} + +func (m *PostgresqlHostConfig11) SetConstraintExclusion(v PostgresqlHostConfig11_ConstraintExclusion) { + m.ConstraintExclusion = v +} + +func (m *PostgresqlHostConfig11) SetCursorTupleFraction(v *wrappers.DoubleValue) { + m.CursorTupleFraction = v +} + +func (m *PostgresqlHostConfig11) SetFromCollapseLimit(v *wrappers.Int64Value) { + m.FromCollapseLimit = v +} + +func (m *PostgresqlHostConfig11) SetJoinCollapseLimit(v *wrappers.Int64Value) { + m.JoinCollapseLimit = v +} + +func (m *PostgresqlHostConfig11) SetForceParallelMode(v PostgresqlHostConfig11_ForceParallelMode) { + m.ForceParallelMode = v +} + +func (m *PostgresqlHostConfig11) SetClientMinMessages(v PostgresqlHostConfig11_LogLevel) { + m.ClientMinMessages = v +} + +func (m *PostgresqlHostConfig11) SetLogMinMessages(v PostgresqlHostConfig11_LogLevel) { + m.LogMinMessages = v +} + +func (m *PostgresqlHostConfig11) SetLogMinErrorStatement(v PostgresqlHostConfig11_LogLevel) { + m.LogMinErrorStatement = v +} + +func (m *PostgresqlHostConfig11) SetLogMinDurationStatement(v *wrappers.Int64Value) { + m.LogMinDurationStatement = v +} + +func (m *PostgresqlHostConfig11) SetLogCheckpoints(v *wrappers.BoolValue) { + m.LogCheckpoints = v +} + +func (m *PostgresqlHostConfig11) SetLogConnections(v *wrappers.BoolValue) { + m.LogConnections = v +} + +func (m *PostgresqlHostConfig11) SetLogDisconnections(v *wrappers.BoolValue) { + m.LogDisconnections = v +} + +func (m *PostgresqlHostConfig11) SetLogDuration(v *wrappers.BoolValue) { + m.LogDuration = v +} + +func (m *PostgresqlHostConfig11) SetLogErrorVerbosity(v PostgresqlHostConfig11_LogErrorVerbosity) { + m.LogErrorVerbosity = v +} + +func (m *PostgresqlHostConfig11) SetLogLockWaits(v *wrappers.BoolValue) { + m.LogLockWaits = v +} + +func (m *PostgresqlHostConfig11) SetLogStatement(v PostgresqlHostConfig11_LogStatement) { + m.LogStatement = v +} + +func (m *PostgresqlHostConfig11) SetLogTempFiles(v *wrappers.Int64Value) { + m.LogTempFiles = v +} + +func (m *PostgresqlHostConfig11) SetSearchPath(v string) { + m.SearchPath = v +} + +func (m *PostgresqlHostConfig11) SetRowSecurity(v *wrappers.BoolValue) { + m.RowSecurity = v +} + +func (m *PostgresqlHostConfig11) SetDefaultTransactionIsolation(v PostgresqlHostConfig11_TransactionIsolation) { + m.DefaultTransactionIsolation = v +} + +func (m *PostgresqlHostConfig11) SetStatementTimeout(v *wrappers.Int64Value) { + m.StatementTimeout = v +} + +func (m *PostgresqlHostConfig11) SetLockTimeout(v *wrappers.Int64Value) { + m.LockTimeout = v +} + +func (m *PostgresqlHostConfig11) SetIdleInTransactionSessionTimeout(v *wrappers.Int64Value) { + m.IdleInTransactionSessionTimeout = v +} + +func (m *PostgresqlHostConfig11) SetByteaOutput(v PostgresqlHostConfig11_ByteaOutput) { + m.ByteaOutput = v +} + +func (m *PostgresqlHostConfig11) SetXmlbinary(v PostgresqlHostConfig11_XmlBinary) { + m.Xmlbinary = v +} + +func (m *PostgresqlHostConfig11) SetXmloption(v PostgresqlHostConfig11_XmlOption) { + m.Xmloption = v +} + +func (m *PostgresqlHostConfig11) SetGinPendingListLimit(v *wrappers.Int64Value) { + m.GinPendingListLimit = v +} + +func (m *PostgresqlHostConfig11) SetDeadlockTimeout(v *wrappers.Int64Value) { + m.DeadlockTimeout = v +} + +func (m *PostgresqlHostConfig11) SetMaxLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxLocksPerTransaction = v +} + +func (m *PostgresqlHostConfig11) SetMaxPredLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxPredLocksPerTransaction = v +} + +func (m *PostgresqlHostConfig11) SetArrayNulls(v *wrappers.BoolValue) { + m.ArrayNulls = v +} + +func (m *PostgresqlHostConfig11) SetBackslashQuote(v PostgresqlHostConfig11_BackslashQuote) { + m.BackslashQuote = v +} + +func (m *PostgresqlHostConfig11) SetDefaultWithOids(v *wrappers.BoolValue) { + m.DefaultWithOids = v +} + +func (m *PostgresqlHostConfig11) SetEscapeStringWarning(v *wrappers.BoolValue) { + m.EscapeStringWarning = v +} + +func (m *PostgresqlHostConfig11) SetLoCompatPrivileges(v *wrappers.BoolValue) { + m.LoCompatPrivileges = v +} + +func (m *PostgresqlHostConfig11) SetOperatorPrecedenceWarning(v *wrappers.BoolValue) { + m.OperatorPrecedenceWarning = v +} + +func (m *PostgresqlHostConfig11) SetQuoteAllIdentifiers(v *wrappers.BoolValue) { + m.QuoteAllIdentifiers = v +} + +func (m *PostgresqlHostConfig11) SetStandardConformingStrings(v *wrappers.BoolValue) { + m.StandardConformingStrings = v +} + +func (m *PostgresqlHostConfig11) SetSynchronizeSeqscans(v *wrappers.BoolValue) { + m.SynchronizeSeqscans = v +} + +func (m *PostgresqlHostConfig11) SetTransformNullEquals(v *wrappers.BoolValue) { + m.TransformNullEquals = v +} + +func (m *PostgresqlHostConfig11) SetExitOnError(v *wrappers.BoolValue) { + m.ExitOnError = v +} + +func (m *PostgresqlHostConfig11) SetSeqPageCost(v *wrappers.DoubleValue) { + m.SeqPageCost = v +} + +func (m *PostgresqlHostConfig11) SetRandomPageCost(v *wrappers.DoubleValue) { + m.RandomPageCost = v +} + +func (m *PostgresqlHostConfig11) SetEnableBitmapscan(v *wrappers.BoolValue) { + m.EnableBitmapscan = v +} + +func (m *PostgresqlHostConfig11) SetEnableHashagg(v *wrappers.BoolValue) { + m.EnableHashagg = v +} + +func (m *PostgresqlHostConfig11) SetEnableHashjoin(v *wrappers.BoolValue) { + m.EnableHashjoin = v +} + +func (m *PostgresqlHostConfig11) SetEnableIndexscan(v *wrappers.BoolValue) { + m.EnableIndexscan = v +} + +func (m *PostgresqlHostConfig11) SetEnableIndexonlyscan(v *wrappers.BoolValue) { + m.EnableIndexonlyscan = v +} + +func (m *PostgresqlHostConfig11) SetEnableMaterial(v *wrappers.BoolValue) { + m.EnableMaterial = v +} + +func (m *PostgresqlHostConfig11) SetEnableMergejoin(v *wrappers.BoolValue) { + m.EnableMergejoin = v +} + +func (m *PostgresqlHostConfig11) SetEnableNestloop(v *wrappers.BoolValue) { + m.EnableNestloop = v +} + +func (m *PostgresqlHostConfig11) SetEnableSeqscan(v *wrappers.BoolValue) { + m.EnableSeqscan = v +} + +func (m *PostgresqlHostConfig11) SetEnableSort(v *wrappers.BoolValue) { + m.EnableSort = v +} + +func (m *PostgresqlHostConfig11) SetEnableTidscan(v *wrappers.BoolValue) { + m.EnableTidscan = v +} + +func (m *PostgresqlHostConfig11) SetMaxParallelWorkers(v *wrappers.Int64Value) { + m.MaxParallelWorkers = v +} + +func (m *PostgresqlHostConfig11) SetMaxParallelWorkersPerGather(v *wrappers.Int64Value) { + m.MaxParallelWorkersPerGather = v +} + +func (m *PostgresqlHostConfig11) SetTimezone(v string) { + m.Timezone = v +} + +func (m *PostgresqlHostConfig11) SetEffectiveIoConcurrency(v *wrappers.Int64Value) { + m.EffectiveIoConcurrency = v +} + +func (m *PostgresqlHostConfig11) SetEffectiveCacheSize(v *wrappers.Int64Value) { + m.EffectiveCacheSize = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host12.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host12.pb.go new file mode 100644 index 000000000..85edc4072 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host12.pb.go @@ -0,0 +1,1107 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/mdb/postgresql/v1/config/host12.proto + +package postgresql + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type PostgresqlHostConfig12_ConstraintExclusion int32 + +const ( + PostgresqlHostConfig12_CONSTRAINT_EXCLUSION_UNSPECIFIED PostgresqlHostConfig12_ConstraintExclusion = 0 + PostgresqlHostConfig12_CONSTRAINT_EXCLUSION_ON PostgresqlHostConfig12_ConstraintExclusion = 1 + PostgresqlHostConfig12_CONSTRAINT_EXCLUSION_OFF PostgresqlHostConfig12_ConstraintExclusion = 2 + PostgresqlHostConfig12_CONSTRAINT_EXCLUSION_PARTITION PostgresqlHostConfig12_ConstraintExclusion = 3 +) + +var PostgresqlHostConfig12_ConstraintExclusion_name = map[int32]string{ + 0: "CONSTRAINT_EXCLUSION_UNSPECIFIED", + 1: "CONSTRAINT_EXCLUSION_ON", + 2: "CONSTRAINT_EXCLUSION_OFF", + 3: "CONSTRAINT_EXCLUSION_PARTITION", +} + +var PostgresqlHostConfig12_ConstraintExclusion_value = map[string]int32{ + "CONSTRAINT_EXCLUSION_UNSPECIFIED": 0, + "CONSTRAINT_EXCLUSION_ON": 1, + "CONSTRAINT_EXCLUSION_OFF": 2, + "CONSTRAINT_EXCLUSION_PARTITION": 3, +} + +func (x PostgresqlHostConfig12_ConstraintExclusion) String() string { + return proto.EnumName(PostgresqlHostConfig12_ConstraintExclusion_name, int32(x)) +} + +func (PostgresqlHostConfig12_ConstraintExclusion) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_83e092514b9d43a7, []int{0, 0} +} + +type PostgresqlHostConfig12_ForceParallelMode int32 + +const ( + PostgresqlHostConfig12_FORCE_PARALLEL_MODE_UNSPECIFIED PostgresqlHostConfig12_ForceParallelMode = 0 + PostgresqlHostConfig12_FORCE_PARALLEL_MODE_ON PostgresqlHostConfig12_ForceParallelMode = 1 + PostgresqlHostConfig12_FORCE_PARALLEL_MODE_OFF PostgresqlHostConfig12_ForceParallelMode = 2 + PostgresqlHostConfig12_FORCE_PARALLEL_MODE_REGRESS PostgresqlHostConfig12_ForceParallelMode = 3 +) + +var PostgresqlHostConfig12_ForceParallelMode_name = map[int32]string{ + 0: "FORCE_PARALLEL_MODE_UNSPECIFIED", + 1: "FORCE_PARALLEL_MODE_ON", + 2: "FORCE_PARALLEL_MODE_OFF", + 3: "FORCE_PARALLEL_MODE_REGRESS", +} + +var PostgresqlHostConfig12_ForceParallelMode_value = map[string]int32{ + "FORCE_PARALLEL_MODE_UNSPECIFIED": 0, + "FORCE_PARALLEL_MODE_ON": 1, + "FORCE_PARALLEL_MODE_OFF": 2, + "FORCE_PARALLEL_MODE_REGRESS": 3, +} + +func (x PostgresqlHostConfig12_ForceParallelMode) String() string { + return proto.EnumName(PostgresqlHostConfig12_ForceParallelMode_name, int32(x)) +} + +func (PostgresqlHostConfig12_ForceParallelMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_83e092514b9d43a7, []int{0, 1} +} + +type PostgresqlHostConfig12_LogLevel int32 + +const ( + PostgresqlHostConfig12_LOG_LEVEL_UNSPECIFIED PostgresqlHostConfig12_LogLevel = 0 + PostgresqlHostConfig12_LOG_LEVEL_DEBUG5 PostgresqlHostConfig12_LogLevel = 1 + PostgresqlHostConfig12_LOG_LEVEL_DEBUG4 PostgresqlHostConfig12_LogLevel = 2 + PostgresqlHostConfig12_LOG_LEVEL_DEBUG3 PostgresqlHostConfig12_LogLevel = 3 + PostgresqlHostConfig12_LOG_LEVEL_DEBUG2 PostgresqlHostConfig12_LogLevel = 4 + PostgresqlHostConfig12_LOG_LEVEL_DEBUG1 PostgresqlHostConfig12_LogLevel = 5 + PostgresqlHostConfig12_LOG_LEVEL_LOG PostgresqlHostConfig12_LogLevel = 6 + PostgresqlHostConfig12_LOG_LEVEL_NOTICE PostgresqlHostConfig12_LogLevel = 7 + PostgresqlHostConfig12_LOG_LEVEL_WARNING PostgresqlHostConfig12_LogLevel = 8 + PostgresqlHostConfig12_LOG_LEVEL_ERROR PostgresqlHostConfig12_LogLevel = 9 + PostgresqlHostConfig12_LOG_LEVEL_FATAL PostgresqlHostConfig12_LogLevel = 10 + PostgresqlHostConfig12_LOG_LEVEL_PANIC PostgresqlHostConfig12_LogLevel = 11 +) + +var PostgresqlHostConfig12_LogLevel_name = map[int32]string{ + 0: "LOG_LEVEL_UNSPECIFIED", + 1: "LOG_LEVEL_DEBUG5", + 2: "LOG_LEVEL_DEBUG4", + 3: "LOG_LEVEL_DEBUG3", + 4: "LOG_LEVEL_DEBUG2", + 5: "LOG_LEVEL_DEBUG1", + 6: "LOG_LEVEL_LOG", + 7: "LOG_LEVEL_NOTICE", + 8: "LOG_LEVEL_WARNING", + 9: "LOG_LEVEL_ERROR", + 10: "LOG_LEVEL_FATAL", + 11: "LOG_LEVEL_PANIC", +} + +var PostgresqlHostConfig12_LogLevel_value = map[string]int32{ + "LOG_LEVEL_UNSPECIFIED": 0, + "LOG_LEVEL_DEBUG5": 1, + "LOG_LEVEL_DEBUG4": 2, + "LOG_LEVEL_DEBUG3": 3, + "LOG_LEVEL_DEBUG2": 4, + "LOG_LEVEL_DEBUG1": 5, + "LOG_LEVEL_LOG": 6, + "LOG_LEVEL_NOTICE": 7, + "LOG_LEVEL_WARNING": 8, + "LOG_LEVEL_ERROR": 9, + "LOG_LEVEL_FATAL": 10, + "LOG_LEVEL_PANIC": 11, +} + +func (x PostgresqlHostConfig12_LogLevel) String() string { + return proto.EnumName(PostgresqlHostConfig12_LogLevel_name, int32(x)) +} + +func (PostgresqlHostConfig12_LogLevel) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_83e092514b9d43a7, []int{0, 2} +} + +type PostgresqlHostConfig12_LogErrorVerbosity int32 + +const ( + PostgresqlHostConfig12_LOG_ERROR_VERBOSITY_UNSPECIFIED PostgresqlHostConfig12_LogErrorVerbosity = 0 + PostgresqlHostConfig12_LOG_ERROR_VERBOSITY_TERSE PostgresqlHostConfig12_LogErrorVerbosity = 1 + PostgresqlHostConfig12_LOG_ERROR_VERBOSITY_DEFAULT PostgresqlHostConfig12_LogErrorVerbosity = 2 + PostgresqlHostConfig12_LOG_ERROR_VERBOSITY_VERBOSE PostgresqlHostConfig12_LogErrorVerbosity = 3 +) + +var PostgresqlHostConfig12_LogErrorVerbosity_name = map[int32]string{ + 0: "LOG_ERROR_VERBOSITY_UNSPECIFIED", + 1: "LOG_ERROR_VERBOSITY_TERSE", + 2: "LOG_ERROR_VERBOSITY_DEFAULT", + 3: "LOG_ERROR_VERBOSITY_VERBOSE", +} + +var PostgresqlHostConfig12_LogErrorVerbosity_value = map[string]int32{ + "LOG_ERROR_VERBOSITY_UNSPECIFIED": 0, + "LOG_ERROR_VERBOSITY_TERSE": 1, + "LOG_ERROR_VERBOSITY_DEFAULT": 2, + "LOG_ERROR_VERBOSITY_VERBOSE": 3, +} + +func (x PostgresqlHostConfig12_LogErrorVerbosity) String() string { + return proto.EnumName(PostgresqlHostConfig12_LogErrorVerbosity_name, int32(x)) +} + +func (PostgresqlHostConfig12_LogErrorVerbosity) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_83e092514b9d43a7, []int{0, 3} +} + +type PostgresqlHostConfig12_LogStatement int32 + +const ( + PostgresqlHostConfig12_LOG_STATEMENT_UNSPECIFIED PostgresqlHostConfig12_LogStatement = 0 + PostgresqlHostConfig12_LOG_STATEMENT_NONE PostgresqlHostConfig12_LogStatement = 1 + PostgresqlHostConfig12_LOG_STATEMENT_DDL PostgresqlHostConfig12_LogStatement = 2 + PostgresqlHostConfig12_LOG_STATEMENT_MOD PostgresqlHostConfig12_LogStatement = 3 + PostgresqlHostConfig12_LOG_STATEMENT_ALL PostgresqlHostConfig12_LogStatement = 4 +) + +var PostgresqlHostConfig12_LogStatement_name = map[int32]string{ + 0: "LOG_STATEMENT_UNSPECIFIED", + 1: "LOG_STATEMENT_NONE", + 2: "LOG_STATEMENT_DDL", + 3: "LOG_STATEMENT_MOD", + 4: "LOG_STATEMENT_ALL", +} + +var PostgresqlHostConfig12_LogStatement_value = map[string]int32{ + "LOG_STATEMENT_UNSPECIFIED": 0, + "LOG_STATEMENT_NONE": 1, + "LOG_STATEMENT_DDL": 2, + "LOG_STATEMENT_MOD": 3, + "LOG_STATEMENT_ALL": 4, +} + +func (x PostgresqlHostConfig12_LogStatement) String() string { + return proto.EnumName(PostgresqlHostConfig12_LogStatement_name, int32(x)) +} + +func (PostgresqlHostConfig12_LogStatement) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_83e092514b9d43a7, []int{0, 4} +} + +type PostgresqlHostConfig12_TransactionIsolation int32 + +const ( + PostgresqlHostConfig12_TRANSACTION_ISOLATION_UNSPECIFIED PostgresqlHostConfig12_TransactionIsolation = 0 + PostgresqlHostConfig12_TRANSACTION_ISOLATION_READ_UNCOMMITTED PostgresqlHostConfig12_TransactionIsolation = 1 + PostgresqlHostConfig12_TRANSACTION_ISOLATION_READ_COMMITTED PostgresqlHostConfig12_TransactionIsolation = 2 + PostgresqlHostConfig12_TRANSACTION_ISOLATION_REPEATABLE_READ PostgresqlHostConfig12_TransactionIsolation = 3 + PostgresqlHostConfig12_TRANSACTION_ISOLATION_SERIALIZABLE PostgresqlHostConfig12_TransactionIsolation = 4 +) + +var PostgresqlHostConfig12_TransactionIsolation_name = map[int32]string{ + 0: "TRANSACTION_ISOLATION_UNSPECIFIED", + 1: "TRANSACTION_ISOLATION_READ_UNCOMMITTED", + 2: "TRANSACTION_ISOLATION_READ_COMMITTED", + 3: "TRANSACTION_ISOLATION_REPEATABLE_READ", + 4: "TRANSACTION_ISOLATION_SERIALIZABLE", +} + +var PostgresqlHostConfig12_TransactionIsolation_value = map[string]int32{ + "TRANSACTION_ISOLATION_UNSPECIFIED": 0, + "TRANSACTION_ISOLATION_READ_UNCOMMITTED": 1, + "TRANSACTION_ISOLATION_READ_COMMITTED": 2, + "TRANSACTION_ISOLATION_REPEATABLE_READ": 3, + "TRANSACTION_ISOLATION_SERIALIZABLE": 4, +} + +func (x PostgresqlHostConfig12_TransactionIsolation) String() string { + return proto.EnumName(PostgresqlHostConfig12_TransactionIsolation_name, int32(x)) +} + +func (PostgresqlHostConfig12_TransactionIsolation) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_83e092514b9d43a7, []int{0, 5} +} + +type PostgresqlHostConfig12_ByteaOutput int32 + +const ( + PostgresqlHostConfig12_BYTEA_OUTPUT_UNSPECIFIED PostgresqlHostConfig12_ByteaOutput = 0 + PostgresqlHostConfig12_BYTEA_OUTPUT_HEX PostgresqlHostConfig12_ByteaOutput = 1 + PostgresqlHostConfig12_BYTEA_OUTPUT_ESCAPED PostgresqlHostConfig12_ByteaOutput = 2 +) + +var PostgresqlHostConfig12_ByteaOutput_name = map[int32]string{ + 0: "BYTEA_OUTPUT_UNSPECIFIED", + 1: "BYTEA_OUTPUT_HEX", + 2: "BYTEA_OUTPUT_ESCAPED", +} + +var PostgresqlHostConfig12_ByteaOutput_value = map[string]int32{ + "BYTEA_OUTPUT_UNSPECIFIED": 0, + "BYTEA_OUTPUT_HEX": 1, + "BYTEA_OUTPUT_ESCAPED": 2, +} + +func (x PostgresqlHostConfig12_ByteaOutput) String() string { + return proto.EnumName(PostgresqlHostConfig12_ByteaOutput_name, int32(x)) +} + +func (PostgresqlHostConfig12_ByteaOutput) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_83e092514b9d43a7, []int{0, 6} +} + +type PostgresqlHostConfig12_XmlBinary int32 + +const ( + PostgresqlHostConfig12_XML_BINARY_UNSPECIFIED PostgresqlHostConfig12_XmlBinary = 0 + PostgresqlHostConfig12_XML_BINARY_BASE64 PostgresqlHostConfig12_XmlBinary = 1 + PostgresqlHostConfig12_XML_BINARY_HEX PostgresqlHostConfig12_XmlBinary = 2 +) + +var PostgresqlHostConfig12_XmlBinary_name = map[int32]string{ + 0: "XML_BINARY_UNSPECIFIED", + 1: "XML_BINARY_BASE64", + 2: "XML_BINARY_HEX", +} + +var PostgresqlHostConfig12_XmlBinary_value = map[string]int32{ + "XML_BINARY_UNSPECIFIED": 0, + "XML_BINARY_BASE64": 1, + "XML_BINARY_HEX": 2, +} + +func (x PostgresqlHostConfig12_XmlBinary) String() string { + return proto.EnumName(PostgresqlHostConfig12_XmlBinary_name, int32(x)) +} + +func (PostgresqlHostConfig12_XmlBinary) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_83e092514b9d43a7, []int{0, 7} +} + +type PostgresqlHostConfig12_XmlOption int32 + +const ( + PostgresqlHostConfig12_XML_OPTION_UNSPECIFIED PostgresqlHostConfig12_XmlOption = 0 + PostgresqlHostConfig12_XML_OPTION_DOCUMENT PostgresqlHostConfig12_XmlOption = 1 + PostgresqlHostConfig12_XML_OPTION_CONTENT PostgresqlHostConfig12_XmlOption = 2 +) + +var PostgresqlHostConfig12_XmlOption_name = map[int32]string{ + 0: "XML_OPTION_UNSPECIFIED", + 1: "XML_OPTION_DOCUMENT", + 2: "XML_OPTION_CONTENT", +} + +var PostgresqlHostConfig12_XmlOption_value = map[string]int32{ + "XML_OPTION_UNSPECIFIED": 0, + "XML_OPTION_DOCUMENT": 1, + "XML_OPTION_CONTENT": 2, +} + +func (x PostgresqlHostConfig12_XmlOption) String() string { + return proto.EnumName(PostgresqlHostConfig12_XmlOption_name, int32(x)) +} + +func (PostgresqlHostConfig12_XmlOption) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_83e092514b9d43a7, []int{0, 8} +} + +type PostgresqlHostConfig12_BackslashQuote int32 + +const ( + PostgresqlHostConfig12_BACKSLASH_QUOTE_UNSPECIFIED PostgresqlHostConfig12_BackslashQuote = 0 + PostgresqlHostConfig12_BACKSLASH_QUOTE PostgresqlHostConfig12_BackslashQuote = 1 + PostgresqlHostConfig12_BACKSLASH_QUOTE_ON PostgresqlHostConfig12_BackslashQuote = 2 + PostgresqlHostConfig12_BACKSLASH_QUOTE_OFF PostgresqlHostConfig12_BackslashQuote = 3 + PostgresqlHostConfig12_BACKSLASH_QUOTE_SAFE_ENCODING PostgresqlHostConfig12_BackslashQuote = 4 +) + +var PostgresqlHostConfig12_BackslashQuote_name = map[int32]string{ + 0: "BACKSLASH_QUOTE_UNSPECIFIED", + 1: "BACKSLASH_QUOTE", + 2: "BACKSLASH_QUOTE_ON", + 3: "BACKSLASH_QUOTE_OFF", + 4: "BACKSLASH_QUOTE_SAFE_ENCODING", +} + +var PostgresqlHostConfig12_BackslashQuote_value = map[string]int32{ + "BACKSLASH_QUOTE_UNSPECIFIED": 0, + "BACKSLASH_QUOTE": 1, + "BACKSLASH_QUOTE_ON": 2, + "BACKSLASH_QUOTE_OFF": 3, + "BACKSLASH_QUOTE_SAFE_ENCODING": 4, +} + +func (x PostgresqlHostConfig12_BackslashQuote) String() string { + return proto.EnumName(PostgresqlHostConfig12_BackslashQuote_name, int32(x)) +} + +func (PostgresqlHostConfig12_BackslashQuote) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_83e092514b9d43a7, []int{0, 9} +} + +// Options and structure of `PostgresqlConfig` reflects PostgreSQL configuration file +// parameters which detailed description is available in +// [PostgreSQL documentation](https://www.postgresql.org/docs/11/runtime-config.html). +type PostgresqlHostConfig12 struct { + RecoveryMinApplyDelay *wrappers.Int64Value `protobuf:"bytes,1,opt,name=recovery_min_apply_delay,json=recoveryMinApplyDelay,proto3" json:"recovery_min_apply_delay,omitempty"` + SharedBuffers *wrappers.Int64Value `protobuf:"bytes,2,opt,name=shared_buffers,json=sharedBuffers,proto3" json:"shared_buffers,omitempty"` + TempBuffers *wrappers.Int64Value `protobuf:"bytes,3,opt,name=temp_buffers,json=tempBuffers,proto3" json:"temp_buffers,omitempty"` + WorkMem *wrappers.Int64Value `protobuf:"bytes,4,opt,name=work_mem,json=workMem,proto3" json:"work_mem,omitempty"` + TempFileLimit *wrappers.Int64Value `protobuf:"bytes,5,opt,name=temp_file_limit,json=tempFileLimit,proto3" json:"temp_file_limit,omitempty"` + BackendFlushAfter *wrappers.Int64Value `protobuf:"bytes,6,opt,name=backend_flush_after,json=backendFlushAfter,proto3" json:"backend_flush_after,omitempty"` + OldSnapshotThreshold *wrappers.Int64Value `protobuf:"bytes,7,opt,name=old_snapshot_threshold,json=oldSnapshotThreshold,proto3" json:"old_snapshot_threshold,omitempty"` + MaxStandbyStreamingDelay *wrappers.Int64Value `protobuf:"bytes,8,opt,name=max_standby_streaming_delay,json=maxStandbyStreamingDelay,proto3" json:"max_standby_streaming_delay,omitempty"` + ConstraintExclusion PostgresqlHostConfig12_ConstraintExclusion `protobuf:"varint,9,opt,name=constraint_exclusion,json=constraintExclusion,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_ConstraintExclusion" json:"constraint_exclusion,omitempty"` + CursorTupleFraction *wrappers.DoubleValue `protobuf:"bytes,10,opt,name=cursor_tuple_fraction,json=cursorTupleFraction,proto3" json:"cursor_tuple_fraction,omitempty"` + FromCollapseLimit *wrappers.Int64Value `protobuf:"bytes,11,opt,name=from_collapse_limit,json=fromCollapseLimit,proto3" json:"from_collapse_limit,omitempty"` + JoinCollapseLimit *wrappers.Int64Value `protobuf:"bytes,12,opt,name=join_collapse_limit,json=joinCollapseLimit,proto3" json:"join_collapse_limit,omitempty"` + ForceParallelMode PostgresqlHostConfig12_ForceParallelMode `protobuf:"varint,13,opt,name=force_parallel_mode,json=forceParallelMode,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_ForceParallelMode" json:"force_parallel_mode,omitempty"` + ClientMinMessages PostgresqlHostConfig12_LogLevel `protobuf:"varint,14,opt,name=client_min_messages,json=clientMinMessages,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_LogLevel" json:"client_min_messages,omitempty"` + LogMinMessages PostgresqlHostConfig12_LogLevel `protobuf:"varint,15,opt,name=log_min_messages,json=logMinMessages,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_LogLevel" json:"log_min_messages,omitempty"` + LogMinErrorStatement PostgresqlHostConfig12_LogLevel `protobuf:"varint,16,opt,name=log_min_error_statement,json=logMinErrorStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_LogLevel" json:"log_min_error_statement,omitempty"` + LogMinDurationStatement *wrappers.Int64Value `protobuf:"bytes,17,opt,name=log_min_duration_statement,json=logMinDurationStatement,proto3" json:"log_min_duration_statement,omitempty"` + LogCheckpoints *wrappers.BoolValue `protobuf:"bytes,18,opt,name=log_checkpoints,json=logCheckpoints,proto3" json:"log_checkpoints,omitempty"` + LogConnections *wrappers.BoolValue `protobuf:"bytes,19,opt,name=log_connections,json=logConnections,proto3" json:"log_connections,omitempty"` + LogDisconnections *wrappers.BoolValue `protobuf:"bytes,20,opt,name=log_disconnections,json=logDisconnections,proto3" json:"log_disconnections,omitempty"` + LogDuration *wrappers.BoolValue `protobuf:"bytes,21,opt,name=log_duration,json=logDuration,proto3" json:"log_duration,omitempty"` + LogErrorVerbosity PostgresqlHostConfig12_LogErrorVerbosity `protobuf:"varint,22,opt,name=log_error_verbosity,json=logErrorVerbosity,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_LogErrorVerbosity" json:"log_error_verbosity,omitempty"` + LogLockWaits *wrappers.BoolValue `protobuf:"bytes,23,opt,name=log_lock_waits,json=logLockWaits,proto3" json:"log_lock_waits,omitempty"` + LogStatement PostgresqlHostConfig12_LogStatement `protobuf:"varint,24,opt,name=log_statement,json=logStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_LogStatement" json:"log_statement,omitempty"` + LogTempFiles *wrappers.Int64Value `protobuf:"bytes,25,opt,name=log_temp_files,json=logTempFiles,proto3" json:"log_temp_files,omitempty"` + SearchPath string `protobuf:"bytes,26,opt,name=search_path,json=searchPath,proto3" json:"search_path,omitempty"` + RowSecurity *wrappers.BoolValue `protobuf:"bytes,27,opt,name=row_security,json=rowSecurity,proto3" json:"row_security,omitempty"` + DefaultTransactionIsolation PostgresqlHostConfig12_TransactionIsolation `protobuf:"varint,28,opt,name=default_transaction_isolation,json=defaultTransactionIsolation,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_TransactionIsolation" json:"default_transaction_isolation,omitempty"` + StatementTimeout *wrappers.Int64Value `protobuf:"bytes,29,opt,name=statement_timeout,json=statementTimeout,proto3" json:"statement_timeout,omitempty"` + LockTimeout *wrappers.Int64Value `protobuf:"bytes,30,opt,name=lock_timeout,json=lockTimeout,proto3" json:"lock_timeout,omitempty"` + IdleInTransactionSessionTimeout *wrappers.Int64Value `protobuf:"bytes,31,opt,name=idle_in_transaction_session_timeout,json=idleInTransactionSessionTimeout,proto3" json:"idle_in_transaction_session_timeout,omitempty"` + ByteaOutput PostgresqlHostConfig12_ByteaOutput `protobuf:"varint,32,opt,name=bytea_output,json=byteaOutput,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_ByteaOutput" json:"bytea_output,omitempty"` + Xmlbinary PostgresqlHostConfig12_XmlBinary `protobuf:"varint,33,opt,name=xmlbinary,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_XmlBinary" json:"xmlbinary,omitempty"` + Xmloption PostgresqlHostConfig12_XmlOption `protobuf:"varint,34,opt,name=xmloption,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_XmlOption" json:"xmloption,omitempty"` + GinPendingListLimit *wrappers.Int64Value `protobuf:"bytes,35,opt,name=gin_pending_list_limit,json=ginPendingListLimit,proto3" json:"gin_pending_list_limit,omitempty"` + DeadlockTimeout *wrappers.Int64Value `protobuf:"bytes,36,opt,name=deadlock_timeout,json=deadlockTimeout,proto3" json:"deadlock_timeout,omitempty"` + MaxLocksPerTransaction *wrappers.Int64Value `protobuf:"bytes,37,opt,name=max_locks_per_transaction,json=maxLocksPerTransaction,proto3" json:"max_locks_per_transaction,omitempty"` + MaxPredLocksPerTransaction *wrappers.Int64Value `protobuf:"bytes,38,opt,name=max_pred_locks_per_transaction,json=maxPredLocksPerTransaction,proto3" json:"max_pred_locks_per_transaction,omitempty"` + ArrayNulls *wrappers.BoolValue `protobuf:"bytes,39,opt,name=array_nulls,json=arrayNulls,proto3" json:"array_nulls,omitempty"` + BackslashQuote PostgresqlHostConfig12_BackslashQuote `protobuf:"varint,40,opt,name=backslash_quote,json=backslashQuote,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_BackslashQuote" json:"backslash_quote,omitempty"` + DefaultWithOids *wrappers.BoolValue `protobuf:"bytes,41,opt,name=default_with_oids,json=defaultWithOids,proto3" json:"default_with_oids,omitempty"` + EscapeStringWarning *wrappers.BoolValue `protobuf:"bytes,42,opt,name=escape_string_warning,json=escapeStringWarning,proto3" json:"escape_string_warning,omitempty"` + LoCompatPrivileges *wrappers.BoolValue `protobuf:"bytes,43,opt,name=lo_compat_privileges,json=loCompatPrivileges,proto3" json:"lo_compat_privileges,omitempty"` + OperatorPrecedenceWarning *wrappers.BoolValue `protobuf:"bytes,44,opt,name=operator_precedence_warning,json=operatorPrecedenceWarning,proto3" json:"operator_precedence_warning,omitempty"` + QuoteAllIdentifiers *wrappers.BoolValue `protobuf:"bytes,45,opt,name=quote_all_identifiers,json=quoteAllIdentifiers,proto3" json:"quote_all_identifiers,omitempty"` + StandardConformingStrings *wrappers.BoolValue `protobuf:"bytes,46,opt,name=standard_conforming_strings,json=standardConformingStrings,proto3" json:"standard_conforming_strings,omitempty"` + SynchronizeSeqscans *wrappers.BoolValue `protobuf:"bytes,47,opt,name=synchronize_seqscans,json=synchronizeSeqscans,proto3" json:"synchronize_seqscans,omitempty"` + TransformNullEquals *wrappers.BoolValue `protobuf:"bytes,48,opt,name=transform_null_equals,json=transformNullEquals,proto3" json:"transform_null_equals,omitempty"` + ExitOnError *wrappers.BoolValue `protobuf:"bytes,49,opt,name=exit_on_error,json=exitOnError,proto3" json:"exit_on_error,omitempty"` + SeqPageCost *wrappers.DoubleValue `protobuf:"bytes,50,opt,name=seq_page_cost,json=seqPageCost,proto3" json:"seq_page_cost,omitempty"` + RandomPageCost *wrappers.DoubleValue `protobuf:"bytes,51,opt,name=random_page_cost,json=randomPageCost,proto3" json:"random_page_cost,omitempty"` + EnableBitmapscan *wrappers.BoolValue `protobuf:"bytes,54,opt,name=enable_bitmapscan,json=enableBitmapscan,proto3" json:"enable_bitmapscan,omitempty"` + EnableHashagg *wrappers.BoolValue `protobuf:"bytes,55,opt,name=enable_hashagg,json=enableHashagg,proto3" json:"enable_hashagg,omitempty"` + EnableHashjoin *wrappers.BoolValue `protobuf:"bytes,56,opt,name=enable_hashjoin,json=enableHashjoin,proto3" json:"enable_hashjoin,omitempty"` + EnableIndexscan *wrappers.BoolValue `protobuf:"bytes,57,opt,name=enable_indexscan,json=enableIndexscan,proto3" json:"enable_indexscan,omitempty"` + EnableIndexonlyscan *wrappers.BoolValue `protobuf:"bytes,58,opt,name=enable_indexonlyscan,json=enableIndexonlyscan,proto3" json:"enable_indexonlyscan,omitempty"` + EnableMaterial *wrappers.BoolValue `protobuf:"bytes,59,opt,name=enable_material,json=enableMaterial,proto3" json:"enable_material,omitempty"` + EnableMergejoin *wrappers.BoolValue `protobuf:"bytes,60,opt,name=enable_mergejoin,json=enableMergejoin,proto3" json:"enable_mergejoin,omitempty"` + EnableNestloop *wrappers.BoolValue `protobuf:"bytes,61,opt,name=enable_nestloop,json=enableNestloop,proto3" json:"enable_nestloop,omitempty"` + EnableSeqscan *wrappers.BoolValue `protobuf:"bytes,62,opt,name=enable_seqscan,json=enableSeqscan,proto3" json:"enable_seqscan,omitempty"` + EnableSort *wrappers.BoolValue `protobuf:"bytes,63,opt,name=enable_sort,json=enableSort,proto3" json:"enable_sort,omitempty"` + EnableTidscan *wrappers.BoolValue `protobuf:"bytes,64,opt,name=enable_tidscan,json=enableTidscan,proto3" json:"enable_tidscan,omitempty"` + MaxParallelWorkers *wrappers.Int64Value `protobuf:"bytes,65,opt,name=max_parallel_workers,json=maxParallelWorkers,proto3" json:"max_parallel_workers,omitempty"` + MaxParallelWorkersPerGather *wrappers.Int64Value `protobuf:"bytes,66,opt,name=max_parallel_workers_per_gather,json=maxParallelWorkersPerGather,proto3" json:"max_parallel_workers_per_gather,omitempty"` + Timezone string `protobuf:"bytes,67,opt,name=timezone,proto3" json:"timezone,omitempty"` + EffectiveIoConcurrency *wrappers.Int64Value `protobuf:"bytes,68,opt,name=effective_io_concurrency,json=effectiveIoConcurrency,proto3" json:"effective_io_concurrency,omitempty"` + EffectiveCacheSize *wrappers.Int64Value `protobuf:"bytes,69,opt,name=effective_cache_size,json=effectiveCacheSize,proto3" json:"effective_cache_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PostgresqlHostConfig12) Reset() { *m = PostgresqlHostConfig12{} } +func (m *PostgresqlHostConfig12) String() string { return proto.CompactTextString(m) } +func (*PostgresqlHostConfig12) ProtoMessage() {} +func (*PostgresqlHostConfig12) Descriptor() ([]byte, []int) { + return fileDescriptor_83e092514b9d43a7, []int{0} +} + +func (m *PostgresqlHostConfig12) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PostgresqlHostConfig12.Unmarshal(m, b) +} +func (m *PostgresqlHostConfig12) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PostgresqlHostConfig12.Marshal(b, m, deterministic) +} +func (m *PostgresqlHostConfig12) XXX_Merge(src proto.Message) { + xxx_messageInfo_PostgresqlHostConfig12.Merge(m, src) +} +func (m *PostgresqlHostConfig12) XXX_Size() int { + return xxx_messageInfo_PostgresqlHostConfig12.Size(m) +} +func (m *PostgresqlHostConfig12) XXX_DiscardUnknown() { + xxx_messageInfo_PostgresqlHostConfig12.DiscardUnknown(m) +} + +var xxx_messageInfo_PostgresqlHostConfig12 proto.InternalMessageInfo + +func (m *PostgresqlHostConfig12) GetRecoveryMinApplyDelay() *wrappers.Int64Value { + if m != nil { + return m.RecoveryMinApplyDelay + } + return nil +} + +func (m *PostgresqlHostConfig12) GetSharedBuffers() *wrappers.Int64Value { + if m != nil { + return m.SharedBuffers + } + return nil +} + +func (m *PostgresqlHostConfig12) GetTempBuffers() *wrappers.Int64Value { + if m != nil { + return m.TempBuffers + } + return nil +} + +func (m *PostgresqlHostConfig12) GetWorkMem() *wrappers.Int64Value { + if m != nil { + return m.WorkMem + } + return nil +} + +func (m *PostgresqlHostConfig12) GetTempFileLimit() *wrappers.Int64Value { + if m != nil { + return m.TempFileLimit + } + return nil +} + +func (m *PostgresqlHostConfig12) GetBackendFlushAfter() *wrappers.Int64Value { + if m != nil { + return m.BackendFlushAfter + } + return nil +} + +func (m *PostgresqlHostConfig12) GetOldSnapshotThreshold() *wrappers.Int64Value { + if m != nil { + return m.OldSnapshotThreshold + } + return nil +} + +func (m *PostgresqlHostConfig12) GetMaxStandbyStreamingDelay() *wrappers.Int64Value { + if m != nil { + return m.MaxStandbyStreamingDelay + } + return nil +} + +func (m *PostgresqlHostConfig12) GetConstraintExclusion() PostgresqlHostConfig12_ConstraintExclusion { + if m != nil { + return m.ConstraintExclusion + } + return PostgresqlHostConfig12_CONSTRAINT_EXCLUSION_UNSPECIFIED +} + +func (m *PostgresqlHostConfig12) GetCursorTupleFraction() *wrappers.DoubleValue { + if m != nil { + return m.CursorTupleFraction + } + return nil +} + +func (m *PostgresqlHostConfig12) GetFromCollapseLimit() *wrappers.Int64Value { + if m != nil { + return m.FromCollapseLimit + } + return nil +} + +func (m *PostgresqlHostConfig12) GetJoinCollapseLimit() *wrappers.Int64Value { + if m != nil { + return m.JoinCollapseLimit + } + return nil +} + +func (m *PostgresqlHostConfig12) GetForceParallelMode() PostgresqlHostConfig12_ForceParallelMode { + if m != nil { + return m.ForceParallelMode + } + return PostgresqlHostConfig12_FORCE_PARALLEL_MODE_UNSPECIFIED +} + +func (m *PostgresqlHostConfig12) GetClientMinMessages() PostgresqlHostConfig12_LogLevel { + if m != nil { + return m.ClientMinMessages + } + return PostgresqlHostConfig12_LOG_LEVEL_UNSPECIFIED +} + +func (m *PostgresqlHostConfig12) GetLogMinMessages() PostgresqlHostConfig12_LogLevel { + if m != nil { + return m.LogMinMessages + } + return PostgresqlHostConfig12_LOG_LEVEL_UNSPECIFIED +} + +func (m *PostgresqlHostConfig12) GetLogMinErrorStatement() PostgresqlHostConfig12_LogLevel { + if m != nil { + return m.LogMinErrorStatement + } + return PostgresqlHostConfig12_LOG_LEVEL_UNSPECIFIED +} + +func (m *PostgresqlHostConfig12) GetLogMinDurationStatement() *wrappers.Int64Value { + if m != nil { + return m.LogMinDurationStatement + } + return nil +} + +func (m *PostgresqlHostConfig12) GetLogCheckpoints() *wrappers.BoolValue { + if m != nil { + return m.LogCheckpoints + } + return nil +} + +func (m *PostgresqlHostConfig12) GetLogConnections() *wrappers.BoolValue { + if m != nil { + return m.LogConnections + } + return nil +} + +func (m *PostgresqlHostConfig12) GetLogDisconnections() *wrappers.BoolValue { + if m != nil { + return m.LogDisconnections + } + return nil +} + +func (m *PostgresqlHostConfig12) GetLogDuration() *wrappers.BoolValue { + if m != nil { + return m.LogDuration + } + return nil +} + +func (m *PostgresqlHostConfig12) GetLogErrorVerbosity() PostgresqlHostConfig12_LogErrorVerbosity { + if m != nil { + return m.LogErrorVerbosity + } + return PostgresqlHostConfig12_LOG_ERROR_VERBOSITY_UNSPECIFIED +} + +func (m *PostgresqlHostConfig12) GetLogLockWaits() *wrappers.BoolValue { + if m != nil { + return m.LogLockWaits + } + return nil +} + +func (m *PostgresqlHostConfig12) GetLogStatement() PostgresqlHostConfig12_LogStatement { + if m != nil { + return m.LogStatement + } + return PostgresqlHostConfig12_LOG_STATEMENT_UNSPECIFIED +} + +func (m *PostgresqlHostConfig12) GetLogTempFiles() *wrappers.Int64Value { + if m != nil { + return m.LogTempFiles + } + return nil +} + +func (m *PostgresqlHostConfig12) GetSearchPath() string { + if m != nil { + return m.SearchPath + } + return "" +} + +func (m *PostgresqlHostConfig12) GetRowSecurity() *wrappers.BoolValue { + if m != nil { + return m.RowSecurity + } + return nil +} + +func (m *PostgresqlHostConfig12) GetDefaultTransactionIsolation() PostgresqlHostConfig12_TransactionIsolation { + if m != nil { + return m.DefaultTransactionIsolation + } + return PostgresqlHostConfig12_TRANSACTION_ISOLATION_UNSPECIFIED +} + +func (m *PostgresqlHostConfig12) GetStatementTimeout() *wrappers.Int64Value { + if m != nil { + return m.StatementTimeout + } + return nil +} + +func (m *PostgresqlHostConfig12) GetLockTimeout() *wrappers.Int64Value { + if m != nil { + return m.LockTimeout + } + return nil +} + +func (m *PostgresqlHostConfig12) GetIdleInTransactionSessionTimeout() *wrappers.Int64Value { + if m != nil { + return m.IdleInTransactionSessionTimeout + } + return nil +} + +func (m *PostgresqlHostConfig12) GetByteaOutput() PostgresqlHostConfig12_ByteaOutput { + if m != nil { + return m.ByteaOutput + } + return PostgresqlHostConfig12_BYTEA_OUTPUT_UNSPECIFIED +} + +func (m *PostgresqlHostConfig12) GetXmlbinary() PostgresqlHostConfig12_XmlBinary { + if m != nil { + return m.Xmlbinary + } + return PostgresqlHostConfig12_XML_BINARY_UNSPECIFIED +} + +func (m *PostgresqlHostConfig12) GetXmloption() PostgresqlHostConfig12_XmlOption { + if m != nil { + return m.Xmloption + } + return PostgresqlHostConfig12_XML_OPTION_UNSPECIFIED +} + +func (m *PostgresqlHostConfig12) GetGinPendingListLimit() *wrappers.Int64Value { + if m != nil { + return m.GinPendingListLimit + } + return nil +} + +func (m *PostgresqlHostConfig12) GetDeadlockTimeout() *wrappers.Int64Value { + if m != nil { + return m.DeadlockTimeout + } + return nil +} + +func (m *PostgresqlHostConfig12) GetMaxLocksPerTransaction() *wrappers.Int64Value { + if m != nil { + return m.MaxLocksPerTransaction + } + return nil +} + +func (m *PostgresqlHostConfig12) GetMaxPredLocksPerTransaction() *wrappers.Int64Value { + if m != nil { + return m.MaxPredLocksPerTransaction + } + return nil +} + +func (m *PostgresqlHostConfig12) GetArrayNulls() *wrappers.BoolValue { + if m != nil { + return m.ArrayNulls + } + return nil +} + +func (m *PostgresqlHostConfig12) GetBackslashQuote() PostgresqlHostConfig12_BackslashQuote { + if m != nil { + return m.BackslashQuote + } + return PostgresqlHostConfig12_BACKSLASH_QUOTE_UNSPECIFIED +} + +func (m *PostgresqlHostConfig12) GetDefaultWithOids() *wrappers.BoolValue { + if m != nil { + return m.DefaultWithOids + } + return nil +} + +func (m *PostgresqlHostConfig12) GetEscapeStringWarning() *wrappers.BoolValue { + if m != nil { + return m.EscapeStringWarning + } + return nil +} + +func (m *PostgresqlHostConfig12) GetLoCompatPrivileges() *wrappers.BoolValue { + if m != nil { + return m.LoCompatPrivileges + } + return nil +} + +func (m *PostgresqlHostConfig12) GetOperatorPrecedenceWarning() *wrappers.BoolValue { + if m != nil { + return m.OperatorPrecedenceWarning + } + return nil +} + +func (m *PostgresqlHostConfig12) GetQuoteAllIdentifiers() *wrappers.BoolValue { + if m != nil { + return m.QuoteAllIdentifiers + } + return nil +} + +func (m *PostgresqlHostConfig12) GetStandardConformingStrings() *wrappers.BoolValue { + if m != nil { + return m.StandardConformingStrings + } + return nil +} + +func (m *PostgresqlHostConfig12) GetSynchronizeSeqscans() *wrappers.BoolValue { + if m != nil { + return m.SynchronizeSeqscans + } + return nil +} + +func (m *PostgresqlHostConfig12) GetTransformNullEquals() *wrappers.BoolValue { + if m != nil { + return m.TransformNullEquals + } + return nil +} + +func (m *PostgresqlHostConfig12) GetExitOnError() *wrappers.BoolValue { + if m != nil { + return m.ExitOnError + } + return nil +} + +func (m *PostgresqlHostConfig12) GetSeqPageCost() *wrappers.DoubleValue { + if m != nil { + return m.SeqPageCost + } + return nil +} + +func (m *PostgresqlHostConfig12) GetRandomPageCost() *wrappers.DoubleValue { + if m != nil { + return m.RandomPageCost + } + return nil +} + +func (m *PostgresqlHostConfig12) GetEnableBitmapscan() *wrappers.BoolValue { + if m != nil { + return m.EnableBitmapscan + } + return nil +} + +func (m *PostgresqlHostConfig12) GetEnableHashagg() *wrappers.BoolValue { + if m != nil { + return m.EnableHashagg + } + return nil +} + +func (m *PostgresqlHostConfig12) GetEnableHashjoin() *wrappers.BoolValue { + if m != nil { + return m.EnableHashjoin + } + return nil +} + +func (m *PostgresqlHostConfig12) GetEnableIndexscan() *wrappers.BoolValue { + if m != nil { + return m.EnableIndexscan + } + return nil +} + +func (m *PostgresqlHostConfig12) GetEnableIndexonlyscan() *wrappers.BoolValue { + if m != nil { + return m.EnableIndexonlyscan + } + return nil +} + +func (m *PostgresqlHostConfig12) GetEnableMaterial() *wrappers.BoolValue { + if m != nil { + return m.EnableMaterial + } + return nil +} + +func (m *PostgresqlHostConfig12) GetEnableMergejoin() *wrappers.BoolValue { + if m != nil { + return m.EnableMergejoin + } + return nil +} + +func (m *PostgresqlHostConfig12) GetEnableNestloop() *wrappers.BoolValue { + if m != nil { + return m.EnableNestloop + } + return nil +} + +func (m *PostgresqlHostConfig12) GetEnableSeqscan() *wrappers.BoolValue { + if m != nil { + return m.EnableSeqscan + } + return nil +} + +func (m *PostgresqlHostConfig12) GetEnableSort() *wrappers.BoolValue { + if m != nil { + return m.EnableSort + } + return nil +} + +func (m *PostgresqlHostConfig12) GetEnableTidscan() *wrappers.BoolValue { + if m != nil { + return m.EnableTidscan + } + return nil +} + +func (m *PostgresqlHostConfig12) GetMaxParallelWorkers() *wrappers.Int64Value { + if m != nil { + return m.MaxParallelWorkers + } + return nil +} + +func (m *PostgresqlHostConfig12) GetMaxParallelWorkersPerGather() *wrappers.Int64Value { + if m != nil { + return m.MaxParallelWorkersPerGather + } + return nil +} + +func (m *PostgresqlHostConfig12) GetTimezone() string { + if m != nil { + return m.Timezone + } + return "" +} + +func (m *PostgresqlHostConfig12) GetEffectiveIoConcurrency() *wrappers.Int64Value { + if m != nil { + return m.EffectiveIoConcurrency + } + return nil +} + +func (m *PostgresqlHostConfig12) GetEffectiveCacheSize() *wrappers.Int64Value { + if m != nil { + return m.EffectiveCacheSize + } + return nil +} + +func init() { + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_ConstraintExclusion", PostgresqlHostConfig12_ConstraintExclusion_name, PostgresqlHostConfig12_ConstraintExclusion_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_ForceParallelMode", PostgresqlHostConfig12_ForceParallelMode_name, PostgresqlHostConfig12_ForceParallelMode_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_LogLevel", PostgresqlHostConfig12_LogLevel_name, PostgresqlHostConfig12_LogLevel_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_LogErrorVerbosity", PostgresqlHostConfig12_LogErrorVerbosity_name, PostgresqlHostConfig12_LogErrorVerbosity_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_LogStatement", PostgresqlHostConfig12_LogStatement_name, PostgresqlHostConfig12_LogStatement_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_TransactionIsolation", PostgresqlHostConfig12_TransactionIsolation_name, PostgresqlHostConfig12_TransactionIsolation_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_ByteaOutput", PostgresqlHostConfig12_ByteaOutput_name, PostgresqlHostConfig12_ByteaOutput_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_XmlBinary", PostgresqlHostConfig12_XmlBinary_name, PostgresqlHostConfig12_XmlBinary_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_XmlOption", PostgresqlHostConfig12_XmlOption_name, PostgresqlHostConfig12_XmlOption_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_BackslashQuote", PostgresqlHostConfig12_BackslashQuote_name, PostgresqlHostConfig12_BackslashQuote_value) + proto.RegisterType((*PostgresqlHostConfig12)(nil), "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12") +} + +func init() { + proto.RegisterFile("yandex/cloud/mdb/postgresql/v1/config/host12.proto", fileDescriptor_83e092514b9d43a7) +} + +var fileDescriptor_83e092514b9d43a7 = []byte{ + // 2520 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x99, 0xdb, 0x73, 0xdb, 0xc6, + 0xf5, 0xc7, 0x7f, 0x94, 0x1c, 0xc7, 0x5e, 0xdd, 0xc0, 0xa5, 0x24, 0xc3, 0x52, 0x7c, 0x89, 0x12, + 0xe7, 0xe7, 0xa4, 0x15, 0x25, 0xca, 0xb2, 0xad, 0x34, 0x4d, 0x1a, 0x90, 0x04, 0x65, 0xb6, 0x20, + 0xc1, 0x80, 0x90, 0xed, 0xa4, 0x93, 0xd9, 0x59, 0x02, 0x4b, 0x12, 0x35, 0x80, 0x85, 0x77, 0x41, + 0x49, 0xf4, 0x4c, 0xa7, 0xd3, 0x99, 0x3e, 0xf5, 0xb1, 0x0f, 0x9d, 0x69, 0xfb, 0x07, 0xf9, 0x3f, + 0xe9, 0x1f, 0xe1, 0xa7, 0xce, 0xe2, 0xc2, 0x8b, 0xc4, 0x14, 0x4c, 0xe5, 0x37, 0xf1, 0xec, 0x7e, + 0x3f, 0x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fc, 0x25, 0x07, + 0xd6, 0x2d, 0xea, 0xf3, 0x90, 0x61, 0xc7, 0x0f, 0x11, 0x39, 0xb7, 0xdc, 0x01, 0x77, 0xa8, 0x2f, + 0xdf, 0xbc, 0x9f, 0x7b, 0xb8, 0x7a, 0xf0, 0x5d, 0x71, 0xae, 0xd5, 0x50, 0x9c, 0x5d, 0xca, 0xc5, + 0xca, 0x88, 0xac, 0xa6, 0x60, 0xa3, 0x60, 0x5d, 0x36, 0xc2, 0x16, 0xd8, 0xb0, 0x06, 0x8c, 0x53, + 0x86, 0xc2, 0x41, 0xe0, 0x12, 0xd4, 0x65, 0xd8, 0x12, 0xab, 0x45, 0x06, 0xd1, 0xe0, 0x3e, 0xba, + 0x34, 0xb8, 0x2a, 0x1d, 0x74, 0x5c, 0x12, 0x8f, 0xae, 0x10, 0x4b, 0x4d, 0xa1, 0xac, 0x25, 0x42, + 0xf8, 0x23, 0x28, 0x74, 0x19, 0xf5, 0x90, 0x45, 0x5d, 0x17, 0x07, 0x3c, 0xad, 0x9b, 0xa5, 0xec, + 0x94, 0x48, 0xef, 0xde, 0x96, 0x96, 0x4b, 0xbb, 0x07, 0xa5, 0xc3, 0xa7, 0x87, 0x47, 0x8f, 0x9e, + 0x1c, 0x3e, 0x35, 0xf2, 0x82, 0x54, 0x49, 0x40, 0x71, 0x35, 0xfd, 0x08, 0x0a, 0x7f, 0xa0, 0x8e, + 0x7f, 0x11, 0xbf, 0xfc, 0x3f, 0xe1, 0x05, 0x69, 0x1a, 0xff, 0x27, 0x50, 0xe8, 0x52, 0x66, 0x11, + 0x14, 0x60, 0x86, 0x5d, 0x97, 0xb8, 0xc8, 0xa3, 0x36, 0x91, 0x57, 0xa2, 0xa4, 0xe8, 0x57, 0x4b, + 0x4a, 0x4d, 0x80, 0x5b, 0x09, 0xb7, 0x41, 0x6d, 0x62, 0xe4, 0xbb, 0x17, 0x4d, 0xf0, 0x14, 0x14, + 0x2c, 0xd7, 0x21, 0x7e, 0x18, 0x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0xf9, 0x3e, 0xd6, 0x95, 0x46, + 0x7b, 0x51, 0x6e, 0x9f, 0xa7, 0xd8, 0x28, 0xfe, 0x69, 0x13, 0xfc, 0x16, 0x88, 0xc9, 0x41, 0x2e, + 0xb5, 0x5e, 0xa1, 0x33, 0xec, 0x84, 0x5c, 0xbe, 0x95, 0x39, 0x02, 0x31, 0x62, 0x8d, 0x5a, 0xaf, + 0x5e, 0x88, 0xfe, 0x90, 0x82, 0x15, 0x41, 0x18, 0xd7, 0x88, 0x1c, 0x05, 0xff, 0xdb, 0x2b, 0x07, + 0x3f, 0xaa, 0x9c, 0xc8, 0xe1, 0xb8, 0x8e, 0x94, 0x38, 0xe4, 0xd1, 0x09, 0xcc, 0xe5, 0xdb, 0xd9, + 0x55, 0x29, 0x10, 0x66, 0x72, 0xfe, 0x72, 0x78, 0x0f, 0x2c, 0x71, 0x82, 0x99, 0xd5, 0x47, 0x01, + 0x0e, 0xfb, 0xf2, 0xd6, 0xfd, 0xdc, 0xc3, 0x9b, 0x06, 0x88, 0x4d, 0x2d, 0x1c, 0xf6, 0x45, 0x5a, + 0x19, 0x3d, 0x43, 0x9c, 0x58, 0x03, 0x26, 0x12, 0xb2, 0x9d, 0x9d, 0x56, 0x46, 0xcf, 0xda, 0x49, + 0x77, 0xf8, 0xf7, 0x1c, 0xb8, 0x63, 0x93, 0x2e, 0x1e, 0xb8, 0x21, 0x0a, 0x19, 0xf6, 0x79, 0x7c, + 0x08, 0x20, 0x87, 0x53, 0x37, 0xae, 0x93, 0x8f, 0xa2, 0x49, 0x32, 0xae, 0x36, 0x49, 0xe6, 0x18, + 0x5d, 0x4f, 0xc9, 0xc6, 0x76, 0xe2, 0x78, 0x56, 0x23, 0x7c, 0x06, 0xf2, 0xa3, 0x44, 0xa1, 0xd0, + 0xf1, 0x08, 0x1d, 0x84, 0xf2, 0x9d, 0xec, 0xe9, 0x93, 0x46, 0x2a, 0x33, 0x16, 0x89, 0xbb, 0x57, + 0x54, 0x34, 0x29, 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 0x8b, 0xca, 0x23, 0x8d, 0xb8, 0x13, 0x25, 0xa0, 0x3e, + 0xe6, 0x7d, 0xdc, 0xeb, 0xc9, 0x4f, 0x33, 0x29, 0x2b, 0xb1, 0xe2, 0x59, 0x2c, 0x10, 0x37, 0xeb, + 0x09, 0x84, 0x78, 0x02, 0xca, 0x47, 0xd9, 0x37, 0xeb, 0x31, 0x43, 0x28, 0xa0, 0x0a, 0x92, 0xd8, + 0x90, 0x23, 0x36, 0xa3, 0x68, 0x3c, 0x5f, 0x66, 0x6f, 0x13, 0xb1, 0xa6, 0x9e, 0x4a, 0x44, 0x01, + 0x4e, 0x62, 0xa8, 0xef, 0x0e, 0x23, 0xd4, 0xaf, 0xe6, 0xd8, 0x25, 0xc6, 0xa8, 0x54, 0x36, 0x31, + 0x34, 0x0f, 0x87, 0x84, 0x39, 0xd8, 0x95, 0xbf, 0x9a, 0x77, 0x68, 0x8d, 0x44, 0x31, 0x31, 0x34, + 0x8f, 0xb0, 0x1e, 0x89, 0x26, 0xe8, 0xd7, 0xf3, 0x0e, 0xad, 0x91, 0x4a, 0x26, 0x62, 0xf1, 0x09, + 0x0f, 0x5d, 0x4a, 0x03, 0xf9, 0xeb, 0x79, 0x63, 0x69, 0x26, 0x8a, 0x89, 0x74, 0x27, 0x6b, 0x53, + 0xfe, 0x66, 0xde, 0x74, 0x27, 0xab, 0x52, 0x9c, 0x42, 0x29, 0x82, 0xb2, 0x50, 0xfe, 0x4d, 0xf6, + 0x29, 0x94, 0xe8, 0x29, 0x0b, 0x27, 0xfc, 0x87, 0x8e, 0x1d, 0xf9, 0xff, 0x76, 0x5e, 0xff, 0x66, + 0x2c, 0x80, 0xdf, 0x83, 0xf5, 0xe8, 0x98, 0x4d, 0xbf, 0x27, 0x9c, 0x51, 0xf6, 0x4a, 0x6c, 0x87, + 0xca, 0xdc, 0xdf, 0xbf, 0x4a, 0xfb, 0x07, 0x87, 0x06, 0x14, 0x07, 0x6d, 0xc2, 0x78, 0x11, 0x23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 0xfb, 0x83, 0x4e, 0xd1, 0xa2, 0xde, + 0x5e, 0xac, 0xda, 0x8d, 0xff, 0xeb, 0xd8, 0xa3, 0xbb, 0x3d, 0xe2, 0x47, 0x27, 0xd1, 0xde, 0x5c, + 0xff, 0x09, 0xfd, 0x6a, 0x6c, 0xec, 0x5c, 0x8f, 0x74, 0x8f, 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, + 0x1c, 0x6e, 0xa2, 0xbf, 0x44, 0x1d, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host12.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host12.pbext.go new file mode 100644 index 000000000..12eac33af --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host12.pbext.go @@ -0,0 +1,275 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *PostgresqlHostConfig12) SetRecoveryMinApplyDelay(v *wrappers.Int64Value) { + m.RecoveryMinApplyDelay = v +} + +func (m *PostgresqlHostConfig12) SetSharedBuffers(v *wrappers.Int64Value) { + m.SharedBuffers = v +} + +func (m *PostgresqlHostConfig12) SetTempBuffers(v *wrappers.Int64Value) { + m.TempBuffers = v +} + +func (m *PostgresqlHostConfig12) SetWorkMem(v *wrappers.Int64Value) { + m.WorkMem = v +} + +func (m *PostgresqlHostConfig12) SetTempFileLimit(v *wrappers.Int64Value) { + m.TempFileLimit = v +} + +func (m *PostgresqlHostConfig12) SetBackendFlushAfter(v *wrappers.Int64Value) { + m.BackendFlushAfter = v +} + +func (m *PostgresqlHostConfig12) SetOldSnapshotThreshold(v *wrappers.Int64Value) { + m.OldSnapshotThreshold = v +} + +func (m *PostgresqlHostConfig12) SetMaxStandbyStreamingDelay(v *wrappers.Int64Value) { + m.MaxStandbyStreamingDelay = v +} + +func (m *PostgresqlHostConfig12) SetConstraintExclusion(v PostgresqlHostConfig12_ConstraintExclusion) { + m.ConstraintExclusion = v +} + +func (m *PostgresqlHostConfig12) SetCursorTupleFraction(v *wrappers.DoubleValue) { + m.CursorTupleFraction = v +} + +func (m *PostgresqlHostConfig12) SetFromCollapseLimit(v *wrappers.Int64Value) { + m.FromCollapseLimit = v +} + +func (m *PostgresqlHostConfig12) SetJoinCollapseLimit(v *wrappers.Int64Value) { + m.JoinCollapseLimit = v +} + +func (m *PostgresqlHostConfig12) SetForceParallelMode(v PostgresqlHostConfig12_ForceParallelMode) { + m.ForceParallelMode = v +} + +func (m *PostgresqlHostConfig12) SetClientMinMessages(v PostgresqlHostConfig12_LogLevel) { + m.ClientMinMessages = v +} + +func (m *PostgresqlHostConfig12) SetLogMinMessages(v PostgresqlHostConfig12_LogLevel) { + m.LogMinMessages = v +} + +func (m *PostgresqlHostConfig12) SetLogMinErrorStatement(v PostgresqlHostConfig12_LogLevel) { + m.LogMinErrorStatement = v +} + +func (m *PostgresqlHostConfig12) SetLogMinDurationStatement(v *wrappers.Int64Value) { + m.LogMinDurationStatement = v +} + +func (m *PostgresqlHostConfig12) SetLogCheckpoints(v *wrappers.BoolValue) { + m.LogCheckpoints = v +} + +func (m *PostgresqlHostConfig12) SetLogConnections(v *wrappers.BoolValue) { + m.LogConnections = v +} + +func (m *PostgresqlHostConfig12) SetLogDisconnections(v *wrappers.BoolValue) { + m.LogDisconnections = v +} + +func (m *PostgresqlHostConfig12) SetLogDuration(v *wrappers.BoolValue) { + m.LogDuration = v +} + +func (m *PostgresqlHostConfig12) SetLogErrorVerbosity(v PostgresqlHostConfig12_LogErrorVerbosity) { + m.LogErrorVerbosity = v +} + +func (m *PostgresqlHostConfig12) SetLogLockWaits(v *wrappers.BoolValue) { + m.LogLockWaits = v +} + +func (m *PostgresqlHostConfig12) SetLogStatement(v PostgresqlHostConfig12_LogStatement) { + m.LogStatement = v +} + +func (m *PostgresqlHostConfig12) SetLogTempFiles(v *wrappers.Int64Value) { + m.LogTempFiles = v +} + +func (m *PostgresqlHostConfig12) SetSearchPath(v string) { + m.SearchPath = v +} + +func (m *PostgresqlHostConfig12) SetRowSecurity(v *wrappers.BoolValue) { + m.RowSecurity = v +} + +func (m *PostgresqlHostConfig12) SetDefaultTransactionIsolation(v PostgresqlHostConfig12_TransactionIsolation) { + m.DefaultTransactionIsolation = v +} + +func (m *PostgresqlHostConfig12) SetStatementTimeout(v *wrappers.Int64Value) { + m.StatementTimeout = v +} + +func (m *PostgresqlHostConfig12) SetLockTimeout(v *wrappers.Int64Value) { + m.LockTimeout = v +} + +func (m *PostgresqlHostConfig12) SetIdleInTransactionSessionTimeout(v *wrappers.Int64Value) { + m.IdleInTransactionSessionTimeout = v +} + +func (m *PostgresqlHostConfig12) SetByteaOutput(v PostgresqlHostConfig12_ByteaOutput) { + m.ByteaOutput = v +} + +func (m *PostgresqlHostConfig12) SetXmlbinary(v PostgresqlHostConfig12_XmlBinary) { + m.Xmlbinary = v +} + +func (m *PostgresqlHostConfig12) SetXmloption(v PostgresqlHostConfig12_XmlOption) { + m.Xmloption = v +} + +func (m *PostgresqlHostConfig12) SetGinPendingListLimit(v *wrappers.Int64Value) { + m.GinPendingListLimit = v +} + +func (m *PostgresqlHostConfig12) SetDeadlockTimeout(v *wrappers.Int64Value) { + m.DeadlockTimeout = v +} + +func (m *PostgresqlHostConfig12) SetMaxLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxLocksPerTransaction = v +} + +func (m *PostgresqlHostConfig12) SetMaxPredLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxPredLocksPerTransaction = v +} + +func (m *PostgresqlHostConfig12) SetArrayNulls(v *wrappers.BoolValue) { + m.ArrayNulls = v +} + +func (m *PostgresqlHostConfig12) SetBackslashQuote(v PostgresqlHostConfig12_BackslashQuote) { + m.BackslashQuote = v +} + +func (m *PostgresqlHostConfig12) SetDefaultWithOids(v *wrappers.BoolValue) { + m.DefaultWithOids = v +} + +func (m *PostgresqlHostConfig12) SetEscapeStringWarning(v *wrappers.BoolValue) { + m.EscapeStringWarning = v +} + +func (m *PostgresqlHostConfig12) SetLoCompatPrivileges(v *wrappers.BoolValue) { + m.LoCompatPrivileges = v +} + +func (m *PostgresqlHostConfig12) SetOperatorPrecedenceWarning(v *wrappers.BoolValue) { + m.OperatorPrecedenceWarning = v +} + +func (m *PostgresqlHostConfig12) SetQuoteAllIdentifiers(v *wrappers.BoolValue) { + m.QuoteAllIdentifiers = v +} + +func (m *PostgresqlHostConfig12) SetStandardConformingStrings(v *wrappers.BoolValue) { + m.StandardConformingStrings = v +} + +func (m *PostgresqlHostConfig12) SetSynchronizeSeqscans(v *wrappers.BoolValue) { + m.SynchronizeSeqscans = v +} + +func (m *PostgresqlHostConfig12) SetTransformNullEquals(v *wrappers.BoolValue) { + m.TransformNullEquals = v +} + +func (m *PostgresqlHostConfig12) SetExitOnError(v *wrappers.BoolValue) { + m.ExitOnError = v +} + +func (m *PostgresqlHostConfig12) SetSeqPageCost(v *wrappers.DoubleValue) { + m.SeqPageCost = v +} + +func (m *PostgresqlHostConfig12) SetRandomPageCost(v *wrappers.DoubleValue) { + m.RandomPageCost = v +} + +func (m *PostgresqlHostConfig12) SetEnableBitmapscan(v *wrappers.BoolValue) { + m.EnableBitmapscan = v +} + +func (m *PostgresqlHostConfig12) SetEnableHashagg(v *wrappers.BoolValue) { + m.EnableHashagg = v +} + +func (m *PostgresqlHostConfig12) SetEnableHashjoin(v *wrappers.BoolValue) { + m.EnableHashjoin = v +} + +func (m *PostgresqlHostConfig12) SetEnableIndexscan(v *wrappers.BoolValue) { + m.EnableIndexscan = v +} + +func (m *PostgresqlHostConfig12) SetEnableIndexonlyscan(v *wrappers.BoolValue) { + m.EnableIndexonlyscan = v +} + +func (m *PostgresqlHostConfig12) SetEnableMaterial(v *wrappers.BoolValue) { + m.EnableMaterial = v +} + +func (m *PostgresqlHostConfig12) SetEnableMergejoin(v *wrappers.BoolValue) { + m.EnableMergejoin = v +} + +func (m *PostgresqlHostConfig12) SetEnableNestloop(v *wrappers.BoolValue) { + m.EnableNestloop = v +} + +func (m *PostgresqlHostConfig12) SetEnableSeqscan(v *wrappers.BoolValue) { + m.EnableSeqscan = v +} + +func (m *PostgresqlHostConfig12) SetEnableSort(v *wrappers.BoolValue) { + m.EnableSort = v +} + +func (m *PostgresqlHostConfig12) SetEnableTidscan(v *wrappers.BoolValue) { + m.EnableTidscan = v +} + +func (m *PostgresqlHostConfig12) SetMaxParallelWorkers(v *wrappers.Int64Value) { + m.MaxParallelWorkers = v +} + +func (m *PostgresqlHostConfig12) SetMaxParallelWorkersPerGather(v *wrappers.Int64Value) { + m.MaxParallelWorkersPerGather = v +} + +func (m *PostgresqlHostConfig12) SetTimezone(v string) { + m.Timezone = v +} + +func (m *PostgresqlHostConfig12) SetEffectiveIoConcurrency(v *wrappers.Int64Value) { + m.EffectiveIoConcurrency = v +} + +func (m *PostgresqlHostConfig12) SetEffectiveCacheSize(v *wrappers.Int64Value) { + m.EffectiveCacheSize = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host9_6.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host9_6.pb.go index 855ec3cb9..5cf052bc6 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host9_6.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host9_6.pb.go @@ -413,10 +413,12 @@ type PostgresqlHostConfig9_6 struct { SeqPageCost *wrappers.DoubleValue `protobuf:"bytes,51,opt,name=seq_page_cost,json=seqPageCost,proto3" json:"seq_page_cost,omitempty"` RandomPageCost *wrappers.DoubleValue `protobuf:"bytes,52,opt,name=random_page_cost,json=randomPageCost,proto3" json:"random_page_cost,omitempty"` // This option has been removed in PostgreSQL 10. - SqlInheritance *wrappers.BoolValue `protobuf:"bytes,53,opt,name=sql_inheritance,json=sqlInheritance,proto3" json:"sql_inheritance,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + SqlInheritance *wrappers.BoolValue `protobuf:"bytes,53,opt,name=sql_inheritance,json=sqlInheritance,proto3" json:"sql_inheritance,omitempty"` + EffectiveIoConcurrency *wrappers.Int64Value `protobuf:"bytes,54,opt,name=effective_io_concurrency,json=effectiveIoConcurrency,proto3" json:"effective_io_concurrency,omitempty"` + EffectiveCacheSize *wrappers.Int64Value `protobuf:"bytes,55,opt,name=effective_cache_size,json=effectiveCacheSize,proto3" json:"effective_cache_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PostgresqlHostConfig9_6) Reset() { *m = PostgresqlHostConfig9_6{} } @@ -815,6 +817,20 @@ func (m *PostgresqlHostConfig9_6) GetSqlInheritance() *wrappers.BoolValue { return nil } +func (m *PostgresqlHostConfig9_6) GetEffectiveIoConcurrency() *wrappers.Int64Value { + if m != nil { + return m.EffectiveIoConcurrency + } + return nil +} + +func (m *PostgresqlHostConfig9_6) GetEffectiveCacheSize() *wrappers.Int64Value { + if m != nil { + return m.EffectiveCacheSize + } + return nil +} + func init() { proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6_ConstraintExclusion", PostgresqlHostConfig9_6_ConstraintExclusion_name, PostgresqlHostConfig9_6_ConstraintExclusion_value) proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6_ForceParallelMode", PostgresqlHostConfig9_6_ForceParallelMode_name, PostgresqlHostConfig9_6_ForceParallelMode_value) @@ -834,145 +850,151 @@ func init() { } var fileDescriptor_5abd8a1f6e57027e = []byte{ - // 2235 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x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 0x6f, 0xdc, 0xb4, 0xa2, 0x53, 0xea, 0x8f, 0x02, 0x6a, 0x2c, 0xb6, 0x27, - 0xfe, 0x87, 0x35, 0x90, 0x4f, 0x2f, 0xb5, 0x33, 0x37, 0xea, 0x21, 0xe6, 0x3a, 0x5c, 0xfe, 0x32, - 0x33, 0xf5, 0xa5, 0x81, 0xe8, 0xad, 0x1b, 0xf5, 0x74, 0xd7, 0xe1, 0xb0, 0x09, 0x56, 0x08, 0xb7, - 0x71, 0x40, 0xc4, 0x1b, 0x42, 0x54, 0xd4, 0x19, 0x0e, 0x7d, 0xd7, 0xef, 0xca, 0xbf, 0xc9, 0x64, - 0x15, 0x12, 0xa1, 0x19, 0xeb, 0xde, 0x26, 0x32, 0xa8, 0x81, 0x65, 0xca, 0x90, 0xcd, 0xbc, 0x00, - 0x47, 0x28, 0x08, 0xdd, 0x53, 0x97, 0x12, 0xd1, 0xac, 0xfd, 0x36, 0x13, 0x07, 0x29, 0xab, 0xc4, - 0xb2, 0xd6, 0x50, 0x25, 0x9e, 0x39, 0x2c, 0x20, 0x21, 0x8e, 0x58, 0x28, 0x0a, 0xc0, 0x26, 0x0e, - 0xf1, 0x6d, 0x32, 0xcc, 0x71, 0x33, 0x13, 0x7a, 0x2f, 0x95, 0xb7, 0x86, 0xea, 0x34, 0xd3, 0x26, - 0x58, 0x89, 0xf7, 0x0b, 0x61, 0x4a, 0x91, 0xeb, 0x10, 0x3f, 0x72, 0x3b, 0xae, 0x78, 0x17, 0x97, - 0xb2, 0x67, 0x1e, 0x0b, 0x15, 0x4a, 0xeb, 0x23, 0x99, 0xc8, 0x35, 0x7e, 0x8e, 0xe1, 0xd0, 0x11, - 0x5d, 0x51, 0x87, 0x85, 0xf1, 0x83, 0x2c, 0x59, 0x56, 0x2e, 0x6f, 0x65, 0xe7, 0x9a, 0xca, 0x2b, - 0x43, 0x75, 0xb2, 0xb6, 0x1c, 0x36, 0xc0, 0x32, 0xbf, 0xf0, 0xed, 0x5e, 0xc8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f, 0xb8, 0x99, 0xfc, 0x96, 0xd0, 0x65, 0x9b, 0x5d, 0xe2, 0xc7, 0x1f, - 0x91, 0xad, 0x6b, 0xfd, 0xc0, 0xf1, 0xed, 0xc8, 0xd8, 0xbe, 0x1d, 0xeb, 0x5e, 0xfd, 0x37, 0x00, - 0x00, 0xff, 0xff, 0xc7, 0x30, 0xd1, 0x37, 0x1b, 0x19, 0x00, 0x00, + // 2330 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x99, 0x5b, 0x73, 0xdb, 0xc6, + 0x15, 0xc7, 0x4b, 0xc9, 0x71, 0xec, 0x95, 0x2c, 0x81, 0x4b, 0x5d, 0x60, 0x29, 0xbe, 0x44, 0x89, + 0x53, 0x27, 0xad, 0x28, 0xd1, 0x96, 0x65, 0x65, 0x32, 0xcd, 0x04, 0x24, 0x41, 0x9b, 0x0d, 0x48, + 0x30, 0x00, 0x64, 0x2b, 0xe9, 0x64, 0x76, 0x96, 0xc0, 0x92, 0x44, 0xbd, 0xc4, 0x42, 0xbb, 0xa0, + 0x2e, 0x79, 0xe8, 0xb4, 0x0f, 0x7d, 0xe9, 0x63, 0x5f, 0x3a, 0xed, 0x17, 0xf2, 0x07, 0xe9, 0x4c, + 0x3f, 0x84, 0x9f, 0x3a, 0x0b, 0x10, 0xbc, 0x48, 0x74, 0xa1, 0xa9, 0xfc, 0x66, 0x9d, 0x3d, 0xff, + 0xdf, 0x39, 0xbb, 0x7b, 0x76, 0x71, 0xd6, 0x04, 0x4f, 0xcf, 0x71, 0xe0, 0x91, 0xb3, 0x1d, 0x97, + 0xb2, 0x81, 0xb7, 0xd3, 0xf7, 0xda, 0x3b, 0x21, 0x13, 0x51, 0x97, 0x13, 0x71, 0x4c, 0x77, 0x4e, + 0x4a, 0x3b, 0x2e, 0x0b, 0x3a, 0x7e, 0x77, 0xa7, 0xc7, 0x44, 0xf4, 0x35, 0xda, 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 0x71, + 0x06, 0x2f, 0xae, 0x99, 0x81, 0xc1, 0xba, 0x06, 0x39, 0x21, 0xd4, 0xca, 0x27, 0x31, 0x1a, 0x7e, + 0xd0, 0x18, 0x46, 0x80, 0xc7, 0x40, 0xa1, 0xac, 0x3b, 0x1d, 0x55, 0xf9, 0xb0, 0x51, 0x97, 0x28, + 0xeb, 0x4e, 0x86, 0xfc, 0x13, 0x58, 0x4f, 0x43, 0x12, 0xce, 0x19, 0x97, 0x87, 0x2d, 0x8a, 0xaf, + 0x21, 0x35, 0xff, 0x61, 0x23, 0xaf, 0x24, 0x91, 0x75, 0x19, 0xc5, 0x4e, 0x83, 0xc0, 0x23, 0xb0, + 0x91, 0xc6, 0xf7, 0x06, 0x3c, 0xfe, 0xfc, 0x4c, 0xa4, 0x00, 0xb3, 0x4f, 0xf8, 0x7a, 0x82, 0xad, + 0x0e, 0xc5, 0x63, 0x72, 0x05, 0x2c, 0x4b, 0xb2, 0xdb, 0x23, 0xee, 0x9b, 0x90, 0xf9, 0x41, 0x24, + 0xd4, 0x42, 0x8c, 0xdb, 0xb8, 0x84, 0x2b, 0x33, 0x46, 0x13, 0x9a, 0x5c, 0x9e, 0xca, 0x58, 0x31, + 0x82, 0xb0, 0x20, 0x20, 0xf1, 0xe9, 0x12, 0xea, 0xca, 0xd5, 0x20, 0x63, 0x05, 0xac, 0x03, 0x28, + 0x21, 0x9e, 0x2f, 0x26, 0x39, 0xab, 0x99, 0x9c, 0x3c, 0x65, 0xdd, 0xea, 0x94, 0x08, 0xfe, 0x0e, + 0x2c, 0xc6, 0xa8, 0xe1, 0x6c, 0xd5, 0xb5, 0x4c, 0xc8, 0x82, 0x84, 0x0c, 0xdd, 0xe3, 0xc3, 0x25, + 0xf5, 0xc9, 0x56, 0x9f, 0x10, 0xde, 0x66, 0xc2, 0x8f, 0xce, 0xd5, 0xf5, 0x0f, 0x72, 0xb8, 0x0c, + 0xd6, 0x8d, 0x77, 0xf7, 0x55, 0xca, 0x8d, 0x67, 0x30, 0x6d, 0x82, 0xdf, 0x01, 0xb9, 0x3c, 0x88, + 0x32, 0xf7, 0x0d, 0x3a, 0xc5, 0x7e, 0x24, 0x54, 0x35, 0x73, 0x0e, 0x72, 0xce, 0x06, 0x73, 0xdf, + 0xbc, 0x96, 0xfe, 0x30, 0x04, 0x77, 0x24, 0x61, 0x5c, 0x25, 0x77, 0xe3, 0xec, 0xbf, 0xbf, 0x7e, + 0xf6, 0xa3, 0xe2, 0x89, 0x23, 0x8e, 0x4b, 0x49, 0x4b, 0x72, 0x1e, 0x7d, 0x8a, 0x85, 0xba, 0x91, + 0x5d, 0x98, 0x12, 0xe1, 0x0c, 0x3f, 0xc4, 0x02, 0x3e, 0x00, 0x0b, 0x82, 0x60, 0xee, 0xf6, 0x50, + 0x88, 0xa3, 0x9e, 0xba, 0xf9, 0x30, 0xf7, 0xf8, 0xb6, 0x05, 0x12, 0x53, 0x0b, 0x47, 0x3d, 0xb9, + 0xb3, 0x9c, 0x9d, 0x22, 0x41, 0xdc, 0x01, 0x97, 0x5b, 0xf2, 0x49, 0xf6, 0xce, 0x72, 0x76, 0x6a, + 0x0f, 0xdd, 0xe1, 0x3f, 0x72, 0xe0, 0x9e, 0x47, 0x3a, 0x78, 0x40, 0x23, 0x14, 0x71, 0x1c, 0x88, + 0xe4, 0x63, 0x80, 0x7c, 0xc1, 0x68, 0x52, 0x2a, 0xf7, 0xe2, 0x55, 0xb2, 0xaf, 0xb9, 0x4a, 0xce, + 0x98, 0x5d, 0x4f, 0xd1, 0xd6, 0xe6, 0x30, 0xf2, 0xac, 0x41, 0xf8, 0x12, 0xe4, 0x47, 0x5b, 0x85, + 0x22, 0xbf, 0x4f, 0xd8, 0x20, 0x52, 0xef, 0x67, 0xaf, 0x9f, 0x32, 0x52, 0x39, 0x89, 0x48, 0xb6, + 0x76, 0x71, 0xd9, 0xa4, 0x90, 0x07, 0x57, 0x68, 0xed, 0xa4, 0x20, 0xd5, 0xfb, 0xe0, 0x33, 0xdf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xc7, 0x97, 0xef, 0xe2, + 0x62, 0xf6, 0xcc, 0x63, 0xa1, 0x46, 0x69, 0x7d, 0x2c, 0x93, 0xb9, 0xc6, 0xcf, 0x31, 0xcc, 0x3d, + 0xd9, 0x15, 0x75, 0x18, 0x8f, 0x1f, 0x64, 0xc9, 0xb2, 0x0a, 0x75, 0x27, 0x3b, 0xd7, 0x54, 0x5e, + 0x19, 0xa9, 0x93, 0xb5, 0x15, 0xb0, 0x01, 0x56, 0xc4, 0x79, 0xe0, 0xf6, 0x38, 0x0b, 0xfc, 0x5f, + 0x08, 0x12, 0xe4, 0x58, 0xb8, 0x38, 0x10, 0xea, 0x6e, 0x76, 0xaa, 0x13, 0x3a, 0x7b, 0x28, 0x93, + 0x53, 0x8f, 0xcf, 0x8f, 0x8c, 0x12, 0x57, 0x3d, 0x22, 0xc7, 0x03, 0x4c, 0x85, 0x5a, 0xca, 0xe6, + 0x8d, 0x84, 0xb2, 0xfe, 0xf5, 0x58, 0x06, 0xbf, 0x05, 0x77, 0xc8, 0x99, 0x1f, 0x21, 0x36, 0x6c, + 0x95, 0xd5, 0x27, 0xd9, 0x9f, 0x68, 0x29, 0x30, 0x93, 0x9e, 0x17, 0x7e, 0x07, 0xee, 0x08, 0x72, + 0x8c, 0x42, 0xdc, 0x25, 0xc8, 0x65, 0x22, 0x52, 0x9f, 0x5e, 0xe1, 0x85, 0xb7, 0x20, 0xc8, 0x71, + 0x0b, 0x77, 0x49, 0x85, 0x89, 0xf8, 0x12, 0xe3, 0x38, 0xf0, 0x58, 0x7f, 0x02, 0xb2, 0x77, 0x05, + 0xc8, 0x52, 0xa2, 0x1a, 0x71, 0x2a, 0x60, 0x59, 0x1c, 0x53, 0xe4, 0x07, 0x3d, 0xc2, 0xfd, 0x08, + 0x07, 0x2e, 0x51, 0x9f, 0x65, 0x77, 0xb5, 0xe2, 0x98, 0xd6, 0xc7, 0x0a, 0x88, 0x81, 0x4a, 0x3a, + 0x1d, 0xd9, 0x98, 0x9e, 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0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host9_6.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host9_6.pbext.go new file mode 100644 index 000000000..9fc50a9f3 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/host9_6.pbext.go @@ -0,0 +1,227 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *PostgresqlHostConfig9_6) SetRecoveryMinApplyDelay(v *wrappers.Int64Value) { + m.RecoveryMinApplyDelay = v +} + +func (m *PostgresqlHostConfig9_6) SetSharedBuffers(v *wrappers.Int64Value) { + m.SharedBuffers = v +} + +func (m *PostgresqlHostConfig9_6) SetTempBuffers(v *wrappers.Int64Value) { + m.TempBuffers = v +} + +func (m *PostgresqlHostConfig9_6) SetWorkMem(v *wrappers.Int64Value) { + m.WorkMem = v +} + +func (m *PostgresqlHostConfig9_6) SetReplacementSortTuples(v *wrappers.Int64Value) { + m.ReplacementSortTuples = v +} + +func (m *PostgresqlHostConfig9_6) SetTempFileLimit(v *wrappers.Int64Value) { + m.TempFileLimit = v +} + +func (m *PostgresqlHostConfig9_6) SetBackendFlushAfter(v *wrappers.Int64Value) { + m.BackendFlushAfter = v +} + +func (m *PostgresqlHostConfig9_6) SetOldSnapshotThreshold(v *wrappers.Int64Value) { + m.OldSnapshotThreshold = v +} + +func (m *PostgresqlHostConfig9_6) SetMaxStandbyStreamingDelay(v *wrappers.Int64Value) { + m.MaxStandbyStreamingDelay = v +} + +func (m *PostgresqlHostConfig9_6) SetConstraintExclusion(v PostgresqlHostConfig9_6_ConstraintExclusion) { + m.ConstraintExclusion = v +} + +func (m *PostgresqlHostConfig9_6) SetCursorTupleFraction(v *wrappers.DoubleValue) { + m.CursorTupleFraction = v +} + +func (m *PostgresqlHostConfig9_6) SetFromCollapseLimit(v *wrappers.Int64Value) { + m.FromCollapseLimit = v +} + +func (m *PostgresqlHostConfig9_6) SetJoinCollapseLimit(v *wrappers.Int64Value) { + m.JoinCollapseLimit = v +} + +func (m *PostgresqlHostConfig9_6) SetForceParallelMode(v PostgresqlHostConfig9_6_ForceParallelMode) { + m.ForceParallelMode = v +} + +func (m *PostgresqlHostConfig9_6) SetClientMinMessages(v PostgresqlHostConfig9_6_LogLevel) { + m.ClientMinMessages = v +} + +func (m *PostgresqlHostConfig9_6) SetLogMinMessages(v PostgresqlHostConfig9_6_LogLevel) { + m.LogMinMessages = v +} + +func (m *PostgresqlHostConfig9_6) SetLogMinErrorStatement(v PostgresqlHostConfig9_6_LogLevel) { + m.LogMinErrorStatement = v +} + +func (m *PostgresqlHostConfig9_6) SetLogMinDurationStatement(v *wrappers.Int64Value) { + m.LogMinDurationStatement = v +} + +func (m *PostgresqlHostConfig9_6) SetLogCheckpoints(v *wrappers.BoolValue) { + m.LogCheckpoints = v +} + +func (m *PostgresqlHostConfig9_6) SetLogConnections(v *wrappers.BoolValue) { + m.LogConnections = v +} + +func (m *PostgresqlHostConfig9_6) SetLogDisconnections(v *wrappers.BoolValue) { + m.LogDisconnections = v +} + +func (m *PostgresqlHostConfig9_6) SetLogDuration(v *wrappers.BoolValue) { + m.LogDuration = v +} + +func (m *PostgresqlHostConfig9_6) SetLogErrorVerbosity(v PostgresqlHostConfig9_6_LogErrorVerbosity) { + m.LogErrorVerbosity = v +} + +func (m *PostgresqlHostConfig9_6) SetLogLockWaits(v *wrappers.BoolValue) { + m.LogLockWaits = v +} + +func (m *PostgresqlHostConfig9_6) SetLogStatement(v PostgresqlHostConfig9_6_LogStatement) { + m.LogStatement = v +} + +func (m *PostgresqlHostConfig9_6) SetLogTempFiles(v *wrappers.Int64Value) { + m.LogTempFiles = v +} + +func (m *PostgresqlHostConfig9_6) SetSearchPath(v string) { + m.SearchPath = v +} + +func (m *PostgresqlHostConfig9_6) SetRowSecurity(v *wrappers.BoolValue) { + m.RowSecurity = v +} + +func (m *PostgresqlHostConfig9_6) SetDefaultTransactionIsolation(v PostgresqlHostConfig9_6_TransactionIsolation) { + m.DefaultTransactionIsolation = v +} + +func (m *PostgresqlHostConfig9_6) SetStatementTimeout(v *wrappers.Int64Value) { + m.StatementTimeout = v +} + +func (m *PostgresqlHostConfig9_6) SetLockTimeout(v *wrappers.Int64Value) { + m.LockTimeout = v +} + +func (m *PostgresqlHostConfig9_6) SetIdleInTransactionSessionTimeout(v *wrappers.Int64Value) { + m.IdleInTransactionSessionTimeout = v +} + +func (m *PostgresqlHostConfig9_6) SetByteaOutput(v PostgresqlHostConfig9_6_ByteaOutput) { + m.ByteaOutput = v +} + +func (m *PostgresqlHostConfig9_6) SetXmlbinary(v PostgresqlHostConfig9_6_XmlBinary) { + m.Xmlbinary = v +} + +func (m *PostgresqlHostConfig9_6) SetXmloption(v PostgresqlHostConfig9_6_XmlOption) { + m.Xmloption = v +} + +func (m *PostgresqlHostConfig9_6) SetGinPendingListLimit(v *wrappers.Int64Value) { + m.GinPendingListLimit = v +} + +func (m *PostgresqlHostConfig9_6) SetDeadlockTimeout(v *wrappers.Int64Value) { + m.DeadlockTimeout = v +} + +func (m *PostgresqlHostConfig9_6) SetMaxLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxLocksPerTransaction = v +} + +func (m *PostgresqlHostConfig9_6) SetMaxPredLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxPredLocksPerTransaction = v +} + +func (m *PostgresqlHostConfig9_6) SetArrayNulls(v *wrappers.BoolValue) { + m.ArrayNulls = v +} + +func (m *PostgresqlHostConfig9_6) SetBackslashQuote(v PostgresqlHostConfig9_6_BackslashQuote) { + m.BackslashQuote = v +} + +func (m *PostgresqlHostConfig9_6) SetDefaultWithOids(v *wrappers.BoolValue) { + m.DefaultWithOids = v +} + +func (m *PostgresqlHostConfig9_6) SetEscapeStringWarning(v *wrappers.BoolValue) { + m.EscapeStringWarning = v +} + +func (m *PostgresqlHostConfig9_6) SetLoCompatPrivileges(v *wrappers.BoolValue) { + m.LoCompatPrivileges = v +} + +func (m *PostgresqlHostConfig9_6) SetOperatorPrecedenceWarning(v *wrappers.BoolValue) { + m.OperatorPrecedenceWarning = v +} + +func (m *PostgresqlHostConfig9_6) SetQuoteAllIdentifiers(v *wrappers.BoolValue) { + m.QuoteAllIdentifiers = v +} + +func (m *PostgresqlHostConfig9_6) SetStandardConformingStrings(v *wrappers.BoolValue) { + m.StandardConformingStrings = v +} + +func (m *PostgresqlHostConfig9_6) SetSynchronizeSeqscans(v *wrappers.BoolValue) { + m.SynchronizeSeqscans = v +} + +func (m *PostgresqlHostConfig9_6) SetTransformNullEquals(v *wrappers.BoolValue) { + m.TransformNullEquals = v +} + +func (m *PostgresqlHostConfig9_6) SetExitOnError(v *wrappers.BoolValue) { + m.ExitOnError = v +} + +func (m *PostgresqlHostConfig9_6) SetSeqPageCost(v *wrappers.DoubleValue) { + m.SeqPageCost = v +} + +func (m *PostgresqlHostConfig9_6) SetRandomPageCost(v *wrappers.DoubleValue) { + m.RandomPageCost = v +} + +func (m *PostgresqlHostConfig9_6) SetSqlInheritance(v *wrappers.BoolValue) { + m.SqlInheritance = v +} + +func (m *PostgresqlHostConfig9_6) SetEffectiveIoConcurrency(v *wrappers.Int64Value) { + m.EffectiveIoConcurrency = v +} + +func (m *PostgresqlHostConfig9_6) SetEffectiveCacheSize(v *wrappers.Int64Value) { + m.EffectiveCacheSize = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql10.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql10.pb.go index c3440d5eb..b19a47bd8 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql10.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql10.pb.go @@ -421,109 +421,186 @@ func (PostgresqlConfig10_BackslashQuote) EnumDescriptor() ([]byte, []int) { return fileDescriptor_63a40d3271be9d79, []int{0, 11} } +type PostgresqlConfig10_PgHintPlanDebugPrint int32 + +const ( + PostgresqlConfig10_PG_HINT_PLAN_DEBUG_PRINT_UNSPECIFIED PostgresqlConfig10_PgHintPlanDebugPrint = 0 + PostgresqlConfig10_PG_HINT_PLAN_DEBUG_PRINT_OFF PostgresqlConfig10_PgHintPlanDebugPrint = 1 + PostgresqlConfig10_PG_HINT_PLAN_DEBUG_PRINT_ON PostgresqlConfig10_PgHintPlanDebugPrint = 2 + PostgresqlConfig10_PG_HINT_PLAN_DEBUG_PRINT_DETAILED PostgresqlConfig10_PgHintPlanDebugPrint = 3 + PostgresqlConfig10_PG_HINT_PLAN_DEBUG_PRINT_VERBOSE PostgresqlConfig10_PgHintPlanDebugPrint = 4 +) + +var PostgresqlConfig10_PgHintPlanDebugPrint_name = map[int32]string{ + 0: "PG_HINT_PLAN_DEBUG_PRINT_UNSPECIFIED", + 1: "PG_HINT_PLAN_DEBUG_PRINT_OFF", + 2: "PG_HINT_PLAN_DEBUG_PRINT_ON", + 3: "PG_HINT_PLAN_DEBUG_PRINT_DETAILED", + 4: "PG_HINT_PLAN_DEBUG_PRINT_VERBOSE", +} + +var PostgresqlConfig10_PgHintPlanDebugPrint_value = map[string]int32{ + "PG_HINT_PLAN_DEBUG_PRINT_UNSPECIFIED": 0, + "PG_HINT_PLAN_DEBUG_PRINT_OFF": 1, + "PG_HINT_PLAN_DEBUG_PRINT_ON": 2, + "PG_HINT_PLAN_DEBUG_PRINT_DETAILED": 3, + "PG_HINT_PLAN_DEBUG_PRINT_VERBOSE": 4, +} + +func (x PostgresqlConfig10_PgHintPlanDebugPrint) String() string { + return proto.EnumName(PostgresqlConfig10_PgHintPlanDebugPrint_name, int32(x)) +} + +func (PostgresqlConfig10_PgHintPlanDebugPrint) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_63a40d3271be9d79, []int{0, 12} +} + +type PostgresqlConfig10_SharedPreloadLibraries int32 + +const ( + PostgresqlConfig10_SHARED_PRELOAD_LIBRARIES_UNSPECIFIED PostgresqlConfig10_SharedPreloadLibraries = 0 + PostgresqlConfig10_SHARED_PRELOAD_LIBRARIES_AUTO_EXPLAIN PostgresqlConfig10_SharedPreloadLibraries = 1 + PostgresqlConfig10_SHARED_PRELOAD_LIBRARIES_PG_HINT_PLAN PostgresqlConfig10_SharedPreloadLibraries = 2 +) + +var PostgresqlConfig10_SharedPreloadLibraries_name = map[int32]string{ + 0: "SHARED_PRELOAD_LIBRARIES_UNSPECIFIED", + 1: "SHARED_PRELOAD_LIBRARIES_AUTO_EXPLAIN", + 2: "SHARED_PRELOAD_LIBRARIES_PG_HINT_PLAN", +} + +var PostgresqlConfig10_SharedPreloadLibraries_value = map[string]int32{ + "SHARED_PRELOAD_LIBRARIES_UNSPECIFIED": 0, + "SHARED_PRELOAD_LIBRARIES_AUTO_EXPLAIN": 1, + "SHARED_PRELOAD_LIBRARIES_PG_HINT_PLAN": 2, +} + +func (x PostgresqlConfig10_SharedPreloadLibraries) String() string { + return proto.EnumName(PostgresqlConfig10_SharedPreloadLibraries_name, int32(x)) +} + +func (PostgresqlConfig10_SharedPreloadLibraries) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_63a40d3271be9d79, []int{0, 13} +} + // Options and structure of `PostgresqlConfig` reflects PostgreSQL configuration file // parameters whose detailed description is available in // [PostgreSQL documentation](https://www.postgresql.org/docs/10/runtime-config.html). type PostgresqlConfig10 struct { - MaxConnections *wrappers.Int64Value `protobuf:"bytes,1,opt,name=max_connections,json=maxConnections,proto3" json:"max_connections,omitempty"` - SharedBuffers *wrappers.Int64Value `protobuf:"bytes,2,opt,name=shared_buffers,json=sharedBuffers,proto3" json:"shared_buffers,omitempty"` - TempBuffers *wrappers.Int64Value `protobuf:"bytes,3,opt,name=temp_buffers,json=tempBuffers,proto3" json:"temp_buffers,omitempty"` - MaxPreparedTransactions *wrappers.Int64Value `protobuf:"bytes,4,opt,name=max_prepared_transactions,json=maxPreparedTransactions,proto3" json:"max_prepared_transactions,omitempty"` - WorkMem *wrappers.Int64Value `protobuf:"bytes,5,opt,name=work_mem,json=workMem,proto3" json:"work_mem,omitempty"` - MaintenanceWorkMem *wrappers.Int64Value `protobuf:"bytes,6,opt,name=maintenance_work_mem,json=maintenanceWorkMem,proto3" json:"maintenance_work_mem,omitempty"` - ReplacementSortTuples *wrappers.Int64Value `protobuf:"bytes,7,opt,name=replacement_sort_tuples,json=replacementSortTuples,proto3" json:"replacement_sort_tuples,omitempty"` - AutovacuumWorkMem *wrappers.Int64Value `protobuf:"bytes,8,opt,name=autovacuum_work_mem,json=autovacuumWorkMem,proto3" json:"autovacuum_work_mem,omitempty"` - TempFileLimit *wrappers.Int64Value `protobuf:"bytes,9,opt,name=temp_file_limit,json=tempFileLimit,proto3" json:"temp_file_limit,omitempty"` - VacuumCostDelay *wrappers.Int64Value `protobuf:"bytes,10,opt,name=vacuum_cost_delay,json=vacuumCostDelay,proto3" json:"vacuum_cost_delay,omitempty"` - VacuumCostPageHit *wrappers.Int64Value `protobuf:"bytes,11,opt,name=vacuum_cost_page_hit,json=vacuumCostPageHit,proto3" json:"vacuum_cost_page_hit,omitempty"` - VacuumCostPageMiss *wrappers.Int64Value `protobuf:"bytes,12,opt,name=vacuum_cost_page_miss,json=vacuumCostPageMiss,proto3" json:"vacuum_cost_page_miss,omitempty"` - VacuumCostPageDirty *wrappers.Int64Value `protobuf:"bytes,13,opt,name=vacuum_cost_page_dirty,json=vacuumCostPageDirty,proto3" json:"vacuum_cost_page_dirty,omitempty"` - VacuumCostLimit *wrappers.Int64Value `protobuf:"bytes,14,opt,name=vacuum_cost_limit,json=vacuumCostLimit,proto3" json:"vacuum_cost_limit,omitempty"` - BgwriterDelay *wrappers.Int64Value `protobuf:"bytes,15,opt,name=bgwriter_delay,json=bgwriterDelay,proto3" json:"bgwriter_delay,omitempty"` - BgwriterLruMaxpages *wrappers.Int64Value `protobuf:"bytes,16,opt,name=bgwriter_lru_maxpages,json=bgwriterLruMaxpages,proto3" json:"bgwriter_lru_maxpages,omitempty"` - BgwriterLruMultiplier *wrappers.DoubleValue `protobuf:"bytes,17,opt,name=bgwriter_lru_multiplier,json=bgwriterLruMultiplier,proto3" json:"bgwriter_lru_multiplier,omitempty"` - BgwriterFlushAfter *wrappers.Int64Value `protobuf:"bytes,18,opt,name=bgwriter_flush_after,json=bgwriterFlushAfter,proto3" json:"bgwriter_flush_after,omitempty"` - BackendFlushAfter *wrappers.Int64Value `protobuf:"bytes,19,opt,name=backend_flush_after,json=backendFlushAfter,proto3" json:"backend_flush_after,omitempty"` - OldSnapshotThreshold *wrappers.Int64Value `protobuf:"bytes,20,opt,name=old_snapshot_threshold,json=oldSnapshotThreshold,proto3" json:"old_snapshot_threshold,omitempty"` - WalLevel PostgresqlConfig10_WalLevel `protobuf:"varint,21,opt,name=wal_level,json=walLevel,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_WalLevel" json:"wal_level,omitempty"` - SynchronousCommit PostgresqlConfig10_SynchronousCommit `protobuf:"varint,22,opt,name=synchronous_commit,json=synchronousCommit,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_SynchronousCommit" json:"synchronous_commit,omitempty"` - CheckpointTimeout *wrappers.Int64Value `protobuf:"bytes,23,opt,name=checkpoint_timeout,json=checkpointTimeout,proto3" json:"checkpoint_timeout,omitempty"` - CheckpointCompletionTarget *wrappers.DoubleValue `protobuf:"bytes,24,opt,name=checkpoint_completion_target,json=checkpointCompletionTarget,proto3" json:"checkpoint_completion_target,omitempty"` - CheckpointFlushAfter *wrappers.Int64Value `protobuf:"bytes,25,opt,name=checkpoint_flush_after,json=checkpointFlushAfter,proto3" json:"checkpoint_flush_after,omitempty"` - MaxWalSize *wrappers.Int64Value `protobuf:"bytes,26,opt,name=max_wal_size,json=maxWalSize,proto3" json:"max_wal_size,omitempty"` - MinWalSize *wrappers.Int64Value `protobuf:"bytes,27,opt,name=min_wal_size,json=minWalSize,proto3" json:"min_wal_size,omitempty"` - MaxStandbyStreamingDelay *wrappers.Int64Value `protobuf:"bytes,28,opt,name=max_standby_streaming_delay,json=maxStandbyStreamingDelay,proto3" json:"max_standby_streaming_delay,omitempty"` - DefaultStatisticsTarget *wrappers.Int64Value `protobuf:"bytes,29,opt,name=default_statistics_target,json=defaultStatisticsTarget,proto3" json:"default_statistics_target,omitempty"` - ConstraintExclusion PostgresqlConfig10_ConstraintExclusion `protobuf:"varint,30,opt,name=constraint_exclusion,json=constraintExclusion,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_ConstraintExclusion" json:"constraint_exclusion,omitempty"` - CursorTupleFraction *wrappers.DoubleValue `protobuf:"bytes,31,opt,name=cursor_tuple_fraction,json=cursorTupleFraction,proto3" json:"cursor_tuple_fraction,omitempty"` - FromCollapseLimit *wrappers.Int64Value `protobuf:"bytes,32,opt,name=from_collapse_limit,json=fromCollapseLimit,proto3" json:"from_collapse_limit,omitempty"` - JoinCollapseLimit *wrappers.Int64Value `protobuf:"bytes,33,opt,name=join_collapse_limit,json=joinCollapseLimit,proto3" json:"join_collapse_limit,omitempty"` - ForceParallelMode PostgresqlConfig10_ForceParallelMode `protobuf:"varint,34,opt,name=force_parallel_mode,json=forceParallelMode,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_ForceParallelMode" json:"force_parallel_mode,omitempty"` - ClientMinMessages PostgresqlConfig10_LogLevel `protobuf:"varint,35,opt,name=client_min_messages,json=clientMinMessages,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_LogLevel" json:"client_min_messages,omitempty"` - LogMinMessages PostgresqlConfig10_LogLevel `protobuf:"varint,36,opt,name=log_min_messages,json=logMinMessages,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_LogLevel" json:"log_min_messages,omitempty"` - LogMinErrorStatement PostgresqlConfig10_LogLevel `protobuf:"varint,37,opt,name=log_min_error_statement,json=logMinErrorStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_LogLevel" json:"log_min_error_statement,omitempty"` - LogMinDurationStatement *wrappers.Int64Value `protobuf:"bytes,38,opt,name=log_min_duration_statement,json=logMinDurationStatement,proto3" json:"log_min_duration_statement,omitempty"` - LogCheckpoints *wrappers.BoolValue `protobuf:"bytes,39,opt,name=log_checkpoints,json=logCheckpoints,proto3" json:"log_checkpoints,omitempty"` - LogConnections *wrappers.BoolValue `protobuf:"bytes,40,opt,name=log_connections,json=logConnections,proto3" json:"log_connections,omitempty"` - LogDisconnections *wrappers.BoolValue `protobuf:"bytes,41,opt,name=log_disconnections,json=logDisconnections,proto3" json:"log_disconnections,omitempty"` - LogDuration *wrappers.BoolValue `protobuf:"bytes,42,opt,name=log_duration,json=logDuration,proto3" json:"log_duration,omitempty"` - LogErrorVerbosity PostgresqlConfig10_LogErrorVerbosity `protobuf:"varint,43,opt,name=log_error_verbosity,json=logErrorVerbosity,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_LogErrorVerbosity" json:"log_error_verbosity,omitempty"` - LogLockWaits *wrappers.BoolValue `protobuf:"bytes,44,opt,name=log_lock_waits,json=logLockWaits,proto3" json:"log_lock_waits,omitempty"` - LogStatement PostgresqlConfig10_LogStatement `protobuf:"varint,45,opt,name=log_statement,json=logStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_LogStatement" json:"log_statement,omitempty"` - LogTempFiles *wrappers.Int64Value `protobuf:"bytes,46,opt,name=log_temp_files,json=logTempFiles,proto3" json:"log_temp_files,omitempty"` - SearchPath string `protobuf:"bytes,47,opt,name=search_path,json=searchPath,proto3" json:"search_path,omitempty"` - RowSecurity *wrappers.BoolValue `protobuf:"bytes,48,opt,name=row_security,json=rowSecurity,proto3" json:"row_security,omitempty"` - DefaultTransactionIsolation PostgresqlConfig10_TransactionIsolation `protobuf:"varint,49,opt,name=default_transaction_isolation,json=defaultTransactionIsolation,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_TransactionIsolation" json:"default_transaction_isolation,omitempty"` - StatementTimeout *wrappers.Int64Value `protobuf:"bytes,50,opt,name=statement_timeout,json=statementTimeout,proto3" json:"statement_timeout,omitempty"` - LockTimeout *wrappers.Int64Value `protobuf:"bytes,51,opt,name=lock_timeout,json=lockTimeout,proto3" json:"lock_timeout,omitempty"` - IdleInTransactionSessionTimeout *wrappers.Int64Value `protobuf:"bytes,52,opt,name=idle_in_transaction_session_timeout,json=idleInTransactionSessionTimeout,proto3" json:"idle_in_transaction_session_timeout,omitempty"` - ByteaOutput PostgresqlConfig10_ByteaOutput `protobuf:"varint,53,opt,name=bytea_output,json=byteaOutput,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_ByteaOutput" json:"bytea_output,omitempty"` - Xmlbinary PostgresqlConfig10_XmlBinary `protobuf:"varint,54,opt,name=xmlbinary,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_XmlBinary" json:"xmlbinary,omitempty"` - Xmloption PostgresqlConfig10_XmlOption `protobuf:"varint,55,opt,name=xmloption,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_XmlOption" json:"xmloption,omitempty"` - GinPendingListLimit *wrappers.Int64Value `protobuf:"bytes,56,opt,name=gin_pending_list_limit,json=ginPendingListLimit,proto3" json:"gin_pending_list_limit,omitempty"` - DeadlockTimeout *wrappers.Int64Value `protobuf:"bytes,57,opt,name=deadlock_timeout,json=deadlockTimeout,proto3" json:"deadlock_timeout,omitempty"` - MaxLocksPerTransaction *wrappers.Int64Value `protobuf:"bytes,58,opt,name=max_locks_per_transaction,json=maxLocksPerTransaction,proto3" json:"max_locks_per_transaction,omitempty"` - MaxPredLocksPerTransaction *wrappers.Int64Value `protobuf:"bytes,59,opt,name=max_pred_locks_per_transaction,json=maxPredLocksPerTransaction,proto3" json:"max_pred_locks_per_transaction,omitempty"` - ArrayNulls *wrappers.BoolValue `protobuf:"bytes,60,opt,name=array_nulls,json=arrayNulls,proto3" json:"array_nulls,omitempty"` - BackslashQuote PostgresqlConfig10_BackslashQuote `protobuf:"varint,61,opt,name=backslash_quote,json=backslashQuote,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_BackslashQuote" json:"backslash_quote,omitempty"` - DefaultWithOids *wrappers.BoolValue `protobuf:"bytes,62,opt,name=default_with_oids,json=defaultWithOids,proto3" json:"default_with_oids,omitempty"` - EscapeStringWarning *wrappers.BoolValue `protobuf:"bytes,63,opt,name=escape_string_warning,json=escapeStringWarning,proto3" json:"escape_string_warning,omitempty"` - LoCompatPrivileges *wrappers.BoolValue `protobuf:"bytes,64,opt,name=lo_compat_privileges,json=loCompatPrivileges,proto3" json:"lo_compat_privileges,omitempty"` - OperatorPrecedenceWarning *wrappers.BoolValue `protobuf:"bytes,65,opt,name=operator_precedence_warning,json=operatorPrecedenceWarning,proto3" json:"operator_precedence_warning,omitempty"` - QuoteAllIdentifiers *wrappers.BoolValue `protobuf:"bytes,66,opt,name=quote_all_identifiers,json=quoteAllIdentifiers,proto3" json:"quote_all_identifiers,omitempty"` - StandardConformingStrings *wrappers.BoolValue `protobuf:"bytes,67,opt,name=standard_conforming_strings,json=standardConformingStrings,proto3" json:"standard_conforming_strings,omitempty"` - SynchronizeSeqscans *wrappers.BoolValue `protobuf:"bytes,68,opt,name=synchronize_seqscans,json=synchronizeSeqscans,proto3" json:"synchronize_seqscans,omitempty"` - TransformNullEquals *wrappers.BoolValue `protobuf:"bytes,69,opt,name=transform_null_equals,json=transformNullEquals,proto3" json:"transform_null_equals,omitempty"` - ExitOnError *wrappers.BoolValue `protobuf:"bytes,70,opt,name=exit_on_error,json=exitOnError,proto3" json:"exit_on_error,omitempty"` - SeqPageCost *wrappers.DoubleValue `protobuf:"bytes,71,opt,name=seq_page_cost,json=seqPageCost,proto3" json:"seq_page_cost,omitempty"` - RandomPageCost *wrappers.DoubleValue `protobuf:"bytes,72,opt,name=random_page_cost,json=randomPageCost,proto3" json:"random_page_cost,omitempty"` - AutovacuumMaxWorkers *wrappers.Int64Value `protobuf:"bytes,73,opt,name=autovacuum_max_workers,json=autovacuumMaxWorkers,proto3" json:"autovacuum_max_workers,omitempty"` - AutovacuumVacuumCostDelay *wrappers.Int64Value `protobuf:"bytes,74,opt,name=autovacuum_vacuum_cost_delay,json=autovacuumVacuumCostDelay,proto3" json:"autovacuum_vacuum_cost_delay,omitempty"` - AutovacuumVacuumCostLimit *wrappers.Int64Value `protobuf:"bytes,75,opt,name=autovacuum_vacuum_cost_limit,json=autovacuumVacuumCostLimit,proto3" json:"autovacuum_vacuum_cost_limit,omitempty"` - AutovacuumNaptime *wrappers.Int64Value `protobuf:"bytes,76,opt,name=autovacuum_naptime,json=autovacuumNaptime,proto3" json:"autovacuum_naptime,omitempty"` - ArchiveTimeout *wrappers.Int64Value `protobuf:"bytes,77,opt,name=archive_timeout,json=archiveTimeout,proto3" json:"archive_timeout,omitempty"` - TrackActivityQuerySize *wrappers.Int64Value `protobuf:"bytes,78,opt,name=track_activity_query_size,json=trackActivityQuerySize,proto3" json:"track_activity_query_size,omitempty"` - EnableBitmapscan *wrappers.BoolValue `protobuf:"bytes,80,opt,name=enable_bitmapscan,json=enableBitmapscan,proto3" json:"enable_bitmapscan,omitempty"` - EnableHashagg *wrappers.BoolValue `protobuf:"bytes,81,opt,name=enable_hashagg,json=enableHashagg,proto3" json:"enable_hashagg,omitempty"` - EnableHashjoin *wrappers.BoolValue `protobuf:"bytes,82,opt,name=enable_hashjoin,json=enableHashjoin,proto3" json:"enable_hashjoin,omitempty"` - EnableIndexscan *wrappers.BoolValue `protobuf:"bytes,83,opt,name=enable_indexscan,json=enableIndexscan,proto3" json:"enable_indexscan,omitempty"` - EnableIndexonlyscan *wrappers.BoolValue `protobuf:"bytes,84,opt,name=enable_indexonlyscan,json=enableIndexonlyscan,proto3" json:"enable_indexonlyscan,omitempty"` - EnableMaterial *wrappers.BoolValue `protobuf:"bytes,85,opt,name=enable_material,json=enableMaterial,proto3" json:"enable_material,omitempty"` - EnableMergejoin *wrappers.BoolValue `protobuf:"bytes,86,opt,name=enable_mergejoin,json=enableMergejoin,proto3" json:"enable_mergejoin,omitempty"` - EnableNestloop *wrappers.BoolValue `protobuf:"bytes,87,opt,name=enable_nestloop,json=enableNestloop,proto3" json:"enable_nestloop,omitempty"` - EnableSeqscan *wrappers.BoolValue `protobuf:"bytes,88,opt,name=enable_seqscan,json=enableSeqscan,proto3" json:"enable_seqscan,omitempty"` - EnableSort *wrappers.BoolValue `protobuf:"bytes,89,opt,name=enable_sort,json=enableSort,proto3" json:"enable_sort,omitempty"` - EnableTidscan *wrappers.BoolValue `protobuf:"bytes,90,opt,name=enable_tidscan,json=enableTidscan,proto3" json:"enable_tidscan,omitempty"` - MaxWorkerProcesses *wrappers.Int64Value `protobuf:"bytes,91,opt,name=max_worker_processes,json=maxWorkerProcesses,proto3" json:"max_worker_processes,omitempty"` - MaxParallelWorkers *wrappers.Int64Value `protobuf:"bytes,92,opt,name=max_parallel_workers,json=maxParallelWorkers,proto3" json:"max_parallel_workers,omitempty"` - MaxParallelWorkersPerGather *wrappers.Int64Value `protobuf:"bytes,93,opt,name=max_parallel_workers_per_gather,json=maxParallelWorkersPerGather,proto3" json:"max_parallel_workers_per_gather,omitempty"` - AutovacuumVacuumScaleFactor *wrappers.DoubleValue `protobuf:"bytes,94,opt,name=autovacuum_vacuum_scale_factor,json=autovacuumVacuumScaleFactor,proto3" json:"autovacuum_vacuum_scale_factor,omitempty"` - AutovacuumAnalyzeScaleFactor *wrappers.DoubleValue `protobuf:"bytes,95,opt,name=autovacuum_analyze_scale_factor,json=autovacuumAnalyzeScaleFactor,proto3" json:"autovacuum_analyze_scale_factor,omitempty"` - DefaultTransactionReadOnly *wrappers.BoolValue `protobuf:"bytes,96,opt,name=default_transaction_read_only,json=defaultTransactionReadOnly,proto3" json:"default_transaction_read_only,omitempty"` - Timezone string `protobuf:"bytes,97,opt,name=timezone,proto3" json:"timezone,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MaxConnections *wrappers.Int64Value `protobuf:"bytes,1,opt,name=max_connections,json=maxConnections,proto3" json:"max_connections,omitempty"` + SharedBuffers *wrappers.Int64Value `protobuf:"bytes,2,opt,name=shared_buffers,json=sharedBuffers,proto3" json:"shared_buffers,omitempty"` + TempBuffers *wrappers.Int64Value `protobuf:"bytes,3,opt,name=temp_buffers,json=tempBuffers,proto3" json:"temp_buffers,omitempty"` + MaxPreparedTransactions *wrappers.Int64Value `protobuf:"bytes,4,opt,name=max_prepared_transactions,json=maxPreparedTransactions,proto3" json:"max_prepared_transactions,omitempty"` + WorkMem *wrappers.Int64Value `protobuf:"bytes,5,opt,name=work_mem,json=workMem,proto3" json:"work_mem,omitempty"` + MaintenanceWorkMem *wrappers.Int64Value `protobuf:"bytes,6,opt,name=maintenance_work_mem,json=maintenanceWorkMem,proto3" json:"maintenance_work_mem,omitempty"` + ReplacementSortTuples *wrappers.Int64Value `protobuf:"bytes,7,opt,name=replacement_sort_tuples,json=replacementSortTuples,proto3" json:"replacement_sort_tuples,omitempty"` + AutovacuumWorkMem *wrappers.Int64Value `protobuf:"bytes,8,opt,name=autovacuum_work_mem,json=autovacuumWorkMem,proto3" json:"autovacuum_work_mem,omitempty"` + TempFileLimit *wrappers.Int64Value `protobuf:"bytes,9,opt,name=temp_file_limit,json=tempFileLimit,proto3" json:"temp_file_limit,omitempty"` + VacuumCostDelay *wrappers.Int64Value `protobuf:"bytes,10,opt,name=vacuum_cost_delay,json=vacuumCostDelay,proto3" json:"vacuum_cost_delay,omitempty"` + VacuumCostPageHit *wrappers.Int64Value `protobuf:"bytes,11,opt,name=vacuum_cost_page_hit,json=vacuumCostPageHit,proto3" json:"vacuum_cost_page_hit,omitempty"` + VacuumCostPageMiss *wrappers.Int64Value `protobuf:"bytes,12,opt,name=vacuum_cost_page_miss,json=vacuumCostPageMiss,proto3" json:"vacuum_cost_page_miss,omitempty"` + VacuumCostPageDirty *wrappers.Int64Value `protobuf:"bytes,13,opt,name=vacuum_cost_page_dirty,json=vacuumCostPageDirty,proto3" json:"vacuum_cost_page_dirty,omitempty"` + VacuumCostLimit *wrappers.Int64Value `protobuf:"bytes,14,opt,name=vacuum_cost_limit,json=vacuumCostLimit,proto3" json:"vacuum_cost_limit,omitempty"` + BgwriterDelay *wrappers.Int64Value `protobuf:"bytes,15,opt,name=bgwriter_delay,json=bgwriterDelay,proto3" json:"bgwriter_delay,omitempty"` + BgwriterLruMaxpages *wrappers.Int64Value `protobuf:"bytes,16,opt,name=bgwriter_lru_maxpages,json=bgwriterLruMaxpages,proto3" json:"bgwriter_lru_maxpages,omitempty"` + BgwriterLruMultiplier *wrappers.DoubleValue `protobuf:"bytes,17,opt,name=bgwriter_lru_multiplier,json=bgwriterLruMultiplier,proto3" json:"bgwriter_lru_multiplier,omitempty"` + BgwriterFlushAfter *wrappers.Int64Value `protobuf:"bytes,18,opt,name=bgwriter_flush_after,json=bgwriterFlushAfter,proto3" json:"bgwriter_flush_after,omitempty"` + BackendFlushAfter *wrappers.Int64Value `protobuf:"bytes,19,opt,name=backend_flush_after,json=backendFlushAfter,proto3" json:"backend_flush_after,omitempty"` + OldSnapshotThreshold *wrappers.Int64Value `protobuf:"bytes,20,opt,name=old_snapshot_threshold,json=oldSnapshotThreshold,proto3" json:"old_snapshot_threshold,omitempty"` + WalLevel PostgresqlConfig10_WalLevel `protobuf:"varint,21,opt,name=wal_level,json=walLevel,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_WalLevel" json:"wal_level,omitempty"` + SynchronousCommit PostgresqlConfig10_SynchronousCommit `protobuf:"varint,22,opt,name=synchronous_commit,json=synchronousCommit,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_SynchronousCommit" json:"synchronous_commit,omitempty"` + CheckpointTimeout *wrappers.Int64Value `protobuf:"bytes,23,opt,name=checkpoint_timeout,json=checkpointTimeout,proto3" json:"checkpoint_timeout,omitempty"` + CheckpointCompletionTarget *wrappers.DoubleValue `protobuf:"bytes,24,opt,name=checkpoint_completion_target,json=checkpointCompletionTarget,proto3" json:"checkpoint_completion_target,omitempty"` + CheckpointFlushAfter *wrappers.Int64Value `protobuf:"bytes,25,opt,name=checkpoint_flush_after,json=checkpointFlushAfter,proto3" json:"checkpoint_flush_after,omitempty"` + MaxWalSize *wrappers.Int64Value `protobuf:"bytes,26,opt,name=max_wal_size,json=maxWalSize,proto3" json:"max_wal_size,omitempty"` + MinWalSize *wrappers.Int64Value `protobuf:"bytes,27,opt,name=min_wal_size,json=minWalSize,proto3" json:"min_wal_size,omitempty"` + MaxStandbyStreamingDelay *wrappers.Int64Value `protobuf:"bytes,28,opt,name=max_standby_streaming_delay,json=maxStandbyStreamingDelay,proto3" json:"max_standby_streaming_delay,omitempty"` + DefaultStatisticsTarget *wrappers.Int64Value `protobuf:"bytes,29,opt,name=default_statistics_target,json=defaultStatisticsTarget,proto3" json:"default_statistics_target,omitempty"` + ConstraintExclusion PostgresqlConfig10_ConstraintExclusion `protobuf:"varint,30,opt,name=constraint_exclusion,json=constraintExclusion,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_ConstraintExclusion" json:"constraint_exclusion,omitempty"` + CursorTupleFraction *wrappers.DoubleValue `protobuf:"bytes,31,opt,name=cursor_tuple_fraction,json=cursorTupleFraction,proto3" json:"cursor_tuple_fraction,omitempty"` + FromCollapseLimit *wrappers.Int64Value `protobuf:"bytes,32,opt,name=from_collapse_limit,json=fromCollapseLimit,proto3" json:"from_collapse_limit,omitempty"` + JoinCollapseLimit *wrappers.Int64Value `protobuf:"bytes,33,opt,name=join_collapse_limit,json=joinCollapseLimit,proto3" json:"join_collapse_limit,omitempty"` + ForceParallelMode PostgresqlConfig10_ForceParallelMode `protobuf:"varint,34,opt,name=force_parallel_mode,json=forceParallelMode,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_ForceParallelMode" json:"force_parallel_mode,omitempty"` + ClientMinMessages PostgresqlConfig10_LogLevel `protobuf:"varint,35,opt,name=client_min_messages,json=clientMinMessages,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_LogLevel" json:"client_min_messages,omitempty"` + LogMinMessages PostgresqlConfig10_LogLevel `protobuf:"varint,36,opt,name=log_min_messages,json=logMinMessages,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_LogLevel" json:"log_min_messages,omitempty"` + LogMinErrorStatement PostgresqlConfig10_LogLevel `protobuf:"varint,37,opt,name=log_min_error_statement,json=logMinErrorStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_LogLevel" json:"log_min_error_statement,omitempty"` + LogMinDurationStatement *wrappers.Int64Value `protobuf:"bytes,38,opt,name=log_min_duration_statement,json=logMinDurationStatement,proto3" json:"log_min_duration_statement,omitempty"` + LogCheckpoints *wrappers.BoolValue `protobuf:"bytes,39,opt,name=log_checkpoints,json=logCheckpoints,proto3" json:"log_checkpoints,omitempty"` + LogConnections *wrappers.BoolValue `protobuf:"bytes,40,opt,name=log_connections,json=logConnections,proto3" json:"log_connections,omitempty"` + LogDisconnections *wrappers.BoolValue `protobuf:"bytes,41,opt,name=log_disconnections,json=logDisconnections,proto3" json:"log_disconnections,omitempty"` + LogDuration *wrappers.BoolValue `protobuf:"bytes,42,opt,name=log_duration,json=logDuration,proto3" json:"log_duration,omitempty"` + LogErrorVerbosity PostgresqlConfig10_LogErrorVerbosity `protobuf:"varint,43,opt,name=log_error_verbosity,json=logErrorVerbosity,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_LogErrorVerbosity" json:"log_error_verbosity,omitempty"` + LogLockWaits *wrappers.BoolValue `protobuf:"bytes,44,opt,name=log_lock_waits,json=logLockWaits,proto3" json:"log_lock_waits,omitempty"` + LogStatement PostgresqlConfig10_LogStatement `protobuf:"varint,45,opt,name=log_statement,json=logStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_LogStatement" json:"log_statement,omitempty"` + LogTempFiles *wrappers.Int64Value `protobuf:"bytes,46,opt,name=log_temp_files,json=logTempFiles,proto3" json:"log_temp_files,omitempty"` + SearchPath string `protobuf:"bytes,47,opt,name=search_path,json=searchPath,proto3" json:"search_path,omitempty"` + RowSecurity *wrappers.BoolValue `protobuf:"bytes,48,opt,name=row_security,json=rowSecurity,proto3" json:"row_security,omitempty"` + DefaultTransactionIsolation PostgresqlConfig10_TransactionIsolation `protobuf:"varint,49,opt,name=default_transaction_isolation,json=defaultTransactionIsolation,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_TransactionIsolation" json:"default_transaction_isolation,omitempty"` + StatementTimeout *wrappers.Int64Value `protobuf:"bytes,50,opt,name=statement_timeout,json=statementTimeout,proto3" json:"statement_timeout,omitempty"` + LockTimeout *wrappers.Int64Value `protobuf:"bytes,51,opt,name=lock_timeout,json=lockTimeout,proto3" json:"lock_timeout,omitempty"` + IdleInTransactionSessionTimeout *wrappers.Int64Value `protobuf:"bytes,52,opt,name=idle_in_transaction_session_timeout,json=idleInTransactionSessionTimeout,proto3" json:"idle_in_transaction_session_timeout,omitempty"` + ByteaOutput PostgresqlConfig10_ByteaOutput `protobuf:"varint,53,opt,name=bytea_output,json=byteaOutput,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_ByteaOutput" json:"bytea_output,omitempty"` + Xmlbinary PostgresqlConfig10_XmlBinary `protobuf:"varint,54,opt,name=xmlbinary,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_XmlBinary" json:"xmlbinary,omitempty"` + Xmloption PostgresqlConfig10_XmlOption `protobuf:"varint,55,opt,name=xmloption,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_XmlOption" json:"xmloption,omitempty"` + GinPendingListLimit *wrappers.Int64Value `protobuf:"bytes,56,opt,name=gin_pending_list_limit,json=ginPendingListLimit,proto3" json:"gin_pending_list_limit,omitempty"` + DeadlockTimeout *wrappers.Int64Value `protobuf:"bytes,57,opt,name=deadlock_timeout,json=deadlockTimeout,proto3" json:"deadlock_timeout,omitempty"` + MaxLocksPerTransaction *wrappers.Int64Value `protobuf:"bytes,58,opt,name=max_locks_per_transaction,json=maxLocksPerTransaction,proto3" json:"max_locks_per_transaction,omitempty"` + MaxPredLocksPerTransaction *wrappers.Int64Value `protobuf:"bytes,59,opt,name=max_pred_locks_per_transaction,json=maxPredLocksPerTransaction,proto3" json:"max_pred_locks_per_transaction,omitempty"` + ArrayNulls *wrappers.BoolValue `protobuf:"bytes,60,opt,name=array_nulls,json=arrayNulls,proto3" json:"array_nulls,omitempty"` + BackslashQuote PostgresqlConfig10_BackslashQuote `protobuf:"varint,61,opt,name=backslash_quote,json=backslashQuote,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_BackslashQuote" json:"backslash_quote,omitempty"` + DefaultWithOids *wrappers.BoolValue `protobuf:"bytes,62,opt,name=default_with_oids,json=defaultWithOids,proto3" json:"default_with_oids,omitempty"` + EscapeStringWarning *wrappers.BoolValue `protobuf:"bytes,63,opt,name=escape_string_warning,json=escapeStringWarning,proto3" json:"escape_string_warning,omitempty"` + LoCompatPrivileges *wrappers.BoolValue `protobuf:"bytes,64,opt,name=lo_compat_privileges,json=loCompatPrivileges,proto3" json:"lo_compat_privileges,omitempty"` + OperatorPrecedenceWarning *wrappers.BoolValue `protobuf:"bytes,65,opt,name=operator_precedence_warning,json=operatorPrecedenceWarning,proto3" json:"operator_precedence_warning,omitempty"` + QuoteAllIdentifiers *wrappers.BoolValue `protobuf:"bytes,66,opt,name=quote_all_identifiers,json=quoteAllIdentifiers,proto3" json:"quote_all_identifiers,omitempty"` + StandardConformingStrings *wrappers.BoolValue `protobuf:"bytes,67,opt,name=standard_conforming_strings,json=standardConformingStrings,proto3" json:"standard_conforming_strings,omitempty"` + SynchronizeSeqscans *wrappers.BoolValue `protobuf:"bytes,68,opt,name=synchronize_seqscans,json=synchronizeSeqscans,proto3" json:"synchronize_seqscans,omitempty"` + TransformNullEquals *wrappers.BoolValue `protobuf:"bytes,69,opt,name=transform_null_equals,json=transformNullEquals,proto3" json:"transform_null_equals,omitempty"` + ExitOnError *wrappers.BoolValue `protobuf:"bytes,70,opt,name=exit_on_error,json=exitOnError,proto3" json:"exit_on_error,omitempty"` + SeqPageCost *wrappers.DoubleValue `protobuf:"bytes,71,opt,name=seq_page_cost,json=seqPageCost,proto3" json:"seq_page_cost,omitempty"` + RandomPageCost *wrappers.DoubleValue `protobuf:"bytes,72,opt,name=random_page_cost,json=randomPageCost,proto3" json:"random_page_cost,omitempty"` + AutovacuumMaxWorkers *wrappers.Int64Value `protobuf:"bytes,73,opt,name=autovacuum_max_workers,json=autovacuumMaxWorkers,proto3" json:"autovacuum_max_workers,omitempty"` + AutovacuumVacuumCostDelay *wrappers.Int64Value `protobuf:"bytes,74,opt,name=autovacuum_vacuum_cost_delay,json=autovacuumVacuumCostDelay,proto3" json:"autovacuum_vacuum_cost_delay,omitempty"` + AutovacuumVacuumCostLimit *wrappers.Int64Value `protobuf:"bytes,75,opt,name=autovacuum_vacuum_cost_limit,json=autovacuumVacuumCostLimit,proto3" json:"autovacuum_vacuum_cost_limit,omitempty"` + AutovacuumNaptime *wrappers.Int64Value `protobuf:"bytes,76,opt,name=autovacuum_naptime,json=autovacuumNaptime,proto3" json:"autovacuum_naptime,omitempty"` + ArchiveTimeout *wrappers.Int64Value `protobuf:"bytes,77,opt,name=archive_timeout,json=archiveTimeout,proto3" json:"archive_timeout,omitempty"` + TrackActivityQuerySize *wrappers.Int64Value `protobuf:"bytes,78,opt,name=track_activity_query_size,json=trackActivityQuerySize,proto3" json:"track_activity_query_size,omitempty"` + EnableBitmapscan *wrappers.BoolValue `protobuf:"bytes,80,opt,name=enable_bitmapscan,json=enableBitmapscan,proto3" json:"enable_bitmapscan,omitempty"` + EnableHashagg *wrappers.BoolValue `protobuf:"bytes,81,opt,name=enable_hashagg,json=enableHashagg,proto3" json:"enable_hashagg,omitempty"` + EnableHashjoin *wrappers.BoolValue `protobuf:"bytes,82,opt,name=enable_hashjoin,json=enableHashjoin,proto3" json:"enable_hashjoin,omitempty"` + EnableIndexscan *wrappers.BoolValue `protobuf:"bytes,83,opt,name=enable_indexscan,json=enableIndexscan,proto3" json:"enable_indexscan,omitempty"` + EnableIndexonlyscan *wrappers.BoolValue `protobuf:"bytes,84,opt,name=enable_indexonlyscan,json=enableIndexonlyscan,proto3" json:"enable_indexonlyscan,omitempty"` + EnableMaterial *wrappers.BoolValue `protobuf:"bytes,85,opt,name=enable_material,json=enableMaterial,proto3" json:"enable_material,omitempty"` + EnableMergejoin *wrappers.BoolValue `protobuf:"bytes,86,opt,name=enable_mergejoin,json=enableMergejoin,proto3" json:"enable_mergejoin,omitempty"` + EnableNestloop *wrappers.BoolValue `protobuf:"bytes,87,opt,name=enable_nestloop,json=enableNestloop,proto3" json:"enable_nestloop,omitempty"` + EnableSeqscan *wrappers.BoolValue `protobuf:"bytes,88,opt,name=enable_seqscan,json=enableSeqscan,proto3" json:"enable_seqscan,omitempty"` + EnableSort *wrappers.BoolValue `protobuf:"bytes,89,opt,name=enable_sort,json=enableSort,proto3" json:"enable_sort,omitempty"` + EnableTidscan *wrappers.BoolValue `protobuf:"bytes,90,opt,name=enable_tidscan,json=enableTidscan,proto3" json:"enable_tidscan,omitempty"` + MaxWorkerProcesses *wrappers.Int64Value `protobuf:"bytes,91,opt,name=max_worker_processes,json=maxWorkerProcesses,proto3" json:"max_worker_processes,omitempty"` + MaxParallelWorkers *wrappers.Int64Value `protobuf:"bytes,92,opt,name=max_parallel_workers,json=maxParallelWorkers,proto3" json:"max_parallel_workers,omitempty"` + MaxParallelWorkersPerGather *wrappers.Int64Value `protobuf:"bytes,93,opt,name=max_parallel_workers_per_gather,json=maxParallelWorkersPerGather,proto3" json:"max_parallel_workers_per_gather,omitempty"` + AutovacuumVacuumScaleFactor *wrappers.DoubleValue `protobuf:"bytes,94,opt,name=autovacuum_vacuum_scale_factor,json=autovacuumVacuumScaleFactor,proto3" json:"autovacuum_vacuum_scale_factor,omitempty"` + AutovacuumAnalyzeScaleFactor *wrappers.DoubleValue `protobuf:"bytes,95,opt,name=autovacuum_analyze_scale_factor,json=autovacuumAnalyzeScaleFactor,proto3" json:"autovacuum_analyze_scale_factor,omitempty"` + DefaultTransactionReadOnly *wrappers.BoolValue `protobuf:"bytes,96,opt,name=default_transaction_read_only,json=defaultTransactionReadOnly,proto3" json:"default_transaction_read_only,omitempty"` + Timezone string `protobuf:"bytes,97,opt,name=timezone,proto3" json:"timezone,omitempty"` + EffectiveIoConcurrency *wrappers.Int64Value `protobuf:"bytes,98,opt,name=effective_io_concurrency,json=effectiveIoConcurrency,proto3" json:"effective_io_concurrency,omitempty"` + EffectiveCacheSize *wrappers.Int64Value `protobuf:"bytes,99,opt,name=effective_cache_size,json=effectiveCacheSize,proto3" json:"effective_cache_size,omitempty"` + SharedPreloadLibraries []PostgresqlConfig10_SharedPreloadLibraries `protobuf:"varint,100,rep,packed,name=shared_preload_libraries,json=sharedPreloadLibraries,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_SharedPreloadLibraries" json:"shared_preload_libraries,omitempty"` + AutoExplainLogMinDuration *wrappers.Int64Value `protobuf:"bytes,101,opt,name=auto_explain_log_min_duration,json=autoExplainLogMinDuration,proto3" json:"auto_explain_log_min_duration,omitempty"` + AutoExplainLogAnalyze *wrappers.BoolValue `protobuf:"bytes,102,opt,name=auto_explain_log_analyze,json=autoExplainLogAnalyze,proto3" json:"auto_explain_log_analyze,omitempty"` + AutoExplainLogBuffers *wrappers.BoolValue `protobuf:"bytes,103,opt,name=auto_explain_log_buffers,json=autoExplainLogBuffers,proto3" json:"auto_explain_log_buffers,omitempty"` + AutoExplainLogTiming *wrappers.BoolValue `protobuf:"bytes,104,opt,name=auto_explain_log_timing,json=autoExplainLogTiming,proto3" json:"auto_explain_log_timing,omitempty"` + AutoExplainLogTriggers *wrappers.BoolValue `protobuf:"bytes,105,opt,name=auto_explain_log_triggers,json=autoExplainLogTriggers,proto3" json:"auto_explain_log_triggers,omitempty"` + AutoExplainLogVerbose *wrappers.BoolValue `protobuf:"bytes,106,opt,name=auto_explain_log_verbose,json=autoExplainLogVerbose,proto3" json:"auto_explain_log_verbose,omitempty"` + AutoExplainLogNestedStatements *wrappers.BoolValue `protobuf:"bytes,107,opt,name=auto_explain_log_nested_statements,json=autoExplainLogNestedStatements,proto3" json:"auto_explain_log_nested_statements,omitempty"` + AutoExplainSampleRate *wrappers.DoubleValue `protobuf:"bytes,108,opt,name=auto_explain_sample_rate,json=autoExplainSampleRate,proto3" json:"auto_explain_sample_rate,omitempty"` + PgHintPlanEnableHint *wrappers.BoolValue `protobuf:"bytes,109,opt,name=pg_hint_plan_enable_hint,json=pgHintPlanEnableHint,proto3" json:"pg_hint_plan_enable_hint,omitempty"` + PgHintPlanEnableHintTable *wrappers.BoolValue `protobuf:"bytes,110,opt,name=pg_hint_plan_enable_hint_table,json=pgHintPlanEnableHintTable,proto3" json:"pg_hint_plan_enable_hint_table,omitempty"` + PgHintPlanDebugPrint PostgresqlConfig10_PgHintPlanDebugPrint `protobuf:"varint,111,opt,name=pg_hint_plan_debug_print,json=pgHintPlanDebugPrint,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_PgHintPlanDebugPrint" json:"pg_hint_plan_debug_print,omitempty"` + PgHintPlanMessageLevel PostgresqlConfig10_LogLevel `protobuf:"varint,112,opt,name=pg_hint_plan_message_level,json=pgHintPlanMessageLevel,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_LogLevel" json:"pg_hint_plan_message_level,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PostgresqlConfig10) Reset() { *m = PostgresqlConfig10{} } @@ -1223,6 +1300,111 @@ func (m *PostgresqlConfig10) GetTimezone() string { return "" } +func (m *PostgresqlConfig10) GetEffectiveIoConcurrency() *wrappers.Int64Value { + if m != nil { + return m.EffectiveIoConcurrency + } + return nil +} + +func (m *PostgresqlConfig10) GetEffectiveCacheSize() *wrappers.Int64Value { + if m != nil { + return m.EffectiveCacheSize + } + return nil +} + +func (m *PostgresqlConfig10) GetSharedPreloadLibraries() []PostgresqlConfig10_SharedPreloadLibraries { + if m != nil { + return m.SharedPreloadLibraries + } + return nil +} + +func (m *PostgresqlConfig10) GetAutoExplainLogMinDuration() *wrappers.Int64Value { + if m != nil { + return m.AutoExplainLogMinDuration + } + return nil +} + +func (m *PostgresqlConfig10) GetAutoExplainLogAnalyze() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogAnalyze + } + return nil +} + +func (m *PostgresqlConfig10) GetAutoExplainLogBuffers() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogBuffers + } + return nil +} + +func (m *PostgresqlConfig10) GetAutoExplainLogTiming() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogTiming + } + return nil +} + +func (m *PostgresqlConfig10) GetAutoExplainLogTriggers() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogTriggers + } + return nil +} + +func (m *PostgresqlConfig10) GetAutoExplainLogVerbose() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogVerbose + } + return nil +} + +func (m *PostgresqlConfig10) GetAutoExplainLogNestedStatements() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogNestedStatements + } + return nil +} + +func (m *PostgresqlConfig10) GetAutoExplainSampleRate() *wrappers.DoubleValue { + if m != nil { + return m.AutoExplainSampleRate + } + return nil +} + +func (m *PostgresqlConfig10) GetPgHintPlanEnableHint() *wrappers.BoolValue { + if m != nil { + return m.PgHintPlanEnableHint + } + return nil +} + +func (m *PostgresqlConfig10) GetPgHintPlanEnableHintTable() *wrappers.BoolValue { + if m != nil { + return m.PgHintPlanEnableHintTable + } + return nil +} + +func (m *PostgresqlConfig10) GetPgHintPlanDebugPrint() PostgresqlConfig10_PgHintPlanDebugPrint { + if m != nil { + return m.PgHintPlanDebugPrint + } + return PostgresqlConfig10_PG_HINT_PLAN_DEBUG_PRINT_UNSPECIFIED +} + +func (m *PostgresqlConfig10) GetPgHintPlanMessageLevel() PostgresqlConfig10_LogLevel { + if m != nil { + return m.PgHintPlanMessageLevel + } + return PostgresqlConfig10_LOG_LEVEL_UNSPECIFIED +} + type PostgresqlConfigSet10 struct { // Effective settings for a PostgreSQL 10 cluster (a combination of settings defined // in [user_config] and [default_config]). @@ -1295,6 +1477,8 @@ func init() { proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_XmlBinary", PostgresqlConfig10_XmlBinary_name, PostgresqlConfig10_XmlBinary_value) proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_XmlOption", PostgresqlConfig10_XmlOption_name, PostgresqlConfig10_XmlOption_value) proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_BackslashQuote", PostgresqlConfig10_BackslashQuote_name, PostgresqlConfig10_BackslashQuote_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_PgHintPlanDebugPrint", PostgresqlConfig10_PgHintPlanDebugPrint_name, PostgresqlConfig10_PgHintPlanDebugPrint_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_SharedPreloadLibraries", PostgresqlConfig10_SharedPreloadLibraries_name, PostgresqlConfig10_SharedPreloadLibraries_value) proto.RegisterType((*PostgresqlConfig10)(nil), "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10") proto.RegisterType((*PostgresqlConfigSet10)(nil), "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10") } @@ -1304,213 +1488,244 @@ func init() { } var fileDescriptor_63a40d3271be9d79 = []byte{ - // 3317 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x9a, 0x4b, 0x7b, 0xdb, 0xc6, - 0x7a, 0xc7, 0x4b, 0xc9, 0x49, 0xe4, 0x91, 0x25, 0x81, 0xa3, 0x8b, 0x21, 0xc9, 0xb7, 0x28, 0x97, - 0xfa, 0x9c, 0x56, 0x12, 0x69, 0xeb, 0x38, 0x3e, 0x4d, 0x4f, 0x1a, 0x90, 0x04, 0x65, 0x36, 0xe0, - 0x25, 0x00, 0x25, 0xd9, 0x4e, 0x1d, 0x9c, 0x21, 0x30, 0x24, 0x11, 0x01, 0x18, 0x7a, 0x06, 0xd4, - 0xc5, 0xdd, 0x74, 0xdd, 0xe5, 0xd9, 0xb5, 0xdb, 0x7e, 0x92, 0xae, 0xf4, 0x0d, 0xfa, 0x11, 0xfa, - 0xf4, 0x33, 0x68, 0xd5, 0x67, 0x06, 0x00, 0x01, 0x8a, 0xcc, 0x01, 0x6d, 0x67, 0x47, 0xce, 0xcc, - 0xff, 0xf7, 0xce, 0xe5, 0x9d, 0xcb, 0xfb, 0x92, 0xe0, 0xf9, 0x25, 0xf2, 0x6d, 0x7c, 0xb1, 0x6f, - 0xb9, 0x64, 0x68, 0xef, 0x7b, 0x76, 0x67, 0x7f, 0x40, 0x58, 0xd0, 0xa3, 0x98, 0xbd, 0x75, 0xf7, - 0xcf, 0x8a, 0xfb, 0x16, 0xf1, 0xbb, 0x4e, 0x2f, 0x55, 0x58, 0x2c, 0xec, 0x0d, 0x28, 0x09, 0x08, - 0xfc, 0x2a, 0x54, 0xee, 0x09, 0xe5, 0x9e, 0x67, 0x77, 0xf6, 0x92, 0x46, 0x7b, 0x67, 0xc5, 0xbd, - 0x50, 0xb9, 0xf5, 0xa0, 0x47, 0x48, 0xcf, 0xc5, 0xfb, 0x42, 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, 0xed, 0x9e, 0x13, 0xf4, 0x87, 0x9d, 0x3d, 0x8b, 0x78, 0xfb, 0x21, 0x75, 0x37, - 0xfc, 0x57, 0x62, 0x8f, 0xec, 0xf6, 0xb0, 0x2f, 0x9e, 0x37, 0xfb, 0x33, 0xfd, 0x5f, 0xf2, 0xdb, - 0xa4, 0xb0, 0xf3, 0xa9, 0xd0, 0x3d, 0xfd, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2e, 0xd8, 0x24, - 0xb2, 0x6a, 0x29, 0x00, 0x00, + // 3820 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x9b, 0x5b, 0x77, 0xdb, 0xc6, + 0x76, 0xc7, 0x4b, 0xc9, 0x27, 0xb1, 0x47, 0x96, 0x04, 0x8e, 0x2e, 0x86, 0xe4, 0x6b, 0x98, 0x38, + 0x75, 0x4e, 0x2b, 0x89, 0xb4, 0x65, 0xc7, 0x69, 0x7a, 0xd2, 0x80, 0x24, 0x24, 0xb1, 0x01, 0x2f, + 0x06, 0x28, 0xcb, 0x76, 0xea, 0xcc, 0x19, 0x82, 0x43, 0x12, 0x16, 0x88, 0x81, 0x31, 0xa0, 0x25, + 0xb9, 0x6b, 0x75, 0xb5, 0x2f, 0x5d, 0xab, 0xe7, 0xf1, 0x3c, 0xb5, 0xfd, 0x36, 0x7d, 0xd2, 0x6b, + 0x9f, 0xfa, 0x11, 0xba, 0xfa, 0x19, 0xfc, 0xd4, 0x35, 0x03, 0x80, 0x00, 0x2f, 0x0a, 0x28, 0x3b, + 0x6f, 0xd2, 0xcc, 0xfc, 0x7f, 0x7b, 0xcf, 0xcc, 0x9e, 0xcb, 0x1e, 0x48, 0xe0, 0xe9, 0x19, 0x76, + 0xda, 0xe4, 0x74, 0xc7, 0xb4, 0xe9, 0xa0, 0xbd, 0xd3, 0x6f, 0xb7, 0x76, 0x5c, 0xca, 0xfc, 0xae,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0x3e, + 0x9c, 0x17, 0x40, 0x21, 0x9f, 0xdf, 0x2a, 0xe4, 0x1f, 0xee, 0xe6, 0xf3, 0xfa, 0xba, 0xa0, 0x29, + 0x21, 0xec, 0x19, 0x67, 0x89, 0x67, 0x9c, 0x7d, 0x90, 0x25, 0x0e, 0x6e, 0xd9, 0x04, 0xb5, 0x2c, + 0xbf, 0x8f, 0x5d, 0xbe, 0x06, 0xe5, 0x46, 0xea, 0x0a, 0x91, 0x02, 0x51, 0x71, 0xa8, 0xe1, 0x77, + 0xea, 0x10, 0xd4, 0xc3, 0xac, 0x87, 0xbb, 0x5d, 0xf9, 0x59, 0x2a, 0x65, 0x31, 0x50, 0x1c, 0x04, + 0x02, 0x9e, 0x91, 0x25, 0x10, 0x6f, 0xa8, 0xe5, 0xc8, 0x7a, 0x7a, 0x46, 0x16, 0x33, 0xb8, 0x02, + 0xaa, 0x20, 0xf4, 0x0d, 0x59, 0xfc, 0x70, 0x13, 0xfd, 0x31, 0xd2, 0x8f, 0x9e, 0x40, 0x53, 0x89, + 0x24, 0x7c, 0x53, 0x4b, 0x62, 0xa8, 0x63, 0x9f, 0x09, 0x54, 0x73, 0x86, 0x93, 0x27, 0x46, 0x45, + 0xb2, 0x44, 0xd7, 0xfa, 0xd8, 0x27, 0x9e, 0x85, 0x6d, 0xf9, 0x70, 0xd6, 0xae, 0x55, 0x43, 0x45, + 0xa2, 0x6b, 0x7d, 0xe2, 0x75, 0x89, 0x18, 0xa0, 0xe7, 0xb3, 0x76, 0xad, 0x1a, 0x49, 0x12, 0xbe, + 0x38, 0x84, 0xf9, 0x36, 0xa5, 0xae, 0x7c, 0x34, 0xab, 0x2f, 0xb5, 0x50, 0x91, 0x98, 0xee, 0x70, + 0xbf, 0x97, 0x5f, 0xcc, 0x3a, 0xdd, 0xe1, 0x4e, 0xcf, 0x6f, 0x35, 0x11, 0x82, 0x7a, 0xbe, 0xfc, + 0x32, 0xfd, 0x56, 0x13, 0xea, 0xa9, 0xe7, 0x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+ 0x64, 0xc0, 0x37, 0x23, 0x2c, 0xec, 0x5a, 0x17, 0xf2, 0x5e, 0x35, 0xbb, 0x96, 0xdf, 0x1b, 0xb4, + 0xb6, 0x4d, 0xda, 0xdf, 0x09, 0x54, 0x5b, 0xc1, 0xff, 0x09, 0x74, 0xe9, 0x56, 0x97, 0x38, 0xe2, + 0x92, 0xbd, 0x33, 0xd3, 0x7f, 0x30, 0x7c, 0x1f, 0x17, 0xb6, 0x3e, 0x13, 0xba, 0x47, 0xff, 0x1f, + 0x00, 0x00, 0xff, 0xff, 0x03, 0x50, 0xa5, 0x39, 0xfc, 0x30, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql10.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql10.pbext.go new file mode 100644 index 000000000..f98f6086d --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql10.pbext.go @@ -0,0 +1,463 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *PostgresqlConfig10) SetMaxConnections(v *wrappers.Int64Value) { + m.MaxConnections = v +} + +func (m *PostgresqlConfig10) SetSharedBuffers(v *wrappers.Int64Value) { + m.SharedBuffers = v +} + +func (m *PostgresqlConfig10) SetTempBuffers(v *wrappers.Int64Value) { + m.TempBuffers = v +} + +func (m *PostgresqlConfig10) SetMaxPreparedTransactions(v *wrappers.Int64Value) { + m.MaxPreparedTransactions = v +} + +func (m *PostgresqlConfig10) SetWorkMem(v *wrappers.Int64Value) { + m.WorkMem = v +} + +func (m *PostgresqlConfig10) SetMaintenanceWorkMem(v *wrappers.Int64Value) { + m.MaintenanceWorkMem = v +} + +func (m *PostgresqlConfig10) SetReplacementSortTuples(v *wrappers.Int64Value) { + m.ReplacementSortTuples = v +} + +func (m *PostgresqlConfig10) SetAutovacuumWorkMem(v *wrappers.Int64Value) { + m.AutovacuumWorkMem = v +} + +func (m *PostgresqlConfig10) SetTempFileLimit(v *wrappers.Int64Value) { + m.TempFileLimit = v +} + +func (m *PostgresqlConfig10) SetVacuumCostDelay(v *wrappers.Int64Value) { + m.VacuumCostDelay = v +} + +func (m *PostgresqlConfig10) SetVacuumCostPageHit(v *wrappers.Int64Value) { + m.VacuumCostPageHit = v +} + +func (m *PostgresqlConfig10) SetVacuumCostPageMiss(v *wrappers.Int64Value) { + m.VacuumCostPageMiss = v +} + +func (m *PostgresqlConfig10) SetVacuumCostPageDirty(v *wrappers.Int64Value) { + m.VacuumCostPageDirty = v +} + +func (m *PostgresqlConfig10) SetVacuumCostLimit(v *wrappers.Int64Value) { + m.VacuumCostLimit = v +} + +func (m *PostgresqlConfig10) SetBgwriterDelay(v *wrappers.Int64Value) { + m.BgwriterDelay = v +} + +func (m *PostgresqlConfig10) SetBgwriterLruMaxpages(v *wrappers.Int64Value) { + m.BgwriterLruMaxpages = v +} + +func (m *PostgresqlConfig10) SetBgwriterLruMultiplier(v *wrappers.DoubleValue) { + m.BgwriterLruMultiplier = v +} + +func (m *PostgresqlConfig10) SetBgwriterFlushAfter(v *wrappers.Int64Value) { + m.BgwriterFlushAfter = v +} + +func (m *PostgresqlConfig10) SetBackendFlushAfter(v *wrappers.Int64Value) { + m.BackendFlushAfter = v +} + +func (m *PostgresqlConfig10) SetOldSnapshotThreshold(v *wrappers.Int64Value) { + m.OldSnapshotThreshold = v +} + +func (m *PostgresqlConfig10) SetWalLevel(v PostgresqlConfig10_WalLevel) { + m.WalLevel = v +} + +func (m *PostgresqlConfig10) SetSynchronousCommit(v PostgresqlConfig10_SynchronousCommit) { + m.SynchronousCommit = v +} + +func (m *PostgresqlConfig10) SetCheckpointTimeout(v *wrappers.Int64Value) { + m.CheckpointTimeout = v +} + +func (m *PostgresqlConfig10) SetCheckpointCompletionTarget(v *wrappers.DoubleValue) { + m.CheckpointCompletionTarget = v +} + +func (m *PostgresqlConfig10) SetCheckpointFlushAfter(v *wrappers.Int64Value) { + m.CheckpointFlushAfter = v +} + +func (m *PostgresqlConfig10) SetMaxWalSize(v *wrappers.Int64Value) { + m.MaxWalSize = v +} + +func (m *PostgresqlConfig10) SetMinWalSize(v *wrappers.Int64Value) { + m.MinWalSize = v +} + +func (m *PostgresqlConfig10) SetMaxStandbyStreamingDelay(v *wrappers.Int64Value) { + m.MaxStandbyStreamingDelay = v +} + +func (m *PostgresqlConfig10) SetDefaultStatisticsTarget(v *wrappers.Int64Value) { + m.DefaultStatisticsTarget = v +} + +func (m *PostgresqlConfig10) SetConstraintExclusion(v PostgresqlConfig10_ConstraintExclusion) { + m.ConstraintExclusion = v +} + +func (m *PostgresqlConfig10) SetCursorTupleFraction(v *wrappers.DoubleValue) { + m.CursorTupleFraction = v +} + +func (m *PostgresqlConfig10) SetFromCollapseLimit(v *wrappers.Int64Value) { + m.FromCollapseLimit = v +} + +func (m *PostgresqlConfig10) SetJoinCollapseLimit(v *wrappers.Int64Value) { + m.JoinCollapseLimit = v +} + +func (m *PostgresqlConfig10) SetForceParallelMode(v PostgresqlConfig10_ForceParallelMode) { + m.ForceParallelMode = v +} + +func (m *PostgresqlConfig10) SetClientMinMessages(v PostgresqlConfig10_LogLevel) { + m.ClientMinMessages = v +} + +func (m *PostgresqlConfig10) SetLogMinMessages(v PostgresqlConfig10_LogLevel) { + m.LogMinMessages = v +} + +func (m *PostgresqlConfig10) SetLogMinErrorStatement(v PostgresqlConfig10_LogLevel) { + m.LogMinErrorStatement = v +} + +func (m *PostgresqlConfig10) SetLogMinDurationStatement(v *wrappers.Int64Value) { + m.LogMinDurationStatement = v +} + +func (m *PostgresqlConfig10) SetLogCheckpoints(v *wrappers.BoolValue) { + m.LogCheckpoints = v +} + +func (m *PostgresqlConfig10) SetLogConnections(v *wrappers.BoolValue) { + m.LogConnections = v +} + +func (m *PostgresqlConfig10) SetLogDisconnections(v *wrappers.BoolValue) { + m.LogDisconnections = v +} + +func (m *PostgresqlConfig10) SetLogDuration(v *wrappers.BoolValue) { + m.LogDuration = v +} + +func (m *PostgresqlConfig10) SetLogErrorVerbosity(v PostgresqlConfig10_LogErrorVerbosity) { + m.LogErrorVerbosity = v +} + +func (m *PostgresqlConfig10) SetLogLockWaits(v *wrappers.BoolValue) { + m.LogLockWaits = v +} + +func (m *PostgresqlConfig10) SetLogStatement(v PostgresqlConfig10_LogStatement) { + m.LogStatement = v +} + +func (m *PostgresqlConfig10) SetLogTempFiles(v *wrappers.Int64Value) { + m.LogTempFiles = v +} + +func (m *PostgresqlConfig10) SetSearchPath(v string) { + m.SearchPath = v +} + +func (m *PostgresqlConfig10) SetRowSecurity(v *wrappers.BoolValue) { + m.RowSecurity = v +} + +func (m *PostgresqlConfig10) SetDefaultTransactionIsolation(v PostgresqlConfig10_TransactionIsolation) { + m.DefaultTransactionIsolation = v +} + +func (m *PostgresqlConfig10) SetStatementTimeout(v *wrappers.Int64Value) { + m.StatementTimeout = v +} + +func (m *PostgresqlConfig10) SetLockTimeout(v *wrappers.Int64Value) { + m.LockTimeout = v +} + +func (m *PostgresqlConfig10) SetIdleInTransactionSessionTimeout(v *wrappers.Int64Value) { + m.IdleInTransactionSessionTimeout = v +} + +func (m *PostgresqlConfig10) SetByteaOutput(v PostgresqlConfig10_ByteaOutput) { + m.ByteaOutput = v +} + +func (m *PostgresqlConfig10) SetXmlbinary(v PostgresqlConfig10_XmlBinary) { + m.Xmlbinary = v +} + +func (m *PostgresqlConfig10) SetXmloption(v PostgresqlConfig10_XmlOption) { + m.Xmloption = v +} + +func (m *PostgresqlConfig10) SetGinPendingListLimit(v *wrappers.Int64Value) { + m.GinPendingListLimit = v +} + +func (m *PostgresqlConfig10) SetDeadlockTimeout(v *wrappers.Int64Value) { + m.DeadlockTimeout = v +} + +func (m *PostgresqlConfig10) SetMaxLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxLocksPerTransaction = v +} + +func (m *PostgresqlConfig10) SetMaxPredLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxPredLocksPerTransaction = v +} + +func (m *PostgresqlConfig10) SetArrayNulls(v *wrappers.BoolValue) { + m.ArrayNulls = v +} + +func (m *PostgresqlConfig10) SetBackslashQuote(v PostgresqlConfig10_BackslashQuote) { + m.BackslashQuote = v +} + +func (m *PostgresqlConfig10) SetDefaultWithOids(v *wrappers.BoolValue) { + m.DefaultWithOids = v +} + +func (m *PostgresqlConfig10) SetEscapeStringWarning(v *wrappers.BoolValue) { + m.EscapeStringWarning = v +} + +func (m *PostgresqlConfig10) SetLoCompatPrivileges(v *wrappers.BoolValue) { + m.LoCompatPrivileges = v +} + +func (m *PostgresqlConfig10) SetOperatorPrecedenceWarning(v *wrappers.BoolValue) { + m.OperatorPrecedenceWarning = v +} + +func (m *PostgresqlConfig10) SetQuoteAllIdentifiers(v *wrappers.BoolValue) { + m.QuoteAllIdentifiers = v +} + +func (m *PostgresqlConfig10) SetStandardConformingStrings(v *wrappers.BoolValue) { + m.StandardConformingStrings = v +} + +func (m *PostgresqlConfig10) SetSynchronizeSeqscans(v *wrappers.BoolValue) { + m.SynchronizeSeqscans = v +} + +func (m *PostgresqlConfig10) SetTransformNullEquals(v *wrappers.BoolValue) { + m.TransformNullEquals = v +} + +func (m *PostgresqlConfig10) SetExitOnError(v *wrappers.BoolValue) { + m.ExitOnError = v +} + +func (m *PostgresqlConfig10) SetSeqPageCost(v *wrappers.DoubleValue) { + m.SeqPageCost = v +} + +func (m *PostgresqlConfig10) SetRandomPageCost(v *wrappers.DoubleValue) { + m.RandomPageCost = v +} + +func (m *PostgresqlConfig10) SetAutovacuumMaxWorkers(v *wrappers.Int64Value) { + m.AutovacuumMaxWorkers = v +} + +func (m *PostgresqlConfig10) SetAutovacuumVacuumCostDelay(v *wrappers.Int64Value) { + m.AutovacuumVacuumCostDelay = v +} + +func (m *PostgresqlConfig10) SetAutovacuumVacuumCostLimit(v *wrappers.Int64Value) { + m.AutovacuumVacuumCostLimit = v +} + +func (m *PostgresqlConfig10) SetAutovacuumNaptime(v *wrappers.Int64Value) { + m.AutovacuumNaptime = v +} + +func (m *PostgresqlConfig10) SetArchiveTimeout(v *wrappers.Int64Value) { + m.ArchiveTimeout = v +} + +func (m *PostgresqlConfig10) SetTrackActivityQuerySize(v *wrappers.Int64Value) { + m.TrackActivityQuerySize = v +} + +func (m *PostgresqlConfig10) SetEnableBitmapscan(v *wrappers.BoolValue) { + m.EnableBitmapscan = v +} + +func (m *PostgresqlConfig10) SetEnableHashagg(v *wrappers.BoolValue) { + m.EnableHashagg = v +} + +func (m *PostgresqlConfig10) SetEnableHashjoin(v *wrappers.BoolValue) { + m.EnableHashjoin = v +} + +func (m *PostgresqlConfig10) SetEnableIndexscan(v *wrappers.BoolValue) { + m.EnableIndexscan = v +} + +func (m *PostgresqlConfig10) SetEnableIndexonlyscan(v *wrappers.BoolValue) { + m.EnableIndexonlyscan = v +} + +func (m *PostgresqlConfig10) SetEnableMaterial(v *wrappers.BoolValue) { + m.EnableMaterial = v +} + +func (m *PostgresqlConfig10) SetEnableMergejoin(v *wrappers.BoolValue) { + m.EnableMergejoin = v +} + +func (m *PostgresqlConfig10) SetEnableNestloop(v *wrappers.BoolValue) { + m.EnableNestloop = v +} + +func (m *PostgresqlConfig10) SetEnableSeqscan(v *wrappers.BoolValue) { + m.EnableSeqscan = v +} + +func (m *PostgresqlConfig10) SetEnableSort(v *wrappers.BoolValue) { + m.EnableSort = v +} + +func (m *PostgresqlConfig10) SetEnableTidscan(v *wrappers.BoolValue) { + m.EnableTidscan = v +} + +func (m *PostgresqlConfig10) SetMaxWorkerProcesses(v *wrappers.Int64Value) { + m.MaxWorkerProcesses = v +} + +func (m *PostgresqlConfig10) SetMaxParallelWorkers(v *wrappers.Int64Value) { + m.MaxParallelWorkers = v +} + +func (m *PostgresqlConfig10) SetMaxParallelWorkersPerGather(v *wrappers.Int64Value) { + m.MaxParallelWorkersPerGather = v +} + +func (m *PostgresqlConfig10) SetAutovacuumVacuumScaleFactor(v *wrappers.DoubleValue) { + m.AutovacuumVacuumScaleFactor = v +} + +func (m *PostgresqlConfig10) SetAutovacuumAnalyzeScaleFactor(v *wrappers.DoubleValue) { + m.AutovacuumAnalyzeScaleFactor = v +} + +func (m *PostgresqlConfig10) SetDefaultTransactionReadOnly(v *wrappers.BoolValue) { + m.DefaultTransactionReadOnly = v +} + +func (m *PostgresqlConfig10) SetTimezone(v string) { + m.Timezone = v +} + +func (m *PostgresqlConfig10) SetEffectiveIoConcurrency(v *wrappers.Int64Value) { + m.EffectiveIoConcurrency = v +} + +func (m *PostgresqlConfig10) SetEffectiveCacheSize(v *wrappers.Int64Value) { + m.EffectiveCacheSize = v +} + +func (m *PostgresqlConfig10) SetSharedPreloadLibraries(v []PostgresqlConfig10_SharedPreloadLibraries) { + m.SharedPreloadLibraries = v +} + +func (m *PostgresqlConfig10) SetAutoExplainLogMinDuration(v *wrappers.Int64Value) { + m.AutoExplainLogMinDuration = v +} + +func (m *PostgresqlConfig10) SetAutoExplainLogAnalyze(v *wrappers.BoolValue) { + m.AutoExplainLogAnalyze = v +} + +func (m *PostgresqlConfig10) SetAutoExplainLogBuffers(v *wrappers.BoolValue) { + m.AutoExplainLogBuffers = v +} + +func (m *PostgresqlConfig10) SetAutoExplainLogTiming(v *wrappers.BoolValue) { + m.AutoExplainLogTiming = v +} + +func (m *PostgresqlConfig10) SetAutoExplainLogTriggers(v *wrappers.BoolValue) { + m.AutoExplainLogTriggers = v +} + +func (m *PostgresqlConfig10) SetAutoExplainLogVerbose(v *wrappers.BoolValue) { + m.AutoExplainLogVerbose = v +} + +func (m *PostgresqlConfig10) SetAutoExplainLogNestedStatements(v *wrappers.BoolValue) { + m.AutoExplainLogNestedStatements = v +} + +func (m *PostgresqlConfig10) SetAutoExplainSampleRate(v *wrappers.DoubleValue) { + m.AutoExplainSampleRate = v +} + +func (m *PostgresqlConfig10) SetPgHintPlanEnableHint(v *wrappers.BoolValue) { + m.PgHintPlanEnableHint = v +} + +func (m *PostgresqlConfig10) SetPgHintPlanEnableHintTable(v *wrappers.BoolValue) { + m.PgHintPlanEnableHintTable = v +} + +func (m *PostgresqlConfig10) SetPgHintPlanDebugPrint(v PostgresqlConfig10_PgHintPlanDebugPrint) { + m.PgHintPlanDebugPrint = v +} + +func (m *PostgresqlConfig10) SetPgHintPlanMessageLevel(v PostgresqlConfig10_LogLevel) { + m.PgHintPlanMessageLevel = v +} + +func (m *PostgresqlConfigSet10) SetEffectiveConfig(v *PostgresqlConfig10) { + m.EffectiveConfig = v +} + +func (m *PostgresqlConfigSet10) SetUserConfig(v *PostgresqlConfig10) { + m.UserConfig = v +} + +func (m *PostgresqlConfigSet10) SetDefaultConfig(v *PostgresqlConfig10) { + m.DefaultConfig = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql10_1c.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql10_1c.pb.go new file mode 100644 index 000000000..ed3b90470 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql10_1c.pb.go @@ -0,0 +1,1751 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/mdb/postgresql/v1/config/postgresql10_1c.proto + +package postgresql + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type PostgresqlConfig10_1C_WalLevel int32 + +const ( + PostgresqlConfig10_1C_WAL_LEVEL_UNSPECIFIED PostgresqlConfig10_1C_WalLevel = 0 + PostgresqlConfig10_1C_WAL_LEVEL_REPLICA PostgresqlConfig10_1C_WalLevel = 1 + PostgresqlConfig10_1C_WAL_LEVEL_LOGICAL PostgresqlConfig10_1C_WalLevel = 2 +) + +var PostgresqlConfig10_1C_WalLevel_name = map[int32]string{ + 0: "WAL_LEVEL_UNSPECIFIED", + 1: "WAL_LEVEL_REPLICA", + 2: "WAL_LEVEL_LOGICAL", +} + +var PostgresqlConfig10_1C_WalLevel_value = map[string]int32{ + "WAL_LEVEL_UNSPECIFIED": 0, + "WAL_LEVEL_REPLICA": 1, + "WAL_LEVEL_LOGICAL": 2, +} + +func (x PostgresqlConfig10_1C_WalLevel) String() string { + return proto.EnumName(PostgresqlConfig10_1C_WalLevel_name, int32(x)) +} + +func (PostgresqlConfig10_1C_WalLevel) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f14eb125b963dff2, []int{0, 0} +} + +type PostgresqlConfig10_1C_SynchronousCommit int32 + +const ( + PostgresqlConfig10_1C_SYNCHRONOUS_COMMIT_UNSPECIFIED PostgresqlConfig10_1C_SynchronousCommit = 0 + PostgresqlConfig10_1C_SYNCHRONOUS_COMMIT_ON PostgresqlConfig10_1C_SynchronousCommit = 1 + PostgresqlConfig10_1C_SYNCHRONOUS_COMMIT_OFF PostgresqlConfig10_1C_SynchronousCommit = 2 + PostgresqlConfig10_1C_SYNCHRONOUS_COMMIT_LOCAL PostgresqlConfig10_1C_SynchronousCommit = 3 + PostgresqlConfig10_1C_SYNCHRONOUS_COMMIT_REMOTE_WRITE PostgresqlConfig10_1C_SynchronousCommit = 4 + PostgresqlConfig10_1C_SYNCHRONOUS_COMMIT_REMOTE_APPLY PostgresqlConfig10_1C_SynchronousCommit = 5 +) + +var PostgresqlConfig10_1C_SynchronousCommit_name = map[int32]string{ + 0: "SYNCHRONOUS_COMMIT_UNSPECIFIED", + 1: "SYNCHRONOUS_COMMIT_ON", + 2: "SYNCHRONOUS_COMMIT_OFF", + 3: "SYNCHRONOUS_COMMIT_LOCAL", + 4: "SYNCHRONOUS_COMMIT_REMOTE_WRITE", + 5: "SYNCHRONOUS_COMMIT_REMOTE_APPLY", +} + +var PostgresqlConfig10_1C_SynchronousCommit_value = map[string]int32{ + "SYNCHRONOUS_COMMIT_UNSPECIFIED": 0, + "SYNCHRONOUS_COMMIT_ON": 1, + "SYNCHRONOUS_COMMIT_OFF": 2, + "SYNCHRONOUS_COMMIT_LOCAL": 3, + "SYNCHRONOUS_COMMIT_REMOTE_WRITE": 4, + "SYNCHRONOUS_COMMIT_REMOTE_APPLY": 5, +} + +func (x PostgresqlConfig10_1C_SynchronousCommit) String() string { + return proto.EnumName(PostgresqlConfig10_1C_SynchronousCommit_name, int32(x)) +} + +func (PostgresqlConfig10_1C_SynchronousCommit) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f14eb125b963dff2, []int{0, 1} +} + +type PostgresqlConfig10_1C_ConstraintExclusion int32 + +const ( + PostgresqlConfig10_1C_CONSTRAINT_EXCLUSION_UNSPECIFIED PostgresqlConfig10_1C_ConstraintExclusion = 0 + PostgresqlConfig10_1C_CONSTRAINT_EXCLUSION_ON PostgresqlConfig10_1C_ConstraintExclusion = 1 + PostgresqlConfig10_1C_CONSTRAINT_EXCLUSION_OFF PostgresqlConfig10_1C_ConstraintExclusion = 2 + PostgresqlConfig10_1C_CONSTRAINT_EXCLUSION_PARTITION PostgresqlConfig10_1C_ConstraintExclusion = 3 +) + +var PostgresqlConfig10_1C_ConstraintExclusion_name = map[int32]string{ + 0: "CONSTRAINT_EXCLUSION_UNSPECIFIED", + 1: "CONSTRAINT_EXCLUSION_ON", + 2: "CONSTRAINT_EXCLUSION_OFF", + 3: "CONSTRAINT_EXCLUSION_PARTITION", +} + +var PostgresqlConfig10_1C_ConstraintExclusion_value = map[string]int32{ + "CONSTRAINT_EXCLUSION_UNSPECIFIED": 0, + "CONSTRAINT_EXCLUSION_ON": 1, + "CONSTRAINT_EXCLUSION_OFF": 2, + "CONSTRAINT_EXCLUSION_PARTITION": 3, +} + +func (x PostgresqlConfig10_1C_ConstraintExclusion) String() string { + return proto.EnumName(PostgresqlConfig10_1C_ConstraintExclusion_name, int32(x)) +} + +func (PostgresqlConfig10_1C_ConstraintExclusion) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f14eb125b963dff2, []int{0, 2} +} + +type PostgresqlConfig10_1C_ForceParallelMode int32 + +const ( + PostgresqlConfig10_1C_FORCE_PARALLEL_MODE_UNSPECIFIED PostgresqlConfig10_1C_ForceParallelMode = 0 + PostgresqlConfig10_1C_FORCE_PARALLEL_MODE_ON PostgresqlConfig10_1C_ForceParallelMode = 1 + PostgresqlConfig10_1C_FORCE_PARALLEL_MODE_OFF PostgresqlConfig10_1C_ForceParallelMode = 2 + PostgresqlConfig10_1C_FORCE_PARALLEL_MODE_REGRESS PostgresqlConfig10_1C_ForceParallelMode = 3 +) + +var PostgresqlConfig10_1C_ForceParallelMode_name = map[int32]string{ + 0: "FORCE_PARALLEL_MODE_UNSPECIFIED", + 1: "FORCE_PARALLEL_MODE_ON", + 2: "FORCE_PARALLEL_MODE_OFF", + 3: "FORCE_PARALLEL_MODE_REGRESS", +} + +var PostgresqlConfig10_1C_ForceParallelMode_value = map[string]int32{ + "FORCE_PARALLEL_MODE_UNSPECIFIED": 0, + "FORCE_PARALLEL_MODE_ON": 1, + "FORCE_PARALLEL_MODE_OFF": 2, + "FORCE_PARALLEL_MODE_REGRESS": 3, +} + +func (x PostgresqlConfig10_1C_ForceParallelMode) String() string { + return proto.EnumName(PostgresqlConfig10_1C_ForceParallelMode_name, int32(x)) +} + +func (PostgresqlConfig10_1C_ForceParallelMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f14eb125b963dff2, []int{0, 3} +} + +type PostgresqlConfig10_1C_LogLevel int32 + +const ( + PostgresqlConfig10_1C_LOG_LEVEL_UNSPECIFIED PostgresqlConfig10_1C_LogLevel = 0 + PostgresqlConfig10_1C_LOG_LEVEL_DEBUG5 PostgresqlConfig10_1C_LogLevel = 1 + PostgresqlConfig10_1C_LOG_LEVEL_DEBUG4 PostgresqlConfig10_1C_LogLevel = 2 + PostgresqlConfig10_1C_LOG_LEVEL_DEBUG3 PostgresqlConfig10_1C_LogLevel = 3 + PostgresqlConfig10_1C_LOG_LEVEL_DEBUG2 PostgresqlConfig10_1C_LogLevel = 4 + PostgresqlConfig10_1C_LOG_LEVEL_DEBUG1 PostgresqlConfig10_1C_LogLevel = 5 + PostgresqlConfig10_1C_LOG_LEVEL_LOG PostgresqlConfig10_1C_LogLevel = 6 + PostgresqlConfig10_1C_LOG_LEVEL_NOTICE PostgresqlConfig10_1C_LogLevel = 7 + PostgresqlConfig10_1C_LOG_LEVEL_WARNING PostgresqlConfig10_1C_LogLevel = 8 + PostgresqlConfig10_1C_LOG_LEVEL_ERROR PostgresqlConfig10_1C_LogLevel = 9 + PostgresqlConfig10_1C_LOG_LEVEL_FATAL PostgresqlConfig10_1C_LogLevel = 10 + PostgresqlConfig10_1C_LOG_LEVEL_PANIC PostgresqlConfig10_1C_LogLevel = 11 +) + +var PostgresqlConfig10_1C_LogLevel_name = map[int32]string{ + 0: "LOG_LEVEL_UNSPECIFIED", + 1: "LOG_LEVEL_DEBUG5", + 2: "LOG_LEVEL_DEBUG4", + 3: "LOG_LEVEL_DEBUG3", + 4: "LOG_LEVEL_DEBUG2", + 5: "LOG_LEVEL_DEBUG1", + 6: "LOG_LEVEL_LOG", + 7: "LOG_LEVEL_NOTICE", + 8: "LOG_LEVEL_WARNING", + 9: "LOG_LEVEL_ERROR", + 10: "LOG_LEVEL_FATAL", + 11: "LOG_LEVEL_PANIC", +} + +var PostgresqlConfig10_1C_LogLevel_value = map[string]int32{ + "LOG_LEVEL_UNSPECIFIED": 0, + "LOG_LEVEL_DEBUG5": 1, + "LOG_LEVEL_DEBUG4": 2, + "LOG_LEVEL_DEBUG3": 3, + "LOG_LEVEL_DEBUG2": 4, + "LOG_LEVEL_DEBUG1": 5, + "LOG_LEVEL_LOG": 6, + "LOG_LEVEL_NOTICE": 7, + "LOG_LEVEL_WARNING": 8, + "LOG_LEVEL_ERROR": 9, + "LOG_LEVEL_FATAL": 10, + "LOG_LEVEL_PANIC": 11, +} + +func (x PostgresqlConfig10_1C_LogLevel) String() string { + return proto.EnumName(PostgresqlConfig10_1C_LogLevel_name, int32(x)) +} + +func (PostgresqlConfig10_1C_LogLevel) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f14eb125b963dff2, []int{0, 4} +} + +type PostgresqlConfig10_1C_LogErrorVerbosity int32 + +const ( + PostgresqlConfig10_1C_LOG_ERROR_VERBOSITY_UNSPECIFIED PostgresqlConfig10_1C_LogErrorVerbosity = 0 + PostgresqlConfig10_1C_LOG_ERROR_VERBOSITY_TERSE PostgresqlConfig10_1C_LogErrorVerbosity = 1 + PostgresqlConfig10_1C_LOG_ERROR_VERBOSITY_DEFAULT PostgresqlConfig10_1C_LogErrorVerbosity = 2 + PostgresqlConfig10_1C_LOG_ERROR_VERBOSITY_VERBOSE PostgresqlConfig10_1C_LogErrorVerbosity = 3 +) + +var PostgresqlConfig10_1C_LogErrorVerbosity_name = map[int32]string{ + 0: "LOG_ERROR_VERBOSITY_UNSPECIFIED", + 1: "LOG_ERROR_VERBOSITY_TERSE", + 2: "LOG_ERROR_VERBOSITY_DEFAULT", + 3: "LOG_ERROR_VERBOSITY_VERBOSE", +} + +var PostgresqlConfig10_1C_LogErrorVerbosity_value = map[string]int32{ + "LOG_ERROR_VERBOSITY_UNSPECIFIED": 0, + "LOG_ERROR_VERBOSITY_TERSE": 1, + "LOG_ERROR_VERBOSITY_DEFAULT": 2, + "LOG_ERROR_VERBOSITY_VERBOSE": 3, +} + +func (x PostgresqlConfig10_1C_LogErrorVerbosity) String() string { + return proto.EnumName(PostgresqlConfig10_1C_LogErrorVerbosity_name, int32(x)) +} + +func (PostgresqlConfig10_1C_LogErrorVerbosity) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f14eb125b963dff2, []int{0, 5} +} + +type PostgresqlConfig10_1C_LogStatement int32 + +const ( + PostgresqlConfig10_1C_LOG_STATEMENT_UNSPECIFIED PostgresqlConfig10_1C_LogStatement = 0 + PostgresqlConfig10_1C_LOG_STATEMENT_NONE PostgresqlConfig10_1C_LogStatement = 1 + PostgresqlConfig10_1C_LOG_STATEMENT_DDL PostgresqlConfig10_1C_LogStatement = 2 + PostgresqlConfig10_1C_LOG_STATEMENT_MOD PostgresqlConfig10_1C_LogStatement = 3 + PostgresqlConfig10_1C_LOG_STATEMENT_ALL PostgresqlConfig10_1C_LogStatement = 4 +) + +var PostgresqlConfig10_1C_LogStatement_name = map[int32]string{ + 0: "LOG_STATEMENT_UNSPECIFIED", + 1: "LOG_STATEMENT_NONE", + 2: "LOG_STATEMENT_DDL", + 3: "LOG_STATEMENT_MOD", + 4: "LOG_STATEMENT_ALL", +} + +var PostgresqlConfig10_1C_LogStatement_value = map[string]int32{ + "LOG_STATEMENT_UNSPECIFIED": 0, + "LOG_STATEMENT_NONE": 1, + "LOG_STATEMENT_DDL": 2, + "LOG_STATEMENT_MOD": 3, + "LOG_STATEMENT_ALL": 4, +} + +func (x PostgresqlConfig10_1C_LogStatement) String() string { + return proto.EnumName(PostgresqlConfig10_1C_LogStatement_name, int32(x)) +} + +func (PostgresqlConfig10_1C_LogStatement) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f14eb125b963dff2, []int{0, 6} +} + +type PostgresqlConfig10_1C_TransactionIsolation int32 + +const ( + PostgresqlConfig10_1C_TRANSACTION_ISOLATION_UNSPECIFIED PostgresqlConfig10_1C_TransactionIsolation = 0 + PostgresqlConfig10_1C_TRANSACTION_ISOLATION_READ_UNCOMMITTED PostgresqlConfig10_1C_TransactionIsolation = 1 + PostgresqlConfig10_1C_TRANSACTION_ISOLATION_READ_COMMITTED PostgresqlConfig10_1C_TransactionIsolation = 2 + PostgresqlConfig10_1C_TRANSACTION_ISOLATION_REPEATABLE_READ PostgresqlConfig10_1C_TransactionIsolation = 3 + PostgresqlConfig10_1C_TRANSACTION_ISOLATION_SERIALIZABLE PostgresqlConfig10_1C_TransactionIsolation = 4 +) + +var PostgresqlConfig10_1C_TransactionIsolation_name = map[int32]string{ + 0: "TRANSACTION_ISOLATION_UNSPECIFIED", + 1: "TRANSACTION_ISOLATION_READ_UNCOMMITTED", + 2: "TRANSACTION_ISOLATION_READ_COMMITTED", + 3: "TRANSACTION_ISOLATION_REPEATABLE_READ", + 4: "TRANSACTION_ISOLATION_SERIALIZABLE", +} + +var PostgresqlConfig10_1C_TransactionIsolation_value = map[string]int32{ + "TRANSACTION_ISOLATION_UNSPECIFIED": 0, + "TRANSACTION_ISOLATION_READ_UNCOMMITTED": 1, + "TRANSACTION_ISOLATION_READ_COMMITTED": 2, + "TRANSACTION_ISOLATION_REPEATABLE_READ": 3, + "TRANSACTION_ISOLATION_SERIALIZABLE": 4, +} + +func (x PostgresqlConfig10_1C_TransactionIsolation) String() string { + return proto.EnumName(PostgresqlConfig10_1C_TransactionIsolation_name, int32(x)) +} + +func (PostgresqlConfig10_1C_TransactionIsolation) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f14eb125b963dff2, []int{0, 7} +} + +type PostgresqlConfig10_1C_ByteaOutput int32 + +const ( + PostgresqlConfig10_1C_BYTEA_OUTPUT_UNSPECIFIED PostgresqlConfig10_1C_ByteaOutput = 0 + PostgresqlConfig10_1C_BYTEA_OUTPUT_HEX PostgresqlConfig10_1C_ByteaOutput = 1 + PostgresqlConfig10_1C_BYTEA_OUTPUT_ESCAPED PostgresqlConfig10_1C_ByteaOutput = 2 +) + +var PostgresqlConfig10_1C_ByteaOutput_name = map[int32]string{ + 0: "BYTEA_OUTPUT_UNSPECIFIED", + 1: "BYTEA_OUTPUT_HEX", + 2: "BYTEA_OUTPUT_ESCAPED", +} + +var PostgresqlConfig10_1C_ByteaOutput_value = map[string]int32{ + "BYTEA_OUTPUT_UNSPECIFIED": 0, + "BYTEA_OUTPUT_HEX": 1, + "BYTEA_OUTPUT_ESCAPED": 2, +} + +func (x PostgresqlConfig10_1C_ByteaOutput) String() string { + return proto.EnumName(PostgresqlConfig10_1C_ByteaOutput_name, int32(x)) +} + +func (PostgresqlConfig10_1C_ByteaOutput) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f14eb125b963dff2, []int{0, 8} +} + +type PostgresqlConfig10_1C_XmlBinary int32 + +const ( + PostgresqlConfig10_1C_XML_BINARY_UNSPECIFIED PostgresqlConfig10_1C_XmlBinary = 0 + PostgresqlConfig10_1C_XML_BINARY_BASE64 PostgresqlConfig10_1C_XmlBinary = 1 + PostgresqlConfig10_1C_XML_BINARY_HEX PostgresqlConfig10_1C_XmlBinary = 2 +) + +var PostgresqlConfig10_1C_XmlBinary_name = map[int32]string{ + 0: "XML_BINARY_UNSPECIFIED", + 1: "XML_BINARY_BASE64", + 2: "XML_BINARY_HEX", +} + +var PostgresqlConfig10_1C_XmlBinary_value = map[string]int32{ + "XML_BINARY_UNSPECIFIED": 0, + "XML_BINARY_BASE64": 1, + "XML_BINARY_HEX": 2, +} + +func (x PostgresqlConfig10_1C_XmlBinary) String() string { + return proto.EnumName(PostgresqlConfig10_1C_XmlBinary_name, int32(x)) +} + +func (PostgresqlConfig10_1C_XmlBinary) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f14eb125b963dff2, []int{0, 9} +} + +type PostgresqlConfig10_1C_XmlOption int32 + +const ( + PostgresqlConfig10_1C_XML_OPTION_UNSPECIFIED PostgresqlConfig10_1C_XmlOption = 0 + PostgresqlConfig10_1C_XML_OPTION_DOCUMENT PostgresqlConfig10_1C_XmlOption = 1 + PostgresqlConfig10_1C_XML_OPTION_CONTENT PostgresqlConfig10_1C_XmlOption = 2 +) + +var PostgresqlConfig10_1C_XmlOption_name = map[int32]string{ + 0: "XML_OPTION_UNSPECIFIED", + 1: "XML_OPTION_DOCUMENT", + 2: "XML_OPTION_CONTENT", +} + +var PostgresqlConfig10_1C_XmlOption_value = map[string]int32{ + "XML_OPTION_UNSPECIFIED": 0, + "XML_OPTION_DOCUMENT": 1, + "XML_OPTION_CONTENT": 2, +} + +func (x PostgresqlConfig10_1C_XmlOption) String() string { + return proto.EnumName(PostgresqlConfig10_1C_XmlOption_name, int32(x)) +} + +func (PostgresqlConfig10_1C_XmlOption) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f14eb125b963dff2, []int{0, 10} +} + +type PostgresqlConfig10_1C_BackslashQuote int32 + +const ( + PostgresqlConfig10_1C_BACKSLASH_QUOTE_UNSPECIFIED PostgresqlConfig10_1C_BackslashQuote = 0 + PostgresqlConfig10_1C_BACKSLASH_QUOTE PostgresqlConfig10_1C_BackslashQuote = 1 + PostgresqlConfig10_1C_BACKSLASH_QUOTE_ON PostgresqlConfig10_1C_BackslashQuote = 2 + PostgresqlConfig10_1C_BACKSLASH_QUOTE_OFF PostgresqlConfig10_1C_BackslashQuote = 3 + PostgresqlConfig10_1C_BACKSLASH_QUOTE_SAFE_ENCODING PostgresqlConfig10_1C_BackslashQuote = 4 +) + +var PostgresqlConfig10_1C_BackslashQuote_name = map[int32]string{ + 0: "BACKSLASH_QUOTE_UNSPECIFIED", + 1: "BACKSLASH_QUOTE", + 2: "BACKSLASH_QUOTE_ON", + 3: "BACKSLASH_QUOTE_OFF", + 4: "BACKSLASH_QUOTE_SAFE_ENCODING", +} + +var PostgresqlConfig10_1C_BackslashQuote_value = map[string]int32{ + "BACKSLASH_QUOTE_UNSPECIFIED": 0, + "BACKSLASH_QUOTE": 1, + "BACKSLASH_QUOTE_ON": 2, + "BACKSLASH_QUOTE_OFF": 3, + "BACKSLASH_QUOTE_SAFE_ENCODING": 4, +} + +func (x PostgresqlConfig10_1C_BackslashQuote) String() string { + return proto.EnumName(PostgresqlConfig10_1C_BackslashQuote_name, int32(x)) +} + +func (PostgresqlConfig10_1C_BackslashQuote) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f14eb125b963dff2, []int{0, 11} +} + +type PostgresqlConfig10_1C_PgHintPlanDebugPrint int32 + +const ( + PostgresqlConfig10_1C_PG_HINT_PLAN_DEBUG_PRINT_UNSPECIFIED PostgresqlConfig10_1C_PgHintPlanDebugPrint = 0 + PostgresqlConfig10_1C_PG_HINT_PLAN_DEBUG_PRINT_OFF PostgresqlConfig10_1C_PgHintPlanDebugPrint = 1 + PostgresqlConfig10_1C_PG_HINT_PLAN_DEBUG_PRINT_ON PostgresqlConfig10_1C_PgHintPlanDebugPrint = 2 + PostgresqlConfig10_1C_PG_HINT_PLAN_DEBUG_PRINT_DETAILED PostgresqlConfig10_1C_PgHintPlanDebugPrint = 3 + PostgresqlConfig10_1C_PG_HINT_PLAN_DEBUG_PRINT_VERBOSE PostgresqlConfig10_1C_PgHintPlanDebugPrint = 4 +) + +var PostgresqlConfig10_1C_PgHintPlanDebugPrint_name = map[int32]string{ + 0: "PG_HINT_PLAN_DEBUG_PRINT_UNSPECIFIED", + 1: "PG_HINT_PLAN_DEBUG_PRINT_OFF", + 2: "PG_HINT_PLAN_DEBUG_PRINT_ON", + 3: "PG_HINT_PLAN_DEBUG_PRINT_DETAILED", + 4: "PG_HINT_PLAN_DEBUG_PRINT_VERBOSE", +} + +var PostgresqlConfig10_1C_PgHintPlanDebugPrint_value = map[string]int32{ + "PG_HINT_PLAN_DEBUG_PRINT_UNSPECIFIED": 0, + "PG_HINT_PLAN_DEBUG_PRINT_OFF": 1, + "PG_HINT_PLAN_DEBUG_PRINT_ON": 2, + "PG_HINT_PLAN_DEBUG_PRINT_DETAILED": 3, + "PG_HINT_PLAN_DEBUG_PRINT_VERBOSE": 4, +} + +func (x PostgresqlConfig10_1C_PgHintPlanDebugPrint) String() string { + return proto.EnumName(PostgresqlConfig10_1C_PgHintPlanDebugPrint_name, int32(x)) +} + +func (PostgresqlConfig10_1C_PgHintPlanDebugPrint) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f14eb125b963dff2, []int{0, 12} +} + +type PostgresqlConfig10_1C_SharedPreloadLibraries int32 + +const ( + PostgresqlConfig10_1C_SHARED_PRELOAD_LIBRARIES_UNSPECIFIED PostgresqlConfig10_1C_SharedPreloadLibraries = 0 + PostgresqlConfig10_1C_SHARED_PRELOAD_LIBRARIES_AUTO_EXPLAIN PostgresqlConfig10_1C_SharedPreloadLibraries = 1 + PostgresqlConfig10_1C_SHARED_PRELOAD_LIBRARIES_PG_HINT_PLAN PostgresqlConfig10_1C_SharedPreloadLibraries = 2 +) + +var PostgresqlConfig10_1C_SharedPreloadLibraries_name = map[int32]string{ + 0: "SHARED_PRELOAD_LIBRARIES_UNSPECIFIED", + 1: "SHARED_PRELOAD_LIBRARIES_AUTO_EXPLAIN", + 2: "SHARED_PRELOAD_LIBRARIES_PG_HINT_PLAN", +} + +var PostgresqlConfig10_1C_SharedPreloadLibraries_value = map[string]int32{ + "SHARED_PRELOAD_LIBRARIES_UNSPECIFIED": 0, + "SHARED_PRELOAD_LIBRARIES_AUTO_EXPLAIN": 1, + "SHARED_PRELOAD_LIBRARIES_PG_HINT_PLAN": 2, +} + +func (x PostgresqlConfig10_1C_SharedPreloadLibraries) String() string { + return proto.EnumName(PostgresqlConfig10_1C_SharedPreloadLibraries_name, int32(x)) +} + +func (PostgresqlConfig10_1C_SharedPreloadLibraries) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f14eb125b963dff2, []int{0, 13} +} + +// Options and structure of `PostgresqlConfig` reflects PostgreSQL configuration file +// parameters whose detailed description is available in +// [PostgreSQL documentation](https://www.postgresql.org/docs/10/runtime-config.html). +type PostgresqlConfig10_1C struct { + MaxConnections *wrappers.Int64Value `protobuf:"bytes,1,opt,name=max_connections,json=maxConnections,proto3" json:"max_connections,omitempty"` + SharedBuffers *wrappers.Int64Value `protobuf:"bytes,2,opt,name=shared_buffers,json=sharedBuffers,proto3" json:"shared_buffers,omitempty"` + TempBuffers *wrappers.Int64Value `protobuf:"bytes,3,opt,name=temp_buffers,json=tempBuffers,proto3" json:"temp_buffers,omitempty"` + MaxPreparedTransactions *wrappers.Int64Value `protobuf:"bytes,4,opt,name=max_prepared_transactions,json=maxPreparedTransactions,proto3" json:"max_prepared_transactions,omitempty"` + WorkMem *wrappers.Int64Value `protobuf:"bytes,5,opt,name=work_mem,json=workMem,proto3" json:"work_mem,omitempty"` + MaintenanceWorkMem *wrappers.Int64Value `protobuf:"bytes,6,opt,name=maintenance_work_mem,json=maintenanceWorkMem,proto3" json:"maintenance_work_mem,omitempty"` + ReplacementSortTuples *wrappers.Int64Value `protobuf:"bytes,7,opt,name=replacement_sort_tuples,json=replacementSortTuples,proto3" json:"replacement_sort_tuples,omitempty"` + AutovacuumWorkMem *wrappers.Int64Value `protobuf:"bytes,8,opt,name=autovacuum_work_mem,json=autovacuumWorkMem,proto3" json:"autovacuum_work_mem,omitempty"` + TempFileLimit *wrappers.Int64Value `protobuf:"bytes,9,opt,name=temp_file_limit,json=tempFileLimit,proto3" json:"temp_file_limit,omitempty"` + VacuumCostDelay *wrappers.Int64Value `protobuf:"bytes,10,opt,name=vacuum_cost_delay,json=vacuumCostDelay,proto3" json:"vacuum_cost_delay,omitempty"` + VacuumCostPageHit *wrappers.Int64Value `protobuf:"bytes,11,opt,name=vacuum_cost_page_hit,json=vacuumCostPageHit,proto3" json:"vacuum_cost_page_hit,omitempty"` + VacuumCostPageMiss *wrappers.Int64Value `protobuf:"bytes,12,opt,name=vacuum_cost_page_miss,json=vacuumCostPageMiss,proto3" json:"vacuum_cost_page_miss,omitempty"` + VacuumCostPageDirty *wrappers.Int64Value `protobuf:"bytes,13,opt,name=vacuum_cost_page_dirty,json=vacuumCostPageDirty,proto3" json:"vacuum_cost_page_dirty,omitempty"` + VacuumCostLimit *wrappers.Int64Value `protobuf:"bytes,14,opt,name=vacuum_cost_limit,json=vacuumCostLimit,proto3" json:"vacuum_cost_limit,omitempty"` + BgwriterDelay *wrappers.Int64Value `protobuf:"bytes,15,opt,name=bgwriter_delay,json=bgwriterDelay,proto3" json:"bgwriter_delay,omitempty"` + BgwriterLruMaxpages *wrappers.Int64Value `protobuf:"bytes,16,opt,name=bgwriter_lru_maxpages,json=bgwriterLruMaxpages,proto3" json:"bgwriter_lru_maxpages,omitempty"` + BgwriterLruMultiplier *wrappers.DoubleValue `protobuf:"bytes,17,opt,name=bgwriter_lru_multiplier,json=bgwriterLruMultiplier,proto3" json:"bgwriter_lru_multiplier,omitempty"` + BgwriterFlushAfter *wrappers.Int64Value `protobuf:"bytes,18,opt,name=bgwriter_flush_after,json=bgwriterFlushAfter,proto3" json:"bgwriter_flush_after,omitempty"` + BackendFlushAfter *wrappers.Int64Value `protobuf:"bytes,19,opt,name=backend_flush_after,json=backendFlushAfter,proto3" json:"backend_flush_after,omitempty"` + OldSnapshotThreshold *wrappers.Int64Value `protobuf:"bytes,20,opt,name=old_snapshot_threshold,json=oldSnapshotThreshold,proto3" json:"old_snapshot_threshold,omitempty"` + WalLevel PostgresqlConfig10_1C_WalLevel `protobuf:"varint,21,opt,name=wal_level,json=walLevel,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_WalLevel" json:"wal_level,omitempty"` + SynchronousCommit PostgresqlConfig10_1C_SynchronousCommit `protobuf:"varint,22,opt,name=synchronous_commit,json=synchronousCommit,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_SynchronousCommit" json:"synchronous_commit,omitempty"` + CheckpointTimeout *wrappers.Int64Value `protobuf:"bytes,23,opt,name=checkpoint_timeout,json=checkpointTimeout,proto3" json:"checkpoint_timeout,omitempty"` + CheckpointCompletionTarget *wrappers.DoubleValue `protobuf:"bytes,24,opt,name=checkpoint_completion_target,json=checkpointCompletionTarget,proto3" json:"checkpoint_completion_target,omitempty"` + CheckpointFlushAfter *wrappers.Int64Value `protobuf:"bytes,25,opt,name=checkpoint_flush_after,json=checkpointFlushAfter,proto3" json:"checkpoint_flush_after,omitempty"` + MaxWalSize *wrappers.Int64Value `protobuf:"bytes,26,opt,name=max_wal_size,json=maxWalSize,proto3" json:"max_wal_size,omitempty"` + MinWalSize *wrappers.Int64Value `protobuf:"bytes,27,opt,name=min_wal_size,json=minWalSize,proto3" json:"min_wal_size,omitempty"` + MaxStandbyStreamingDelay *wrappers.Int64Value `protobuf:"bytes,28,opt,name=max_standby_streaming_delay,json=maxStandbyStreamingDelay,proto3" json:"max_standby_streaming_delay,omitempty"` + DefaultStatisticsTarget *wrappers.Int64Value `protobuf:"bytes,29,opt,name=default_statistics_target,json=defaultStatisticsTarget,proto3" json:"default_statistics_target,omitempty"` + ConstraintExclusion PostgresqlConfig10_1C_ConstraintExclusion `protobuf:"varint,30,opt,name=constraint_exclusion,json=constraintExclusion,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_ConstraintExclusion" json:"constraint_exclusion,omitempty"` + CursorTupleFraction *wrappers.DoubleValue `protobuf:"bytes,31,opt,name=cursor_tuple_fraction,json=cursorTupleFraction,proto3" json:"cursor_tuple_fraction,omitempty"` + FromCollapseLimit *wrappers.Int64Value `protobuf:"bytes,32,opt,name=from_collapse_limit,json=fromCollapseLimit,proto3" json:"from_collapse_limit,omitempty"` + JoinCollapseLimit *wrappers.Int64Value `protobuf:"bytes,33,opt,name=join_collapse_limit,json=joinCollapseLimit,proto3" json:"join_collapse_limit,omitempty"` + ForceParallelMode PostgresqlConfig10_1C_ForceParallelMode `protobuf:"varint,34,opt,name=force_parallel_mode,json=forceParallelMode,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_ForceParallelMode" json:"force_parallel_mode,omitempty"` + ClientMinMessages PostgresqlConfig10_1C_LogLevel `protobuf:"varint,35,opt,name=client_min_messages,json=clientMinMessages,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_LogLevel" json:"client_min_messages,omitempty"` + LogMinMessages PostgresqlConfig10_1C_LogLevel `protobuf:"varint,36,opt,name=log_min_messages,json=logMinMessages,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_LogLevel" json:"log_min_messages,omitempty"` + LogMinErrorStatement PostgresqlConfig10_1C_LogLevel `protobuf:"varint,37,opt,name=log_min_error_statement,json=logMinErrorStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_LogLevel" json:"log_min_error_statement,omitempty"` + LogMinDurationStatement *wrappers.Int64Value `protobuf:"bytes,38,opt,name=log_min_duration_statement,json=logMinDurationStatement,proto3" json:"log_min_duration_statement,omitempty"` + LogCheckpoints *wrappers.BoolValue `protobuf:"bytes,39,opt,name=log_checkpoints,json=logCheckpoints,proto3" json:"log_checkpoints,omitempty"` + LogConnections *wrappers.BoolValue `protobuf:"bytes,40,opt,name=log_connections,json=logConnections,proto3" json:"log_connections,omitempty"` + LogDisconnections *wrappers.BoolValue `protobuf:"bytes,41,opt,name=log_disconnections,json=logDisconnections,proto3" json:"log_disconnections,omitempty"` + LogDuration *wrappers.BoolValue `protobuf:"bytes,42,opt,name=log_duration,json=logDuration,proto3" json:"log_duration,omitempty"` + LogErrorVerbosity PostgresqlConfig10_1C_LogErrorVerbosity `protobuf:"varint,43,opt,name=log_error_verbosity,json=logErrorVerbosity,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_LogErrorVerbosity" json:"log_error_verbosity,omitempty"` + LogLockWaits *wrappers.BoolValue `protobuf:"bytes,44,opt,name=log_lock_waits,json=logLockWaits,proto3" json:"log_lock_waits,omitempty"` + LogStatement PostgresqlConfig10_1C_LogStatement `protobuf:"varint,45,opt,name=log_statement,json=logStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_LogStatement" json:"log_statement,omitempty"` + LogTempFiles *wrappers.Int64Value `protobuf:"bytes,46,opt,name=log_temp_files,json=logTempFiles,proto3" json:"log_temp_files,omitempty"` + SearchPath string `protobuf:"bytes,47,opt,name=search_path,json=searchPath,proto3" json:"search_path,omitempty"` + RowSecurity *wrappers.BoolValue `protobuf:"bytes,48,opt,name=row_security,json=rowSecurity,proto3" json:"row_security,omitempty"` + DefaultTransactionIsolation PostgresqlConfig10_1C_TransactionIsolation `protobuf:"varint,49,opt,name=default_transaction_isolation,json=defaultTransactionIsolation,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_TransactionIsolation" json:"default_transaction_isolation,omitempty"` + StatementTimeout *wrappers.Int64Value `protobuf:"bytes,50,opt,name=statement_timeout,json=statementTimeout,proto3" json:"statement_timeout,omitempty"` + LockTimeout *wrappers.Int64Value `protobuf:"bytes,51,opt,name=lock_timeout,json=lockTimeout,proto3" json:"lock_timeout,omitempty"` + IdleInTransactionSessionTimeout *wrappers.Int64Value `protobuf:"bytes,52,opt,name=idle_in_transaction_session_timeout,json=idleInTransactionSessionTimeout,proto3" json:"idle_in_transaction_session_timeout,omitempty"` + ByteaOutput PostgresqlConfig10_1C_ByteaOutput `protobuf:"varint,53,opt,name=bytea_output,json=byteaOutput,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_ByteaOutput" json:"bytea_output,omitempty"` + Xmlbinary PostgresqlConfig10_1C_XmlBinary `protobuf:"varint,54,opt,name=xmlbinary,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_XmlBinary" json:"xmlbinary,omitempty"` + Xmloption PostgresqlConfig10_1C_XmlOption `protobuf:"varint,55,opt,name=xmloption,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_XmlOption" json:"xmloption,omitempty"` + GinPendingListLimit *wrappers.Int64Value `protobuf:"bytes,56,opt,name=gin_pending_list_limit,json=ginPendingListLimit,proto3" json:"gin_pending_list_limit,omitempty"` + DeadlockTimeout *wrappers.Int64Value `protobuf:"bytes,57,opt,name=deadlock_timeout,json=deadlockTimeout,proto3" json:"deadlock_timeout,omitempty"` + MaxLocksPerTransaction *wrappers.Int64Value `protobuf:"bytes,58,opt,name=max_locks_per_transaction,json=maxLocksPerTransaction,proto3" json:"max_locks_per_transaction,omitempty"` + MaxPredLocksPerTransaction *wrappers.Int64Value `protobuf:"bytes,59,opt,name=max_pred_locks_per_transaction,json=maxPredLocksPerTransaction,proto3" json:"max_pred_locks_per_transaction,omitempty"` + ArrayNulls *wrappers.BoolValue `protobuf:"bytes,60,opt,name=array_nulls,json=arrayNulls,proto3" json:"array_nulls,omitempty"` + BackslashQuote PostgresqlConfig10_1C_BackslashQuote `protobuf:"varint,61,opt,name=backslash_quote,json=backslashQuote,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_BackslashQuote" json:"backslash_quote,omitempty"` + DefaultWithOids *wrappers.BoolValue `protobuf:"bytes,62,opt,name=default_with_oids,json=defaultWithOids,proto3" json:"default_with_oids,omitempty"` + EscapeStringWarning *wrappers.BoolValue `protobuf:"bytes,63,opt,name=escape_string_warning,json=escapeStringWarning,proto3" json:"escape_string_warning,omitempty"` + LoCompatPrivileges *wrappers.BoolValue `protobuf:"bytes,64,opt,name=lo_compat_privileges,json=loCompatPrivileges,proto3" json:"lo_compat_privileges,omitempty"` + OperatorPrecedenceWarning *wrappers.BoolValue `protobuf:"bytes,65,opt,name=operator_precedence_warning,json=operatorPrecedenceWarning,proto3" json:"operator_precedence_warning,omitempty"` + QuoteAllIdentifiers *wrappers.BoolValue `protobuf:"bytes,66,opt,name=quote_all_identifiers,json=quoteAllIdentifiers,proto3" json:"quote_all_identifiers,omitempty"` + StandardConformingStrings *wrappers.BoolValue `protobuf:"bytes,67,opt,name=standard_conforming_strings,json=standardConformingStrings,proto3" json:"standard_conforming_strings,omitempty"` + SynchronizeSeqscans *wrappers.BoolValue `protobuf:"bytes,68,opt,name=synchronize_seqscans,json=synchronizeSeqscans,proto3" json:"synchronize_seqscans,omitempty"` + TransformNullEquals *wrappers.BoolValue `protobuf:"bytes,69,opt,name=transform_null_equals,json=transformNullEquals,proto3" json:"transform_null_equals,omitempty"` + ExitOnError *wrappers.BoolValue `protobuf:"bytes,70,opt,name=exit_on_error,json=exitOnError,proto3" json:"exit_on_error,omitempty"` + SeqPageCost *wrappers.DoubleValue `protobuf:"bytes,71,opt,name=seq_page_cost,json=seqPageCost,proto3" json:"seq_page_cost,omitempty"` + RandomPageCost *wrappers.DoubleValue `protobuf:"bytes,72,opt,name=random_page_cost,json=randomPageCost,proto3" json:"random_page_cost,omitempty"` + AutovacuumMaxWorkers *wrappers.Int64Value `protobuf:"bytes,73,opt,name=autovacuum_max_workers,json=autovacuumMaxWorkers,proto3" json:"autovacuum_max_workers,omitempty"` + AutovacuumVacuumCostDelay *wrappers.Int64Value `protobuf:"bytes,74,opt,name=autovacuum_vacuum_cost_delay,json=autovacuumVacuumCostDelay,proto3" json:"autovacuum_vacuum_cost_delay,omitempty"` + AutovacuumVacuumCostLimit *wrappers.Int64Value `protobuf:"bytes,75,opt,name=autovacuum_vacuum_cost_limit,json=autovacuumVacuumCostLimit,proto3" json:"autovacuum_vacuum_cost_limit,omitempty"` + AutovacuumNaptime *wrappers.Int64Value `protobuf:"bytes,76,opt,name=autovacuum_naptime,json=autovacuumNaptime,proto3" json:"autovacuum_naptime,omitempty"` + ArchiveTimeout *wrappers.Int64Value `protobuf:"bytes,77,opt,name=archive_timeout,json=archiveTimeout,proto3" json:"archive_timeout,omitempty"` + TrackActivityQuerySize *wrappers.Int64Value `protobuf:"bytes,78,opt,name=track_activity_query_size,json=trackActivityQuerySize,proto3" json:"track_activity_query_size,omitempty"` + EnableBitmapscan *wrappers.BoolValue `protobuf:"bytes,80,opt,name=enable_bitmapscan,json=enableBitmapscan,proto3" json:"enable_bitmapscan,omitempty"` + EnableHashagg *wrappers.BoolValue `protobuf:"bytes,81,opt,name=enable_hashagg,json=enableHashagg,proto3" json:"enable_hashagg,omitempty"` + EnableHashjoin *wrappers.BoolValue `protobuf:"bytes,82,opt,name=enable_hashjoin,json=enableHashjoin,proto3" json:"enable_hashjoin,omitempty"` + EnableIndexscan *wrappers.BoolValue `protobuf:"bytes,83,opt,name=enable_indexscan,json=enableIndexscan,proto3" json:"enable_indexscan,omitempty"` + EnableIndexonlyscan *wrappers.BoolValue `protobuf:"bytes,84,opt,name=enable_indexonlyscan,json=enableIndexonlyscan,proto3" json:"enable_indexonlyscan,omitempty"` + EnableMaterial *wrappers.BoolValue `protobuf:"bytes,85,opt,name=enable_material,json=enableMaterial,proto3" json:"enable_material,omitempty"` + EnableMergejoin *wrappers.BoolValue `protobuf:"bytes,86,opt,name=enable_mergejoin,json=enableMergejoin,proto3" json:"enable_mergejoin,omitempty"` + EnableNestloop *wrappers.BoolValue `protobuf:"bytes,87,opt,name=enable_nestloop,json=enableNestloop,proto3" json:"enable_nestloop,omitempty"` + EnableSeqscan *wrappers.BoolValue `protobuf:"bytes,88,opt,name=enable_seqscan,json=enableSeqscan,proto3" json:"enable_seqscan,omitempty"` + EnableSort *wrappers.BoolValue `protobuf:"bytes,89,opt,name=enable_sort,json=enableSort,proto3" json:"enable_sort,omitempty"` + EnableTidscan *wrappers.BoolValue `protobuf:"bytes,90,opt,name=enable_tidscan,json=enableTidscan,proto3" json:"enable_tidscan,omitempty"` + MaxWorkerProcesses *wrappers.Int64Value `protobuf:"bytes,91,opt,name=max_worker_processes,json=maxWorkerProcesses,proto3" json:"max_worker_processes,omitempty"` + MaxParallelWorkers *wrappers.Int64Value `protobuf:"bytes,92,opt,name=max_parallel_workers,json=maxParallelWorkers,proto3" json:"max_parallel_workers,omitempty"` + MaxParallelWorkersPerGather *wrappers.Int64Value `protobuf:"bytes,93,opt,name=max_parallel_workers_per_gather,json=maxParallelWorkersPerGather,proto3" json:"max_parallel_workers_per_gather,omitempty"` + AutovacuumVacuumScaleFactor *wrappers.DoubleValue `protobuf:"bytes,94,opt,name=autovacuum_vacuum_scale_factor,json=autovacuumVacuumScaleFactor,proto3" json:"autovacuum_vacuum_scale_factor,omitempty"` + AutovacuumAnalyzeScaleFactor *wrappers.DoubleValue `protobuf:"bytes,95,opt,name=autovacuum_analyze_scale_factor,json=autovacuumAnalyzeScaleFactor,proto3" json:"autovacuum_analyze_scale_factor,omitempty"` + DefaultTransactionReadOnly *wrappers.BoolValue `protobuf:"bytes,96,opt,name=default_transaction_read_only,json=defaultTransactionReadOnly,proto3" json:"default_transaction_read_only,omitempty"` + Timezone string `protobuf:"bytes,97,opt,name=timezone,proto3" json:"timezone,omitempty"` + EffectiveIoConcurrency *wrappers.Int64Value `protobuf:"bytes,98,opt,name=effective_io_concurrency,json=effectiveIoConcurrency,proto3" json:"effective_io_concurrency,omitempty"` + EffectiveCacheSize *wrappers.Int64Value `protobuf:"bytes,99,opt,name=effective_cache_size,json=effectiveCacheSize,proto3" json:"effective_cache_size,omitempty"` + SharedPreloadLibraries []PostgresqlConfig10_1C_SharedPreloadLibraries `protobuf:"varint,100,rep,packed,name=shared_preload_libraries,json=sharedPreloadLibraries,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_SharedPreloadLibraries" json:"shared_preload_libraries,omitempty"` + AutoExplainLogMinDuration *wrappers.Int64Value `protobuf:"bytes,101,opt,name=auto_explain_log_min_duration,json=autoExplainLogMinDuration,proto3" json:"auto_explain_log_min_duration,omitempty"` + AutoExplainLogAnalyze *wrappers.BoolValue `protobuf:"bytes,102,opt,name=auto_explain_log_analyze,json=autoExplainLogAnalyze,proto3" json:"auto_explain_log_analyze,omitempty"` + AutoExplainLogBuffers *wrappers.BoolValue `protobuf:"bytes,103,opt,name=auto_explain_log_buffers,json=autoExplainLogBuffers,proto3" json:"auto_explain_log_buffers,omitempty"` + AutoExplainLogTiming *wrappers.BoolValue `protobuf:"bytes,104,opt,name=auto_explain_log_timing,json=autoExplainLogTiming,proto3" json:"auto_explain_log_timing,omitempty"` + AutoExplainLogTriggers *wrappers.BoolValue `protobuf:"bytes,105,opt,name=auto_explain_log_triggers,json=autoExplainLogTriggers,proto3" json:"auto_explain_log_triggers,omitempty"` + AutoExplainLogVerbose *wrappers.BoolValue `protobuf:"bytes,106,opt,name=auto_explain_log_verbose,json=autoExplainLogVerbose,proto3" json:"auto_explain_log_verbose,omitempty"` + AutoExplainLogNestedStatements *wrappers.BoolValue `protobuf:"bytes,107,opt,name=auto_explain_log_nested_statements,json=autoExplainLogNestedStatements,proto3" json:"auto_explain_log_nested_statements,omitempty"` + AutoExplainSampleRate *wrappers.DoubleValue `protobuf:"bytes,108,opt,name=auto_explain_sample_rate,json=autoExplainSampleRate,proto3" json:"auto_explain_sample_rate,omitempty"` + PgHintPlanEnableHint *wrappers.BoolValue `protobuf:"bytes,109,opt,name=pg_hint_plan_enable_hint,json=pgHintPlanEnableHint,proto3" json:"pg_hint_plan_enable_hint,omitempty"` + PgHintPlanEnableHintTable *wrappers.BoolValue `protobuf:"bytes,110,opt,name=pg_hint_plan_enable_hint_table,json=pgHintPlanEnableHintTable,proto3" json:"pg_hint_plan_enable_hint_table,omitempty"` + PgHintPlanDebugPrint PostgresqlConfig10_1C_PgHintPlanDebugPrint `protobuf:"varint,111,opt,name=pg_hint_plan_debug_print,json=pgHintPlanDebugPrint,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_PgHintPlanDebugPrint" json:"pg_hint_plan_debug_print,omitempty"` + PgHintPlanMessageLevel PostgresqlConfig10_1C_LogLevel `protobuf:"varint,112,opt,name=pg_hint_plan_message_level,json=pgHintPlanMessageLevel,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_LogLevel" json:"pg_hint_plan_message_level,omitempty"` + OnlineAnalyzeEnable *wrappers.BoolValue `protobuf:"bytes,113,opt,name=online_analyze_enable,json=onlineAnalyzeEnable,proto3" json:"online_analyze_enable,omitempty"` + PlantunerFixEmptyTable *wrappers.BoolValue `protobuf:"bytes,114,opt,name=plantuner_fix_empty_table,json=plantunerFixEmptyTable,proto3" json:"plantuner_fix_empty_table,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PostgresqlConfig10_1C) Reset() { *m = PostgresqlConfig10_1C{} } +func (m *PostgresqlConfig10_1C) String() string { return proto.CompactTextString(m) } +func (*PostgresqlConfig10_1C) ProtoMessage() {} +func (*PostgresqlConfig10_1C) Descriptor() ([]byte, []int) { + return fileDescriptor_f14eb125b963dff2, []int{0} +} + +func (m *PostgresqlConfig10_1C) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PostgresqlConfig10_1C.Unmarshal(m, b) +} +func (m *PostgresqlConfig10_1C) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PostgresqlConfig10_1C.Marshal(b, m, deterministic) +} +func (m *PostgresqlConfig10_1C) XXX_Merge(src proto.Message) { + xxx_messageInfo_PostgresqlConfig10_1C.Merge(m, src) +} +func (m *PostgresqlConfig10_1C) XXX_Size() int { + return xxx_messageInfo_PostgresqlConfig10_1C.Size(m) +} +func (m *PostgresqlConfig10_1C) XXX_DiscardUnknown() { + xxx_messageInfo_PostgresqlConfig10_1C.DiscardUnknown(m) +} + +var xxx_messageInfo_PostgresqlConfig10_1C proto.InternalMessageInfo + +func (m *PostgresqlConfig10_1C) GetMaxConnections() *wrappers.Int64Value { + if m != nil { + return m.MaxConnections + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetSharedBuffers() *wrappers.Int64Value { + if m != nil { + return m.SharedBuffers + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetTempBuffers() *wrappers.Int64Value { + if m != nil { + return m.TempBuffers + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetMaxPreparedTransactions() *wrappers.Int64Value { + if m != nil { + return m.MaxPreparedTransactions + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetWorkMem() *wrappers.Int64Value { + if m != nil { + return m.WorkMem + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetMaintenanceWorkMem() *wrappers.Int64Value { + if m != nil { + return m.MaintenanceWorkMem + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetReplacementSortTuples() *wrappers.Int64Value { + if m != nil { + return m.ReplacementSortTuples + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetAutovacuumWorkMem() *wrappers.Int64Value { + if m != nil { + return m.AutovacuumWorkMem + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetTempFileLimit() *wrappers.Int64Value { + if m != nil { + return m.TempFileLimit + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetVacuumCostDelay() *wrappers.Int64Value { + if m != nil { + return m.VacuumCostDelay + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetVacuumCostPageHit() *wrappers.Int64Value { + if m != nil { + return m.VacuumCostPageHit + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetVacuumCostPageMiss() *wrappers.Int64Value { + if m != nil { + return m.VacuumCostPageMiss + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetVacuumCostPageDirty() *wrappers.Int64Value { + if m != nil { + return m.VacuumCostPageDirty + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetVacuumCostLimit() *wrappers.Int64Value { + if m != nil { + return m.VacuumCostLimit + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetBgwriterDelay() *wrappers.Int64Value { + if m != nil { + return m.BgwriterDelay + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetBgwriterLruMaxpages() *wrappers.Int64Value { + if m != nil { + return m.BgwriterLruMaxpages + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetBgwriterLruMultiplier() *wrappers.DoubleValue { + if m != nil { + return m.BgwriterLruMultiplier + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetBgwriterFlushAfter() *wrappers.Int64Value { + if m != nil { + return m.BgwriterFlushAfter + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetBackendFlushAfter() *wrappers.Int64Value { + if m != nil { + return m.BackendFlushAfter + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetOldSnapshotThreshold() *wrappers.Int64Value { + if m != nil { + return m.OldSnapshotThreshold + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetWalLevel() PostgresqlConfig10_1C_WalLevel { + if m != nil { + return m.WalLevel + } + return PostgresqlConfig10_1C_WAL_LEVEL_UNSPECIFIED +} + +func (m *PostgresqlConfig10_1C) GetSynchronousCommit() PostgresqlConfig10_1C_SynchronousCommit { + if m != nil { + return m.SynchronousCommit + } + return PostgresqlConfig10_1C_SYNCHRONOUS_COMMIT_UNSPECIFIED +} + +func (m *PostgresqlConfig10_1C) GetCheckpointTimeout() *wrappers.Int64Value { + if m != nil { + return m.CheckpointTimeout + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetCheckpointCompletionTarget() *wrappers.DoubleValue { + if m != nil { + return m.CheckpointCompletionTarget + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetCheckpointFlushAfter() *wrappers.Int64Value { + if m != nil { + return m.CheckpointFlushAfter + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetMaxWalSize() *wrappers.Int64Value { + if m != nil { + return m.MaxWalSize + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetMinWalSize() *wrappers.Int64Value { + if m != nil { + return m.MinWalSize + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetMaxStandbyStreamingDelay() *wrappers.Int64Value { + if m != nil { + return m.MaxStandbyStreamingDelay + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetDefaultStatisticsTarget() *wrappers.Int64Value { + if m != nil { + return m.DefaultStatisticsTarget + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetConstraintExclusion() PostgresqlConfig10_1C_ConstraintExclusion { + if m != nil { + return m.ConstraintExclusion + } + return PostgresqlConfig10_1C_CONSTRAINT_EXCLUSION_UNSPECIFIED +} + +func (m *PostgresqlConfig10_1C) GetCursorTupleFraction() *wrappers.DoubleValue { + if m != nil { + return m.CursorTupleFraction + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetFromCollapseLimit() *wrappers.Int64Value { + if m != nil { + return m.FromCollapseLimit + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetJoinCollapseLimit() *wrappers.Int64Value { + if m != nil { + return m.JoinCollapseLimit + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetForceParallelMode() PostgresqlConfig10_1C_ForceParallelMode { + if m != nil { + return m.ForceParallelMode + } + return PostgresqlConfig10_1C_FORCE_PARALLEL_MODE_UNSPECIFIED +} + +func (m *PostgresqlConfig10_1C) GetClientMinMessages() PostgresqlConfig10_1C_LogLevel { + if m != nil { + return m.ClientMinMessages + } + return PostgresqlConfig10_1C_LOG_LEVEL_UNSPECIFIED +} + +func (m *PostgresqlConfig10_1C) GetLogMinMessages() PostgresqlConfig10_1C_LogLevel { + if m != nil { + return m.LogMinMessages + } + return PostgresqlConfig10_1C_LOG_LEVEL_UNSPECIFIED +} + +func (m *PostgresqlConfig10_1C) GetLogMinErrorStatement() PostgresqlConfig10_1C_LogLevel { + if m != nil { + return m.LogMinErrorStatement + } + return PostgresqlConfig10_1C_LOG_LEVEL_UNSPECIFIED +} + +func (m *PostgresqlConfig10_1C) GetLogMinDurationStatement() *wrappers.Int64Value { + if m != nil { + return m.LogMinDurationStatement + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetLogCheckpoints() *wrappers.BoolValue { + if m != nil { + return m.LogCheckpoints + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetLogConnections() *wrappers.BoolValue { + if m != nil { + return m.LogConnections + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetLogDisconnections() *wrappers.BoolValue { + if m != nil { + return m.LogDisconnections + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetLogDuration() *wrappers.BoolValue { + if m != nil { + return m.LogDuration + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetLogErrorVerbosity() PostgresqlConfig10_1C_LogErrorVerbosity { + if m != nil { + return m.LogErrorVerbosity + } + return PostgresqlConfig10_1C_LOG_ERROR_VERBOSITY_UNSPECIFIED +} + +func (m *PostgresqlConfig10_1C) GetLogLockWaits() *wrappers.BoolValue { + if m != nil { + return m.LogLockWaits + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetLogStatement() PostgresqlConfig10_1C_LogStatement { + if m != nil { + return m.LogStatement + } + return PostgresqlConfig10_1C_LOG_STATEMENT_UNSPECIFIED +} + +func (m *PostgresqlConfig10_1C) GetLogTempFiles() *wrappers.Int64Value { + if m != nil { + return m.LogTempFiles + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetSearchPath() string { + if m != nil { + return m.SearchPath + } + return "" +} + +func (m *PostgresqlConfig10_1C) GetRowSecurity() *wrappers.BoolValue { + if m != nil { + return m.RowSecurity + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetDefaultTransactionIsolation() PostgresqlConfig10_1C_TransactionIsolation { + if m != nil { + return m.DefaultTransactionIsolation + } + return PostgresqlConfig10_1C_TRANSACTION_ISOLATION_UNSPECIFIED +} + +func (m *PostgresqlConfig10_1C) GetStatementTimeout() *wrappers.Int64Value { + if m != nil { + return m.StatementTimeout + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetLockTimeout() *wrappers.Int64Value { + if m != nil { + return m.LockTimeout + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetIdleInTransactionSessionTimeout() *wrappers.Int64Value { + if m != nil { + return m.IdleInTransactionSessionTimeout + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetByteaOutput() PostgresqlConfig10_1C_ByteaOutput { + if m != nil { + return m.ByteaOutput + } + return PostgresqlConfig10_1C_BYTEA_OUTPUT_UNSPECIFIED +} + +func (m *PostgresqlConfig10_1C) GetXmlbinary() PostgresqlConfig10_1C_XmlBinary { + if m != nil { + return m.Xmlbinary + } + return PostgresqlConfig10_1C_XML_BINARY_UNSPECIFIED +} + +func (m *PostgresqlConfig10_1C) GetXmloption() PostgresqlConfig10_1C_XmlOption { + if m != nil { + return m.Xmloption + } + return PostgresqlConfig10_1C_XML_OPTION_UNSPECIFIED +} + +func (m *PostgresqlConfig10_1C) GetGinPendingListLimit() *wrappers.Int64Value { + if m != nil { + return m.GinPendingListLimit + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetDeadlockTimeout() *wrappers.Int64Value { + if m != nil { + return m.DeadlockTimeout + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetMaxLocksPerTransaction() *wrappers.Int64Value { + if m != nil { + return m.MaxLocksPerTransaction + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetMaxPredLocksPerTransaction() *wrappers.Int64Value { + if m != nil { + return m.MaxPredLocksPerTransaction + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetArrayNulls() *wrappers.BoolValue { + if m != nil { + return m.ArrayNulls + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetBackslashQuote() PostgresqlConfig10_1C_BackslashQuote { + if m != nil { + return m.BackslashQuote + } + return PostgresqlConfig10_1C_BACKSLASH_QUOTE_UNSPECIFIED +} + +func (m *PostgresqlConfig10_1C) GetDefaultWithOids() *wrappers.BoolValue { + if m != nil { + return m.DefaultWithOids + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetEscapeStringWarning() *wrappers.BoolValue { + if m != nil { + return m.EscapeStringWarning + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetLoCompatPrivileges() *wrappers.BoolValue { + if m != nil { + return m.LoCompatPrivileges + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetOperatorPrecedenceWarning() *wrappers.BoolValue { + if m != nil { + return m.OperatorPrecedenceWarning + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetQuoteAllIdentifiers() *wrappers.BoolValue { + if m != nil { + return m.QuoteAllIdentifiers + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetStandardConformingStrings() *wrappers.BoolValue { + if m != nil { + return m.StandardConformingStrings + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetSynchronizeSeqscans() *wrappers.BoolValue { + if m != nil { + return m.SynchronizeSeqscans + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetTransformNullEquals() *wrappers.BoolValue { + if m != nil { + return m.TransformNullEquals + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetExitOnError() *wrappers.BoolValue { + if m != nil { + return m.ExitOnError + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetSeqPageCost() *wrappers.DoubleValue { + if m != nil { + return m.SeqPageCost + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetRandomPageCost() *wrappers.DoubleValue { + if m != nil { + return m.RandomPageCost + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetAutovacuumMaxWorkers() *wrappers.Int64Value { + if m != nil { + return m.AutovacuumMaxWorkers + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetAutovacuumVacuumCostDelay() *wrappers.Int64Value { + if m != nil { + return m.AutovacuumVacuumCostDelay + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetAutovacuumVacuumCostLimit() *wrappers.Int64Value { + if m != nil { + return m.AutovacuumVacuumCostLimit + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetAutovacuumNaptime() *wrappers.Int64Value { + if m != nil { + return m.AutovacuumNaptime + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetArchiveTimeout() *wrappers.Int64Value { + if m != nil { + return m.ArchiveTimeout + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetTrackActivityQuerySize() *wrappers.Int64Value { + if m != nil { + return m.TrackActivityQuerySize + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetEnableBitmapscan() *wrappers.BoolValue { + if m != nil { + return m.EnableBitmapscan + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetEnableHashagg() *wrappers.BoolValue { + if m != nil { + return m.EnableHashagg + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetEnableHashjoin() *wrappers.BoolValue { + if m != nil { + return m.EnableHashjoin + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetEnableIndexscan() *wrappers.BoolValue { + if m != nil { + return m.EnableIndexscan + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetEnableIndexonlyscan() *wrappers.BoolValue { + if m != nil { + return m.EnableIndexonlyscan + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetEnableMaterial() *wrappers.BoolValue { + if m != nil { + return m.EnableMaterial + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetEnableMergejoin() *wrappers.BoolValue { + if m != nil { + return m.EnableMergejoin + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetEnableNestloop() *wrappers.BoolValue { + if m != nil { + return m.EnableNestloop + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetEnableSeqscan() *wrappers.BoolValue { + if m != nil { + return m.EnableSeqscan + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetEnableSort() *wrappers.BoolValue { + if m != nil { + return m.EnableSort + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetEnableTidscan() *wrappers.BoolValue { + if m != nil { + return m.EnableTidscan + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetMaxWorkerProcesses() *wrappers.Int64Value { + if m != nil { + return m.MaxWorkerProcesses + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetMaxParallelWorkers() *wrappers.Int64Value { + if m != nil { + return m.MaxParallelWorkers + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetMaxParallelWorkersPerGather() *wrappers.Int64Value { + if m != nil { + return m.MaxParallelWorkersPerGather + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetAutovacuumVacuumScaleFactor() *wrappers.DoubleValue { + if m != nil { + return m.AutovacuumVacuumScaleFactor + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetAutovacuumAnalyzeScaleFactor() *wrappers.DoubleValue { + if m != nil { + return m.AutovacuumAnalyzeScaleFactor + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetDefaultTransactionReadOnly() *wrappers.BoolValue { + if m != nil { + return m.DefaultTransactionReadOnly + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetTimezone() string { + if m != nil { + return m.Timezone + } + return "" +} + +func (m *PostgresqlConfig10_1C) GetEffectiveIoConcurrency() *wrappers.Int64Value { + if m != nil { + return m.EffectiveIoConcurrency + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetEffectiveCacheSize() *wrappers.Int64Value { + if m != nil { + return m.EffectiveCacheSize + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetSharedPreloadLibraries() []PostgresqlConfig10_1C_SharedPreloadLibraries { + if m != nil { + return m.SharedPreloadLibraries + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetAutoExplainLogMinDuration() *wrappers.Int64Value { + if m != nil { + return m.AutoExplainLogMinDuration + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetAutoExplainLogAnalyze() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogAnalyze + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetAutoExplainLogBuffers() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogBuffers + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetAutoExplainLogTiming() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogTiming + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetAutoExplainLogTriggers() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogTriggers + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetAutoExplainLogVerbose() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogVerbose + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetAutoExplainLogNestedStatements() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogNestedStatements + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetAutoExplainSampleRate() *wrappers.DoubleValue { + if m != nil { + return m.AutoExplainSampleRate + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetPgHintPlanEnableHint() *wrappers.BoolValue { + if m != nil { + return m.PgHintPlanEnableHint + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetPgHintPlanEnableHintTable() *wrappers.BoolValue { + if m != nil { + return m.PgHintPlanEnableHintTable + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetPgHintPlanDebugPrint() PostgresqlConfig10_1C_PgHintPlanDebugPrint { + if m != nil { + return m.PgHintPlanDebugPrint + } + return PostgresqlConfig10_1C_PG_HINT_PLAN_DEBUG_PRINT_UNSPECIFIED +} + +func (m *PostgresqlConfig10_1C) GetPgHintPlanMessageLevel() PostgresqlConfig10_1C_LogLevel { + if m != nil { + return m.PgHintPlanMessageLevel + } + return PostgresqlConfig10_1C_LOG_LEVEL_UNSPECIFIED +} + +func (m *PostgresqlConfig10_1C) GetOnlineAnalyzeEnable() *wrappers.BoolValue { + if m != nil { + return m.OnlineAnalyzeEnable + } + return nil +} + +func (m *PostgresqlConfig10_1C) GetPlantunerFixEmptyTable() *wrappers.BoolValue { + if m != nil { + return m.PlantunerFixEmptyTable + } + return nil +} + +type PostgresqlConfigSet10_1C struct { + // Effective settings for a PostgreSQL 10 1C cluster (a combination of settings defined + // in [user_config] and [default_config]). + EffectiveConfig *PostgresqlConfig10_1C `protobuf:"bytes,1,opt,name=effective_config,json=effectiveConfig,proto3" json:"effective_config,omitempty"` + // User-defined settings for a PostgreSQL 10 1C cluster. + UserConfig *PostgresqlConfig10_1C `protobuf:"bytes,2,opt,name=user_config,json=userConfig,proto3" json:"user_config,omitempty"` + // Default configuration for a PostgreSQL 10 1C cluster. + DefaultConfig *PostgresqlConfig10_1C `protobuf:"bytes,3,opt,name=default_config,json=defaultConfig,proto3" json:"default_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PostgresqlConfigSet10_1C) Reset() { *m = PostgresqlConfigSet10_1C{} } +func (m *PostgresqlConfigSet10_1C) String() string { return proto.CompactTextString(m) } +func (*PostgresqlConfigSet10_1C) ProtoMessage() {} +func (*PostgresqlConfigSet10_1C) Descriptor() ([]byte, []int) { + return fileDescriptor_f14eb125b963dff2, []int{1} +} + +func (m *PostgresqlConfigSet10_1C) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PostgresqlConfigSet10_1C.Unmarshal(m, b) +} +func (m *PostgresqlConfigSet10_1C) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PostgresqlConfigSet10_1C.Marshal(b, m, deterministic) +} +func (m *PostgresqlConfigSet10_1C) XXX_Merge(src proto.Message) { + xxx_messageInfo_PostgresqlConfigSet10_1C.Merge(m, src) +} +func (m *PostgresqlConfigSet10_1C) XXX_Size() int { + return xxx_messageInfo_PostgresqlConfigSet10_1C.Size(m) +} +func (m *PostgresqlConfigSet10_1C) XXX_DiscardUnknown() { + xxx_messageInfo_PostgresqlConfigSet10_1C.DiscardUnknown(m) +} + +var xxx_messageInfo_PostgresqlConfigSet10_1C proto.InternalMessageInfo + +func (m *PostgresqlConfigSet10_1C) GetEffectiveConfig() *PostgresqlConfig10_1C { + if m != nil { + return m.EffectiveConfig + } + return nil +} + +func (m *PostgresqlConfigSet10_1C) GetUserConfig() *PostgresqlConfig10_1C { + if m != nil { + return m.UserConfig + } + return nil +} + +func (m *PostgresqlConfigSet10_1C) GetDefaultConfig() *PostgresqlConfig10_1C { + if m != nil { + return m.DefaultConfig + } + return nil +} + +func init() { + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_WalLevel", PostgresqlConfig10_1C_WalLevel_name, PostgresqlConfig10_1C_WalLevel_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_SynchronousCommit", PostgresqlConfig10_1C_SynchronousCommit_name, PostgresqlConfig10_1C_SynchronousCommit_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_ConstraintExclusion", PostgresqlConfig10_1C_ConstraintExclusion_name, PostgresqlConfig10_1C_ConstraintExclusion_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_ForceParallelMode", PostgresqlConfig10_1C_ForceParallelMode_name, PostgresqlConfig10_1C_ForceParallelMode_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_LogLevel", PostgresqlConfig10_1C_LogLevel_name, PostgresqlConfig10_1C_LogLevel_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_LogErrorVerbosity", PostgresqlConfig10_1C_LogErrorVerbosity_name, PostgresqlConfig10_1C_LogErrorVerbosity_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_LogStatement", PostgresqlConfig10_1C_LogStatement_name, PostgresqlConfig10_1C_LogStatement_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_TransactionIsolation", PostgresqlConfig10_1C_TransactionIsolation_name, PostgresqlConfig10_1C_TransactionIsolation_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_ByteaOutput", PostgresqlConfig10_1C_ByteaOutput_name, PostgresqlConfig10_1C_ByteaOutput_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_XmlBinary", PostgresqlConfig10_1C_XmlBinary_name, PostgresqlConfig10_1C_XmlBinary_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_XmlOption", PostgresqlConfig10_1C_XmlOption_name, PostgresqlConfig10_1C_XmlOption_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_BackslashQuote", PostgresqlConfig10_1C_BackslashQuote_name, PostgresqlConfig10_1C_BackslashQuote_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_PgHintPlanDebugPrint", PostgresqlConfig10_1C_PgHintPlanDebugPrint_name, PostgresqlConfig10_1C_PgHintPlanDebugPrint_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C_SharedPreloadLibraries", PostgresqlConfig10_1C_SharedPreloadLibraries_name, PostgresqlConfig10_1C_SharedPreloadLibraries_value) + proto.RegisterType((*PostgresqlConfig10_1C)(nil), "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C") + proto.RegisterType((*PostgresqlConfigSet10_1C)(nil), "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C") +} + +func init() { + proto.RegisterFile("yandex/cloud/mdb/postgresql/v1/config/postgresql10_1c.proto", fileDescriptor_f14eb125b963dff2) +} + +var fileDescriptor_f14eb125b963dff2 = []byte{ + // 3886 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x9b, 0x5d, 0x73, 0xdb, 0xc6, + 0x7a, 0xc7, 0x4b, 0xd9, 0x49, 0xec, 0x95, 0x25, 0x41, 0xab, 0x17, 0x43, 0xf2, 0x6b, 0x94, 0x38, + 0x75, 0x4e, 0x2b, 0x89, 0xb4, 0x15, 0xc7, 0xa7, 0x39, 0x27, 0x0d, 0x44, 0x42, 0x12, 0x1b, 0xf0, + 0xc5, 0x00, 0x65, 0xd9, 0x49, 0x9d, 0xed, 0x12, 0x5c, 0x92, 0x1b, 0x81, 0x58, 0x18, 0x0b, 0x5a, + 0x52, 0xa6, 0xed, 0xcc, 0x99, 0x5e, 0xb5, 0x33, 0xbd, 0xe9, 0x4c, 0x67, 0xda, 0x7e, 0x21, 0x5d, + 0x75, 0xa6, 0x57, 0xfd, 0x08, 0x6d, 0x3f, 0x83, 0xaf, 0x3a, 0xbb, 0x00, 0x08, 0xf0, 0x45, 0x01, + 0x75, 0xe4, 0x3b, 0x79, 0x77, 0xff, 0xbf, 0xe7, 0xd9, 0xdd, 0x67, 0x5f, 0x9e, 0x05, 0x0d, 0xbe, + 0x39, 0xc3, 0x6e, 0x8b, 0x9c, 0x6e, 0xdb, 0x0e, 0xeb, 0xb7, 0xb6, 0x7b, 0xad, 0xe6, 0xb6, 0xc7, + 0x78, 0xd0, 0xf1, 0x09, 0x7f, 0xeb, 0x6c, 0xbf, 0x2b, 0x6c, 0xdb, 0xcc, 0x6d, 0xd3, 0x4e, 0xaa, + 0xb0, 0x90, 0x47, 0x05, 0x7b, 0x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 0xc2, 0xfc, 0x63, 0xd4, 0x23, 0x3d, + 0xf5, 0xa3, 0x6c, 0xce, 0x27, 0xa2, 0x71, 0x85, 0xf4, 0x60, 0x05, 0x2c, 0xf7, 0x30, 0x75, 0x03, + 0xe2, 0x62, 0xd7, 0x26, 0x68, 0xc0, 0xf8, 0x38, 0x9b, 0x01, 0x53, 0xc2, 0xa3, 0x08, 0x67, 0x81, + 0xdb, 0x3e, 0xf1, 0x1c, 0x6c, 0x93, 0x1e, 0x71, 0x03, 0xc4, 0x99, 0x1f, 0xa0, 0xa0, 0xef, 0x39, + 0x84, 0xab, 0x9f, 0x64, 0x13, 0x57, 0x52, 0x5a, 0x8b, 0xf9, 0x41, 0x43, 0x2a, 0xe1, 0xf7, 0x60, + 0x09, 0xf7, 0x03, 0xf6, 0x0e, 0xdb, 0xfd, 0x7e, 0x2f, 0x71, 0xf1, 0x46, 0x36, 0x70, 0x31, 0xd1, + 0xc5, 0x1e, 0x16, 0xc1, 0x82, 0x9c, 0xc1, 0x36, 0x75, 0x08, 0x72, 0x68, 0x8f, 0x06, 0xea, 0xcd, + 0x29, 0xc2, 0x40, 0x68, 0xf6, 0xa8, 0x43, 0x0c, 0xa1, 0x80, 0xfb, 0x60, 0x31, 0xf2, 0xc6, 0x66, + 0x3c, 0x40, 0x2d, 0xe2, 0xe0, 0x33, 0x15, 0x64, 0x63, 0x16, 0x42, 0x55, 0x91, 0xf1, 0xa0, 0x24, + 0x34, 0xd0, 0x00, 0xcb, 0x69, 0x90, 0x87, 0x3b, 0x04, 0x75, 0x69, 0xa0, 0xce, 0x4e, 0xd1, 0xb7, + 0x84, 0x55, 0xc7, 0x1d, 0x72, 0x40, 0x03, 0x58, 0x05, 0x2b, 0x63, 0xb4, 0x1e, 0xe5, 0x5c, 0xbd, + 0x35, 0xc5, 0x6c, 0x0e, 0xe3, 0x2a, 0x94, 0x73, 0x58, 0x07, 0xab, 0x63, 0xbc, 0x16, 0xf5, 0x83, + 0x33, 0x75, 0x2e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x07, 0x49, 0xa5, 0x5c, 0x65, 0x00, + 0x05, 0xa4, 0x45, 0x79, 0x9a, 0xf3, 0x65, 0x26, 0x67, 0xd1, 0x61, 0x9d, 0xd2, 0x90, 0x48, 0x6c, + 0xcf, 0x12, 0x15, 0xf5, 0x56, 0xfd, 0x4d, 0x26, 0x64, 0x56, 0x40, 0xa2, 0xe6, 0x62, 0x4d, 0x09, + 0x79, 0x38, 0xcf, 0xef, 0x88, 0xdf, 0x64, 0x9c, 0x06, 0x67, 0xea, 0x9f, 0x7d, 0x80, 0x35, 0x65, + 0xb0, 0x8e, 0x9c, 0xda, 0x97, 0x31, 0x55, 0xba, 0x3f, 0x5c, 0x04, 0xbf, 0x03, 0x62, 0x6c, 0x90, + 0xc3, 0xec, 0x63, 0x74, 0x82, 0x69, 0xc0, 0xd5, 0x3f, 0xcf, 0xec, 0x80, 0xe8, 0xb0, 0xc1, 0xec, + 0xe3, 0x23, 0xd1, 0x1e, 0xba, 0x60, 0x4e, 0x10, 0x92, 0x10, 0xd9, 0x94, 0xbe, 0x97, 0xaf, 0xea, + 0xfb, 0x20, 0x6e, 0xa4, 0xbd, 0x24, 0x8a, 0xb4, 0xd0, 0xe3, 0x41, 0xb2, 0xc4, 0xd5, 0xad, 0xec, + 0x98, 0x14, 0x88, 0x46, 0x94, 0x2a, 0x71, 0xf8, 0x00, 0xcc, 0x72, 0x82, 0x7d, 0xbb, 0x8b, 0x3c, + 0x1c, 0x74, 0xd5, 0xed, 0x87, 0xb9, 0xc7, 0x37, 0x4d, 0x10, 0x16, 0xd5, 0x71, 0xd0, 0x15, 0x93, + 0xea, 0xb3, 0x13, 0xc4, 0x89, 0xdd, 0xf7, 0xc5, 0x74, 0xe4, 0xb3, 0x27, 0xd5, 0x67, 0x27, 0x56, + 0xd4, 0x1c, 0xfe, 0x6b, 0x0e, 0xdc, 0x8b, 0x0f, 0xc6, 0x54, 0x26, 0x8d, 0x28, 0x67, 0x4e, 0x18, + 0x25, 0x05, 0x39, 0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0x70, 0xd0, 0x85, 0x03, 0xae, 0xbe, 0xcd, 0xbe, 0x65, 0x86, 0xc2, 0x68, 0xb3, 0x08, 0x07, + 0x5a, 0x2c, 0x45, 0xd1, 0x95, 0xa0, 0xef, 0x12, 0x1f, 0xb5, 0xe9, 0x29, 0x22, 0x3d, 0x2f, 0x38, + 0x8b, 0x66, 0xce, 0xcf, 0x5e, 0x8a, 0x03, 0xf1, 0x1e, 0x3d, 0xd5, 0x85, 0x54, 0x4e, 0xdb, 0x86, + 0x05, 0x6e, 0xc4, 0x3f, 0x20, 0x80, 0x6b, 0x60, 0xe5, 0x48, 0x33, 0x90, 0xa1, 0xbf, 0xd4, 0x0d, + 0x74, 0x58, 0xb5, 0xea, 0x7a, 0xb1, 0xbc, 0x57, 0xd6, 0x4b, 0xca, 0x9f, 0xc0, 0x15, 0xb0, 0x98, + 0x54, 0x99, 0x7a, 0xdd, 0x28, 0x17, 0x35, 0x25, 0x37, 0x5c, 0x6c, 0xd4, 0xf6, 0xcb, 0x45, 0xcd, + 0x50, 0x66, 0x36, 0xfe, 0x3b, 0x07, 0x16, 0xc7, 0x7e, 0x29, 0x00, 0x37, 0xc0, 0x7d, 0xeb, 0x75, + 0xb5, 0x78, 0x60, 0xd6, 0xaa, 0xb5, 0x43, 0x0b, 0x15, 0x6b, 0x95, 0x4a, 0xb9, 0x31, 0x62, 0x67, + 0x0d, 0xac, 0x4c, 0x68, 0x53, 0xab, 0x2a, 0x39, 0xb8, 0x0e, 0x56, 0x27, 0x55, 0xed, 0xed, 0x29, + 0x33, 0xf0, 0x2e, 0x50, 0x27, 0xd4, 0x19, 0x35, 0xe1, 0xce, 0x35, 0xf8, 0x19, 0x78, 0x30, 0xa1, + 0xd6, 0xd4, 0x2b, 0xb5, 0x86, 0x8e, 0x8e, 0xcc, 0x72, 0x43, 0x57, 0xae, 0xff, 0x7a, 0x23, 0xad, + 0x5e, 0x37, 0x5e, 0x2b, 0x1f, 0x6d, 0xfc, 0x47, 0x0e, 0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x7c, 0x03, 0x66, 0xfb, 0x9c, 0xf8, 0xb1, 0xa5, 0x99, 0xab, 0x5b, 0x32, 0x81, 0x00, 0x46, 0x78, + 0x1b, 0xcc, 0xc7, 0x2f, 0x15, 0x91, 0x85, 0x6b, 0x1f, 0xc0, 0xc2, 0x5c, 0xc4, 0x0c, 0xcb, 0x76, + 0xff, 0x90, 0x03, 0x5f, 0x0e, 0xe1, 0xb0, 0x47, 0x2f, 0x44, 0xfe, 0xd0, 0xe8, 0xd0, 0xa0, 0xdb, + 0x6f, 0x6e, 0xd9, 0xac, 0xb7, 0x1d, 0xaa, 0x36, 0xc3, 0xff, 0x11, 0xd1, 0x61, 0x9b, 0x1d, 0xe2, + 0xca, 0x4b, 0xe6, 0xf6, 0x54, 0xff, 0x5d, 0xe3, 0x9b, 0xa4, 0xb0, 0xf9, 0xb1, 0xd4, 0x3d, 0xfd, + 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8d, 0x73, 0x10, 0xef, 0xe9, 0x31, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql10_1c.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql10_1c.pbext.go new file mode 100644 index 000000000..690f6cf9f --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql10_1c.pbext.go @@ -0,0 +1,471 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *PostgresqlConfig10_1C) SetMaxConnections(v *wrappers.Int64Value) { + m.MaxConnections = v +} + +func (m *PostgresqlConfig10_1C) SetSharedBuffers(v *wrappers.Int64Value) { + m.SharedBuffers = v +} + +func (m *PostgresqlConfig10_1C) SetTempBuffers(v *wrappers.Int64Value) { + m.TempBuffers = v +} + +func (m *PostgresqlConfig10_1C) SetMaxPreparedTransactions(v *wrappers.Int64Value) { + m.MaxPreparedTransactions = v +} + +func (m *PostgresqlConfig10_1C) SetWorkMem(v *wrappers.Int64Value) { + m.WorkMem = v +} + +func (m *PostgresqlConfig10_1C) SetMaintenanceWorkMem(v *wrappers.Int64Value) { + m.MaintenanceWorkMem = v +} + +func (m *PostgresqlConfig10_1C) SetReplacementSortTuples(v *wrappers.Int64Value) { + m.ReplacementSortTuples = v +} + +func (m *PostgresqlConfig10_1C) SetAutovacuumWorkMem(v *wrappers.Int64Value) { + m.AutovacuumWorkMem = v +} + +func (m *PostgresqlConfig10_1C) SetTempFileLimit(v *wrappers.Int64Value) { + m.TempFileLimit = v +} + +func (m *PostgresqlConfig10_1C) SetVacuumCostDelay(v *wrappers.Int64Value) { + m.VacuumCostDelay = v +} + +func (m *PostgresqlConfig10_1C) SetVacuumCostPageHit(v *wrappers.Int64Value) { + m.VacuumCostPageHit = v +} + +func (m *PostgresqlConfig10_1C) SetVacuumCostPageMiss(v *wrappers.Int64Value) { + m.VacuumCostPageMiss = v +} + +func (m *PostgresqlConfig10_1C) SetVacuumCostPageDirty(v *wrappers.Int64Value) { + m.VacuumCostPageDirty = v +} + +func (m *PostgresqlConfig10_1C) SetVacuumCostLimit(v *wrappers.Int64Value) { + m.VacuumCostLimit = v +} + +func (m *PostgresqlConfig10_1C) SetBgwriterDelay(v *wrappers.Int64Value) { + m.BgwriterDelay = v +} + +func (m *PostgresqlConfig10_1C) SetBgwriterLruMaxpages(v *wrappers.Int64Value) { + m.BgwriterLruMaxpages = v +} + +func (m *PostgresqlConfig10_1C) SetBgwriterLruMultiplier(v *wrappers.DoubleValue) { + m.BgwriterLruMultiplier = v +} + +func (m *PostgresqlConfig10_1C) SetBgwriterFlushAfter(v *wrappers.Int64Value) { + m.BgwriterFlushAfter = v +} + +func (m *PostgresqlConfig10_1C) SetBackendFlushAfter(v *wrappers.Int64Value) { + m.BackendFlushAfter = v +} + +func (m *PostgresqlConfig10_1C) SetOldSnapshotThreshold(v *wrappers.Int64Value) { + m.OldSnapshotThreshold = v +} + +func (m *PostgresqlConfig10_1C) SetWalLevel(v PostgresqlConfig10_1C_WalLevel) { + m.WalLevel = v +} + +func (m *PostgresqlConfig10_1C) SetSynchronousCommit(v PostgresqlConfig10_1C_SynchronousCommit) { + m.SynchronousCommit = v +} + +func (m *PostgresqlConfig10_1C) SetCheckpointTimeout(v *wrappers.Int64Value) { + m.CheckpointTimeout = v +} + +func (m *PostgresqlConfig10_1C) SetCheckpointCompletionTarget(v *wrappers.DoubleValue) { + m.CheckpointCompletionTarget = v +} + +func (m *PostgresqlConfig10_1C) SetCheckpointFlushAfter(v *wrappers.Int64Value) { + m.CheckpointFlushAfter = v +} + +func (m *PostgresqlConfig10_1C) SetMaxWalSize(v *wrappers.Int64Value) { + m.MaxWalSize = v +} + +func (m *PostgresqlConfig10_1C) SetMinWalSize(v *wrappers.Int64Value) { + m.MinWalSize = v +} + +func (m *PostgresqlConfig10_1C) SetMaxStandbyStreamingDelay(v *wrappers.Int64Value) { + m.MaxStandbyStreamingDelay = v +} + +func (m *PostgresqlConfig10_1C) SetDefaultStatisticsTarget(v *wrappers.Int64Value) { + m.DefaultStatisticsTarget = v +} + +func (m *PostgresqlConfig10_1C) SetConstraintExclusion(v PostgresqlConfig10_1C_ConstraintExclusion) { + m.ConstraintExclusion = v +} + +func (m *PostgresqlConfig10_1C) SetCursorTupleFraction(v *wrappers.DoubleValue) { + m.CursorTupleFraction = v +} + +func (m *PostgresqlConfig10_1C) SetFromCollapseLimit(v *wrappers.Int64Value) { + m.FromCollapseLimit = v +} + +func (m *PostgresqlConfig10_1C) SetJoinCollapseLimit(v *wrappers.Int64Value) { + m.JoinCollapseLimit = v +} + +func (m *PostgresqlConfig10_1C) SetForceParallelMode(v PostgresqlConfig10_1C_ForceParallelMode) { + m.ForceParallelMode = v +} + +func (m *PostgresqlConfig10_1C) SetClientMinMessages(v PostgresqlConfig10_1C_LogLevel) { + m.ClientMinMessages = v +} + +func (m *PostgresqlConfig10_1C) SetLogMinMessages(v PostgresqlConfig10_1C_LogLevel) { + m.LogMinMessages = v +} + +func (m *PostgresqlConfig10_1C) SetLogMinErrorStatement(v PostgresqlConfig10_1C_LogLevel) { + m.LogMinErrorStatement = v +} + +func (m *PostgresqlConfig10_1C) SetLogMinDurationStatement(v *wrappers.Int64Value) { + m.LogMinDurationStatement = v +} + +func (m *PostgresqlConfig10_1C) SetLogCheckpoints(v *wrappers.BoolValue) { + m.LogCheckpoints = v +} + +func (m *PostgresqlConfig10_1C) SetLogConnections(v *wrappers.BoolValue) { + m.LogConnections = v +} + +func (m *PostgresqlConfig10_1C) SetLogDisconnections(v *wrappers.BoolValue) { + m.LogDisconnections = v +} + +func (m *PostgresqlConfig10_1C) SetLogDuration(v *wrappers.BoolValue) { + m.LogDuration = v +} + +func (m *PostgresqlConfig10_1C) SetLogErrorVerbosity(v PostgresqlConfig10_1C_LogErrorVerbosity) { + m.LogErrorVerbosity = v +} + +func (m *PostgresqlConfig10_1C) SetLogLockWaits(v *wrappers.BoolValue) { + m.LogLockWaits = v +} + +func (m *PostgresqlConfig10_1C) SetLogStatement(v PostgresqlConfig10_1C_LogStatement) { + m.LogStatement = v +} + +func (m *PostgresqlConfig10_1C) SetLogTempFiles(v *wrappers.Int64Value) { + m.LogTempFiles = v +} + +func (m *PostgresqlConfig10_1C) SetSearchPath(v string) { + m.SearchPath = v +} + +func (m *PostgresqlConfig10_1C) SetRowSecurity(v *wrappers.BoolValue) { + m.RowSecurity = v +} + +func (m *PostgresqlConfig10_1C) SetDefaultTransactionIsolation(v PostgresqlConfig10_1C_TransactionIsolation) { + m.DefaultTransactionIsolation = v +} + +func (m *PostgresqlConfig10_1C) SetStatementTimeout(v *wrappers.Int64Value) { + m.StatementTimeout = v +} + +func (m *PostgresqlConfig10_1C) SetLockTimeout(v *wrappers.Int64Value) { + m.LockTimeout = v +} + +func (m *PostgresqlConfig10_1C) SetIdleInTransactionSessionTimeout(v *wrappers.Int64Value) { + m.IdleInTransactionSessionTimeout = v +} + +func (m *PostgresqlConfig10_1C) SetByteaOutput(v PostgresqlConfig10_1C_ByteaOutput) { + m.ByteaOutput = v +} + +func (m *PostgresqlConfig10_1C) SetXmlbinary(v PostgresqlConfig10_1C_XmlBinary) { + m.Xmlbinary = v +} + +func (m *PostgresqlConfig10_1C) SetXmloption(v PostgresqlConfig10_1C_XmlOption) { + m.Xmloption = v +} + +func (m *PostgresqlConfig10_1C) SetGinPendingListLimit(v *wrappers.Int64Value) { + m.GinPendingListLimit = v +} + +func (m *PostgresqlConfig10_1C) SetDeadlockTimeout(v *wrappers.Int64Value) { + m.DeadlockTimeout = v +} + +func (m *PostgresqlConfig10_1C) SetMaxLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxLocksPerTransaction = v +} + +func (m *PostgresqlConfig10_1C) SetMaxPredLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxPredLocksPerTransaction = v +} + +func (m *PostgresqlConfig10_1C) SetArrayNulls(v *wrappers.BoolValue) { + m.ArrayNulls = v +} + +func (m *PostgresqlConfig10_1C) SetBackslashQuote(v PostgresqlConfig10_1C_BackslashQuote) { + m.BackslashQuote = v +} + +func (m *PostgresqlConfig10_1C) SetDefaultWithOids(v *wrappers.BoolValue) { + m.DefaultWithOids = v +} + +func (m *PostgresqlConfig10_1C) SetEscapeStringWarning(v *wrappers.BoolValue) { + m.EscapeStringWarning = v +} + +func (m *PostgresqlConfig10_1C) SetLoCompatPrivileges(v *wrappers.BoolValue) { + m.LoCompatPrivileges = v +} + +func (m *PostgresqlConfig10_1C) SetOperatorPrecedenceWarning(v *wrappers.BoolValue) { + m.OperatorPrecedenceWarning = v +} + +func (m *PostgresqlConfig10_1C) SetQuoteAllIdentifiers(v *wrappers.BoolValue) { + m.QuoteAllIdentifiers = v +} + +func (m *PostgresqlConfig10_1C) SetStandardConformingStrings(v *wrappers.BoolValue) { + m.StandardConformingStrings = v +} + +func (m *PostgresqlConfig10_1C) SetSynchronizeSeqscans(v *wrappers.BoolValue) { + m.SynchronizeSeqscans = v +} + +func (m *PostgresqlConfig10_1C) SetTransformNullEquals(v *wrappers.BoolValue) { + m.TransformNullEquals = v +} + +func (m *PostgresqlConfig10_1C) SetExitOnError(v *wrappers.BoolValue) { + m.ExitOnError = v +} + +func (m *PostgresqlConfig10_1C) SetSeqPageCost(v *wrappers.DoubleValue) { + m.SeqPageCost = v +} + +func (m *PostgresqlConfig10_1C) SetRandomPageCost(v *wrappers.DoubleValue) { + m.RandomPageCost = v +} + +func (m *PostgresqlConfig10_1C) SetAutovacuumMaxWorkers(v *wrappers.Int64Value) { + m.AutovacuumMaxWorkers = v +} + +func (m *PostgresqlConfig10_1C) SetAutovacuumVacuumCostDelay(v *wrappers.Int64Value) { + m.AutovacuumVacuumCostDelay = v +} + +func (m *PostgresqlConfig10_1C) SetAutovacuumVacuumCostLimit(v *wrappers.Int64Value) { + m.AutovacuumVacuumCostLimit = v +} + +func (m *PostgresqlConfig10_1C) SetAutovacuumNaptime(v *wrappers.Int64Value) { + m.AutovacuumNaptime = v +} + +func (m *PostgresqlConfig10_1C) SetArchiveTimeout(v *wrappers.Int64Value) { + m.ArchiveTimeout = v +} + +func (m *PostgresqlConfig10_1C) SetTrackActivityQuerySize(v *wrappers.Int64Value) { + m.TrackActivityQuerySize = v +} + +func (m *PostgresqlConfig10_1C) SetEnableBitmapscan(v *wrappers.BoolValue) { + m.EnableBitmapscan = v +} + +func (m *PostgresqlConfig10_1C) SetEnableHashagg(v *wrappers.BoolValue) { + m.EnableHashagg = v +} + +func (m *PostgresqlConfig10_1C) SetEnableHashjoin(v *wrappers.BoolValue) { + m.EnableHashjoin = v +} + +func (m *PostgresqlConfig10_1C) SetEnableIndexscan(v *wrappers.BoolValue) { + m.EnableIndexscan = v +} + +func (m *PostgresqlConfig10_1C) SetEnableIndexonlyscan(v *wrappers.BoolValue) { + m.EnableIndexonlyscan = v +} + +func (m *PostgresqlConfig10_1C) SetEnableMaterial(v *wrappers.BoolValue) { + m.EnableMaterial = v +} + +func (m *PostgresqlConfig10_1C) SetEnableMergejoin(v *wrappers.BoolValue) { + m.EnableMergejoin = v +} + +func (m *PostgresqlConfig10_1C) SetEnableNestloop(v *wrappers.BoolValue) { + m.EnableNestloop = v +} + +func (m *PostgresqlConfig10_1C) SetEnableSeqscan(v *wrappers.BoolValue) { + m.EnableSeqscan = v +} + +func (m *PostgresqlConfig10_1C) SetEnableSort(v *wrappers.BoolValue) { + m.EnableSort = v +} + +func (m *PostgresqlConfig10_1C) SetEnableTidscan(v *wrappers.BoolValue) { + m.EnableTidscan = v +} + +func (m *PostgresqlConfig10_1C) SetMaxWorkerProcesses(v *wrappers.Int64Value) { + m.MaxWorkerProcesses = v +} + +func (m *PostgresqlConfig10_1C) SetMaxParallelWorkers(v *wrappers.Int64Value) { + m.MaxParallelWorkers = v +} + +func (m *PostgresqlConfig10_1C) SetMaxParallelWorkersPerGather(v *wrappers.Int64Value) { + m.MaxParallelWorkersPerGather = v +} + +func (m *PostgresqlConfig10_1C) SetAutovacuumVacuumScaleFactor(v *wrappers.DoubleValue) { + m.AutovacuumVacuumScaleFactor = v +} + +func (m *PostgresqlConfig10_1C) SetAutovacuumAnalyzeScaleFactor(v *wrappers.DoubleValue) { + m.AutovacuumAnalyzeScaleFactor = v +} + +func (m *PostgresqlConfig10_1C) SetDefaultTransactionReadOnly(v *wrappers.BoolValue) { + m.DefaultTransactionReadOnly = v +} + +func (m *PostgresqlConfig10_1C) SetTimezone(v string) { + m.Timezone = v +} + +func (m *PostgresqlConfig10_1C) SetEffectiveIoConcurrency(v *wrappers.Int64Value) { + m.EffectiveIoConcurrency = v +} + +func (m *PostgresqlConfig10_1C) SetEffectiveCacheSize(v *wrappers.Int64Value) { + m.EffectiveCacheSize = v +} + +func (m *PostgresqlConfig10_1C) SetSharedPreloadLibraries(v []PostgresqlConfig10_1C_SharedPreloadLibraries) { + m.SharedPreloadLibraries = v +} + +func (m *PostgresqlConfig10_1C) SetAutoExplainLogMinDuration(v *wrappers.Int64Value) { + m.AutoExplainLogMinDuration = v +} + +func (m *PostgresqlConfig10_1C) SetAutoExplainLogAnalyze(v *wrappers.BoolValue) { + m.AutoExplainLogAnalyze = v +} + +func (m *PostgresqlConfig10_1C) SetAutoExplainLogBuffers(v *wrappers.BoolValue) { + m.AutoExplainLogBuffers = v +} + +func (m *PostgresqlConfig10_1C) SetAutoExplainLogTiming(v *wrappers.BoolValue) { + m.AutoExplainLogTiming = v +} + +func (m *PostgresqlConfig10_1C) SetAutoExplainLogTriggers(v *wrappers.BoolValue) { + m.AutoExplainLogTriggers = v +} + +func (m *PostgresqlConfig10_1C) SetAutoExplainLogVerbose(v *wrappers.BoolValue) { + m.AutoExplainLogVerbose = v +} + +func (m *PostgresqlConfig10_1C) SetAutoExplainLogNestedStatements(v *wrappers.BoolValue) { + m.AutoExplainLogNestedStatements = v +} + +func (m *PostgresqlConfig10_1C) SetAutoExplainSampleRate(v *wrappers.DoubleValue) { + m.AutoExplainSampleRate = v +} + +func (m *PostgresqlConfig10_1C) SetPgHintPlanEnableHint(v *wrappers.BoolValue) { + m.PgHintPlanEnableHint = v +} + +func (m *PostgresqlConfig10_1C) SetPgHintPlanEnableHintTable(v *wrappers.BoolValue) { + m.PgHintPlanEnableHintTable = v +} + +func (m *PostgresqlConfig10_1C) SetPgHintPlanDebugPrint(v PostgresqlConfig10_1C_PgHintPlanDebugPrint) { + m.PgHintPlanDebugPrint = v +} + +func (m *PostgresqlConfig10_1C) SetPgHintPlanMessageLevel(v PostgresqlConfig10_1C_LogLevel) { + m.PgHintPlanMessageLevel = v +} + +func (m *PostgresqlConfig10_1C) SetOnlineAnalyzeEnable(v *wrappers.BoolValue) { + m.OnlineAnalyzeEnable = v +} + +func (m *PostgresqlConfig10_1C) SetPlantunerFixEmptyTable(v *wrappers.BoolValue) { + m.PlantunerFixEmptyTable = v +} + +func (m *PostgresqlConfigSet10_1C) SetEffectiveConfig(v *PostgresqlConfig10_1C) { + m.EffectiveConfig = v +} + +func (m *PostgresqlConfigSet10_1C) SetUserConfig(v *PostgresqlConfig10_1C) { + m.UserConfig = v +} + +func (m *PostgresqlConfigSet10_1C) SetDefaultConfig(v *PostgresqlConfig10_1C) { + m.DefaultConfig = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql11.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql11.pb.go index 68857120b..2001766df 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql11.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql11.pb.go @@ -421,117 +421,194 @@ func (PostgresqlConfig11_BackslashQuote) EnumDescriptor() ([]byte, []int) { return fileDescriptor_7f28b14e19e1f835, []int{0, 11} } +type PostgresqlConfig11_PgHintPlanDebugPrint int32 + +const ( + PostgresqlConfig11_PG_HINT_PLAN_DEBUG_PRINT_UNSPECIFIED PostgresqlConfig11_PgHintPlanDebugPrint = 0 + PostgresqlConfig11_PG_HINT_PLAN_DEBUG_PRINT_OFF PostgresqlConfig11_PgHintPlanDebugPrint = 1 + PostgresqlConfig11_PG_HINT_PLAN_DEBUG_PRINT_ON PostgresqlConfig11_PgHintPlanDebugPrint = 2 + PostgresqlConfig11_PG_HINT_PLAN_DEBUG_PRINT_DETAILED PostgresqlConfig11_PgHintPlanDebugPrint = 3 + PostgresqlConfig11_PG_HINT_PLAN_DEBUG_PRINT_VERBOSE PostgresqlConfig11_PgHintPlanDebugPrint = 4 +) + +var PostgresqlConfig11_PgHintPlanDebugPrint_name = map[int32]string{ + 0: "PG_HINT_PLAN_DEBUG_PRINT_UNSPECIFIED", + 1: "PG_HINT_PLAN_DEBUG_PRINT_OFF", + 2: "PG_HINT_PLAN_DEBUG_PRINT_ON", + 3: "PG_HINT_PLAN_DEBUG_PRINT_DETAILED", + 4: "PG_HINT_PLAN_DEBUG_PRINT_VERBOSE", +} + +var PostgresqlConfig11_PgHintPlanDebugPrint_value = map[string]int32{ + "PG_HINT_PLAN_DEBUG_PRINT_UNSPECIFIED": 0, + "PG_HINT_PLAN_DEBUG_PRINT_OFF": 1, + "PG_HINT_PLAN_DEBUG_PRINT_ON": 2, + "PG_HINT_PLAN_DEBUG_PRINT_DETAILED": 3, + "PG_HINT_PLAN_DEBUG_PRINT_VERBOSE": 4, +} + +func (x PostgresqlConfig11_PgHintPlanDebugPrint) String() string { + return proto.EnumName(PostgresqlConfig11_PgHintPlanDebugPrint_name, int32(x)) +} + +func (PostgresqlConfig11_PgHintPlanDebugPrint) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7f28b14e19e1f835, []int{0, 12} +} + +type PostgresqlConfig11_SharedPreloadLibraries int32 + +const ( + PostgresqlConfig11_SHARED_PRELOAD_LIBRARIES_UNSPECIFIED PostgresqlConfig11_SharedPreloadLibraries = 0 + PostgresqlConfig11_SHARED_PRELOAD_LIBRARIES_AUTO_EXPLAIN PostgresqlConfig11_SharedPreloadLibraries = 1 + PostgresqlConfig11_SHARED_PRELOAD_LIBRARIES_PG_HINT_PLAN PostgresqlConfig11_SharedPreloadLibraries = 2 +) + +var PostgresqlConfig11_SharedPreloadLibraries_name = map[int32]string{ + 0: "SHARED_PRELOAD_LIBRARIES_UNSPECIFIED", + 1: "SHARED_PRELOAD_LIBRARIES_AUTO_EXPLAIN", + 2: "SHARED_PRELOAD_LIBRARIES_PG_HINT_PLAN", +} + +var PostgresqlConfig11_SharedPreloadLibraries_value = map[string]int32{ + "SHARED_PRELOAD_LIBRARIES_UNSPECIFIED": 0, + "SHARED_PRELOAD_LIBRARIES_AUTO_EXPLAIN": 1, + "SHARED_PRELOAD_LIBRARIES_PG_HINT_PLAN": 2, +} + +func (x PostgresqlConfig11_SharedPreloadLibraries) String() string { + return proto.EnumName(PostgresqlConfig11_SharedPreloadLibraries_name, int32(x)) +} + +func (PostgresqlConfig11_SharedPreloadLibraries) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7f28b14e19e1f835, []int{0, 13} +} + // Options and structure of `PostgresqlConfig` reflects PostgreSQL configuration file // parameters which detailed description is available in // [PostgreSQL documentation](https://www.postgresql.org/docs/11/runtime-config.html). type PostgresqlConfig11 struct { - MaxConnections *wrappers.Int64Value `protobuf:"bytes,1,opt,name=max_connections,json=maxConnections,proto3" json:"max_connections,omitempty"` - SharedBuffers *wrappers.Int64Value `protobuf:"bytes,2,opt,name=shared_buffers,json=sharedBuffers,proto3" json:"shared_buffers,omitempty"` - TempBuffers *wrappers.Int64Value `protobuf:"bytes,3,opt,name=temp_buffers,json=tempBuffers,proto3" json:"temp_buffers,omitempty"` - MaxPreparedTransactions *wrappers.Int64Value `protobuf:"bytes,4,opt,name=max_prepared_transactions,json=maxPreparedTransactions,proto3" json:"max_prepared_transactions,omitempty"` - WorkMem *wrappers.Int64Value `protobuf:"bytes,5,opt,name=work_mem,json=workMem,proto3" json:"work_mem,omitempty"` - MaintenanceWorkMem *wrappers.Int64Value `protobuf:"bytes,6,opt,name=maintenance_work_mem,json=maintenanceWorkMem,proto3" json:"maintenance_work_mem,omitempty"` - AutovacuumWorkMem *wrappers.Int64Value `protobuf:"bytes,7,opt,name=autovacuum_work_mem,json=autovacuumWorkMem,proto3" json:"autovacuum_work_mem,omitempty"` - TempFileLimit *wrappers.Int64Value `protobuf:"bytes,8,opt,name=temp_file_limit,json=tempFileLimit,proto3" json:"temp_file_limit,omitempty"` - VacuumCostDelay *wrappers.Int64Value `protobuf:"bytes,9,opt,name=vacuum_cost_delay,json=vacuumCostDelay,proto3" json:"vacuum_cost_delay,omitempty"` - VacuumCostPageHit *wrappers.Int64Value `protobuf:"bytes,10,opt,name=vacuum_cost_page_hit,json=vacuumCostPageHit,proto3" json:"vacuum_cost_page_hit,omitempty"` - VacuumCostPageMiss *wrappers.Int64Value `protobuf:"bytes,11,opt,name=vacuum_cost_page_miss,json=vacuumCostPageMiss,proto3" json:"vacuum_cost_page_miss,omitempty"` - VacuumCostPageDirty *wrappers.Int64Value `protobuf:"bytes,12,opt,name=vacuum_cost_page_dirty,json=vacuumCostPageDirty,proto3" json:"vacuum_cost_page_dirty,omitempty"` - VacuumCostLimit *wrappers.Int64Value `protobuf:"bytes,13,opt,name=vacuum_cost_limit,json=vacuumCostLimit,proto3" json:"vacuum_cost_limit,omitempty"` - BgwriterDelay *wrappers.Int64Value `protobuf:"bytes,14,opt,name=bgwriter_delay,json=bgwriterDelay,proto3" json:"bgwriter_delay,omitempty"` - BgwriterLruMaxpages *wrappers.Int64Value `protobuf:"bytes,15,opt,name=bgwriter_lru_maxpages,json=bgwriterLruMaxpages,proto3" json:"bgwriter_lru_maxpages,omitempty"` - BgwriterLruMultiplier *wrappers.DoubleValue `protobuf:"bytes,16,opt,name=bgwriter_lru_multiplier,json=bgwriterLruMultiplier,proto3" json:"bgwriter_lru_multiplier,omitempty"` - BgwriterFlushAfter *wrappers.Int64Value `protobuf:"bytes,17,opt,name=bgwriter_flush_after,json=bgwriterFlushAfter,proto3" json:"bgwriter_flush_after,omitempty"` - BackendFlushAfter *wrappers.Int64Value `protobuf:"bytes,18,opt,name=backend_flush_after,json=backendFlushAfter,proto3" json:"backend_flush_after,omitempty"` - OldSnapshotThreshold *wrappers.Int64Value `protobuf:"bytes,19,opt,name=old_snapshot_threshold,json=oldSnapshotThreshold,proto3" json:"old_snapshot_threshold,omitempty"` - WalLevel PostgresqlConfig11_WalLevel `protobuf:"varint,20,opt,name=wal_level,json=walLevel,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_WalLevel" json:"wal_level,omitempty"` - SynchronousCommit PostgresqlConfig11_SynchronousCommit `protobuf:"varint,21,opt,name=synchronous_commit,json=synchronousCommit,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_SynchronousCommit" json:"synchronous_commit,omitempty"` - CheckpointTimeout *wrappers.Int64Value `protobuf:"bytes,22,opt,name=checkpoint_timeout,json=checkpointTimeout,proto3" json:"checkpoint_timeout,omitempty"` - CheckpointCompletionTarget *wrappers.DoubleValue `protobuf:"bytes,23,opt,name=checkpoint_completion_target,json=checkpointCompletionTarget,proto3" json:"checkpoint_completion_target,omitempty"` - CheckpointFlushAfter *wrappers.Int64Value `protobuf:"bytes,24,opt,name=checkpoint_flush_after,json=checkpointFlushAfter,proto3" json:"checkpoint_flush_after,omitempty"` - MaxWalSize *wrappers.Int64Value `protobuf:"bytes,25,opt,name=max_wal_size,json=maxWalSize,proto3" json:"max_wal_size,omitempty"` - MinWalSize *wrappers.Int64Value `protobuf:"bytes,26,opt,name=min_wal_size,json=minWalSize,proto3" json:"min_wal_size,omitempty"` - MaxStandbyStreamingDelay *wrappers.Int64Value `protobuf:"bytes,27,opt,name=max_standby_streaming_delay,json=maxStandbyStreamingDelay,proto3" json:"max_standby_streaming_delay,omitempty"` - DefaultStatisticsTarget *wrappers.Int64Value `protobuf:"bytes,28,opt,name=default_statistics_target,json=defaultStatisticsTarget,proto3" json:"default_statistics_target,omitempty"` - ConstraintExclusion PostgresqlConfig11_ConstraintExclusion `protobuf:"varint,29,opt,name=constraint_exclusion,json=constraintExclusion,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_ConstraintExclusion" json:"constraint_exclusion,omitempty"` - CursorTupleFraction *wrappers.DoubleValue `protobuf:"bytes,30,opt,name=cursor_tuple_fraction,json=cursorTupleFraction,proto3" json:"cursor_tuple_fraction,omitempty"` - FromCollapseLimit *wrappers.Int64Value `protobuf:"bytes,31,opt,name=from_collapse_limit,json=fromCollapseLimit,proto3" json:"from_collapse_limit,omitempty"` - JoinCollapseLimit *wrappers.Int64Value `protobuf:"bytes,32,opt,name=join_collapse_limit,json=joinCollapseLimit,proto3" json:"join_collapse_limit,omitempty"` - ForceParallelMode PostgresqlConfig11_ForceParallelMode `protobuf:"varint,33,opt,name=force_parallel_mode,json=forceParallelMode,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_ForceParallelMode" json:"force_parallel_mode,omitempty"` - ClientMinMessages PostgresqlConfig11_LogLevel `protobuf:"varint,34,opt,name=client_min_messages,json=clientMinMessages,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_LogLevel" json:"client_min_messages,omitempty"` - LogMinMessages PostgresqlConfig11_LogLevel `protobuf:"varint,35,opt,name=log_min_messages,json=logMinMessages,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_LogLevel" json:"log_min_messages,omitempty"` - LogMinErrorStatement PostgresqlConfig11_LogLevel `protobuf:"varint,36,opt,name=log_min_error_statement,json=logMinErrorStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_LogLevel" json:"log_min_error_statement,omitempty"` - LogMinDurationStatement *wrappers.Int64Value `protobuf:"bytes,37,opt,name=log_min_duration_statement,json=logMinDurationStatement,proto3" json:"log_min_duration_statement,omitempty"` - LogCheckpoints *wrappers.BoolValue `protobuf:"bytes,38,opt,name=log_checkpoints,json=logCheckpoints,proto3" json:"log_checkpoints,omitempty"` - LogConnections *wrappers.BoolValue `protobuf:"bytes,39,opt,name=log_connections,json=logConnections,proto3" json:"log_connections,omitempty"` - LogDisconnections *wrappers.BoolValue `protobuf:"bytes,40,opt,name=log_disconnections,json=logDisconnections,proto3" json:"log_disconnections,omitempty"` - LogDuration *wrappers.BoolValue `protobuf:"bytes,41,opt,name=log_duration,json=logDuration,proto3" json:"log_duration,omitempty"` - LogErrorVerbosity PostgresqlConfig11_LogErrorVerbosity `protobuf:"varint,42,opt,name=log_error_verbosity,json=logErrorVerbosity,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_LogErrorVerbosity" json:"log_error_verbosity,omitempty"` - LogLockWaits *wrappers.BoolValue `protobuf:"bytes,43,opt,name=log_lock_waits,json=logLockWaits,proto3" json:"log_lock_waits,omitempty"` - LogStatement PostgresqlConfig11_LogStatement `protobuf:"varint,44,opt,name=log_statement,json=logStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_LogStatement" json:"log_statement,omitempty"` - LogTempFiles *wrappers.Int64Value `protobuf:"bytes,45,opt,name=log_temp_files,json=logTempFiles,proto3" json:"log_temp_files,omitempty"` - SearchPath string `protobuf:"bytes,46,opt,name=search_path,json=searchPath,proto3" json:"search_path,omitempty"` - RowSecurity *wrappers.BoolValue `protobuf:"bytes,47,opt,name=row_security,json=rowSecurity,proto3" json:"row_security,omitempty"` - DefaultTransactionIsolation PostgresqlConfig11_TransactionIsolation `protobuf:"varint,48,opt,name=default_transaction_isolation,json=defaultTransactionIsolation,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_TransactionIsolation" json:"default_transaction_isolation,omitempty"` - StatementTimeout *wrappers.Int64Value `protobuf:"bytes,49,opt,name=statement_timeout,json=statementTimeout,proto3" json:"statement_timeout,omitempty"` - LockTimeout *wrappers.Int64Value `protobuf:"bytes,50,opt,name=lock_timeout,json=lockTimeout,proto3" json:"lock_timeout,omitempty"` - IdleInTransactionSessionTimeout *wrappers.Int64Value `protobuf:"bytes,51,opt,name=idle_in_transaction_session_timeout,json=idleInTransactionSessionTimeout,proto3" json:"idle_in_transaction_session_timeout,omitempty"` - ByteaOutput PostgresqlConfig11_ByteaOutput `protobuf:"varint,52,opt,name=bytea_output,json=byteaOutput,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_ByteaOutput" json:"bytea_output,omitempty"` - Xmlbinary PostgresqlConfig11_XmlBinary `protobuf:"varint,53,opt,name=xmlbinary,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_XmlBinary" json:"xmlbinary,omitempty"` - Xmloption PostgresqlConfig11_XmlOption `protobuf:"varint,54,opt,name=xmloption,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_XmlOption" json:"xmloption,omitempty"` - GinPendingListLimit *wrappers.Int64Value `protobuf:"bytes,55,opt,name=gin_pending_list_limit,json=ginPendingListLimit,proto3" json:"gin_pending_list_limit,omitempty"` - DeadlockTimeout *wrappers.Int64Value `protobuf:"bytes,56,opt,name=deadlock_timeout,json=deadlockTimeout,proto3" json:"deadlock_timeout,omitempty"` - MaxLocksPerTransaction *wrappers.Int64Value `protobuf:"bytes,57,opt,name=max_locks_per_transaction,json=maxLocksPerTransaction,proto3" json:"max_locks_per_transaction,omitempty"` - MaxPredLocksPerTransaction *wrappers.Int64Value `protobuf:"bytes,58,opt,name=max_pred_locks_per_transaction,json=maxPredLocksPerTransaction,proto3" json:"max_pred_locks_per_transaction,omitempty"` - ArrayNulls *wrappers.BoolValue `protobuf:"bytes,59,opt,name=array_nulls,json=arrayNulls,proto3" json:"array_nulls,omitempty"` - BackslashQuote PostgresqlConfig11_BackslashQuote `protobuf:"varint,60,opt,name=backslash_quote,json=backslashQuote,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_BackslashQuote" json:"backslash_quote,omitempty"` - DefaultWithOids *wrappers.BoolValue `protobuf:"bytes,61,opt,name=default_with_oids,json=defaultWithOids,proto3" json:"default_with_oids,omitempty"` - EscapeStringWarning *wrappers.BoolValue `protobuf:"bytes,62,opt,name=escape_string_warning,json=escapeStringWarning,proto3" json:"escape_string_warning,omitempty"` - LoCompatPrivileges *wrappers.BoolValue `protobuf:"bytes,63,opt,name=lo_compat_privileges,json=loCompatPrivileges,proto3" json:"lo_compat_privileges,omitempty"` - OperatorPrecedenceWarning *wrappers.BoolValue `protobuf:"bytes,64,opt,name=operator_precedence_warning,json=operatorPrecedenceWarning,proto3" json:"operator_precedence_warning,omitempty"` - QuoteAllIdentifiers *wrappers.BoolValue `protobuf:"bytes,65,opt,name=quote_all_identifiers,json=quoteAllIdentifiers,proto3" json:"quote_all_identifiers,omitempty"` - StandardConformingStrings *wrappers.BoolValue `protobuf:"bytes,66,opt,name=standard_conforming_strings,json=standardConformingStrings,proto3" json:"standard_conforming_strings,omitempty"` - SynchronizeSeqscans *wrappers.BoolValue `protobuf:"bytes,67,opt,name=synchronize_seqscans,json=synchronizeSeqscans,proto3" json:"synchronize_seqscans,omitempty"` - TransformNullEquals *wrappers.BoolValue `protobuf:"bytes,68,opt,name=transform_null_equals,json=transformNullEquals,proto3" json:"transform_null_equals,omitempty"` - ExitOnError *wrappers.BoolValue `protobuf:"bytes,69,opt,name=exit_on_error,json=exitOnError,proto3" json:"exit_on_error,omitempty"` - SeqPageCost *wrappers.DoubleValue `protobuf:"bytes,70,opt,name=seq_page_cost,json=seqPageCost,proto3" json:"seq_page_cost,omitempty"` - RandomPageCost *wrappers.DoubleValue `protobuf:"bytes,71,opt,name=random_page_cost,json=randomPageCost,proto3" json:"random_page_cost,omitempty"` - AutovacuumMaxWorkers *wrappers.Int64Value `protobuf:"bytes,72,opt,name=autovacuum_max_workers,json=autovacuumMaxWorkers,proto3" json:"autovacuum_max_workers,omitempty"` - AutovacuumVacuumCostDelay *wrappers.Int64Value `protobuf:"bytes,73,opt,name=autovacuum_vacuum_cost_delay,json=autovacuumVacuumCostDelay,proto3" json:"autovacuum_vacuum_cost_delay,omitempty"` - AutovacuumVacuumCostLimit *wrappers.Int64Value `protobuf:"bytes,74,opt,name=autovacuum_vacuum_cost_limit,json=autovacuumVacuumCostLimit,proto3" json:"autovacuum_vacuum_cost_limit,omitempty"` - AutovacuumNaptime *wrappers.Int64Value `protobuf:"bytes,75,opt,name=autovacuum_naptime,json=autovacuumNaptime,proto3" json:"autovacuum_naptime,omitempty"` - ArchiveTimeout *wrappers.Int64Value `protobuf:"bytes,76,opt,name=archive_timeout,json=archiveTimeout,proto3" json:"archive_timeout,omitempty"` - TrackActivityQuerySize *wrappers.Int64Value `protobuf:"bytes,77,opt,name=track_activity_query_size,json=trackActivityQuerySize,proto3" json:"track_activity_query_size,omitempty"` - EnableBitmapscan *wrappers.BoolValue `protobuf:"bytes,80,opt,name=enable_bitmapscan,json=enableBitmapscan,proto3" json:"enable_bitmapscan,omitempty"` - EnableHashagg *wrappers.BoolValue `protobuf:"bytes,81,opt,name=enable_hashagg,json=enableHashagg,proto3" json:"enable_hashagg,omitempty"` - EnableHashjoin *wrappers.BoolValue `protobuf:"bytes,82,opt,name=enable_hashjoin,json=enableHashjoin,proto3" json:"enable_hashjoin,omitempty"` - EnableIndexscan *wrappers.BoolValue `protobuf:"bytes,83,opt,name=enable_indexscan,json=enableIndexscan,proto3" json:"enable_indexscan,omitempty"` - EnableIndexonlyscan *wrappers.BoolValue `protobuf:"bytes,84,opt,name=enable_indexonlyscan,json=enableIndexonlyscan,proto3" json:"enable_indexonlyscan,omitempty"` - EnableMaterial *wrappers.BoolValue `protobuf:"bytes,85,opt,name=enable_material,json=enableMaterial,proto3" json:"enable_material,omitempty"` - EnableMergejoin *wrappers.BoolValue `protobuf:"bytes,86,opt,name=enable_mergejoin,json=enableMergejoin,proto3" json:"enable_mergejoin,omitempty"` - EnableNestloop *wrappers.BoolValue `protobuf:"bytes,87,opt,name=enable_nestloop,json=enableNestloop,proto3" json:"enable_nestloop,omitempty"` - EnableSeqscan *wrappers.BoolValue `protobuf:"bytes,88,opt,name=enable_seqscan,json=enableSeqscan,proto3" json:"enable_seqscan,omitempty"` - EnableSort *wrappers.BoolValue `protobuf:"bytes,89,opt,name=enable_sort,json=enableSort,proto3" json:"enable_sort,omitempty"` - EnableTidscan *wrappers.BoolValue `protobuf:"bytes,90,opt,name=enable_tidscan,json=enableTidscan,proto3" json:"enable_tidscan,omitempty"` - MaxWorkerProcesses *wrappers.Int64Value `protobuf:"bytes,91,opt,name=max_worker_processes,json=maxWorkerProcesses,proto3" json:"max_worker_processes,omitempty"` - MaxParallelWorkers *wrappers.Int64Value `protobuf:"bytes,92,opt,name=max_parallel_workers,json=maxParallelWorkers,proto3" json:"max_parallel_workers,omitempty"` - MaxParallelWorkersPerGather *wrappers.Int64Value `protobuf:"bytes,93,opt,name=max_parallel_workers_per_gather,json=maxParallelWorkersPerGather,proto3" json:"max_parallel_workers_per_gather,omitempty"` - AutovacuumVacuumScaleFactor *wrappers.DoubleValue `protobuf:"bytes,94,opt,name=autovacuum_vacuum_scale_factor,json=autovacuumVacuumScaleFactor,proto3" json:"autovacuum_vacuum_scale_factor,omitempty"` - AutovacuumAnalyzeScaleFactor *wrappers.DoubleValue `protobuf:"bytes,95,opt,name=autovacuum_analyze_scale_factor,json=autovacuumAnalyzeScaleFactor,proto3" json:"autovacuum_analyze_scale_factor,omitempty"` - DefaultTransactionReadOnly *wrappers.BoolValue `protobuf:"bytes,96,opt,name=default_transaction_read_only,json=defaultTransactionReadOnly,proto3" json:"default_transaction_read_only,omitempty"` - Timezone string `protobuf:"bytes,97,opt,name=timezone,proto3" json:"timezone,omitempty"` - EnableParallelAppend *wrappers.BoolValue `protobuf:"bytes,98,opt,name=enable_parallel_append,json=enableParallelAppend,proto3" json:"enable_parallel_append,omitempty"` - EnableParallelHash *wrappers.BoolValue `protobuf:"bytes,99,opt,name=enable_parallel_hash,json=enableParallelHash,proto3" json:"enable_parallel_hash,omitempty"` - EnablePartitionPruning *wrappers.BoolValue `protobuf:"bytes,100,opt,name=enable_partition_pruning,json=enablePartitionPruning,proto3" json:"enable_partition_pruning,omitempty"` - EnablePartitionwiseAggregate *wrappers.BoolValue `protobuf:"bytes,101,opt,name=enable_partitionwise_aggregate,json=enablePartitionwiseAggregate,proto3" json:"enable_partitionwise_aggregate,omitempty"` - EnablePartitionwiseJoin *wrappers.BoolValue `protobuf:"bytes,102,opt,name=enable_partitionwise_join,json=enablePartitionwiseJoin,proto3" json:"enable_partitionwise_join,omitempty"` - Jit *wrappers.BoolValue `protobuf:"bytes,103,opt,name=jit,proto3" json:"jit,omitempty"` - MaxParallelMaintenanceWorkers *wrappers.Int64Value `protobuf:"bytes,104,opt,name=max_parallel_maintenance_workers,json=maxParallelMaintenanceWorkers,proto3" json:"max_parallel_maintenance_workers,omitempty"` - ParallelLeaderParticipation *wrappers.BoolValue `protobuf:"bytes,105,opt,name=parallel_leader_participation,json=parallelLeaderParticipation,proto3" json:"parallel_leader_participation,omitempty"` - VacuumCleanupIndexScaleFactor *wrappers.DoubleValue `protobuf:"bytes,106,opt,name=vacuum_cleanup_index_scale_factor,json=vacuumCleanupIndexScaleFactor,proto3" json:"vacuum_cleanup_index_scale_factor,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MaxConnections *wrappers.Int64Value `protobuf:"bytes,1,opt,name=max_connections,json=maxConnections,proto3" json:"max_connections,omitempty"` + SharedBuffers *wrappers.Int64Value `protobuf:"bytes,2,opt,name=shared_buffers,json=sharedBuffers,proto3" json:"shared_buffers,omitempty"` + TempBuffers *wrappers.Int64Value `protobuf:"bytes,3,opt,name=temp_buffers,json=tempBuffers,proto3" json:"temp_buffers,omitempty"` + MaxPreparedTransactions *wrappers.Int64Value `protobuf:"bytes,4,opt,name=max_prepared_transactions,json=maxPreparedTransactions,proto3" json:"max_prepared_transactions,omitempty"` + WorkMem *wrappers.Int64Value `protobuf:"bytes,5,opt,name=work_mem,json=workMem,proto3" json:"work_mem,omitempty"` + MaintenanceWorkMem *wrappers.Int64Value `protobuf:"bytes,6,opt,name=maintenance_work_mem,json=maintenanceWorkMem,proto3" json:"maintenance_work_mem,omitempty"` + AutovacuumWorkMem *wrappers.Int64Value `protobuf:"bytes,7,opt,name=autovacuum_work_mem,json=autovacuumWorkMem,proto3" json:"autovacuum_work_mem,omitempty"` + TempFileLimit *wrappers.Int64Value `protobuf:"bytes,8,opt,name=temp_file_limit,json=tempFileLimit,proto3" json:"temp_file_limit,omitempty"` + VacuumCostDelay *wrappers.Int64Value `protobuf:"bytes,9,opt,name=vacuum_cost_delay,json=vacuumCostDelay,proto3" json:"vacuum_cost_delay,omitempty"` + VacuumCostPageHit *wrappers.Int64Value `protobuf:"bytes,10,opt,name=vacuum_cost_page_hit,json=vacuumCostPageHit,proto3" json:"vacuum_cost_page_hit,omitempty"` + VacuumCostPageMiss *wrappers.Int64Value `protobuf:"bytes,11,opt,name=vacuum_cost_page_miss,json=vacuumCostPageMiss,proto3" json:"vacuum_cost_page_miss,omitempty"` + VacuumCostPageDirty *wrappers.Int64Value `protobuf:"bytes,12,opt,name=vacuum_cost_page_dirty,json=vacuumCostPageDirty,proto3" json:"vacuum_cost_page_dirty,omitempty"` + VacuumCostLimit *wrappers.Int64Value `protobuf:"bytes,13,opt,name=vacuum_cost_limit,json=vacuumCostLimit,proto3" json:"vacuum_cost_limit,omitempty"` + BgwriterDelay *wrappers.Int64Value `protobuf:"bytes,14,opt,name=bgwriter_delay,json=bgwriterDelay,proto3" json:"bgwriter_delay,omitempty"` + BgwriterLruMaxpages *wrappers.Int64Value `protobuf:"bytes,15,opt,name=bgwriter_lru_maxpages,json=bgwriterLruMaxpages,proto3" json:"bgwriter_lru_maxpages,omitempty"` + BgwriterLruMultiplier *wrappers.DoubleValue `protobuf:"bytes,16,opt,name=bgwriter_lru_multiplier,json=bgwriterLruMultiplier,proto3" json:"bgwriter_lru_multiplier,omitempty"` + BgwriterFlushAfter *wrappers.Int64Value `protobuf:"bytes,17,opt,name=bgwriter_flush_after,json=bgwriterFlushAfter,proto3" json:"bgwriter_flush_after,omitempty"` + BackendFlushAfter *wrappers.Int64Value `protobuf:"bytes,18,opt,name=backend_flush_after,json=backendFlushAfter,proto3" json:"backend_flush_after,omitempty"` + OldSnapshotThreshold *wrappers.Int64Value `protobuf:"bytes,19,opt,name=old_snapshot_threshold,json=oldSnapshotThreshold,proto3" json:"old_snapshot_threshold,omitempty"` + WalLevel PostgresqlConfig11_WalLevel `protobuf:"varint,20,opt,name=wal_level,json=walLevel,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_WalLevel" json:"wal_level,omitempty"` + SynchronousCommit PostgresqlConfig11_SynchronousCommit `protobuf:"varint,21,opt,name=synchronous_commit,json=synchronousCommit,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_SynchronousCommit" json:"synchronous_commit,omitempty"` + CheckpointTimeout *wrappers.Int64Value `protobuf:"bytes,22,opt,name=checkpoint_timeout,json=checkpointTimeout,proto3" json:"checkpoint_timeout,omitempty"` + CheckpointCompletionTarget *wrappers.DoubleValue `protobuf:"bytes,23,opt,name=checkpoint_completion_target,json=checkpointCompletionTarget,proto3" json:"checkpoint_completion_target,omitempty"` + CheckpointFlushAfter *wrappers.Int64Value `protobuf:"bytes,24,opt,name=checkpoint_flush_after,json=checkpointFlushAfter,proto3" json:"checkpoint_flush_after,omitempty"` + MaxWalSize *wrappers.Int64Value `protobuf:"bytes,25,opt,name=max_wal_size,json=maxWalSize,proto3" json:"max_wal_size,omitempty"` + MinWalSize *wrappers.Int64Value `protobuf:"bytes,26,opt,name=min_wal_size,json=minWalSize,proto3" json:"min_wal_size,omitempty"` + MaxStandbyStreamingDelay *wrappers.Int64Value `protobuf:"bytes,27,opt,name=max_standby_streaming_delay,json=maxStandbyStreamingDelay,proto3" json:"max_standby_streaming_delay,omitempty"` + DefaultStatisticsTarget *wrappers.Int64Value `protobuf:"bytes,28,opt,name=default_statistics_target,json=defaultStatisticsTarget,proto3" json:"default_statistics_target,omitempty"` + ConstraintExclusion PostgresqlConfig11_ConstraintExclusion `protobuf:"varint,29,opt,name=constraint_exclusion,json=constraintExclusion,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_ConstraintExclusion" json:"constraint_exclusion,omitempty"` + CursorTupleFraction *wrappers.DoubleValue `protobuf:"bytes,30,opt,name=cursor_tuple_fraction,json=cursorTupleFraction,proto3" json:"cursor_tuple_fraction,omitempty"` + FromCollapseLimit *wrappers.Int64Value `protobuf:"bytes,31,opt,name=from_collapse_limit,json=fromCollapseLimit,proto3" json:"from_collapse_limit,omitempty"` + JoinCollapseLimit *wrappers.Int64Value `protobuf:"bytes,32,opt,name=join_collapse_limit,json=joinCollapseLimit,proto3" json:"join_collapse_limit,omitempty"` + ForceParallelMode PostgresqlConfig11_ForceParallelMode `protobuf:"varint,33,opt,name=force_parallel_mode,json=forceParallelMode,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_ForceParallelMode" json:"force_parallel_mode,omitempty"` + ClientMinMessages PostgresqlConfig11_LogLevel `protobuf:"varint,34,opt,name=client_min_messages,json=clientMinMessages,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_LogLevel" json:"client_min_messages,omitempty"` + LogMinMessages PostgresqlConfig11_LogLevel `protobuf:"varint,35,opt,name=log_min_messages,json=logMinMessages,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_LogLevel" json:"log_min_messages,omitempty"` + LogMinErrorStatement PostgresqlConfig11_LogLevel `protobuf:"varint,36,opt,name=log_min_error_statement,json=logMinErrorStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_LogLevel" json:"log_min_error_statement,omitempty"` + LogMinDurationStatement *wrappers.Int64Value `protobuf:"bytes,37,opt,name=log_min_duration_statement,json=logMinDurationStatement,proto3" json:"log_min_duration_statement,omitempty"` + LogCheckpoints *wrappers.BoolValue `protobuf:"bytes,38,opt,name=log_checkpoints,json=logCheckpoints,proto3" json:"log_checkpoints,omitempty"` + LogConnections *wrappers.BoolValue `protobuf:"bytes,39,opt,name=log_connections,json=logConnections,proto3" json:"log_connections,omitempty"` + LogDisconnections *wrappers.BoolValue `protobuf:"bytes,40,opt,name=log_disconnections,json=logDisconnections,proto3" json:"log_disconnections,omitempty"` + LogDuration *wrappers.BoolValue `protobuf:"bytes,41,opt,name=log_duration,json=logDuration,proto3" json:"log_duration,omitempty"` + LogErrorVerbosity PostgresqlConfig11_LogErrorVerbosity `protobuf:"varint,42,opt,name=log_error_verbosity,json=logErrorVerbosity,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_LogErrorVerbosity" json:"log_error_verbosity,omitempty"` + LogLockWaits *wrappers.BoolValue `protobuf:"bytes,43,opt,name=log_lock_waits,json=logLockWaits,proto3" json:"log_lock_waits,omitempty"` + LogStatement PostgresqlConfig11_LogStatement `protobuf:"varint,44,opt,name=log_statement,json=logStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_LogStatement" json:"log_statement,omitempty"` + LogTempFiles *wrappers.Int64Value `protobuf:"bytes,45,opt,name=log_temp_files,json=logTempFiles,proto3" json:"log_temp_files,omitempty"` + SearchPath string `protobuf:"bytes,46,opt,name=search_path,json=searchPath,proto3" json:"search_path,omitempty"` + RowSecurity *wrappers.BoolValue `protobuf:"bytes,47,opt,name=row_security,json=rowSecurity,proto3" json:"row_security,omitempty"` + DefaultTransactionIsolation PostgresqlConfig11_TransactionIsolation `protobuf:"varint,48,opt,name=default_transaction_isolation,json=defaultTransactionIsolation,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_TransactionIsolation" json:"default_transaction_isolation,omitempty"` + StatementTimeout *wrappers.Int64Value `protobuf:"bytes,49,opt,name=statement_timeout,json=statementTimeout,proto3" json:"statement_timeout,omitempty"` + LockTimeout *wrappers.Int64Value `protobuf:"bytes,50,opt,name=lock_timeout,json=lockTimeout,proto3" json:"lock_timeout,omitempty"` + IdleInTransactionSessionTimeout *wrappers.Int64Value `protobuf:"bytes,51,opt,name=idle_in_transaction_session_timeout,json=idleInTransactionSessionTimeout,proto3" json:"idle_in_transaction_session_timeout,omitempty"` + ByteaOutput PostgresqlConfig11_ByteaOutput `protobuf:"varint,52,opt,name=bytea_output,json=byteaOutput,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_ByteaOutput" json:"bytea_output,omitempty"` + Xmlbinary PostgresqlConfig11_XmlBinary `protobuf:"varint,53,opt,name=xmlbinary,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_XmlBinary" json:"xmlbinary,omitempty"` + Xmloption PostgresqlConfig11_XmlOption `protobuf:"varint,54,opt,name=xmloption,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_XmlOption" json:"xmloption,omitempty"` + GinPendingListLimit *wrappers.Int64Value `protobuf:"bytes,55,opt,name=gin_pending_list_limit,json=ginPendingListLimit,proto3" json:"gin_pending_list_limit,omitempty"` + DeadlockTimeout *wrappers.Int64Value `protobuf:"bytes,56,opt,name=deadlock_timeout,json=deadlockTimeout,proto3" json:"deadlock_timeout,omitempty"` + MaxLocksPerTransaction *wrappers.Int64Value `protobuf:"bytes,57,opt,name=max_locks_per_transaction,json=maxLocksPerTransaction,proto3" json:"max_locks_per_transaction,omitempty"` + MaxPredLocksPerTransaction *wrappers.Int64Value `protobuf:"bytes,58,opt,name=max_pred_locks_per_transaction,json=maxPredLocksPerTransaction,proto3" json:"max_pred_locks_per_transaction,omitempty"` + ArrayNulls *wrappers.BoolValue `protobuf:"bytes,59,opt,name=array_nulls,json=arrayNulls,proto3" json:"array_nulls,omitempty"` + BackslashQuote PostgresqlConfig11_BackslashQuote `protobuf:"varint,60,opt,name=backslash_quote,json=backslashQuote,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_BackslashQuote" json:"backslash_quote,omitempty"` + DefaultWithOids *wrappers.BoolValue `protobuf:"bytes,61,opt,name=default_with_oids,json=defaultWithOids,proto3" json:"default_with_oids,omitempty"` + EscapeStringWarning *wrappers.BoolValue `protobuf:"bytes,62,opt,name=escape_string_warning,json=escapeStringWarning,proto3" json:"escape_string_warning,omitempty"` + LoCompatPrivileges *wrappers.BoolValue `protobuf:"bytes,63,opt,name=lo_compat_privileges,json=loCompatPrivileges,proto3" json:"lo_compat_privileges,omitempty"` + OperatorPrecedenceWarning *wrappers.BoolValue `protobuf:"bytes,64,opt,name=operator_precedence_warning,json=operatorPrecedenceWarning,proto3" json:"operator_precedence_warning,omitempty"` + QuoteAllIdentifiers *wrappers.BoolValue `protobuf:"bytes,65,opt,name=quote_all_identifiers,json=quoteAllIdentifiers,proto3" json:"quote_all_identifiers,omitempty"` + StandardConformingStrings *wrappers.BoolValue `protobuf:"bytes,66,opt,name=standard_conforming_strings,json=standardConformingStrings,proto3" json:"standard_conforming_strings,omitempty"` + SynchronizeSeqscans *wrappers.BoolValue `protobuf:"bytes,67,opt,name=synchronize_seqscans,json=synchronizeSeqscans,proto3" json:"synchronize_seqscans,omitempty"` + TransformNullEquals *wrappers.BoolValue `protobuf:"bytes,68,opt,name=transform_null_equals,json=transformNullEquals,proto3" json:"transform_null_equals,omitempty"` + ExitOnError *wrappers.BoolValue `protobuf:"bytes,69,opt,name=exit_on_error,json=exitOnError,proto3" json:"exit_on_error,omitempty"` + SeqPageCost *wrappers.DoubleValue `protobuf:"bytes,70,opt,name=seq_page_cost,json=seqPageCost,proto3" json:"seq_page_cost,omitempty"` + RandomPageCost *wrappers.DoubleValue `protobuf:"bytes,71,opt,name=random_page_cost,json=randomPageCost,proto3" json:"random_page_cost,omitempty"` + AutovacuumMaxWorkers *wrappers.Int64Value `protobuf:"bytes,72,opt,name=autovacuum_max_workers,json=autovacuumMaxWorkers,proto3" json:"autovacuum_max_workers,omitempty"` + AutovacuumVacuumCostDelay *wrappers.Int64Value `protobuf:"bytes,73,opt,name=autovacuum_vacuum_cost_delay,json=autovacuumVacuumCostDelay,proto3" json:"autovacuum_vacuum_cost_delay,omitempty"` + AutovacuumVacuumCostLimit *wrappers.Int64Value `protobuf:"bytes,74,opt,name=autovacuum_vacuum_cost_limit,json=autovacuumVacuumCostLimit,proto3" json:"autovacuum_vacuum_cost_limit,omitempty"` + AutovacuumNaptime *wrappers.Int64Value `protobuf:"bytes,75,opt,name=autovacuum_naptime,json=autovacuumNaptime,proto3" json:"autovacuum_naptime,omitempty"` + ArchiveTimeout *wrappers.Int64Value `protobuf:"bytes,76,opt,name=archive_timeout,json=archiveTimeout,proto3" json:"archive_timeout,omitempty"` + TrackActivityQuerySize *wrappers.Int64Value `protobuf:"bytes,77,opt,name=track_activity_query_size,json=trackActivityQuerySize,proto3" json:"track_activity_query_size,omitempty"` + EnableBitmapscan *wrappers.BoolValue `protobuf:"bytes,80,opt,name=enable_bitmapscan,json=enableBitmapscan,proto3" json:"enable_bitmapscan,omitempty"` + EnableHashagg *wrappers.BoolValue `protobuf:"bytes,81,opt,name=enable_hashagg,json=enableHashagg,proto3" json:"enable_hashagg,omitempty"` + EnableHashjoin *wrappers.BoolValue `protobuf:"bytes,82,opt,name=enable_hashjoin,json=enableHashjoin,proto3" json:"enable_hashjoin,omitempty"` + EnableIndexscan *wrappers.BoolValue `protobuf:"bytes,83,opt,name=enable_indexscan,json=enableIndexscan,proto3" json:"enable_indexscan,omitempty"` + EnableIndexonlyscan *wrappers.BoolValue `protobuf:"bytes,84,opt,name=enable_indexonlyscan,json=enableIndexonlyscan,proto3" json:"enable_indexonlyscan,omitempty"` + EnableMaterial *wrappers.BoolValue `protobuf:"bytes,85,opt,name=enable_material,json=enableMaterial,proto3" json:"enable_material,omitempty"` + EnableMergejoin *wrappers.BoolValue `protobuf:"bytes,86,opt,name=enable_mergejoin,json=enableMergejoin,proto3" json:"enable_mergejoin,omitempty"` + EnableNestloop *wrappers.BoolValue `protobuf:"bytes,87,opt,name=enable_nestloop,json=enableNestloop,proto3" json:"enable_nestloop,omitempty"` + EnableSeqscan *wrappers.BoolValue `protobuf:"bytes,88,opt,name=enable_seqscan,json=enableSeqscan,proto3" json:"enable_seqscan,omitempty"` + EnableSort *wrappers.BoolValue `protobuf:"bytes,89,opt,name=enable_sort,json=enableSort,proto3" json:"enable_sort,omitempty"` + EnableTidscan *wrappers.BoolValue `protobuf:"bytes,90,opt,name=enable_tidscan,json=enableTidscan,proto3" json:"enable_tidscan,omitempty"` + MaxWorkerProcesses *wrappers.Int64Value `protobuf:"bytes,91,opt,name=max_worker_processes,json=maxWorkerProcesses,proto3" json:"max_worker_processes,omitempty"` + MaxParallelWorkers *wrappers.Int64Value `protobuf:"bytes,92,opt,name=max_parallel_workers,json=maxParallelWorkers,proto3" json:"max_parallel_workers,omitempty"` + MaxParallelWorkersPerGather *wrappers.Int64Value `protobuf:"bytes,93,opt,name=max_parallel_workers_per_gather,json=maxParallelWorkersPerGather,proto3" json:"max_parallel_workers_per_gather,omitempty"` + AutovacuumVacuumScaleFactor *wrappers.DoubleValue `protobuf:"bytes,94,opt,name=autovacuum_vacuum_scale_factor,json=autovacuumVacuumScaleFactor,proto3" json:"autovacuum_vacuum_scale_factor,omitempty"` + AutovacuumAnalyzeScaleFactor *wrappers.DoubleValue `protobuf:"bytes,95,opt,name=autovacuum_analyze_scale_factor,json=autovacuumAnalyzeScaleFactor,proto3" json:"autovacuum_analyze_scale_factor,omitempty"` + DefaultTransactionReadOnly *wrappers.BoolValue `protobuf:"bytes,96,opt,name=default_transaction_read_only,json=defaultTransactionReadOnly,proto3" json:"default_transaction_read_only,omitempty"` + Timezone string `protobuf:"bytes,97,opt,name=timezone,proto3" json:"timezone,omitempty"` + EnableParallelAppend *wrappers.BoolValue `protobuf:"bytes,98,opt,name=enable_parallel_append,json=enableParallelAppend,proto3" json:"enable_parallel_append,omitempty"` + EnableParallelHash *wrappers.BoolValue `protobuf:"bytes,99,opt,name=enable_parallel_hash,json=enableParallelHash,proto3" json:"enable_parallel_hash,omitempty"` + EnablePartitionPruning *wrappers.BoolValue `protobuf:"bytes,100,opt,name=enable_partition_pruning,json=enablePartitionPruning,proto3" json:"enable_partition_pruning,omitempty"` + EnablePartitionwiseAggregate *wrappers.BoolValue `protobuf:"bytes,101,opt,name=enable_partitionwise_aggregate,json=enablePartitionwiseAggregate,proto3" json:"enable_partitionwise_aggregate,omitempty"` + EnablePartitionwiseJoin *wrappers.BoolValue `protobuf:"bytes,102,opt,name=enable_partitionwise_join,json=enablePartitionwiseJoin,proto3" json:"enable_partitionwise_join,omitempty"` + Jit *wrappers.BoolValue `protobuf:"bytes,103,opt,name=jit,proto3" json:"jit,omitempty"` + MaxParallelMaintenanceWorkers *wrappers.Int64Value `protobuf:"bytes,104,opt,name=max_parallel_maintenance_workers,json=maxParallelMaintenanceWorkers,proto3" json:"max_parallel_maintenance_workers,omitempty"` + ParallelLeaderParticipation *wrappers.BoolValue `protobuf:"bytes,105,opt,name=parallel_leader_participation,json=parallelLeaderParticipation,proto3" json:"parallel_leader_participation,omitempty"` + VacuumCleanupIndexScaleFactor *wrappers.DoubleValue `protobuf:"bytes,106,opt,name=vacuum_cleanup_index_scale_factor,json=vacuumCleanupIndexScaleFactor,proto3" json:"vacuum_cleanup_index_scale_factor,omitempty"` + EffectiveIoConcurrency *wrappers.Int64Value `protobuf:"bytes,107,opt,name=effective_io_concurrency,json=effectiveIoConcurrency,proto3" json:"effective_io_concurrency,omitempty"` + EffectiveCacheSize *wrappers.Int64Value `protobuf:"bytes,108,opt,name=effective_cache_size,json=effectiveCacheSize,proto3" json:"effective_cache_size,omitempty"` + SharedPreloadLibraries []PostgresqlConfig11_SharedPreloadLibraries `protobuf:"varint,109,rep,packed,name=shared_preload_libraries,json=sharedPreloadLibraries,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_SharedPreloadLibraries" json:"shared_preload_libraries,omitempty"` + AutoExplainLogMinDuration *wrappers.Int64Value `protobuf:"bytes,110,opt,name=auto_explain_log_min_duration,json=autoExplainLogMinDuration,proto3" json:"auto_explain_log_min_duration,omitempty"` + AutoExplainLogAnalyze *wrappers.BoolValue `protobuf:"bytes,111,opt,name=auto_explain_log_analyze,json=autoExplainLogAnalyze,proto3" json:"auto_explain_log_analyze,omitempty"` + AutoExplainLogBuffers *wrappers.BoolValue `protobuf:"bytes,112,opt,name=auto_explain_log_buffers,json=autoExplainLogBuffers,proto3" json:"auto_explain_log_buffers,omitempty"` + AutoExplainLogTiming *wrappers.BoolValue `protobuf:"bytes,113,opt,name=auto_explain_log_timing,json=autoExplainLogTiming,proto3" json:"auto_explain_log_timing,omitempty"` + AutoExplainLogTriggers *wrappers.BoolValue `protobuf:"bytes,114,opt,name=auto_explain_log_triggers,json=autoExplainLogTriggers,proto3" json:"auto_explain_log_triggers,omitempty"` + AutoExplainLogVerbose *wrappers.BoolValue `protobuf:"bytes,115,opt,name=auto_explain_log_verbose,json=autoExplainLogVerbose,proto3" json:"auto_explain_log_verbose,omitempty"` + AutoExplainLogNestedStatements *wrappers.BoolValue `protobuf:"bytes,116,opt,name=auto_explain_log_nested_statements,json=autoExplainLogNestedStatements,proto3" json:"auto_explain_log_nested_statements,omitempty"` + AutoExplainSampleRate *wrappers.DoubleValue `protobuf:"bytes,117,opt,name=auto_explain_sample_rate,json=autoExplainSampleRate,proto3" json:"auto_explain_sample_rate,omitempty"` + PgHintPlanEnableHint *wrappers.BoolValue `protobuf:"bytes,118,opt,name=pg_hint_plan_enable_hint,json=pgHintPlanEnableHint,proto3" json:"pg_hint_plan_enable_hint,omitempty"` + PgHintPlanEnableHintTable *wrappers.BoolValue `protobuf:"bytes,119,opt,name=pg_hint_plan_enable_hint_table,json=pgHintPlanEnableHintTable,proto3" json:"pg_hint_plan_enable_hint_table,omitempty"` + PgHintPlanDebugPrint PostgresqlConfig11_PgHintPlanDebugPrint `protobuf:"varint,120,opt,name=pg_hint_plan_debug_print,json=pgHintPlanDebugPrint,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_PgHintPlanDebugPrint" json:"pg_hint_plan_debug_print,omitempty"` + PgHintPlanMessageLevel PostgresqlConfig11_LogLevel `protobuf:"varint,121,opt,name=pg_hint_plan_message_level,json=pgHintPlanMessageLevel,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_LogLevel" json:"pg_hint_plan_message_level,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PostgresqlConfig11) Reset() { *m = PostgresqlConfig11{} } @@ -1287,6 +1364,111 @@ func (m *PostgresqlConfig11) GetVacuumCleanupIndexScaleFactor() *wrappers.Double return nil } +func (m *PostgresqlConfig11) GetEffectiveIoConcurrency() *wrappers.Int64Value { + if m != nil { + return m.EffectiveIoConcurrency + } + return nil +} + +func (m *PostgresqlConfig11) GetEffectiveCacheSize() *wrappers.Int64Value { + if m != nil { + return m.EffectiveCacheSize + } + return nil +} + +func (m *PostgresqlConfig11) GetSharedPreloadLibraries() []PostgresqlConfig11_SharedPreloadLibraries { + if m != nil { + return m.SharedPreloadLibraries + } + return nil +} + +func (m *PostgresqlConfig11) GetAutoExplainLogMinDuration() *wrappers.Int64Value { + if m != nil { + return m.AutoExplainLogMinDuration + } + return nil +} + +func (m *PostgresqlConfig11) GetAutoExplainLogAnalyze() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogAnalyze + } + return nil +} + +func (m *PostgresqlConfig11) GetAutoExplainLogBuffers() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogBuffers + } + return nil +} + +func (m *PostgresqlConfig11) GetAutoExplainLogTiming() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogTiming + } + return nil +} + +func (m *PostgresqlConfig11) GetAutoExplainLogTriggers() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogTriggers + } + return nil +} + +func (m *PostgresqlConfig11) GetAutoExplainLogVerbose() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogVerbose + } + return nil +} + +func (m *PostgresqlConfig11) GetAutoExplainLogNestedStatements() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogNestedStatements + } + return nil +} + +func (m *PostgresqlConfig11) GetAutoExplainSampleRate() *wrappers.DoubleValue { + if m != nil { + return m.AutoExplainSampleRate + } + return nil +} + +func (m *PostgresqlConfig11) GetPgHintPlanEnableHint() *wrappers.BoolValue { + if m != nil { + return m.PgHintPlanEnableHint + } + return nil +} + +func (m *PostgresqlConfig11) GetPgHintPlanEnableHintTable() *wrappers.BoolValue { + if m != nil { + return m.PgHintPlanEnableHintTable + } + return nil +} + +func (m *PostgresqlConfig11) GetPgHintPlanDebugPrint() PostgresqlConfig11_PgHintPlanDebugPrint { + if m != nil { + return m.PgHintPlanDebugPrint + } + return PostgresqlConfig11_PG_HINT_PLAN_DEBUG_PRINT_UNSPECIFIED +} + +func (m *PostgresqlConfig11) GetPgHintPlanMessageLevel() PostgresqlConfig11_LogLevel { + if m != nil { + return m.PgHintPlanMessageLevel + } + return PostgresqlConfig11_LOG_LEVEL_UNSPECIFIED +} + type PostgresqlConfigSet11 struct { // Effective settings for a PostgreSQL 11 cluster (a combination of settings defined // in [user_config] and [default_config]). @@ -1359,6 +1541,8 @@ func init() { proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_XmlBinary", PostgresqlConfig11_XmlBinary_name, PostgresqlConfig11_XmlBinary_value) proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_XmlOption", PostgresqlConfig11_XmlOption_name, PostgresqlConfig11_XmlOption_value) proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_BackslashQuote", PostgresqlConfig11_BackslashQuote_name, PostgresqlConfig11_BackslashQuote_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_PgHintPlanDebugPrint", PostgresqlConfig11_PgHintPlanDebugPrint_name, PostgresqlConfig11_PgHintPlanDebugPrint_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_SharedPreloadLibraries", PostgresqlConfig11_SharedPreloadLibraries_name, PostgresqlConfig11_SharedPreloadLibraries_value) proto.RegisterType((*PostgresqlConfig11)(nil), "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11") proto.RegisterType((*PostgresqlConfigSet11)(nil), "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11") } @@ -1368,224 +1552,256 @@ func init() { } var fileDescriptor_7f28b14e19e1f835 = []byte{ - // 3500 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x9a, 0xdb, 0x7a, 0xdb, 0xb8, - 0x76, 0xc7, 0x2b, 0x3b, 0x33, 0x71, 0xe0, 0xd8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 0x0f, 0x80, 0xbf, 0x8b, 0x0b, 0xdb, 0x9f, 0x73, 0xdd, 0x93, 0xbf, 0x07, - 0x00, 0x00, 0xff, 0xff, 0x57, 0x5e, 0x3b, 0x4a, 0x3b, 0x2c, 0x00, 0x00, + // 4002 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x9b, 0x4b, 0x7b, 0xdb, 0xc6, + 0x7a, 0xc7, 0x4b, 0xc9, 0x49, 0xec, 0x91, 0x25, 0x81, 0xa3, 0x8b, 0x21, 0xc9, 0xb7, 0x28, 0x71, + 0xea, 0x9c, 0x1e, 0x49, 0xa4, 0xad, 0x38, 0x4e, 0xd3, 0xb8, 0x81, 0x48, 0x48, 0xe2, 0x09, 0x78, + 0x31, 0x48, 0x59, 0xb6, 0x53, 0x67, 0x32, 0x04, 0x86, 0xe4, 0x58, 0x20, 0x00, 0x63, 0x40, 0x5d, + 0xdc, 0xa7, 0x7d, 0xda, 0x4d, 0x17, 0x67, 0x79, 0x56, 0x6d, 0xbf, 0x4a, 0x3f, 0x80, 0xb6, 0x5d, + 0x75, 0xdd, 0x55, 0x3f, 0x84, 0x56, 0x7d, 0x66, 0x00, 0x10, 0xe0, 0x45, 0x01, 0x65, 0xc7, 0x2b, + 0x7a, 0x30, 0xff, 0xdf, 0x3b, 0x97, 0x77, 0xde, 0x99, 0x77, 0x00, 0x81, 0xa7, 0x67, 0xd8, 0x36, + 0xc9, 0xe9, 0x96, 0x61, 0x39, 0x3d, 0x73, 0xab, 0x6b, 0x36, 0xb7, 0x5c, 0x87, 0xf9, 0x6d, 0x8f, + 0xb0, 0x77, 0xd6, 0xd6, 0x71, 0x7e, 0xcb, 0x70, 0xec, 0x16, 0x6d, 0x27, 0x0a, 0xf3, 0xf9, 0x4d, + 0xd7, 0x73, 0x7c, 0x07, 0x3e, 0x08, 0x94, 0x9b, 0x42, 0xb9, 0xd9, 0x35, 0x9b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11, 0x66, 0x97, 0x43, 0x6b, 0x21, 0xb3, 0xec, 0x98, + 0x44, 0xcf, 0xb6, 0x86, 0x8b, 0xa0, 0x07, 0x16, 0x0c, 0x8b, 0x12, 0xdb, 0x47, 0x7c, 0x29, 0x74, + 0x09, 0x63, 0x62, 0xef, 0x5b, 0xff, 0xd8, 0x40, 0xaa, 0x39, 0xed, 0x20, 0x90, 0x66, 0x03, 0x7c, + 0x99, 0xda, 0xe5, 0x10, 0x0e, 0x2d, 0x20, 0x59, 0x4e, 0x7b, 0xd0, 0xe0, 0x17, 0xbf, 0x9b, 0xc1, + 0x39, 0xcb, 0x69, 0x27, 0xad, 0x9d, 0x81, 0x5b, 0x91, 0x35, 0xe2, 0x79, 0x8e, 0x27, 0x16, 0x14, + 0xe9, 0x12, 0xdb, 0x97, 0xbf, 0xfc, 0xdd, 0x8c, 0x2e, 0x06, 0x46, 0x55, 0x6e, 0xa0, 0x1e, 0xf1, + 0xe1, 0x4b, 0xb0, 0x1a, 0x99, 0x36, 0x7b, 0x9e, 0xc8, 0x4d, 0x12, 0xd6, 0x1f, 0x4c, 0xb0, 0x8c, + 0x03, 0x6c, 0x31, 0x14, 0xc7, 0xe4, 0x02, 0x98, 0xe7, 0xe4, 0x38, 0x2a, 0x32, 0xf9, 0x2b, 0x81, + 0x5b, 0x1d, 0xc1, 0xed, 0x38, 0x8e, 0x15, 0xe6, 0x30, 0x96, 0xd3, 0x2e, 0xc4, 0x8a, 0x3e, 0x24, + 0x91, 0x09, 0xfd, 0xf5, 0x64, 0x90, 0x44, 0x22, 0x54, 0x02, 0x90, 0x43, 0x4c, 0xca, 0x92, 0x9c, + 0x87, 0xa9, 0x9c, 0xac, 0xe5, 0xb4, 0x8b, 0x03, 0x22, 0x1e, 0x8f, 0x05, 0x2a, 0xec, 0xad, 0xfc, + 0x75, 0x2a, 0x64, 0x86, 0x43, 0xc2, 0xea, 0x7c, 0x1d, 0x71, 0x79, 0x30, 0xc9, 0xc7, 0xc4, 0x6b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d, 0x62, 0xfb, 0xb4, 0x45, 0x89, 0xc7, 0x64, 0x25, 0xbd, 0xe7, 0x42, 0xa8, 0x58, + 0x56, 0x29, 0x96, 0xf1, 0xb6, 0x8a, 0x4c, 0x0d, 0x7b, 0x26, 0x3f, 0xf1, 0xb4, 0x1c, 0x4f, 0xe4, + 0x6a, 0xc1, 0xb0, 0x32, 0x79, 0x27, 0xbd, 0xad, 0x91, 0xbc, 0xd0, 0x57, 0x07, 0x63, 0xcb, 0x60, + 0x19, 0x2c, 0x46, 0xb9, 0x3b, 0x7d, 0x4f, 0x10, 0x23, 0xef, 0x98, 0x81, 0x6d, 0x26, 0x17, 0xd2, + 0x9b, 0x9a, 0xd0, 0xd5, 0x43, 0x19, 0xef, 0xba, 0x58, 0x3a, 0xdc, 0x8a, 0x70, 0x78, 0x44, 0xde, + 0xf5, 0xb0, 0xc5, 0xe4, 0x62, 0x3a, 0xaf, 0x2f, 0xe4, 0xae, 0xaf, 0x0a, 0x19, 0x7c, 0x06, 0x66, + 0xc9, 0x29, 0xf5, 0x91, 0x13, 0x9e, 0x80, 0x65, 0x35, 0x7d, 0x27, 0xe6, 0x82, 0x6a, 0x70, 0x9e, + 0x85, 0x3f, 0x82, 0x59, 0x46, 0xde, 0x05, 0xd7, 0x80, 0x86, 0xc3, 0x7c, 0x79, 0x77, 0x82, 0x44, + 0x6d, 0x86, 0x91, 0x77, 0x35, 0xdc, 0x26, 0x05, 0x87, 0x89, 0xf8, 0xe5, 0x61, 0xdb, 0x74, 0xba, + 0x09, 0xc8, 0xde, 0x04, 0x90, 0xb9, 0x40, 0xd5, 0xe7, 0xfc, 0x0c, 0x96, 0x13, 0x37, 0xc2, 0x22, + 0xf7, 0x77, 0xbc, 0x23, 0xee, 0x15, 0xfb, 0xe9, 0xc9, 0xd8, 0xf5, 0x8b, 0xf3, 0xfc, 0xb5, 0xfc, + 0xc6, 0xe3, 0x47, 0xfa, 0x62, 0x0c, 0x29, 0xe3, 0xd3, 0xc3, 0x00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0x36, 0xb1, 0xc5, 0xf1, 0x7a, 0x6b, 0xa2, 0x3f, 0xc9, 0xf9, 0x3e, 0x2e, 0x6c, + 0x7e, 0x2a, 0x74, 0x8f, 0xff, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x4f, 0xfa, 0xae, 0x3a, 0xcd, 0x33, + 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql11.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql11.pbext.go new file mode 100644 index 000000000..4b4da5427 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql11.pbext.go @@ -0,0 +1,495 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *PostgresqlConfig11) SetMaxConnections(v *wrappers.Int64Value) { + m.MaxConnections = v +} + +func (m *PostgresqlConfig11) SetSharedBuffers(v *wrappers.Int64Value) { + m.SharedBuffers = v +} + +func (m *PostgresqlConfig11) SetTempBuffers(v *wrappers.Int64Value) { + m.TempBuffers = v +} + +func (m *PostgresqlConfig11) SetMaxPreparedTransactions(v *wrappers.Int64Value) { + m.MaxPreparedTransactions = v +} + +func (m *PostgresqlConfig11) SetWorkMem(v *wrappers.Int64Value) { + m.WorkMem = v +} + +func (m *PostgresqlConfig11) SetMaintenanceWorkMem(v *wrappers.Int64Value) { + m.MaintenanceWorkMem = v +} + +func (m *PostgresqlConfig11) SetAutovacuumWorkMem(v *wrappers.Int64Value) { + m.AutovacuumWorkMem = v +} + +func (m *PostgresqlConfig11) SetTempFileLimit(v *wrappers.Int64Value) { + m.TempFileLimit = v +} + +func (m *PostgresqlConfig11) SetVacuumCostDelay(v *wrappers.Int64Value) { + m.VacuumCostDelay = v +} + +func (m *PostgresqlConfig11) SetVacuumCostPageHit(v *wrappers.Int64Value) { + m.VacuumCostPageHit = v +} + +func (m *PostgresqlConfig11) SetVacuumCostPageMiss(v *wrappers.Int64Value) { + m.VacuumCostPageMiss = v +} + +func (m *PostgresqlConfig11) SetVacuumCostPageDirty(v *wrappers.Int64Value) { + m.VacuumCostPageDirty = v +} + +func (m *PostgresqlConfig11) SetVacuumCostLimit(v *wrappers.Int64Value) { + m.VacuumCostLimit = v +} + +func (m *PostgresqlConfig11) SetBgwriterDelay(v *wrappers.Int64Value) { + m.BgwriterDelay = v +} + +func (m *PostgresqlConfig11) SetBgwriterLruMaxpages(v *wrappers.Int64Value) { + m.BgwriterLruMaxpages = v +} + +func (m *PostgresqlConfig11) SetBgwriterLruMultiplier(v *wrappers.DoubleValue) { + m.BgwriterLruMultiplier = v +} + +func (m *PostgresqlConfig11) SetBgwriterFlushAfter(v *wrappers.Int64Value) { + m.BgwriterFlushAfter = v +} + +func (m *PostgresqlConfig11) SetBackendFlushAfter(v *wrappers.Int64Value) { + m.BackendFlushAfter = v +} + +func (m *PostgresqlConfig11) SetOldSnapshotThreshold(v *wrappers.Int64Value) { + m.OldSnapshotThreshold = v +} + +func (m *PostgresqlConfig11) SetWalLevel(v PostgresqlConfig11_WalLevel) { + m.WalLevel = v +} + +func (m *PostgresqlConfig11) SetSynchronousCommit(v PostgresqlConfig11_SynchronousCommit) { + m.SynchronousCommit = v +} + +func (m *PostgresqlConfig11) SetCheckpointTimeout(v *wrappers.Int64Value) { + m.CheckpointTimeout = v +} + +func (m *PostgresqlConfig11) SetCheckpointCompletionTarget(v *wrappers.DoubleValue) { + m.CheckpointCompletionTarget = v +} + +func (m *PostgresqlConfig11) SetCheckpointFlushAfter(v *wrappers.Int64Value) { + m.CheckpointFlushAfter = v +} + +func (m *PostgresqlConfig11) SetMaxWalSize(v *wrappers.Int64Value) { + m.MaxWalSize = v +} + +func (m *PostgresqlConfig11) SetMinWalSize(v *wrappers.Int64Value) { + m.MinWalSize = v +} + +func (m *PostgresqlConfig11) SetMaxStandbyStreamingDelay(v *wrappers.Int64Value) { + m.MaxStandbyStreamingDelay = v +} + +func (m *PostgresqlConfig11) SetDefaultStatisticsTarget(v *wrappers.Int64Value) { + m.DefaultStatisticsTarget = v +} + +func (m *PostgresqlConfig11) SetConstraintExclusion(v PostgresqlConfig11_ConstraintExclusion) { + m.ConstraintExclusion = v +} + +func (m *PostgresqlConfig11) SetCursorTupleFraction(v *wrappers.DoubleValue) { + m.CursorTupleFraction = v +} + +func (m *PostgresqlConfig11) SetFromCollapseLimit(v *wrappers.Int64Value) { + m.FromCollapseLimit = v +} + +func (m *PostgresqlConfig11) SetJoinCollapseLimit(v *wrappers.Int64Value) { + m.JoinCollapseLimit = v +} + +func (m *PostgresqlConfig11) SetForceParallelMode(v PostgresqlConfig11_ForceParallelMode) { + m.ForceParallelMode = v +} + +func (m *PostgresqlConfig11) SetClientMinMessages(v PostgresqlConfig11_LogLevel) { + m.ClientMinMessages = v +} + +func (m *PostgresqlConfig11) SetLogMinMessages(v PostgresqlConfig11_LogLevel) { + m.LogMinMessages = v +} + +func (m *PostgresqlConfig11) SetLogMinErrorStatement(v PostgresqlConfig11_LogLevel) { + m.LogMinErrorStatement = v +} + +func (m *PostgresqlConfig11) SetLogMinDurationStatement(v *wrappers.Int64Value) { + m.LogMinDurationStatement = v +} + +func (m *PostgresqlConfig11) SetLogCheckpoints(v *wrappers.BoolValue) { + m.LogCheckpoints = v +} + +func (m *PostgresqlConfig11) SetLogConnections(v *wrappers.BoolValue) { + m.LogConnections = v +} + +func (m *PostgresqlConfig11) SetLogDisconnections(v *wrappers.BoolValue) { + m.LogDisconnections = v +} + +func (m *PostgresqlConfig11) SetLogDuration(v *wrappers.BoolValue) { + m.LogDuration = v +} + +func (m *PostgresqlConfig11) SetLogErrorVerbosity(v PostgresqlConfig11_LogErrorVerbosity) { + m.LogErrorVerbosity = v +} + +func (m *PostgresqlConfig11) SetLogLockWaits(v *wrappers.BoolValue) { + m.LogLockWaits = v +} + +func (m *PostgresqlConfig11) SetLogStatement(v PostgresqlConfig11_LogStatement) { + m.LogStatement = v +} + +func (m *PostgresqlConfig11) SetLogTempFiles(v *wrappers.Int64Value) { + m.LogTempFiles = v +} + +func (m *PostgresqlConfig11) SetSearchPath(v string) { + m.SearchPath = v +} + +func (m *PostgresqlConfig11) SetRowSecurity(v *wrappers.BoolValue) { + m.RowSecurity = v +} + +func (m *PostgresqlConfig11) SetDefaultTransactionIsolation(v PostgresqlConfig11_TransactionIsolation) { + m.DefaultTransactionIsolation = v +} + +func (m *PostgresqlConfig11) SetStatementTimeout(v *wrappers.Int64Value) { + m.StatementTimeout = v +} + +func (m *PostgresqlConfig11) SetLockTimeout(v *wrappers.Int64Value) { + m.LockTimeout = v +} + +func (m *PostgresqlConfig11) SetIdleInTransactionSessionTimeout(v *wrappers.Int64Value) { + m.IdleInTransactionSessionTimeout = v +} + +func (m *PostgresqlConfig11) SetByteaOutput(v PostgresqlConfig11_ByteaOutput) { + m.ByteaOutput = v +} + +func (m *PostgresqlConfig11) SetXmlbinary(v PostgresqlConfig11_XmlBinary) { + m.Xmlbinary = v +} + +func (m *PostgresqlConfig11) SetXmloption(v PostgresqlConfig11_XmlOption) { + m.Xmloption = v +} + +func (m *PostgresqlConfig11) SetGinPendingListLimit(v *wrappers.Int64Value) { + m.GinPendingListLimit = v +} + +func (m *PostgresqlConfig11) SetDeadlockTimeout(v *wrappers.Int64Value) { + m.DeadlockTimeout = v +} + +func (m *PostgresqlConfig11) SetMaxLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxLocksPerTransaction = v +} + +func (m *PostgresqlConfig11) SetMaxPredLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxPredLocksPerTransaction = v +} + +func (m *PostgresqlConfig11) SetArrayNulls(v *wrappers.BoolValue) { + m.ArrayNulls = v +} + +func (m *PostgresqlConfig11) SetBackslashQuote(v PostgresqlConfig11_BackslashQuote) { + m.BackslashQuote = v +} + +func (m *PostgresqlConfig11) SetDefaultWithOids(v *wrappers.BoolValue) { + m.DefaultWithOids = v +} + +func (m *PostgresqlConfig11) SetEscapeStringWarning(v *wrappers.BoolValue) { + m.EscapeStringWarning = v +} + +func (m *PostgresqlConfig11) SetLoCompatPrivileges(v *wrappers.BoolValue) { + m.LoCompatPrivileges = v +} + +func (m *PostgresqlConfig11) SetOperatorPrecedenceWarning(v *wrappers.BoolValue) { + m.OperatorPrecedenceWarning = v +} + +func (m *PostgresqlConfig11) SetQuoteAllIdentifiers(v *wrappers.BoolValue) { + m.QuoteAllIdentifiers = v +} + +func (m *PostgresqlConfig11) SetStandardConformingStrings(v *wrappers.BoolValue) { + m.StandardConformingStrings = v +} + +func (m *PostgresqlConfig11) SetSynchronizeSeqscans(v *wrappers.BoolValue) { + m.SynchronizeSeqscans = v +} + +func (m *PostgresqlConfig11) SetTransformNullEquals(v *wrappers.BoolValue) { + m.TransformNullEquals = v +} + +func (m *PostgresqlConfig11) SetExitOnError(v *wrappers.BoolValue) { + m.ExitOnError = v +} + +func (m *PostgresqlConfig11) SetSeqPageCost(v *wrappers.DoubleValue) { + m.SeqPageCost = v +} + +func (m *PostgresqlConfig11) SetRandomPageCost(v *wrappers.DoubleValue) { + m.RandomPageCost = v +} + +func (m *PostgresqlConfig11) SetAutovacuumMaxWorkers(v *wrappers.Int64Value) { + m.AutovacuumMaxWorkers = v +} + +func (m *PostgresqlConfig11) SetAutovacuumVacuumCostDelay(v *wrappers.Int64Value) { + m.AutovacuumVacuumCostDelay = v +} + +func (m *PostgresqlConfig11) SetAutovacuumVacuumCostLimit(v *wrappers.Int64Value) { + m.AutovacuumVacuumCostLimit = v +} + +func (m *PostgresqlConfig11) SetAutovacuumNaptime(v *wrappers.Int64Value) { + m.AutovacuumNaptime = v +} + +func (m *PostgresqlConfig11) SetArchiveTimeout(v *wrappers.Int64Value) { + m.ArchiveTimeout = v +} + +func (m *PostgresqlConfig11) SetTrackActivityQuerySize(v *wrappers.Int64Value) { + m.TrackActivityQuerySize = v +} + +func (m *PostgresqlConfig11) SetEnableBitmapscan(v *wrappers.BoolValue) { + m.EnableBitmapscan = v +} + +func (m *PostgresqlConfig11) SetEnableHashagg(v *wrappers.BoolValue) { + m.EnableHashagg = v +} + +func (m *PostgresqlConfig11) SetEnableHashjoin(v *wrappers.BoolValue) { + m.EnableHashjoin = v +} + +func (m *PostgresqlConfig11) SetEnableIndexscan(v *wrappers.BoolValue) { + m.EnableIndexscan = v +} + +func (m *PostgresqlConfig11) SetEnableIndexonlyscan(v *wrappers.BoolValue) { + m.EnableIndexonlyscan = v +} + +func (m *PostgresqlConfig11) SetEnableMaterial(v *wrappers.BoolValue) { + m.EnableMaterial = v +} + +func (m *PostgresqlConfig11) SetEnableMergejoin(v *wrappers.BoolValue) { + m.EnableMergejoin = v +} + +func (m *PostgresqlConfig11) SetEnableNestloop(v *wrappers.BoolValue) { + m.EnableNestloop = v +} + +func (m *PostgresqlConfig11) SetEnableSeqscan(v *wrappers.BoolValue) { + m.EnableSeqscan = v +} + +func (m *PostgresqlConfig11) SetEnableSort(v *wrappers.BoolValue) { + m.EnableSort = v +} + +func (m *PostgresqlConfig11) SetEnableTidscan(v *wrappers.BoolValue) { + m.EnableTidscan = v +} + +func (m *PostgresqlConfig11) SetMaxWorkerProcesses(v *wrappers.Int64Value) { + m.MaxWorkerProcesses = v +} + +func (m *PostgresqlConfig11) SetMaxParallelWorkers(v *wrappers.Int64Value) { + m.MaxParallelWorkers = v +} + +func (m *PostgresqlConfig11) SetMaxParallelWorkersPerGather(v *wrappers.Int64Value) { + m.MaxParallelWorkersPerGather = v +} + +func (m *PostgresqlConfig11) SetAutovacuumVacuumScaleFactor(v *wrappers.DoubleValue) { + m.AutovacuumVacuumScaleFactor = v +} + +func (m *PostgresqlConfig11) SetAutovacuumAnalyzeScaleFactor(v *wrappers.DoubleValue) { + m.AutovacuumAnalyzeScaleFactor = v +} + +func (m *PostgresqlConfig11) SetDefaultTransactionReadOnly(v *wrappers.BoolValue) { + m.DefaultTransactionReadOnly = v +} + +func (m *PostgresqlConfig11) SetTimezone(v string) { + m.Timezone = v +} + +func (m *PostgresqlConfig11) SetEnableParallelAppend(v *wrappers.BoolValue) { + m.EnableParallelAppend = v +} + +func (m *PostgresqlConfig11) SetEnableParallelHash(v *wrappers.BoolValue) { + m.EnableParallelHash = v +} + +func (m *PostgresqlConfig11) SetEnablePartitionPruning(v *wrappers.BoolValue) { + m.EnablePartitionPruning = v +} + +func (m *PostgresqlConfig11) SetEnablePartitionwiseAggregate(v *wrappers.BoolValue) { + m.EnablePartitionwiseAggregate = v +} + +func (m *PostgresqlConfig11) SetEnablePartitionwiseJoin(v *wrappers.BoolValue) { + m.EnablePartitionwiseJoin = v +} + +func (m *PostgresqlConfig11) SetJit(v *wrappers.BoolValue) { + m.Jit = v +} + +func (m *PostgresqlConfig11) SetMaxParallelMaintenanceWorkers(v *wrappers.Int64Value) { + m.MaxParallelMaintenanceWorkers = v +} + +func (m *PostgresqlConfig11) SetParallelLeaderParticipation(v *wrappers.BoolValue) { + m.ParallelLeaderParticipation = v +} + +func (m *PostgresqlConfig11) SetVacuumCleanupIndexScaleFactor(v *wrappers.DoubleValue) { + m.VacuumCleanupIndexScaleFactor = v +} + +func (m *PostgresqlConfig11) SetEffectiveIoConcurrency(v *wrappers.Int64Value) { + m.EffectiveIoConcurrency = v +} + +func (m *PostgresqlConfig11) SetEffectiveCacheSize(v *wrappers.Int64Value) { + m.EffectiveCacheSize = v +} + +func (m *PostgresqlConfig11) SetSharedPreloadLibraries(v []PostgresqlConfig11_SharedPreloadLibraries) { + m.SharedPreloadLibraries = v +} + +func (m *PostgresqlConfig11) SetAutoExplainLogMinDuration(v *wrappers.Int64Value) { + m.AutoExplainLogMinDuration = v +} + +func (m *PostgresqlConfig11) SetAutoExplainLogAnalyze(v *wrappers.BoolValue) { + m.AutoExplainLogAnalyze = v +} + +func (m *PostgresqlConfig11) SetAutoExplainLogBuffers(v *wrappers.BoolValue) { + m.AutoExplainLogBuffers = v +} + +func (m *PostgresqlConfig11) SetAutoExplainLogTiming(v *wrappers.BoolValue) { + m.AutoExplainLogTiming = v +} + +func (m *PostgresqlConfig11) SetAutoExplainLogTriggers(v *wrappers.BoolValue) { + m.AutoExplainLogTriggers = v +} + +func (m *PostgresqlConfig11) SetAutoExplainLogVerbose(v *wrappers.BoolValue) { + m.AutoExplainLogVerbose = v +} + +func (m *PostgresqlConfig11) SetAutoExplainLogNestedStatements(v *wrappers.BoolValue) { + m.AutoExplainLogNestedStatements = v +} + +func (m *PostgresqlConfig11) SetAutoExplainSampleRate(v *wrappers.DoubleValue) { + m.AutoExplainSampleRate = v +} + +func (m *PostgresqlConfig11) SetPgHintPlanEnableHint(v *wrappers.BoolValue) { + m.PgHintPlanEnableHint = v +} + +func (m *PostgresqlConfig11) SetPgHintPlanEnableHintTable(v *wrappers.BoolValue) { + m.PgHintPlanEnableHintTable = v +} + +func (m *PostgresqlConfig11) SetPgHintPlanDebugPrint(v PostgresqlConfig11_PgHintPlanDebugPrint) { + m.PgHintPlanDebugPrint = v +} + +func (m *PostgresqlConfig11) SetPgHintPlanMessageLevel(v PostgresqlConfig11_LogLevel) { + m.PgHintPlanMessageLevel = v +} + +func (m *PostgresqlConfigSet11) SetEffectiveConfig(v *PostgresqlConfig11) { + m.EffectiveConfig = v +} + +func (m *PostgresqlConfigSet11) SetUserConfig(v *PostgresqlConfig11) { + m.UserConfig = v +} + +func (m *PostgresqlConfigSet11) SetDefaultConfig(v *PostgresqlConfig11) { + m.DefaultConfig = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql12.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql12.pb.go new file mode 100644 index 000000000..412bff418 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql12.pb.go @@ -0,0 +1,1861 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/mdb/postgresql/v1/config/postgresql12.proto + +package postgresql + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type PostgresqlConfig12_WalLevel int32 + +const ( + PostgresqlConfig12_WAL_LEVEL_UNSPECIFIED PostgresqlConfig12_WalLevel = 0 + PostgresqlConfig12_WAL_LEVEL_REPLICA PostgresqlConfig12_WalLevel = 1 + PostgresqlConfig12_WAL_LEVEL_LOGICAL PostgresqlConfig12_WalLevel = 2 +) + +var PostgresqlConfig12_WalLevel_name = map[int32]string{ + 0: "WAL_LEVEL_UNSPECIFIED", + 1: "WAL_LEVEL_REPLICA", + 2: "WAL_LEVEL_LOGICAL", +} + +var PostgresqlConfig12_WalLevel_value = map[string]int32{ + "WAL_LEVEL_UNSPECIFIED": 0, + "WAL_LEVEL_REPLICA": 1, + "WAL_LEVEL_LOGICAL": 2, +} + +func (x PostgresqlConfig12_WalLevel) String() string { + return proto.EnumName(PostgresqlConfig12_WalLevel_name, int32(x)) +} + +func (PostgresqlConfig12_WalLevel) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{0, 0} +} + +type PostgresqlConfig12_SynchronousCommit int32 + +const ( + PostgresqlConfig12_SYNCHRONOUS_COMMIT_UNSPECIFIED PostgresqlConfig12_SynchronousCommit = 0 + PostgresqlConfig12_SYNCHRONOUS_COMMIT_ON PostgresqlConfig12_SynchronousCommit = 1 + PostgresqlConfig12_SYNCHRONOUS_COMMIT_OFF PostgresqlConfig12_SynchronousCommit = 2 + PostgresqlConfig12_SYNCHRONOUS_COMMIT_LOCAL PostgresqlConfig12_SynchronousCommit = 3 + PostgresqlConfig12_SYNCHRONOUS_COMMIT_REMOTE_WRITE PostgresqlConfig12_SynchronousCommit = 4 + PostgresqlConfig12_SYNCHRONOUS_COMMIT_REMOTE_APPLY PostgresqlConfig12_SynchronousCommit = 5 +) + +var PostgresqlConfig12_SynchronousCommit_name = map[int32]string{ + 0: "SYNCHRONOUS_COMMIT_UNSPECIFIED", + 1: "SYNCHRONOUS_COMMIT_ON", + 2: "SYNCHRONOUS_COMMIT_OFF", + 3: "SYNCHRONOUS_COMMIT_LOCAL", + 4: "SYNCHRONOUS_COMMIT_REMOTE_WRITE", + 5: "SYNCHRONOUS_COMMIT_REMOTE_APPLY", +} + +var PostgresqlConfig12_SynchronousCommit_value = map[string]int32{ + "SYNCHRONOUS_COMMIT_UNSPECIFIED": 0, + "SYNCHRONOUS_COMMIT_ON": 1, + "SYNCHRONOUS_COMMIT_OFF": 2, + "SYNCHRONOUS_COMMIT_LOCAL": 3, + "SYNCHRONOUS_COMMIT_REMOTE_WRITE": 4, + "SYNCHRONOUS_COMMIT_REMOTE_APPLY": 5, +} + +func (x PostgresqlConfig12_SynchronousCommit) String() string { + return proto.EnumName(PostgresqlConfig12_SynchronousCommit_name, int32(x)) +} + +func (PostgresqlConfig12_SynchronousCommit) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{0, 1} +} + +type PostgresqlConfig12_ConstraintExclusion int32 + +const ( + PostgresqlConfig12_CONSTRAINT_EXCLUSION_UNSPECIFIED PostgresqlConfig12_ConstraintExclusion = 0 + PostgresqlConfig12_CONSTRAINT_EXCLUSION_ON PostgresqlConfig12_ConstraintExclusion = 1 + PostgresqlConfig12_CONSTRAINT_EXCLUSION_OFF PostgresqlConfig12_ConstraintExclusion = 2 + PostgresqlConfig12_CONSTRAINT_EXCLUSION_PARTITION PostgresqlConfig12_ConstraintExclusion = 3 +) + +var PostgresqlConfig12_ConstraintExclusion_name = map[int32]string{ + 0: "CONSTRAINT_EXCLUSION_UNSPECIFIED", + 1: "CONSTRAINT_EXCLUSION_ON", + 2: "CONSTRAINT_EXCLUSION_OFF", + 3: "CONSTRAINT_EXCLUSION_PARTITION", +} + +var PostgresqlConfig12_ConstraintExclusion_value = map[string]int32{ + "CONSTRAINT_EXCLUSION_UNSPECIFIED": 0, + "CONSTRAINT_EXCLUSION_ON": 1, + "CONSTRAINT_EXCLUSION_OFF": 2, + "CONSTRAINT_EXCLUSION_PARTITION": 3, +} + +func (x PostgresqlConfig12_ConstraintExclusion) String() string { + return proto.EnumName(PostgresqlConfig12_ConstraintExclusion_name, int32(x)) +} + +func (PostgresqlConfig12_ConstraintExclusion) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{0, 2} +} + +type PostgresqlConfig12_ForceParallelMode int32 + +const ( + PostgresqlConfig12_FORCE_PARALLEL_MODE_UNSPECIFIED PostgresqlConfig12_ForceParallelMode = 0 + PostgresqlConfig12_FORCE_PARALLEL_MODE_ON PostgresqlConfig12_ForceParallelMode = 1 + PostgresqlConfig12_FORCE_PARALLEL_MODE_OFF PostgresqlConfig12_ForceParallelMode = 2 + PostgresqlConfig12_FORCE_PARALLEL_MODE_REGRESS PostgresqlConfig12_ForceParallelMode = 3 +) + +var PostgresqlConfig12_ForceParallelMode_name = map[int32]string{ + 0: "FORCE_PARALLEL_MODE_UNSPECIFIED", + 1: "FORCE_PARALLEL_MODE_ON", + 2: "FORCE_PARALLEL_MODE_OFF", + 3: "FORCE_PARALLEL_MODE_REGRESS", +} + +var PostgresqlConfig12_ForceParallelMode_value = map[string]int32{ + "FORCE_PARALLEL_MODE_UNSPECIFIED": 0, + "FORCE_PARALLEL_MODE_ON": 1, + "FORCE_PARALLEL_MODE_OFF": 2, + "FORCE_PARALLEL_MODE_REGRESS": 3, +} + +func (x PostgresqlConfig12_ForceParallelMode) String() string { + return proto.EnumName(PostgresqlConfig12_ForceParallelMode_name, int32(x)) +} + +func (PostgresqlConfig12_ForceParallelMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{0, 3} +} + +type PostgresqlConfig12_LogLevel int32 + +const ( + PostgresqlConfig12_LOG_LEVEL_UNSPECIFIED PostgresqlConfig12_LogLevel = 0 + PostgresqlConfig12_LOG_LEVEL_DEBUG5 PostgresqlConfig12_LogLevel = 1 + PostgresqlConfig12_LOG_LEVEL_DEBUG4 PostgresqlConfig12_LogLevel = 2 + PostgresqlConfig12_LOG_LEVEL_DEBUG3 PostgresqlConfig12_LogLevel = 3 + PostgresqlConfig12_LOG_LEVEL_DEBUG2 PostgresqlConfig12_LogLevel = 4 + PostgresqlConfig12_LOG_LEVEL_DEBUG1 PostgresqlConfig12_LogLevel = 5 + PostgresqlConfig12_LOG_LEVEL_LOG PostgresqlConfig12_LogLevel = 6 + PostgresqlConfig12_LOG_LEVEL_NOTICE PostgresqlConfig12_LogLevel = 7 + PostgresqlConfig12_LOG_LEVEL_WARNING PostgresqlConfig12_LogLevel = 8 + PostgresqlConfig12_LOG_LEVEL_ERROR PostgresqlConfig12_LogLevel = 9 + PostgresqlConfig12_LOG_LEVEL_FATAL PostgresqlConfig12_LogLevel = 10 + PostgresqlConfig12_LOG_LEVEL_PANIC PostgresqlConfig12_LogLevel = 11 +) + +var PostgresqlConfig12_LogLevel_name = map[int32]string{ + 0: "LOG_LEVEL_UNSPECIFIED", + 1: "LOG_LEVEL_DEBUG5", + 2: "LOG_LEVEL_DEBUG4", + 3: "LOG_LEVEL_DEBUG3", + 4: "LOG_LEVEL_DEBUG2", + 5: "LOG_LEVEL_DEBUG1", + 6: "LOG_LEVEL_LOG", + 7: "LOG_LEVEL_NOTICE", + 8: "LOG_LEVEL_WARNING", + 9: "LOG_LEVEL_ERROR", + 10: "LOG_LEVEL_FATAL", + 11: "LOG_LEVEL_PANIC", +} + +var PostgresqlConfig12_LogLevel_value = map[string]int32{ + "LOG_LEVEL_UNSPECIFIED": 0, + "LOG_LEVEL_DEBUG5": 1, + "LOG_LEVEL_DEBUG4": 2, + "LOG_LEVEL_DEBUG3": 3, + "LOG_LEVEL_DEBUG2": 4, + "LOG_LEVEL_DEBUG1": 5, + "LOG_LEVEL_LOG": 6, + "LOG_LEVEL_NOTICE": 7, + "LOG_LEVEL_WARNING": 8, + "LOG_LEVEL_ERROR": 9, + "LOG_LEVEL_FATAL": 10, + "LOG_LEVEL_PANIC": 11, +} + +func (x PostgresqlConfig12_LogLevel) String() string { + return proto.EnumName(PostgresqlConfig12_LogLevel_name, int32(x)) +} + +func (PostgresqlConfig12_LogLevel) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{0, 4} +} + +type PostgresqlConfig12_LogErrorVerbosity int32 + +const ( + PostgresqlConfig12_LOG_ERROR_VERBOSITY_UNSPECIFIED PostgresqlConfig12_LogErrorVerbosity = 0 + PostgresqlConfig12_LOG_ERROR_VERBOSITY_TERSE PostgresqlConfig12_LogErrorVerbosity = 1 + PostgresqlConfig12_LOG_ERROR_VERBOSITY_DEFAULT PostgresqlConfig12_LogErrorVerbosity = 2 + PostgresqlConfig12_LOG_ERROR_VERBOSITY_VERBOSE PostgresqlConfig12_LogErrorVerbosity = 3 +) + +var PostgresqlConfig12_LogErrorVerbosity_name = map[int32]string{ + 0: "LOG_ERROR_VERBOSITY_UNSPECIFIED", + 1: "LOG_ERROR_VERBOSITY_TERSE", + 2: "LOG_ERROR_VERBOSITY_DEFAULT", + 3: "LOG_ERROR_VERBOSITY_VERBOSE", +} + +var PostgresqlConfig12_LogErrorVerbosity_value = map[string]int32{ + "LOG_ERROR_VERBOSITY_UNSPECIFIED": 0, + "LOG_ERROR_VERBOSITY_TERSE": 1, + "LOG_ERROR_VERBOSITY_DEFAULT": 2, + "LOG_ERROR_VERBOSITY_VERBOSE": 3, +} + +func (x PostgresqlConfig12_LogErrorVerbosity) String() string { + return proto.EnumName(PostgresqlConfig12_LogErrorVerbosity_name, int32(x)) +} + +func (PostgresqlConfig12_LogErrorVerbosity) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{0, 5} +} + +type PostgresqlConfig12_LogStatement int32 + +const ( + PostgresqlConfig12_LOG_STATEMENT_UNSPECIFIED PostgresqlConfig12_LogStatement = 0 + PostgresqlConfig12_LOG_STATEMENT_NONE PostgresqlConfig12_LogStatement = 1 + PostgresqlConfig12_LOG_STATEMENT_DDL PostgresqlConfig12_LogStatement = 2 + PostgresqlConfig12_LOG_STATEMENT_MOD PostgresqlConfig12_LogStatement = 3 + PostgresqlConfig12_LOG_STATEMENT_ALL PostgresqlConfig12_LogStatement = 4 +) + +var PostgresqlConfig12_LogStatement_name = map[int32]string{ + 0: "LOG_STATEMENT_UNSPECIFIED", + 1: "LOG_STATEMENT_NONE", + 2: "LOG_STATEMENT_DDL", + 3: "LOG_STATEMENT_MOD", + 4: "LOG_STATEMENT_ALL", +} + +var PostgresqlConfig12_LogStatement_value = map[string]int32{ + "LOG_STATEMENT_UNSPECIFIED": 0, + "LOG_STATEMENT_NONE": 1, + "LOG_STATEMENT_DDL": 2, + "LOG_STATEMENT_MOD": 3, + "LOG_STATEMENT_ALL": 4, +} + +func (x PostgresqlConfig12_LogStatement) String() string { + return proto.EnumName(PostgresqlConfig12_LogStatement_name, int32(x)) +} + +func (PostgresqlConfig12_LogStatement) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{0, 6} +} + +type PostgresqlConfig12_TransactionIsolation int32 + +const ( + PostgresqlConfig12_TRANSACTION_ISOLATION_UNSPECIFIED PostgresqlConfig12_TransactionIsolation = 0 + PostgresqlConfig12_TRANSACTION_ISOLATION_READ_UNCOMMITTED PostgresqlConfig12_TransactionIsolation = 1 + PostgresqlConfig12_TRANSACTION_ISOLATION_READ_COMMITTED PostgresqlConfig12_TransactionIsolation = 2 + PostgresqlConfig12_TRANSACTION_ISOLATION_REPEATABLE_READ PostgresqlConfig12_TransactionIsolation = 3 + PostgresqlConfig12_TRANSACTION_ISOLATION_SERIALIZABLE PostgresqlConfig12_TransactionIsolation = 4 +) + +var PostgresqlConfig12_TransactionIsolation_name = map[int32]string{ + 0: "TRANSACTION_ISOLATION_UNSPECIFIED", + 1: "TRANSACTION_ISOLATION_READ_UNCOMMITTED", + 2: "TRANSACTION_ISOLATION_READ_COMMITTED", + 3: "TRANSACTION_ISOLATION_REPEATABLE_READ", + 4: "TRANSACTION_ISOLATION_SERIALIZABLE", +} + +var PostgresqlConfig12_TransactionIsolation_value = map[string]int32{ + "TRANSACTION_ISOLATION_UNSPECIFIED": 0, + "TRANSACTION_ISOLATION_READ_UNCOMMITTED": 1, + "TRANSACTION_ISOLATION_READ_COMMITTED": 2, + "TRANSACTION_ISOLATION_REPEATABLE_READ": 3, + "TRANSACTION_ISOLATION_SERIALIZABLE": 4, +} + +func (x PostgresqlConfig12_TransactionIsolation) String() string { + return proto.EnumName(PostgresqlConfig12_TransactionIsolation_name, int32(x)) +} + +func (PostgresqlConfig12_TransactionIsolation) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{0, 7} +} + +type PostgresqlConfig12_ByteaOutput int32 + +const ( + PostgresqlConfig12_BYTEA_OUTPUT_UNSPECIFIED PostgresqlConfig12_ByteaOutput = 0 + PostgresqlConfig12_BYTEA_OUTPUT_HEX PostgresqlConfig12_ByteaOutput = 1 + PostgresqlConfig12_BYTEA_OUTPUT_ESCAPED PostgresqlConfig12_ByteaOutput = 2 +) + +var PostgresqlConfig12_ByteaOutput_name = map[int32]string{ + 0: "BYTEA_OUTPUT_UNSPECIFIED", + 1: "BYTEA_OUTPUT_HEX", + 2: "BYTEA_OUTPUT_ESCAPED", +} + +var PostgresqlConfig12_ByteaOutput_value = map[string]int32{ + "BYTEA_OUTPUT_UNSPECIFIED": 0, + "BYTEA_OUTPUT_HEX": 1, + "BYTEA_OUTPUT_ESCAPED": 2, +} + +func (x PostgresqlConfig12_ByteaOutput) String() string { + return proto.EnumName(PostgresqlConfig12_ByteaOutput_name, int32(x)) +} + +func (PostgresqlConfig12_ByteaOutput) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{0, 8} +} + +type PostgresqlConfig12_XmlBinary int32 + +const ( + PostgresqlConfig12_XML_BINARY_UNSPECIFIED PostgresqlConfig12_XmlBinary = 0 + PostgresqlConfig12_XML_BINARY_BASE64 PostgresqlConfig12_XmlBinary = 1 + PostgresqlConfig12_XML_BINARY_HEX PostgresqlConfig12_XmlBinary = 2 +) + +var PostgresqlConfig12_XmlBinary_name = map[int32]string{ + 0: "XML_BINARY_UNSPECIFIED", + 1: "XML_BINARY_BASE64", + 2: "XML_BINARY_HEX", +} + +var PostgresqlConfig12_XmlBinary_value = map[string]int32{ + "XML_BINARY_UNSPECIFIED": 0, + "XML_BINARY_BASE64": 1, + "XML_BINARY_HEX": 2, +} + +func (x PostgresqlConfig12_XmlBinary) String() string { + return proto.EnumName(PostgresqlConfig12_XmlBinary_name, int32(x)) +} + +func (PostgresqlConfig12_XmlBinary) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{0, 9} +} + +type PostgresqlConfig12_XmlOption int32 + +const ( + PostgresqlConfig12_XML_OPTION_UNSPECIFIED PostgresqlConfig12_XmlOption = 0 + PostgresqlConfig12_XML_OPTION_DOCUMENT PostgresqlConfig12_XmlOption = 1 + PostgresqlConfig12_XML_OPTION_CONTENT PostgresqlConfig12_XmlOption = 2 +) + +var PostgresqlConfig12_XmlOption_name = map[int32]string{ + 0: "XML_OPTION_UNSPECIFIED", + 1: "XML_OPTION_DOCUMENT", + 2: "XML_OPTION_CONTENT", +} + +var PostgresqlConfig12_XmlOption_value = map[string]int32{ + "XML_OPTION_UNSPECIFIED": 0, + "XML_OPTION_DOCUMENT": 1, + "XML_OPTION_CONTENT": 2, +} + +func (x PostgresqlConfig12_XmlOption) String() string { + return proto.EnumName(PostgresqlConfig12_XmlOption_name, int32(x)) +} + +func (PostgresqlConfig12_XmlOption) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{0, 10} +} + +type PostgresqlConfig12_BackslashQuote int32 + +const ( + PostgresqlConfig12_BACKSLASH_QUOTE_UNSPECIFIED PostgresqlConfig12_BackslashQuote = 0 + PostgresqlConfig12_BACKSLASH_QUOTE PostgresqlConfig12_BackslashQuote = 1 + PostgresqlConfig12_BACKSLASH_QUOTE_ON PostgresqlConfig12_BackslashQuote = 2 + PostgresqlConfig12_BACKSLASH_QUOTE_OFF PostgresqlConfig12_BackslashQuote = 3 + PostgresqlConfig12_BACKSLASH_QUOTE_SAFE_ENCODING PostgresqlConfig12_BackslashQuote = 4 +) + +var PostgresqlConfig12_BackslashQuote_name = map[int32]string{ + 0: "BACKSLASH_QUOTE_UNSPECIFIED", + 1: "BACKSLASH_QUOTE", + 2: "BACKSLASH_QUOTE_ON", + 3: "BACKSLASH_QUOTE_OFF", + 4: "BACKSLASH_QUOTE_SAFE_ENCODING", +} + +var PostgresqlConfig12_BackslashQuote_value = map[string]int32{ + "BACKSLASH_QUOTE_UNSPECIFIED": 0, + "BACKSLASH_QUOTE": 1, + "BACKSLASH_QUOTE_ON": 2, + "BACKSLASH_QUOTE_OFF": 3, + "BACKSLASH_QUOTE_SAFE_ENCODING": 4, +} + +func (x PostgresqlConfig12_BackslashQuote) String() string { + return proto.EnumName(PostgresqlConfig12_BackslashQuote_name, int32(x)) +} + +func (PostgresqlConfig12_BackslashQuote) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{0, 11} +} + +type PostgresqlConfig12_PlanCacheMode int32 + +const ( + PostgresqlConfig12_PLAN_CACHE_MODE_UNSPECIFIED PostgresqlConfig12_PlanCacheMode = 0 + PostgresqlConfig12_PLAN_CACHE_MODE_AUTO PostgresqlConfig12_PlanCacheMode = 1 + PostgresqlConfig12_PLAN_CACHE_MODE_FORCE_CUSTOM_PLAN PostgresqlConfig12_PlanCacheMode = 2 + PostgresqlConfig12_PLAN_CACHE_MODE_FORCE_GENERIC_PLAN PostgresqlConfig12_PlanCacheMode = 3 +) + +var PostgresqlConfig12_PlanCacheMode_name = map[int32]string{ + 0: "PLAN_CACHE_MODE_UNSPECIFIED", + 1: "PLAN_CACHE_MODE_AUTO", + 2: "PLAN_CACHE_MODE_FORCE_CUSTOM_PLAN", + 3: "PLAN_CACHE_MODE_FORCE_GENERIC_PLAN", +} + +var PostgresqlConfig12_PlanCacheMode_value = map[string]int32{ + "PLAN_CACHE_MODE_UNSPECIFIED": 0, + "PLAN_CACHE_MODE_AUTO": 1, + "PLAN_CACHE_MODE_FORCE_CUSTOM_PLAN": 2, + "PLAN_CACHE_MODE_FORCE_GENERIC_PLAN": 3, +} + +func (x PostgresqlConfig12_PlanCacheMode) String() string { + return proto.EnumName(PostgresqlConfig12_PlanCacheMode_name, int32(x)) +} + +func (PostgresqlConfig12_PlanCacheMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{0, 12} +} + +type PostgresqlConfig12_PgHintPlanDebugPrint int32 + +const ( + PostgresqlConfig12_PG_HINT_PLAN_DEBUG_PRINT_UNSPECIFIED PostgresqlConfig12_PgHintPlanDebugPrint = 0 + PostgresqlConfig12_PG_HINT_PLAN_DEBUG_PRINT_OFF PostgresqlConfig12_PgHintPlanDebugPrint = 1 + PostgresqlConfig12_PG_HINT_PLAN_DEBUG_PRINT_ON PostgresqlConfig12_PgHintPlanDebugPrint = 2 + PostgresqlConfig12_PG_HINT_PLAN_DEBUG_PRINT_DETAILED PostgresqlConfig12_PgHintPlanDebugPrint = 3 + PostgresqlConfig12_PG_HINT_PLAN_DEBUG_PRINT_VERBOSE PostgresqlConfig12_PgHintPlanDebugPrint = 4 +) + +var PostgresqlConfig12_PgHintPlanDebugPrint_name = map[int32]string{ + 0: "PG_HINT_PLAN_DEBUG_PRINT_UNSPECIFIED", + 1: "PG_HINT_PLAN_DEBUG_PRINT_OFF", + 2: "PG_HINT_PLAN_DEBUG_PRINT_ON", + 3: "PG_HINT_PLAN_DEBUG_PRINT_DETAILED", + 4: "PG_HINT_PLAN_DEBUG_PRINT_VERBOSE", +} + +var PostgresqlConfig12_PgHintPlanDebugPrint_value = map[string]int32{ + "PG_HINT_PLAN_DEBUG_PRINT_UNSPECIFIED": 0, + "PG_HINT_PLAN_DEBUG_PRINT_OFF": 1, + "PG_HINT_PLAN_DEBUG_PRINT_ON": 2, + "PG_HINT_PLAN_DEBUG_PRINT_DETAILED": 3, + "PG_HINT_PLAN_DEBUG_PRINT_VERBOSE": 4, +} + +func (x PostgresqlConfig12_PgHintPlanDebugPrint) String() string { + return proto.EnumName(PostgresqlConfig12_PgHintPlanDebugPrint_name, int32(x)) +} + +func (PostgresqlConfig12_PgHintPlanDebugPrint) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{0, 13} +} + +type PostgresqlConfig12_SharedPreloadLibraries int32 + +const ( + PostgresqlConfig12_SHARED_PRELOAD_LIBRARIES_UNSPECIFIED PostgresqlConfig12_SharedPreloadLibraries = 0 + PostgresqlConfig12_SHARED_PRELOAD_LIBRARIES_AUTO_EXPLAIN PostgresqlConfig12_SharedPreloadLibraries = 1 + PostgresqlConfig12_SHARED_PRELOAD_LIBRARIES_PG_HINT_PLAN PostgresqlConfig12_SharedPreloadLibraries = 2 +) + +var PostgresqlConfig12_SharedPreloadLibraries_name = map[int32]string{ + 0: "SHARED_PRELOAD_LIBRARIES_UNSPECIFIED", + 1: "SHARED_PRELOAD_LIBRARIES_AUTO_EXPLAIN", + 2: "SHARED_PRELOAD_LIBRARIES_PG_HINT_PLAN", +} + +var PostgresqlConfig12_SharedPreloadLibraries_value = map[string]int32{ + "SHARED_PRELOAD_LIBRARIES_UNSPECIFIED": 0, + "SHARED_PRELOAD_LIBRARIES_AUTO_EXPLAIN": 1, + "SHARED_PRELOAD_LIBRARIES_PG_HINT_PLAN": 2, +} + +func (x PostgresqlConfig12_SharedPreloadLibraries) String() string { + return proto.EnumName(PostgresqlConfig12_SharedPreloadLibraries_name, int32(x)) +} + +func (PostgresqlConfig12_SharedPreloadLibraries) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{0, 14} +} + +// Options and structure of `PostgresqlConfig` reflects PostgreSQL configuration file +// parameters which detailed description is available in +// [PostgreSQL documentation](https://www.postgresql.org/docs/11/runtime-config.html). +type PostgresqlConfig12 struct { + MaxConnections *wrappers.Int64Value `protobuf:"bytes,1,opt,name=max_connections,json=maxConnections,proto3" json:"max_connections,omitempty"` + SharedBuffers *wrappers.Int64Value `protobuf:"bytes,2,opt,name=shared_buffers,json=sharedBuffers,proto3" json:"shared_buffers,omitempty"` + TempBuffers *wrappers.Int64Value `protobuf:"bytes,3,opt,name=temp_buffers,json=tempBuffers,proto3" json:"temp_buffers,omitempty"` + MaxPreparedTransactions *wrappers.Int64Value `protobuf:"bytes,4,opt,name=max_prepared_transactions,json=maxPreparedTransactions,proto3" json:"max_prepared_transactions,omitempty"` + WorkMem *wrappers.Int64Value `protobuf:"bytes,5,opt,name=work_mem,json=workMem,proto3" json:"work_mem,omitempty"` + MaintenanceWorkMem *wrappers.Int64Value `protobuf:"bytes,6,opt,name=maintenance_work_mem,json=maintenanceWorkMem,proto3" json:"maintenance_work_mem,omitempty"` + AutovacuumWorkMem *wrappers.Int64Value `protobuf:"bytes,7,opt,name=autovacuum_work_mem,json=autovacuumWorkMem,proto3" json:"autovacuum_work_mem,omitempty"` + TempFileLimit *wrappers.Int64Value `protobuf:"bytes,8,opt,name=temp_file_limit,json=tempFileLimit,proto3" json:"temp_file_limit,omitempty"` + VacuumCostDelay *wrappers.Int64Value `protobuf:"bytes,9,opt,name=vacuum_cost_delay,json=vacuumCostDelay,proto3" json:"vacuum_cost_delay,omitempty"` + VacuumCostPageHit *wrappers.Int64Value `protobuf:"bytes,10,opt,name=vacuum_cost_page_hit,json=vacuumCostPageHit,proto3" json:"vacuum_cost_page_hit,omitempty"` + VacuumCostPageMiss *wrappers.Int64Value `protobuf:"bytes,11,opt,name=vacuum_cost_page_miss,json=vacuumCostPageMiss,proto3" json:"vacuum_cost_page_miss,omitempty"` + VacuumCostPageDirty *wrappers.Int64Value `protobuf:"bytes,12,opt,name=vacuum_cost_page_dirty,json=vacuumCostPageDirty,proto3" json:"vacuum_cost_page_dirty,omitempty"` + VacuumCostLimit *wrappers.Int64Value `protobuf:"bytes,13,opt,name=vacuum_cost_limit,json=vacuumCostLimit,proto3" json:"vacuum_cost_limit,omitempty"` + BgwriterDelay *wrappers.Int64Value `protobuf:"bytes,14,opt,name=bgwriter_delay,json=bgwriterDelay,proto3" json:"bgwriter_delay,omitempty"` + BgwriterLruMaxpages *wrappers.Int64Value `protobuf:"bytes,15,opt,name=bgwriter_lru_maxpages,json=bgwriterLruMaxpages,proto3" json:"bgwriter_lru_maxpages,omitempty"` + BgwriterLruMultiplier *wrappers.DoubleValue `protobuf:"bytes,16,opt,name=bgwriter_lru_multiplier,json=bgwriterLruMultiplier,proto3" json:"bgwriter_lru_multiplier,omitempty"` + BgwriterFlushAfter *wrappers.Int64Value `protobuf:"bytes,17,opt,name=bgwriter_flush_after,json=bgwriterFlushAfter,proto3" json:"bgwriter_flush_after,omitempty"` + BackendFlushAfter *wrappers.Int64Value `protobuf:"bytes,18,opt,name=backend_flush_after,json=backendFlushAfter,proto3" json:"backend_flush_after,omitempty"` + OldSnapshotThreshold *wrappers.Int64Value `protobuf:"bytes,19,opt,name=old_snapshot_threshold,json=oldSnapshotThreshold,proto3" json:"old_snapshot_threshold,omitempty"` + WalLevel PostgresqlConfig12_WalLevel `protobuf:"varint,20,opt,name=wal_level,json=walLevel,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_WalLevel" json:"wal_level,omitempty"` + SynchronousCommit PostgresqlConfig12_SynchronousCommit `protobuf:"varint,21,opt,name=synchronous_commit,json=synchronousCommit,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_SynchronousCommit" json:"synchronous_commit,omitempty"` + CheckpointTimeout *wrappers.Int64Value `protobuf:"bytes,22,opt,name=checkpoint_timeout,json=checkpointTimeout,proto3" json:"checkpoint_timeout,omitempty"` + CheckpointCompletionTarget *wrappers.DoubleValue `protobuf:"bytes,23,opt,name=checkpoint_completion_target,json=checkpointCompletionTarget,proto3" json:"checkpoint_completion_target,omitempty"` + CheckpointFlushAfter *wrappers.Int64Value `protobuf:"bytes,24,opt,name=checkpoint_flush_after,json=checkpointFlushAfter,proto3" json:"checkpoint_flush_after,omitempty"` + MaxWalSize *wrappers.Int64Value `protobuf:"bytes,25,opt,name=max_wal_size,json=maxWalSize,proto3" json:"max_wal_size,omitempty"` + MinWalSize *wrappers.Int64Value `protobuf:"bytes,26,opt,name=min_wal_size,json=minWalSize,proto3" json:"min_wal_size,omitempty"` + MaxStandbyStreamingDelay *wrappers.Int64Value `protobuf:"bytes,27,opt,name=max_standby_streaming_delay,json=maxStandbyStreamingDelay,proto3" json:"max_standby_streaming_delay,omitempty"` + DefaultStatisticsTarget *wrappers.Int64Value `protobuf:"bytes,28,opt,name=default_statistics_target,json=defaultStatisticsTarget,proto3" json:"default_statistics_target,omitempty"` + ConstraintExclusion PostgresqlConfig12_ConstraintExclusion `protobuf:"varint,29,opt,name=constraint_exclusion,json=constraintExclusion,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_ConstraintExclusion" json:"constraint_exclusion,omitempty"` + CursorTupleFraction *wrappers.DoubleValue `protobuf:"bytes,30,opt,name=cursor_tuple_fraction,json=cursorTupleFraction,proto3" json:"cursor_tuple_fraction,omitempty"` + FromCollapseLimit *wrappers.Int64Value `protobuf:"bytes,31,opt,name=from_collapse_limit,json=fromCollapseLimit,proto3" json:"from_collapse_limit,omitempty"` + JoinCollapseLimit *wrappers.Int64Value `protobuf:"bytes,32,opt,name=join_collapse_limit,json=joinCollapseLimit,proto3" json:"join_collapse_limit,omitempty"` + ForceParallelMode PostgresqlConfig12_ForceParallelMode `protobuf:"varint,33,opt,name=force_parallel_mode,json=forceParallelMode,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_ForceParallelMode" json:"force_parallel_mode,omitempty"` + ClientMinMessages PostgresqlConfig12_LogLevel `protobuf:"varint,34,opt,name=client_min_messages,json=clientMinMessages,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_LogLevel" json:"client_min_messages,omitempty"` + LogMinMessages PostgresqlConfig12_LogLevel `protobuf:"varint,35,opt,name=log_min_messages,json=logMinMessages,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_LogLevel" json:"log_min_messages,omitempty"` + LogMinErrorStatement PostgresqlConfig12_LogLevel `protobuf:"varint,36,opt,name=log_min_error_statement,json=logMinErrorStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_LogLevel" json:"log_min_error_statement,omitempty"` + LogMinDurationStatement *wrappers.Int64Value `protobuf:"bytes,37,opt,name=log_min_duration_statement,json=logMinDurationStatement,proto3" json:"log_min_duration_statement,omitempty"` + LogCheckpoints *wrappers.BoolValue `protobuf:"bytes,38,opt,name=log_checkpoints,json=logCheckpoints,proto3" json:"log_checkpoints,omitempty"` + LogConnections *wrappers.BoolValue `protobuf:"bytes,39,opt,name=log_connections,json=logConnections,proto3" json:"log_connections,omitempty"` + LogDisconnections *wrappers.BoolValue `protobuf:"bytes,40,opt,name=log_disconnections,json=logDisconnections,proto3" json:"log_disconnections,omitempty"` + LogDuration *wrappers.BoolValue `protobuf:"bytes,41,opt,name=log_duration,json=logDuration,proto3" json:"log_duration,omitempty"` + LogErrorVerbosity PostgresqlConfig12_LogErrorVerbosity `protobuf:"varint,42,opt,name=log_error_verbosity,json=logErrorVerbosity,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_LogErrorVerbosity" json:"log_error_verbosity,omitempty"` + LogLockWaits *wrappers.BoolValue `protobuf:"bytes,43,opt,name=log_lock_waits,json=logLockWaits,proto3" json:"log_lock_waits,omitempty"` + LogStatement PostgresqlConfig12_LogStatement `protobuf:"varint,44,opt,name=log_statement,json=logStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_LogStatement" json:"log_statement,omitempty"` + LogTempFiles *wrappers.Int64Value `protobuf:"bytes,45,opt,name=log_temp_files,json=logTempFiles,proto3" json:"log_temp_files,omitempty"` + SearchPath string `protobuf:"bytes,46,opt,name=search_path,json=searchPath,proto3" json:"search_path,omitempty"` + RowSecurity *wrappers.BoolValue `protobuf:"bytes,47,opt,name=row_security,json=rowSecurity,proto3" json:"row_security,omitempty"` + DefaultTransactionIsolation PostgresqlConfig12_TransactionIsolation `protobuf:"varint,48,opt,name=default_transaction_isolation,json=defaultTransactionIsolation,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_TransactionIsolation" json:"default_transaction_isolation,omitempty"` + StatementTimeout *wrappers.Int64Value `protobuf:"bytes,49,opt,name=statement_timeout,json=statementTimeout,proto3" json:"statement_timeout,omitempty"` + LockTimeout *wrappers.Int64Value `protobuf:"bytes,50,opt,name=lock_timeout,json=lockTimeout,proto3" json:"lock_timeout,omitempty"` + IdleInTransactionSessionTimeout *wrappers.Int64Value `protobuf:"bytes,51,opt,name=idle_in_transaction_session_timeout,json=idleInTransactionSessionTimeout,proto3" json:"idle_in_transaction_session_timeout,omitempty"` + ByteaOutput PostgresqlConfig12_ByteaOutput `protobuf:"varint,52,opt,name=bytea_output,json=byteaOutput,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_ByteaOutput" json:"bytea_output,omitempty"` + Xmlbinary PostgresqlConfig12_XmlBinary `protobuf:"varint,53,opt,name=xmlbinary,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_XmlBinary" json:"xmlbinary,omitempty"` + Xmloption PostgresqlConfig12_XmlOption `protobuf:"varint,54,opt,name=xmloption,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_XmlOption" json:"xmloption,omitempty"` + GinPendingListLimit *wrappers.Int64Value `protobuf:"bytes,55,opt,name=gin_pending_list_limit,json=ginPendingListLimit,proto3" json:"gin_pending_list_limit,omitempty"` + DeadlockTimeout *wrappers.Int64Value `protobuf:"bytes,56,opt,name=deadlock_timeout,json=deadlockTimeout,proto3" json:"deadlock_timeout,omitempty"` + MaxLocksPerTransaction *wrappers.Int64Value `protobuf:"bytes,57,opt,name=max_locks_per_transaction,json=maxLocksPerTransaction,proto3" json:"max_locks_per_transaction,omitempty"` + MaxPredLocksPerTransaction *wrappers.Int64Value `protobuf:"bytes,58,opt,name=max_pred_locks_per_transaction,json=maxPredLocksPerTransaction,proto3" json:"max_pred_locks_per_transaction,omitempty"` + ArrayNulls *wrappers.BoolValue `protobuf:"bytes,59,opt,name=array_nulls,json=arrayNulls,proto3" json:"array_nulls,omitempty"` + BackslashQuote PostgresqlConfig12_BackslashQuote `protobuf:"varint,60,opt,name=backslash_quote,json=backslashQuote,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_BackslashQuote" json:"backslash_quote,omitempty"` + DefaultWithOids *wrappers.BoolValue `protobuf:"bytes,61,opt,name=default_with_oids,json=defaultWithOids,proto3" json:"default_with_oids,omitempty"` + EscapeStringWarning *wrappers.BoolValue `protobuf:"bytes,62,opt,name=escape_string_warning,json=escapeStringWarning,proto3" json:"escape_string_warning,omitempty"` + LoCompatPrivileges *wrappers.BoolValue `protobuf:"bytes,63,opt,name=lo_compat_privileges,json=loCompatPrivileges,proto3" json:"lo_compat_privileges,omitempty"` + OperatorPrecedenceWarning *wrappers.BoolValue `protobuf:"bytes,64,opt,name=operator_precedence_warning,json=operatorPrecedenceWarning,proto3" json:"operator_precedence_warning,omitempty"` + QuoteAllIdentifiers *wrappers.BoolValue `protobuf:"bytes,65,opt,name=quote_all_identifiers,json=quoteAllIdentifiers,proto3" json:"quote_all_identifiers,omitempty"` + StandardConformingStrings *wrappers.BoolValue `protobuf:"bytes,66,opt,name=standard_conforming_strings,json=standardConformingStrings,proto3" json:"standard_conforming_strings,omitempty"` + SynchronizeSeqscans *wrappers.BoolValue `protobuf:"bytes,67,opt,name=synchronize_seqscans,json=synchronizeSeqscans,proto3" json:"synchronize_seqscans,omitempty"` + TransformNullEquals *wrappers.BoolValue `protobuf:"bytes,68,opt,name=transform_null_equals,json=transformNullEquals,proto3" json:"transform_null_equals,omitempty"` + ExitOnError *wrappers.BoolValue `protobuf:"bytes,69,opt,name=exit_on_error,json=exitOnError,proto3" json:"exit_on_error,omitempty"` + SeqPageCost *wrappers.DoubleValue `protobuf:"bytes,70,opt,name=seq_page_cost,json=seqPageCost,proto3" json:"seq_page_cost,omitempty"` + RandomPageCost *wrappers.DoubleValue `protobuf:"bytes,71,opt,name=random_page_cost,json=randomPageCost,proto3" json:"random_page_cost,omitempty"` + AutovacuumMaxWorkers *wrappers.Int64Value `protobuf:"bytes,72,opt,name=autovacuum_max_workers,json=autovacuumMaxWorkers,proto3" json:"autovacuum_max_workers,omitempty"` + AutovacuumVacuumCostDelay *wrappers.Int64Value `protobuf:"bytes,73,opt,name=autovacuum_vacuum_cost_delay,json=autovacuumVacuumCostDelay,proto3" json:"autovacuum_vacuum_cost_delay,omitempty"` + AutovacuumVacuumCostLimit *wrappers.Int64Value `protobuf:"bytes,74,opt,name=autovacuum_vacuum_cost_limit,json=autovacuumVacuumCostLimit,proto3" json:"autovacuum_vacuum_cost_limit,omitempty"` + AutovacuumNaptime *wrappers.Int64Value `protobuf:"bytes,75,opt,name=autovacuum_naptime,json=autovacuumNaptime,proto3" json:"autovacuum_naptime,omitempty"` + ArchiveTimeout *wrappers.Int64Value `protobuf:"bytes,76,opt,name=archive_timeout,json=archiveTimeout,proto3" json:"archive_timeout,omitempty"` + TrackActivityQuerySize *wrappers.Int64Value `protobuf:"bytes,77,opt,name=track_activity_query_size,json=trackActivityQuerySize,proto3" json:"track_activity_query_size,omitempty"` + EnableBitmapscan *wrappers.BoolValue `protobuf:"bytes,80,opt,name=enable_bitmapscan,json=enableBitmapscan,proto3" json:"enable_bitmapscan,omitempty"` + EnableHashagg *wrappers.BoolValue `protobuf:"bytes,81,opt,name=enable_hashagg,json=enableHashagg,proto3" json:"enable_hashagg,omitempty"` + EnableHashjoin *wrappers.BoolValue `protobuf:"bytes,82,opt,name=enable_hashjoin,json=enableHashjoin,proto3" json:"enable_hashjoin,omitempty"` + EnableIndexscan *wrappers.BoolValue `protobuf:"bytes,83,opt,name=enable_indexscan,json=enableIndexscan,proto3" json:"enable_indexscan,omitempty"` + EnableIndexonlyscan *wrappers.BoolValue `protobuf:"bytes,84,opt,name=enable_indexonlyscan,json=enableIndexonlyscan,proto3" json:"enable_indexonlyscan,omitempty"` + EnableMaterial *wrappers.BoolValue `protobuf:"bytes,85,opt,name=enable_material,json=enableMaterial,proto3" json:"enable_material,omitempty"` + EnableMergejoin *wrappers.BoolValue `protobuf:"bytes,86,opt,name=enable_mergejoin,json=enableMergejoin,proto3" json:"enable_mergejoin,omitempty"` + EnableNestloop *wrappers.BoolValue `protobuf:"bytes,87,opt,name=enable_nestloop,json=enableNestloop,proto3" json:"enable_nestloop,omitempty"` + EnableSeqscan *wrappers.BoolValue `protobuf:"bytes,88,opt,name=enable_seqscan,json=enableSeqscan,proto3" json:"enable_seqscan,omitempty"` + EnableSort *wrappers.BoolValue `protobuf:"bytes,89,opt,name=enable_sort,json=enableSort,proto3" json:"enable_sort,omitempty"` + EnableTidscan *wrappers.BoolValue `protobuf:"bytes,90,opt,name=enable_tidscan,json=enableTidscan,proto3" json:"enable_tidscan,omitempty"` + MaxWorkerProcesses *wrappers.Int64Value `protobuf:"bytes,91,opt,name=max_worker_processes,json=maxWorkerProcesses,proto3" json:"max_worker_processes,omitempty"` + MaxParallelWorkers *wrappers.Int64Value `protobuf:"bytes,92,opt,name=max_parallel_workers,json=maxParallelWorkers,proto3" json:"max_parallel_workers,omitempty"` + MaxParallelWorkersPerGather *wrappers.Int64Value `protobuf:"bytes,93,opt,name=max_parallel_workers_per_gather,json=maxParallelWorkersPerGather,proto3" json:"max_parallel_workers_per_gather,omitempty"` + AutovacuumVacuumScaleFactor *wrappers.DoubleValue `protobuf:"bytes,94,opt,name=autovacuum_vacuum_scale_factor,json=autovacuumVacuumScaleFactor,proto3" json:"autovacuum_vacuum_scale_factor,omitempty"` + AutovacuumAnalyzeScaleFactor *wrappers.DoubleValue `protobuf:"bytes,95,opt,name=autovacuum_analyze_scale_factor,json=autovacuumAnalyzeScaleFactor,proto3" json:"autovacuum_analyze_scale_factor,omitempty"` + DefaultTransactionReadOnly *wrappers.BoolValue `protobuf:"bytes,96,opt,name=default_transaction_read_only,json=defaultTransactionReadOnly,proto3" json:"default_transaction_read_only,omitempty"` + Timezone string `protobuf:"bytes,97,opt,name=timezone,proto3" json:"timezone,omitempty"` + EnableParallelAppend *wrappers.BoolValue `protobuf:"bytes,98,opt,name=enable_parallel_append,json=enableParallelAppend,proto3" json:"enable_parallel_append,omitempty"` + EnableParallelHash *wrappers.BoolValue `protobuf:"bytes,99,opt,name=enable_parallel_hash,json=enableParallelHash,proto3" json:"enable_parallel_hash,omitempty"` + EnablePartitionPruning *wrappers.BoolValue `protobuf:"bytes,100,opt,name=enable_partition_pruning,json=enablePartitionPruning,proto3" json:"enable_partition_pruning,omitempty"` + EnablePartitionwiseAggregate *wrappers.BoolValue `protobuf:"bytes,101,opt,name=enable_partitionwise_aggregate,json=enablePartitionwiseAggregate,proto3" json:"enable_partitionwise_aggregate,omitempty"` + EnablePartitionwiseJoin *wrappers.BoolValue `protobuf:"bytes,102,opt,name=enable_partitionwise_join,json=enablePartitionwiseJoin,proto3" json:"enable_partitionwise_join,omitempty"` + Jit *wrappers.BoolValue `protobuf:"bytes,103,opt,name=jit,proto3" json:"jit,omitempty"` + MaxParallelMaintenanceWorkers *wrappers.Int64Value `protobuf:"bytes,104,opt,name=max_parallel_maintenance_workers,json=maxParallelMaintenanceWorkers,proto3" json:"max_parallel_maintenance_workers,omitempty"` + ParallelLeaderParticipation *wrappers.BoolValue `protobuf:"bytes,105,opt,name=parallel_leader_participation,json=parallelLeaderParticipation,proto3" json:"parallel_leader_participation,omitempty"` + VacuumCleanupIndexScaleFactor *wrappers.DoubleValue `protobuf:"bytes,106,opt,name=vacuum_cleanup_index_scale_factor,json=vacuumCleanupIndexScaleFactor,proto3" json:"vacuum_cleanup_index_scale_factor,omitempty"` + LogTransactionSampleRate *wrappers.DoubleValue `protobuf:"bytes,107,opt,name=log_transaction_sample_rate,json=logTransactionSampleRate,proto3" json:"log_transaction_sample_rate,omitempty"` + PlanCacheMode PostgresqlConfig12_PlanCacheMode `protobuf:"varint,108,opt,name=plan_cache_mode,json=planCacheMode,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_PlanCacheMode" json:"plan_cache_mode,omitempty"` + EffectiveIoConcurrency *wrappers.Int64Value `protobuf:"bytes,109,opt,name=effective_io_concurrency,json=effectiveIoConcurrency,proto3" json:"effective_io_concurrency,omitempty"` + EffectiveCacheSize *wrappers.Int64Value `protobuf:"bytes,110,opt,name=effective_cache_size,json=effectiveCacheSize,proto3" json:"effective_cache_size,omitempty"` + SharedPreloadLibraries []PostgresqlConfig12_SharedPreloadLibraries `protobuf:"varint,111,rep,packed,name=shared_preload_libraries,json=sharedPreloadLibraries,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_SharedPreloadLibraries" json:"shared_preload_libraries,omitempty"` + AutoExplainLogMinDuration *wrappers.Int64Value `protobuf:"bytes,112,opt,name=auto_explain_log_min_duration,json=autoExplainLogMinDuration,proto3" json:"auto_explain_log_min_duration,omitempty"` + AutoExplainLogAnalyze *wrappers.BoolValue `protobuf:"bytes,113,opt,name=auto_explain_log_analyze,json=autoExplainLogAnalyze,proto3" json:"auto_explain_log_analyze,omitempty"` + AutoExplainLogBuffers *wrappers.BoolValue `protobuf:"bytes,114,opt,name=auto_explain_log_buffers,json=autoExplainLogBuffers,proto3" json:"auto_explain_log_buffers,omitempty"` + AutoExplainLogTiming *wrappers.BoolValue `protobuf:"bytes,115,opt,name=auto_explain_log_timing,json=autoExplainLogTiming,proto3" json:"auto_explain_log_timing,omitempty"` + AutoExplainLogTriggers *wrappers.BoolValue `protobuf:"bytes,116,opt,name=auto_explain_log_triggers,json=autoExplainLogTriggers,proto3" json:"auto_explain_log_triggers,omitempty"` + AutoExplainLogVerbose *wrappers.BoolValue `protobuf:"bytes,117,opt,name=auto_explain_log_verbose,json=autoExplainLogVerbose,proto3" json:"auto_explain_log_verbose,omitempty"` + AutoExplainLogNestedStatements *wrappers.BoolValue `protobuf:"bytes,118,opt,name=auto_explain_log_nested_statements,json=autoExplainLogNestedStatements,proto3" json:"auto_explain_log_nested_statements,omitempty"` + AutoExplainSampleRate *wrappers.DoubleValue `protobuf:"bytes,119,opt,name=auto_explain_sample_rate,json=autoExplainSampleRate,proto3" json:"auto_explain_sample_rate,omitempty"` + PgHintPlanEnableHint *wrappers.BoolValue `protobuf:"bytes,120,opt,name=pg_hint_plan_enable_hint,json=pgHintPlanEnableHint,proto3" json:"pg_hint_plan_enable_hint,omitempty"` + PgHintPlanEnableHintTable *wrappers.BoolValue `protobuf:"bytes,121,opt,name=pg_hint_plan_enable_hint_table,json=pgHintPlanEnableHintTable,proto3" json:"pg_hint_plan_enable_hint_table,omitempty"` + PgHintPlanDebugPrint PostgresqlConfig12_PgHintPlanDebugPrint `protobuf:"varint,122,opt,name=pg_hint_plan_debug_print,json=pgHintPlanDebugPrint,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_PgHintPlanDebugPrint" json:"pg_hint_plan_debug_print,omitempty"` + PgHintPlanMessageLevel PostgresqlConfig12_LogLevel `protobuf:"varint,123,opt,name=pg_hint_plan_message_level,json=pgHintPlanMessageLevel,proto3,enum=yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_LogLevel" json:"pg_hint_plan_message_level,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PostgresqlConfig12) Reset() { *m = PostgresqlConfig12{} } +func (m *PostgresqlConfig12) String() string { return proto.CompactTextString(m) } +func (*PostgresqlConfig12) ProtoMessage() {} +func (*PostgresqlConfig12) Descriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{0} +} + +func (m *PostgresqlConfig12) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PostgresqlConfig12.Unmarshal(m, b) +} +func (m *PostgresqlConfig12) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PostgresqlConfig12.Marshal(b, m, deterministic) +} +func (m *PostgresqlConfig12) XXX_Merge(src proto.Message) { + xxx_messageInfo_PostgresqlConfig12.Merge(m, src) +} +func (m *PostgresqlConfig12) XXX_Size() int { + return xxx_messageInfo_PostgresqlConfig12.Size(m) +} +func (m *PostgresqlConfig12) XXX_DiscardUnknown() { + xxx_messageInfo_PostgresqlConfig12.DiscardUnknown(m) +} + +var xxx_messageInfo_PostgresqlConfig12 proto.InternalMessageInfo + +func (m *PostgresqlConfig12) GetMaxConnections() *wrappers.Int64Value { + if m != nil { + return m.MaxConnections + } + return nil +} + +func (m *PostgresqlConfig12) GetSharedBuffers() *wrappers.Int64Value { + if m != nil { + return m.SharedBuffers + } + return nil +} + +func (m *PostgresqlConfig12) GetTempBuffers() *wrappers.Int64Value { + if m != nil { + return m.TempBuffers + } + return nil +} + +func (m *PostgresqlConfig12) GetMaxPreparedTransactions() *wrappers.Int64Value { + if m != nil { + return m.MaxPreparedTransactions + } + return nil +} + +func (m *PostgresqlConfig12) GetWorkMem() *wrappers.Int64Value { + if m != nil { + return m.WorkMem + } + return nil +} + +func (m *PostgresqlConfig12) GetMaintenanceWorkMem() *wrappers.Int64Value { + if m != nil { + return m.MaintenanceWorkMem + } + return nil +} + +func (m *PostgresqlConfig12) GetAutovacuumWorkMem() *wrappers.Int64Value { + if m != nil { + return m.AutovacuumWorkMem + } + return nil +} + +func (m *PostgresqlConfig12) GetTempFileLimit() *wrappers.Int64Value { + if m != nil { + return m.TempFileLimit + } + return nil +} + +func (m *PostgresqlConfig12) GetVacuumCostDelay() *wrappers.Int64Value { + if m != nil { + return m.VacuumCostDelay + } + return nil +} + +func (m *PostgresqlConfig12) GetVacuumCostPageHit() *wrappers.Int64Value { + if m != nil { + return m.VacuumCostPageHit + } + return nil +} + +func (m *PostgresqlConfig12) GetVacuumCostPageMiss() *wrappers.Int64Value { + if m != nil { + return m.VacuumCostPageMiss + } + return nil +} + +func (m *PostgresqlConfig12) GetVacuumCostPageDirty() *wrappers.Int64Value { + if m != nil { + return m.VacuumCostPageDirty + } + return nil +} + +func (m *PostgresqlConfig12) GetVacuumCostLimit() *wrappers.Int64Value { + if m != nil { + return m.VacuumCostLimit + } + return nil +} + +func (m *PostgresqlConfig12) GetBgwriterDelay() *wrappers.Int64Value { + if m != nil { + return m.BgwriterDelay + } + return nil +} + +func (m *PostgresqlConfig12) GetBgwriterLruMaxpages() *wrappers.Int64Value { + if m != nil { + return m.BgwriterLruMaxpages + } + return nil +} + +func (m *PostgresqlConfig12) GetBgwriterLruMultiplier() *wrappers.DoubleValue { + if m != nil { + return m.BgwriterLruMultiplier + } + return nil +} + +func (m *PostgresqlConfig12) GetBgwriterFlushAfter() *wrappers.Int64Value { + if m != nil { + return m.BgwriterFlushAfter + } + return nil +} + +func (m *PostgresqlConfig12) GetBackendFlushAfter() *wrappers.Int64Value { + if m != nil { + return m.BackendFlushAfter + } + return nil +} + +func (m *PostgresqlConfig12) GetOldSnapshotThreshold() *wrappers.Int64Value { + if m != nil { + return m.OldSnapshotThreshold + } + return nil +} + +func (m *PostgresqlConfig12) GetWalLevel() PostgresqlConfig12_WalLevel { + if m != nil { + return m.WalLevel + } + return PostgresqlConfig12_WAL_LEVEL_UNSPECIFIED +} + +func (m *PostgresqlConfig12) GetSynchronousCommit() PostgresqlConfig12_SynchronousCommit { + if m != nil { + return m.SynchronousCommit + } + return PostgresqlConfig12_SYNCHRONOUS_COMMIT_UNSPECIFIED +} + +func (m *PostgresqlConfig12) GetCheckpointTimeout() *wrappers.Int64Value { + if m != nil { + return m.CheckpointTimeout + } + return nil +} + +func (m *PostgresqlConfig12) GetCheckpointCompletionTarget() *wrappers.DoubleValue { + if m != nil { + return m.CheckpointCompletionTarget + } + return nil +} + +func (m *PostgresqlConfig12) GetCheckpointFlushAfter() *wrappers.Int64Value { + if m != nil { + return m.CheckpointFlushAfter + } + return nil +} + +func (m *PostgresqlConfig12) GetMaxWalSize() *wrappers.Int64Value { + if m != nil { + return m.MaxWalSize + } + return nil +} + +func (m *PostgresqlConfig12) GetMinWalSize() *wrappers.Int64Value { + if m != nil { + return m.MinWalSize + } + return nil +} + +func (m *PostgresqlConfig12) GetMaxStandbyStreamingDelay() *wrappers.Int64Value { + if m != nil { + return m.MaxStandbyStreamingDelay + } + return nil +} + +func (m *PostgresqlConfig12) GetDefaultStatisticsTarget() *wrappers.Int64Value { + if m != nil { + return m.DefaultStatisticsTarget + } + return nil +} + +func (m *PostgresqlConfig12) GetConstraintExclusion() PostgresqlConfig12_ConstraintExclusion { + if m != nil { + return m.ConstraintExclusion + } + return PostgresqlConfig12_CONSTRAINT_EXCLUSION_UNSPECIFIED +} + +func (m *PostgresqlConfig12) GetCursorTupleFraction() *wrappers.DoubleValue { + if m != nil { + return m.CursorTupleFraction + } + return nil +} + +func (m *PostgresqlConfig12) GetFromCollapseLimit() *wrappers.Int64Value { + if m != nil { + return m.FromCollapseLimit + } + return nil +} + +func (m *PostgresqlConfig12) GetJoinCollapseLimit() *wrappers.Int64Value { + if m != nil { + return m.JoinCollapseLimit + } + return nil +} + +func (m *PostgresqlConfig12) GetForceParallelMode() PostgresqlConfig12_ForceParallelMode { + if m != nil { + return m.ForceParallelMode + } + return PostgresqlConfig12_FORCE_PARALLEL_MODE_UNSPECIFIED +} + +func (m *PostgresqlConfig12) GetClientMinMessages() PostgresqlConfig12_LogLevel { + if m != nil { + return m.ClientMinMessages + } + return PostgresqlConfig12_LOG_LEVEL_UNSPECIFIED +} + +func (m *PostgresqlConfig12) GetLogMinMessages() PostgresqlConfig12_LogLevel { + if m != nil { + return m.LogMinMessages + } + return PostgresqlConfig12_LOG_LEVEL_UNSPECIFIED +} + +func (m *PostgresqlConfig12) GetLogMinErrorStatement() PostgresqlConfig12_LogLevel { + if m != nil { + return m.LogMinErrorStatement + } + return PostgresqlConfig12_LOG_LEVEL_UNSPECIFIED +} + +func (m *PostgresqlConfig12) GetLogMinDurationStatement() *wrappers.Int64Value { + if m != nil { + return m.LogMinDurationStatement + } + return nil +} + +func (m *PostgresqlConfig12) GetLogCheckpoints() *wrappers.BoolValue { + if m != nil { + return m.LogCheckpoints + } + return nil +} + +func (m *PostgresqlConfig12) GetLogConnections() *wrappers.BoolValue { + if m != nil { + return m.LogConnections + } + return nil +} + +func (m *PostgresqlConfig12) GetLogDisconnections() *wrappers.BoolValue { + if m != nil { + return m.LogDisconnections + } + return nil +} + +func (m *PostgresqlConfig12) GetLogDuration() *wrappers.BoolValue { + if m != nil { + return m.LogDuration + } + return nil +} + +func (m *PostgresqlConfig12) GetLogErrorVerbosity() PostgresqlConfig12_LogErrorVerbosity { + if m != nil { + return m.LogErrorVerbosity + } + return PostgresqlConfig12_LOG_ERROR_VERBOSITY_UNSPECIFIED +} + +func (m *PostgresqlConfig12) GetLogLockWaits() *wrappers.BoolValue { + if m != nil { + return m.LogLockWaits + } + return nil +} + +func (m *PostgresqlConfig12) GetLogStatement() PostgresqlConfig12_LogStatement { + if m != nil { + return m.LogStatement + } + return PostgresqlConfig12_LOG_STATEMENT_UNSPECIFIED +} + +func (m *PostgresqlConfig12) GetLogTempFiles() *wrappers.Int64Value { + if m != nil { + return m.LogTempFiles + } + return nil +} + +func (m *PostgresqlConfig12) GetSearchPath() string { + if m != nil { + return m.SearchPath + } + return "" +} + +func (m *PostgresqlConfig12) GetRowSecurity() *wrappers.BoolValue { + if m != nil { + return m.RowSecurity + } + return nil +} + +func (m *PostgresqlConfig12) GetDefaultTransactionIsolation() PostgresqlConfig12_TransactionIsolation { + if m != nil { + return m.DefaultTransactionIsolation + } + return PostgresqlConfig12_TRANSACTION_ISOLATION_UNSPECIFIED +} + +func (m *PostgresqlConfig12) GetStatementTimeout() *wrappers.Int64Value { + if m != nil { + return m.StatementTimeout + } + return nil +} + +func (m *PostgresqlConfig12) GetLockTimeout() *wrappers.Int64Value { + if m != nil { + return m.LockTimeout + } + return nil +} + +func (m *PostgresqlConfig12) GetIdleInTransactionSessionTimeout() *wrappers.Int64Value { + if m != nil { + return m.IdleInTransactionSessionTimeout + } + return nil +} + +func (m *PostgresqlConfig12) GetByteaOutput() PostgresqlConfig12_ByteaOutput { + if m != nil { + return m.ByteaOutput + } + return PostgresqlConfig12_BYTEA_OUTPUT_UNSPECIFIED +} + +func (m *PostgresqlConfig12) GetXmlbinary() PostgresqlConfig12_XmlBinary { + if m != nil { + return m.Xmlbinary + } + return PostgresqlConfig12_XML_BINARY_UNSPECIFIED +} + +func (m *PostgresqlConfig12) GetXmloption() PostgresqlConfig12_XmlOption { + if m != nil { + return m.Xmloption + } + return PostgresqlConfig12_XML_OPTION_UNSPECIFIED +} + +func (m *PostgresqlConfig12) GetGinPendingListLimit() *wrappers.Int64Value { + if m != nil { + return m.GinPendingListLimit + } + return nil +} + +func (m *PostgresqlConfig12) GetDeadlockTimeout() *wrappers.Int64Value { + if m != nil { + return m.DeadlockTimeout + } + return nil +} + +func (m *PostgresqlConfig12) GetMaxLocksPerTransaction() *wrappers.Int64Value { + if m != nil { + return m.MaxLocksPerTransaction + } + return nil +} + +func (m *PostgresqlConfig12) GetMaxPredLocksPerTransaction() *wrappers.Int64Value { + if m != nil { + return m.MaxPredLocksPerTransaction + } + return nil +} + +func (m *PostgresqlConfig12) GetArrayNulls() *wrappers.BoolValue { + if m != nil { + return m.ArrayNulls + } + return nil +} + +func (m *PostgresqlConfig12) GetBackslashQuote() PostgresqlConfig12_BackslashQuote { + if m != nil { + return m.BackslashQuote + } + return PostgresqlConfig12_BACKSLASH_QUOTE_UNSPECIFIED +} + +func (m *PostgresqlConfig12) GetDefaultWithOids() *wrappers.BoolValue { + if m != nil { + return m.DefaultWithOids + } + return nil +} + +func (m *PostgresqlConfig12) GetEscapeStringWarning() *wrappers.BoolValue { + if m != nil { + return m.EscapeStringWarning + } + return nil +} + +func (m *PostgresqlConfig12) GetLoCompatPrivileges() *wrappers.BoolValue { + if m != nil { + return m.LoCompatPrivileges + } + return nil +} + +func (m *PostgresqlConfig12) GetOperatorPrecedenceWarning() *wrappers.BoolValue { + if m != nil { + return m.OperatorPrecedenceWarning + } + return nil +} + +func (m *PostgresqlConfig12) GetQuoteAllIdentifiers() *wrappers.BoolValue { + if m != nil { + return m.QuoteAllIdentifiers + } + return nil +} + +func (m *PostgresqlConfig12) GetStandardConformingStrings() *wrappers.BoolValue { + if m != nil { + return m.StandardConformingStrings + } + return nil +} + +func (m *PostgresqlConfig12) GetSynchronizeSeqscans() *wrappers.BoolValue { + if m != nil { + return m.SynchronizeSeqscans + } + return nil +} + +func (m *PostgresqlConfig12) GetTransformNullEquals() *wrappers.BoolValue { + if m != nil { + return m.TransformNullEquals + } + return nil +} + +func (m *PostgresqlConfig12) GetExitOnError() *wrappers.BoolValue { + if m != nil { + return m.ExitOnError + } + return nil +} + +func (m *PostgresqlConfig12) GetSeqPageCost() *wrappers.DoubleValue { + if m != nil { + return m.SeqPageCost + } + return nil +} + +func (m *PostgresqlConfig12) GetRandomPageCost() *wrappers.DoubleValue { + if m != nil { + return m.RandomPageCost + } + return nil +} + +func (m *PostgresqlConfig12) GetAutovacuumMaxWorkers() *wrappers.Int64Value { + if m != nil { + return m.AutovacuumMaxWorkers + } + return nil +} + +func (m *PostgresqlConfig12) GetAutovacuumVacuumCostDelay() *wrappers.Int64Value { + if m != nil { + return m.AutovacuumVacuumCostDelay + } + return nil +} + +func (m *PostgresqlConfig12) GetAutovacuumVacuumCostLimit() *wrappers.Int64Value { + if m != nil { + return m.AutovacuumVacuumCostLimit + } + return nil +} + +func (m *PostgresqlConfig12) GetAutovacuumNaptime() *wrappers.Int64Value { + if m != nil { + return m.AutovacuumNaptime + } + return nil +} + +func (m *PostgresqlConfig12) GetArchiveTimeout() *wrappers.Int64Value { + if m != nil { + return m.ArchiveTimeout + } + return nil +} + +func (m *PostgresqlConfig12) GetTrackActivityQuerySize() *wrappers.Int64Value { + if m != nil { + return m.TrackActivityQuerySize + } + return nil +} + +func (m *PostgresqlConfig12) GetEnableBitmapscan() *wrappers.BoolValue { + if m != nil { + return m.EnableBitmapscan + } + return nil +} + +func (m *PostgresqlConfig12) GetEnableHashagg() *wrappers.BoolValue { + if m != nil { + return m.EnableHashagg + } + return nil +} + +func (m *PostgresqlConfig12) GetEnableHashjoin() *wrappers.BoolValue { + if m != nil { + return m.EnableHashjoin + } + return nil +} + +func (m *PostgresqlConfig12) GetEnableIndexscan() *wrappers.BoolValue { + if m != nil { + return m.EnableIndexscan + } + return nil +} + +func (m *PostgresqlConfig12) GetEnableIndexonlyscan() *wrappers.BoolValue { + if m != nil { + return m.EnableIndexonlyscan + } + return nil +} + +func (m *PostgresqlConfig12) GetEnableMaterial() *wrappers.BoolValue { + if m != nil { + return m.EnableMaterial + } + return nil +} + +func (m *PostgresqlConfig12) GetEnableMergejoin() *wrappers.BoolValue { + if m != nil { + return m.EnableMergejoin + } + return nil +} + +func (m *PostgresqlConfig12) GetEnableNestloop() *wrappers.BoolValue { + if m != nil { + return m.EnableNestloop + } + return nil +} + +func (m *PostgresqlConfig12) GetEnableSeqscan() *wrappers.BoolValue { + if m != nil { + return m.EnableSeqscan + } + return nil +} + +func (m *PostgresqlConfig12) GetEnableSort() *wrappers.BoolValue { + if m != nil { + return m.EnableSort + } + return nil +} + +func (m *PostgresqlConfig12) GetEnableTidscan() *wrappers.BoolValue { + if m != nil { + return m.EnableTidscan + } + return nil +} + +func (m *PostgresqlConfig12) GetMaxWorkerProcesses() *wrappers.Int64Value { + if m != nil { + return m.MaxWorkerProcesses + } + return nil +} + +func (m *PostgresqlConfig12) GetMaxParallelWorkers() *wrappers.Int64Value { + if m != nil { + return m.MaxParallelWorkers + } + return nil +} + +func (m *PostgresqlConfig12) GetMaxParallelWorkersPerGather() *wrappers.Int64Value { + if m != nil { + return m.MaxParallelWorkersPerGather + } + return nil +} + +func (m *PostgresqlConfig12) GetAutovacuumVacuumScaleFactor() *wrappers.DoubleValue { + if m != nil { + return m.AutovacuumVacuumScaleFactor + } + return nil +} + +func (m *PostgresqlConfig12) GetAutovacuumAnalyzeScaleFactor() *wrappers.DoubleValue { + if m != nil { + return m.AutovacuumAnalyzeScaleFactor + } + return nil +} + +func (m *PostgresqlConfig12) GetDefaultTransactionReadOnly() *wrappers.BoolValue { + if m != nil { + return m.DefaultTransactionReadOnly + } + return nil +} + +func (m *PostgresqlConfig12) GetTimezone() string { + if m != nil { + return m.Timezone + } + return "" +} + +func (m *PostgresqlConfig12) GetEnableParallelAppend() *wrappers.BoolValue { + if m != nil { + return m.EnableParallelAppend + } + return nil +} + +func (m *PostgresqlConfig12) GetEnableParallelHash() *wrappers.BoolValue { + if m != nil { + return m.EnableParallelHash + } + return nil +} + +func (m *PostgresqlConfig12) GetEnablePartitionPruning() *wrappers.BoolValue { + if m != nil { + return m.EnablePartitionPruning + } + return nil +} + +func (m *PostgresqlConfig12) GetEnablePartitionwiseAggregate() *wrappers.BoolValue { + if m != nil { + return m.EnablePartitionwiseAggregate + } + return nil +} + +func (m *PostgresqlConfig12) GetEnablePartitionwiseJoin() *wrappers.BoolValue { + if m != nil { + return m.EnablePartitionwiseJoin + } + return nil +} + +func (m *PostgresqlConfig12) GetJit() *wrappers.BoolValue { + if m != nil { + return m.Jit + } + return nil +} + +func (m *PostgresqlConfig12) GetMaxParallelMaintenanceWorkers() *wrappers.Int64Value { + if m != nil { + return m.MaxParallelMaintenanceWorkers + } + return nil +} + +func (m *PostgresqlConfig12) GetParallelLeaderParticipation() *wrappers.BoolValue { + if m != nil { + return m.ParallelLeaderParticipation + } + return nil +} + +func (m *PostgresqlConfig12) GetVacuumCleanupIndexScaleFactor() *wrappers.DoubleValue { + if m != nil { + return m.VacuumCleanupIndexScaleFactor + } + return nil +} + +func (m *PostgresqlConfig12) GetLogTransactionSampleRate() *wrappers.DoubleValue { + if m != nil { + return m.LogTransactionSampleRate + } + return nil +} + +func (m *PostgresqlConfig12) GetPlanCacheMode() PostgresqlConfig12_PlanCacheMode { + if m != nil { + return m.PlanCacheMode + } + return PostgresqlConfig12_PLAN_CACHE_MODE_UNSPECIFIED +} + +func (m *PostgresqlConfig12) GetEffectiveIoConcurrency() *wrappers.Int64Value { + if m != nil { + return m.EffectiveIoConcurrency + } + return nil +} + +func (m *PostgresqlConfig12) GetEffectiveCacheSize() *wrappers.Int64Value { + if m != nil { + return m.EffectiveCacheSize + } + return nil +} + +func (m *PostgresqlConfig12) GetSharedPreloadLibraries() []PostgresqlConfig12_SharedPreloadLibraries { + if m != nil { + return m.SharedPreloadLibraries + } + return nil +} + +func (m *PostgresqlConfig12) GetAutoExplainLogMinDuration() *wrappers.Int64Value { + if m != nil { + return m.AutoExplainLogMinDuration + } + return nil +} + +func (m *PostgresqlConfig12) GetAutoExplainLogAnalyze() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogAnalyze + } + return nil +} + +func (m *PostgresqlConfig12) GetAutoExplainLogBuffers() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogBuffers + } + return nil +} + +func (m *PostgresqlConfig12) GetAutoExplainLogTiming() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogTiming + } + return nil +} + +func (m *PostgresqlConfig12) GetAutoExplainLogTriggers() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogTriggers + } + return nil +} + +func (m *PostgresqlConfig12) GetAutoExplainLogVerbose() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogVerbose + } + return nil +} + +func (m *PostgresqlConfig12) GetAutoExplainLogNestedStatements() *wrappers.BoolValue { + if m != nil { + return m.AutoExplainLogNestedStatements + } + return nil +} + +func (m *PostgresqlConfig12) GetAutoExplainSampleRate() *wrappers.DoubleValue { + if m != nil { + return m.AutoExplainSampleRate + } + return nil +} + +func (m *PostgresqlConfig12) GetPgHintPlanEnableHint() *wrappers.BoolValue { + if m != nil { + return m.PgHintPlanEnableHint + } + return nil +} + +func (m *PostgresqlConfig12) GetPgHintPlanEnableHintTable() *wrappers.BoolValue { + if m != nil { + return m.PgHintPlanEnableHintTable + } + return nil +} + +func (m *PostgresqlConfig12) GetPgHintPlanDebugPrint() PostgresqlConfig12_PgHintPlanDebugPrint { + if m != nil { + return m.PgHintPlanDebugPrint + } + return PostgresqlConfig12_PG_HINT_PLAN_DEBUG_PRINT_UNSPECIFIED +} + +func (m *PostgresqlConfig12) GetPgHintPlanMessageLevel() PostgresqlConfig12_LogLevel { + if m != nil { + return m.PgHintPlanMessageLevel + } + return PostgresqlConfig12_LOG_LEVEL_UNSPECIFIED +} + +type PostgresqlConfigSet12 struct { + // Effective settings for a PostgreSQL 12 cluster (a combination of settings defined + // in [user_config] and [default_config]). + EffectiveConfig *PostgresqlConfig12 `protobuf:"bytes,1,opt,name=effective_config,json=effectiveConfig,proto3" json:"effective_config,omitempty"` + // User-defined settings for a PostgreSQL 12 cluster. + UserConfig *PostgresqlConfig12 `protobuf:"bytes,2,opt,name=user_config,json=userConfig,proto3" json:"user_config,omitempty"` + // Default configuration for a PostgreSQL 12 cluster. + DefaultConfig *PostgresqlConfig12 `protobuf:"bytes,3,opt,name=default_config,json=defaultConfig,proto3" json:"default_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PostgresqlConfigSet12) Reset() { *m = PostgresqlConfigSet12{} } +func (m *PostgresqlConfigSet12) String() string { return proto.CompactTextString(m) } +func (*PostgresqlConfigSet12) ProtoMessage() {} +func (*PostgresqlConfigSet12) Descriptor() ([]byte, []int) { + return fileDescriptor_24d5a15cdb12e7fb, []int{1} +} + +func (m *PostgresqlConfigSet12) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PostgresqlConfigSet12.Unmarshal(m, b) +} +func (m *PostgresqlConfigSet12) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PostgresqlConfigSet12.Marshal(b, m, deterministic) +} +func (m *PostgresqlConfigSet12) XXX_Merge(src proto.Message) { + xxx_messageInfo_PostgresqlConfigSet12.Merge(m, src) +} +func (m *PostgresqlConfigSet12) XXX_Size() int { + return xxx_messageInfo_PostgresqlConfigSet12.Size(m) +} +func (m *PostgresqlConfigSet12) XXX_DiscardUnknown() { + xxx_messageInfo_PostgresqlConfigSet12.DiscardUnknown(m) +} + +var xxx_messageInfo_PostgresqlConfigSet12 proto.InternalMessageInfo + +func (m *PostgresqlConfigSet12) GetEffectiveConfig() *PostgresqlConfig12 { + if m != nil { + return m.EffectiveConfig + } + return nil +} + +func (m *PostgresqlConfigSet12) GetUserConfig() *PostgresqlConfig12 { + if m != nil { + return m.UserConfig + } + return nil +} + +func (m *PostgresqlConfigSet12) GetDefaultConfig() *PostgresqlConfig12 { + if m != nil { + return m.DefaultConfig + } + return nil +} + +func init() { + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_WalLevel", PostgresqlConfig12_WalLevel_name, PostgresqlConfig12_WalLevel_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_SynchronousCommit", PostgresqlConfig12_SynchronousCommit_name, PostgresqlConfig12_SynchronousCommit_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_ConstraintExclusion", PostgresqlConfig12_ConstraintExclusion_name, PostgresqlConfig12_ConstraintExclusion_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_ForceParallelMode", PostgresqlConfig12_ForceParallelMode_name, PostgresqlConfig12_ForceParallelMode_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_LogLevel", PostgresqlConfig12_LogLevel_name, PostgresqlConfig12_LogLevel_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_LogErrorVerbosity", PostgresqlConfig12_LogErrorVerbosity_name, PostgresqlConfig12_LogErrorVerbosity_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_LogStatement", PostgresqlConfig12_LogStatement_name, PostgresqlConfig12_LogStatement_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_TransactionIsolation", PostgresqlConfig12_TransactionIsolation_name, PostgresqlConfig12_TransactionIsolation_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_ByteaOutput", PostgresqlConfig12_ByteaOutput_name, PostgresqlConfig12_ByteaOutput_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_XmlBinary", PostgresqlConfig12_XmlBinary_name, PostgresqlConfig12_XmlBinary_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_XmlOption", PostgresqlConfig12_XmlOption_name, PostgresqlConfig12_XmlOption_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_BackslashQuote", PostgresqlConfig12_BackslashQuote_name, PostgresqlConfig12_BackslashQuote_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_PlanCacheMode", PostgresqlConfig12_PlanCacheMode_name, PostgresqlConfig12_PlanCacheMode_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_PgHintPlanDebugPrint", PostgresqlConfig12_PgHintPlanDebugPrint_name, PostgresqlConfig12_PgHintPlanDebugPrint_value) + proto.RegisterEnum("yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_SharedPreloadLibraries", PostgresqlConfig12_SharedPreloadLibraries_name, PostgresqlConfig12_SharedPreloadLibraries_value) + proto.RegisterType((*PostgresqlConfig12)(nil), "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12") + proto.RegisterType((*PostgresqlConfigSet12)(nil), "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12") +} + +func init() { + proto.RegisterFile("yandex/cloud/mdb/postgresql/v1/config/postgresql12.proto", fileDescriptor_24d5a15cdb12e7fb) +} + +var fileDescriptor_24d5a15cdb12e7fb = []byte{ + // 4107 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x9b, 0xdb, 0x7a, 0xdb, 0xc6, + 0x7a, 0xf7, 0x3f, 0x4a, 0x4e, 0x62, 0x8f, 0x2c, 0x09, 0x1c, 0x6d, 0x0c, 0x49, 0xde, 0x45, 0xd9, + 0x7c, 0xce, 0xea, 0x92, 0x44, 0xca, 0x8a, 0xe3, 0x34, 0x4d, 0x1a, 0x88, 0x84, 0x24, 0xae, 0x80, + 0x1b, 0x83, 0x94, 0x65, 0x3b, 0x75, 0x26, 0x43, 0x60, 0x48, 0x8e, 0x05, 0x62, 0x60, 0x00, 0xd4, + 0xc6, 0xeb, 0x69, 0x9f, 0xf6, 0xa4, 0x07, 0xeb, 0x70, 0x1d, 0xb5, 0xbd, 0x95, 0x5e, 0x80, 0x4e, + 0x7b, 0xd4, 0xde, 0x41, 0x2f, 0x42, 0x47, 0x7d, 0x66, 0x00, 0x10, 0xe0, 0x46, 0x01, 0x65, 0xc7, + 0x47, 0xe2, 0xcc, 0xfc, 0x7f, 0xef, 0x6c, 0xdf, 0x99, 0x77, 0x06, 0x06, 0x4f, 0xcf, 0xb1, 0x6d, + 0x92, 0xb3, 0x2d, 0xc3, 0x62, 0x3d, 0x73, 0xab, 0x6b, 0x36, 0xb7, 0x1c, 0xe6, 0xf9, 0x6d, 0x97, + 0x78, 0x6f, 0xad, 0xad, 0x93, 0xfc, 0x96, 0xc1, 0xec, 0x16, 0x6d, 0x27, 0x12, 0xf3, 0xdb, 0x9b, + 0x8e, 0xcb, 0x7c, 0x06, 0xbf, 0x08, 0x94, 0x9b, 0x42, 0xb9, 0xd9, 0x35, 0x9b, 0x9b, 0x71, 0xa1, + 0xcd, 0x93, 0xfc, 0x66, 0xa0, 0x5c, 0xbd, 0xdf, 0x66, 0xac, 0x6d, 0x91, 0x2d, 0x21, 0x6a, 0xf6, + 0x5a, 0x5b, 0xa7, 0x2e, 0x76, 0x1c, 0xe2, 0x7a, 0x01, 0x66, 0xf5, 0xde, 0x40, 0x05, 0x4e, 0xb0, + 0x45, 0x4d, 0xec, 0x53, 0x66, 0x07, 0xd9, 0xeb, 0xff, 0x43, 0x00, 0xac, 0xf5, 0xb9, 0x05, 0xc1, + 0xcc, 0x6f, 0xc3, 0x22, 0x98, 0xef, 0xe2, 0x33, 0x64, 0x30, 0xdb, 0x26, 0x06, 0x2f, 0xee, 0xc9, + 0x99, 0x87, 0x99, 0x47, 0x33, 0xdb, 0x6b, 0x9b, 0x81, 0xbd, 0xcd, 0xc8, 0xde, 0x66, 0xc9, 0xf6, + 0x9f, 0xec, 0x3c, 0xc7, 0x56, 0x8f, 0xe8, 0x73, 0x5d, 0x7c, 0x56, 0x88, 0x25, 0x70, 0x17, 0xcc, + 0x79, 0x1d, 0xec, 0x12, 0x13, 0x35, 0x7b, 0xad, 0x16, 0x71, 0x3d, 0x79, 0x2a, 0x1d, 0x32, 0x1b, + 0x48, 0x76, 0x03, 0x05, 0xfc, 0x01, 0xdc, 0xf6, 0x49, 0xd7, 0xe9, 0x13, 0xa6, 0xd3, 0x09, 0x33, + 0x5c, 0x10, 0xe9, 0x8f, 0xc0, 0x0a, 0x6f, 0x89, 0xe3, 0x12, 0x47, 0xd4, 0xc4, 0x77, 0xb1, 0xed, + 0xe1, 0xb0, 0x4d, 0x37, 0xd2, 0x61, 0x77, 0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df, 0x0b, + 0xcf, 0x49, 0x83, 0xf8, 0x3f, 0x83, 0x85, 0x16, 0x73, 0x0d, 0x82, 0x1c, 0xec, 0x62, 0xcb, 0x22, + 0x16, 0xea, 0x32, 0x93, 0xc8, 0x9f, 0x7e, 0xa8, 0x87, 0xd9, 0xe3, 0xd0, 0x5a, 0xc8, 0x2c, 0x33, + 0x93, 0xe8, 0xd9, 0xd6, 0x70, 0x12, 0x74, 0xc1, 0x82, 0x61, 0x51, 0x62, 0xfb, 0x88, 0x2f, 0x85, + 0x2e, 0xf1, 0x3c, 0xb1, 0xf7, 0xad, 0x7f, 0xa8, 0x23, 0xd5, 0x58, 0x3b, 0x70, 0xa4, 0xd9, 0x00, + 0x5f, 0xa6, 0x76, 0x39, 0x84, 0x43, 0x0b, 0x48, 0x16, 0x6b, 0x0f, 0x1a, 0xfc, 0xec, 0x77, 0x33, + 0x38, 0x67, 0xb1, 0x76, 0xd2, 0xda, 0x39, 0xb8, 0x13, 0x59, 0x23, 0xae, 0xcb, 0x5c, 0xb1, 0xa0, + 0x48, 0x97, 0xd8, 0xbe, 0xfc, 0xf9, 0xef, 0x66, 0x74, 0x31, 0x30, 0xaa, 0x72, 0x03, 0xf5, 0x88, + 0x0f, 0x5f, 0x80, 0xd5, 0xc8, 0xb4, 0xd9, 0x73, 0x45, 0x6c, 0x92, 0xb0, 0xfe, 0xc5, 0x04, 0xcb, + 0x38, 0xc0, 0x16, 0x43, 0x71, 0x4c, 0x2e, 0x80, 0x79, 0x4e, 0x8e, 0xbd, 0xa2, 0x27, 0x7f, 0x29, + 0x70, 0xab, 0x23, 0xb8, 0x5d, 0xc6, 0xac, 0x30, 0x86, 0xb1, 0x58, 0xbb, 0x10, 0x2b, 0xfa, 0x90, + 0x44, 0x24, 0xf4, 0xff, 0x27, 0x83, 0x24, 0x02, 0xa1, 0x12, 0x80, 0x1c, 0x62, 0x52, 0x2f, 0xc9, + 0x79, 0x94, 0xca, 0xc9, 0x5a, 0xac, 0x5d, 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xae, + 0xae, 0xe8, 0x25, 0xb5, 0x3e, 0xd4, 0xa8, 0xaf, 0xc0, 0x17, 0x57, 0x96, 0xe4, 0x23, 0x81, 0xd4, + 0x17, 0x35, 0x4d, 0x29, 0xf1, 0xbd, 0xee, 0xb7, 0x8a, 0x26, 0xab, 0x2b, 0x4d, 0xad, 0xff, 0xe7, + 0x14, 0x58, 0x1a, 0x3e, 0x70, 0xd5, 0x89, 0x9f, 0xdf, 0x86, 0x26, 0x90, 0x12, 0x51, 0xae, 0xc8, + 0x08, 0xff, 0x77, 0xcb, 0xb7, 0xef, 0x7d, 0x90, 0xd3, 0xe7, 0xe3, 0x58, 0x57, 0x24, 0xc1, 0x57, + 0x60, 0xa6, 0xe7, 0x11, 0x37, 0x32, 0x30, 0xf5, 0xa1, 0x06, 0x00, 0xa7, 0x85, 0xec, 0x5f, 0xc1, + 0x5c, 0x74, 0x19, 0x19, 0xe2, 0xa7, 0x3f, 0x14, 0x3f, 0x1b, 0x02, 0x83, 0x84, 0xdd, 0x7f, 0xc9, + 0x80, 0xaf, 0x06, 0x58, 0xd8, 0xa1, 0x57, 0xf2, 0x5e, 0x35, 0xda, 0xd4, 0xef, 0xf4, 0x9a, 0x9b, + 0x06, 0xeb, 0x6e, 0x05, 0xaa, 0x8d, 0xe0, 0xff, 0x1b, 0xb5, 0xd9, 0x46, 0x9b, 0xd8, 0xe2, 0xe8, + 0xbf, 0x35, 0xd1, 0xff, 0x84, 0xfa, 0x2e, 0x4e, 0x6c, 0x7e, 0x2c, 0x74, 0x8f, 0xff, 0x2f, 0x00, + 0x00, 0xff, 0xff, 0xa9, 0x80, 0xc9, 0xb0, 0x44, 0x35, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql12.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql12.pbext.go new file mode 100644 index 000000000..e13632364 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql12.pbext.go @@ -0,0 +1,503 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *PostgresqlConfig12) SetMaxConnections(v *wrappers.Int64Value) { + m.MaxConnections = v +} + +func (m *PostgresqlConfig12) SetSharedBuffers(v *wrappers.Int64Value) { + m.SharedBuffers = v +} + +func (m *PostgresqlConfig12) SetTempBuffers(v *wrappers.Int64Value) { + m.TempBuffers = v +} + +func (m *PostgresqlConfig12) SetMaxPreparedTransactions(v *wrappers.Int64Value) { + m.MaxPreparedTransactions = v +} + +func (m *PostgresqlConfig12) SetWorkMem(v *wrappers.Int64Value) { + m.WorkMem = v +} + +func (m *PostgresqlConfig12) SetMaintenanceWorkMem(v *wrappers.Int64Value) { + m.MaintenanceWorkMem = v +} + +func (m *PostgresqlConfig12) SetAutovacuumWorkMem(v *wrappers.Int64Value) { + m.AutovacuumWorkMem = v +} + +func (m *PostgresqlConfig12) SetTempFileLimit(v *wrappers.Int64Value) { + m.TempFileLimit = v +} + +func (m *PostgresqlConfig12) SetVacuumCostDelay(v *wrappers.Int64Value) { + m.VacuumCostDelay = v +} + +func (m *PostgresqlConfig12) SetVacuumCostPageHit(v *wrappers.Int64Value) { + m.VacuumCostPageHit = v +} + +func (m *PostgresqlConfig12) SetVacuumCostPageMiss(v *wrappers.Int64Value) { + m.VacuumCostPageMiss = v +} + +func (m *PostgresqlConfig12) SetVacuumCostPageDirty(v *wrappers.Int64Value) { + m.VacuumCostPageDirty = v +} + +func (m *PostgresqlConfig12) SetVacuumCostLimit(v *wrappers.Int64Value) { + m.VacuumCostLimit = v +} + +func (m *PostgresqlConfig12) SetBgwriterDelay(v *wrappers.Int64Value) { + m.BgwriterDelay = v +} + +func (m *PostgresqlConfig12) SetBgwriterLruMaxpages(v *wrappers.Int64Value) { + m.BgwriterLruMaxpages = v +} + +func (m *PostgresqlConfig12) SetBgwriterLruMultiplier(v *wrappers.DoubleValue) { + m.BgwriterLruMultiplier = v +} + +func (m *PostgresqlConfig12) SetBgwriterFlushAfter(v *wrappers.Int64Value) { + m.BgwriterFlushAfter = v +} + +func (m *PostgresqlConfig12) SetBackendFlushAfter(v *wrappers.Int64Value) { + m.BackendFlushAfter = v +} + +func (m *PostgresqlConfig12) SetOldSnapshotThreshold(v *wrappers.Int64Value) { + m.OldSnapshotThreshold = v +} + +func (m *PostgresqlConfig12) SetWalLevel(v PostgresqlConfig12_WalLevel) { + m.WalLevel = v +} + +func (m *PostgresqlConfig12) SetSynchronousCommit(v PostgresqlConfig12_SynchronousCommit) { + m.SynchronousCommit = v +} + +func (m *PostgresqlConfig12) SetCheckpointTimeout(v *wrappers.Int64Value) { + m.CheckpointTimeout = v +} + +func (m *PostgresqlConfig12) SetCheckpointCompletionTarget(v *wrappers.DoubleValue) { + m.CheckpointCompletionTarget = v +} + +func (m *PostgresqlConfig12) SetCheckpointFlushAfter(v *wrappers.Int64Value) { + m.CheckpointFlushAfter = v +} + +func (m *PostgresqlConfig12) SetMaxWalSize(v *wrappers.Int64Value) { + m.MaxWalSize = v +} + +func (m *PostgresqlConfig12) SetMinWalSize(v *wrappers.Int64Value) { + m.MinWalSize = v +} + +func (m *PostgresqlConfig12) SetMaxStandbyStreamingDelay(v *wrappers.Int64Value) { + m.MaxStandbyStreamingDelay = v +} + +func (m *PostgresqlConfig12) SetDefaultStatisticsTarget(v *wrappers.Int64Value) { + m.DefaultStatisticsTarget = v +} + +func (m *PostgresqlConfig12) SetConstraintExclusion(v PostgresqlConfig12_ConstraintExclusion) { + m.ConstraintExclusion = v +} + +func (m *PostgresqlConfig12) SetCursorTupleFraction(v *wrappers.DoubleValue) { + m.CursorTupleFraction = v +} + +func (m *PostgresqlConfig12) SetFromCollapseLimit(v *wrappers.Int64Value) { + m.FromCollapseLimit = v +} + +func (m *PostgresqlConfig12) SetJoinCollapseLimit(v *wrappers.Int64Value) { + m.JoinCollapseLimit = v +} + +func (m *PostgresqlConfig12) SetForceParallelMode(v PostgresqlConfig12_ForceParallelMode) { + m.ForceParallelMode = v +} + +func (m *PostgresqlConfig12) SetClientMinMessages(v PostgresqlConfig12_LogLevel) { + m.ClientMinMessages = v +} + +func (m *PostgresqlConfig12) SetLogMinMessages(v PostgresqlConfig12_LogLevel) { + m.LogMinMessages = v +} + +func (m *PostgresqlConfig12) SetLogMinErrorStatement(v PostgresqlConfig12_LogLevel) { + m.LogMinErrorStatement = v +} + +func (m *PostgresqlConfig12) SetLogMinDurationStatement(v *wrappers.Int64Value) { + m.LogMinDurationStatement = v +} + +func (m *PostgresqlConfig12) SetLogCheckpoints(v *wrappers.BoolValue) { + m.LogCheckpoints = v +} + +func (m *PostgresqlConfig12) SetLogConnections(v *wrappers.BoolValue) { + m.LogConnections = v +} + +func (m *PostgresqlConfig12) SetLogDisconnections(v *wrappers.BoolValue) { + m.LogDisconnections = v +} + +func (m *PostgresqlConfig12) SetLogDuration(v *wrappers.BoolValue) { + m.LogDuration = v +} + +func (m *PostgresqlConfig12) SetLogErrorVerbosity(v PostgresqlConfig12_LogErrorVerbosity) { + m.LogErrorVerbosity = v +} + +func (m *PostgresqlConfig12) SetLogLockWaits(v *wrappers.BoolValue) { + m.LogLockWaits = v +} + +func (m *PostgresqlConfig12) SetLogStatement(v PostgresqlConfig12_LogStatement) { + m.LogStatement = v +} + +func (m *PostgresqlConfig12) SetLogTempFiles(v *wrappers.Int64Value) { + m.LogTempFiles = v +} + +func (m *PostgresqlConfig12) SetSearchPath(v string) { + m.SearchPath = v +} + +func (m *PostgresqlConfig12) SetRowSecurity(v *wrappers.BoolValue) { + m.RowSecurity = v +} + +func (m *PostgresqlConfig12) SetDefaultTransactionIsolation(v PostgresqlConfig12_TransactionIsolation) { + m.DefaultTransactionIsolation = v +} + +func (m *PostgresqlConfig12) SetStatementTimeout(v *wrappers.Int64Value) { + m.StatementTimeout = v +} + +func (m *PostgresqlConfig12) SetLockTimeout(v *wrappers.Int64Value) { + m.LockTimeout = v +} + +func (m *PostgresqlConfig12) SetIdleInTransactionSessionTimeout(v *wrappers.Int64Value) { + m.IdleInTransactionSessionTimeout = v +} + +func (m *PostgresqlConfig12) SetByteaOutput(v PostgresqlConfig12_ByteaOutput) { + m.ByteaOutput = v +} + +func (m *PostgresqlConfig12) SetXmlbinary(v PostgresqlConfig12_XmlBinary) { + m.Xmlbinary = v +} + +func (m *PostgresqlConfig12) SetXmloption(v PostgresqlConfig12_XmlOption) { + m.Xmloption = v +} + +func (m *PostgresqlConfig12) SetGinPendingListLimit(v *wrappers.Int64Value) { + m.GinPendingListLimit = v +} + +func (m *PostgresqlConfig12) SetDeadlockTimeout(v *wrappers.Int64Value) { + m.DeadlockTimeout = v +} + +func (m *PostgresqlConfig12) SetMaxLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxLocksPerTransaction = v +} + +func (m *PostgresqlConfig12) SetMaxPredLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxPredLocksPerTransaction = v +} + +func (m *PostgresqlConfig12) SetArrayNulls(v *wrappers.BoolValue) { + m.ArrayNulls = v +} + +func (m *PostgresqlConfig12) SetBackslashQuote(v PostgresqlConfig12_BackslashQuote) { + m.BackslashQuote = v +} + +func (m *PostgresqlConfig12) SetDefaultWithOids(v *wrappers.BoolValue) { + m.DefaultWithOids = v +} + +func (m *PostgresqlConfig12) SetEscapeStringWarning(v *wrappers.BoolValue) { + m.EscapeStringWarning = v +} + +func (m *PostgresqlConfig12) SetLoCompatPrivileges(v *wrappers.BoolValue) { + m.LoCompatPrivileges = v +} + +func (m *PostgresqlConfig12) SetOperatorPrecedenceWarning(v *wrappers.BoolValue) { + m.OperatorPrecedenceWarning = v +} + +func (m *PostgresqlConfig12) SetQuoteAllIdentifiers(v *wrappers.BoolValue) { + m.QuoteAllIdentifiers = v +} + +func (m *PostgresqlConfig12) SetStandardConformingStrings(v *wrappers.BoolValue) { + m.StandardConformingStrings = v +} + +func (m *PostgresqlConfig12) SetSynchronizeSeqscans(v *wrappers.BoolValue) { + m.SynchronizeSeqscans = v +} + +func (m *PostgresqlConfig12) SetTransformNullEquals(v *wrappers.BoolValue) { + m.TransformNullEquals = v +} + +func (m *PostgresqlConfig12) SetExitOnError(v *wrappers.BoolValue) { + m.ExitOnError = v +} + +func (m *PostgresqlConfig12) SetSeqPageCost(v *wrappers.DoubleValue) { + m.SeqPageCost = v +} + +func (m *PostgresqlConfig12) SetRandomPageCost(v *wrappers.DoubleValue) { + m.RandomPageCost = v +} + +func (m *PostgresqlConfig12) SetAutovacuumMaxWorkers(v *wrappers.Int64Value) { + m.AutovacuumMaxWorkers = v +} + +func (m *PostgresqlConfig12) SetAutovacuumVacuumCostDelay(v *wrappers.Int64Value) { + m.AutovacuumVacuumCostDelay = v +} + +func (m *PostgresqlConfig12) SetAutovacuumVacuumCostLimit(v *wrappers.Int64Value) { + m.AutovacuumVacuumCostLimit = v +} + +func (m *PostgresqlConfig12) SetAutovacuumNaptime(v *wrappers.Int64Value) { + m.AutovacuumNaptime = v +} + +func (m *PostgresqlConfig12) SetArchiveTimeout(v *wrappers.Int64Value) { + m.ArchiveTimeout = v +} + +func (m *PostgresqlConfig12) SetTrackActivityQuerySize(v *wrappers.Int64Value) { + m.TrackActivityQuerySize = v +} + +func (m *PostgresqlConfig12) SetEnableBitmapscan(v *wrappers.BoolValue) { + m.EnableBitmapscan = v +} + +func (m *PostgresqlConfig12) SetEnableHashagg(v *wrappers.BoolValue) { + m.EnableHashagg = v +} + +func (m *PostgresqlConfig12) SetEnableHashjoin(v *wrappers.BoolValue) { + m.EnableHashjoin = v +} + +func (m *PostgresqlConfig12) SetEnableIndexscan(v *wrappers.BoolValue) { + m.EnableIndexscan = v +} + +func (m *PostgresqlConfig12) SetEnableIndexonlyscan(v *wrappers.BoolValue) { + m.EnableIndexonlyscan = v +} + +func (m *PostgresqlConfig12) SetEnableMaterial(v *wrappers.BoolValue) { + m.EnableMaterial = v +} + +func (m *PostgresqlConfig12) SetEnableMergejoin(v *wrappers.BoolValue) { + m.EnableMergejoin = v +} + +func (m *PostgresqlConfig12) SetEnableNestloop(v *wrappers.BoolValue) { + m.EnableNestloop = v +} + +func (m *PostgresqlConfig12) SetEnableSeqscan(v *wrappers.BoolValue) { + m.EnableSeqscan = v +} + +func (m *PostgresqlConfig12) SetEnableSort(v *wrappers.BoolValue) { + m.EnableSort = v +} + +func (m *PostgresqlConfig12) SetEnableTidscan(v *wrappers.BoolValue) { + m.EnableTidscan = v +} + +func (m *PostgresqlConfig12) SetMaxWorkerProcesses(v *wrappers.Int64Value) { + m.MaxWorkerProcesses = v +} + +func (m *PostgresqlConfig12) SetMaxParallelWorkers(v *wrappers.Int64Value) { + m.MaxParallelWorkers = v +} + +func (m *PostgresqlConfig12) SetMaxParallelWorkersPerGather(v *wrappers.Int64Value) { + m.MaxParallelWorkersPerGather = v +} + +func (m *PostgresqlConfig12) SetAutovacuumVacuumScaleFactor(v *wrappers.DoubleValue) { + m.AutovacuumVacuumScaleFactor = v +} + +func (m *PostgresqlConfig12) SetAutovacuumAnalyzeScaleFactor(v *wrappers.DoubleValue) { + m.AutovacuumAnalyzeScaleFactor = v +} + +func (m *PostgresqlConfig12) SetDefaultTransactionReadOnly(v *wrappers.BoolValue) { + m.DefaultTransactionReadOnly = v +} + +func (m *PostgresqlConfig12) SetTimezone(v string) { + m.Timezone = v +} + +func (m *PostgresqlConfig12) SetEnableParallelAppend(v *wrappers.BoolValue) { + m.EnableParallelAppend = v +} + +func (m *PostgresqlConfig12) SetEnableParallelHash(v *wrappers.BoolValue) { + m.EnableParallelHash = v +} + +func (m *PostgresqlConfig12) SetEnablePartitionPruning(v *wrappers.BoolValue) { + m.EnablePartitionPruning = v +} + +func (m *PostgresqlConfig12) SetEnablePartitionwiseAggregate(v *wrappers.BoolValue) { + m.EnablePartitionwiseAggregate = v +} + +func (m *PostgresqlConfig12) SetEnablePartitionwiseJoin(v *wrappers.BoolValue) { + m.EnablePartitionwiseJoin = v +} + +func (m *PostgresqlConfig12) SetJit(v *wrappers.BoolValue) { + m.Jit = v +} + +func (m *PostgresqlConfig12) SetMaxParallelMaintenanceWorkers(v *wrappers.Int64Value) { + m.MaxParallelMaintenanceWorkers = v +} + +func (m *PostgresqlConfig12) SetParallelLeaderParticipation(v *wrappers.BoolValue) { + m.ParallelLeaderParticipation = v +} + +func (m *PostgresqlConfig12) SetVacuumCleanupIndexScaleFactor(v *wrappers.DoubleValue) { + m.VacuumCleanupIndexScaleFactor = v +} + +func (m *PostgresqlConfig12) SetLogTransactionSampleRate(v *wrappers.DoubleValue) { + m.LogTransactionSampleRate = v +} + +func (m *PostgresqlConfig12) SetPlanCacheMode(v PostgresqlConfig12_PlanCacheMode) { + m.PlanCacheMode = v +} + +func (m *PostgresqlConfig12) SetEffectiveIoConcurrency(v *wrappers.Int64Value) { + m.EffectiveIoConcurrency = v +} + +func (m *PostgresqlConfig12) SetEffectiveCacheSize(v *wrappers.Int64Value) { + m.EffectiveCacheSize = v +} + +func (m *PostgresqlConfig12) SetSharedPreloadLibraries(v []PostgresqlConfig12_SharedPreloadLibraries) { + m.SharedPreloadLibraries = v +} + +func (m *PostgresqlConfig12) SetAutoExplainLogMinDuration(v *wrappers.Int64Value) { + m.AutoExplainLogMinDuration = v +} + +func (m *PostgresqlConfig12) SetAutoExplainLogAnalyze(v *wrappers.BoolValue) { + m.AutoExplainLogAnalyze = v +} + +func (m *PostgresqlConfig12) SetAutoExplainLogBuffers(v *wrappers.BoolValue) { + m.AutoExplainLogBuffers = v +} + +func (m *PostgresqlConfig12) SetAutoExplainLogTiming(v *wrappers.BoolValue) { + m.AutoExplainLogTiming = v +} + +func (m *PostgresqlConfig12) SetAutoExplainLogTriggers(v *wrappers.BoolValue) { + m.AutoExplainLogTriggers = v +} + +func (m *PostgresqlConfig12) SetAutoExplainLogVerbose(v *wrappers.BoolValue) { + m.AutoExplainLogVerbose = v +} + +func (m *PostgresqlConfig12) SetAutoExplainLogNestedStatements(v *wrappers.BoolValue) { + m.AutoExplainLogNestedStatements = v +} + +func (m *PostgresqlConfig12) SetAutoExplainSampleRate(v *wrappers.DoubleValue) { + m.AutoExplainSampleRate = v +} + +func (m *PostgresqlConfig12) SetPgHintPlanEnableHint(v *wrappers.BoolValue) { + m.PgHintPlanEnableHint = v +} + +func (m *PostgresqlConfig12) SetPgHintPlanEnableHintTable(v *wrappers.BoolValue) { + m.PgHintPlanEnableHintTable = v +} + +func (m *PostgresqlConfig12) SetPgHintPlanDebugPrint(v PostgresqlConfig12_PgHintPlanDebugPrint) { + m.PgHintPlanDebugPrint = v +} + +func (m *PostgresqlConfig12) SetPgHintPlanMessageLevel(v PostgresqlConfig12_LogLevel) { + m.PgHintPlanMessageLevel = v +} + +func (m *PostgresqlConfigSet12) SetEffectiveConfig(v *PostgresqlConfig12) { + m.EffectiveConfig = v +} + +func (m *PostgresqlConfigSet12) SetUserConfig(v *PostgresqlConfig12) { + m.UserConfig = v +} + +func (m *PostgresqlConfigSet12) SetDefaultConfig(v *PostgresqlConfig12) { + m.DefaultConfig = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql9_6.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql9_6.pb.go index 491474938..0243c0b35 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql9_6.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql9_6.pb.go @@ -505,6 +505,8 @@ type PostgresqlConfig9_6 struct { AutovacuumNaptime *wrappers.Int64Value `protobuf:"bytes,77,opt,name=autovacuum_naptime,json=autovacuumNaptime,proto3" json:"autovacuum_naptime,omitempty"` ArchiveTimeout *wrappers.Int64Value `protobuf:"bytes,78,opt,name=archive_timeout,json=archiveTimeout,proto3" json:"archive_timeout,omitempty"` TrackActivityQuerySize *wrappers.Int64Value `protobuf:"bytes,79,opt,name=track_activity_query_size,json=trackActivityQuerySize,proto3" json:"track_activity_query_size,omitempty"` + EffectiveIoConcurrency *wrappers.Int64Value `protobuf:"bytes,80,opt,name=effective_io_concurrency,json=effectiveIoConcurrency,proto3" json:"effective_io_concurrency,omitempty"` + EffectiveCacheSize *wrappers.Int64Value `protobuf:"bytes,81,opt,name=effective_cache_size,json=effectiveCacheSize,proto3" json:"effective_cache_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1088,6 +1090,20 @@ func (m *PostgresqlConfig9_6) GetTrackActivityQuerySize() *wrappers.Int64Value { return nil } +func (m *PostgresqlConfig9_6) GetEffectiveIoConcurrency() *wrappers.Int64Value { + if m != nil { + return m.EffectiveIoConcurrency + } + return nil +} + +func (m *PostgresqlConfig9_6) GetEffectiveCacheSize() *wrappers.Int64Value { + if m != nil { + return m.EffectiveCacheSize + } + return nil +} + type PostgresqlConfigSet9_6 struct { // Effective settings for a PostgreSQL 9.6 cluster (a combination of settings defined // in [user_config] and [default_config]). @@ -1169,193 +1185,197 @@ func init() { } var fileDescriptor_213f5cd18654c1e2 = []byte{ - // 2993 bytes of a gzipped FileDescriptorProto + // 3070 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x9a, 0x5b, 0x77, 0xdb, 0xc6, 0x76, 0xc7, 0x4b, 0x49, 0x71, 0xe4, 0x91, 0x25, 0x81, 0x43, 0x5d, 0x20, 0xf9, 0x1a, 0x26, 0x4e, - 0x7d, 0x4e, 0x2b, 0x89, 0x94, 0x75, 0x14, 0xfb, 0xa4, 0xc7, 0x0d, 0x08, 0x82, 0x32, 0x1b, 0x90, - 0x60, 0x00, 0x4a, 0xb2, 0x93, 0x95, 0x4c, 0x87, 0xe0, 0x90, 0x44, 0x04, 0x62, 0x28, 0x0c, 0xa8, - 0x8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 0xea, 0x94, 0xaf, 0xa4, 0x41, 0xa4, 0x8f, 0xc5, 0x8a, 0x8a, 0x61, 0x98, 0x88, 0xe5, 0xe0, - 0x01, 0x3f, 0x85, 0xc4, 0x5a, 0x7a, 0x84, 0xec, 0xf5, 0x55, 0x71, 0xb1, 0x38, 0xfe, 0x24, 0x15, - 0x93, 0xea, 0x01, 0x08, 0x1e, 0x81, 0x65, 0x7e, 0x75, 0xb4, 0xce, 0xc8, 0xe8, 0x78, 0xab, 0x4f, - 0x5b, 0x67, 0xfb, 0xef, 0x5d, 0xfb, 0x01, 0x7a, 0x29, 0xa4, 0x44, 0xe7, 0x5d, 0x07, 0x6c, 0x78, - 0x2e, 0x36, 0x4f, 0x10, 0x3f, 0x46, 0xce, 0x2c, 0xef, 0x12, 0x9d, 0x0e, 0x89, 0x7b, 0x19, 0xbc, - 0xfc, 0x68, 0xe9, 0x11, 0x96, 0xae, 0xaf, 0x8a, 0xa0, 0x58, 0x28, 0x6c, 0x15, 0x0b, 0xbb, 0x7b, - 0x85, 0x82, 0xbe, 0xe6, 0xd3, 0xa4, 0x10, 0xf6, 0x1d, 0x67, 0x19, 0xd6, 0x07, 0x92, 0x37, 0xc0, - 0x7c, 0xf4, 0x8a, 0x08, 0x37, 0xc0, 0xea, 0xb1, 0xa4, 0x22, 0x55, 0x39, 0x52, 0x54, 0x74, 0x58, - 0x37, 0x1a, 0x8a, 0x5c, 0xad, 0x54, 0x95, 0xb2, 0xf0, 0x37, 0x70, 0x15, 0x64, 0xe3, 0x26, 0x5d, - 0x69, 0xa8, 0x55, 0x59, 0x12, 0x32, 0xe3, 0x66, 0x55, 0x3b, 0xa8, 0xca, 0x92, 0x2a, 0xcc, 0xe4, - 0xff, 0x37, 0x03, 0xb2, 0xb7, 0x1e, 0x0c, 0x61, 0x1e, 0x3c, 0x31, 0xde, 0xd7, 0xe5, 0xb7, 0xba, - 0x56, 0xd7, 0x0e, 0x0d, 0x24, 0x6b, 0xb5, 0x5a, 0xb5, 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0xbf, 0x0c, 0x58, 0x99, 0x58, 0xd0, 0x3e, 0x07, 0x9f, - 0x35, 0x75, 0xa9, 0x6e, 0x48, 0x32, 0x4f, 0x7e, 0x54, 0x35, 0x34, 0x55, 0x6a, 0xde, 0xfe, 0xe2, - 0xfe, 0x08, 0xbe, 0x9c, 0xec, 0xa6, 0x2b, 0x52, 0x19, 0x1d, 0xd6, 0x83, 0xaf, 0xbc, 0xa9, 0x94, - 0x85, 0x0c, 0x7c, 0x01, 0xbe, 0xf8, 0x05, 0xdf, 0xd8, 0x73, 0x06, 0xfe, 0x01, 0x3c, 0xff, 0x98, - 0x67, 0x43, 0x91, 0x9a, 0x52, 0x49, 0x55, 0x7c, 0x91, 0x30, 0x0b, 0xbf, 0x04, 0xf9, 0xc9, 0xae, - 0x86, 0xa2, 0x57, 0x25, 0xb5, 0xfa, 0x3d, 0x77, 0x16, 0xe6, 0xf2, 0x3f, 0x80, 0x85, 0x44, 0x71, - 0xc9, 0x37, 0x83, 0xd2, 0xfb, 0xa6, 0x22, 0x21, 0xed, 0xb0, 0xd9, 0x38, 0x6c, 0xde, 0xfe, 0x56, - 0xc6, 0x5a, 0xdf, 0x2a, 0xef, 0x84, 0x0c, 0x14, 0xc1, 0xca, 0x98, 0x55, 0x31, 0x64, 0xa9, 0xc1, - 0xfb, 0x9b, 0xd7, 0xc1, 0xfd, 0x51, 0x45, 0xc9, 0x3f, 0xf5, 0x77, 0x35, 0x15, 0x95, 0xaa, 0x75, - 0x49, 0x7f, 0x7f, 0x7b, 0x97, 0x4f, 0xb4, 0x95, 0x24, 0x43, 0xd9, 0xdf, 0x13, 0x32, 0x10, 0x82, - 0xa5, 0x84, 0x99, 0x47, 0x9b, 0xc9, 0xbf, 0xf3, 0x99, 0x41, 0x05, 0x19, 0x31, 0xb5, 0xc6, 0x84, - 0x25, 0x58, 0x07, 0xb9, 0x44, 0x5b, 0x59, 0x93, 0x0f, 0xf9, 0xfa, 0x0a, 0x19, 0x9e, 0x38, 0x89,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 0x00, 0x00, 0xff, 0xff, 0x37, 0x3f, 0xc4, 0x9f, 0x46, 0x24, 0x00, - 0x00, + 0x9d, 0xb4, 0x92, 0x48, 0x59, 0x96, 0xe5, 0xa4, 0x71, 0x03, 0x82, 0xa0, 0xcc, 0x06, 0x24, 0x68, + 0x80, 0xb2, 0xec, 0x64, 0x25, 0xe8, 0x10, 0x18, 0x92, 0x88, 0x40, 0x0c, 0x85, 0x01, 0x75, 0x71, + 0xfb, 0x92, 0xd7, 0x3e, 0xb6, 0x4f, 0x3d, 0x1f, 0xe7, 0xac, 0x75, 0x96, 0xbe, 0xc1, 0xf9, 0x08, + 0x67, 0x9d, 0xcf, 0xa0, 0xa7, 0xb3, 0x06, 0x17, 0x02, 0x94, 0xe8, 0x80, 0x89, 0xf2, 0x26, 0xed, + 0x99, 0xff, 0x6f, 0xcf, 0x65, 0x63, 0x66, 0xf6, 0x5e, 0x04, 0x2f, 0xce, 0x91, 0x63, 0xe2, 0xb3, + 0x2d, 0xc3, 0x26, 0x03, 0x73, 0xab, 0x67, 0xb6, 0xb6, 0xfa, 0x84, 0x7a, 0x1d, 0x17, 0xd3, 0x63, + 0x7b, 0xeb, 0xa4, 0xb8, 0x65, 0x10, 0xa7, 0x6d, 0x75, 0x12, 0xc6, 0x17, 0xfa, 0xee, 0x66, 0xdf, + 0x25, 0x1e, 0x81, 0x8f, 0x03, 0xe9, 0xa6, 0x2f, 0xdd, 0xec, 0x99, 0xad, 0xcd, 0xb8, 0xd7, 0xe6, + 0x49, 0x71, 0x33, 0x90, 0xae, 0x3f, 0xe8, 0x10, 0xd2, 0xb1, 0xf1, 0x96, 0x2f, 0x6a, 0x0d, 0xda, + 0x5b, 0xa7, 0x2e, 0xea, 0xf7, 0xb1, 0x4b, 0x03, 0xcc, 0xfa, 0xfd, 0x91, 0x11, 0x9c, 0x20, 0xdb, + 0x32, 0x91, 0x67, 0x11, 0x27, 0x68, 0xce, 0xff, 0x59, 0x02, 0xb9, 0xc6, 0x90, 0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0x4a, 0x99, 0x7d, 0xf8, 0x33, 0xf9, 0xbf, 0x4c, 0x81, 0x95, 0xab, + 0xb9, 0xa1, 0x86, 0xbd, 0x17, 0xfa, 0x2e, 0x3c, 0x02, 0x5c, 0xe2, 0xb2, 0xf6, 0x5b, 0xc2, 0x1f, + 0xb2, 0x7c, 0xf5, 0xfb, 0x93, 0xce, 0xd2, 0xcc, 0xdf, 0x2f, 0x8a, 0x19, 0x75, 0x31, 0xbe, 0xb9, + 0xfd, 0x16, 0xf8, 0x03, 0x98, 0x1b, 0x50, 0xec, 0x46, 0x7e, 0xa6, 0x6e, 0xea, 0x47, 0x05, 0x0c, + 0x17, 0xc2, 0x11, 0x58, 0x88, 0x32, 0xd9, 0x90, 0x3f, 0x7d, 0x63, 0xfe, 0x7c, 0x48, 0x0c, 0x2c, + 0xa5, 0x5f, 0x32, 0xe0, 0x8b, 0x11, 0x18, 0xea, 0x5b, 0x1f, 0x04, 0x7e, 0xdf, 0xec, 0x58, 0x5e, + 0x77, 0xd0, 0xda, 0x34, 0x48, 0x6f, 0x2b, 0x50, 0x6d, 0x04, 0x3f, 0x32, 0xea, 0x90, 0x8d, 0x0e, + 0x76, 0xfc, 0xf7, 0xcf, 0xd6, 0x44, 0xbf, 0x7f, 0xfa, 0x3a, 0x36, 0xb6, 0x6e, 0xf9, 0xba, 0xa7, + 0xff, 0x08, 0x00, 0x00, 0xff, 0xff, 0x87, 0x41, 0x68, 0x8d, 0x3a, 0x25, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql9_6.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql9_6.pbext.go new file mode 100644 index 000000000..27a473e96 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config/postgresql9_6.pbext.go @@ -0,0 +1,343 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *PostgresqlConfig9_6) SetMaxConnections(v *wrappers.Int64Value) { + m.MaxConnections = v +} + +func (m *PostgresqlConfig9_6) SetSharedBuffers(v *wrappers.Int64Value) { + m.SharedBuffers = v +} + +func (m *PostgresqlConfig9_6) SetTempBuffers(v *wrappers.Int64Value) { + m.TempBuffers = v +} + +func (m *PostgresqlConfig9_6) SetMaxPreparedTransactions(v *wrappers.Int64Value) { + m.MaxPreparedTransactions = v +} + +func (m *PostgresqlConfig9_6) SetWorkMem(v *wrappers.Int64Value) { + m.WorkMem = v +} + +func (m *PostgresqlConfig9_6) SetMaintenanceWorkMem(v *wrappers.Int64Value) { + m.MaintenanceWorkMem = v +} + +func (m *PostgresqlConfig9_6) SetReplacementSortTuples(v *wrappers.Int64Value) { + m.ReplacementSortTuples = v +} + +func (m *PostgresqlConfig9_6) SetAutovacuumWorkMem(v *wrappers.Int64Value) { + m.AutovacuumWorkMem = v +} + +func (m *PostgresqlConfig9_6) SetTempFileLimit(v *wrappers.Int64Value) { + m.TempFileLimit = v +} + +func (m *PostgresqlConfig9_6) SetVacuumCostDelay(v *wrappers.Int64Value) { + m.VacuumCostDelay = v +} + +func (m *PostgresqlConfig9_6) SetVacuumCostPageHit(v *wrappers.Int64Value) { + m.VacuumCostPageHit = v +} + +func (m *PostgresqlConfig9_6) SetVacuumCostPageMiss(v *wrappers.Int64Value) { + m.VacuumCostPageMiss = v +} + +func (m *PostgresqlConfig9_6) SetVacuumCostPageDirty(v *wrappers.Int64Value) { + m.VacuumCostPageDirty = v +} + +func (m *PostgresqlConfig9_6) SetVacuumCostLimit(v *wrappers.Int64Value) { + m.VacuumCostLimit = v +} + +func (m *PostgresqlConfig9_6) SetBgwriterDelay(v *wrappers.Int64Value) { + m.BgwriterDelay = v +} + +func (m *PostgresqlConfig9_6) SetBgwriterLruMaxpages(v *wrappers.Int64Value) { + m.BgwriterLruMaxpages = v +} + +func (m *PostgresqlConfig9_6) SetBgwriterLruMultiplier(v *wrappers.DoubleValue) { + m.BgwriterLruMultiplier = v +} + +func (m *PostgresqlConfig9_6) SetBgwriterFlushAfter(v *wrappers.Int64Value) { + m.BgwriterFlushAfter = v +} + +func (m *PostgresqlConfig9_6) SetBackendFlushAfter(v *wrappers.Int64Value) { + m.BackendFlushAfter = v +} + +func (m *PostgresqlConfig9_6) SetOldSnapshotThreshold(v *wrappers.Int64Value) { + m.OldSnapshotThreshold = v +} + +func (m *PostgresqlConfig9_6) SetWalLevel(v PostgresqlConfig9_6_WalLevel) { + m.WalLevel = v +} + +func (m *PostgresqlConfig9_6) SetSynchronousCommit(v PostgresqlConfig9_6_SynchronousCommit) { + m.SynchronousCommit = v +} + +func (m *PostgresqlConfig9_6) SetCheckpointTimeout(v *wrappers.Int64Value) { + m.CheckpointTimeout = v +} + +func (m *PostgresqlConfig9_6) SetCheckpointCompletionTarget(v *wrappers.DoubleValue) { + m.CheckpointCompletionTarget = v +} + +func (m *PostgresqlConfig9_6) SetCheckpointFlushAfter(v *wrappers.Int64Value) { + m.CheckpointFlushAfter = v +} + +func (m *PostgresqlConfig9_6) SetMaxWalSize(v *wrappers.Int64Value) { + m.MaxWalSize = v +} + +func (m *PostgresqlConfig9_6) SetMinWalSize(v *wrappers.Int64Value) { + m.MinWalSize = v +} + +func (m *PostgresqlConfig9_6) SetMaxStandbyStreamingDelay(v *wrappers.Int64Value) { + m.MaxStandbyStreamingDelay = v +} + +func (m *PostgresqlConfig9_6) SetDefaultStatisticsTarget(v *wrappers.Int64Value) { + m.DefaultStatisticsTarget = v +} + +func (m *PostgresqlConfig9_6) SetConstraintExclusion(v PostgresqlConfig9_6_ConstraintExclusion) { + m.ConstraintExclusion = v +} + +func (m *PostgresqlConfig9_6) SetCursorTupleFraction(v *wrappers.DoubleValue) { + m.CursorTupleFraction = v +} + +func (m *PostgresqlConfig9_6) SetFromCollapseLimit(v *wrappers.Int64Value) { + m.FromCollapseLimit = v +} + +func (m *PostgresqlConfig9_6) SetJoinCollapseLimit(v *wrappers.Int64Value) { + m.JoinCollapseLimit = v +} + +func (m *PostgresqlConfig9_6) SetForceParallelMode(v PostgresqlConfig9_6_ForceParallelMode) { + m.ForceParallelMode = v +} + +func (m *PostgresqlConfig9_6) SetClientMinMessages(v PostgresqlConfig9_6_LogLevel) { + m.ClientMinMessages = v +} + +func (m *PostgresqlConfig9_6) SetLogMinMessages(v PostgresqlConfig9_6_LogLevel) { + m.LogMinMessages = v +} + +func (m *PostgresqlConfig9_6) SetLogMinErrorStatement(v PostgresqlConfig9_6_LogLevel) { + m.LogMinErrorStatement = v +} + +func (m *PostgresqlConfig9_6) SetLogMinDurationStatement(v *wrappers.Int64Value) { + m.LogMinDurationStatement = v +} + +func (m *PostgresqlConfig9_6) SetLogCheckpoints(v *wrappers.BoolValue) { + m.LogCheckpoints = v +} + +func (m *PostgresqlConfig9_6) SetLogConnections(v *wrappers.BoolValue) { + m.LogConnections = v +} + +func (m *PostgresqlConfig9_6) SetLogDisconnections(v *wrappers.BoolValue) { + m.LogDisconnections = v +} + +func (m *PostgresqlConfig9_6) SetLogDuration(v *wrappers.BoolValue) { + m.LogDuration = v +} + +func (m *PostgresqlConfig9_6) SetLogErrorVerbosity(v PostgresqlConfig9_6_LogErrorVerbosity) { + m.LogErrorVerbosity = v +} + +func (m *PostgresqlConfig9_6) SetLogLockWaits(v *wrappers.BoolValue) { + m.LogLockWaits = v +} + +func (m *PostgresqlConfig9_6) SetLogStatement(v PostgresqlConfig9_6_LogStatement) { + m.LogStatement = v +} + +func (m *PostgresqlConfig9_6) SetLogTempFiles(v *wrappers.Int64Value) { + m.LogTempFiles = v +} + +func (m *PostgresqlConfig9_6) SetSearchPath(v string) { + m.SearchPath = v +} + +func (m *PostgresqlConfig9_6) SetRowSecurity(v *wrappers.BoolValue) { + m.RowSecurity = v +} + +func (m *PostgresqlConfig9_6) SetDefaultTransactionIsolation(v PostgresqlConfig9_6_TransactionIsolation) { + m.DefaultTransactionIsolation = v +} + +func (m *PostgresqlConfig9_6) SetStatementTimeout(v *wrappers.Int64Value) { + m.StatementTimeout = v +} + +func (m *PostgresqlConfig9_6) SetLockTimeout(v *wrappers.Int64Value) { + m.LockTimeout = v +} + +func (m *PostgresqlConfig9_6) SetIdleInTransactionSessionTimeout(v *wrappers.Int64Value) { + m.IdleInTransactionSessionTimeout = v +} + +func (m *PostgresqlConfig9_6) SetByteaOutput(v PostgresqlConfig9_6_ByteaOutput) { + m.ByteaOutput = v +} + +func (m *PostgresqlConfig9_6) SetXmlbinary(v PostgresqlConfig9_6_XmlBinary) { + m.Xmlbinary = v +} + +func (m *PostgresqlConfig9_6) SetXmloption(v PostgresqlConfig9_6_XmlOption) { + m.Xmloption = v +} + +func (m *PostgresqlConfig9_6) SetGinPendingListLimit(v *wrappers.Int64Value) { + m.GinPendingListLimit = v +} + +func (m *PostgresqlConfig9_6) SetDeadlockTimeout(v *wrappers.Int64Value) { + m.DeadlockTimeout = v +} + +func (m *PostgresqlConfig9_6) SetMaxLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxLocksPerTransaction = v +} + +func (m *PostgresqlConfig9_6) SetMaxPredLocksPerTransaction(v *wrappers.Int64Value) { + m.MaxPredLocksPerTransaction = v +} + +func (m *PostgresqlConfig9_6) SetArrayNulls(v *wrappers.BoolValue) { + m.ArrayNulls = v +} + +func (m *PostgresqlConfig9_6) SetBackslashQuote(v PostgresqlConfig9_6_BackslashQuote) { + m.BackslashQuote = v +} + +func (m *PostgresqlConfig9_6) SetDefaultWithOids(v *wrappers.BoolValue) { + m.DefaultWithOids = v +} + +func (m *PostgresqlConfig9_6) SetEscapeStringWarning(v *wrappers.BoolValue) { + m.EscapeStringWarning = v +} + +func (m *PostgresqlConfig9_6) SetLoCompatPrivileges(v *wrappers.BoolValue) { + m.LoCompatPrivileges = v +} + +func (m *PostgresqlConfig9_6) SetOperatorPrecedenceWarning(v *wrappers.BoolValue) { + m.OperatorPrecedenceWarning = v +} + +func (m *PostgresqlConfig9_6) SetQuoteAllIdentifiers(v *wrappers.BoolValue) { + m.QuoteAllIdentifiers = v +} + +func (m *PostgresqlConfig9_6) SetStandardConformingStrings(v *wrappers.BoolValue) { + m.StandardConformingStrings = v +} + +func (m *PostgresqlConfig9_6) SetSynchronizeSeqscans(v *wrappers.BoolValue) { + m.SynchronizeSeqscans = v +} + +func (m *PostgresqlConfig9_6) SetTransformNullEquals(v *wrappers.BoolValue) { + m.TransformNullEquals = v +} + +func (m *PostgresqlConfig9_6) SetExitOnError(v *wrappers.BoolValue) { + m.ExitOnError = v +} + +func (m *PostgresqlConfig9_6) SetSeqPageCost(v *wrappers.DoubleValue) { + m.SeqPageCost = v +} + +func (m *PostgresqlConfig9_6) SetRandomPageCost(v *wrappers.DoubleValue) { + m.RandomPageCost = v +} + +func (m *PostgresqlConfig9_6) SetSqlInheritance(v *wrappers.BoolValue) { + m.SqlInheritance = v +} + +func (m *PostgresqlConfig9_6) SetAutovacuumMaxWorkers(v *wrappers.Int64Value) { + m.AutovacuumMaxWorkers = v +} + +func (m *PostgresqlConfig9_6) SetAutovacuumVacuumCostDelay(v *wrappers.Int64Value) { + m.AutovacuumVacuumCostDelay = v +} + +func (m *PostgresqlConfig9_6) SetAutovacuumVacuumCostLimit(v *wrappers.Int64Value) { + m.AutovacuumVacuumCostLimit = v +} + +func (m *PostgresqlConfig9_6) SetAutovacuumNaptime(v *wrappers.Int64Value) { + m.AutovacuumNaptime = v +} + +func (m *PostgresqlConfig9_6) SetArchiveTimeout(v *wrappers.Int64Value) { + m.ArchiveTimeout = v +} + +func (m *PostgresqlConfig9_6) SetTrackActivityQuerySize(v *wrappers.Int64Value) { + m.TrackActivityQuerySize = v +} + +func (m *PostgresqlConfig9_6) SetEffectiveIoConcurrency(v *wrappers.Int64Value) { + m.EffectiveIoConcurrency = v +} + +func (m *PostgresqlConfig9_6) SetEffectiveCacheSize(v *wrappers.Int64Value) { + m.EffectiveCacheSize = v +} + +func (m *PostgresqlConfigSet9_6) SetEffectiveConfig(v *PostgresqlConfig9_6) { + m.EffectiveConfig = v +} + +func (m *PostgresqlConfigSet9_6) SetUserConfig(v *PostgresqlConfig9_6) { + m.UserConfig = v +} + +func (m *PostgresqlConfigSet9_6) SetDefaultConfig(v *PostgresqlConfig9_6) { + m.DefaultConfig = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/database.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/database.pb.go index 34ea7a556..d53fe6586 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/database.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/database.pb.go @@ -250,31 +250,31 @@ func init() { } var fileDescriptor_5f036bfe45d2a329 = []byte{ - // 407 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xcf, 0xaa, 0xd3, 0x40, - 0x14, 0x87, 0xc9, 0xbd, 0xe9, 0xbd, 0xb7, 0xe3, 0x9f, 0xc5, 0x28, 0x18, 0x85, 0x96, 0xd2, 0x55, - 0x55, 0x66, 0x62, 0x5a, 0x28, 0x16, 0x75, 0x61, 0xaa, 0x42, 0x17, 0x22, 0x54, 0xdd, 0x54, 0x4a, - 0x98, 0xcc, 0x0c, 0x31, 0x30, 0xc9, 0xc4, 0x64, 0x1a, 0x5b, 0xe9, 0x13, 0xf8, 0x30, 0xbe, 0x46, - 0x7d, 0x04, 0x1f, 0xc1, 0x75, 0x9f, 0x40, 0x32, 0x49, 0x6c, 0x0a, 0xda, 0xcd, 0xdd, 0xcd, 0x99, - 0xdf, 0xf9, 0x0e, 0x9c, 0x8f, 0x03, 0xd0, 0x86, 0xc4, 0x8c, 0xaf, 0x6d, 0x2a, 0xe4, 0x8a, 0xd9, - 0x11, 0xf3, 0xed, 0x44, 0x66, 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0x3b, 0xe7, 0xf6, - 0x27, 0x82, 0xbe, 0xbd, 0x44, 0x8b, 0x27, 0x68, 0xe2, 0xa1, 0xe5, 0xa3, 0xef, 0x3f, 0x1d, 0xf3, - 0xf9, 0x8b, 0xf1, 0xa8, 0x1a, 0x3f, 0xaa, 0xd5, 0xe8, 0xe1, 0x6e, 0xa7, 0x82, 0x6e, 0x35, 0xa0, - 0x06, 0x53, 0x99, 0x1b, 0x1f, 0x99, 0xd3, 0x52, 0xdd, 0x7b, 0xfb, 0x9d, 0x73, 0x67, 0x5b, 0x61, - 0xde, 0xf2, 0x31, 0xfe, 0xf8, 0xe1, 0x0d, 0x7a, 0xba, 0x9d, 0x36, 0x95, 0x0e, 0x1b, 0x4a, 0xcd, - 0xd3, 0xd4, 0x7f, 0x5c, 0xb7, 0xae, 0xe1, 0xda, 0x7d, 0xb7, 0x78, 0x1b, 0x84, 0xea, 0xf3, 0xca, - 0xc7, 0x54, 0x46, 0x76, 0x39, 0x02, 0x95, 0x27, 0x17, 0x48, 0x14, 0xf0, 0x58, 0x5f, 0x9b, 0x7d, - 0xfa, 0xb4, 0x9f, 0x1d, 0x2a, 0xff, 0x42, 0x03, 0xa3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x01, - 0x69, 0x06, 0xe9, 0x0e, 0x03, 0x00, 0x00, + // 414 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x4f, 0x8e, 0xd3, 0x30, + 0x14, 0x87, 0x95, 0x99, 0x74, 0x66, 0x6a, 0xfe, 0x2c, 0x0c, 0x12, 0x01, 0xa9, 0xa3, 0x51, 0x56, + 0x05, 0x64, 0x87, 0xb4, 0x52, 0x45, 0x05, 0x2c, 0x48, 0x01, 0xa9, 0x0b, 0x36, 0x05, 0x36, 0x45, + 0x55, 0xe4, 0xd8, 0x56, 0x88, 0xe4, 0xc4, 0x21, 0x71, 0x43, 0x8b, 0x7a, 0x02, 0x0e, 0xc3, 0x35, + 0xca, 0x11, 0x38, 0x02, 0xeb, 0x9e, 0x00, 0xc5, 0x49, 0x68, 0x2a, 0xa0, 0x9b, 0xd9, 0xf9, 0xf9, + 0xf7, 0xbe, 0x27, 0xbd, 0x4f, 0x0f, 0xa0, 0x35, 0x49, 0x18, 0x5f, 0x39, 0x54, 0xc8, 0x25, 0x73, + 0x62, 0x16, 0x38, 0xa9, 0xcc, 0x55, 0x98, 0xf1, 0xfc, 0xb3, 0x70, 0x0a, 0xd7, 0x61, 0x44, 0x91, + 0x80, 0xe4, 0x1c, 0xa7, 0x99, 0x54, 0x12, 0x5e, 0x56, 0xed, 0x58, 0xb7, 0xe3, 0x98, 0x05, 0x78, + 0xdf, 0x8e, 0x0b, 0xf7, 0x41, 0xef, 0x60, 0x5c, 0x41, 0x44, 0xc4, 0x88, 0x8a, 0x64, 0x52, 0xe1, + 0xf6, 0x4f, 0x03, 0x5c, 0xbc, 0xaa, 0x27, 0x42, 0x08, 0xcc, 0x84, 0xc4, 0xdc, 0x32, 0xae, 0x8c, + 0x7e, 0x77, 0xa6, 0xdf, 0xb0, 0x07, 0x00, 0x15, 0xcb, 0x5c, 0xf1, 0xcc, 0x8f, 0x98, 0x75, 0xa2, + 0x93, 0x6e, 0xfd, 0x33, 0x65, 0xf0, 0x2e, 0xe8, 0xc8, 0x2f, 0x09, 0xcf, 0xac, 0x53, 0x9d, 0x54, + 0x45, 0x09, 0x09, 0xea, 0x53, 0x29, 0x04, 0x51, 0xdc, 0x32, 0x2b, 0x48, 0xd0, 0x49, 0xf5, 0x01, + 0xef, 0x83, 0x8b, 0x32, 0x56, 0xeb, 0x94, 0x5b, 0x1d, 0x1d, 0x9e, 0x0b, 0x3a, 0x29, 0x4b, 0x38, + 0x05, 0x80, 0xaf, 0x14, 0x4f, 0xf2, 0x48, 0x26, 0xb9, 0x75, 0x76, 0x75, 0xda, 0xbf, 0x31, 0x78, + 0x88, 0x8f, 0xef, 0x88, 0x5f, 0x37, 0xc4, 0xac, 0x05, 0xdb, 0x63, 0xd0, 0xfd, 0x13, 0xfc, 0x73, + 0x35, 0x0b, 0x9c, 0x17, 0x3c, 0x2b, 0xe3, 0x7a, 0xaf, 0xa6, 0xb4, 0xbf, 0x9f, 0x80, 0x9b, 0x8d, + 0x95, 0x77, 0x29, 0xa7, 0x70, 0xd0, 0xc6, 0xbd, 0xcb, 0x5f, 0x5b, 0xd7, 0xd8, 0x6d, 0xdd, 0xdb, + 0x1f, 0x09, 0xfa, 0xfa, 0x12, 0xcd, 0x9f, 0xa0, 0xb1, 0x8f, 0x16, 0x8f, 0xbe, 0xfd, 0x70, 0xcd, + 0xe7, 0x2f, 0x46, 0xc3, 0x7a, 0xfc, 0xb0, 0x51, 0xa3, 0x87, 0x7b, 0xbd, 0x1a, 0xba, 0xd5, 0x82, + 0x5a, 0x4c, 0x6d, 0x6e, 0x74, 0x60, 0x4e, 0x4b, 0xf5, 0xee, 0xed, 0xb6, 0xee, 0x9d, 0x4d, 0x8d, + 0xf9, 0x8b, 0xc7, 0xf8, 0xc3, 0xfb, 0x37, 0xe8, 0xe9, 0x66, 0xd2, 0x56, 0x3a, 0x68, 0x29, 0x35, + 0x8f, 0x53, 0xff, 0x71, 0xdd, 0xb9, 0x86, 0x6b, 0x2f, 0x07, 0xf6, 0x01, 0x47, 0xd2, 0xe8, 0x6f, + 0x76, 0xfe, 0x36, 0x8c, 0xd4, 0xa7, 0x65, 0x80, 0xa9, 0x8c, 0x9d, 0xaa, 0x1d, 0x55, 0x67, 0x19, + 0x4a, 0x14, 0xf2, 0x44, 0x5f, 0xa4, 0x73, 0xfc, 0xfc, 0x9f, 0xed, 0xab, 0xe0, 0x4c, 0x03, 0xc3, + 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x8e, 0xb7, 0x73, 0x67, 0x32, 0x03, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/database.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/database.pbext.go new file mode 100644 index 000000000..6fdb211aa --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/database.pbext.go @@ -0,0 +1,55 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +func (m *Database) SetName(v string) { + m.Name = v +} + +func (m *Database) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *Database) SetOwner(v string) { + m.Owner = v +} + +func (m *Database) SetLcCollate(v string) { + m.LcCollate = v +} + +func (m *Database) SetLcCtype(v string) { + m.LcCtype = v +} + +func (m *Database) SetExtensions(v []*Extension) { + m.Extensions = v +} + +func (m *Extension) SetName(v string) { + m.Name = v +} + +func (m *Extension) SetVersion(v string) { + m.Version = v +} + +func (m *DatabaseSpec) SetName(v string) { + m.Name = v +} + +func (m *DatabaseSpec) SetOwner(v string) { + m.Owner = v +} + +func (m *DatabaseSpec) SetLcCollate(v string) { + m.LcCollate = v +} + +func (m *DatabaseSpec) SetLcCtype(v string) { + m.LcCtype = v +} + +func (m *DatabaseSpec) SetExtensions(v []*Extension) { + m.Extensions = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/database_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/database_service.pb.go index 23517a668..d70c06d29 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/database_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/database_service.pb.go @@ -528,68 +528,68 @@ func init() { } var fileDescriptor_7019892c5f2c1745 = []byte{ - // 817 bytes of a gzipped FileDescriptorProto + // 824 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcd, 0x4f, 0x1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0xef, 0xfe, 0xb7, 0x49, 0x83, 0x09, 0xb9, 0x14, 0x95, 0x9f, 0x41, 0xd4, 0x47, + 0x16, 0xce, 0x13, 0x7b, 0x4f, 0xd0, 0x08, 0xe5, 0xc0, 0xa7, 0x63, 0x3d, 0x32, 0x3b, 0xa7, 0x67, + 0x32, 0x19, 0x63, 0x90, 0x05, 0xd7, 0xed, 0x3d, 0x0c, 0x53, 0x00, 0xf0, 0x44, 0xea, 0x6d, 0x61, + 0x37, 0x11, 0xe2, 0x55, 0xa3, 0x87, 0x27, 0xfa, 0x37, 0x3c, 0xd3, 0xe0, 0x55, 0x6e, 0xb0, 0x98, + 0xfc, 0x58, 0x02, 0xf1, 0x33, 0xc4, 0x88, 0xef, 0xb9, 0x04, 0xc3, 0x25, 0x10, 0xad, 0x4b, 0x20, + 0x09, 0x69, 0x3c, 0x94, 0x8a, 0x65, 0x53, 0xea, 0xc5, 0x73, 0xa4, 0x36, 0x1a, 0xdd, 0x84, 0xc2, + 0x09, 0x30, 0xe2, 0xe2, 0x1d, 0x9a, 0x6f, 0x21, 0xc4, 0x3b, 0x68, 0x0c, 0xb3, 0xe3, 0xeb, 0x0d, + 0x26, 0x2f, 0x25, 0x10, 0x9f, 0x2f, 0x63, 0x44, 0xf1, 0x95, 0xae, 0xeb, 0x56, 0xcb, 0x75, 0x11, + 0x1f, 0x17, 0xf9, 0x9f, 0xc5, 0xb2, 0xbf, 0xf5, 0x4a, 0x7d, 0xdd, 0xc7, 0xc5, 0x5c, 0x98, 0x55, + 0x6f, 0x5e, 0x21, 0x3b, 0x93, 0xef, 0x80, 0xef, 0x83, 0xf4, 0x56, 0x31, 0x45, 0x2c, 0x03, 0x8e, + 0xb6, 0xf3, 0x6b, 0x65, 0xf4, 0x53, 0xc7, 0x01, 0x3a, 0x33, 0x20, 0x4f, 0x07, 0x40, 0xfc, 0xa6, + 0x6f, 0x5e, 0x55, 0x7d, 0x3f, 0x86, 0x15, 0xce, 0x80, 0x58, 0x85, 0x53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x4e, 0xd3, 0xf2, 0xb9, 0x16, 0x35, 0x58, 0x3f, 0xe1, 0x52, 0x66, 0xe4, 0x4b, 0x4a, 0xf9, + 0x4b, 0x4a, 0xc3, 0xb7, 0x12, 0x88, 0x88, 0xb5, 0xec, 0xae, 0xa6, 0xa3, 0xa3, 0xf5, 0xa2, 0xe6, + 0xbe, 0x50, 0x73, 0xce, 0xfa, 0x07, 0xd5, 0xfc, 0x97, 0xed, 0xd3, 0x78, 0x31, 0x75, 0xef, 0x25, + 0x10, 0x11, 0xab, 0xd8, 0x5d, 0x5d, 0x47, 0xf7, 0xe8, 0x45, 0xdd, 0x03, 0xe9, 0xe8, 0x34, 0xad, + 0x9d, 0xbb, 0xf3, 0xf1, 0xb3, 0x4e, 0xbb, 0xe8, 0xf8, 0x74, 0x57, 0xac, 0x52, 0xba, 0x4f, 0x5a, + 0x73, 0x04, 0xc8, 0x01, 0x9e, 0xc8, 0xb7, 0xdb, 0x25, 0x6e, 0xac, 0x5a, 0x36, 0xbd, 0x57, 0x29, + 0xa8, 0x45, 0xcf, 0xd1, 0x44, 0xba, 0x22, 0x3e, 0xbd, 0x2c, 0x4f, 0xb1, 0xb0, 0xcb, 0x19, 0x6a, + 0x17, 0x7f, 0x93, 0xcd, 0x34, 0x9f, 0x0a, 0x11, 0x0e, 0x98, 0xfc, 0x1c, 0x00, 0x00, 0xff, 0xff, + 0x8e, 0x4f, 0xe5, 0x30, 0xc7, 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // DatabaseServiceClient is the client API for DatabaseService service. // @@ -610,10 +610,10 @@ type DatabaseServiceClient interface { } type databaseServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewDatabaseServiceClient(cc *grpc.ClientConn) DatabaseServiceClient { +func NewDatabaseServiceClient(cc grpc.ClientConnInterface) DatabaseServiceClient { return &databaseServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/database_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/database_service.pbext.go new file mode 100644 index 000000000..d19b8a0ac --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/database_service.pbext.go @@ -0,0 +1,91 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +import ( + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetDatabaseRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetDatabaseRequest) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *ListDatabasesRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListDatabasesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListDatabasesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListDatabasesResponse) SetDatabases(v []*Database) { + m.Databases = v +} + +func (m *ListDatabasesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateDatabaseRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateDatabaseRequest) SetDatabaseSpec(v *DatabaseSpec) { + m.DatabaseSpec = v +} + +func (m *CreateDatabaseMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateDatabaseMetadata) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *UpdateDatabaseRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateDatabaseRequest) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *UpdateDatabaseRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateDatabaseRequest) SetExtensions(v []*Extension) { + m.Extensions = v +} + +func (m *UpdateDatabaseMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateDatabaseMetadata) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *DeleteDatabaseRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteDatabaseRequest) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *DeleteDatabaseMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteDatabaseMetadata) SetDatabaseName(v string) { + m.DatabaseName = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/resource_preset.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/resource_preset.pb.go index 3da3a0ece..c652710a0 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/resource_preset.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/resource_preset.pb.go @@ -97,19 +97,20 @@ func init() { } var fileDescriptor_b92450db83d64039 = []byte{ - // 215 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0xcf, 0xb1, 0x4b, 0x03, 0x31, - 0x14, 0xc7, 0x71, 0xee, 0x4e, 0xab, 0xcd, 0xd0, 0x21, 0x88, 0xc4, 0x45, 0x0e, 0xa7, 0x5b, 0x9a, - 0x50, 0x74, 0x73, 0x73, 0x73, 0x10, 0x25, 0xa3, 0x4b, 0x31, 0x79, 0x8f, 0x18, 0x68, 0xee, 0x9d, - 0x49, 0xae, 0x58, 0xff, 0x7a, 0x31, 0x29, 0x74, 0x73, 0xfc, 0x3e, 0xf8, 0xc0, 0xfb, 0xb1, 0x87, - 0xc3, 0xc7, 0x08, 0xf8, 0xad, 0xec, 0x8e, 0x66, 0x50, 0x01, 0x8c, 0x9a, 0x28, 0x65, 0x17, 0x31, - 0x7d, 0xed, 0xd4, 0x7e, 0xa3, 0x22, 0x26, 0x9a, 0xa3, 0xc5, 0xed, 0x14, 0x31, 0x61, 0x96, 0x53, - 0xa4, 0x4c, 0xfc, 0xb6, 0x2a, 0x59, 0x94, 0x0c, 0x60, 0xe4, 0x49, 0xc9, 0xfd, 0xe6, 0xce, 0xb3, - 0x95, 0x3e, 0xc2, 0xb7, 0xe2, 0xf8, 0x8a, 0xb5, 0x1e, 0x44, 0xd3, 0x37, 0xc3, 0x52, 0xb7, 0x1e, - 0xf8, 0x0d, 0xbb, 0xfc, 0xa1, 0x11, 0xb7, 0x1e, 0x92, 0x68, 0xfb, 0x6e, 0x58, 0xea, 0x8b, 0xbf, - 0x7e, 0x86, 0xc4, 0xaf, 0xd8, 0xb9, 0xa5, 0x88, 0x49, 0x74, 0x7d, 0x33, 0x74, 0xba, 0x06, 0xbf, - 0x66, 0x8b, 0x80, 0x81, 0xe2, 0x41, 0x9c, 0x95, 0xf3, 0xb1, 0x9e, 0x5e, 0xdf, 0x5f, 0x9c, 0xcf, - 0x9f, 0xb3, 0x91, 0x96, 0x82, 0xaa, 0x7f, 0xad, 0xeb, 0x1a, 0x47, 0x6b, 0x87, 0x63, 0xf9, 0x58, - 0xfd, 0x3f, 0xf3, 0xf1, 0x54, 0x66, 0x51, 0xc0, 0xfd, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6f, - 0x56, 0x82, 0xa9, 0x1a, 0x01, 0x00, 0x00, + // 225 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xb1, 0x4b, 0x03, 0x31, + 0x14, 0xc6, 0xb9, 0x3b, 0xad, 0x36, 0x43, 0x87, 0x20, 0x72, 0x2e, 0x72, 0x74, 0xba, 0xa5, 0x09, + 0x45, 0x37, 0x37, 0x37, 0x07, 0x41, 0x6e, 0x74, 0x29, 0xbd, 0x7b, 0x8f, 0x18, 0x68, 0xee, 0xc5, + 0xbc, 0x5c, 0xb1, 0xfe, 0xf5, 0x62, 0x52, 0x28, 0x22, 0x74, 0xfc, 0x3d, 0xde, 0x0f, 0xbe, 0xef, + 0x13, 0x8f, 0x87, 0xed, 0x08, 0xf8, 0xa5, 0x87, 0x1d, 0x4d, 0xa0, 0x1d, 0xf4, 0xda, 0x13, 0x47, + 0x13, 0x90, 0x3f, 0x77, 0x7a, 0xbf, 0xd6, 0x01, 0x99, 0xa6, 0x30, 0xe0, 0xc6, 0x07, 0x64, 0x8c, + 0xca, 0x07, 0x8a, 0x24, 0xef, 0xb3, 0xa5, 0x92, 0xa5, 0x1c, 0xf4, 0xea, 0x64, 0xa9, 0xfd, 0x7a, + 0x69, 0xc5, 0xa2, 0x3b, 0x8a, 0x6f, 0xc9, 0x93, 0x0b, 0x51, 0x5a, 0xa8, 0x8b, 0xa6, 0x68, 0xe7, + 0x5d, 0x69, 0x41, 0xde, 0x89, 0xeb, 0x6f, 0x1a, 0x71, 0x63, 0x81, 0xeb, 0xb2, 0xa9, 0xda, 0x79, + 0x77, 0xf5, 0xcb, 0x2f, 0xc0, 0xf2, 0x46, 0x5c, 0x0e, 0x14, 0x90, 0xeb, 0xaa, 0x29, 0xda, 0xaa, + 0xcb, 0x20, 0x6f, 0xc5, 0xcc, 0xa1, 0xa3, 0x70, 0xa8, 0x2f, 0xd2, 0xf9, 0x48, 0xcf, 0x2c, 0x96, + 0x7f, 0xc2, 0x6c, 0xbd, 0xfd, 0x1f, 0xe8, 0xfd, 0xd5, 0xd8, 0xf8, 0x31, 0xf5, 0x6a, 0x20, 0xa7, + 0xf3, 0xfb, 0x2a, 0x37, 0x36, 0xb4, 0x32, 0x38, 0xa6, 0x56, 0xfa, 0xfc, 0x14, 0x4f, 0x27, 0xea, + 0x67, 0x49, 0x78, 0xf8, 0x09, 0x00, 0x00, 0xff, 0xff, 0xff, 0x3b, 0x03, 0x58, 0x3e, 0x01, 0x00, + 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/resource_preset.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/resource_preset.pbext.go new file mode 100644 index 000000000..7d342d5bc --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/resource_preset.pbext.go @@ -0,0 +1,19 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +func (m *ResourcePreset) SetId(v string) { + m.Id = v +} + +func (m *ResourcePreset) SetZoneIds(v []string) { + m.ZoneIds = v +} + +func (m *ResourcePreset) SetCores(v int64) { + m.Cores = v +} + +func (m *ResourcePreset) SetMemory(v int64) { + m.Memory = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/resource_preset_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/resource_preset_service.pb.go index c803caf12..7f1a95614 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/resource_preset_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/resource_preset_service.pb.go @@ -182,45 +182,46 @@ func init() { } var fileDescriptor_e093a4066b8303d2 = []byte{ - // 459 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0xcb, 0x6e, 0x13, 0x31, - 0x14, 0x95, 0x33, 0xa5, 0x22, 0x46, 0xa8, 0x95, 0x25, 0xa4, 0xd1, 0xf0, 0x50, 0x34, 0x0b, 0x98, - 0x4d, 0xec, 0x4c, 0x60, 0x81, 0x48, 0xbb, 0x09, 0x8b, 0x0a, 0x89, 0x47, 0x35, 0x65, 0x03, 0x9b, - 0xc8, 0x89, 0xaf, 0x8c, 0x45, 0x62, 0x4f, 0xc7, 0x4e, 0x54, 0x8a, 0x90, 0x10, 0x4b, 0xb6, 0x7c, -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3, 0x91, 0xa6, 0x2b, 0x41, - 0xfb, 0xc3, 0x60, 0xe7, 0x5f, 0xd3, 0xe0, 0xe4, 0x35, 0x5e, 0xf7, 0x84, 0xbb, 0xbf, 0x03, 0x00, - 0x00, 0xff, 0xff, 0xb8, 0x37, 0xeb, 0x6f, 0x1c, 0x04, 0x00, 0x00, + // 465 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0x4d, 0x6f, 0x13, 0x31, + 0x10, 0x95, 0xb3, 0xa5, 0x22, 0x46, 0xa8, 0x95, 0x25, 0xa4, 0xd5, 0xf2, 0xa1, 0x68, 0x0f, 0xb0, + 0x97, 0xd8, 0xd9, 0xc0, 0x01, 0x91, 0xf6, 0x12, 0x0e, 0x15, 0x12, 0xa0, 0x6a, 0xcb, 0x05, 0x2e, + 0x91, 0x13, 0x8f, 0x8c, 0x45, 0x62, 0x6f, 0xd7, 0x4e, 0x54, 0x8a, 0x90, 0x10, 0x47, 0xae, 0xfc, + 0x0c, 0x0e, 0x5c, 0xf8, 0x0f, 0xe5, 0xce, 0x5f, 0xe0, 0xc0, 0x6f, 0xe0, 0x84, 0xd6, 0x9b, 0xaa, + 0xec, 0xf6, 0x8b, 0x70, 0xb4, 0xde, 0xbc, 0x79, 0xef, 0x79, 0x66, 0xf0, 0xd6, 0x5b, 0xae, 0x05, + 0x1c, 0xb0, 0xc9, 0xd4, 0xcc, 0x05, 0x9b, 0x89, 0x31, 0xcb, 0x8d, 0x75, 0xb2, 0x00, 0xbb, 0x3f, + 0x65, 0x8b, 0x94, 0x15, 0x60, 0xcd, 0xbc, 0x98, 0xc0, 0x28, 0x2f, 0xc0, 0x82, 0x1b, 0x59, 0x28, + 0x16, 0x6a, 0x02, 0x34, 0x2f, 0x8c, 0x33, 0xe4, 0x4e, 0xc5, 0xa6, 0x9e, 0x4d, 0x67, 0x62, 0x4c, + 0x4f, 0xd8, 0x74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0x7b, 0xec, 0xb6, 0xff, 0x21, 0xc0, 0x37, + 0xea, 0x6d, 0xf7, 0xaa, 0x0d, 0x21, 0xdf, 0x10, 0x0e, 0x76, 0xc0, 0x91, 0x87, 0x97, 0xb9, 0x3a, + 0x6f, 0x5c, 0xd1, 0x8a, 0x79, 0xe2, 0xc7, 0x1f, 0x7f, 0xfc, 0xfc, 0xdc, 0xda, 0x26, 0x03, 0x36, + 0xe3, 0x9a, 0x4b, 0x10, 0xdd, 0xb3, 0x17, 0x66, 0x19, 0x97, 0xbd, 0x3b, 0xbd, 0x0c, 0xef, 0xc9, + 0x57, 0x84, 0xd7, 0xca, 0xef, 0x27, 0x8f, 0x2e, 0x53, 0x3f, 0x7f, 0x2d, 0xa2, 0xc1, 0x7f, 0x71, + 0xab, 0x01, 0xc7, 0xd4, 0xc7, 0x48, 0xc8, 0xdd, 0x7f, 0x8b, 0x31, 0xb4, 0x38, 0xae, 0xa9, 0xf1, + 0x5c, 0x9d, 0x56, 0x7c, 0xf5, 0x4c, 0x2a, 0xf7, 0x7a, 0x3e, 0xa6, 0x13, 0x33, 0x63, 0x55, 0x79, + 0xb7, 0x3a, 0x2c, 0x69, 0xba, 0x12, 0xb4, 0x3f, 0x1e, 0x76, 0xf1, 0xc5, 0x0d, 0x4e, 0x5e, 0xe3, + 0x75, 0x4f, 0xb8, 0xff, 0x27, 0x00, 0x00, 0xff, 0xff, 0x57, 0x95, 0x71, 0x1c, 0x40, 0x04, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // ResourcePresetServiceClient is the client API for ResourcePresetService service. // @@ -235,10 +236,10 @@ type ResourcePresetServiceClient interface { } type resourcePresetServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewResourcePresetServiceClient(cc *grpc.ClientConn) ResourcePresetServiceClient { +func NewResourcePresetServiceClient(cc grpc.ClientConnInterface) ResourcePresetServiceClient { return &resourcePresetServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/resource_preset_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/resource_preset_service.pbext.go new file mode 100644 index 000000000..73affd797 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/resource_preset_service.pbext.go @@ -0,0 +1,23 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +func (m *GetResourcePresetRequest) SetResourcePresetId(v string) { + m.ResourcePresetId = v +} + +func (m *ListResourcePresetsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListResourcePresetsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListResourcePresetsResponse) SetResourcePresets(v []*ResourcePreset) { + m.ResourcePresets = v +} + +func (m *ListResourcePresetsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/user.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/user.pb.go index 2b40ca475..55124e4bd 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/user.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/user.pb.go @@ -455,63 +455,63 @@ func init() { } var fileDescriptor_ddb893fd4eb810a7 = []byte{ - // 916 bytes of a gzipped FileDescriptorProto + // 924 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0x5f, 0x6f, 0xdb, 0x54, - 0x14, 0xc7, 0x4d, 0x52, 0x9a, 0x93, 0x64,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, 0x0d, + 0xd3, 0x44, 0xa1, 0x6b, 0x9e, 0x28, 0xa9, 0x04, 0x86, 0xd8, 0x65, 0x19, 0x54, 0x87, 0x4f, 0xd6, + 0x60, 0x67, 0xc8, 0x0d, 0xb4, 0x0f, 0xf7, 0xdf, 0x86, 0xec, 0x8b, 0x82, 0x21, 0xb4, 0x65, 0x31, + 0x21, 0xb1, 0x19, 0xf4, 0x00, 0x6a, 0xab, 0xa1, 0xba, 0xa8, 0x49, 0x82, 0x2c, 0x9d, 0x8e, 0xc1, + 0x6c, 0xb6, 0x4d, 0xa1, 0xb6, 0xb0, 0x98, 0xd6, 0xc8, 0x5d, 0x5e, 0xce, 0xd3, 0x9e, 0xe3, 0x46, + 0x2f, 0xe2, 0x01, 0x37, 0x24, 0x7e, 0x33, 0x85, 0x37, 0xd2, 0xe7, 0x81, 0x43, 0x1a, 0x0e, 0x0e, + 0x92, 0xb3, 0x68, 0xae, 0x7f, 0xa2, 0x7c, 0x3e, 0xfb, 0x1b, 0x6c, 0x25, 0x84, 0x87, 0xff, 0x06, + 0x00, 0x00, 0xff, 0xff, 0x71, 0x07, 0xfd, 0xc4, 0xd6, 0x08, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/user.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/user.pbext.go new file mode 100644 index 000000000..3cad8bea8 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/user.pbext.go @@ -0,0 +1,91 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *User) SetName(v string) { + m.Name = v +} + +func (m *User) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *User) SetPermissions(v []*Permission) { + m.Permissions = v +} + +func (m *User) SetConnLimit(v int64) { + m.ConnLimit = v +} + +func (m *User) SetSettings(v *UserSettings) { + m.Settings = v +} + +func (m *User) SetLogin(v *wrappers.BoolValue) { + m.Login = v +} + +func (m *User) SetGrants(v []string) { + m.Grants = v +} + +func (m *Permission) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *UserSpec) SetName(v string) { + m.Name = v +} + +func (m *UserSpec) SetPassword(v string) { + m.Password = v +} + +func (m *UserSpec) SetPermissions(v []*Permission) { + m.Permissions = v +} + +func (m *UserSpec) SetConnLimit(v *wrappers.Int64Value) { + m.ConnLimit = v +} + +func (m *UserSpec) SetSettings(v *UserSettings) { + m.Settings = v +} + +func (m *UserSpec) SetLogin(v *wrappers.BoolValue) { + m.Login = v +} + +func (m *UserSpec) SetGrants(v []string) { + m.Grants = v +} + +func (m *UserSettings) SetDefaultTransactionIsolation(v UserSettings_TransactionIsolation) { + m.DefaultTransactionIsolation = v +} + +func (m *UserSettings) SetLockTimeout(v *wrappers.Int64Value) { + m.LockTimeout = v +} + +func (m *UserSettings) SetLogMinDurationStatement(v *wrappers.Int64Value) { + m.LogMinDurationStatement = v +} + +func (m *UserSettings) SetSynchronousCommit(v UserSettings_SynchronousCommit) { + m.SynchronousCommit = v +} + +func (m *UserSettings) SetTempFileLimit(v *wrappers.Int64Value) { + m.TempFileLimit = v +} + +func (m *UserSettings) SetLogStatement(v UserSettings_LogStatement) { + m.LogStatement = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/user_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/user_service.pb.go index 2ddd6ae3a..5a5b0bba1 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/user_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/user_service.pb.go @@ -797,85 +797,86 @@ func init() { } var fileDescriptor_db74cc1516dbc2cf = []byte{ - // 1097 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x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, 0x00, + // 1105 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0x4f, 0x6f, 0x1b, 0xc5, + 0x1b, 0xd6, 0x36, 0x8e, 0x7f, 0xf6, 0xeb, 0xa6, 0x6d, 0x46, 0xfa, 0x49, 0xc6, 0x69, 0xa2, 0xb0, + 0x94, 0x36, 0xb8, 0x78, 0xd7, 0xeb, 0xf2, 0xa7, 0x38, 0x4d, 0x05, 0x0e, 0x34, 0x20, 0x92, 0x36, + 0xda, 0xb4, 0x48, 0xa4, 0x42, 0xd6, 0xd8, 0x3b, 0x5d, 0x56, 0x59, 0xef, 0x6c, 0x77, 0xd6, 0x49, + 0x93, 0x52, 0x09, 0xf5, 0xc0, 0xa1, 0x12, 0x17, 0xf8, 0x08, 0x1c, 0x38, 0x71, 0xc9, 0x95, 0x0f, + 0x90, 0x4a, 0xdc, 0x82, 0x10, 0x5f, 0x80, 0x03, 0x67, 0x38, 0x20, 0xf5, 0x84, 0x66, 0x66, 0x93, + 0x5d, 0xc7, 0x4e, 0xec, 0xc4, 0x11, 0xbd, 0xed, 0x78, 0xde, 0x67, 0xde, 0xe7, 0x99, 0xf7, 0xdf, + 0x18, 0x8c, 0x4d, 0xec, 0x59, 0xe4, 0x91, 0xde, 0x74, 0x69, 0xdb, 0xd2, 0x5b, 0x56, 0x43, 0xf7, + 0x29, 0x0b, 0xed, 0x80, 0xb0, 0x87, 0xae, 0xbe, 0x6e, 0xe8, 0x6d, 0x46, 0x82, 0x3a, 0x23, 0xc1, + 0xba, 0xd3, 0x24, 0x9a, 0x1f, 0xd0, 0x90, 0xa2, 0x29, 0x09, 0xd1, 0x04, 0x44, 0x6b, 0x59, 0x0d, + 0x2d, 0x86, 0x68, 0xeb, 0x46, 0xe1, 0xa2, 0x4d, 0xa9, 0xed, 0x12, 0x1d, 0xfb, 0x8e, 0x8e, 0x3d, + 0x8f, 0x86, 0x38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, 0x18, 0xe9, 0x1b, 0x73, 0x46, 0xb9, 0x5c, + 0x36, 0x33, 0x7c, 0x73, 0xc5, 0xd9, 0x22, 0x68, 0x06, 0x40, 0x18, 0x86, 0x74, 0x8d, 0x78, 0xf9, + 0x11, 0x71, 0x6a, 0xf6, 0xd9, 0x73, 0x63, 0x54, 0x58, 0x9a, 0xe2, 0x94, 0xbb, 0x7c, 0x4f, 0xdd, + 0x80, 0xf1, 0x04, 0x27, 0xe6, 0x53, 0x8f, 0x11, 0x54, 0x85, 0x51, 0xce, 0x9a, 0xe5, 0x95, 0xe9, + 0x91, 0x99, 0x5c, 0xe5, 0x92, 0x76, 0x74, 0x22, 0x69, 0xe2, 0x3a, 0x25, 0x04, 0x5d, 0x86, 0xf3, + 0x1e, 0x79, 0x14, 0xd6, 0x13, 0xfe, 0xc5, 0x3d, 0x99, 0x63, 0xfc, 0xe7, 0xe5, 0x7d, 0xc7, 0xdf, + 0x2a, 0x30, 0x3e, 0x1f, 0x10, 0x1c, 0x92, 0x13, 0x07, 0xe3, 0xd3, 0x28, 0x18, 0xcc, 0x27, 0x4d, + 0xe1, 0x24, 0x57, 0x99, 0x19, 0x84, 0xea, 0x8a, 0x4f, 0x9a, 0xb5, 0x14, 0x3f, 0x55, 0x46, 0x87, + 0xaf, 0xd5, 0x65, 0x40, 0x31, 0x9d, 0x25, 0x12, 0x62, 0x0b, 0x87, 0x18, 0x4d, 0x76, 0xf3, 0x49, + 0x32, 0x98, 0xe8, 0x4a, 0x87, 0x44, 0xbc, 0xbf, 0x49, 0xc1, 0xf8, 0x3d, 0xdf, 0x1a, 0x46, 0xe1, + 0x10, 0xe9, 0x86, 0x66, 0x21, 0xd7, 0x16, 0xde, 0x45, 0xc9, 0x8a, 0x24, 0xc8, 0x55, 0x0a, 0x9a, + 0xac, 0x59, 0x6d, 0xaf, 0x66, 0xb5, 0x5b, 0xbc, 0xaa, 0x97, 0x30, 0x5b, 0x33, 0x41, 0x9a, 0xf3, + 0x6f, 0x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80, 0x6b, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x8f, 0xe3, 0x35, 0xd2, 0x69, 0x0f, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // UserServiceClient is the client API for UserService service. // @@ -900,10 +901,10 @@ type UserServiceClient interface { } type userServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient { +func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient { return &userServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/user_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/user_service.pbext.go new file mode 100644 index 000000000..23dc42ddb --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/user_service.pbext.go @@ -0,0 +1,152 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package postgresql + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetUserRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetUserRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *ListUsersRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListUsersRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListUsersRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListUsersResponse) SetUsers(v []*User) { + m.Users = v +} + +func (m *ListUsersResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateUserRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateUserRequest) SetUserSpec(v *UserSpec) { + m.UserSpec = v +} + +func (m *CreateUserMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *CreateUserMetadata) SetUserName(v string) { + m.UserName = v +} + +func (m *UpdateUserRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateUserRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *UpdateUserRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateUserRequest) SetPassword(v string) { + m.Password = v +} + +func (m *UpdateUserRequest) SetPermissions(v []*Permission) { + m.Permissions = v +} + +func (m *UpdateUserRequest) SetConnLimit(v int64) { + m.ConnLimit = v +} + +func (m *UpdateUserRequest) SetSettings(v *UserSettings) { + m.Settings = v +} + +func (m *UpdateUserRequest) SetLogin(v *wrappers.BoolValue) { + m.Login = v +} + +func (m *UpdateUserRequest) SetGrants(v []string) { + m.Grants = v +} + +func (m *UpdateUserMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateUserMetadata) SetUserName(v string) { + m.UserName = v +} + +func (m *DeleteUserRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteUserRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *DeleteUserMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteUserMetadata) SetUserName(v string) { + m.UserName = v +} + +func (m *GrantUserPermissionRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GrantUserPermissionRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *GrantUserPermissionRequest) SetPermission(v *Permission) { + m.Permission = v +} + +func (m *GrantUserPermissionMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GrantUserPermissionMetadata) SetUserName(v string) { + m.UserName = v +} + +func (m *RevokeUserPermissionRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RevokeUserPermissionRequest) SetUserName(v string) { + m.UserName = v +} + +func (m *RevokeUserPermissionRequest) SetDatabaseName(v string) { + m.DatabaseName = v +} + +func (m *RevokeUserPermissionMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RevokeUserPermissionMetadata) SetUserName(v string) { + m.UserName = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/backup.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/backup.pb.go index 919b63536..1a5ee2c56 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/backup.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/backup.pb.go @@ -119,24 +119,24 @@ func init() { } var fileDescriptor_4a9e7d7d7bb25174 = []byte{ - // 289 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xbb, 0x4e, 0xc3, 0x30, - 0x18, 0x85, 0xd5, 0x14, 0x2a, 0x62, 0x24, 0x2e, 0x9e, 0x42, 0x19, 0xa8, 0x18, 0x50, 0x84, 0xa8, - 0xad, 0xc2, 0x84, 0x98, 0xda, 0x8a, 0x81, 0x85, 0x21, 0x30, 0xb1, 0x44, 0xb6, 0x7f, 0x37, 0xb5, - 0x88, 0xe3, 0xca, 0x97, 0x0a, 0x1e, 0x80, 0xf7, 0x46, 0xb5, 0xd3, 0x11, 0xb1, 0x45, 0xe7, 0x7c, - 0x39, 0x9f, 0xf4, 0x1b, 0xdd, 0x7c, 0xb3, 0x0e, 0xe4, 0x17, 0x15, 0xad, 0x09, 0x40, 0x35, 0x70, - 0x6a, 0x25, 0x28, 0x47, 0xb7, 0x33, 0xca, 0x99, 0xf8, 0x0c, 0x1b, 0xb2, 0xb1, 0xc6, 0x1b, 0x7c, - 0x91, 0x38, 0x12, 0x39, 0xa2, 0x81, 0x93, 0xc8, 0x91, 0xed, 0x6c, 0x7c, 0xd5, 0x18, 0xd3, 0xb4, - 0x92, 0x46, 0x90, 0x87, 0x15, 0xf5, 0x4a, 0x4b, 0xe7, 0x99, 0xee, 0xff, 0xbd, 0xfe, 0xc9, 0xd0, - 0x68, 0x11, 0xc7, 0xf0, 0x09, 0xca, 0x14, 0x14, 0x83, 0xc9, 0xa0, 0xcc, 0xab, 0x4c, 0x01, 0xbe, - 0x44, 0xf9, 0xca, 0xb4, 0x20, 0x6d, 0xad, 0xa0, 0xc8, 0x62, 0x7c, 0x94, 0x82, 0x17, 0xc0, 0x8f, - 0x08, 0x09, 0x2b, 0x99, 0x97, 0x50, 0x33, 0x5f, 0x0c, 0x27, 0x83, 0xf2, 0xf8, 0x7e, 0x4c, 0x92, - 0x8d, 0xec, 0x6d, 0xe4, 0x7d, 0x6f, 0xab, 0xf2, 0x9e, 0x9e, 0x7b, 0x7c, 0x8b, 0xce, 0x9d, 0x09, - 0x56, 0xc8, 0x5a, 0xb4, 0xc1, 0xf9, 0xb4, 0x7f, 0x10, 0xf7, 0x4f, 0x53, 0xb1, 0x4c, 0x79, 0xd2, - 0x38, 0xcf, 0x6c, 0xaf, 0x39, 0xfc, 0x5f, 0xd3, 0xd3, 0x73, 0x8f, 0xef, 0x10, 0xee, 0x35, 0x6e, - 0xcd, 0x2c, 0xd4, 0x1d, 0xd3, 0xd2, 0x15, 0xa3, 0xc9, 0xb0, 0xcc, 0xab, 0xb3, 0xd4, 0xbc, 0xed, - 0x8a, 0xd7, 0x5d, 0xbe, 0x78, 0xfe, 0x58, 0x36, 0xca, 0xaf, 0x03, 0x27, 0xc2, 0x68, 0x9a, 0x0e, - 0x3a, 0x4d, 0x87, 0x6f, 0xcc, 0xb4, 0x91, 0x5d, 0x94, 0xd1, 0x3f, 0x5f, 0xe4, 0x29, 0x7e, 0xf0, - 0x51, 0xc4, 0x1e, 0x7e, 0x03, 0x00, 0x00, 0xff, 0xff, 0xfe, 0x65, 0x37, 0x36, 0xbb, 0x01, 0x00, - 0x00, + // 298 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0x3d, 0x4f, 0xc3, 0x30, + 0x10, 0x86, 0xd5, 0x14, 0x2a, 0x62, 0x24, 0x3e, 0x3c, 0x85, 0x22, 0x44, 0xc5, 0x80, 0x2a, 0x44, + 0x6d, 0x15, 0x26, 0xc4, 0xd4, 0x76, 0x62, 0x61, 0x28, 0x4c, 0x2c, 0x91, 0xed, 0x73, 0x53, 0x8b, + 0x38, 0x8e, 0xfc, 0x51, 0xc1, 0x0f, 0xe0, 0x7f, 0xa3, 0xda, 0xe9, 0xd0, 0x01, 0xb1, 0x45, 0xef, + 0x3d, 0x79, 0x1f, 0xeb, 0x0e, 0xdd, 0x7e, 0xb3, 0x06, 0xe4, 0x17, 0x15, 0xb5, 0x09, 0x40, 0x35, + 0x70, 0x6a, 0x25, 0x28, 0x47, 0x37, 0x53, 0xca, 0x99, 0xf8, 0x0c, 0x2d, 0x69, 0xad, 0xf1, 0x06, + 0x5f, 0x24, 0x8e, 0x44, 0x8e, 0x68, 0xe0, 0x24, 0x72, 0x64, 0x33, 0x1d, 0x5e, 0x57, 0xc6, 0x54, + 0xb5, 0xa4, 0x11, 0xe4, 0x61, 0x45, 0xbd, 0xd2, 0xd2, 0x79, 0xa6, 0xbb, 0x7f, 0x6f, 0x7e, 0x32, + 0x34, 0x98, 0xc7, 0x32, 0x7c, 0x82, 0x32, 0x05, 0x45, 0x6f, 0xd4, 0x1b, 0xe7, 0xcb, 0x4c, 0x01, + 0xbe, 0x44, 0xf9, 0xca, 0xd4, 0x20, 0x6d, 0xa9, 0xa0, 0xc8, 0x62, 0x7c, 0x94, 0x82, 0x17, 0xc0, + 0x4f, 0x08, 0x09, 0x2b, 0x99, 0x97, 0x50, 0x32, 0x5f, 0xf4, 0x47, 0xbd, 0xf1, 0xf1, 0xc3, 0x90, + 0x24, 0x1b, 0xd9, 0xd9, 0xc8, 0xfb, 0xce, 0xb6, 0xcc, 0x3b, 0x7a, 0xe6, 0xf1, 0x1d, 0x3a, 0x77, + 0x26, 0x58, 0x21, 0x4b, 0x51, 0x07, 0xe7, 0x53, 0xff, 0x41, 0xec, 0x3f, 0x4d, 0x83, 0x45, 0xca, + 0x93, 0xc6, 0x79, 0x66, 0x3b, 0xcd, 0xe1, 0xff, 0x9a, 0x8e, 0x9e, 0x79, 0x7c, 0x8f, 0x70, 0xa7, + 0x71, 0x6b, 0x66, 0xa1, 0x6c, 0x98, 0x96, 0xae, 0x18, 0x8c, 0xfa, 0xe3, 0x7c, 0x79, 0x96, 0x26, + 0x6f, 0xdb, 0xc1, 0xeb, 0x36, 0x9f, 0x03, 0xba, 0xda, 0xdb, 0x22, 0x6b, 0xd5, 0xde, 0x26, 0x3f, + 0x16, 0x95, 0xf2, 0xeb, 0xc0, 0x89, 0x30, 0x9a, 0x26, 0x72, 0x92, 0xee, 0x52, 0x99, 0x49, 0x25, + 0x9b, 0xf8, 0x16, 0xfa, 0xe7, 0xc1, 0x9e, 0xe3, 0x07, 0x1f, 0x44, 0xec, 0xf1, 0x37, 0x00, 0x00, + 0xff, 0xff, 0x38, 0xab, 0x9e, 0xb2, 0xda, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/backup.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/backup.pbext.go new file mode 100644 index 000000000..44ef14c04 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/backup.pbext.go @@ -0,0 +1,31 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package redis + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Backup) SetId(v string) { + m.Id = v +} + +func (m *Backup) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Backup) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Backup) SetSourceClusterId(v string) { + m.SourceClusterId = v +} + +func (m *Backup) SetStartedAt(v *timestamp.Timestamp) { + m.StartedAt = v +} + +func (m *Backup) SetSourceShardNames(v []string) { + m.SourceShardNames = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/backup_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/backup_service.pb.go index 89133582e..45e0fc8ab 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/backup_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/backup_service.pb.go @@ -192,45 +192,46 @@ func init() { } var fileDescriptor_bd1400cd9541828d = []byte{ - // 463 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6e, 0x13, 0x31, - 0x10, 0x86, 0xb5, 0x49, 0x28, 0x59, 0x43, 0x05, 0x32, 0x97, 0x34, 0x80, 0x94, 0xac, 0x44, 0x1b, - 0x84, 0xd6, 0x5e, 0x17, 0xf5, 0xd4, 0xf6, 0x12, 0x84, 0xaa, 0x4a, 0x1c, 0xd0, 0x96, 0x13, 0x97, - 0xc8, 0x1b, 0x0f, 0x8b, 0xd5, 0xc4, 0x5e, 0x62, 0x27, 0x2a, 0x41, 0x5c, 0x10, 0x07, 0xd4, 0x23, - 0x3c, 0x01, 0x4f, 0xd3, 0xde, 0x79, 0x05, 0x0e, 0x3c, 0x03, 0x27, 0xb4, 0xf6, 0x06, 0x68, 0x51, - 0x1a, 0x6e, 0x96, 0xe7, 0xff, 0x67, 0x3e, 0xfd, 0x33, 0x88, 0xbc, 0xe5, 0x4a, 0xc0, 0x09, 0x1d, - 0x8e, 0xf4, 0x54, 0xd0, 0xb1, 0xc8, 0xe8, 0x04, 0x84, 0x34, 0x74, 0xc6, 0x68, 0xc6, 0x87, 0xc7, - 0xd3, 0x62, 0x60, 0x60, 0x32, 0x93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0xa6, 0xd0, 0xca, 0x00, 0xde, 0x45, - 0xd7, 0x3d, 0xb7, 0x69, 0x05, 0x9d, 0x7a, 0xef, 0xc6, 0x76, 0x97, 0x2c, 0x0d, 0x9d, 0x54, 0x49, - 0x2c, 0x1c, 0x78, 0x13, 0xdd, 0x52, 0x70, 0x62, 0x07, 0x7f, 0x21, 0x94, 0xb0, 0x61, 0xba, 0x5e, - 0x7e, 0x3f, 0x5f, 0xcc, 0xde, 0xfe, 0x5a, 0x43, 0xeb, 0xde, 0x7b, 0xe4, 0xf7, 0x8b, 0x3f, 0x06, - 0xa8, 0x7e, 0x00, 0x16, 0x3f, 0xba, 0x62, 0xda, 0xe5, 0xe8, 0xdb, 0xab, 0xd1, 0xa2, 0xf8, 0xc3, - 0xb7, 0xef, 0x5f, 0x6a, 0x5b, 0xf8, 0x01, 0x1d, 0x73, 0xc5, 0x73, 0x10, 0xf1, 0xa5, 0xcd, 0x1a, - 0xfa, 0xee, 0xf7, 0xfa, 0xde, 0xe3, 0x4f, 0x01, 0x6a, 0x94, 0xa9, 0xe0, 0xf8, 0x8a, 0xd6, 0xff, - 0xae, 0xb2, 0x4d, 0xfe, 0x57, 0xee, 0x53, 0x8e, 0xba, 0x0e, 0xeb, 0x2e, 0xde, 0x58, 0x8a, 0xd5, - 0x7f, 0xfa, 0xf2, 0x49, 0x2e, 0xed, 0xeb, 0x69, 0x46, 0x86, 0x7a, 0x4c, 0x7d, 0xfb, 0xd8, 0x1f, - 0x68, 0xae, 0xe3, 0x1c, 0x94, 0x3b, 0x49, 0xba, 0xf4, 0x72, 0x77, 0xdd, 0x23, 0x5b, 0x73, 0xb2, - 0xc7, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0xcd, 0x5a, 0x72, 0x2d, 0x6b, 0x03, 0x00, 0x00, + // 468 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xbf, 0x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0x88, 0x2f, 0x6d, 0xd6, 0xd0, 0x77, + 0xbf, 0xd7, 0xf7, 0x1e, 0x7f, 0x0a, 0x50, 0xa3, 0x6c, 0x05, 0xc7, 0x57, 0x58, 0xff, 0xbb, 0xca, + 0x36, 0xf9, 0x5f, 0xba, 0x6f, 0x39, 0xea, 0xba, 0x58, 0xf7, 0xf1, 0xc6, 0xca, 0x58, 0x7d, 0x81, + 0x36, 0x2b, 0x9e, 0xbc, 0x90, 0x15, 0xdf, 0x97, 0x4f, 0x73, 0x69, 0x5f, 0x4f, 0x33, 0x32, 0xd4, + 0x63, 0xea, 0x99, 0xb1, 0xbf, 0xdf, 0x5c, 0xc7, 0x39, 0x28, 0x77, 0xb1, 0x74, 0xe5, 0x61, 0xef, + 0xb9, 0x47, 0xb6, 0xe6, 0x68, 0x4f, 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0x38, 0x4b, 0xd2, 0x02, + 0x8a, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // BackupServiceClient is the client API for BackupService service. // @@ -245,10 +246,10 @@ type BackupServiceClient interface { } type backupServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewBackupServiceClient(cc *grpc.ClientConn) BackupServiceClient { +func NewBackupServiceClient(cc grpc.ClientConnInterface) BackupServiceClient { return &backupServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/backup_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/backup_service.pbext.go new file mode 100644 index 000000000..be6a05ec3 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/backup_service.pbext.go @@ -0,0 +1,27 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package redis + +func (m *GetBackupRequest) SetBackupId(v string) { + m.BackupId = v +} + +func (m *ListBackupsRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListBackupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListBackupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListBackupsResponse) SetBackups(v []*Backup) { + m.Backups = v +} + +func (m *ListBackupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/cluster.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/cluster.pb.go index 0d3aa033e..3d2eafe1e 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/cluster.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/cluster.pb.go @@ -489,6 +489,7 @@ type ClusterConfig struct { // // Types that are valid to be assigned to RedisConfig: // *ClusterConfig_RedisConfig_5_0 + // *ClusterConfig_RedisConfig_6_0 RedisConfig isClusterConfig_RedisConfig `protobuf_oneof:"redis_config"` // Resources allocated to Redis hosts. Resources *Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` @@ -541,8 +542,14 @@ type ClusterConfig_RedisConfig_5_0 struct { RedisConfig_5_0 *config.RedisConfigSet5_0 `protobuf:"bytes,2,opt,name=redis_config_5_0,json=redisConfig50,proto3,oneof"` } +type ClusterConfig_RedisConfig_6_0 struct { + RedisConfig_6_0 *config.RedisConfigSet6_0 `protobuf:"bytes,6,opt,name=redis_config_6_0,json=redisConfig60,proto3,oneof"` +} + func (*ClusterConfig_RedisConfig_5_0) isClusterConfig_RedisConfig() {} +func (*ClusterConfig_RedisConfig_6_0) isClusterConfig_RedisConfig() {} + func (m *ClusterConfig) GetRedisConfig() isClusterConfig_RedisConfig { if m != nil { return m.RedisConfig @@ -557,6 +564,13 @@ func (m *ClusterConfig) GetRedisConfig_5_0() *config.RedisConfigSet5_0 { return nil } +func (m *ClusterConfig) GetRedisConfig_6_0() *config.RedisConfigSet6_0 { + if x, ok := m.GetRedisConfig().(*ClusterConfig_RedisConfig_6_0); ok { + return x.RedisConfig_6_0 + } + return nil +} + func (m *ClusterConfig) GetResources() *Resources { if m != nil { return m.Resources @@ -582,6 +596,7 @@ func (m *ClusterConfig) GetAccess() *Access { func (*ClusterConfig) XXX_OneofWrappers() []interface{} { return []interface{}{ (*ClusterConfig_RedisConfig_5_0)(nil), + (*ClusterConfig_RedisConfig_6_0)(nil), } } @@ -912,78 +927,79 @@ func init() { } var fileDescriptor_c43051bc9a49dd6b = []byte{ - // 1154 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x5d, 0x6f, 0xe2, 0x46, - 0x17, 0x5e, 0x0c, 0x18, 0x7c, 0x48, 0x90, 0x77, 0xde, 0xd5, 0xbb, 0x6e, 0x56, 0xab, 0x52, 0xab, - 0xdb, 0xa5, 0x52, 0xd7, 0x24, 0xac, 0x22, 0xed, 0x87, 0xb4, 0xad, 0x03, 0x4e, 0x62, 0x95, 0x18, - 0x34, 0x36, 0x59, 0xb5, 0x17, 0xb5, 0x0c, 0x9e, 0x10, 0x2b, 0xc6, 0x46, 0xb6, 0x21, 0x25, 0x57, - 0xbd, 0xe9, 0xaf, 0xeb, 0x9f, 0xe8, 0x4f, 0xa9, 0x66, 0xc6, 0x24, 0x64, 0xdb, 0x90, 0x74, 0xd5, - 0x3b, 0x9f, 0x33, 0xcf, 0x73, 0x7c, 0xe6, 0x7c, 0x3c, 0x36, 0xbc, 0x5c, 0x7a, 0x91, 0x4f, 0x7e, - 0x6d, 0x8d, 0xc3, 0x78, 0xee, 0xb7, 0xa6, 0xfe, 0xa8, 0x95, 0x10, 0x3f, 0x48, 0x5b, 0x8b, 0xbd, - 0xd6, 0x38, 0x9c, 0xa7, 0x19, 0x49, 0xb4, 0x59, 0x12, 0x67, 0x31, 0xfa, 0x82, 0x03, 0x35, 0x06, - 0xd4, 0xa6, 0xfe, 0x48, 0x63, 0x40, 0x6d, 0xb1, 0xb7, 0xf3, 0xe5, 0x24, 0x8e, 0x27, 0x21, 0x69, - 0x31, 0xe0, 0x68, 0x7e, 0xd6, 0xca, 0x82, 0x29, 0x49, 0x33, 0x6f, 0x3a, 0xe3, 0xdc, 0x9d, 0x67, - 0x39, 0x20, 0x5b, 0xce, 0x08, 0x3b, 0x8c, 0xcf, 0x7c, 0x6f, 0x99, 0x1f, 0xb6, 0x36, 0x64, 0x10, - 0x47, 0x67, 0xc1, 0x84, 0xdb, 0xfb, 0xee, 0x2e, 0x27, 0xa8, 0x7f, 0x54, 0xa0, 0xd2, 0xe1, 0xb9, - 0xa1, 0x3a, 0x08, 0x81, 0xaf, 0x14, 0x1a, 0x85, 0xa6, 0x84, 0x85, 0xc0, 0x47, 0xcf, 0x40, 0x3a, - 0x8b, 0x43, 0x9f, 0x24, 0x6e, 0xe0, 0x2b, 0x02, 0x73, 0x57, 0xb9, 0xc3, 0xf4, 0xd1, 0x5b, 0x80, - 0x71, 0x42, 0xbc, 0x8c, 0xf8, 0xae, 0x97, 0x29, 0xc5, 0x46, 0xa1, 0x59, 0x6b, 0xef, 0x68, 0x3c, - 0x37, 0x6d, 0x95, 0xbc, 0xe6, 0xac, 0x92, 0xc7, 0x52, 0x8e, 0xd6, 0x33, 0x84, 0xa0, 0x14, 0x79, - 0x53, 0xa2, 0x94, 0x58, 0x48, 0xf6, 0x8c, 0x1a, 0x50, 0xf3, 0x49, 0x3a, 0x4e, 0x82, 0x59, 0x16, - 0xc4, 0x91, 0x52, 0x66, 0x47, 0xeb, 0x2e, 0x74, 0x08, 0x62, 0xe8, 0x8d, 0x48, 0x98, 0x2a, 0x62, - 0xa3, 0xd8, 0xac, 0xb5, 0x35, 0xed, 0xce, 0x22, 0x6a, 0xf9, 0x8d, 0xb4, 0x1e, 0x23, 0x18, 0x51, - 0x96, 0x2c, 0x71, 0xce, 0x46, 0x03, 0xa8, 0x91, 0x68, 0x11, 0x24, 0x71, 0x34, 0x25, 0x51, 0xa6, - 0x54, 0x1a, 0x85, 0x66, 0xfd, 0x41, 0xc1, 0x8c, 0x1b, 0x16, 0x5e, 0x0f, 0x81, 0x0c, 0x80, 0x69, - 0x1c, 0x05, 0x59, 0x9c, 0x04, 0xd1, 0x44, 0xa9, 0xb2, 0xec, 0x5e, 0x6c, 0x08, 0x78, 0x72, 0x0d, - 0xc6, 0x6b, 0x44, 0xf4, 0x03, 0x88, 0xbc, 0x47, 0x8a, 0xc4, 0xaa, 0xd9, 0xbc, 0x3f, 0xa7, 0x0e, - 0xc3, 0xe3, 0x9c, 0x87, 0x9e, 0x03, 0x44, 0x24, 0xbb, 0x8c, 0x93, 0x0b, 0xda, 0x31, 0x60, 0x35, - 0x94, 0x72, 0x8f, 0xe9, 0x23, 0x1d, 0xc4, 0x73, 0xe2, 0x85, 0xd9, 0xb9, 0x52, 0x63, 0x97, 0xfe, - 0xf6, 0x01, 0x97, 0x3e, 0x66, 0x04, 0x9c, 0x13, 0x69, 0x88, 0x34, 0xf3, 0xb2, 0x79, 0xaa, 0x6c, - 0x3d, 0x38, 0x84, 0xcd, 0x08, 0x38, 0x27, 0x22, 0x05, 0x2a, 0xe9, 0xb9, 0x97, 0xf8, 0xc4, 0x57, - 0xb6, 0x1b, 0x85, 0x66, 0x15, 0xaf, 0xcc, 0x9d, 0xb7, 0x50, 0x5b, 0x6b, 0x18, 0x92, 0xa1, 0x78, - 0x41, 0x96, 0xf9, 0x3c, 0xd2, 0x47, 0xf4, 0x04, 0xca, 0x0b, 0x2f, 0x9c, 0x93, 0x7c, 0x18, 0xb9, - 0xf1, 0x4e, 0x78, 0x53, 0x50, 0x4d, 0xa8, 0xad, 0xb5, 0x07, 0x3d, 0x83, 0xa7, 0x86, 0x75, 0x6a, - 0xe2, 0xbe, 0x75, 0x62, 0x58, 0x8e, 0x3b, 0xb4, 0xec, 0x81, 0xd1, 0x31, 0x0f, 0x4d, 0xa3, 0x2b, - 0x3f, 0x42, 0x75, 0x80, 0x01, 0xee, 0x77, 0x87, 0x1d, 0xc7, 0xec, 0x5b, 0x72, 0x01, 0x6d, 0x83, - 0x34, 0xc0, 0x86, 0xed, 0xe8, 0x07, 0x3d, 0x43, 0x16, 0xd4, 0xef, 0x41, 0xe4, 0x97, 0x46, 0x08, - 0xea, 0xc7, 0x86, 0xde, 0x73, 0x8e, 0xdd, 0xa1, 0xf5, 0xa3, 0xd5, 0xff, 0x68, 0xc9, 0x8f, 0x90, - 0x04, 0x65, 0xbd, 0x67, 0x9e, 0x1a, 0x72, 0x01, 0x55, 0xa1, 0xd4, 0x35, 0xf4, 0xae, 0x2c, 0xa0, - 0x2d, 0xa8, 0x76, 0x8d, 0x23, 0xac, 0x77, 0x8d, 0xae, 0x5c, 0x54, 0x97, 0x20, 0xf2, 0x2b, 0xd3, - 0x00, 0xb6, 0xa3, 0x3b, 0x43, 0x7b, 0x2d, 0xc0, 0x16, 0x54, 0x3b, 0xd8, 0xd0, 0x1d, 0xd3, 0x3a, - 0x92, 0x0b, 0xa8, 0x06, 0x15, 0x3c, 0xb4, 0x2c, 0x6a, 0x08, 0x34, 0xb6, 0x81, 0x71, 0x1f, 0xcb, - 0x45, 0x8a, 0x1a, 0x0e, 0xba, 0x1c, 0x55, 0xa2, 0x96, 0xed, 0xf4, 0x07, 0x03, 0x6a, 0x95, 0x29, - 0x87, 0x59, 0x46, 0x57, 0x16, 0xf9, 0x91, 0x8e, 0x19, 0xb0, 0xa2, 0x9e, 0x02, 0xdc, 0x0c, 0xd7, - 0xf5, 0x9e, 0x15, 0xee, 0xde, 0x33, 0xe1, 0xef, 0x7b, 0x86, 0xa0, 0x14, 0x06, 0xd1, 0x05, 0x5b, - 0x69, 0x09, 0xb3, 0x67, 0xf5, 0x4f, 0x01, 0xb6, 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7, 0xb0, 0xcd, 0xfc, 0x6e, 0xa7, 0x37, 0x64, 0x25, 0x2a, 0xaa, 0x7b, 0xff, 0xba, 0x2a, - 0xea, 0x29, 0x48, 0xd7, 0xc3, 0x86, 0xbe, 0x03, 0xb4, 0x1a, 0x37, 0x77, 0x96, 0x90, 0x94, 0xcf, - 0x32, 0x5f, 0x0e, 0x79, 0x75, 0x32, 0x60, 0x07, 0x7c, 0xe0, 0xfd, 0x20, 0xbd, 0x70, 0xd3, 0xe0, - 0x8a, 0x7f, 0x61, 0x8a, 0xb8, 0x4a, 0x1d, 0x76, 0x70, 0x45, 0xd4, 0x17, 0x20, 0xf2, 0x05, 0x66, - 0x30, 0x2f, 0xf3, 0xdc, 0x90, 0x44, 0x29, 0x8b, 0x55, 0xc5, 0x55, 0xea, 0xe8, 0x91, 0x28, 0x3d, - 0x30, 0x7e, 0xee, 0x4c, 0x82, 0xec, 0x7c, 0x3e, 0xd2, 0xc6, 0xf1, 0x34, 0xff, 0x19, 0x7b, 0xc5, - 0x7f, 0xc6, 0x26, 0xf1, 0xab, 0x09, 0x89, 0xd8, 0x9f, 0xd1, 0xdd, 0x7f, 0x69, 0xef, 0xd9, 0xc3, - 0x48, 0x64, 0xb0, 0xd7, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x5e, 0xfd, 0xbe, 0xf3, 0x51, 0x0a, - 0x00, 0x00, + // 1182 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4d, 0x6f, 0xdb, 0x46, + 0x13, 0x8e, 0xbe, 0x28, 0x71, 0x64, 0x0b, 0xcc, 0xbe, 0xc1, 0x1b, 0xd6, 0x41, 0x50, 0x95, 0x68, + 0x1a, 0x15, 0x68, 0x28, 0x59, 0x81, 0x8d, 0x7c, 0x00, 0x69, 0x69, 0x89, 0x89, 0x89, 0x2a, 0x94, + 0xb0, 0xa4, 0x1c, 0xb4,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 0x85, 0x7a, 0xae, 0x51, + 0x6d, 0xef, 0xa8, 0x3c, 0x18, 0x75, 0x15, 0xad, 0x6a, 0xaf, 0xa2, 0xc5, 0x62, 0x86, 0xd6, 0x52, + 0x84, 0xa0, 0x18, 0xba, 0x53, 0x22, 0x17, 0x99, 0x24, 0xfb, 0x46, 0x75, 0xa8, 0x7a, 0x24, 0x19, + 0xc7, 0xfe, 0x2c, 0xf5, 0xa3, 0x50, 0x2e, 0xb1, 0xa5, 0x75, 0x17, 0x7a, 0x0f, 0x42, 0xe0, 0x8e, + 0x48, 0x90, 0xc8, 0x42, 0xbd, 0xd0, 0xa8, 0xb6, 0x55, 0xf5, 0xc6, 0xac, 0xab, 0x59, 0x44, 0x6a, + 0x8f, 0x11, 0xf4, 0x30, 0x8d, 0x97, 0x38, 0x63, 0xa3, 0x01, 0x54, 0x49, 0xb8, 0xf0, 0xe3, 0x28, + 0x9c, 0x92, 0x30, 0x95, 0xcb, 0xf5, 0x5c, 0xa3, 0x76, 0x27, 0x31, 0xfd, 0x92, 0x85, 0xd7, 0x25, + 0x90, 0x0e, 0x30, 0x8d, 0x42, 0x3f, 0x8d, 0x62, 0x3f, 0x9c, 0xc8, 0x15, 0xb6, 0xbb, 0x67, 0x1b, + 0x04, 0x3f, 0x5e, 0x80, 0xf1, 0x1a, 0x11, 0xfd, 0x04, 0x02, 0x3f, 0x23, 0x59, 0x64, 0xd9, 0x6c, + 0xdc, 0xbe, 0xa7, 0x0e, 0xc3, 0xe3, 0x8c, 0x87, 0x9e, 0x02, 0x84, 0x24, 0x3d, 0x8b, 0xe2, 0x53, + 0x7a, 0x62, 0xc0, 0x72, 0x28, 0x66, 0x1e, 0xc3, 0x43, 0x1a, 0x08, 0x27, 0xc4, 0x0d, 0xd2, 0x13, + 0xb9, 0xca, 0x82, 0xfe, 0xfe, 0x0e, 0x41, 0x1f, 0x32, 0x02, 0xce, 0x88, 0x54, 0x22, 0x49, 0xdd, + 0x74, 0x9e, 0xc8, 0x5b, 0x77, 0x96, 0xb0, 0x18, 0x01, 0x67, 0x44, 0x24, 0x43, 0x39, 0x39, 0x71, + 0x63, 0x8f, 0x78, 0xf2, 0x76, 0x3d, 0xd7, 0xa8, 0xe0, 0x95, 0xb9, 0xf3, 0x1a, 0xaa, 0x6b, 0x07, + 0x86, 0x24, 0x28, 0x9c, 0x92, 0x65, 0x56, 0x8f, 0xf4, 0x13, 0x3d, 0x82, 0xd2, 0xc2, 0x0d, 0xe6, + 0x24, 0x2b, 0x46, 0x6e, 0xbc, 0xc9, 0xbf, 0xca, 0x29, 0x06, 0x54, 0xd7, 0x8e, 0x07, 0x3d, 0x81, + 0xc7, 0xba, 0x79, 0x64, 0xe0, 0xbe, 0xf9, 0x51, 0x37, 0x6d, 0x67, 0x68, 0x5a, 0x03, 0xbd, 0x63, + 0xbc, 0x37, 0xf4, 0xae, 0xf4, 0x00, 0xd5, 0x00, 0x06, 0xb8, 0xdf, 0x1d, 0x76, 0x6c, 0xa3, 0x6f, + 0x4a, 0x39, 0xb4, 0x0d, 0xe2, 0x00, 0xeb, 0x96, 0xad, 0x1d, 0xf4, 0x74, 0x29, 0xaf, 0xfc, 0x08, + 0x02, 0x0f, 0x1a, 0x21, 0xa8, 0x1d, 0xea, 0x5a, 0xcf, 0x3e, 0x74, 0x86, 0xe6, 0xcf, 0x66, 0xff, + 0x93, 0x29, 0x3d, 0x40, 0x22, 0x94, 0xb4, 0x9e, 0x71, 0xa4, 0x4b, 0x39, 0x54, 0x81, 0x62, 0x57, + 0xd7, 0xba, 0x52, 0x1e, 0x6d, 0x41, 0xa5, 0xab, 0x7f, 0xc0, 0x5a, 0x57, 0xef, 0x4a, 0x05, 0x65, + 0x09, 0x02, 0x0f, 0x99, 0x0a, 0x58, 0xb6, 0x66, 0x0f, 0xad, 0x35, 0x81, 0x2d, 0xa8, 0x74, 0xb0, + 0xae, 0xd9, 0x86, 0xf9, 0x41, 0xca, 0xa1, 0x2a, 0x94, 0xf1, 0xd0, 0x34, 0x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x7a, 0x31, 0x21, 0x21, 0x7b, 0x98, 0xdd, 0xfc, 0x48, 0x7c, 0xcb, 0x3e, 0x46, 0x02, 0x83, 0xbd, + 0xfc, 0x27, 0x00, 0x00, 0xff, 0xff, 0x82, 0x71, 0x84, 0x32, 0x01, 0x0b, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/cluster.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/cluster.pbext.go new file mode 100644 index 000000000..76275637b --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/cluster.pbext.go @@ -0,0 +1,171 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package redis + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" + config "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config" + timeofday "google.golang.org/genproto/googleapis/type/timeofday" +) + +func (m *Cluster) SetId(v string) { + m.Id = v +} + +func (m *Cluster) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Cluster) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Cluster) SetName(v string) { + m.Name = v +} + +func (m *Cluster) SetDescription(v string) { + m.Description = v +} + +func (m *Cluster) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *Cluster) SetEnvironment(v Cluster_Environment) { + m.Environment = v +} + +func (m *Cluster) SetMonitoring(v []*Monitoring) { + m.Monitoring = v +} + +func (m *Cluster) SetConfig(v *ClusterConfig) { + m.Config = v +} + +func (m *Cluster) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *Cluster) SetHealth(v Cluster_Health) { + m.Health = v +} + +func (m *Cluster) SetStatus(v Cluster_Status) { + m.Status = v +} + +func (m *Cluster) SetSharded(v bool) { + m.Sharded = v +} + +func (m *Monitoring) SetName(v string) { + m.Name = v +} + +func (m *Monitoring) SetDescription(v string) { + m.Description = v +} + +func (m *Monitoring) SetLink(v string) { + m.Link = v +} + +type ClusterConfig_RedisConfig = isClusterConfig_RedisConfig + +func (m *ClusterConfig) SetRedisConfig(v ClusterConfig_RedisConfig) { + m.RedisConfig = v +} + +func (m *ClusterConfig) SetVersion(v string) { + m.Version = v +} + +func (m *ClusterConfig) SetRedisConfig_5_0(v *config.RedisConfigSet5_0) { + m.RedisConfig = &ClusterConfig_RedisConfig_5_0{ + RedisConfig_5_0: v, + } +} + +func (m *ClusterConfig) SetRedisConfig_6_0(v *config.RedisConfigSet6_0) { + m.RedisConfig = &ClusterConfig_RedisConfig_6_0{ + RedisConfig_6_0: v, + } +} + +func (m *ClusterConfig) SetResources(v *Resources) { + m.Resources = v +} + +func (m *ClusterConfig) SetBackupWindowStart(v *timeofday.TimeOfDay) { + m.BackupWindowStart = v +} + +func (m *ClusterConfig) SetAccess(v *Access) { + m.Access = v +} + +func (m *Shard) SetName(v string) { + m.Name = v +} + +func (m *Shard) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *Host) SetName(v string) { + m.Name = v +} + +func (m *Host) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *Host) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *Host) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *Host) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Host) SetRole(v Host_Role) { + m.Role = v +} + +func (m *Host) SetHealth(v Host_Health) { + m.Health = v +} + +func (m *Host) SetServices(v []*Service) { + m.Services = v +} + +func (m *Host) SetShardName(v string) { + m.ShardName = v +} + +func (m *Service) SetType(v Service_Type) { + m.Type = v +} + +func (m *Service) SetHealth(v Service_Health) { + m.Health = v +} + +func (m *Resources) SetResourcePresetId(v string) { + m.ResourcePresetId = v +} + +func (m *Resources) SetDiskSize(v int64) { + m.DiskSize = v +} + +func (m *Access) SetDataLens(v bool) { + m.DataLens = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/cluster_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/cluster_service.pb.go index 3c46feaba..e9d41b3d4 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/cluster_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/cluster_service.pb.go @@ -58,6 +58,32 @@ func (ListClusterLogsRequest_ServiceType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_a1eca1188b71673d, []int{22, 0} } +type StreamClusterLogsRequest_ServiceType int32 + +const ( + StreamClusterLogsRequest_SERVICE_TYPE_UNSPECIFIED StreamClusterLogsRequest_ServiceType = 0 + // Logs of Redis activity. + StreamClusterLogsRequest_REDIS StreamClusterLogsRequest_ServiceType = 1 +) + +var StreamClusterLogsRequest_ServiceType_name = map[int32]string{ + 0: "SERVICE_TYPE_UNSPECIFIED", + 1: "REDIS", +} + +var StreamClusterLogsRequest_ServiceType_value = map[string]int32{ + "SERVICE_TYPE_UNSPECIFIED": 0, + "REDIS": 1, +} + +func (x StreamClusterLogsRequest_ServiceType) String() string { + return proto.EnumName(StreamClusterLogsRequest_ServiceType_name, int32(x)) +} + +func (StreamClusterLogsRequest_ServiceType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_a1eca1188b71673d, []int{24, 0} +} + type GetClusterRequest struct { // ID of the Redis cluster to return. // To get the cluster ID use a [ClusterService.List] request. @@ -1381,6 +1407,83 @@ func (m *ListClusterLogsResponse) GetNextPageToken() string { return "" } +type StreamClusterLogsRequest struct { + // Required. ID of the Redis cluster. + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // Columns from logs table to get in the response. + ColumnFilter []string `protobuf:"bytes,2,rep,name=column_filter,json=columnFilter,proto3" json:"column_filter,omitempty"` + ServiceType StreamClusterLogsRequest_ServiceType `protobuf:"varint,3,opt,name=service_type,json=serviceType,proto3,enum=yandex.cloud.mdb.redis.v1.StreamClusterLogsRequest_ServiceType" json:"service_type,omitempty"` + // Start timestamp for the logs request. + FromTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=from_time,json=fromTime,proto3" json:"from_time,omitempty"` + // End timestamp for the logs request. + // If this field is not set, all existing logs will be sent and then the new ones as + // they appear. In essence it has 'tail -f' semantics. + ToTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=to_time,json=toTime,proto3" json:"to_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamClusterLogsRequest) Reset() { *m = StreamClusterLogsRequest{} } +func (m *StreamClusterLogsRequest) String() string { return proto.CompactTextString(m) } +func (*StreamClusterLogsRequest) ProtoMessage() {} +func (*StreamClusterLogsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a1eca1188b71673d, []int{24} +} + +func (m *StreamClusterLogsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamClusterLogsRequest.Unmarshal(m, b) +} +func (m *StreamClusterLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamClusterLogsRequest.Marshal(b, m, deterministic) +} +func (m *StreamClusterLogsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamClusterLogsRequest.Merge(m, src) +} +func (m *StreamClusterLogsRequest) XXX_Size() int { + return xxx_messageInfo_StreamClusterLogsRequest.Size(m) +} +func (m *StreamClusterLogsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StreamClusterLogsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamClusterLogsRequest proto.InternalMessageInfo + +func (m *StreamClusterLogsRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *StreamClusterLogsRequest) GetColumnFilter() []string { + if m != nil { + return m.ColumnFilter + } + return nil +} + +func (m *StreamClusterLogsRequest) GetServiceType() StreamClusterLogsRequest_ServiceType { + if m != nil { + return m.ServiceType + } + return StreamClusterLogsRequest_SERVICE_TYPE_UNSPECIFIED +} + +func (m *StreamClusterLogsRequest) GetFromTime() *timestamp.Timestamp { + if m != nil { + return m.FromTime + } + return nil +} + +func (m *StreamClusterLogsRequest) GetToTime() *timestamp.Timestamp { + if m != nil { + return m.ToTime + } + return nil +} + type ListClusterOperationsRequest struct { // ID of the Redis cluster to list operations for. ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` @@ -1400,7 +1503,7 @@ func (m *ListClusterOperationsRequest) Reset() { *m = ListClusterOperati func (m *ListClusterOperationsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterOperationsRequest) ProtoMessage() {} func (*ListClusterOperationsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{24} + return fileDescriptor_a1eca1188b71673d, []int{25} } func (m *ListClusterOperationsRequest) XXX_Unmarshal(b []byte) error { @@ -1459,7 +1562,7 @@ func (m *ListClusterOperationsResponse) Reset() { *m = ListClusterOperat func (m *ListClusterOperationsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterOperationsResponse) ProtoMessage() {} func (*ListClusterOperationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{25} + return fileDescriptor_a1eca1188b71673d, []int{26} } func (m *ListClusterOperationsResponse) XXX_Unmarshal(b []byte) error { @@ -1514,7 +1617,7 @@ func (m *ListClusterBackupsRequest) Reset() { *m = ListClusterBackupsReq func (m *ListClusterBackupsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterBackupsRequest) ProtoMessage() {} func (*ListClusterBackupsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{26} + return fileDescriptor_a1eca1188b71673d, []int{27} } func (m *ListClusterBackupsRequest) XXX_Unmarshal(b []byte) error { @@ -1573,7 +1676,7 @@ func (m *ListClusterBackupsResponse) Reset() { *m = ListClusterBackupsRe func (m *ListClusterBackupsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterBackupsResponse) ProtoMessage() {} func (*ListClusterBackupsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{27} + return fileDescriptor_a1eca1188b71673d, []int{28} } func (m *ListClusterBackupsResponse) XXX_Unmarshal(b []byte) error { @@ -1628,7 +1731,7 @@ func (m *ListClusterHostsRequest) Reset() { *m = ListClusterHostsRequest func (m *ListClusterHostsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterHostsRequest) ProtoMessage() {} func (*ListClusterHostsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{28} + return fileDescriptor_a1eca1188b71673d, []int{29} } func (m *ListClusterHostsRequest) XXX_Unmarshal(b []byte) error { @@ -1687,7 +1790,7 @@ func (m *ListClusterHostsResponse) Reset() { *m = ListClusterHostsRespon func (m *ListClusterHostsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterHostsResponse) ProtoMessage() {} func (*ListClusterHostsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{29} + return fileDescriptor_a1eca1188b71673d, []int{30} } func (m *ListClusterHostsResponse) XXX_Unmarshal(b []byte) error { @@ -1737,7 +1840,7 @@ func (m *AddClusterHostsRequest) Reset() { *m = AddClusterHostsRequest{} func (m *AddClusterHostsRequest) String() string { return proto.CompactTextString(m) } func (*AddClusterHostsRequest) ProtoMessage() {} func (*AddClusterHostsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{30} + return fileDescriptor_a1eca1188b71673d, []int{31} } func (m *AddClusterHostsRequest) XXX_Unmarshal(b []byte) error { @@ -1786,7 +1889,7 @@ func (m *AddClusterHostsMetadata) Reset() { *m = AddClusterHostsMetadata func (m *AddClusterHostsMetadata) String() string { return proto.CompactTextString(m) } func (*AddClusterHostsMetadata) ProtoMessage() {} func (*AddClusterHostsMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{31} + return fileDescriptor_a1eca1188b71673d, []int{32} } func (m *AddClusterHostsMetadata) XXX_Unmarshal(b []byte) error { @@ -1836,7 +1939,7 @@ func (m *DeleteClusterHostsRequest) Reset() { *m = DeleteClusterHostsReq func (m *DeleteClusterHostsRequest) String() string { return proto.CompactTextString(m) } func (*DeleteClusterHostsRequest) ProtoMessage() {} func (*DeleteClusterHostsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{32} + return fileDescriptor_a1eca1188b71673d, []int{33} } func (m *DeleteClusterHostsRequest) XXX_Unmarshal(b []byte) error { @@ -1885,7 +1988,7 @@ func (m *DeleteClusterHostsMetadata) Reset() { *m = DeleteClusterHostsMe func (m *DeleteClusterHostsMetadata) String() string { return proto.CompactTextString(m) } func (*DeleteClusterHostsMetadata) ProtoMessage() {} func (*DeleteClusterHostsMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{33} + return fileDescriptor_a1eca1188b71673d, []int{34} } func (m *DeleteClusterHostsMetadata) XXX_Unmarshal(b []byte) error { @@ -1936,7 +2039,7 @@ func (m *GetClusterShardRequest) Reset() { *m = GetClusterShardRequest{} func (m *GetClusterShardRequest) String() string { return proto.CompactTextString(m) } func (*GetClusterShardRequest) ProtoMessage() {} func (*GetClusterShardRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{34} + return fileDescriptor_a1eca1188b71673d, []int{35} } func (m *GetClusterShardRequest) XXX_Unmarshal(b []byte) error { @@ -1993,7 +2096,7 @@ func (m *ListClusterShardsRequest) Reset() { *m = ListClusterShardsReque func (m *ListClusterShardsRequest) String() string { return proto.CompactTextString(m) } func (*ListClusterShardsRequest) ProtoMessage() {} func (*ListClusterShardsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{35} + return fileDescriptor_a1eca1188b71673d, []int{36} } func (m *ListClusterShardsRequest) XXX_Unmarshal(b []byte) error { @@ -2054,7 +2157,7 @@ func (m *ListClusterShardsResponse) Reset() { *m = ListClusterShardsResp func (m *ListClusterShardsResponse) String() string { return proto.CompactTextString(m) } func (*ListClusterShardsResponse) ProtoMessage() {} func (*ListClusterShardsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{36} + return fileDescriptor_a1eca1188b71673d, []int{37} } func (m *ListClusterShardsResponse) XXX_Unmarshal(b []byte) error { @@ -2108,7 +2211,7 @@ func (m *AddClusterShardRequest) Reset() { *m = AddClusterShardRequest{} func (m *AddClusterShardRequest) String() string { return proto.CompactTextString(m) } func (*AddClusterShardRequest) ProtoMessage() {} func (*AddClusterShardRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{37} + return fileDescriptor_a1eca1188b71673d, []int{38} } func (m *AddClusterShardRequest) XXX_Unmarshal(b []byte) error { @@ -2164,7 +2267,7 @@ func (m *AddClusterShardMetadata) Reset() { *m = AddClusterShardMetadata func (m *AddClusterShardMetadata) String() string { return proto.CompactTextString(m) } func (*AddClusterShardMetadata) ProtoMessage() {} func (*AddClusterShardMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{38} + return fileDescriptor_a1eca1188b71673d, []int{39} } func (m *AddClusterShardMetadata) XXX_Unmarshal(b []byte) error { @@ -2215,7 +2318,7 @@ func (m *DeleteClusterShardRequest) Reset() { *m = DeleteClusterShardReq func (m *DeleteClusterShardRequest) String() string { return proto.CompactTextString(m) } func (*DeleteClusterShardRequest) ProtoMessage() {} func (*DeleteClusterShardRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{39} + return fileDescriptor_a1eca1188b71673d, []int{40} } func (m *DeleteClusterShardRequest) XXX_Unmarshal(b []byte) error { @@ -2264,7 +2367,7 @@ func (m *DeleteClusterShardMetadata) Reset() { *m = DeleteClusterShardMe func (m *DeleteClusterShardMetadata) String() string { return proto.CompactTextString(m) } func (*DeleteClusterShardMetadata) ProtoMessage() {} func (*DeleteClusterShardMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{40} + return fileDescriptor_a1eca1188b71673d, []int{41} } func (m *DeleteClusterShardMetadata) XXX_Unmarshal(b []byte) error { @@ -2312,7 +2415,7 @@ func (m *RebalanceClusterRequest) Reset() { *m = RebalanceClusterRequest func (m *RebalanceClusterRequest) String() string { return proto.CompactTextString(m) } func (*RebalanceClusterRequest) ProtoMessage() {} func (*RebalanceClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{41} + return fileDescriptor_a1eca1188b71673d, []int{42} } func (m *RebalanceClusterRequest) XXX_Unmarshal(b []byte) error { @@ -2352,7 +2455,7 @@ func (m *RebalanceClusterMetadata) Reset() { *m = RebalanceClusterMetada func (m *RebalanceClusterMetadata) String() string { return proto.CompactTextString(m) } func (*RebalanceClusterMetadata) ProtoMessage() {} func (*RebalanceClusterMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{42} + return fileDescriptor_a1eca1188b71673d, []int{43} } func (m *RebalanceClusterMetadata) XXX_Unmarshal(b []byte) error { @@ -2400,7 +2503,7 @@ func (m *HostSpec) Reset() { *m = HostSpec{} } func (m *HostSpec) String() string { return proto.CompactTextString(m) } func (*HostSpec) ProtoMessage() {} func (*HostSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{43} + return fileDescriptor_a1eca1188b71673d, []int{44} } func (m *HostSpec) XXX_Unmarshal(b []byte) error { @@ -2444,12 +2547,12 @@ func (m *HostSpec) GetShardName() string { type ConfigSpec struct { // Version of Redis used in the cluster. - // The only possible value is `5.0`. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // Configuration of a Redis cluster. // // Types that are valid to be assigned to RedisSpec: // *ConfigSpec_RedisConfig_5_0 + // *ConfigSpec_RedisConfig_6_0 RedisSpec isConfigSpec_RedisSpec `protobuf_oneof:"redis_spec"` // Resources allocated to Redis hosts. Resources *Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` @@ -2466,7 +2569,7 @@ func (m *ConfigSpec) Reset() { *m = ConfigSpec{} } func (m *ConfigSpec) String() string { return proto.CompactTextString(m) } func (*ConfigSpec) ProtoMessage() {} func (*ConfigSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_a1eca1188b71673d, []int{44} + return fileDescriptor_a1eca1188b71673d, []int{45} } func (m *ConfigSpec) XXX_Unmarshal(b []byte) error { @@ -2499,11 +2602,17 @@ type isConfigSpec_RedisSpec interface { } type ConfigSpec_RedisConfig_5_0 struct { - RedisConfig_5_0 *config.RedisConfig5_0 `protobuf:"bytes,2,opt,name=redis_config_5_0,json=redisConfig50,proto3,oneof"` + RedisConfig_5_0 *config.RedisConfig5_0 `protobuf:"bytes,2,opt,name=redis_config_5_0,json=redisConfig_5_0,proto3,oneof"` +} + +type ConfigSpec_RedisConfig_6_0 struct { + RedisConfig_6_0 *config.RedisConfig6_0 `protobuf:"bytes,6,opt,name=redis_config_6_0,json=redisConfig_6_0,proto3,oneof"` } func (*ConfigSpec_RedisConfig_5_0) isConfigSpec_RedisSpec() {} +func (*ConfigSpec_RedisConfig_6_0) isConfigSpec_RedisSpec() {} + func (m *ConfigSpec) GetRedisSpec() isConfigSpec_RedisSpec { if m != nil { return m.RedisSpec @@ -2518,6 +2627,13 @@ func (m *ConfigSpec) GetRedisConfig_5_0() *config.RedisConfig5_0 { return nil } +func (m *ConfigSpec) GetRedisConfig_6_0() *config.RedisConfig6_0 { + if x, ok := m.GetRedisSpec().(*ConfigSpec_RedisConfig_6_0); ok { + return x.RedisConfig_6_0 + } + return nil +} + func (m *ConfigSpec) GetResources() *Resources { if m != nil { return m.Resources @@ -2543,11 +2659,13 @@ func (m *ConfigSpec) GetAccess() *Access { func (*ConfigSpec) XXX_OneofWrappers() []interface{} { return []interface{}{ (*ConfigSpec_RedisConfig_5_0)(nil), + (*ConfigSpec_RedisConfig_6_0)(nil), } } func init() { proto.RegisterEnum("yandex.cloud.mdb.redis.v1.ListClusterLogsRequest_ServiceType", ListClusterLogsRequest_ServiceType_name, ListClusterLogsRequest_ServiceType_value) + proto.RegisterEnum("yandex.cloud.mdb.redis.v1.StreamClusterLogsRequest_ServiceType", StreamClusterLogsRequest_ServiceType_name, StreamClusterLogsRequest_ServiceType_value) proto.RegisterType((*GetClusterRequest)(nil), "yandex.cloud.mdb.redis.v1.GetClusterRequest") proto.RegisterType((*ListClustersRequest)(nil), "yandex.cloud.mdb.redis.v1.ListClustersRequest") proto.RegisterType((*ListClustersResponse)(nil), "yandex.cloud.mdb.redis.v1.ListClustersResponse") @@ -2576,6 +2694,7 @@ func init() { proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.mdb.redis.v1.LogRecord.MessageEntry") proto.RegisterType((*ListClusterLogsRequest)(nil), "yandex.cloud.mdb.redis.v1.ListClusterLogsRequest") proto.RegisterType((*ListClusterLogsResponse)(nil), "yandex.cloud.mdb.redis.v1.ListClusterLogsResponse") + proto.RegisterType((*StreamClusterLogsRequest)(nil), "yandex.cloud.mdb.redis.v1.StreamClusterLogsRequest") proto.RegisterType((*ListClusterOperationsRequest)(nil), "yandex.cloud.mdb.redis.v1.ListClusterOperationsRequest") proto.RegisterType((*ListClusterOperationsResponse)(nil), "yandex.cloud.mdb.redis.v1.ListClusterOperationsResponse") proto.RegisterType((*ListClusterBackupsRequest)(nil), "yandex.cloud.mdb.redis.v1.ListClusterBackupsRequest") @@ -2604,177 +2723,183 @@ func init() { } var fileDescriptor_a1eca1188b71673d = []byte{ - // 2574 bytes of a gzipped FileDescriptorProto + // 2665 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0x4d, 0x6c, 0x1b, 0xd7, - 0x11, 0xce, 0xd3, 0x0f, 0x45, 0x0e, 0x6d, 0x45, 0x79, 0x96, 0x6d, 0x86, 0xb1, 0x63, 0x79, 0xdd,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+ 0xc6, 0xc1, 0xc6, 0x02, 0x78, 0x12, 0x22, 0x6a, 0xa1, 0x40, 0x2c, 0xcb, 0xa9, 0xde, 0x83, 0xaa, + 0xac, 0x19, 0x46, 0xa8, 0x38, 0x0c, 0xb3, 0x87, 0x00, 0xb8, 0x95, 0x68, 0xe6, 0x18, 0xf9, 0xd5, + 0x19, 0xe8, 0x77, 0x43, 0x82, 0x97, 0xf6, 0xf8, 0x9b, 0x08, 0xba, 0xaf, 0x11, 0x1b, 0x9f, 0x0f, + 0x90, 0xd9, 0x74, 0x29, 0x9b, 0x14, 0xb8, 0x83, 0x94, 0x32, 0x0f, 0xff, 0xfc, 0x8f, 0xef, 0x76, + 0xbd, 0x8e, 0xcf, 0x65, 0x2a, 0xaa, 0xae, 0x16, 0x89, 0x96, 0x6e, 0xbc, 0x58, 0xb6, 0x32, 0xf7, + 0xeb, 0x6e, 0xfe, 0x00, 0x7f, 0x0b, 0x41, 0x0f, 0xcd, 0xf5, 0x58, 0x16, 0x6b, 0xbe, 0xdd, 0x33, + 0x2a, 0x99, 0x11, 0xa6, 0xe7, 0xe7, 0x86, 0x24, 0x31, 0x68, 0x27, 0x71, 0xb2, 0x3d, 0x34, 0xfc, + 0x09, 0x82, 0x08, 0xbf, 0x61, 0xc2, 0x99, 0x90, 0xb7, 0x8c, 0xc9, 0xbd, 0x7b, 0x05, 0x69, 0x71, + 0x67, 0x37, 0x35, 0xd4, 0xee, 0x0e, 0xab, 0xcf, 0x79, 0xc1, 0x60, 0x9e, 0x96, 0x02, 0x60, 0x5e, + 0x42, 0x29, 0xfc, 0x18, 0x41, 0x84, 0xdf, 0x6c, 0x04, 0x22, 0x6d, 0x75, 0x39, 0x24, 0x82, 0xf4, + 0x16, 0x47, 0xda, 0xfa, 0xee, 0xc4, 0x87, 0xf4, 0xfc, 0x88, 0xe8, 0x5e, 0x53, 0xd8, 0xbf, 0x43, + 0x10, 0xe1, 0x59, 0x3a, 0x10, 0x76, 0xab, 0xbb, 0x17, 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 0x53, 0x1d, 0x39, 0xd6, 0xef, 0x11, 0xc4, + 0x6a, 0x63, 0xa6, 0xc0, 0x84, 0xdb, 0x66, 0xa8, 0x25, 0xa2, 0xe0, 0xc7, 0x3b, 0xbb, 0xa9, 0xb3, + 0x01, 0xe3, 0x2c, 0x5f, 0x19, 0x34, 0x2a, 0xe5, 0x44, 0xcf, 0x6c, 0xd3, 0x15, 0x38, 0xab, 0xc1, + 0x29, 0x1f, 0x0a, 0xb5, 0x5a, 0xf2, 0xa1, 0xbf, 0x3d, 0x57, 0x2c, 0xd9, 0x6b, 0x1b, 0x2b, 0x72, + 0xc1, 0xa8, 0x38, 0x7f, 0x3b, 0x4f, 0xf3, 0xbf, 0x9d, 0x17, 0x8d, 0x74, 0x91, 0xe8, 0xcc, 0xb0, + 0xed, 0xff, 0x8f, 0x3e, 0xc5, 0x7e, 0xac, 0x44, 0x18, 0xd9, 0xe8, 0x7f, 0x03, 0x00, 0x00, 0xff, + 0xff, 0x3c, 0xf3, 0xdf, 0xb6, 0x6e, 0x30, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // ClusterServiceClient is the client API for ClusterService service. // @@ -2806,8 +2931,9 @@ type ClusterServiceClient interface { // Start a manual failover on the specified Redis cluster. StartFailover(ctx context.Context, in *StartClusterFailoverRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Retrieves logs for the specified Redis cluster. - // For more information about logs, see the [Logs](/docs/managed-redis/concepts/logs) section in the documentation. ListLogs(ctx context.Context, in *ListClusterLogsRequest, opts ...grpc.CallOption) (*ListClusterLogsResponse, error) + // Same as ListLogs but using server-side streaming. Also allows for 'tail -f' semantics. + StreamLogs(ctx context.Context, in *StreamClusterLogsRequest, opts ...grpc.CallOption) (ClusterService_StreamLogsClient, error) // Retrieves the list of operations for the specified cluster. ListOperations(ctx context.Context, in *ListClusterOperationsRequest, opts ...grpc.CallOption) (*ListClusterOperationsResponse, error) // Retrieves the list of available backups for the specified Redis cluster. @@ -2831,10 +2957,10 @@ type ClusterServiceClient interface { } type clusterServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewClusterServiceClient(cc *grpc.ClientConn) ClusterServiceClient { +func NewClusterServiceClient(cc grpc.ClientConnInterface) ClusterServiceClient { return &clusterServiceClient{cc} } @@ -2946,6 +3072,38 @@ func (c *clusterServiceClient) ListLogs(ctx context.Context, in *ListClusterLogs return out, nil } +func (c *clusterServiceClient) StreamLogs(ctx context.Context, in *StreamClusterLogsRequest, opts ...grpc.CallOption) (ClusterService_StreamLogsClient, error) { + stream, err := c.cc.NewStream(ctx, &_ClusterService_serviceDesc.Streams[0], "/yandex.cloud.mdb.redis.v1.ClusterService/StreamLogs", opts...) + if err != nil { + return nil, err + } + x := &clusterServiceStreamLogsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ClusterService_StreamLogsClient interface { + Recv() (*LogRecord, error) + grpc.ClientStream +} + +type clusterServiceStreamLogsClient struct { + grpc.ClientStream +} + +func (x *clusterServiceStreamLogsClient) Recv() (*LogRecord, error) { + m := new(LogRecord) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + func (c *clusterServiceClient) ListOperations(ctx context.Context, in *ListClusterOperationsRequest, opts ...grpc.CallOption) (*ListClusterOperationsResponse, error) { out := new(ListClusterOperationsResponse) err := c.cc.Invoke(ctx, "/yandex.cloud.mdb.redis.v1.ClusterService/ListOperations", in, out, opts...) @@ -3064,8 +3222,9 @@ type ClusterServiceServer interface { // Start a manual failover on the specified Redis cluster. StartFailover(context.Context, *StartClusterFailoverRequest) (*operation.Operation, error) // Retrieves logs for the specified Redis cluster. - // For more information about logs, see the [Logs](/docs/managed-redis/concepts/logs) section in the documentation. ListLogs(context.Context, *ListClusterLogsRequest) (*ListClusterLogsResponse, error) + // Same as ListLogs but using server-side streaming. Also allows for 'tail -f' semantics. + StreamLogs(*StreamClusterLogsRequest, ClusterService_StreamLogsServer) error // Retrieves the list of operations for the specified cluster. ListOperations(context.Context, *ListClusterOperationsRequest) (*ListClusterOperationsResponse, error) // Retrieves the list of available backups for the specified Redis cluster. @@ -3128,6 +3287,9 @@ func (*UnimplementedClusterServiceServer) StartFailover(ctx context.Context, req func (*UnimplementedClusterServiceServer) ListLogs(ctx context.Context, req *ListClusterLogsRequest) (*ListClusterLogsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListLogs not implemented") } +func (*UnimplementedClusterServiceServer) StreamLogs(req *StreamClusterLogsRequest, srv ClusterService_StreamLogsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamLogs not implemented") +} func (*UnimplementedClusterServiceServer) ListOperations(ctx context.Context, req *ListClusterOperationsRequest) (*ListClusterOperationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") } @@ -3379,6 +3541,27 @@ func _ClusterService_ListLogs_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _ClusterService_StreamLogs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(StreamClusterLogsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ClusterServiceServer).StreamLogs(m, &clusterServiceStreamLogsServer{stream}) +} + +type ClusterService_StreamLogsServer interface { + Send(*LogRecord) error + grpc.ServerStream +} + +type clusterServiceStreamLogsServer struct { + grpc.ServerStream +} + +func (x *clusterServiceStreamLogsServer) Send(m *LogRecord) error { + return x.ServerStream.SendMsg(m) +} + func _ClusterService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListClusterOperationsRequest) if err := dec(in); err != nil { @@ -3652,6 +3835,12 @@ var _ClusterService_serviceDesc = grpc.ServiceDesc{ Handler: _ClusterService_Rebalance_Handler, }, }, - Streams: []grpc.StreamDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamLogs", + Handler: _ClusterService_StreamLogs_Handler, + ServerStreams: true, + }, + }, Metadata: "yandex/cloud/mdb/redis/v1/cluster_service.proto", } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/cluster_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/cluster_service.pbext.go new file mode 100644 index 000000000..6ae0a27b1 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/cluster_service.pbext.go @@ -0,0 +1,485 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package redis + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" + config "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + timeofday "google.golang.org/genproto/googleapis/type/timeofday" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClustersRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListClustersRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClustersRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClustersRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListClustersResponse) SetClusters(v []*Cluster) { + m.Clusters = v +} + +func (m *ListClustersResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateClusterRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateClusterRequest) SetEnvironment(v Cluster_Environment) { + m.Environment = v +} + +func (m *CreateClusterRequest) SetConfigSpec(v *ConfigSpec) { + m.ConfigSpec = v +} + +func (m *CreateClusterRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *CreateClusterRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *CreateClusterRequest) SetSharded(v bool) { + m.Sharded = v +} + +func (m *CreateClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *UpdateClusterRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateClusterRequest) SetConfigSpec(v *ConfigSpec) { + m.ConfigSpec = v +} + +func (m *UpdateClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StartClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StartClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StopClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StopClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *MoveClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *MoveClusterRequest) SetDestinationFolderId(v string) { + m.DestinationFolderId = v +} + +func (m *MoveClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *MoveClusterMetadata) SetSourceFolderId(v string) { + m.SourceFolderId = v +} + +func (m *MoveClusterMetadata) SetDestinationFolderId(v string) { + m.DestinationFolderId = v +} + +func (m *BackupClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *BackupClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RestoreClusterRequest) SetBackupId(v string) { + m.BackupId = v +} + +func (m *RestoreClusterRequest) SetName(v string) { + m.Name = v +} + +func (m *RestoreClusterRequest) SetDescription(v string) { + m.Description = v +} + +func (m *RestoreClusterRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *RestoreClusterRequest) SetEnvironment(v Cluster_Environment) { + m.Environment = v +} + +func (m *RestoreClusterRequest) SetConfigSpec(v *ConfigSpec) { + m.ConfigSpec = v +} + +func (m *RestoreClusterRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *RestoreClusterRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *RestoreClusterRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *RestoreClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RestoreClusterMetadata) SetBackupId(v string) { + m.BackupId = v +} + +func (m *StartClusterFailoverRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StartClusterFailoverMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *LogRecord) SetTimestamp(v *timestamp.Timestamp) { + m.Timestamp = v +} + +func (m *LogRecord) SetMessage(v map[string]string) { + m.Message = v +} + +func (m *ListClusterLogsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterLogsRequest) SetColumnFilter(v []string) { + m.ColumnFilter = v +} + +func (m *ListClusterLogsRequest) SetServiceType(v ListClusterLogsRequest_ServiceType) { + m.ServiceType = v +} + +func (m *ListClusterLogsRequest) SetFromTime(v *timestamp.Timestamp) { + m.FromTime = v +} + +func (m *ListClusterLogsRequest) SetToTime(v *timestamp.Timestamp) { + m.ToTime = v +} + +func (m *ListClusterLogsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterLogsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterLogsResponse) SetLogs(v []*LogRecord) { + m.Logs = v +} + +func (m *ListClusterLogsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *StreamClusterLogsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *StreamClusterLogsRequest) SetColumnFilter(v []string) { + m.ColumnFilter = v +} + +func (m *StreamClusterLogsRequest) SetServiceType(v StreamClusterLogsRequest_ServiceType) { + m.ServiceType = v +} + +func (m *StreamClusterLogsRequest) SetFromTime(v *timestamp.Timestamp) { + m.FromTime = v +} + +func (m *StreamClusterLogsRequest) SetToTime(v *timestamp.Timestamp) { + m.ToTime = v +} + +func (m *ListClusterOperationsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListClusterOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListClusterBackupsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterBackupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterBackupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterBackupsResponse) SetBackups(v []*Backup) { + m.Backups = v +} + +func (m *ListClusterBackupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterHostsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterHostsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterHostsResponse) SetHosts(v []*Host) { + m.Hosts = v +} + +func (m *ListClusterHostsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *AddClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterHostsRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *AddClusterHostsMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterHostsMetadata) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *DeleteClusterHostsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterHostsRequest) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *DeleteClusterHostsMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterHostsMetadata) SetHostNames(v []string) { + m.HostNames = v +} + +func (m *GetClusterShardRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *GetClusterShardRequest) SetShardName(v string) { + m.ShardName = v +} + +func (m *ListClusterShardsRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *ListClusterShardsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListClusterShardsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListClusterShardsResponse) SetShards(v []*Shard) { + m.Shards = v +} + +func (m *ListClusterShardsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *AddClusterShardRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterShardRequest) SetShardName(v string) { + m.ShardName = v +} + +func (m *AddClusterShardRequest) SetHostSpecs(v []*HostSpec) { + m.HostSpecs = v +} + +func (m *AddClusterShardMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *AddClusterShardMetadata) SetShardName(v string) { + m.ShardName = v +} + +func (m *DeleteClusterShardRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterShardRequest) SetShardName(v string) { + m.ShardName = v +} + +func (m *DeleteClusterShardMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *DeleteClusterShardMetadata) SetShardName(v string) { + m.ShardName = v +} + +func (m *RebalanceClusterRequest) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *RebalanceClusterMetadata) SetClusterId(v string) { + m.ClusterId = v +} + +func (m *HostSpec) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *HostSpec) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *HostSpec) SetShardName(v string) { + m.ShardName = v +} + +type ConfigSpec_RedisSpec = isConfigSpec_RedisSpec + +func (m *ConfigSpec) SetRedisSpec(v ConfigSpec_RedisSpec) { + m.RedisSpec = v +} + +func (m *ConfigSpec) SetVersion(v string) { + m.Version = v +} + +func (m *ConfigSpec) SetRedisConfig_5_0(v *config.RedisConfig5_0) { + m.RedisSpec = &ConfigSpec_RedisConfig_5_0{ + RedisConfig_5_0: v, + } +} + +func (m *ConfigSpec) SetRedisConfig_6_0(v *config.RedisConfig6_0) { + m.RedisSpec = &ConfigSpec_RedisConfig_6_0{ + RedisConfig_6_0: v, + } +} + +func (m *ConfigSpec) SetResources(v *Resources) { + m.Resources = v +} + +func (m *ConfigSpec) SetBackupWindowStart(v *timeofday.TimeOfDay) { + m.BackupWindowStart = v +} + +func (m *ConfigSpec) SetAccess(v *Access) { + m.Access = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config/redis5_0.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config/redis5_0.pb.go index 862f2e52e..a8a2be0ed 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config/redis5_0.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config/redis5_0.pb.go @@ -213,38 +213,39 @@ func init() { } var fileDescriptor_f2fadb594ef7b246 = []byte{ - // 528 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xdd, 0x8e, 0xd2, 0x4c, - 0x18, 0xc7, 0xdf, 0xc2, 0xeb, 0xee, 0x3a, 0x28, 0x8c, 0xe3, 0x09, 0x59, 0x3f, 0x82, 0x68, 0x36, - 0x44, 0xb7, 0x53, 0x40,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28, 0x0b, 0x40, 0x47, 0x93, 0x87, 0x4a, 0xb3, 0xaf, 0x68, 0x1d, 0xb8, 0x53, 0xfc, 0x96, 0x02, - 0xd7, 0xfe, 0xf8, 0xea, 0x3d, 0x12, 0xae, 0x86, 0x78, 0x02, 0x20, 0x99, 0x4e, 0xc9, 0x24, 0x74, - 0x16, 0xc4, 0xe0, 0xb3, 0x61, 0x43, 0xcc, 0x54, 0xcb, 0xff, 0x3a, 0x44, 0x3d, 0xb7, 0x31, 0xf1, - 0x0c, 0xbd, 0x01, 0x99, 0x28, 0x20, 0x7e, 0xec, 0x4d, 0x5d, 0xd0, 0x0b, 0x56, 0x92, 0xb5, 0xf2, - 0x2d, 0xc8, 0x5a, 0x64, 0x6a, 0x46, 0x6e, 0x18, 0x5b, 0xd3, 0x17, 0xb4, 0x5e, 0x5d, 0x7b, 0x78, - 0xd2, 0x50, 0x8f, 0x5f, 0xd9, 0x4e, 0xf8, 0x31, 0x1a, 0xe3, 0x09, 0xf5, 0xd6, 0xfb, 0x27, 0xf2, - 0x65, 0xb0, 0xa9, 0x68, 0x93, 0x19, 0xfb, 0xcf, 0xce, 0x5d, 0xcc, 0xa7, 0xec, 0x3c, 0xde, 0x62, - 0xf4, 0xc3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0a, 0x11, 0xaa, 0xbd, 0xc9, 0x03, 0x00, 0x00, + // 535 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xed, 0x6e, 0xd2, 0x50, + 0x18, 0xc7, 0x2d, 0xe8, 0x36, 0x0f, 0x0a, 0xf5, 0xf8, 0x85, 0xcc, 0x97, 0x20, 0x2e, 0x0b, 0xd1, + 0xf5, 0x14, 0x50, 0xcc, 0x8c, 0x6f, 0x03, 0x56, 0x92, 0x6a, 0xa1, 0x58, 0x5e, 0x94, 0x2d, 0xda, + 0x14, 0x7a, 0xa8, 0x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b8, + 0xf1, 0xd7, 0x57, 0xef, 0xe1, 0x70, 0x39, 0xc4, 0x63, 0xc0, 0xe3, 0xe9, 0x14, 0x4f, 0x42, 0x7b, + 0x8e, 0x75, 0x36, 0x1b, 0x3a, 0xc4, 0x4c, 0xb5, 0x7c, 0xde, 0x21, 0x6a, 0xb9, 0xb5, 0x89, 0x65, + 0xf0, 0x2d, 0xc8, 0x44, 0x01, 0xf6, 0x63, 0x6f, 0xea, 0x82, 0x5e, 0xb0, 0x94, 0xac, 0x94, 0xef, + 0x40, 0xd6, 0xc4, 0x53, 0x23, 0x72, 0xc2, 0xd8, 0x9a, 0xbe, 0xa0, 0xf5, 0xfa, 0xca, 0xc3, 0x92, + 0x86, 0x0f, 0x76, 0x12, 0x06, 0xc3, 0xb3, 0xff, 0x67, 0x39, 0x7a, 0x6d, 0xd9, 0xe1, 0xa7, 0x68, + 0x8c, 0x26, 0xc4, 0x5d, 0x6d, 0xa9, 0xc0, 0x56, 0xc6, 0x22, 0x82, 0x85, 0x67, 0xf4, 0x6f, 0x3c, + 0x73, 0x7d, 0x9f, 0xd1, 0xf3, 0x78, 0x83, 0xd2, 0x8f, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0x0f, + 0x6c, 0x90, 0x2a, 0xef, 0x03, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config/redis5_0.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config/redis5_0.pbext.go new file mode 100644 index 000000000..3454ec6b2 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config/redis5_0.pbext.go @@ -0,0 +1,31 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package redis + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *RedisConfig5_0) SetMaxmemoryPolicy(v RedisConfig5_0_MaxmemoryPolicy) { + m.MaxmemoryPolicy = v +} + +func (m *RedisConfig5_0) SetTimeout(v *wrappers.Int64Value) { + m.Timeout = v +} + +func (m *RedisConfig5_0) SetPassword(v string) { + m.Password = v +} + +func (m *RedisConfigSet5_0) SetEffectiveConfig(v *RedisConfig5_0) { + m.EffectiveConfig = v +} + +func (m *RedisConfigSet5_0) SetUserConfig(v *RedisConfig5_0) { + m.UserConfig = v +} + +func (m *RedisConfigSet5_0) SetDefaultConfig(v *RedisConfig5_0) { + m.DefaultConfig = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config/redis6_0.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config/redis6_0.pb.go new file mode 100644 index 000000000..b56be6861 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config/redis6_0.pb.go @@ -0,0 +1,251 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/mdb/redis/v1/config/redis6_0.proto + +package redis + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RedisConfig6_0_MaxmemoryPolicy int32 + +const ( + RedisConfig6_0_MAXMEMORY_POLICY_UNSPECIFIED RedisConfig6_0_MaxmemoryPolicy = 0 + // Try to remove less recently used (LRU) keys with `expire set`. + RedisConfig6_0_VOLATILE_LRU RedisConfig6_0_MaxmemoryPolicy = 1 + // Remove less recently used (LRU) keys. + RedisConfig6_0_ALLKEYS_LRU RedisConfig6_0_MaxmemoryPolicy = 2 + // Try to remove least frequently used (LFU) keys with `expire set`. + RedisConfig6_0_VOLATILE_LFU RedisConfig6_0_MaxmemoryPolicy = 3 + // Remove least frequently used (LFU) keys. + RedisConfig6_0_ALLKEYS_LFU RedisConfig6_0_MaxmemoryPolicy = 4 + // Try to remove keys with `expire set` randomly. + RedisConfig6_0_VOLATILE_RANDOM RedisConfig6_0_MaxmemoryPolicy = 5 + // Remove keys randomly. + RedisConfig6_0_ALLKEYS_RANDOM RedisConfig6_0_MaxmemoryPolicy = 6 + // Try to remove less recently used (LRU) keys with `expire set` + // and shorter TTL first. + RedisConfig6_0_VOLATILE_TTL RedisConfig6_0_MaxmemoryPolicy = 7 + // Return errors when memory limit was reached and commands could require + // more memory to be used. + RedisConfig6_0_NOEVICTION RedisConfig6_0_MaxmemoryPolicy = 8 +) + +var RedisConfig6_0_MaxmemoryPolicy_name = map[int32]string{ + 0: "MAXMEMORY_POLICY_UNSPECIFIED", + 1: "VOLATILE_LRU", + 2: "ALLKEYS_LRU", + 3: "VOLATILE_LFU", + 4: "ALLKEYS_LFU", + 5: "VOLATILE_RANDOM", + 6: "ALLKEYS_RANDOM", + 7: "VOLATILE_TTL", + 8: "NOEVICTION", +} + +var RedisConfig6_0_MaxmemoryPolicy_value = map[string]int32{ + "MAXMEMORY_POLICY_UNSPECIFIED": 0, + "VOLATILE_LRU": 1, + "ALLKEYS_LRU": 2, + "VOLATILE_LFU": 3, + "ALLKEYS_LFU": 4, + "VOLATILE_RANDOM": 5, + "ALLKEYS_RANDOM": 6, + "VOLATILE_TTL": 7, + "NOEVICTION": 8, +} + +func (x RedisConfig6_0_MaxmemoryPolicy) String() string { + return proto.EnumName(RedisConfig6_0_MaxmemoryPolicy_name, int32(x)) +} + +func (RedisConfig6_0_MaxmemoryPolicy) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5861c944012bf0d1, []int{0, 0} +} + +// Fields and structure of `RedisConfig` reflects Redis configuration file +// parameters. +type RedisConfig6_0 struct { + // Redis key eviction policy for a dataset that reaches maximum memory, + // available to the host. Redis maxmemory setting depends on Managed + // Service for Redis [host class](/docs/managed-redis/concepts/instance-types). + // + // All policies are described in detail in [Redis documentation](https://redis.io/topics/lru-cache). + MaxmemoryPolicy RedisConfig6_0_MaxmemoryPolicy `protobuf:"varint,1,opt,name=maxmemory_policy,json=maxmemoryPolicy,proto3,enum=yandex.cloud.mdb.redis.v1.config.RedisConfig6_0_MaxmemoryPolicy" json:"maxmemory_policy,omitempty"` + // Time that Redis keeps the connection open while the client is idle. + // If no new command is sent during that time, the connection is closed. + Timeout *wrappers.Int64Value `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"` + // Authentication password. + Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RedisConfig6_0) Reset() { *m = RedisConfig6_0{} } +func (m *RedisConfig6_0) String() string { return proto.CompactTextString(m) } +func (*RedisConfig6_0) ProtoMessage() {} +func (*RedisConfig6_0) Descriptor() ([]byte, []int) { + return fileDescriptor_5861c944012bf0d1, []int{0} +} + +func (m *RedisConfig6_0) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RedisConfig6_0.Unmarshal(m, b) +} +func (m *RedisConfig6_0) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RedisConfig6_0.Marshal(b, m, deterministic) +} +func (m *RedisConfig6_0) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedisConfig6_0.Merge(m, src) +} +func (m *RedisConfig6_0) XXX_Size() int { + return xxx_messageInfo_RedisConfig6_0.Size(m) +} +func (m *RedisConfig6_0) XXX_DiscardUnknown() { + xxx_messageInfo_RedisConfig6_0.DiscardUnknown(m) +} + +var xxx_messageInfo_RedisConfig6_0 proto.InternalMessageInfo + +func (m *RedisConfig6_0) GetMaxmemoryPolicy() RedisConfig6_0_MaxmemoryPolicy { + if m != nil { + return m.MaxmemoryPolicy + } + return RedisConfig6_0_MAXMEMORY_POLICY_UNSPECIFIED +} + +func (m *RedisConfig6_0) GetTimeout() *wrappers.Int64Value { + if m != nil { + return m.Timeout + } + return nil +} + +func (m *RedisConfig6_0) GetPassword() string { + if m != nil { + return m.Password + } + return "" +} + +type RedisConfigSet6_0 struct { + // Effective settings for a Redis 6.0 cluster (a combination of settings + // defined in [user_config] and [default_config]). + EffectiveConfig *RedisConfig6_0 `protobuf:"bytes,1,opt,name=effective_config,json=effectiveConfig,proto3" json:"effective_config,omitempty"` + // User-defined settings for a Redis 6.0 cluster. + UserConfig *RedisConfig6_0 `protobuf:"bytes,2,opt,name=user_config,json=userConfig,proto3" json:"user_config,omitempty"` + // Default configuration for a Redis 6.0 cluster. + DefaultConfig *RedisConfig6_0 `protobuf:"bytes,3,opt,name=default_config,json=defaultConfig,proto3" json:"default_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RedisConfigSet6_0) Reset() { *m = RedisConfigSet6_0{} } +func (m *RedisConfigSet6_0) String() string { return proto.CompactTextString(m) } +func (*RedisConfigSet6_0) ProtoMessage() {} +func (*RedisConfigSet6_0) Descriptor() ([]byte, []int) { + return fileDescriptor_5861c944012bf0d1, []int{1} +} + +func (m *RedisConfigSet6_0) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RedisConfigSet6_0.Unmarshal(m, b) +} +func (m *RedisConfigSet6_0) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RedisConfigSet6_0.Marshal(b, m, deterministic) +} +func (m *RedisConfigSet6_0) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedisConfigSet6_0.Merge(m, src) +} +func (m *RedisConfigSet6_0) XXX_Size() int { + return xxx_messageInfo_RedisConfigSet6_0.Size(m) +} +func (m *RedisConfigSet6_0) XXX_DiscardUnknown() { + xxx_messageInfo_RedisConfigSet6_0.DiscardUnknown(m) +} + +var xxx_messageInfo_RedisConfigSet6_0 proto.InternalMessageInfo + +func (m *RedisConfigSet6_0) GetEffectiveConfig() *RedisConfig6_0 { + if m != nil { + return m.EffectiveConfig + } + return nil +} + +func (m *RedisConfigSet6_0) GetUserConfig() *RedisConfig6_0 { + if m != nil { + return m.UserConfig + } + return nil +} + +func (m *RedisConfigSet6_0) GetDefaultConfig() *RedisConfig6_0 { + if m != nil { + return m.DefaultConfig + } + return nil +} + +func init() { + proto.RegisterEnum("yandex.cloud.mdb.redis.v1.config.RedisConfig6_0_MaxmemoryPolicy", RedisConfig6_0_MaxmemoryPolicy_name, RedisConfig6_0_MaxmemoryPolicy_value) + proto.RegisterType((*RedisConfig6_0)(nil), "yandex.cloud.mdb.redis.v1.config.RedisConfig6_0") + proto.RegisterType((*RedisConfigSet6_0)(nil), "yandex.cloud.mdb.redis.v1.config.RedisConfigSet6_0") +} + +func init() { + proto.RegisterFile("yandex/cloud/mdb/redis/v1/config/redis6_0.proto", fileDescriptor_5861c944012bf0d1) +} + +var fileDescriptor_5861c944012bf0d1 = []byte{ + // 535 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xed, 0x6e, 0xd2, 0x50, + 0x18, 0xc7, 0x2d, 0xe8, 0x36, 0x0f, 0x0a, 0xf5, 0xf8, 0x85, 0xcc, 0x97, 0x20, 0x2e, 0x0b, 0xd1, + 0xf5, 0x14, 0x50, 0xc9, 0x8c, 0x6f, 0x03, 0x56, 0x92, 0x6a, 0xa1, 0x58, 0x5e, 0x94, 0x2d, 0xda, + 0x14, 0x7a, 0xa8, 0x8d, 0x2d, 0xa7, 0xe9, 0x0b, 0x1b, 0x1a, 0xef, 0xc4, 0x7b, 0xf1, 0x8b, 0x89, + 0xf7, 0xe3, 0x15, 0x18, 0xce, 0xa1, 0xc4, 0x1a, 0x93, 0x65, 0xfb, 0x78, 0xfe,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, 0xde, 0x21, 0x6a, 0xb9, 0xb5, 0x89, 0x65, + 0xf0, 0x2d, 0xc8, 0x44, 0x01, 0xf6, 0x63, 0x6f, 0xea, 0x82, 0x5e, 0xb0, 0x94, 0xac, 0x94, 0xef, + 0x40, 0xd6, 0xc4, 0x53, 0x23, 0x72, 0xc2, 0xd8, 0x9a, 0xbe, 0xa0, 0xf5, 0xfa, 0xca, 0xc3, 0x92, + 0x86, 0x0f, 0x76, 0x12, 0x06, 0xc3, 0xb3, 0xff, 0x67, 0x39, 0x7a, 0x6d, 0xd9, 0xe1, 0xa7, 0x68, + 0x8c, 0x26, 0xc4, 0x5d, 0x6d, 0xa9, 0xc0, 0x56, 0xc6, 0x22, 0x82, 0x85, 0x67, 0xf4, 0x6f, 0x3c, + 0x73, 0x7d, 0x9f, 0xd1, 0xf3, 0x78, 0x83, 0xd2, 0x8f, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xed, + 0x3e, 0x0c, 0x1f, 0xef, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config/redis6_0.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config/redis6_0.pbext.go new file mode 100644 index 000000000..e034f7eb9 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config/redis6_0.pbext.go @@ -0,0 +1,31 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package redis + +import ( + wrappers "github.com/golang/protobuf/ptypes/wrappers" +) + +func (m *RedisConfig6_0) SetMaxmemoryPolicy(v RedisConfig6_0_MaxmemoryPolicy) { + m.MaxmemoryPolicy = v +} + +func (m *RedisConfig6_0) SetTimeout(v *wrappers.Int64Value) { + m.Timeout = v +} + +func (m *RedisConfig6_0) SetPassword(v string) { + m.Password = v +} + +func (m *RedisConfigSet6_0) SetEffectiveConfig(v *RedisConfig6_0) { + m.EffectiveConfig = v +} + +func (m *RedisConfigSet6_0) SetUserConfig(v *RedisConfig6_0) { + m.UserConfig = v +} + +func (m *RedisConfigSet6_0) SetDefaultConfig(v *RedisConfig6_0) { + m.DefaultConfig = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/resource_preset.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/resource_preset.pb.go index bbc78199f..dc3f7dd47 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/resource_preset.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/resource_preset.pb.go @@ -88,18 +88,18 @@ func init() { } var fileDescriptor_2997d340901a0fe3 = []byte{ - // 196 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0xcf, 0xb1, 0x6b, 0x84, 0x30, - 0x14, 0xc7, 0x71, 0x54, 0xb0, 0x35, 0x83, 0x43, 0x86, 0xa2, 0x9b, 0x74, 0x72, 0x31, 0x41, 0x3a, - 0x76, 0x6b, 0xe9, 0xd0, 0xad, 0xa4, 0x5b, 0x17, 0x69, 0x7c, 0x0f, 0x2f, 0x70, 0xf1, 0x49, 0xa2, - 0x72, 0xde, 0x5f, 0x7f, 0x5c, 0x74, 0xbd, 0x2d, 0x3f, 0xc8, 0x07, 0xbe, 0x8f, 0xc9, 0xed, 0x7f, - 0x04, 0xbc, 0xc8, 0xfe, 0x4c, 0x0b, 0x48, 0x0b, 0x5a, 0x3a, 0x04, 0xe3, 0xe5, 0xda, 0x4a, 0x87, - 0x9e, 0x16, 0xd7, 0x63, 0x37, 0x39, 0xf4, 0x38, 0x8b, 0xc9, 0xd1, 0x4c, 0xbc, 0xdc, 0x81, 0x08, - 0x40, 0x58, 0xd0, 0x22, 0x00, 0xb1, 0xb6, 0xaf, 0xbf, 0x2c, 0x57, 0x87, 0xf9, 0x09, 0x84, 0xe7, - 0x2c, 0x36, 0x50, 0x44, 0x55, 0x54, 0x67, 0x2a, 0x36, 0xc0, 0x4b, 0xf6, 0x7c, 0xa5, 0x11, 0x3b, - 0x03, 0xbe, 0x88, 0xab, 0xa4, 0xce, 0xd4, 0xd3, 0x7d, 0x7f, 0x83, 0xe7, 0x2f, 0x2c, 0xb5, 0x68, - 0xc9, 0x6d, 0x45, 0x52, 0x45, 0x75, 0xa2, 0x8e, 0xf5, 0xf1, 0xf5, 0xf7, 0x39, 0x98, 0xf9, 0xb4, - 0x68, 0xd1, 0x93, 0x3d, 0x6a, 0x9b, 0xbd, 0x76, 0xa0, 0x66, 0xc0, 0x31, 0x64, 0x3d, 0x3e, 0xe3, - 0x3d, 0x3c, 0x74, 0x1a, 0xbe, 0xbd, 0xdd, 0x02, 0x00, 0x00, 0xff, 0xff, 0xd4, 0x43, 0x43, 0x57, - 0xf0, 0x00, 0x00, 0x00, + // 203 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x8f, 0x31, 0x4f, 0x80, 0x30, + 0x10, 0x85, 0x03, 0x24, 0x28, 0x1d, 0x18, 0x3a, 0x18, 0x18, 0x4c, 0x88, 0x13, 0x0b, 0x6d, 0x88, + 0xa3, 0x9b, 0x4e, 0x6e, 0xa6, 0x6e, 0x2e, 0x84, 0x72, 0x17, 0x6c, 0x62, 0x39, 0xd2, 0x02, 0x11, + 0x7f, 0xbd, 0xb1, 0xb0, 0x30, 0xb8, 0xdd, 0x4b, 0xee, 0xcb, 0x7b, 0x1f, 0x93, 0x7b, 0x3f, 0x01, + 0x7e, 0xcb, 0xe1, 0x8b, 0x56, 0x90, 0x16, 0xb4, 0x74, 0x08, 0xc6, 0xcb, 0xad, 0x95, 0x0e, 0x3d, + 0xad, 0x6e, 0xc0, 0x6e, 0x76, 0xe8, 0x71, 0x11, 0xb3, 0xa3, 0x85, 0x78, 0x79, 0x00, 0x22, 0x00, + 0xc2, 0x82, 0x16, 0x01, 0x10, 0x5b, 0xfb, 0xf0, 0xce, 0x72, 0x75, 0x32, 0x6f, 0x01, 0xe1, 0x39, + 0x8b, 0x0d, 0x14, 0x51, 0x15, 0xd5, 0x99, 0x8a, 0x0d, 0xf0, 0x92, 0xdd, 0xfe, 0xd0, 0x84, 0x9d, + 0x01, 0x5f, 0xc4, 0x55, 0x52, 0x67, 0xea, 0xe6, 0x2f, 0xbf, 0x82, 0xe7, 0x77, 0x2c, 0xb5, 0x68, + 0xc9, 0xed, 0x45, 0x52, 0x45, 0x75, 0xa2, 0xce, 0xf4, 0x0c, 0xec, 0xfe, 0xd2, 0xd8, 0xcf, 0xe6, + 0xd2, 0xfa, 0xf1, 0x32, 0x9a, 0xe5, 0x73, 0xd5, 0x62, 0x20, 0x7b, 0xca, 0x34, 0x87, 0xcc, 0x48, + 0xcd, 0x88, 0x53, 0x58, 0xfd, 0xbf, 0xe5, 0x53, 0x38, 0x74, 0x1a, 0xde, 0x1e, 0x7f, 0x03, 0x00, + 0x00, 0xff, 0xff, 0xf2, 0xc6, 0xfa, 0x9c, 0x0f, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/resource_preset.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/resource_preset.pbext.go new file mode 100644 index 000000000..cabb92b5f --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/resource_preset.pbext.go @@ -0,0 +1,15 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package redis + +func (m *ResourcePreset) SetId(v string) { + m.Id = v +} + +func (m *ResourcePreset) SetZoneIds(v []string) { + m.ZoneIds = v +} + +func (m *ResourcePreset) SetMemory(v int64) { + m.Memory = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/resource_preset_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/resource_preset_service.pb.go index 36cec3734..a90f4c7f3 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/resource_preset_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/resource_preset_service.pb.go @@ -182,44 +182,44 @@ func init() { } var fileDescriptor_1fffc675283e9ab1 = []byte{ - // 433 bytes of a gzipped FileDescriptorProto + // 441 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xc1, 0x6a, 0xd5, 0x40, - 0x14, 0x86, 0x99, 0x9b, 0x22, 0x76, 0x44, 0x5a, 0x06, 0x84, 0x98, 0x5a, 0xb8, 0x46, 0x90, 0xdb, - 0xc5, 0x9d, 0xe1, 0xde, 0x62, 0x15, 0x04, 0x17, 0x15, 0x29, 0x82, 0x48, 0x49, 0xbb, 0x10, 0x37, - 0x61, 0x92, 0x39, 0xc4, 0xc1, 0x9b, 0x99, 0x98, 0x99, 0x84, 0x5a, 0x71, 0xe3, 0x2b, 0xb8, 0x74, - 0xe3, 0xc6, 0x67, 0xf1, 0x01, 0x7c, 0x03, 0x71, 0xe1, 0x63, 0x48, 0x26, 0x29, 0x98, 0xd4, 0xd4, - 0x76, 0x17, 0x4e, 0xe6, 0xfb, 0xcf, 0x7f, 0xe6, 0x3f, 0x83, 0x1f, 0xbe, 0xe7, 0x4a, 0xc0, 0x09, - 0x4b, 0x57, 0xba, 0x12, 0x2c, 0x17, 0x09, 0x2b, 0x41, 0x48, 0xc3, 0xea, 0x05, 0x2b, 0xc1, 0xe8, - 0xaa, 0x4c, 0x21, 0x2e, 0x4a, 0x30, 0x60, 0x63, 0x03, 0x65, 0x2d, 0x53, 0xa0, 0x45, 0xa9, 0xad, - 0x26, 0xb7, 0x5b, 0x90, 0x3a, 0x90, 0xe6, 0x22, 0x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, 0x5b, 0x9b, 0x42, 0x2b, 0x03, 0xe4, 0x04, 0x6f, 0x0f, + 0xdc, 0x1a, 0x1f, 0xcd, 0xbc, 0xf9, 0x8d, 0xd5, 0x2e, 0x1d, 0xbd, 0x6d, 0x3a, 0x98, 0x7c, 0xab, + 0x3f, 0x90, 0x21, 0xf7, 0xf1, 0x96, 0x82, 0x53, 0x1b, 0xff, 0xe1, 0x6c, 0xe2, 0x9c, 0xdd, 0x6c, + 0xca, 0x47, 0xe7, 0xee, 0x56, 0x3f, 0x26, 0xf8, 0x56, 0xbf, 0xd7, 0x71, 0x1b, 0x38, 0xf9, 0x8a, + 0xb0, 0x77, 0x08, 0x96, 0xec, 0x5d, 0xe2, 0x62, 0x2c, 0x82, 0xe0, 0xea, 0xd6, 0xc3, 0x27, 0x1f, + 0xbf, 0xff, 0xfc, 0x34, 0x79, 0x44, 0xf6, 0x59, 0xce, 0x15, 0xcf, 0x40, 0x2c, 0x2e, 0x6c, 0x46, + 0x37, 0x14, 0x7b, 0x7f, 0x31, 0xd6, 0x0f, 0xe4, 0x0b, 0xc2, 0x1b, 0xcd, 0xfd, 0x92, 0x07, 0x97, + 0x68, 0x8e, 0x67, 0x1b, 0xec, 0xff, 0x2f, 0xd6, 0xe6, 0x16, 0xee, 0x3a, 0xdf, 0xf7, 0xc8, 0xdd, + 0x7f, 0xfa, 0x3e, 0x10, 0x78, 0xda, 0xd3, 0xe0, 0x85, 0xec, 0xe9, 0xbc, 0x7a, 0x9a, 0x49, 0xfb, + 0xba, 0x4a, 0x68, 0xaa, 0xf3, 0xee, 0xa1, 0x2c, 0xda, 0xbd, 0xcf, 0xf4, 0x22, 0x03, 0xe5, 0x56, + 0x7e, 0xfc, 0x05, 0x3d, 0x76, 0x1f, 0xc9, 0x35, 0x77, 0x6c, 0xef, 0x77, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x9a, 0x47, 0x90, 0x86, 0xdd, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // ResourcePresetServiceClient is the client API for ResourcePresetService service. // @@ -234,10 +234,10 @@ type ResourcePresetServiceClient interface { } type resourcePresetServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewResourcePresetServiceClient(cc *grpc.ClientConn) ResourcePresetServiceClient { +func NewResourcePresetServiceClient(cc grpc.ClientConnInterface) ResourcePresetServiceClient { return &resourcePresetServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/resource_preset_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/resource_preset_service.pbext.go new file mode 100644 index 000000000..f38833581 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/resource_preset_service.pbext.go @@ -0,0 +1,23 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package redis + +func (m *GetResourcePresetRequest) SetResourcePresetId(v string) { + m.ResourcePresetId = v +} + +func (m *ListResourcePresetsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListResourcePresetsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListResourcePresetsResponse) SetResourcePresets(v []*ResourcePreset) { + m.ResourcePresets = v +} + +func (m *ListResourcePresetsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/operation/operation.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/operation/operation.pb.go index cd1b03085..83d63ff1a 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/operation/operation.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/operation/operation.pb.go @@ -184,27 +184,27 @@ func init() { } var fileDescriptor_8a0501b73987a137 = []byte{ - // 345 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x4d, 0x4b, 0xeb, 0x40, - 0x14, 0x86, 0x9b, 0x7e, 0xdd, 0x64, 0x0a, 0x77, 0x31, 0x5c, 0xae, 0x63, 0x41, 0x0c, 0x2e, 0xa4, - 0x08, 0x9d, 0x48, 0x5d, 0x49, 0x57, 0x2d, 0x22, 0xdd, 0x09, 0xd1, 0x95, 0x1b, 0x99, 0x64, 0x4e, - 0xe3, 0x40, 0x93, 0x09, 0x93, 0x13, 0x30, 0x7b, 0x7f, 0xb8, 0x38, 0xd3, 0xa4, 0xe2, 0x07, 0xee, - 0x0e, 0xf3, 0x3e, 0xe7, 0x79, 0x61, 0x38, 0xe4, 0xbc, 0x11, 0x85, 0x84, 0x97, 0x28, 0xdd, 0xe9, - 0x5a, 0x46, 0xba, 0x04, 0x23, 0x50, 0xe9, 0xe2, 0x30, 0xf1, 0xd2, 0x68, 0xd4, 0xf4, 0xbf, 0xe3, - 0xb8, 0xe5, 0x78, 0x97, 0x4e, 0x8f, 0x33, 0xad, 0xb3, 0x1d, 0x44, 0x96, 0x4a, 0xea, 0x6d, 0x24, - 0x8a, 0xc6, 0xad, 0x4c, 0x8f, 0xf6, 0x91, 0x29, 0xd3, 0xa8, 0x42, 0x81, 0x75, 0xb5, 0x0f, 0x4e, - 0x3f, 0xef, 0xa0, 0xca, 0xa1, 0x42, 0x91, 0x97, 0x0e, 0x38, 0x7b, 0x1d, 0x90, 0xe0, 0xae, 0xad, - 0xa0, 0x7f, 0x49, 0x5f, 0x49, 0xe6, 0x85, 0xde, 0x2c, 0x88, 0xfb, 0x4a, 0xd2, 0x90, 0x4c, 0x24, - 0x54, 0xa9, 0x51, 0xe5, 0x7b, 0xcc, 0xfa, 0x36, 0xf8, 0xf8, 0x44, 0xaf, 0x09, 0x49, 0x0d, 0x08, - 0x04, 0xf9, 0x24, 0x90, 0x0d, 0x42, 0x6f, 0x36, 0x59, 0x4c, 0xb9, 0x6b, 0xe5, 0x6d, 0x2b, 0x7f, - 0x68, 0x5b, 0xe3, 0x60, 0x4f, 0xaf, 0x90, 0x9e, 0x1c, 0x56, 0x93, 0x86, 0x0d, 0xad, 0xbb, 0x8d, - 0xd7, 0x0d, 0x5d, 0x92, 0x49, 0xae, 0xa5, 0xda, 0x2a, 0xa7, 0x1e, 0xfd, 0xaa, 0x26, 0x2d, 0xbe, - 0x42, 0x4a, 0xc9, 0x50, 0xea, 0x02, 0xd8, 0x38, 0xf4, 0x66, 0x7e, 0x6c, 0x67, 0x7a, 0x49, 0xfc, - 0x1c, 0x50, 0x48, 0x81, 0x82, 0xfd, 0xb1, 0xb6, 0x7f, 0x5f, 0x6c, 0xab, 0xa2, 0x89, 0x3b, 0x8a, - 0x5e, 0x90, 0x11, 0x18, 0xa3, 0x0d, 0xf3, 0x2d, 0x4e, 0x5b, 0xdc, 0x94, 0x29, 0xbf, 0xb7, 0xdf, - 0xbc, 0xe9, 0xc5, 0x0e, 0xa1, 0x0b, 0xe2, 0x1b, 0xa8, 0x4a, 0x5d, 0x54, 0xc0, 0x82, 0x9f, 0xed, - 0x9b, 0x5e, 0xdc, 0x71, 0x6b, 0x9f, 0x8c, 0x0d, 0x54, 0xf5, 0x0e, 0xd7, 0xb7, 0x8f, 0x37, 0x99, - 0xc2, 0xe7, 0x3a, 0xe1, 0xa9, 0xce, 0x23, 0x77, 0x00, 0x73, 0x77, 0x28, 0x99, 0x9e, 0x67, 0x50, - 0x58, 0x47, 0xf4, 0xfd, 0x05, 0x2d, 0xbb, 0x29, 0x19, 0x5b, 0xee, 0xea, 0x2d, 0x00, 0x00, 0xff, - 0xff, 0x31, 0x4a, 0xd9, 0x89, 0x6c, 0x02, 0x00, 0x00, + // 350 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x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0x60, 0x47, 0x2f, 0x01, 0x9f, 0xed, 0x57, 0xd3, 0x86, 0x0c, 0xad, 0xbb, 0x8d, 0x57, 0x0d, 0x5e, + 0xa0, 0x49, 0xa1, 0xb8, 0xdc, 0x48, 0xa7, 0x1e, 0xfd, 0xab, 0x46, 0x2d, 0xbe, 0x04, 0x8c, 0xd1, + 0x90, 0xab, 0x52, 0x90, 0x71, 0xe4, 0x4d, 0xfd, 0xc4, 0xce, 0xf8, 0x1a, 0xf9, 0x85, 0x00, 0xc6, + 0x19, 0x30, 0x72, 0x60, 0x6d, 0x47, 0x3f, 0x6c, 0xcb, 0xb2, 0x49, 0x3a, 0x0a, 0x5f, 0xa1, 0x91, + 0x30, 0x46, 0x19, 0xe2, 0x5b, 0x1c, 0xb7, 0xb8, 0xd1, 0x19, 0x7d, 0xb0, 0xbf, 0x79, 0xdd, 0x4b, + 0x1c, 0x82, 0xe7, 0xc8, 0x37, 0xa2, 0xd2, 0xaa, 0xac, 0x04, 0x09, 0xfe, 0xb6, 0xaf, 0x7b, 0x49, + 0xc7, 0xad, 0x7c, 0x34, 0x36, 0xa2, 0xaa, 0xb7, 0xb0, 0x4a, 0x51, 0xf8, 0xe5, 0xd5, 0x99, 0x96, + 0xfb, 0x97, 0x7f, 0xba, 0xcb, 0x25, 0xbc, 0xd4, 0x29, 0xcd, 0x54, 0x11, 0x3b, 0x6c, 0xe6, 0x8e, + 0x28, 0x57, 0xb3, 0x5c, 0x94, 0xd6, 0x1f, 0xff, 0x7e, 0x5d, 0x8b, 0x6e, 0x4a, 0xc7, 0x96, 0xbb, + 0x79, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x10, 0xa6, 0x51, 0xfd, 0x88, 0x02, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/operation/operation.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/operation/operation.pbext.go new file mode 100644 index 000000000..b54c7e6a1 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/operation/operation.pbext.go @@ -0,0 +1,55 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package operation + +import ( + any "github.com/golang/protobuf/ptypes/any" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + status "google.golang.org/genproto/googleapis/rpc/status" +) + +type Operation_Result = isOperation_Result + +func (m *Operation) SetResult(v Operation_Result) { + m.Result = v +} + +func (m *Operation) SetId(v string) { + m.Id = v +} + +func (m *Operation) SetDescription(v string) { + m.Description = v +} + +func (m *Operation) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Operation) SetCreatedBy(v string) { + m.CreatedBy = v +} + +func (m *Operation) SetModifiedAt(v *timestamp.Timestamp) { + m.ModifiedAt = v +} + +func (m *Operation) SetDone(v bool) { + m.Done = v +} + +func (m *Operation) SetMetadata(v *any.Any) { + m.Metadata = v +} + +func (m *Operation) SetError(v *status.Status) { + m.Result = &Operation_Error{ + Error: v, + } +} + +func (m *Operation) SetResponse(v *any.Any) { + m.Result = &Operation_Response{ + Response: v, + } +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/operation/operation_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/operation/operation_service.pb.go index c65b147a3..d5f0ce20e 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/operation/operation_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/operation/operation_service.pb.go @@ -116,7 +116,7 @@ func init() { } var fileDescriptor_65df5639ee3bf772 = []byte{ - // 291 bytes of a gzipped FileDescriptorProto + // 300 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xab, 0x4c, 0xcc, 0x4b, 0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0xcf, 0x2f, 0x48, 0x2d, 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0x43, 0xb0, 0xe2, 0x8b, 0x53, 0x8b, 0xca, 0x32, 0x93, 0x53, 0xf5, 0x0a, 0x8a, 0xf2, @@ -131,20 +131,20 @@ var fileDescriptor_65df5639ee3bf772 = []byte{ 0xec, 0x81, 0xa3, 0x87, 0xc5, 0xd1, 0x52, 0x8a, 0xb8, 0x14, 0xc3, 0x55, 0x2a, 0x29, 0x35, 0x5d, 0x7e, 0x32, 0x99, 0x49, 0x46, 0x48, 0x0a, 0x11, 0x4e, 0xc5, 0xfa, 0xd5, 0xc8, 0xee, 0xac, 0x15, 0x6a, 0x63, 0xe4, 0x62, 0x83, 0xf8, 0x49, 0x48, 0x0f, 0x97, 0x89, 0xd8, 0xfd, 0x4c, 0x8c, 0x0b, - 0x34, 0xc1, 0x2e, 0x50, 0x16, 0x52, 0xc4, 0xed, 0x02, 0xab, 0x64, 0xb0, 0xe9, 0x4e, 0x6e, 0x51, - 0x2e, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x10, 0x93, 0x75, 0x21, - 0xf1, 0x98, 0x9e, 0xaf, 0x9b, 0x9e, 0x9a, 0x07, 0x8e, 0x42, 0x7d, 0xec, 0x09, 0xc1, 0x1a, 0xce, - 0x4a, 0x62, 0x03, 0xab, 0x33, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xc5, 0xa7, 0x20, 0x3f, 0x99, - 0x02, 0x00, 0x00, + 0x34, 0xc1, 0x2e, 0x50, 0x16, 0x52, 0xc4, 0xed, 0x02, 0xab, 0x64, 0xb0, 0xe9, 0x4e, 0x49, 0x5c, + 0x52, 0x28, 0xc6, 0x25, 0x16, 0x64, 0x22, 0x8c, 0x8c, 0x72, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, + 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x87, 0x28, 0xd3, 0x85, 0xc4, 0x71, 0x7a, 0xbe, 0x6e, 0x7a, 0x6a, + 0x1e, 0x38, 0x7a, 0xf5, 0xb1, 0x27, 0x12, 0x6b, 0x38, 0x2b, 0x89, 0x0d, 0xac, 0xce, 0x18, 0x10, + 0x00, 0x00, 0xff, 0xff, 0xef, 0x19, 0xb0, 0x03, 0xb5, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // OperationServiceClient is the client API for OperationService service. // @@ -157,10 +157,10 @@ type OperationServiceClient interface { } type operationServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewOperationServiceClient(cc *grpc.ClientConn) OperationServiceClient { +func NewOperationServiceClient(cc grpc.ClientConnInterface) OperationServiceClient { return &operationServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/operation/operation_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/operation/operation_service.pbext.go new file mode 100644 index 000000000..81b5e4297 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/operation/operation_service.pbext.go @@ -0,0 +1,11 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package operation + +func (m *GetOperationRequest) SetOperationId(v string) { + m.OperationId = v +} + +func (m *CancelOperationRequest) SetOperationId(v string) { + m.OperationId = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/cloud.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/cloud.pb.go index 9c1326bc3..5b6818325 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/cloud.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/cloud.pb.go @@ -98,20 +98,21 @@ func init() { } var fileDescriptor_d0119578dc2f92ce = []byte{ - // 235 bytes of a gzipped FileDescriptorProto + // 244 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0xc1, 0x4a, 0x03, 0x31, - 0x10, 0x86, 0xd9, 0xb5, 0x0a, 0x4d, 0xc1, 0x43, 0x4e, 0xa1, 0x97, 0x2e, 0x9e, 0x0a, 0xd2, 0x84, - 0xea, 0x49, 0x3c, 0xa9, 0x6f, 0x50, 0xf5, 0xe2, 0x45, 0xb2, 0xc9, 0x18, 0x03, 0x4d, 0x66, 0xc9, - 0x4e, 0x8a, 0xbe, 0x81, 0x8f, 0x2d, 0x26, 0x16, 0x64, 0x2f, 0xde, 0xc2, 0x3f, 0xdf, 0x7c, 0x61, - 0x7e, 0x76, 0xf9, 0xa9, 0xa3, 0x85, 0x0f, 0x65, 0xf6, 0x98, 0xad, 0x4a, 0x30, 0x62, 0x4e, 0x06, - 0x82, 0x8e, 0xda, 0x41, 0x52, 0x87, 0x6d, 0x1d, 0xc8, 0x21, 0x21, 0x21, 0x5f, 0x55, 0x58, 0xd6, - 0x6c, 0x02, 0xcb, 0xc3, 0x76, 0xb9, 0x72, 0x88, 0x6e, 0x0f, 0xaa, 0xe0, 0x7d, 0x7e, 0x53, 0xe4, - 0x03, 0x8c, 0xa4, 0xc3, 0x50, 0x0d, 0x17, 0x5f, 0x0d, 0x3b, 0x7d, 0xf8, 0xd9, 0xe6, 0xe7, 0xac, - 0xf5, 0x56, 0x34, 0x5d, 0xb3, 0x9e, 0xef, 0x5a, 0x6f, 0xf9, 0x0d, 0x63, 0x26, 0x81, 0x26, 0xb0, - 0xaf, 0x9a, 0x44, 0xdb, 0x35, 0xeb, 0xc5, 0xd5, 0x52, 0x56, 0x9f, 0x3c, 0xfa, 0xe4, 0xd3, 0xd1, - 0xb7, 0x9b, 0xff, 0xd2, 0x77, 0xc4, 0x39, 0x9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 0x55, 0x5b, 0x2d, 0xa7, 0x9b, 0xda, 0x19, 0x7e, 0xcd, 0x98, 0x8e, 0xa0, 0x08, + 0xcc, 0xb3, 0xa2, 0xa6, 0x6e, 0xab, 0xe5, 0xec, 0x72, 0x2e, 0x8a, 0x4f, 0xec, 0x7d, 0xe2, 0x71, + 0xef, 0xdb, 0x4c, 0x7f, 0xe8, 0x5b, 0xe2, 0x9c, 0x4d, 0x82, 0xf2, 0xd0, 0x1c, 0x65, 0x59, 0x7e, + 0xf3, 0x96, 0xcd, 0x0c, 0x0c, 0x3a, 0xba, 0x9e, 0x1c, 0x86, 0x66, 0x92, 0x47, 0xbf, 0xa3, 0xbb, + 0x0f, 0x76, 0xfe, 0xe7, 0x1c, 0xd5, 0xbb, 0x7f, 0x4e, 0x7a, 0x7a, 0xb0, 0x8e, 0x5e, 0x53, 0x27, + 0x34, 0x7a, 0x59, 0xf8, 0x55, 0xe9, 0xca, 0xe2, 0xca, 0x42, 0xc8, 0x3f, 0x93, 0x07, 0x4a, 0xbc, + 0x19, 0x45, 0xdd, 0x49, 0x5e, 0xbb, 0xfa, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xd7, 0x84, 0xe5, 0x1e, + 0x7e, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/cloud.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/cloud.pbext.go new file mode 100644 index 000000000..2ad32734c --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/cloud.pbext.go @@ -0,0 +1,23 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package resourcemanager + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Cloud) SetId(v string) { + m.Id = v +} + +func (m *Cloud) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Cloud) SetName(v string) { + m.Name = v +} + +func (m *Cloud) SetDescription(v string) { + m.Description = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/cloud_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/cloud_service.pb.go index 0415d1385..90decd6a5 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/cloud_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/cloud_service.pb.go @@ -431,71 +431,72 @@ func init() { } var fileDescriptor_c0ca0d4f81d9e76e = []byte{ - // 879 bytes of a gzipped FileDescriptorProto + // 886 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcf, 0x8f, 0xdb, 0x44, - 0x18, 0xd5, 0x6c, 0xd2, 0xd0, 0xfd, 0x52, 0xa8, 0x3a, 0x80, 0x14, 0xdc, 0x56, 0x0d, 0x5e, 0x29, - 0x84, 0x2c, 0xfe, 0x95, 0xa8, 0x45, 0xbb, 0x49, 0x17, 0x9a, 0x02, 0x15, 0x12, 0x15, 0xe0, 0xd0, - 0x0b, 0xab, 0x2a, 0x9a, 0x8d, 0x67, 0x8d, 0xb5, 0x89, 0x6d, 0x3c, 0x4e, 0xd4, 0xa6, 0xf4, 0x02, - 0x17, 0xc8, 0x85, 0x03, 0x1c, 0xf8, 0x3b, 0x96, 0x23, 0x77, 0x76, 0xcf, 0xcb, 0x95, 0x03, 0x07, - 0x0e, 0x48, 0xdc, 0xb8, 0x20, 0x71, 0x42, 0x1e, 0xff, 0xd8, 0xc4, 0xc9, 0x6e, 0x9c, 0x3d, 0x25, - 0xf6, 0xf7, 0xde, 0x7c, 0xef, 0x3d, 0x7f, 0x33, 0x36, 0x34, 0x9e, 0x12, 0xdb, 0xa0, 0x4f, 0x94, - 0x5e, 0xdf, 0x19, 0x1a, 0x8a, 0x47, 0x99,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x36, 0x2c, 0xdb, 0x64, 0x58, 0x5e, 0xd4, + 0x13, 0x7d, 0x69, 0x2d, 0x03, 0x63, 0xfd, 0x4a, 0x6e, 0x7c, 0x24, 0xf9, 0x3d, 0x2e, 0x79, 0x0f, + 0x77, 0xce, 0x94, 0x1c, 0xd7, 0x78, 0xec, 0xc3, 0x65, 0x99, 0xff, 0x20, 0xb8, 0xd4, 0xa3, 0xe9, + 0xb7, 0x52, 0xa6, 0x98, 0x25, 0xdc, 0x1a, 0x13, 0xf4, 0x2d, 0x7a, 0xfc, 0xa4, 0xb1, 0x03, 0x95, + 0x67, 0x1d, 0x95, 0xcc, 0xd3, 0xab, 0xe9, 0x6b, 0xec, 0xfd, 0x91, 0xeb, 0x3f, 0xe0, 0x5e, 0xdf, + 0x15, 0xdb, 0xf9, 0xbd, 0xb2, 0x74, 0x87, 0x60, 0xe8, 0xfe, 0x43, 0xf0, 0x4a, 0x38, 0xc4, 0x29, + 0xc3, 0x6a, 0xa6, 0xe1, 0x2c, 0xe8, 0x1a, 0x9e, 0xbf, 0x0f, 0x3c, 0x77, 0xa0, 0x7a, 0xc6, 0x69, + 0x79, 0x6c, 0xdf, 0x16, 0xf7, 0xf2, 0xdb, 0x1e, 0x67, 0x34, 0xd9, 0x45, 0x8d, 0xee, 0x14, 0xaa, + 0x8b, 0x0e, 0x5d, 0x2b, 0x63, 0x47, 0xbe, 0xe8, 0x99, 0x96, 0xff, 0xe5, 0xf8, 0x40, 0x1e, 0x38, + 0x23, 0x25, 0xc4, 0x4b, 0xe1, 0x2f, 0x26, 0xd3, 0x91, 0x4c, 0x6a, 0x73, 0x75, 0xca, 0x8a, 0xdf, + 0x78, 0xed, 0xd4, 0xab, 0x83, 0x22, 0xa7, 0xb5, 0x9e, 0x06, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x80, + 0x26, 0x44, 0xb3, 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // CloudServiceClient is the client API for CloudService service. // @@ -520,10 +521,10 @@ type CloudServiceClient interface { } type cloudServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewCloudServiceClient(cc *grpc.ClientConn) CloudServiceClient { +func NewCloudServiceClient(cc grpc.ClientConnInterface) CloudServiceClient { return &cloudServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/cloud_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/cloud_service.pbext.go new file mode 100644 index 000000000..478610345 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/cloud_service.pbext.go @@ -0,0 +1,72 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package resourcemanager + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetCloudRequest) SetCloudId(v string) { + m.CloudId = v +} + +func (m *ListCloudsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListCloudsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListCloudsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListCloudsResponse) SetClouds(v []*Cloud) { + m.Clouds = v +} + +func (m *ListCloudsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListCloudOperationsRequest) SetCloudId(v string) { + m.CloudId = v +} + +func (m *ListCloudOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListCloudOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListCloudOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListCloudOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *UpdateCloudRequest) SetCloudId(v string) { + m.CloudId = v +} + +func (m *UpdateCloudRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateCloudRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateCloudRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateCloudMetadata) SetCloudId(v string) { + m.CloudId = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/folder.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/folder.pb.go index 016177c05..38d372761 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/folder.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/folder.pb.go @@ -158,30 +158,31 @@ func init() { } var fileDescriptor_9276a68d990352f2 = []byte{ - // 394 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6e, 0x9b, 0x40, - 0x10, 0x86, 0x0b, 0x24, 0x24, 0x19, 0xaa, 0x08, 0xad, 0xaa, 0x8a, 0xfa, 0x12, 0x94, 0x13, 0x87, - 0x66, 0x57, 0x71, 0x2e, 0x4d, 0x7a, 0x72, 0x13, 0x5c, 0xa1, 0x46, 0x51, 0x05, 0xb8, 0x87, 0x5e, - 0xac, 0x85, 0x5d, 0x53, 0x54, 0x60, 0xad, 0x65, 0xb1, 0xea, 0xb7, 0xea, 0x23, 0x56, 0xdd, 0xc5, - 0x92, 0xe5, 0x8b, 0x73, 0x9b, 0x19, 0xfe, 0xff, 0x1b, 0x66, 0x76, 0xe0, 0xe3, 0x96, 0x76, 0x8c, - 0xff, 0x21, 0x65, 0x23, 0x06, 0x46, 0x24, 0xef, 0xc5, 0x20, 0x4b, 0xde, 0xd2, 0x8e, 0x56, 0x5c, - 0x92, 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07, 0xe7, 0x37, 0xdf, 0x8e, 0x0b, 0xfc, 0x1f, 0xa2, 0x77, - 0x70, 0xba, 0xa1, 0xcd, 0xc0, 0xc7, 0xf5, 0x99, 0xe4, 0xc1, 0xfe, 0x64, 0x5d, 0x3f, 0x80, 0x6b, - 0x60, 0xe8, 0x3d, 0xa0, 0x2c, 0x9f, 0xe5, 0x8b, 0x6c, 0xb9, 0x78, 0xc9, 0xbe, 0xc7, 0x8f, 0xc9, - 0x3c, 0x89, 0x9f, 0xfc, 0x37, 0x08, 0xc0, 0x9d, 0x3d, 0xe6, 0xc9, 0x8f, 0xd8, 0xb7, 0xd0, 0x5b, - 0x38, 0x7f, 0x8a, 0x9f, 0xe3, 0x3c, 0x79, 0xf9, 0xea, 0xdb, 0x5f, 0x16, 0x3f, 0xb3, 0xaa, 0x56, - 0xbf, 0x86, 0x02, 0x97, 0xa2, 0x25, 0xe6, 0xd7, 0x6f, 0xcc, 0xbd, 0x54, 0xe2, 0xa6, 0xe2, 0x9d, - 0x7e, 0x00, 0x72, 0xe4, 0x90, 0x3e, 0x1f, 0x94, 0x0a, 0x57, 0xdb, 0xee, 0xfe, 0x05, 0x00, 0x00, - 0xff, 0xff, 0x91, 0xd1, 0x66, 0x6f, 0x82, 0x02, 0x00, 0x00, + // 404 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcf, 0x6f, 0x94, 0x40, + 0x14, 0xc7, 0x85, 0x6d, 0x69, 0xfb, 0x30, 0x0d, 0x99, 0x18, 0x83, 0x7b, 0x29, 0xa9, 0x17, 0x0e, + 0x76, 0x26, 0xdd, 0x5e, 0x6c, 0x3d, 0xad, 0x2d, 0x6b, 0x88, 0x4d, 0x63, 0x80, 0x7a, 0xf0, 0xb2, + 0x19, 0x98, 0x29, 0x4e, 0x04, 0x86, 0x0c, 0xc3, 0xc6, 0xf5, 0xaf, 0xf2, 0x4f, 0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x1d, 0x0a, 0x5f, 0x1b, 0x57, 0xd2, 0x69, 0xb5, 0xcd, 0x26, 0x04, 0x5a, 0x81, 0x37, + 0x68, 0xaa, 0xc7, 0x21, 0xdc, 0x8b, 0x9c, 0xf8, 0x70, 0x81, 0x9f, 0x0b, 0xcb, 0x8d, 0x2b, 0x9b, + 0xdc, 0xf3, 0x73, 0xf0, 0x1f, 0xe0, 0x51, 0x00, 0xb3, 0x1f, 0x7c, 0x3b, 0x2d, 0xf0, 0xef, 0x13, + 0xbd, 0x82, 0xdd, 0x0d, 0x6d, 0x46, 0x3e, 0xad, 0xcf, 0x06, 0x17, 0xee, 0x7b, 0xe7, 0xf8, 0x02, + 0x3c, 0x0b, 0x43, 0xaf, 0x01, 0xe5, 0xc5, 0xb2, 0xb8, 0xcd, 0xd7, 0xb7, 0x37, 0xf9, 0x97, 0xe4, + 0x32, 0x5d, 0xa5, 0xc9, 0x55, 0xf0, 0x02, 0x01, 0x78, 0xcb, 0xcb, 0x22, 0xfd, 0x9a, 0x04, 0x0e, + 0x7a, 0x09, 0xfb, 0x57, 0xc9, 0x75, 0x52, 0xa4, 0x37, 0x9f, 0x02, 0xf7, 0xe3, 0x2f, 0x78, 0xfb, + 0x4f, 0xbf, 0xb4, 0x17, 0xff, 0xe9, 0xf9, 0x5b, 0x5e, 0x0b, 0xfd, 0x7d, 0x2c, 0x71, 0x25, 0x5b, + 0x62, 0xf5, 0x27, 0xf6, 0xa8, 0x6a, 0x79, 0x52, 0xf3, 0xce, 0xfc, 0x25, 0xf2, 0xc4, 0xb5, 0x7d, + 0x78, 0x94, 0x2a, 0x3d, 0x63, 0x3b, 0xfb, 0x13, 0x00, 0x00, 0xff, 0xff, 0x4f, 0xc3, 0x91, 0x35, + 0xa7, 0x02, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/folder.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/folder.pbext.go new file mode 100644 index 000000000..342a25d4f --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/folder.pbext.go @@ -0,0 +1,35 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package resourcemanager + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Folder) SetId(v string) { + m.Id = v +} + +func (m *Folder) SetCloudId(v string) { + m.CloudId = v +} + +func (m *Folder) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Folder) SetName(v string) { + m.Name = v +} + +func (m *Folder) SetDescription(v string) { + m.Description = v +} + +func (m *Folder) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *Folder) SetStatus(v Folder_Status) { + m.Status = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/folder_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/folder_service.pb.go index 60bf02c4e..b313365c5 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/folder_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/folder_service.pb.go @@ -647,86 +647,86 @@ func init() { } var fileDescriptor_7ee014449f956281 = []byte{ - // 1107 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xcf, 0x6f, 0xdb, 0x54, - 0x1c, 0xd7, 0x6b, 0xd2, 0xac, 0x79, 0xa1, 0x50, 0x5e, 0x87, 0x14, 0x65, 0xdd, 0xc8, 0x0c, 0xac, - 0x21, 0xcc, 0x76, 0x9c, 0xb4, 0x15, 0x69, 0x13, 0x75, 0x0d, 0xeb, 0xa6, 0x4a, 0x9b, 0x40, 0x2e, - 0xbd, 0x50, 0x4d, 0xd1, 0x6b, 0xfc, 0x1a, 0xac, 0x3a, 0x76, 0xf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0x0f, 0x89, 0x83, 0x35, 0xec, - 0x60, 0x74, 0x6d, 0x68, 0xf8, 0x03, 0xe3, 0xfe, 0x22, 0x06, 0x67, 0xb7, 0xda, 0xda, 0x50, 0xd3, - 0xa2, 0xdf, 0x18, 0xb4, 0x02, 0x53, 0x1d, 0xe6, 0x81, 0xd1, 0x07, 0xc3, 0x95, 0x2a, 0x66, 0x24, - 0xce, 0x30, 0x92, 0xcf, 0x30, 0xd2, 0x3d, 0x97, 0x61, 0x1e, 0x62, 0xba, 0xa7, 0x42, 0xae, 0xee, - 0x3e, 0xf7, 0x7a, 0x1e, 0xfb, 0xcf, 0x3d, 0x8f, 0x47, 0xed, 0xf9, 0x64, 0xc4, 0x9e, 0x87, 0x94, - 0xe5, 0x55, 0xec, 0x79, 0x10, 0x66, 0xb4, 0x9e, 0xdf, 0x81, 0xb3, 0x77, 0x89, 0x41, 0x2e, 0xdf, - 0x72, 0x37, 0x6c, 0xd0, 0x43, 0xb4, 0xb0, 0xdf, 0x03, 0x78, 0xed, 0x8c, 0xa2, 0x3e, 0xf6, 0x59, - 0x9d, 0x5e, 0x62, 0xe4, 0xfe, 0x7f, 0x92, 0x15, 0xbe, 0x01, 0x70, 0x2e, 0x1c, 0x5d, 0x8f, 0x49, - 0x61, 0x6f, 0x13, 0xf9, 0x64, 0x7a, 0xb3, 0x7f, 0x88, 0xce, 0x36, 0x55, 0xcf, 0x5e, 0x0d, 0x18, - 0x45, 0x65, 0xd2, 0xe2, 0xef, 0xd3, 0x70, 0x9a, 0xe3, 0xd8, 0xe4, 0x4b, 0x1f, 0x3d, 0x07, 0x30, - 0x76, 0x9f, 0x38, 0x48, 0x19, 0x39, 0xb5, 0x83, 0xbb, 0x2f, 0x13, 0x95, 0xf0, 0x85, 0xc2, 0xb3, - 0x5f, 0x7f, 0x7b, 0x3e, 0x91, 0x47, 0xb9, 0xde, 0x2e, 0x17, 0x87, 0x96, 0x39, 0x95, 0x9f, 0xf4, - 0x7a, 0xf4, 0x14, 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0x7a, 0x15, 0x55, 0x2f, 0x06, - 0xed, 0x0b, 0xd9, 0x08, 0x19, 0xc3, 0x38, 0xff, 0x04, 0xf0, 0xcd, 0x4d, 0x32, 0xf8, 0x56, 0x0c, - 0x45, 0x33, 0xa4, 0x37, 0xc6, 0x58, 0x7d, 0x0d, 0x8e, 0x4e, 0xf3, 0x65, 0x98, 0x3d, 0xcf, 0x55, - 0x94, 0x19, 0x5b, 0x13, 0x2a, 0x63, 0x24, 0x4b, 0x07, 0x43, 0xb8, 0x37, 0xe8, 0x2f, 0xe0, 0xdf, - 0xca, 0x81, 0x8c, 0x0b, 0xa1, 0x19, 0x87, 0xa9, 0x8e, 0x91, 0xf4, 0xa1, 0x9b, 0x74, 0x05, 0xbe, - 0x73, 0x81, 0xb7, 0x28, 0x79, 0xdf, 0x15, 0x56, 0xc7, 0xc8, 0xbb, 0x13, 0x12, 0x65, 0x19, 0xe4, - 0x6b, 0x5b, 0x9f, 0x6d, 0x36, 0x75, 0xe7, 0xf3, 0xce, 0x8e, 0xd4, 0xb0, 0x5a, 0x32, 0xc7, 0x2e, - 0xf2, 0xff, 0x75, 0x4d, 0x4b, 0x6c, 0x12, 0x93, 0x45, 0x96, 0x47, 0xfc, 0xd1, 0x5c, 0x19, 0x78, - 0xb5, 0x93, 0x60, 0x66, 0xa5, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x58, 0x7d, 0xee, 0xf8, 0x5b, - 0x0f, 0x00, 0x00, + // 1116 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xcd, 0x6f, 0x1b, 0x45, + 0x14, 0xd7, 0xc4, 0xae, 0x1b, 0x3f, 0x13, 0x08, 0x93, 0x22, 0x59, 0x6e, 0x5a, 0xd2, 0x2d, 0x34, + 0xc1, 0x74, 0x77, 0xbd, 0xf9, 0x12, 0xf9, 0x52, 0x1a, 0xd3, 0xb4, 0x8a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xeb, 0xb2, 0x69, 0x1b, 0xa6, 0x5d, 0x65, 0x58, 0xe9, 0x84, 0x14, + 0x7c, 0x7c, 0xf7, 0x1a, 0x86, 0x14, 0xd4, 0xc4, 0xf6, 0x01, 0xe8, 0x75, 0x0e, 0x7a, 0x15, 0xaf, + 0x9c, 0x0f, 0x3a, 0xdc, 0xe4, 0x23, 0x64, 0xf5, 0xe2, 0xfc, 0x03, 0xc1, 0x9b, 0x9b, 0xb4, 0xfb, + 0xad, 0x1c, 0x8b, 0xa6, 0xc7, 0x6e, 0x80, 0xb1, 0xfa, 0x0a, 0x1d, 0x9e, 0x14, 0x17, 0x60, 0xe2, + 0xac, 0x50, 0x49, 0x66, 0x6c, 0x4d, 0x5a, 0x1e, 0x80, 0x2c, 0xeb, 0x4e, 0xe1, 0x9f, 0xa0, 0x3f, + 0x51, 0x78, 0x2a, 0xbb, 0x18, 0x97, 0x62, 0x19, 0xc7, 0x99, 0x0e, 0x40, 0xfa, 0xc0, 0x27, 0xbd, + 0x0c, 0x37, 0xcf, 0x89, 0x96, 0x84, 0xf7, 0x5d, 0x69, 0x75, 0x00, 0xde, 0x8d, 0x98, 0x2c, 0x8b, + 0xa8, 0x58, 0x6e, 0xc1, 0xcd, 0x4e, 0x8a, 0x75, 0x33, 0xe6, 0xa4, 0x7c, 0xba, 0x59, 0x35, 0xbd, + 0xcf, 0x1a, 0x3b, 0x4a, 0xc5, 0xa9, 0xa9, 0xc2, 0x5e, 0x16, 0x7f, 0xfe, 0xaa, 0x8e, 0x5c, 0xa5, + 0x36, 0x87, 0xa7, 0xf6, 0xf9, 0x37, 0xba, 0xd4, 0xf5, 0x6a, 0x27, 0xc3, 0xdd, 0x66, 0xfe, 0x09, + 0x00, 0x00, 0xff, 0xff, 0xb3, 0x28, 0x77, 0x5f, 0x80, 0x0f, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // FolderServiceClient is the client API for FolderService service. // @@ -757,10 +757,10 @@ type FolderServiceClient interface { } type folderServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewFolderServiceClient(cc *grpc.ClientConn) FolderServiceClient { +func NewFolderServiceClient(cc grpc.ClientConnInterface) FolderServiceClient { return &folderServiceClient{cc} } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/folder_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/folder_service.pbext.go new file mode 100644 index 000000000..f47b16545 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1/folder_service.pbext.go @@ -0,0 +1,108 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package resourcemanager + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetFolderRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListFoldersRequest) SetCloudId(v string) { + m.CloudId = v +} + +func (m *ListFoldersRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListFoldersRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListFoldersRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListFoldersResponse) SetFolders(v []*Folder) { + m.Folders = v +} + +func (m *ListFoldersResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateFolderRequest) SetCloudId(v string) { + m.CloudId = v +} + +func (m *CreateFolderRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateFolderRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateFolderRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateFolderMetadata) SetFolderId(v string) { + m.FolderId = v +} + +func (m *UpdateFolderRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *UpdateFolderRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateFolderRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateFolderRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateFolderRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateFolderMetadata) SetFolderId(v string) { + m.FolderId = v +} + +func (m *DeleteFolderRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *DeleteFolderMetadata) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListFolderOperationsRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListFolderOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListFolderOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListFolderOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListFolderOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1/function.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1/function.pb.go index d3e5b5947..459d765a1 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1/function.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1/function.pb.go @@ -27,10 +27,14 @@ type Function_Status int32 const ( Function_STATUS_UNSPECIFIED Function_Status = 0 - Function_CREATING Function_Status = 1 - Function_ACTIVE Function_Status = 2 - Function_DELETING Function_Status = 3 - Function_ERROR Function_Status = 4 + // Function is being created. + Function_CREATING Function_Status = 1 + // Function is ready to be invoked. + Function_ACTIVE Function_Status = 2 + // Function is being deleted. + Function_DELETING Function_Status = 3 + // Function failed. + Function_ERROR Function_Status = 4 ) var Function_Status_name = map[int32]string{ @@ -61,8 +65,10 @@ type Version_Status int32 const ( Version_STATUS_UNSPECIFIED Version_Status = 0 - Version_CREATING Version_Status = 1 - Version_ACTIVE Version_Status = 2 + // Version is being created. + Version_CREATING Version_Status = 1 + // Version is ready to use. + Version_ACTIVE Version_Status = 2 ) var Version_Status_name = map[int32]string{ @@ -85,19 +91,29 @@ func (Version_Status) EnumDescriptor() ([]byte, []int) { return fileDescriptor_f916220b45cd549e, []int{1, 0} } +// A serverless function. For details about the concept, see [Functions](/docs/functions/concepts/function). type Function struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` - Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - LogGroupId string `protobuf:"bytes,7,opt,name=log_group_id,json=logGroupId,proto3" json:"log_group_id,omitempty"` - HttpInvokeUrl string `protobuf:"bytes,8,opt,name=http_invoke_url,json=httpInvokeUrl,proto3" json:"http_invoke_url,omitempty"` - Status Function_Status `protobuf:"varint,9,opt,name=status,proto3,enum=yandex.cloud.serverless.functions.v1.Function_Status" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // ID of the function. Generated at creation time. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // ID of the folder that the function belongs to. + FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // Creation timestamp for the function. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Name of the function. The name is unique within the folder. + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + // Description of the function. + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + // Function labels as `key:value` pairs. + Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // ID of the log group for the function. + LogGroupId string `protobuf:"bytes,7,opt,name=log_group_id,json=logGroupId,proto3" json:"log_group_id,omitempty"` + // URL that needs to be requested to invoke the function. + HttpInvokeUrl string `protobuf:"bytes,8,opt,name=http_invoke_url,json=httpInvokeUrl,proto3" json:"http_invoke_url,omitempty"` + // Status of the function. + Status Function_Status `protobuf:"varint,9,opt,name=status,proto3,enum=yandex.cloud.serverless.functions.v1.Function_Status" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Function) Reset() { *m = Function{} } @@ -188,24 +204,47 @@ func (m *Function) GetStatus() Function_Status { return Function_STATUS_UNSPECIFIED } +// Version of a function. For details about the concept, see [Function versions](/docs/functions/concepts/function#version). type Version struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - FunctionId string `protobuf:"bytes,2,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - Runtime string `protobuf:"bytes,6,opt,name=runtime,proto3" json:"runtime,omitempty"` - Entrypoint string `protobuf:"bytes,7,opt,name=entrypoint,proto3" json:"entrypoint,omitempty"` - Resources *Resources `protobuf:"bytes,8,opt,name=resources,proto3" json:"resources,omitempty"` - ExecutionTimeout *duration.Duration `protobuf:"bytes,9,opt,name=execution_timeout,json=executionTimeout,proto3" json:"execution_timeout,omitempty"` - ServiceAccountId string `protobuf:"bytes,10,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` - ImageSize int64 `protobuf:"varint,12,opt,name=image_size,json=imageSize,proto3" json:"image_size,omitempty"` - Status Version_Status `protobuf:"varint,13,opt,name=status,proto3,enum=yandex.cloud.serverless.functions.v1.Version_Status" json:"status,omitempty"` - Tags []string `protobuf:"bytes,14,rep,name=tags,proto3" json:"tags,omitempty"` - LogGroupId string `protobuf:"bytes,15,opt,name=log_group_id,json=logGroupId,proto3" json:"log_group_id,omitempty"` - Environment map[string]string `protobuf:"bytes,16,rep,name=environment,proto3" json:"environment,omitempty" protobuf_key:"bytes,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:"-"` + // ID of the version. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // ID of the function that the version belongs to. + FunctionId string `protobuf:"bytes,2,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` + // Description of the version. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // Creation timestamp for the version. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // ID of the runtime environment for the function. + // + // Supported environments and their identifiers are listed in the [Runtime environments](/docs/functions/concepts/runtime). + Runtime string `protobuf:"bytes,6,opt,name=runtime,proto3" json:"runtime,omitempty"` + // Entrypoint for the function: the name of the function to be called as the handler. + // + // Specified in the format `.`, for example, `index.myFunction`. + Entrypoint string `protobuf:"bytes,7,opt,name=entrypoint,proto3" json:"entrypoint,omitempty"` + // Resources allocated to the version. + Resources *Resources `protobuf:"bytes,8,opt,name=resources,proto3" json:"resources,omitempty"` + // Timeout for the execution of the version. + // + // If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code. + ExecutionTimeout *duration.Duration `protobuf:"bytes,9,opt,name=execution_timeout,json=executionTimeout,proto3" json:"execution_timeout,omitempty"` + // ID of the service account associated with the version. + ServiceAccountId string `protobuf:"bytes,10,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + // Final size of the deployment package after unpacking. + ImageSize int64 `protobuf:"varint,12,opt,name=image_size,json=imageSize,proto3" json:"image_size,omitempty"` + // Status of the version. + Status Version_Status `protobuf:"varint,13,opt,name=status,proto3,enum=yandex.cloud.serverless.functions.v1.Version_Status" json:"status,omitempty"` + // Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag). + Tags []string `protobuf:"bytes,14,rep,name=tags,proto3" json:"tags,omitempty"` + // ID of the log group for the version. + LogGroupId string `protobuf:"bytes,15,opt,name=log_group_id,json=logGroupId,proto3" json:"log_group_id,omitempty"` + // Environment settings for the version. + Environment map[string]string `protobuf:"bytes,16,rep,name=environment,proto3" json:"environment,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Network access. If specified the version will be attached to specified network/subnet(s). + Connectivity *Connectivity `protobuf:"bytes,17,opt,name=connectivity,proto3" json:"connectivity,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Version) Reset() { *m = Version{} } @@ -331,7 +370,16 @@ func (m *Version) GetEnvironment() map[string]string { return nil } +func (m *Version) GetConnectivity() *Connectivity { + if m != nil { + return m.Connectivity + } + return nil +} + +// Resources allocated to a version. type Resources struct { + // Amount of memory available to the version, specified in bytes. Memory int64 `protobuf:"varint,1,opt,name=memory,proto3" json:"memory,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -370,9 +418,13 @@ func (m *Resources) GetMemory() int64 { return 0 } +// Version deployment package. type Package struct { - BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"` - ObjectName string `protobuf:"bytes,2,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"` + // Name of the bucket that stores the code for the version. + BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"` + // Name of the object in the bucket that stores the code for the version. + ObjectName string `protobuf:"bytes,2,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"` + // SHA256 hash of the version deployment package. Sha256 string `protobuf:"bytes,3,opt,name=sha256,proto3" json:"sha256,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -425,6 +477,58 @@ func (m *Package) GetSha256() string { return "" } +// Version connectivity specification. +type Connectivity struct { + // Network the version will have access to. + // It's essential to specify network with subnets in all availability zones. + NetworkId string `protobuf:"bytes,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` + // Complete list of subnets (from the same network) the version can be attached to. + // It's essential to specify at least one subnet for each availability zones. + SubnetId []string `protobuf:"bytes,2,rep,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Connectivity) Reset() { *m = Connectivity{} } +func (m *Connectivity) String() string { return proto.CompactTextString(m) } +func (*Connectivity) ProtoMessage() {} +func (*Connectivity) Descriptor() ([]byte, []int) { + return fileDescriptor_f916220b45cd549e, []int{4} +} + +func (m *Connectivity) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Connectivity.Unmarshal(m, b) +} +func (m *Connectivity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Connectivity.Marshal(b, m, deterministic) +} +func (m *Connectivity) XXX_Merge(src proto.Message) { + xxx_messageInfo_Connectivity.Merge(m, src) +} +func (m *Connectivity) XXX_Size() int { + return xxx_messageInfo_Connectivity.Size(m) +} +func (m *Connectivity) XXX_DiscardUnknown() { + xxx_messageInfo_Connectivity.DiscardUnknown(m) +} + +var xxx_messageInfo_Connectivity proto.InternalMessageInfo + +func (m *Connectivity) GetNetworkId() string { + if m != nil { + return m.NetworkId + } + return "" +} + +func (m *Connectivity) GetSubnetId() []string { + if m != nil { + return m.SubnetId + } + return nil +} + func init() { proto.RegisterEnum("yandex.cloud.serverless.functions.v1.Function_Status", Function_Status_name, Function_Status_value) proto.RegisterEnum("yandex.cloud.serverless.functions.v1.Version_Status", Version_Status_name, Version_Status_value) @@ -434,6 +538,7 @@ func init() { proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.serverless.functions.v1.Version.EnvironmentEntry") proto.RegisterType((*Resources)(nil), "yandex.cloud.serverless.functions.v1.Resources") proto.RegisterType((*Package)(nil), "yandex.cloud.serverless.functions.v1.Package") + proto.RegisterType((*Connectivity)(nil), "yandex.cloud.serverless.functions.v1.Connectivity") } func init() { @@ -441,58 +546,64 @@ func init() { } var fileDescriptor_f916220b45cd549e = []byte{ - // 835 bytes of a gzipped FileDescriptorProto + // 937 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcd, 0x6e, 0xdb, 0x46, - 0x10, 0xae, 0x7e, 0x4c, 0x4b, 0x43, 0xc7, 0x61, 0xb7, 0x45, 0xca, 0xaa, 0x48, 0x22, 0x08, 0x4d, - 0xa1, 0x43, 0x4d, 0x56, 0x3f, 0x6e, 0x12, 0xb7, 0x08, 0x20, 0xdb, 0x74, 0xc0, 0xc2, 0x71, 0x83, - 0x95, 0x9c, 0x43, 0x2f, 0xec, 0x8a, 0x1c, 0xd3, 0xac, 0x29, 0xae, 0xb0, 0x5c, 0x0a, 0x71, 0xde, - 0xa5, 0xc7, 0x3e, 0x4b, 0x5e, 0xa5, 0xcf, 0xd0, 0x53, 0xc1, 0x25, 0xf5, 0x13, 0xbb, 0x07, 0xbb, - 0xb7, 0xdd, 0x99, 0xf9, 0x66, 0xbf, 0xdd, 0xf9, 0x3e, 0x12, 0x06, 0xd7, 0x2c, 0x09, 0xf0, 0xbd, - 0xed, 0xc7, 0x3c, 0x0b, 0xec, 0x14, 0xc5, 0x02, 0x45, 0x8c, 0x69, 0x6a, 0x5f, 0x64, 0x89, 0x2f, - 0x23, 0x9e, 0xa4, 0xf6, 0xa2, 0xb7, 0xda, 0x58, 0x73, 0xc1, 0x25, 0x27, 0xdf, 0x16, 0x20, 0x4b, - 0x81, 0xac, 0x35, 0xc8, 0x5a, 0x81, 0xac, 0x45, 0xaf, 0xf5, 0x24, 0xe4, 0x3c, 0x8c, 0xd1, 0x56, - 0x98, 0x69, 0x76, 0x61, 0x07, 0x99, 0x60, 0xeb, 0x2e, 0xad, 0xa7, 0x37, 0xf3, 0x32, 0x9a, 0x61, - 0x2a, 0xd9, 0x6c, 0x5e, 0x16, 0x3c, 0xfe, 0x84, 0xdb, 0x82, 0xc5, 0x51, 0xb0, 0x81, 0xef, 0xfc, - 0x55, 0x87, 0xc6, 0x49, 0x79, 0x20, 0xd9, 0x85, 0x6a, 0x14, 0x98, 0x95, 0x76, 0xa5, 0xdb, 0xa4, - 0xd5, 0x28, 0x20, 0xdf, 0x40, 0xf3, 0x82, 0xc7, 0x01, 0x0a, 0x2f, 0x0a, 0xcc, 0xaa, 0x0a, 0x37, - 0x8a, 0x80, 0x1b, 0x90, 0x97, 0x00, 0xbe, 0x40, 0x26, 0x31, 0xf0, 0x98, 0x34, 0x6b, 0xed, 0x4a, - 0x57, 0xef, 0xb7, 0xac, 0x82, 0x8e, 0xb5, 0xa4, 0x63, 0x4d, 0x96, 0x74, 0x68, 0xb3, 0xac, 0x1e, - 0x49, 0x42, 0xa0, 0x9e, 0xb0, 0x19, 0x9a, 0x75, 0xd5, 0x52, 0xad, 0x49, 0x1b, 0xf4, 0x00, 0x53, - 0x5f, 0x44, 0xf3, 0x9c, 0x8a, 0xb9, 0xa5, 0x52, 0x9b, 0x21, 0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be, 0xcb, 0x7f, 0xed, 0xa7, 0xd5, - 0x66, 0xaa, 0x29, 0xd4, 0xe0, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x92, 0xfb, 0x71, 0x64, 0x10, - 0x07, 0x00, 0x00, + 0x10, 0xae, 0xfe, 0x68, 0x71, 0xa8, 0x38, 0xca, 0x22, 0x08, 0x58, 0xb5, 0x49, 0x04, 0xa1, 0x29, + 0x04, 0xb4, 0xa2, 0x4c, 0x4a, 0xfe, 0x89, 0xdb, 0x04, 0x90, 0x6c, 0x3a, 0x60, 0xe1, 0xb8, 0xc1, + 0x4a, 0xf6, 0xa1, 0x28, 0xc0, 0x52, 0xe4, 0x9a, 0x66, 0x45, 0x71, 0x05, 0x72, 0xa9, 0xc6, 0x39, + 0xf4, 0xd0, 0x63, 0x9e, 0xab, 0x40, 0xfc, 0x28, 0x7d, 0x06, 0x9f, 0x0a, 0x2e, 0xa9, 0x1f, 0xdb, + 0x6d, 0x21, 0xf7, 0xc6, 0x9d, 0x99, 0x6f, 0xe6, 0xdb, 0x99, 0x6f, 0x96, 0xd0, 0xb9, 0xb4, 0x02, + 0x87, 0xbc, 0x6f, 0xdb, 0x3e, 0x8d, 0x9d, 0x76, 0x44, 0xc2, 0x19, 0x09, 0x7d, 0x12, 0x45, 0xed, + 0xf3, 0x38, 0xb0, 0x99, 0x47, 0x83, 0xa8, 0x3d, 0x53, 0x17, 0x07, 0x65, 0x1a, 0x52, 0x46, 0xd1, + 0x57, 0x29, 0x48, 0xe1, 0x20, 0x65, 0x09, 0x52, 0x16, 0x20, 0x65, 0xa6, 0xd6, 0x9e, 0xb9, 0x94, + 0xba, 0x3e, 0x69, 0x73, 0xcc, 0x28, 0x3e, 0x6f, 0x3b, 0x71, 0x68, 0x2d, 0xb3, 0xd4, 0x9e, 0xdf, + 0xf6, 0x33, 0x6f, 0x42, 0x22, 0x66, 0x4d, 0xa6, 0x59, 0xc0, 0xd3, 0x1b, 0xdc, 0x66, 0x96, 0x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x93, 0x76, 0x0a, 0x6a, 0xa5, 0x7f, 0x45, 0x97, 0xb6, 0x5c, 0x12, 0xf0, 0x8d, + 0x6b, 0xaf, 0xf3, 0x2b, 0xff, 0x6e, 0x71, 0x18, 0x09, 0x1c, 0xd5, 0xf9, 0x3b, 0x00, 0x00, 0xff, + 0xff, 0x2c, 0x40, 0xcc, 0x25, 0x03, 0x08, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1/function.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1/function.pbext.go new file mode 100644 index 000000000..4a12783f4 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1/function.pbext.go @@ -0,0 +1,128 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package functions + +import ( + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Function) SetId(v string) { + m.Id = v +} + +func (m *Function) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Function) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Function) SetName(v string) { + m.Name = v +} + +func (m *Function) SetDescription(v string) { + m.Description = v +} + +func (m *Function) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *Function) SetLogGroupId(v string) { + m.LogGroupId = v +} + +func (m *Function) SetHttpInvokeUrl(v string) { + m.HttpInvokeUrl = v +} + +func (m *Function) SetStatus(v Function_Status) { + m.Status = v +} + +func (m *Version) SetId(v string) { + m.Id = v +} + +func (m *Version) SetFunctionId(v string) { + m.FunctionId = v +} + +func (m *Version) SetDescription(v string) { + m.Description = v +} + +func (m *Version) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Version) SetRuntime(v string) { + m.Runtime = v +} + +func (m *Version) SetEntrypoint(v string) { + m.Entrypoint = v +} + +func (m *Version) SetResources(v *Resources) { + m.Resources = v +} + +func (m *Version) SetExecutionTimeout(v *duration.Duration) { + m.ExecutionTimeout = v +} + +func (m *Version) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *Version) SetImageSize(v int64) { + m.ImageSize = v +} + +func (m *Version) SetStatus(v Version_Status) { + m.Status = v +} + +func (m *Version) SetTags(v []string) { + m.Tags = v +} + +func (m *Version) SetLogGroupId(v string) { + m.LogGroupId = v +} + +func (m *Version) SetEnvironment(v map[string]string) { + m.Environment = v +} + +func (m *Version) SetConnectivity(v *Connectivity) { + m.Connectivity = v +} + +func (m *Resources) SetMemory(v int64) { + m.Memory = v +} + +func (m *Package) SetBucketName(v string) { + m.BucketName = v +} + +func (m *Package) SetObjectName(v string) { + m.ObjectName = v +} + +func (m *Package) SetSha256(v string) { + m.Sha256 = v +} + +func (m *Connectivity) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *Connectivity) SetSubnetId(v []string) { + m.SubnetId = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1/function_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1/function_service.pb.go index 69d7773dc..3eb288379 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1/function_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1/function_service.pb.go @@ -33,6 +33,9 @@ var _ = math.Inf const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type GetFunctionRequest struct { + // ID of the function to return. + // + // To get a function ID make a [FunctionService.List] request. FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -72,6 +75,9 @@ func (m *GetFunctionRequest) GetFunctionId() string { } type GetFunctionVersionRequest struct { + // ID of the version to return. + // + // To get a version ID make a [FunctionService.ListVersions] request. FunctionVersionId string `protobuf:"bytes,1,opt,name=function_version_id,json=functionVersionId,proto3" json:"function_version_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -111,7 +117,13 @@ func (m *GetFunctionVersionRequest) GetFunctionVersionId() string { } type GetFunctionVersionByTagRequest struct { - FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` + // ID of the function whose versions should be listed. + // + // To get a function ID use a [FunctionService.List] request. + FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` + // Version tag. + // + // To get the history of version tags make a [FunctionService.ListTagHistory] request. Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -158,9 +170,27 @@ func (m *GetFunctionVersionByTagRequest) GetTag() string { } type ListFunctionsRequest struct { - FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` - PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // ID of the folder to list functions in. + // + // To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request. + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than `pageSize`, the service returns a [ListFunctionsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `pageToken` to the + // [ListFunctionsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters functions listed in the response. + // + // The expression must specify: + // 1. The field name. Currently filtering can only be applied to the [Function.name] field. + // 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` + // for lists of values. + // 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]$`. + // Example of a filter: `name=my-function`. Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -221,11 +251,17 @@ func (m *ListFunctionsRequest) GetFilter() string { } type ListFunctionsResponse struct { - Functions []*Function `protobuf:"bytes,1,rep,name=functions,proto3" json:"functions,omitempty"` - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // List of functions in the specified folder. + Functions []*Function `protobuf:"bytes,1,rep,name=functions,proto3" json:"functions,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListFunctionsRequest.page_size], use `nextPageToken` as the value + // for the [ListFunctionsRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `nextPageToken` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListFunctionsResponse) Reset() { *m = ListFunctionsResponse{} } @@ -268,9 +304,16 @@ func (m *ListFunctionsResponse) GetNextPageToken() string { } type CreateFunctionRequest struct { - FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // ID of the folder to create a function in. + // + // To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request. + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // Name of the function. + // The name must be unique within the folder. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Description of the function. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // Resource labels as `key:value` pairs. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -331,6 +374,7 @@ func (m *CreateFunctionRequest) GetLabels() map[string]string { } type CreateFunctionMetadata struct { + // ID of the function that is being created. FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -370,14 +414,25 @@ func (m *CreateFunctionMetadata) GetFunctionId() string { } type UpdateFunctionRequest struct { - FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` - UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,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:"-"` + // ID of the function to update. + // + // To get a function ID make a [FunctionService.List] request. + FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` + // Field mask that specifies which attributes of the function should be updated. + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // New name for the function. + // The name must be unique within the folder. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // New description for the function. + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + // Function labels as `key:value` pairs. + // + // Existing set of labels is completely replaced by the provided set, so if you just want + // to add or remove a label, request the current set of labels with a [FunctionService.Get] request. + Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,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 *UpdateFunctionRequest) Reset() { *m = UpdateFunctionRequest{} } @@ -441,6 +496,7 @@ func (m *UpdateFunctionRequest) GetLabels() map[string]string { } type UpdateFunctionMetadata struct { + // ID of the function that is being updated. FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -480,6 +536,8 @@ func (m *UpdateFunctionMetadata) GetFunctionId() string { } type DeleteFunctionRequest struct { + // ID of the function to delete. + // To get a function ID make a [FunctionService.List] request. FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -519,6 +577,7 @@ func (m *DeleteFunctionRequest) GetFunctionId() string { } type DeleteFunctionMetadata struct { + // ID of the function that is being deleted. FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -589,6 +648,7 @@ func (m *ListRuntimesRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ListRuntimesRequest proto.InternalMessageInfo type ListRuntimesResponse struct { + // Runtime environments available for the specified function. Runtimes []string `protobuf:"bytes,1,rep,name=runtimes,proto3" json:"runtimes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -631,13 +691,28 @@ type ListFunctionsVersionsRequest struct { // Types that are valid to be assigned to Id: // *ListFunctionsVersionsRequest_FolderId // *ListFunctionsVersionsRequest_FunctionId - Id isListFunctionsVersionsRequest_Id `protobuf_oneof:"id"` - PageSize int64 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id isListFunctionsVersionsRequest_Id `protobuf_oneof:"id"` + // The maximum number of results per page to return. If the number of available results + // is larger than `pageSize`, the service returns a [ListFunctionsVersionsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // + // Default value: 100. + PageSize int64 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `pageToken` to the + // [ListFunctionsVersionsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters resources listed in the response. + // + // The expression must specify: + // 1. The field name. Currently filtering can only be applied to the [Function.name] field. + // 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` + // for lists of values. + // 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]$`. + // Example of a filter: `name=my-function`. + Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListFunctionsVersionsRequest) Reset() { *m = ListFunctionsVersionsRequest{} } @@ -732,11 +807,17 @@ func (*ListFunctionsVersionsRequest) XXX_OneofWrappers() []interface{} { } type ListFunctionsVersionsResponse struct { - Versions []*Version `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"` - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // List of versions for the specified folder or function. + Versions []*Version `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListFunctionsVersionsRequest.page_size], use `nextPageToken` as the value + // for the [ListFunctionsVersionsRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `nextPageToken` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListFunctionsVersionsResponse) Reset() { *m = ListFunctionsVersionsResponse{} } @@ -779,9 +860,25 @@ func (m *ListFunctionsVersionsResponse) GetNextPageToken() string { } type ListFunctionOperationsRequest struct { - FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` - PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // ID of the function to list operations for. + FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` + // The maximum number of results per page that should be returned. If the number of available + // results is larger than `pageSize`, the service returns a [ListFunctionOperationsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `pageToken` to the + // [ListFunctionOperationsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters resources listed in the response. + // + // The expression must specify: + // 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field. + // 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` + // for lists of values. + // 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]$`. + // Examples of a filter: `done=false`, `created_by='John.Doe'`. Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -842,11 +939,17 @@ func (m *ListFunctionOperationsRequest) GetFilter() string { } type ListFunctionOperationsResponse struct { - Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // List of operations for the specified function. + Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListFunctionOperationsRequest.page_size], use `nextPageToken` as the value + // for the [ListFunctionOperationsRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `nextPageToken` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListFunctionOperationsResponse) Reset() { *m = ListFunctionOperationsResponse{} } @@ -889,21 +992,39 @@ func (m *ListFunctionOperationsResponse) GetNextPageToken() string { } type CreateFunctionVersionRequest struct { - FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` - Runtime string `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Entrypoint string `protobuf:"bytes,4,opt,name=entrypoint,proto3" json:"entrypoint,omitempty"` - Resources *Resources `protobuf:"bytes,5,opt,name=resources,proto3" json:"resources,omitempty"` + // ID of the function to create a version for. + // + // To get a function ID, make a [FunctionService.List] request. + FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` + // Runtime environment for the version. + Runtime string `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"` + // Description of the version + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // Entrypoint of the version. + Entrypoint string `protobuf:"bytes,4,opt,name=entrypoint,proto3" json:"entrypoint,omitempty"` + // Resources allocated to the version. + Resources *Resources `protobuf:"bytes,5,opt,name=resources,proto3" json:"resources,omitempty"` + // Timeout for the execution of the version. + // + // If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code. ExecutionTimeout *duration.Duration `protobuf:"bytes,6,opt,name=execution_timeout,json=executionTimeout,proto3" json:"execution_timeout,omitempty"` - ServiceAccountId string `protobuf:"bytes,7,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + // ID of the service account to associate with the version. + ServiceAccountId string `protobuf:"bytes,7,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + // Source of the deployment package for the version. + // // Types that are valid to be assigned to PackageSource: // *CreateFunctionVersionRequest_Package // *CreateFunctionVersionRequest_Content - PackageSource isCreateFunctionVersionRequest_PackageSource `protobuf_oneof:"package_source"` - Environment map[string]string `protobuf:"bytes,12,rep,name=environment,proto3" json:"environment,omitempty" protobuf_key:"bytes,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:"-"` + PackageSource isCreateFunctionVersionRequest_PackageSource `protobuf_oneof:"package_source"` + // Environment settings for the version. + Environment map[string]string `protobuf:"bytes,12,rep,name=environment,proto3" json:"environment,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag). + Tag []string `protobuf:"bytes,13,rep,name=tag,proto3" json:"tag,omitempty"` + // Function version connectivity. If specified the version will be attached to specified network/subnet(s). + Connectivity *Connectivity `protobuf:"bytes,17,opt,name=connectivity,proto3" json:"connectivity,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CreateFunctionVersionRequest) Reset() { *m = CreateFunctionVersionRequest{} } @@ -1024,6 +1145,20 @@ func (m *CreateFunctionVersionRequest) GetEnvironment() map[string]string { return nil } +func (m *CreateFunctionVersionRequest) GetTag() []string { + if m != nil { + return m.Tag + } + return nil +} + +func (m *CreateFunctionVersionRequest) GetConnectivity() *Connectivity { + if m != nil { + return m.Connectivity + } + return nil +} + // XXX_OneofWrappers is for the internal use of the proto package. func (*CreateFunctionVersionRequest) XXX_OneofWrappers() []interface{} { return []interface{}{ @@ -1033,6 +1168,7 @@ func (*CreateFunctionVersionRequest) XXX_OneofWrappers() []interface{} { } type CreateFunctionVersionMetadata struct { + // ID of the version that is being created. FunctionVersionId string `protobuf:"bytes,1,opt,name=function_version_id,json=functionVersionId,proto3" json:"function_version_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1072,7 +1208,11 @@ func (m *CreateFunctionVersionMetadata) GetFunctionVersionId() string { } type SetFunctionTagRequest struct { - FunctionVersionId string `protobuf:"bytes,1,opt,name=function_version_id,json=functionVersionId,proto3" json:"function_version_id,omitempty"` + // ID of the version to set the tag for. + // + // To get a version ID make a [FunctionService.ListVersions] request. + FunctionVersionId string `protobuf:"bytes,1,opt,name=function_version_id,json=functionVersionId,proto3" json:"function_version_id,omitempty"` + // Tag to set for the version. Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1119,7 +1259,11 @@ func (m *SetFunctionTagRequest) GetTag() string { } type RemoveFunctionTagRequest struct { - FunctionVersionId string `protobuf:"bytes,1,opt,name=function_version_id,json=functionVersionId,proto3" json:"function_version_id,omitempty"` + // ID of the version to remove a tag from. + // + // To get the a version ID make a [FunctionService.ListVersions] request. + FunctionVersionId string `protobuf:"bytes,1,opt,name=function_version_id,json=functionVersionId,proto3" json:"function_version_id,omitempty"` + // Tag to remove from the specified version. Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1166,6 +1310,7 @@ func (m *RemoveFunctionTagRequest) GetTag() string { } type SetFunctionTagMetadata struct { + // ID of the function versions that is being tagged. FunctionVersionId string `protobuf:"bytes,1,opt,name=function_version_id,json=functionVersionId,proto3" json:"function_version_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1205,6 +1350,7 @@ func (m *SetFunctionTagMetadata) GetFunctionVersionId() string { } type RemoveFunctionTagMetadata struct { + // ID of the function versions that is being untagged. FunctionVersionId string `protobuf:"bytes,1,opt,name=function_version_id,json=functionVersionId,proto3" json:"function_version_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1244,10 +1390,28 @@ func (m *RemoveFunctionTagMetadata) GetFunctionVersionId() string { } type ListFunctionTagHistoryRequest struct { - FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` - Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` - PageSize int64 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // ID of the function to retrieve tag history for. + // + // To get a function ID, make a [FunctionService.List] request. + FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` + // Specific tag that history should be limited to. + Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` + // The maximum number of results per page that should be returned. If the number of available + // results is larger than `pageSize`, the service returns a [ListFunctionOperationsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // Default value: 100. + PageSize int64 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `pageToken` to the + // [ListFunctionOperationsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters resources listed in the response. + // + // The expression must specify: + // 1. The field name. Currently filtering can only be applied to the [Function.name] field. + // 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` + // for lists of values. + // 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]$`. + // For example, `name=my-function`. Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1315,11 +1479,17 @@ func (m *ListFunctionTagHistoryRequest) GetFilter() string { } type ListFunctionTagHistoryResponse struct { + // Set of relevant tag history records. FunctionTagHistoryRecord []*ListFunctionTagHistoryResponse_FunctionTagHistoryRecord `protobuf:"bytes,1,rep,name=function_tag_history_record,json=functionTagHistoryRecord,proto3" json:"function_tag_history_record,omitempty"` - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListFunctionTagHistoryRequest.page_size], use `nextPageToken` as the value + // for the [ListFunctionTagHistoryRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `nextPageToken` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListFunctionTagHistoryResponse) Reset() { *m = ListFunctionTagHistoryResponse{} } @@ -1361,11 +1531,17 @@ func (m *ListFunctionTagHistoryResponse) GetNextPageToken() string { return "" } +// A record in the tag history. type ListFunctionTagHistoryResponse_FunctionTagHistoryRecord struct { - FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` - FunctionVersionId string `protobuf:"bytes,3,opt,name=function_version_id,json=functionVersionId,proto3" json:"function_version_id,omitempty"` - Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` - EffectiveFrom *timestamp.Timestamp `protobuf:"bytes,4,opt,name=effective_from,json=effectiveFrom,proto3" json:"effective_from,omitempty"` + // ID of the function that the record is about. + FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` + // ID of the function version that the record is about. + FunctionVersionId string `protobuf:"bytes,3,opt,name=function_version_id,json=functionVersionId,proto3" json:"function_version_id,omitempty"` + // Tag that was set for the version at some point. + Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` + // Timestamp when the tag started being active for the function. + EffectiveFrom *timestamp.Timestamp `protobuf:"bytes,4,opt,name=effective_from,json=effectiveFrom,proto3" json:"effective_from,omitempty"` + // Timestamp when the tag stopped being active for the function. EffectiveTo *timestamp.Timestamp `protobuf:"bytes,5,opt,name=effective_to,json=effectiveTo,proto3" json:"effective_to,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1473,174 +1649,200 @@ func init() { } var fileDescriptor_4a91c4c30ec2c5ca = []byte{ - // 2052 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0xcd, 0x6f, 0xdb, 0xc8, - 0x15, 0x5f, 0x5a, 0xb2, 0x6c, 0x3d, 0x65, 0xb3, 0xce, 0x6c, 0xec, 0x28, 0x8a, 0xed, 0xd8, 0xac, - 0x93, 0x18, 0x6a, 0xf4, 0x41, 0xc5, 0x71, 0xfd, 0x95, 0xa4, 0x56, 0xbe, 0xec, 0x36, 0xc1, 0x6e, - 0x69, 0x77, 0x0f, 0x1b, 0x18, 0x2a, 0x2d, 0x8d, 0xb4, 0x84, 0x25, 0x52, 0x25, 0x29, 0x23, 0xce, - 0x6e, 0x50, 0x60, 0x81, 0x5e, 0x52, 0xf4, 0xd2, 0x5e, 0x17, 0x45, 0x2f, 0xfd, 0x07, 0x84, 0x02, - 0x05, 0x0a, 0x2c, 0xba, 0x3d, 0x14, 0x36, 0x0a, 0xe4, 0xe2, 0xa2, 0x87, 0x1e, 0x7a, 0x6a, 0x51, - 0xb4, 0xa7, 0x02, 0xee, 0xad, 0x28, 0xd0, 0x62, 0x86, 0x43, 0x8a, 0xa4, 0x28, 0x67, 0x24, 0xf7, - 0xeb, 0x24, 0x91, 0xf3, 0xde, 0x9b, 0xf7, 0x7b, 0xef, 0xcd, 0x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x3e, 0x51, 0xc8, 0x66, 0x79, 0xce, 0x4b, 0xd6, 0x75, 0x74, 0x47, 0x00, - 0xba, 0x0e, 0xef, 0x68, 0xf8, 0xb9, 0x55, 0xf2, 0xe8, 0x48, 0xad, 0x26, 0xbf, 0x4d, 0x5e, 0xbf, - 0xef, 0xe8, 0x29, 0xfe, 0x63, 0x08, 0xc6, 0xef, 0x1b, 0x58, 0xb1, 0x70, 0x30, 0x5c, 0x38, 0x0c, - 0x74, 0x1b, 0xa2, 0x9a, 0xd2, 0xc0, 0xcc, 0x1f, 0xb3, 0x27, 0x87, 0xd2, 0xd4, 0x27, 0xcc, 0x21, - 0x4a, 0xe6, 0x45, 0x3e, 0xb3, 0xbc, 0xf3, 0xb1, 0x74, 0x73, 0x51, 0x7a, 0xf9, 0x8c, 0x3d, 0xc9, - 0x94, 0x1c, 0x7d, 0x19, 0x12, 0x15, 0x6c, 0x96, 0x0d, 0xb5, 0x49, 0xf6, 0xb3, 0x6d, 0x57, 0x8c, - 0xbf, 0x3a, 0x92, 0x86, 0xd7, 0xee, 0x14, 0x6e, 0x2f, 0xca, 0xde, 0x55, 0xf4, 0x63, 0x01, 0x62, - 0x75, 0x65, 0x17, 0xd7, 0xcd, 0x64, 0x94, 0x1a, 0xe5, 0x31, 0x9f, 0x51, 0x42, 0x41, 0x65, 0x9f, - 0x50, 0x49, 0x0f, 0x35, 0xcb, 0x38, 0x28, 0xde, 0x3b, 0x39, 0x94, 0x12, 0x9e, 0xd0, 0xf9, 0xf4, - 0x48, 0x8a, 0xae, 0xdd, 0x59, 0x5c, 0x78, 0x65, 0xff, 0xde, 0x6a, 0x1f, 0x49, 0xb1, 0x54, 0x54, - 0xca, 0xd0, 0x7f, 0x08, 0x8d, 0x05, 0x43, 0x4d, 0x66, 0x7a, 0xa5, 0x96, 0x21, 0xe1, 0x91, 0x8b, - 0xc6, 0x20, 0xb2, 0x87, 0x0f, 0x6c, 0x93, 0xc9, 0xe4, 0x2f, 0xba, 0x08, 0x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, 0x96, 0xcf, 0x48, 0xf9, 0x7c, 0xde, 0x93, 0xcd, 0xe7, 0x7d, 0xd9, 0xdc, 0x17, 0x96, 0x52, - 0x3e, 0xef, 0x4d, 0xec, 0xa2, 0x9b, 0xd8, 0x87, 0x29, 0x15, 0xbc, 0x3a, 0x92, 0x62, 0x94, 0x2a, - 0xef, 0x24, 0xf9, 0x22, 0xc0, 0x90, 0x5a, 0x41, 0xd1, 0x2f, 0x7e, 0x29, 0x09, 0xe2, 0x0f, 0x04, - 0x98, 0xea, 0x81, 0x92, 0xd9, 0x68, 0x13, 0x46, 0x59, 0x29, 0x75, 0xf2, 0x7e, 0x86, 0x2f, 0xce, - 0x9d, 0xda, 0xec, 0xb2, 0x73, 0x67, 0xfd, 0xcf, 0x03, 0x4a, 0xbd, 0xe7, 0xf4, 0x17, 0x66, 0x9f, - 0x39, 0xe4, 0x46, 0x57, 0x89, 0xe4, 0x32, 0x70, 0x84, 0xcb, 0xc0, 0xd1, 0x5e, 0x06, 0x16, 0xbf, - 0x27, 0xc0, 0x74, 0x2f, 0xfd, 0x99, 0x55, 0xd7, 0x01, 0xdc, 0xae, 0xc9, 0xb1, 0xeb, 0xac, 0xdf, - 0xae, 0x9d, 0xae, 0xca, 0xe5, 0x97, 0x3d, 0x4c, 0xdc, 0xd6, 0x3c, 0x19, 0x86, 0x49, 0x7f, 0x16, - 0x0f, 0x74, 0x4d, 0x9c, 0xc6, 0x9c, 0x86, 0x11, 0x76, 0x38, 0x58, 0x45, 0xb5, 0x49, 0x9c, 0x97, - 0x68, 0x26, 0xa4, 0x6e, 0xfa, 0x33, 0xe6, 0x1c, 0x00, 0x26, 0x89, 0xa8, 0xa9, 0xab, 0x9a, 0xc5, - 0xec, 0xc7, 0xf6, 0xe9, 0xbc, 0x47, 0x5b, 0x10, 0x37, 0xb0, 0xa9, 0xb7, 0x8c, 0x32, 0x36, 0x69, - 0x14, 0x27, 0x0a, 0x39, 0xbe, 0x88, 0x93, 0x1d, 0x36, 0x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0xed, 0xe3, 0xf4, 0x32, 0xcc, 0xf4, 0x92, 0xc4, 0xd3, 0x9f, 0xac, - 0x89, 0x5f, 0xe1, 0x83, 0x69, 0x06, 0xa5, 0x93, 0x23, 0xf2, 0x37, 0x01, 0x2e, 0xda, 0x6d, 0x5d, - 0x00, 0x6b, 0x3e, 0x14, 0x6b, 0x18, 0x69, 0x1f, 0x70, 0xbf, 0x2b, 0xb4, 0x8f, 0xd3, 0x6b, 0xf0, - 0xa5, 0x53, 0xa4, 0xf1, 0x40, 0xbe, 0x27, 0xae, 0xf0, 0x41, 0x6e, 0x85, 0x6c, 0xb0, 0x22, 0xa4, - 0x8b, 0xdb, 0x1f, 0xca, 0x35, 0xd5, 0xfa, 0xa8, 0xb5, 0x9b, 0x2d, 0xeb, 0x8d, 0x9c, 0xad, 0x76, - 0xc6, 0xfe, 0x1c, 0x5d, 0xd3, 0x33, 0x35, 0xac, 0xd1, 0x4d, 0x73, 0x3c, 0x1f, 0xc1, 0x57, 0xdd, - 0x87, 0xdd, 0x18, 0xe5, 0xba, 0xf5, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x16, 0xd6, 0xb8, 0x4f, - 0x65, 0x20, 0x00, 0x00, + // 2087 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0x4b, 0x6c, 0xdb, 0xc8, + 0x19, 0x5e, 0x5a, 0x8a, 0x6c, 0xff, 0x72, 0x12, 0x67, 0x36, 0xf6, 0x2a, 0x8a, 0xed, 0xd8, 0xac, + 0x93, 0x18, 0x6a, 0xf4, 0xa0, 0xe2, 0xb8, 0x7e, 0x25, 0xa9, 0x95, 0x97, 0x8d, 0x26, 0xd8, 0x2d, + 0xed, 0xe6, 0xb0, 0x81, 0xa1, 0xd2, 0xd2, 0x48, 0x4b, 0x58, 0x22, 0x55, 0x92, 0x12, 0xe2, 0xec, + 0xa6, 0x05, 0x16, 0xe8, 0x25, 0x45, 0x2f, 0xed, 0x75, 0x5b, 0xf4, 0xd2, 0x5b, 0x4f, 0xba, 0xec, + 0x69, 0x81, 0xf4, 0x50, 0xd8, 0x28, 0xd0, 0x8b, 0x8b, 0x1e, 0x7a, 0x6e, 0x51, 0xb4, 0xa7, 0x02, + 0xe9, 0xa1, 0x40, 0x51, 0xa0, 0xc5, 0x0c, 0x87, 0x14, 0x49, 0x51, 0xce, 0x48, 0xee, 0x63, 0x4f, + 0x12, 0x39, 0xff, 0xff, 0xcf, 0xf7, 0x3f, 0xe6, 0x7f, 0x0c, 0x61, 0xed, 0x40, 0xd1, 0xca, 0xf8, + 0x79, 0xb6, 0x54, 0xd3, 0x9b, 0xe5, 0xac, 0x89, 0x8d, 0x16, 0x36, 0x6a, 0xd8, 0x34, 0xb3, 0x95, + 0xa6, 0x56, 0xb2, 0x54, 0x5d, 0x33, 0xb3, 0x2d, 0xc9, 0x7d, 0x28, 0x12, 0x02, 0xb5, 0x84, 0x33, + 0x0d, 0x43, 0xb7, 0x74, 0x34, 0x6f, 0x33, 0x67, 0x28, 0x73, 0xa6, 0xc3, 0x9c, 0x71, 0x99, 0x33, + 0x2d, 0x29, 0x39, 0x55, 0xd5, 0xf5, 0x6a, 0x0d, 0x67, 0x95, 0x86, 0x9a, 0x55, 0x34, 0x4d, 0xb7, + 0x14, 0x7b, 0x89, 0xca, 0x48, 0xce, 0xb2, 0x55, 0xfa, 0xb4, 0xd7, 0xac, 0x64, 0x2b, 0x2a, 0xae, + 0x95, 0x8b, 0x75, 0xc5, 0xdc, 0x67, 0x14, 0x33, 0x41, 0x8a, 0x72, 0xd3, 0xa0, 0x22, 0xd8, 0xfa, + 0x95, 0xe0, 0xba, 0xa5, 0xd6, 0xb1, 0x69, 0x29, 0xf5, 0x86, 0xb3, 0x85, 0x4f, 0x47, 0x02, 0x43, + 0x6f, 0x60, 0x9f, 0x88, 0x00, 0x45, 0xa9, 0x44, 0x2c, 0x60, 0xff, 0x30, 0x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xfc, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xab, + 0x59, 0x70, 0x32, 0xec, 0x20, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // FunctionServiceClient is the client API for FunctionService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type FunctionServiceClient interface { + // Returns the specified function. + // + // To get the list of all available functions, make a [List] request. Get(ctx context.Context, in *GetFunctionRequest, opts ...grpc.CallOption) (*Function, error) + // Retrieves the list of functions in the specified folder. List(ctx context.Context, in *ListFunctionsRequest, opts ...grpc.CallOption) (*ListFunctionsResponse, error) + // Creates a function in the specified folder. Create(ctx context.Context, in *CreateFunctionRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Updates the specified function. Update(ctx context.Context, in *UpdateFunctionRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Deletes the specified function. Delete(ctx context.Context, in *DeleteFunctionRequest, opts ...grpc.CallOption) (*operation.Operation, error) - GetFunctionVersion(ctx context.Context, in *GetFunctionVersionRequest, opts ...grpc.CallOption) (*Version, error) - GetFunctionVersionByTag(ctx context.Context, in *GetFunctionVersionByTagRequest, opts ...grpc.CallOption) (*Version, error) - ListFunctionVersions(ctx context.Context, in *ListFunctionsVersionsRequest, opts ...grpc.CallOption) (*ListFunctionsVersionsResponse, error) + // Returns the specified version of a function. + // + // To get the list of available version, make a [ListVersions] request. + GetVersion(ctx context.Context, in *GetFunctionVersionRequest, opts ...grpc.CallOption) (*Version, error) + // Returns all versions with the specified tag. + // + // To get the list of all available versions, make a [ListVersions] request. + GetVersionByTag(ctx context.Context, in *GetFunctionVersionByTagRequest, opts ...grpc.CallOption) (*Version, error) + // Retrieves the list of versions for the specified function, or of all function versions + // in the specified folder. + ListVersions(ctx context.Context, in *ListFunctionsVersionsRequest, opts ...grpc.CallOption) (*ListFunctionsVersionsResponse, error) + // Set a tag for the specified version of a function. SetTag(ctx context.Context, in *SetFunctionTagRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Remove a tag from the specified version of a function. RemoveTag(ctx context.Context, in *RemoveFunctionTagRequest, opts ...grpc.CallOption) (*operation.Operation, error) - ListFunctionTagHistory(ctx context.Context, in *ListFunctionTagHistoryRequest, opts ...grpc.CallOption) (*ListFunctionTagHistoryResponse, error) - CreateFunctionVersion(ctx context.Context, in *CreateFunctionVersionRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Returns the log of tags assigned to versions of the specified function. + ListTagHistory(ctx context.Context, in *ListFunctionTagHistoryRequest, opts ...grpc.CallOption) (*ListFunctionTagHistoryResponse, error) + // Creates a version for the specified function. + CreateVersion(ctx context.Context, in *CreateFunctionVersionRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Lists available runtime environments for the specified function. ListRuntimes(ctx context.Context, in *ListRuntimesRequest, opts ...grpc.CallOption) (*ListRuntimesResponse, error) + // Lists operations for the specified function. ListOperations(ctx context.Context, in *ListFunctionOperationsRequest, opts ...grpc.CallOption) (*ListFunctionOperationsResponse, error) + // Lists existing access bindings for the specified function. ListAccessBindings(ctx context.Context, in *access.ListAccessBindingsRequest, opts ...grpc.CallOption) (*access.ListAccessBindingsResponse, error) + // Sets access bindings for the function. SetAccessBindings(ctx context.Context, in *access.SetAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Updates access bindings for the specified function. UpdateAccessBindings(ctx context.Context, in *access.UpdateAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error) } type functionServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewFunctionServiceClient(cc *grpc.ClientConn) FunctionServiceClient { +func NewFunctionServiceClient(cc grpc.ClientConnInterface) FunctionServiceClient { return &functionServiceClient{cc} } @@ -1689,27 +1891,27 @@ func (c *functionServiceClient) Delete(ctx context.Context, in *DeleteFunctionRe return out, nil } -func (c *functionServiceClient) GetFunctionVersion(ctx context.Context, in *GetFunctionVersionRequest, opts ...grpc.CallOption) (*Version, error) { +func (c *functionServiceClient) GetVersion(ctx context.Context, in *GetFunctionVersionRequest, opts ...grpc.CallOption) (*Version, error) { out := new(Version) - err := c.cc.Invoke(ctx, "/yandex.cloud.serverless.functions.v1.FunctionService/GetFunctionVersion", in, out, opts...) + err := c.cc.Invoke(ctx, "/yandex.cloud.serverless.functions.v1.FunctionService/GetVersion", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *functionServiceClient) GetFunctionVersionByTag(ctx context.Context, in *GetFunctionVersionByTagRequest, opts ...grpc.CallOption) (*Version, error) { +func (c *functionServiceClient) GetVersionByTag(ctx context.Context, in *GetFunctionVersionByTagRequest, opts ...grpc.CallOption) (*Version, error) { out := new(Version) - err := c.cc.Invoke(ctx, "/yandex.cloud.serverless.functions.v1.FunctionService/GetFunctionVersionByTag", in, out, opts...) + err := c.cc.Invoke(ctx, "/yandex.cloud.serverless.functions.v1.FunctionService/GetVersionByTag", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *functionServiceClient) ListFunctionVersions(ctx context.Context, in *ListFunctionsVersionsRequest, opts ...grpc.CallOption) (*ListFunctionsVersionsResponse, error) { +func (c *functionServiceClient) ListVersions(ctx context.Context, in *ListFunctionsVersionsRequest, opts ...grpc.CallOption) (*ListFunctionsVersionsResponse, error) { out := new(ListFunctionsVersionsResponse) - err := c.cc.Invoke(ctx, "/yandex.cloud.serverless.functions.v1.FunctionService/ListFunctionVersions", in, out, opts...) + err := c.cc.Invoke(ctx, "/yandex.cloud.serverless.functions.v1.FunctionService/ListVersions", in, out, opts...) if err != nil { return nil, err } @@ -1734,18 +1936,18 @@ func (c *functionServiceClient) RemoveTag(ctx context.Context, in *RemoveFunctio return out, nil } -func (c *functionServiceClient) ListFunctionTagHistory(ctx context.Context, in *ListFunctionTagHistoryRequest, opts ...grpc.CallOption) (*ListFunctionTagHistoryResponse, error) { +func (c *functionServiceClient) ListTagHistory(ctx context.Context, in *ListFunctionTagHistoryRequest, opts ...grpc.CallOption) (*ListFunctionTagHistoryResponse, error) { out := new(ListFunctionTagHistoryResponse) - err := c.cc.Invoke(ctx, "/yandex.cloud.serverless.functions.v1.FunctionService/ListFunctionTagHistory", in, out, opts...) + err := c.cc.Invoke(ctx, "/yandex.cloud.serverless.functions.v1.FunctionService/ListTagHistory", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *functionServiceClient) CreateFunctionVersion(ctx context.Context, in *CreateFunctionVersionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { +func (c *functionServiceClient) CreateVersion(ctx context.Context, in *CreateFunctionVersionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { out := new(operation.Operation) - err := c.cc.Invoke(ctx, "/yandex.cloud.serverless.functions.v1.FunctionService/CreateFunctionVersion", in, out, opts...) + err := c.cc.Invoke(ctx, "/yandex.cloud.serverless.functions.v1.FunctionService/CreateVersion", in, out, opts...) if err != nil { return nil, err } @@ -1799,22 +2001,46 @@ func (c *functionServiceClient) UpdateAccessBindings(ctx context.Context, in *ac // FunctionServiceServer is the server API for FunctionService service. type FunctionServiceServer interface { + // Returns the specified function. + // + // To get the list of all available functions, make a [List] request. Get(context.Context, *GetFunctionRequest) (*Function, error) + // Retrieves the list of functions in the specified folder. List(context.Context, *ListFunctionsRequest) (*ListFunctionsResponse, error) + // Creates a function in the specified folder. Create(context.Context, *CreateFunctionRequest) (*operation.Operation, error) + // Updates the specified function. Update(context.Context, *UpdateFunctionRequest) (*operation.Operation, error) + // Deletes the specified function. Delete(context.Context, *DeleteFunctionRequest) (*operation.Operation, error) - GetFunctionVersion(context.Context, *GetFunctionVersionRequest) (*Version, error) - GetFunctionVersionByTag(context.Context, *GetFunctionVersionByTagRequest) (*Version, error) - ListFunctionVersions(context.Context, *ListFunctionsVersionsRequest) (*ListFunctionsVersionsResponse, error) + // Returns the specified version of a function. + // + // To get the list of available version, make a [ListVersions] request. + GetVersion(context.Context, *GetFunctionVersionRequest) (*Version, error) + // Returns all versions with the specified tag. + // + // To get the list of all available versions, make a [ListVersions] request. + GetVersionByTag(context.Context, *GetFunctionVersionByTagRequest) (*Version, error) + // Retrieves the list of versions for the specified function, or of all function versions + // in the specified folder. + ListVersions(context.Context, *ListFunctionsVersionsRequest) (*ListFunctionsVersionsResponse, error) + // Set a tag for the specified version of a function. SetTag(context.Context, *SetFunctionTagRequest) (*operation.Operation, error) + // Remove a tag from the specified version of a function. RemoveTag(context.Context, *RemoveFunctionTagRequest) (*operation.Operation, error) - ListFunctionTagHistory(context.Context, *ListFunctionTagHistoryRequest) (*ListFunctionTagHistoryResponse, error) - CreateFunctionVersion(context.Context, *CreateFunctionVersionRequest) (*operation.Operation, error) + // Returns the log of tags assigned to versions of the specified function. + ListTagHistory(context.Context, *ListFunctionTagHistoryRequest) (*ListFunctionTagHistoryResponse, error) + // Creates a version for the specified function. + CreateVersion(context.Context, *CreateFunctionVersionRequest) (*operation.Operation, error) + // Lists available runtime environments for the specified function. ListRuntimes(context.Context, *ListRuntimesRequest) (*ListRuntimesResponse, error) + // Lists operations for the specified function. ListOperations(context.Context, *ListFunctionOperationsRequest) (*ListFunctionOperationsResponse, error) + // Lists existing access bindings for the specified function. ListAccessBindings(context.Context, *access.ListAccessBindingsRequest) (*access.ListAccessBindingsResponse, error) + // Sets access bindings for the function. SetAccessBindings(context.Context, *access.SetAccessBindingsRequest) (*operation.Operation, error) + // Updates access bindings for the specified function. UpdateAccessBindings(context.Context, *access.UpdateAccessBindingsRequest) (*operation.Operation, error) } @@ -1837,14 +2063,14 @@ func (*UnimplementedFunctionServiceServer) Update(ctx context.Context, req *Upda func (*UnimplementedFunctionServiceServer) Delete(ctx context.Context, req *DeleteFunctionRequest) (*operation.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } -func (*UnimplementedFunctionServiceServer) GetFunctionVersion(ctx context.Context, req *GetFunctionVersionRequest) (*Version, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetFunctionVersion not implemented") +func (*UnimplementedFunctionServiceServer) GetVersion(ctx context.Context, req *GetFunctionVersionRequest) (*Version, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented") } -func (*UnimplementedFunctionServiceServer) GetFunctionVersionByTag(ctx context.Context, req *GetFunctionVersionByTagRequest) (*Version, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetFunctionVersionByTag not implemented") +func (*UnimplementedFunctionServiceServer) GetVersionByTag(ctx context.Context, req *GetFunctionVersionByTagRequest) (*Version, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetVersionByTag not implemented") } -func (*UnimplementedFunctionServiceServer) ListFunctionVersions(ctx context.Context, req *ListFunctionsVersionsRequest) (*ListFunctionsVersionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListFunctionVersions not implemented") +func (*UnimplementedFunctionServiceServer) ListVersions(ctx context.Context, req *ListFunctionsVersionsRequest) (*ListFunctionsVersionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListVersions not implemented") } func (*UnimplementedFunctionServiceServer) SetTag(ctx context.Context, req *SetFunctionTagRequest) (*operation.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method SetTag not implemented") @@ -1852,11 +2078,11 @@ func (*UnimplementedFunctionServiceServer) SetTag(ctx context.Context, req *SetF func (*UnimplementedFunctionServiceServer) RemoveTag(ctx context.Context, req *RemoveFunctionTagRequest) (*operation.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveTag not implemented") } -func (*UnimplementedFunctionServiceServer) ListFunctionTagHistory(ctx context.Context, req *ListFunctionTagHistoryRequest) (*ListFunctionTagHistoryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListFunctionTagHistory not implemented") +func (*UnimplementedFunctionServiceServer) ListTagHistory(ctx context.Context, req *ListFunctionTagHistoryRequest) (*ListFunctionTagHistoryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListTagHistory not implemented") } -func (*UnimplementedFunctionServiceServer) CreateFunctionVersion(ctx context.Context, req *CreateFunctionVersionRequest) (*operation.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateFunctionVersion not implemented") +func (*UnimplementedFunctionServiceServer) CreateVersion(ctx context.Context, req *CreateFunctionVersionRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateVersion not implemented") } func (*UnimplementedFunctionServiceServer) ListRuntimes(ctx context.Context, req *ListRuntimesRequest) (*ListRuntimesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListRuntimes not implemented") @@ -1968,56 +2194,56 @@ func _FunctionService_Delete_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } -func _FunctionService_GetFunctionVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _FunctionService_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetFunctionVersionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(FunctionServiceServer).GetFunctionVersion(ctx, in) + return srv.(FunctionServiceServer).GetVersion(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/yandex.cloud.serverless.functions.v1.FunctionService/GetFunctionVersion", + FullMethod: "/yandex.cloud.serverless.functions.v1.FunctionService/GetVersion", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FunctionServiceServer).GetFunctionVersion(ctx, req.(*GetFunctionVersionRequest)) + return srv.(FunctionServiceServer).GetVersion(ctx, req.(*GetFunctionVersionRequest)) } return interceptor(ctx, in, info, handler) } -func _FunctionService_GetFunctionVersionByTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _FunctionService_GetVersionByTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetFunctionVersionByTagRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(FunctionServiceServer).GetFunctionVersionByTag(ctx, in) + return srv.(FunctionServiceServer).GetVersionByTag(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/yandex.cloud.serverless.functions.v1.FunctionService/GetFunctionVersionByTag", + FullMethod: "/yandex.cloud.serverless.functions.v1.FunctionService/GetVersionByTag", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FunctionServiceServer).GetFunctionVersionByTag(ctx, req.(*GetFunctionVersionByTagRequest)) + return srv.(FunctionServiceServer).GetVersionByTag(ctx, req.(*GetFunctionVersionByTagRequest)) } return interceptor(ctx, in, info, handler) } -func _FunctionService_ListFunctionVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _FunctionService_ListVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListFunctionsVersionsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(FunctionServiceServer).ListFunctionVersions(ctx, in) + return srv.(FunctionServiceServer).ListVersions(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/yandex.cloud.serverless.functions.v1.FunctionService/ListFunctionVersions", + FullMethod: "/yandex.cloud.serverless.functions.v1.FunctionService/ListVersions", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FunctionServiceServer).ListFunctionVersions(ctx, req.(*ListFunctionsVersionsRequest)) + return srv.(FunctionServiceServer).ListVersions(ctx, req.(*ListFunctionsVersionsRequest)) } return interceptor(ctx, in, info, handler) } @@ -2058,38 +2284,38 @@ func _FunctionService_RemoveTag_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } -func _FunctionService_ListFunctionTagHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _FunctionService_ListTagHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListFunctionTagHistoryRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(FunctionServiceServer).ListFunctionTagHistory(ctx, in) + return srv.(FunctionServiceServer).ListTagHistory(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/yandex.cloud.serverless.functions.v1.FunctionService/ListFunctionTagHistory", + FullMethod: "/yandex.cloud.serverless.functions.v1.FunctionService/ListTagHistory", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FunctionServiceServer).ListFunctionTagHistory(ctx, req.(*ListFunctionTagHistoryRequest)) + return srv.(FunctionServiceServer).ListTagHistory(ctx, req.(*ListFunctionTagHistoryRequest)) } return interceptor(ctx, in, info, handler) } -func _FunctionService_CreateFunctionVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _FunctionService_CreateVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateFunctionVersionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(FunctionServiceServer).CreateFunctionVersion(ctx, in) + return srv.(FunctionServiceServer).CreateVersion(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/yandex.cloud.serverless.functions.v1.FunctionService/CreateFunctionVersion", + FullMethod: "/yandex.cloud.serverless.functions.v1.FunctionService/CreateVersion", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FunctionServiceServer).CreateFunctionVersion(ctx, req.(*CreateFunctionVersionRequest)) + return srv.(FunctionServiceServer).CreateVersion(ctx, req.(*CreateFunctionVersionRequest)) } return interceptor(ctx, in, info, handler) } @@ -2209,16 +2435,16 @@ var _FunctionService_serviceDesc = grpc.ServiceDesc{ Handler: _FunctionService_Delete_Handler, }, { - MethodName: "GetFunctionVersion", - Handler: _FunctionService_GetFunctionVersion_Handler, + MethodName: "GetVersion", + Handler: _FunctionService_GetVersion_Handler, }, { - MethodName: "GetFunctionVersionByTag", - Handler: _FunctionService_GetFunctionVersionByTag_Handler, + MethodName: "GetVersionByTag", + Handler: _FunctionService_GetVersionByTag_Handler, }, { - MethodName: "ListFunctionVersions", - Handler: _FunctionService_ListFunctionVersions_Handler, + MethodName: "ListVersions", + Handler: _FunctionService_ListVersions_Handler, }, { MethodName: "SetTag", @@ -2229,12 +2455,12 @@ var _FunctionService_serviceDesc = grpc.ServiceDesc{ Handler: _FunctionService_RemoveTag_Handler, }, { - MethodName: "ListFunctionTagHistory", - Handler: _FunctionService_ListFunctionTagHistory_Handler, + MethodName: "ListTagHistory", + Handler: _FunctionService_ListTagHistory_Handler, }, { - MethodName: "CreateFunctionVersion", - Handler: _FunctionService_CreateFunctionVersion_Handler, + MethodName: "CreateVersion", + Handler: _FunctionService_CreateVersion_Handler, }, { MethodName: "ListRuntimes", diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1/function_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1/function_service.pbext.go new file mode 100644 index 000000000..4252139ac --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1/function_service.pbext.go @@ -0,0 +1,302 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package functions + +import ( + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetFunctionRequest) SetFunctionId(v string) { + m.FunctionId = v +} + +func (m *GetFunctionVersionRequest) SetFunctionVersionId(v string) { + m.FunctionVersionId = v +} + +func (m *GetFunctionVersionByTagRequest) SetFunctionId(v string) { + m.FunctionId = v +} + +func (m *GetFunctionVersionByTagRequest) SetTag(v string) { + m.Tag = v +} + +func (m *ListFunctionsRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListFunctionsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListFunctionsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListFunctionsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListFunctionsResponse) SetFunctions(v []*Function) { + m.Functions = v +} + +func (m *ListFunctionsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateFunctionRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateFunctionRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateFunctionRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateFunctionRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateFunctionMetadata) SetFunctionId(v string) { + m.FunctionId = v +} + +func (m *UpdateFunctionRequest) SetFunctionId(v string) { + m.FunctionId = v +} + +func (m *UpdateFunctionRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateFunctionRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateFunctionRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateFunctionRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateFunctionMetadata) SetFunctionId(v string) { + m.FunctionId = v +} + +func (m *DeleteFunctionRequest) SetFunctionId(v string) { + m.FunctionId = v +} + +func (m *DeleteFunctionMetadata) SetFunctionId(v string) { + m.FunctionId = v +} + +func (m *ListRuntimesResponse) SetRuntimes(v []string) { + m.Runtimes = v +} + +type ListFunctionsVersionsRequest_Id = isListFunctionsVersionsRequest_Id + +func (m *ListFunctionsVersionsRequest) SetId(v ListFunctionsVersionsRequest_Id) { + m.Id = v +} + +func (m *ListFunctionsVersionsRequest) SetFolderId(v string) { + m.Id = &ListFunctionsVersionsRequest_FolderId{ + FolderId: v, + } +} + +func (m *ListFunctionsVersionsRequest) SetFunctionId(v string) { + m.Id = &ListFunctionsVersionsRequest_FunctionId{ + FunctionId: v, + } +} + +func (m *ListFunctionsVersionsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListFunctionsVersionsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListFunctionsVersionsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListFunctionsVersionsResponse) SetVersions(v []*Version) { + m.Versions = v +} + +func (m *ListFunctionsVersionsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListFunctionOperationsRequest) SetFunctionId(v string) { + m.FunctionId = v +} + +func (m *ListFunctionOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListFunctionOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListFunctionOperationsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListFunctionOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListFunctionOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +type CreateFunctionVersionRequest_PackageSource = isCreateFunctionVersionRequest_PackageSource + +func (m *CreateFunctionVersionRequest) SetPackageSource(v CreateFunctionVersionRequest_PackageSource) { + m.PackageSource = v +} + +func (m *CreateFunctionVersionRequest) SetFunctionId(v string) { + m.FunctionId = v +} + +func (m *CreateFunctionVersionRequest) SetRuntime(v string) { + m.Runtime = v +} + +func (m *CreateFunctionVersionRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateFunctionVersionRequest) SetEntrypoint(v string) { + m.Entrypoint = v +} + +func (m *CreateFunctionVersionRequest) SetResources(v *Resources) { + m.Resources = v +} + +func (m *CreateFunctionVersionRequest) SetExecutionTimeout(v *duration.Duration) { + m.ExecutionTimeout = v +} + +func (m *CreateFunctionVersionRequest) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *CreateFunctionVersionRequest) SetPackage(v *Package) { + m.PackageSource = &CreateFunctionVersionRequest_Package{ + Package: v, + } +} + +func (m *CreateFunctionVersionRequest) SetContent(v []byte) { + m.PackageSource = &CreateFunctionVersionRequest_Content{ + Content: v, + } +} + +func (m *CreateFunctionVersionRequest) SetEnvironment(v map[string]string) { + m.Environment = v +} + +func (m *CreateFunctionVersionRequest) SetTag(v []string) { + m.Tag = v +} + +func (m *CreateFunctionVersionRequest) SetConnectivity(v *Connectivity) { + m.Connectivity = v +} + +func (m *CreateFunctionVersionMetadata) SetFunctionVersionId(v string) { + m.FunctionVersionId = v +} + +func (m *SetFunctionTagRequest) SetFunctionVersionId(v string) { + m.FunctionVersionId = v +} + +func (m *SetFunctionTagRequest) SetTag(v string) { + m.Tag = v +} + +func (m *RemoveFunctionTagRequest) SetFunctionVersionId(v string) { + m.FunctionVersionId = v +} + +func (m *RemoveFunctionTagRequest) SetTag(v string) { + m.Tag = v +} + +func (m *SetFunctionTagMetadata) SetFunctionVersionId(v string) { + m.FunctionVersionId = v +} + +func (m *RemoveFunctionTagMetadata) SetFunctionVersionId(v string) { + m.FunctionVersionId = v +} + +func (m *ListFunctionTagHistoryRequest) SetFunctionId(v string) { + m.FunctionId = v +} + +func (m *ListFunctionTagHistoryRequest) SetTag(v string) { + m.Tag = v +} + +func (m *ListFunctionTagHistoryRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListFunctionTagHistoryRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListFunctionTagHistoryRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListFunctionTagHistoryResponse) SetFunctionTagHistoryRecord(v []*ListFunctionTagHistoryResponse_FunctionTagHistoryRecord) { + m.FunctionTagHistoryRecord = v +} + +func (m *ListFunctionTagHistoryResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListFunctionTagHistoryResponse_FunctionTagHistoryRecord) SetFunctionId(v string) { + m.FunctionId = v +} + +func (m *ListFunctionTagHistoryResponse_FunctionTagHistoryRecord) SetFunctionVersionId(v string) { + m.FunctionVersionId = v +} + +func (m *ListFunctionTagHistoryResponse_FunctionTagHistoryRecord) SetTag(v string) { + m.Tag = v +} + +func (m *ListFunctionTagHistoryResponse_FunctionTagHistoryRecord) SetEffectiveFrom(v *timestamp.Timestamp) { + m.EffectiveFrom = v +} + +func (m *ListFunctionTagHistoryResponse_FunctionTagHistoryRecord) SetEffectiveTo(v *timestamp.Timestamp) { + m.EffectiveTo = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/predicate.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/predicate.pb.go index 187e98e7e..8dbede298 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/predicate.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/predicate.pb.go @@ -254,27 +254,28 @@ func init() { } var fileDescriptor_7702d63b0613d55f = []byte{ - // 352 bytes of a gzipped FileDescriptorProto + // 362 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcf, 0x4a, 0xc3, 0x40, - 0x10, 0xc6, 0xbb, 0xf6, 0x0f, 0x66, 0xdb, 0x1e, 0xdc, 0xa2, 0x04, 0x41, 0x28, 0xed, 0xa5, 0x97, - 0xee, 0x92, 0xf6, 0x22, 0x78, 0x32, 0x07, 0xe9, 0xc1, 0x43, 0xc9, 0x41, 0x44, 0x84, 0xb2, 0xcd, - 0x6e, 0xd2, 0x85, 0x98, 0x84, 0xcd, 0x26, 0xd4, 0x07, 0xf1, 0x7d, 0xf4, 0xe4, 0xab, 0xf4, 0x31, - 0x24, 0xd9, 0x26, 0x8d, 0xe8, 0x21, 0xb7, 0xcc, 0x7c, 0xf9, 0x7e, 0xdf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a, 0x46, 0x24, 0x18, 0xe5, 0x0e, 0x91, 0x0c, + 0x47, 0x22, 0x94, 0x21, 0x1a, 0x2b, 0x13, 0xce, 0x4d, 0xf8, 0x60, 0xc2, 0x85, 0x09, 0xa7, 0xe6, + 0xe5, 0xd5, 0x11, 0x39, 0x25, 0x3e, 0xa7, 0x44, 0xf2, 0x30, 0x50, 0x8c, 0xd1, 0x0e, 0x40, 0x6d, + 0x59, 0x70, 0xd1, 0x13, 0xec, 0x93, 0x80, 0xae, 0xca, 0x20, 0xfd, 0x64, 0x08, 0x26, 0xdd, 0x99, + 0x89, 0x6b, 0x24, 0xe1, 0xbb, 0x80, 0x96, 0xa4, 0x45, 0xc3, 0xee, 0x91, 0x4a, 0x8d, 0x02, 0x78, + 0xee, 0x72, 0xe6, 0xd3, 0x55, 0x4a, 0xfc, 0x84, 0x55, 0x12, 0x5a, 0x79, 0xc2, 0x4d, 0xad, 0x84, + 0xfb, 0x8c, 0xf0, 0x98, 0x01, 0xaa, 0x41, 0x03, 0xf7, 0x77, 0xdb, 0x3a, 0x83, 0x5a, 0x99, 0x81, + 0x5a, 0x9f, 0x5f, 0x26, 0x18, 0xbd, 0xc0, 0x5e, 0x75, 0x44, 0xf4, 0x50, 0xf9, 0x45, 0x07, 0xc3, + 0xe6, 0xa4, 0x3b, 0xc3, 0xb5, 0xc6, 0x28, 0x11, 0xf6, 0x01, 0x30, 0xfa, 0x00, 0x70, 0xf0, 0xc7, + 0x7c, 0x68, 0x0c, 0xa1, 0x5a, 0x3c, 0x22, 0x72, 0xa3, 0x83, 0x21, 0x98, 0x68, 0x56, 0x6b, 0xf7, + 0x6d, 0x02, 0x5b, 0xcb, 0xfb, 0x4b, 0x22, 0x37, 0xe8, 0x02, 0xb6, 0xd9, 0x96, 0x38, 0x52, 0x6f, + 0x66, 0xfa, 0xa2, 0x61, 0xab, 0x12, 0xe9, 0xb0, 0x13, 0x09, 0xe6, 0xf2, 0xad, 0x7e, 0xba, 0x17, + 0xf6, 0x75, 0xa6, 0xc4, 0x89, 0x9b, 0x29, 0x5a, 0xa1, 0xa8, 0xda, 0xea, 0xc3, 0x76, 0xfe, 0xc6, + 0x6a, 0x6b, 0xeb, 0x1d, 0x5e, 0x1f, 0xed, 0x44, 0x22, 0xfe, 0xcf, 0x5e, 0xcf, 0x4b, 0x8f, 0xcb, + 0x4d, 0xb2, 0xc6, 0x4e, 0xf8, 0x6a, 0x28, 0xcf, 0x54, 0x5d, 0x8d, 0x17, 0x4e, 0x3d, 0x16, 0xe4, + 0x07, 0x63, 0xd4, 0x38, 0xd4, 0xdb, 0xe2, 0x7b, 0xdd, 0xc9, 0x3d, 0xf3, 0x9f, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x24, 0xa1, 0xc4, 0x2b, 0xdf, 0x02, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/predicate.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/predicate.pbext.go new file mode 100644 index 000000000..e98adc574 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/predicate.pbext.go @@ -0,0 +1,53 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package triggers + +type Predicate_Predicate = isPredicate_Predicate + +func (m *Predicate) SetPredicate(v Predicate_Predicate) { + m.Predicate = v +} + +func (m *Predicate) SetAndPredicate(v *AndPredicate) { + m.Predicate = &Predicate_AndPredicate{ + AndPredicate: v, + } +} + +func (m *Predicate) SetFieldValuePredicate(v *FieldValuePredicate) { + m.Predicate = &Predicate_FieldValuePredicate{ + FieldValuePredicate: v, + } +} + +func (m *AndPredicate) SetPredicate(v []*Predicate) { + m.Predicate = v +} + +type FieldValuePredicate_Value = isFieldValuePredicate_Value + +func (m *FieldValuePredicate) SetValue(v FieldValuePredicate_Value) { + m.Value = v +} + +func (m *FieldValuePredicate) SetFieldPath(v string) { + m.FieldPath = v +} + +func (m *FieldValuePredicate) SetExact(v string) { + m.Value = &FieldValuePredicate_Exact{ + Exact: v, + } +} + +func (m *FieldValuePredicate) SetPrefix(v string) { + m.Value = &FieldValuePredicate_Prefix{ + Prefix: v, + } +} + +func (m *FieldValuePredicate) SetSuffix(v string) { + m.Value = &FieldValuePredicate_Suffix{ + Suffix: v, + } +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/trigger.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/trigger.pb.go index 0536b5e1a..385d3c9dc 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/trigger.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/trigger.pb.go @@ -27,17 +27,34 @@ type TriggerType int32 const ( TriggerType_TRIGGER_TYPE_UNSPECIFIED TriggerType = 0 - TriggerType_MESSAGE_QUEUE TriggerType = 3 + // The trigger is activated on a timer. + TriggerType_TIMER TriggerType = 2 + // The trigger is activated by messages from a message queue. + // + // Only Yandex Message Queue is currently supported. + TriggerType_MESSAGE_QUEUE TriggerType = 3 + // The trigger is activated by messages from Yandex IoT Core. + TriggerType_IOT_MESSAGE TriggerType = 4 + TriggerType_OBJECT_STORAGE TriggerType = 5 + TriggerType_CONTAINER_REGISTRY TriggerType = 6 ) var TriggerType_name = map[int32]string{ 0: "TRIGGER_TYPE_UNSPECIFIED", + 2: "TIMER", 3: "MESSAGE_QUEUE", + 4: "IOT_MESSAGE", + 5: "OBJECT_STORAGE", + 6: "CONTAINER_REGISTRY", } var TriggerType_value = map[string]int32{ "TRIGGER_TYPE_UNSPECIFIED": 0, + "TIMER": 2, "MESSAGE_QUEUE": 3, + "IOT_MESSAGE": 4, + "OBJECT_STORAGE": 5, + "CONTAINER_REGISTRY": 6, } func (x TriggerType) String() string { @@ -48,24 +65,120 @@ func (TriggerType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_83d7b339cc811d06, []int{0} } +type Trigger_ObjectStorageEventType int32 + +const ( + Trigger_OBJECT_STORAGE_EVENT_TYPE_UNSPECIFIED Trigger_ObjectStorageEventType = 0 + Trigger_OBJECT_STORAGE_EVENT_TYPE_CREATE_OBJECT Trigger_ObjectStorageEventType = 1 + Trigger_OBJECT_STORAGE_EVENT_TYPE_UPDATE_OBJECT Trigger_ObjectStorageEventType = 2 + Trigger_OBJECT_STORAGE_EVENT_TYPE_DELETE_OBJECT Trigger_ObjectStorageEventType = 3 +) + +var Trigger_ObjectStorageEventType_name = map[int32]string{ + 0: "OBJECT_STORAGE_EVENT_TYPE_UNSPECIFIED", + 1: "OBJECT_STORAGE_EVENT_TYPE_CREATE_OBJECT", + 2: "OBJECT_STORAGE_EVENT_TYPE_UPDATE_OBJECT", + 3: "OBJECT_STORAGE_EVENT_TYPE_DELETE_OBJECT", +} + +var Trigger_ObjectStorageEventType_value = map[string]int32{ + "OBJECT_STORAGE_EVENT_TYPE_UNSPECIFIED": 0, + "OBJECT_STORAGE_EVENT_TYPE_CREATE_OBJECT": 1, + "OBJECT_STORAGE_EVENT_TYPE_UPDATE_OBJECT": 2, + "OBJECT_STORAGE_EVENT_TYPE_DELETE_OBJECT": 3, +} + +func (x Trigger_ObjectStorageEventType) String() string { + return proto.EnumName(Trigger_ObjectStorageEventType_name, int32(x)) +} + +func (Trigger_ObjectStorageEventType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_83d7b339cc811d06, []int{0, 0} +} + +type Trigger_ContainerRegistryEventType int32 + +const ( + Trigger_CONTAINER_REGISTRY_EVENT_TYPE_UNSPECIFIED Trigger_ContainerRegistryEventType = 0 + Trigger_CONTAINER_REGISTRY_EVENT_TYPE_CREATE_IMAGE Trigger_ContainerRegistryEventType = 1 + Trigger_CONTAINER_REGISTRY_EVENT_TYPE_DELETE_IMAGE Trigger_ContainerRegistryEventType = 2 + Trigger_CONTAINER_REGISTRY_EVENT_TYPE_CREATE_IMAGE_TAG Trigger_ContainerRegistryEventType = 3 + Trigger_CONTAINER_REGISTRY_EVENT_TYPE_DELETE_IMAGE_TAG Trigger_ContainerRegistryEventType = 4 +) + +var Trigger_ContainerRegistryEventType_name = map[int32]string{ + 0: "CONTAINER_REGISTRY_EVENT_TYPE_UNSPECIFIED", + 1: "CONTAINER_REGISTRY_EVENT_TYPE_CREATE_IMAGE", + 2: "CONTAINER_REGISTRY_EVENT_TYPE_DELETE_IMAGE", + 3: "CONTAINER_REGISTRY_EVENT_TYPE_CREATE_IMAGE_TAG", + 4: "CONTAINER_REGISTRY_EVENT_TYPE_DELETE_IMAGE_TAG", +} + +var Trigger_ContainerRegistryEventType_value = map[string]int32{ + "CONTAINER_REGISTRY_EVENT_TYPE_UNSPECIFIED": 0, + "CONTAINER_REGISTRY_EVENT_TYPE_CREATE_IMAGE": 1, + "CONTAINER_REGISTRY_EVENT_TYPE_DELETE_IMAGE": 2, + "CONTAINER_REGISTRY_EVENT_TYPE_CREATE_IMAGE_TAG": 3, + "CONTAINER_REGISTRY_EVENT_TYPE_DELETE_IMAGE_TAG": 4, +} + +func (x Trigger_ContainerRegistryEventType) String() string { + return proto.EnumName(Trigger_ContainerRegistryEventType_name, int32(x)) +} + +func (Trigger_ContainerRegistryEventType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_83d7b339cc811d06, []int{0, 1} +} + +type Trigger_Status int32 + +const ( + Trigger_STATUS_UNSPECIFIED Trigger_Status = 0 + Trigger_ACTIVE Trigger_Status = 1 + Trigger_PAUSED Trigger_Status = 2 +) + +var Trigger_Status_name = map[int32]string{ + 0: "STATUS_UNSPECIFIED", + 1: "ACTIVE", + 2: "PAUSED", +} + +var Trigger_Status_value = map[string]int32{ + "STATUS_UNSPECIFIED": 0, + "ACTIVE": 1, + "PAUSED": 2, +} + +func (x Trigger_Status) String() string { + return proto.EnumName(Trigger_Status_name, int32(x)) +} + +func (Trigger_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_83d7b339cc811d06, []int{0, 2} +} + +// A trigger to invoke a serverless function. For more information, see [Triggers](/docs/functions/concepts/trigger). type Trigger struct { - // ID of the trigger. + // ID of the trigger. Generated at creation time. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the folder that the trigger belongs to. FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` - // Timestamp when the trigger was created. + // Creation timestamp for the trigger. CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Name of the trigger. Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // Description of the trigger. Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` - // Resource labels as `key:value` pairs. + // Trigger labels as `key:value` pairs. Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Defines trigger rule (is always consistent with type filed) - Rule *Trigger_Rule `protobuf:"bytes,8,opt,name=rule,proto3" json:"rule,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // Rule for trigger activation (always consistent with the trigger type). + Rule *Trigger_Rule `protobuf:"bytes,8,opt,name=rule,proto3" json:"rule,omitempty"` + // Trigger status + Status Trigger_Status `protobuf:"varint,9,opt,name=status,proto3,enum=yandex.cloud.serverless.triggers.v1.Trigger_Status" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Trigger) Reset() { *m = Trigger{} } @@ -142,10 +255,21 @@ func (m *Trigger) GetRule() *Trigger_Rule { return nil } +func (m *Trigger) GetStatus() Trigger_Status { + if m != nil { + return m.Status + } + return Trigger_STATUS_UNSPECIFIED +} + +// Description of a rule for trigger activation. type Trigger_Rule struct { // Types that are valid to be assigned to Rule: + // *Trigger_Rule_Timer // *Trigger_Rule_MessageQueue // *Trigger_Rule_IotMessage + // *Trigger_Rule_ObjectStorage + // *Trigger_Rule_ContainerRegistry Rule isTrigger_Rule_Rule `protobuf_oneof:"rule"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -181,6 +305,10 @@ type isTrigger_Rule_Rule interface { isTrigger_Rule_Rule() } +type Trigger_Rule_Timer struct { + Timer *Trigger_Timer `protobuf:"bytes,2,opt,name=timer,proto3,oneof"` +} + type Trigger_Rule_MessageQueue struct { MessageQueue *Trigger_MessageQueue `protobuf:"bytes,3,opt,name=message_queue,json=messageQueue,proto3,oneof"` } @@ -189,10 +317,24 @@ type Trigger_Rule_IotMessage struct { IotMessage *Trigger_IoTMessage `protobuf:"bytes,4,opt,name=iot_message,json=iotMessage,proto3,oneof"` } +type Trigger_Rule_ObjectStorage struct { + ObjectStorage *Trigger_ObjectStorage `protobuf:"bytes,5,opt,name=object_storage,json=objectStorage,proto3,oneof"` +} + +type Trigger_Rule_ContainerRegistry struct { + ContainerRegistry *Trigger_ContainerRegistry `protobuf:"bytes,6,opt,name=container_registry,json=containerRegistry,proto3,oneof"` +} + +func (*Trigger_Rule_Timer) isTrigger_Rule_Rule() {} + func (*Trigger_Rule_MessageQueue) isTrigger_Rule_Rule() {} func (*Trigger_Rule_IotMessage) isTrigger_Rule_Rule() {} +func (*Trigger_Rule_ObjectStorage) isTrigger_Rule_Rule() {} + +func (*Trigger_Rule_ContainerRegistry) isTrigger_Rule_Rule() {} + func (m *Trigger_Rule) GetRule() isTrigger_Rule_Rule { if m != nil { return m.Rule @@ -200,6 +342,13 @@ func (m *Trigger_Rule) GetRule() isTrigger_Rule_Rule { return nil } +func (m *Trigger_Rule) GetTimer() *Trigger_Timer { + if x, ok := m.GetRule().(*Trigger_Rule_Timer); ok { + return x.Timer + } + return nil +} + func (m *Trigger_Rule) GetMessageQueue() *Trigger_MessageQueue { if x, ok := m.GetRule().(*Trigger_Rule_MessageQueue); ok { return x.MessageQueue @@ -214,24 +363,135 @@ func (m *Trigger_Rule) GetIotMessage() *Trigger_IoTMessage { return nil } +func (m *Trigger_Rule) GetObjectStorage() *Trigger_ObjectStorage { + if x, ok := m.GetRule().(*Trigger_Rule_ObjectStorage); ok { + return x.ObjectStorage + } + return nil +} + +func (m *Trigger_Rule) GetContainerRegistry() *Trigger_ContainerRegistry { + if x, ok := m.GetRule().(*Trigger_Rule_ContainerRegistry); ok { + return x.ContainerRegistry + } + return nil +} + // XXX_OneofWrappers is for the internal use of the proto package. func (*Trigger_Rule) XXX_OneofWrappers() []interface{} { return []interface{}{ + (*Trigger_Rule_Timer)(nil), (*Trigger_Rule_MessageQueue)(nil), (*Trigger_Rule_IotMessage)(nil), + (*Trigger_Rule_ObjectStorage)(nil), + (*Trigger_Rule_ContainerRegistry)(nil), } } -type Trigger_MessageQueue struct { - // ID of the queue. +// Rule for activating a timed trigger. +type Trigger_Timer struct { + // Description of a schedule as a [cron expression](/docs/functions/concepts/trigger/timer). + CronExpression string `protobuf:"bytes,1,opt,name=cron_expression,json=cronExpression,proto3" json:"cron_expression,omitempty"` + // Action to be executed when the current time matches the [cron_expression]. // - // Types that are valid to be assigned to Queue: - // *Trigger_MessageQueue_Arn - Queue isTrigger_MessageQueue_Queue `protobuf_oneof:"queue"` - // SA which has read access to the queue. + // Types that are valid to be assigned to Action: + // *Trigger_Timer_InvokeFunction + // *Trigger_Timer_InvokeFunctionWithRetry + Action isTrigger_Timer_Action `protobuf_oneof:"action"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Trigger_Timer) Reset() { *m = Trigger_Timer{} } +func (m *Trigger_Timer) String() string { return proto.CompactTextString(m) } +func (*Trigger_Timer) ProtoMessage() {} +func (*Trigger_Timer) Descriptor() ([]byte, []int) { + return fileDescriptor_83d7b339cc811d06, []int{0, 2} +} + +func (m *Trigger_Timer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Trigger_Timer.Unmarshal(m, b) +} +func (m *Trigger_Timer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Trigger_Timer.Marshal(b, m, deterministic) +} +func (m *Trigger_Timer) XXX_Merge(src proto.Message) { + xxx_messageInfo_Trigger_Timer.Merge(m, src) +} +func (m *Trigger_Timer) XXX_Size() int { + return xxx_messageInfo_Trigger_Timer.Size(m) +} +func (m *Trigger_Timer) XXX_DiscardUnknown() { + xxx_messageInfo_Trigger_Timer.DiscardUnknown(m) +} + +var xxx_messageInfo_Trigger_Timer proto.InternalMessageInfo + +func (m *Trigger_Timer) GetCronExpression() string { + if m != nil { + return m.CronExpression + } + return "" +} + +type isTrigger_Timer_Action interface { + isTrigger_Timer_Action() +} + +type Trigger_Timer_InvokeFunction struct { + InvokeFunction *InvokeFunctionOnce `protobuf:"bytes,101,opt,name=invoke_function,json=invokeFunction,proto3,oneof"` +} + +type Trigger_Timer_InvokeFunctionWithRetry struct { + InvokeFunctionWithRetry *InvokeFunctionWithRetry `protobuf:"bytes,103,opt,name=invoke_function_with_retry,json=invokeFunctionWithRetry,proto3,oneof"` +} + +func (*Trigger_Timer_InvokeFunction) isTrigger_Timer_Action() {} + +func (*Trigger_Timer_InvokeFunctionWithRetry) isTrigger_Timer_Action() {} + +func (m *Trigger_Timer) GetAction() isTrigger_Timer_Action { + if m != nil { + return m.Action + } + return nil +} + +func (m *Trigger_Timer) GetInvokeFunction() *InvokeFunctionOnce { + if x, ok := m.GetAction().(*Trigger_Timer_InvokeFunction); ok { + return x.InvokeFunction + } + return nil +} + +func (m *Trigger_Timer) GetInvokeFunctionWithRetry() *InvokeFunctionWithRetry { + if x, ok := m.GetAction().(*Trigger_Timer_InvokeFunctionWithRetry); ok { + return x.InvokeFunctionWithRetry + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Trigger_Timer) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Trigger_Timer_InvokeFunction)(nil), + (*Trigger_Timer_InvokeFunctionWithRetry)(nil), + } +} + +// Rule for activating a message queue trigger. +type Trigger_MessageQueue struct { + // ID of the message queue in Yandex Message Queue. + QueueId string `protobuf:"bytes,11,opt,name=queue_id,json=queueId,proto3" json:"queue_id,omitempty"` + // ID of the service account which has read access to the message queue. ServiceAccountId string `protobuf:"bytes,3,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` - // Batch settings for YMQ client. + // Batch settings for processing messages in the queue. BatchSettings *BatchSettings `protobuf:"bytes,4,opt,name=batch_settings,json=batchSettings,proto3" json:"batch_settings,omitempty"` + // Queue visibility timeout override. + VisibilityTimeout *duration.Duration `protobuf:"bytes,5,opt,name=visibility_timeout,json=visibilityTimeout,proto3" json:"visibility_timeout,omitempty"` + // Action to be executed when the there's a new message in the queue. + // // Types that are valid to be assigned to Action: // *Trigger_MessageQueue_InvokeFunction Action isTrigger_MessageQueue_Action `protobuf_oneof:"action"` @@ -244,7 +504,7 @@ func (m *Trigger_MessageQueue) Reset() { *m = Trigger_MessageQueue{} } func (m *Trigger_MessageQueue) String() string { return proto.CompactTextString(m) } func (*Trigger_MessageQueue) ProtoMessage() {} func (*Trigger_MessageQueue) Descriptor() ([]byte, []int) { - return fileDescriptor_83d7b339cc811d06, []int{0, 2} + return fileDescriptor_83d7b339cc811d06, []int{0, 3} } func (m *Trigger_MessageQueue) XXX_Unmarshal(b []byte) error { @@ -265,26 +525,9 @@ func (m *Trigger_MessageQueue) XXX_DiscardUnknown() { var xxx_messageInfo_Trigger_MessageQueue proto.InternalMessageInfo -type isTrigger_MessageQueue_Queue interface { - isTrigger_MessageQueue_Queue() -} - -type Trigger_MessageQueue_Arn struct { - Arn string `protobuf:"bytes,11,opt,name=arn,proto3,oneof"` -} - -func (*Trigger_MessageQueue_Arn) isTrigger_MessageQueue_Queue() {} - -func (m *Trigger_MessageQueue) GetQueue() isTrigger_MessageQueue_Queue { +func (m *Trigger_MessageQueue) GetQueueId() string { if m != nil { - return m.Queue - } - return nil -} - -func (m *Trigger_MessageQueue) GetArn() string { - if x, ok := m.GetQueue().(*Trigger_MessageQueue_Arn); ok { - return x.Arn + return m.QueueId } return "" } @@ -303,6 +546,13 @@ func (m *Trigger_MessageQueue) GetBatchSettings() *BatchSettings { return nil } +func (m *Trigger_MessageQueue) GetVisibilityTimeout() *duration.Duration { + if m != nil { + return m.VisibilityTimeout + } + return nil +} + type isTrigger_MessageQueue_Action interface { isTrigger_MessageQueue_Action() } @@ -330,15 +580,20 @@ func (m *Trigger_MessageQueue) GetInvokeFunction() *InvokeFunctionOnce { // XXX_OneofWrappers is for the internal use of the proto package. func (*Trigger_MessageQueue) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*Trigger_MessageQueue_Arn)(nil), (*Trigger_MessageQueue_InvokeFunction)(nil), } } +// Rule for activating a Yandex IoT Core trigger. type Trigger_IoTMessage struct { + // ID of the Yandex IoT Core registry. RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` - DeviceId string `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` - MqttTopic string `protobuf:"bytes,3,opt,name=mqtt_topic,json=mqttTopic,proto3" json:"mqtt_topic,omitempty"` + // ID of the Yandex IoT Core device in the registry. + DeviceId string `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + // MQTT topic whose messages activate the trigger. + MqttTopic string `protobuf:"bytes,3,opt,name=mqtt_topic,json=mqttTopic,proto3" json:"mqtt_topic,omitempty"` + // Action to be executed when the there's a new message in the MQTT topic. + // // Types that are valid to be assigned to Action: // *Trigger_IoTMessage_InvokeFunction Action isTrigger_IoTMessage_Action `protobuf_oneof:"action"` @@ -351,7 +606,7 @@ func (m *Trigger_IoTMessage) Reset() { *m = Trigger_IoTMessage{} } func (m *Trigger_IoTMessage) String() string { return proto.CompactTextString(m) } func (*Trigger_IoTMessage) ProtoMessage() {} func (*Trigger_IoTMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_83d7b339cc811d06, []int{0, 3} + return fileDescriptor_83d7b339cc811d06, []int{0, 4} } func (m *Trigger_IoTMessage) XXX_Unmarshal(b []byte) error { @@ -424,10 +679,211 @@ func (*Trigger_IoTMessage) XXX_OneofWrappers() []interface{} { } } +type Trigger_ObjectStorage struct { + // Type (name) of events, at least one value is required. + EventType []Trigger_ObjectStorageEventType `protobuf:"varint,3,rep,packed,name=event_type,json=eventType,proto3,enum=yandex.cloud.serverless.triggers.v1.Trigger_ObjectStorageEventType" json:"event_type,omitempty"` + BucketId string `protobuf:"bytes,4,opt,name=bucket_id,json=bucketId,proto3" json:"bucket_id,omitempty"` + // Filter, optional. + Prefix string `protobuf:"bytes,6,opt,name=prefix,proto3" json:"prefix,omitempty"` + Suffix string `protobuf:"bytes,7,opt,name=suffix,proto3" json:"suffix,omitempty"` + // Types that are valid to be assigned to Action: + // *Trigger_ObjectStorage_InvokeFunction + Action isTrigger_ObjectStorage_Action `protobuf_oneof:"action"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Trigger_ObjectStorage) Reset() { *m = Trigger_ObjectStorage{} } +func (m *Trigger_ObjectStorage) String() string { return proto.CompactTextString(m) } +func (*Trigger_ObjectStorage) ProtoMessage() {} +func (*Trigger_ObjectStorage) Descriptor() ([]byte, []int) { + return fileDescriptor_83d7b339cc811d06, []int{0, 5} +} + +func (m *Trigger_ObjectStorage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Trigger_ObjectStorage.Unmarshal(m, b) +} +func (m *Trigger_ObjectStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Trigger_ObjectStorage.Marshal(b, m, deterministic) +} +func (m *Trigger_ObjectStorage) XXX_Merge(src proto.Message) { + xxx_messageInfo_Trigger_ObjectStorage.Merge(m, src) +} +func (m *Trigger_ObjectStorage) XXX_Size() int { + return xxx_messageInfo_Trigger_ObjectStorage.Size(m) +} +func (m *Trigger_ObjectStorage) XXX_DiscardUnknown() { + xxx_messageInfo_Trigger_ObjectStorage.DiscardUnknown(m) +} + +var xxx_messageInfo_Trigger_ObjectStorage proto.InternalMessageInfo + +func (m *Trigger_ObjectStorage) GetEventType() []Trigger_ObjectStorageEventType { + if m != nil { + return m.EventType + } + return nil +} + +func (m *Trigger_ObjectStorage) GetBucketId() string { + if m != nil { + return m.BucketId + } + return "" +} + +func (m *Trigger_ObjectStorage) GetPrefix() string { + if m != nil { + return m.Prefix + } + return "" +} + +func (m *Trigger_ObjectStorage) GetSuffix() string { + if m != nil { + return m.Suffix + } + return "" +} + +type isTrigger_ObjectStorage_Action interface { + isTrigger_ObjectStorage_Action() +} + +type Trigger_ObjectStorage_InvokeFunction struct { + InvokeFunction *InvokeFunctionWithRetry `protobuf:"bytes,101,opt,name=invoke_function,json=invokeFunction,proto3,oneof"` +} + +func (*Trigger_ObjectStorage_InvokeFunction) isTrigger_ObjectStorage_Action() {} + +func (m *Trigger_ObjectStorage) GetAction() isTrigger_ObjectStorage_Action { + if m != nil { + return m.Action + } + return nil +} + +func (m *Trigger_ObjectStorage) GetInvokeFunction() *InvokeFunctionWithRetry { + if x, ok := m.GetAction().(*Trigger_ObjectStorage_InvokeFunction); ok { + return x.InvokeFunction + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Trigger_ObjectStorage) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Trigger_ObjectStorage_InvokeFunction)(nil), + } +} + +type Trigger_ContainerRegistry struct { + // Type (name) of events, at least one value is required. + EventType []Trigger_ContainerRegistryEventType `protobuf:"varint,3,rep,packed,name=event_type,json=eventType,proto3,enum=yandex.cloud.serverless.triggers.v1.Trigger_ContainerRegistryEventType" json:"event_type,omitempty"` + RegistryId string `protobuf:"bytes,4,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"` + // Filter, optional. + ImageName string `protobuf:"bytes,5,opt,name=image_name,json=imageName,proto3" json:"image_name,omitempty"` + Tag string `protobuf:"bytes,6,opt,name=tag,proto3" json:"tag,omitempty"` + // Types that are valid to be assigned to Action: + // *Trigger_ContainerRegistry_InvokeFunction + Action isTrigger_ContainerRegistry_Action `protobuf_oneof:"action"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Trigger_ContainerRegistry) Reset() { *m = Trigger_ContainerRegistry{} } +func (m *Trigger_ContainerRegistry) String() string { return proto.CompactTextString(m) } +func (*Trigger_ContainerRegistry) ProtoMessage() {} +func (*Trigger_ContainerRegistry) Descriptor() ([]byte, []int) { + return fileDescriptor_83d7b339cc811d06, []int{0, 6} +} + +func (m *Trigger_ContainerRegistry) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Trigger_ContainerRegistry.Unmarshal(m, b) +} +func (m *Trigger_ContainerRegistry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Trigger_ContainerRegistry.Marshal(b, m, deterministic) +} +func (m *Trigger_ContainerRegistry) XXX_Merge(src proto.Message) { + xxx_messageInfo_Trigger_ContainerRegistry.Merge(m, src) +} +func (m *Trigger_ContainerRegistry) XXX_Size() int { + return xxx_messageInfo_Trigger_ContainerRegistry.Size(m) +} +func (m *Trigger_ContainerRegistry) XXX_DiscardUnknown() { + xxx_messageInfo_Trigger_ContainerRegistry.DiscardUnknown(m) +} + +var xxx_messageInfo_Trigger_ContainerRegistry proto.InternalMessageInfo + +func (m *Trigger_ContainerRegistry) GetEventType() []Trigger_ContainerRegistryEventType { + if m != nil { + return m.EventType + } + return nil +} + +func (m *Trigger_ContainerRegistry) GetRegistryId() string { + if m != nil { + return m.RegistryId + } + return "" +} + +func (m *Trigger_ContainerRegistry) GetImageName() string { + if m != nil { + return m.ImageName + } + return "" +} + +func (m *Trigger_ContainerRegistry) GetTag() string { + if m != nil { + return m.Tag + } + return "" +} + +type isTrigger_ContainerRegistry_Action interface { + isTrigger_ContainerRegistry_Action() +} + +type Trigger_ContainerRegistry_InvokeFunction struct { + InvokeFunction *InvokeFunctionWithRetry `protobuf:"bytes,101,opt,name=invoke_function,json=invokeFunction,proto3,oneof"` +} + +func (*Trigger_ContainerRegistry_InvokeFunction) isTrigger_ContainerRegistry_Action() {} + +func (m *Trigger_ContainerRegistry) GetAction() isTrigger_ContainerRegistry_Action { + if m != nil { + return m.Action + } + return nil +} + +func (m *Trigger_ContainerRegistry) GetInvokeFunction() *InvokeFunctionWithRetry { + if x, ok := m.GetAction().(*Trigger_ContainerRegistry_InvokeFunction); ok { + return x.InvokeFunction + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Trigger_ContainerRegistry) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Trigger_ContainerRegistry_InvokeFunction)(nil), + } +} + +// A single function invocation. type InvokeFunctionOnce struct { - FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` + // ID of the function to invoke. + FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` + // Tag of the function version to execute. FunctionTag string `protobuf:"bytes,2,opt,name=function_tag,json=functionTag,proto3" json:"function_tag,omitempty"` - // SA which should be used to call a function, optional. + // ID of the service account that should be used to invoke the function. ServiceAccountId string `protobuf:"bytes,3,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -480,16 +936,21 @@ func (m *InvokeFunctionOnce) GetServiceAccountId() string { return "" } +// A function invocation with retries. type InvokeFunctionWithRetry struct { - FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` + // ID of the function to invoke. + FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` + // Tag of the function version to execute. FunctionTag string `protobuf:"bytes,2,opt,name=function_tag,json=functionTag,proto3" json:"function_tag,omitempty"` - // SA which has call permission on the function, optional. + // ID of the service account which has permission to invoke the function. ServiceAccountId string `protobuf:"bytes,3,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` - // Retry policy, optional (no value means no retry). - RetrySettings *RetrySettings `protobuf:"bytes,4,opt,name=retry_settings,json=retrySettings,proto3" json:"retry_settings,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // Retry policy. If the field is not specified, or the value is empty, no retries will be attempted. + RetrySettings *RetrySettings `protobuf:"bytes,4,opt,name=retry_settings,json=retrySettings,proto3" json:"retry_settings,omitempty"` + // DLQ policy (no value means discarding a message) + DeadLetterQueue *PutQueueMessage `protobuf:"bytes,5,opt,name=dead_letter_queue,json=deadLetterQueue,proto3" json:"dead_letter_queue,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *InvokeFunctionWithRetry) Reset() { *m = InvokeFunctionWithRetry{} } @@ -545,10 +1006,69 @@ func (m *InvokeFunctionWithRetry) GetRetrySettings() *RetrySettings { return nil } +func (m *InvokeFunctionWithRetry) GetDeadLetterQueue() *PutQueueMessage { + if m != nil { + return m.DeadLetterQueue + } + return nil +} + +type PutQueueMessage struct { + // ID of the queue. + QueueId string `protobuf:"bytes,11,opt,name=queue_id,json=queueId,proto3" json:"queue_id,omitempty"` + // SA which has write permission on the queue. + ServiceAccountId string `protobuf:"bytes,2,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PutQueueMessage) Reset() { *m = PutQueueMessage{} } +func (m *PutQueueMessage) String() string { return proto.CompactTextString(m) } +func (*PutQueueMessage) ProtoMessage() {} +func (*PutQueueMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_83d7b339cc811d06, []int{3} +} + +func (m *PutQueueMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PutQueueMessage.Unmarshal(m, b) +} +func (m *PutQueueMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PutQueueMessage.Marshal(b, m, deterministic) +} +func (m *PutQueueMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutQueueMessage.Merge(m, src) +} +func (m *PutQueueMessage) XXX_Size() int { + return xxx_messageInfo_PutQueueMessage.Size(m) +} +func (m *PutQueueMessage) XXX_DiscardUnknown() { + xxx_messageInfo_PutQueueMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_PutQueueMessage proto.InternalMessageInfo + +func (m *PutQueueMessage) GetQueueId() string { + if m != nil { + return m.QueueId + } + return "" +} + +func (m *PutQueueMessage) GetServiceAccountId() string { + if m != nil { + return m.ServiceAccountId + } + return "" +} + +// Settings for batch processing of messages in a queue. type BatchSettings struct { - // Maximum batch size: trigger will send a batch if number of events exceeds this value. + // Batch size. Trigger will send the batch of messages to the associated function + // when the number of messages in the queue reaches this value, or the [cutoff] time has passed. Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` - // Maximum batch size: trigger will send a batch if its lifetime exceeds this value. + // Maximum wait time. Trigger will send the batch of messages the time since the last batch + // exceeds the `cutoff` value, regardless of the amount of messages in the queue. Cutoff *duration.Duration `protobuf:"bytes,2,opt,name=cutoff,proto3" json:"cutoff,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -559,7 +1079,7 @@ func (m *BatchSettings) Reset() { *m = BatchSettings{} } func (m *BatchSettings) String() string { return proto.CompactTextString(m) } func (*BatchSettings) ProtoMessage() {} func (*BatchSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_83d7b339cc811d06, []int{3} + return fileDescriptor_83d7b339cc811d06, []int{4} } func (m *BatchSettings) XXX_Unmarshal(b []byte) error { @@ -594,10 +1114,11 @@ func (m *BatchSettings) GetCutoff() *duration.Duration { return nil } +// Settings for retrying to invoke a function. type RetrySettings struct { - // Maximum number of retries (extra calls) before an action fails. + // Maximum number of retries (extra invokes) before the action is considered failed. RetryAttempts int64 `protobuf:"varint,1,opt,name=retry_attempts,json=retryAttempts,proto3" json:"retry_attempts,omitempty"` - // Interval between tries. + // Time in seconds to wait between individual retries. Interval *duration.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -608,7 +1129,7 @@ func (m *RetrySettings) Reset() { *m = RetrySettings{} } func (m *RetrySettings) String() string { return proto.CompactTextString(m) } func (*RetrySettings) ProtoMessage() {} func (*RetrySettings) Descriptor() ([]byte, []int) { - return fileDescriptor_83d7b339cc811d06, []int{4} + return fileDescriptor_83d7b339cc811d06, []int{5} } func (m *RetrySettings) XXX_Unmarshal(b []byte) error { @@ -645,13 +1166,20 @@ func (m *RetrySettings) GetInterval() *duration.Duration { func init() { proto.RegisterEnum("yandex.cloud.serverless.triggers.v1.TriggerType", TriggerType_name, TriggerType_value) + proto.RegisterEnum("yandex.cloud.serverless.triggers.v1.Trigger_ObjectStorageEventType", Trigger_ObjectStorageEventType_name, Trigger_ObjectStorageEventType_value) + proto.RegisterEnum("yandex.cloud.serverless.triggers.v1.Trigger_ContainerRegistryEventType", Trigger_ContainerRegistryEventType_name, Trigger_ContainerRegistryEventType_value) + proto.RegisterEnum("yandex.cloud.serverless.triggers.v1.Trigger_Status", Trigger_Status_name, Trigger_Status_value) proto.RegisterType((*Trigger)(nil), "yandex.cloud.serverless.triggers.v1.Trigger") proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.serverless.triggers.v1.Trigger.LabelsEntry") proto.RegisterType((*Trigger_Rule)(nil), "yandex.cloud.serverless.triggers.v1.Trigger.Rule") + proto.RegisterType((*Trigger_Timer)(nil), "yandex.cloud.serverless.triggers.v1.Trigger.Timer") proto.RegisterType((*Trigger_MessageQueue)(nil), "yandex.cloud.serverless.triggers.v1.Trigger.MessageQueue") proto.RegisterType((*Trigger_IoTMessage)(nil), "yandex.cloud.serverless.triggers.v1.Trigger.IoTMessage") + proto.RegisterType((*Trigger_ObjectStorage)(nil), "yandex.cloud.serverless.triggers.v1.Trigger.ObjectStorage") + proto.RegisterType((*Trigger_ContainerRegistry)(nil), "yandex.cloud.serverless.triggers.v1.Trigger.ContainerRegistry") proto.RegisterType((*InvokeFunctionOnce)(nil), "yandex.cloud.serverless.triggers.v1.InvokeFunctionOnce") proto.RegisterType((*InvokeFunctionWithRetry)(nil), "yandex.cloud.serverless.triggers.v1.InvokeFunctionWithRetry") + proto.RegisterType((*PutQueueMessage)(nil), "yandex.cloud.serverless.triggers.v1.PutQueueMessage") proto.RegisterType((*BatchSettings)(nil), "yandex.cloud.serverless.triggers.v1.BatchSettings") proto.RegisterType((*RetrySettings)(nil), "yandex.cloud.serverless.triggers.v1.RetrySettings") } @@ -661,62 +1189,100 @@ func init() { } var fileDescriptor_83d7b339cc811d06 = []byte{ - // 897 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x41, 0x73, 0xdb, 0x44, - 0x14, 0xb6, 0x6c, 0xc7, 0xb5, 0x9f, 0x6c, 0x13, 0x76, 0x98, 0x41, 0x98, 0x16, 0x82, 0x19, 0x66, - 0x02, 0x83, 0xe5, 0xc8, 0x4c, 0xa7, 0x4d, 0x5b, 0x98, 0x89, 0xa9, 0x1a, 0x6b, 0xa0, 0x90, 0x6e, - 0x9c, 0x61, 0xda, 0x8b, 0x58, 0x4b, 0x6b, 0x65, 0xa7, 0xb2, 0xe4, 0xae, 0x56, 0x1e, 0xcc, 0xf0, - 0x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57, 0xa0, 0xab, 0x5f, - 0xb5, 0xf1, 0x72, 0x4e, 0xd1, 0x4d, 0x30, 0xc6, 0xd8, 0xd9, 0xdf, 0xb7, 0xb1, 0x3b, 0x7e, 0x7a, - 0x60, 0xbb, 0x47, 0xdf, 0x1d, 0x1e, 0xd8, 0x5f, 0x3b, 0x8f, 0x1c, 0xfb, 0xe1, 0x66, 0x09, 0xbd, - 0x0d, 0xad, 0xc7, 0xf6, 0xe1, 0xe1, 0xde, 0xbe, 0xed, 0x3e, 0x39, 0xb2, 0x8f, 0xec, 0xcd, 0xca, - 0x10, 0x3f, 0x3b, 0x08, 0x98, 0x38, 0x4e, 0x27, 0xa6, 0x17, 0xcf, 0xfa, 0xb9, 0xe9, 0xbd, 0xfc, - 0xf1, 0x0d, 0xe2, 0x5e, 0x40, 0x23, 0x49, 0xa1, 0x7f, 0x89, 0xbf, 0x0b, 0xf7, 0x8b, 0xef, 0x49, - 0x4d, 0x62, 0xbe, 0xf8, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x0f, 0xa6, 0x49, 0x32, 0x65, 0x08, 0x00, - 0x00, + // 1520 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x4b, 0x73, 0x13, 0xc7, + 0x16, 0xb6, 0x9e, 0xb6, 0x8e, 0x2c, 0x59, 0xee, 0xba, 0x05, 0x42, 0x17, 0x2e, 0xbe, 0xba, 0x45, + 0x61, 0xe0, 0x4a, 0xb2, 0xe4, 0xf0, 0x7e, 0x54, 0x49, 0xf6, 0x60, 0x0f, 0xe0, 0x07, 0xad, 0x31, + 0x29, 0xd8, 0x0c, 0xa3, 0x99, 0x96, 0x3c, 0x20, 0xcd, 0x88, 0x99, 0x1e, 0x05, 0x87, 0xac, 0xb2, + 0xc8, 0x82, 0x6d, 0x92, 0xff, 0x91, 0x9f, 0x10, 0x56, 0xa6, 0xb2, 0x48, 0x65, 0x95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, 0xfd, 0xf8, 0x18, + 0x94, 0x92, 0x4e, 0x97, 0xfa, 0xf2, 0xc4, 0xf1, 0x8f, 0xdb, 0xe5, 0x48, 0xb9, 0x70, 0x55, 0x3a, + 0xbd, 0x2a, 0x77, 0xd1, 0x6d, 0x98, 0xb0, 0x1d, 0x4a, 0xbc, 0x9e, 0xd1, 0x3e, 0xe9, 0xd9, 0x3b, + 0x0a, 0x97, 0x7f, 0x08, 0x41, 0x52, 0x76, 0x18, 0x5e, 0x80, 0xce, 0x42, 0x56, 0xc3, 0xea, 0xd2, + 0x92, 0x82, 0x0f, 0xaa, 0x37, 0x09, 0x88, 0x69, 0xea, 0x8a, 0x82, 0x33, 0x61, 0x34, 0x0d, 0xa9, + 0x15, 0xa5, 0x5e, 0x67, 0x6f, 0xf8, 0xf1, 0x86, 0xb2, 0xa1, 0x64, 0x22, 0x68, 0x0a, 0x92, 0xea, + 0x9a, 0xa6, 0x4b, 0x71, 0x26, 0x8a, 0x10, 0xa4, 0x87, 0x2b, 0x63, 0x26, 0xc6, 0x1e, 0xf8, 0xfe, + 0xf2, 0x90, 0x89, 0xd7, 0xde, 0xc0, 0xc5, 0xa1, 0x04, 0x31, 0xba, 0xf6, 0x21, 0x49, 0xf2, 0x6c, + 0xbd, 0x65, 0xd3, 0xcd, 0xa0, 0x51, 0x34, 0xdd, 0x4e, 0x49, 0xe8, 0x14, 0xc4, 0x1f, 0x0e, 0x2d, + 0xb7, 0xd0, 0x22, 0x0e, 0xbf, 0x74, 0xe9, 0x04, 0x7f, 0x91, 0xdc, 0xee, 0x7f, 0x37, 0xe2, 0x5c, + 0x67, 0xfe, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc1, 0x95, 0x50, 0x97, 0x59, 0x11, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/trigger.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/trigger.pbext.go new file mode 100644 index 000000000..43f00da02 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/trigger.pbext.go @@ -0,0 +1,262 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package triggers + +import ( + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Trigger) SetId(v string) { + m.Id = v +} + +func (m *Trigger) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Trigger) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Trigger) SetName(v string) { + m.Name = v +} + +func (m *Trigger) SetDescription(v string) { + m.Description = v +} + +func (m *Trigger) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *Trigger) SetRule(v *Trigger_Rule) { + m.Rule = v +} + +func (m *Trigger) SetStatus(v Trigger_Status) { + m.Status = v +} + +type Trigger_Rule_Rule = isTrigger_Rule_Rule + +func (m *Trigger_Rule) SetRule(v Trigger_Rule_Rule) { + m.Rule = v +} + +func (m *Trigger_Rule) SetTimer(v *Trigger_Timer) { + m.Rule = &Trigger_Rule_Timer{ + Timer: v, + } +} + +func (m *Trigger_Rule) SetMessageQueue(v *Trigger_MessageQueue) { + m.Rule = &Trigger_Rule_MessageQueue{ + MessageQueue: v, + } +} + +func (m *Trigger_Rule) SetIotMessage(v *Trigger_IoTMessage) { + m.Rule = &Trigger_Rule_IotMessage{ + IotMessage: v, + } +} + +func (m *Trigger_Rule) SetObjectStorage(v *Trigger_ObjectStorage) { + m.Rule = &Trigger_Rule_ObjectStorage{ + ObjectStorage: v, + } +} + +func (m *Trigger_Rule) SetContainerRegistry(v *Trigger_ContainerRegistry) { + m.Rule = &Trigger_Rule_ContainerRegistry{ + ContainerRegistry: v, + } +} + +type Trigger_Timer_Action = isTrigger_Timer_Action + +func (m *Trigger_Timer) SetAction(v Trigger_Timer_Action) { + m.Action = v +} + +func (m *Trigger_Timer) SetCronExpression(v string) { + m.CronExpression = v +} + +func (m *Trigger_Timer) SetInvokeFunction(v *InvokeFunctionOnce) { + m.Action = &Trigger_Timer_InvokeFunction{ + InvokeFunction: v, + } +} + +func (m *Trigger_Timer) SetInvokeFunctionWithRetry(v *InvokeFunctionWithRetry) { + m.Action = &Trigger_Timer_InvokeFunctionWithRetry{ + InvokeFunctionWithRetry: v, + } +} + +type Trigger_MessageQueue_Action = isTrigger_MessageQueue_Action + +func (m *Trigger_MessageQueue) SetAction(v Trigger_MessageQueue_Action) { + m.Action = v +} + +func (m *Trigger_MessageQueue) SetQueueId(v string) { + m.QueueId = v +} + +func (m *Trigger_MessageQueue) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *Trigger_MessageQueue) SetBatchSettings(v *BatchSettings) { + m.BatchSettings = v +} + +func (m *Trigger_MessageQueue) SetVisibilityTimeout(v *duration.Duration) { + m.VisibilityTimeout = v +} + +func (m *Trigger_MessageQueue) SetInvokeFunction(v *InvokeFunctionOnce) { + m.Action = &Trigger_MessageQueue_InvokeFunction{ + InvokeFunction: v, + } +} + +type Trigger_IoTMessage_Action = isTrigger_IoTMessage_Action + +func (m *Trigger_IoTMessage) SetAction(v Trigger_IoTMessage_Action) { + m.Action = v +} + +func (m *Trigger_IoTMessage) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *Trigger_IoTMessage) SetDeviceId(v string) { + m.DeviceId = v +} + +func (m *Trigger_IoTMessage) SetMqttTopic(v string) { + m.MqttTopic = v +} + +func (m *Trigger_IoTMessage) SetInvokeFunction(v *InvokeFunctionWithRetry) { + m.Action = &Trigger_IoTMessage_InvokeFunction{ + InvokeFunction: v, + } +} + +type Trigger_ObjectStorage_Action = isTrigger_ObjectStorage_Action + +func (m *Trigger_ObjectStorage) SetAction(v Trigger_ObjectStorage_Action) { + m.Action = v +} + +func (m *Trigger_ObjectStorage) SetEventType(v []Trigger_ObjectStorageEventType) { + m.EventType = v +} + +func (m *Trigger_ObjectStorage) SetBucketId(v string) { + m.BucketId = v +} + +func (m *Trigger_ObjectStorage) SetPrefix(v string) { + m.Prefix = v +} + +func (m *Trigger_ObjectStorage) SetSuffix(v string) { + m.Suffix = v +} + +func (m *Trigger_ObjectStorage) SetInvokeFunction(v *InvokeFunctionWithRetry) { + m.Action = &Trigger_ObjectStorage_InvokeFunction{ + InvokeFunction: v, + } +} + +type Trigger_ContainerRegistry_Action = isTrigger_ContainerRegistry_Action + +func (m *Trigger_ContainerRegistry) SetAction(v Trigger_ContainerRegistry_Action) { + m.Action = v +} + +func (m *Trigger_ContainerRegistry) SetEventType(v []Trigger_ContainerRegistryEventType) { + m.EventType = v +} + +func (m *Trigger_ContainerRegistry) SetRegistryId(v string) { + m.RegistryId = v +} + +func (m *Trigger_ContainerRegistry) SetImageName(v string) { + m.ImageName = v +} + +func (m *Trigger_ContainerRegistry) SetTag(v string) { + m.Tag = v +} + +func (m *Trigger_ContainerRegistry) SetInvokeFunction(v *InvokeFunctionWithRetry) { + m.Action = &Trigger_ContainerRegistry_InvokeFunction{ + InvokeFunction: v, + } +} + +func (m *InvokeFunctionOnce) SetFunctionId(v string) { + m.FunctionId = v +} + +func (m *InvokeFunctionOnce) SetFunctionTag(v string) { + m.FunctionTag = v +} + +func (m *InvokeFunctionOnce) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *InvokeFunctionWithRetry) SetFunctionId(v string) { + m.FunctionId = v +} + +func (m *InvokeFunctionWithRetry) SetFunctionTag(v string) { + m.FunctionTag = v +} + +func (m *InvokeFunctionWithRetry) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *InvokeFunctionWithRetry) SetRetrySettings(v *RetrySettings) { + m.RetrySettings = v +} + +func (m *InvokeFunctionWithRetry) SetDeadLetterQueue(v *PutQueueMessage) { + m.DeadLetterQueue = v +} + +func (m *PutQueueMessage) SetQueueId(v string) { + m.QueueId = v +} + +func (m *PutQueueMessage) SetServiceAccountId(v string) { + m.ServiceAccountId = v +} + +func (m *BatchSettings) SetSize(v int64) { + m.Size = v +} + +func (m *BatchSettings) SetCutoff(v *duration.Duration) { + m.Cutoff = v +} + +func (m *RetrySettings) SetRetryAttempts(v int64) { + m.RetryAttempts = v +} + +func (m *RetrySettings) SetInterval(v *duration.Duration) { + m.Interval = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/trigger_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/trigger_service.pb.go index bf06685ca..e6eace3dd 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/trigger_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/trigger_service.pb.go @@ -30,6 +30,9 @@ var _ = math.Inf const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type GetTriggerRequest struct { + // ID of the trigger to return. + // + // To get a trigger ID make a [TriggerService.List] request. TriggerId string `protobuf:"bytes,1,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -69,9 +72,27 @@ func (m *GetTriggerRequest) GetTriggerId() string { } type ListTriggersRequest struct { - FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` - PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // ID of the folder to list triggers in. + // + // To get a folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request. + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // The maximum number of results per page to return. If the number of available + // results is larger than `pageSize`, the service returns a [ListTriggersResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `pageToken` to the + // [ListTriggersResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters triggers listed in the response. + // + // The expression must specify: + // 1. The field name. Currently filtering can only be applied to the [Trigger.name] field. + // 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` + // for lists of values. + // 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]$`. + // Example of a filter: `name=my-trigger`. Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -132,11 +153,17 @@ func (m *ListTriggersRequest) GetFilter() string { } type ListTriggersResponse struct { - Triggers []*Trigger `protobuf:"bytes,1,rep,name=triggers,proto3" json:"triggers,omitempty"` - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // List of triggers in the specified folder. + Triggers []*Trigger `protobuf:"bytes,1,rep,name=triggers,proto3" json:"triggers,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListTriggersRequest.page_size], use `nextPageToken` as the value + // for the [ListTriggersRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `nextPageToken` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListTriggersResponse) Reset() { *m = ListTriggersResponse{} } @@ -179,14 +206,22 @@ func (m *ListTriggersResponse) GetNextPageToken() string { } type CreateTriggerRequest struct { - FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Rule *Trigger_Rule `protobuf:"bytes,5,opt,name=rule,proto3" json:"rule,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // ID of the folder to create a trigger in. + // + // To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request. + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + // Name of the trigger. + // The name must be unique within the folder. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Description of the trigger. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // Resource labels as `key:value` pairs. + Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Trigger type. + Rule *Trigger_Rule `protobuf:"bytes,5,opt,name=rule,proto3" json:"rule,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CreateTriggerRequest) Reset() { *m = CreateTriggerRequest{} } @@ -250,6 +285,7 @@ func (m *CreateTriggerRequest) GetRule() *Trigger_Rule { } type CreateTriggerMetadata struct { + // ID of the trigger that is being created. TriggerId string `protobuf:"bytes,1,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -289,14 +325,25 @@ func (m *CreateTriggerMetadata) GetTriggerId() string { } type UpdateTriggerRequest struct { - TriggerId string `protobuf:"bytes,1,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"` - UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,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:"-"` + // ID of the trigger to update. + // + // To get a trigger ID make a [TriggerService.List] request. + TriggerId string `protobuf:"bytes,1,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"` + // Field mask that specifies which attributes of the trigger should be updated. + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // New name for the trigger. + // The name must be unique within the folder. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // New description of the trigger. + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + // Trigger labels as `key:value` pairs. + // + // Existing set of labels is completely replaced by the provided set, so if you just want + // to add or remove a label, request the current set of labels with a [TriggerService.Get] request. + Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,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 *UpdateTriggerRequest) Reset() { *m = UpdateTriggerRequest{} } @@ -360,6 +407,7 @@ func (m *UpdateTriggerRequest) GetLabels() map[string]string { } type UpdateTriggerMetadata struct { + // ID of the trigger that is being updated. TriggerId string `protobuf:"bytes,1,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -399,6 +447,9 @@ func (m *UpdateTriggerMetadata) GetTriggerId() string { } type DeleteTriggerRequest struct { + // ID of the trigger to delete. + // + // To get a trigger ID make a [TriggerService.List] request. TriggerId string `protobuf:"bytes,1,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -438,6 +489,7 @@ func (m *DeleteTriggerRequest) GetTriggerId() string { } type DeleteTriggerMetadata struct { + // ID of the trigger that is being deleted. TriggerId string `protobuf:"bytes,1,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -476,10 +528,190 @@ func (m *DeleteTriggerMetadata) GetTriggerId() string { return "" } -type ListTriggerOperationsRequest struct { +type PauseTriggerRequest struct { + // ID of the trigger to pause + // + // To get a trigger ID make a [TriggerService.List] request. TriggerId string `protobuf:"bytes,1,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"` - PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PauseTriggerRequest) Reset() { *m = PauseTriggerRequest{} } +func (m *PauseTriggerRequest) String() string { return proto.CompactTextString(m) } +func (*PauseTriggerRequest) ProtoMessage() {} +func (*PauseTriggerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b5bad950ea438470, []int{9} +} + +func (m *PauseTriggerRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PauseTriggerRequest.Unmarshal(m, b) +} +func (m *PauseTriggerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PauseTriggerRequest.Marshal(b, m, deterministic) +} +func (m *PauseTriggerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PauseTriggerRequest.Merge(m, src) +} +func (m *PauseTriggerRequest) XXX_Size() int { + return xxx_messageInfo_PauseTriggerRequest.Size(m) +} +func (m *PauseTriggerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PauseTriggerRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PauseTriggerRequest proto.InternalMessageInfo + +func (m *PauseTriggerRequest) GetTriggerId() string { + if m != nil { + return m.TriggerId + } + return "" +} + +type PauseTriggerMetadata struct { + // ID of the trigger that is being paused. + TriggerId string `protobuf:"bytes,1,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PauseTriggerMetadata) Reset() { *m = PauseTriggerMetadata{} } +func (m *PauseTriggerMetadata) String() string { return proto.CompactTextString(m) } +func (*PauseTriggerMetadata) ProtoMessage() {} +func (*PauseTriggerMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_b5bad950ea438470, []int{10} +} + +func (m *PauseTriggerMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PauseTriggerMetadata.Unmarshal(m, b) +} +func (m *PauseTriggerMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PauseTriggerMetadata.Marshal(b, m, deterministic) +} +func (m *PauseTriggerMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_PauseTriggerMetadata.Merge(m, src) +} +func (m *PauseTriggerMetadata) XXX_Size() int { + return xxx_messageInfo_PauseTriggerMetadata.Size(m) +} +func (m *PauseTriggerMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_PauseTriggerMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_PauseTriggerMetadata proto.InternalMessageInfo + +func (m *PauseTriggerMetadata) GetTriggerId() string { + if m != nil { + return m.TriggerId + } + return "" +} + +type ResumeTriggerRequest struct { + // ID of the trigger to pause + // + // To get a trigger ID make a [TriggerService.List] request. + TriggerId string `protobuf:"bytes,1,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResumeTriggerRequest) Reset() { *m = ResumeTriggerRequest{} } +func (m *ResumeTriggerRequest) String() string { return proto.CompactTextString(m) } +func (*ResumeTriggerRequest) ProtoMessage() {} +func (*ResumeTriggerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b5bad950ea438470, []int{11} +} + +func (m *ResumeTriggerRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResumeTriggerRequest.Unmarshal(m, b) +} +func (m *ResumeTriggerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResumeTriggerRequest.Marshal(b, m, deterministic) +} +func (m *ResumeTriggerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResumeTriggerRequest.Merge(m, src) +} +func (m *ResumeTriggerRequest) XXX_Size() int { + return xxx_messageInfo_ResumeTriggerRequest.Size(m) +} +func (m *ResumeTriggerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ResumeTriggerRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ResumeTriggerRequest proto.InternalMessageInfo + +func (m *ResumeTriggerRequest) GetTriggerId() string { + if m != nil { + return m.TriggerId + } + return "" +} + +type ResumeTriggerMetadata struct { + // ID of the trigger that is being paused. + TriggerId string `protobuf:"bytes,1,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResumeTriggerMetadata) Reset() { *m = ResumeTriggerMetadata{} } +func (m *ResumeTriggerMetadata) String() string { return proto.CompactTextString(m) } +func (*ResumeTriggerMetadata) ProtoMessage() {} +func (*ResumeTriggerMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_b5bad950ea438470, []int{12} +} + +func (m *ResumeTriggerMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResumeTriggerMetadata.Unmarshal(m, b) +} +func (m *ResumeTriggerMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResumeTriggerMetadata.Marshal(b, m, deterministic) +} +func (m *ResumeTriggerMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResumeTriggerMetadata.Merge(m, src) +} +func (m *ResumeTriggerMetadata) XXX_Size() int { + return xxx_messageInfo_ResumeTriggerMetadata.Size(m) +} +func (m *ResumeTriggerMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_ResumeTriggerMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_ResumeTriggerMetadata proto.InternalMessageInfo + +func (m *ResumeTriggerMetadata) GetTriggerId() string { + if m != nil { + return m.TriggerId + } + return "" +} + +type ListTriggerOperationsRequest struct { + // ID of the trigger to list operations for. + TriggerId string `protobuf:"bytes,1,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"` + // The maximum number of results per page that should be returned. If the number of available + // results is larger than `pageSize`, the service returns a [ListTriggerOperationsResponse.next_page_token] + // that can be used to get the next page of results in subsequent list requests. + // + // Default value: 100. + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Page token. To get the next page of results, set `pageToken` to the + // [ListTriggerOperationsResponse.next_page_token] returned by a previous list request. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A filter expression that filters resources listed in the response. + // + // The expression must specify: + // 1. The field name. Currently filtering can only be applied to the [Trigger.name] field. + // 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` + // for lists of values. + // 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]$`. + // Example of a filter: `name=my-function`. Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -490,7 +722,7 @@ func (m *ListTriggerOperationsRequest) Reset() { *m = ListTriggerOperati func (m *ListTriggerOperationsRequest) String() string { return proto.CompactTextString(m) } func (*ListTriggerOperationsRequest) ProtoMessage() {} func (*ListTriggerOperationsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b5bad950ea438470, []int{9} + return fileDescriptor_b5bad950ea438470, []int{13} } func (m *ListTriggerOperationsRequest) XXX_Unmarshal(b []byte) error { @@ -540,18 +772,24 @@ func (m *ListTriggerOperationsRequest) GetFilter() string { } type ListTriggerOperationsResponse struct { - Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // List of operations for the specified trigger. + Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` + // Token for getting the next page of the list. If the number of results is greater than + // the specified [ListTriggerOperationsRequest.page_size], use `nextPageToken` as the value + // for the [ListTriggerOperationsRequest.page_token] parameter in the next list request. + // + // Each subsequent page will have its own `nextPageToken` to continue paging through the results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListTriggerOperationsResponse) Reset() { *m = ListTriggerOperationsResponse{} } func (m *ListTriggerOperationsResponse) String() string { return proto.CompactTextString(m) } func (*ListTriggerOperationsResponse) ProtoMessage() {} func (*ListTriggerOperationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b5bad950ea438470, []int{10} + return fileDescriptor_b5bad950ea438470, []int{14} } func (m *ListTriggerOperationsResponse) XXX_Unmarshal(b []byte) error { @@ -598,6 +836,10 @@ func init() { proto.RegisterType((*UpdateTriggerMetadata)(nil), "yandex.cloud.serverless.triggers.v1.UpdateTriggerMetadata") proto.RegisterType((*DeleteTriggerRequest)(nil), "yandex.cloud.serverless.triggers.v1.DeleteTriggerRequest") proto.RegisterType((*DeleteTriggerMetadata)(nil), "yandex.cloud.serverless.triggers.v1.DeleteTriggerMetadata") + proto.RegisterType((*PauseTriggerRequest)(nil), "yandex.cloud.serverless.triggers.v1.PauseTriggerRequest") + proto.RegisterType((*PauseTriggerMetadata)(nil), "yandex.cloud.serverless.triggers.v1.PauseTriggerMetadata") + proto.RegisterType((*ResumeTriggerRequest)(nil), "yandex.cloud.serverless.triggers.v1.ResumeTriggerRequest") + proto.RegisterType((*ResumeTriggerMetadata)(nil), "yandex.cloud.serverless.triggers.v1.ResumeTriggerMetadata") proto.RegisterType((*ListTriggerOperationsRequest)(nil), "yandex.cloud.serverless.triggers.v1.ListTriggerOperationsRequest") proto.RegisterType((*ListTriggerOperationsResponse)(nil), "yandex.cloud.serverless.triggers.v1.ListTriggerOperationsResponse") } @@ -607,99 +849,117 @@ func init() { } var fileDescriptor_b5bad950ea438470 = []byte{ - // 1025 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcf, 0x6f, 0x1b, 0x45, - 0x14, 0xd6, 0xc4, 0xce, 0x12, 0x3f, 0x8b, 0x52, 0x06, 0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, 0x10, 0xec, 0x72, 0x39, 0x37, 0xf3, 0xc8, 0xf9, 0x4f, 0x04, - 0xe7, 0x42, 0xa5, 0x4d, 0x1c, 0x00, 0xdf, 0x9c, 0x55, 0x9e, 0x53, 0xd6, 0x27, 0x76, 0xcf, 0x92, - 0x22, 0x92, 0xfa, 0x12, 0xbb, 0x85, 0x8a, 0xe5, 0x97, 0xdf, 0x62, 0xf2, 0x0d, 0x4e, 0xbb, 0xc6, - 0xe7, 0xf7, 0xfb, 0x76, 0xf0, 0xe5, 0x70, 0x43, 0xd9, 0xf4, 0x76, 0x54, 0x4e, 0x43, 0xe6, 0xdf, - 0xe2, 0x7d, 0x4f, 0xee, 0x13, 0x97, 0x95, 0x4a, 0xcd, 0xf1, 0xfd, 0xbf, 0x12, 0xaf, 0x37, 0x04, - 0x86, 0xb9, 0xf6, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3c, 0xca, 0x2b, 0x02, 0xf8, 0x0c, 0x00, - 0x00, + // 1130 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcf, 0x6f, 0xdc, 0x44, + 0x14, 0xd6, 0x64, 0x37, 0x4b, 0xf6, 0xad, 0x28, 0x65, 0xba, 0x81, 0xd5, 0xd2, 0x88, 0x8d, 0x8b, + 0x9a, 0x65, 0xa9, 0xed, 0xf5, 0x96, 0x44, 0xd9, 0x24, 0x15, 0xea, 0xd2, 0x50, 0x2a, 0x5a, 0x11, + 0xdc, 0x82, 0x10, 0xa1, 0x8a, 0x9c, 0x78, 0xb2, 0x58, 0x71, 0xd6, 0xc6, 0x63, 0x47, 0x4d, 0x42, + 0x2f, 0x3d, 0xa1, 0x88, 0x1b, 0x07, 0x24, 0x0e, 0xfc, 0x05, 0x9c, 0x72, 0x02, 0xc4, 0x81, 0x03, + 0x22, 0x39, 0x20, 0x0e, 0xe1, 0x5f, 0xe0, 0xc0, 0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0x41, 0x9f, 0xca, 0xbf, 0x2c, 0xd5, 0x05, 0xf2, 0xef, 0x86, 0x7e, 0xc2, 0x2a, 0xfc, + 0x86, 0xa0, 0xc0, 0x67, 0xb8, 0x60, 0x15, 0xb2, 0xd4, 0x42, 0x24, 0x80, 0x4f, 0x79, 0x07, 0x65, + 0xeb, 0x45, 0x2a, 0x02, 0x45, 0x7a, 0x53, 0x20, 0x02, 0x8f, 0x39, 0x0a, 0x43, 0xf8, 0x0b, 0xc1, + 0x85, 0xf0, 0xae, 0x1f, 0xcf, 0x60, 0x7c, 0x73, 0xd8, 0x01, 0x31, 0x20, 0x3e, 0xd5, 0xce, 0x79, + 0x5c, 0x44, 0xc3, 0x66, 0x9a, 0xc5, 0xa3, 0x62, 0xf9, 0xd9, 0xf1, 0x1c, 0x7f, 0xf9, 0xd1, 0xce, + 0x2e, 0x4c, 0xa5, 0xce, 0x36, 0x5c, 0xeb, 0x94, 0xf3, 0x3f, 0x5b, 0xea, 0x5a, 0xfe, 0x17, 0xc1, + 0xaa, 0xb2, 0xe6, 0x6c, 0xaa, 0x1c, 0x23, 0xf3, 0x4f, 0xc5, 0xae, 0x23, 0x77, 0x49, 0x8f, 0x75, + 0xb5, 0x2a, 0xf0, 0x79, 0x3a, 0x1f, 0x3f, 0xaf, 0x16, 0x18, 0xe6, 0xfa, 0xff, 0x01, 0x00, 0x00, + 0xff, 0xff, 0xd4, 0xbc, 0x01, 0x93, 0x97, 0x0f, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // TriggerServiceClient is the client API for TriggerService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type TriggerServiceClient interface { + // Returns the specified trigger. + // + // To get the list of all available triggers, make a [List] request. Get(ctx context.Context, in *GetTriggerRequest, opts ...grpc.CallOption) (*Trigger, error) + // Retrieves the list of triggers in the specified folder. List(ctx context.Context, in *ListTriggersRequest, opts ...grpc.CallOption) (*ListTriggersResponse, error) + // Creates a trigger in the specified folder. Create(ctx context.Context, in *CreateTriggerRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Updates the specified trigger. Update(ctx context.Context, in *UpdateTriggerRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Deletes the specified trigger. Delete(ctx context.Context, in *DeleteTriggerRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Pauses the specified trigger. + Pause(ctx context.Context, in *PauseTriggerRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Restarts the specified trigger. + Resume(ctx context.Context, in *ResumeTriggerRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // Lists operations for the specified trigger. ListOperations(ctx context.Context, in *ListTriggerOperationsRequest, opts ...grpc.CallOption) (*ListTriggerOperationsResponse, error) } type triggerServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewTriggerServiceClient(cc *grpc.ClientConn) TriggerServiceClient { +func NewTriggerServiceClient(cc grpc.ClientConnInterface) TriggerServiceClient { return &triggerServiceClient{cc} } @@ -748,6 +1008,24 @@ func (c *triggerServiceClient) Delete(ctx context.Context, in *DeleteTriggerRequ return out, nil } +func (c *triggerServiceClient) Pause(ctx context.Context, in *PauseTriggerRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.serverless.triggers.v1.TriggerService/Pause", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *triggerServiceClient) Resume(ctx context.Context, in *ResumeTriggerRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.serverless.triggers.v1.TriggerService/Resume", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *triggerServiceClient) ListOperations(ctx context.Context, in *ListTriggerOperationsRequest, opts ...grpc.CallOption) (*ListTriggerOperationsResponse, error) { out := new(ListTriggerOperationsResponse) err := c.cc.Invoke(ctx, "/yandex.cloud.serverless.triggers.v1.TriggerService/ListOperations", in, out, opts...) @@ -759,11 +1037,23 @@ func (c *triggerServiceClient) ListOperations(ctx context.Context, in *ListTrigg // TriggerServiceServer is the server API for TriggerService service. type TriggerServiceServer interface { + // Returns the specified trigger. + // + // To get the list of all available triggers, make a [List] request. Get(context.Context, *GetTriggerRequest) (*Trigger, error) + // Retrieves the list of triggers in the specified folder. List(context.Context, *ListTriggersRequest) (*ListTriggersResponse, error) + // Creates a trigger in the specified folder. Create(context.Context, *CreateTriggerRequest) (*operation.Operation, error) + // Updates the specified trigger. Update(context.Context, *UpdateTriggerRequest) (*operation.Operation, error) + // Deletes the specified trigger. Delete(context.Context, *DeleteTriggerRequest) (*operation.Operation, error) + // Pauses the specified trigger. + Pause(context.Context, *PauseTriggerRequest) (*operation.Operation, error) + // Restarts the specified trigger. + Resume(context.Context, *ResumeTriggerRequest) (*operation.Operation, error) + // Lists operations for the specified trigger. ListOperations(context.Context, *ListTriggerOperationsRequest) (*ListTriggerOperationsResponse, error) } @@ -786,6 +1076,12 @@ func (*UnimplementedTriggerServiceServer) Update(ctx context.Context, req *Updat func (*UnimplementedTriggerServiceServer) Delete(ctx context.Context, req *DeleteTriggerRequest) (*operation.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } +func (*UnimplementedTriggerServiceServer) Pause(ctx context.Context, req *PauseTriggerRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Pause not implemented") +} +func (*UnimplementedTriggerServiceServer) Resume(ctx context.Context, req *ResumeTriggerRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Resume not implemented") +} func (*UnimplementedTriggerServiceServer) ListOperations(ctx context.Context, req *ListTriggerOperationsRequest) (*ListTriggerOperationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") } @@ -884,6 +1180,42 @@ func _TriggerService_Delete_Handler(srv interface{}, ctx context.Context, dec fu return interceptor(ctx, in, info, handler) } +func _TriggerService_Pause_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PauseTriggerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TriggerServiceServer).Pause(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.serverless.triggers.v1.TriggerService/Pause", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TriggerServiceServer).Pause(ctx, req.(*PauseTriggerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TriggerService_Resume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResumeTriggerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TriggerServiceServer).Resume(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.serverless.triggers.v1.TriggerService/Resume", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TriggerServiceServer).Resume(ctx, req.(*ResumeTriggerRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _TriggerService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListTriggerOperationsRequest) if err := dec(in); err != nil { @@ -926,6 +1258,14 @@ var _TriggerService_serviceDesc = grpc.ServiceDesc{ MethodName: "Delete", Handler: _TriggerService_Delete_Handler, }, + { + MethodName: "Pause", + Handler: _TriggerService_Pause_Handler, + }, + { + MethodName: "Resume", + Handler: _TriggerService_Resume_Handler, + }, { MethodName: "ListOperations", Handler: _TriggerService_ListOperations_Handler, diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/trigger_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/trigger_service.pbext.go new file mode 100644 index 000000000..077074fd7 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1/trigger_service.pbext.go @@ -0,0 +1,132 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package triggers + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetTriggerRequest) SetTriggerId(v string) { + m.TriggerId = v +} + +func (m *ListTriggersRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListTriggersRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListTriggersRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListTriggersRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListTriggersResponse) SetTriggers(v []*Trigger) { + m.Triggers = v +} + +func (m *ListTriggersResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateTriggerRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateTriggerRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateTriggerRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateTriggerRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateTriggerRequest) SetRule(v *Trigger_Rule) { + m.Rule = v +} + +func (m *CreateTriggerMetadata) SetTriggerId(v string) { + m.TriggerId = v +} + +func (m *UpdateTriggerRequest) SetTriggerId(v string) { + m.TriggerId = v +} + +func (m *UpdateTriggerRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateTriggerRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateTriggerRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateTriggerRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateTriggerMetadata) SetTriggerId(v string) { + m.TriggerId = v +} + +func (m *DeleteTriggerRequest) SetTriggerId(v string) { + m.TriggerId = v +} + +func (m *DeleteTriggerMetadata) SetTriggerId(v string) { + m.TriggerId = v +} + +func (m *PauseTriggerRequest) SetTriggerId(v string) { + m.TriggerId = v +} + +func (m *PauseTriggerMetadata) SetTriggerId(v string) { + m.TriggerId = v +} + +func (m *ResumeTriggerRequest) SetTriggerId(v string) { + m.TriggerId = v +} + +func (m *ResumeTriggerMetadata) SetTriggerId(v string) { + m.TriggerId = v +} + +func (m *ListTriggerOperationsRequest) SetTriggerId(v string) { + m.TriggerId = v +} + +func (m *ListTriggerOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListTriggerOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListTriggerOperationsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListTriggerOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListTriggerOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/validation.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/validation.pb.go index 7e7035566..adf0da199 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/validation.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/validation.pb.go @@ -130,6 +130,15 @@ var E_Length = &proto.ExtensionDesc{ Filename: "yandex/cloud/validation.proto", } +var E_Unique = &proto.ExtensionDesc{ + ExtendedType: (*descriptor.FieldOptions)(nil), + ExtensionType: (*bool)(nil), + Field: 101506, + Name: "yandex.cloud.unique", + Tag: "varint,101506,opt,name=unique", + Filename: "yandex/cloud/validation.proto", +} + var E_MapKey = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FieldOptions)(nil), ExtensionType: (*MapKeySpec)(nil), @@ -147,33 +156,37 @@ func init() { proto.RegisterExtension(E_Value) proto.RegisterExtension(E_Size) proto.RegisterExtension(E_Length) + proto.RegisterExtension(E_Unique) proto.RegisterExtension(E_MapKey) } -func init() { proto.RegisterFile("yandex/cloud/validation.proto", fileDescriptor_3c1b148dbcaf4bce) } +func init() { + proto.RegisterFile("yandex/cloud/validation.proto", fileDescriptor_3c1b148dbcaf4bce) +} var fileDescriptor_3c1b148dbcaf4bce = []byte{ - // 339 bytes of a gzipped FileDescriptorProto + // 359 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcf, 0x4b, 0xfb, 0x30, - 0x18, 0xc6, 0xd9, 0xf7, 0xab, 0xdd, 0xcc, 0x3c, 0x15, 0x91, 0x22, 0x0c, 0x86, 0xa7, 0x5d, 0x96, - 0x82, 0xc3, 0x5f, 0xdd, 0x45, 0x3c, 0x78, 0x11, 0x19, 0x54, 0x4f, 0x5e, 0x46, 0xd6, 0xbe, 0xeb, - 0x82, 0x59, 0x12, 0xd3, 0x74, 0xac, 0x9e, 0xf4, 0xe2, 0xdf, 0x30, 0xff, 0x58, 0x7f, 0x60, 0x92, - 0x6e, 0x3b, 0x08, 0xbd, 0x84, 0xbc, 0x79, 0x9e, 0x0f, 0x79, 0xf2, 0xe6, 0x45, 0x9d, 0x92, 0xf0, - 0x14, 0x96, 0x61, 0xc2, 0x44, 0x91, 0x86, 0x0b, 0xc2, 0x68, 0x4a, 0x34, 0x15, 0x1c, 0x4b, 0x25, - 0xb4, 0xf0, 0xf7, 0xad, 0x8c, 0x8d, 0x7c, 0xd4, 0xcd, 0x84, 0xc8, 0x18, 0x84, 0x46, 0x9b, 0x14, - 0xd3, 0x30, 0x85, 0x3c, 0x51, 0x54, 0x6a, 0xa1, 0xac, 0xff, 0xf8, 0x01, 0xa1, 0x3b, 0x22, 0x6f, - 0xa1, 0xbc, 0x97, 0x90, 0xf8, 0x07, 0x68, 0x77, 0x41, 0x58, 0x01, 0x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0xb3, 0x4e, 0x3c, 0xa3, 0x0c, 0x7e, 0x02, 0x00, 0x00, 0xff, 0xff, 0x91, 0x77, 0x5d, 0x0e, 0x9a, - 0x02, 0x00, 0x00, + 0x18, 0xc6, 0xd9, 0xf7, 0xab, 0xdd, 0xcc, 0x3c, 0x48, 0x11, 0x29, 0xc2, 0x60, 0x78, 0xda, 0x65, + 0x29, 0x38, 0x74, 0xd8, 0x5d, 0xc4, 0x83, 0x07, 0x45, 0x06, 0xd5, 0x93, 0x97, 0x91, 0xb5, 0xef, + 0xba, 0x60, 0x96, 0x64, 0x5d, 0x3a, 0x56, 0x4f, 0xea, 0xc1, 0xbf, 0x61, 0xfb, 0x63, 0xfd, 0x81, + 0x49, 0xba, 0x4d, 0x10, 0x7a, 0x29, 0x7d, 0xf3, 0x3c, 0x1f, 0xf2, 0xe4, 0xe5, 0x41, 0x8d, 0x9c, + 0xf0, 0x18, 0x16, 0x7e, 0xc4, 0x44, 0x16, 0xfb, 0x73, 0xc2, 0x68, 0x4c, 0x14, 0x15, 0x1c, 0xcb, + 0x54, 0x28, 0xe1, 0xee, 0x1b, 0x19, 0x6b, 0xf9, 0xb8, 0x99, 0x08, 0x91, 0x30, 0xf0, 0xb5, 0x36, + 0xcc, 0x46, 0x7e, 0x0c, 0xb3, 0x28, 0xa5, 0x52, 0x89, 0xd4, 0xf8, 0x4f, 0x1e, 0x10, 0xba, 0x23, + 0xf2, 0x16, 0xf2, 0x7b, 0x09, 0x91, 0x7b, 0x88, 0x76, 0xe7, 0x84, 0x65, 0xe0, 0x55, 0x9a, 0x95, + 0xd6, 0x5e, 0x68, 0x06, 0xd7, 0x43, 0x55, 0x49, 0x94, 0x82, 0x94, 0x7b, 0xff, 0xf4, 0x79, 0x31, + 0xba, 0x47, 0xc8, 0x61, 0xc0, 0x13, 0x35, 0xf6, 0xfe, 0x6b, 0xc1, 0x4e, 0xc1, 0x25, 0xaa, 0xc3, + 0x82, 0x44, 0x8a, 0xe5, 0x03, 0xc1, 0xc1, 0x6d, 0x60, 0x93, 0x03, 0x17, 0x39, 0x70, 0x9f, 0x83, + 0x18, 0xf5, 0xe5, 0x4f, 0xf0, 0x99, 0xb7, 0x5c, 0x3a, 0xcd, 0x4a, 0xab, 0x16, 0x22, 0xcb, 0xf4, + 0x39, 0x04, 0x3d, 0x54, 0x4b, 0x61, 0x9a, 0xd1, 0x14, 0xe2, 0x3f, 0xf0, 0x6b, 0x0a, 0x2c, 0x2e, + 0xf0, 0x0f, 0x8b, 0xaf, 0x81, 0xe0, 0x62, 0x1d, 0xb8, 0x8c, 0xfd, 0xd4, 0xec, 0xe6, 0x45, 0xc1, + 0x99, 0xdd, 0x40, 0x19, 0xf8, 0x65, 0x41, 0xe3, 0x0e, 0x3a, 0x68, 0x67, 0x46, 0x9f, 0x4b, 0xa9, + 0x97, 0x95, 0xa1, 0xb4, 0x39, 0xe8, 0x16, 0xdb, 0x2b, 0xc3, 0x5e, 0x2d, 0x56, 0xac, 0xb7, 0x8b, + 0x9c, 0x8c, 0xd3, 0x69, 0x79, 0xca, 0xb7, 0x95, 0x59, 0x8d, 0xb5, 0x07, 0x21, 0xaa, 0x4e, 0x88, + 0x1c, 0x3c, 0x41, 0x5e, 0x46, 0xbe, 0x6b, 0xb2, 0x7e, 0xea, 0xe1, 0xed, 0x42, 0xe1, 0x4d, 0x57, + 0x42, 0x67, 0xa2, 0xff, 0xaf, 0x6e, 0xd0, 0xc1, 0x2f, 0x0b, 0x91, 0xf4, 0xf1, 0x3c, 0xa1, 0x6a, + 0x9c, 0x0d, 0x71, 0x24, 0x26, 0xbe, 0x11, 0xdb, 0xa6, 0xaf, 0x89, 0x68, 0x27, 0xc0, 0xf5, 0x95, + 0xfe, 0x76, 0x91, 0x7b, 0xfa, 0x3b, 0x74, 0xb4, 0xd2, 0xf9, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xa6, + 0x1c, 0x7a, 0xac, 0xe5, 0x02, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/validation.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/validation.pbext.go new file mode 100644 index 000000000..de0f36d36 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/validation.pbext.go @@ -0,0 +1,15 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package cloud + +func (m *MapKeySpec) SetValue(v string) { + m.Value = v +} + +func (m *MapKeySpec) SetPattern(v string) { + m.Pattern = v +} + +func (m *MapKeySpec) SetLength(v string) { + m.Length = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/network.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/network.pb.go index 45678fdd2..6e342b520 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/network.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/network.pb.go @@ -113,28 +113,31 @@ func init() { proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.vpc.v1.Network.LabelsEntry") } -func init() { proto.RegisterFile("yandex/cloud/vpc/v1/network.proto", fileDescriptor_9e464e02c9bad7c3) } +func init() { + proto.RegisterFile("yandex/cloud/vpc/v1/network.proto", fileDescriptor_9e464e02c9bad7c3) +} var fileDescriptor_9e464e02c9bad7c3 = []byte{ - // 314 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x4f, 0x4b, 0xf3, 0x40, - 0x10, 0xc6, 0x49, 0xfa, 0xe7, 0x7d, 0x3b, 0x01, 0x91, 0xd5, 0x43, 0xa8, 0x07, 0xa3, 0xa7, 0x5c, - 0xba, 0x4b, 0xeb, 0xc5, 0x5a, 0x04, 0x15, 0x3c, 0x08, 0xe2, 0xa1, 0x78, 0xf2, 0x52, 0x36, 0xbb, - 0xd3, 0xb8, 0x34, 0xc9, 0x86, 0x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x34, 0xbb, 0x65, - 0xb7, 0x37, 0x9e, 0x43, 0x74, 0x20, 0x93, 0x53, 0xe8, 0x6d, 0x70, 0xd7, 0xf1, 0xfe, 0x95, 0xe4, - 0x1c, 0x06, 0x96, 0x17, 0x2d, 0x76, 0xb0, 0xbe, 0xb9, 0x0b, 0x6f, 0x83, 0xa7, 0xfb, 0x8f, 0x45, - 0xae, 0xcc, 0x67, 0x9b, 0x51, 0xa1, 0x4b, 0xe6, 0x83, 0x27, 0xfe, 0x19, 0xb9, 0x9e, 0xe4, 0x58, - 0x39, 0x62, 0x76, 0xe4, 0x4b, 0x0b, 0x5b, 0x8b, 0x6c, 0xe8, 0xc6, 0x37, 0xbf, 0x01, 0x00, 0x00, - 0xff, 0xff, 0x16, 0x76, 0x18, 0x3b, 0xc7, 0x01, 0x00, 0x00, + // 324 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x4f, 0x4f, 0xe3, 0x30, + 0x10, 0xc5, 0x95, 0xf4, 0xcf, 0x6e, 0x27, 0xd2, 0x6a, 0xe5, 0x5d, 0x89, 0xa8, 0x1c, 0x08, 0x9c, + 0x72, 0xa9, 0xad, 0x96, 0x0b, 0xa5, 0x17, 0x40, 0xe2, 0x80, 0x84, 0x38, 0x54, 0x88, 0x03, 0x97, + 0xca, 0xb1, 0xa7, 0xc1, 0x6a, 0x12, 0x5b, 0xa9, 0x13, 0xe8, 0xf7, 0xe1, 0x83, 0x22, 0xec, 0x54, + 0x2a, 0x52, 0x6f, 0xe3, 0x37, 0xbf, 0x99, 0xa7, 0xe7, 0x81, 0xf3, 0x1d, 0xaf, 0x24, 0x7e, 0x30, + 0x51, 0xe8, 0x46, 0xb2, 0xd6, 0x08, 0xd6, 0x4e, 0x59, 0x85, 0xf6, 0x5d, 0xd7, 0x1b, 0x6a, 0x6a, + 0x6d, 0x35, 0xf9, 0xe7, 0x11, 0xea, 0x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, 0x6b, 0x32, 0x2a, 0x74, + 0xc9, 0x3c, 0x33, 0xf1, 0x57, 0xca, 0xf5, 0x24, 0xc7, 0xca, 0x7d, 0x05, 0x3b, 0x72, 0xbe, 0x45, + 0x6b, 0x44, 0x36, 0x74, 0xed, 0xcb, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x10, 0x6d, 0x2a, 0xd1, + 0xe0, 0x01, 0x00, 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/network.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/network.pbext.go new file mode 100644 index 000000000..cff5f30e7 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/network.pbext.go @@ -0,0 +1,31 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package vpc + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Network) SetId(v string) { + m.Id = v +} + +func (m *Network) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Network) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Network) SetName(v string) { + m.Name = v +} + +func (m *Network) SetDescription(v string) { + m.Description = v +} + +func (m *Network) SetLabels(v map[string]string) { + m.Labels = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/network_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/network_service.pb.go index 89a4dcaa5..d7c2b6f84 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/network_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/network_service.pb.go @@ -738,6 +738,95 @@ func (m *ListNetworkOperationsResponse) GetNextPageToken() string { return "" } +type MoveNetworkRequest struct { + // ID of the Network resource to move. + NetworkId string `protobuf:"bytes,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` + // ID of the destination folder. + DestinationFolderId string `protobuf:"bytes,2,opt,name=destination_folder_id,json=destinationFolderId,proto3" json:"destination_folder_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MoveNetworkRequest) Reset() { *m = MoveNetworkRequest{} } +func (m *MoveNetworkRequest) String() string { return proto.CompactTextString(m) } +func (*MoveNetworkRequest) ProtoMessage() {} +func (*MoveNetworkRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1f3ed0db5a46b68e, []int{13} +} + +func (m *MoveNetworkRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MoveNetworkRequest.Unmarshal(m, b) +} +func (m *MoveNetworkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MoveNetworkRequest.Marshal(b, m, deterministic) +} +func (m *MoveNetworkRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_MoveNetworkRequest.Merge(m, src) +} +func (m *MoveNetworkRequest) XXX_Size() int { + return xxx_messageInfo_MoveNetworkRequest.Size(m) +} +func (m *MoveNetworkRequest) XXX_DiscardUnknown() { + xxx_messageInfo_MoveNetworkRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_MoveNetworkRequest proto.InternalMessageInfo + +func (m *MoveNetworkRequest) GetNetworkId() string { + if m != nil { + return m.NetworkId + } + return "" +} + +func (m *MoveNetworkRequest) GetDestinationFolderId() string { + if m != nil { + return m.DestinationFolderId + } + return "" +} + +type MoveNetworkMetadata struct { + // ID of the network that is being moved. + NetworkId string `protobuf:"bytes,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MoveNetworkMetadata) Reset() { *m = MoveNetworkMetadata{} } +func (m *MoveNetworkMetadata) String() string { return proto.CompactTextString(m) } +func (*MoveNetworkMetadata) ProtoMessage() {} +func (*MoveNetworkMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_1f3ed0db5a46b68e, []int{14} +} + +func (m *MoveNetworkMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MoveNetworkMetadata.Unmarshal(m, b) +} +func (m *MoveNetworkMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MoveNetworkMetadata.Marshal(b, m, deterministic) +} +func (m *MoveNetworkMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_MoveNetworkMetadata.Merge(m, src) +} +func (m *MoveNetworkMetadata) XXX_Size() int { + return xxx_messageInfo_MoveNetworkMetadata.Size(m) +} +func (m *MoveNetworkMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_MoveNetworkMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_MoveNetworkMetadata proto.InternalMessageInfo + +func (m *MoveNetworkMetadata) GetNetworkId() string { + if m != nil { + return m.NetworkId + } + return "" +} + func init() { proto.RegisterType((*GetNetworkRequest)(nil), "yandex.cloud.vpc.v1.GetNetworkRequest") proto.RegisterType((*ListNetworksRequest)(nil), "yandex.cloud.vpc.v1.ListNetworksRequest") @@ -754,6 +843,8 @@ func init() { proto.RegisterType((*ListNetworkSubnetsResponse)(nil), "yandex.cloud.vpc.v1.ListNetworkSubnetsResponse") proto.RegisterType((*ListNetworkOperationsRequest)(nil), "yandex.cloud.vpc.v1.ListNetworkOperationsRequest") proto.RegisterType((*ListNetworkOperationsResponse)(nil), "yandex.cloud.vpc.v1.ListNetworkOperationsResponse") + proto.RegisterType((*MoveNetworkRequest)(nil), "yandex.cloud.vpc.v1.MoveNetworkRequest") + proto.RegisterType((*MoveNetworkMetadata)(nil), "yandex.cloud.vpc.v1.MoveNetworkMetadata") } func init() { @@ -761,82 +852,87 @@ func init() { } var fileDescriptor_1f3ed0db5a46b68e = []byte{ - // 1041 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0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x92, 0x39, 0x2e, 0x9d, 0xdf, 0x84, 0xf7, 0x76, 0x1d, 0x7f, 0x9f, 0x4e, 0x5a, 0x65, 0xc6, - 0xa4, 0xfd, 0xc0, 0x41, 0x2e, 0x98, 0x12, 0xe6, 0x4a, 0x48, 0x9a, 0x35, 0x47, 0x51, 0x6f, 0xe5, - 0xe5, 0xc4, 0x78, 0x36, 0x7d, 0x22, 0xe1, 0x75, 0x0d, 0x5d, 0x9d, 0xca, 0x4b, 0x0e, 0x6d, 0xee, - 0x67, 0x0e, 0x2e, 0x07, 0xd9, 0xce, 0x6c, 0x01, 0x29, 0xb3, 0x4a, 0x8e, 0x79, 0x1c, 0x5f, 0xbb, - 0xc8, 0x11, 0x46, 0xb4, 0x4a, 0x88, 0x56, 0x50, 0x79, 0x3a, 0xd1, 0x33, 0x93, 0x69, 0x6e, 0x7e, - 0xbe, 0xd1, 0x35, 0xfc, 0x2f, 0xfa, 0x6d, 0xa9, 0x63, 0xef, 0xca, 0xb4, 0xa2, 0x48, 0x7f, 0x3b, - 0x74, 0x6d, 0xb1, 0x8b, 0x2d, 0xd2, 0x20, 0x39, 0xe6, 0xe7, 0xc9, 0xc6, 0xc0, 0xe9, 0xb4, 0x33, - 0x24, 0x7c, 0xe3, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x57, 0x2a, 0x8f, 0x55, 0x85, 0x0d, 0x00, - 0x00, + // 1125 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x4d, 0x73, 0xdb, 0x54, + 0x14, 0x9d, 0x17, 0x3b, 0x6e, 0x7c, 0x0d, 0x25, 0xbc, 0x24, 0x83, 0x11, 0x09, 0x24, 0x9a, 0x69, + 0xe2, 0xb8, 0x48, 0xb2, 0xdc, 0x26, 0xd3, 0x24, 0xed, 0xb4, 0xa4, 0xb4, 0x9d, 0xce, 0x24, 0x94, + 0x51, 0xf9, 0x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+ 0xc5, 0xef, 0xb5, 0x6c, 0x6f, 0x87, 0x29, 0xad, 0x7c, 0x86, 0xd2, 0x7e, 0x40, 0x50, 0xf0, 0x55, + 0x12, 0x38, 0x2a, 0x16, 0xcf, 0xd2, 0x51, 0x7c, 0x2f, 0x70, 0x52, 0x6a, 0x7c, 0xa0, 0x3e, 0x81, + 0xf2, 0x9a, 0xc3, 0x57, 0x06, 0xf2, 0x92, 0x42, 0x8b, 0xfe, 0x05, 0xc1, 0x65, 0x3f, 0xdb, 0x89, + 0xa5, 0x61, 0xf9, 0xac, 0x92, 0x3d, 0xfe, 0xcc, 0x55, 0xcf, 0x73, 0x24, 0x20, 0x5a, 0xa1, 0x44, + 0xcb, 0xb8, 0x34, 0x98, 0x68, 0xc4, 0x20, 0x7f, 0x42, 0x90, 0xf5, 0x3d, 0x07, 0xcf, 0x25, 0x96, + 0xeb, 0xf5, 0xc4, 0x34, 0x93, 0x7f, 0x74, 0x70, 0x5c, 0x7e, 0x3b, 0xd9, 0xcb, 0x62, 0xf2, 0x9c, + 0xe3, 0xf9, 0xc1, 0xf2, 0x6c, 0x59, 0x1d, 0xb2, 0x8c, 0xca, 0xab, 0x9f, 0xc0, 0x1b, 0xb1, 0xa2, + 0xaa, 0xad, 0x07, 0x0c, 0x3f, 0x5b, 0x69, 0xe8, 0xde, 0xe7, 0xed, 0x4d, 0xb1, 0x6e, 0xb5, 0x24, + 0x86, 0x11, 0xd8, 0xdf, 0xb6, 0x86, 0x25, 0x34, 0x88, 0x49, 0xf5, 0x25, 0x25, 0xfc, 0x33, 0x5c, + 0xe9, 0xd8, 0xf5, 0xcd, 0x1c, 0x0d, 0x5f, 0xfb, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x46, 0xed, + 0x6f, 0x00, 0x0f, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // NetworkServiceClient is the client API for NetworkService service. // @@ -860,13 +956,15 @@ type NetworkServiceClient interface { ListSubnets(ctx context.Context, in *ListNetworkSubnetsRequest, opts ...grpc.CallOption) (*ListNetworkSubnetsResponse, error) // Lists operations for the specified network. ListOperations(ctx context.Context, in *ListNetworkOperationsRequest, opts ...grpc.CallOption) (*ListNetworkOperationsResponse, error) + // Move network to another folder. + Move(ctx context.Context, in *MoveNetworkRequest, opts ...grpc.CallOption) (*operation.Operation, error) } type networkServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewNetworkServiceClient(cc *grpc.ClientConn) NetworkServiceClient { +func NewNetworkServiceClient(cc grpc.ClientConnInterface) NetworkServiceClient { return &networkServiceClient{cc} } @@ -933,6 +1031,15 @@ func (c *networkServiceClient) ListOperations(ctx context.Context, in *ListNetwo return out, nil } +func (c *networkServiceClient) Move(ctx context.Context, in *MoveNetworkRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.vpc.v1.NetworkService/Move", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // NetworkServiceServer is the server API for NetworkService service. type NetworkServiceServer interface { // Returns the specified Network resource. @@ -953,6 +1060,8 @@ type NetworkServiceServer interface { ListSubnets(context.Context, *ListNetworkSubnetsRequest) (*ListNetworkSubnetsResponse, error) // Lists operations for the specified network. ListOperations(context.Context, *ListNetworkOperationsRequest) (*ListNetworkOperationsResponse, error) + // Move network to another folder. + Move(context.Context, *MoveNetworkRequest) (*operation.Operation, error) } // UnimplementedNetworkServiceServer can be embedded to have forward compatible implementations. @@ -980,6 +1089,9 @@ func (*UnimplementedNetworkServiceServer) ListSubnets(ctx context.Context, req * func (*UnimplementedNetworkServiceServer) ListOperations(ctx context.Context, req *ListNetworkOperationsRequest) (*ListNetworkOperationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") } +func (*UnimplementedNetworkServiceServer) Move(ctx context.Context, req *MoveNetworkRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Move not implemented") +} func RegisterNetworkServiceServer(s *grpc.Server, srv NetworkServiceServer) { s.RegisterService(&_NetworkService_serviceDesc, srv) @@ -1111,6 +1223,24 @@ func _NetworkService_ListOperations_Handler(srv interface{}, ctx context.Context return interceptor(ctx, in, info, handler) } +func _NetworkService_Move_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MoveNetworkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NetworkServiceServer).Move(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.vpc.v1.NetworkService/Move", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NetworkServiceServer).Move(ctx, req.(*MoveNetworkRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _NetworkService_serviceDesc = grpc.ServiceDesc{ ServiceName: "yandex.cloud.vpc.v1.NetworkService", HandlerType: (*NetworkServiceServer)(nil), @@ -1143,6 +1273,10 @@ var _NetworkService_serviceDesc = grpc.ServiceDesc{ MethodName: "ListOperations", Handler: _NetworkService_ListOperations_Handler, }, + { + MethodName: "Move", + Handler: _NetworkService_Move_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "yandex/cloud/vpc/v1/network_service.proto", diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/network_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/network_service.pbext.go new file mode 100644 index 000000000..00061941f --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/network_service.pbext.go @@ -0,0 +1,140 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package vpc + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetNetworkRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *ListNetworksRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListNetworksRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListNetworksRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListNetworksRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListNetworksResponse) SetNetworks(v []*Network) { + m.Networks = v +} + +func (m *ListNetworksResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateNetworkRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateNetworkRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateNetworkRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateNetworkRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateNetworkMetadata) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *UpdateNetworkRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *UpdateNetworkRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateNetworkRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateNetworkRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateNetworkRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateNetworkMetadata) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *DeleteNetworkRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *DeleteNetworkMetadata) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *ListNetworkSubnetsRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *ListNetworkSubnetsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListNetworkSubnetsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListNetworkSubnetsResponse) SetSubnets(v []*Subnet) { + m.Subnets = v +} + +func (m *ListNetworkSubnetsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *ListNetworkOperationsRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *ListNetworkOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListNetworkOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListNetworkOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListNetworkOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *MoveNetworkRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *MoveNetworkRequest) SetDestinationFolderId(v string) { + m.DestinationFolderId = v +} + +func (m *MoveNetworkMetadata) SetNetworkId(v string) { + m.NetworkId = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/route_table.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/route_table.pb.go index 3e3e59eac..760d95b90 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/route_table.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/route_table.pb.go @@ -21,7 +21,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package -// A RouteTable resource. For more information, see [RouteTables](/docs/vpc/concepts/route_tables). +// A RouteTable resource. For more information, see [Static Routes](/docs/vpc/concepts/static-routes). type RouteTable struct { // ID of the route table. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` @@ -125,7 +125,7 @@ func (m *RouteTable) GetStaticRoutes() []*StaticRoute { return nil } -// A StaticRoute resource. For more information, see [StaticRoutes](/docs/vpc/concepts/static_routes). +// A StaticRoute resource. For more information, see [Static Routes](/docs/vpc/concepts/static-routes). type StaticRoute struct { // Types that are valid to be assigned to Destination: // *StaticRoute_DestinationPrefix @@ -240,34 +240,34 @@ func init() { } var fileDescriptor_fefcab5534a5cf97 = []byte{ - // 456 bytes of a gzipped FileDescriptorProto + // 464 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0x41, 0x6f, 0xd3, 0x30, - 0x18, 0x25, 0xc9, 0x36, 0xda, 0x2f, 0x6c, 0x1a, 0x86, 0x43, 0x54, 0x84, 0x88, 0x26, 0x21, 0x55, - 0xc0, 0x1c, 0x6d, 0x5c, 0x18, 0x13, 0x87, 0x15, 0x26, 0x75, 0x12, 0x07, 0x14, 0x76, 0xe2, 0x12, - 0x39, 0xf1, 0xd7, 0xcc, 0x5a, 0x1a, 0x47, 0xb6, 0x13, 0xda, 0x3f, 0xc0, 0x99, 0x9f, 0x8c, 0x62, - 0xa7, 0xac, 0x87, 0x4a, 0x1c, 0xb8, 0xd9, 0xdf, 0x7b, 0x7e, 0xcf, 0xef, 0x25, 0x86, 0xd7, 0x6b, - 0x56, 0x73, 0x5c, 0x25, 0x45, 0x25, 0x5b, 0x9e, 0x74, 0x4d, 0x91, 0x74, 0x67, 0x89, 0x92, 0xad, - 0xc1, 0xcc, 0xb0, 0xbc, 0x42, 0xda, 0x28, 0x69, 0x24, 0x79, 0xe6, 0x68, 0xd4, 0xd2, 0x68, 0xd7, - 0x14, 0xb4, 0x3b, 0x9b, 0xbc, 0x2a, 0xa5, 0x2c, 0x2b, 0x4c, 0x2c, 0x25, 0x6f, 0x17, 0x89, 0x11, - 0x4b, 0xd4, 0x86, 0x2d, 0x1b, 0x77, 0xea, 0xe4, 0x77, 0x00, 0x90, 0xf6, 0x5a, 0xb7, 0xbd, 0x14, - 0x39, 0x02, 0x5f, 0xf0, 0xc8, 0x8b, 0xbd, 0xe9, 0x38, 0xf5, 0x05, 0x27, 0x2f, 0x60, 0xbc, 0x90, - 0x15, 0x47, 0x95, 0x09, 0x1e, 0xf9, 0x76, 0x3c, 0x72, 0x83, 0x1b, 0x4e, 0x2e, 0x00, 0x0a, 0x85, - 0xcc, 0x20, 0xcf, 0x98, 0x89, 0x82, 0xd8, 0x9b, 0x86, 0xe7, 0x13, 0xea, 0x1c, 0xe9, 0xc6, 0x91, - 0xde, 0x6e, 0x1c, 0xd3, 0xf1, 0xc0, 0xbe, 0x32, 0x84, 0xc0, 0x5e, 0xcd, 0x96, 0x18, 0xed, 0x59, - 0x49, 0xbb, 0x26, 0x31, 0x84, 0x1c, 0x75, 0xa1, 0x44, 0x63, 0x84, 0xac, 0xa3, 0x7d, 0x0b, 0x6d, - 0x8f, 0xc8, 0x67, 0x38, 0xa8, 0x58, 0x8e, 0x95, 0x8e, 0x0e, 0xe2, 0x60, 0x1a, 0x9e, 0xbf, 0xa5, - 0x3b, 0x32, 0xd3, 0x87, 0x38, 0xf4, 0xab, 0x65, 0x5f, 0xd7, 0x46, 0xad, 0xd3, 0xe1, 0x28, 0x79, - 0x09, 0x50, 0xa3, 0xf9, 0x29, 0xd5, 0x7d, 0x9f, 0xe9, 0xb1, 0x75, 0x19, 0x0f, 0x93, 0x1b, 0x4e, - 0xae, 0xe1, 0x50, 0x1b, 0x66, 0x44, 0x91, 0xd9, 0x8a, 0x75, 0x34, 0xb2, 0x56, 0xf1, 0x4e, 0xab, - 0xef, 0x96, 0x69, 0x0d, 0xd3, 0x27, 0xfa, 0x61, 0xa3, 0x27, 0x17, 0x10, 0x6e, 0x99, 0x93, 0x63, - 0x08, 0xee, 0x71, 0x3d, 0x14, 0xdb, 0x2f, 0xc9, 0x73, 0xd8, 0xef, 0x58, 0xd5, 0xe2, 0xd0, 0xaa, - 0xdb, 0x7c, 0xf4, 0x3f, 0x78, 0x27, 0xbf, 0x7c, 0x08, 0xb7, 0x84, 0x49, 0x02, 0x84, 0xa3, 0x36, - 0xa2, 0x66, 0x7d, 0x09, 0x59, 0xa3, 0x70, 0x21, 0x56, 0x4e, 0x6a, 0xfe, 0x28, 0x7d, 0xba, 0x85, - 0x7d, 0xb3, 0x10, 0x79, 0x03,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ff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/route_table.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/route_table.pbext.go new file mode 100644 index 000000000..c80298fe4 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/route_table.pbext.go @@ -0,0 +1,67 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package vpc + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *RouteTable) SetId(v string) { + m.Id = v +} + +func (m *RouteTable) SetFolderId(v string) { + m.FolderId = v +} + +func (m *RouteTable) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *RouteTable) SetName(v string) { + m.Name = v +} + +func (m *RouteTable) SetDescription(v string) { + m.Description = v +} + +func (m *RouteTable) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *RouteTable) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *RouteTable) SetStaticRoutes(v []*StaticRoute) { + m.StaticRoutes = v +} + +type StaticRoute_Destination = isStaticRoute_Destination + +func (m *StaticRoute) SetDestination(v StaticRoute_Destination) { + m.Destination = v +} + +type StaticRoute_NextHop = isStaticRoute_NextHop + +func (m *StaticRoute) SetNextHop(v StaticRoute_NextHop) { + m.NextHop = v +} + +func (m *StaticRoute) SetDestinationPrefix(v string) { + m.Destination = &StaticRoute_DestinationPrefix{ + DestinationPrefix: v, + } +} + +func (m *StaticRoute) SetNextHopAddress(v string) { + m.NextHop = &StaticRoute_NextHopAddress{ + NextHopAddress: v, + } +} + +func (m *StaticRoute) SetLabels(v map[string]string) { + m.Labels = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/route_table_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/route_table_service.pb.go index 015e99f48..3e5b2d1e1 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/route_table_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/route_table_service.pb.go @@ -647,6 +647,95 @@ func (m *ListRouteTableOperationsResponse) GetNextPageToken() string { return "" } +type MoveRouteTableRequest struct { + // ID of the RouteTable resource to move. + RouteTableId string `protobuf:"bytes,1,opt,name=route_table_id,json=routeTableId,proto3" json:"route_table_id,omitempty"` + // ID of the destination folder. + DestinationFolderId string `protobuf:"bytes,2,opt,name=destination_folder_id,json=destinationFolderId,proto3" json:"destination_folder_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MoveRouteTableRequest) Reset() { *m = MoveRouteTableRequest{} } +func (m *MoveRouteTableRequest) String() string { return proto.CompactTextString(m) } +func (*MoveRouteTableRequest) ProtoMessage() {} +func (*MoveRouteTableRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9bfefbf6833abb34, []int{11} +} + +func (m *MoveRouteTableRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MoveRouteTableRequest.Unmarshal(m, b) +} +func (m *MoveRouteTableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MoveRouteTableRequest.Marshal(b, m, deterministic) +} +func (m *MoveRouteTableRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_MoveRouteTableRequest.Merge(m, src) +} +func (m *MoveRouteTableRequest) XXX_Size() int { + return xxx_messageInfo_MoveRouteTableRequest.Size(m) +} +func (m *MoveRouteTableRequest) XXX_DiscardUnknown() { + xxx_messageInfo_MoveRouteTableRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_MoveRouteTableRequest proto.InternalMessageInfo + +func (m *MoveRouteTableRequest) GetRouteTableId() string { + if m != nil { + return m.RouteTableId + } + return "" +} + +func (m *MoveRouteTableRequest) GetDestinationFolderId() string { + if m != nil { + return m.DestinationFolderId + } + return "" +} + +type MoveRouteTableMetadata struct { + // ID of the RouteTable resource that is being moved. + RouteTableId string `protobuf:"bytes,1,opt,name=route_table_id,json=routeTableId,proto3" json:"route_table_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MoveRouteTableMetadata) Reset() { *m = MoveRouteTableMetadata{} } +func (m *MoveRouteTableMetadata) String() string { return proto.CompactTextString(m) } +func (*MoveRouteTableMetadata) ProtoMessage() {} +func (*MoveRouteTableMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_9bfefbf6833abb34, []int{12} +} + +func (m *MoveRouteTableMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MoveRouteTableMetadata.Unmarshal(m, b) +} +func (m *MoveRouteTableMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MoveRouteTableMetadata.Marshal(b, m, deterministic) +} +func (m *MoveRouteTableMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_MoveRouteTableMetadata.Merge(m, src) +} +func (m *MoveRouteTableMetadata) XXX_Size() int { + return xxx_messageInfo_MoveRouteTableMetadata.Size(m) +} +func (m *MoveRouteTableMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_MoveRouteTableMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_MoveRouteTableMetadata proto.InternalMessageInfo + +func (m *MoveRouteTableMetadata) GetRouteTableId() string { + if m != nil { + return m.RouteTableId + } + return "" +} + func init() { proto.RegisterType((*GetRouteTableRequest)(nil), "yandex.cloud.vpc.v1.GetRouteTableRequest") proto.RegisterType((*ListRouteTablesRequest)(nil), "yandex.cloud.vpc.v1.ListRouteTablesRequest") @@ -661,6 +750,8 @@ func init() { proto.RegisterType((*DeleteRouteTableMetadata)(nil), "yandex.cloud.vpc.v1.DeleteRouteTableMetadata") proto.RegisterType((*ListRouteTableOperationsRequest)(nil), "yandex.cloud.vpc.v1.ListRouteTableOperationsRequest") proto.RegisterType((*ListRouteTableOperationsResponse)(nil), "yandex.cloud.vpc.v1.ListRouteTableOperationsResponse") + proto.RegisterType((*MoveRouteTableRequest)(nil), "yandex.cloud.vpc.v1.MoveRouteTableRequest") + proto.RegisterType((*MoveRouteTableMetadata)(nil), "yandex.cloud.vpc.v1.MoveRouteTableMetadata") } func init() { @@ -668,81 +759,86 @@ func init() { } var fileDescriptor_9bfefbf6833abb34 = []byte{ - // 1036 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xcf, 0x6f, 0x1b, 0xc5, - 0x17, 0xd7, 0xc6, 0x8e, 0xbf, 0xf5, 0x73, 0xda, 0x6f, 0x99, 0xb6, 0xc4, 0x32, 0x54, 0x75, 0x57, - 0x25, 0x24, 0x4e, 0x76, 0xd7, 0xeb, 0x36, 0xa1, 0x69, 0x1a, 0x01, 0x86, 0x50, 0x82, 0x1a, 0x81, - 0x36, 0xe5, 0x00, 0x51, 0x65, 0x8d, 0xbd, 0x13, 0xb3, 0xf2, 0x66, 0x77, 0xd9, 0x19, 0x9b, 0x26, - 0xa5, 0x20, 0x55, 0x70, 0x89, 0xc4, 0x01, 0xf1, 0x27, 0x70, 0xe1, 0x1c, 0x21, 0x0e, 0x88, 0x7b, - 0x72, 0x2e, 0xff, 0x02, 0x07, 0x10, 0xb7, 0x1e, 0x39, 0xa1, 0x99, 0x59, 0xff, 0xcc, 0x3a, 0xb1, - 0x69, 0x91, 0xb8, 0xed, 0xf8, 0xbd, 0xf9, 0xe4, 0xf3, 0x3e, 0xf3, 0x99, 0xf7, 0x26, 0xa0, 0xed, - 0x62, 0xcf, 0x26, 0x0f, 0x8c, 0x9a, 0xeb, 0x37, 0x6d, 0xa3, 0x15, 0xd4, 0x8c, 0x96, 0x69, 0x84, - 0x7e, 0x93, 0x91, 0x0a, 0xc3, 0x55, 0x97, 0x54, 0x28, 0x09, 0x5b, 0x4e, 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- 0x55, 0xb3, 0x58, 0x2c, 0x5a, 0x67, 0x78, 0x70, 0xd3, 0xd9, 0x23, 0x68, 0x16, 0x40, 0x24, 0x32, - 0xbf, 0x41, 0xbc, 0x6c, 0x42, 0x80, 0xa6, 0xf7, 0x8f, 0xcc, 0x49, 0x91, 0x69, 0x09, 0x94, 0x7b, - 0x3c, 0x86, 0x54, 0x48, 0x6d, 0x3b, 0x2e, 0x23, 0x61, 0x36, 0x29, 0xb2, 0x60, 0xff, 0xa8, 0x83, - 0x17, 0x45, 0xd4, 0xaf, 0x15, 0x98, 0x3e, 0x46, 0x9e, 0x06, 0xbe, 0x47, 0x09, 0x2a, 0xc3, 0x54, - 0x8f, 0x18, 0x34, 0xab, 0xe4, 0x13, 0xb3, 0x99, 0xd2, 0x15, 0x3d, 0xc6, 0x20, 0x7a, 0x8f, 0x94, - 0x99, 0xae, 0x3a, 0x14, 0xcd, 0xc0, 0xff, 0x3d, 0xf2, 0x80, 0x55, 0x7a, 0x28, 0xf3, 0xe2, 0xd2, - 0xd6, 0x59, 0xfe, 0xf3, 0x07, 0x6d, 0xae, 0xea, 0x9f, 0x09, 0x98, 0x7e, 0x2b, 0x24, 0x98, 0x91, - 0xe3, 0x87, 0x32, 0x86, 0x8a, 0x8b, 0x90, 0xf4, 0xf0, 0x8e, 0x14, 0x30, 0x5d, 0xbe, 0xfa, 0xf4, - 0xd0, 0xbc, 0xfc, 0xf9, 0x16, 0xd6, 0xf6, 0xee, 0x6f, 0x69, 0x58, 0xdb, 0x2b, 0x6a, 0xcb, 0xf7, - 0x1f, 0x9a, 0x0b, 0x4b, 0xe6, 0xa3, 0xad, 0x68, 0x65, 0x89, 0x74, 0x34, 0x0f, 0x19, 0x9b, 0xd0, - 0x5a, 0xe8, 0x04, 0xdc, 0x23, 0xfd, 0xa2, 0x96, 0x16, 0x97, 0xac, 0xde, 0x28, 0xfa, 0x56, 0x81, - 0x94, 0x8b, 0xab, 0xc4, 0xa5, 0xd9, 0xa4, 0x50,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xee, 0xf4, 0x63, 0x52, 0xdf, 0x3d, 0x78, 0x52, 0x98, 0x39, 0xa1, 0x9b, 0x43, - 0xf7, 0x37, 0x41, 0x31, 0xab, 0xc6, 0x51, 0xbc, 0xa5, 0x14, 0xd0, 0x8f, 0x0a, 0xa4, 0xe4, 0x5d, - 0x1e, 0xc2, 0x72, 0x48, 0x6b, 0x1b, 0x85, 0xe5, 0x47, 0x92, 0xe5, 0xd0, 0x56, 0x31, 0xc8, 0x72, - 0xae, 0x34, 0xd2, 0xc9, 0x72, 0xda, 0xbf, 0x28, 0x90, 0x92, 0x37, 0x7e, 0x08, 0xed, 0x21, 0xdd, - 0x65, 0x14, 0xda, 0xf8, 0xe0, 0x49, 0xc1, 0x3c, 0xa1, 0xa1, 0x5c, 0x1a, 0x1c, 0x4f, 0x6b, 0x3b, - 0x01, 0xdb, 0x95, 0xde, 0x2c, 0x8c, 0xe6, 0xcd, 0x9f, 0x14, 0x38, 0xc7, 0x4d, 0xd5, 0xbd, 0xb8, - 0xe8, 0xc6, 0x08, 0xce, 0x3b, 0xd6, 0x92, 0x72, 0x8b, 0x63, 0xee, 0x8a, 0x8c, 0xfb, 0x9a, 0x60, - 0x6b, 0x22, 0x63, 0x14, 0xb6, 0xdd, 0x57, 0x3e, 0x2d, 0xaf, 0x7e, 0xbc, 0x52, 0x77, 0xd8, 0x27, - 0xcd, 0xaa, 0x5e, 0xf3, 0x77, 0x0c, 0xf9, 0xb7, 0x35, 0xf9, 0xda, 0xaf, 0xfb, 0x5a, 0x9d, 0x78, - 0x42, 0x14, 0x23, 0xe6, 0xbf, 0x8a, 0x95, 0x56, 0x50, 0xab, 0xa6, 0x44, 0xf8, 0xfa, 0xdf, 0x01, - 0x00, 0x00, 0xff, 0xff, 0x92, 0x4a, 0x22, 0x26, 0x1d, 0x0d, 0x00, 0x00, + // 1119 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x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xff, 0x1b, 0xa3, 0x98, 0xe7, 0xa3, + 0x28, 0x2e, 0x71, 0x25, 0xf4, 0x33, 0x07, 0x19, 0xcf, 0x9b, 0x62, 0x58, 0xc6, 0x58, 0x75, 0x12, + 0x96, 0x1f, 0x79, 0x2c, 0x63, 0xad, 0x6f, 0x90, 0xe5, 0x4c, 0x25, 0xd1, 0xce, 0xba, 0xb4, 0x7f, + 0xe3, 0x20, 0xe3, 0x39, 0x58, 0x0c, 0xed, 0x18, 0xb7, 0x4c, 0x42, 0x1b, 0xef, 0x1d, 0x96, 0xe4, + 0x63, 0x0c, 0x72, 0x7c, 0x70, 0xdc, 0xae, 0xb4, 0x2c, 0x67, 0xdb, 0xd3, 0x66, 0x29, 0x99, 0x36, + 0x7f, 0xe1, 0xe0, 0x9c, 0x2b, 0xaa, 0xbe, 0x11, 0xa1, 0xeb, 0x09, 0x94, 0x77, 0xc4, 0x62, 0x0b, + 0xf3, 0x43, 0xae, 0xf2, 0x85, 0xfb, 0x1a, 0x63, 0x2b, 0x23, 0x29, 0x09, 0x5b, 0x29, 0xe0, 0x71, + 0x3f, 0x71, 0x90, 0x76, 0xcd, 0x02, 0x95, 0x22, 0xff, 0x38, 0xd2, 0xd6, 0x92, 0xf4, 0xfc, 0x93, + 0xbd, 0xc3, 0xd2, 0x64, 0xac, 0x0f, 0x0d, 0x0a, 0x45, 0xe4, 0x67, 0x12, 0x09, 0xa5, 0x65, 0x76, + 0xc8, 0x12, 0x57, 0xaa, 0x7e, 0x08, 0x13, 0x21, 0x06, 0xd8, 0xd2, 0x7c, 0xc6, 0x1f, 0x2f, 0x37, + 0x34, 0xe7, 0xd3, 0xf6, 0xa6, 0x58, 0x37, 0x5b, 0x92, 0x97, 0x23, 0x78, 0x1f, 0x63, 0x0d, 0x53, + 0x68, 0x10, 0x83, 0xed, 0xb1, 0x14, 0xf1, 0xd1, 0xb7, 0xdc, 0xb1, 0xea, 0x9b, 0x19, 0x16, 0xbe, + 0xf6, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x09, 0x53, 0x1c, 0xa1, 0xbc, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // RouteTableServiceClient is the client API for RouteTableService service. // @@ -764,13 +860,15 @@ type RouteTableServiceClient interface { Delete(ctx context.Context, in *DeleteRouteTableRequest, opts ...grpc.CallOption) (*operation.Operation, error) // List operations for the specified route table. ListOperations(ctx context.Context, in *ListRouteTableOperationsRequest, opts ...grpc.CallOption) (*ListRouteTableOperationsResponse, error) + // Move route table to another folder. + Move(ctx context.Context, in *MoveRouteTableRequest, opts ...grpc.CallOption) (*operation.Operation, error) } type routeTableServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewRouteTableServiceClient(cc *grpc.ClientConn) RouteTableServiceClient { +func NewRouteTableServiceClient(cc grpc.ClientConnInterface) RouteTableServiceClient { return &routeTableServiceClient{cc} } @@ -828,6 +926,15 @@ func (c *routeTableServiceClient) ListOperations(ctx context.Context, in *ListRo return out, nil } +func (c *routeTableServiceClient) Move(ctx context.Context, in *MoveRouteTableRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.vpc.v1.RouteTableService/Move", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // RouteTableServiceServer is the server API for RouteTableService service. type RouteTableServiceServer interface { // Returns the specified RouteTable resource. @@ -846,6 +953,8 @@ type RouteTableServiceServer interface { Delete(context.Context, *DeleteRouteTableRequest) (*operation.Operation, error) // List operations for the specified route table. ListOperations(context.Context, *ListRouteTableOperationsRequest) (*ListRouteTableOperationsResponse, error) + // Move route table to another folder. + Move(context.Context, *MoveRouteTableRequest) (*operation.Operation, error) } // UnimplementedRouteTableServiceServer can be embedded to have forward compatible implementations. @@ -870,6 +979,9 @@ func (*UnimplementedRouteTableServiceServer) Delete(ctx context.Context, req *De func (*UnimplementedRouteTableServiceServer) ListOperations(ctx context.Context, req *ListRouteTableOperationsRequest) (*ListRouteTableOperationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") } +func (*UnimplementedRouteTableServiceServer) Move(ctx context.Context, req *MoveRouteTableRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Move not implemented") +} func RegisterRouteTableServiceServer(s *grpc.Server, srv RouteTableServiceServer) { s.RegisterService(&_RouteTableService_serviceDesc, srv) @@ -983,6 +1095,24 @@ func _RouteTableService_ListOperations_Handler(srv interface{}, ctx context.Cont return interceptor(ctx, in, info, handler) } +func _RouteTableService_Move_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MoveRouteTableRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RouteTableServiceServer).Move(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.vpc.v1.RouteTableService/Move", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RouteTableServiceServer).Move(ctx, req.(*MoveRouteTableRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _RouteTableService_serviceDesc = grpc.ServiceDesc{ ServiceName: "yandex.cloud.vpc.v1.RouteTableService", HandlerType: (*RouteTableServiceServer)(nil), @@ -1011,6 +1141,10 @@ var _RouteTableService_serviceDesc = grpc.ServiceDesc{ MethodName: "ListOperations", Handler: _RouteTableService_ListOperations_Handler, }, + { + MethodName: "Move", + Handler: _RouteTableService_Move_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "yandex/cloud/vpc/v1/route_table_service.proto", diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/route_table_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/route_table_service.pbext.go new file mode 100644 index 000000000..888df9150 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/route_table_service.pbext.go @@ -0,0 +1,132 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package vpc + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetRouteTableRequest) SetRouteTableId(v string) { + m.RouteTableId = v +} + +func (m *ListRouteTablesRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListRouteTablesRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListRouteTablesRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListRouteTablesRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListRouteTablesResponse) SetRouteTables(v []*RouteTable) { + m.RouteTables = v +} + +func (m *ListRouteTablesResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateRouteTableRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateRouteTableRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateRouteTableRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateRouteTableRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateRouteTableRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *CreateRouteTableRequest) SetStaticRoutes(v []*StaticRoute) { + m.StaticRoutes = v +} + +func (m *CreateRouteTableMetadata) SetRouteTableId(v string) { + m.RouteTableId = v +} + +func (m *UpdateRouteTableRequest) SetRouteTableId(v string) { + m.RouteTableId = v +} + +func (m *UpdateRouteTableRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateRouteTableRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateRouteTableRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateRouteTableRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateRouteTableRequest) SetStaticRoutes(v []*StaticRoute) { + m.StaticRoutes = v +} + +func (m *UpdateRouteTableMetadata) SetRouteTableId(v string) { + m.RouteTableId = v +} + +func (m *DeleteRouteTableRequest) SetRouteTableId(v string) { + m.RouteTableId = v +} + +func (m *DeleteRouteTableMetadata) SetRouteTableId(v string) { + m.RouteTableId = v +} + +func (m *ListRouteTableOperationsRequest) SetRouteTableId(v string) { + m.RouteTableId = v +} + +func (m *ListRouteTableOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListRouteTableOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListRouteTableOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListRouteTableOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *MoveRouteTableRequest) SetRouteTableId(v string) { + m.RouteTableId = v +} + +func (m *MoveRouteTableRequest) SetDestinationFolderId(v string) { + m.DestinationFolderId = v +} + +func (m *MoveRouteTableMetadata) SetRouteTableId(v string) { + m.RouteTableId = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/security_group.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/security_group.pb.go new file mode 100644 index 000000000..56bce513e --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/security_group.pb.go @@ -0,0 +1,515 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/vpc/v1/security_group.proto + +package vpc + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type SecurityGroup_Status int32 + +const ( + SecurityGroup_STATUS_UNSPECIFIED SecurityGroup_Status = 0 + SecurityGroup_CREATING SecurityGroup_Status = 1 + SecurityGroup_ACTIVE SecurityGroup_Status = 2 + // updating is a long operation because we must update all instances in SG + SecurityGroup_UPDATING SecurityGroup_Status = 3 + SecurityGroup_DELETING SecurityGroup_Status = 4 +) + +var SecurityGroup_Status_name = map[int32]string{ + 0: "STATUS_UNSPECIFIED", + 1: "CREATING", + 2: "ACTIVE", + 3: "UPDATING", + 4: "DELETING", +} + +var SecurityGroup_Status_value = map[string]int32{ + "STATUS_UNSPECIFIED": 0, + "CREATING": 1, + "ACTIVE": 2, + "UPDATING": 3, + "DELETING": 4, +} + +func (x SecurityGroup_Status) String() string { + return proto.EnumName(SecurityGroup_Status_name, int32(x)) +} + +func (SecurityGroup_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7d1de6b05354e7cc, []int{0, 0} +} + +type SecurityGroupRule_Direction int32 + +const ( + SecurityGroupRule_DIRECTION_UNSPECIFIED SecurityGroupRule_Direction = 0 + SecurityGroupRule_INGRESS SecurityGroupRule_Direction = 1 + SecurityGroupRule_EGRESS SecurityGroupRule_Direction = 2 +) + +var SecurityGroupRule_Direction_name = map[int32]string{ + 0: "DIRECTION_UNSPECIFIED", + 1: "INGRESS", + 2: "EGRESS", +} + +var SecurityGroupRule_Direction_value = map[string]int32{ + "DIRECTION_UNSPECIFIED": 0, + "INGRESS": 1, + "EGRESS": 2, +} + +func (x SecurityGroupRule_Direction) String() string { + return proto.EnumName(SecurityGroupRule_Direction_name, int32(x)) +} + +func (SecurityGroupRule_Direction) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7d1de6b05354e7cc, []int{1, 0} +} + +type SecurityGroup struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + NetworkId string `protobuf:"bytes,7,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` + Status SecurityGroup_Status `protobuf:"varint,8,opt,name=status,proto3,enum=yandex.cloud.vpc.v1.SecurityGroup_Status" json:"status,omitempty"` + Rules []*SecurityGroupRule `protobuf:"bytes,9,rep,name=rules,proto3" json:"rules,omitempty"` + DefaultForNetwork bool `protobuf:"varint,10,opt,name=default_for_network,json=defaultForNetwork,proto3" json:"default_for_network,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SecurityGroup) Reset() { *m = SecurityGroup{} } +func (m *SecurityGroup) String() string { return proto.CompactTextString(m) } +func (*SecurityGroup) ProtoMessage() {} +func (*SecurityGroup) Descriptor() ([]byte, []int) { + return fileDescriptor_7d1de6b05354e7cc, []int{0} +} + +func (m *SecurityGroup) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecurityGroup.Unmarshal(m, b) +} +func (m *SecurityGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecurityGroup.Marshal(b, m, deterministic) +} +func (m *SecurityGroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecurityGroup.Merge(m, src) +} +func (m *SecurityGroup) XXX_Size() int { + return xxx_messageInfo_SecurityGroup.Size(m) +} +func (m *SecurityGroup) XXX_DiscardUnknown() { + xxx_messageInfo_SecurityGroup.DiscardUnknown(m) +} + +var xxx_messageInfo_SecurityGroup proto.InternalMessageInfo + +func (m *SecurityGroup) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *SecurityGroup) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *SecurityGroup) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *SecurityGroup) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SecurityGroup) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *SecurityGroup) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *SecurityGroup) GetNetworkId() string { + if m != nil { + return m.NetworkId + } + return "" +} + +func (m *SecurityGroup) GetStatus() SecurityGroup_Status { + if m != nil { + return m.Status + } + return SecurityGroup_STATUS_UNSPECIFIED +} + +func (m *SecurityGroup) GetRules() []*SecurityGroupRule { + if m != nil { + return m.Rules + } + return nil +} + +func (m *SecurityGroup) GetDefaultForNetwork() bool { + if m != nil { + return m.DefaultForNetwork + } + return false +} + +type SecurityGroupRule struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Direction SecurityGroupRule_Direction `protobuf:"varint,4,opt,name=direction,proto3,enum=yandex.cloud.vpc.v1.SecurityGroupRule_Direction" json:"direction,omitempty"` + Ports *PortRange `protobuf:"bytes,5,opt,name=ports,proto3" json:"ports,omitempty"` + // null value means any protocol + // values from https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml + ProtocolName string `protobuf:"bytes,6,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"` + ProtocolNumber int64 `protobuf:"varint,7,opt,name=protocol_number,json=protocolNumber,proto3" json:"protocol_number,omitempty"` + // Types that are valid to be assigned to Target: + // *SecurityGroupRule_CidrBlocks + // *SecurityGroupRule_SecurityGroupId + // *SecurityGroupRule_PredefinedTarget + Target isSecurityGroupRule_Target `protobuf_oneof:"target"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SecurityGroupRule) Reset() { *m = SecurityGroupRule{} } +func (m *SecurityGroupRule) String() string { return proto.CompactTextString(m) } +func (*SecurityGroupRule) ProtoMessage() {} +func (*SecurityGroupRule) Descriptor() ([]byte, []int) { + return fileDescriptor_7d1de6b05354e7cc, []int{1} +} + +func (m *SecurityGroupRule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecurityGroupRule.Unmarshal(m, b) +} +func (m *SecurityGroupRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecurityGroupRule.Marshal(b, m, deterministic) +} +func (m *SecurityGroupRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecurityGroupRule.Merge(m, src) +} +func (m *SecurityGroupRule) XXX_Size() int { + return xxx_messageInfo_SecurityGroupRule.Size(m) +} +func (m *SecurityGroupRule) XXX_DiscardUnknown() { + xxx_messageInfo_SecurityGroupRule.DiscardUnknown(m) +} + +var xxx_messageInfo_SecurityGroupRule proto.InternalMessageInfo + +func (m *SecurityGroupRule) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *SecurityGroupRule) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *SecurityGroupRule) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *SecurityGroupRule) GetDirection() SecurityGroupRule_Direction { + if m != nil { + return m.Direction + } + return SecurityGroupRule_DIRECTION_UNSPECIFIED +} + +func (m *SecurityGroupRule) GetPorts() *PortRange { + if m != nil { + return m.Ports + } + return nil +} + +func (m *SecurityGroupRule) GetProtocolName() string { + if m != nil { + return m.ProtocolName + } + return "" +} + +func (m *SecurityGroupRule) GetProtocolNumber() int64 { + if m != nil { + return m.ProtocolNumber + } + return 0 +} + +type isSecurityGroupRule_Target interface { + isSecurityGroupRule_Target() +} + +type SecurityGroupRule_CidrBlocks struct { + CidrBlocks *CidrBlocks `protobuf:"bytes,8,opt,name=cidr_blocks,json=cidrBlocks,proto3,oneof"` +} + +type SecurityGroupRule_SecurityGroupId struct { + SecurityGroupId string `protobuf:"bytes,9,opt,name=security_group_id,json=securityGroupId,proto3,oneof"` +} + +type SecurityGroupRule_PredefinedTarget struct { + PredefinedTarget string `protobuf:"bytes,10,opt,name=predefined_target,json=predefinedTarget,proto3,oneof"` +} + +func (*SecurityGroupRule_CidrBlocks) isSecurityGroupRule_Target() {} + +func (*SecurityGroupRule_SecurityGroupId) isSecurityGroupRule_Target() {} + +func (*SecurityGroupRule_PredefinedTarget) isSecurityGroupRule_Target() {} + +func (m *SecurityGroupRule) GetTarget() isSecurityGroupRule_Target { + if m != nil { + return m.Target + } + return nil +} + +func (m *SecurityGroupRule) GetCidrBlocks() *CidrBlocks { + if x, ok := m.GetTarget().(*SecurityGroupRule_CidrBlocks); ok { + return x.CidrBlocks + } + return nil +} + +func (m *SecurityGroupRule) GetSecurityGroupId() string { + if x, ok := m.GetTarget().(*SecurityGroupRule_SecurityGroupId); ok { + return x.SecurityGroupId + } + return "" +} + +func (m *SecurityGroupRule) GetPredefinedTarget() string { + if x, ok := m.GetTarget().(*SecurityGroupRule_PredefinedTarget); ok { + return x.PredefinedTarget + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SecurityGroupRule) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SecurityGroupRule_CidrBlocks)(nil), + (*SecurityGroupRule_SecurityGroupId)(nil), + (*SecurityGroupRule_PredefinedTarget)(nil), + } +} + +type PortRange struct { + FromPort int64 `protobuf:"varint,1,opt,name=from_port,json=fromPort,proto3" json:"from_port,omitempty"` + ToPort int64 `protobuf:"varint,2,opt,name=to_port,json=toPort,proto3" json:"to_port,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PortRange) Reset() { *m = PortRange{} } +func (m *PortRange) String() string { return proto.CompactTextString(m) } +func (*PortRange) ProtoMessage() {} +func (*PortRange) Descriptor() ([]byte, []int) { + return fileDescriptor_7d1de6b05354e7cc, []int{2} +} + +func (m *PortRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PortRange.Unmarshal(m, b) +} +func (m *PortRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PortRange.Marshal(b, m, deterministic) +} +func (m *PortRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_PortRange.Merge(m, src) +} +func (m *PortRange) XXX_Size() int { + return xxx_messageInfo_PortRange.Size(m) +} +func (m *PortRange) XXX_DiscardUnknown() { + xxx_messageInfo_PortRange.DiscardUnknown(m) +} + +var xxx_messageInfo_PortRange proto.InternalMessageInfo + +func (m *PortRange) GetFromPort() int64 { + if m != nil { + return m.FromPort + } + return 0 +} + +func (m *PortRange) GetToPort() int64 { + if m != nil { + return m.ToPort + } + return 0 +} + +type CidrBlocks struct { + V4CidrBlocks []string `protobuf:"bytes,1,rep,name=v4_cidr_blocks,json=v4CidrBlocks,proto3" json:"v4_cidr_blocks,omitempty"` + V6CidrBlocks []string `protobuf:"bytes,2,rep,name=v6_cidr_blocks,json=v6CidrBlocks,proto3" json:"v6_cidr_blocks,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CidrBlocks) Reset() { *m = CidrBlocks{} } +func (m *CidrBlocks) String() string { return proto.CompactTextString(m) } +func (*CidrBlocks) ProtoMessage() {} +func (*CidrBlocks) Descriptor() ([]byte, []int) { + return fileDescriptor_7d1de6b05354e7cc, []int{3} +} + +func (m *CidrBlocks) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CidrBlocks.Unmarshal(m, b) +} +func (m *CidrBlocks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CidrBlocks.Marshal(b, m, deterministic) +} +func (m *CidrBlocks) XXX_Merge(src proto.Message) { + xxx_messageInfo_CidrBlocks.Merge(m, src) +} +func (m *CidrBlocks) XXX_Size() int { + return xxx_messageInfo_CidrBlocks.Size(m) +} +func (m *CidrBlocks) XXX_DiscardUnknown() { + xxx_messageInfo_CidrBlocks.DiscardUnknown(m) +} + +var xxx_messageInfo_CidrBlocks proto.InternalMessageInfo + +func (m *CidrBlocks) GetV4CidrBlocks() []string { + if m != nil { + return m.V4CidrBlocks + } + return nil +} + +func (m *CidrBlocks) GetV6CidrBlocks() []string { + if m != nil { + return m.V6CidrBlocks + } + return nil +} + +func init() { + proto.RegisterEnum("yandex.cloud.vpc.v1.SecurityGroup_Status", SecurityGroup_Status_name, SecurityGroup_Status_value) + proto.RegisterEnum("yandex.cloud.vpc.v1.SecurityGroupRule_Direction", SecurityGroupRule_Direction_name, SecurityGroupRule_Direction_value) + proto.RegisterType((*SecurityGroup)(nil), "yandex.cloud.vpc.v1.SecurityGroup") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.vpc.v1.SecurityGroup.LabelsEntry") + proto.RegisterType((*SecurityGroupRule)(nil), "yandex.cloud.vpc.v1.SecurityGroupRule") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.vpc.v1.SecurityGroupRule.LabelsEntry") + proto.RegisterType((*PortRange)(nil), "yandex.cloud.vpc.v1.PortRange") + proto.RegisterType((*CidrBlocks)(nil), "yandex.cloud.vpc.v1.CidrBlocks") +} + +func init() { + proto.RegisterFile("yandex/cloud/vpc/v1/security_group.proto", fileDescriptor_7d1de6b05354e7cc) +} + +var fileDescriptor_7d1de6b05354e7cc = []byte{ + // 828 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 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0x12, 0xf4, 0x29, + 0x18, 0x53, 0x16, 0x11, 0xca, 0xbd, 0x90, 0x58, 0x05, 0x19, 0xae, 0xa8, 0x80, 0x4b, 0xd0, 0x6b, + 0x80, 0x80, 0x53, 0x5f, 0x50, 0xe2, 0xf9, 0xc2, 0x2a, 0xd6, 0xb5, 0xa6, 0xd9, 0xd9, 0xb7, 0x95, + 0x26, 0xfb, 0x46, 0x93, 0x3d, 0xbe, 0xd1, 0x84, 0x8d, 0x9c, 0xdd, 0x15, 0x08, 0x41, 0x69, 0xe1, + 0xcf, 0xa9, 0x55, 0x92, 0x25, 0xe5, 0x1a, 0xd5, 0xc1, 0x24, 0x34, 0x09, 0x78, 0x18, 0x67, 0x12, + 0xad, 0xb2, 0x84, 0x6e, 0x87, 0xd0, 0x09, 0xe8, 0x91, 0x3f, 0xa1, 0x51, 0x62, 0xe9, 0xf5, 0x62, + 0xd3, 0xec, 0xd8, 0xf6, 0x96, 0xae, 0xd8, 0x1b, 0x37, 0xb2, 0xdf, 0xc9, 0x04, 0x67, 0x21, 0xf8, + 0x15, 0xce, 0xb3, 0xd1, 0x33, 0x80, 0x05, 0x15, 0xbf, 0x31, 0x7e, 0x99, 0x5d, 0x6b, 0x57, 0x1e, + 0x64, 0xe4, 0x11, 0x97, 0xa0, 0x2e, 0xe8, 0x89, 0xf0, 0x45, 0x9a, 0x58, 0x95, 0xba, 0xd6, 0xac, + 0x76, 0xbe, 0x7a, 0xc0, 0x31, 0x23, 0x99, 0x80, 0xf3, 0x44, 0xf4, 0x1d, 0x94, 0x79, 0x1a, 0xd1, + 0xc4, 0x32, 0xa4, 0xd0, 0x2f, 0xfe, 0xbf, 0x02, 0x4e, 0x23, 0x8a, 0x55, 0x12, 0xb2, 0xe1, 0x29, + 0xa1, 0x53, 0x3f, 0x8d, 0x84, 0x37, 0x65, 0xdc, 0xcb, 0x95, 0x59, 0x50, 0xd7, 0x9a, 0x15, 0xbc, + 0x97, 0x43, 0x27, 0x8c, 0x0f, 0x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ba, + 0x60, 0x19, 0xab, 0xf1, 0x13, 0xc0, 0xba, 0xc3, 0xe8, 0x05, 0x54, 0x97, 0x87, 0xde, 0x6d, 0x6b, + 0xb4, 0x7a, 0x31, 0xb3, 0x79, 0x79, 0x78, 0x87, 0x75, 0xbc, 0xc1, 0x2a, 0xe4, 0xac, 0xe3, 0x35, + 0xab, 0x77, 0x01, 0x1f, 0x6f, 0xf8, 0xe9, 0xc7, 0x61, 0xee, 0xe9, 0xcf, 0x6f, 0x66, 0xa1, 0xf8, + 0x35, 0x9d, 0xd8, 0x01, 0x9b, 0xb7, 0x14, 0xe7, 0x40, 0x7d, 0xf1, 0x67, 0xec, 0x60, 0x46, 0x17, + 0x72, 0x58, 0x5a, 0x5b, 0x7e, 0x35, 0x6f, 0x96, 0x71, 0x30, 0xd1, 0x25, 0xfc, 0xea, 0xbf, 0x00, + 0x00, 0x00, 0xff, 0xff, 0x1c, 0x41, 0x3d, 0x06, 0x8c, 0x06, 0x00, 0x00, +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/security_group.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/security_group.pbext.go new file mode 100644 index 000000000..81addd815 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/security_group.pbext.go @@ -0,0 +1,115 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package vpc + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *SecurityGroup) SetId(v string) { + m.Id = v +} + +func (m *SecurityGroup) SetFolderId(v string) { + m.FolderId = v +} + +func (m *SecurityGroup) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *SecurityGroup) SetName(v string) { + m.Name = v +} + +func (m *SecurityGroup) SetDescription(v string) { + m.Description = v +} + +func (m *SecurityGroup) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *SecurityGroup) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *SecurityGroup) SetStatus(v SecurityGroup_Status) { + m.Status = v +} + +func (m *SecurityGroup) SetRules(v []*SecurityGroupRule) { + m.Rules = v +} + +func (m *SecurityGroup) SetDefaultForNetwork(v bool) { + m.DefaultForNetwork = v +} + +type SecurityGroupRule_Target = isSecurityGroupRule_Target + +func (m *SecurityGroupRule) SetTarget(v SecurityGroupRule_Target) { + m.Target = v +} + +func (m *SecurityGroupRule) SetId(v string) { + m.Id = v +} + +func (m *SecurityGroupRule) SetDescription(v string) { + m.Description = v +} + +func (m *SecurityGroupRule) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *SecurityGroupRule) SetDirection(v SecurityGroupRule_Direction) { + m.Direction = v +} + +func (m *SecurityGroupRule) SetPorts(v *PortRange) { + m.Ports = v +} + +func (m *SecurityGroupRule) SetProtocolName(v string) { + m.ProtocolName = v +} + +func (m *SecurityGroupRule) SetProtocolNumber(v int64) { + m.ProtocolNumber = v +} + +func (m *SecurityGroupRule) SetCidrBlocks(v *CidrBlocks) { + m.Target = &SecurityGroupRule_CidrBlocks{ + CidrBlocks: v, + } +} + +func (m *SecurityGroupRule) SetSecurityGroupId(v string) { + m.Target = &SecurityGroupRule_SecurityGroupId{ + SecurityGroupId: v, + } +} + +func (m *SecurityGroupRule) SetPredefinedTarget(v string) { + m.Target = &SecurityGroupRule_PredefinedTarget{ + PredefinedTarget: v, + } +} + +func (m *PortRange) SetFromPort(v int64) { + m.FromPort = v +} + +func (m *PortRange) SetToPort(v int64) { + m.ToPort = v +} + +func (m *CidrBlocks) SetV4CidrBlocks(v []string) { + m.V4CidrBlocks = v +} + +func (m *CidrBlocks) SetV6CidrBlocks(v []string) { + m.V6CidrBlocks = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/security_group_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/security_group_service.pb.go new file mode 100644 index 000000000..04389cdbd --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/security_group_service.pb.go @@ -0,0 +1,1510 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: yandex/cloud/vpc/v1/security_group_service.proto + +package vpc + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud" + _ "github.com/yandex-cloud/go-genproto/yandex/cloud/api" + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GetSecurityGroupRequest struct { + SecurityGroupId string `protobuf:"bytes,1,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetSecurityGroupRequest) Reset() { *m = GetSecurityGroupRequest{} } +func (m *GetSecurityGroupRequest) String() string { return proto.CompactTextString(m) } +func (*GetSecurityGroupRequest) ProtoMessage() {} +func (*GetSecurityGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{0} +} + +func (m *GetSecurityGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetSecurityGroupRequest.Unmarshal(m, b) +} +func (m *GetSecurityGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetSecurityGroupRequest.Marshal(b, m, deterministic) +} +func (m *GetSecurityGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetSecurityGroupRequest.Merge(m, src) +} +func (m *GetSecurityGroupRequest) XXX_Size() int { + return xxx_messageInfo_GetSecurityGroupRequest.Size(m) +} +func (m *GetSecurityGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetSecurityGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetSecurityGroupRequest proto.InternalMessageInfo + +func (m *GetSecurityGroupRequest) GetSecurityGroupId() string { + if m != nil { + return m.SecurityGroupId + } + return "" +} + +type ListSecurityGroupsRequest struct { + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListSecurityGroupsRequest) Reset() { *m = ListSecurityGroupsRequest{} } +func (m *ListSecurityGroupsRequest) String() string { return proto.CompactTextString(m) } +func (*ListSecurityGroupsRequest) ProtoMessage() {} +func (*ListSecurityGroupsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{1} +} + +func (m *ListSecurityGroupsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListSecurityGroupsRequest.Unmarshal(m, b) +} +func (m *ListSecurityGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListSecurityGroupsRequest.Marshal(b, m, deterministic) +} +func (m *ListSecurityGroupsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListSecurityGroupsRequest.Merge(m, src) +} +func (m *ListSecurityGroupsRequest) XXX_Size() int { + return xxx_messageInfo_ListSecurityGroupsRequest.Size(m) +} +func (m *ListSecurityGroupsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListSecurityGroupsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListSecurityGroupsRequest proto.InternalMessageInfo + +func (m *ListSecurityGroupsRequest) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *ListSecurityGroupsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListSecurityGroupsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +func (m *ListSecurityGroupsRequest) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +type ListSecurityGroupsResponse struct { + SecurityGroups []*SecurityGroup `protobuf:"bytes,1,rep,name=security_groups,json=securityGroups,proto3" json:"security_groups,omitempty"` + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListSecurityGroupsResponse) Reset() { *m = ListSecurityGroupsResponse{} } +func (m *ListSecurityGroupsResponse) String() string { return proto.CompactTextString(m) } +func (*ListSecurityGroupsResponse) ProtoMessage() {} +func (*ListSecurityGroupsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{2} +} + +func (m *ListSecurityGroupsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListSecurityGroupsResponse.Unmarshal(m, b) +} +func (m *ListSecurityGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListSecurityGroupsResponse.Marshal(b, m, deterministic) +} +func (m *ListSecurityGroupsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListSecurityGroupsResponse.Merge(m, src) +} +func (m *ListSecurityGroupsResponse) XXX_Size() int { + return xxx_messageInfo_ListSecurityGroupsResponse.Size(m) +} +func (m *ListSecurityGroupsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListSecurityGroupsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListSecurityGroupsResponse proto.InternalMessageInfo + +func (m *ListSecurityGroupsResponse) GetSecurityGroups() []*SecurityGroup { + if m != nil { + return m.SecurityGroups + } + return nil +} + +func (m *ListSecurityGroupsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type CreateSecurityGroupRequest struct { + FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + NetworkId string `protobuf:"bytes,5,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` + RuleSpecs []*SecurityGroupRuleSpec `protobuf:"bytes,6,rep,name=rule_specs,json=ruleSpecs,proto3" json:"rule_specs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateSecurityGroupRequest) Reset() { *m = CreateSecurityGroupRequest{} } +func (m *CreateSecurityGroupRequest) String() string { return proto.CompactTextString(m) } +func (*CreateSecurityGroupRequest) ProtoMessage() {} +func (*CreateSecurityGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{3} +} + +func (m *CreateSecurityGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateSecurityGroupRequest.Unmarshal(m, b) +} +func (m *CreateSecurityGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateSecurityGroupRequest.Marshal(b, m, deterministic) +} +func (m *CreateSecurityGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateSecurityGroupRequest.Merge(m, src) +} +func (m *CreateSecurityGroupRequest) XXX_Size() int { + return xxx_messageInfo_CreateSecurityGroupRequest.Size(m) +} +func (m *CreateSecurityGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateSecurityGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateSecurityGroupRequest proto.InternalMessageInfo + +func (m *CreateSecurityGroupRequest) GetFolderId() string { + if m != nil { + return m.FolderId + } + return "" +} + +func (m *CreateSecurityGroupRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *CreateSecurityGroupRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *CreateSecurityGroupRequest) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *CreateSecurityGroupRequest) GetNetworkId() string { + if m != nil { + return m.NetworkId + } + return "" +} + +func (m *CreateSecurityGroupRequest) GetRuleSpecs() []*SecurityGroupRuleSpec { + if m != nil { + return m.RuleSpecs + } + return nil +} + +type SecurityGroupRuleSpec struct { + Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` + Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Direction SecurityGroupRule_Direction `protobuf:"varint,3,opt,name=direction,proto3,enum=yandex.cloud.vpc.v1.SecurityGroupRule_Direction" json:"direction,omitempty"` + Ports *PortRange `protobuf:"bytes,4,opt,name=ports,proto3" json:"ports,omitempty"` + // values from https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml + // null value means any protocol + // + // Types that are valid to be assigned to Protocol: + // *SecurityGroupRuleSpec_ProtocolName + // *SecurityGroupRuleSpec_ProtocolNumber + Protocol isSecurityGroupRuleSpec_Protocol `protobuf_oneof:"protocol"` + // Types that are valid to be assigned to Target: + // *SecurityGroupRuleSpec_CidrBlocks + // *SecurityGroupRuleSpec_SecurityGroupId + // *SecurityGroupRuleSpec_PredefinedTarget + Target isSecurityGroupRuleSpec_Target `protobuf_oneof:"target"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SecurityGroupRuleSpec) Reset() { *m = SecurityGroupRuleSpec{} } +func (m *SecurityGroupRuleSpec) String() string { return proto.CompactTextString(m) } +func (*SecurityGroupRuleSpec) ProtoMessage() {} +func (*SecurityGroupRuleSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{4} +} + +func (m *SecurityGroupRuleSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecurityGroupRuleSpec.Unmarshal(m, b) +} +func (m *SecurityGroupRuleSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecurityGroupRuleSpec.Marshal(b, m, deterministic) +} +func (m *SecurityGroupRuleSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecurityGroupRuleSpec.Merge(m, src) +} +func (m *SecurityGroupRuleSpec) XXX_Size() int { + return xxx_messageInfo_SecurityGroupRuleSpec.Size(m) +} +func (m *SecurityGroupRuleSpec) XXX_DiscardUnknown() { + xxx_messageInfo_SecurityGroupRuleSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_SecurityGroupRuleSpec proto.InternalMessageInfo + +func (m *SecurityGroupRuleSpec) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *SecurityGroupRuleSpec) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *SecurityGroupRuleSpec) GetDirection() SecurityGroupRule_Direction { + if m != nil { + return m.Direction + } + return SecurityGroupRule_DIRECTION_UNSPECIFIED +} + +func (m *SecurityGroupRuleSpec) GetPorts() *PortRange { + if m != nil { + return m.Ports + } + return nil +} + +type isSecurityGroupRuleSpec_Protocol interface { + isSecurityGroupRuleSpec_Protocol() +} + +type SecurityGroupRuleSpec_ProtocolName struct { + ProtocolName string `protobuf:"bytes,5,opt,name=protocol_name,json=protocolName,proto3,oneof"` +} + +type SecurityGroupRuleSpec_ProtocolNumber struct { + ProtocolNumber int64 `protobuf:"varint,6,opt,name=protocol_number,json=protocolNumber,proto3,oneof"` +} + +func (*SecurityGroupRuleSpec_ProtocolName) isSecurityGroupRuleSpec_Protocol() {} + +func (*SecurityGroupRuleSpec_ProtocolNumber) isSecurityGroupRuleSpec_Protocol() {} + +func (m *SecurityGroupRuleSpec) GetProtocol() isSecurityGroupRuleSpec_Protocol { + if m != nil { + return m.Protocol + } + return nil +} + +func (m *SecurityGroupRuleSpec) GetProtocolName() string { + if x, ok := m.GetProtocol().(*SecurityGroupRuleSpec_ProtocolName); ok { + return x.ProtocolName + } + return "" +} + +func (m *SecurityGroupRuleSpec) GetProtocolNumber() int64 { + if x, ok := m.GetProtocol().(*SecurityGroupRuleSpec_ProtocolNumber); ok { + return x.ProtocolNumber + } + return 0 +} + +type isSecurityGroupRuleSpec_Target interface { + isSecurityGroupRuleSpec_Target() +} + +type SecurityGroupRuleSpec_CidrBlocks struct { + CidrBlocks *CidrBlocks `protobuf:"bytes,7,opt,name=cidr_blocks,json=cidrBlocks,proto3,oneof"` +} + +type SecurityGroupRuleSpec_SecurityGroupId struct { + SecurityGroupId string `protobuf:"bytes,8,opt,name=security_group_id,json=securityGroupId,proto3,oneof"` +} + +type SecurityGroupRuleSpec_PredefinedTarget struct { + PredefinedTarget string `protobuf:"bytes,9,opt,name=predefined_target,json=predefinedTarget,proto3,oneof"` +} + +func (*SecurityGroupRuleSpec_CidrBlocks) isSecurityGroupRuleSpec_Target() {} + +func (*SecurityGroupRuleSpec_SecurityGroupId) isSecurityGroupRuleSpec_Target() {} + +func (*SecurityGroupRuleSpec_PredefinedTarget) isSecurityGroupRuleSpec_Target() {} + +func (m *SecurityGroupRuleSpec) GetTarget() isSecurityGroupRuleSpec_Target { + if m != nil { + return m.Target + } + return nil +} + +func (m *SecurityGroupRuleSpec) GetCidrBlocks() *CidrBlocks { + if x, ok := m.GetTarget().(*SecurityGroupRuleSpec_CidrBlocks); ok { + return x.CidrBlocks + } + return nil +} + +func (m *SecurityGroupRuleSpec) GetSecurityGroupId() string { + if x, ok := m.GetTarget().(*SecurityGroupRuleSpec_SecurityGroupId); ok { + return x.SecurityGroupId + } + return "" +} + +func (m *SecurityGroupRuleSpec) GetPredefinedTarget() string { + if x, ok := m.GetTarget().(*SecurityGroupRuleSpec_PredefinedTarget); ok { + return x.PredefinedTarget + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SecurityGroupRuleSpec) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SecurityGroupRuleSpec_ProtocolName)(nil), + (*SecurityGroupRuleSpec_ProtocolNumber)(nil), + (*SecurityGroupRuleSpec_CidrBlocks)(nil), + (*SecurityGroupRuleSpec_SecurityGroupId)(nil), + (*SecurityGroupRuleSpec_PredefinedTarget)(nil), + } +} + +type CreateSecurityGroupMetadata struct { + SecurityGroupId string `protobuf:"bytes,1,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateSecurityGroupMetadata) Reset() { *m = CreateSecurityGroupMetadata{} } +func (m *CreateSecurityGroupMetadata) String() string { return proto.CompactTextString(m) } +func (*CreateSecurityGroupMetadata) ProtoMessage() {} +func (*CreateSecurityGroupMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{5} +} + +func (m *CreateSecurityGroupMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateSecurityGroupMetadata.Unmarshal(m, b) +} +func (m *CreateSecurityGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateSecurityGroupMetadata.Marshal(b, m, deterministic) +} +func (m *CreateSecurityGroupMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateSecurityGroupMetadata.Merge(m, src) +} +func (m *CreateSecurityGroupMetadata) XXX_Size() int { + return xxx_messageInfo_CreateSecurityGroupMetadata.Size(m) +} +func (m *CreateSecurityGroupMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CreateSecurityGroupMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateSecurityGroupMetadata proto.InternalMessageInfo + +func (m *CreateSecurityGroupMetadata) GetSecurityGroupId() string { + if m != nil { + return m.SecurityGroupId + } + return "" +} + +type UpdateSecurityGroupRequest struct { + SecurityGroupId string `protobuf:"bytes,1,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // all existing rules will be replaced with given list + RuleSpecs []*SecurityGroupRuleSpec `protobuf:"bytes,6,rep,name=rule_specs,json=ruleSpecs,proto3" json:"rule_specs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateSecurityGroupRequest) Reset() { *m = UpdateSecurityGroupRequest{} } +func (m *UpdateSecurityGroupRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateSecurityGroupRequest) ProtoMessage() {} +func (*UpdateSecurityGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{6} +} + +func (m *UpdateSecurityGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateSecurityGroupRequest.Unmarshal(m, b) +} +func (m *UpdateSecurityGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateSecurityGroupRequest.Marshal(b, m, deterministic) +} +func (m *UpdateSecurityGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateSecurityGroupRequest.Merge(m, src) +} +func (m *UpdateSecurityGroupRequest) XXX_Size() int { + return xxx_messageInfo_UpdateSecurityGroupRequest.Size(m) +} +func (m *UpdateSecurityGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateSecurityGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateSecurityGroupRequest proto.InternalMessageInfo + +func (m *UpdateSecurityGroupRequest) GetSecurityGroupId() string { + if m != nil { + return m.SecurityGroupId + } + return "" +} + +func (m *UpdateSecurityGroupRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdateSecurityGroupRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *UpdateSecurityGroupRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *UpdateSecurityGroupRequest) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *UpdateSecurityGroupRequest) GetRuleSpecs() []*SecurityGroupRuleSpec { + if m != nil { + return m.RuleSpecs + } + return nil +} + +type UpdateSecurityGroupMetadata struct { + SecurityGroupId string `protobuf:"bytes,1,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateSecurityGroupMetadata) Reset() { *m = UpdateSecurityGroupMetadata{} } +func (m *UpdateSecurityGroupMetadata) String() string { return proto.CompactTextString(m) } +func (*UpdateSecurityGroupMetadata) ProtoMessage() {} +func (*UpdateSecurityGroupMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{7} +} + +func (m *UpdateSecurityGroupMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateSecurityGroupMetadata.Unmarshal(m, b) +} +func (m *UpdateSecurityGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateSecurityGroupMetadata.Marshal(b, m, deterministic) +} +func (m *UpdateSecurityGroupMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateSecurityGroupMetadata.Merge(m, src) +} +func (m *UpdateSecurityGroupMetadata) XXX_Size() int { + return xxx_messageInfo_UpdateSecurityGroupMetadata.Size(m) +} +func (m *UpdateSecurityGroupMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateSecurityGroupMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateSecurityGroupMetadata proto.InternalMessageInfo + +func (m *UpdateSecurityGroupMetadata) GetSecurityGroupId() string { + if m != nil { + return m.SecurityGroupId + } + return "" +} + +type UpdateSecurityGroupRulesRequest struct { + SecurityGroupId string `protobuf:"bytes,1,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"` + DeletionRuleIds []string `protobuf:"bytes,2,rep,name=deletion_rule_ids,json=deletionRuleIds,proto3" json:"deletion_rule_ids,omitempty"` + AdditionRuleSpecs []*SecurityGroupRuleSpec `protobuf:"bytes,3,rep,name=addition_rule_specs,json=additionRuleSpecs,proto3" json:"addition_rule_specs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateSecurityGroupRulesRequest) Reset() { *m = UpdateSecurityGroupRulesRequest{} } +func (m *UpdateSecurityGroupRulesRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateSecurityGroupRulesRequest) ProtoMessage() {} +func (*UpdateSecurityGroupRulesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{8} +} + +func (m *UpdateSecurityGroupRulesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateSecurityGroupRulesRequest.Unmarshal(m, b) +} +func (m *UpdateSecurityGroupRulesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateSecurityGroupRulesRequest.Marshal(b, m, deterministic) +} +func (m *UpdateSecurityGroupRulesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateSecurityGroupRulesRequest.Merge(m, src) +} +func (m *UpdateSecurityGroupRulesRequest) XXX_Size() int { + return xxx_messageInfo_UpdateSecurityGroupRulesRequest.Size(m) +} +func (m *UpdateSecurityGroupRulesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateSecurityGroupRulesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateSecurityGroupRulesRequest proto.InternalMessageInfo + +func (m *UpdateSecurityGroupRulesRequest) GetSecurityGroupId() string { + if m != nil { + return m.SecurityGroupId + } + return "" +} + +func (m *UpdateSecurityGroupRulesRequest) GetDeletionRuleIds() []string { + if m != nil { + return m.DeletionRuleIds + } + return nil +} + +func (m *UpdateSecurityGroupRulesRequest) GetAdditionRuleSpecs() []*SecurityGroupRuleSpec { + if m != nil { + return m.AdditionRuleSpecs + } + return nil +} + +type UpdateSecurityGroupRuleRequest struct { + SecurityGroupId string `protobuf:"bytes,1,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"` + RuleId string `protobuf:"bytes,2,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,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 *UpdateSecurityGroupRuleRequest) Reset() { *m = UpdateSecurityGroupRuleRequest{} } +func (m *UpdateSecurityGroupRuleRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateSecurityGroupRuleRequest) ProtoMessage() {} +func (*UpdateSecurityGroupRuleRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{9} +} + +func (m *UpdateSecurityGroupRuleRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateSecurityGroupRuleRequest.Unmarshal(m, b) +} +func (m *UpdateSecurityGroupRuleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateSecurityGroupRuleRequest.Marshal(b, m, deterministic) +} +func (m *UpdateSecurityGroupRuleRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateSecurityGroupRuleRequest.Merge(m, src) +} +func (m *UpdateSecurityGroupRuleRequest) XXX_Size() int { + return xxx_messageInfo_UpdateSecurityGroupRuleRequest.Size(m) +} +func (m *UpdateSecurityGroupRuleRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateSecurityGroupRuleRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateSecurityGroupRuleRequest proto.InternalMessageInfo + +func (m *UpdateSecurityGroupRuleRequest) GetSecurityGroupId() string { + if m != nil { + return m.SecurityGroupId + } + return "" +} + +func (m *UpdateSecurityGroupRuleRequest) GetRuleId() string { + if m != nil { + return m.RuleId + } + return "" +} + +func (m *UpdateSecurityGroupRuleRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdateSecurityGroupRuleRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *UpdateSecurityGroupRuleRequest) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +type UpdateSecurityGroupRuleMetadata struct { + SecurityGroupId string `protobuf:"bytes,1,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"` + RuleId string `protobuf:"bytes,2,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateSecurityGroupRuleMetadata) Reset() { *m = UpdateSecurityGroupRuleMetadata{} } +func (m *UpdateSecurityGroupRuleMetadata) String() string { return proto.CompactTextString(m) } +func (*UpdateSecurityGroupRuleMetadata) ProtoMessage() {} +func (*UpdateSecurityGroupRuleMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{10} +} + +func (m *UpdateSecurityGroupRuleMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateSecurityGroupRuleMetadata.Unmarshal(m, b) +} +func (m *UpdateSecurityGroupRuleMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateSecurityGroupRuleMetadata.Marshal(b, m, deterministic) +} +func (m *UpdateSecurityGroupRuleMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateSecurityGroupRuleMetadata.Merge(m, src) +} +func (m *UpdateSecurityGroupRuleMetadata) XXX_Size() int { + return xxx_messageInfo_UpdateSecurityGroupRuleMetadata.Size(m) +} +func (m *UpdateSecurityGroupRuleMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateSecurityGroupRuleMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateSecurityGroupRuleMetadata proto.InternalMessageInfo + +func (m *UpdateSecurityGroupRuleMetadata) GetSecurityGroupId() string { + if m != nil { + return m.SecurityGroupId + } + return "" +} + +func (m *UpdateSecurityGroupRuleMetadata) GetRuleId() string { + if m != nil { + return m.RuleId + } + return "" +} + +type DeleteSecurityGroupRequest struct { + SecurityGroupId string `protobuf:"bytes,1,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteSecurityGroupRequest) Reset() { *m = DeleteSecurityGroupRequest{} } +func (m *DeleteSecurityGroupRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteSecurityGroupRequest) ProtoMessage() {} +func (*DeleteSecurityGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{11} +} + +func (m *DeleteSecurityGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteSecurityGroupRequest.Unmarshal(m, b) +} +func (m *DeleteSecurityGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteSecurityGroupRequest.Marshal(b, m, deterministic) +} +func (m *DeleteSecurityGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteSecurityGroupRequest.Merge(m, src) +} +func (m *DeleteSecurityGroupRequest) XXX_Size() int { + return xxx_messageInfo_DeleteSecurityGroupRequest.Size(m) +} +func (m *DeleteSecurityGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteSecurityGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteSecurityGroupRequest proto.InternalMessageInfo + +func (m *DeleteSecurityGroupRequest) GetSecurityGroupId() string { + if m != nil { + return m.SecurityGroupId + } + return "" +} + +type DeleteSecurityGroupMetadata struct { + SecurityGroupId string `protobuf:"bytes,1,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteSecurityGroupMetadata) Reset() { *m = DeleteSecurityGroupMetadata{} } +func (m *DeleteSecurityGroupMetadata) String() string { return proto.CompactTextString(m) } +func (*DeleteSecurityGroupMetadata) ProtoMessage() {} +func (*DeleteSecurityGroupMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{12} +} + +func (m *DeleteSecurityGroupMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteSecurityGroupMetadata.Unmarshal(m, b) +} +func (m *DeleteSecurityGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteSecurityGroupMetadata.Marshal(b, m, deterministic) +} +func (m *DeleteSecurityGroupMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteSecurityGroupMetadata.Merge(m, src) +} +func (m *DeleteSecurityGroupMetadata) XXX_Size() int { + return xxx_messageInfo_DeleteSecurityGroupMetadata.Size(m) +} +func (m *DeleteSecurityGroupMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteSecurityGroupMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteSecurityGroupMetadata proto.InternalMessageInfo + +func (m *DeleteSecurityGroupMetadata) GetSecurityGroupId() string { + if m != nil { + return m.SecurityGroupId + } + return "" +} + +type ListSecurityGroupOperationsRequest struct { + SecurityGroupId string `protobuf:"bytes,1,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"` + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListSecurityGroupOperationsRequest) Reset() { *m = ListSecurityGroupOperationsRequest{} } +func (m *ListSecurityGroupOperationsRequest) String() string { return proto.CompactTextString(m) } +func (*ListSecurityGroupOperationsRequest) ProtoMessage() {} +func (*ListSecurityGroupOperationsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{13} +} + +func (m *ListSecurityGroupOperationsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListSecurityGroupOperationsRequest.Unmarshal(m, b) +} +func (m *ListSecurityGroupOperationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListSecurityGroupOperationsRequest.Marshal(b, m, deterministic) +} +func (m *ListSecurityGroupOperationsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListSecurityGroupOperationsRequest.Merge(m, src) +} +func (m *ListSecurityGroupOperationsRequest) XXX_Size() int { + return xxx_messageInfo_ListSecurityGroupOperationsRequest.Size(m) +} +func (m *ListSecurityGroupOperationsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListSecurityGroupOperationsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListSecurityGroupOperationsRequest proto.InternalMessageInfo + +func (m *ListSecurityGroupOperationsRequest) GetSecurityGroupId() string { + if m != nil { + return m.SecurityGroupId + } + return "" +} + +func (m *ListSecurityGroupOperationsRequest) GetPageSize() int64 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListSecurityGroupOperationsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +type ListSecurityGroupOperationsResponse struct { + Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListSecurityGroupOperationsResponse) Reset() { *m = ListSecurityGroupOperationsResponse{} } +func (m *ListSecurityGroupOperationsResponse) String() string { return proto.CompactTextString(m) } +func (*ListSecurityGroupOperationsResponse) ProtoMessage() {} +func (*ListSecurityGroupOperationsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{14} +} + +func (m *ListSecurityGroupOperationsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListSecurityGroupOperationsResponse.Unmarshal(m, b) +} +func (m *ListSecurityGroupOperationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListSecurityGroupOperationsResponse.Marshal(b, m, deterministic) +} +func (m *ListSecurityGroupOperationsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListSecurityGroupOperationsResponse.Merge(m, src) +} +func (m *ListSecurityGroupOperationsResponse) XXX_Size() int { + return xxx_messageInfo_ListSecurityGroupOperationsResponse.Size(m) +} +func (m *ListSecurityGroupOperationsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListSecurityGroupOperationsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListSecurityGroupOperationsResponse proto.InternalMessageInfo + +func (m *ListSecurityGroupOperationsResponse) GetOperations() []*operation.Operation { + if m != nil { + return m.Operations + } + return nil +} + +func (m *ListSecurityGroupOperationsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +type MoveSecurityGroupRequest struct { + SecurityGroupId string `protobuf:"bytes,1,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"` + DestinationFolderId string `protobuf:"bytes,2,opt,name=destination_folder_id,json=destinationFolderId,proto3" json:"destination_folder_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MoveSecurityGroupRequest) Reset() { *m = MoveSecurityGroupRequest{} } +func (m *MoveSecurityGroupRequest) String() string { return proto.CompactTextString(m) } +func (*MoveSecurityGroupRequest) ProtoMessage() {} +func (*MoveSecurityGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{15} +} + +func (m *MoveSecurityGroupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MoveSecurityGroupRequest.Unmarshal(m, b) +} +func (m *MoveSecurityGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MoveSecurityGroupRequest.Marshal(b, m, deterministic) +} +func (m *MoveSecurityGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_MoveSecurityGroupRequest.Merge(m, src) +} +func (m *MoveSecurityGroupRequest) XXX_Size() int { + return xxx_messageInfo_MoveSecurityGroupRequest.Size(m) +} +func (m *MoveSecurityGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_MoveSecurityGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_MoveSecurityGroupRequest proto.InternalMessageInfo + +func (m *MoveSecurityGroupRequest) GetSecurityGroupId() string { + if m != nil { + return m.SecurityGroupId + } + return "" +} + +func (m *MoveSecurityGroupRequest) GetDestinationFolderId() string { + if m != nil { + return m.DestinationFolderId + } + return "" +} + +type MoveSecurityGroupMetadata struct { + SecurityGroupId string `protobuf:"bytes,1,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MoveSecurityGroupMetadata) Reset() { *m = MoveSecurityGroupMetadata{} } +func (m *MoveSecurityGroupMetadata) String() string { return proto.CompactTextString(m) } +func (*MoveSecurityGroupMetadata) ProtoMessage() {} +func (*MoveSecurityGroupMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_99dd27616c2536a3, []int{16} +} + +func (m *MoveSecurityGroupMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MoveSecurityGroupMetadata.Unmarshal(m, b) +} +func (m *MoveSecurityGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MoveSecurityGroupMetadata.Marshal(b, m, deterministic) +} +func (m *MoveSecurityGroupMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_MoveSecurityGroupMetadata.Merge(m, src) +} +func (m *MoveSecurityGroupMetadata) XXX_Size() int { + return xxx_messageInfo_MoveSecurityGroupMetadata.Size(m) +} +func (m *MoveSecurityGroupMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_MoveSecurityGroupMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_MoveSecurityGroupMetadata proto.InternalMessageInfo + +func (m *MoveSecurityGroupMetadata) GetSecurityGroupId() string { + if m != nil { + return m.SecurityGroupId + } + return "" +} + +func init() { + proto.RegisterType((*GetSecurityGroupRequest)(nil), "yandex.cloud.vpc.v1.GetSecurityGroupRequest") + proto.RegisterType((*ListSecurityGroupsRequest)(nil), "yandex.cloud.vpc.v1.ListSecurityGroupsRequest") + proto.RegisterType((*ListSecurityGroupsResponse)(nil), "yandex.cloud.vpc.v1.ListSecurityGroupsResponse") + proto.RegisterType((*CreateSecurityGroupRequest)(nil), "yandex.cloud.vpc.v1.CreateSecurityGroupRequest") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.vpc.v1.CreateSecurityGroupRequest.LabelsEntry") + proto.RegisterType((*SecurityGroupRuleSpec)(nil), "yandex.cloud.vpc.v1.SecurityGroupRuleSpec") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.vpc.v1.SecurityGroupRuleSpec.LabelsEntry") + proto.RegisterType((*CreateSecurityGroupMetadata)(nil), "yandex.cloud.vpc.v1.CreateSecurityGroupMetadata") + proto.RegisterType((*UpdateSecurityGroupRequest)(nil), "yandex.cloud.vpc.v1.UpdateSecurityGroupRequest") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.vpc.v1.UpdateSecurityGroupRequest.LabelsEntry") + proto.RegisterType((*UpdateSecurityGroupMetadata)(nil), "yandex.cloud.vpc.v1.UpdateSecurityGroupMetadata") + proto.RegisterType((*UpdateSecurityGroupRulesRequest)(nil), "yandex.cloud.vpc.v1.UpdateSecurityGroupRulesRequest") + proto.RegisterType((*UpdateSecurityGroupRuleRequest)(nil), "yandex.cloud.vpc.v1.UpdateSecurityGroupRuleRequest") + proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.vpc.v1.UpdateSecurityGroupRuleRequest.LabelsEntry") + proto.RegisterType((*UpdateSecurityGroupRuleMetadata)(nil), "yandex.cloud.vpc.v1.UpdateSecurityGroupRuleMetadata") + proto.RegisterType((*DeleteSecurityGroupRequest)(nil), "yandex.cloud.vpc.v1.DeleteSecurityGroupRequest") + proto.RegisterType((*DeleteSecurityGroupMetadata)(nil), "yandex.cloud.vpc.v1.DeleteSecurityGroupMetadata") + proto.RegisterType((*ListSecurityGroupOperationsRequest)(nil), "yandex.cloud.vpc.v1.ListSecurityGroupOperationsRequest") + proto.RegisterType((*ListSecurityGroupOperationsResponse)(nil), "yandex.cloud.vpc.v1.ListSecurityGroupOperationsResponse") + proto.RegisterType((*MoveSecurityGroupRequest)(nil), "yandex.cloud.vpc.v1.MoveSecurityGroupRequest") + proto.RegisterType((*MoveSecurityGroupMetadata)(nil), "yandex.cloud.vpc.v1.MoveSecurityGroupMetadata") +} + +func init() { + proto.RegisterFile("yandex/cloud/vpc/v1/security_group_service.proto", fileDescriptor_99dd27616c2536a3) +} + +var fileDescriptor_99dd27616c2536a3 = []byte{ + // 1274 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x4f, 0x73, 0xdb, 0x44, + 0x14, 0xaf, 0x6c, 0xc7, 0x8d, 0x9f, 0x69, 0xd2, 0x6c, 0x1a, 0xe2, 0x2a, 0xa4, 0x4d, 0xd5, 0xa1, + 0x13, 0x3c, 0x89, 0x9c, 0xa4, 0x19, 0x08, 0xe4, 0xc0, 0x60, 0xda, 0x26, 0x9e, 0x36, 0xa1, 0xa3, + 0x04, 0x3a, 0xd3, 0x8b, 0x47, 0xd6, 0xae, 0x8d, 0xc6, 0x8a, 0x24, 0xb4, 0x2b, 0xd3, 0xf4, 0xca, + 0x0c, 0xc3, 0x89, 0x81, 0x1e, 0x18, 0x0e, 0x0c, 0x1f, 0x22, 0x9f, 0x00, 0x4e, 0xdc, 0x73, 0xe5, + 0x00, 0x07, 0x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x86, 0xa5, 0x57, 0x02, 0xdc, 0x7c, 0xa2, + 0xd3, 0xa8, 0x39, 0x1a, 0xda, 0xbb, 0x03, 0x85, 0xa6, 0x65, 0x60, 0xe2, 0x0c, 0xda, 0x99, 0xf6, + 0x8f, 0x6b, 0x18, 0x2d, 0x41, 0xc1, 0x56, 0x5b, 0xa4, 0x4e, 0xf5, 0x97, 0xa4, 0x94, 0x59, 0x11, + 0x56, 0xb3, 0xca, 0xb4, 0x77, 0x70, 0xa4, 0xbf, 0x24, 0x68, 0x19, 0x80, 0x5f, 0x32, 0xab, 0x4d, + 0xcc, 0x52, 0xd6, 0x33, 0xa0, 0x70, 0xf1, 0x63, 0xef, 0x00, 0xbd, 0x09, 0xf9, 0xa6, 0x6e, 0x30, + 0xe2, 0x94, 0x72, 0xfc, 0x2a, 0x78, 0x93, 0xbe, 0x17, 0x40, 0x8c, 0x03, 0x45, 0x6d, 0xcb, 0xa4, + 0x04, 0x3d, 0x86, 0xd9, 0xa8, 0x97, 0xb4, 0x24, 0xac, 0x64, 0x57, 0x8b, 0x5b, 0x92, 0x1c, 0x53, + 0x02, 0x72, 0x34, 0x52, 0x33, 0x91, 0x08, 0x50, 0x74, 0x0f, 0x66, 0x4d, 0xf2, 0x82, 0xd5, 0xfb, + 0x70, 0x66, 0x38, 0x98, 0x6b, 0xde, 0xf1, 0xd3, 0x10, 0xab, 0xf4, 0x4f, 0x06, 0xc4, 0x8f, 0x1d, + 0xa2, 0x32, 0x12, 0x1b, 0xf9, 0x14, 0x91, 0x42, 0x90, 0x33, 0xd5, 0x13, 0x12, 0x98, 0xe7, 0xcf, + 0x68, 0x05, 0x8a, 0x98, 0x50, 0xcd, 0xd1, 0x6d, 0x2f, 0xc1, 0x41, 0x84, 0xfa, 0x8f, 0xd0, 0x11, + 0xe4, 0x0d, 0xb5, 0x41, 0x0c, 0x5a, 0xca, 0x71, 0x1f, 0x77, 0x63, 0x7d, 0x4c, 0x46, 0x26, 0x3f, + 0xe1, 0xda, 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e8, 0x2b, 0x0d, 0x28, + 0xf9, 0xec, 0xbc, 0x5c, 0x1e, 0xc5, 0x3c, 0x03, 0x49, 0xfc, 0x4a, 0x80, 0x19, 0xaf, 0x41, 0x7b, + 0xa4, 0x8d, 0xde, 0x4b, 0xd7, 0xc5, 0x43, 0xb3, 0x47, 0xdc, 0x19, 0x5f, 0xd1, 0xe7, 0x81, 0xea, + 0x67, 0xb0, 0x18, 0x51, 0x55, 0x6d, 0x3d, 0x50, 0x7f, 0xbe, 0xdb, 0xd2, 0xd9, 0xe7, 0x6e, 0x43, + 0xd6, 0xac, 0x93, 0x8a, 0x2f, 0xb3, 0xee, 0xff, 0xdd, 0xd3, 0xb2, 0xd6, 0x5b, 0xc4, 0xe4, 0x91, + 0xad, 0xc4, 0xfc, 0xb3, 0xb4, 0xdb, 0xb1, 0xb5, 0x46, 0x9e, 0x5f, 0xdf, 0xff, 0x37, 0x00, 0x00, + 0xff, 0xff, 0x62, 0xde, 0x12, 0x0b, 0x24, 0x13, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// SecurityGroupServiceClient is the client API for SecurityGroupService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type SecurityGroupServiceClient interface { + Get(ctx context.Context, in *GetSecurityGroupRequest, opts ...grpc.CallOption) (*SecurityGroup, error) + List(ctx context.Context, in *ListSecurityGroupsRequest, opts ...grpc.CallOption) (*ListSecurityGroupsResponse, error) + Create(ctx context.Context, in *CreateSecurityGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) + Update(ctx context.Context, in *UpdateSecurityGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) + UpdateRules(ctx context.Context, in *UpdateSecurityGroupRulesRequest, opts ...grpc.CallOption) (*operation.Operation, error) + // update rule description or labels + UpdateRule(ctx context.Context, in *UpdateSecurityGroupRuleRequest, opts ...grpc.CallOption) (*operation.Operation, error) + Delete(ctx context.Context, in *DeleteSecurityGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) + Move(ctx context.Context, in *MoveSecurityGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) + ListOperations(ctx context.Context, in *ListSecurityGroupOperationsRequest, opts ...grpc.CallOption) (*ListSecurityGroupOperationsResponse, error) +} + +type securityGroupServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSecurityGroupServiceClient(cc grpc.ClientConnInterface) SecurityGroupServiceClient { + return &securityGroupServiceClient{cc} +} + +func (c *securityGroupServiceClient) Get(ctx context.Context, in *GetSecurityGroupRequest, opts ...grpc.CallOption) (*SecurityGroup, error) { + out := new(SecurityGroup) + err := c.cc.Invoke(ctx, "/yandex.cloud.vpc.v1.SecurityGroupService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *securityGroupServiceClient) List(ctx context.Context, in *ListSecurityGroupsRequest, opts ...grpc.CallOption) (*ListSecurityGroupsResponse, error) { + out := new(ListSecurityGroupsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.vpc.v1.SecurityGroupService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *securityGroupServiceClient) Create(ctx context.Context, in *CreateSecurityGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.vpc.v1.SecurityGroupService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *securityGroupServiceClient) Update(ctx context.Context, in *UpdateSecurityGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.vpc.v1.SecurityGroupService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *securityGroupServiceClient) UpdateRules(ctx context.Context, in *UpdateSecurityGroupRulesRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.vpc.v1.SecurityGroupService/UpdateRules", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *securityGroupServiceClient) UpdateRule(ctx context.Context, in *UpdateSecurityGroupRuleRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.vpc.v1.SecurityGroupService/UpdateRule", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *securityGroupServiceClient) Delete(ctx context.Context, in *DeleteSecurityGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.vpc.v1.SecurityGroupService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *securityGroupServiceClient) Move(ctx context.Context, in *MoveSecurityGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.vpc.v1.SecurityGroupService/Move", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *securityGroupServiceClient) ListOperations(ctx context.Context, in *ListSecurityGroupOperationsRequest, opts ...grpc.CallOption) (*ListSecurityGroupOperationsResponse, error) { + out := new(ListSecurityGroupOperationsResponse) + err := c.cc.Invoke(ctx, "/yandex.cloud.vpc.v1.SecurityGroupService/ListOperations", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SecurityGroupServiceServer is the server API for SecurityGroupService service. +type SecurityGroupServiceServer interface { + Get(context.Context, *GetSecurityGroupRequest) (*SecurityGroup, error) + List(context.Context, *ListSecurityGroupsRequest) (*ListSecurityGroupsResponse, error) + Create(context.Context, *CreateSecurityGroupRequest) (*operation.Operation, error) + Update(context.Context, *UpdateSecurityGroupRequest) (*operation.Operation, error) + UpdateRules(context.Context, *UpdateSecurityGroupRulesRequest) (*operation.Operation, error) + // update rule description or labels + UpdateRule(context.Context, *UpdateSecurityGroupRuleRequest) (*operation.Operation, error) + Delete(context.Context, *DeleteSecurityGroupRequest) (*operation.Operation, error) + Move(context.Context, *MoveSecurityGroupRequest) (*operation.Operation, error) + ListOperations(context.Context, *ListSecurityGroupOperationsRequest) (*ListSecurityGroupOperationsResponse, error) +} + +// UnimplementedSecurityGroupServiceServer can be embedded to have forward compatible implementations. +type UnimplementedSecurityGroupServiceServer struct { +} + +func (*UnimplementedSecurityGroupServiceServer) Get(ctx context.Context, req *GetSecurityGroupRequest) (*SecurityGroup, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedSecurityGroupServiceServer) List(ctx context.Context, req *ListSecurityGroupsRequest) (*ListSecurityGroupsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (*UnimplementedSecurityGroupServiceServer) Create(ctx context.Context, req *CreateSecurityGroupRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (*UnimplementedSecurityGroupServiceServer) Update(ctx context.Context, req *UpdateSecurityGroupRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedSecurityGroupServiceServer) UpdateRules(ctx context.Context, req *UpdateSecurityGroupRulesRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateRules not implemented") +} +func (*UnimplementedSecurityGroupServiceServer) UpdateRule(ctx context.Context, req *UpdateSecurityGroupRuleRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateRule not implemented") +} +func (*UnimplementedSecurityGroupServiceServer) Delete(ctx context.Context, req *DeleteSecurityGroupRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (*UnimplementedSecurityGroupServiceServer) Move(ctx context.Context, req *MoveSecurityGroupRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Move not implemented") +} +func (*UnimplementedSecurityGroupServiceServer) ListOperations(ctx context.Context, req *ListSecurityGroupOperationsRequest) (*ListSecurityGroupOperationsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") +} + +func RegisterSecurityGroupServiceServer(s *grpc.Server, srv SecurityGroupServiceServer) { + s.RegisterService(&_SecurityGroupService_serviceDesc, srv) +} + +func _SecurityGroupService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSecurityGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SecurityGroupServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.vpc.v1.SecurityGroupService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SecurityGroupServiceServer).Get(ctx, req.(*GetSecurityGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SecurityGroupService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListSecurityGroupsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SecurityGroupServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.vpc.v1.SecurityGroupService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SecurityGroupServiceServer).List(ctx, req.(*ListSecurityGroupsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SecurityGroupService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateSecurityGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SecurityGroupServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.vpc.v1.SecurityGroupService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SecurityGroupServiceServer).Create(ctx, req.(*CreateSecurityGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SecurityGroupService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateSecurityGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SecurityGroupServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.vpc.v1.SecurityGroupService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SecurityGroupServiceServer).Update(ctx, req.(*UpdateSecurityGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SecurityGroupService_UpdateRules_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateSecurityGroupRulesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SecurityGroupServiceServer).UpdateRules(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.vpc.v1.SecurityGroupService/UpdateRules", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SecurityGroupServiceServer).UpdateRules(ctx, req.(*UpdateSecurityGroupRulesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SecurityGroupService_UpdateRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateSecurityGroupRuleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SecurityGroupServiceServer).UpdateRule(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.vpc.v1.SecurityGroupService/UpdateRule", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SecurityGroupServiceServer).UpdateRule(ctx, req.(*UpdateSecurityGroupRuleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SecurityGroupService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteSecurityGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SecurityGroupServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.vpc.v1.SecurityGroupService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SecurityGroupServiceServer).Delete(ctx, req.(*DeleteSecurityGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SecurityGroupService_Move_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MoveSecurityGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SecurityGroupServiceServer).Move(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.vpc.v1.SecurityGroupService/Move", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SecurityGroupServiceServer).Move(ctx, req.(*MoveSecurityGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SecurityGroupService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListSecurityGroupOperationsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SecurityGroupServiceServer).ListOperations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.vpc.v1.SecurityGroupService/ListOperations", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SecurityGroupServiceServer).ListOperations(ctx, req.(*ListSecurityGroupOperationsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _SecurityGroupService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "yandex.cloud.vpc.v1.SecurityGroupService", + HandlerType: (*SecurityGroupServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Get", + Handler: _SecurityGroupService_Get_Handler, + }, + { + MethodName: "List", + Handler: _SecurityGroupService_List_Handler, + }, + { + MethodName: "Create", + Handler: _SecurityGroupService_Create_Handler, + }, + { + MethodName: "Update", + Handler: _SecurityGroupService_Update_Handler, + }, + { + MethodName: "UpdateRules", + Handler: _SecurityGroupService_UpdateRules_Handler, + }, + { + MethodName: "UpdateRule", + Handler: _SecurityGroupService_UpdateRule_Handler, + }, + { + MethodName: "Delete", + Handler: _SecurityGroupService_Delete_Handler, + }, + { + MethodName: "Move", + Handler: _SecurityGroupService_Move_Handler, + }, + { + MethodName: "ListOperations", + Handler: _SecurityGroupService_ListOperations_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yandex/cloud/vpc/v1/security_group_service.proto", +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/security_group_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/security_group_service.pbext.go new file mode 100644 index 000000000..28449d013 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/security_group_service.pbext.go @@ -0,0 +1,230 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package vpc + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetSecurityGroupRequest) SetSecurityGroupId(v string) { + m.SecurityGroupId = v +} + +func (m *ListSecurityGroupsRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListSecurityGroupsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListSecurityGroupsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListSecurityGroupsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListSecurityGroupsResponse) SetSecurityGroups(v []*SecurityGroup) { + m.SecurityGroups = v +} + +func (m *ListSecurityGroupsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateSecurityGroupRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateSecurityGroupRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateSecurityGroupRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateSecurityGroupRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateSecurityGroupRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *CreateSecurityGroupRequest) SetRuleSpecs(v []*SecurityGroupRuleSpec) { + m.RuleSpecs = v +} + +type SecurityGroupRuleSpec_Protocol = isSecurityGroupRuleSpec_Protocol + +func (m *SecurityGroupRuleSpec) SetProtocol(v SecurityGroupRuleSpec_Protocol) { + m.Protocol = v +} + +type SecurityGroupRuleSpec_Target = isSecurityGroupRuleSpec_Target + +func (m *SecurityGroupRuleSpec) SetTarget(v SecurityGroupRuleSpec_Target) { + m.Target = v +} + +func (m *SecurityGroupRuleSpec) SetDescription(v string) { + m.Description = v +} + +func (m *SecurityGroupRuleSpec) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *SecurityGroupRuleSpec) SetDirection(v SecurityGroupRule_Direction) { + m.Direction = v +} + +func (m *SecurityGroupRuleSpec) SetPorts(v *PortRange) { + m.Ports = v +} + +func (m *SecurityGroupRuleSpec) SetProtocolName(v string) { + m.Protocol = &SecurityGroupRuleSpec_ProtocolName{ + ProtocolName: v, + } +} + +func (m *SecurityGroupRuleSpec) SetProtocolNumber(v int64) { + m.Protocol = &SecurityGroupRuleSpec_ProtocolNumber{ + ProtocolNumber: v, + } +} + +func (m *SecurityGroupRuleSpec) SetCidrBlocks(v *CidrBlocks) { + m.Target = &SecurityGroupRuleSpec_CidrBlocks{ + CidrBlocks: v, + } +} + +func (m *SecurityGroupRuleSpec) SetSecurityGroupId(v string) { + m.Target = &SecurityGroupRuleSpec_SecurityGroupId{ + SecurityGroupId: v, + } +} + +func (m *SecurityGroupRuleSpec) SetPredefinedTarget(v string) { + m.Target = &SecurityGroupRuleSpec_PredefinedTarget{ + PredefinedTarget: v, + } +} + +func (m *CreateSecurityGroupMetadata) SetSecurityGroupId(v string) { + m.SecurityGroupId = v +} + +func (m *UpdateSecurityGroupRequest) SetSecurityGroupId(v string) { + m.SecurityGroupId = v +} + +func (m *UpdateSecurityGroupRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateSecurityGroupRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateSecurityGroupRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateSecurityGroupRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateSecurityGroupRequest) SetRuleSpecs(v []*SecurityGroupRuleSpec) { + m.RuleSpecs = v +} + +func (m *UpdateSecurityGroupMetadata) SetSecurityGroupId(v string) { + m.SecurityGroupId = v +} + +func (m *UpdateSecurityGroupRulesRequest) SetSecurityGroupId(v string) { + m.SecurityGroupId = v +} + +func (m *UpdateSecurityGroupRulesRequest) SetDeletionRuleIds(v []string) { + m.DeletionRuleIds = v +} + +func (m *UpdateSecurityGroupRulesRequest) SetAdditionRuleSpecs(v []*SecurityGroupRuleSpec) { + m.AdditionRuleSpecs = v +} + +func (m *UpdateSecurityGroupRuleRequest) SetSecurityGroupId(v string) { + m.SecurityGroupId = v +} + +func (m *UpdateSecurityGroupRuleRequest) SetRuleId(v string) { + m.RuleId = v +} + +func (m *UpdateSecurityGroupRuleRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateSecurityGroupRuleRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateSecurityGroupRuleRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateSecurityGroupRuleMetadata) SetSecurityGroupId(v string) { + m.SecurityGroupId = v +} + +func (m *UpdateSecurityGroupRuleMetadata) SetRuleId(v string) { + m.RuleId = v +} + +func (m *DeleteSecurityGroupRequest) SetSecurityGroupId(v string) { + m.SecurityGroupId = v +} + +func (m *DeleteSecurityGroupMetadata) SetSecurityGroupId(v string) { + m.SecurityGroupId = v +} + +func (m *ListSecurityGroupOperationsRequest) SetSecurityGroupId(v string) { + m.SecurityGroupId = v +} + +func (m *ListSecurityGroupOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListSecurityGroupOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListSecurityGroupOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListSecurityGroupOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *MoveSecurityGroupRequest) SetSecurityGroupId(v string) { + m.SecurityGroupId = v +} + +func (m *MoveSecurityGroupRequest) SetDestinationFolderId(v string) { + m.DestinationFolderId = v +} + +func (m *MoveSecurityGroupMetadata) SetSecurityGroupId(v string) { + m.SecurityGroupId = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/subnet.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/subnet.pb.go index 23082bea6..6aaca02d5 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/subnet.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/subnet.pb.go @@ -48,10 +48,11 @@ type Subnet struct { // IPv6 not available yet. V6CidrBlocks []string `protobuf:"bytes,11,rep,name=v6_cidr_blocks,json=v6CidrBlocks,proto3" json:"v6_cidr_blocks,omitempty"` // ID of route table the subnet is linked to. - RouteTableId string `protobuf:"bytes,12,opt,name=route_table_id,json=routeTableId,proto3" json:"route_table_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RouteTableId string `protobuf:"bytes,12,opt,name=route_table_id,json=routeTableId,proto3" json:"route_table_id,omitempty"` + DhcpOptions *DhcpOptions `protobuf:"bytes,13,opt,name=dhcp_options,json=dhcpOptions,proto3" json:"dhcp_options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Subnet) Reset() { *m = Subnet{} } @@ -156,39 +157,110 @@ func (m *Subnet) GetRouteTableId() string { return "" } +func (m *Subnet) GetDhcpOptions() *DhcpOptions { + if m != nil { + return m.DhcpOptions + } + return nil +} + +type DhcpOptions struct { + DomainNameServers []string `protobuf:"bytes,1,rep,name=domain_name_servers,json=domainNameServers,proto3" json:"domain_name_servers,omitempty"` + DomainName string `protobuf:"bytes,2,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` + NtpServers []string `protobuf:"bytes,3,rep,name=ntp_servers,json=ntpServers,proto3" json:"ntp_servers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DhcpOptions) Reset() { *m = DhcpOptions{} } +func (m *DhcpOptions) String() string { return proto.CompactTextString(m) } +func (*DhcpOptions) ProtoMessage() {} +func (*DhcpOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_40c0de762dc72cc6, []int{1} +} + +func (m *DhcpOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DhcpOptions.Unmarshal(m, b) +} +func (m *DhcpOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DhcpOptions.Marshal(b, m, deterministic) +} +func (m *DhcpOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_DhcpOptions.Merge(m, src) +} +func (m *DhcpOptions) XXX_Size() int { + return xxx_messageInfo_DhcpOptions.Size(m) +} +func (m *DhcpOptions) XXX_DiscardUnknown() { + xxx_messageInfo_DhcpOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_DhcpOptions proto.InternalMessageInfo + +func (m *DhcpOptions) GetDomainNameServers() []string { + if m != nil { + return m.DomainNameServers + } + return nil +} + +func (m *DhcpOptions) GetDomainName() string { + if m != nil { + return m.DomainName + } + return "" +} + +func (m *DhcpOptions) GetNtpServers() []string { + if m != nil { + return m.NtpServers + } + return nil +} + func init() { proto.RegisterType((*Subnet)(nil), "yandex.cloud.vpc.v1.Subnet") proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.vpc.v1.Subnet.LabelsEntry") + proto.RegisterType((*DhcpOptions)(nil), "yandex.cloud.vpc.v1.DhcpOptions") } -func init() { proto.RegisterFile("yandex/cloud/vpc/v1/subnet.proto", fileDescriptor_40c0de762dc72cc6) } +func init() { + proto.RegisterFile("yandex/cloud/vpc/v1/subnet.proto", fileDescriptor_40c0de762dc72cc6) +} var fileDescriptor_40c0de762dc72cc6 = []byte{ - // 404 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0x51, 0x6b, 0xd4, 0x40, - 0x14, 0x85, 0xd9, 0x4d, 0x9b, 0x36, 0x37, 0x4b, 0x91, 0x51, 0x30, 0xac, 0x88, 0x41, 0x04, 0xf7, - 0xa5, 0x13, 0x5a, 0x4b, 0xb1, 0x16, 0x11, 0x2b, 0x3e, 0x2c, 0xf8, 0xb4, 0xf6, 0xc9, 0x97, 0x90, - 0xcc, 0xdc, 0xc6, 0x61, 0x93, 0x4c, 0x98, 0x4c, 0x46, 0xd7, 0xdf, 0xe8, 0x8f, 0x2a, 0xb9, 0x93, - 0x42, 0x0b, 0xfb, 0x36, 0x73, 0xce, 0x37, 0x73, 0x38, 0x73, 0x07, 0xd2, 0x5d, 0xd1, 0x4a, 0xfc, - 0x9b, 0x89, 0x5a, 0x0f, 0x32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, 0xd1, 0x3b, 0x26, 0x2f, - 0x1c, 0xb7, 0x6b, 0xc9, 0xde, 0xc1, 0x89, 0xbb, 0xc8, 0x85, 0x92, 0x26, 0x2f, 0x6b, 0x2d, 0xb6, - 0x7d, 0x02, 0x69, 0xb0, 0x8a, 0x36, 0x0b, 0x77, 0xf1, 0x4d, 0x49, 0x73, 0x43, 0x1a, 0x51, 0x97, - 0x4f, 0xa8, 0x78, 0xa2, 0x2e, 0x9f, 0x52, 0x46, 0x0f, 0x16, 0x73, 0x5b, 0x94, 0x35, 0x65, 0x2d, - 0x28, 0x6b, 0x41, 0xea, 0xed, 0x28, 0xae, 0xe5, 0xf2, 0x0a, 0xe2, 0x47, 0x05, 0xd8, 0x33, 0x08, - 0xb6, 0xb8, 0x9b, 0x06, 0x33, 0x2e, 0xd9, 0x0b, 0x38, 0x74, 0x45, 0x3d, 0xe0, 0x34, 0x15, 0xbf, - 0xf9, 0x34, 0xff, 0x38, 0xbb, 0xf9, 0xfc, 0xeb, 0xba, 0x52, 0xf6, 0xf7, 0x50, 0x72, 0xa1, 0x9b, - 0xcc, 0xbf, 0xd0, 0xa9, 0xff, 0x33, 0x95, 0x3e, 0xad, 0xb0, 0xa5, 0xd1, 0x64, 0x7b, 0x3e, 0xd3, - 0xb5, 0xeb, 0x44, 0x19, 0x92, 0xfd, 0xe1, 0x3e, 0x00, 0x00, 0xff, 0xff, 0x42, 0x30, 0x95, 0x96, - 0x6e, 0x02, 0x00, 0x00, + // 497 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0x4f, 0x6b, 0xdb, 0x30, + 0x18, 0xc6, 0xc9, 0x9f, 0xa6, 0xcd, 0xeb, 0xac, 0x6c, 0xea, 0xa0, 0x26, 0x63, 0xd4, 0x94, 0xc1, + 0x72, 0xa9, 0x4c, 0xbb, 0x52, 0xd6, 0xf5, 0x30, 0xd6, 0x6e, 0x87,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x0b, 0x5b, 0x86, 0x1d, 0xec, 0xf7, 0xc2, 0x8f, 0xbe, + 0xa5, 0x85, 0xb8, 0xf5, 0x03, 0x72, 0x04, 0xc1, 0x1a, 0xdf, 0xda, 0xc3, 0x13, 0xd7, 0x00, 0xca, + 0x99, 0x47, 0xa3, 0x1e, 0x1a, 0x81, 0x72, 0xa6, 0x75, 0xb8, 0xfe, 0x01, 0x87, 0x1b, 0x5d, 0x53, + 0x23, 0xdb, 0xbe, 0x3f, 0xaf, 0xe6, 0xd2, 0x2d, 0xaa, 0x8c, 0x32, 0x5d, 0xc4, 0x9e, 0x39, 0xf1, + 0x4f, 0x62, 0xae, 0x4f, 0xe6, 0x42, 0xe1, 0x9f, 0x17, 0x6f, 0x79, 0x2b, 0x57, 0xb5, 0x61, 0xd9, + 0x00, 0xc7, 0xef, 0xfe, 0x07, 0x00, 0x00, 0xff, 0xff, 0xa8, 0x2a, 0x54, 0x73, 0x4d, 0x03, 0x00, + 0x00, } diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/subnet.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/subnet.pbext.go new file mode 100644 index 000000000..06bf68afd --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/subnet.pbext.go @@ -0,0 +1,67 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package vpc + +import ( + timestamp "github.com/golang/protobuf/ptypes/timestamp" +) + +func (m *Subnet) SetId(v string) { + m.Id = v +} + +func (m *Subnet) SetFolderId(v string) { + m.FolderId = v +} + +func (m *Subnet) SetCreatedAt(v *timestamp.Timestamp) { + m.CreatedAt = v +} + +func (m *Subnet) SetName(v string) { + m.Name = v +} + +func (m *Subnet) SetDescription(v string) { + m.Description = v +} + +func (m *Subnet) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *Subnet) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *Subnet) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *Subnet) SetV4CidrBlocks(v []string) { + m.V4CidrBlocks = v +} + +func (m *Subnet) SetV6CidrBlocks(v []string) { + m.V6CidrBlocks = v +} + +func (m *Subnet) SetRouteTableId(v string) { + m.RouteTableId = v +} + +func (m *Subnet) SetDhcpOptions(v *DhcpOptions) { + m.DhcpOptions = v +} + +func (m *DhcpOptions) SetDomainNameServers(v []string) { + m.DomainNameServers = v +} + +func (m *DhcpOptions) SetDomainName(v string) { + m.DomainName = v +} + +func (m *DhcpOptions) SetNtpServers(v []string) { + m.NtpServers = v +} diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/subnet_service.pb.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/subnet_service.pb.go index 248077cdb..0de0b1006 100644 --- a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/subnet_service.pb.go +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/subnet_service.pb.go @@ -223,10 +223,11 @@ type CreateSubnetRequest struct { // Minimum subnet size is /28, maximum subnet size is /16. V4CidrBlocks []string `protobuf:"bytes,7,rep,name=v4_cidr_blocks,json=v4CidrBlocks,proto3" json:"v4_cidr_blocks,omitempty"` // ID of route table the subnet is linked to. - RouteTableId string `protobuf:"bytes,9,opt,name=route_table_id,json=routeTableId,proto3" json:"route_table_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RouteTableId string `protobuf:"bytes,9,opt,name=route_table_id,json=routeTableId,proto3" json:"route_table_id,omitempty"` + DhcpOptions *DhcpOptions `protobuf:"bytes,10,opt,name=dhcp_options,json=dhcpOptions,proto3" json:"dhcp_options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CreateSubnetRequest) Reset() { *m = CreateSubnetRequest{} } @@ -310,6 +311,13 @@ func (m *CreateSubnetRequest) GetRouteTableId() string { return "" } +func (m *CreateSubnetRequest) GetDhcpOptions() *DhcpOptions { + if m != nil { + return m.DhcpOptions + } + return nil +} + type CreateSubnetMetadata struct { // ID of the subnet that is being created. SubnetId string `protobuf:"bytes,1,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` @@ -363,10 +371,11 @@ type UpdateSubnetRequest struct { // Resource labels as `` key:value `` pairs. Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // ID of route table the subnet is linked to. - RouteTableId string `protobuf:"bytes,6,opt,name=route_table_id,json=routeTableId,proto3" json:"route_table_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RouteTableId string `protobuf:"bytes,6,opt,name=route_table_id,json=routeTableId,proto3" json:"route_table_id,omitempty"` + DhcpOptions *DhcpOptions `protobuf:"bytes,7,opt,name=dhcp_options,json=dhcpOptions,proto3" json:"dhcp_options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UpdateSubnetRequest) Reset() { *m = UpdateSubnetRequest{} } @@ -436,6 +445,13 @@ func (m *UpdateSubnetRequest) GetRouteTableId() string { return "" } +func (m *UpdateSubnetRequest) GetDhcpOptions() *DhcpOptions { + if m != nil { + return m.DhcpOptions + } + return nil +} + type UpdateSubnetMetadata struct { // ID of the Subnet resource that is being updated. SubnetId string `protobuf:"bytes,1,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` @@ -670,6 +686,95 @@ func (m *ListSubnetOperationsResponse) GetNextPageToken() string { return "" } +type MoveSubnetRequest struct { + // ID of the Subnet resource to move. + SubnetId string `protobuf:"bytes,1,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` + // ID of the destination folder. + DestinationFolderId string `protobuf:"bytes,2,opt,name=destination_folder_id,json=destinationFolderId,proto3" json:"destination_folder_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MoveSubnetRequest) Reset() { *m = MoveSubnetRequest{} } +func (m *MoveSubnetRequest) String() string { return proto.CompactTextString(m) } +func (*MoveSubnetRequest) ProtoMessage() {} +func (*MoveSubnetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_3ec158e4cb3e4034, []int{11} +} + +func (m *MoveSubnetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MoveSubnetRequest.Unmarshal(m, b) +} +func (m *MoveSubnetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MoveSubnetRequest.Marshal(b, m, deterministic) +} +func (m *MoveSubnetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_MoveSubnetRequest.Merge(m, src) +} +func (m *MoveSubnetRequest) XXX_Size() int { + return xxx_messageInfo_MoveSubnetRequest.Size(m) +} +func (m *MoveSubnetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_MoveSubnetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_MoveSubnetRequest proto.InternalMessageInfo + +func (m *MoveSubnetRequest) GetSubnetId() string { + if m != nil { + return m.SubnetId + } + return "" +} + +func (m *MoveSubnetRequest) GetDestinationFolderId() string { + if m != nil { + return m.DestinationFolderId + } + return "" +} + +type MoveSubnetMetadata struct { + // ID of the Subnet resource that is being moved. + SubnetId string `protobuf:"bytes,1,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MoveSubnetMetadata) Reset() { *m = MoveSubnetMetadata{} } +func (m *MoveSubnetMetadata) String() string { return proto.CompactTextString(m) } +func (*MoveSubnetMetadata) ProtoMessage() {} +func (*MoveSubnetMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_3ec158e4cb3e4034, []int{12} +} + +func (m *MoveSubnetMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MoveSubnetMetadata.Unmarshal(m, b) +} +func (m *MoveSubnetMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MoveSubnetMetadata.Marshal(b, m, deterministic) +} +func (m *MoveSubnetMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_MoveSubnetMetadata.Merge(m, src) +} +func (m *MoveSubnetMetadata) XXX_Size() int { + return xxx_messageInfo_MoveSubnetMetadata.Size(m) +} +func (m *MoveSubnetMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_MoveSubnetMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_MoveSubnetMetadata proto.InternalMessageInfo + +func (m *MoveSubnetMetadata) GetSubnetId() string { + if m != nil { + return m.SubnetId + } + return "" +} + func init() { proto.RegisterType((*GetSubnetRequest)(nil), "yandex.cloud.vpc.v1.GetSubnetRequest") proto.RegisterType((*ListSubnetsRequest)(nil), "yandex.cloud.vpc.v1.ListSubnetsRequest") @@ -684,6 +789,8 @@ func init() { proto.RegisterType((*DeleteSubnetMetadata)(nil), "yandex.cloud.vpc.v1.DeleteSubnetMetadata") proto.RegisterType((*ListSubnetOperationsRequest)(nil), "yandex.cloud.vpc.v1.ListSubnetOperationsRequest") proto.RegisterType((*ListSubnetOperationsResponse)(nil), "yandex.cloud.vpc.v1.ListSubnetOperationsResponse") + proto.RegisterType((*MoveSubnetRequest)(nil), "yandex.cloud.vpc.v1.MoveSubnetRequest") + proto.RegisterType((*MoveSubnetMetadata)(nil), "yandex.cloud.vpc.v1.MoveSubnetMetadata") } func init() { @@ -691,82 +798,90 @@ func init() { } var fileDescriptor_3ec158e4cb3e4034 = []byte{ - // 1053 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcf, 0x73, 0xdb, 0x44, - 0x14, 0x1e, 0xc5, 0x8e, 0x12, 0x3f, 0xa7, 0x69, 0xd8, 0x84, 0xc1, 0xe3, 0x34, 0x8c, 0x23, 0x20, - 0x35, 0x2e, 0x92, 0x2c, 0xe7, 0xc7, 0x90, 0x26, 0x19, 0xc0, 0xa5, 0x14, 0xcf, 0xb4, 0x03, 0xa3, - 0x84, 0x0b, 0x99, 0x8e, 0x47, 0xb6, 0x36, 0x46, 0x63, 0x45, 0x12, 0xd2, 0xda, 0x34, 0x2e, 0x3d, - 0xd0, 0x1b, 0x99, 0xe1, 0xd4, 0xe1, 0xc4, 0x81, 0x13, 0x27, 0x6e, 0x39, 0xf0, 0x2f, 0x24, 0xe7, - 0x72, 0xe5, 0xc8, 0x81, 0x73, 0x8f, 0x9c, 0x98, 0xdd, 0x95, 0x1d, 0xd9, 0x96, 0x1d, 0x53, 0xe8, - 0x4d, 0xab, 0xf7, 0xed, 0xdb, 0xef, 0xbd, 0xfd, 0xde, 0x7b, 0x0b, 0xf9, 0x13, 0xc3, 0x31, 0xf1, - 0x23, 0xb5, 0x6e, 0xbb, 0x2d, 0x53, 0x6d, 0x7b, 0x75, 0xb5, 0xad, 0xa9, 0x41, 0xab, 0xe6, 0x60, - 0x52, 0x0d, 0xb0, 0xdf, 0xb6, 0xea, 0x58, 0xf1, 0x7c, 0x97, 0xb8, 0x68, 0x91, 0x23, 0x15, 0x86, - 0x54, 0xda, 0x5e, 0x5d, 0x69, 0x6b, 0xd9, 0x1b, 0x0d, 0xd7, 0x6d, 0xd8, 0x58, 0x35, 0x3c, 0x4b, - 0x35, 0x1c, 0xc7, 0x25, 0x06, 0xb1, 0x5c, 0x27, 0xe0, 0x5b, 0xb2, 0xb9, 0xd0, 0xca, 0x56, 0xb5, - 0xd6, 0x91, 0x7a, 0x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4, 0xb3, - 0x00, 0x22, 0x2f, 0xb1, 0x11, 0xac, 0x62, 0xda, 0xca, 0x24, 0xac, 0x3e, 0xe5, 0xac, 0x62, 0xab, - 0x37, 0xca, 0x2a, 0x57, 0x1a, 0x77, 0x51, 0x94, 0xe1, 0xaf, 0x02, 0x88, 0xbc, 0x1a, 0x47, 0x30, - 0x8c, 0x29, 0xf6, 0x49, 0x18, 0x1e, 0x9c, 0x3d, 0x2f, 0xc8, 0x23, 0x0a, 0xfd, 0xf5, 0xc1, 0xee, - 0x7f, 0xf7, 0xd8, 0x23, 0x27, 0x5c, 0x59, 0x85, 0xb1, 0xca, 0xfa, 0x45, 0x80, 0x79, 0x2a, 0x8b, - 0xcb, 0x0a, 0x43, 0xc5, 0x2b, 0xb4, 0x33, 0xd4, 0x2a, 0xb2, 0xda, 0xbf, 0xd8, 0x11, 0xca, 0x4e, - 0x61, 0xe4, 0xf2, 0x68, 0x6d, 0x0c, 0xb9, 0xcb, 0x77, 0x71, 0x50, 0xde, 0xfb, 0x72, 0xa7, 0x61, - 0x91, 0xaf, 0x5a, 0x35, 0xa5, 0xee, 0x1e, 0xab, 0xfc, 0x38, 0x99, 0xbf, 0x8f, 0x1b, 0xae, 0xdc, - 0xc0, 0x0e, 0x0b, 0x5d, 0x8d, 0x79, 0x82, 0xef, 0xb4, 0xbd, 0x7a, 0x4d, 0x64, 0xe6, 0xf5, 0x7f, - 0x02, 0x00, 0x00, 0xff, 0xff, 0x8c, 0xa4, 0x59, 0x70, 0x45, 0x0c, 0x00, 0x00, + // 1177 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x4b, 0x6f, 0xdb, 0x46, + 0x17, 0x05, 0x2d, 0x99, 0xb6, 0xae, 0x9c, 0xc4, 0x19, 0x39, 0x88, 0x20, 0xdb, 0x1f, 0x14, 0x7e, + 0xb0, 0xa3, 0x2a, 0x15, 0x29, 0xca, 0x0f, 0xd4, 0x2f, 0x34, 0x95, 0xf3, 0xa8, 0xd1, 0x18, 0x29, + 0x68, 0xb7, 0x8b, 0x1a, 0x81, 0x40, 0x91, 0x63, 0x99, 0x10, 0x4d, 0xb2, 0x24, 0xc5, 0xc6, 0x4e, + 0x03, 0x14, 0xd9, 0xd5, 0x40, 0x57, 0x59, 0x16, 0x68, 0xd1, 0x02, 0x5d, 0x75, 0xe7, 0x45, 0xff, + 0x82, 0xbd, 0x76, 0xff, 0x42, 0x16, 0x5d, 0x67, 0xd9, 0x55, 0xc1, 0x19, 0x4a, 0xa2, 0x2c, 0x5a, + 0x66, 0xdc, 0xc7, 0x8e, 0xd4, 0x3d, 0x73, 0xe7, 0xcc, 0xbd, 0x67, 0xce, 0xa5, 0xa0, 0x70, 0x20, + 0x1b, 0x2a, 0x7e, 0x2e, 0x28, 0xba, 0xd9, 0x52, 0x05, 0xcf, 0x52, 0x04, 0x4f, 0x14, 0x9c, 0x56, + 0xdd, 0xc0, 0x6e, 0xcd, 0xc1, 0xb6, 0xa7, 0x29, 0x98, 0xb7, 0x6c, 0xd3, 0x35, 0x51, 0x86, 0x22, + 0x79, 0x82, 0xe4, 0x3d, 0x4b, 0xe1, 0x3d, 0x31, 0x37, 0xd5, 0x30, 0xcd, 0x86, 0x8e, 0x05, 0xd9, + 0xd2, 0x04, 0xd9, 0x30, 0x4c, 0x57, 0x76, 0x35, 0xd3, 0x70, 0xe8, 0x92, 0x5c, 0x3e, 0x88, 0x92, + 0xb7, 0x7a, 0x6b, 0x57, 0xd8, 0xd5, 0xb0, 0xae, 0xd6, 0xf6, 0x65, 0xa7, 0xd9, 0x46, 0xf4, 0x6c, + 0xef, 0x67, 0x31, 0x2d, 0x6c, 0x93, 0x24, 0x91, 0x88, 0x1e, 0x82, 0x01, 0x62, 0xb6, 0x07, 0xd1, + 0x59, 0xdf, 0x97, 0x69, 0xba, 0x37, 0x93, 0xac, 0x6b, 0x6a, 0x28, 0xcc, 0xad, 0x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, 0x37, 0x95, 0xa6, 0x93, 0x1d, + 0xc9, 0x27, 0x0a, 0xa9, 0x6a, 0xd2, 0x47, 0x4b, 0x63, 0xde, 0xfc, 0xba, 0xa6, 0xda, 0x55, 0x12, + 0x41, 0x3c, 0x5c, 0xb7, 0xcd, 0x96, 0x8b, 0x6b, 0xae, 0x5c, 0xd7, 0x49, 0xe6, 0x14, 0xc9, 0x3c, + 0xda, 0xc9, 0x3a, 0x46, 0xe2, 0xdb, 0x7e, 0x78, 0x43, 0x45, 0xeb, 0x30, 0xa6, 0xee, 0x29, 0x56, + 0xcd, 0x24, 0xe5, 0x74, 0xb2, 0x90, 0x67, 0x0a, 0xe9, 0x4a, 0x3e, 0xb2, 0x88, 0x0f, 0xf6, 0x14, + 0xeb, 0x29, 0xc5, 0x49, 0x69, 0xb5, 0xfb, 0x92, 0x5b, 0x82, 0x74, 0xa8, 0x98, 0x68, 0x1c, 0x12, + 0x4d, 0x7c, 0x40, 0xc5, 0x21, 0xf9, 0x8f, 0x68, 0x02, 0x86, 0x3d, 0x59, 0x6f, 0x05, 0x52, 0x90, + 0xe8, 0xcb, 0xf2, 0xd0, 0x07, 0x0c, 0x37, 0x07, 0x13, 0xe1, 0xde, 0x6c, 0x62, 0x57, 0x56, 0x65, + 0x57, 0x46, 0x93, 0x7d, 0x17, 0x3b, 0x74, 0x95, 0x7f, 0x4a, 0x42, 0xe6, 0x33, 0x4b, 0x8d, 0xd2, + 0x66, 0x4c, 0x37, 0x40, 0x2b, 0x90, 0x6e, 0x91, 0x0c, 0xc4, 0xec, 0x08, 0xaf, 0x74, 0x25, 0xc7, + 0x53, 0x3f, 0xe4, 0xdb, 0x7e, 0xc8, 0x3f, 0xf2, 0xfd, 0x70, 0x53, 0x76, 0x9a, 0x12, 0x50, 0xb8, + 0xff, 0xdc, 0x11, 0x76, 0xe2, 0x6f, 0x09, 0x3b, 0x19, 0x57, 0xd8, 0xc3, 0x03, 0x84, 0x1d, 0x51, + 0x86, 0x7f, 0x47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ab, 0xce, + 0x2b, 0xe6, 0xbe, 0x40, 0x31, 0x25, 0xfa, 0x1f, 0xa9, 0x61, 0x96, 0x1a, 0xd8, 0x20, 0x4d, 0x13, + 0x22, 0xfe, 0x86, 0xad, 0x78, 0x96, 0x52, 0x67, 0x49, 0x78, 0xee, 0xaf, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x0f, 0xf7, 0x0f, 0xcf, 0x49, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // SubnetServiceClient is the client API for SubnetService service. // @@ -788,13 +903,15 @@ type SubnetServiceClient interface { Delete(ctx context.Context, in *DeleteSubnetRequest, opts ...grpc.CallOption) (*operation.Operation, error) // List operations for the specified subnet. ListOperations(ctx context.Context, in *ListSubnetOperationsRequest, opts ...grpc.CallOption) (*ListSubnetOperationsResponse, error) + // Move subnet to another folder. + Move(ctx context.Context, in *MoveSubnetRequest, opts ...grpc.CallOption) (*operation.Operation, error) } type subnetServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewSubnetServiceClient(cc *grpc.ClientConn) SubnetServiceClient { +func NewSubnetServiceClient(cc grpc.ClientConnInterface) SubnetServiceClient { return &subnetServiceClient{cc} } @@ -852,6 +969,15 @@ func (c *subnetServiceClient) ListOperations(ctx context.Context, in *ListSubnet return out, nil } +func (c *subnetServiceClient) Move(ctx context.Context, in *MoveSubnetRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + out := new(operation.Operation) + err := c.cc.Invoke(ctx, "/yandex.cloud.vpc.v1.SubnetService/Move", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // SubnetServiceServer is the server API for SubnetService service. type SubnetServiceServer interface { // Returns the specified Subnet resource. @@ -870,6 +996,8 @@ type SubnetServiceServer interface { Delete(context.Context, *DeleteSubnetRequest) (*operation.Operation, error) // List operations for the specified subnet. ListOperations(context.Context, *ListSubnetOperationsRequest) (*ListSubnetOperationsResponse, error) + // Move subnet to another folder. + Move(context.Context, *MoveSubnetRequest) (*operation.Operation, error) } // UnimplementedSubnetServiceServer can be embedded to have forward compatible implementations. @@ -894,6 +1022,9 @@ func (*UnimplementedSubnetServiceServer) Delete(ctx context.Context, req *Delete func (*UnimplementedSubnetServiceServer) ListOperations(ctx context.Context, req *ListSubnetOperationsRequest) (*ListSubnetOperationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") } +func (*UnimplementedSubnetServiceServer) Move(ctx context.Context, req *MoveSubnetRequest) (*operation.Operation, error) { + return nil, status.Errorf(codes.Unimplemented, "method Move not implemented") +} func RegisterSubnetServiceServer(s *grpc.Server, srv SubnetServiceServer) { s.RegisterService(&_SubnetService_serviceDesc, srv) @@ -1007,6 +1138,24 @@ func _SubnetService_ListOperations_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +func _SubnetService_Move_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MoveSubnetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubnetServiceServer).Move(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/yandex.cloud.vpc.v1.SubnetService/Move", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubnetServiceServer).Move(ctx, req.(*MoveSubnetRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _SubnetService_serviceDesc = grpc.ServiceDesc{ ServiceName: "yandex.cloud.vpc.v1.SubnetService", HandlerType: (*SubnetServiceServer)(nil), @@ -1035,6 +1184,10 @@ var _SubnetService_serviceDesc = grpc.ServiceDesc{ MethodName: "ListOperations", Handler: _SubnetService_ListOperations_Handler, }, + { + MethodName: "Move", + Handler: _SubnetService_Move_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "yandex/cloud/vpc/v1/subnet_service.proto", diff --git a/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/subnet_service.pbext.go b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/subnet_service.pbext.go new file mode 100644 index 000000000..c81f2c342 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/subnet_service.pbext.go @@ -0,0 +1,148 @@ +// Code generated by protoc-gen-goext. DO NOT EDIT. + +package vpc + +import ( + operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + field_mask "google.golang.org/genproto/protobuf/field_mask" +) + +func (m *GetSubnetRequest) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *ListSubnetsRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *ListSubnetsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListSubnetsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListSubnetsRequest) SetFilter(v string) { + m.Filter = v +} + +func (m *ListSubnetsResponse) SetSubnets(v []*Subnet) { + m.Subnets = v +} + +func (m *ListSubnetsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *CreateSubnetRequest) SetFolderId(v string) { + m.FolderId = v +} + +func (m *CreateSubnetRequest) SetName(v string) { + m.Name = v +} + +func (m *CreateSubnetRequest) SetDescription(v string) { + m.Description = v +} + +func (m *CreateSubnetRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *CreateSubnetRequest) SetNetworkId(v string) { + m.NetworkId = v +} + +func (m *CreateSubnetRequest) SetZoneId(v string) { + m.ZoneId = v +} + +func (m *CreateSubnetRequest) SetV4CidrBlocks(v []string) { + m.V4CidrBlocks = v +} + +func (m *CreateSubnetRequest) SetRouteTableId(v string) { + m.RouteTableId = v +} + +func (m *CreateSubnetRequest) SetDhcpOptions(v *DhcpOptions) { + m.DhcpOptions = v +} + +func (m *CreateSubnetMetadata) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *UpdateSubnetRequest) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *UpdateSubnetRequest) SetUpdateMask(v *field_mask.FieldMask) { + m.UpdateMask = v +} + +func (m *UpdateSubnetRequest) SetName(v string) { + m.Name = v +} + +func (m *UpdateSubnetRequest) SetDescription(v string) { + m.Description = v +} + +func (m *UpdateSubnetRequest) SetLabels(v map[string]string) { + m.Labels = v +} + +func (m *UpdateSubnetRequest) SetRouteTableId(v string) { + m.RouteTableId = v +} + +func (m *UpdateSubnetRequest) SetDhcpOptions(v *DhcpOptions) { + m.DhcpOptions = v +} + +func (m *UpdateSubnetMetadata) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *DeleteSubnetRequest) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *DeleteSubnetMetadata) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *ListSubnetOperationsRequest) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *ListSubnetOperationsRequest) SetPageSize(v int64) { + m.PageSize = v +} + +func (m *ListSubnetOperationsRequest) SetPageToken(v string) { + m.PageToken = v +} + +func (m *ListSubnetOperationsResponse) SetOperations(v []*operation.Operation) { + m.Operations = v +} + +func (m *ListSubnetOperationsResponse) SetNextPageToken(v string) { + m.NextPageToken = v +} + +func (m *MoveSubnetRequest) SetSubnetId(v string) { + m.SubnetId = v +} + +func (m *MoveSubnetRequest) SetDestinationFolderId(v string) { + m.DestinationFolderId = v +} + +func (m *MoveSubnetMetadata) SetSubnetId(v string) { + m.SubnetId = v +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/README.md b/vendor/github.com/yandex-cloud/go-sdk/README.md index dbc4b1065..f4919379e 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/README.md +++ b/vendor/github.com/yandex-cloud/go-sdk/README.md @@ -1,6 +1,7 @@ # Yandex.Cloud Go SDK [![GoDoc](https://godoc.org/github.com/yandex-cloud/go-sdk?status.svg)](https://godoc.org/github.com/yandex-cloud/go-sdk) +[![CircleCI](https://circleci.com/gh/yandex-cloud/go-sdk.svg?style=shield)](https://circleci.com/gh/yandex-cloud/go-sdk) Go SDK for Yandex.Cloud services. diff --git a/vendor/github.com/yandex-cloud/go-sdk/ai.go b/vendor/github.com/yandex-cloud/go-sdk/ai.go new file mode 100644 index 000000000..89f93d80d --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/ai.go @@ -0,0 +1,31 @@ +// Copyright (c) 2020 YANDEX LLC. + +package ycsdk + +import ( + "github.com/yandex-cloud/go-sdk/gen/ai/stt" + "github.com/yandex-cloud/go-sdk/gen/ai/translate" + "github.com/yandex-cloud/go-sdk/gen/ai/vision" +) + +const ( + AITranslate Endpoint = "ai-translate" + AIVision Endpoint = "ai-vision" + AISTT Endpoint = "ai-stt" +) + +type AI struct { + sdk *SDK +} + +func (m *AI) Translate() *translate.Translate { + return translate.NewTranslate(m.sdk.getConn(AITranslate)) +} + +func (m *AI) Vision() *vision.Vision { + return vision.NewVision(m.sdk.getConn(AIVision)) +} + +func (m *AI) STT() *stt.STT { + return stt.NewSTT(m.sdk.getConn(AISTT)) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/credentials.go b/vendor/github.com/yandex-cloud/go-sdk/credentials.go index 88cca4606..a292428d7 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/credentials.go +++ b/vendor/github.com/yandex-cloud/go-sdk/credentials.go @@ -12,11 +12,13 @@ import ( "io/ioutil" "net" "net/http" + "net/http/httputil" "time" jwt "github.com/dgrijalva/jwt-go" "github.com/golang/protobuf/ptypes" "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" "google.golang.org/grpc/status" iampb "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" @@ -163,7 +165,7 @@ func newInstanceServiceAccountCredentials(metadataServiceAddr string) NonExchang Transport: &http.Transport{ DialContext: (&net.Dialer{ Timeout: time.Second, // One second should be enough for localhost connection. - KeepAlive: 0, // No keep alive. Near token per hour requested. + KeepAlive: -1, // No keep alive. Near token per hour requested. }).DialContext, }, }, @@ -180,43 +182,56 @@ func (c *instanceServiceAccountCredentials) YandexCloudAPICredentials() {} func (c *instanceServiceAccountCredentials) IAMToken(ctx context.Context) (*iampb.CreateIamTokenResponse, error) { token, err := c.iamToken(ctx) if err != nil { - return nil, sdkerrors.WithMessage(err, "instance service account token") + return nil, sdkerrors.WithMessagef(err, "failed to get compute instance service account token from instance metadata service: GET %s", c.url()) } return token, nil } func (c *instanceServiceAccountCredentials) iamToken(ctx context.Context) (*iampb.CreateIamTokenResponse, error) { - URL := fmt.Sprintf("http://%s/computeMetadata/v1/instance/service-accounts/default/token", c.metadataServiceAddr) - req, err := http.NewRequest("GET", URL, nil) + req, err := http.NewRequest("GET", c.url(), nil) if err != nil { return nil, sdkerrors.WithMessage(err, "request make failed") } req.Header.Set("Metadata-Flavor", "Google") + reqDump, _ := httputil.DumpRequestOut(req, false) + grpclog.Infof("Going to request instance SA token in metadata service:\n%s", reqDump) resp, err := c.client.Do(req.WithContext(ctx)) if err != nil { - return nil, sdkerrors.WithMessage(err, "compute instance metadata service call failed.\n"+ - "Are you inside compute instance?\n"+ - "Details") - } - if resp.StatusCode == http.StatusNotFound { - return nil, errors.New("compute instance metadata service token resource is not found.\n" + - "Is this compute instance running using Service Account? That is, Instance.service_account_id should not be empty.") + return nil, fmt.Errorf("%s.\n"+ + "Are you inside compute instance?", + err) } defer resp.Body.Close() + respDump, _ := httputil.DumpResponse(resp, false) + grpclog.Infof("Metadata service instance SA token response (without body, because contains sensitive token):\n%s", respDump) + + if resp.StatusCode == http.StatusNotFound { + return nil, fmt.Errorf("%s.\n"+ + "Is this compute instance running using Service Account? That is, Instance.service_account_id should not be empty.", + resp.Status) + } body, err := ioutil.ReadAll(resp.Body) - if err != nil { - return nil, sdkerrors.WithMessage(err, "response body read failed") - } + if resp.StatusCode != http.StatusOK { - return nil, fmt.Errorf("unexpected token get status: %s: %s", resp.Status, body) + if err != nil { + body = []byte(fmt.Sprintf("Failed response body read failed: %s", err.Error())) + } + grpclog.Errorf("Metadata service instance SA token get failed: %s. Body:\n%s", resp.Status, body) + return nil, fmt.Errorf("%s", resp.Status) } + if err != nil { + return nil, fmt.Errorf("reponse read failed: %s", err) + } + var tokenResponse struct { AccessToken string `json:"access_token"` ExpiresIn int64 `json:"expires_in"` TokenType string `json:"token_type"` } + err = json.Unmarshal(body, &tokenResponse) if err != nil { + grpclog.Errorf("Failed to unmarshal instance metadata service SA token response body.\nError: %s\nBody:\n%s", err, body) return nil, sdkerrors.WithMessage(err, "body unmarshal failed") } expiresAt := ptypes.TimestampNow() @@ -228,6 +243,10 @@ func (c *instanceServiceAccountCredentials) iamToken(ctx context.Context) (*iamp }, nil } +func (c *instanceServiceAccountCredentials) url() string { + return fmt.Sprintf("http://%s/computeMetadata/v1/instance/service-accounts/default/token", c.metadataServiceAddr) +} + // NoCredentials implements Credentials, it allows to create unauthenticated connections type NoCredentials struct{} diff --git a/vendor/github.com/yandex-cloud/go-sdk/dataproc.go b/vendor/github.com/yandex-cloud/go-sdk/dataproc.go new file mode 100644 index 000000000..d98886b2e --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/dataproc.go @@ -0,0 +1,11 @@ +// Copyright (c) 2019 YANDEX LLC. + +package ycsdk + +import "github.com/yandex-cloud/go-sdk/gen/dataproc" + +const DataProcServiceID = "dataproc" + +func (sdk *SDK) Dataproc() *dataproc.Dataproc { + return dataproc.NewDataproc(sdk.getConn(DataProcServiceID)) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/dial/dialer.go b/vendor/github.com/yandex-cloud/go-sdk/dial/dialer.go index b31732650..dd058c5b8 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/dial/dialer.go +++ b/vendor/github.com/yandex-cloud/go-sdk/dial/dialer.go @@ -31,7 +31,7 @@ func NewDialer() DialFunc { grpclog.Warningf("Dial %s failed: %s", target, err) return nil, err } - grpclog.Warningf("Dial %s successfully connected to: %s", target, conn.RemoteAddr()) + grpclog.Infof("Dial %s successfully connected to: %s", target, conn.RemoteAddr()) return conn, nil } } diff --git a/vendor/github.com/yandex-cloud/go-sdk/dial/proxy.go b/vendor/github.com/yandex-cloud/go-sdk/dial/proxy.go index b5a8d0588..d15ade385 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/dial/proxy.go +++ b/vendor/github.com/yandex-cloud/go-sdk/dial/proxy.go @@ -25,6 +25,7 @@ package dial import ( "bufio" + "encoding/base64" "errors" "fmt" "io" @@ -43,31 +44,32 @@ import ( // provided dialer, does HTTP CONNECT handshake and returns the connection. func NewProxyDialer(dialer func(context.Context, string) (net.Conn, error)) func(context.Context, string) (net.Conn, error) { return func(ctx context.Context, addr string) (conn net.Conn, err error) { - var skipHandshake bool - newAddr, err := mapAddress(ctx, addr) + proxyURL, err := mapAddress(ctx, addr) + var newAddr string if err != nil { if err != errDisabled { return nil, err } - skipHandshake = true newAddr = addr - } - - if addr != newAddr { - grpclog.Infof("Using proxy %s for dialing %s", newAddr, addr) + } else { + newAddr = proxyURL.Host } conn, err = dialer(ctx, newAddr) if err != nil { return } - if !skipHandshake { - conn, err = doHTTPConnectHandshake(ctx, conn, addr) + if proxyURL != nil { + // proxy is disabled if proxyURL is nil. + grpclog.Infof("Using proxy %s for dialing %s", newAddr, addr) + conn, err = doHTTPConnectHandshake(ctx, conn, addr, proxyURL) } return } } +const proxyAuthHeaderKey = "Proxy-Authorization" + var ( // errDisabled indicates that proxy is disabled for the address. errDisabled = errors.New("proxy is disabled for the address") @@ -75,7 +77,7 @@ var ( httpProxyFromEnvironment = http.ProxyFromEnvironment ) -func mapAddress(ctx context.Context, address string) (string, error) { +func mapAddress(ctx context.Context, address string) (*url.URL, error) { req := &http.Request{ URL: &url.URL{ Scheme: "https", @@ -84,12 +86,12 @@ func mapAddress(ctx context.Context, address string) (string, error) { } url, err := httpProxyFromEnvironment(req) if err != nil { - return "", err + return nil, err } if url == nil { - return "", errDisabled + return nil, errDisabled } - return url.Host, nil + return url, nil } // To read a response from a net.Conn, http.ReadResponse() takes a bufio.Reader. @@ -106,18 +108,28 @@ func (c *bufConn) Read(b []byte) (int, error) { return c.r.Read(b) } -func doHTTPConnectHandshake(ctx context.Context, conn net.Conn, addr string) (_ net.Conn, err error) { +func basicAuth(username, password string) string { + auth := username + ":" + password + return base64.StdEncoding.EncodeToString([]byte(auth)) +} + +func doHTTPConnectHandshake(ctx context.Context, conn net.Conn, addr string, proxyURL *url.URL) (_ net.Conn, err error) { defer func() { if err != nil { conn.Close() } }() - req := (&http.Request{ + req := &http.Request{ Method: http.MethodConnect, URL: &url.URL{Host: addr}, Header: map[string][]string{"User-Agent": {grpcUA}}, - }) + } + if t := proxyURL.User; t != nil { + u := t.Username() + p, _ := t.Password() + req.Header.Add(proxyAuthHeaderKey, "Basic "+basicAuth(u, p)) + } if err := sendHTTPRequest(ctx, req, conn); err != nil { return nil, fmt.Errorf("failed to write the HTTP request: %v", err) diff --git a/vendor/github.com/yandex-cloud/go-sdk/functions.go b/vendor/github.com/yandex-cloud/go-sdk/functions.go deleted file mode 100644 index 32cd24f07..000000000 --- a/vendor/github.com/yandex-cloud/go-sdk/functions.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) 2019 YANDEX LLC. - -package ycsdk - -import "github.com/yandex-cloud/go-sdk/gen/functions" - -const ( - FunctionServiceID Endpoint = "serverless-functions" -) - -func (sdk *SDK) Functions() *functions.Function { - return functions.NewFunction(sdk.getConn(FunctionServiceID)) -} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/ai/stt/stt.go b/vendor/github.com/yandex-cloud/go-sdk/gen/ai/stt/stt.go new file mode 100644 index 000000000..b353c5320 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/ai/stt/stt.go @@ -0,0 +1,39 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package stt + +import ( + "context" + + "google.golang.org/grpc" + + stt "github.com/yandex-cloud/go-genproto/yandex/cloud/ai/stt/v2" + "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" +) + +//revive:disable + +// SttServiceClient is a stt.SttServiceClient with +// lazy GRPC connection initialization. +type SttServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// LongRunningRecognize implements stt.SttServiceClient +func (c *SttServiceClient) LongRunningRecognize(ctx context.Context, in *stt.LongRunningRecognitionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return stt.NewSttServiceClient(conn).LongRunningRecognize(ctx, in, opts...) +} + +// StreamingRecognize implements stt.SttServiceClient +func (c *SttServiceClient) StreamingRecognize(ctx context.Context, opts ...grpc.CallOption) (stt.SttService_StreamingRecognizeClient, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return stt.NewSttServiceClient(conn).StreamingRecognize(ctx, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/ai/stt/stt_group.go b/vendor/github.com/yandex-cloud/go-sdk/gen/ai/stt/stt_group.go new file mode 100644 index 000000000..5e79a5c23 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/ai/stt/stt_group.go @@ -0,0 +1,24 @@ +// Code generated by sdkgen. DO NOT EDIT. + +package stt + +import ( + "context" + + "google.golang.org/grpc" +) + +// STT provides access to "stt" component of Yandex.Cloud +type STT struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// NewSTT creates instance of STT +func NewSTT(g func(ctx context.Context) (*grpc.ClientConn, error)) *STT { + return &STT{g} +} + +// Stt gets SttService client +func (s *STT) Stt() *SttServiceClient { + return &SttServiceClient{getConn: s.getConn} +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/ai/translate/translate_group.go b/vendor/github.com/yandex-cloud/go-sdk/gen/ai/translate/translate_group.go new file mode 100644 index 000000000..85fd28192 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/ai/translate/translate_group.go @@ -0,0 +1,24 @@ +// Code generated by sdkgen. DO NOT EDIT. + +package translate + +import ( + "context" + + "google.golang.org/grpc" +) + +// Translate provides access to "translate" component of Yandex.Cloud +type Translate struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// NewTranslate creates instance of Translate +func NewTranslate(g func(ctx context.Context) (*grpc.ClientConn, error)) *Translate { + return &Translate{g} +} + +// Translation gets TranslationService client +func (t *Translate) Translation() *TranslationServiceClient { + return &TranslationServiceClient{getConn: t.getConn} +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/ai/translate/translation.go b/vendor/github.com/yandex-cloud/go-sdk/gen/ai/translate/translation.go new file mode 100644 index 000000000..fdb60ed3f --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/ai/translate/translation.go @@ -0,0 +1,108 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package translate + +import ( + "context" + + "google.golang.org/grpc" + + translate "github.com/yandex-cloud/go-genproto/yandex/cloud/ai/translate/v2" +) + +//revive:disable + +// TranslationServiceClient is a translate.TranslationServiceClient with +// lazy GRPC connection initialization. +type TranslationServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// DetectLanguage implements translate.TranslationServiceClient +func (c *TranslationServiceClient) DetectLanguage(ctx context.Context, in *translate.DetectLanguageRequest, opts ...grpc.CallOption) (*translate.DetectLanguageResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return translate.NewTranslationServiceClient(conn).DetectLanguage(ctx, in, opts...) +} + +// ListLanguages implements translate.TranslationServiceClient +func (c *TranslationServiceClient) ListLanguages(ctx context.Context, in *translate.ListLanguagesRequest, opts ...grpc.CallOption) (*translate.ListLanguagesResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return translate.NewTranslationServiceClient(conn).ListLanguages(ctx, in, opts...) +} + +type TranslationLanguagesIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *TranslationServiceClient + request *translate.ListLanguagesRequest + + items []*translate.Language +} + +func (c *TranslationServiceClient) TranslationLanguagesIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *TranslationLanguagesIterator { + return &TranslationLanguagesIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &translate.ListLanguagesRequest{ + FolderId: folderId, + }, + } +} + +func (it *TranslationLanguagesIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started { + return false + } + it.started = true + + response, err := it.client.ListLanguages(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Languages + return len(it.items) > 0 +} + +func (it *TranslationLanguagesIterator) Value() *translate.Language { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *TranslationLanguagesIterator) Error() error { + return it.err +} + +// Translate implements translate.TranslationServiceClient +func (c *TranslationServiceClient) Translate(ctx context.Context, in *translate.TranslateRequest, opts ...grpc.CallOption) (*translate.TranslateResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return translate.NewTranslationServiceClient(conn).Translate(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/ai/vision/vision.go b/vendor/github.com/yandex-cloud/go-sdk/gen/ai/vision/vision.go new file mode 100644 index 000000000..d0219da58 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/ai/vision/vision.go @@ -0,0 +1,29 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package vision + +import ( + "context" + + "google.golang.org/grpc" + + vision "github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1" +) + +//revive:disable + +// VisionServiceClient is a vision.VisionServiceClient with +// lazy GRPC connection initialization. +type VisionServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// BatchAnalyze implements vision.VisionServiceClient +func (c *VisionServiceClient) BatchAnalyze(ctx context.Context, in *vision.BatchAnalyzeRequest, opts ...grpc.CallOption) (*vision.BatchAnalyzeResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return vision.NewVisionServiceClient(conn).BatchAnalyze(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/ai/vision/vision_group.go b/vendor/github.com/yandex-cloud/go-sdk/gen/ai/vision/vision_group.go new file mode 100644 index 000000000..5d7cacc37 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/ai/vision/vision_group.go @@ -0,0 +1,24 @@ +// Code generated by sdkgen. DO NOT EDIT. + +package vision + +import ( + "context" + + "google.golang.org/grpc" +) + +// Vision provides access to "vision" component of Yandex.Cloud +type Vision struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// NewVision creates instance of Vision +func NewVision(g func(ctx context.Context) (*grpc.ClientConn, error)) *Vision { + return &Vision{g} +} + +// Vision gets VisionService client +func (v *Vision) Vision() *VisionServiceClient { + return &VisionServiceClient{getConn: v.getConn} +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/apiendpoint/apiendpoint.go b/vendor/github.com/yandex-cloud/go-sdk/gen/apiendpoint/apiendpoint.go index e713cec98..2d845aa4a 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/apiendpoint/apiendpoint.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/apiendpoint/apiendpoint.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint" + endpoint "github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint" ) //revive:disable @@ -19,8 +19,6 @@ type ApiEndpointServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ endpoint.ApiEndpointServiceClient = &ApiEndpointServiceClient{} - // Get implements endpoint.ApiEndpointServiceClient func (c *ApiEndpointServiceClient) Get(ctx context.Context, in *endpoint.GetApiEndpointRequest, opts ...grpc.CallOption) (*endpoint.ApiEndpoint, error) { conn, err := c.getConn(ctx) @@ -38,3 +36,65 @@ func (c *ApiEndpointServiceClient) List(ctx context.Context, in *endpoint.ListAp } return endpoint.NewApiEndpointServiceClient(conn).List(ctx, in, opts...) } + +type ApiEndpointIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ApiEndpointServiceClient + request *endpoint.ListApiEndpointsRequest + + items []*endpoint.ApiEndpoint +} + +func (c *ApiEndpointServiceClient) ApiEndpointIterator(ctx context.Context, opts ...grpc.CallOption) *ApiEndpointIterator { + return &ApiEndpointIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &endpoint.ListApiEndpointsRequest{ + PageSize: 1000, + }, + } +} + +func (it *ApiEndpointIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Endpoints + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ApiEndpointIterator) Value() *endpoint.ApiEndpoint { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ApiEndpointIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/compute_group.go b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/compute_group.go index ee4d17bff..011b71a4f 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/compute_group.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/compute_group.go @@ -47,3 +47,8 @@ func (c *Compute) Snapshot() *SnapshotServiceClient { func (c *Compute) Zone() *ZoneServiceClient { return &ZoneServiceClient{getConn: c.getConn} } + +// PlacementGroup gets PlacementGroupService client +func (c *Compute) PlacementGroup() *PlacementGroupServiceClient { + return &PlacementGroupServiceClient{getConn: c.getConn} +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/disk.go b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/disk.go index f48384bce..1d4128508 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/disk.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/disk.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1" + compute "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type DiskServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ compute.DiskServiceClient = &DiskServiceClient{} - // Create implements compute.DiskServiceClient func (c *DiskServiceClient) Create(ctx context.Context, in *compute.CreateDiskRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -58,6 +56,69 @@ func (c *DiskServiceClient) List(ctx context.Context, in *compute.ListDisksReque return compute.NewDiskServiceClient(conn).List(ctx, in, opts...) } +type DiskIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *DiskServiceClient + request *compute.ListDisksRequest + + items []*compute.Disk +} + +func (c *DiskServiceClient) DiskIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *DiskIterator { + return &DiskIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &compute.ListDisksRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *DiskIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Disks + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *DiskIterator) Value() *compute.Disk { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *DiskIterator) Error() error { + return it.err +} + // ListOperations implements compute.DiskServiceClient func (c *DiskServiceClient) ListOperations(ctx context.Context, in *compute.ListDiskOperationsRequest, opts ...grpc.CallOption) (*compute.ListDiskOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -67,6 +128,69 @@ func (c *DiskServiceClient) ListOperations(ctx context.Context, in *compute.List return compute.NewDiskServiceClient(conn).ListOperations(ctx, in, opts...) } +type DiskOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *DiskServiceClient + request *compute.ListDiskOperationsRequest + + items []*operation.Operation +} + +func (c *DiskServiceClient) DiskOperationsIterator(ctx context.Context, diskId string, opts ...grpc.CallOption) *DiskOperationsIterator { + return &DiskOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &compute.ListDiskOperationsRequest{ + DiskId: diskId, + PageSize: 1000, + }, + } +} + +func (it *DiskOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *DiskOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *DiskOperationsIterator) Error() error { + return it.err +} + // Update implements compute.DiskServiceClient func (c *DiskServiceClient) Update(ctx context.Context, in *compute.UpdateDiskRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/disktype.go b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/disktype.go index 23c13dd2d..e276d43cf 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/disktype.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/disktype.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1" + compute "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1" ) //revive:disable @@ -19,8 +19,6 @@ type DiskTypeServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ compute.DiskTypeServiceClient = &DiskTypeServiceClient{} - // Get implements compute.DiskTypeServiceClient func (c *DiskTypeServiceClient) Get(ctx context.Context, in *compute.GetDiskTypeRequest, opts ...grpc.CallOption) (*compute.DiskType, error) { conn, err := c.getConn(ctx) @@ -38,3 +36,65 @@ func (c *DiskTypeServiceClient) List(ctx context.Context, in *compute.ListDiskTy } return compute.NewDiskTypeServiceClient(conn).List(ctx, in, opts...) } + +type DiskTypeIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *DiskTypeServiceClient + request *compute.ListDiskTypesRequest + + items []*compute.DiskType +} + +func (c *DiskTypeServiceClient) DiskTypeIterator(ctx context.Context, opts ...grpc.CallOption) *DiskTypeIterator { + return &DiskTypeIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &compute.ListDiskTypesRequest{ + PageSize: 1000, + }, + } +} + +func (it *DiskTypeIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.DiskTypes + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *DiskTypeIterator) Value() *compute.DiskType { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *DiskTypeIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/image.go b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/image.go index d2ff9eb50..1967e14a0 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/image.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/image.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1" + compute "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type ImageServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ compute.ImageServiceClient = &ImageServiceClient{} - // Create implements compute.ImageServiceClient func (c *ImageServiceClient) Create(ctx context.Context, in *compute.CreateImageRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -67,6 +65,69 @@ func (c *ImageServiceClient) List(ctx context.Context, in *compute.ListImagesReq return compute.NewImageServiceClient(conn).List(ctx, in, opts...) } +type ImageIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ImageServiceClient + request *compute.ListImagesRequest + + items []*compute.Image +} + +func (c *ImageServiceClient) ImageIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *ImageIterator { + return &ImageIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &compute.ListImagesRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *ImageIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Images + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ImageIterator) Value() *compute.Image { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ImageIterator) Error() error { + return it.err +} + // ListOperations implements compute.ImageServiceClient func (c *ImageServiceClient) ListOperations(ctx context.Context, in *compute.ListImageOperationsRequest, opts ...grpc.CallOption) (*compute.ListImageOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -76,6 +137,69 @@ func (c *ImageServiceClient) ListOperations(ctx context.Context, in *compute.Lis return compute.NewImageServiceClient(conn).ListOperations(ctx, in, opts...) } +type ImageOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ImageServiceClient + request *compute.ListImageOperationsRequest + + items []*operation.Operation +} + +func (c *ImageServiceClient) ImageOperationsIterator(ctx context.Context, imageId string, opts ...grpc.CallOption) *ImageOperationsIterator { + return &ImageOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &compute.ListImageOperationsRequest{ + ImageId: imageId, + PageSize: 1000, + }, + } +} + +func (it *ImageOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ImageOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ImageOperationsIterator) Error() error { + return it.err +} + // Update implements compute.ImageServiceClient func (c *ImageServiceClient) Update(ctx context.Context, in *compute.UpdateImageRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/instance.go b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/instance.go index 1e18010e7..415379855 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/instance.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/instance.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1" + compute "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,7 +20,14 @@ type InstanceServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ compute.InstanceServiceClient = &InstanceServiceClient{} +// AddOneToOneNat implements compute.InstanceServiceClient +func (c *InstanceServiceClient) AddOneToOneNat(ctx context.Context, in *compute.AddInstanceOneToOneNatRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return compute.NewInstanceServiceClient(conn).AddOneToOneNat(ctx, in, opts...) +} // AttachDisk implements compute.InstanceServiceClient func (c *InstanceServiceClient) AttachDisk(ctx context.Context, in *compute.AttachInstanceDiskRequest, opts ...grpc.CallOption) (*operation.Operation, error) { @@ -85,6 +92,69 @@ func (c *InstanceServiceClient) List(ctx context.Context, in *compute.ListInstan return compute.NewInstanceServiceClient(conn).List(ctx, in, opts...) } +type InstanceIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *InstanceServiceClient + request *compute.ListInstancesRequest + + items []*compute.Instance +} + +func (c *InstanceServiceClient) InstanceIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *InstanceIterator { + return &InstanceIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &compute.ListInstancesRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *InstanceIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Instances + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *InstanceIterator) Value() *compute.Instance { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *InstanceIterator) Error() error { + return it.err +} + // ListOperations implements compute.InstanceServiceClient func (c *InstanceServiceClient) ListOperations(ctx context.Context, in *compute.ListInstanceOperationsRequest, opts ...grpc.CallOption) (*compute.ListInstanceOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -94,6 +164,78 @@ func (c *InstanceServiceClient) ListOperations(ctx context.Context, in *compute. return compute.NewInstanceServiceClient(conn).ListOperations(ctx, in, opts...) } +type InstanceOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *InstanceServiceClient + request *compute.ListInstanceOperationsRequest + + items []*operation.Operation +} + +func (c *InstanceServiceClient) InstanceOperationsIterator(ctx context.Context, instanceId string, opts ...grpc.CallOption) *InstanceOperationsIterator { + return &InstanceOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &compute.ListInstanceOperationsRequest{ + InstanceId: instanceId, + PageSize: 1000, + }, + } +} + +func (it *InstanceOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *InstanceOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *InstanceOperationsIterator) Error() error { + return it.err +} + +// RemoveOneToOneNat implements compute.InstanceServiceClient +func (c *InstanceServiceClient) RemoveOneToOneNat(ctx context.Context, in *compute.RemoveInstanceOneToOneNatRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return compute.NewInstanceServiceClient(conn).RemoveOneToOneNat(ctx, in, opts...) +} + // Restart implements compute.InstanceServiceClient func (c *InstanceServiceClient) Restart(ctx context.Context, in *compute.RestartInstanceRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -138,3 +280,12 @@ func (c *InstanceServiceClient) UpdateMetadata(ctx context.Context, in *compute. } return compute.NewInstanceServiceClient(conn).UpdateMetadata(ctx, in, opts...) } + +// UpdateNetworkInterface implements compute.InstanceServiceClient +func (c *InstanceServiceClient) UpdateNetworkInterface(ctx context.Context, in *compute.UpdateInstanceNetworkInterfaceRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return compute.NewInstanceServiceClient(conn).UpdateNetworkInterface(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/instancegroup/instancegroup.go b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/instancegroup/instancegroup.go index 6e2c5b74f..69b8ec93b 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/instancegroup/instancegroup.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/instancegroup/instancegroup.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup" + instancegroup "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type InstanceGroupServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ instancegroup.InstanceGroupServiceClient = &InstanceGroupServiceClient{} - // Create implements instancegroup.InstanceGroupServiceClient func (c *InstanceGroupServiceClient) Create(ctx context.Context, in *instancegroup.CreateInstanceGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -67,6 +65,69 @@ func (c *InstanceGroupServiceClient) List(ctx context.Context, in *instancegroup return instancegroup.NewInstanceGroupServiceClient(conn).List(ctx, in, opts...) } +type InstanceGroupIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *InstanceGroupServiceClient + request *instancegroup.ListInstanceGroupsRequest + + items []*instancegroup.InstanceGroup +} + +func (c *InstanceGroupServiceClient) InstanceGroupIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *InstanceGroupIterator { + return &InstanceGroupIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &instancegroup.ListInstanceGroupsRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *InstanceGroupIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.InstanceGroups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *InstanceGroupIterator) Value() *instancegroup.InstanceGroup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *InstanceGroupIterator) Error() error { + return it.err +} + // ListInstances implements instancegroup.InstanceGroupServiceClient func (c *InstanceGroupServiceClient) ListInstances(ctx context.Context, in *instancegroup.ListInstanceGroupInstancesRequest, opts ...grpc.CallOption) (*instancegroup.ListInstanceGroupInstancesResponse, error) { conn, err := c.getConn(ctx) @@ -76,6 +137,69 @@ func (c *InstanceGroupServiceClient) ListInstances(ctx context.Context, in *inst return instancegroup.NewInstanceGroupServiceClient(conn).ListInstances(ctx, in, opts...) } +type InstanceGroupInstancesIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *InstanceGroupServiceClient + request *instancegroup.ListInstanceGroupInstancesRequest + + items []*instancegroup.ManagedInstance +} + +func (c *InstanceGroupServiceClient) InstanceGroupInstancesIterator(ctx context.Context, instanceGroupId string, opts ...grpc.CallOption) *InstanceGroupInstancesIterator { + return &InstanceGroupInstancesIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &instancegroup.ListInstanceGroupInstancesRequest{ + InstanceGroupId: instanceGroupId, + PageSize: 1000, + }, + } +} + +func (it *InstanceGroupInstancesIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListInstances(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Instances + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *InstanceGroupInstancesIterator) Value() *instancegroup.ManagedInstance { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *InstanceGroupInstancesIterator) Error() error { + return it.err +} + // ListLogRecords implements instancegroup.InstanceGroupServiceClient func (c *InstanceGroupServiceClient) ListLogRecords(ctx context.Context, in *instancegroup.ListInstanceGroupLogRecordsRequest, opts ...grpc.CallOption) (*instancegroup.ListInstanceGroupLogRecordsResponse, error) { conn, err := c.getConn(ctx) @@ -85,6 +209,69 @@ func (c *InstanceGroupServiceClient) ListLogRecords(ctx context.Context, in *ins return instancegroup.NewInstanceGroupServiceClient(conn).ListLogRecords(ctx, in, opts...) } +type InstanceGroupLogRecordsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *InstanceGroupServiceClient + request *instancegroup.ListInstanceGroupLogRecordsRequest + + items []*instancegroup.LogRecord +} + +func (c *InstanceGroupServiceClient) InstanceGroupLogRecordsIterator(ctx context.Context, instanceGroupId string, opts ...grpc.CallOption) *InstanceGroupLogRecordsIterator { + return &InstanceGroupLogRecordsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &instancegroup.ListInstanceGroupLogRecordsRequest{ + InstanceGroupId: instanceGroupId, + PageSize: 1000, + }, + } +} + +func (it *InstanceGroupLogRecordsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListLogRecords(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.LogRecords + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *InstanceGroupLogRecordsIterator) Value() *instancegroup.LogRecord { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *InstanceGroupLogRecordsIterator) Error() error { + return it.err +} + // ListOperations implements instancegroup.InstanceGroupServiceClient func (c *InstanceGroupServiceClient) ListOperations(ctx context.Context, in *instancegroup.ListInstanceGroupOperationsRequest, opts ...grpc.CallOption) (*instancegroup.ListInstanceGroupOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -94,6 +281,87 @@ func (c *InstanceGroupServiceClient) ListOperations(ctx context.Context, in *ins return instancegroup.NewInstanceGroupServiceClient(conn).ListOperations(ctx, in, opts...) } +type InstanceGroupOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *InstanceGroupServiceClient + request *instancegroup.ListInstanceGroupOperationsRequest + + items []*operation.Operation +} + +func (c *InstanceGroupServiceClient) InstanceGroupOperationsIterator(ctx context.Context, instanceGroupId string, opts ...grpc.CallOption) *InstanceGroupOperationsIterator { + return &InstanceGroupOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &instancegroup.ListInstanceGroupOperationsRequest{ + InstanceGroupId: instanceGroupId, + PageSize: 1000, + }, + } +} + +func (it *InstanceGroupOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *InstanceGroupOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *InstanceGroupOperationsIterator) Error() error { + return it.err +} + +// Start implements instancegroup.InstanceGroupServiceClient +func (c *InstanceGroupServiceClient) Start(ctx context.Context, in *instancegroup.StartInstanceGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return instancegroup.NewInstanceGroupServiceClient(conn).Start(ctx, in, opts...) +} + +// Stop implements instancegroup.InstanceGroupServiceClient +func (c *InstanceGroupServiceClient) Stop(ctx context.Context, in *instancegroup.StopInstanceGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return instancegroup.NewInstanceGroupServiceClient(conn).Stop(ctx, in, opts...) +} + // Update implements instancegroup.InstanceGroupServiceClient func (c *InstanceGroupServiceClient) Update(ctx context.Context, in *instancegroup.UpdateInstanceGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/placementgroup.go b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/placementgroup.go new file mode 100644 index 000000000..777e7f129 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/placementgroup.go @@ -0,0 +1,273 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package compute + +import ( + "context" + + "google.golang.org/grpc" + + compute "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1" + "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" +) + +//revive:disable + +// PlacementGroupServiceClient is a compute.PlacementGroupServiceClient with +// lazy GRPC connection initialization. +type PlacementGroupServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// Create implements compute.PlacementGroupServiceClient +func (c *PlacementGroupServiceClient) Create(ctx context.Context, in *compute.CreatePlacementGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return compute.NewPlacementGroupServiceClient(conn).Create(ctx, in, opts...) +} + +// Delete implements compute.PlacementGroupServiceClient +func (c *PlacementGroupServiceClient) Delete(ctx context.Context, in *compute.DeletePlacementGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return compute.NewPlacementGroupServiceClient(conn).Delete(ctx, in, opts...) +} + +// Get implements compute.PlacementGroupServiceClient +func (c *PlacementGroupServiceClient) Get(ctx context.Context, in *compute.GetPlacementGroupRequest, opts ...grpc.CallOption) (*compute.PlacementGroup, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return compute.NewPlacementGroupServiceClient(conn).Get(ctx, in, opts...) +} + +// List implements compute.PlacementGroupServiceClient +func (c *PlacementGroupServiceClient) List(ctx context.Context, in *compute.ListPlacementGroupsRequest, opts ...grpc.CallOption) (*compute.ListPlacementGroupsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return compute.NewPlacementGroupServiceClient(conn).List(ctx, in, opts...) +} + +type PlacementGroupIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *PlacementGroupServiceClient + request *compute.ListPlacementGroupsRequest + + items []*compute.PlacementGroup +} + +func (c *PlacementGroupServiceClient) PlacementGroupIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *PlacementGroupIterator { + return &PlacementGroupIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &compute.ListPlacementGroupsRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *PlacementGroupIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.PlacementGroups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *PlacementGroupIterator) Value() *compute.PlacementGroup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *PlacementGroupIterator) Error() error { + return it.err +} + +// ListInstances implements compute.PlacementGroupServiceClient +func (c *PlacementGroupServiceClient) ListInstances(ctx context.Context, in *compute.ListPlacementGroupInstancesRequest, opts ...grpc.CallOption) (*compute.ListPlacementGroupInstancesResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return compute.NewPlacementGroupServiceClient(conn).ListInstances(ctx, in, opts...) +} + +type PlacementGroupInstancesIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *PlacementGroupServiceClient + request *compute.ListPlacementGroupInstancesRequest + + items []*compute.Instance +} + +func (c *PlacementGroupServiceClient) PlacementGroupInstancesIterator(ctx context.Context, placementGroupId string, opts ...grpc.CallOption) *PlacementGroupInstancesIterator { + return &PlacementGroupInstancesIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &compute.ListPlacementGroupInstancesRequest{ + PlacementGroupId: placementGroupId, + PageSize: 1000, + }, + } +} + +func (it *PlacementGroupInstancesIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListInstances(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Instances + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *PlacementGroupInstancesIterator) Value() *compute.Instance { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *PlacementGroupInstancesIterator) Error() error { + return it.err +} + +// ListOperations implements compute.PlacementGroupServiceClient +func (c *PlacementGroupServiceClient) ListOperations(ctx context.Context, in *compute.ListPlacementGroupOperationsRequest, opts ...grpc.CallOption) (*compute.ListPlacementGroupOperationsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return compute.NewPlacementGroupServiceClient(conn).ListOperations(ctx, in, opts...) +} + +type PlacementGroupOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *PlacementGroupServiceClient + request *compute.ListPlacementGroupOperationsRequest + + items []*operation.Operation +} + +func (c *PlacementGroupServiceClient) PlacementGroupOperationsIterator(ctx context.Context, placementGroupId string, opts ...grpc.CallOption) *PlacementGroupOperationsIterator { + return &PlacementGroupOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &compute.ListPlacementGroupOperationsRequest{ + PlacementGroupId: placementGroupId, + PageSize: 1000, + }, + } +} + +func (it *PlacementGroupOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *PlacementGroupOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *PlacementGroupOperationsIterator) Error() error { + return it.err +} + +// Update implements compute.PlacementGroupServiceClient +func (c *PlacementGroupServiceClient) Update(ctx context.Context, in *compute.UpdatePlacementGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return compute.NewPlacementGroupServiceClient(conn).Update(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/snapshot.go b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/snapshot.go index 302aa1c55..69f830da1 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/snapshot.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/snapshot.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1" + compute "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type SnapshotServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ compute.SnapshotServiceClient = &SnapshotServiceClient{} - // Create implements compute.SnapshotServiceClient func (c *SnapshotServiceClient) Create(ctx context.Context, in *compute.CreateSnapshotRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -58,6 +56,69 @@ func (c *SnapshotServiceClient) List(ctx context.Context, in *compute.ListSnapsh return compute.NewSnapshotServiceClient(conn).List(ctx, in, opts...) } +type SnapshotIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *SnapshotServiceClient + request *compute.ListSnapshotsRequest + + items []*compute.Snapshot +} + +func (c *SnapshotServiceClient) SnapshotIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *SnapshotIterator { + return &SnapshotIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &compute.ListSnapshotsRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *SnapshotIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Snapshots + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *SnapshotIterator) Value() *compute.Snapshot { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *SnapshotIterator) Error() error { + return it.err +} + // ListOperations implements compute.SnapshotServiceClient func (c *SnapshotServiceClient) ListOperations(ctx context.Context, in *compute.ListSnapshotOperationsRequest, opts ...grpc.CallOption) (*compute.ListSnapshotOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -67,6 +128,69 @@ func (c *SnapshotServiceClient) ListOperations(ctx context.Context, in *compute. return compute.NewSnapshotServiceClient(conn).ListOperations(ctx, in, opts...) } +type SnapshotOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *SnapshotServiceClient + request *compute.ListSnapshotOperationsRequest + + items []*operation.Operation +} + +func (c *SnapshotServiceClient) SnapshotOperationsIterator(ctx context.Context, snapshotId string, opts ...grpc.CallOption) *SnapshotOperationsIterator { + return &SnapshotOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &compute.ListSnapshotOperationsRequest{ + SnapshotId: snapshotId, + PageSize: 1000, + }, + } +} + +func (it *SnapshotOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *SnapshotOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *SnapshotOperationsIterator) Error() error { + return it.err +} + // Update implements compute.SnapshotServiceClient func (c *SnapshotServiceClient) Update(ctx context.Context, in *compute.UpdateSnapshotRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/zone.go b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/zone.go index f92b7aaf8..e3d553301 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/compute/zone.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/compute/zone.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1" + compute "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1" ) //revive:disable @@ -19,8 +19,6 @@ type ZoneServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ compute.ZoneServiceClient = &ZoneServiceClient{} - // Get implements compute.ZoneServiceClient func (c *ZoneServiceClient) Get(ctx context.Context, in *compute.GetZoneRequest, opts ...grpc.CallOption) (*compute.Zone, error) { conn, err := c.getConn(ctx) @@ -38,3 +36,65 @@ func (c *ZoneServiceClient) List(ctx context.Context, in *compute.ListZonesReque } return compute.NewZoneServiceClient(conn).List(ctx, in, opts...) } + +type ZoneIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ZoneServiceClient + request *compute.ListZonesRequest + + items []*compute.Zone +} + +func (c *ZoneServiceClient) ZoneIterator(ctx context.Context, opts ...grpc.CallOption) *ZoneIterator { + return &ZoneIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &compute.ListZonesRequest{ + PageSize: 1000, + }, + } +} + +func (it *ZoneIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Zones + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ZoneIterator) Value() *compute.Zone { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ZoneIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/containerregistry_group.go b/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/containerregistry_group.go index d6e2c61d9..567476735 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/containerregistry_group.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/containerregistry_group.go @@ -32,3 +32,8 @@ func (c *ContainerRegistry) Repository() *RepositoryServiceClient { func (c *ContainerRegistry) Image() *ImageServiceClient { return &ImageServiceClient{getConn: c.getConn} } + +// LifecyclePolicy gets LifecyclePolicyService client +func (c *ContainerRegistry) LifecyclePolicy() *LifecyclePolicyServiceClient { + return &LifecyclePolicyServiceClient{getConn: c.getConn} +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/image.go b/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/image.go index 849dc54d4..00336fc06 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/image.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/image.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1" + containerregistry "github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type ImageServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ containerregistry.ImageServiceClient = &ImageServiceClient{} - // Delete implements containerregistry.ImageServiceClient func (c *ImageServiceClient) Delete(ctx context.Context, in *containerregistry.DeleteImageRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -48,3 +46,66 @@ func (c *ImageServiceClient) List(ctx context.Context, in *containerregistry.Lis } return containerregistry.NewImageServiceClient(conn).List(ctx, in, opts...) } + +type ImageIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ImageServiceClient + request *containerregistry.ListImagesRequest + + items []*containerregistry.Image +} + +func (c *ImageServiceClient) ImageIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *ImageIterator { + return &ImageIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &containerregistry.ListImagesRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *ImageIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Images + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ImageIterator) Value() *containerregistry.Image { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ImageIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/lifecyclepolicy.go b/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/lifecyclepolicy.go new file mode 100644 index 000000000..d0f0be729 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/lifecyclepolicy.go @@ -0,0 +1,228 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package containerregistry + +import ( + "context" + + "google.golang.org/grpc" + + containerregistry "github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1" + "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" +) + +//revive:disable + +// LifecyclePolicyServiceClient is a containerregistry.LifecyclePolicyServiceClient with +// lazy GRPC connection initialization. +type LifecyclePolicyServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// Create implements containerregistry.LifecyclePolicyServiceClient +func (c *LifecyclePolicyServiceClient) Create(ctx context.Context, in *containerregistry.CreateLifecyclePolicyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return containerregistry.NewLifecyclePolicyServiceClient(conn).Create(ctx, in, opts...) +} + +// Delete implements containerregistry.LifecyclePolicyServiceClient +func (c *LifecyclePolicyServiceClient) Delete(ctx context.Context, in *containerregistry.DeleteLifecyclePolicyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return containerregistry.NewLifecyclePolicyServiceClient(conn).Delete(ctx, in, opts...) +} + +// DryRun implements containerregistry.LifecyclePolicyServiceClient +func (c *LifecyclePolicyServiceClient) DryRun(ctx context.Context, in *containerregistry.DryRunLifecyclePolicyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return containerregistry.NewLifecyclePolicyServiceClient(conn).DryRun(ctx, in, opts...) +} + +// Get implements containerregistry.LifecyclePolicyServiceClient +func (c *LifecyclePolicyServiceClient) Get(ctx context.Context, in *containerregistry.GetLifecyclePolicyRequest, opts ...grpc.CallOption) (*containerregistry.LifecyclePolicy, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return containerregistry.NewLifecyclePolicyServiceClient(conn).Get(ctx, in, opts...) +} + +// GetDryRunResult implements containerregistry.LifecyclePolicyServiceClient +func (c *LifecyclePolicyServiceClient) GetDryRunResult(ctx context.Context, in *containerregistry.GetDryRunLifecyclePolicyResultRequest, opts ...grpc.CallOption) (*containerregistry.DryRunLifecyclePolicyResult, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return containerregistry.NewLifecyclePolicyServiceClient(conn).GetDryRunResult(ctx, in, opts...) +} + +// List implements containerregistry.LifecyclePolicyServiceClient +func (c *LifecyclePolicyServiceClient) List(ctx context.Context, in *containerregistry.ListLifecyclePoliciesRequest, opts ...grpc.CallOption) (*containerregistry.ListLifecyclePoliciesResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return containerregistry.NewLifecyclePolicyServiceClient(conn).List(ctx, in, opts...) +} + +// ListDryRunResultAffectedImages implements containerregistry.LifecyclePolicyServiceClient +func (c *LifecyclePolicyServiceClient) ListDryRunResultAffectedImages(ctx context.Context, in *containerregistry.ListDryRunLifecyclePolicyResultAffectedImagesRequest, opts ...grpc.CallOption) (*containerregistry.ListDryRunLifecyclePolicyResultAffectedImagesResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return containerregistry.NewLifecyclePolicyServiceClient(conn).ListDryRunResultAffectedImages(ctx, in, opts...) +} + +type LifecyclePolicyDryRunResultAffectedImagesIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *LifecyclePolicyServiceClient + request *containerregistry.ListDryRunLifecyclePolicyResultAffectedImagesRequest + + items []*containerregistry.Image +} + +func (c *LifecyclePolicyServiceClient) LifecyclePolicyDryRunResultAffectedImagesIterator(ctx context.Context, dryRunLifecyclePolicyResultId string, opts ...grpc.CallOption) *LifecyclePolicyDryRunResultAffectedImagesIterator { + return &LifecyclePolicyDryRunResultAffectedImagesIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &containerregistry.ListDryRunLifecyclePolicyResultAffectedImagesRequest{ + DryRunLifecyclePolicyResultId: dryRunLifecyclePolicyResultId, + PageSize: 1000, + }, + } +} + +func (it *LifecyclePolicyDryRunResultAffectedImagesIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListDryRunResultAffectedImages(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.AffectedImages + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *LifecyclePolicyDryRunResultAffectedImagesIterator) Value() *containerregistry.Image { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *LifecyclePolicyDryRunResultAffectedImagesIterator) Error() error { + return it.err +} + +// ListDryRunResults implements containerregistry.LifecyclePolicyServiceClient +func (c *LifecyclePolicyServiceClient) ListDryRunResults(ctx context.Context, in *containerregistry.ListDryRunLifecyclePolicyResultsRequest, opts ...grpc.CallOption) (*containerregistry.ListDryRunLifecyclePolicyResultsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return containerregistry.NewLifecyclePolicyServiceClient(conn).ListDryRunResults(ctx, in, opts...) +} + +type LifecyclePolicyDryRunResultsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *LifecyclePolicyServiceClient + request *containerregistry.ListDryRunLifecyclePolicyResultsRequest + + items []*containerregistry.DryRunLifecyclePolicyResult +} + +func (c *LifecyclePolicyServiceClient) LifecyclePolicyDryRunResultsIterator(ctx context.Context, lifecyclePolicyId string, opts ...grpc.CallOption) *LifecyclePolicyDryRunResultsIterator { + return &LifecyclePolicyDryRunResultsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &containerregistry.ListDryRunLifecyclePolicyResultsRequest{ + LifecyclePolicyId: lifecyclePolicyId, + PageSize: 1000, + }, + } +} + +func (it *LifecyclePolicyDryRunResultsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListDryRunResults(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.DryRunLifecyclePolicyResults + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *LifecyclePolicyDryRunResultsIterator) Value() *containerregistry.DryRunLifecyclePolicyResult { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *LifecyclePolicyDryRunResultsIterator) Error() error { + return it.err +} + +// Update implements containerregistry.LifecyclePolicyServiceClient +func (c *LifecyclePolicyServiceClient) Update(ctx context.Context, in *containerregistry.UpdateLifecyclePolicyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return containerregistry.NewLifecyclePolicyServiceClient(conn).Update(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/registry.go b/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/registry.go index 06222fb52..64ecff0d8 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/registry.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/registry.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc" "github.com/yandex-cloud/go-genproto/yandex/cloud/access" - "github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1" + containerregistry "github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -21,8 +21,6 @@ type RegistryServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ containerregistry.RegistryServiceClient = &RegistryServiceClient{} - // Create implements containerregistry.RegistryServiceClient func (c *RegistryServiceClient) Create(ctx context.Context, in *containerregistry.CreateRegistryRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -59,6 +57,69 @@ func (c *RegistryServiceClient) List(ctx context.Context, in *containerregistry. return containerregistry.NewRegistryServiceClient(conn).List(ctx, in, opts...) } +type RegistryIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *RegistryServiceClient + request *containerregistry.ListRegistriesRequest + + items []*containerregistry.Registry +} + +func (c *RegistryServiceClient) RegistryIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *RegistryIterator { + return &RegistryIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &containerregistry.ListRegistriesRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *RegistryIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Registries + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *RegistryIterator) Value() *containerregistry.Registry { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *RegistryIterator) Error() error { + return it.err +} + // ListAccessBindings implements containerregistry.RegistryServiceClient func (c *RegistryServiceClient) ListAccessBindings(ctx context.Context, in *access.ListAccessBindingsRequest, opts ...grpc.CallOption) (*access.ListAccessBindingsResponse, error) { conn, err := c.getConn(ctx) @@ -68,6 +129,69 @@ func (c *RegistryServiceClient) ListAccessBindings(ctx context.Context, in *acce return containerregistry.NewRegistryServiceClient(conn).ListAccessBindings(ctx, in, opts...) } +type RegistryAccessBindingsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *RegistryServiceClient + request *access.ListAccessBindingsRequest + + items []*access.AccessBinding +} + +func (c *RegistryServiceClient) RegistryAccessBindingsIterator(ctx context.Context, resourceId string, opts ...grpc.CallOption) *RegistryAccessBindingsIterator { + return &RegistryAccessBindingsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &access.ListAccessBindingsRequest{ + ResourceId: resourceId, + PageSize: 1000, + }, + } +} + +func (it *RegistryAccessBindingsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListAccessBindings(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.AccessBindings + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *RegistryAccessBindingsIterator) Value() *access.AccessBinding { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *RegistryAccessBindingsIterator) Error() error { + return it.err +} + // SetAccessBindings implements containerregistry.RegistryServiceClient func (c *RegistryServiceClient) SetAccessBindings(ctx context.Context, in *access.SetAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/repository.go b/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/repository.go index 2c3c9c59a..e0ba048b0 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/repository.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/containerregistry/repository.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc" "github.com/yandex-cloud/go-genproto/yandex/cloud/access" - "github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1" + containerregistry "github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -21,8 +21,6 @@ type RepositoryServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ containerregistry.RepositoryServiceClient = &RepositoryServiceClient{} - // Get implements containerregistry.RepositoryServiceClient func (c *RepositoryServiceClient) Get(ctx context.Context, in *containerregistry.GetRepositoryRequest, opts ...grpc.CallOption) (*containerregistry.Repository, error) { conn, err := c.getConn(ctx) @@ -50,6 +48,69 @@ func (c *RepositoryServiceClient) List(ctx context.Context, in *containerregistr return containerregistry.NewRepositoryServiceClient(conn).List(ctx, in, opts...) } +type RepositoryIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *RepositoryServiceClient + request *containerregistry.ListRepositoriesRequest + + items []*containerregistry.Repository +} + +func (c *RepositoryServiceClient) RepositoryIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *RepositoryIterator { + return &RepositoryIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &containerregistry.ListRepositoriesRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *RepositoryIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Repositories + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *RepositoryIterator) Value() *containerregistry.Repository { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *RepositoryIterator) Error() error { + return it.err +} + // ListAccessBindings implements containerregistry.RepositoryServiceClient func (c *RepositoryServiceClient) ListAccessBindings(ctx context.Context, in *access.ListAccessBindingsRequest, opts ...grpc.CallOption) (*access.ListAccessBindingsResponse, error) { conn, err := c.getConn(ctx) @@ -59,6 +120,69 @@ func (c *RepositoryServiceClient) ListAccessBindings(ctx context.Context, in *ac return containerregistry.NewRepositoryServiceClient(conn).ListAccessBindings(ctx, in, opts...) } +type RepositoryAccessBindingsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *RepositoryServiceClient + request *access.ListAccessBindingsRequest + + items []*access.AccessBinding +} + +func (c *RepositoryServiceClient) RepositoryAccessBindingsIterator(ctx context.Context, resourceId string, opts ...grpc.CallOption) *RepositoryAccessBindingsIterator { + return &RepositoryAccessBindingsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &access.ListAccessBindingsRequest{ + ResourceId: resourceId, + PageSize: 1000, + }, + } +} + +func (it *RepositoryAccessBindingsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListAccessBindings(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.AccessBindings + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *RepositoryAccessBindingsIterator) Value() *access.AccessBinding { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *RepositoryAccessBindingsIterator) Error() error { + return it.err +} + // SetAccessBindings implements containerregistry.RepositoryServiceClient func (c *RepositoryServiceClient) SetAccessBindings(ctx context.Context, in *access.SetAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/dataproc/cluster.go b/vendor/github.com/yandex-cloud/go-sdk/gen/dataproc/cluster.go new file mode 100644 index 000000000..5b063a645 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/dataproc/cluster.go @@ -0,0 +1,291 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package dataproc + +import ( + "context" + + "google.golang.org/grpc" + + dataproc "github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1" + "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" +) + +//revive:disable + +// ClusterServiceClient is a dataproc.ClusterServiceClient with +// lazy GRPC connection initialization. +type ClusterServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// Create implements dataproc.ClusterServiceClient +func (c *ClusterServiceClient) Create(ctx context.Context, in *dataproc.CreateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewClusterServiceClient(conn).Create(ctx, in, opts...) +} + +// Delete implements dataproc.ClusterServiceClient +func (c *ClusterServiceClient) Delete(ctx context.Context, in *dataproc.DeleteClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewClusterServiceClient(conn).Delete(ctx, in, opts...) +} + +// Get implements dataproc.ClusterServiceClient +func (c *ClusterServiceClient) Get(ctx context.Context, in *dataproc.GetClusterRequest, opts ...grpc.CallOption) (*dataproc.Cluster, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewClusterServiceClient(conn).Get(ctx, in, opts...) +} + +// List implements dataproc.ClusterServiceClient +func (c *ClusterServiceClient) List(ctx context.Context, in *dataproc.ListClustersRequest, opts ...grpc.CallOption) (*dataproc.ListClustersResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewClusterServiceClient(conn).List(ctx, in, opts...) +} + +type ClusterIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *dataproc.ListClustersRequest + + items []*dataproc.Cluster +} + +func (c *ClusterServiceClient) ClusterIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *ClusterIterator { + return &ClusterIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &dataproc.ListClustersRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *ClusterIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Clusters + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterIterator) Value() *dataproc.Cluster { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterIterator) Error() error { + return it.err +} + +// ListHosts implements dataproc.ClusterServiceClient +func (c *ClusterServiceClient) ListHosts(ctx context.Context, in *dataproc.ListClusterHostsRequest, opts ...grpc.CallOption) (*dataproc.ListClusterHostsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewClusterServiceClient(conn).ListHosts(ctx, in, opts...) +} + +type ClusterHostsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *dataproc.ListClusterHostsRequest + + items []*dataproc.Host +} + +func (c *ClusterServiceClient) ClusterHostsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterHostsIterator { + return &ClusterHostsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &dataproc.ListClusterHostsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterHostsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListHosts(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Hosts + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterHostsIterator) Value() *dataproc.Host { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterHostsIterator) Error() error { + return it.err +} + +// ListOperations implements dataproc.ClusterServiceClient +func (c *ClusterServiceClient) ListOperations(ctx context.Context, in *dataproc.ListClusterOperationsRequest, opts ...grpc.CallOption) (*dataproc.ListClusterOperationsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewClusterServiceClient(conn).ListOperations(ctx, in, opts...) +} + +type ClusterOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *dataproc.ListClusterOperationsRequest + + items []*operation.Operation +} + +func (c *ClusterServiceClient) ClusterOperationsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterOperationsIterator { + return &ClusterOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &dataproc.ListClusterOperationsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterOperationsIterator) Error() error { + return it.err +} + +// Start implements dataproc.ClusterServiceClient +func (c *ClusterServiceClient) Start(ctx context.Context, in *dataproc.StartClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewClusterServiceClient(conn).Start(ctx, in, opts...) +} + +// Stop implements dataproc.ClusterServiceClient +func (c *ClusterServiceClient) Stop(ctx context.Context, in *dataproc.StopClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewClusterServiceClient(conn).Stop(ctx, in, opts...) +} + +// Update implements dataproc.ClusterServiceClient +func (c *ClusterServiceClient) Update(ctx context.Context, in *dataproc.UpdateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewClusterServiceClient(conn).Update(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/dataproc/dataproc_group.go b/vendor/github.com/yandex-cloud/go-sdk/gen/dataproc/dataproc_group.go new file mode 100644 index 000000000..38dfbacf8 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/dataproc/dataproc_group.go @@ -0,0 +1,39 @@ +// Code generated by sdkgen. DO NOT EDIT. + +package dataproc + +import ( + "context" + + "google.golang.org/grpc" +) + +// Dataproc provides access to "dataproc" component of Yandex.Cloud +type Dataproc struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// NewDataproc creates instance of Dataproc +func NewDataproc(g func(ctx context.Context) (*grpc.ClientConn, error)) *Dataproc { + return &Dataproc{g} +} + +// Cluster gets ClusterService client +func (d *Dataproc) Cluster() *ClusterServiceClient { + return &ClusterServiceClient{getConn: d.getConn} +} + +// Subcluster gets SubclusterService client +func (d *Dataproc) Subcluster() *SubclusterServiceClient { + return &SubclusterServiceClient{getConn: d.getConn} +} + +// Job gets JobService client +func (d *Dataproc) Job() *JobServiceClient { + return &JobServiceClient{getConn: d.getConn} +} + +// ResourcePreset gets ResourcePresetService client +func (d *Dataproc) ResourcePreset() *ResourcePresetServiceClient { + return &ResourcePresetServiceClient{getConn: d.getConn} +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/dataproc/job.go b/vendor/github.com/yandex-cloud/go-sdk/gen/dataproc/job.go new file mode 100644 index 000000000..2f22997ef --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/dataproc/job.go @@ -0,0 +1,120 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package dataproc + +import ( + "context" + + "google.golang.org/grpc" + + dataproc "github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1" + "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" +) + +//revive:disable + +// JobServiceClient is a dataproc.JobServiceClient with +// lazy GRPC connection initialization. +type JobServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// Create implements dataproc.JobServiceClient +func (c *JobServiceClient) Create(ctx context.Context, in *dataproc.CreateJobRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewJobServiceClient(conn).Create(ctx, in, opts...) +} + +// Get implements dataproc.JobServiceClient +func (c *JobServiceClient) Get(ctx context.Context, in *dataproc.GetJobRequest, opts ...grpc.CallOption) (*dataproc.Job, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewJobServiceClient(conn).Get(ctx, in, opts...) +} + +// List implements dataproc.JobServiceClient +func (c *JobServiceClient) List(ctx context.Context, in *dataproc.ListJobsRequest, opts ...grpc.CallOption) (*dataproc.ListJobsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewJobServiceClient(conn).List(ctx, in, opts...) +} + +type JobIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *JobServiceClient + request *dataproc.ListJobsRequest + + items []*dataproc.Job +} + +func (c *JobServiceClient) JobIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *JobIterator { + return &JobIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &dataproc.ListJobsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *JobIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Jobs + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *JobIterator) Value() *dataproc.Job { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *JobIterator) Error() error { + return it.err +} + +// ListLog implements dataproc.JobServiceClient +func (c *JobServiceClient) ListLog(ctx context.Context, in *dataproc.ListJobLogRequest, opts ...grpc.CallOption) (*dataproc.ListJobLogResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewJobServiceClient(conn).ListLog(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/dataproc/resourcepreset.go b/vendor/github.com/yandex-cloud/go-sdk/gen/dataproc/resourcepreset.go new file mode 100644 index 000000000..77a2bb423 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/dataproc/resourcepreset.go @@ -0,0 +1,100 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package dataproc + +import ( + "context" + + "google.golang.org/grpc" + + dataproc "github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1" +) + +//revive:disable + +// ResourcePresetServiceClient is a dataproc.ResourcePresetServiceClient with +// lazy GRPC connection initialization. +type ResourcePresetServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// Get implements dataproc.ResourcePresetServiceClient +func (c *ResourcePresetServiceClient) Get(ctx context.Context, in *dataproc.GetResourcePresetRequest, opts ...grpc.CallOption) (*dataproc.ResourcePreset, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewResourcePresetServiceClient(conn).Get(ctx, in, opts...) +} + +// List implements dataproc.ResourcePresetServiceClient +func (c *ResourcePresetServiceClient) List(ctx context.Context, in *dataproc.ListResourcePresetsRequest, opts ...grpc.CallOption) (*dataproc.ListResourcePresetsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewResourcePresetServiceClient(conn).List(ctx, in, opts...) +} + +type ResourcePresetIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ResourcePresetServiceClient + request *dataproc.ListResourcePresetsRequest + + items []*dataproc.ResourcePreset +} + +func (c *ResourcePresetServiceClient) ResourcePresetIterator(ctx context.Context, opts ...grpc.CallOption) *ResourcePresetIterator { + return &ResourcePresetIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &dataproc.ListResourcePresetsRequest{ + PageSize: 1000, + }, + } +} + +func (it *ResourcePresetIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.ResourcePresets + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ResourcePresetIterator) Value() *dataproc.ResourcePreset { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ResourcePresetIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/dataproc/subcluster.go b/vendor/github.com/yandex-cloud/go-sdk/gen/dataproc/subcluster.go new file mode 100644 index 000000000..b4c6cac5a --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/dataproc/subcluster.go @@ -0,0 +1,129 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package dataproc + +import ( + "context" + + "google.golang.org/grpc" + + dataproc "github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1" + "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" +) + +//revive:disable + +// SubclusterServiceClient is a dataproc.SubclusterServiceClient with +// lazy GRPC connection initialization. +type SubclusterServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// Create implements dataproc.SubclusterServiceClient +func (c *SubclusterServiceClient) Create(ctx context.Context, in *dataproc.CreateSubclusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewSubclusterServiceClient(conn).Create(ctx, in, opts...) +} + +// Delete implements dataproc.SubclusterServiceClient +func (c *SubclusterServiceClient) Delete(ctx context.Context, in *dataproc.DeleteSubclusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewSubclusterServiceClient(conn).Delete(ctx, in, opts...) +} + +// Get implements dataproc.SubclusterServiceClient +func (c *SubclusterServiceClient) Get(ctx context.Context, in *dataproc.GetSubclusterRequest, opts ...grpc.CallOption) (*dataproc.Subcluster, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewSubclusterServiceClient(conn).Get(ctx, in, opts...) +} + +// List implements dataproc.SubclusterServiceClient +func (c *SubclusterServiceClient) List(ctx context.Context, in *dataproc.ListSubclustersRequest, opts ...grpc.CallOption) (*dataproc.ListSubclustersResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewSubclusterServiceClient(conn).List(ctx, in, opts...) +} + +type SubclusterIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *SubclusterServiceClient + request *dataproc.ListSubclustersRequest + + items []*dataproc.Subcluster +} + +func (c *SubclusterServiceClient) SubclusterIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *SubclusterIterator { + return &SubclusterIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &dataproc.ListSubclustersRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *SubclusterIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Subclusters + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *SubclusterIterator) Value() *dataproc.Subcluster { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *SubclusterIterator) Error() error { + return it.err +} + +// Update implements dataproc.SubclusterServiceClient +func (c *SubclusterServiceClient) Update(ctx context.Context, in *dataproc.UpdateSubclusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return dataproc.NewSubclusterServiceClient(conn).Update(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/functions/function.go b/vendor/github.com/yandex-cloud/go-sdk/gen/functions/function.go index 1e4e5cd37..2b99b276a 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/functions/function.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/functions/function.go @@ -10,7 +10,7 @@ import ( "github.com/yandex-cloud/go-genproto/yandex/cloud/access" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" - "github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1" + functions "github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1" ) //revive:disable @@ -21,8 +21,6 @@ type FunctionServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ functions.FunctionServiceClient = &FunctionServiceClient{} - // Create implements functions.FunctionServiceClient func (c *FunctionServiceClient) Create(ctx context.Context, in *functions.CreateFunctionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -32,13 +30,13 @@ func (c *FunctionServiceClient) Create(ctx context.Context, in *functions.Create return functions.NewFunctionServiceClient(conn).Create(ctx, in, opts...) } -// CreateFunctionVersion implements functions.FunctionServiceClient -func (c *FunctionServiceClient) CreateFunctionVersion(ctx context.Context, in *functions.CreateFunctionVersionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { +// CreateVersion implements functions.FunctionServiceClient +func (c *FunctionServiceClient) CreateVersion(ctx context.Context, in *functions.CreateFunctionVersionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) if err != nil { return nil, err } - return functions.NewFunctionServiceClient(conn).CreateFunctionVersion(ctx, in, opts...) + return functions.NewFunctionServiceClient(conn).CreateVersion(ctx, in, opts...) } // Delete implements functions.FunctionServiceClient @@ -59,22 +57,22 @@ func (c *FunctionServiceClient) Get(ctx context.Context, in *functions.GetFuncti return functions.NewFunctionServiceClient(conn).Get(ctx, in, opts...) } -// GetFunctionVersion implements functions.FunctionServiceClient -func (c *FunctionServiceClient) GetFunctionVersion(ctx context.Context, in *functions.GetFunctionVersionRequest, opts ...grpc.CallOption) (*functions.Version, error) { +// GetVersion implements functions.FunctionServiceClient +func (c *FunctionServiceClient) GetVersion(ctx context.Context, in *functions.GetFunctionVersionRequest, opts ...grpc.CallOption) (*functions.Version, error) { conn, err := c.getConn(ctx) if err != nil { return nil, err } - return functions.NewFunctionServiceClient(conn).GetFunctionVersion(ctx, in, opts...) + return functions.NewFunctionServiceClient(conn).GetVersion(ctx, in, opts...) } -// GetFunctionVersionByTag implements functions.FunctionServiceClient -func (c *FunctionServiceClient) GetFunctionVersionByTag(ctx context.Context, in *functions.GetFunctionVersionByTagRequest, opts ...grpc.CallOption) (*functions.Version, error) { +// GetVersionByTag implements functions.FunctionServiceClient +func (c *FunctionServiceClient) GetVersionByTag(ctx context.Context, in *functions.GetFunctionVersionByTagRequest, opts ...grpc.CallOption) (*functions.Version, error) { conn, err := c.getConn(ctx) if err != nil { return nil, err } - return functions.NewFunctionServiceClient(conn).GetFunctionVersionByTag(ctx, in, opts...) + return functions.NewFunctionServiceClient(conn).GetVersionByTag(ctx, in, opts...) } // List implements functions.FunctionServiceClient @@ -86,6 +84,69 @@ func (c *FunctionServiceClient) List(ctx context.Context, in *functions.ListFunc return functions.NewFunctionServiceClient(conn).List(ctx, in, opts...) } +type FunctionIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *FunctionServiceClient + request *functions.ListFunctionsRequest + + items []*functions.Function +} + +func (c *FunctionServiceClient) FunctionIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *FunctionIterator { + return &FunctionIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &functions.ListFunctionsRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *FunctionIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Functions + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *FunctionIterator) Value() *functions.Function { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *FunctionIterator) Error() error { + return it.err +} + // ListAccessBindings implements functions.FunctionServiceClient func (c *FunctionServiceClient) ListAccessBindings(ctx context.Context, in *access.ListAccessBindingsRequest, opts ...grpc.CallOption) (*access.ListAccessBindingsResponse, error) { conn, err := c.getConn(ctx) @@ -95,22 +156,67 @@ func (c *FunctionServiceClient) ListAccessBindings(ctx context.Context, in *acce return functions.NewFunctionServiceClient(conn).ListAccessBindings(ctx, in, opts...) } -// ListFunctionTagHistory implements functions.FunctionServiceClient -func (c *FunctionServiceClient) ListFunctionTagHistory(ctx context.Context, in *functions.ListFunctionTagHistoryRequest, opts ...grpc.CallOption) (*functions.ListFunctionTagHistoryResponse, error) { - conn, err := c.getConn(ctx) - if err != nil { - return nil, err - } - return functions.NewFunctionServiceClient(conn).ListFunctionTagHistory(ctx, in, opts...) +type FunctionAccessBindingsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *FunctionServiceClient + request *access.ListAccessBindingsRequest + + items []*access.AccessBinding } -// ListFunctionVersions implements functions.FunctionServiceClient -func (c *FunctionServiceClient) ListFunctionVersions(ctx context.Context, in *functions.ListFunctionsVersionsRequest, opts ...grpc.CallOption) (*functions.ListFunctionsVersionsResponse, error) { - conn, err := c.getConn(ctx) - if err != nil { - return nil, err +func (c *FunctionServiceClient) FunctionAccessBindingsIterator(ctx context.Context, resourceId string, opts ...grpc.CallOption) *FunctionAccessBindingsIterator { + return &FunctionAccessBindingsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &access.ListAccessBindingsRequest{ + ResourceId: resourceId, + PageSize: 1000, + }, } - return functions.NewFunctionServiceClient(conn).ListFunctionVersions(ctx, in, opts...) +} + +func (it *FunctionAccessBindingsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListAccessBindings(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.AccessBindings + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *FunctionAccessBindingsIterator) Value() *access.AccessBinding { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *FunctionAccessBindingsIterator) Error() error { + return it.err } // ListOperations implements functions.FunctionServiceClient @@ -122,6 +228,69 @@ func (c *FunctionServiceClient) ListOperations(ctx context.Context, in *function return functions.NewFunctionServiceClient(conn).ListOperations(ctx, in, opts...) } +type FunctionOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *FunctionServiceClient + request *functions.ListFunctionOperationsRequest + + items []*operation.Operation +} + +func (c *FunctionServiceClient) FunctionOperationsIterator(ctx context.Context, functionId string, opts ...grpc.CallOption) *FunctionOperationsIterator { + return &FunctionOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &functions.ListFunctionOperationsRequest{ + FunctionId: functionId, + PageSize: 1000, + }, + } +} + +func (it *FunctionOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *FunctionOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *FunctionOperationsIterator) Error() error { + return it.err +} + // ListRuntimes implements functions.FunctionServiceClient func (c *FunctionServiceClient) ListRuntimes(ctx context.Context, in *functions.ListRuntimesRequest, opts ...grpc.CallOption) (*functions.ListRuntimesResponse, error) { conn, err := c.getConn(ctx) @@ -131,6 +300,145 @@ func (c *FunctionServiceClient) ListRuntimes(ctx context.Context, in *functions. return functions.NewFunctionServiceClient(conn).ListRuntimes(ctx, in, opts...) } +type FunctionRuntimesIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *FunctionServiceClient + request *functions.ListRuntimesRequest + + items []string +} + +func (c *FunctionServiceClient) FunctionRuntimesIterator(ctx context.Context, opts ...grpc.CallOption) *FunctionRuntimesIterator { + return &FunctionRuntimesIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &functions.ListRuntimesRequest{}, + } +} + +func (it *FunctionRuntimesIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started { + return false + } + it.started = true + + response, err := it.client.ListRuntimes(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Runtimes + return len(it.items) > 0 +} + +func (it *FunctionRuntimesIterator) Value() string { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *FunctionRuntimesIterator) Error() error { + return it.err +} + +// ListTagHistory implements functions.FunctionServiceClient +func (c *FunctionServiceClient) ListTagHistory(ctx context.Context, in *functions.ListFunctionTagHistoryRequest, opts ...grpc.CallOption) (*functions.ListFunctionTagHistoryResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return functions.NewFunctionServiceClient(conn).ListTagHistory(ctx, in, opts...) +} + +type FunctionTagHistoryIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *FunctionServiceClient + request *functions.ListFunctionTagHistoryRequest + + items []*functions.ListFunctionTagHistoryResponse_FunctionTagHistoryRecord +} + +func (c *FunctionServiceClient) FunctionTagHistoryIterator(ctx context.Context, functionId string, opts ...grpc.CallOption) *FunctionTagHistoryIterator { + return &FunctionTagHistoryIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &functions.ListFunctionTagHistoryRequest{ + FunctionId: functionId, + PageSize: 1000, + }, + } +} + +func (it *FunctionTagHistoryIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListTagHistory(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.FunctionTagHistoryRecord + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *FunctionTagHistoryIterator) Value() *functions.ListFunctionTagHistoryResponse_FunctionTagHistoryRecord { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *FunctionTagHistoryIterator) Error() error { + return it.err +} + +// ListVersions implements functions.FunctionServiceClient +func (c *FunctionServiceClient) ListVersions(ctx context.Context, in *functions.ListFunctionsVersionsRequest, opts ...grpc.CallOption) (*functions.ListFunctionsVersionsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return functions.NewFunctionServiceClient(conn).ListVersions(ctx, in, opts...) +} + // RemoveTag implements functions.FunctionServiceClient func (c *FunctionServiceClient) RemoveTag(ctx context.Context, in *functions.RemoveFunctionTagRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/iam/apikey.go b/vendor/github.com/yandex-cloud/go-sdk/gen/iam/apikey.go index 2f6f798fb..546853501 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/iam/apikey.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/iam/apikey.go @@ -6,10 +6,10 @@ package iam import ( "context" - "github.com/golang/protobuf/ptypes/empty" "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" + iam "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" + "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) //revive:disable @@ -20,8 +20,6 @@ type ApiKeyServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ iam.ApiKeyServiceClient = &ApiKeyServiceClient{} - // Create implements iam.ApiKeyServiceClient func (c *ApiKeyServiceClient) Create(ctx context.Context, in *iam.CreateApiKeyRequest, opts ...grpc.CallOption) (*iam.CreateApiKeyResponse, error) { conn, err := c.getConn(ctx) @@ -32,7 +30,7 @@ func (c *ApiKeyServiceClient) Create(ctx context.Context, in *iam.CreateApiKeyRe } // Delete implements iam.ApiKeyServiceClient -func (c *ApiKeyServiceClient) Delete(ctx context.Context, in *iam.DeleteApiKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { +func (c *ApiKeyServiceClient) Delete(ctx context.Context, in *iam.DeleteApiKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) if err != nil { return nil, err @@ -57,3 +55,147 @@ func (c *ApiKeyServiceClient) List(ctx context.Context, in *iam.ListApiKeysReque } return iam.NewApiKeyServiceClient(conn).List(ctx, in, opts...) } + +type ApiKeyIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ApiKeyServiceClient + request *iam.ListApiKeysRequest + + items []*iam.ApiKey +} + +func (c *ApiKeyServiceClient) ApiKeyIterator(ctx context.Context, serviceAccountId string, opts ...grpc.CallOption) *ApiKeyIterator { + return &ApiKeyIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &iam.ListApiKeysRequest{ + ServiceAccountId: serviceAccountId, + PageSize: 1000, + }, + } +} + +func (it *ApiKeyIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.ApiKeys + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ApiKeyIterator) Value() *iam.ApiKey { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ApiKeyIterator) Error() error { + return it.err +} + +// ListOperations implements iam.ApiKeyServiceClient +func (c *ApiKeyServiceClient) ListOperations(ctx context.Context, in *iam.ListApiKeyOperationsRequest, opts ...grpc.CallOption) (*iam.ListApiKeyOperationsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return iam.NewApiKeyServiceClient(conn).ListOperations(ctx, in, opts...) +} + +type ApiKeyOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ApiKeyServiceClient + request *iam.ListApiKeyOperationsRequest + + items []*operation.Operation +} + +func (c *ApiKeyServiceClient) ApiKeyOperationsIterator(ctx context.Context, apiKeyId string, opts ...grpc.CallOption) *ApiKeyOperationsIterator { + return &ApiKeyOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &iam.ListApiKeyOperationsRequest{ + ApiKeyId: apiKeyId, + PageSize: 1000, + }, + } +} + +func (it *ApiKeyOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ApiKeyOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ApiKeyOperationsIterator) Error() error { + return it.err +} + +// Update implements iam.ApiKeyServiceClient +func (c *ApiKeyServiceClient) Update(ctx context.Context, in *iam.UpdateApiKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return iam.NewApiKeyServiceClient(conn).Update(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/iam/awscompatibility/accesskey.go b/vendor/github.com/yandex-cloud/go-sdk/gen/iam/awscompatibility/accesskey.go index 0c7d67b90..4e90f0be0 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/iam/awscompatibility/accesskey.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/iam/awscompatibility/accesskey.go @@ -6,10 +6,10 @@ package awscompatibility import ( "context" - "github.com/golang/protobuf/ptypes/empty" "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility" + awscompatibility "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility" + "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) //revive:disable @@ -20,8 +20,6 @@ type AccessKeyServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ awscompatibility.AccessKeyServiceClient = &AccessKeyServiceClient{} - // Create implements awscompatibility.AccessKeyServiceClient func (c *AccessKeyServiceClient) Create(ctx context.Context, in *awscompatibility.CreateAccessKeyRequest, opts ...grpc.CallOption) (*awscompatibility.CreateAccessKeyResponse, error) { conn, err := c.getConn(ctx) @@ -32,7 +30,7 @@ func (c *AccessKeyServiceClient) Create(ctx context.Context, in *awscompatibilit } // Delete implements awscompatibility.AccessKeyServiceClient -func (c *AccessKeyServiceClient) Delete(ctx context.Context, in *awscompatibility.DeleteAccessKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { +func (c *AccessKeyServiceClient) Delete(ctx context.Context, in *awscompatibility.DeleteAccessKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) if err != nil { return nil, err @@ -57,3 +55,147 @@ func (c *AccessKeyServiceClient) List(ctx context.Context, in *awscompatibility. } return awscompatibility.NewAccessKeyServiceClient(conn).List(ctx, in, opts...) } + +type AccessKeyIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *AccessKeyServiceClient + request *awscompatibility.ListAccessKeysRequest + + items []*awscompatibility.AccessKey +} + +func (c *AccessKeyServiceClient) AccessKeyIterator(ctx context.Context, serviceAccountId string, opts ...grpc.CallOption) *AccessKeyIterator { + return &AccessKeyIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &awscompatibility.ListAccessKeysRequest{ + ServiceAccountId: serviceAccountId, + PageSize: 1000, + }, + } +} + +func (it *AccessKeyIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.AccessKeys + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *AccessKeyIterator) Value() *awscompatibility.AccessKey { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *AccessKeyIterator) Error() error { + return it.err +} + +// ListOperations implements awscompatibility.AccessKeyServiceClient +func (c *AccessKeyServiceClient) ListOperations(ctx context.Context, in *awscompatibility.ListAccessKeyOperationsRequest, opts ...grpc.CallOption) (*awscompatibility.ListAccessKeyOperationsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return awscompatibility.NewAccessKeyServiceClient(conn).ListOperations(ctx, in, opts...) +} + +type AccessKeyOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *AccessKeyServiceClient + request *awscompatibility.ListAccessKeyOperationsRequest + + items []*operation.Operation +} + +func (c *AccessKeyServiceClient) AccessKeyOperationsIterator(ctx context.Context, accessKeyId string, opts ...grpc.CallOption) *AccessKeyOperationsIterator { + return &AccessKeyOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &awscompatibility.ListAccessKeyOperationsRequest{ + AccessKeyId: accessKeyId, + PageSize: 1000, + }, + } +} + +func (it *AccessKeyOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *AccessKeyOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *AccessKeyOperationsIterator) Error() error { + return it.err +} + +// Update implements awscompatibility.AccessKeyServiceClient +func (c *AccessKeyServiceClient) Update(ctx context.Context, in *awscompatibility.UpdateAccessKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return awscompatibility.NewAccessKeyServiceClient(conn).Update(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/iam/iamtoken.go b/vendor/github.com/yandex-cloud/go-sdk/gen/iam/iamtoken.go index 2ef149c96..b9da9bfe2 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/iam/iamtoken.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/iam/iamtoken.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" + iam "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" ) //revive:disable @@ -19,8 +19,6 @@ type IamTokenServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ iam.IamTokenServiceClient = &IamTokenServiceClient{} - // Create implements iam.IamTokenServiceClient func (c *IamTokenServiceClient) Create(ctx context.Context, in *iam.CreateIamTokenRequest, opts ...grpc.CallOption) (*iam.CreateIamTokenResponse, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/iam/key.go b/vendor/github.com/yandex-cloud/go-sdk/gen/iam/key.go index ba985bc6a..10628a399 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/iam/key.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/iam/key.go @@ -6,10 +6,10 @@ package iam import ( "context" - "github.com/golang/protobuf/ptypes/empty" "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" + iam "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" + "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) //revive:disable @@ -20,8 +20,6 @@ type KeyServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ iam.KeyServiceClient = &KeyServiceClient{} - // Create implements iam.KeyServiceClient func (c *KeyServiceClient) Create(ctx context.Context, in *iam.CreateKeyRequest, opts ...grpc.CallOption) (*iam.CreateKeyResponse, error) { conn, err := c.getConn(ctx) @@ -32,7 +30,7 @@ func (c *KeyServiceClient) Create(ctx context.Context, in *iam.CreateKeyRequest, } // Delete implements iam.KeyServiceClient -func (c *KeyServiceClient) Delete(ctx context.Context, in *iam.DeleteKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { +func (c *KeyServiceClient) Delete(ctx context.Context, in *iam.DeleteKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) if err != nil { return nil, err @@ -57,3 +55,147 @@ func (c *KeyServiceClient) List(ctx context.Context, in *iam.ListKeysRequest, op } return iam.NewKeyServiceClient(conn).List(ctx, in, opts...) } + +type KeyIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *KeyServiceClient + request *iam.ListKeysRequest + + items []*iam.Key +} + +func (c *KeyServiceClient) KeyIterator(ctx context.Context, serviceAccountId string, opts ...grpc.CallOption) *KeyIterator { + return &KeyIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &iam.ListKeysRequest{ + ServiceAccountId: serviceAccountId, + PageSize: 1000, + }, + } +} + +func (it *KeyIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Keys + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *KeyIterator) Value() *iam.Key { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *KeyIterator) Error() error { + return it.err +} + +// ListOperations implements iam.KeyServiceClient +func (c *KeyServiceClient) ListOperations(ctx context.Context, in *iam.ListKeyOperationsRequest, opts ...grpc.CallOption) (*iam.ListKeyOperationsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return iam.NewKeyServiceClient(conn).ListOperations(ctx, in, opts...) +} + +type KeyOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *KeyServiceClient + request *iam.ListKeyOperationsRequest + + items []*operation.Operation +} + +func (c *KeyServiceClient) KeyOperationsIterator(ctx context.Context, keyId string, opts ...grpc.CallOption) *KeyOperationsIterator { + return &KeyOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &iam.ListKeyOperationsRequest{ + KeyId: keyId, + PageSize: 1000, + }, + } +} + +func (it *KeyOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *KeyOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *KeyOperationsIterator) Error() error { + return it.err +} + +// Update implements iam.KeyServiceClient +func (c *KeyServiceClient) Update(ctx context.Context, in *iam.UpdateKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return iam.NewKeyServiceClient(conn).Update(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/iam/role.go b/vendor/github.com/yandex-cloud/go-sdk/gen/iam/role.go index 001ec3910..22bf88140 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/iam/role.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/iam/role.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" + iam "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" ) //revive:disable @@ -19,8 +19,6 @@ type RoleServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ iam.RoleServiceClient = &RoleServiceClient{} - // Get implements iam.RoleServiceClient func (c *RoleServiceClient) Get(ctx context.Context, in *iam.GetRoleRequest, opts ...grpc.CallOption) (*iam.Role, error) { conn, err := c.getConn(ctx) @@ -38,3 +36,65 @@ func (c *RoleServiceClient) List(ctx context.Context, in *iam.ListRolesRequest, } return iam.NewRoleServiceClient(conn).List(ctx, in, opts...) } + +type RoleIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *RoleServiceClient + request *iam.ListRolesRequest + + items []*iam.Role +} + +func (c *RoleServiceClient) RoleIterator(ctx context.Context, opts ...grpc.CallOption) *RoleIterator { + return &RoleIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &iam.ListRolesRequest{ + PageSize: 1000, + }, + } +} + +func (it *RoleIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Roles + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *RoleIterator) Value() *iam.Role { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *RoleIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/iam/serviceaccount.go b/vendor/github.com/yandex-cloud/go-sdk/gen/iam/serviceaccount.go index ebb89feb3..4c43bfd3b 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/iam/serviceaccount.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/iam/serviceaccount.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc" "github.com/yandex-cloud/go-genproto/yandex/cloud/access" - "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" + iam "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -21,8 +21,6 @@ type ServiceAccountServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ iam.ServiceAccountServiceClient = &ServiceAccountServiceClient{} - // Create implements iam.ServiceAccountServiceClient func (c *ServiceAccountServiceClient) Create(ctx context.Context, in *iam.CreateServiceAccountRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -59,6 +57,69 @@ func (c *ServiceAccountServiceClient) List(ctx context.Context, in *iam.ListServ return iam.NewServiceAccountServiceClient(conn).List(ctx, in, opts...) } +type ServiceAccountIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ServiceAccountServiceClient + request *iam.ListServiceAccountsRequest + + items []*iam.ServiceAccount +} + +func (c *ServiceAccountServiceClient) ServiceAccountIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *ServiceAccountIterator { + return &ServiceAccountIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &iam.ListServiceAccountsRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *ServiceAccountIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.ServiceAccounts + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ServiceAccountIterator) Value() *iam.ServiceAccount { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ServiceAccountIterator) Error() error { + return it.err +} + // ListAccessBindings implements iam.ServiceAccountServiceClient func (c *ServiceAccountServiceClient) ListAccessBindings(ctx context.Context, in *access.ListAccessBindingsRequest, opts ...grpc.CallOption) (*access.ListAccessBindingsResponse, error) { conn, err := c.getConn(ctx) @@ -68,6 +129,69 @@ func (c *ServiceAccountServiceClient) ListAccessBindings(ctx context.Context, in return iam.NewServiceAccountServiceClient(conn).ListAccessBindings(ctx, in, opts...) } +type ServiceAccountAccessBindingsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ServiceAccountServiceClient + request *access.ListAccessBindingsRequest + + items []*access.AccessBinding +} + +func (c *ServiceAccountServiceClient) ServiceAccountAccessBindingsIterator(ctx context.Context, resourceId string, opts ...grpc.CallOption) *ServiceAccountAccessBindingsIterator { + return &ServiceAccountAccessBindingsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &access.ListAccessBindingsRequest{ + ResourceId: resourceId, + PageSize: 1000, + }, + } +} + +func (it *ServiceAccountAccessBindingsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListAccessBindings(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.AccessBindings + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ServiceAccountAccessBindingsIterator) Value() *access.AccessBinding { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ServiceAccountAccessBindingsIterator) Error() error { + return it.err +} + // ListOperations implements iam.ServiceAccountServiceClient func (c *ServiceAccountServiceClient) ListOperations(ctx context.Context, in *iam.ListServiceAccountOperationsRequest, opts ...grpc.CallOption) (*iam.ListServiceAccountOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -77,6 +201,69 @@ func (c *ServiceAccountServiceClient) ListOperations(ctx context.Context, in *ia return iam.NewServiceAccountServiceClient(conn).ListOperations(ctx, in, opts...) } +type ServiceAccountOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ServiceAccountServiceClient + request *iam.ListServiceAccountOperationsRequest + + items []*operation.Operation +} + +func (c *ServiceAccountServiceClient) ServiceAccountOperationsIterator(ctx context.Context, serviceAccountId string, opts ...grpc.CallOption) *ServiceAccountOperationsIterator { + return &ServiceAccountOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &iam.ListServiceAccountOperationsRequest{ + ServiceAccountId: serviceAccountId, + PageSize: 1000, + }, + } +} + +func (it *ServiceAccountOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ServiceAccountOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ServiceAccountOperationsIterator) Error() error { + return it.err +} + // SetAccessBindings implements iam.ServiceAccountServiceClient func (c *ServiceAccountServiceClient) SetAccessBindings(ctx context.Context, in *access.SetAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/iam/useraccount.go b/vendor/github.com/yandex-cloud/go-sdk/gen/iam/useraccount.go index 0af33283f..4a15763d1 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/iam/useraccount.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/iam/useraccount.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" + iam "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" ) //revive:disable @@ -19,8 +19,6 @@ type UserAccountServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ iam.UserAccountServiceClient = &UserAccountServiceClient{} - // Get implements iam.UserAccountServiceClient func (c *UserAccountServiceClient) Get(ctx context.Context, in *iam.GetUserAccountRequest, opts ...grpc.CallOption) (*iam.UserAccount, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/iam/yandexpassportuseraccount.go b/vendor/github.com/yandex-cloud/go-sdk/gen/iam/yandexpassportuseraccount.go index 735d22546..09d0604b9 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/iam/yandexpassportuseraccount.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/iam/yandexpassportuseraccount.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" + iam "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" ) //revive:disable @@ -19,8 +19,6 @@ type YandexPassportUserAccountServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ iam.YandexPassportUserAccountServiceClient = &YandexPassportUserAccountServiceClient{} - // GetByLogin implements iam.YandexPassportUserAccountServiceClient func (c *YandexPassportUserAccountServiceClient) GetByLogin(ctx context.Context, in *iam.GetUserAccountByLoginRequest, opts ...grpc.CallOption) (*iam.UserAccount, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/iot/devices/device.go b/vendor/github.com/yandex-cloud/go-sdk/gen/iot/devices/device.go index 2a4db3ca1..c078a1272 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/iot/devices/device.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/iot/devices/device.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1" + devices "github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type DeviceServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ devices.DeviceServiceClient = &DeviceServiceClient{} - // AddCertificate implements devices.DeviceServiceClient func (c *DeviceServiceClient) AddCertificate(ctx context.Context, in *devices.AddDeviceCertificateRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -31,6 +29,15 @@ func (c *DeviceServiceClient) AddCertificate(ctx context.Context, in *devices.Ad return devices.NewDeviceServiceClient(conn).AddCertificate(ctx, in, opts...) } +// AddPassword implements devices.DeviceServiceClient +func (c *DeviceServiceClient) AddPassword(ctx context.Context, in *devices.AddDevicePasswordRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return devices.NewDeviceServiceClient(conn).AddPassword(ctx, in, opts...) +} + // Create implements devices.DeviceServiceClient func (c *DeviceServiceClient) Create(ctx context.Context, in *devices.CreateDeviceRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -58,6 +65,15 @@ func (c *DeviceServiceClient) DeleteCertificate(ctx context.Context, in *devices return devices.NewDeviceServiceClient(conn).DeleteCertificate(ctx, in, opts...) } +// DeletePassword implements devices.DeviceServiceClient +func (c *DeviceServiceClient) DeletePassword(ctx context.Context, in *devices.DeleteDevicePasswordRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return devices.NewDeviceServiceClient(conn).DeletePassword(ctx, in, opts...) +} + // Get implements devices.DeviceServiceClient func (c *DeviceServiceClient) Get(ctx context.Context, in *devices.GetDeviceRequest, opts ...grpc.CallOption) (*devices.Device, error) { conn, err := c.getConn(ctx) @@ -85,6 +101,67 @@ func (c *DeviceServiceClient) ListCertificates(ctx context.Context, in *devices. return devices.NewDeviceServiceClient(conn).ListCertificates(ctx, in, opts...) } +type DeviceCertificatesIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *DeviceServiceClient + request *devices.ListDeviceCertificatesRequest + + items []*devices.DeviceCertificate +} + +func (c *DeviceServiceClient) DeviceCertificatesIterator(ctx context.Context, deviceId string, opts ...grpc.CallOption) *DeviceCertificatesIterator { + return &DeviceCertificatesIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &devices.ListDeviceCertificatesRequest{ + DeviceId: deviceId, + }, + } +} + +func (it *DeviceCertificatesIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started { + return false + } + it.started = true + + response, err := it.client.ListCertificates(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Certificates + return len(it.items) > 0 +} + +func (it *DeviceCertificatesIterator) Value() *devices.DeviceCertificate { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *DeviceCertificatesIterator) Error() error { + return it.err +} + // ListOperations implements devices.DeviceServiceClient func (c *DeviceServiceClient) ListOperations(ctx context.Context, in *devices.ListDeviceOperationsRequest, opts ...grpc.CallOption) (*devices.ListDeviceOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -94,6 +171,139 @@ func (c *DeviceServiceClient) ListOperations(ctx context.Context, in *devices.Li return devices.NewDeviceServiceClient(conn).ListOperations(ctx, in, opts...) } +type DeviceOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *DeviceServiceClient + request *devices.ListDeviceOperationsRequest + + items []*operation.Operation +} + +func (c *DeviceServiceClient) DeviceOperationsIterator(ctx context.Context, deviceId string, opts ...grpc.CallOption) *DeviceOperationsIterator { + return &DeviceOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &devices.ListDeviceOperationsRequest{ + DeviceId: deviceId, + PageSize: 1000, + }, + } +} + +func (it *DeviceOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *DeviceOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *DeviceOperationsIterator) Error() error { + return it.err +} + +// ListPasswords implements devices.DeviceServiceClient +func (c *DeviceServiceClient) ListPasswords(ctx context.Context, in *devices.ListDevicePasswordsRequest, opts ...grpc.CallOption) (*devices.ListDevicePasswordsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return devices.NewDeviceServiceClient(conn).ListPasswords(ctx, in, opts...) +} + +type DevicePasswordsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *DeviceServiceClient + request *devices.ListDevicePasswordsRequest + + items []*devices.DevicePassword +} + +func (c *DeviceServiceClient) DevicePasswordsIterator(ctx context.Context, deviceId string, opts ...grpc.CallOption) *DevicePasswordsIterator { + return &DevicePasswordsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &devices.ListDevicePasswordsRequest{ + DeviceId: deviceId, + }, + } +} + +func (it *DevicePasswordsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started { + return false + } + it.started = true + + response, err := it.client.ListPasswords(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Passwords + return len(it.items) > 0 +} + +func (it *DevicePasswordsIterator) Value() *devices.DevicePassword { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *DevicePasswordsIterator) Error() error { + return it.err +} + // Update implements devices.DeviceServiceClient func (c *DeviceServiceClient) Update(ctx context.Context, in *devices.UpdateDeviceRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/iot/devices/registry.go b/vendor/github.com/yandex-cloud/go-sdk/gen/iot/devices/registry.go index 6d0adb35b..7f0b9ce1d 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/iot/devices/registry.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/iot/devices/registry.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1" + devices "github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type RegistryServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ devices.RegistryServiceClient = &RegistryServiceClient{} - // AddCertificate implements devices.RegistryServiceClient func (c *RegistryServiceClient) AddCertificate(ctx context.Context, in *devices.AddRegistryCertificateRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -31,6 +29,15 @@ func (c *RegistryServiceClient) AddCertificate(ctx context.Context, in *devices. return devices.NewRegistryServiceClient(conn).AddCertificate(ctx, in, opts...) } +// AddPassword implements devices.RegistryServiceClient +func (c *RegistryServiceClient) AddPassword(ctx context.Context, in *devices.AddRegistryPasswordRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return devices.NewRegistryServiceClient(conn).AddPassword(ctx, in, opts...) +} + // Create implements devices.RegistryServiceClient func (c *RegistryServiceClient) Create(ctx context.Context, in *devices.CreateRegistryRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -58,6 +65,15 @@ func (c *RegistryServiceClient) DeleteCertificate(ctx context.Context, in *devic return devices.NewRegistryServiceClient(conn).DeleteCertificate(ctx, in, opts...) } +// DeletePassword implements devices.RegistryServiceClient +func (c *RegistryServiceClient) DeletePassword(ctx context.Context, in *devices.DeleteRegistryPasswordRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return devices.NewRegistryServiceClient(conn).DeletePassword(ctx, in, opts...) +} + // Get implements devices.RegistryServiceClient func (c *RegistryServiceClient) Get(ctx context.Context, in *devices.GetRegistryRequest, opts ...grpc.CallOption) (*devices.Registry, error) { conn, err := c.getConn(ctx) @@ -76,6 +92,69 @@ func (c *RegistryServiceClient) List(ctx context.Context, in *devices.ListRegist return devices.NewRegistryServiceClient(conn).List(ctx, in, opts...) } +type RegistryIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *RegistryServiceClient + request *devices.ListRegistriesRequest + + items []*devices.Registry +} + +func (c *RegistryServiceClient) RegistryIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *RegistryIterator { + return &RegistryIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &devices.ListRegistriesRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *RegistryIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Registries + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *RegistryIterator) Value() *devices.Registry { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *RegistryIterator) Error() error { + return it.err +} + // ListCertificates implements devices.RegistryServiceClient func (c *RegistryServiceClient) ListCertificates(ctx context.Context, in *devices.ListRegistryCertificatesRequest, opts ...grpc.CallOption) (*devices.ListRegistryCertificatesResponse, error) { conn, err := c.getConn(ctx) @@ -85,6 +164,67 @@ func (c *RegistryServiceClient) ListCertificates(ctx context.Context, in *device return devices.NewRegistryServiceClient(conn).ListCertificates(ctx, in, opts...) } +type RegistryCertificatesIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *RegistryServiceClient + request *devices.ListRegistryCertificatesRequest + + items []*devices.RegistryCertificate +} + +func (c *RegistryServiceClient) RegistryCertificatesIterator(ctx context.Context, registryId string, opts ...grpc.CallOption) *RegistryCertificatesIterator { + return &RegistryCertificatesIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &devices.ListRegistryCertificatesRequest{ + RegistryId: registryId, + }, + } +} + +func (it *RegistryCertificatesIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started { + return false + } + it.started = true + + response, err := it.client.ListCertificates(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Certificates + return len(it.items) > 0 +} + +func (it *RegistryCertificatesIterator) Value() *devices.RegistryCertificate { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *RegistryCertificatesIterator) Error() error { + return it.err +} + // ListDeviceTopicAliases implements devices.RegistryServiceClient func (c *RegistryServiceClient) ListDeviceTopicAliases(ctx context.Context, in *devices.ListDeviceTopicAliasesRequest, opts ...grpc.CallOption) (*devices.ListDeviceTopicAliasesResponse, error) { conn, err := c.getConn(ctx) @@ -94,6 +234,69 @@ func (c *RegistryServiceClient) ListDeviceTopicAliases(ctx context.Context, in * return devices.NewRegistryServiceClient(conn).ListDeviceTopicAliases(ctx, in, opts...) } +type RegistryDeviceTopicAliasesIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *RegistryServiceClient + request *devices.ListDeviceTopicAliasesRequest + + items []*devices.DeviceAlias +} + +func (c *RegistryServiceClient) RegistryDeviceTopicAliasesIterator(ctx context.Context, registryId string, opts ...grpc.CallOption) *RegistryDeviceTopicAliasesIterator { + return &RegistryDeviceTopicAliasesIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &devices.ListDeviceTopicAliasesRequest{ + RegistryId: registryId, + PageSize: 1000, + }, + } +} + +func (it *RegistryDeviceTopicAliasesIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListDeviceTopicAliases(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Aliases + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *RegistryDeviceTopicAliasesIterator) Value() *devices.DeviceAlias { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *RegistryDeviceTopicAliasesIterator) Error() error { + return it.err +} + // ListOperations implements devices.RegistryServiceClient func (c *RegistryServiceClient) ListOperations(ctx context.Context, in *devices.ListRegistryOperationsRequest, opts ...grpc.CallOption) (*devices.ListRegistryOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -103,6 +306,139 @@ func (c *RegistryServiceClient) ListOperations(ctx context.Context, in *devices. return devices.NewRegistryServiceClient(conn).ListOperations(ctx, in, opts...) } +type RegistryOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *RegistryServiceClient + request *devices.ListRegistryOperationsRequest + + items []*operation.Operation +} + +func (c *RegistryServiceClient) RegistryOperationsIterator(ctx context.Context, registryId string, opts ...grpc.CallOption) *RegistryOperationsIterator { + return &RegistryOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &devices.ListRegistryOperationsRequest{ + RegistryId: registryId, + PageSize: 1000, + }, + } +} + +func (it *RegistryOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *RegistryOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *RegistryOperationsIterator) Error() error { + return it.err +} + +// ListPasswords implements devices.RegistryServiceClient +func (c *RegistryServiceClient) ListPasswords(ctx context.Context, in *devices.ListRegistryPasswordsRequest, opts ...grpc.CallOption) (*devices.ListRegistryPasswordsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return devices.NewRegistryServiceClient(conn).ListPasswords(ctx, in, opts...) +} + +type RegistryPasswordsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *RegistryServiceClient + request *devices.ListRegistryPasswordsRequest + + items []*devices.RegistryPassword +} + +func (c *RegistryServiceClient) RegistryPasswordsIterator(ctx context.Context, registryId string, opts ...grpc.CallOption) *RegistryPasswordsIterator { + return &RegistryPasswordsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &devices.ListRegistryPasswordsRequest{ + RegistryId: registryId, + }, + } +} + +func (it *RegistryPasswordsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started { + return false + } + it.started = true + + response, err := it.client.ListPasswords(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Passwords + return len(it.items) > 0 +} + +func (it *RegistryPasswordsIterator) Value() *devices.RegistryPassword { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *RegistryPasswordsIterator) Error() error { + return it.err +} + // Update implements devices.RegistryServiceClient func (c *RegistryServiceClient) Update(ctx context.Context, in *devices.UpdateRegistryRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/kms/kms_group.go b/vendor/github.com/yandex-cloud/go-sdk/gen/kms/kms_group.go new file mode 100644 index 000000000..77bd68a19 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/kms/kms_group.go @@ -0,0 +1,24 @@ +// Code generated by sdkgen. DO NOT EDIT. + +package kms + +import ( + "context" + + "google.golang.org/grpc" +) + +// KMS provides access to "kms" component of Yandex.Cloud +type KMS struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// NewKMS creates instance of KMS +func NewKMS(g func(ctx context.Context) (*grpc.ClientConn, error)) *KMS { + return &KMS{g} +} + +// SymmetricKey gets SymmetricKeyService client +func (k *KMS) SymmetricKey() *SymmetricKeyServiceClient { + return &SymmetricKeyServiceClient{getConn: k.getConn} +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/kms/symmetrickey.go b/vendor/github.com/yandex-cloud/go-sdk/gen/kms/symmetrickey.go new file mode 100644 index 000000000..67edb6396 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/kms/symmetrickey.go @@ -0,0 +1,400 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package kms + +import ( + "context" + + "google.golang.org/grpc" + + "github.com/yandex-cloud/go-genproto/yandex/cloud/access" + kms "github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1" + "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" +) + +//revive:disable + +// SymmetricKeyServiceClient is a kms.SymmetricKeyServiceClient with +// lazy GRPC connection initialization. +type SymmetricKeyServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// CancelVersionDestruction implements kms.SymmetricKeyServiceClient +func (c *SymmetricKeyServiceClient) CancelVersionDestruction(ctx context.Context, in *kms.CancelSymmetricKeyVersionDestructionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricKeyServiceClient(conn).CancelVersionDestruction(ctx, in, opts...) +} + +// Create implements kms.SymmetricKeyServiceClient +func (c *SymmetricKeyServiceClient) Create(ctx context.Context, in *kms.CreateSymmetricKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricKeyServiceClient(conn).Create(ctx, in, opts...) +} + +// Delete implements kms.SymmetricKeyServiceClient +func (c *SymmetricKeyServiceClient) Delete(ctx context.Context, in *kms.DeleteSymmetricKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricKeyServiceClient(conn).Delete(ctx, in, opts...) +} + +// Get implements kms.SymmetricKeyServiceClient +func (c *SymmetricKeyServiceClient) Get(ctx context.Context, in *kms.GetSymmetricKeyRequest, opts ...grpc.CallOption) (*kms.SymmetricKey, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricKeyServiceClient(conn).Get(ctx, in, opts...) +} + +// List implements kms.SymmetricKeyServiceClient +func (c *SymmetricKeyServiceClient) List(ctx context.Context, in *kms.ListSymmetricKeysRequest, opts ...grpc.CallOption) (*kms.ListSymmetricKeysResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricKeyServiceClient(conn).List(ctx, in, opts...) +} + +type SymmetricKeyIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *SymmetricKeyServiceClient + request *kms.ListSymmetricKeysRequest + + items []*kms.SymmetricKey +} + +func (c *SymmetricKeyServiceClient) SymmetricKeyIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *SymmetricKeyIterator { + return &SymmetricKeyIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &kms.ListSymmetricKeysRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *SymmetricKeyIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Keys + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *SymmetricKeyIterator) Value() *kms.SymmetricKey { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *SymmetricKeyIterator) Error() error { + return it.err +} + +// ListAccessBindings implements kms.SymmetricKeyServiceClient +func (c *SymmetricKeyServiceClient) ListAccessBindings(ctx context.Context, in *access.ListAccessBindingsRequest, opts ...grpc.CallOption) (*access.ListAccessBindingsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricKeyServiceClient(conn).ListAccessBindings(ctx, in, opts...) +} + +type SymmetricKeyAccessBindingsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *SymmetricKeyServiceClient + request *access.ListAccessBindingsRequest + + items []*access.AccessBinding +} + +func (c *SymmetricKeyServiceClient) SymmetricKeyAccessBindingsIterator(ctx context.Context, resourceId string, opts ...grpc.CallOption) *SymmetricKeyAccessBindingsIterator { + return &SymmetricKeyAccessBindingsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &access.ListAccessBindingsRequest{ + ResourceId: resourceId, + PageSize: 1000, + }, + } +} + +func (it *SymmetricKeyAccessBindingsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListAccessBindings(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.AccessBindings + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *SymmetricKeyAccessBindingsIterator) Value() *access.AccessBinding { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *SymmetricKeyAccessBindingsIterator) Error() error { + return it.err +} + +// ListOperations implements kms.SymmetricKeyServiceClient +func (c *SymmetricKeyServiceClient) ListOperations(ctx context.Context, in *kms.ListSymmetricKeyOperationsRequest, opts ...grpc.CallOption) (*kms.ListSymmetricKeyOperationsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricKeyServiceClient(conn).ListOperations(ctx, in, opts...) +} + +type SymmetricKeyOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *SymmetricKeyServiceClient + request *kms.ListSymmetricKeyOperationsRequest + + items []*operation.Operation +} + +func (c *SymmetricKeyServiceClient) SymmetricKeyOperationsIterator(ctx context.Context, keyId string, opts ...grpc.CallOption) *SymmetricKeyOperationsIterator { + return &SymmetricKeyOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &kms.ListSymmetricKeyOperationsRequest{ + KeyId: keyId, + PageSize: 1000, + }, + } +} + +func (it *SymmetricKeyOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *SymmetricKeyOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *SymmetricKeyOperationsIterator) Error() error { + return it.err +} + +// ListVersions implements kms.SymmetricKeyServiceClient +func (c *SymmetricKeyServiceClient) ListVersions(ctx context.Context, in *kms.ListSymmetricKeyVersionsRequest, opts ...grpc.CallOption) (*kms.ListSymmetricKeyVersionsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricKeyServiceClient(conn).ListVersions(ctx, in, opts...) +} + +type SymmetricKeyVersionsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *SymmetricKeyServiceClient + request *kms.ListSymmetricKeyVersionsRequest + + items []*kms.SymmetricKeyVersion +} + +func (c *SymmetricKeyServiceClient) SymmetricKeyVersionsIterator(ctx context.Context, keyId string, opts ...grpc.CallOption) *SymmetricKeyVersionsIterator { + return &SymmetricKeyVersionsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &kms.ListSymmetricKeyVersionsRequest{ + KeyId: keyId, + PageSize: 1000, + }, + } +} + +func (it *SymmetricKeyVersionsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListVersions(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.KeyVersions + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *SymmetricKeyVersionsIterator) Value() *kms.SymmetricKeyVersion { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *SymmetricKeyVersionsIterator) Error() error { + return it.err +} + +// Rotate implements kms.SymmetricKeyServiceClient +func (c *SymmetricKeyServiceClient) Rotate(ctx context.Context, in *kms.RotateSymmetricKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricKeyServiceClient(conn).Rotate(ctx, in, opts...) +} + +// ScheduleVersionDestruction implements kms.SymmetricKeyServiceClient +func (c *SymmetricKeyServiceClient) ScheduleVersionDestruction(ctx context.Context, in *kms.ScheduleSymmetricKeyVersionDestructionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricKeyServiceClient(conn).ScheduleVersionDestruction(ctx, in, opts...) +} + +// SetAccessBindings implements kms.SymmetricKeyServiceClient +func (c *SymmetricKeyServiceClient) SetAccessBindings(ctx context.Context, in *access.SetAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricKeyServiceClient(conn).SetAccessBindings(ctx, in, opts...) +} + +// SetPrimaryVersion implements kms.SymmetricKeyServiceClient +func (c *SymmetricKeyServiceClient) SetPrimaryVersion(ctx context.Context, in *kms.SetPrimarySymmetricKeyVersionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricKeyServiceClient(conn).SetPrimaryVersion(ctx, in, opts...) +} + +// Update implements kms.SymmetricKeyServiceClient +func (c *SymmetricKeyServiceClient) Update(ctx context.Context, in *kms.UpdateSymmetricKeyRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricKeyServiceClient(conn).Update(ctx, in, opts...) +} + +// UpdateAccessBindings implements kms.SymmetricKeyServiceClient +func (c *SymmetricKeyServiceClient) UpdateAccessBindings(ctx context.Context, in *access.UpdateAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricKeyServiceClient(conn).UpdateAccessBindings(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/kmscrypto/kms_group.go b/vendor/github.com/yandex-cloud/go-sdk/gen/kmscrypto/kms_group.go new file mode 100644 index 000000000..235bc2c30 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/kmscrypto/kms_group.go @@ -0,0 +1,24 @@ +// Code generated by sdkgen. DO NOT EDIT. + +package kms + +import ( + "context" + + "google.golang.org/grpc" +) + +// KMSCrypto provides access to "kms" component of Yandex.Cloud +type KMSCrypto struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// NewKMSCrypto creates instance of KMSCrypto +func NewKMSCrypto(g func(ctx context.Context) (*grpc.ClientConn, error)) *KMSCrypto { + return &KMSCrypto{g} +} + +// SymmetricCrypto gets SymmetricCryptoService client +func (k *KMSCrypto) SymmetricCrypto() *SymmetricCryptoServiceClient { + return &SymmetricCryptoServiceClient{getConn: k.getConn} +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/kmscrypto/symmetriccrypto.go b/vendor/github.com/yandex-cloud/go-sdk/gen/kmscrypto/symmetriccrypto.go new file mode 100644 index 000000000..22b3b06ad --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/kmscrypto/symmetriccrypto.go @@ -0,0 +1,56 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package kms + +import ( + "context" + + "google.golang.org/grpc" + + kms "github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1" +) + +//revive:disable + +// SymmetricCryptoServiceClient is a kms.SymmetricCryptoServiceClient with +// lazy GRPC connection initialization. +type SymmetricCryptoServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// Decrypt implements kms.SymmetricCryptoServiceClient +func (c *SymmetricCryptoServiceClient) Decrypt(ctx context.Context, in *kms.SymmetricDecryptRequest, opts ...grpc.CallOption) (*kms.SymmetricDecryptResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricCryptoServiceClient(conn).Decrypt(ctx, in, opts...) +} + +// Encrypt implements kms.SymmetricCryptoServiceClient +func (c *SymmetricCryptoServiceClient) Encrypt(ctx context.Context, in *kms.SymmetricEncryptRequest, opts ...grpc.CallOption) (*kms.SymmetricEncryptResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricCryptoServiceClient(conn).Encrypt(ctx, in, opts...) +} + +// GenerateDataKey implements kms.SymmetricCryptoServiceClient +func (c *SymmetricCryptoServiceClient) GenerateDataKey(ctx context.Context, in *kms.GenerateDataKeyRequest, opts ...grpc.CallOption) (*kms.GenerateDataKeyResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricCryptoServiceClient(conn).GenerateDataKey(ctx, in, opts...) +} + +// ReEncrypt implements kms.SymmetricCryptoServiceClient +func (c *SymmetricCryptoServiceClient) ReEncrypt(ctx context.Context, in *kms.SymmetricReEncryptRequest, opts ...grpc.CallOption) (*kms.SymmetricReEncryptResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return kms.NewSymmetricCryptoServiceClient(conn).ReEncrypt(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/kubernetes/cluster.go b/vendor/github.com/yandex-cloud/go-sdk/gen/kubernetes/cluster.go new file mode 100644 index 000000000..37ac3c7e9 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/kubernetes/cluster.go @@ -0,0 +1,363 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package k8s + +import ( + "context" + + "google.golang.org/grpc" + + k8s "github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1" + "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" +) + +//revive:disable + +// ClusterServiceClient is a k8s.ClusterServiceClient with +// lazy GRPC connection initialization. +type ClusterServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// Create implements k8s.ClusterServiceClient +func (c *ClusterServiceClient) Create(ctx context.Context, in *k8s.CreateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewClusterServiceClient(conn).Create(ctx, in, opts...) +} + +// Delete implements k8s.ClusterServiceClient +func (c *ClusterServiceClient) Delete(ctx context.Context, in *k8s.DeleteClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewClusterServiceClient(conn).Delete(ctx, in, opts...) +} + +// Get implements k8s.ClusterServiceClient +func (c *ClusterServiceClient) Get(ctx context.Context, in *k8s.GetClusterRequest, opts ...grpc.CallOption) (*k8s.Cluster, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewClusterServiceClient(conn).Get(ctx, in, opts...) +} + +// List implements k8s.ClusterServiceClient +func (c *ClusterServiceClient) List(ctx context.Context, in *k8s.ListClustersRequest, opts ...grpc.CallOption) (*k8s.ListClustersResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewClusterServiceClient(conn).List(ctx, in, opts...) +} + +type ClusterIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *k8s.ListClustersRequest + + items []*k8s.Cluster +} + +func (c *ClusterServiceClient) ClusterIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *ClusterIterator { + return &ClusterIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &k8s.ListClustersRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *ClusterIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Clusters + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterIterator) Value() *k8s.Cluster { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterIterator) Error() error { + return it.err +} + +// ListNodeGroups implements k8s.ClusterServiceClient +func (c *ClusterServiceClient) ListNodeGroups(ctx context.Context, in *k8s.ListClusterNodeGroupsRequest, opts ...grpc.CallOption) (*k8s.ListClusterNodeGroupsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewClusterServiceClient(conn).ListNodeGroups(ctx, in, opts...) +} + +type ClusterNodeGroupsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *k8s.ListClusterNodeGroupsRequest + + items []*k8s.NodeGroup +} + +func (c *ClusterServiceClient) ClusterNodeGroupsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterNodeGroupsIterator { + return &ClusterNodeGroupsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &k8s.ListClusterNodeGroupsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterNodeGroupsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListNodeGroups(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.NodeGroups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterNodeGroupsIterator) Value() *k8s.NodeGroup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterNodeGroupsIterator) Error() error { + return it.err +} + +// ListNodes implements k8s.ClusterServiceClient +func (c *ClusterServiceClient) ListNodes(ctx context.Context, in *k8s.ListClusterNodesRequest, opts ...grpc.CallOption) (*k8s.ListClusterNodesResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewClusterServiceClient(conn).ListNodes(ctx, in, opts...) +} + +type ClusterNodesIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *k8s.ListClusterNodesRequest + + items []*k8s.Node +} + +func (c *ClusterServiceClient) ClusterNodesIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterNodesIterator { + return &ClusterNodesIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &k8s.ListClusterNodesRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterNodesIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListNodes(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Nodes + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterNodesIterator) Value() *k8s.Node { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterNodesIterator) Error() error { + return it.err +} + +// ListOperations implements k8s.ClusterServiceClient +func (c *ClusterServiceClient) ListOperations(ctx context.Context, in *k8s.ListClusterOperationsRequest, opts ...grpc.CallOption) (*k8s.ListClusterOperationsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewClusterServiceClient(conn).ListOperations(ctx, in, opts...) +} + +type ClusterOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *k8s.ListClusterOperationsRequest + + items []*operation.Operation +} + +func (c *ClusterServiceClient) ClusterOperationsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterOperationsIterator { + return &ClusterOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &k8s.ListClusterOperationsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterOperationsIterator) Error() error { + return it.err +} + +// Start implements k8s.ClusterServiceClient +func (c *ClusterServiceClient) Start(ctx context.Context, in *k8s.StartClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewClusterServiceClient(conn).Start(ctx, in, opts...) +} + +// Stop implements k8s.ClusterServiceClient +func (c *ClusterServiceClient) Stop(ctx context.Context, in *k8s.StopClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewClusterServiceClient(conn).Stop(ctx, in, opts...) +} + +// Update implements k8s.ClusterServiceClient +func (c *ClusterServiceClient) Update(ctx context.Context, in *k8s.UpdateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewClusterServiceClient(conn).Update(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/kubernetes/k8s_group.go b/vendor/github.com/yandex-cloud/go-sdk/gen/kubernetes/k8s_group.go new file mode 100644 index 000000000..0bc33cba6 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/kubernetes/k8s_group.go @@ -0,0 +1,34 @@ +// Code generated by sdkgen. DO NOT EDIT. + +package k8s + +import ( + "context" + + "google.golang.org/grpc" +) + +// Kubernetes provides access to "k8s" component of Yandex.Cloud +type Kubernetes struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// NewKubernetes creates instance of Kubernetes +func NewKubernetes(g func(ctx context.Context) (*grpc.ClientConn, error)) *Kubernetes { + return &Kubernetes{g} +} + +// Cluster gets ClusterService client +func (k *Kubernetes) Cluster() *ClusterServiceClient { + return &ClusterServiceClient{getConn: k.getConn} +} + +// NodeGroup gets NodeGroupService client +func (k *Kubernetes) NodeGroup() *NodeGroupServiceClient { + return &NodeGroupServiceClient{getConn: k.getConn} +} + +// Version gets VersionService client +func (k *Kubernetes) Version() *VersionServiceClient { + return &VersionServiceClient{getConn: k.getConn} +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/kubernetes/nodegroup.go b/vendor/github.com/yandex-cloud/go-sdk/gen/kubernetes/nodegroup.go new file mode 100644 index 000000000..cc76ff44e --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/kubernetes/nodegroup.go @@ -0,0 +1,273 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package k8s + +import ( + "context" + + "google.golang.org/grpc" + + k8s "github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1" + "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" +) + +//revive:disable + +// NodeGroupServiceClient is a k8s.NodeGroupServiceClient with +// lazy GRPC connection initialization. +type NodeGroupServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// Create implements k8s.NodeGroupServiceClient +func (c *NodeGroupServiceClient) Create(ctx context.Context, in *k8s.CreateNodeGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewNodeGroupServiceClient(conn).Create(ctx, in, opts...) +} + +// Delete implements k8s.NodeGroupServiceClient +func (c *NodeGroupServiceClient) Delete(ctx context.Context, in *k8s.DeleteNodeGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewNodeGroupServiceClient(conn).Delete(ctx, in, opts...) +} + +// Get implements k8s.NodeGroupServiceClient +func (c *NodeGroupServiceClient) Get(ctx context.Context, in *k8s.GetNodeGroupRequest, opts ...grpc.CallOption) (*k8s.NodeGroup, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewNodeGroupServiceClient(conn).Get(ctx, in, opts...) +} + +// List implements k8s.NodeGroupServiceClient +func (c *NodeGroupServiceClient) List(ctx context.Context, in *k8s.ListNodeGroupsRequest, opts ...grpc.CallOption) (*k8s.ListNodeGroupsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewNodeGroupServiceClient(conn).List(ctx, in, opts...) +} + +type NodeGroupIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *NodeGroupServiceClient + request *k8s.ListNodeGroupsRequest + + items []*k8s.NodeGroup +} + +func (c *NodeGroupServiceClient) NodeGroupIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *NodeGroupIterator { + return &NodeGroupIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &k8s.ListNodeGroupsRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *NodeGroupIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.NodeGroups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *NodeGroupIterator) Value() *k8s.NodeGroup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *NodeGroupIterator) Error() error { + return it.err +} + +// ListNodes implements k8s.NodeGroupServiceClient +func (c *NodeGroupServiceClient) ListNodes(ctx context.Context, in *k8s.ListNodeGroupNodesRequest, opts ...grpc.CallOption) (*k8s.ListNodeGroupNodesResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewNodeGroupServiceClient(conn).ListNodes(ctx, in, opts...) +} + +type NodeGroupNodesIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *NodeGroupServiceClient + request *k8s.ListNodeGroupNodesRequest + + items []*k8s.Node +} + +func (c *NodeGroupServiceClient) NodeGroupNodesIterator(ctx context.Context, nodeGroupId string, opts ...grpc.CallOption) *NodeGroupNodesIterator { + return &NodeGroupNodesIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &k8s.ListNodeGroupNodesRequest{ + NodeGroupId: nodeGroupId, + PageSize: 1000, + }, + } +} + +func (it *NodeGroupNodesIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListNodes(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Nodes + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *NodeGroupNodesIterator) Value() *k8s.Node { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *NodeGroupNodesIterator) Error() error { + return it.err +} + +// ListOperations implements k8s.NodeGroupServiceClient +func (c *NodeGroupServiceClient) ListOperations(ctx context.Context, in *k8s.ListNodeGroupOperationsRequest, opts ...grpc.CallOption) (*k8s.ListNodeGroupOperationsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewNodeGroupServiceClient(conn).ListOperations(ctx, in, opts...) +} + +type NodeGroupOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *NodeGroupServiceClient + request *k8s.ListNodeGroupOperationsRequest + + items []*operation.Operation +} + +func (c *NodeGroupServiceClient) NodeGroupOperationsIterator(ctx context.Context, nodeGroupId string, opts ...grpc.CallOption) *NodeGroupOperationsIterator { + return &NodeGroupOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &k8s.ListNodeGroupOperationsRequest{ + NodeGroupId: nodeGroupId, + PageSize: 1000, + }, + } +} + +func (it *NodeGroupOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *NodeGroupOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *NodeGroupOperationsIterator) Error() error { + return it.err +} + +// Update implements k8s.NodeGroupServiceClient +func (c *NodeGroupServiceClient) Update(ctx context.Context, in *k8s.UpdateNodeGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewNodeGroupServiceClient(conn).Update(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/kubernetes/version.go b/vendor/github.com/yandex-cloud/go-sdk/gen/kubernetes/version.go new file mode 100644 index 000000000..597ed0e6c --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/kubernetes/version.go @@ -0,0 +1,88 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package k8s + +import ( + "context" + + "google.golang.org/grpc" + + k8s "github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1" +) + +//revive:disable + +// VersionServiceClient is a k8s.VersionServiceClient with +// lazy GRPC connection initialization. +type VersionServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// List implements k8s.VersionServiceClient +func (c *VersionServiceClient) List(ctx context.Context, in *k8s.ListVersionsRequest, opts ...grpc.CallOption) (*k8s.ListVersionsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return k8s.NewVersionServiceClient(conn).List(ctx, in, opts...) +} + +type VersionIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *VersionServiceClient + request *k8s.ListVersionsRequest + + items []*k8s.AvailableVersions +} + +func (c *VersionServiceClient) VersionIterator(ctx context.Context, opts ...grpc.CallOption) *VersionIterator { + return &VersionIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &k8s.ListVersionsRequest{}, + } +} + +func (it *VersionIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.AvailableVersions + return len(it.items) > 0 +} + +func (it *VersionIterator) Value() *k8s.AvailableVersions { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *VersionIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/loadbalancer/networkloadbalancer.go b/vendor/github.com/yandex-cloud/go-sdk/gen/loadbalancer/networkloadbalancer.go index 07eb062b4..cad401a4c 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/loadbalancer/networkloadbalancer.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/loadbalancer/networkloadbalancer.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1" + loadbalancer "github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type NetworkLoadBalancerServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ loadbalancer.NetworkLoadBalancerServiceClient = &NetworkLoadBalancerServiceClient{} - // AddListener implements loadbalancer.NetworkLoadBalancerServiceClient func (c *NetworkLoadBalancerServiceClient) AddListener(ctx context.Context, in *loadbalancer.AddNetworkLoadBalancerListenerRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -94,6 +92,69 @@ func (c *NetworkLoadBalancerServiceClient) List(ctx context.Context, in *loadbal return loadbalancer.NewNetworkLoadBalancerServiceClient(conn).List(ctx, in, opts...) } +type NetworkLoadBalancerIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *NetworkLoadBalancerServiceClient + request *loadbalancer.ListNetworkLoadBalancersRequest + + items []*loadbalancer.NetworkLoadBalancer +} + +func (c *NetworkLoadBalancerServiceClient) NetworkLoadBalancerIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *NetworkLoadBalancerIterator { + return &NetworkLoadBalancerIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &loadbalancer.ListNetworkLoadBalancersRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *NetworkLoadBalancerIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.NetworkLoadBalancers + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *NetworkLoadBalancerIterator) Value() *loadbalancer.NetworkLoadBalancer { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *NetworkLoadBalancerIterator) Error() error { + return it.err +} + // ListOperations implements loadbalancer.NetworkLoadBalancerServiceClient func (c *NetworkLoadBalancerServiceClient) ListOperations(ctx context.Context, in *loadbalancer.ListNetworkLoadBalancerOperationsRequest, opts ...grpc.CallOption) (*loadbalancer.ListNetworkLoadBalancerOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -103,6 +164,69 @@ func (c *NetworkLoadBalancerServiceClient) ListOperations(ctx context.Context, i return loadbalancer.NewNetworkLoadBalancerServiceClient(conn).ListOperations(ctx, in, opts...) } +type NetworkLoadBalancerOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *NetworkLoadBalancerServiceClient + request *loadbalancer.ListNetworkLoadBalancerOperationsRequest + + items []*operation.Operation +} + +func (c *NetworkLoadBalancerServiceClient) NetworkLoadBalancerOperationsIterator(ctx context.Context, networkLoadBalancerId string, opts ...grpc.CallOption) *NetworkLoadBalancerOperationsIterator { + return &NetworkLoadBalancerOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &loadbalancer.ListNetworkLoadBalancerOperationsRequest{ + NetworkLoadBalancerId: networkLoadBalancerId, + PageSize: 1000, + }, + } +} + +func (it *NetworkLoadBalancerOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *NetworkLoadBalancerOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *NetworkLoadBalancerOperationsIterator) Error() error { + return it.err +} + // RemoveListener implements loadbalancer.NetworkLoadBalancerServiceClient func (c *NetworkLoadBalancerServiceClient) RemoveListener(ctx context.Context, in *loadbalancer.RemoveNetworkLoadBalancerListenerRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/loadbalancer/targetgroup.go b/vendor/github.com/yandex-cloud/go-sdk/gen/loadbalancer/targetgroup.go index 3211a4be2..3c28dcf6a 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/loadbalancer/targetgroup.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/loadbalancer/targetgroup.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1" + loadbalancer "github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type TargetGroupServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ loadbalancer.TargetGroupServiceClient = &TargetGroupServiceClient{} - // AddTargets implements loadbalancer.TargetGroupServiceClient func (c *TargetGroupServiceClient) AddTargets(ctx context.Context, in *loadbalancer.AddTargetsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -67,6 +65,69 @@ func (c *TargetGroupServiceClient) List(ctx context.Context, in *loadbalancer.Li return loadbalancer.NewTargetGroupServiceClient(conn).List(ctx, in, opts...) } +type TargetGroupIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *TargetGroupServiceClient + request *loadbalancer.ListTargetGroupsRequest + + items []*loadbalancer.TargetGroup +} + +func (c *TargetGroupServiceClient) TargetGroupIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *TargetGroupIterator { + return &TargetGroupIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &loadbalancer.ListTargetGroupsRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *TargetGroupIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.TargetGroups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *TargetGroupIterator) Value() *loadbalancer.TargetGroup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *TargetGroupIterator) Error() error { + return it.err +} + // ListOperations implements loadbalancer.TargetGroupServiceClient func (c *TargetGroupServiceClient) ListOperations(ctx context.Context, in *loadbalancer.ListTargetGroupOperationsRequest, opts ...grpc.CallOption) (*loadbalancer.ListTargetGroupOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -76,6 +137,69 @@ func (c *TargetGroupServiceClient) ListOperations(ctx context.Context, in *loadb return loadbalancer.NewTargetGroupServiceClient(conn).ListOperations(ctx, in, opts...) } +type TargetGroupOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *TargetGroupServiceClient + request *loadbalancer.ListTargetGroupOperationsRequest + + items []*operation.Operation +} + +func (c *TargetGroupServiceClient) TargetGroupOperationsIterator(ctx context.Context, targetGroupId string, opts ...grpc.CallOption) *TargetGroupOperationsIterator { + return &TargetGroupOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &loadbalancer.ListTargetGroupOperationsRequest{ + TargetGroupId: targetGroupId, + PageSize: 1000, + }, + } +} + +func (it *TargetGroupOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *TargetGroupOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *TargetGroupOperationsIterator) Error() error { + return it.err +} + // RemoveTargets implements loadbalancer.TargetGroupServiceClient func (c *TargetGroupServiceClient) RemoveTargets(ctx context.Context, in *loadbalancer.RemoveTargetsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/marketplace/metering/imageproductusage.go b/vendor/github.com/yandex-cloud/go-sdk/gen/marketplace/metering/imageproductusage.go new file mode 100644 index 000000000..1c1fda885 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/marketplace/metering/imageproductusage.go @@ -0,0 +1,29 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package metering + +import ( + "context" + + "google.golang.org/grpc" + + metering "github.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/v1/metering" +) + +//revive:disable + +// ImageProductUsageServiceClient is a metering.ImageProductUsageServiceClient with +// lazy GRPC connection initialization. +type ImageProductUsageServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// Write implements metering.ImageProductUsageServiceClient +func (c *ImageProductUsageServiceClient) Write(ctx context.Context, in *metering.WriteImageProductUsageRequest, opts ...grpc.CallOption) (*metering.WriteImageProductUsageResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return metering.NewImageProductUsageServiceClient(conn).Write(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/marketplace/metering/metering_group.go b/vendor/github.com/yandex-cloud/go-sdk/gen/marketplace/metering/metering_group.go new file mode 100644 index 000000000..130b758aa --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/marketplace/metering/metering_group.go @@ -0,0 +1,24 @@ +// Code generated by sdkgen. DO NOT EDIT. + +package metering + +import ( + "context" + + "google.golang.org/grpc" +) + +// Metering provides access to "metering" component of Yandex.Cloud +type Metering struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// NewMetering creates instance of Metering +func NewMetering(g func(ctx context.Context) (*grpc.ClientConn, error)) *Metering { + return &Metering{g} +} + +// ImageProductUsage gets ImageProductUsageService client +func (m *Metering) ImageProductUsage() *ImageProductUsageServiceClient { + return &ImageProductUsageServiceClient{getConn: m.getConn} +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/backup.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/backup.go index 5efdc7008..dec9991c5 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/backup.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/backup.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1" + clickhouse "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1" ) //revive:disable @@ -19,8 +19,6 @@ type BackupServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ clickhouse.BackupServiceClient = &BackupServiceClient{} - // Get implements clickhouse.BackupServiceClient func (c *BackupServiceClient) Get(ctx context.Context, in *clickhouse.GetBackupRequest, opts ...grpc.CallOption) (*clickhouse.Backup, error) { conn, err := c.getConn(ctx) @@ -38,3 +36,66 @@ func (c *BackupServiceClient) List(ctx context.Context, in *clickhouse.ListBacku } return clickhouse.NewBackupServiceClient(conn).List(ctx, in, opts...) } + +type BackupIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *BackupServiceClient + request *clickhouse.ListBackupsRequest + + items []*clickhouse.Backup +} + +func (c *BackupServiceClient) BackupIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *BackupIterator { + return &BackupIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &clickhouse.ListBackupsRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *BackupIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Backups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *BackupIterator) Value() *clickhouse.Backup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *BackupIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/clickhouse_group.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/clickhouse_group.go index 5b37a3565..4b91d3627 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/clickhouse_group.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/clickhouse_group.go @@ -42,3 +42,13 @@ func (c *Clickhouse) ResourcePreset() *ResourcePresetServiceClient { func (c *Clickhouse) User() *UserServiceClient { return &UserServiceClient{getConn: c.getConn} } + +// MlModel gets MlModelService client +func (c *Clickhouse) MlModel() *MlModelServiceClient { + return &MlModelServiceClient{getConn: c.getConn} +} + +// FormatSchema gets FormatSchemaService client +func (c *Clickhouse) FormatSchema() *FormatSchemaServiceClient { + return &FormatSchemaServiceClient{getConn: c.getConn} +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/cluster.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/cluster.go index c90eaaa4f..24c5aff94 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/cluster.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/cluster.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1" + clickhouse "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type ClusterServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ clickhouse.ClusterServiceClient = &ClusterServiceClient{} - // AddHosts implements clickhouse.ClusterServiceClient func (c *ClusterServiceClient) AddHosts(ctx context.Context, in *clickhouse.AddClusterHostsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -76,6 +74,15 @@ func (c *ClusterServiceClient) CreateExternalDictionary(ctx context.Context, in return clickhouse.NewClusterServiceClient(conn).CreateExternalDictionary(ctx, in, opts...) } +// CreateShardGroup implements clickhouse.ClusterServiceClient +func (c *ClusterServiceClient) CreateShardGroup(ctx context.Context, in *clickhouse.CreateClusterShardGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return clickhouse.NewClusterServiceClient(conn).CreateShardGroup(ctx, in, opts...) +} + // Delete implements clickhouse.ClusterServiceClient func (c *ClusterServiceClient) Delete(ctx context.Context, in *clickhouse.DeleteClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -112,6 +119,15 @@ func (c *ClusterServiceClient) DeleteShard(ctx context.Context, in *clickhouse.D return clickhouse.NewClusterServiceClient(conn).DeleteShard(ctx, in, opts...) } +// DeleteShardGroup implements clickhouse.ClusterServiceClient +func (c *ClusterServiceClient) DeleteShardGroup(ctx context.Context, in *clickhouse.DeleteClusterShardGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return clickhouse.NewClusterServiceClient(conn).DeleteShardGroup(ctx, in, opts...) +} + // Get implements clickhouse.ClusterServiceClient func (c *ClusterServiceClient) Get(ctx context.Context, in *clickhouse.GetClusterRequest, opts ...grpc.CallOption) (*clickhouse.Cluster, error) { conn, err := c.getConn(ctx) @@ -130,6 +146,15 @@ func (c *ClusterServiceClient) GetShard(ctx context.Context, in *clickhouse.GetC return clickhouse.NewClusterServiceClient(conn).GetShard(ctx, in, opts...) } +// GetShardGroup implements clickhouse.ClusterServiceClient +func (c *ClusterServiceClient) GetShardGroup(ctx context.Context, in *clickhouse.GetClusterShardGroupRequest, opts ...grpc.CallOption) (*clickhouse.ShardGroup, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return clickhouse.NewClusterServiceClient(conn).GetShardGroup(ctx, in, opts...) +} + // List implements clickhouse.ClusterServiceClient func (c *ClusterServiceClient) List(ctx context.Context, in *clickhouse.ListClustersRequest, opts ...grpc.CallOption) (*clickhouse.ListClustersResponse, error) { conn, err := c.getConn(ctx) @@ -139,6 +164,69 @@ func (c *ClusterServiceClient) List(ctx context.Context, in *clickhouse.ListClus return clickhouse.NewClusterServiceClient(conn).List(ctx, in, opts...) } +type ClusterIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *clickhouse.ListClustersRequest + + items []*clickhouse.Cluster +} + +func (c *ClusterServiceClient) ClusterIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *ClusterIterator { + return &ClusterIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &clickhouse.ListClustersRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *ClusterIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Clusters + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterIterator) Value() *clickhouse.Cluster { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterIterator) Error() error { + return it.err +} + // ListBackups implements clickhouse.ClusterServiceClient func (c *ClusterServiceClient) ListBackups(ctx context.Context, in *clickhouse.ListClusterBackupsRequest, opts ...grpc.CallOption) (*clickhouse.ListClusterBackupsResponse, error) { conn, err := c.getConn(ctx) @@ -148,6 +236,69 @@ func (c *ClusterServiceClient) ListBackups(ctx context.Context, in *clickhouse.L return clickhouse.NewClusterServiceClient(conn).ListBackups(ctx, in, opts...) } +type ClusterBackupsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *clickhouse.ListClusterBackupsRequest + + items []*clickhouse.Backup +} + +func (c *ClusterServiceClient) ClusterBackupsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterBackupsIterator { + return &ClusterBackupsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &clickhouse.ListClusterBackupsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterBackupsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListBackups(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Backups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterBackupsIterator) Value() *clickhouse.Backup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterBackupsIterator) Error() error { + return it.err +} + // ListHosts implements clickhouse.ClusterServiceClient func (c *ClusterServiceClient) ListHosts(ctx context.Context, in *clickhouse.ListClusterHostsRequest, opts ...grpc.CallOption) (*clickhouse.ListClusterHostsResponse, error) { conn, err := c.getConn(ctx) @@ -157,6 +308,69 @@ func (c *ClusterServiceClient) ListHosts(ctx context.Context, in *clickhouse.Lis return clickhouse.NewClusterServiceClient(conn).ListHosts(ctx, in, opts...) } +type ClusterHostsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *clickhouse.ListClusterHostsRequest + + items []*clickhouse.Host +} + +func (c *ClusterServiceClient) ClusterHostsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterHostsIterator { + return &ClusterHostsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &clickhouse.ListClusterHostsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterHostsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListHosts(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Hosts + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterHostsIterator) Value() *clickhouse.Host { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterHostsIterator) Error() error { + return it.err +} + // ListLogs implements clickhouse.ClusterServiceClient func (c *ClusterServiceClient) ListLogs(ctx context.Context, in *clickhouse.ListClusterLogsRequest, opts ...grpc.CallOption) (*clickhouse.ListClusterLogsResponse, error) { conn, err := c.getConn(ctx) @@ -166,6 +380,69 @@ func (c *ClusterServiceClient) ListLogs(ctx context.Context, in *clickhouse.List return clickhouse.NewClusterServiceClient(conn).ListLogs(ctx, in, opts...) } +type ClusterLogsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *clickhouse.ListClusterLogsRequest + + items []*clickhouse.LogRecord +} + +func (c *ClusterServiceClient) ClusterLogsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterLogsIterator { + return &ClusterLogsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &clickhouse.ListClusterLogsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterLogsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListLogs(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Logs + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterLogsIterator) Value() *clickhouse.LogRecord { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterLogsIterator) Error() error { + return it.err +} + // ListOperations implements clickhouse.ClusterServiceClient func (c *ClusterServiceClient) ListOperations(ctx context.Context, in *clickhouse.ListClusterOperationsRequest, opts ...grpc.CallOption) (*clickhouse.ListClusterOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -175,6 +452,141 @@ func (c *ClusterServiceClient) ListOperations(ctx context.Context, in *clickhous return clickhouse.NewClusterServiceClient(conn).ListOperations(ctx, in, opts...) } +type ClusterOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *clickhouse.ListClusterOperationsRequest + + items []*operation.Operation +} + +func (c *ClusterServiceClient) ClusterOperationsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterOperationsIterator { + return &ClusterOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &clickhouse.ListClusterOperationsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterOperationsIterator) Error() error { + return it.err +} + +// ListShardGroups implements clickhouse.ClusterServiceClient +func (c *ClusterServiceClient) ListShardGroups(ctx context.Context, in *clickhouse.ListClusterShardGroupsRequest, opts ...grpc.CallOption) (*clickhouse.ListClusterShardGroupsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return clickhouse.NewClusterServiceClient(conn).ListShardGroups(ctx, in, opts...) +} + +type ClusterShardGroupsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *clickhouse.ListClusterShardGroupsRequest + + items []*clickhouse.ShardGroup +} + +func (c *ClusterServiceClient) ClusterShardGroupsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterShardGroupsIterator { + return &ClusterShardGroupsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &clickhouse.ListClusterShardGroupsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterShardGroupsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListShardGroups(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.ShardGroups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterShardGroupsIterator) Value() *clickhouse.ShardGroup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterShardGroupsIterator) Error() error { + return it.err +} + // ListShards implements clickhouse.ClusterServiceClient func (c *ClusterServiceClient) ListShards(ctx context.Context, in *clickhouse.ListClusterShardsRequest, opts ...grpc.CallOption) (*clickhouse.ListClusterShardsResponse, error) { conn, err := c.getConn(ctx) @@ -184,6 +596,69 @@ func (c *ClusterServiceClient) ListShards(ctx context.Context, in *clickhouse.Li return clickhouse.NewClusterServiceClient(conn).ListShards(ctx, in, opts...) } +type ClusterShardsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *clickhouse.ListClusterShardsRequest + + items []*clickhouse.Shard +} + +func (c *ClusterServiceClient) ClusterShardsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterShardsIterator { + return &ClusterShardsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &clickhouse.ListClusterShardsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterShardsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListShards(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Shards + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterShardsIterator) Value() *clickhouse.Shard { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterShardsIterator) Error() error { + return it.err +} + // Move implements clickhouse.ClusterServiceClient func (c *ClusterServiceClient) Move(ctx context.Context, in *clickhouse.MoveClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -220,6 +695,15 @@ func (c *ClusterServiceClient) Stop(ctx context.Context, in *clickhouse.StopClus return clickhouse.NewClusterServiceClient(conn).Stop(ctx, in, opts...) } +// StreamLogs implements clickhouse.ClusterServiceClient +func (c *ClusterServiceClient) StreamLogs(ctx context.Context, in *clickhouse.StreamClusterLogsRequest, opts ...grpc.CallOption) (clickhouse.ClusterService_StreamLogsClient, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return clickhouse.NewClusterServiceClient(conn).StreamLogs(ctx, in, opts...) +} + // Update implements clickhouse.ClusterServiceClient func (c *ClusterServiceClient) Update(ctx context.Context, in *clickhouse.UpdateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -237,3 +721,12 @@ func (c *ClusterServiceClient) UpdateShard(ctx context.Context, in *clickhouse.U } return clickhouse.NewClusterServiceClient(conn).UpdateShard(ctx, in, opts...) } + +// UpdateShardGroup implements clickhouse.ClusterServiceClient +func (c *ClusterServiceClient) UpdateShardGroup(ctx context.Context, in *clickhouse.UpdateClusterShardGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return clickhouse.NewClusterServiceClient(conn).UpdateShardGroup(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/database.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/database.go index 1741c2efc..b6746b8b6 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/database.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/database.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1" + clickhouse "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type DatabaseServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ clickhouse.DatabaseServiceClient = &DatabaseServiceClient{} - // Create implements clickhouse.DatabaseServiceClient func (c *DatabaseServiceClient) Create(ctx context.Context, in *clickhouse.CreateDatabaseRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -57,3 +55,66 @@ func (c *DatabaseServiceClient) List(ctx context.Context, in *clickhouse.ListDat } return clickhouse.NewDatabaseServiceClient(conn).List(ctx, in, opts...) } + +type DatabaseIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *DatabaseServiceClient + request *clickhouse.ListDatabasesRequest + + items []*clickhouse.Database +} + +func (c *DatabaseServiceClient) DatabaseIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *DatabaseIterator { + return &DatabaseIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &clickhouse.ListDatabasesRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *DatabaseIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Databases + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *DatabaseIterator) Value() *clickhouse.Database { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *DatabaseIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/formatschema.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/formatschema.go new file mode 100644 index 000000000..739f822dd --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/formatschema.go @@ -0,0 +1,129 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package clickhouse + +import ( + "context" + + "google.golang.org/grpc" + + clickhouse "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1" + "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" +) + +//revive:disable + +// FormatSchemaServiceClient is a clickhouse.FormatSchemaServiceClient with +// lazy GRPC connection initialization. +type FormatSchemaServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// Create implements clickhouse.FormatSchemaServiceClient +func (c *FormatSchemaServiceClient) Create(ctx context.Context, in *clickhouse.CreateFormatSchemaRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return clickhouse.NewFormatSchemaServiceClient(conn).Create(ctx, in, opts...) +} + +// Delete implements clickhouse.FormatSchemaServiceClient +func (c *FormatSchemaServiceClient) Delete(ctx context.Context, in *clickhouse.DeleteFormatSchemaRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return clickhouse.NewFormatSchemaServiceClient(conn).Delete(ctx, in, opts...) +} + +// Get implements clickhouse.FormatSchemaServiceClient +func (c *FormatSchemaServiceClient) Get(ctx context.Context, in *clickhouse.GetFormatSchemaRequest, opts ...grpc.CallOption) (*clickhouse.FormatSchema, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return clickhouse.NewFormatSchemaServiceClient(conn).Get(ctx, in, opts...) +} + +// List implements clickhouse.FormatSchemaServiceClient +func (c *FormatSchemaServiceClient) List(ctx context.Context, in *clickhouse.ListFormatSchemasRequest, opts ...grpc.CallOption) (*clickhouse.ListFormatSchemasResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return clickhouse.NewFormatSchemaServiceClient(conn).List(ctx, in, opts...) +} + +type FormatSchemaIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *FormatSchemaServiceClient + request *clickhouse.ListFormatSchemasRequest + + items []*clickhouse.FormatSchema +} + +func (c *FormatSchemaServiceClient) FormatSchemaIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *FormatSchemaIterator { + return &FormatSchemaIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &clickhouse.ListFormatSchemasRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *FormatSchemaIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.FormatSchemas + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *FormatSchemaIterator) Value() *clickhouse.FormatSchema { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *FormatSchemaIterator) Error() error { + return it.err +} + +// Update implements clickhouse.FormatSchemaServiceClient +func (c *FormatSchemaServiceClient) Update(ctx context.Context, in *clickhouse.UpdateFormatSchemaRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return clickhouse.NewFormatSchemaServiceClient(conn).Update(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/mlmodel.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/mlmodel.go new file mode 100644 index 000000000..92eb92cb0 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/mlmodel.go @@ -0,0 +1,129 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package clickhouse + +import ( + "context" + + "google.golang.org/grpc" + + clickhouse "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1" + "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" +) + +//revive:disable + +// MlModelServiceClient is a clickhouse.MlModelServiceClient with +// lazy GRPC connection initialization. +type MlModelServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// Create implements clickhouse.MlModelServiceClient +func (c *MlModelServiceClient) Create(ctx context.Context, in *clickhouse.CreateMlModelRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return clickhouse.NewMlModelServiceClient(conn).Create(ctx, in, opts...) +} + +// Delete implements clickhouse.MlModelServiceClient +func (c *MlModelServiceClient) Delete(ctx context.Context, in *clickhouse.DeleteMlModelRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return clickhouse.NewMlModelServiceClient(conn).Delete(ctx, in, opts...) +} + +// Get implements clickhouse.MlModelServiceClient +func (c *MlModelServiceClient) Get(ctx context.Context, in *clickhouse.GetMlModelRequest, opts ...grpc.CallOption) (*clickhouse.MlModel, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return clickhouse.NewMlModelServiceClient(conn).Get(ctx, in, opts...) +} + +// List implements clickhouse.MlModelServiceClient +func (c *MlModelServiceClient) List(ctx context.Context, in *clickhouse.ListMlModelsRequest, opts ...grpc.CallOption) (*clickhouse.ListMlModelsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return clickhouse.NewMlModelServiceClient(conn).List(ctx, in, opts...) +} + +type MlModelIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *MlModelServiceClient + request *clickhouse.ListMlModelsRequest + + items []*clickhouse.MlModel +} + +func (c *MlModelServiceClient) MlModelIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *MlModelIterator { + return &MlModelIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &clickhouse.ListMlModelsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *MlModelIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.MlModels + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *MlModelIterator) Value() *clickhouse.MlModel { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *MlModelIterator) Error() error { + return it.err +} + +// Update implements clickhouse.MlModelServiceClient +func (c *MlModelServiceClient) Update(ctx context.Context, in *clickhouse.UpdateMlModelRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return clickhouse.NewMlModelServiceClient(conn).Update(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/resourcepreset.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/resourcepreset.go index b2439b892..aafa8bc68 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/resourcepreset.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/resourcepreset.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1" + clickhouse "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1" ) //revive:disable @@ -19,8 +19,6 @@ type ResourcePresetServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ clickhouse.ResourcePresetServiceClient = &ResourcePresetServiceClient{} - // Get implements clickhouse.ResourcePresetServiceClient func (c *ResourcePresetServiceClient) Get(ctx context.Context, in *clickhouse.GetResourcePresetRequest, opts ...grpc.CallOption) (*clickhouse.ResourcePreset, error) { conn, err := c.getConn(ctx) @@ -38,3 +36,65 @@ func (c *ResourcePresetServiceClient) List(ctx context.Context, in *clickhouse.L } return clickhouse.NewResourcePresetServiceClient(conn).List(ctx, in, opts...) } + +type ResourcePresetIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ResourcePresetServiceClient + request *clickhouse.ListResourcePresetsRequest + + items []*clickhouse.ResourcePreset +} + +func (c *ResourcePresetServiceClient) ResourcePresetIterator(ctx context.Context, opts ...grpc.CallOption) *ResourcePresetIterator { + return &ResourcePresetIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &clickhouse.ListResourcePresetsRequest{ + PageSize: 1000, + }, + } +} + +func (it *ResourcePresetIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.ResourcePresets + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ResourcePresetIterator) Value() *clickhouse.ResourcePreset { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ResourcePresetIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/user.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/user.go index 5072239bc..d63117ab6 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/user.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse/user.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1" + clickhouse "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type UserServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ clickhouse.UserServiceClient = &UserServiceClient{} - // Create implements clickhouse.UserServiceClient func (c *UserServiceClient) Create(ctx context.Context, in *clickhouse.CreateUserRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -67,6 +65,69 @@ func (c *UserServiceClient) List(ctx context.Context, in *clickhouse.ListUsersRe return clickhouse.NewUserServiceClient(conn).List(ctx, in, opts...) } +type UserIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *UserServiceClient + request *clickhouse.ListUsersRequest + + items []*clickhouse.User +} + +func (c *UserServiceClient) UserIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *UserIterator { + return &UserIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &clickhouse.ListUsersRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *UserIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Users + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *UserIterator) Value() *clickhouse.User { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *UserIterator) Error() error { + return it.err +} + // RevokePermission implements clickhouse.UserServiceClient func (c *UserServiceClient) RevokePermission(ctx context.Context, in *clickhouse.RevokeUserPermissionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/backup.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/backup.go index fdbb610a2..a969a3d23 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/backup.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/backup.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1" + mongodb "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1" ) //revive:disable @@ -19,8 +19,6 @@ type BackupServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ mongodb.BackupServiceClient = &BackupServiceClient{} - // Get implements mongodb.BackupServiceClient func (c *BackupServiceClient) Get(ctx context.Context, in *mongodb.GetBackupRequest, opts ...grpc.CallOption) (*mongodb.Backup, error) { conn, err := c.getConn(ctx) @@ -38,3 +36,66 @@ func (c *BackupServiceClient) List(ctx context.Context, in *mongodb.ListBackupsR } return mongodb.NewBackupServiceClient(conn).List(ctx, in, opts...) } + +type BackupIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *BackupServiceClient + request *mongodb.ListBackupsRequest + + items []*mongodb.Backup +} + +func (c *BackupServiceClient) BackupIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *BackupIterator { + return &BackupIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mongodb.ListBackupsRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *BackupIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Backups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *BackupIterator) Value() *mongodb.Backup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *BackupIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/cluster.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/cluster.go index e25f2ba52..0dfda2348 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/cluster.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/cluster.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1" + mongodb "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type ClusterServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ mongodb.ClusterServiceClient = &ClusterServiceClient{} - // AddHosts implements mongodb.ClusterServiceClient func (c *ClusterServiceClient) AddHosts(ctx context.Context, in *mongodb.AddClusterHostsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -121,6 +119,69 @@ func (c *ClusterServiceClient) List(ctx context.Context, in *mongodb.ListCluster return mongodb.NewClusterServiceClient(conn).List(ctx, in, opts...) } +type ClusterIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *mongodb.ListClustersRequest + + items []*mongodb.Cluster +} + +func (c *ClusterServiceClient) ClusterIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *ClusterIterator { + return &ClusterIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mongodb.ListClustersRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *ClusterIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Clusters + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterIterator) Value() *mongodb.Cluster { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterIterator) Error() error { + return it.err +} + // ListBackups implements mongodb.ClusterServiceClient func (c *ClusterServiceClient) ListBackups(ctx context.Context, in *mongodb.ListClusterBackupsRequest, opts ...grpc.CallOption) (*mongodb.ListClusterBackupsResponse, error) { conn, err := c.getConn(ctx) @@ -130,6 +191,69 @@ func (c *ClusterServiceClient) ListBackups(ctx context.Context, in *mongodb.List return mongodb.NewClusterServiceClient(conn).ListBackups(ctx, in, opts...) } +type ClusterBackupsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *mongodb.ListClusterBackupsRequest + + items []*mongodb.Backup +} + +func (c *ClusterServiceClient) ClusterBackupsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterBackupsIterator { + return &ClusterBackupsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mongodb.ListClusterBackupsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterBackupsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListBackups(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Backups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterBackupsIterator) Value() *mongodb.Backup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterBackupsIterator) Error() error { + return it.err +} + // ListHosts implements mongodb.ClusterServiceClient func (c *ClusterServiceClient) ListHosts(ctx context.Context, in *mongodb.ListClusterHostsRequest, opts ...grpc.CallOption) (*mongodb.ListClusterHostsResponse, error) { conn, err := c.getConn(ctx) @@ -139,6 +263,69 @@ func (c *ClusterServiceClient) ListHosts(ctx context.Context, in *mongodb.ListCl return mongodb.NewClusterServiceClient(conn).ListHosts(ctx, in, opts...) } +type ClusterHostsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *mongodb.ListClusterHostsRequest + + items []*mongodb.Host +} + +func (c *ClusterServiceClient) ClusterHostsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterHostsIterator { + return &ClusterHostsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mongodb.ListClusterHostsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterHostsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListHosts(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Hosts + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterHostsIterator) Value() *mongodb.Host { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterHostsIterator) Error() error { + return it.err +} + // ListLogs implements mongodb.ClusterServiceClient func (c *ClusterServiceClient) ListLogs(ctx context.Context, in *mongodb.ListClusterLogsRequest, opts ...grpc.CallOption) (*mongodb.ListClusterLogsResponse, error) { conn, err := c.getConn(ctx) @@ -148,6 +335,69 @@ func (c *ClusterServiceClient) ListLogs(ctx context.Context, in *mongodb.ListClu return mongodb.NewClusterServiceClient(conn).ListLogs(ctx, in, opts...) } +type ClusterLogsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *mongodb.ListClusterLogsRequest + + items []*mongodb.LogRecord +} + +func (c *ClusterServiceClient) ClusterLogsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterLogsIterator { + return &ClusterLogsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mongodb.ListClusterLogsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterLogsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListLogs(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Logs + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterLogsIterator) Value() *mongodb.LogRecord { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterLogsIterator) Error() error { + return it.err +} + // ListOperations implements mongodb.ClusterServiceClient func (c *ClusterServiceClient) ListOperations(ctx context.Context, in *mongodb.ListClusterOperationsRequest, opts ...grpc.CallOption) (*mongodb.ListClusterOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -157,6 +407,69 @@ func (c *ClusterServiceClient) ListOperations(ctx context.Context, in *mongodb.L return mongodb.NewClusterServiceClient(conn).ListOperations(ctx, in, opts...) } +type ClusterOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *mongodb.ListClusterOperationsRequest + + items []*operation.Operation +} + +func (c *ClusterServiceClient) ClusterOperationsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterOperationsIterator { + return &ClusterOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mongodb.ListClusterOperationsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterOperationsIterator) Error() error { + return it.err +} + // ListShards implements mongodb.ClusterServiceClient func (c *ClusterServiceClient) ListShards(ctx context.Context, in *mongodb.ListClusterShardsRequest, opts ...grpc.CallOption) (*mongodb.ListClusterShardsResponse, error) { conn, err := c.getConn(ctx) @@ -166,6 +479,69 @@ func (c *ClusterServiceClient) ListShards(ctx context.Context, in *mongodb.ListC return mongodb.NewClusterServiceClient(conn).ListShards(ctx, in, opts...) } +type ClusterShardsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *mongodb.ListClusterShardsRequest + + items []*mongodb.Shard +} + +func (c *ClusterServiceClient) ClusterShardsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterShardsIterator { + return &ClusterShardsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mongodb.ListClusterShardsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterShardsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListShards(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Shards + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterShardsIterator) Value() *mongodb.Shard { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterShardsIterator) Error() error { + return it.err +} + // Move implements mongodb.ClusterServiceClient func (c *ClusterServiceClient) Move(ctx context.Context, in *mongodb.MoveClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -175,6 +551,24 @@ func (c *ClusterServiceClient) Move(ctx context.Context, in *mongodb.MoveCluster return mongodb.NewClusterServiceClient(conn).Move(ctx, in, opts...) } +// ResetupHosts implements mongodb.ClusterServiceClient +func (c *ClusterServiceClient) ResetupHosts(ctx context.Context, in *mongodb.ResetupHostsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return mongodb.NewClusterServiceClient(conn).ResetupHosts(ctx, in, opts...) +} + +// RestartHosts implements mongodb.ClusterServiceClient +func (c *ClusterServiceClient) RestartHosts(ctx context.Context, in *mongodb.RestartHostsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return mongodb.NewClusterServiceClient(conn).RestartHosts(ctx, in, opts...) +} + // Restore implements mongodb.ClusterServiceClient func (c *ClusterServiceClient) Restore(ctx context.Context, in *mongodb.RestoreClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -202,6 +596,15 @@ func (c *ClusterServiceClient) Stop(ctx context.Context, in *mongodb.StopCluster return mongodb.NewClusterServiceClient(conn).Stop(ctx, in, opts...) } +// StreamLogs implements mongodb.ClusterServiceClient +func (c *ClusterServiceClient) StreamLogs(ctx context.Context, in *mongodb.StreamClusterLogsRequest, opts ...grpc.CallOption) (mongodb.ClusterService_StreamLogsClient, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return mongodb.NewClusterServiceClient(conn).StreamLogs(ctx, in, opts...) +} + // Update implements mongodb.ClusterServiceClient func (c *ClusterServiceClient) Update(ctx context.Context, in *mongodb.UpdateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/database.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/database.go index 80942f86d..2f1d68dce 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/database.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/database.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1" + mongodb "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type DatabaseServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ mongodb.DatabaseServiceClient = &DatabaseServiceClient{} - // Create implements mongodb.DatabaseServiceClient func (c *DatabaseServiceClient) Create(ctx context.Context, in *mongodb.CreateDatabaseRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -57,3 +55,66 @@ func (c *DatabaseServiceClient) List(ctx context.Context, in *mongodb.ListDataba } return mongodb.NewDatabaseServiceClient(conn).List(ctx, in, opts...) } + +type DatabaseIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *DatabaseServiceClient + request *mongodb.ListDatabasesRequest + + items []*mongodb.Database +} + +func (c *DatabaseServiceClient) DatabaseIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *DatabaseIterator { + return &DatabaseIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mongodb.ListDatabasesRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *DatabaseIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Databases + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *DatabaseIterator) Value() *mongodb.Database { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *DatabaseIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/resourcepreset.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/resourcepreset.go index 6a3c67eb6..0f496084f 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/resourcepreset.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/resourcepreset.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1" + mongodb "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1" ) //revive:disable @@ -19,8 +19,6 @@ type ResourcePresetServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ mongodb.ResourcePresetServiceClient = &ResourcePresetServiceClient{} - // Get implements mongodb.ResourcePresetServiceClient func (c *ResourcePresetServiceClient) Get(ctx context.Context, in *mongodb.GetResourcePresetRequest, opts ...grpc.CallOption) (*mongodb.ResourcePreset, error) { conn, err := c.getConn(ctx) @@ -38,3 +36,65 @@ func (c *ResourcePresetServiceClient) List(ctx context.Context, in *mongodb.List } return mongodb.NewResourcePresetServiceClient(conn).List(ctx, in, opts...) } + +type ResourcePresetIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ResourcePresetServiceClient + request *mongodb.ListResourcePresetsRequest + + items []*mongodb.ResourcePreset +} + +func (c *ResourcePresetServiceClient) ResourcePresetIterator(ctx context.Context, opts ...grpc.CallOption) *ResourcePresetIterator { + return &ResourcePresetIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mongodb.ListResourcePresetsRequest{ + PageSize: 1000, + }, + } +} + +func (it *ResourcePresetIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.ResourcePresets + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ResourcePresetIterator) Value() *mongodb.ResourcePreset { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ResourcePresetIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/user.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/user.go index 4be6add55..aa9d3242e 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/user.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mongodb/user.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1" + mongodb "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type UserServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ mongodb.UserServiceClient = &UserServiceClient{} - // Create implements mongodb.UserServiceClient func (c *UserServiceClient) Create(ctx context.Context, in *mongodb.CreateUserRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -67,6 +65,69 @@ func (c *UserServiceClient) List(ctx context.Context, in *mongodb.ListUsersReque return mongodb.NewUserServiceClient(conn).List(ctx, in, opts...) } +type UserIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *UserServiceClient + request *mongodb.ListUsersRequest + + items []*mongodb.User +} + +func (c *UserServiceClient) UserIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *UserIterator { + return &UserIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mongodb.ListUsersRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *UserIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Users + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *UserIterator) Value() *mongodb.User { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *UserIterator) Error() error { + return it.err +} + // RevokePermission implements mongodb.UserServiceClient func (c *UserServiceClient) RevokePermission(ctx context.Context, in *mongodb.RevokeUserPermissionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/backup.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/backup.go index fcf3729ce..8f912b9d8 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/backup.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/backup.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1" + mysql "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1" ) //revive:disable @@ -19,8 +19,6 @@ type BackupServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ mysql.BackupServiceClient = &BackupServiceClient{} - // Get implements mysql.BackupServiceClient func (c *BackupServiceClient) Get(ctx context.Context, in *mysql.GetBackupRequest, opts ...grpc.CallOption) (*mysql.Backup, error) { conn, err := c.getConn(ctx) @@ -38,3 +36,66 @@ func (c *BackupServiceClient) List(ctx context.Context, in *mysql.ListBackupsReq } return mysql.NewBackupServiceClient(conn).List(ctx, in, opts...) } + +type BackupIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *BackupServiceClient + request *mysql.ListBackupsRequest + + items []*mysql.Backup +} + +func (c *BackupServiceClient) BackupIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *BackupIterator { + return &BackupIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mysql.ListBackupsRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *BackupIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Backups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *BackupIterator) Value() *mysql.Backup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *BackupIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/cluster.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/cluster.go index 9b7174a69..986b7d5d2 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/cluster.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/cluster.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1" + mysql "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type ClusterServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ mysql.ClusterServiceClient = &ClusterServiceClient{} - // AddHosts implements mysql.ClusterServiceClient func (c *ClusterServiceClient) AddHosts(ctx context.Context, in *mysql.AddClusterHostsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -85,6 +83,69 @@ func (c *ClusterServiceClient) List(ctx context.Context, in *mysql.ListClustersR return mysql.NewClusterServiceClient(conn).List(ctx, in, opts...) } +type ClusterIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *mysql.ListClustersRequest + + items []*mysql.Cluster +} + +func (c *ClusterServiceClient) ClusterIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *ClusterIterator { + return &ClusterIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mysql.ListClustersRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *ClusterIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Clusters + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterIterator) Value() *mysql.Cluster { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterIterator) Error() error { + return it.err +} + // ListBackups implements mysql.ClusterServiceClient func (c *ClusterServiceClient) ListBackups(ctx context.Context, in *mysql.ListClusterBackupsRequest, opts ...grpc.CallOption) (*mysql.ListClusterBackupsResponse, error) { conn, err := c.getConn(ctx) @@ -94,6 +155,69 @@ func (c *ClusterServiceClient) ListBackups(ctx context.Context, in *mysql.ListCl return mysql.NewClusterServiceClient(conn).ListBackups(ctx, in, opts...) } +type ClusterBackupsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *mysql.ListClusterBackupsRequest + + items []*mysql.Backup +} + +func (c *ClusterServiceClient) ClusterBackupsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterBackupsIterator { + return &ClusterBackupsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mysql.ListClusterBackupsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterBackupsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListBackups(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Backups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterBackupsIterator) Value() *mysql.Backup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterBackupsIterator) Error() error { + return it.err +} + // ListHosts implements mysql.ClusterServiceClient func (c *ClusterServiceClient) ListHosts(ctx context.Context, in *mysql.ListClusterHostsRequest, opts ...grpc.CallOption) (*mysql.ListClusterHostsResponse, error) { conn, err := c.getConn(ctx) @@ -103,6 +227,69 @@ func (c *ClusterServiceClient) ListHosts(ctx context.Context, in *mysql.ListClus return mysql.NewClusterServiceClient(conn).ListHosts(ctx, in, opts...) } +type ClusterHostsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *mysql.ListClusterHostsRequest + + items []*mysql.Host +} + +func (c *ClusterServiceClient) ClusterHostsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterHostsIterator { + return &ClusterHostsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mysql.ListClusterHostsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterHostsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListHosts(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Hosts + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterHostsIterator) Value() *mysql.Host { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterHostsIterator) Error() error { + return it.err +} + // ListLogs implements mysql.ClusterServiceClient func (c *ClusterServiceClient) ListLogs(ctx context.Context, in *mysql.ListClusterLogsRequest, opts ...grpc.CallOption) (*mysql.ListClusterLogsResponse, error) { conn, err := c.getConn(ctx) @@ -112,6 +299,69 @@ func (c *ClusterServiceClient) ListLogs(ctx context.Context, in *mysql.ListClust return mysql.NewClusterServiceClient(conn).ListLogs(ctx, in, opts...) } +type ClusterLogsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *mysql.ListClusterLogsRequest + + items []*mysql.LogRecord +} + +func (c *ClusterServiceClient) ClusterLogsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterLogsIterator { + return &ClusterLogsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mysql.ListClusterLogsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterLogsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListLogs(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Logs + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterLogsIterator) Value() *mysql.LogRecord { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterLogsIterator) Error() error { + return it.err +} + // ListOperations implements mysql.ClusterServiceClient func (c *ClusterServiceClient) ListOperations(ctx context.Context, in *mysql.ListClusterOperationsRequest, opts ...grpc.CallOption) (*mysql.ListClusterOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -121,6 +371,69 @@ func (c *ClusterServiceClient) ListOperations(ctx context.Context, in *mysql.Lis return mysql.NewClusterServiceClient(conn).ListOperations(ctx, in, opts...) } +type ClusterOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *mysql.ListClusterOperationsRequest + + items []*operation.Operation +} + +func (c *ClusterServiceClient) ClusterOperationsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterOperationsIterator { + return &ClusterOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mysql.ListClusterOperationsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterOperationsIterator) Error() error { + return it.err +} + // Move implements mysql.ClusterServiceClient func (c *ClusterServiceClient) Move(ctx context.Context, in *mysql.MoveClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -166,6 +479,15 @@ func (c *ClusterServiceClient) Stop(ctx context.Context, in *mysql.StopClusterRe return mysql.NewClusterServiceClient(conn).Stop(ctx, in, opts...) } +// StreamLogs implements mysql.ClusterServiceClient +func (c *ClusterServiceClient) StreamLogs(ctx context.Context, in *mysql.StreamClusterLogsRequest, opts ...grpc.CallOption) (mysql.ClusterService_StreamLogsClient, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return mysql.NewClusterServiceClient(conn).StreamLogs(ctx, in, opts...) +} + // Update implements mysql.ClusterServiceClient func (c *ClusterServiceClient) Update(ctx context.Context, in *mysql.UpdateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/database.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/database.go index 5c12b5900..f97590d7d 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/database.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/database.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1" + mysql "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type DatabaseServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ mysql.DatabaseServiceClient = &DatabaseServiceClient{} - // Create implements mysql.DatabaseServiceClient func (c *DatabaseServiceClient) Create(ctx context.Context, in *mysql.CreateDatabaseRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -57,3 +55,66 @@ func (c *DatabaseServiceClient) List(ctx context.Context, in *mysql.ListDatabase } return mysql.NewDatabaseServiceClient(conn).List(ctx, in, opts...) } + +type DatabaseIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *DatabaseServiceClient + request *mysql.ListDatabasesRequest + + items []*mysql.Database +} + +func (c *DatabaseServiceClient) DatabaseIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *DatabaseIterator { + return &DatabaseIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mysql.ListDatabasesRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *DatabaseIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Databases + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *DatabaseIterator) Value() *mysql.Database { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *DatabaseIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/resourcepreset.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/resourcepreset.go index 4382700a0..785f26852 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/resourcepreset.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/resourcepreset.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1" + mysql "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1" ) //revive:disable @@ -19,8 +19,6 @@ type ResourcePresetServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ mysql.ResourcePresetServiceClient = &ResourcePresetServiceClient{} - // Get implements mysql.ResourcePresetServiceClient func (c *ResourcePresetServiceClient) Get(ctx context.Context, in *mysql.GetResourcePresetRequest, opts ...grpc.CallOption) (*mysql.ResourcePreset, error) { conn, err := c.getConn(ctx) @@ -38,3 +36,65 @@ func (c *ResourcePresetServiceClient) List(ctx context.Context, in *mysql.ListRe } return mysql.NewResourcePresetServiceClient(conn).List(ctx, in, opts...) } + +type ResourcePresetIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ResourcePresetServiceClient + request *mysql.ListResourcePresetsRequest + + items []*mysql.ResourcePreset +} + +func (c *ResourcePresetServiceClient) ResourcePresetIterator(ctx context.Context, opts ...grpc.CallOption) *ResourcePresetIterator { + return &ResourcePresetIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mysql.ListResourcePresetsRequest{ + PageSize: 1000, + }, + } +} + +func (it *ResourcePresetIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.ResourcePresets + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ResourcePresetIterator) Value() *mysql.ResourcePreset { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ResourcePresetIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/user.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/user.go index 5cb67db00..aa2b328de 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/user.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/mysql/user.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1" + mysql "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mysql/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type UserServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ mysql.UserServiceClient = &UserServiceClient{} - // Create implements mysql.UserServiceClient func (c *UserServiceClient) Create(ctx context.Context, in *mysql.CreateUserRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -67,6 +65,69 @@ func (c *UserServiceClient) List(ctx context.Context, in *mysql.ListUsersRequest return mysql.NewUserServiceClient(conn).List(ctx, in, opts...) } +type UserIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *UserServiceClient + request *mysql.ListUsersRequest + + items []*mysql.User +} + +func (c *UserServiceClient) UserIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *UserIterator { + return &UserIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &mysql.ListUsersRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *UserIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Users + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *UserIterator) Value() *mysql.User { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *UserIterator) Error() error { + return it.err +} + // RevokePermission implements mysql.UserServiceClient func (c *UserServiceClient) RevokePermission(ctx context.Context, in *mysql.RevokeUserPermissionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/backup.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/backup.go index 5cd485f5e..fe920436e 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/backup.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/backup.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1" + postgresql "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1" ) //revive:disable @@ -19,8 +19,6 @@ type BackupServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ postgresql.BackupServiceClient = &BackupServiceClient{} - // Get implements postgresql.BackupServiceClient func (c *BackupServiceClient) Get(ctx context.Context, in *postgresql.GetBackupRequest, opts ...grpc.CallOption) (*postgresql.Backup, error) { conn, err := c.getConn(ctx) @@ -38,3 +36,66 @@ func (c *BackupServiceClient) List(ctx context.Context, in *postgresql.ListBacku } return postgresql.NewBackupServiceClient(conn).List(ctx, in, opts...) } + +type BackupIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *BackupServiceClient + request *postgresql.ListBackupsRequest + + items []*postgresql.Backup +} + +func (c *BackupServiceClient) BackupIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *BackupIterator { + return &BackupIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &postgresql.ListBackupsRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *BackupIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Backups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *BackupIterator) Value() *postgresql.Backup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *BackupIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/cluster.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/cluster.go index e153100c9..4e54db56e 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/cluster.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/cluster.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1" + postgresql "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type ClusterServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ postgresql.ClusterServiceClient = &ClusterServiceClient{} - // AddHosts implements postgresql.ClusterServiceClient func (c *ClusterServiceClient) AddHosts(ctx context.Context, in *postgresql.AddClusterHostsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -85,6 +83,69 @@ func (c *ClusterServiceClient) List(ctx context.Context, in *postgresql.ListClus return postgresql.NewClusterServiceClient(conn).List(ctx, in, opts...) } +type ClusterIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *postgresql.ListClustersRequest + + items []*postgresql.Cluster +} + +func (c *ClusterServiceClient) ClusterIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *ClusterIterator { + return &ClusterIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &postgresql.ListClustersRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *ClusterIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Clusters + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterIterator) Value() *postgresql.Cluster { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterIterator) Error() error { + return it.err +} + // ListBackups implements postgresql.ClusterServiceClient func (c *ClusterServiceClient) ListBackups(ctx context.Context, in *postgresql.ListClusterBackupsRequest, opts ...grpc.CallOption) (*postgresql.ListClusterBackupsResponse, error) { conn, err := c.getConn(ctx) @@ -94,6 +155,69 @@ func (c *ClusterServiceClient) ListBackups(ctx context.Context, in *postgresql.L return postgresql.NewClusterServiceClient(conn).ListBackups(ctx, in, opts...) } +type ClusterBackupsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *postgresql.ListClusterBackupsRequest + + items []*postgresql.Backup +} + +func (c *ClusterServiceClient) ClusterBackupsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterBackupsIterator { + return &ClusterBackupsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &postgresql.ListClusterBackupsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterBackupsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListBackups(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Backups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterBackupsIterator) Value() *postgresql.Backup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterBackupsIterator) Error() error { + return it.err +} + // ListHosts implements postgresql.ClusterServiceClient func (c *ClusterServiceClient) ListHosts(ctx context.Context, in *postgresql.ListClusterHostsRequest, opts ...grpc.CallOption) (*postgresql.ListClusterHostsResponse, error) { conn, err := c.getConn(ctx) @@ -103,6 +227,69 @@ func (c *ClusterServiceClient) ListHosts(ctx context.Context, in *postgresql.Lis return postgresql.NewClusterServiceClient(conn).ListHosts(ctx, in, opts...) } +type ClusterHostsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *postgresql.ListClusterHostsRequest + + items []*postgresql.Host +} + +func (c *ClusterServiceClient) ClusterHostsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterHostsIterator { + return &ClusterHostsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &postgresql.ListClusterHostsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterHostsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListHosts(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Hosts + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterHostsIterator) Value() *postgresql.Host { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterHostsIterator) Error() error { + return it.err +} + // ListLogs implements postgresql.ClusterServiceClient func (c *ClusterServiceClient) ListLogs(ctx context.Context, in *postgresql.ListClusterLogsRequest, opts ...grpc.CallOption) (*postgresql.ListClusterLogsResponse, error) { conn, err := c.getConn(ctx) @@ -112,6 +299,69 @@ func (c *ClusterServiceClient) ListLogs(ctx context.Context, in *postgresql.List return postgresql.NewClusterServiceClient(conn).ListLogs(ctx, in, opts...) } +type ClusterLogsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *postgresql.ListClusterLogsRequest + + items []*postgresql.LogRecord +} + +func (c *ClusterServiceClient) ClusterLogsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterLogsIterator { + return &ClusterLogsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &postgresql.ListClusterLogsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterLogsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListLogs(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Logs + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterLogsIterator) Value() *postgresql.LogRecord { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterLogsIterator) Error() error { + return it.err +} + // ListOperations implements postgresql.ClusterServiceClient func (c *ClusterServiceClient) ListOperations(ctx context.Context, in *postgresql.ListClusterOperationsRequest, opts ...grpc.CallOption) (*postgresql.ListClusterOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -121,6 +371,69 @@ func (c *ClusterServiceClient) ListOperations(ctx context.Context, in *postgresq return postgresql.NewClusterServiceClient(conn).ListOperations(ctx, in, opts...) } +type ClusterOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *postgresql.ListClusterOperationsRequest + + items []*operation.Operation +} + +func (c *ClusterServiceClient) ClusterOperationsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterOperationsIterator { + return &ClusterOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &postgresql.ListClusterOperationsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterOperationsIterator) Error() error { + return it.err +} + // Move implements postgresql.ClusterServiceClient func (c *ClusterServiceClient) Move(ctx context.Context, in *postgresql.MoveClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -166,6 +479,15 @@ func (c *ClusterServiceClient) Stop(ctx context.Context, in *postgresql.StopClus return postgresql.NewClusterServiceClient(conn).Stop(ctx, in, opts...) } +// StreamLogs implements postgresql.ClusterServiceClient +func (c *ClusterServiceClient) StreamLogs(ctx context.Context, in *postgresql.StreamClusterLogsRequest, opts ...grpc.CallOption) (postgresql.ClusterService_StreamLogsClient, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return postgresql.NewClusterServiceClient(conn).StreamLogs(ctx, in, opts...) +} + // Update implements postgresql.ClusterServiceClient func (c *ClusterServiceClient) Update(ctx context.Context, in *postgresql.UpdateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/database.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/database.go index 05d0d7e06..b3c4e88d2 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/database.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/database.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1" + postgresql "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type DatabaseServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ postgresql.DatabaseServiceClient = &DatabaseServiceClient{} - // Create implements postgresql.DatabaseServiceClient func (c *DatabaseServiceClient) Create(ctx context.Context, in *postgresql.CreateDatabaseRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -58,6 +56,69 @@ func (c *DatabaseServiceClient) List(ctx context.Context, in *postgresql.ListDat return postgresql.NewDatabaseServiceClient(conn).List(ctx, in, opts...) } +type DatabaseIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *DatabaseServiceClient + request *postgresql.ListDatabasesRequest + + items []*postgresql.Database +} + +func (c *DatabaseServiceClient) DatabaseIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *DatabaseIterator { + return &DatabaseIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &postgresql.ListDatabasesRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *DatabaseIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Databases + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *DatabaseIterator) Value() *postgresql.Database { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *DatabaseIterator) Error() error { + return it.err +} + // Update implements postgresql.DatabaseServiceClient func (c *DatabaseServiceClient) Update(ctx context.Context, in *postgresql.UpdateDatabaseRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/resourcepreset.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/resourcepreset.go index 4ea6f36d7..d799f1c6f 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/resourcepreset.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/resourcepreset.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1" + postgresql "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1" ) //revive:disable @@ -19,8 +19,6 @@ type ResourcePresetServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ postgresql.ResourcePresetServiceClient = &ResourcePresetServiceClient{} - // Get implements postgresql.ResourcePresetServiceClient func (c *ResourcePresetServiceClient) Get(ctx context.Context, in *postgresql.GetResourcePresetRequest, opts ...grpc.CallOption) (*postgresql.ResourcePreset, error) { conn, err := c.getConn(ctx) @@ -38,3 +36,65 @@ func (c *ResourcePresetServiceClient) List(ctx context.Context, in *postgresql.L } return postgresql.NewResourcePresetServiceClient(conn).List(ctx, in, opts...) } + +type ResourcePresetIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ResourcePresetServiceClient + request *postgresql.ListResourcePresetsRequest + + items []*postgresql.ResourcePreset +} + +func (c *ResourcePresetServiceClient) ResourcePresetIterator(ctx context.Context, opts ...grpc.CallOption) *ResourcePresetIterator { + return &ResourcePresetIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &postgresql.ListResourcePresetsRequest{ + PageSize: 1000, + }, + } +} + +func (it *ResourcePresetIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.ResourcePresets + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ResourcePresetIterator) Value() *postgresql.ResourcePreset { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ResourcePresetIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/user.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/user.go index 308967e54..a615fa238 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/user.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/postgresql/user.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1" + postgresql "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type UserServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ postgresql.UserServiceClient = &UserServiceClient{} - // Create implements postgresql.UserServiceClient func (c *UserServiceClient) Create(ctx context.Context, in *postgresql.CreateUserRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -67,6 +65,69 @@ func (c *UserServiceClient) List(ctx context.Context, in *postgresql.ListUsersRe return postgresql.NewUserServiceClient(conn).List(ctx, in, opts...) } +type UserIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *UserServiceClient + request *postgresql.ListUsersRequest + + items []*postgresql.User +} + +func (c *UserServiceClient) UserIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *UserIterator { + return &UserIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &postgresql.ListUsersRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *UserIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Users + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *UserIterator) Value() *postgresql.User { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *UserIterator) Error() error { + return it.err +} + // RevokePermission implements postgresql.UserServiceClient func (c *UserServiceClient) RevokePermission(ctx context.Context, in *postgresql.RevokeUserPermissionRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/redis/backup.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/redis/backup.go index 955f6416a..42a6c6d28 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/redis/backup.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/redis/backup.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1" + redis "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1" ) //revive:disable @@ -19,8 +19,6 @@ type BackupServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ redis.BackupServiceClient = &BackupServiceClient{} - // Get implements redis.BackupServiceClient func (c *BackupServiceClient) Get(ctx context.Context, in *redis.GetBackupRequest, opts ...grpc.CallOption) (*redis.Backup, error) { conn, err := c.getConn(ctx) @@ -38,3 +36,66 @@ func (c *BackupServiceClient) List(ctx context.Context, in *redis.ListBackupsReq } return redis.NewBackupServiceClient(conn).List(ctx, in, opts...) } + +type BackupIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *BackupServiceClient + request *redis.ListBackupsRequest + + items []*redis.Backup +} + +func (c *BackupServiceClient) BackupIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *BackupIterator { + return &BackupIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &redis.ListBackupsRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *BackupIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Backups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *BackupIterator) Value() *redis.Backup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *BackupIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/redis/cluster.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/redis/cluster.go index 8eb043b24..b68a6e614 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/redis/cluster.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/redis/cluster.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1" + redis "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" ) @@ -20,8 +20,6 @@ type ClusterServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ redis.ClusterServiceClient = &ClusterServiceClient{} - // AddHosts implements redis.ClusterServiceClient func (c *ClusterServiceClient) AddHosts(ctx context.Context, in *redis.AddClusterHostsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -112,6 +110,69 @@ func (c *ClusterServiceClient) List(ctx context.Context, in *redis.ListClustersR return redis.NewClusterServiceClient(conn).List(ctx, in, opts...) } +type ClusterIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *redis.ListClustersRequest + + items []*redis.Cluster +} + +func (c *ClusterServiceClient) ClusterIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *ClusterIterator { + return &ClusterIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &redis.ListClustersRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *ClusterIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Clusters + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterIterator) Value() *redis.Cluster { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterIterator) Error() error { + return it.err +} + // ListBackups implements redis.ClusterServiceClient func (c *ClusterServiceClient) ListBackups(ctx context.Context, in *redis.ListClusterBackupsRequest, opts ...grpc.CallOption) (*redis.ListClusterBackupsResponse, error) { conn, err := c.getConn(ctx) @@ -121,6 +182,69 @@ func (c *ClusterServiceClient) ListBackups(ctx context.Context, in *redis.ListCl return redis.NewClusterServiceClient(conn).ListBackups(ctx, in, opts...) } +type ClusterBackupsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *redis.ListClusterBackupsRequest + + items []*redis.Backup +} + +func (c *ClusterServiceClient) ClusterBackupsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterBackupsIterator { + return &ClusterBackupsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &redis.ListClusterBackupsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterBackupsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListBackups(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Backups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterBackupsIterator) Value() *redis.Backup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterBackupsIterator) Error() error { + return it.err +} + // ListHosts implements redis.ClusterServiceClient func (c *ClusterServiceClient) ListHosts(ctx context.Context, in *redis.ListClusterHostsRequest, opts ...grpc.CallOption) (*redis.ListClusterHostsResponse, error) { conn, err := c.getConn(ctx) @@ -130,6 +254,69 @@ func (c *ClusterServiceClient) ListHosts(ctx context.Context, in *redis.ListClus return redis.NewClusterServiceClient(conn).ListHosts(ctx, in, opts...) } +type ClusterHostsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *redis.ListClusterHostsRequest + + items []*redis.Host +} + +func (c *ClusterServiceClient) ClusterHostsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterHostsIterator { + return &ClusterHostsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &redis.ListClusterHostsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterHostsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListHosts(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Hosts + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterHostsIterator) Value() *redis.Host { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterHostsIterator) Error() error { + return it.err +} + // ListLogs implements redis.ClusterServiceClient func (c *ClusterServiceClient) ListLogs(ctx context.Context, in *redis.ListClusterLogsRequest, opts ...grpc.CallOption) (*redis.ListClusterLogsResponse, error) { conn, err := c.getConn(ctx) @@ -139,6 +326,69 @@ func (c *ClusterServiceClient) ListLogs(ctx context.Context, in *redis.ListClust return redis.NewClusterServiceClient(conn).ListLogs(ctx, in, opts...) } +type ClusterLogsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *redis.ListClusterLogsRequest + + items []*redis.LogRecord +} + +func (c *ClusterServiceClient) ClusterLogsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterLogsIterator { + return &ClusterLogsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &redis.ListClusterLogsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterLogsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListLogs(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Logs + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterLogsIterator) Value() *redis.LogRecord { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterLogsIterator) Error() error { + return it.err +} + // ListOperations implements redis.ClusterServiceClient func (c *ClusterServiceClient) ListOperations(ctx context.Context, in *redis.ListClusterOperationsRequest, opts ...grpc.CallOption) (*redis.ListClusterOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -148,6 +398,69 @@ func (c *ClusterServiceClient) ListOperations(ctx context.Context, in *redis.Lis return redis.NewClusterServiceClient(conn).ListOperations(ctx, in, opts...) } +type ClusterOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *redis.ListClusterOperationsRequest + + items []*operation.Operation +} + +func (c *ClusterServiceClient) ClusterOperationsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterOperationsIterator { + return &ClusterOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &redis.ListClusterOperationsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterOperationsIterator) Error() error { + return it.err +} + // ListShards implements redis.ClusterServiceClient func (c *ClusterServiceClient) ListShards(ctx context.Context, in *redis.ListClusterShardsRequest, opts ...grpc.CallOption) (*redis.ListClusterShardsResponse, error) { conn, err := c.getConn(ctx) @@ -157,6 +470,69 @@ func (c *ClusterServiceClient) ListShards(ctx context.Context, in *redis.ListClu return redis.NewClusterServiceClient(conn).ListShards(ctx, in, opts...) } +type ClusterShardsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ClusterServiceClient + request *redis.ListClusterShardsRequest + + items []*redis.Shard +} + +func (c *ClusterServiceClient) ClusterShardsIterator(ctx context.Context, clusterId string, opts ...grpc.CallOption) *ClusterShardsIterator { + return &ClusterShardsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &redis.ListClusterShardsRequest{ + ClusterId: clusterId, + PageSize: 1000, + }, + } +} + +func (it *ClusterShardsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListShards(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Shards + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ClusterShardsIterator) Value() *redis.Shard { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ClusterShardsIterator) Error() error { + return it.err +} + // Move implements redis.ClusterServiceClient func (c *ClusterServiceClient) Move(ctx context.Context, in *redis.MoveClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -211,6 +587,15 @@ func (c *ClusterServiceClient) Stop(ctx context.Context, in *redis.StopClusterRe return redis.NewClusterServiceClient(conn).Stop(ctx, in, opts...) } +// StreamLogs implements redis.ClusterServiceClient +func (c *ClusterServiceClient) StreamLogs(ctx context.Context, in *redis.StreamClusterLogsRequest, opts ...grpc.CallOption) (redis.ClusterService_StreamLogsClient, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return redis.NewClusterServiceClient(conn).StreamLogs(ctx, in, opts...) +} + // Update implements redis.ClusterServiceClient func (c *ClusterServiceClient) Update(ctx context.Context, in *redis.UpdateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/redis/resourcepreset.go b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/redis/resourcepreset.go index ea0b7f681..2801e31a7 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/redis/resourcepreset.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/mdb/redis/resourcepreset.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" - "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1" + redis "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1" ) //revive:disable @@ -19,8 +19,6 @@ type ResourcePresetServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ redis.ResourcePresetServiceClient = &ResourcePresetServiceClient{} - // Get implements redis.ResourcePresetServiceClient func (c *ResourcePresetServiceClient) Get(ctx context.Context, in *redis.GetResourcePresetRequest, opts ...grpc.CallOption) (*redis.ResourcePreset, error) { conn, err := c.getConn(ctx) @@ -38,3 +36,65 @@ func (c *ResourcePresetServiceClient) List(ctx context.Context, in *redis.ListRe } return redis.NewResourcePresetServiceClient(conn).List(ctx, in, opts...) } + +type ResourcePresetIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *ResourcePresetServiceClient + request *redis.ListResourcePresetsRequest + + items []*redis.ResourcePreset +} + +func (c *ResourcePresetServiceClient) ResourcePresetIterator(ctx context.Context, opts ...grpc.CallOption) *ResourcePresetIterator { + return &ResourcePresetIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &redis.ListResourcePresetsRequest{ + PageSize: 1000, + }, + } +} + +func (it *ResourcePresetIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.ResourcePresets + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *ResourcePresetIterator) Value() *redis.ResourcePreset { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *ResourcePresetIterator) Error() error { + return it.err +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/operation/operation.go b/vendor/github.com/yandex-cloud/go-sdk/gen/operation/operation.go index 2fb2d2a6b..1fd3de7af 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/operation/operation.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/operation/operation.go @@ -19,8 +19,6 @@ type OperationServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ operation.OperationServiceClient = &OperationServiceClient{} - // Cancel implements operation.OperationServiceClient func (c *OperationServiceClient) Cancel(ctx context.Context, in *operation.CancelOperationRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/resourcemanager/cloud.go b/vendor/github.com/yandex-cloud/go-sdk/gen/resourcemanager/cloud.go index cf7fea07e..1fda3dd7a 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/resourcemanager/cloud.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/resourcemanager/cloud.go @@ -10,7 +10,7 @@ import ( "github.com/yandex-cloud/go-genproto/yandex/cloud/access" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" - "github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1" + resourcemanager "github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1" ) //revive:disable @@ -21,8 +21,6 @@ type CloudServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ resourcemanager.CloudServiceClient = &CloudServiceClient{} - // Get implements resourcemanager.CloudServiceClient func (c *CloudServiceClient) Get(ctx context.Context, in *resourcemanager.GetCloudRequest, opts ...grpc.CallOption) (*resourcemanager.Cloud, error) { conn, err := c.getConn(ctx) @@ -41,6 +39,68 @@ func (c *CloudServiceClient) List(ctx context.Context, in *resourcemanager.ListC return resourcemanager.NewCloudServiceClient(conn).List(ctx, in, opts...) } +type CloudIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *CloudServiceClient + request *resourcemanager.ListCloudsRequest + + items []*resourcemanager.Cloud +} + +func (c *CloudServiceClient) CloudIterator(ctx context.Context, opts ...grpc.CallOption) *CloudIterator { + return &CloudIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &resourcemanager.ListCloudsRequest{ + PageSize: 1000, + }, + } +} + +func (it *CloudIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Clouds + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *CloudIterator) Value() *resourcemanager.Cloud { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *CloudIterator) Error() error { + return it.err +} + // ListAccessBindings implements resourcemanager.CloudServiceClient func (c *CloudServiceClient) ListAccessBindings(ctx context.Context, in *access.ListAccessBindingsRequest, opts ...grpc.CallOption) (*access.ListAccessBindingsResponse, error) { conn, err := c.getConn(ctx) @@ -50,6 +110,69 @@ func (c *CloudServiceClient) ListAccessBindings(ctx context.Context, in *access. return resourcemanager.NewCloudServiceClient(conn).ListAccessBindings(ctx, in, opts...) } +type CloudAccessBindingsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *CloudServiceClient + request *access.ListAccessBindingsRequest + + items []*access.AccessBinding +} + +func (c *CloudServiceClient) CloudAccessBindingsIterator(ctx context.Context, resourceId string, opts ...grpc.CallOption) *CloudAccessBindingsIterator { + return &CloudAccessBindingsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &access.ListAccessBindingsRequest{ + ResourceId: resourceId, + PageSize: 1000, + }, + } +} + +func (it *CloudAccessBindingsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListAccessBindings(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.AccessBindings + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *CloudAccessBindingsIterator) Value() *access.AccessBinding { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *CloudAccessBindingsIterator) Error() error { + return it.err +} + // ListOperations implements resourcemanager.CloudServiceClient func (c *CloudServiceClient) ListOperations(ctx context.Context, in *resourcemanager.ListCloudOperationsRequest, opts ...grpc.CallOption) (*resourcemanager.ListCloudOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -59,6 +182,69 @@ func (c *CloudServiceClient) ListOperations(ctx context.Context, in *resourceman return resourcemanager.NewCloudServiceClient(conn).ListOperations(ctx, in, opts...) } +type CloudOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *CloudServiceClient + request *resourcemanager.ListCloudOperationsRequest + + items []*operation.Operation +} + +func (c *CloudServiceClient) CloudOperationsIterator(ctx context.Context, cloudId string, opts ...grpc.CallOption) *CloudOperationsIterator { + return &CloudOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &resourcemanager.ListCloudOperationsRequest{ + CloudId: cloudId, + PageSize: 1000, + }, + } +} + +func (it *CloudOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *CloudOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *CloudOperationsIterator) Error() error { + return it.err +} + // SetAccessBindings implements resourcemanager.CloudServiceClient func (c *CloudServiceClient) SetAccessBindings(ctx context.Context, in *access.SetAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/resourcemanager/folder.go b/vendor/github.com/yandex-cloud/go-sdk/gen/resourcemanager/folder.go index a58845166..5636e7f1c 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/resourcemanager/folder.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/resourcemanager/folder.go @@ -10,7 +10,7 @@ import ( "github.com/yandex-cloud/go-genproto/yandex/cloud/access" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" - "github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1" + resourcemanager "github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1" ) //revive:disable @@ -21,8 +21,6 @@ type FolderServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ resourcemanager.FolderServiceClient = &FolderServiceClient{} - // Create implements resourcemanager.FolderServiceClient func (c *FolderServiceClient) Create(ctx context.Context, in *resourcemanager.CreateFolderRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -59,6 +57,69 @@ func (c *FolderServiceClient) List(ctx context.Context, in *resourcemanager.List return resourcemanager.NewFolderServiceClient(conn).List(ctx, in, opts...) } +type FolderIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *FolderServiceClient + request *resourcemanager.ListFoldersRequest + + items []*resourcemanager.Folder +} + +func (c *FolderServiceClient) FolderIterator(ctx context.Context, cloudId string, opts ...grpc.CallOption) *FolderIterator { + return &FolderIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &resourcemanager.ListFoldersRequest{ + CloudId: cloudId, + PageSize: 1000, + }, + } +} + +func (it *FolderIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Folders + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *FolderIterator) Value() *resourcemanager.Folder { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *FolderIterator) Error() error { + return it.err +} + // ListAccessBindings implements resourcemanager.FolderServiceClient func (c *FolderServiceClient) ListAccessBindings(ctx context.Context, in *access.ListAccessBindingsRequest, opts ...grpc.CallOption) (*access.ListAccessBindingsResponse, error) { conn, err := c.getConn(ctx) @@ -68,6 +129,69 @@ func (c *FolderServiceClient) ListAccessBindings(ctx context.Context, in *access return resourcemanager.NewFolderServiceClient(conn).ListAccessBindings(ctx, in, opts...) } +type FolderAccessBindingsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *FolderServiceClient + request *access.ListAccessBindingsRequest + + items []*access.AccessBinding +} + +func (c *FolderServiceClient) FolderAccessBindingsIterator(ctx context.Context, resourceId string, opts ...grpc.CallOption) *FolderAccessBindingsIterator { + return &FolderAccessBindingsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &access.ListAccessBindingsRequest{ + ResourceId: resourceId, + PageSize: 1000, + }, + } +} + +func (it *FolderAccessBindingsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListAccessBindings(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.AccessBindings + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *FolderAccessBindingsIterator) Value() *access.AccessBinding { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *FolderAccessBindingsIterator) Error() error { + return it.err +} + // ListOperations implements resourcemanager.FolderServiceClient func (c *FolderServiceClient) ListOperations(ctx context.Context, in *resourcemanager.ListFolderOperationsRequest, opts ...grpc.CallOption) (*resourcemanager.ListFolderOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -77,6 +201,69 @@ func (c *FolderServiceClient) ListOperations(ctx context.Context, in *resourcema return resourcemanager.NewFolderServiceClient(conn).ListOperations(ctx, in, opts...) } +type FolderOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *FolderServiceClient + request *resourcemanager.ListFolderOperationsRequest + + items []*operation.Operation +} + +func (c *FolderServiceClient) FolderOperationsIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *FolderOperationsIterator { + return &FolderOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &resourcemanager.ListFolderOperationsRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *FolderOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *FolderOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *FolderOperationsIterator) Error() error { + return it.err +} + // SetAccessBindings implements resourcemanager.FolderServiceClient func (c *FolderServiceClient) SetAccessBindings(ctx context.Context, in *access.SetAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/triggers/trigger.go b/vendor/github.com/yandex-cloud/go-sdk/gen/triggers/trigger.go index e8c199c87..d365877e3 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/triggers/trigger.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/triggers/trigger.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" - "github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1" + triggers "github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1" ) //revive:disable @@ -20,8 +20,6 @@ type TriggerServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ triggers.TriggerServiceClient = &TriggerServiceClient{} - // Create implements triggers.TriggerServiceClient func (c *TriggerServiceClient) Create(ctx context.Context, in *triggers.CreateTriggerRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -58,6 +56,69 @@ func (c *TriggerServiceClient) List(ctx context.Context, in *triggers.ListTrigge return triggers.NewTriggerServiceClient(conn).List(ctx, in, opts...) } +type TriggerIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *TriggerServiceClient + request *triggers.ListTriggersRequest + + items []*triggers.Trigger +} + +func (c *TriggerServiceClient) TriggerIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *TriggerIterator { + return &TriggerIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &triggers.ListTriggersRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *TriggerIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Triggers + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *TriggerIterator) Value() *triggers.Trigger { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *TriggerIterator) Error() error { + return it.err +} + // ListOperations implements triggers.TriggerServiceClient func (c *TriggerServiceClient) ListOperations(ctx context.Context, in *triggers.ListTriggerOperationsRequest, opts ...grpc.CallOption) (*triggers.ListTriggerOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -67,6 +128,87 @@ func (c *TriggerServiceClient) ListOperations(ctx context.Context, in *triggers. return triggers.NewTriggerServiceClient(conn).ListOperations(ctx, in, opts...) } +type TriggerOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *TriggerServiceClient + request *triggers.ListTriggerOperationsRequest + + items []*operation.Operation +} + +func (c *TriggerServiceClient) TriggerOperationsIterator(ctx context.Context, triggerId string, opts ...grpc.CallOption) *TriggerOperationsIterator { + return &TriggerOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &triggers.ListTriggerOperationsRequest{ + TriggerId: triggerId, + PageSize: 1000, + }, + } +} + +func (it *TriggerOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *TriggerOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *TriggerOperationsIterator) Error() error { + return it.err +} + +// Pause implements triggers.TriggerServiceClient +func (c *TriggerServiceClient) Pause(ctx context.Context, in *triggers.PauseTriggerRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return triggers.NewTriggerServiceClient(conn).Pause(ctx, in, opts...) +} + +// Resume implements triggers.TriggerServiceClient +func (c *TriggerServiceClient) Resume(ctx context.Context, in *triggers.ResumeTriggerRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return triggers.NewTriggerServiceClient(conn).Resume(ctx, in, opts...) +} + // Update implements triggers.TriggerServiceClient func (c *TriggerServiceClient) Update(ctx context.Context, in *triggers.UpdateTriggerRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/network.go b/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/network.go index 8a569492d..49982e128 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/network.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/network.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" - "github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1" + vpc "github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1" ) //revive:disable @@ -20,8 +20,6 @@ type NetworkServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ vpc.NetworkServiceClient = &NetworkServiceClient{} - // Create implements vpc.NetworkServiceClient func (c *NetworkServiceClient) Create(ctx context.Context, in *vpc.CreateNetworkRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -58,6 +56,69 @@ func (c *NetworkServiceClient) List(ctx context.Context, in *vpc.ListNetworksReq return vpc.NewNetworkServiceClient(conn).List(ctx, in, opts...) } +type NetworkIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *NetworkServiceClient + request *vpc.ListNetworksRequest + + items []*vpc.Network +} + +func (c *NetworkServiceClient) NetworkIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *NetworkIterator { + return &NetworkIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &vpc.ListNetworksRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *NetworkIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Networks + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *NetworkIterator) Value() *vpc.Network { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *NetworkIterator) Error() error { + return it.err +} + // ListOperations implements vpc.NetworkServiceClient func (c *NetworkServiceClient) ListOperations(ctx context.Context, in *vpc.ListNetworkOperationsRequest, opts ...grpc.CallOption) (*vpc.ListNetworkOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -67,6 +128,69 @@ func (c *NetworkServiceClient) ListOperations(ctx context.Context, in *vpc.ListN return vpc.NewNetworkServiceClient(conn).ListOperations(ctx, in, opts...) } +type NetworkOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *NetworkServiceClient + request *vpc.ListNetworkOperationsRequest + + items []*operation.Operation +} + +func (c *NetworkServiceClient) NetworkOperationsIterator(ctx context.Context, networkId string, opts ...grpc.CallOption) *NetworkOperationsIterator { + return &NetworkOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &vpc.ListNetworkOperationsRequest{ + NetworkId: networkId, + PageSize: 1000, + }, + } +} + +func (it *NetworkOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *NetworkOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *NetworkOperationsIterator) Error() error { + return it.err +} + // ListSubnets implements vpc.NetworkServiceClient func (c *NetworkServiceClient) ListSubnets(ctx context.Context, in *vpc.ListNetworkSubnetsRequest, opts ...grpc.CallOption) (*vpc.ListNetworkSubnetsResponse, error) { conn, err := c.getConn(ctx) @@ -76,6 +200,78 @@ func (c *NetworkServiceClient) ListSubnets(ctx context.Context, in *vpc.ListNetw return vpc.NewNetworkServiceClient(conn).ListSubnets(ctx, in, opts...) } +type NetworkSubnetsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *NetworkServiceClient + request *vpc.ListNetworkSubnetsRequest + + items []*vpc.Subnet +} + +func (c *NetworkServiceClient) NetworkSubnetsIterator(ctx context.Context, networkId string, opts ...grpc.CallOption) *NetworkSubnetsIterator { + return &NetworkSubnetsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &vpc.ListNetworkSubnetsRequest{ + NetworkId: networkId, + PageSize: 1000, + }, + } +} + +func (it *NetworkSubnetsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListSubnets(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Subnets + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *NetworkSubnetsIterator) Value() *vpc.Subnet { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *NetworkSubnetsIterator) Error() error { + return it.err +} + +// Move implements vpc.NetworkServiceClient +func (c *NetworkServiceClient) Move(ctx context.Context, in *vpc.MoveNetworkRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return vpc.NewNetworkServiceClient(conn).Move(ctx, in, opts...) +} + // Update implements vpc.NetworkServiceClient func (c *NetworkServiceClient) Update(ctx context.Context, in *vpc.UpdateNetworkRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/routetable.go b/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/routetable.go index f05951032..a8aacdc21 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/routetable.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/routetable.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" - "github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1" + vpc "github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1" ) //revive:disable @@ -20,8 +20,6 @@ type RouteTableServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ vpc.RouteTableServiceClient = &RouteTableServiceClient{} - // Create implements vpc.RouteTableServiceClient func (c *RouteTableServiceClient) Create(ctx context.Context, in *vpc.CreateRouteTableRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -58,6 +56,69 @@ func (c *RouteTableServiceClient) List(ctx context.Context, in *vpc.ListRouteTab return vpc.NewRouteTableServiceClient(conn).List(ctx, in, opts...) } +type RouteTableIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *RouteTableServiceClient + request *vpc.ListRouteTablesRequest + + items []*vpc.RouteTable +} + +func (c *RouteTableServiceClient) RouteTableIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *RouteTableIterator { + return &RouteTableIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &vpc.ListRouteTablesRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *RouteTableIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.RouteTables + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *RouteTableIterator) Value() *vpc.RouteTable { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *RouteTableIterator) Error() error { + return it.err +} + // ListOperations implements vpc.RouteTableServiceClient func (c *RouteTableServiceClient) ListOperations(ctx context.Context, in *vpc.ListRouteTableOperationsRequest, opts ...grpc.CallOption) (*vpc.ListRouteTableOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -67,6 +128,78 @@ func (c *RouteTableServiceClient) ListOperations(ctx context.Context, in *vpc.Li return vpc.NewRouteTableServiceClient(conn).ListOperations(ctx, in, opts...) } +type RouteTableOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *RouteTableServiceClient + request *vpc.ListRouteTableOperationsRequest + + items []*operation.Operation +} + +func (c *RouteTableServiceClient) RouteTableOperationsIterator(ctx context.Context, routeTableId string, opts ...grpc.CallOption) *RouteTableOperationsIterator { + return &RouteTableOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &vpc.ListRouteTableOperationsRequest{ + RouteTableId: routeTableId, + PageSize: 1000, + }, + } +} + +func (it *RouteTableOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *RouteTableOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *RouteTableOperationsIterator) Error() error { + return it.err +} + +// Move implements vpc.RouteTableServiceClient +func (c *RouteTableServiceClient) Move(ctx context.Context, in *vpc.MoveRouteTableRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return vpc.NewRouteTableServiceClient(conn).Move(ctx, in, opts...) +} + // Update implements vpc.RouteTableServiceClient func (c *RouteTableServiceClient) Update(ctx context.Context, in *vpc.UpdateRouteTableRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/securitygroup.go b/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/securitygroup.go new file mode 100644 index 000000000..b475535d2 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/securitygroup.go @@ -0,0 +1,228 @@ +// Code generated by sdkgen. DO NOT EDIT. + +//nolint +package vpc + +import ( + "context" + + "google.golang.org/grpc" + + "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" + vpc "github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1" +) + +//revive:disable + +// SecurityGroupServiceClient is a vpc.SecurityGroupServiceClient with +// lazy GRPC connection initialization. +type SecurityGroupServiceClient struct { + getConn func(ctx context.Context) (*grpc.ClientConn, error) +} + +// Create implements vpc.SecurityGroupServiceClient +func (c *SecurityGroupServiceClient) Create(ctx context.Context, in *vpc.CreateSecurityGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return vpc.NewSecurityGroupServiceClient(conn).Create(ctx, in, opts...) +} + +// Delete implements vpc.SecurityGroupServiceClient +func (c *SecurityGroupServiceClient) Delete(ctx context.Context, in *vpc.DeleteSecurityGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return vpc.NewSecurityGroupServiceClient(conn).Delete(ctx, in, opts...) +} + +// Get implements vpc.SecurityGroupServiceClient +func (c *SecurityGroupServiceClient) Get(ctx context.Context, in *vpc.GetSecurityGroupRequest, opts ...grpc.CallOption) (*vpc.SecurityGroup, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return vpc.NewSecurityGroupServiceClient(conn).Get(ctx, in, opts...) +} + +// List implements vpc.SecurityGroupServiceClient +func (c *SecurityGroupServiceClient) List(ctx context.Context, in *vpc.ListSecurityGroupsRequest, opts ...grpc.CallOption) (*vpc.ListSecurityGroupsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return vpc.NewSecurityGroupServiceClient(conn).List(ctx, in, opts...) +} + +type SecurityGroupIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *SecurityGroupServiceClient + request *vpc.ListSecurityGroupsRequest + + items []*vpc.SecurityGroup +} + +func (c *SecurityGroupServiceClient) SecurityGroupIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *SecurityGroupIterator { + return &SecurityGroupIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &vpc.ListSecurityGroupsRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *SecurityGroupIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.SecurityGroups + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *SecurityGroupIterator) Value() *vpc.SecurityGroup { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *SecurityGroupIterator) Error() error { + return it.err +} + +// ListOperations implements vpc.SecurityGroupServiceClient +func (c *SecurityGroupServiceClient) ListOperations(ctx context.Context, in *vpc.ListSecurityGroupOperationsRequest, opts ...grpc.CallOption) (*vpc.ListSecurityGroupOperationsResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return vpc.NewSecurityGroupServiceClient(conn).ListOperations(ctx, in, opts...) +} + +type SecurityGroupOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *SecurityGroupServiceClient + request *vpc.ListSecurityGroupOperationsRequest + + items []*operation.Operation +} + +func (c *SecurityGroupServiceClient) SecurityGroupOperationsIterator(ctx context.Context, securityGroupId string, opts ...grpc.CallOption) *SecurityGroupOperationsIterator { + return &SecurityGroupOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &vpc.ListSecurityGroupOperationsRequest{ + SecurityGroupId: securityGroupId, + PageSize: 1000, + }, + } +} + +func (it *SecurityGroupOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *SecurityGroupOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *SecurityGroupOperationsIterator) Error() error { + return it.err +} + +// Move implements vpc.SecurityGroupServiceClient +func (c *SecurityGroupServiceClient) Move(ctx context.Context, in *vpc.MoveSecurityGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return vpc.NewSecurityGroupServiceClient(conn).Move(ctx, in, opts...) +} + +// Update implements vpc.SecurityGroupServiceClient +func (c *SecurityGroupServiceClient) Update(ctx context.Context, in *vpc.UpdateSecurityGroupRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return vpc.NewSecurityGroupServiceClient(conn).Update(ctx, in, opts...) +} + +// UpdateRule implements vpc.SecurityGroupServiceClient +func (c *SecurityGroupServiceClient) UpdateRule(ctx context.Context, in *vpc.UpdateSecurityGroupRuleRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return vpc.NewSecurityGroupServiceClient(conn).UpdateRule(ctx, in, opts...) +} + +// UpdateRules implements vpc.SecurityGroupServiceClient +func (c *SecurityGroupServiceClient) UpdateRules(ctx context.Context, in *vpc.UpdateSecurityGroupRulesRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return vpc.NewSecurityGroupServiceClient(conn).UpdateRules(ctx, in, opts...) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/subnet.go b/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/subnet.go index 1f4a8bf5e..2ca67ed2a 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/subnet.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/subnet.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" - "github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1" + vpc "github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1" ) //revive:disable @@ -20,8 +20,6 @@ type SubnetServiceClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } -var _ vpc.SubnetServiceClient = &SubnetServiceClient{} - // Create implements vpc.SubnetServiceClient func (c *SubnetServiceClient) Create(ctx context.Context, in *vpc.CreateSubnetRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) @@ -58,6 +56,69 @@ func (c *SubnetServiceClient) List(ctx context.Context, in *vpc.ListSubnetsReque return vpc.NewSubnetServiceClient(conn).List(ctx, in, opts...) } +type SubnetIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *SubnetServiceClient + request *vpc.ListSubnetsRequest + + items []*vpc.Subnet +} + +func (c *SubnetServiceClient) SubnetIterator(ctx context.Context, folderId string, opts ...grpc.CallOption) *SubnetIterator { + return &SubnetIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &vpc.ListSubnetsRequest{ + FolderId: folderId, + PageSize: 1000, + }, + } +} + +func (it *SubnetIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.List(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Subnets + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *SubnetIterator) Value() *vpc.Subnet { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *SubnetIterator) Error() error { + return it.err +} + // ListOperations implements vpc.SubnetServiceClient func (c *SubnetServiceClient) ListOperations(ctx context.Context, in *vpc.ListSubnetOperationsRequest, opts ...grpc.CallOption) (*vpc.ListSubnetOperationsResponse, error) { conn, err := c.getConn(ctx) @@ -67,6 +128,78 @@ func (c *SubnetServiceClient) ListOperations(ctx context.Context, in *vpc.ListSu return vpc.NewSubnetServiceClient(conn).ListOperations(ctx, in, opts...) } +type SubnetOperationsIterator struct { + ctx context.Context + opts []grpc.CallOption + + err error + started bool + + client *SubnetServiceClient + request *vpc.ListSubnetOperationsRequest + + items []*operation.Operation +} + +func (c *SubnetServiceClient) SubnetOperationsIterator(ctx context.Context, subnetId string, opts ...grpc.CallOption) *SubnetOperationsIterator { + return &SubnetOperationsIterator{ + ctx: ctx, + opts: opts, + client: c, + request: &vpc.ListSubnetOperationsRequest{ + SubnetId: subnetId, + PageSize: 1000, + }, + } +} + +func (it *SubnetOperationsIterator) Next() bool { + if it.err != nil { + return false + } + if len(it.items) > 1 { + it.items[0] = nil + it.items = it.items[1:] + return true + } + it.items = nil // consume last item, if any + + if it.started && it.request.PageToken == "" { + return false + } + it.started = true + + response, err := it.client.ListOperations(it.ctx, it.request, it.opts...) + it.err = err + if err != nil { + return false + } + + it.items = response.Operations + it.request.PageToken = response.NextPageToken + return len(it.items) > 0 +} + +func (it *SubnetOperationsIterator) Value() *operation.Operation { + if len(it.items) == 0 { + panic("calling Value on empty iterator") + } + return it.items[0] +} + +func (it *SubnetOperationsIterator) Error() error { + return it.err +} + +// Move implements vpc.SubnetServiceClient +func (c *SubnetServiceClient) Move(ctx context.Context, in *vpc.MoveSubnetRequest, opts ...grpc.CallOption) (*operation.Operation, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return vpc.NewSubnetServiceClient(conn).Move(ctx, in, opts...) +} + // Update implements vpc.SubnetServiceClient func (c *SubnetServiceClient) Update(ctx context.Context, in *vpc.UpdateSubnetRequest, opts ...grpc.CallOption) (*operation.Operation, error) { conn, err := c.getConn(ctx) diff --git a/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/vpc_group.go b/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/vpc_group.go index 829fcf0fd..071c5e497 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/vpc_group.go +++ b/vendor/github.com/yandex-cloud/go-sdk/gen/vpc/vpc_group.go @@ -32,3 +32,8 @@ func (v *VPC) Subnet() *SubnetServiceClient { func (v *VPC) RouteTable() *RouteTableServiceClient { return &RouteTableServiceClient{getConn: v.getConn} } + +// SecurityGroup gets SecurityGroupService client +func (v *VPC) SecurityGroup() *SecurityGroupServiceClient { + return &SecurityGroupServiceClient{getConn: v.getConn} +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/go.mod b/vendor/github.com/yandex-cloud/go-sdk/go.mod new file mode 100644 index 000000000..a69b93f45 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/go.mod @@ -0,0 +1,20 @@ +module github.com/yandex-cloud/go-sdk + +go 1.13 + +require ( + github.com/c2h5oh/datasize v0.0.0-20200112174442-28bbd4740fee + github.com/dgrijalva/jwt-go v3.2.0+incompatible + github.com/ghodss/yaml v1.0.0 + github.com/golang/protobuf v1.3.5 + github.com/google/uuid v1.1.1 + github.com/hashicorp/go-multierror v1.0.0 + github.com/mitchellh/go-testing-interface v1.0.0 + github.com/spf13/pflag v1.0.5 // indirect + github.com/stretchr/testify v1.5.1 + github.com/yandex-cloud/go-genproto v0.0.0-20200608085315-d6e7ef5ceb97 + golang.org/x/net v0.0.0-20200320220750-118fecf932d8 + google.golang.org/genproto v0.0.0-20200323114720-3f67cca34472 + google.golang.org/grpc v1.28.0 + gopkg.in/yaml.v2 v2.2.8 +) diff --git a/vendor/github.com/yandex-cloud/go-sdk/go.sum b/vendor/github.com/yandex-cloud/go-sdk/go.sum new file mode 100644 index 000000000..4d7643fa9 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/go.sum @@ -0,0 +1,92 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/c2h5oh/datasize v0.0.0-20200112174442-28bbd4740fee h1:BnPxIde0gjtTnc9Er7cxvBk8DHLWhEux0SxayC8dP6I= +github.com/c2h5oh/datasize v0.0.0-20200112174442-28bbd4740fee/go.mod h1:S/7n9copUssQ56c7aAgHqftWO4LTf4xY6CGWt8Bc+3M= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= +github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +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.5 h1:F768QJ1E9tib+q5Sc8MkdJi1RxLTbRcTf8LJV56aRls= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/google/go-cmp v0.2.0 h1:+dTQ8DZQJz0Mb/HjFlkptS1FeQ4cWSnN941F8aEG4SQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= +github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/mitchellh/go-testing-interface v1.0.0 h1:fzU/JVNcaqHQEcVFAKeR41fkiLdIPrefOvVG1VZ96U0= +github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/yandex-cloud/go-genproto v0.0.0-20200324131626-5a8bd35c26d0 h1:P/mNLjIFo24pu6gV6WSTQt6ygFJ9kc1Ss87XJBvAXU4= +github.com/yandex-cloud/go-genproto v0.0.0-20200324131626-5a8bd35c26d0/go.mod h1:HEUYX/p8966tMUHHT+TsS0hF/Ca/NYwqprC5WXSDMfE= +github.com/yandex-cloud/go-genproto v0.0.0-20200525091658-eb9d6e2e8018 h1:ipAynutVl1j4FESJCw/tgqv59gbL9DkhdWxPEfLop9s= +github.com/yandex-cloud/go-genproto v0.0.0-20200525091658-eb9d6e2e8018/go.mod h1:HEUYX/p8966tMUHHT+TsS0hF/Ca/NYwqprC5WXSDMfE= +github.com/yandex-cloud/go-genproto v0.0.0-20200608085315-d6e7ef5ceb97 h1:DoqSUxQkBLislVgA1qkM0u7g04It4VRMidyLBH/O/as= +github.com/yandex-cloud/go-genproto v0.0.0-20200608085315-d6e7ef5ceb97/go.mod h1:HEUYX/p8966tMUHHT+TsS0hF/Ca/NYwqprC5WXSDMfE= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20200320220750-118fecf932d8 h1:1+zQlQqEEhUeStBTi653GZAnAuivZq/2hz+Iz+OP7rg= +golang.org/x/net v0.0.0-20200320220750-118fecf932d8/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a h1:1BGLXjeY4akVXGgbC9HugT3Jv3hCI0z56oJR5vAMgBU= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +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-20200323114720-3f67cca34472 h1:XRuIAeTRoXziYGYTVer+YGxVXQBiOhZ8+SpNELP73oQ= +google.golang.org/genproto v0.0.0-20200323114720-3f67cca34472/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +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.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0 h1:bO/TA4OxCOummhSf10siHuG7vJOiwh7SpRpFZDkOgl4= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/vendor/github.com/yandex-cloud/go-sdk/kms.go b/vendor/github.com/yandex-cloud/go-sdk/kms.go new file mode 100644 index 000000000..0ee2f13f0 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/kms.go @@ -0,0 +1,19 @@ +package ycsdk + +import ( + "github.com/yandex-cloud/go-sdk/gen/kms" + kmscrypto "github.com/yandex-cloud/go-sdk/gen/kmscrypto" +) + +const ( + KMSServiceID = "kms" + KMSCryptoServiceID = "kms-crypto" +) + +func (sdk *SDK) KMS() *kms.KMS { + return kms.NewKMS(sdk.getConn(KMSServiceID)) +} + +func (sdk *SDK) KMSCrypto() *kmscrypto.KMSCrypto { + return kmscrypto.NewKMSCrypto(sdk.getConn(KMSCryptoServiceID)) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/marketplace.go b/vendor/github.com/yandex-cloud/go-sdk/marketplace.go new file mode 100644 index 000000000..b5dfec1d7 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/marketplace.go @@ -0,0 +1,20 @@ +// Copyright (c) 2019 Yandex LLC. All rights reserved. +// Author: Dmitry Novikov + +package ycsdk + +import ( + "github.com/yandex-cloud/go-sdk/gen/marketplace/metering" +) + +const ( + MarketplaceMeteringServiceID Endpoint = "marketplace" +) + +type Marketplace struct { + sdk *SDK +} + +func (m *Marketplace) Metering() *metering.Metering { + return metering.NewMetering(m.sdk.getConn(MarketplaceMeteringServiceID)) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/operation/operation.go b/vendor/github.com/yandex-cloud/go-sdk/operation/operation.go index c33ea48c4..d1de7b347 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/operation/operation.go +++ b/vendor/github.com/yandex-cloud/go-sdk/operation/operation.go @@ -12,6 +12,7 @@ import ( "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes" "github.com/golang/protobuf/ptypes/any" + "github.com/golang/protobuf/ptypes/empty" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/metadata" @@ -21,6 +22,9 @@ import ( "github.com/yandex-cloud/go-sdk/pkg/sdkerrors" ) +// dummy import to avoid problems, when client app tries to unmarshall operation with empty response +var _ = empty.Empty{} + type Client = operation.OperationServiceClient type Proto = operation.Operation diff --git a/vendor/github.com/yandex-cloud/go-sdk/pkg/requestid/interceptor.go b/vendor/github.com/yandex-cloud/go-sdk/pkg/requestid/interceptor.go index 33b8a0c82..fa442cf4b 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/pkg/requestid/interceptor.go +++ b/vendor/github.com/yandex-cloud/go-sdk/pkg/requestid/interceptor.go @@ -55,6 +55,9 @@ func (e *errorWithRequestIDs) Error() (msg string) { if e.ids.ServerRequestID != "" { msg += fmt.Sprintf("server-request-id = %s ", e.ids.ServerRequestID) } + if e.ids.ServerTraceID != "" { + msg += fmt.Sprintf("server-trace-id = %s ", e.ids.ServerTraceID) + } if e.ids.ClientRequestID != "" { msg += fmt.Sprintf("client-request-id = %s ", e.ids.ClientRequestID) } diff --git a/vendor/github.com/yandex-cloud/go-sdk/pkg/retry/backoff.go b/vendor/github.com/yandex-cloud/go-sdk/pkg/retry/backoff.go index 030aa6cfb..ec1b6375e 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/pkg/retry/backoff.go +++ b/vendor/github.com/yandex-cloud/go-sdk/pkg/retry/backoff.go @@ -23,12 +23,14 @@ func BackoffExponentialWithJitter(base time.Duration, cap time.Duration) Backoff to = float64(cap) } - return time.Duration(to * rand.Float64()) + return time.Duration(to/2 + to/2*rand.Float64()) } } func getExponentialTimeout(attempt int, base time.Duration) float64 { - mult := math.Pow(2, float64(attempt)) + // pow 3: 50ms, 150ms, 450ms, 1.35s, 4.05s, 12.15s - Now. + // pow 2: 50ms, 100ms, 200ms, 400ms, 800ms, 1.6s - Previous. + mult := math.Pow(3, float64(attempt)) return float64(base) * mult } diff --git a/vendor/github.com/yandex-cloud/go-sdk/rpc_credentials.go b/vendor/github.com/yandex-cloud/go-sdk/rpc_credentials.go index 136634262..48134b7b8 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/rpc_credentials.go +++ b/vendor/github.com/yandex-cloud/go-sdk/rpc_credentials.go @@ -10,8 +10,10 @@ import ( "time" "github.com/golang/protobuf/ptypes" + "google.golang.org/grpc/codes" "google.golang.org/grpc/credentials" "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/status" "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" "github.com/yandex-cloud/go-sdk/pkg/sdkerrors" @@ -69,7 +71,11 @@ func (c *rpcCredentials) GetRequestMetadata(ctx context.Context, uri ...string) if expired { token, err = c.updateToken(ctx, state) if err != nil { - return nil, err + st, ok := status.FromError(err) + if ok && st.Code() == codes.Unauthenticated { + return nil, err + } + return nil, status.Errorf(codes.Unauthenticated, "%v", err) } } @@ -97,7 +103,7 @@ func (c *rpcCredentials) updateToken(ctx context.Context, currentState rpcCreden } expiresAt, expiresAtErr := ptypes.Timestamp(resp.ExpiresAt) if expiresAtErr != nil { - grpclog.Errorf("invalid IAM Token expires_at: %s", expiresAtErr) + grpclog.Warningf("invalid IAM Token expires_at: %s", expiresAtErr) // Fallback to short term caching. expiresAt = time.Now().Add(time.Minute) } diff --git a/vendor/github.com/yandex-cloud/go-sdk/sdk.go b/vendor/github.com/yandex-cloud/go-sdk/sdk.go index 18f2ce6e3..cde63f731 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/sdk.go +++ b/vendor/github.com/yandex-cloud/go-sdk/sdk.go @@ -22,6 +22,7 @@ import ( apiendpoint "github.com/yandex-cloud/go-sdk/gen/apiendpoint" "github.com/yandex-cloud/go-sdk/gen/compute" "github.com/yandex-cloud/go-sdk/gen/iam" + k8s "github.com/yandex-cloud/go-sdk/gen/kubernetes" gen_operation "github.com/yandex-cloud/go-sdk/gen/operation" "github.com/yandex-cloud/go-sdk/gen/resourcemanager" "github.com/yandex-cloud/go-sdk/gen/vpc" @@ -34,6 +35,8 @@ import ( type Endpoint string const ( + DefaultPageSize int64 = 1000 + ComputeServiceID Endpoint = "compute" IAMServiceID Endpoint = "iam" OperationServiceID Endpoint = "operation" @@ -43,7 +46,8 @@ const ( // revive:disable:var-naming ApiEndpointServiceID Endpoint = "endpoint" // revive:enable:var-naming - VpcServiceID Endpoint = "vpc" + VpcServiceID Endpoint = "vpc" + KubernetesServiceID Endpoint = "managed-kubernetes" ) // Config is a config that is used to create SDK instance. @@ -161,6 +165,14 @@ func (sdk *SDK) MDB() *MDB { return &MDB{sdk: sdk} } +func (sdk *SDK) Serverless() *Serverless { + return &Serverless{sdk: sdk} +} + +func (sdk *SDK) Marketplace() *Marketplace { + return &Marketplace{sdk: sdk} +} + // Operation gets OperationService client func (sdk *SDK) Operation() *gen_operation.OperationServiceClient { group := gen_operation.NewOperation(sdk.getConn(OperationServiceID)) @@ -181,6 +193,16 @@ func (sdk *SDK) ApiEndpoint() *apiendpoint.APIEndpoint { // revive:enable:var-naming +// Kubernetes returns Kubernetes object that is used to operate on Yandex Managed Kubernetes +func (sdk *SDK) Kubernetes() *k8s.Kubernetes { + return k8s.NewKubernetes(sdk.getConn(KubernetesServiceID)) +} + +// AI returns AI object that is used to do AI stuff. +func (sdk *SDK) AI() *AI { + return &AI{sdk: sdk} +} + func (sdk *SDK) Resolve(ctx context.Context, r ...Resolver) error { args := make([]func() error, len(r)) for k, v := range r { diff --git a/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/base_resolver.go b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/base_resolver.go index d1348b835..6657d4483 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/base_resolver.go +++ b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/base_resolver.go @@ -4,8 +4,10 @@ package sdkresolvers import ( + "bytes" "fmt" "reflect" + "strings" "github.com/yandex-cloud/go-sdk/pkg/sdkerrors" ) @@ -18,10 +20,11 @@ func CreateResolverFilter(nameField string, value string) string { } type resolveOptions struct { - out *string - folderID string - cloudID string - clusterID string + out *string + folderID string + cloudID string + clusterID string + federationID string } type ResolveOption func(*resolveOptions) @@ -53,6 +56,13 @@ func ClusterID(clusterID string) ResolveOption { } } +// FederationID specifies federation id for resolvers that need it, e.g. CertificateResolver +func FederationID(federationID string) ResolveOption { + return func(o *resolveOptions) { + o.federationID = federationID + } +} + func combineOpts(opts ...ResolveOption) *resolveOptions { o := &resolveOptions{} for _, opt := range opts { @@ -132,6 +142,27 @@ func (r *BaseResolver) ClusterID() string { return r.opts.clusterID } +func (r *BaseResolver) FederationID() string { + return r.opts.federationID +} + +func (r *BaseResolver) coordinates() string { + buf := bytes.Buffer{} + if r.FederationID() != "" { + buf.WriteString(fmt.Sprintf("in the federation \"%s\" ", r.FederationID())) + } + if r.ClusterID() != "" { + buf.WriteString(fmt.Sprintf("in the cluster \"%s\" ", r.ClusterID())) + } + if r.CloudID() != "" { + buf.WriteString(fmt.Sprintf("in the cloud \"%s\" ", r.CloudID())) + } + if r.FolderID() != "" { + buf.WriteString(fmt.Sprintf("in the folder \"%s\" ", r.FolderID())) + } + return strings.TrimSpace(buf.String()) +} + func (r *BaseResolver) writeOut() { if r.opts.out != nil { *r.opts.out = r.id @@ -178,7 +209,7 @@ func errNotFound(caption, name string) error { func (r *BaseNameResolver) findNameImpl(slice interface{}, err error) error { if err != nil { - return sdkerrors.WithMessagef(err, "failed to find %v with name \"%v\"", r.resolvingObjectType, r.Name) + return sdkerrors.WithMessagef(err, "failed to find %v with name \"%v\" %v", r.resolvingObjectType, r.Name, r.coordinates()) } rv := reflect.ValueOf(slice) var found nameAndID @@ -186,7 +217,7 @@ func (r *BaseNameResolver) findNameImpl(slice interface{}, err error) error { v := rv.Index(i).Interface().(nameAndID) if v.GetName() == r.Name { if found != nil { - return fmt.Errorf("multiple %v items with name \"%v\" found", r.resolvingObjectType, r.Name) + return fmt.Errorf("multiple %v items with name \"%v\" found %v", r.resolvingObjectType, r.Name, r.coordinates()) } found = v } diff --git a/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/container_repository_resolver.go b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/container_repository_resolver.go new file mode 100644 index 000000000..2d27ad272 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/container_repository_resolver.go @@ -0,0 +1,26 @@ +package sdkresolvers + +import ( + "context" + + "google.golang.org/grpc" + + "github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1" + ycsdk "github.com/yandex-cloud/go-sdk" +) + +type repositoryResolver struct { + BaseResolver +} + +func RepositoryResolver(login string, opts ...ResolveOption) ycsdk.Resolver { + return &repositoryResolver{ + BaseResolver: NewBaseResolver(login, opts...), + } +} + +func (r *repositoryResolver) Run(ctx context.Context, sdk *ycsdk.SDK, opts ...grpc.CallOption) error { + return r.Set(sdk.ContainerRegistry().Repository().GetByName(ctx, &containerregistry.GetRepositoryByNameRequest{ + RepositoryName: r.Name, + }, opts...)) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/dataproc_resolver.go b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/dataproc_resolver.go new file mode 100644 index 000000000..a16dc9d05 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/dataproc_resolver.go @@ -0,0 +1,74 @@ +// Copyright (c) 2019 YANDEX LLC. + +package sdkresolvers + +import ( + "context" + + "google.golang.org/grpc" + + dataproc "github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1" + ycsdk "github.com/yandex-cloud/go-sdk" +) + +type dataprocClusterResolver struct { + BaseNameResolver +} + +func DataprocClusterResolver(name string, opts ...ResolveOption) ycsdk.Resolver { + return &dataprocClusterResolver{ + BaseNameResolver: NewBaseNameResolver(name, "cluster", opts...), + } +} + +func (r *dataprocClusterResolver) Run(ctx context.Context, sdk *ycsdk.SDK, opts ...grpc.CallOption) error { + err := r.ensureFolderID() + if err != nil { + return err + } + + resp, err := sdk.Dataproc().Cluster().List(ctx, &dataproc.ListClustersRequest{ + FolderId: r.FolderID(), + Filter: CreateResolverFilter("name", r.Name), + PageSize: DefaultResolverPageSize, + }, opts...) + return r.findName(resp.GetClusters(), err) +} + +type dataprocSubclusterResolver struct { + BaseNameResolver +} + +func DataprocSubclusterResolver(name string, opts ...ResolveOption) ycsdk.Resolver { + return &dataprocSubclusterResolver{ + BaseNameResolver: NewBaseNameResolver(name, "subcluster", opts...), + } +} + +func (r *dataprocSubclusterResolver) Run(ctx context.Context, sdk *ycsdk.SDK, opts ...grpc.CallOption) error { + resp, err := sdk.Dataproc().Subcluster().List(ctx, &dataproc.ListSubclustersRequest{ + ClusterId: r.opts.clusterID, + Filter: CreateResolverFilter("name", r.Name), + PageSize: DefaultResolverPageSize, + }, opts...) + return r.findName(resp.GetSubclusters(), err) +} + +type dataprocJobResolver struct { + BaseNameResolver +} + +func DataprocJobResolver(name string, opts ...ResolveOption) ycsdk.Resolver { + return &dataprocJobResolver{ + BaseNameResolver: NewBaseNameResolver(name, "job", opts...), + } +} + +func (r *dataprocJobResolver) Run(ctx context.Context, sdk *ycsdk.SDK, opts ...grpc.CallOption) error { + resp, err := sdk.Dataproc().Job().List(ctx, &dataproc.ListJobsRequest{ + ClusterId: r.opts.clusterID, + Filter: CreateResolverFilter("name", r.Name), + PageSize: DefaultResolverPageSize, + }, opts...) + return r.findName(resp.GetJobs(), err) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/device_registry_resolver.go b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/device_registry_resolver.go new file mode 100644 index 000000000..cca087aee --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/device_registry_resolver.go @@ -0,0 +1,44 @@ +package sdkresolvers + +import ( + "context" + + "google.golang.org/grpc" + + iot "github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1" + ycsdk "github.com/yandex-cloud/go-sdk" +) + +type deviceRegistryResolver struct { + BaseNameResolver +} + +func DeviceRegistryResolver(name string, opts ...ResolveOption) ycsdk.Resolver { + return &deviceRegistryResolver{ + BaseNameResolver: NewBaseNameResolver(name, "registry", opts...), + } +} + +func (r *deviceRegistryResolver) Run(ctx context.Context, sdk *ycsdk.SDK, opts ...grpc.CallOption) error { + err := r.ensureFolderID() + if err != nil { + return err + } + + nextPageToken := "" + var regs []*iot.Registry + for ok := true; ok; ok = len(nextPageToken) > 0 { + resp, err := sdk.IoT().Devices().Registry().List(ctx, &iot.ListRegistriesRequest{ + FolderId: r.FolderID(), + PageSize: DefaultResolverPageSize, + PageToken: nextPageToken, + }, opts...) + if err != nil { + return err + } + nextPageToken = resp.GetNextPageToken() + regs = append(regs, resp.GetRegistries()...) + } + + return r.findName(regs, err) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/device_resolver.go b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/device_resolver.go new file mode 100644 index 000000000..1cad57c5a --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/device_resolver.go @@ -0,0 +1,44 @@ +package sdkresolvers + +import ( + "context" + + "google.golang.org/grpc" + + iot "github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1" + ycsdk "github.com/yandex-cloud/go-sdk" +) + +type deviceResolver struct { + BaseNameResolver +} + +func DeviceResolver(name string, opts ...ResolveOption) ycsdk.Resolver { + return &deviceResolver{ + BaseNameResolver: NewBaseNameResolver(name, "device", opts...), + } +} + +func (r *deviceResolver) Run(ctx context.Context, sdk *ycsdk.SDK, opts ...grpc.CallOption) error { + err := r.ensureFolderID() + if err != nil { + return err + } + + nextPageToken := "" + var devices []*iot.Device + for ok := true; ok; ok = len(nextPageToken) > 0 { + resp, err := sdk.IoT().Devices().Device().List(ctx, &iot.ListDevicesRequest{ + Id: &iot.ListDevicesRequest_FolderId{FolderId: r.FolderID()}, + PageSize: DefaultResolverPageSize, + PageToken: nextPageToken, + }, opts...) + if err != nil { + return err + } + nextPageToken = resp.GetNextPageToken() + devices = append(devices, resp.GetDevices()...) + } + + return r.findName(devices, err) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/function_resolver.go b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/function_resolver.go index 7e3308b59..d25d6e2ee 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/function_resolver.go +++ b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/function_resolver.go @@ -28,7 +28,7 @@ func (r *functionResolver) Run(ctx context.Context, sdk *ycsdk.SDK, opts ...grpc return err } - resp, err := sdk.Functions().Function().List(ctx, &functions.ListFunctionsRequest{ + resp, err := sdk.Serverless().Functions().Function().List(ctx, &functions.ListFunctionsRequest{ FolderId: r.FolderID(), Filter: CreateResolverFilter("name", r.Name), PageSize: DefaultResolverPageSize, diff --git a/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/kms_resolver.go b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/kms_resolver.go new file mode 100644 index 000000000..b4814670b --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/kms_resolver.go @@ -0,0 +1,45 @@ +// Copyright (c) 2019 Yandex LLC. All rights reserved. +// Author: Shavkat Husanov + +package sdkresolvers + +import ( + "context" + + "google.golang.org/grpc" + + "github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1" + ycsdk "github.com/yandex-cloud/go-sdk" +) + +type symmetricKeyResolver struct { + BaseNameResolver +} + +func SymmetricKeyResolver(name string, opts ...ResolveOption) ycsdk.Resolver { + return &symmetricKeyResolver{ + BaseNameResolver: NewBaseNameResolver(name, "symmetric-key", opts...), + } +} + +func (r *symmetricKeyResolver) Run(ctx context.Context, sdk *ycsdk.SDK, opts ...grpc.CallOption) error { + err := r.ensureFolderID() + if err != nil { + return err + } + res := []*kms.SymmetricKey{} + nextPageToken := "" + for ok := true; ok; ok = len(nextPageToken) > 0 { + resp, err := sdk.KMS().SymmetricKey().List(ctx, &kms.ListSymmetricKeysRequest{ + FolderId: r.FolderID(), + PageSize: DefaultResolverPageSize, + PageToken: nextPageToken, + }, opts...) + if err != nil { + return err + } + nextPageToken = resp.GetNextPageToken() + res = append(res, resp.GetKeys()...) + } + return r.findName(res, err) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/kubernetes_resolver.go b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/kubernetes_resolver.go new file mode 100644 index 000000000..fa44dd359 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/kubernetes_resolver.go @@ -0,0 +1,58 @@ +package sdkresolvers + +import ( + "context" + + "google.golang.org/grpc" + + k8s "github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1" + ycsdk "github.com/yandex-cloud/go-sdk" +) + +type kubernetesClusterResolver struct { + BaseNameResolver +} + +func KubernetesClusterResolver(name string, opts ...ResolveOption) ycsdk.Resolver { + return &kubernetesClusterResolver{ + BaseNameResolver: NewBaseNameResolver(name, "kubernetes_cluster", opts...), + } +} + +func (r *kubernetesClusterResolver) Run(ctx context.Context, sdk *ycsdk.SDK, opts ...grpc.CallOption) error { + err := r.ensureFolderID() + if err != nil { + return err + } + + resp, err := sdk.Kubernetes().Cluster().List(ctx, &k8s.ListClustersRequest{ + FolderId: r.FolderID(), + Filter: CreateResolverFilter("name", r.Name), + PageSize: DefaultResolverPageSize, + }, opts...) + return r.findName(resp.GetClusters(), err) +} + +type kubernetesNodeGroupResolver struct { + BaseNameResolver +} + +func KubernetesNodeGroupResolver(name string, opts ...ResolveOption) ycsdk.Resolver { + return &kubernetesNodeGroupResolver{ + BaseNameResolver: NewBaseNameResolver(name, "kubernetes_node_group", opts...), + } +} + +func (r *kubernetesNodeGroupResolver) Run(ctx context.Context, sdk *ycsdk.SDK, opts ...grpc.CallOption) error { + err := r.ensureFolderID() + if err != nil { + return err + } + + resp, err := sdk.Kubernetes().NodeGroup().List(ctx, &k8s.ListNodeGroupsRequest{ + FolderId: r.FolderID(), + Filter: CreateResolverFilter("name", r.Name), + PageSize: DefaultResolverPageSize, + }, opts...) + return r.findName(resp.GetNodeGroups(), err) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/placement_group_resolver.go b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/placement_group_resolver.go new file mode 100644 index 000000000..ae3f3d851 --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/placement_group_resolver.go @@ -0,0 +1,37 @@ +// Copyright (c) 2019 Yandex LLC. All rights reserved. +// Author: Dmitry Konishchev + +package sdkresolvers + +import ( + "context" + + "google.golang.org/grpc" + + compute "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1" + ycsdk "github.com/yandex-cloud/go-sdk" +) + +type placementGroupResolver struct { + BaseNameResolver +} + +func PlacementGroupResolver(name string, opts ...ResolveOption) ycsdk.Resolver { + return &placementGroupResolver{ + BaseNameResolver: NewBaseNameResolver(name, "placement group", opts...), + } +} + +func (r *placementGroupResolver) Run(ctx context.Context, sdk *ycsdk.SDK, opts ...grpc.CallOption) error { + if err := r.ensureFolderID(); err != nil { + return err + } + + resp, err := sdk.Compute().PlacementGroup().List(ctx, &compute.ListPlacementGroupsRequest{ + FolderId: r.FolderID(), + Filter: CreateResolverFilter("name", r.Name), + PageSize: DefaultResolverPageSize, + }, opts...) + + return r.findName(resp.GetPlacementGroups(), err) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/security_group_resolver.go b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/security_group_resolver.go new file mode 100644 index 000000000..eea13a3be --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/security_group_resolver.go @@ -0,0 +1,34 @@ +package sdkresolvers + +import ( + "context" + + "google.golang.org/grpc" + + "github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1" + ycsdk "github.com/yandex-cloud/go-sdk" +) + +type securityGroupResolver struct { + BaseNameResolver +} + +func SecurityGroupResolver(name string, opts ...ResolveOption) ycsdk.Resolver { + return &securityGroupResolver{ + BaseNameResolver: NewBaseNameResolver(name, "security_group", opts...), + } +} + +func (r *securityGroupResolver) Run(ctx context.Context, sdk *ycsdk.SDK, opts ...grpc.CallOption) error { + err := r.ensureFolderID() + if err != nil { + return err + } + + resp, err := sdk.VPC().SecurityGroup().List(ctx, &vpc.ListSecurityGroupsRequest{ + FolderId: r.FolderID(), + Filter: CreateResolverFilter("name", r.Name), + PageSize: DefaultResolverPageSize, + }, opts...) + return r.findName(resp.GetSecurityGroups(), err) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/trigger_resolver.go b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/trigger_resolver.go index 271f2cf53..6fd3b8787 100644 --- a/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/trigger_resolver.go +++ b/vendor/github.com/yandex-cloud/go-sdk/sdkresolvers/trigger_resolver.go @@ -28,7 +28,7 @@ func (r *triggerResolver) Run(ctx context.Context, sdk *ycsdk.SDK, opts ...grpc. return err } - resp, err := sdk.Triggers().Trigger().List(ctx, &triggers.ListTriggersRequest{ + resp, err := sdk.Serverless().Triggers().Trigger().List(ctx, &triggers.ListTriggersRequest{ FolderId: r.FolderID(), Filter: CreateResolverFilter("name", r.Name), PageSize: DefaultResolverPageSize, diff --git a/vendor/github.com/yandex-cloud/go-sdk/serverless.go b/vendor/github.com/yandex-cloud/go-sdk/serverless.go new file mode 100644 index 000000000..9781ab3ea --- /dev/null +++ b/vendor/github.com/yandex-cloud/go-sdk/serverless.go @@ -0,0 +1,23 @@ +package ycsdk + +import ( + "github.com/yandex-cloud/go-sdk/gen/functions" + "github.com/yandex-cloud/go-sdk/gen/triggers" +) + +type Serverless struct { + sdk *SDK +} + +const ( + FunctionServiceID Endpoint = "serverless-functions" + TriggerServiceID Endpoint = "serverless-triggers" +) + +func (s *Serverless) Functions() *functions.Function { + return functions.NewFunction(s.sdk.getConn(FunctionServiceID)) +} + +func (s *Serverless) Triggers() *triggers.Trigger { + return triggers.NewTrigger(s.sdk.getConn(TriggerServiceID)) +} diff --git a/vendor/github.com/yandex-cloud/go-sdk/triggers.go b/vendor/github.com/yandex-cloud/go-sdk/triggers.go deleted file mode 100644 index 664f93588..000000000 --- a/vendor/github.com/yandex-cloud/go-sdk/triggers.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) 2019 YANDEX LLC. - -package ycsdk - -import "github.com/yandex-cloud/go-sdk/gen/triggers" - -const ( - TriggerServiceID Endpoint = "serverless-triggers" -) - -func (sdk *SDK) Triggers() *triggers.Trigger { - return triggers.NewTrigger(sdk.getConn(TriggerServiceID)) -} diff --git a/vendor/golang.org/x/sys/cpu/byteorder.go b/vendor/golang.org/x/sys/cpu/byteorder.go index ed8da8dea..dcbb14ef3 100644 --- a/vendor/golang.org/x/sys/cpu/byteorder.go +++ b/vendor/golang.org/x/sys/cpu/byteorder.go @@ -39,20 +39,25 @@ func (bigEndian) Uint64(b []byte) uint64 { uint64(b[3])<<32 | uint64(b[2])<<40 | uint64(b[1])<<48 | uint64(b[0])<<56 } -// hostByteOrder returns binary.LittleEndian on little-endian machines and -// binary.BigEndian on big-endian machines. +// hostByteOrder returns littleEndian on little-endian machines and +// bigEndian on big-endian machines. func hostByteOrder() byteOrder { switch runtime.GOARCH { case "386", "amd64", "amd64p32", + "alpha", "arm", "arm64", "mipsle", "mips64le", "mips64p32le", + "nios2", "ppc64le", - "riscv", "riscv64": + "riscv", "riscv64", + "sh": return littleEndian{} case "armbe", "arm64be", + "m68k", "mips", "mips64", "mips64p32", "ppc", "ppc64", "s390", "s390x", + "shbe", "sparc", "sparc64": return bigEndian{} } diff --git a/vendor/golang.org/x/sys/cpu/cpu_aix_ppc64.go b/vendor/golang.org/x/sys/cpu/cpu_aix.go similarity index 96% rename from vendor/golang.org/x/sys/cpu/cpu_aix_ppc64.go rename to vendor/golang.org/x/sys/cpu/cpu_aix.go index be6027224..da2989668 100644 --- a/vendor/golang.org/x/sys/cpu/cpu_aix_ppc64.go +++ b/vendor/golang.org/x/sys/cpu/cpu_aix.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix,ppc64 +// +build aix package cpu diff --git a/vendor/golang.org/x/sys/cpu/cpu_arm64.go b/vendor/golang.org/x/sys/cpu/cpu_arm64.go index 9c87677ae..7bcb36c7b 100644 --- a/vendor/golang.org/x/sys/cpu/cpu_arm64.go +++ b/vendor/golang.org/x/sys/cpu/cpu_arm64.go @@ -10,8 +10,14 @@ const cacheLineSize = 64 func init() { switch runtime.GOOS { - case "android", "darwin": + case "android", "darwin", "netbsd": // Android and iOS don't seem to allow reading these registers. + // + // NetBSD: + // ID_AA64ISAR0_EL1 is a privileged register and cannot be read from EL0. + // It can be read via sysctl(3). Example for future implementers: + // https://nxr.netbsd.org/xref/src/usr.sbin/cpuctl/arch/aarch64.c + // // Fake the minimal features expected by // TestARM64minimalFeatures. ARM64.HasASIMD = true diff --git a/vendor/golang.org/x/sys/cpu/syscall_aix_gccgo.go b/vendor/golang.org/x/sys/cpu/syscall_aix_gccgo.go new file mode 100644 index 000000000..76fbe40b7 --- /dev/null +++ b/vendor/golang.org/x/sys/cpu/syscall_aix_gccgo.go @@ -0,0 +1,27 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Recreate a getsystemcfg syscall handler instead of +// using the one provided by x/sys/unix to avoid having +// the dependency between them. (See golang.org/issue/32102) +// Morever, this file will be used during the building of +// gccgo's libgo and thus must not used a CGo method. + +// +build aix +// +build gccgo + +package cpu + +import ( + "syscall" +) + +//extern getsystemcfg +func gccgoGetsystemcfg(label uint32) (r uint64) + +func callgetsystemcfg(label int) (r1 uintptr, e1 syscall.Errno) { + r1 = uintptr(gccgoGetsystemcfg(uint32(label))) + e1 = syscall.GetErrno() + return +} diff --git a/vendor/golang.org/x/sys/internal/unsafeheader/unsafeheader.go b/vendor/golang.org/x/sys/internal/unsafeheader/unsafeheader.go new file mode 100644 index 000000000..e07899b90 --- /dev/null +++ b/vendor/golang.org/x/sys/internal/unsafeheader/unsafeheader.go @@ -0,0 +1,30 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package unsafeheader contains header declarations for the Go runtime's +// slice and string implementations. +// +// This package allows x/sys to use types equivalent to +// reflect.SliceHeader and reflect.StringHeader without introducing +// a dependency on the (relatively heavy) "reflect" package. +package unsafeheader + +import ( + "unsafe" +) + +// Slice is the runtime representation of a slice. +// It cannot be used safely or portably and its representation may change in a later release. +type Slice struct { + Data unsafe.Pointer + Len int + Cap int +} + +// String is the runtime representation of a string. +// It cannot be used safely or portably and its representation may change in a later release. +type String struct { + Data unsafe.Pointer + Len int +} diff --git a/vendor/golang.org/x/sys/unix/README.md b/vendor/golang.org/x/sys/unix/README.md index ab433ccfb..579d2d735 100644 --- a/vendor/golang.org/x/sys/unix/README.md +++ b/vendor/golang.org/x/sys/unix/README.md @@ -89,7 +89,7 @@ constants. Adding new syscall numbers is mostly done by running the build on a sufficiently new installation of the target OS (or updating the source checkouts for the -new build system). However, depending on the OS, you make need to update the +new build system). However, depending on the OS, you may need to update the parsing in mksysnum. ### mksyscall.go @@ -163,7 +163,7 @@ The merge is performed in the following steps: ## Generated files -### `zerror_${GOOS}_${GOARCH}.go` +### `zerrors_${GOOS}_${GOARCH}.go` A file containing all of the system's generated error numbers, error strings, signal numbers, and constants. Generated by `mkerrors.sh` (see above). diff --git a/vendor/golang.org/x/sys/unix/mkerrors.sh b/vendor/golang.org/x/sys/unix/mkerrors.sh index bc076cf62..780e387e3 100644 --- a/vendor/golang.org/x/sys/unix/mkerrors.sh +++ b/vendor/golang.org/x/sys/unix/mkerrors.sh @@ -187,6 +187,7 @@ struct ltchars { #include #include #include +#include #include #include #include @@ -200,6 +201,7 @@ struct ltchars { #include #include #include +#include #include #include #include @@ -479,12 +481,13 @@ ccflags="$@" $2 ~ /^(MS|MNT|UMOUNT)_/ || $2 ~ /^NS_GET_/ || $2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ || - $2 ~ /^(O|F|[ES]?FD|NAME|S|PTRACE|PT)_/ || + $2 ~ /^(O|F|[ES]?FD|NAME|S|PTRACE|PT|TFD)_/ || $2 ~ /^KEXEC_/ || $2 ~ /^LINUX_REBOOT_CMD_/ || $2 ~ /^LINUX_REBOOT_MAGIC[12]$/ || $2 ~ /^MODULE_INIT_/ || $2 !~ "NLA_TYPE_MASK" && + $2 !~ /^RTC_VL_(ACCURACY|BACKUP|DATA)/ && $2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|IFAN|RT|RTC|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P|NETNSA)_/ || $2 ~ /^SIOC/ || $2 ~ /^TIOC/ || @@ -506,7 +509,8 @@ ccflags="$@" $2 ~ /^CAP_/ || $2 ~ /^ALG_/ || $2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE)/ || - $2 ~ /^FS_IOC_.*ENCRYPTION/ || + $2 ~ /^FS_IOC_.*(ENCRYPTION|VERITY|GETFLAGS)/ || + $2 ~ /^FS_VERITY_/ || $2 ~ /^FSCRYPT_/ || $2 ~ /^GRND_/ || $2 ~ /^RND/ || diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go b/vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go index f911617be..dc0befee3 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go @@ -6,7 +6,11 @@ package unix -import "unsafe" +import ( + "unsafe" + + "golang.org/x/sys/internal/unsafeheader" +) //sys closedir(dir uintptr) (err error) //sys readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) @@ -71,6 +75,7 @@ func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { cnt++ continue } + reclen := int(entry.Reclen) if reclen > len(buf) { // Not enough room. Return for now. @@ -79,13 +84,15 @@ func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { // restarting is O(n^2) in the length of the directory. Oh well. break } + // Copy entry into return buffer. - s := struct { - ptr unsafe.Pointer - siz int - cap int - }{ptr: unsafe.Pointer(&entry), siz: reclen, cap: reclen} - copy(buf, *(*[]byte)(unsafe.Pointer(&s))) + var s []byte + hdr := (*unsafeheader.Slice)(unsafe.Pointer(&s)) + hdr.Data = unsafe.Pointer(&entry) + hdr.Cap = reclen + hdr.Len = reclen + copy(buf, s) + buf = buf[reclen:] n += reclen cnt++ diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin.go b/vendor/golang.org/x/sys/unix/syscall_darwin.go index 9a5a6ee54..0cf31acf0 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin.go @@ -423,6 +423,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e //sysnb Getrlimit(which int, lim *Rlimit) (err error) //sysnb Getrusage(who int, rusage *Rusage) (err error) //sysnb Getsid(pid int) (sid int, err error) +//sysnb Gettimeofday(tp *Timeval) (err error) //sysnb Getuid() (uid int) //sysnb Issetugid() (tainted bool) //sys Kqueue() (fd int, err error) diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_386.go b/vendor/golang.org/x/sys/unix/syscall_darwin_386.go index 707ba4f59..2724e3a51 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_386.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_386.go @@ -20,17 +20,6 @@ func setTimeval(sec, usec int64) Timeval { return Timeval{Sec: int32(sec), Usec: int32(usec)} } -//sysnb gettimeofday(tp *Timeval) (sec int32, usec int32, err error) -func Gettimeofday(tv *Timeval) (err error) { - // The tv passed to gettimeofday must be non-nil - // but is otherwise unused. The answers come back - // in the two registers. - sec, usec, err := gettimeofday(tv) - tv.Sec = int32(sec) - tv.Usec = int32(usec) - return err -} - func SetKevent(k *Kevent_t, fd, mode, flags int) { k.Ident = uint32(fd) k.Filter = int16(mode) diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go index fdbfb5911..ce2e0d249 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go @@ -20,17 +20,6 @@ func setTimeval(sec, usec int64) Timeval { return Timeval{Sec: sec, Usec: int32(usec)} } -//sysnb gettimeofday(tp *Timeval) (sec int64, usec int32, err error) -func Gettimeofday(tv *Timeval) (err error) { - // The tv passed to gettimeofday must be non-nil - // but is otherwise unused. The answers come back - // in the two registers. - sec, usec, err := gettimeofday(tv) - tv.Sec = sec - tv.Usec = usec - return err -} - func SetKevent(k *Kevent_t, fd, mode, flags int) { k.Ident = uint64(fd) k.Filter = int16(mode) diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go b/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go index f8bc4cfb1..fc17a3f23 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go @@ -20,17 +20,6 @@ func setTimeval(sec, usec int64) Timeval { return Timeval{Sec: int32(sec), Usec: int32(usec)} } -//sysnb gettimeofday(tp *Timeval) (sec int32, usec int32, err error) -func Gettimeofday(tv *Timeval) (err error) { - // The tv passed to gettimeofday must be non-nil - // but is otherwise unused. The answers come back - // in the two registers. - sec, usec, err := gettimeofday(tv) - tv.Sec = int32(sec) - tv.Usec = int32(usec) - return err -} - func SetKevent(k *Kevent_t, fd, mode, flags int) { k.Ident = uint32(fd) k.Filter = int16(mode) diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go index 5ede3ac31..1e91ddf32 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go @@ -22,17 +22,6 @@ func setTimeval(sec, usec int64) Timeval { return Timeval{Sec: sec, Usec: int32(usec)} } -//sysnb gettimeofday(tp *Timeval) (sec int64, usec int32, err error) -func Gettimeofday(tv *Timeval) (err error) { - // The tv passed to gettimeofday must be non-nil - // but is otherwise unused. The answers come back - // in the two registers. - sec, usec, err := gettimeofday(tv) - tv.Sec = sec - tv.Usec = usec - return err -} - func SetKevent(k *Kevent_t, fd, mode, flags int) { k.Ident = uint64(fd) k.Filter = int16(mode) diff --git a/vendor/golang.org/x/sys/unix/syscall_linux.go b/vendor/golang.org/x/sys/unix/syscall_linux.go index bbe1abbce..7b7c72752 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux.go @@ -97,6 +97,12 @@ func IoctlSetRTCTime(fd int, value *RTCTime) error { return err } +func IoctlSetRTCWkAlrm(fd int, value *RTCWkAlrm) error { + err := ioctl(fd, RTC_WKALM_SET, uintptr(unsafe.Pointer(value))) + runtime.KeepAlive(value) + return err +} + func IoctlGetUint32(fd int, req uint) (uint32, error) { var value uint32 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) @@ -109,6 +115,12 @@ func IoctlGetRTCTime(fd int) (*RTCTime, error) { return &value, err } +func IoctlGetRTCWkAlrm(fd int) (*RTCWkAlrm, error) { + var value RTCWkAlrm + err := ioctl(fd, RTC_WKALM_RD, uintptr(unsafe.Pointer(&value))) + return &value, err +} + //sys Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) func Link(oldpath string, newpath string) (err error) { @@ -1633,6 +1645,15 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e //sys CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) //sys DeleteModule(name string, flags int) (err error) //sys Dup(oldfd int) (fd int, err error) + +func Dup2(oldfd, newfd int) error { + // Android O and newer blocks dup2; riscv and arm64 don't implement dup2. + if runtime.GOOS == "android" || runtime.GOARCH == "riscv64" || runtime.GOARCH == "arm64" { + return Dup3(oldfd, newfd, 0) + } + return dup2(oldfd, newfd) +} + //sys Dup3(oldfd int, newfd int, flags int) (err error) //sysnb EpollCreate1(flag int) (fd int, err error) //sysnb EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) @@ -1757,6 +1778,9 @@ func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) { //sys Syncfs(fd int) (err error) //sysnb Sysinfo(info *Sysinfo_t) (err error) //sys Tee(rfd int, wfd int, len int, flags int) (n int64, err error) +//sysnb TimerfdCreate(clockid int, flags int) (fd int, err error) +//sysnb TimerfdGettime(fd int, currValue *ItimerSpec) (err error) +//sysnb TimerfdSettime(fd int, flags int, newValue *ItimerSpec, oldValue *ItimerSpec) (err error) //sysnb Tgkill(tgid int, tid int, sig syscall.Signal) (err error) //sysnb Times(tms *Tms) (ticks uintptr, err error) //sysnb Umask(mask int) (oldmask int) @@ -2178,7 +2202,6 @@ func Klogset(typ int, arg int) (err error) { // TimerGetoverrun // TimerGettime // TimerSettime -// Timerfd // Tkill (obsolete) // Tuxcall // Umount2 diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_386.go b/vendor/golang.org/x/sys/unix/syscall_linux_386.go index a8374b67c..048d18e3c 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_386.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_386.go @@ -49,7 +49,7 @@ func Pipe2(p []int, flags int) (err error) { // 64-bit file system and 32-bit uid calls // (386 default is 32-bit file system and 16-bit uid). -//sys Dup2(oldfd int, newfd int) (err error) +//sys dup2(oldfd int, newfd int) (err error) //sysnb EpollCreate(size int) (fd int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64_64 diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go b/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go index 8ed1d546f..72efe86ed 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go @@ -6,7 +6,7 @@ package unix -//sys Dup2(oldfd int, newfd int) (err error) +//sys dup2(oldfd int, newfd int) (err error) //sysnb EpollCreate(size int) (fd int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_arm.go b/vendor/golang.org/x/sys/unix/syscall_linux_arm.go index 99ae61373..e1913e2c9 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_arm.go @@ -80,7 +80,7 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // 64-bit file system and 32-bit uid calls // (16-bit uid calls are not always supported in newer kernels) -//sys Dup2(oldfd int, newfd int) (err error) +//sys dup2(oldfd int, newfd int) (err error) //sysnb EpollCreate(size int) (fd int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32 diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go index 807a0b20c..c6de6b913 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go @@ -25,7 +25,7 @@ func EpollCreate(size int) (fd int, err error) { //sysnb Getegid() (egid int) //sysnb Geteuid() (euid int) //sysnb Getgid() (gid int) -//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) +//sysnb getrlimit(resource int, rlim *Rlimit) (err error) //sysnb Getuid() (uid int) //sys Listen(s int, n int) (err error) //sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 @@ -47,7 +47,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err //sysnb Setregid(rgid int, egid int) (err error) //sysnb Setresgid(rgid int, egid int, sgid int) (err error) //sysnb Setresuid(ruid int, euid int, suid int) (err error) -//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) +//sysnb setrlimit(resource int, rlim *Rlimit) (err error) //sysnb Setreuid(ruid int, euid int) (err error) //sys Shutdown(fd int, how int) (err error) //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) @@ -168,6 +168,24 @@ func Pipe2(p []int, flags int) (err error) { return } +// Getrlimit prefers the prlimit64 system call. See issue 38604. +func Getrlimit(resource int, rlim *Rlimit) error { + err := prlimit(0, resource, nil, rlim) + if err != ENOSYS { + return err + } + return getrlimit(resource, rlim) +} + +// Setrlimit prefers the prlimit64 system call. See issue 38604. +func Setrlimit(resource int, rlim *Rlimit) error { + err := prlimit(0, resource, rlim, nil) + if err != ENOSYS { + return err + } + return setrlimit(resource, rlim) +} + func (r *PtraceRegs) PC() uint64 { return r.Pc } func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc } @@ -192,9 +210,9 @@ func InotifyInit() (fd int, err error) { return InotifyInit1(0) } -func Dup2(oldfd int, newfd int) (err error) { - return Dup3(oldfd, newfd, 0) -} +// dup2 exists because func Dup3 in syscall_linux.go references +// it in an unreachable path. dup2 isn't available on arm64. +func dup2(oldfd int, newfd int) error func Pause() error { _, err := ppoll(nil, 0, nil, nil) diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go b/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go index af77e6e25..f0287476c 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go @@ -7,7 +7,7 @@ package unix -//sys Dup2(oldfd int, newfd int) (err error) +//sys dup2(oldfd int, newfd int) (err error) //sysnb EpollCreate(size int) (fd int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go b/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go index e286c6ba3..c11328111 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go @@ -14,7 +14,7 @@ import ( func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) -//sys Dup2(oldfd int, newfd int) (err error) +//sys dup2(oldfd int, newfd int) (err error) //sysnb EpollCreate(size int) (fd int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go b/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go index ca0345aab..349374409 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go @@ -7,7 +7,7 @@ package unix -//sys Dup2(oldfd int, newfd int) (err error) +//sys dup2(oldfd int, newfd int) (err error) //sysnb EpollCreate(size int) (fd int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go index abdabbac3..b0b150556 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go @@ -191,10 +191,6 @@ func InotifyInit() (fd int, err error) { return InotifyInit1(0) } -func Dup2(oldfd int, newfd int) (err error) { - return Dup3(oldfd, newfd, 0) -} - func Pause() error { _, err := ppoll(nil, 0, nil, nil) return err @@ -228,3 +224,7 @@ func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error } return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags) } + +// dup2 exists because func Dup3 in syscall_linux.go references +// it in an unreachable path. dup2 isn't available on arm64. +func dup2(oldfd int, newfd int) error diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go b/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go index 533e9305e..2363f7499 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go @@ -10,7 +10,7 @@ import ( "unsafe" ) -//sys Dup2(oldfd int, newfd int) (err error) +//sys dup2(oldfd int, newfd int) (err error) //sysnb EpollCreate(size int) (fd int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go b/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go index d890a227b..d389f1518 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go @@ -8,7 +8,7 @@ package unix //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 -//sys Dup2(oldfd int, newfd int) (err error) +//sys dup2(oldfd int, newfd int) (err error) //sys Fchown(fd int, uid int, gid int) (err error) //sys Fstat(fd int, stat *Stat_t) (err error) //sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64 diff --git a/vendor/golang.org/x/sys/unix/syscall_unix.go b/vendor/golang.org/x/sys/unix/syscall_unix.go index 8f710d014..400ba9fbc 100644 --- a/vendor/golang.org/x/sys/unix/syscall_unix.go +++ b/vendor/golang.org/x/sys/unix/syscall_unix.go @@ -12,6 +12,8 @@ import ( "sync" "syscall" "unsafe" + + "golang.org/x/sys/internal/unsafeheader" ) var ( @@ -113,15 +115,12 @@ func (m *mmapper) Mmap(fd int, offset int64, length int, prot int, flags int) (d return nil, errno } - // Slice memory layout - var sl = struct { - addr uintptr - len int - cap int - }{addr, length, length} - - // Use unsafe to turn sl into a []byte. - b := *(*[]byte)(unsafe.Pointer(&sl)) + // Use unsafe to convert addr into a []byte. + var b []byte + hdr := (*unsafeheader.Slice)(unsafe.Pointer(&b)) + hdr.Data = unsafe.Pointer(addr) + hdr.Cap = length + hdr.Len = length // Register mapping in m and return it. p := &b[cap(b)-1] diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux.go b/vendor/golang.org/x/sys/unix/zerrors_linux.go index 84c599c52..f8bd50c11 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux.go @@ -160,77 +160,28 @@ const ( BPF_A = 0x10 BPF_ABS = 0x20 BPF_ADD = 0x0 - BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff - BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38 BPF_ALU = 0x4 BPF_ALU64 = 0x7 BPF_AND = 0x50 - BPF_ANY = 0x0 BPF_ARSH = 0xc0 BPF_B = 0x10 BPF_BUILD_ID_SIZE = 0x14 BPF_CALL = 0x80 - BPF_DEVCG_ACC_MKNOD = 0x1 - BPF_DEVCG_ACC_READ = 0x2 - BPF_DEVCG_ACC_WRITE = 0x4 - BPF_DEVCG_DEV_BLOCK = 0x1 - BPF_DEVCG_DEV_CHAR = 0x2 BPF_DIV = 0x30 BPF_DW = 0x18 BPF_END = 0xd0 - BPF_EXIST = 0x2 BPF_EXIT = 0x90 - BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG = 0x1 - BPF_FLOW_DISSECTOR_F_STOP_AT_ENCAP = 0x4 - BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL = 0x2 BPF_FROM_BE = 0x8 BPF_FROM_LE = 0x0 BPF_FS_MAGIC = 0xcafe4a11 - BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2 - BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4 - BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8 - BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10 - BPF_F_ADJ_ROOM_FIXED_GSO = 0x1 BPF_F_ALLOW_MULTI = 0x2 BPF_F_ALLOW_OVERRIDE = 0x1 BPF_F_ANY_ALIGNMENT = 0x2 - BPF_F_CLONE = 0x200 - BPF_F_CTXLEN_MASK = 0xfffff00000000 - BPF_F_CURRENT_CPU = 0xffffffff - BPF_F_CURRENT_NETNS = -0x1 - BPF_F_DONT_FRAGMENT = 0x4 - BPF_F_FAST_STACK_CMP = 0x200 - BPF_F_HDR_FIELD_MASK = 0xf - BPF_F_INDEX_MASK = 0xffffffff - BPF_F_INGRESS = 0x1 - BPF_F_INVALIDATE_HASH = 0x2 - BPF_F_LOCK = 0x4 - BPF_F_MARK_ENFORCE = 0x40 - BPF_F_MARK_MANGLED_0 = 0x20 - BPF_F_MMAPABLE = 0x400 - BPF_F_NO_COMMON_LRU = 0x2 - BPF_F_NO_PREALLOC = 0x1 - BPF_F_NUMA_NODE = 0x4 - BPF_F_PSEUDO_HDR = 0x10 BPF_F_QUERY_EFFECTIVE = 0x1 - BPF_F_RDONLY = 0x8 - BPF_F_RDONLY_PROG = 0x80 - BPF_F_RECOMPUTE_CSUM = 0x1 - BPF_F_REUSE_STACKID = 0x400 - BPF_F_SEQ_NUMBER = 0x8 - BPF_F_SKIP_FIELD_MASK = 0xff - BPF_F_STACK_BUILD_ID = 0x20 + BPF_F_REPLACE = 0x4 BPF_F_STRICT_ALIGNMENT = 0x1 - BPF_F_SYSCTL_BASE_NAME = 0x1 BPF_F_TEST_RND_HI32 = 0x4 BPF_F_TEST_STATE_FREQ = 0x8 - BPF_F_TUNINFO_IPV6 = 0x1 - BPF_F_USER_BUILD_ID = 0x800 - BPF_F_USER_STACK = 0x100 - BPF_F_WRONLY = 0x10 - BPF_F_WRONLY_PROG = 0x100 - BPF_F_ZERO_CSUM_TX = 0x2 - BPF_F_ZERO_SEED = 0x40 BPF_H = 0x8 BPF_IMM = 0x0 BPF_IND = 0x40 @@ -266,7 +217,6 @@ const ( BPF_MUL = 0x20 BPF_NEG = 0x80 BPF_NET_OFF = -0x100000 - BPF_NOEXIST = 0x1 BPF_OBJ_NAME_LEN = 0x10 BPF_OR = 0x40 BPF_PSEUDO_CALL = 0x1 @@ -274,12 +224,6 @@ const ( BPF_PSEUDO_MAP_VALUE = 0x2 BPF_RET = 0x6 BPF_RSH = 0x70 - BPF_SK_STORAGE_GET_F_CREATE = 0x1 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf - BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 - BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 - BPF_SOCK_OPS_RTT_CB_FLAG = 0x8 - BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 BPF_ST = 0x2 BPF_STX = 0x3 BPF_SUB = 0x10 @@ -377,18 +321,21 @@ const ( CLOCK_TXINT = 0x3 CLONE_ARGS_SIZE_VER0 = 0x40 CLONE_ARGS_SIZE_VER1 = 0x50 + CLONE_ARGS_SIZE_VER2 = 0x58 CLONE_CHILD_CLEARTID = 0x200000 CLONE_CHILD_SETTID = 0x1000000 CLONE_CLEAR_SIGHAND = 0x100000000 CLONE_DETACHED = 0x400000 CLONE_FILES = 0x400 CLONE_FS = 0x200 + CLONE_INTO_CGROUP = 0x200000000 CLONE_IO = 0x80000000 CLONE_NEWCGROUP = 0x2000000 CLONE_NEWIPC = 0x8000000 CLONE_NEWNET = 0x40000000 CLONE_NEWNS = 0x20000 CLONE_NEWPID = 0x20000000 + CLONE_NEWTIME = 0x80 CLONE_NEWUSER = 0x10000000 CLONE_NEWUTS = 0x4000000 CLONE_PARENT = 0x8000 @@ -596,7 +543,9 @@ const ( FAN_DELETE = 0x200 FAN_DELETE_SELF = 0x400 FAN_DENY = 0x2 + FAN_DIR_MODIFY = 0x80000 FAN_ENABLE_AUDIT = 0x40 + FAN_EVENT_INFO_TYPE_DFID_NAME = 0x2 FAN_EVENT_INFO_TYPE_FID = 0x1 FAN_EVENT_METADATA_LEN = 0x18 FAN_EVENT_ON_CHILD = 0x8000000 @@ -671,6 +620,7 @@ const ( FS_IOC_ADD_ENCRYPTION_KEY = 0xc0506617 FS_IOC_GET_ENCRYPTION_KEY_STATUS = 0xc080661a FS_IOC_GET_ENCRYPTION_POLICY_EX = 0xc0096616 + FS_IOC_MEASURE_VERITY = 0xc0046686 FS_IOC_REMOVE_ENCRYPTION_KEY = 0xc0406618 FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS = 0xc0406619 FS_KEY_DESCRIPTOR_SIZE = 0x8 @@ -683,6 +633,9 @@ const ( FS_POLICY_FLAGS_PAD_8 = 0x1 FS_POLICY_FLAGS_PAD_MASK = 0x3 FS_POLICY_FLAGS_VALID = 0xf + FS_VERITY_FL = 0x100000 + FS_VERITY_HASH_ALG_SHA256 = 0x1 + FS_VERITY_HASH_ALG_SHA512 = 0x2 FUTEXFS_SUPER_MAGIC = 0xbad1dea F_ADD_SEALS = 0x409 F_DUPFD = 0x0 @@ -733,6 +686,7 @@ const ( GENL_NAMSIZ = 0x10 GENL_START_ALLOC = 0x13 GENL_UNS_ADMIN_PERM = 0x10 + GRND_INSECURE = 0x4 GRND_NONBLOCK = 0x1 GRND_RANDOM = 0x2 HDIO_DRIVE_CMD = 0x31f @@ -1483,6 +1437,7 @@ const ( PR_GET_FPEMU = 0x9 PR_GET_FPEXC = 0xb PR_GET_FP_MODE = 0x2e + PR_GET_IO_FLUSHER = 0x3a PR_GET_KEEPCAPS = 0x7 PR_GET_NAME = 0x10 PR_GET_NO_NEW_PRIVS = 0x27 @@ -1518,6 +1473,7 @@ const ( PR_SET_FPEMU = 0xa PR_SET_FPEXC = 0xc PR_SET_FP_MODE = 0x2d + PR_SET_IO_FLUSHER = 0x39 PR_SET_KEEPCAPS = 0x8 PR_SET_MM = 0x23 PR_SET_MM_ARG_END = 0x9 @@ -1746,12 +1702,15 @@ const ( RTM_DELRULE = 0x21 RTM_DELTCLASS = 0x29 RTM_DELTFILTER = 0x2d + RTM_DELVLAN = 0x71 RTM_F_CLONED = 0x200 RTM_F_EQUALIZE = 0x400 RTM_F_FIB_MATCH = 0x2000 RTM_F_LOOKUP_TABLE = 0x1000 RTM_F_NOTIFY = 0x100 + RTM_F_OFFLOAD = 0x4000 RTM_F_PREFIX = 0x800 + RTM_F_TRAP = 0x8000 RTM_GETACTION = 0x32 RTM_GETADDR = 0x16 RTM_GETADDRLABEL = 0x4a @@ -1773,7 +1732,8 @@ const ( RTM_GETSTATS = 0x5e RTM_GETTCLASS = 0x2a RTM_GETTFILTER = 0x2e - RTM_MAX = 0x6f + RTM_GETVLAN = 0x72 + RTM_MAX = 0x73 RTM_NEWACTION = 0x30 RTM_NEWADDR = 0x14 RTM_NEWADDRLABEL = 0x48 @@ -1788,6 +1748,7 @@ const ( RTM_NEWNETCONF = 0x50 RTM_NEWNEXTHOP = 0x68 RTM_NEWNSID = 0x58 + RTM_NEWNVLAN = 0x70 RTM_NEWPREFIX = 0x34 RTM_NEWQDISC = 0x24 RTM_NEWROUTE = 0x18 @@ -1795,8 +1756,8 @@ const ( RTM_NEWSTATS = 0x5c RTM_NEWTCLASS = 0x28 RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x18 - RTM_NR_MSGTYPES = 0x60 + RTM_NR_FAMILIES = 0x19 + RTM_NR_MSGTYPES = 0x64 RTM_SETDCB = 0x4f RTM_SETLINK = 0x13 RTM_SETNEIGHTBL = 0x43 @@ -2086,7 +2047,7 @@ const ( TASKSTATS_GENL_NAME = "TASKSTATS" TASKSTATS_GENL_VERSION = 0x1 TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x9 + TASKSTATS_VERSION = 0xa TCIFLUSH = 0x0 TCIOFF = 0x2 TCIOFLUSH = 0x2 @@ -2094,8 +2055,6 @@ const ( TCOFLUSH = 0x1 TCOOFF = 0x0 TCOON = 0x1 - TCP_BPF_IW = 0x3e9 - TCP_BPF_SNDCWND_CLAMP = 0x3ea TCP_CC_INFO = 0x1a TCP_CM_INQ = 0x24 TCP_CONGESTION = 0xd @@ -2151,6 +2110,8 @@ const ( TCP_USER_TIMEOUT = 0x12 TCP_WINDOW_CLAMP = 0xa TCP_ZEROCOPY_RECEIVE = 0x23 + TFD_TIMER_ABSTIME = 0x1 + TFD_TIMER_CANCEL_ON_SET = 0x2 TIMER_ABSTIME = 0x1 TIOCM_DTR = 0x2 TIOCM_LE = 0x1 @@ -2267,7 +2228,7 @@ const ( VMADDR_CID_ANY = 0xffffffff VMADDR_CID_HOST = 0x2 VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 + VMADDR_CID_LOCAL = 0x1 VMADDR_PORT_ANY = 0xffffffff VM_SOCKETS_INVALID_VERSION = 0xffffffff VQUIT = 0x1 @@ -2368,8 +2329,9 @@ const ( XDP_COPY = 0x2 XDP_FLAGS_DRV_MODE = 0x4 XDP_FLAGS_HW_MODE = 0x8 - XDP_FLAGS_MASK = 0xf + XDP_FLAGS_MASK = 0x1f XDP_FLAGS_MODES = 0xe + XDP_FLAGS_REPLACE = 0x10 XDP_FLAGS_SKB_MODE = 0x2 XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1 XDP_MMAP_OFFSETS = 0x1 @@ -2394,6 +2356,7 @@ const ( XENFS_SUPER_MAGIC = 0xabba1974 XFS_SUPER_MAGIC = 0x58465342 Z3FOLD_MAGIC = 0x33 + ZONEFS_MAGIC = 0x5a4f4653 ZSMALLOC_MAGIC = 0x58295829 ) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go index 0876cf92f..8d207b041 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go @@ -73,6 +73,9 @@ const ( FFDLY = 0x8000 FLUSHO = 0x1000 FP_XSTATE_MAGIC2 = 0x46505845 + FS_IOC_ENABLE_VERITY = 0x40806685 + FS_IOC_GETFLAGS = 0x80046601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x8010661b FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 @@ -340,6 +343,8 @@ const ( TCSETXF = 0x5434 TCSETXW = 0x5435 TCXONC = 0x540a + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 TIOCCBRK = 0x5428 TIOCCONS = 0x541d TIOCEXCL = 0x540c diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go index d5be2e837..c4bf9cb80 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go @@ -73,6 +73,9 @@ const ( FFDLY = 0x8000 FLUSHO = 0x1000 FP_XSTATE_MAGIC2 = 0x46505845 + FS_IOC_ENABLE_VERITY = 0x40806685 + FS_IOC_GETFLAGS = 0x80086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x8010661b FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 @@ -341,6 +344,8 @@ const ( TCSETXF = 0x5434 TCSETXW = 0x5435 TCXONC = 0x540a + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 TIOCCBRK = 0x5428 TIOCCONS = 0x541d TIOCEXCL = 0x540c diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go index fbeef8325..0cab0522e 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go @@ -72,6 +72,9 @@ const ( FF1 = 0x8000 FFDLY = 0x8000 FLUSHO = 0x1000 + FS_IOC_ENABLE_VERITY = 0x40806685 + FS_IOC_GETFLAGS = 0x80046601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x8010661b FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 @@ -347,6 +350,8 @@ const ( TCSETXF = 0x5434 TCSETXW = 0x5435 TCXONC = 0x540a + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 TIOCCBRK = 0x5428 TIOCCONS = 0x541d TIOCEXCL = 0x540c diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go index 06daa50eb..370d0a7f5 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go @@ -75,6 +75,9 @@ const ( FFDLY = 0x8000 FLUSHO = 0x1000 FPSIMD_MAGIC = 0x46508001 + FS_IOC_ENABLE_VERITY = 0x40806685 + FS_IOC_GETFLAGS = 0x80086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x8010661b FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 @@ -334,6 +337,8 @@ const ( TCSETXF = 0x5434 TCSETXW = 0x5435 TCXONC = 0x540a + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 TIOCCBRK = 0x5428 TIOCCONS = 0x541d TIOCEXCL = 0x540c diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go index 7c866b8f5..fbf2f3174 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go @@ -72,6 +72,9 @@ const ( FF1 = 0x8000 FFDLY = 0x8000 FLUSHO = 0x2000 + FS_IOC_ENABLE_VERITY = 0x80806685 + FS_IOC_GETFLAGS = 0x40046601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 @@ -337,6 +340,8 @@ const ( TCSETSW = 0x540f TCSETSW2 = 0x8030542c TCXONC = 0x5406 + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x80 TIOCCBRK = 0x5428 TIOCCONS = 0x80047478 TIOCEXCL = 0x740d diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go index c42966d19..25e74b30a 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go @@ -72,6 +72,9 @@ const ( FF1 = 0x8000 FFDLY = 0x8000 FLUSHO = 0x2000 + FS_IOC_ENABLE_VERITY = 0x80806685 + FS_IOC_GETFLAGS = 0x40086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 @@ -337,6 +340,8 @@ const ( TCSETSW = 0x540f TCSETSW2 = 0x8030542c TCXONC = 0x5406 + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x80 TIOCCBRK = 0x5428 TIOCCONS = 0x80047478 TIOCEXCL = 0x740d diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go index a5b2b4273..4ecc0bca3 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go @@ -72,6 +72,9 @@ const ( FF1 = 0x8000 FFDLY = 0x8000 FLUSHO = 0x2000 + FS_IOC_ENABLE_VERITY = 0x80806685 + FS_IOC_GETFLAGS = 0x40086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 @@ -337,6 +340,8 @@ const ( TCSETSW = 0x540f TCSETSW2 = 0x8030542c TCXONC = 0x5406 + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x80 TIOCCBRK = 0x5428 TIOCCONS = 0x80047478 TIOCEXCL = 0x740d diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go index 7f91881b8..dfb8f88a7 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go @@ -72,6 +72,9 @@ const ( FF1 = 0x8000 FFDLY = 0x8000 FLUSHO = 0x2000 + FS_IOC_ENABLE_VERITY = 0x80806685 + FS_IOC_GETFLAGS = 0x40046601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 @@ -337,6 +340,8 @@ const ( TCSETSW = 0x540f TCSETSW2 = 0x8030542c TCXONC = 0x5406 + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x80 TIOCCBRK = 0x5428 TIOCCONS = 0x80047478 TIOCEXCL = 0x740d diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go index 63df35597..72d8dad5b 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go @@ -72,6 +72,9 @@ const ( FF1 = 0x4000 FFDLY = 0x4000 FLUSHO = 0x800000 + FS_IOC_ENABLE_VERITY = 0x80806685 + FS_IOC_GETFLAGS = 0x40086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 @@ -391,6 +394,8 @@ const ( TCSETSF = 0x802c7416 TCSETSW = 0x802c7415 TCXONC = 0x2000741e + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 TIOCCBRK = 0x5428 TIOCCONS = 0x541d TIOCEXCL = 0x540c diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go index 7ab68f7c8..ca0e7b526 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go @@ -72,6 +72,9 @@ const ( FF1 = 0x4000 FFDLY = 0x4000 FLUSHO = 0x800000 + FS_IOC_ENABLE_VERITY = 0x80806685 + FS_IOC_GETFLAGS = 0x40086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 @@ -391,6 +394,8 @@ const ( TCSETSF = 0x802c7416 TCSETSW = 0x802c7415 TCXONC = 0x2000741e + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 TIOCCBRK = 0x5428 TIOCCONS = 0x541d TIOCEXCL = 0x540c diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go index f99cf1b9e..147511a97 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go @@ -72,6 +72,9 @@ const ( FF1 = 0x8000 FFDLY = 0x8000 FLUSHO = 0x1000 + FS_IOC_ENABLE_VERITY = 0x40806685 + FS_IOC_GETFLAGS = 0x80086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x8010661b FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 @@ -328,6 +331,8 @@ const ( TCSETXF = 0x5434 TCSETXW = 0x5435 TCXONC = 0x540a + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 TIOCCBRK = 0x5428 TIOCCONS = 0x541d TIOCEXCL = 0x540c diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go index 613ee237e..517349daf 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go @@ -72,6 +72,9 @@ const ( FF1 = 0x8000 FFDLY = 0x8000 FLUSHO = 0x1000 + FS_IOC_ENABLE_VERITY = 0x40806685 + FS_IOC_GETFLAGS = 0x80086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x8010661b FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 @@ -401,6 +404,8 @@ const ( TCSETXF = 0x5434 TCSETXW = 0x5435 TCXONC = 0x540a + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 TIOCCBRK = 0x5428 TIOCCONS = 0x541d TIOCEXCL = 0x540c diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go index 1f7a68d5c..094822465 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go @@ -76,6 +76,9 @@ const ( FF1 = 0x8000 FFDLY = 0x8000 FLUSHO = 0x1000 + FS_IOC_ENABLE_VERITY = 0x80806685 + FS_IOC_GETFLAGS = 0x40086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 @@ -390,6 +393,8 @@ const ( TCSETSW = 0x8024540a TCSETSW2 = 0x802c540e TCXONC = 0x20005406 + TFD_CLOEXEC = 0x400000 + TFD_NONBLOCK = 0x4000 TIOCCBRK = 0x2000747a TIOCCONS = 0x20007424 TIOCEXCL = 0x2000740d diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go index c1cc0a415..23e94d366 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go @@ -966,6 +966,16 @@ func Getsid(pid int) (sid int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Gettimeofday(tp *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getuid() (uid int) { r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) uid = int(r0) @@ -1709,18 +1719,6 @@ func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) { - r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - sec = int32(r0) - usec = int32(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Fstat(fd int, stat *Stat_t) (err error) { _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go index a3fc49004..e2ffb3bed 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go @@ -1376,6 +1376,21 @@ func libc_getsid_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Gettimeofday(tp *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_gettimeofday_trampoline() + +//go:linkname libc_gettimeofday libc_gettimeofday +//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getuid() (uid int) { r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0) uid = int(r0) @@ -2357,23 +2372,6 @@ func libc_ptrace_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) { - r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0) - sec = int32(r0) - usec = int32(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc_gettimeofday_trampoline() - -//go:linkname libc_gettimeofday libc_gettimeofday -//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Fstat(fd int, stat *Stat_t) (err error) { _, _, e1 := syscall_syscall(funcPC(libc_fstat64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go index f8e5c37c5..102561730 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go @@ -966,6 +966,16 @@ func Getsid(pid int) (sid int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Gettimeofday(tp *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getuid() (uid int) { r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) uid = int(r0) @@ -1709,18 +1719,6 @@ func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) { - r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - sec = int64(r0) - usec = int32(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Fstat(fd int, stat *Stat_t) (err error) { _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go index 50d6437e6..c67e336e2 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go @@ -1376,6 +1376,21 @@ func libc_getsid_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Gettimeofday(tp *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_gettimeofday_trampoline() + +//go:linkname libc_gettimeofday libc_gettimeofday +//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getuid() (uid int) { r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0) uid = int(r0) @@ -2357,23 +2372,6 @@ func libc_ptrace_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) { - r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0) - sec = int64(r0) - usec = int32(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc_gettimeofday_trampoline() - -//go:linkname libc_gettimeofday libc_gettimeofday -//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Fstat(fd int, stat *Stat_t) (err error) { _, _, e1 := syscall_syscall(funcPC(libc_fstat64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go index cea04e041..d34e6df2f 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go @@ -966,6 +966,16 @@ func Getsid(pid int) (sid int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Gettimeofday(tp *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getuid() (uid int) { r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) uid = int(r0) @@ -1682,18 +1692,6 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) { - r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - sec = int32(r0) - usec = int32(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Fstat(fd int, stat *Stat_t) (err error) { _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go index 63103950c..b759757a7 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go @@ -1376,6 +1376,21 @@ func libc_getsid_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Gettimeofday(tp *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_gettimeofday_trampoline() + +//go:linkname libc_gettimeofday libc_gettimeofday +//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getuid() (uid int) { r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0) uid = int(r0) @@ -2342,23 +2357,6 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) { - r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0) - sec = int32(r0) - usec = int32(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc_gettimeofday_trampoline() - -//go:linkname libc_gettimeofday libc_gettimeofday -//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Fstat(fd int, stat *Stat_t) (err error) { _, _, e1 := syscall_syscall(funcPC(libc_fstat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go index 8c3bb3a25..8d39a09f7 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go @@ -966,6 +966,16 @@ func Getsid(pid int) (sid int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Gettimeofday(tp *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getuid() (uid int) { r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) uid = int(r0) @@ -1682,18 +1692,6 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) { - r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - sec = int64(r0) - usec = int32(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Fstat(fd int, stat *Stat_t) (err error) { _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go index a8709f72d..b28861260 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go @@ -1376,6 +1376,21 @@ func libc_getsid_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Gettimeofday(tp *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_gettimeofday_trampoline() + +//go:linkname libc_gettimeofday libc_gettimeofday +//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getuid() (uid int) { r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0) uid = int(r0) @@ -2342,23 +2357,6 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) { - r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0) - sec = int64(r0) - usec = int32(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc_gettimeofday_trampoline() - -//go:linkname libc_gettimeofday libc_gettimeofday -//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Fstat(fd int, stat *Stat_t) (err error) { _, _, e1 := syscall_syscall(funcPC(libc_fstat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux.go b/vendor/golang.org/x/sys/unix/zsyscall_linux.go index fd2dae8e5..df217825f 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux.go @@ -1450,6 +1450,37 @@ func Sysinfo(info *Sysinfo_t) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func TimerfdCreate(clockid int, flags int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_TIMERFD_CREATE, uintptr(clockid), uintptr(flags), 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func TimerfdGettime(fd int, currValue *ItimerSpec) (err error) { + _, _, e1 := RawSyscall(SYS_TIMERFD_GETTIME, uintptr(fd), uintptr(unsafe.Pointer(currValue)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func TimerfdSettime(fd int, flags int, newValue *ItimerSpec, oldValue *ItimerSpec) (err error) { + _, _, e1 := RawSyscall6(SYS_TIMERFD_SETTIME, uintptr(fd), uintptr(flags), uintptr(unsafe.Pointer(newValue)), uintptr(unsafe.Pointer(oldValue)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go index ba63af7b0..19ebd3ff7 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go @@ -55,7 +55,7 @@ func pipe(p *[2]_C_int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Dup2(oldfd int, newfd int) (err error) { +func dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { err = errnoErr(e1) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go index f64adef41..5c562182a 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go @@ -45,7 +45,7 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Dup2(oldfd int, newfd int) (err error) { +func dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { err = errnoErr(e1) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go index ac19523e8..dc69d99c6 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go @@ -234,7 +234,7 @@ func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Dup2(oldfd int, newfd int) (err error) { +func dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { err = errnoErr(e1) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go index f0d2890b1..1b897dee0 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go @@ -151,7 +151,7 @@ func Getgid() (gid int) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Getrlimit(resource int, rlim *Rlimit) (err error) { +func getrlimit(resource int, rlim *Rlimit) (err error) { _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) if e1 != 0 { err = errnoErr(e1) @@ -307,7 +307,7 @@ func Setresuid(ruid int, euid int, suid int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setrlimit(resource int, rlim *Rlimit) (err error) { +func setrlimit(resource int, rlim *Rlimit) (err error) { _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) if e1 != 0 { err = errnoErr(e1) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go index aecbbca75..49186843a 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go @@ -45,7 +45,7 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Dup2(oldfd int, newfd int) (err error) { +func dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { err = errnoErr(e1) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go index 424fb7fb6..9171d3bd2 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go @@ -45,7 +45,7 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Dup2(oldfd int, newfd int) (err error) { +func dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { err = errnoErr(e1) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go index 28c7239cf..82286f04f 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go @@ -45,7 +45,7 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Dup2(oldfd int, newfd int) (err error) { +func dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { err = errnoErr(e1) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go index 84596b300..15920621c 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go @@ -45,7 +45,7 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Dup2(oldfd int, newfd int) (err error) { +func dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { err = errnoErr(e1) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go index de022639d..73a42e2cc 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go @@ -45,7 +45,7 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Dup2(oldfd int, newfd int) (err error) { +func dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { err = errnoErr(e1) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go index 888f21d37..6b8559536 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go @@ -45,7 +45,7 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Dup2(oldfd int, newfd int) (err error) { +func dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { err = errnoErr(e1) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go index 9bc353f0c..d7032ab1e 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go @@ -45,7 +45,7 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Dup2(oldfd int, newfd int) (err error) { +func dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { err = errnoErr(e1) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go index 854e816d6..bcbbdd906 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go @@ -72,7 +72,7 @@ func Fadvise(fd int, offset int64, length int64, advice int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Dup2(oldfd int, newfd int) (err error) { +func dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { err = errnoErr(e1) diff --git a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go index 37dcc74c2..102f1ab47 100644 --- a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go +++ b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go @@ -1,4 +1,4 @@ -// mksysctl_openbsd.pl +// go run mksysctl_openbsd.go // Code generated by the command above; DO NOT EDIT. // +build 386,openbsd @@ -30,6 +30,7 @@ var sysctlMib = []mibentry{ {"hw.model", []_C_int{6, 2}}, {"hw.ncpu", []_C_int{6, 3}}, {"hw.ncpufound", []_C_int{6, 21}}, + {"hw.ncpuonline", []_C_int{6, 25}}, {"hw.pagesize", []_C_int{6, 7}}, {"hw.physmem", []_C_int{6, 19}}, {"hw.product", []_C_int{6, 15}}, diff --git a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go index fe6caa6eb..4866fced8 100644 --- a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go @@ -31,6 +31,7 @@ var sysctlMib = []mibentry{ {"hw.model", []_C_int{6, 2}}, {"hw.ncpu", []_C_int{6, 3}}, {"hw.ncpufound", []_C_int{6, 21}}, + {"hw.ncpuonline", []_C_int{6, 25}}, {"hw.pagesize", []_C_int{6, 7}}, {"hw.perfpolicy", []_C_int{6, 23}}, {"hw.physmem", []_C_int{6, 19}}, diff --git a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go index 6eb8c0b08..d3801eb24 100644 --- a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go +++ b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go @@ -30,6 +30,7 @@ var sysctlMib = []mibentry{ {"hw.model", []_C_int{6, 2}}, {"hw.ncpu", []_C_int{6, 3}}, {"hw.ncpufound", []_C_int{6, 21}}, + {"hw.ncpuonline", []_C_int{6, 25}}, {"hw.pagesize", []_C_int{6, 7}}, {"hw.physmem", []_C_int{6, 19}}, {"hw.product", []_C_int{6, 15}}, diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go index 7aae554f2..54559a895 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go @@ -431,4 +431,6 @@ const ( SYS_FSPICK = 433 SYS_PIDFD_OPEN = 434 SYS_CLONE3 = 435 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go index 7968439a9..054a741b7 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go @@ -353,4 +353,6 @@ const ( SYS_FSPICK = 433 SYS_PIDFD_OPEN = 434 SYS_CLONE3 = 435 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go index 3c663c69d..307f2ba12 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go @@ -395,4 +395,6 @@ const ( SYS_FSPICK = 433 SYS_PIDFD_OPEN = 434 SYS_CLONE3 = 435 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go index 1f3b4d150..e9404dd54 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go @@ -298,4 +298,6 @@ const ( SYS_FSPICK = 433 SYS_PIDFD_OPEN = 434 SYS_CLONE3 = 435 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go index 00da3de90..68bb6d29b 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go @@ -416,4 +416,6 @@ const ( SYS_FSPICK = 4433 SYS_PIDFD_OPEN = 4434 SYS_CLONE3 = 4435 + SYS_OPENAT2 = 4437 + SYS_PIDFD_GETFD = 4438 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go index d404fbd4d..4e5251185 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go @@ -346,4 +346,6 @@ const ( SYS_FSPICK = 5433 SYS_PIDFD_OPEN = 5434 SYS_CLONE3 = 5435 + SYS_OPENAT2 = 5437 + SYS_PIDFD_GETFD = 5438 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go index bfbf242f3..4d9aa3003 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go @@ -346,4 +346,6 @@ const ( SYS_FSPICK = 5433 SYS_PIDFD_OPEN = 5434 SYS_CLONE3 = 5435 + SYS_OPENAT2 = 5437 + SYS_PIDFD_GETFD = 5438 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go index 3826f497a..64af0707d 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go @@ -416,4 +416,6 @@ const ( SYS_FSPICK = 4433 SYS_PIDFD_OPEN = 4434 SYS_CLONE3 = 4435 + SYS_OPENAT2 = 4437 + SYS_PIDFD_GETFD = 4438 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go index 52e3da649..cc3c067ba 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go @@ -395,4 +395,6 @@ const ( SYS_FSPICK = 433 SYS_PIDFD_OPEN = 434 SYS_CLONE3 = 435 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go index 6141f90a8..4050ff983 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go @@ -395,4 +395,6 @@ const ( SYS_FSPICK = 433 SYS_PIDFD_OPEN = 434 SYS_CLONE3 = 435 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go index 4f7261a88..529abb6a7 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go @@ -297,4 +297,6 @@ const ( SYS_FSPICK = 433 SYS_PIDFD_OPEN = 434 SYS_CLONE3 = 435 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go index f47014ac0..276650010 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go @@ -360,4 +360,6 @@ const ( SYS_FSPICK = 433 SYS_PIDFD_OPEN = 434 SYS_CLONE3 = 435 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go index dd78abb0d..4dc82bb24 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go @@ -374,4 +374,6 @@ const ( SYS_FSMOUNT = 432 SYS_FSPICK = 433 SYS_PIDFD_OPEN = 434 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 ) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux.go b/vendor/golang.org/x/sys/unix/ztypes_linux.go index cb5e06c60..27d67ac8f 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux.go @@ -18,6 +18,11 @@ type ( _C_long_long int64 ) +type ItimerSpec struct { + Interval Timespec + Value Timespec +} + const ( TIME_OK = 0x0 TIME_INS = 0x1 @@ -114,7 +119,8 @@ type FscryptKeySpecifier struct { type FscryptAddKeyArg struct { Key_spec FscryptKeySpecifier Raw_size uint32 - _ [9]uint32 + Key_id uint32 + _ [8]uint32 } type FscryptRemoveKeyArg struct { @@ -479,7 +485,7 @@ const ( IFLA_NEW_IFINDEX = 0x31 IFLA_MIN_MTU = 0x32 IFLA_MAX_MTU = 0x33 - IFLA_MAX = 0x35 + IFLA_MAX = 0x36 IFLA_INFO_KIND = 0x1 IFLA_INFO_DATA = 0x2 IFLA_INFO_XSTATS = 0x3 @@ -1865,175 +1871,249 @@ const ( ) const ( - BPF_REG_0 = 0x0 - BPF_REG_1 = 0x1 - BPF_REG_2 = 0x2 - BPF_REG_3 = 0x3 - BPF_REG_4 = 0x4 - BPF_REG_5 = 0x5 - BPF_REG_6 = 0x6 - BPF_REG_7 = 0x7 - BPF_REG_8 = 0x8 - BPF_REG_9 = 0x9 - BPF_REG_10 = 0xa - BPF_MAP_CREATE = 0x0 - BPF_MAP_LOOKUP_ELEM = 0x1 - BPF_MAP_UPDATE_ELEM = 0x2 - BPF_MAP_DELETE_ELEM = 0x3 - BPF_MAP_GET_NEXT_KEY = 0x4 - BPF_PROG_LOAD = 0x5 - BPF_OBJ_PIN = 0x6 - BPF_OBJ_GET = 0x7 - BPF_PROG_ATTACH = 0x8 - BPF_PROG_DETACH = 0x9 - BPF_PROG_TEST_RUN = 0xa - BPF_PROG_GET_NEXT_ID = 0xb - BPF_MAP_GET_NEXT_ID = 0xc - BPF_PROG_GET_FD_BY_ID = 0xd - BPF_MAP_GET_FD_BY_ID = 0xe - BPF_OBJ_GET_INFO_BY_FD = 0xf - BPF_PROG_QUERY = 0x10 - BPF_RAW_TRACEPOINT_OPEN = 0x11 - BPF_BTF_LOAD = 0x12 - BPF_BTF_GET_FD_BY_ID = 0x13 - BPF_TASK_FD_QUERY = 0x14 - BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 - BPF_MAP_FREEZE = 0x16 - BPF_BTF_GET_NEXT_ID = 0x17 - BPF_MAP_TYPE_UNSPEC = 0x0 - BPF_MAP_TYPE_HASH = 0x1 - BPF_MAP_TYPE_ARRAY = 0x2 - BPF_MAP_TYPE_PROG_ARRAY = 0x3 - BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 - BPF_MAP_TYPE_PERCPU_HASH = 0x5 - BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 - BPF_MAP_TYPE_STACK_TRACE = 0x7 - BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 - BPF_MAP_TYPE_LRU_HASH = 0x9 - BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa - BPF_MAP_TYPE_LPM_TRIE = 0xb - BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc - BPF_MAP_TYPE_HASH_OF_MAPS = 0xd - BPF_MAP_TYPE_DEVMAP = 0xe - BPF_MAP_TYPE_SOCKMAP = 0xf - BPF_MAP_TYPE_CPUMAP = 0x10 - BPF_MAP_TYPE_XSKMAP = 0x11 - BPF_MAP_TYPE_SOCKHASH = 0x12 - BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 - BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 - BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 - BPF_MAP_TYPE_QUEUE = 0x16 - BPF_MAP_TYPE_STACK = 0x17 - BPF_MAP_TYPE_SK_STORAGE = 0x18 - BPF_MAP_TYPE_DEVMAP_HASH = 0x19 - BPF_PROG_TYPE_UNSPEC = 0x0 - BPF_PROG_TYPE_SOCKET_FILTER = 0x1 - BPF_PROG_TYPE_KPROBE = 0x2 - BPF_PROG_TYPE_SCHED_CLS = 0x3 - BPF_PROG_TYPE_SCHED_ACT = 0x4 - BPF_PROG_TYPE_TRACEPOINT = 0x5 - BPF_PROG_TYPE_XDP = 0x6 - BPF_PROG_TYPE_PERF_EVENT = 0x7 - BPF_PROG_TYPE_CGROUP_SKB = 0x8 - BPF_PROG_TYPE_CGROUP_SOCK = 0x9 - BPF_PROG_TYPE_LWT_IN = 0xa - BPF_PROG_TYPE_LWT_OUT = 0xb - BPF_PROG_TYPE_LWT_XMIT = 0xc - BPF_PROG_TYPE_SOCK_OPS = 0xd - BPF_PROG_TYPE_SK_SKB = 0xe - BPF_PROG_TYPE_CGROUP_DEVICE = 0xf - BPF_PROG_TYPE_SK_MSG = 0x10 - BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 - BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 - BPF_PROG_TYPE_LIRC_MODE2 = 0x14 - BPF_PROG_TYPE_SK_REUSEPORT = 0x15 - BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 - BPF_PROG_TYPE_CGROUP_SYSCTL = 0x17 - BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE = 0x18 - BPF_PROG_TYPE_CGROUP_SOCKOPT = 0x19 - BPF_PROG_TYPE_TRACING = 0x1a - BPF_CGROUP_INET_INGRESS = 0x0 - BPF_CGROUP_INET_EGRESS = 0x1 - BPF_CGROUP_INET_SOCK_CREATE = 0x2 - BPF_CGROUP_SOCK_OPS = 0x3 - BPF_SK_SKB_STREAM_PARSER = 0x4 - BPF_SK_SKB_STREAM_VERDICT = 0x5 - BPF_CGROUP_DEVICE = 0x6 - BPF_SK_MSG_VERDICT = 0x7 - BPF_CGROUP_INET4_BIND = 0x8 - BPF_CGROUP_INET6_BIND = 0x9 - BPF_CGROUP_INET4_CONNECT = 0xa - BPF_CGROUP_INET6_CONNECT = 0xb - BPF_CGROUP_INET4_POST_BIND = 0xc - BPF_CGROUP_INET6_POST_BIND = 0xd - BPF_CGROUP_UDP4_SENDMSG = 0xe - BPF_CGROUP_UDP6_SENDMSG = 0xf - BPF_LIRC_MODE2 = 0x10 - BPF_FLOW_DISSECTOR = 0x11 - BPF_CGROUP_SYSCTL = 0x12 - BPF_CGROUP_UDP4_RECVMSG = 0x13 - BPF_CGROUP_UDP6_RECVMSG = 0x14 - BPF_CGROUP_GETSOCKOPT = 0x15 - BPF_CGROUP_SETSOCKOPT = 0x16 - BPF_TRACE_RAW_TP = 0x17 - BPF_TRACE_FENTRY = 0x18 - BPF_TRACE_FEXIT = 0x19 - BPF_STACK_BUILD_ID_EMPTY = 0x0 - BPF_STACK_BUILD_ID_VALID = 0x1 - BPF_STACK_BUILD_ID_IP = 0x2 - BPF_ADJ_ROOM_NET = 0x0 - BPF_ADJ_ROOM_MAC = 0x1 - BPF_HDR_START_MAC = 0x0 - BPF_HDR_START_NET = 0x1 - BPF_LWT_ENCAP_SEG6 = 0x0 - BPF_LWT_ENCAP_SEG6_INLINE = 0x1 - BPF_LWT_ENCAP_IP = 0x2 - BPF_OK = 0x0 - BPF_DROP = 0x2 - BPF_REDIRECT = 0x7 - BPF_LWT_REROUTE = 0x80 - BPF_SOCK_OPS_VOID = 0x0 - BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 - BPF_SOCK_OPS_RWND_INIT = 0x2 - BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 - BPF_SOCK_OPS_NEEDS_ECN = 0x6 - BPF_SOCK_OPS_BASE_RTT = 0x7 - BPF_SOCK_OPS_RTO_CB = 0x8 - BPF_SOCK_OPS_RETRANS_CB = 0x9 - BPF_SOCK_OPS_STATE_CB = 0xa - BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb - BPF_SOCK_OPS_RTT_CB = 0xc - BPF_TCP_ESTABLISHED = 0x1 - BPF_TCP_SYN_SENT = 0x2 - BPF_TCP_SYN_RECV = 0x3 - BPF_TCP_FIN_WAIT1 = 0x4 - BPF_TCP_FIN_WAIT2 = 0x5 - BPF_TCP_TIME_WAIT = 0x6 - BPF_TCP_CLOSE = 0x7 - BPF_TCP_CLOSE_WAIT = 0x8 - BPF_TCP_LAST_ACK = 0x9 - BPF_TCP_LISTEN = 0xa - BPF_TCP_CLOSING = 0xb - BPF_TCP_NEW_SYN_RECV = 0xc - BPF_TCP_MAX_STATES = 0xd - BPF_FIB_LKUP_RET_SUCCESS = 0x0 - BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 - BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 - BPF_FIB_LKUP_RET_PROHIBIT = 0x3 - BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 - BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 - BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 - BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 - BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 - BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 - BPF_FD_TYPE_TRACEPOINT = 0x1 - BPF_FD_TYPE_KPROBE = 0x2 - BPF_FD_TYPE_KRETPROBE = 0x3 - BPF_FD_TYPE_UPROBE = 0x4 - BPF_FD_TYPE_URETPROBE = 0x5 + BPF_REG_0 = 0x0 + BPF_REG_1 = 0x1 + BPF_REG_2 = 0x2 + BPF_REG_3 = 0x3 + BPF_REG_4 = 0x4 + BPF_REG_5 = 0x5 + BPF_REG_6 = 0x6 + BPF_REG_7 = 0x7 + BPF_REG_8 = 0x8 + BPF_REG_9 = 0x9 + BPF_REG_10 = 0xa + BPF_MAP_CREATE = 0x0 + BPF_MAP_LOOKUP_ELEM = 0x1 + BPF_MAP_UPDATE_ELEM = 0x2 + BPF_MAP_DELETE_ELEM = 0x3 + BPF_MAP_GET_NEXT_KEY = 0x4 + BPF_PROG_LOAD = 0x5 + BPF_OBJ_PIN = 0x6 + BPF_OBJ_GET = 0x7 + BPF_PROG_ATTACH = 0x8 + BPF_PROG_DETACH = 0x9 + BPF_PROG_TEST_RUN = 0xa + BPF_PROG_GET_NEXT_ID = 0xb + BPF_MAP_GET_NEXT_ID = 0xc + BPF_PROG_GET_FD_BY_ID = 0xd + BPF_MAP_GET_FD_BY_ID = 0xe + BPF_OBJ_GET_INFO_BY_FD = 0xf + BPF_PROG_QUERY = 0x10 + BPF_RAW_TRACEPOINT_OPEN = 0x11 + BPF_BTF_LOAD = 0x12 + BPF_BTF_GET_FD_BY_ID = 0x13 + BPF_TASK_FD_QUERY = 0x14 + BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 + BPF_MAP_FREEZE = 0x16 + BPF_BTF_GET_NEXT_ID = 0x17 + BPF_MAP_LOOKUP_BATCH = 0x18 + BPF_MAP_LOOKUP_AND_DELETE_BATCH = 0x19 + BPF_MAP_UPDATE_BATCH = 0x1a + BPF_MAP_DELETE_BATCH = 0x1b + BPF_LINK_CREATE = 0x1c + BPF_LINK_UPDATE = 0x1d + BPF_MAP_TYPE_UNSPEC = 0x0 + BPF_MAP_TYPE_HASH = 0x1 + BPF_MAP_TYPE_ARRAY = 0x2 + BPF_MAP_TYPE_PROG_ARRAY = 0x3 + BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 + BPF_MAP_TYPE_PERCPU_HASH = 0x5 + BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 + BPF_MAP_TYPE_STACK_TRACE = 0x7 + BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 + BPF_MAP_TYPE_LRU_HASH = 0x9 + BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa + BPF_MAP_TYPE_LPM_TRIE = 0xb + BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc + BPF_MAP_TYPE_HASH_OF_MAPS = 0xd + BPF_MAP_TYPE_DEVMAP = 0xe + BPF_MAP_TYPE_SOCKMAP = 0xf + BPF_MAP_TYPE_CPUMAP = 0x10 + BPF_MAP_TYPE_XSKMAP = 0x11 + BPF_MAP_TYPE_SOCKHASH = 0x12 + BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 + BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 + BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 + BPF_MAP_TYPE_QUEUE = 0x16 + BPF_MAP_TYPE_STACK = 0x17 + BPF_MAP_TYPE_SK_STORAGE = 0x18 + BPF_MAP_TYPE_DEVMAP_HASH = 0x19 + BPF_MAP_TYPE_STRUCT_OPS = 0x1a + BPF_PROG_TYPE_UNSPEC = 0x0 + BPF_PROG_TYPE_SOCKET_FILTER = 0x1 + BPF_PROG_TYPE_KPROBE = 0x2 + BPF_PROG_TYPE_SCHED_CLS = 0x3 + BPF_PROG_TYPE_SCHED_ACT = 0x4 + BPF_PROG_TYPE_TRACEPOINT = 0x5 + BPF_PROG_TYPE_XDP = 0x6 + BPF_PROG_TYPE_PERF_EVENT = 0x7 + BPF_PROG_TYPE_CGROUP_SKB = 0x8 + BPF_PROG_TYPE_CGROUP_SOCK = 0x9 + BPF_PROG_TYPE_LWT_IN = 0xa + BPF_PROG_TYPE_LWT_OUT = 0xb + BPF_PROG_TYPE_LWT_XMIT = 0xc + BPF_PROG_TYPE_SOCK_OPS = 0xd + BPF_PROG_TYPE_SK_SKB = 0xe + BPF_PROG_TYPE_CGROUP_DEVICE = 0xf + BPF_PROG_TYPE_SK_MSG = 0x10 + BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 + BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 + BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 + BPF_PROG_TYPE_LIRC_MODE2 = 0x14 + BPF_PROG_TYPE_SK_REUSEPORT = 0x15 + BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 + BPF_PROG_TYPE_CGROUP_SYSCTL = 0x17 + BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE = 0x18 + BPF_PROG_TYPE_CGROUP_SOCKOPT = 0x19 + BPF_PROG_TYPE_TRACING = 0x1a + BPF_PROG_TYPE_STRUCT_OPS = 0x1b + BPF_PROG_TYPE_EXT = 0x1c + BPF_PROG_TYPE_LSM = 0x1d + BPF_CGROUP_INET_INGRESS = 0x0 + BPF_CGROUP_INET_EGRESS = 0x1 + BPF_CGROUP_INET_SOCK_CREATE = 0x2 + BPF_CGROUP_SOCK_OPS = 0x3 + BPF_SK_SKB_STREAM_PARSER = 0x4 + BPF_SK_SKB_STREAM_VERDICT = 0x5 + BPF_CGROUP_DEVICE = 0x6 + BPF_SK_MSG_VERDICT = 0x7 + BPF_CGROUP_INET4_BIND = 0x8 + BPF_CGROUP_INET6_BIND = 0x9 + BPF_CGROUP_INET4_CONNECT = 0xa + BPF_CGROUP_INET6_CONNECT = 0xb + BPF_CGROUP_INET4_POST_BIND = 0xc + BPF_CGROUP_INET6_POST_BIND = 0xd + BPF_CGROUP_UDP4_SENDMSG = 0xe + BPF_CGROUP_UDP6_SENDMSG = 0xf + BPF_LIRC_MODE2 = 0x10 + BPF_FLOW_DISSECTOR = 0x11 + BPF_CGROUP_SYSCTL = 0x12 + BPF_CGROUP_UDP4_RECVMSG = 0x13 + BPF_CGROUP_UDP6_RECVMSG = 0x14 + BPF_CGROUP_GETSOCKOPT = 0x15 + BPF_CGROUP_SETSOCKOPT = 0x16 + BPF_TRACE_RAW_TP = 0x17 + BPF_TRACE_FENTRY = 0x18 + BPF_TRACE_FEXIT = 0x19 + BPF_MODIFY_RETURN = 0x1a + BPF_LSM_MAC = 0x1b + BPF_ANY = 0x0 + BPF_NOEXIST = 0x1 + BPF_EXIST = 0x2 + BPF_F_LOCK = 0x4 + BPF_F_NO_PREALLOC = 0x1 + BPF_F_NO_COMMON_LRU = 0x2 + BPF_F_NUMA_NODE = 0x4 + BPF_F_RDONLY = 0x8 + BPF_F_WRONLY = 0x10 + BPF_F_STACK_BUILD_ID = 0x20 + BPF_F_ZERO_SEED = 0x40 + BPF_F_RDONLY_PROG = 0x80 + BPF_F_WRONLY_PROG = 0x100 + BPF_F_CLONE = 0x200 + BPF_F_MMAPABLE = 0x400 + BPF_STACK_BUILD_ID_EMPTY = 0x0 + BPF_STACK_BUILD_ID_VALID = 0x1 + BPF_STACK_BUILD_ID_IP = 0x2 + BPF_F_RECOMPUTE_CSUM = 0x1 + BPF_F_INVALIDATE_HASH = 0x2 + BPF_F_HDR_FIELD_MASK = 0xf + BPF_F_PSEUDO_HDR = 0x10 + BPF_F_MARK_MANGLED_0 = 0x20 + BPF_F_MARK_ENFORCE = 0x40 + BPF_F_INGRESS = 0x1 + BPF_F_TUNINFO_IPV6 = 0x1 + BPF_F_SKIP_FIELD_MASK = 0xff + BPF_F_USER_STACK = 0x100 + BPF_F_FAST_STACK_CMP = 0x200 + BPF_F_REUSE_STACKID = 0x400 + BPF_F_USER_BUILD_ID = 0x800 + BPF_F_ZERO_CSUM_TX = 0x2 + BPF_F_DONT_FRAGMENT = 0x4 + BPF_F_SEQ_NUMBER = 0x8 + BPF_F_INDEX_MASK = 0xffffffff + BPF_F_CURRENT_CPU = 0xffffffff + BPF_F_CTXLEN_MASK = 0xfffff00000000 + BPF_F_CURRENT_NETNS = -0x1 + BPF_F_ADJ_ROOM_FIXED_GSO = 0x1 + BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2 + BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4 + BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8 + BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10 + BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff + BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38 + BPF_F_SYSCTL_BASE_NAME = 0x1 + BPF_SK_STORAGE_GET_F_CREATE = 0x1 + BPF_F_GET_BRANCH_RECORDS_SIZE = 0x1 + BPF_ADJ_ROOM_NET = 0x0 + BPF_ADJ_ROOM_MAC = 0x1 + BPF_HDR_START_MAC = 0x0 + BPF_HDR_START_NET = 0x1 + BPF_LWT_ENCAP_SEG6 = 0x0 + BPF_LWT_ENCAP_SEG6_INLINE = 0x1 + BPF_LWT_ENCAP_IP = 0x2 + BPF_OK = 0x0 + BPF_DROP = 0x2 + BPF_REDIRECT = 0x7 + BPF_LWT_REROUTE = 0x80 + BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 + BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 + BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 + BPF_SOCK_OPS_RTT_CB_FLAG = 0x8 + BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf + BPF_SOCK_OPS_VOID = 0x0 + BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 + BPF_SOCK_OPS_RWND_INIT = 0x2 + BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 + BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 + BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 + BPF_SOCK_OPS_NEEDS_ECN = 0x6 + BPF_SOCK_OPS_BASE_RTT = 0x7 + BPF_SOCK_OPS_RTO_CB = 0x8 + BPF_SOCK_OPS_RETRANS_CB = 0x9 + BPF_SOCK_OPS_STATE_CB = 0xa + BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb + BPF_SOCK_OPS_RTT_CB = 0xc + BPF_TCP_ESTABLISHED = 0x1 + BPF_TCP_SYN_SENT = 0x2 + BPF_TCP_SYN_RECV = 0x3 + BPF_TCP_FIN_WAIT1 = 0x4 + BPF_TCP_FIN_WAIT2 = 0x5 + BPF_TCP_TIME_WAIT = 0x6 + BPF_TCP_CLOSE = 0x7 + BPF_TCP_CLOSE_WAIT = 0x8 + BPF_TCP_LAST_ACK = 0x9 + BPF_TCP_LISTEN = 0xa + BPF_TCP_CLOSING = 0xb + BPF_TCP_NEW_SYN_RECV = 0xc + BPF_TCP_MAX_STATES = 0xd + TCP_BPF_IW = 0x3e9 + TCP_BPF_SNDCWND_CLAMP = 0x3ea + BPF_DEVCG_ACC_MKNOD = 0x1 + BPF_DEVCG_ACC_READ = 0x2 + BPF_DEVCG_ACC_WRITE = 0x4 + BPF_DEVCG_DEV_BLOCK = 0x1 + BPF_DEVCG_DEV_CHAR = 0x2 + BPF_FIB_LOOKUP_DIRECT = 0x1 + BPF_FIB_LOOKUP_OUTPUT = 0x2 + BPF_FIB_LKUP_RET_SUCCESS = 0x0 + BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 + BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 + BPF_FIB_LKUP_RET_PROHIBIT = 0x3 + BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 + BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 + BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 + BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 + BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 + BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 + BPF_FD_TYPE_TRACEPOINT = 0x1 + BPF_FD_TYPE_KPROBE = 0x2 + BPF_FD_TYPE_KRETPROBE = 0x3 + BPF_FD_TYPE_UPROBE = 0x4 + BPF_FD_TYPE_URETPROBE = 0x5 + BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG = 0x1 + BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL = 0x2 + BPF_FLOW_DISSECTOR_F_STOP_AT_ENCAP = 0x4 ) const ( @@ -2199,7 +2279,7 @@ const ( DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20 DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21 DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22 - DEVLINK_CMD_MAX = 0x44 + DEVLINK_CMD_MAX = 0x48 DEVLINK_PORT_TYPE_NOTSET = 0x0 DEVLINK_PORT_TYPE_AUTO = 0x1 DEVLINK_PORT_TYPE_ETH = 0x2 @@ -2279,7 +2359,7 @@ const ( DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c DEVLINK_ATTR_PAD = 0x3d DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e - DEVLINK_ATTR_MAX = 0x8c + DEVLINK_ATTR_MAX = 0x90 DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0 DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1 DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0 @@ -2291,3 +2371,49 @@ const ( DEVLINK_DPIPE_HEADER_IPV4 = 0x1 DEVLINK_DPIPE_HEADER_IPV6 = 0x2 ) + +type FsverityDigest struct { + Algorithm uint16 + Size uint16 +} + +type FsverityEnableArg struct { + Version uint32 + Hash_algorithm uint32 + Block_size uint32 + Salt_size uint32 + Salt_ptr uint64 + Sig_size uint32 + _ uint32 + Sig_ptr uint64 + _ [11]uint64 +} + +type Nhmsg struct { + Family uint8 + Scope uint8 + Protocol uint8 + Resvd uint8 + Flags uint32 +} + +type NexthopGrp struct { + Id uint32 + Weight uint8 + Resvd1 uint8 + Resvd2 uint16 +} + +const ( + NHA_UNSPEC = 0x0 + NHA_ID = 0x1 + NHA_GROUP = 0x2 + NHA_GROUP_TYPE = 0x3 + NHA_BLACKHOLE = 0x4 + NHA_OIF = 0x5 + NHA_GATEWAY = 0x6 + NHA_ENCAP_TYPE = 0x7 + NHA_ENCAP = 0x8 + NHA_GROUPS = 0x9 + NHA_MASTER = 0xa +) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go index fc6b3fb5c..761b67c86 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go @@ -287,6 +287,7 @@ type Taskstats struct { Freepages_delay_total uint64 Thrashing_count uint64 Thrashing_delay_total uint64 + Ac_btime64 uint64 } type cpuMask uint32 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go index 26c30b84d..201fb3482 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go @@ -298,6 +298,7 @@ type Taskstats struct { Freepages_delay_total uint64 Thrashing_count uint64 Thrashing_delay_total uint64 + Ac_btime64 uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go index 814d42d54..8051b5610 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go @@ -276,6 +276,7 @@ type Taskstats struct { Freepages_delay_total uint64 Thrashing_count uint64 Thrashing_delay_total uint64 + Ac_btime64 uint64 } type cpuMask uint32 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go index d9664c713..a936f2169 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go @@ -277,6 +277,7 @@ type Taskstats struct { Freepages_delay_total uint64 Thrashing_count uint64 Thrashing_delay_total uint64 + Ac_btime64 uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go index 0d721454f..aaca03dd7 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go @@ -281,6 +281,7 @@ type Taskstats struct { Freepages_delay_total uint64 Thrashing_count uint64 Thrashing_delay_total uint64 + Ac_btime64 uint64 } type cpuMask uint32 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go index ef697684d..2e7f3b8ca 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go @@ -280,6 +280,7 @@ type Taskstats struct { Freepages_delay_total uint64 Thrashing_count uint64 Thrashing_delay_total uint64 + Ac_btime64 uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go index 485fda70b..16add5a25 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go @@ -280,6 +280,7 @@ type Taskstats struct { Freepages_delay_total uint64 Thrashing_count uint64 Thrashing_delay_total uint64 + Ac_btime64 uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go index 569477eef..4ed2c8e54 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go @@ -281,6 +281,7 @@ type Taskstats struct { Freepages_delay_total uint64 Thrashing_count uint64 Thrashing_delay_total uint64 + Ac_btime64 uint64 } type cpuMask uint32 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go index 602d8b4ee..741519099 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go @@ -287,6 +287,7 @@ type Taskstats struct { Freepages_delay_total uint64 Thrashing_count uint64 Thrashing_delay_total uint64 + Ac_btime64 uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go index 6db9a7b73..046c2debd 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go @@ -287,6 +287,7 @@ type Taskstats struct { Freepages_delay_total uint64 Thrashing_count uint64 Thrashing_delay_total uint64 + Ac_btime64 uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go index 52b5348c2..0f2f61a6a 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go @@ -305,6 +305,7 @@ type Taskstats struct { Freepages_delay_total uint64 Thrashing_count uint64 Thrashing_delay_total uint64 + Ac_btime64 uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go index a111387b3..cca1b6be2 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go @@ -300,6 +300,7 @@ type Taskstats struct { Freepages_delay_total uint64 Thrashing_count uint64 Thrashing_delay_total uint64 + Ac_btime64 uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go index 8153af181..33a73bf18 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go @@ -282,6 +282,7 @@ type Taskstats struct { Freepages_delay_total uint64 Thrashing_count uint64 Thrashing_delay_total uint64 + Ac_btime64 uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/windows/dll_windows.go b/vendor/golang.org/x/sys/windows/dll_windows.go index d77711341..82076fb74 100644 --- a/vendor/golang.org/x/sys/windows/dll_windows.go +++ b/vendor/golang.org/x/sys/windows/dll_windows.go @@ -104,6 +104,35 @@ func (d *DLL) MustFindProc(name string) *Proc { return p } +// FindProcByOrdinal searches DLL d for procedure by ordinal and returns *Proc +// if found. It returns an error if search fails. +func (d *DLL) FindProcByOrdinal(ordinal uintptr) (proc *Proc, err error) { + a, e := GetProcAddressByOrdinal(d.Handle, ordinal) + name := "#" + itoa(int(ordinal)) + if e != nil { + return nil, &DLLError{ + Err: e, + ObjName: name, + Msg: "Failed to find " + name + " procedure in " + d.Name + ": " + e.Error(), + } + } + p := &Proc{ + Dll: d, + Name: name, + addr: a, + } + return p, nil +} + +// MustFindProcByOrdinal is like FindProcByOrdinal but panics if search fails. +func (d *DLL) MustFindProcByOrdinal(ordinal uintptr) *Proc { + p, e := d.FindProcByOrdinal(ordinal) + if e != nil { + panic(e) + } + return p +} + // Release unloads DLL d from memory. func (d *DLL) Release() (err error) { return FreeLibrary(d.Handle) diff --git a/vendor/golang.org/x/sys/windows/env_windows.go b/vendor/golang.org/x/sys/windows/env_windows.go index f482a9fab..92ac05ff4 100644 --- a/vendor/golang.org/x/sys/windows/env_windows.go +++ b/vendor/golang.org/x/sys/windows/env_windows.go @@ -8,7 +8,6 @@ package windows import ( "syscall" - "unicode/utf16" "unsafe" ) @@ -40,17 +39,11 @@ func (token Token) Environ(inheritExisting bool) (env []string, err error) { defer DestroyEnvironmentBlock(block) blockp := uintptr(unsafe.Pointer(block)) for { - entry := (*[(1 << 30) - 1]uint16)(unsafe.Pointer(blockp))[:] - for i, v := range entry { - if v == 0 { - entry = entry[:i] - break - } - } + entry := UTF16PtrToString((*uint16)(unsafe.Pointer(blockp))) if len(entry) == 0 { break } - env = append(env, string(utf16.Decode(entry))) + env = append(env, entry) blockp += 2 * (uintptr(len(entry)) + 1) } return env, nil diff --git a/vendor/golang.org/x/sys/windows/memory_windows.go b/vendor/golang.org/x/sys/windows/memory_windows.go index f80a4204f..e409d76f0 100644 --- a/vendor/golang.org/x/sys/windows/memory_windows.go +++ b/vendor/golang.org/x/sys/windows/memory_windows.go @@ -23,4 +23,9 @@ const ( PAGE_EXECUTE_READ = 0x20 PAGE_EXECUTE_READWRITE = 0x40 PAGE_EXECUTE_WRITECOPY = 0x80 + + QUOTA_LIMITS_HARDWS_MIN_DISABLE = 0x00000002 + QUOTA_LIMITS_HARDWS_MIN_ENABLE = 0x00000001 + QUOTA_LIMITS_HARDWS_MAX_DISABLE = 0x00000008 + QUOTA_LIMITS_HARDWS_MAX_ENABLE = 0x00000004 ) diff --git a/vendor/golang.org/x/sys/windows/security_windows.go b/vendor/golang.org/x/sys/windows/security_windows.go index 4b6eff186..9e3c44a85 100644 --- a/vendor/golang.org/x/sys/windows/security_windows.go +++ b/vendor/golang.org/x/sys/windows/security_windows.go @@ -7,6 +7,8 @@ package windows import ( "syscall" "unsafe" + + "golang.org/x/sys/internal/unsafeheader" ) const ( @@ -1229,7 +1231,7 @@ func (sd *SECURITY_DESCRIPTOR) String() string { return "" } defer LocalFree(Handle(unsafe.Pointer(sddl))) - return UTF16ToString((*[(1 << 30) - 1]uint16)(unsafe.Pointer(sddl))[:]) + return UTF16PtrToString(sddl) } // ToAbsolute converts a self-relative security descriptor into an absolute one. @@ -1307,9 +1309,17 @@ func (absoluteSD *SECURITY_DESCRIPTOR) ToSelfRelative() (selfRelativeSD *SECURIT } func (selfRelativeSD *SECURITY_DESCRIPTOR) copySelfRelativeSecurityDescriptor() *SECURITY_DESCRIPTOR { - sdBytes := make([]byte, selfRelativeSD.Length()) - copy(sdBytes, (*[(1 << 31) - 1]byte)(unsafe.Pointer(selfRelativeSD))[:len(sdBytes)]) - return (*SECURITY_DESCRIPTOR)(unsafe.Pointer(&sdBytes[0])) + sdLen := (int)(selfRelativeSD.Length()) + + var src []byte + h := (*unsafeheader.Slice)(unsafe.Pointer(&src)) + h.Data = unsafe.Pointer(selfRelativeSD) + h.Len = sdLen + h.Cap = sdLen + + dst := make([]byte, sdLen) + copy(dst, src) + return (*SECURITY_DESCRIPTOR)(unsafe.Pointer(&dst[0])) } // SecurityDescriptorFromString converts an SDDL string describing a security descriptor into a @@ -1391,6 +1401,6 @@ func ACLFromEntries(explicitEntries []EXPLICIT_ACCESS, mergedACL *ACL) (acl *ACL } defer LocalFree(Handle(unsafe.Pointer(winHeapACL))) aclBytes := make([]byte, winHeapACL.aclSize) - copy(aclBytes, (*[(1 << 31) - 1]byte)(unsafe.Pointer(winHeapACL))[:len(aclBytes)]) + copy(aclBytes, (*[(1 << 31) - 1]byte)(unsafe.Pointer(winHeapACL))[:len(aclBytes):len(aclBytes)]) return (*ACL)(unsafe.Pointer(&aclBytes[0])), nil } diff --git a/vendor/golang.org/x/sys/windows/syscall_windows.go b/vendor/golang.org/x/sys/windows/syscall_windows.go index 053d664d0..62cf70e9f 100644 --- a/vendor/golang.org/x/sys/windows/syscall_windows.go +++ b/vendor/golang.org/x/sys/windows/syscall_windows.go @@ -13,6 +13,8 @@ import ( "time" "unicode/utf16" "unsafe" + + "golang.org/x/sys/internal/unsafeheader" ) type Handle uintptr @@ -117,6 +119,32 @@ func UTF16PtrFromString(s string) (*uint16, error) { return &a[0], nil } +// UTF16PtrToString takes a pointer to a UTF-16 sequence and returns the corresponding UTF-8 encoded string. +// If the pointer is nil, this returns the empty string. This assumes that the UTF-16 sequence is terminated +// at a zero word; if the zero word is not present, the program may crash. +func UTF16PtrToString(p *uint16) string { + if p == nil { + return "" + } + if *p == 0 { + return "" + } + + // Find NUL terminator. + n := 0 + for ptr := unsafe.Pointer(p); *(*uint16)(ptr) != 0; n++ { + ptr = unsafe.Pointer(uintptr(ptr) + unsafe.Sizeof(*p)) + } + + var s []uint16 + h := (*unsafeheader.Slice)(unsafe.Pointer(&s)) + h.Data = unsafe.Pointer(p) + h.Len = n + h.Cap = n + + return string(utf16.Decode(s)) +} + func Getpagesize() int { return 4096 } // NewCallback converts a Go function to a function pointer conforming to the stdcall calling convention. @@ -280,6 +308,8 @@ func NewCallbackCDecl(fn interface{}) uintptr { //sys GetProcessId(process Handle) (id uint32, err error) //sys OpenThread(desiredAccess uint32, inheritHandle bool, threadId uint32) (handle Handle, err error) //sys SetProcessPriorityBoost(process Handle, disable bool) (err error) = kernel32.SetProcessPriorityBoost +//sys GetProcessWorkingSetSizeEx(hProcess Handle, lpMinimumWorkingSetSize *uintptr, lpMaximumWorkingSetSize *uintptr, flags *uint32) +//sys SetProcessWorkingSetSizeEx(hProcess Handle, dwMinimumWorkingSetSize uintptr, dwMaximumWorkingSetSize uintptr, flags uint32) (err error) // Volume Management Functions //sys DefineDosDevice(flags uint32, deviceName *uint16, targetPath *uint16) (err error) = DefineDosDeviceW @@ -1181,7 +1211,12 @@ type IPv6Mreq struct { Interface uint32 } -func GetsockoptInt(fd Handle, level, opt int) (int, error) { return -1, syscall.EWINDOWS } +func GetsockoptInt(fd Handle, level, opt int) (int, error) { + v := int32(0) + l := int32(unsafe.Sizeof(v)) + err := Getsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(&v)), &l) + return int(v), err +} func SetsockoptLinger(fd Handle, level, opt int, l *Linger) (err error) { sys := sysLinger{Onoff: uint16(l.Onoff), Linger: uint16(l.Linger)} @@ -1378,7 +1413,7 @@ func (t Token) KnownFolderPath(folderID *KNOWNFOLDERID, flags uint32) (string, e return "", err } defer CoTaskMemFree(unsafe.Pointer(p)) - return UTF16ToString((*[(1 << 30) - 1]uint16)(unsafe.Pointer(p))[:]), nil + return UTF16PtrToString(p), nil } // RtlGetVersion returns the version of the underlying operating system, ignoring diff --git a/vendor/golang.org/x/sys/windows/zsyscall_windows.go b/vendor/golang.org/x/sys/windows/zsyscall_windows.go index 2aa4fa642..8a562feed 100644 --- a/vendor/golang.org/x/sys/windows/zsyscall_windows.go +++ b/vendor/golang.org/x/sys/windows/zsyscall_windows.go @@ -217,6 +217,8 @@ var ( procGetProcessId = modkernel32.NewProc("GetProcessId") procOpenThread = modkernel32.NewProc("OpenThread") procSetProcessPriorityBoost = modkernel32.NewProc("SetProcessPriorityBoost") + procGetProcessWorkingSetSizeEx = modkernel32.NewProc("GetProcessWorkingSetSizeEx") + procSetProcessWorkingSetSizeEx = modkernel32.NewProc("SetProcessWorkingSetSizeEx") procDefineDosDeviceW = modkernel32.NewProc("DefineDosDeviceW") procDeleteVolumeMountPointW = modkernel32.NewProc("DeleteVolumeMountPointW") procFindFirstVolumeW = modkernel32.NewProc("FindFirstVolumeW") @@ -2414,6 +2416,23 @@ func SetProcessPriorityBoost(process Handle, disable bool) (err error) { return } +func GetProcessWorkingSetSizeEx(hProcess Handle, lpMinimumWorkingSetSize *uintptr, lpMaximumWorkingSetSize *uintptr, flags *uint32) { + syscall.Syscall6(procGetProcessWorkingSetSizeEx.Addr(), 4, uintptr(hProcess), uintptr(unsafe.Pointer(lpMinimumWorkingSetSize)), uintptr(unsafe.Pointer(lpMaximumWorkingSetSize)), uintptr(unsafe.Pointer(flags)), 0, 0) + return +} + +func SetProcessWorkingSetSizeEx(hProcess Handle, dwMinimumWorkingSetSize uintptr, dwMaximumWorkingSetSize uintptr, flags uint32) (err error) { + r1, _, e1 := syscall.Syscall6(procSetProcessWorkingSetSizeEx.Addr(), 4, uintptr(hProcess), uintptr(dwMinimumWorkingSetSize), uintptr(dwMaximumWorkingSetSize), uintptr(flags), 0, 0) + if r1 == 0 { + if e1 != 0 { + err = errnoErr(e1) + } else { + err = syscall.EINVAL + } + } + return +} + func DefineDosDevice(flags uint32, deviceName *uint16, targetPath *uint16) (err error) { r1, _, e1 := syscall.Syscall(procDefineDosDeviceW.Addr(), 3, uintptr(flags), uintptr(unsafe.Pointer(deviceName)), uintptr(unsafe.Pointer(targetPath))) if r1 == 0 { diff --git a/vendor/golang.org/x/text/encoding/unicode/unicode.go b/vendor/golang.org/x/text/encoding/unicode/unicode.go index 4850ff365..dd99ad14d 100644 --- a/vendor/golang.org/x/text/encoding/unicode/unicode.go +++ b/vendor/golang.org/x/text/encoding/unicode/unicode.go @@ -6,6 +6,7 @@ package unicode // import "golang.org/x/text/encoding/unicode" import ( + "bytes" "errors" "unicode/utf16" "unicode/utf8" @@ -25,15 +26,95 @@ import ( // the introduction of some kind of error type for conveying the erroneous code // point. -// UTF8 is the UTF-8 encoding. +// UTF8 is the UTF-8 encoding. It neither removes nor adds byte order marks. var UTF8 encoding.Encoding = utf8enc +// UTF8BOM is an UTF-8 encoding where the decoder strips a leading byte order +// mark while the encoder adds one. +// +// Some editors add a byte order mark as a signature to UTF-8 files. Although +// the byte order mark is not useful for detecting byte order in UTF-8, it is +// sometimes used as a convention to mark UTF-8-encoded files. This relies on +// the observation that the UTF-8 byte order mark is either an illegal or at +// least very unlikely sequence in any other character encoding. +var UTF8BOM encoding.Encoding = utf8bomEncoding{} + +type utf8bomEncoding struct{} + +func (utf8bomEncoding) String() string { + return "UTF-8-BOM" +} + +func (utf8bomEncoding) ID() (identifier.MIB, string) { + return identifier.Unofficial, "x-utf8bom" +} + +func (utf8bomEncoding) NewEncoder() *encoding.Encoder { + return &encoding.Encoder{ + Transformer: &utf8bomEncoder{t: runes.ReplaceIllFormed()}, + } +} + +func (utf8bomEncoding) NewDecoder() *encoding.Decoder { + return &encoding.Decoder{Transformer: &utf8bomDecoder{}} +} + var utf8enc = &internal.Encoding{ &internal.SimpleEncoding{utf8Decoder{}, runes.ReplaceIllFormed()}, "UTF-8", identifier.UTF8, } +type utf8bomDecoder struct { + checked bool +} + +func (t *utf8bomDecoder) Reset() { + t.checked = false +} + +func (t *utf8bomDecoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { + if !t.checked { + if !atEOF && len(src) < len(utf8BOM) { + if len(src) == 0 { + return 0, 0, nil + } + return 0, 0, transform.ErrShortSrc + } + if bytes.HasPrefix(src, []byte(utf8BOM)) { + nSrc += len(utf8BOM) + src = src[len(utf8BOM):] + } + t.checked = true + } + nDst, n, err := utf8Decoder.Transform(utf8Decoder{}, dst[nDst:], src, atEOF) + nSrc += n + return nDst, nSrc, err +} + +type utf8bomEncoder struct { + written bool + t transform.Transformer +} + +func (t *utf8bomEncoder) Reset() { + t.written = false + t.t.Reset() +} + +func (t *utf8bomEncoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { + if !t.written { + if len(dst) < len(utf8BOM) { + return nDst, 0, transform.ErrShortDst + } + nDst = copy(dst, utf8BOM) + t.written = true + } + n, nSrc, err := utf8Decoder.Transform(utf8Decoder{}, dst[nDst:], src, atEOF) + nDst += n + return nDst, nSrc, err +} + type utf8Decoder struct{ transform.NopResetter } func (utf8Decoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { @@ -287,16 +368,13 @@ func (u *utf16Decoder) Reset() { } func (u *utf16Decoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { + if len(src) < 2 && atEOF && u.current.bomPolicy&requireBOM != 0 { + return 0, 0, ErrMissingBOM + } if len(src) == 0 { - if atEOF && u.current.bomPolicy&requireBOM != 0 { - return 0, 0, ErrMissingBOM - } return 0, 0, nil } - if u.current.bomPolicy&acceptBOM != 0 { - if len(src) < 2 { - return 0, 0, transform.ErrShortSrc - } + if len(src) >= 2 && u.current.bomPolicy&acceptBOM != 0 { switch { case src[0] == 0xfe && src[1] == 0xff: u.current.endianness = BigEndian diff --git a/vendor/golang.org/x/text/transform/transform.go b/vendor/golang.org/x/text/transform/transform.go index 520b9ada0..48ec64b40 100644 --- a/vendor/golang.org/x/text/transform/transform.go +++ b/vendor/golang.org/x/text/transform/transform.go @@ -648,7 +648,8 @@ func String(t Transformer, s string) (result string, n int, err error) { // Transform the remaining input, growing dst and src buffers as necessary. for { n := copy(src, s[pSrc:]) - nDst, nSrc, err := t.Transform(dst[pDst:], src[:n], pSrc+n == len(s)) + atEOF := pSrc+n == len(s) + nDst, nSrc, err := t.Transform(dst[pDst:], src[:n], atEOF) pDst += nDst pSrc += nSrc @@ -659,6 +660,9 @@ func String(t Transformer, s string) (result string, n int, err error) { dst = grow(dst, pDst) } } else if err == ErrShortSrc { + if atEOF { + return string(dst[:pDst]), pSrc, err + } if nSrc == 0 { src = grow(src, 0) } diff --git a/vendor/golang.org/x/text/unicode/bidi/core.go b/vendor/golang.org/x/text/unicode/bidi/core.go index 48d144008..50deb6600 100644 --- a/vendor/golang.org/x/text/unicode/bidi/core.go +++ b/vendor/golang.org/x/text/unicode/bidi/core.go @@ -480,15 +480,15 @@ func (s *isolatingRunSequence) resolveWeakTypes() { // Rule W1. // Changes all NSMs. - preceedingCharacterType := s.sos + precedingCharacterType := s.sos for i, t := range s.types { if t == NSM { - s.types[i] = preceedingCharacterType + s.types[i] = precedingCharacterType } else { if t.in(LRI, RLI, FSI, PDI) { - preceedingCharacterType = ON + precedingCharacterType = ON } - preceedingCharacterType = t + precedingCharacterType = t } } diff --git a/vendor/golang.org/x/text/unicode/bidi/tables11.0.0.go b/vendor/golang.org/x/text/unicode/bidi/tables11.0.0.go index 022e3c690..16b11db53 100644 --- a/vendor/golang.org/x/text/unicode/bidi/tables11.0.0.go +++ b/vendor/golang.org/x/text/unicode/bidi/tables11.0.0.go @@ -1,6 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. -// +build go1.13 +// +build go1.13,!go1.14 package bidi diff --git a/vendor/golang.org/x/text/unicode/bidi/tables12.0.0.go b/vendor/golang.org/x/text/unicode/bidi/tables12.0.0.go new file mode 100644 index 000000000..7ffa36512 --- /dev/null +++ b/vendor/golang.org/x/text/unicode/bidi/tables12.0.0.go @@ -0,0 +1,1923 @@ +// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. + +// +build go1.14 + +package bidi + +// UnicodeVersion is the Unicode version from which the tables in this package are derived. +const UnicodeVersion = "12.0.0" + +// xorMasks contains masks to be xor-ed with brackets to get the reverse +// version. +var xorMasks = []int32{ // 8 elements + 0, 1, 6, 7, 3, 15, 29, 63, +} // Size: 56 bytes + +// lookup returns the trie value for the first UTF-8 encoding in s and +// the width in bytes of this encoding. The size will be 0 if s does not +// hold enough bytes to complete the encoding. len(s) must be greater than 0. +func (t *bidiTrie) lookup(s []byte) (v uint8, sz int) { + c0 := s[0] + switch { + case c0 < 0x80: // is ASCII + return bidiValues[c0], 1 + case c0 < 0xC2: + return 0, 1 // Illegal UTF-8: not a starter, not ASCII. + case c0 < 0xE0: // 2-byte UTF-8 + if len(s) < 2 { + return 0, 0 + } + i := bidiIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c1), 2 + case c0 < 0xF0: // 3-byte UTF-8 + if len(s) < 3 { + return 0, 0 + } + i := bidiIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + o := uint32(i)<<6 + uint32(c1) + i = bidiIndex[o] + c2 := s[2] + if c2 < 0x80 || 0xC0 <= c2 { + return 0, 2 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c2), 3 + case c0 < 0xF8: // 4-byte UTF-8 + if len(s) < 4 { + return 0, 0 + } + i := bidiIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + o := uint32(i)<<6 + uint32(c1) + i = bidiIndex[o] + c2 := s[2] + if c2 < 0x80 || 0xC0 <= c2 { + return 0, 2 // Illegal UTF-8: not a continuation byte. + } + o = uint32(i)<<6 + uint32(c2) + i = bidiIndex[o] + c3 := s[3] + if c3 < 0x80 || 0xC0 <= c3 { + return 0, 3 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c3), 4 + } + // Illegal rune + return 0, 1 +} + +// lookupUnsafe returns the trie value for the first UTF-8 encoding in s. +// s must start with a full and valid UTF-8 encoded rune. +func (t *bidiTrie) lookupUnsafe(s []byte) uint8 { + c0 := s[0] + if c0 < 0x80 { // is ASCII + return bidiValues[c0] + } + i := bidiIndex[c0] + if c0 < 0xE0 { // 2-byte UTF-8 + return t.lookupValue(uint32(i), s[1]) + } + i = bidiIndex[uint32(i)<<6+uint32(s[1])] + if c0 < 0xF0 { // 3-byte UTF-8 + return t.lookupValue(uint32(i), s[2]) + } + i = bidiIndex[uint32(i)<<6+uint32(s[2])] + if c0 < 0xF8 { // 4-byte UTF-8 + return t.lookupValue(uint32(i), s[3]) + } + return 0 +} + +// lookupString returns the trie value for the first UTF-8 encoding in s and +// the width in bytes of this encoding. The size will be 0 if s does not +// hold enough bytes to complete the encoding. len(s) must be greater than 0. +func (t *bidiTrie) lookupString(s string) (v uint8, sz int) { + c0 := s[0] + switch { + case c0 < 0x80: // is ASCII + return bidiValues[c0], 1 + case c0 < 0xC2: + return 0, 1 // Illegal UTF-8: not a starter, not ASCII. + case c0 < 0xE0: // 2-byte UTF-8 + if len(s) < 2 { + return 0, 0 + } + i := bidiIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c1), 2 + case c0 < 0xF0: // 3-byte UTF-8 + if len(s) < 3 { + return 0, 0 + } + i := bidiIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + o := uint32(i)<<6 + uint32(c1) + i = bidiIndex[o] + c2 := s[2] + if c2 < 0x80 || 0xC0 <= c2 { + return 0, 2 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c2), 3 + case c0 < 0xF8: // 4-byte UTF-8 + if len(s) < 4 { + return 0, 0 + } + i := bidiIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + o := uint32(i)<<6 + uint32(c1) + i = bidiIndex[o] + c2 := s[2] + if c2 < 0x80 || 0xC0 <= c2 { + return 0, 2 // Illegal UTF-8: not a continuation byte. + } + o = uint32(i)<<6 + uint32(c2) + i = bidiIndex[o] + c3 := s[3] + if c3 < 0x80 || 0xC0 <= c3 { + return 0, 3 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c3), 4 + } + // Illegal rune + return 0, 1 +} + +// lookupStringUnsafe returns the trie value for the first UTF-8 encoding in s. +// s must start with a full and valid UTF-8 encoded rune. +func (t *bidiTrie) lookupStringUnsafe(s string) uint8 { + c0 := s[0] + if c0 < 0x80 { // is ASCII + return bidiValues[c0] + } + i := bidiIndex[c0] + if c0 < 0xE0 { // 2-byte UTF-8 + return t.lookupValue(uint32(i), s[1]) + } + i = bidiIndex[uint32(i)<<6+uint32(s[1])] + if c0 < 0xF0 { // 3-byte UTF-8 + return t.lookupValue(uint32(i), s[2]) + } + i = bidiIndex[uint32(i)<<6+uint32(s[2])] + if c0 < 0xF8 { // 4-byte UTF-8 + return t.lookupValue(uint32(i), s[3]) + } + return 0 +} + +// bidiTrie. Total size: 16896 bytes (16.50 KiB). Checksum: 6f0927067913dc6d. +type bidiTrie struct{} + +func newBidiTrie(i int) *bidiTrie { + return &bidiTrie{} +} + +// lookupValue determines the type of block n and looks up the value for b. +func (t *bidiTrie) lookupValue(n uint32, b byte) uint8 { + switch { + default: + return uint8(bidiValues[n<<6+uint32(b)]) + } +} + +// bidiValues: 240 blocks, 15360 entries, 15360 bytes +// The third block is the zero block. +var bidiValues = [15360]uint8{ + // Block 0x0, offset 0x0 + 0x00: 0x000b, 0x01: 0x000b, 0x02: 0x000b, 0x03: 0x000b, 0x04: 0x000b, 0x05: 0x000b, + 0x06: 0x000b, 0x07: 0x000b, 0x08: 0x000b, 0x09: 0x0008, 0x0a: 0x0007, 0x0b: 0x0008, + 0x0c: 0x0009, 0x0d: 0x0007, 0x0e: 0x000b, 0x0f: 0x000b, 0x10: 0x000b, 0x11: 0x000b, + 0x12: 0x000b, 0x13: 0x000b, 0x14: 0x000b, 0x15: 0x000b, 0x16: 0x000b, 0x17: 0x000b, + 0x18: 0x000b, 0x19: 0x000b, 0x1a: 0x000b, 0x1b: 0x000b, 0x1c: 0x0007, 0x1d: 0x0007, + 0x1e: 0x0007, 0x1f: 0x0008, 0x20: 0x0009, 0x21: 0x000a, 0x22: 0x000a, 0x23: 0x0004, + 0x24: 0x0004, 0x25: 0x0004, 0x26: 0x000a, 0x27: 0x000a, 0x28: 0x003a, 0x29: 0x002a, + 0x2a: 0x000a, 0x2b: 0x0003, 0x2c: 0x0006, 0x2d: 0x0003, 0x2e: 0x0006, 0x2f: 0x0006, + 0x30: 0x0002, 0x31: 0x0002, 0x32: 0x0002, 0x33: 0x0002, 0x34: 0x0002, 0x35: 0x0002, + 0x36: 0x0002, 0x37: 0x0002, 0x38: 0x0002, 0x39: 0x0002, 0x3a: 0x0006, 0x3b: 0x000a, + 0x3c: 0x000a, 0x3d: 0x000a, 0x3e: 0x000a, 0x3f: 0x000a, + // Block 0x1, offset 0x40 + 0x40: 0x000a, + 0x5b: 0x005a, 0x5c: 0x000a, 0x5d: 0x004a, + 0x5e: 0x000a, 0x5f: 0x000a, 0x60: 0x000a, + 0x7b: 0x005a, + 0x7c: 0x000a, 0x7d: 0x004a, 0x7e: 0x000a, 0x7f: 0x000b, + // Block 0x2, offset 0x80 + // Block 0x3, offset 0xc0 + 0xc0: 0x000b, 0xc1: 0x000b, 0xc2: 0x000b, 0xc3: 0x000b, 0xc4: 0x000b, 0xc5: 0x0007, + 0xc6: 0x000b, 0xc7: 0x000b, 0xc8: 0x000b, 0xc9: 0x000b, 0xca: 0x000b, 0xcb: 0x000b, + 0xcc: 0x000b, 0xcd: 0x000b, 0xce: 0x000b, 0xcf: 0x000b, 0xd0: 0x000b, 0xd1: 0x000b, + 0xd2: 0x000b, 0xd3: 0x000b, 0xd4: 0x000b, 0xd5: 0x000b, 0xd6: 0x000b, 0xd7: 0x000b, + 0xd8: 0x000b, 0xd9: 0x000b, 0xda: 0x000b, 0xdb: 0x000b, 0xdc: 0x000b, 0xdd: 0x000b, + 0xde: 0x000b, 0xdf: 0x000b, 0xe0: 0x0006, 0xe1: 0x000a, 0xe2: 0x0004, 0xe3: 0x0004, + 0xe4: 0x0004, 0xe5: 0x0004, 0xe6: 0x000a, 0xe7: 0x000a, 0xe8: 0x000a, 0xe9: 0x000a, + 0xeb: 0x000a, 0xec: 0x000a, 0xed: 0x000b, 0xee: 0x000a, 0xef: 0x000a, + 0xf0: 0x0004, 0xf1: 0x0004, 0xf2: 0x0002, 0xf3: 0x0002, 0xf4: 0x000a, + 0xf6: 0x000a, 0xf7: 0x000a, 0xf8: 0x000a, 0xf9: 0x0002, 0xfb: 0x000a, + 0xfc: 0x000a, 0xfd: 0x000a, 0xfe: 0x000a, 0xff: 0x000a, + // Block 0x4, offset 0x100 + 0x117: 0x000a, + 0x137: 0x000a, + // Block 0x5, offset 0x140 + 0x179: 0x000a, 0x17a: 0x000a, + // Block 0x6, offset 0x180 + 0x182: 0x000a, 0x183: 0x000a, 0x184: 0x000a, 0x185: 0x000a, + 0x186: 0x000a, 0x187: 0x000a, 0x188: 0x000a, 0x189: 0x000a, 0x18a: 0x000a, 0x18b: 0x000a, + 0x18c: 0x000a, 0x18d: 0x000a, 0x18e: 0x000a, 0x18f: 0x000a, + 0x192: 0x000a, 0x193: 0x000a, 0x194: 0x000a, 0x195: 0x000a, 0x196: 0x000a, 0x197: 0x000a, + 0x198: 0x000a, 0x199: 0x000a, 0x19a: 0x000a, 0x19b: 0x000a, 0x19c: 0x000a, 0x19d: 0x000a, + 0x19e: 0x000a, 0x19f: 0x000a, + 0x1a5: 0x000a, 0x1a6: 0x000a, 0x1a7: 0x000a, 0x1a8: 0x000a, 0x1a9: 0x000a, + 0x1aa: 0x000a, 0x1ab: 0x000a, 0x1ac: 0x000a, 0x1ad: 0x000a, 0x1af: 0x000a, + 0x1b0: 0x000a, 0x1b1: 0x000a, 0x1b2: 0x000a, 0x1b3: 0x000a, 0x1b4: 0x000a, 0x1b5: 0x000a, + 0x1b6: 0x000a, 0x1b7: 0x000a, 0x1b8: 0x000a, 0x1b9: 0x000a, 0x1ba: 0x000a, 0x1bb: 0x000a, + 0x1bc: 0x000a, 0x1bd: 0x000a, 0x1be: 0x000a, 0x1bf: 0x000a, + // Block 0x7, offset 0x1c0 + 0x1c0: 0x000c, 0x1c1: 0x000c, 0x1c2: 0x000c, 0x1c3: 0x000c, 0x1c4: 0x000c, 0x1c5: 0x000c, + 0x1c6: 0x000c, 0x1c7: 0x000c, 0x1c8: 0x000c, 0x1c9: 0x000c, 0x1ca: 0x000c, 0x1cb: 0x000c, + 0x1cc: 0x000c, 0x1cd: 0x000c, 0x1ce: 0x000c, 0x1cf: 0x000c, 0x1d0: 0x000c, 0x1d1: 0x000c, + 0x1d2: 0x000c, 0x1d3: 0x000c, 0x1d4: 0x000c, 0x1d5: 0x000c, 0x1d6: 0x000c, 0x1d7: 0x000c, + 0x1d8: 0x000c, 0x1d9: 0x000c, 0x1da: 0x000c, 0x1db: 0x000c, 0x1dc: 0x000c, 0x1dd: 0x000c, + 0x1de: 0x000c, 0x1df: 0x000c, 0x1e0: 0x000c, 0x1e1: 0x000c, 0x1e2: 0x000c, 0x1e3: 0x000c, + 0x1e4: 0x000c, 0x1e5: 0x000c, 0x1e6: 0x000c, 0x1e7: 0x000c, 0x1e8: 0x000c, 0x1e9: 0x000c, + 0x1ea: 0x000c, 0x1eb: 0x000c, 0x1ec: 0x000c, 0x1ed: 0x000c, 0x1ee: 0x000c, 0x1ef: 0x000c, + 0x1f0: 0x000c, 0x1f1: 0x000c, 0x1f2: 0x000c, 0x1f3: 0x000c, 0x1f4: 0x000c, 0x1f5: 0x000c, + 0x1f6: 0x000c, 0x1f7: 0x000c, 0x1f8: 0x000c, 0x1f9: 0x000c, 0x1fa: 0x000c, 0x1fb: 0x000c, + 0x1fc: 0x000c, 0x1fd: 0x000c, 0x1fe: 0x000c, 0x1ff: 0x000c, + // Block 0x8, offset 0x200 + 0x200: 0x000c, 0x201: 0x000c, 0x202: 0x000c, 0x203: 0x000c, 0x204: 0x000c, 0x205: 0x000c, + 0x206: 0x000c, 0x207: 0x000c, 0x208: 0x000c, 0x209: 0x000c, 0x20a: 0x000c, 0x20b: 0x000c, + 0x20c: 0x000c, 0x20d: 0x000c, 0x20e: 0x000c, 0x20f: 0x000c, 0x210: 0x000c, 0x211: 0x000c, + 0x212: 0x000c, 0x213: 0x000c, 0x214: 0x000c, 0x215: 0x000c, 0x216: 0x000c, 0x217: 0x000c, + 0x218: 0x000c, 0x219: 0x000c, 0x21a: 0x000c, 0x21b: 0x000c, 0x21c: 0x000c, 0x21d: 0x000c, + 0x21e: 0x000c, 0x21f: 0x000c, 0x220: 0x000c, 0x221: 0x000c, 0x222: 0x000c, 0x223: 0x000c, + 0x224: 0x000c, 0x225: 0x000c, 0x226: 0x000c, 0x227: 0x000c, 0x228: 0x000c, 0x229: 0x000c, + 0x22a: 0x000c, 0x22b: 0x000c, 0x22c: 0x000c, 0x22d: 0x000c, 0x22e: 0x000c, 0x22f: 0x000c, + 0x234: 0x000a, 0x235: 0x000a, + 0x23e: 0x000a, + // Block 0x9, offset 0x240 + 0x244: 0x000a, 0x245: 0x000a, + 0x247: 0x000a, + // Block 0xa, offset 0x280 + 0x2b6: 0x000a, + // Block 0xb, offset 0x2c0 + 0x2c3: 0x000c, 0x2c4: 0x000c, 0x2c5: 0x000c, + 0x2c6: 0x000c, 0x2c7: 0x000c, 0x2c8: 0x000c, 0x2c9: 0x000c, + // Block 0xc, offset 0x300 + 0x30a: 0x000a, + 0x30d: 0x000a, 0x30e: 0x000a, 0x30f: 0x0004, 0x310: 0x0001, 0x311: 0x000c, + 0x312: 0x000c, 0x313: 0x000c, 0x314: 0x000c, 0x315: 0x000c, 0x316: 0x000c, 0x317: 0x000c, + 0x318: 0x000c, 0x319: 0x000c, 0x31a: 0x000c, 0x31b: 0x000c, 0x31c: 0x000c, 0x31d: 0x000c, + 0x31e: 0x000c, 0x31f: 0x000c, 0x320: 0x000c, 0x321: 0x000c, 0x322: 0x000c, 0x323: 0x000c, + 0x324: 0x000c, 0x325: 0x000c, 0x326: 0x000c, 0x327: 0x000c, 0x328: 0x000c, 0x329: 0x000c, + 0x32a: 0x000c, 0x32b: 0x000c, 0x32c: 0x000c, 0x32d: 0x000c, 0x32e: 0x000c, 0x32f: 0x000c, + 0x330: 0x000c, 0x331: 0x000c, 0x332: 0x000c, 0x333: 0x000c, 0x334: 0x000c, 0x335: 0x000c, + 0x336: 0x000c, 0x337: 0x000c, 0x338: 0x000c, 0x339: 0x000c, 0x33a: 0x000c, 0x33b: 0x000c, + 0x33c: 0x000c, 0x33d: 0x000c, 0x33e: 0x0001, 0x33f: 0x000c, + // Block 0xd, offset 0x340 + 0x340: 0x0001, 0x341: 0x000c, 0x342: 0x000c, 0x343: 0x0001, 0x344: 0x000c, 0x345: 0x000c, + 0x346: 0x0001, 0x347: 0x000c, 0x348: 0x0001, 0x349: 0x0001, 0x34a: 0x0001, 0x34b: 0x0001, + 0x34c: 0x0001, 0x34d: 0x0001, 0x34e: 0x0001, 0x34f: 0x0001, 0x350: 0x0001, 0x351: 0x0001, + 0x352: 0x0001, 0x353: 0x0001, 0x354: 0x0001, 0x355: 0x0001, 0x356: 0x0001, 0x357: 0x0001, + 0x358: 0x0001, 0x359: 0x0001, 0x35a: 0x0001, 0x35b: 0x0001, 0x35c: 0x0001, 0x35d: 0x0001, + 0x35e: 0x0001, 0x35f: 0x0001, 0x360: 0x0001, 0x361: 0x0001, 0x362: 0x0001, 0x363: 0x0001, + 0x364: 0x0001, 0x365: 0x0001, 0x366: 0x0001, 0x367: 0x0001, 0x368: 0x0001, 0x369: 0x0001, + 0x36a: 0x0001, 0x36b: 0x0001, 0x36c: 0x0001, 0x36d: 0x0001, 0x36e: 0x0001, 0x36f: 0x0001, + 0x370: 0x0001, 0x371: 0x0001, 0x372: 0x0001, 0x373: 0x0001, 0x374: 0x0001, 0x375: 0x0001, + 0x376: 0x0001, 0x377: 0x0001, 0x378: 0x0001, 0x379: 0x0001, 0x37a: 0x0001, 0x37b: 0x0001, + 0x37c: 0x0001, 0x37d: 0x0001, 0x37e: 0x0001, 0x37f: 0x0001, + // Block 0xe, offset 0x380 + 0x380: 0x0005, 0x381: 0x0005, 0x382: 0x0005, 0x383: 0x0005, 0x384: 0x0005, 0x385: 0x0005, + 0x386: 0x000a, 0x387: 0x000a, 0x388: 0x000d, 0x389: 0x0004, 0x38a: 0x0004, 0x38b: 0x000d, + 0x38c: 0x0006, 0x38d: 0x000d, 0x38e: 0x000a, 0x38f: 0x000a, 0x390: 0x000c, 0x391: 0x000c, + 0x392: 0x000c, 0x393: 0x000c, 0x394: 0x000c, 0x395: 0x000c, 0x396: 0x000c, 0x397: 0x000c, + 0x398: 0x000c, 0x399: 0x000c, 0x39a: 0x000c, 0x39b: 0x000d, 0x39c: 0x000d, 0x39d: 0x000d, + 0x39e: 0x000d, 0x39f: 0x000d, 0x3a0: 0x000d, 0x3a1: 0x000d, 0x3a2: 0x000d, 0x3a3: 0x000d, + 0x3a4: 0x000d, 0x3a5: 0x000d, 0x3a6: 0x000d, 0x3a7: 0x000d, 0x3a8: 0x000d, 0x3a9: 0x000d, + 0x3aa: 0x000d, 0x3ab: 0x000d, 0x3ac: 0x000d, 0x3ad: 0x000d, 0x3ae: 0x000d, 0x3af: 0x000d, + 0x3b0: 0x000d, 0x3b1: 0x000d, 0x3b2: 0x000d, 0x3b3: 0x000d, 0x3b4: 0x000d, 0x3b5: 0x000d, + 0x3b6: 0x000d, 0x3b7: 0x000d, 0x3b8: 0x000d, 0x3b9: 0x000d, 0x3ba: 0x000d, 0x3bb: 0x000d, + 0x3bc: 0x000d, 0x3bd: 0x000d, 0x3be: 0x000d, 0x3bf: 0x000d, + // Block 0xf, offset 0x3c0 + 0x3c0: 0x000d, 0x3c1: 0x000d, 0x3c2: 0x000d, 0x3c3: 0x000d, 0x3c4: 0x000d, 0x3c5: 0x000d, + 0x3c6: 0x000d, 0x3c7: 0x000d, 0x3c8: 0x000d, 0x3c9: 0x000d, 0x3ca: 0x000d, 0x3cb: 0x000c, + 0x3cc: 0x000c, 0x3cd: 0x000c, 0x3ce: 0x000c, 0x3cf: 0x000c, 0x3d0: 0x000c, 0x3d1: 0x000c, + 0x3d2: 0x000c, 0x3d3: 0x000c, 0x3d4: 0x000c, 0x3d5: 0x000c, 0x3d6: 0x000c, 0x3d7: 0x000c, + 0x3d8: 0x000c, 0x3d9: 0x000c, 0x3da: 0x000c, 0x3db: 0x000c, 0x3dc: 0x000c, 0x3dd: 0x000c, + 0x3de: 0x000c, 0x3df: 0x000c, 0x3e0: 0x0005, 0x3e1: 0x0005, 0x3e2: 0x0005, 0x3e3: 0x0005, + 0x3e4: 0x0005, 0x3e5: 0x0005, 0x3e6: 0x0005, 0x3e7: 0x0005, 0x3e8: 0x0005, 0x3e9: 0x0005, + 0x3ea: 0x0004, 0x3eb: 0x0005, 0x3ec: 0x0005, 0x3ed: 0x000d, 0x3ee: 0x000d, 0x3ef: 0x000d, + 0x3f0: 0x000c, 0x3f1: 0x000d, 0x3f2: 0x000d, 0x3f3: 0x000d, 0x3f4: 0x000d, 0x3f5: 0x000d, + 0x3f6: 0x000d, 0x3f7: 0x000d, 0x3f8: 0x000d, 0x3f9: 0x000d, 0x3fa: 0x000d, 0x3fb: 0x000d, + 0x3fc: 0x000d, 0x3fd: 0x000d, 0x3fe: 0x000d, 0x3ff: 0x000d, + // Block 0x10, offset 0x400 + 0x400: 0x000d, 0x401: 0x000d, 0x402: 0x000d, 0x403: 0x000d, 0x404: 0x000d, 0x405: 0x000d, + 0x406: 0x000d, 0x407: 0x000d, 0x408: 0x000d, 0x409: 0x000d, 0x40a: 0x000d, 0x40b: 0x000d, + 0x40c: 0x000d, 0x40d: 0x000d, 0x40e: 0x000d, 0x40f: 0x000d, 0x410: 0x000d, 0x411: 0x000d, + 0x412: 0x000d, 0x413: 0x000d, 0x414: 0x000d, 0x415: 0x000d, 0x416: 0x000d, 0x417: 0x000d, + 0x418: 0x000d, 0x419: 0x000d, 0x41a: 0x000d, 0x41b: 0x000d, 0x41c: 0x000d, 0x41d: 0x000d, + 0x41e: 0x000d, 0x41f: 0x000d, 0x420: 0x000d, 0x421: 0x000d, 0x422: 0x000d, 0x423: 0x000d, + 0x424: 0x000d, 0x425: 0x000d, 0x426: 0x000d, 0x427: 0x000d, 0x428: 0x000d, 0x429: 0x000d, + 0x42a: 0x000d, 0x42b: 0x000d, 0x42c: 0x000d, 0x42d: 0x000d, 0x42e: 0x000d, 0x42f: 0x000d, + 0x430: 0x000d, 0x431: 0x000d, 0x432: 0x000d, 0x433: 0x000d, 0x434: 0x000d, 0x435: 0x000d, + 0x436: 0x000d, 0x437: 0x000d, 0x438: 0x000d, 0x439: 0x000d, 0x43a: 0x000d, 0x43b: 0x000d, + 0x43c: 0x000d, 0x43d: 0x000d, 0x43e: 0x000d, 0x43f: 0x000d, + // Block 0x11, offset 0x440 + 0x440: 0x000d, 0x441: 0x000d, 0x442: 0x000d, 0x443: 0x000d, 0x444: 0x000d, 0x445: 0x000d, + 0x446: 0x000d, 0x447: 0x000d, 0x448: 0x000d, 0x449: 0x000d, 0x44a: 0x000d, 0x44b: 0x000d, + 0x44c: 0x000d, 0x44d: 0x000d, 0x44e: 0x000d, 0x44f: 0x000d, 0x450: 0x000d, 0x451: 0x000d, + 0x452: 0x000d, 0x453: 0x000d, 0x454: 0x000d, 0x455: 0x000d, 0x456: 0x000c, 0x457: 0x000c, + 0x458: 0x000c, 0x459: 0x000c, 0x45a: 0x000c, 0x45b: 0x000c, 0x45c: 0x000c, 0x45d: 0x0005, + 0x45e: 0x000a, 0x45f: 0x000c, 0x460: 0x000c, 0x461: 0x000c, 0x462: 0x000c, 0x463: 0x000c, + 0x464: 0x000c, 0x465: 0x000d, 0x466: 0x000d, 0x467: 0x000c, 0x468: 0x000c, 0x469: 0x000a, + 0x46a: 0x000c, 0x46b: 0x000c, 0x46c: 0x000c, 0x46d: 0x000c, 0x46e: 0x000d, 0x46f: 0x000d, + 0x470: 0x0002, 0x471: 0x0002, 0x472: 0x0002, 0x473: 0x0002, 0x474: 0x0002, 0x475: 0x0002, + 0x476: 0x0002, 0x477: 0x0002, 0x478: 0x0002, 0x479: 0x0002, 0x47a: 0x000d, 0x47b: 0x000d, + 0x47c: 0x000d, 0x47d: 0x000d, 0x47e: 0x000d, 0x47f: 0x000d, + // Block 0x12, offset 0x480 + 0x480: 0x000d, 0x481: 0x000d, 0x482: 0x000d, 0x483: 0x000d, 0x484: 0x000d, 0x485: 0x000d, + 0x486: 0x000d, 0x487: 0x000d, 0x488: 0x000d, 0x489: 0x000d, 0x48a: 0x000d, 0x48b: 0x000d, + 0x48c: 0x000d, 0x48d: 0x000d, 0x48e: 0x000d, 0x48f: 0x000d, 0x490: 0x000d, 0x491: 0x000c, + 0x492: 0x000d, 0x493: 0x000d, 0x494: 0x000d, 0x495: 0x000d, 0x496: 0x000d, 0x497: 0x000d, + 0x498: 0x000d, 0x499: 0x000d, 0x49a: 0x000d, 0x49b: 0x000d, 0x49c: 0x000d, 0x49d: 0x000d, + 0x49e: 0x000d, 0x49f: 0x000d, 0x4a0: 0x000d, 0x4a1: 0x000d, 0x4a2: 0x000d, 0x4a3: 0x000d, + 0x4a4: 0x000d, 0x4a5: 0x000d, 0x4a6: 0x000d, 0x4a7: 0x000d, 0x4a8: 0x000d, 0x4a9: 0x000d, + 0x4aa: 0x000d, 0x4ab: 0x000d, 0x4ac: 0x000d, 0x4ad: 0x000d, 0x4ae: 0x000d, 0x4af: 0x000d, + 0x4b0: 0x000c, 0x4b1: 0x000c, 0x4b2: 0x000c, 0x4b3: 0x000c, 0x4b4: 0x000c, 0x4b5: 0x000c, + 0x4b6: 0x000c, 0x4b7: 0x000c, 0x4b8: 0x000c, 0x4b9: 0x000c, 0x4ba: 0x000c, 0x4bb: 0x000c, + 0x4bc: 0x000c, 0x4bd: 0x000c, 0x4be: 0x000c, 0x4bf: 0x000c, + // Block 0x13, offset 0x4c0 + 0x4c0: 0x000c, 0x4c1: 0x000c, 0x4c2: 0x000c, 0x4c3: 0x000c, 0x4c4: 0x000c, 0x4c5: 0x000c, + 0x4c6: 0x000c, 0x4c7: 0x000c, 0x4c8: 0x000c, 0x4c9: 0x000c, 0x4ca: 0x000c, 0x4cb: 0x000d, + 0x4cc: 0x000d, 0x4cd: 0x000d, 0x4ce: 0x000d, 0x4cf: 0x000d, 0x4d0: 0x000d, 0x4d1: 0x000d, + 0x4d2: 0x000d, 0x4d3: 0x000d, 0x4d4: 0x000d, 0x4d5: 0x000d, 0x4d6: 0x000d, 0x4d7: 0x000d, + 0x4d8: 0x000d, 0x4d9: 0x000d, 0x4da: 0x000d, 0x4db: 0x000d, 0x4dc: 0x000d, 0x4dd: 0x000d, + 0x4de: 0x000d, 0x4df: 0x000d, 0x4e0: 0x000d, 0x4e1: 0x000d, 0x4e2: 0x000d, 0x4e3: 0x000d, + 0x4e4: 0x000d, 0x4e5: 0x000d, 0x4e6: 0x000d, 0x4e7: 0x000d, 0x4e8: 0x000d, 0x4e9: 0x000d, + 0x4ea: 0x000d, 0x4eb: 0x000d, 0x4ec: 0x000d, 0x4ed: 0x000d, 0x4ee: 0x000d, 0x4ef: 0x000d, + 0x4f0: 0x000d, 0x4f1: 0x000d, 0x4f2: 0x000d, 0x4f3: 0x000d, 0x4f4: 0x000d, 0x4f5: 0x000d, + 0x4f6: 0x000d, 0x4f7: 0x000d, 0x4f8: 0x000d, 0x4f9: 0x000d, 0x4fa: 0x000d, 0x4fb: 0x000d, + 0x4fc: 0x000d, 0x4fd: 0x000d, 0x4fe: 0x000d, 0x4ff: 0x000d, + // Block 0x14, offset 0x500 + 0x500: 0x000d, 0x501: 0x000d, 0x502: 0x000d, 0x503: 0x000d, 0x504: 0x000d, 0x505: 0x000d, + 0x506: 0x000d, 0x507: 0x000d, 0x508: 0x000d, 0x509: 0x000d, 0x50a: 0x000d, 0x50b: 0x000d, + 0x50c: 0x000d, 0x50d: 0x000d, 0x50e: 0x000d, 0x50f: 0x000d, 0x510: 0x000d, 0x511: 0x000d, + 0x512: 0x000d, 0x513: 0x000d, 0x514: 0x000d, 0x515: 0x000d, 0x516: 0x000d, 0x517: 0x000d, + 0x518: 0x000d, 0x519: 0x000d, 0x51a: 0x000d, 0x51b: 0x000d, 0x51c: 0x000d, 0x51d: 0x000d, + 0x51e: 0x000d, 0x51f: 0x000d, 0x520: 0x000d, 0x521: 0x000d, 0x522: 0x000d, 0x523: 0x000d, + 0x524: 0x000d, 0x525: 0x000d, 0x526: 0x000c, 0x527: 0x000c, 0x528: 0x000c, 0x529: 0x000c, + 0x52a: 0x000c, 0x52b: 0x000c, 0x52c: 0x000c, 0x52d: 0x000c, 0x52e: 0x000c, 0x52f: 0x000c, + 0x530: 0x000c, 0x531: 0x000d, 0x532: 0x000d, 0x533: 0x000d, 0x534: 0x000d, 0x535: 0x000d, + 0x536: 0x000d, 0x537: 0x000d, 0x538: 0x000d, 0x539: 0x000d, 0x53a: 0x000d, 0x53b: 0x000d, + 0x53c: 0x000d, 0x53d: 0x000d, 0x53e: 0x000d, 0x53f: 0x000d, + // Block 0x15, offset 0x540 + 0x540: 0x0001, 0x541: 0x0001, 0x542: 0x0001, 0x543: 0x0001, 0x544: 0x0001, 0x545: 0x0001, + 0x546: 0x0001, 0x547: 0x0001, 0x548: 0x0001, 0x549: 0x0001, 0x54a: 0x0001, 0x54b: 0x0001, + 0x54c: 0x0001, 0x54d: 0x0001, 0x54e: 0x0001, 0x54f: 0x0001, 0x550: 0x0001, 0x551: 0x0001, + 0x552: 0x0001, 0x553: 0x0001, 0x554: 0x0001, 0x555: 0x0001, 0x556: 0x0001, 0x557: 0x0001, + 0x558: 0x0001, 0x559: 0x0001, 0x55a: 0x0001, 0x55b: 0x0001, 0x55c: 0x0001, 0x55d: 0x0001, + 0x55e: 0x0001, 0x55f: 0x0001, 0x560: 0x0001, 0x561: 0x0001, 0x562: 0x0001, 0x563: 0x0001, + 0x564: 0x0001, 0x565: 0x0001, 0x566: 0x0001, 0x567: 0x0001, 0x568: 0x0001, 0x569: 0x0001, + 0x56a: 0x0001, 0x56b: 0x000c, 0x56c: 0x000c, 0x56d: 0x000c, 0x56e: 0x000c, 0x56f: 0x000c, + 0x570: 0x000c, 0x571: 0x000c, 0x572: 0x000c, 0x573: 0x000c, 0x574: 0x0001, 0x575: 0x0001, + 0x576: 0x000a, 0x577: 0x000a, 0x578: 0x000a, 0x579: 0x000a, 0x57a: 0x0001, 0x57b: 0x0001, + 0x57c: 0x0001, 0x57d: 0x000c, 0x57e: 0x0001, 0x57f: 0x0001, + // Block 0x16, offset 0x580 + 0x580: 0x0001, 0x581: 0x0001, 0x582: 0x0001, 0x583: 0x0001, 0x584: 0x0001, 0x585: 0x0001, + 0x586: 0x0001, 0x587: 0x0001, 0x588: 0x0001, 0x589: 0x0001, 0x58a: 0x0001, 0x58b: 0x0001, + 0x58c: 0x0001, 0x58d: 0x0001, 0x58e: 0x0001, 0x58f: 0x0001, 0x590: 0x0001, 0x591: 0x0001, + 0x592: 0x0001, 0x593: 0x0001, 0x594: 0x0001, 0x595: 0x0001, 0x596: 0x000c, 0x597: 0x000c, + 0x598: 0x000c, 0x599: 0x000c, 0x59a: 0x0001, 0x59b: 0x000c, 0x59c: 0x000c, 0x59d: 0x000c, + 0x59e: 0x000c, 0x59f: 0x000c, 0x5a0: 0x000c, 0x5a1: 0x000c, 0x5a2: 0x000c, 0x5a3: 0x000c, + 0x5a4: 0x0001, 0x5a5: 0x000c, 0x5a6: 0x000c, 0x5a7: 0x000c, 0x5a8: 0x0001, 0x5a9: 0x000c, + 0x5aa: 0x000c, 0x5ab: 0x000c, 0x5ac: 0x000c, 0x5ad: 0x000c, 0x5ae: 0x0001, 0x5af: 0x0001, + 0x5b0: 0x0001, 0x5b1: 0x0001, 0x5b2: 0x0001, 0x5b3: 0x0001, 0x5b4: 0x0001, 0x5b5: 0x0001, + 0x5b6: 0x0001, 0x5b7: 0x0001, 0x5b8: 0x0001, 0x5b9: 0x0001, 0x5ba: 0x0001, 0x5bb: 0x0001, + 0x5bc: 0x0001, 0x5bd: 0x0001, 0x5be: 0x0001, 0x5bf: 0x0001, + // Block 0x17, offset 0x5c0 + 0x5c0: 0x0001, 0x5c1: 0x0001, 0x5c2: 0x0001, 0x5c3: 0x0001, 0x5c4: 0x0001, 0x5c5: 0x0001, + 0x5c6: 0x0001, 0x5c7: 0x0001, 0x5c8: 0x0001, 0x5c9: 0x0001, 0x5ca: 0x0001, 0x5cb: 0x0001, + 0x5cc: 0x0001, 0x5cd: 0x0001, 0x5ce: 0x0001, 0x5cf: 0x0001, 0x5d0: 0x0001, 0x5d1: 0x0001, + 0x5d2: 0x0001, 0x5d3: 0x0001, 0x5d4: 0x0001, 0x5d5: 0x0001, 0x5d6: 0x0001, 0x5d7: 0x0001, + 0x5d8: 0x0001, 0x5d9: 0x000c, 0x5da: 0x000c, 0x5db: 0x000c, 0x5dc: 0x0001, 0x5dd: 0x0001, + 0x5de: 0x0001, 0x5df: 0x0001, 0x5e0: 0x000d, 0x5e1: 0x000d, 0x5e2: 0x000d, 0x5e3: 0x000d, + 0x5e4: 0x000d, 0x5e5: 0x000d, 0x5e6: 0x000d, 0x5e7: 0x000d, 0x5e8: 0x000d, 0x5e9: 0x000d, + 0x5ea: 0x000d, 0x5eb: 0x000d, 0x5ec: 0x000d, 0x5ed: 0x000d, 0x5ee: 0x000d, 0x5ef: 0x000d, + 0x5f0: 0x0001, 0x5f1: 0x0001, 0x5f2: 0x0001, 0x5f3: 0x0001, 0x5f4: 0x0001, 0x5f5: 0x0001, + 0x5f6: 0x0001, 0x5f7: 0x0001, 0x5f8: 0x0001, 0x5f9: 0x0001, 0x5fa: 0x0001, 0x5fb: 0x0001, + 0x5fc: 0x0001, 0x5fd: 0x0001, 0x5fe: 0x0001, 0x5ff: 0x0001, + // Block 0x18, offset 0x600 + 0x600: 0x0001, 0x601: 0x0001, 0x602: 0x0001, 0x603: 0x0001, 0x604: 0x0001, 0x605: 0x0001, + 0x606: 0x0001, 0x607: 0x0001, 0x608: 0x0001, 0x609: 0x0001, 0x60a: 0x0001, 0x60b: 0x0001, + 0x60c: 0x0001, 0x60d: 0x0001, 0x60e: 0x0001, 0x60f: 0x0001, 0x610: 0x0001, 0x611: 0x0001, + 0x612: 0x0001, 0x613: 0x0001, 0x614: 0x0001, 0x615: 0x0001, 0x616: 0x0001, 0x617: 0x0001, + 0x618: 0x0001, 0x619: 0x0001, 0x61a: 0x0001, 0x61b: 0x0001, 0x61c: 0x0001, 0x61d: 0x0001, + 0x61e: 0x0001, 0x61f: 0x0001, 0x620: 0x000d, 0x621: 0x000d, 0x622: 0x000d, 0x623: 0x000d, + 0x624: 0x000d, 0x625: 0x000d, 0x626: 0x000d, 0x627: 0x000d, 0x628: 0x000d, 0x629: 0x000d, + 0x62a: 0x000d, 0x62b: 0x000d, 0x62c: 0x000d, 0x62d: 0x000d, 0x62e: 0x000d, 0x62f: 0x000d, + 0x630: 0x000d, 0x631: 0x000d, 0x632: 0x000d, 0x633: 0x000d, 0x634: 0x000d, 0x635: 0x000d, + 0x636: 0x000d, 0x637: 0x000d, 0x638: 0x000d, 0x639: 0x000d, 0x63a: 0x000d, 0x63b: 0x000d, + 0x63c: 0x000d, 0x63d: 0x000d, 0x63e: 0x000d, 0x63f: 0x000d, + // Block 0x19, offset 0x640 + 0x640: 0x000d, 0x641: 0x000d, 0x642: 0x000d, 0x643: 0x000d, 0x644: 0x000d, 0x645: 0x000d, + 0x646: 0x000d, 0x647: 0x000d, 0x648: 0x000d, 0x649: 0x000d, 0x64a: 0x000d, 0x64b: 0x000d, + 0x64c: 0x000d, 0x64d: 0x000d, 0x64e: 0x000d, 0x64f: 0x000d, 0x650: 0x000d, 0x651: 0x000d, + 0x652: 0x000d, 0x653: 0x000c, 0x654: 0x000c, 0x655: 0x000c, 0x656: 0x000c, 0x657: 0x000c, + 0x658: 0x000c, 0x659: 0x000c, 0x65a: 0x000c, 0x65b: 0x000c, 0x65c: 0x000c, 0x65d: 0x000c, + 0x65e: 0x000c, 0x65f: 0x000c, 0x660: 0x000c, 0x661: 0x000c, 0x662: 0x0005, 0x663: 0x000c, + 0x664: 0x000c, 0x665: 0x000c, 0x666: 0x000c, 0x667: 0x000c, 0x668: 0x000c, 0x669: 0x000c, + 0x66a: 0x000c, 0x66b: 0x000c, 0x66c: 0x000c, 0x66d: 0x000c, 0x66e: 0x000c, 0x66f: 0x000c, + 0x670: 0x000c, 0x671: 0x000c, 0x672: 0x000c, 0x673: 0x000c, 0x674: 0x000c, 0x675: 0x000c, + 0x676: 0x000c, 0x677: 0x000c, 0x678: 0x000c, 0x679: 0x000c, 0x67a: 0x000c, 0x67b: 0x000c, + 0x67c: 0x000c, 0x67d: 0x000c, 0x67e: 0x000c, 0x67f: 0x000c, + // Block 0x1a, offset 0x680 + 0x680: 0x000c, 0x681: 0x000c, 0x682: 0x000c, + 0x6ba: 0x000c, + 0x6bc: 0x000c, + // Block 0x1b, offset 0x6c0 + 0x6c1: 0x000c, 0x6c2: 0x000c, 0x6c3: 0x000c, 0x6c4: 0x000c, 0x6c5: 0x000c, + 0x6c6: 0x000c, 0x6c7: 0x000c, 0x6c8: 0x000c, + 0x6cd: 0x000c, 0x6d1: 0x000c, + 0x6d2: 0x000c, 0x6d3: 0x000c, 0x6d4: 0x000c, 0x6d5: 0x000c, 0x6d6: 0x000c, 0x6d7: 0x000c, + 0x6e2: 0x000c, 0x6e3: 0x000c, + // Block 0x1c, offset 0x700 + 0x701: 0x000c, + 0x73c: 0x000c, + // Block 0x1d, offset 0x740 + 0x741: 0x000c, 0x742: 0x000c, 0x743: 0x000c, 0x744: 0x000c, + 0x74d: 0x000c, + 0x762: 0x000c, 0x763: 0x000c, + 0x772: 0x0004, 0x773: 0x0004, + 0x77b: 0x0004, + 0x77e: 0x000c, + // Block 0x1e, offset 0x780 + 0x781: 0x000c, 0x782: 0x000c, + 0x7bc: 0x000c, + // Block 0x1f, offset 0x7c0 + 0x7c1: 0x000c, 0x7c2: 0x000c, + 0x7c7: 0x000c, 0x7c8: 0x000c, 0x7cb: 0x000c, + 0x7cc: 0x000c, 0x7cd: 0x000c, 0x7d1: 0x000c, + 0x7f0: 0x000c, 0x7f1: 0x000c, 0x7f5: 0x000c, + // Block 0x20, offset 0x800 + 0x801: 0x000c, 0x802: 0x000c, 0x803: 0x000c, 0x804: 0x000c, 0x805: 0x000c, + 0x807: 0x000c, 0x808: 0x000c, + 0x80d: 0x000c, + 0x822: 0x000c, 0x823: 0x000c, + 0x831: 0x0004, + 0x83a: 0x000c, 0x83b: 0x000c, + 0x83c: 0x000c, 0x83d: 0x000c, 0x83e: 0x000c, 0x83f: 0x000c, + // Block 0x21, offset 0x840 + 0x841: 0x000c, + 0x87c: 0x000c, 0x87f: 0x000c, + // Block 0x22, offset 0x880 + 0x881: 0x000c, 0x882: 0x000c, 0x883: 0x000c, 0x884: 0x000c, + 0x88d: 0x000c, + 0x896: 0x000c, + 0x8a2: 0x000c, 0x8a3: 0x000c, + // Block 0x23, offset 0x8c0 + 0x8c2: 0x000c, + // Block 0x24, offset 0x900 + 0x900: 0x000c, + 0x90d: 0x000c, + 0x933: 0x000a, 0x934: 0x000a, 0x935: 0x000a, + 0x936: 0x000a, 0x937: 0x000a, 0x938: 0x000a, 0x939: 0x0004, 0x93a: 0x000a, + // Block 0x25, offset 0x940 + 0x940: 0x000c, 0x944: 0x000c, + 0x97e: 0x000c, 0x97f: 0x000c, + // Block 0x26, offset 0x980 + 0x980: 0x000c, + 0x986: 0x000c, 0x987: 0x000c, 0x988: 0x000c, 0x98a: 0x000c, 0x98b: 0x000c, + 0x98c: 0x000c, 0x98d: 0x000c, + 0x995: 0x000c, 0x996: 0x000c, + 0x9a2: 0x000c, 0x9a3: 0x000c, + 0x9b8: 0x000a, 0x9b9: 0x000a, 0x9ba: 0x000a, 0x9bb: 0x000a, + 0x9bc: 0x000a, 0x9bd: 0x000a, 0x9be: 0x000a, + // Block 0x27, offset 0x9c0 + 0x9cc: 0x000c, 0x9cd: 0x000c, + 0x9e2: 0x000c, 0x9e3: 0x000c, + // Block 0x28, offset 0xa00 + 0xa00: 0x000c, 0xa01: 0x000c, + 0xa3b: 0x000c, + 0xa3c: 0x000c, + // Block 0x29, offset 0xa40 + 0xa41: 0x000c, 0xa42: 0x000c, 0xa43: 0x000c, 0xa44: 0x000c, + 0xa4d: 0x000c, + 0xa62: 0x000c, 0xa63: 0x000c, + // Block 0x2a, offset 0xa80 + 0xa8a: 0x000c, + 0xa92: 0x000c, 0xa93: 0x000c, 0xa94: 0x000c, 0xa96: 0x000c, + // Block 0x2b, offset 0xac0 + 0xaf1: 0x000c, 0xaf4: 0x000c, 0xaf5: 0x000c, + 0xaf6: 0x000c, 0xaf7: 0x000c, 0xaf8: 0x000c, 0xaf9: 0x000c, 0xafa: 0x000c, + 0xaff: 0x0004, + // Block 0x2c, offset 0xb00 + 0xb07: 0x000c, 0xb08: 0x000c, 0xb09: 0x000c, 0xb0a: 0x000c, 0xb0b: 0x000c, + 0xb0c: 0x000c, 0xb0d: 0x000c, 0xb0e: 0x000c, + // Block 0x2d, offset 0xb40 + 0xb71: 0x000c, 0xb74: 0x000c, 0xb75: 0x000c, + 0xb76: 0x000c, 0xb77: 0x000c, 0xb78: 0x000c, 0xb79: 0x000c, 0xb7a: 0x000c, 0xb7b: 0x000c, + 0xb7c: 0x000c, + // Block 0x2e, offset 0xb80 + 0xb88: 0x000c, 0xb89: 0x000c, 0xb8a: 0x000c, 0xb8b: 0x000c, + 0xb8c: 0x000c, 0xb8d: 0x000c, + // Block 0x2f, offset 0xbc0 + 0xbd8: 0x000c, 0xbd9: 0x000c, + 0xbf5: 0x000c, + 0xbf7: 0x000c, 0xbf9: 0x000c, 0xbfa: 0x003a, 0xbfb: 0x002a, + 0xbfc: 0x003a, 0xbfd: 0x002a, + // Block 0x30, offset 0xc00 + 0xc31: 0x000c, 0xc32: 0x000c, 0xc33: 0x000c, 0xc34: 0x000c, 0xc35: 0x000c, + 0xc36: 0x000c, 0xc37: 0x000c, 0xc38: 0x000c, 0xc39: 0x000c, 0xc3a: 0x000c, 0xc3b: 0x000c, + 0xc3c: 0x000c, 0xc3d: 0x000c, 0xc3e: 0x000c, + // Block 0x31, offset 0xc40 + 0xc40: 0x000c, 0xc41: 0x000c, 0xc42: 0x000c, 0xc43: 0x000c, 0xc44: 0x000c, + 0xc46: 0x000c, 0xc47: 0x000c, + 0xc4d: 0x000c, 0xc4e: 0x000c, 0xc4f: 0x000c, 0xc50: 0x000c, 0xc51: 0x000c, + 0xc52: 0x000c, 0xc53: 0x000c, 0xc54: 0x000c, 0xc55: 0x000c, 0xc56: 0x000c, 0xc57: 0x000c, + 0xc59: 0x000c, 0xc5a: 0x000c, 0xc5b: 0x000c, 0xc5c: 0x000c, 0xc5d: 0x000c, + 0xc5e: 0x000c, 0xc5f: 0x000c, 0xc60: 0x000c, 0xc61: 0x000c, 0xc62: 0x000c, 0xc63: 0x000c, + 0xc64: 0x000c, 0xc65: 0x000c, 0xc66: 0x000c, 0xc67: 0x000c, 0xc68: 0x000c, 0xc69: 0x000c, + 0xc6a: 0x000c, 0xc6b: 0x000c, 0xc6c: 0x000c, 0xc6d: 0x000c, 0xc6e: 0x000c, 0xc6f: 0x000c, + 0xc70: 0x000c, 0xc71: 0x000c, 0xc72: 0x000c, 0xc73: 0x000c, 0xc74: 0x000c, 0xc75: 0x000c, + 0xc76: 0x000c, 0xc77: 0x000c, 0xc78: 0x000c, 0xc79: 0x000c, 0xc7a: 0x000c, 0xc7b: 0x000c, + 0xc7c: 0x000c, + // Block 0x32, offset 0xc80 + 0xc86: 0x000c, + // Block 0x33, offset 0xcc0 + 0xced: 0x000c, 0xcee: 0x000c, 0xcef: 0x000c, + 0xcf0: 0x000c, 0xcf2: 0x000c, 0xcf3: 0x000c, 0xcf4: 0x000c, 0xcf5: 0x000c, + 0xcf6: 0x000c, 0xcf7: 0x000c, 0xcf9: 0x000c, 0xcfa: 0x000c, + 0xcfd: 0x000c, 0xcfe: 0x000c, + // Block 0x34, offset 0xd00 + 0xd18: 0x000c, 0xd19: 0x000c, + 0xd1e: 0x000c, 0xd1f: 0x000c, 0xd20: 0x000c, + 0xd31: 0x000c, 0xd32: 0x000c, 0xd33: 0x000c, 0xd34: 0x000c, + // Block 0x35, offset 0xd40 + 0xd42: 0x000c, 0xd45: 0x000c, + 0xd46: 0x000c, + 0xd4d: 0x000c, + 0xd5d: 0x000c, + // Block 0x36, offset 0xd80 + 0xd9d: 0x000c, + 0xd9e: 0x000c, 0xd9f: 0x000c, + // Block 0x37, offset 0xdc0 + 0xdd0: 0x000a, 0xdd1: 0x000a, + 0xdd2: 0x000a, 0xdd3: 0x000a, 0xdd4: 0x000a, 0xdd5: 0x000a, 0xdd6: 0x000a, 0xdd7: 0x000a, + 0xdd8: 0x000a, 0xdd9: 0x000a, + // Block 0x38, offset 0xe00 + 0xe00: 0x000a, + // Block 0x39, offset 0xe40 + 0xe40: 0x0009, + 0xe5b: 0x007a, 0xe5c: 0x006a, + // Block 0x3a, offset 0xe80 + 0xe92: 0x000c, 0xe93: 0x000c, 0xe94: 0x000c, + 0xeb2: 0x000c, 0xeb3: 0x000c, 0xeb4: 0x000c, + // Block 0x3b, offset 0xec0 + 0xed2: 0x000c, 0xed3: 0x000c, + 0xef2: 0x000c, 0xef3: 0x000c, + // Block 0x3c, offset 0xf00 + 0xf34: 0x000c, 0xf35: 0x000c, + 0xf37: 0x000c, 0xf38: 0x000c, 0xf39: 0x000c, 0xf3a: 0x000c, 0xf3b: 0x000c, + 0xf3c: 0x000c, 0xf3d: 0x000c, + // Block 0x3d, offset 0xf40 + 0xf46: 0x000c, 0xf49: 0x000c, 0xf4a: 0x000c, 0xf4b: 0x000c, + 0xf4c: 0x000c, 0xf4d: 0x000c, 0xf4e: 0x000c, 0xf4f: 0x000c, 0xf50: 0x000c, 0xf51: 0x000c, + 0xf52: 0x000c, 0xf53: 0x000c, + 0xf5b: 0x0004, 0xf5d: 0x000c, + 0xf70: 0x000a, 0xf71: 0x000a, 0xf72: 0x000a, 0xf73: 0x000a, 0xf74: 0x000a, 0xf75: 0x000a, + 0xf76: 0x000a, 0xf77: 0x000a, 0xf78: 0x000a, 0xf79: 0x000a, + // Block 0x3e, offset 0xf80 + 0xf80: 0x000a, 0xf81: 0x000a, 0xf82: 0x000a, 0xf83: 0x000a, 0xf84: 0x000a, 0xf85: 0x000a, + 0xf86: 0x000a, 0xf87: 0x000a, 0xf88: 0x000a, 0xf89: 0x000a, 0xf8a: 0x000a, 0xf8b: 0x000c, + 0xf8c: 0x000c, 0xf8d: 0x000c, 0xf8e: 0x000b, + // Block 0x3f, offset 0xfc0 + 0xfc5: 0x000c, + 0xfc6: 0x000c, + 0xfe9: 0x000c, + // Block 0x40, offset 0x1000 + 0x1020: 0x000c, 0x1021: 0x000c, 0x1022: 0x000c, + 0x1027: 0x000c, 0x1028: 0x000c, + 0x1032: 0x000c, + 0x1039: 0x000c, 0x103a: 0x000c, 0x103b: 0x000c, + // Block 0x41, offset 0x1040 + 0x1040: 0x000a, 0x1044: 0x000a, 0x1045: 0x000a, + // Block 0x42, offset 0x1080 + 0x109e: 0x000a, 0x109f: 0x000a, 0x10a0: 0x000a, 0x10a1: 0x000a, 0x10a2: 0x000a, 0x10a3: 0x000a, + 0x10a4: 0x000a, 0x10a5: 0x000a, 0x10a6: 0x000a, 0x10a7: 0x000a, 0x10a8: 0x000a, 0x10a9: 0x000a, + 0x10aa: 0x000a, 0x10ab: 0x000a, 0x10ac: 0x000a, 0x10ad: 0x000a, 0x10ae: 0x000a, 0x10af: 0x000a, + 0x10b0: 0x000a, 0x10b1: 0x000a, 0x10b2: 0x000a, 0x10b3: 0x000a, 0x10b4: 0x000a, 0x10b5: 0x000a, + 0x10b6: 0x000a, 0x10b7: 0x000a, 0x10b8: 0x000a, 0x10b9: 0x000a, 0x10ba: 0x000a, 0x10bb: 0x000a, + 0x10bc: 0x000a, 0x10bd: 0x000a, 0x10be: 0x000a, 0x10bf: 0x000a, + // Block 0x43, offset 0x10c0 + 0x10d7: 0x000c, + 0x10d8: 0x000c, 0x10db: 0x000c, + // Block 0x44, offset 0x1100 + 0x1116: 0x000c, + 0x1118: 0x000c, 0x1119: 0x000c, 0x111a: 0x000c, 0x111b: 0x000c, 0x111c: 0x000c, 0x111d: 0x000c, + 0x111e: 0x000c, 0x1120: 0x000c, 0x1122: 0x000c, + 0x1125: 0x000c, 0x1126: 0x000c, 0x1127: 0x000c, 0x1128: 0x000c, 0x1129: 0x000c, + 0x112a: 0x000c, 0x112b: 0x000c, 0x112c: 0x000c, + 0x1133: 0x000c, 0x1134: 0x000c, 0x1135: 0x000c, + 0x1136: 0x000c, 0x1137: 0x000c, 0x1138: 0x000c, 0x1139: 0x000c, 0x113a: 0x000c, 0x113b: 0x000c, + 0x113c: 0x000c, 0x113f: 0x000c, + // Block 0x45, offset 0x1140 + 0x1170: 0x000c, 0x1171: 0x000c, 0x1172: 0x000c, 0x1173: 0x000c, 0x1174: 0x000c, 0x1175: 0x000c, + 0x1176: 0x000c, 0x1177: 0x000c, 0x1178: 0x000c, 0x1179: 0x000c, 0x117a: 0x000c, 0x117b: 0x000c, + 0x117c: 0x000c, 0x117d: 0x000c, 0x117e: 0x000c, + // Block 0x46, offset 0x1180 + 0x1180: 0x000c, 0x1181: 0x000c, 0x1182: 0x000c, 0x1183: 0x000c, + 0x11b4: 0x000c, + 0x11b6: 0x000c, 0x11b7: 0x000c, 0x11b8: 0x000c, 0x11b9: 0x000c, 0x11ba: 0x000c, + 0x11bc: 0x000c, + // Block 0x47, offset 0x11c0 + 0x11c2: 0x000c, + 0x11eb: 0x000c, 0x11ec: 0x000c, 0x11ed: 0x000c, 0x11ee: 0x000c, 0x11ef: 0x000c, + 0x11f0: 0x000c, 0x11f1: 0x000c, 0x11f2: 0x000c, 0x11f3: 0x000c, + // Block 0x48, offset 0x1200 + 0x1200: 0x000c, 0x1201: 0x000c, + 0x1222: 0x000c, 0x1223: 0x000c, + 0x1224: 0x000c, 0x1225: 0x000c, 0x1228: 0x000c, 0x1229: 0x000c, + 0x122b: 0x000c, 0x122c: 0x000c, 0x122d: 0x000c, + // Block 0x49, offset 0x1240 + 0x1266: 0x000c, 0x1268: 0x000c, 0x1269: 0x000c, + 0x126d: 0x000c, 0x126f: 0x000c, + 0x1270: 0x000c, 0x1271: 0x000c, + // Block 0x4a, offset 0x1280 + 0x12ac: 0x000c, 0x12ad: 0x000c, 0x12ae: 0x000c, 0x12af: 0x000c, + 0x12b0: 0x000c, 0x12b1: 0x000c, 0x12b2: 0x000c, 0x12b3: 0x000c, + 0x12b6: 0x000c, 0x12b7: 0x000c, + // Block 0x4b, offset 0x12c0 + 0x12d0: 0x000c, 0x12d1: 0x000c, + 0x12d2: 0x000c, 0x12d4: 0x000c, 0x12d5: 0x000c, 0x12d6: 0x000c, 0x12d7: 0x000c, + 0x12d8: 0x000c, 0x12d9: 0x000c, 0x12da: 0x000c, 0x12db: 0x000c, 0x12dc: 0x000c, 0x12dd: 0x000c, + 0x12de: 0x000c, 0x12df: 0x000c, 0x12e0: 0x000c, 0x12e2: 0x000c, 0x12e3: 0x000c, + 0x12e4: 0x000c, 0x12e5: 0x000c, 0x12e6: 0x000c, 0x12e7: 0x000c, 0x12e8: 0x000c, + 0x12ed: 0x000c, + 0x12f4: 0x000c, + 0x12f8: 0x000c, 0x12f9: 0x000c, + // Block 0x4c, offset 0x1300 + 0x1300: 0x000c, 0x1301: 0x000c, 0x1302: 0x000c, 0x1303: 0x000c, 0x1304: 0x000c, 0x1305: 0x000c, + 0x1306: 0x000c, 0x1307: 0x000c, 0x1308: 0x000c, 0x1309: 0x000c, 0x130a: 0x000c, 0x130b: 0x000c, + 0x130c: 0x000c, 0x130d: 0x000c, 0x130e: 0x000c, 0x130f: 0x000c, 0x1310: 0x000c, 0x1311: 0x000c, + 0x1312: 0x000c, 0x1313: 0x000c, 0x1314: 0x000c, 0x1315: 0x000c, 0x1316: 0x000c, 0x1317: 0x000c, + 0x1318: 0x000c, 0x1319: 0x000c, 0x131a: 0x000c, 0x131b: 0x000c, 0x131c: 0x000c, 0x131d: 0x000c, + 0x131e: 0x000c, 0x131f: 0x000c, 0x1320: 0x000c, 0x1321: 0x000c, 0x1322: 0x000c, 0x1323: 0x000c, + 0x1324: 0x000c, 0x1325: 0x000c, 0x1326: 0x000c, 0x1327: 0x000c, 0x1328: 0x000c, 0x1329: 0x000c, + 0x132a: 0x000c, 0x132b: 0x000c, 0x132c: 0x000c, 0x132d: 0x000c, 0x132e: 0x000c, 0x132f: 0x000c, + 0x1330: 0x000c, 0x1331: 0x000c, 0x1332: 0x000c, 0x1333: 0x000c, 0x1334: 0x000c, 0x1335: 0x000c, + 0x1336: 0x000c, 0x1337: 0x000c, 0x1338: 0x000c, 0x1339: 0x000c, 0x133b: 0x000c, + 0x133c: 0x000c, 0x133d: 0x000c, 0x133e: 0x000c, 0x133f: 0x000c, + // Block 0x4d, offset 0x1340 + 0x137d: 0x000a, 0x137f: 0x000a, + // Block 0x4e, offset 0x1380 + 0x1380: 0x000a, 0x1381: 0x000a, + 0x138d: 0x000a, 0x138e: 0x000a, 0x138f: 0x000a, + 0x139d: 0x000a, + 0x139e: 0x000a, 0x139f: 0x000a, + 0x13ad: 0x000a, 0x13ae: 0x000a, 0x13af: 0x000a, + 0x13bd: 0x000a, 0x13be: 0x000a, + // Block 0x4f, offset 0x13c0 + 0x13c0: 0x0009, 0x13c1: 0x0009, 0x13c2: 0x0009, 0x13c3: 0x0009, 0x13c4: 0x0009, 0x13c5: 0x0009, + 0x13c6: 0x0009, 0x13c7: 0x0009, 0x13c8: 0x0009, 0x13c9: 0x0009, 0x13ca: 0x0009, 0x13cb: 0x000b, + 0x13cc: 0x000b, 0x13cd: 0x000b, 0x13cf: 0x0001, 0x13d0: 0x000a, 0x13d1: 0x000a, + 0x13d2: 0x000a, 0x13d3: 0x000a, 0x13d4: 0x000a, 0x13d5: 0x000a, 0x13d6: 0x000a, 0x13d7: 0x000a, + 0x13d8: 0x000a, 0x13d9: 0x000a, 0x13da: 0x000a, 0x13db: 0x000a, 0x13dc: 0x000a, 0x13dd: 0x000a, + 0x13de: 0x000a, 0x13df: 0x000a, 0x13e0: 0x000a, 0x13e1: 0x000a, 0x13e2: 0x000a, 0x13e3: 0x000a, + 0x13e4: 0x000a, 0x13e5: 0x000a, 0x13e6: 0x000a, 0x13e7: 0x000a, 0x13e8: 0x0009, 0x13e9: 0x0007, + 0x13ea: 0x000e, 0x13eb: 0x000e, 0x13ec: 0x000e, 0x13ed: 0x000e, 0x13ee: 0x000e, 0x13ef: 0x0006, + 0x13f0: 0x0004, 0x13f1: 0x0004, 0x13f2: 0x0004, 0x13f3: 0x0004, 0x13f4: 0x0004, 0x13f5: 0x000a, + 0x13f6: 0x000a, 0x13f7: 0x000a, 0x13f8: 0x000a, 0x13f9: 0x000a, 0x13fa: 0x000a, 0x13fb: 0x000a, + 0x13fc: 0x000a, 0x13fd: 0x000a, 0x13fe: 0x000a, 0x13ff: 0x000a, + // Block 0x50, offset 0x1400 + 0x1400: 0x000a, 0x1401: 0x000a, 0x1402: 0x000a, 0x1403: 0x000a, 0x1404: 0x0006, 0x1405: 0x009a, + 0x1406: 0x008a, 0x1407: 0x000a, 0x1408: 0x000a, 0x1409: 0x000a, 0x140a: 0x000a, 0x140b: 0x000a, + 0x140c: 0x000a, 0x140d: 0x000a, 0x140e: 0x000a, 0x140f: 0x000a, 0x1410: 0x000a, 0x1411: 0x000a, + 0x1412: 0x000a, 0x1413: 0x000a, 0x1414: 0x000a, 0x1415: 0x000a, 0x1416: 0x000a, 0x1417: 0x000a, + 0x1418: 0x000a, 0x1419: 0x000a, 0x141a: 0x000a, 0x141b: 0x000a, 0x141c: 0x000a, 0x141d: 0x000a, + 0x141e: 0x000a, 0x141f: 0x0009, 0x1420: 0x000b, 0x1421: 0x000b, 0x1422: 0x000b, 0x1423: 0x000b, + 0x1424: 0x000b, 0x1425: 0x000b, 0x1426: 0x000e, 0x1427: 0x000e, 0x1428: 0x000e, 0x1429: 0x000e, + 0x142a: 0x000b, 0x142b: 0x000b, 0x142c: 0x000b, 0x142d: 0x000b, 0x142e: 0x000b, 0x142f: 0x000b, + 0x1430: 0x0002, 0x1434: 0x0002, 0x1435: 0x0002, + 0x1436: 0x0002, 0x1437: 0x0002, 0x1438: 0x0002, 0x1439: 0x0002, 0x143a: 0x0003, 0x143b: 0x0003, + 0x143c: 0x000a, 0x143d: 0x009a, 0x143e: 0x008a, + // Block 0x51, offset 0x1440 + 0x1440: 0x0002, 0x1441: 0x0002, 0x1442: 0x0002, 0x1443: 0x0002, 0x1444: 0x0002, 0x1445: 0x0002, + 0x1446: 0x0002, 0x1447: 0x0002, 0x1448: 0x0002, 0x1449: 0x0002, 0x144a: 0x0003, 0x144b: 0x0003, + 0x144c: 0x000a, 0x144d: 0x009a, 0x144e: 0x008a, + 0x1460: 0x0004, 0x1461: 0x0004, 0x1462: 0x0004, 0x1463: 0x0004, + 0x1464: 0x0004, 0x1465: 0x0004, 0x1466: 0x0004, 0x1467: 0x0004, 0x1468: 0x0004, 0x1469: 0x0004, + 0x146a: 0x0004, 0x146b: 0x0004, 0x146c: 0x0004, 0x146d: 0x0004, 0x146e: 0x0004, 0x146f: 0x0004, + 0x1470: 0x0004, 0x1471: 0x0004, 0x1472: 0x0004, 0x1473: 0x0004, 0x1474: 0x0004, 0x1475: 0x0004, + 0x1476: 0x0004, 0x1477: 0x0004, 0x1478: 0x0004, 0x1479: 0x0004, 0x147a: 0x0004, 0x147b: 0x0004, + 0x147c: 0x0004, 0x147d: 0x0004, 0x147e: 0x0004, 0x147f: 0x0004, + // Block 0x52, offset 0x1480 + 0x1480: 0x0004, 0x1481: 0x0004, 0x1482: 0x0004, 0x1483: 0x0004, 0x1484: 0x0004, 0x1485: 0x0004, + 0x1486: 0x0004, 0x1487: 0x0004, 0x1488: 0x0004, 0x1489: 0x0004, 0x148a: 0x0004, 0x148b: 0x0004, + 0x148c: 0x0004, 0x148d: 0x0004, 0x148e: 0x0004, 0x148f: 0x0004, 0x1490: 0x000c, 0x1491: 0x000c, + 0x1492: 0x000c, 0x1493: 0x000c, 0x1494: 0x000c, 0x1495: 0x000c, 0x1496: 0x000c, 0x1497: 0x000c, + 0x1498: 0x000c, 0x1499: 0x000c, 0x149a: 0x000c, 0x149b: 0x000c, 0x149c: 0x000c, 0x149d: 0x000c, + 0x149e: 0x000c, 0x149f: 0x000c, 0x14a0: 0x000c, 0x14a1: 0x000c, 0x14a2: 0x000c, 0x14a3: 0x000c, + 0x14a4: 0x000c, 0x14a5: 0x000c, 0x14a6: 0x000c, 0x14a7: 0x000c, 0x14a8: 0x000c, 0x14a9: 0x000c, + 0x14aa: 0x000c, 0x14ab: 0x000c, 0x14ac: 0x000c, 0x14ad: 0x000c, 0x14ae: 0x000c, 0x14af: 0x000c, + 0x14b0: 0x000c, + // Block 0x53, offset 0x14c0 + 0x14c0: 0x000a, 0x14c1: 0x000a, 0x14c3: 0x000a, 0x14c4: 0x000a, 0x14c5: 0x000a, + 0x14c6: 0x000a, 0x14c8: 0x000a, 0x14c9: 0x000a, + 0x14d4: 0x000a, 0x14d6: 0x000a, 0x14d7: 0x000a, + 0x14d8: 0x000a, + 0x14de: 0x000a, 0x14df: 0x000a, 0x14e0: 0x000a, 0x14e1: 0x000a, 0x14e2: 0x000a, 0x14e3: 0x000a, + 0x14e5: 0x000a, 0x14e7: 0x000a, 0x14e9: 0x000a, + 0x14ee: 0x0004, + 0x14fa: 0x000a, 0x14fb: 0x000a, + // Block 0x54, offset 0x1500 + 0x1500: 0x000a, 0x1501: 0x000a, 0x1502: 0x000a, 0x1503: 0x000a, 0x1504: 0x000a, + 0x150a: 0x000a, 0x150b: 0x000a, + 0x150c: 0x000a, 0x150d: 0x000a, 0x1510: 0x000a, 0x1511: 0x000a, + 0x1512: 0x000a, 0x1513: 0x000a, 0x1514: 0x000a, 0x1515: 0x000a, 0x1516: 0x000a, 0x1517: 0x000a, + 0x1518: 0x000a, 0x1519: 0x000a, 0x151a: 0x000a, 0x151b: 0x000a, 0x151c: 0x000a, 0x151d: 0x000a, + 0x151e: 0x000a, 0x151f: 0x000a, + // Block 0x55, offset 0x1540 + 0x1549: 0x000a, 0x154a: 0x000a, 0x154b: 0x000a, + 0x1550: 0x000a, 0x1551: 0x000a, + 0x1552: 0x000a, 0x1553: 0x000a, 0x1554: 0x000a, 0x1555: 0x000a, 0x1556: 0x000a, 0x1557: 0x000a, + 0x1558: 0x000a, 0x1559: 0x000a, 0x155a: 0x000a, 0x155b: 0x000a, 0x155c: 0x000a, 0x155d: 0x000a, + 0x155e: 0x000a, 0x155f: 0x000a, 0x1560: 0x000a, 0x1561: 0x000a, 0x1562: 0x000a, 0x1563: 0x000a, + 0x1564: 0x000a, 0x1565: 0x000a, 0x1566: 0x000a, 0x1567: 0x000a, 0x1568: 0x000a, 0x1569: 0x000a, + 0x156a: 0x000a, 0x156b: 0x000a, 0x156c: 0x000a, 0x156d: 0x000a, 0x156e: 0x000a, 0x156f: 0x000a, + 0x1570: 0x000a, 0x1571: 0x000a, 0x1572: 0x000a, 0x1573: 0x000a, 0x1574: 0x000a, 0x1575: 0x000a, + 0x1576: 0x000a, 0x1577: 0x000a, 0x1578: 0x000a, 0x1579: 0x000a, 0x157a: 0x000a, 0x157b: 0x000a, + 0x157c: 0x000a, 0x157d: 0x000a, 0x157e: 0x000a, 0x157f: 0x000a, + // Block 0x56, offset 0x1580 + 0x1580: 0x000a, 0x1581: 0x000a, 0x1582: 0x000a, 0x1583: 0x000a, 0x1584: 0x000a, 0x1585: 0x000a, + 0x1586: 0x000a, 0x1587: 0x000a, 0x1588: 0x000a, 0x1589: 0x000a, 0x158a: 0x000a, 0x158b: 0x000a, + 0x158c: 0x000a, 0x158d: 0x000a, 0x158e: 0x000a, 0x158f: 0x000a, 0x1590: 0x000a, 0x1591: 0x000a, + 0x1592: 0x000a, 0x1593: 0x000a, 0x1594: 0x000a, 0x1595: 0x000a, 0x1596: 0x000a, 0x1597: 0x000a, + 0x1598: 0x000a, 0x1599: 0x000a, 0x159a: 0x000a, 0x159b: 0x000a, 0x159c: 0x000a, 0x159d: 0x000a, + 0x159e: 0x000a, 0x159f: 0x000a, 0x15a0: 0x000a, 0x15a1: 0x000a, 0x15a2: 0x000a, 0x15a3: 0x000a, + 0x15a4: 0x000a, 0x15a5: 0x000a, 0x15a6: 0x000a, 0x15a7: 0x000a, 0x15a8: 0x000a, 0x15a9: 0x000a, + 0x15aa: 0x000a, 0x15ab: 0x000a, 0x15ac: 0x000a, 0x15ad: 0x000a, 0x15ae: 0x000a, 0x15af: 0x000a, + 0x15b0: 0x000a, 0x15b1: 0x000a, 0x15b2: 0x000a, 0x15b3: 0x000a, 0x15b4: 0x000a, 0x15b5: 0x000a, + 0x15b6: 0x000a, 0x15b7: 0x000a, 0x15b8: 0x000a, 0x15b9: 0x000a, 0x15ba: 0x000a, 0x15bb: 0x000a, + 0x15bc: 0x000a, 0x15bd: 0x000a, 0x15be: 0x000a, 0x15bf: 0x000a, + // Block 0x57, offset 0x15c0 + 0x15c0: 0x000a, 0x15c1: 0x000a, 0x15c2: 0x000a, 0x15c3: 0x000a, 0x15c4: 0x000a, 0x15c5: 0x000a, + 0x15c6: 0x000a, 0x15c7: 0x000a, 0x15c8: 0x000a, 0x15c9: 0x000a, 0x15ca: 0x000a, 0x15cb: 0x000a, + 0x15cc: 0x000a, 0x15cd: 0x000a, 0x15ce: 0x000a, 0x15cf: 0x000a, 0x15d0: 0x000a, 0x15d1: 0x000a, + 0x15d2: 0x0003, 0x15d3: 0x0004, 0x15d4: 0x000a, 0x15d5: 0x000a, 0x15d6: 0x000a, 0x15d7: 0x000a, + 0x15d8: 0x000a, 0x15d9: 0x000a, 0x15da: 0x000a, 0x15db: 0x000a, 0x15dc: 0x000a, 0x15dd: 0x000a, + 0x15de: 0x000a, 0x15df: 0x000a, 0x15e0: 0x000a, 0x15e1: 0x000a, 0x15e2: 0x000a, 0x15e3: 0x000a, + 0x15e4: 0x000a, 0x15e5: 0x000a, 0x15e6: 0x000a, 0x15e7: 0x000a, 0x15e8: 0x000a, 0x15e9: 0x000a, + 0x15ea: 0x000a, 0x15eb: 0x000a, 0x15ec: 0x000a, 0x15ed: 0x000a, 0x15ee: 0x000a, 0x15ef: 0x000a, + 0x15f0: 0x000a, 0x15f1: 0x000a, 0x15f2: 0x000a, 0x15f3: 0x000a, 0x15f4: 0x000a, 0x15f5: 0x000a, + 0x15f6: 0x000a, 0x15f7: 0x000a, 0x15f8: 0x000a, 0x15f9: 0x000a, 0x15fa: 0x000a, 0x15fb: 0x000a, + 0x15fc: 0x000a, 0x15fd: 0x000a, 0x15fe: 0x000a, 0x15ff: 0x000a, + // Block 0x58, offset 0x1600 + 0x1600: 0x000a, 0x1601: 0x000a, 0x1602: 0x000a, 0x1603: 0x000a, 0x1604: 0x000a, 0x1605: 0x000a, + 0x1606: 0x000a, 0x1607: 0x000a, 0x1608: 0x003a, 0x1609: 0x002a, 0x160a: 0x003a, 0x160b: 0x002a, + 0x160c: 0x000a, 0x160d: 0x000a, 0x160e: 0x000a, 0x160f: 0x000a, 0x1610: 0x000a, 0x1611: 0x000a, + 0x1612: 0x000a, 0x1613: 0x000a, 0x1614: 0x000a, 0x1615: 0x000a, 0x1616: 0x000a, 0x1617: 0x000a, + 0x1618: 0x000a, 0x1619: 0x000a, 0x161a: 0x000a, 0x161b: 0x000a, 0x161c: 0x000a, 0x161d: 0x000a, + 0x161e: 0x000a, 0x161f: 0x000a, 0x1620: 0x000a, 0x1621: 0x000a, 0x1622: 0x000a, 0x1623: 0x000a, + 0x1624: 0x000a, 0x1625: 0x000a, 0x1626: 0x000a, 0x1627: 0x000a, 0x1628: 0x000a, 0x1629: 0x009a, + 0x162a: 0x008a, 0x162b: 0x000a, 0x162c: 0x000a, 0x162d: 0x000a, 0x162e: 0x000a, 0x162f: 0x000a, + 0x1630: 0x000a, 0x1631: 0x000a, 0x1632: 0x000a, 0x1633: 0x000a, 0x1634: 0x000a, 0x1635: 0x000a, + // Block 0x59, offset 0x1640 + 0x167b: 0x000a, + 0x167c: 0x000a, 0x167d: 0x000a, 0x167e: 0x000a, 0x167f: 0x000a, + // Block 0x5a, offset 0x1680 + 0x1680: 0x000a, 0x1681: 0x000a, 0x1682: 0x000a, 0x1683: 0x000a, 0x1684: 0x000a, 0x1685: 0x000a, + 0x1686: 0x000a, 0x1687: 0x000a, 0x1688: 0x000a, 0x1689: 0x000a, 0x168a: 0x000a, 0x168b: 0x000a, + 0x168c: 0x000a, 0x168d: 0x000a, 0x168e: 0x000a, 0x168f: 0x000a, 0x1690: 0x000a, 0x1691: 0x000a, + 0x1692: 0x000a, 0x1693: 0x000a, 0x1694: 0x000a, 0x1696: 0x000a, 0x1697: 0x000a, + 0x1698: 0x000a, 0x1699: 0x000a, 0x169a: 0x000a, 0x169b: 0x000a, 0x169c: 0x000a, 0x169d: 0x000a, + 0x169e: 0x000a, 0x169f: 0x000a, 0x16a0: 0x000a, 0x16a1: 0x000a, 0x16a2: 0x000a, 0x16a3: 0x000a, + 0x16a4: 0x000a, 0x16a5: 0x000a, 0x16a6: 0x000a, 0x16a7: 0x000a, 0x16a8: 0x000a, 0x16a9: 0x000a, + 0x16aa: 0x000a, 0x16ab: 0x000a, 0x16ac: 0x000a, 0x16ad: 0x000a, 0x16ae: 0x000a, 0x16af: 0x000a, + 0x16b0: 0x000a, 0x16b1: 0x000a, 0x16b2: 0x000a, 0x16b3: 0x000a, 0x16b4: 0x000a, 0x16b5: 0x000a, + 0x16b6: 0x000a, 0x16b7: 0x000a, 0x16b8: 0x000a, 0x16b9: 0x000a, 0x16ba: 0x000a, 0x16bb: 0x000a, + 0x16bc: 0x000a, 0x16bd: 0x000a, 0x16be: 0x000a, 0x16bf: 0x000a, + // Block 0x5b, offset 0x16c0 + 0x16c0: 0x000a, 0x16c1: 0x000a, 0x16c2: 0x000a, 0x16c3: 0x000a, 0x16c4: 0x000a, 0x16c5: 0x000a, + 0x16c6: 0x000a, 0x16c7: 0x000a, 0x16c8: 0x000a, 0x16c9: 0x000a, 0x16ca: 0x000a, 0x16cb: 0x000a, + 0x16cc: 0x000a, 0x16cd: 0x000a, 0x16ce: 0x000a, 0x16cf: 0x000a, 0x16d0: 0x000a, 0x16d1: 0x000a, + 0x16d2: 0x000a, 0x16d3: 0x000a, 0x16d4: 0x000a, 0x16d5: 0x000a, 0x16d6: 0x000a, 0x16d7: 0x000a, + 0x16d8: 0x000a, 0x16d9: 0x000a, 0x16da: 0x000a, 0x16db: 0x000a, 0x16dc: 0x000a, 0x16dd: 0x000a, + 0x16de: 0x000a, 0x16df: 0x000a, 0x16e0: 0x000a, 0x16e1: 0x000a, 0x16e2: 0x000a, 0x16e3: 0x000a, + 0x16e4: 0x000a, 0x16e5: 0x000a, 0x16e6: 0x000a, + // Block 0x5c, offset 0x1700 + 0x1700: 0x000a, 0x1701: 0x000a, 0x1702: 0x000a, 0x1703: 0x000a, 0x1704: 0x000a, 0x1705: 0x000a, + 0x1706: 0x000a, 0x1707: 0x000a, 0x1708: 0x000a, 0x1709: 0x000a, 0x170a: 0x000a, + 0x1720: 0x000a, 0x1721: 0x000a, 0x1722: 0x000a, 0x1723: 0x000a, + 0x1724: 0x000a, 0x1725: 0x000a, 0x1726: 0x000a, 0x1727: 0x000a, 0x1728: 0x000a, 0x1729: 0x000a, + 0x172a: 0x000a, 0x172b: 0x000a, 0x172c: 0x000a, 0x172d: 0x000a, 0x172e: 0x000a, 0x172f: 0x000a, + 0x1730: 0x000a, 0x1731: 0x000a, 0x1732: 0x000a, 0x1733: 0x000a, 0x1734: 0x000a, 0x1735: 0x000a, + 0x1736: 0x000a, 0x1737: 0x000a, 0x1738: 0x000a, 0x1739: 0x000a, 0x173a: 0x000a, 0x173b: 0x000a, + 0x173c: 0x000a, 0x173d: 0x000a, 0x173e: 0x000a, 0x173f: 0x000a, + // Block 0x5d, offset 0x1740 + 0x1740: 0x000a, 0x1741: 0x000a, 0x1742: 0x000a, 0x1743: 0x000a, 0x1744: 0x000a, 0x1745: 0x000a, + 0x1746: 0x000a, 0x1747: 0x000a, 0x1748: 0x0002, 0x1749: 0x0002, 0x174a: 0x0002, 0x174b: 0x0002, + 0x174c: 0x0002, 0x174d: 0x0002, 0x174e: 0x0002, 0x174f: 0x0002, 0x1750: 0x0002, 0x1751: 0x0002, + 0x1752: 0x0002, 0x1753: 0x0002, 0x1754: 0x0002, 0x1755: 0x0002, 0x1756: 0x0002, 0x1757: 0x0002, + 0x1758: 0x0002, 0x1759: 0x0002, 0x175a: 0x0002, 0x175b: 0x0002, + // Block 0x5e, offset 0x1780 + 0x17aa: 0x000a, 0x17ab: 0x000a, 0x17ac: 0x000a, 0x17ad: 0x000a, 0x17ae: 0x000a, 0x17af: 0x000a, + 0x17b0: 0x000a, 0x17b1: 0x000a, 0x17b2: 0x000a, 0x17b3: 0x000a, 0x17b4: 0x000a, 0x17b5: 0x000a, + 0x17b6: 0x000a, 0x17b7: 0x000a, 0x17b8: 0x000a, 0x17b9: 0x000a, 0x17ba: 0x000a, 0x17bb: 0x000a, + 0x17bc: 0x000a, 0x17bd: 0x000a, 0x17be: 0x000a, 0x17bf: 0x000a, + // Block 0x5f, offset 0x17c0 + 0x17c0: 0x000a, 0x17c1: 0x000a, 0x17c2: 0x000a, 0x17c3: 0x000a, 0x17c4: 0x000a, 0x17c5: 0x000a, + 0x17c6: 0x000a, 0x17c7: 0x000a, 0x17c8: 0x000a, 0x17c9: 0x000a, 0x17ca: 0x000a, 0x17cb: 0x000a, + 0x17cc: 0x000a, 0x17cd: 0x000a, 0x17ce: 0x000a, 0x17cf: 0x000a, 0x17d0: 0x000a, 0x17d1: 0x000a, + 0x17d2: 0x000a, 0x17d3: 0x000a, 0x17d4: 0x000a, 0x17d5: 0x000a, 0x17d6: 0x000a, 0x17d7: 0x000a, + 0x17d8: 0x000a, 0x17d9: 0x000a, 0x17da: 0x000a, 0x17db: 0x000a, 0x17dc: 0x000a, 0x17dd: 0x000a, + 0x17de: 0x000a, 0x17df: 0x000a, 0x17e0: 0x000a, 0x17e1: 0x000a, 0x17e2: 0x000a, 0x17e3: 0x000a, + 0x17e4: 0x000a, 0x17e5: 0x000a, 0x17e6: 0x000a, 0x17e7: 0x000a, 0x17e8: 0x000a, 0x17e9: 0x000a, + 0x17ea: 0x000a, 0x17eb: 0x000a, 0x17ed: 0x000a, 0x17ee: 0x000a, 0x17ef: 0x000a, + 0x17f0: 0x000a, 0x17f1: 0x000a, 0x17f2: 0x000a, 0x17f3: 0x000a, 0x17f4: 0x000a, 0x17f5: 0x000a, + 0x17f6: 0x000a, 0x17f7: 0x000a, 0x17f8: 0x000a, 0x17f9: 0x000a, 0x17fa: 0x000a, 0x17fb: 0x000a, + 0x17fc: 0x000a, 0x17fd: 0x000a, 0x17fe: 0x000a, 0x17ff: 0x000a, + // Block 0x60, offset 0x1800 + 0x1800: 0x000a, 0x1801: 0x000a, 0x1802: 0x000a, 0x1803: 0x000a, 0x1804: 0x000a, 0x1805: 0x000a, + 0x1806: 0x000a, 0x1807: 0x000a, 0x1808: 0x000a, 0x1809: 0x000a, 0x180a: 0x000a, 0x180b: 0x000a, + 0x180c: 0x000a, 0x180d: 0x000a, 0x180e: 0x000a, 0x180f: 0x000a, 0x1810: 0x000a, 0x1811: 0x000a, + 0x1812: 0x000a, 0x1813: 0x000a, 0x1814: 0x000a, 0x1815: 0x000a, 0x1816: 0x000a, 0x1817: 0x000a, + 0x1818: 0x000a, 0x1819: 0x000a, 0x181a: 0x000a, 0x181b: 0x000a, 0x181c: 0x000a, 0x181d: 0x000a, + 0x181e: 0x000a, 0x181f: 0x000a, 0x1820: 0x000a, 0x1821: 0x000a, 0x1822: 0x000a, 0x1823: 0x000a, + 0x1824: 0x000a, 0x1825: 0x000a, 0x1826: 0x000a, 0x1827: 0x000a, 0x1828: 0x003a, 0x1829: 0x002a, + 0x182a: 0x003a, 0x182b: 0x002a, 0x182c: 0x003a, 0x182d: 0x002a, 0x182e: 0x003a, 0x182f: 0x002a, + 0x1830: 0x003a, 0x1831: 0x002a, 0x1832: 0x003a, 0x1833: 0x002a, 0x1834: 0x003a, 0x1835: 0x002a, + 0x1836: 0x000a, 0x1837: 0x000a, 0x1838: 0x000a, 0x1839: 0x000a, 0x183a: 0x000a, 0x183b: 0x000a, + 0x183c: 0x000a, 0x183d: 0x000a, 0x183e: 0x000a, 0x183f: 0x000a, + // Block 0x61, offset 0x1840 + 0x1840: 0x000a, 0x1841: 0x000a, 0x1842: 0x000a, 0x1843: 0x000a, 0x1844: 0x000a, 0x1845: 0x009a, + 0x1846: 0x008a, 0x1847: 0x000a, 0x1848: 0x000a, 0x1849: 0x000a, 0x184a: 0x000a, 0x184b: 0x000a, + 0x184c: 0x000a, 0x184d: 0x000a, 0x184e: 0x000a, 0x184f: 0x000a, 0x1850: 0x000a, 0x1851: 0x000a, + 0x1852: 0x000a, 0x1853: 0x000a, 0x1854: 0x000a, 0x1855: 0x000a, 0x1856: 0x000a, 0x1857: 0x000a, + 0x1858: 0x000a, 0x1859: 0x000a, 0x185a: 0x000a, 0x185b: 0x000a, 0x185c: 0x000a, 0x185d: 0x000a, + 0x185e: 0x000a, 0x185f: 0x000a, 0x1860: 0x000a, 0x1861: 0x000a, 0x1862: 0x000a, 0x1863: 0x000a, + 0x1864: 0x000a, 0x1865: 0x000a, 0x1866: 0x003a, 0x1867: 0x002a, 0x1868: 0x003a, 0x1869: 0x002a, + 0x186a: 0x003a, 0x186b: 0x002a, 0x186c: 0x003a, 0x186d: 0x002a, 0x186e: 0x003a, 0x186f: 0x002a, + 0x1870: 0x000a, 0x1871: 0x000a, 0x1872: 0x000a, 0x1873: 0x000a, 0x1874: 0x000a, 0x1875: 0x000a, + 0x1876: 0x000a, 0x1877: 0x000a, 0x1878: 0x000a, 0x1879: 0x000a, 0x187a: 0x000a, 0x187b: 0x000a, + 0x187c: 0x000a, 0x187d: 0x000a, 0x187e: 0x000a, 0x187f: 0x000a, + // Block 0x62, offset 0x1880 + 0x1880: 0x000a, 0x1881: 0x000a, 0x1882: 0x000a, 0x1883: 0x007a, 0x1884: 0x006a, 0x1885: 0x009a, + 0x1886: 0x008a, 0x1887: 0x00ba, 0x1888: 0x00aa, 0x1889: 0x009a, 0x188a: 0x008a, 0x188b: 0x007a, + 0x188c: 0x006a, 0x188d: 0x00da, 0x188e: 0x002a, 0x188f: 0x003a, 0x1890: 0x00ca, 0x1891: 0x009a, + 0x1892: 0x008a, 0x1893: 0x007a, 0x1894: 0x006a, 0x1895: 0x009a, 0x1896: 0x008a, 0x1897: 0x00ba, + 0x1898: 0x00aa, 0x1899: 0x000a, 0x189a: 0x000a, 0x189b: 0x000a, 0x189c: 0x000a, 0x189d: 0x000a, + 0x189e: 0x000a, 0x189f: 0x000a, 0x18a0: 0x000a, 0x18a1: 0x000a, 0x18a2: 0x000a, 0x18a3: 0x000a, + 0x18a4: 0x000a, 0x18a5: 0x000a, 0x18a6: 0x000a, 0x18a7: 0x000a, 0x18a8: 0x000a, 0x18a9: 0x000a, + 0x18aa: 0x000a, 0x18ab: 0x000a, 0x18ac: 0x000a, 0x18ad: 0x000a, 0x18ae: 0x000a, 0x18af: 0x000a, + 0x18b0: 0x000a, 0x18b1: 0x000a, 0x18b2: 0x000a, 0x18b3: 0x000a, 0x18b4: 0x000a, 0x18b5: 0x000a, + 0x18b6: 0x000a, 0x18b7: 0x000a, 0x18b8: 0x000a, 0x18b9: 0x000a, 0x18ba: 0x000a, 0x18bb: 0x000a, + 0x18bc: 0x000a, 0x18bd: 0x000a, 0x18be: 0x000a, 0x18bf: 0x000a, + // Block 0x63, offset 0x18c0 + 0x18c0: 0x000a, 0x18c1: 0x000a, 0x18c2: 0x000a, 0x18c3: 0x000a, 0x18c4: 0x000a, 0x18c5: 0x000a, + 0x18c6: 0x000a, 0x18c7: 0x000a, 0x18c8: 0x000a, 0x18c9: 0x000a, 0x18ca: 0x000a, 0x18cb: 0x000a, + 0x18cc: 0x000a, 0x18cd: 0x000a, 0x18ce: 0x000a, 0x18cf: 0x000a, 0x18d0: 0x000a, 0x18d1: 0x000a, + 0x18d2: 0x000a, 0x18d3: 0x000a, 0x18d4: 0x000a, 0x18d5: 0x000a, 0x18d6: 0x000a, 0x18d7: 0x000a, + 0x18d8: 0x003a, 0x18d9: 0x002a, 0x18da: 0x003a, 0x18db: 0x002a, 0x18dc: 0x000a, 0x18dd: 0x000a, + 0x18de: 0x000a, 0x18df: 0x000a, 0x18e0: 0x000a, 0x18e1: 0x000a, 0x18e2: 0x000a, 0x18e3: 0x000a, + 0x18e4: 0x000a, 0x18e5: 0x000a, 0x18e6: 0x000a, 0x18e7: 0x000a, 0x18e8: 0x000a, 0x18e9: 0x000a, + 0x18ea: 0x000a, 0x18eb: 0x000a, 0x18ec: 0x000a, 0x18ed: 0x000a, 0x18ee: 0x000a, 0x18ef: 0x000a, + 0x18f0: 0x000a, 0x18f1: 0x000a, 0x18f2: 0x000a, 0x18f3: 0x000a, 0x18f4: 0x000a, 0x18f5: 0x000a, + 0x18f6: 0x000a, 0x18f7: 0x000a, 0x18f8: 0x000a, 0x18f9: 0x000a, 0x18fa: 0x000a, 0x18fb: 0x000a, + 0x18fc: 0x003a, 0x18fd: 0x002a, 0x18fe: 0x000a, 0x18ff: 0x000a, + // Block 0x64, offset 0x1900 + 0x1900: 0x000a, 0x1901: 0x000a, 0x1902: 0x000a, 0x1903: 0x000a, 0x1904: 0x000a, 0x1905: 0x000a, + 0x1906: 0x000a, 0x1907: 0x000a, 0x1908: 0x000a, 0x1909: 0x000a, 0x190a: 0x000a, 0x190b: 0x000a, + 0x190c: 0x000a, 0x190d: 0x000a, 0x190e: 0x000a, 0x190f: 0x000a, 0x1910: 0x000a, 0x1911: 0x000a, + 0x1912: 0x000a, 0x1913: 0x000a, 0x1914: 0x000a, 0x1915: 0x000a, 0x1916: 0x000a, 0x1917: 0x000a, + 0x1918: 0x000a, 0x1919: 0x000a, 0x191a: 0x000a, 0x191b: 0x000a, 0x191c: 0x000a, 0x191d: 0x000a, + 0x191e: 0x000a, 0x191f: 0x000a, 0x1920: 0x000a, 0x1921: 0x000a, 0x1922: 0x000a, 0x1923: 0x000a, + 0x1924: 0x000a, 0x1925: 0x000a, 0x1926: 0x000a, 0x1927: 0x000a, 0x1928: 0x000a, 0x1929: 0x000a, + 0x192a: 0x000a, 0x192b: 0x000a, 0x192c: 0x000a, 0x192d: 0x000a, 0x192e: 0x000a, 0x192f: 0x000a, + 0x1930: 0x000a, 0x1931: 0x000a, 0x1932: 0x000a, 0x1933: 0x000a, + 0x1936: 0x000a, 0x1937: 0x000a, 0x1938: 0x000a, 0x1939: 0x000a, 0x193a: 0x000a, 0x193b: 0x000a, + 0x193c: 0x000a, 0x193d: 0x000a, 0x193e: 0x000a, 0x193f: 0x000a, + // Block 0x65, offset 0x1940 + 0x1940: 0x000a, 0x1941: 0x000a, 0x1942: 0x000a, 0x1943: 0x000a, 0x1944: 0x000a, 0x1945: 0x000a, + 0x1946: 0x000a, 0x1947: 0x000a, 0x1948: 0x000a, 0x1949: 0x000a, 0x194a: 0x000a, 0x194b: 0x000a, + 0x194c: 0x000a, 0x194d: 0x000a, 0x194e: 0x000a, 0x194f: 0x000a, 0x1950: 0x000a, 0x1951: 0x000a, + 0x1952: 0x000a, 0x1953: 0x000a, 0x1954: 0x000a, 0x1955: 0x000a, + 0x1958: 0x000a, 0x1959: 0x000a, 0x195a: 0x000a, 0x195b: 0x000a, 0x195c: 0x000a, 0x195d: 0x000a, + 0x195e: 0x000a, 0x195f: 0x000a, 0x1960: 0x000a, 0x1961: 0x000a, 0x1962: 0x000a, 0x1963: 0x000a, + 0x1964: 0x000a, 0x1965: 0x000a, 0x1966: 0x000a, 0x1967: 0x000a, 0x1968: 0x000a, 0x1969: 0x000a, + 0x196a: 0x000a, 0x196b: 0x000a, 0x196c: 0x000a, 0x196d: 0x000a, 0x196e: 0x000a, 0x196f: 0x000a, + 0x1970: 0x000a, 0x1971: 0x000a, 0x1972: 0x000a, 0x1973: 0x000a, 0x1974: 0x000a, 0x1975: 0x000a, + 0x1976: 0x000a, 0x1977: 0x000a, 0x1978: 0x000a, 0x1979: 0x000a, 0x197a: 0x000a, 0x197b: 0x000a, + 0x197c: 0x000a, 0x197d: 0x000a, 0x197e: 0x000a, 0x197f: 0x000a, + // Block 0x66, offset 0x1980 + 0x19a5: 0x000a, 0x19a6: 0x000a, 0x19a7: 0x000a, 0x19a8: 0x000a, 0x19a9: 0x000a, + 0x19aa: 0x000a, 0x19af: 0x000c, + 0x19b0: 0x000c, 0x19b1: 0x000c, + 0x19b9: 0x000a, 0x19ba: 0x000a, 0x19bb: 0x000a, + 0x19bc: 0x000a, 0x19bd: 0x000a, 0x19be: 0x000a, 0x19bf: 0x000a, + // Block 0x67, offset 0x19c0 + 0x19ff: 0x000c, + // Block 0x68, offset 0x1a00 + 0x1a20: 0x000c, 0x1a21: 0x000c, 0x1a22: 0x000c, 0x1a23: 0x000c, + 0x1a24: 0x000c, 0x1a25: 0x000c, 0x1a26: 0x000c, 0x1a27: 0x000c, 0x1a28: 0x000c, 0x1a29: 0x000c, + 0x1a2a: 0x000c, 0x1a2b: 0x000c, 0x1a2c: 0x000c, 0x1a2d: 0x000c, 0x1a2e: 0x000c, 0x1a2f: 0x000c, + 0x1a30: 0x000c, 0x1a31: 0x000c, 0x1a32: 0x000c, 0x1a33: 0x000c, 0x1a34: 0x000c, 0x1a35: 0x000c, + 0x1a36: 0x000c, 0x1a37: 0x000c, 0x1a38: 0x000c, 0x1a39: 0x000c, 0x1a3a: 0x000c, 0x1a3b: 0x000c, + 0x1a3c: 0x000c, 0x1a3d: 0x000c, 0x1a3e: 0x000c, 0x1a3f: 0x000c, + // Block 0x69, offset 0x1a40 + 0x1a40: 0x000a, 0x1a41: 0x000a, 0x1a42: 0x000a, 0x1a43: 0x000a, 0x1a44: 0x000a, 0x1a45: 0x000a, + 0x1a46: 0x000a, 0x1a47: 0x000a, 0x1a48: 0x000a, 0x1a49: 0x000a, 0x1a4a: 0x000a, 0x1a4b: 0x000a, + 0x1a4c: 0x000a, 0x1a4d: 0x000a, 0x1a4e: 0x000a, 0x1a4f: 0x000a, 0x1a50: 0x000a, 0x1a51: 0x000a, + 0x1a52: 0x000a, 0x1a53: 0x000a, 0x1a54: 0x000a, 0x1a55: 0x000a, 0x1a56: 0x000a, 0x1a57: 0x000a, + 0x1a58: 0x000a, 0x1a59: 0x000a, 0x1a5a: 0x000a, 0x1a5b: 0x000a, 0x1a5c: 0x000a, 0x1a5d: 0x000a, + 0x1a5e: 0x000a, 0x1a5f: 0x000a, 0x1a60: 0x000a, 0x1a61: 0x000a, 0x1a62: 0x003a, 0x1a63: 0x002a, + 0x1a64: 0x003a, 0x1a65: 0x002a, 0x1a66: 0x003a, 0x1a67: 0x002a, 0x1a68: 0x003a, 0x1a69: 0x002a, + 0x1a6a: 0x000a, 0x1a6b: 0x000a, 0x1a6c: 0x000a, 0x1a6d: 0x000a, 0x1a6e: 0x000a, 0x1a6f: 0x000a, + 0x1a70: 0x000a, 0x1a71: 0x000a, 0x1a72: 0x000a, 0x1a73: 0x000a, 0x1a74: 0x000a, 0x1a75: 0x000a, + 0x1a76: 0x000a, 0x1a77: 0x000a, 0x1a78: 0x000a, 0x1a79: 0x000a, 0x1a7a: 0x000a, 0x1a7b: 0x000a, + 0x1a7c: 0x000a, 0x1a7d: 0x000a, 0x1a7e: 0x000a, 0x1a7f: 0x000a, + // Block 0x6a, offset 0x1a80 + 0x1a80: 0x000a, 0x1a81: 0x000a, 0x1a82: 0x000a, 0x1a83: 0x000a, 0x1a84: 0x000a, 0x1a85: 0x000a, + 0x1a86: 0x000a, 0x1a87: 0x000a, 0x1a88: 0x000a, 0x1a89: 0x000a, 0x1a8a: 0x000a, 0x1a8b: 0x000a, + 0x1a8c: 0x000a, 0x1a8d: 0x000a, 0x1a8e: 0x000a, 0x1a8f: 0x000a, + // Block 0x6b, offset 0x1ac0 + 0x1ac0: 0x000a, 0x1ac1: 0x000a, 0x1ac2: 0x000a, 0x1ac3: 0x000a, 0x1ac4: 0x000a, 0x1ac5: 0x000a, + 0x1ac6: 0x000a, 0x1ac7: 0x000a, 0x1ac8: 0x000a, 0x1ac9: 0x000a, 0x1aca: 0x000a, 0x1acb: 0x000a, + 0x1acc: 0x000a, 0x1acd: 0x000a, 0x1ace: 0x000a, 0x1acf: 0x000a, 0x1ad0: 0x000a, 0x1ad1: 0x000a, + 0x1ad2: 0x000a, 0x1ad3: 0x000a, 0x1ad4: 0x000a, 0x1ad5: 0x000a, 0x1ad6: 0x000a, 0x1ad7: 0x000a, + 0x1ad8: 0x000a, 0x1ad9: 0x000a, 0x1adb: 0x000a, 0x1adc: 0x000a, 0x1add: 0x000a, + 0x1ade: 0x000a, 0x1adf: 0x000a, 0x1ae0: 0x000a, 0x1ae1: 0x000a, 0x1ae2: 0x000a, 0x1ae3: 0x000a, + 0x1ae4: 0x000a, 0x1ae5: 0x000a, 0x1ae6: 0x000a, 0x1ae7: 0x000a, 0x1ae8: 0x000a, 0x1ae9: 0x000a, + 0x1aea: 0x000a, 0x1aeb: 0x000a, 0x1aec: 0x000a, 0x1aed: 0x000a, 0x1aee: 0x000a, 0x1aef: 0x000a, + 0x1af0: 0x000a, 0x1af1: 0x000a, 0x1af2: 0x000a, 0x1af3: 0x000a, 0x1af4: 0x000a, 0x1af5: 0x000a, + 0x1af6: 0x000a, 0x1af7: 0x000a, 0x1af8: 0x000a, 0x1af9: 0x000a, 0x1afa: 0x000a, 0x1afb: 0x000a, + 0x1afc: 0x000a, 0x1afd: 0x000a, 0x1afe: 0x000a, 0x1aff: 0x000a, + // Block 0x6c, offset 0x1b00 + 0x1b00: 0x000a, 0x1b01: 0x000a, 0x1b02: 0x000a, 0x1b03: 0x000a, 0x1b04: 0x000a, 0x1b05: 0x000a, + 0x1b06: 0x000a, 0x1b07: 0x000a, 0x1b08: 0x000a, 0x1b09: 0x000a, 0x1b0a: 0x000a, 0x1b0b: 0x000a, + 0x1b0c: 0x000a, 0x1b0d: 0x000a, 0x1b0e: 0x000a, 0x1b0f: 0x000a, 0x1b10: 0x000a, 0x1b11: 0x000a, + 0x1b12: 0x000a, 0x1b13: 0x000a, 0x1b14: 0x000a, 0x1b15: 0x000a, 0x1b16: 0x000a, 0x1b17: 0x000a, + 0x1b18: 0x000a, 0x1b19: 0x000a, 0x1b1a: 0x000a, 0x1b1b: 0x000a, 0x1b1c: 0x000a, 0x1b1d: 0x000a, + 0x1b1e: 0x000a, 0x1b1f: 0x000a, 0x1b20: 0x000a, 0x1b21: 0x000a, 0x1b22: 0x000a, 0x1b23: 0x000a, + 0x1b24: 0x000a, 0x1b25: 0x000a, 0x1b26: 0x000a, 0x1b27: 0x000a, 0x1b28: 0x000a, 0x1b29: 0x000a, + 0x1b2a: 0x000a, 0x1b2b: 0x000a, 0x1b2c: 0x000a, 0x1b2d: 0x000a, 0x1b2e: 0x000a, 0x1b2f: 0x000a, + 0x1b30: 0x000a, 0x1b31: 0x000a, 0x1b32: 0x000a, 0x1b33: 0x000a, + // Block 0x6d, offset 0x1b40 + 0x1b40: 0x000a, 0x1b41: 0x000a, 0x1b42: 0x000a, 0x1b43: 0x000a, 0x1b44: 0x000a, 0x1b45: 0x000a, + 0x1b46: 0x000a, 0x1b47: 0x000a, 0x1b48: 0x000a, 0x1b49: 0x000a, 0x1b4a: 0x000a, 0x1b4b: 0x000a, + 0x1b4c: 0x000a, 0x1b4d: 0x000a, 0x1b4e: 0x000a, 0x1b4f: 0x000a, 0x1b50: 0x000a, 0x1b51: 0x000a, + 0x1b52: 0x000a, 0x1b53: 0x000a, 0x1b54: 0x000a, 0x1b55: 0x000a, + 0x1b70: 0x000a, 0x1b71: 0x000a, 0x1b72: 0x000a, 0x1b73: 0x000a, 0x1b74: 0x000a, 0x1b75: 0x000a, + 0x1b76: 0x000a, 0x1b77: 0x000a, 0x1b78: 0x000a, 0x1b79: 0x000a, 0x1b7a: 0x000a, 0x1b7b: 0x000a, + // Block 0x6e, offset 0x1b80 + 0x1b80: 0x0009, 0x1b81: 0x000a, 0x1b82: 0x000a, 0x1b83: 0x000a, 0x1b84: 0x000a, + 0x1b88: 0x003a, 0x1b89: 0x002a, 0x1b8a: 0x003a, 0x1b8b: 0x002a, + 0x1b8c: 0x003a, 0x1b8d: 0x002a, 0x1b8e: 0x003a, 0x1b8f: 0x002a, 0x1b90: 0x003a, 0x1b91: 0x002a, + 0x1b92: 0x000a, 0x1b93: 0x000a, 0x1b94: 0x003a, 0x1b95: 0x002a, 0x1b96: 0x003a, 0x1b97: 0x002a, + 0x1b98: 0x003a, 0x1b99: 0x002a, 0x1b9a: 0x003a, 0x1b9b: 0x002a, 0x1b9c: 0x000a, 0x1b9d: 0x000a, + 0x1b9e: 0x000a, 0x1b9f: 0x000a, 0x1ba0: 0x000a, + 0x1baa: 0x000c, 0x1bab: 0x000c, 0x1bac: 0x000c, 0x1bad: 0x000c, + 0x1bb0: 0x000a, + 0x1bb6: 0x000a, 0x1bb7: 0x000a, + 0x1bbd: 0x000a, 0x1bbe: 0x000a, 0x1bbf: 0x000a, + // Block 0x6f, offset 0x1bc0 + 0x1bd9: 0x000c, 0x1bda: 0x000c, 0x1bdb: 0x000a, 0x1bdc: 0x000a, + 0x1be0: 0x000a, + // Block 0x70, offset 0x1c00 + 0x1c3b: 0x000a, + // Block 0x71, offset 0x1c40 + 0x1c40: 0x000a, 0x1c41: 0x000a, 0x1c42: 0x000a, 0x1c43: 0x000a, 0x1c44: 0x000a, 0x1c45: 0x000a, + 0x1c46: 0x000a, 0x1c47: 0x000a, 0x1c48: 0x000a, 0x1c49: 0x000a, 0x1c4a: 0x000a, 0x1c4b: 0x000a, + 0x1c4c: 0x000a, 0x1c4d: 0x000a, 0x1c4e: 0x000a, 0x1c4f: 0x000a, 0x1c50: 0x000a, 0x1c51: 0x000a, + 0x1c52: 0x000a, 0x1c53: 0x000a, 0x1c54: 0x000a, 0x1c55: 0x000a, 0x1c56: 0x000a, 0x1c57: 0x000a, + 0x1c58: 0x000a, 0x1c59: 0x000a, 0x1c5a: 0x000a, 0x1c5b: 0x000a, 0x1c5c: 0x000a, 0x1c5d: 0x000a, + 0x1c5e: 0x000a, 0x1c5f: 0x000a, 0x1c60: 0x000a, 0x1c61: 0x000a, 0x1c62: 0x000a, 0x1c63: 0x000a, + // Block 0x72, offset 0x1c80 + 0x1c9d: 0x000a, + 0x1c9e: 0x000a, + // Block 0x73, offset 0x1cc0 + 0x1cd0: 0x000a, 0x1cd1: 0x000a, + 0x1cd2: 0x000a, 0x1cd3: 0x000a, 0x1cd4: 0x000a, 0x1cd5: 0x000a, 0x1cd6: 0x000a, 0x1cd7: 0x000a, + 0x1cd8: 0x000a, 0x1cd9: 0x000a, 0x1cda: 0x000a, 0x1cdb: 0x000a, 0x1cdc: 0x000a, 0x1cdd: 0x000a, + 0x1cde: 0x000a, 0x1cdf: 0x000a, + 0x1cfc: 0x000a, 0x1cfd: 0x000a, 0x1cfe: 0x000a, + // Block 0x74, offset 0x1d00 + 0x1d31: 0x000a, 0x1d32: 0x000a, 0x1d33: 0x000a, 0x1d34: 0x000a, 0x1d35: 0x000a, + 0x1d36: 0x000a, 0x1d37: 0x000a, 0x1d38: 0x000a, 0x1d39: 0x000a, 0x1d3a: 0x000a, 0x1d3b: 0x000a, + 0x1d3c: 0x000a, 0x1d3d: 0x000a, 0x1d3e: 0x000a, 0x1d3f: 0x000a, + // Block 0x75, offset 0x1d40 + 0x1d4c: 0x000a, 0x1d4d: 0x000a, 0x1d4e: 0x000a, 0x1d4f: 0x000a, + // Block 0x76, offset 0x1d80 + 0x1db7: 0x000a, 0x1db8: 0x000a, 0x1db9: 0x000a, 0x1dba: 0x000a, + // Block 0x77, offset 0x1dc0 + 0x1dde: 0x000a, 0x1ddf: 0x000a, + 0x1dff: 0x000a, + // Block 0x78, offset 0x1e00 + 0x1e10: 0x000a, 0x1e11: 0x000a, + 0x1e12: 0x000a, 0x1e13: 0x000a, 0x1e14: 0x000a, 0x1e15: 0x000a, 0x1e16: 0x000a, 0x1e17: 0x000a, + 0x1e18: 0x000a, 0x1e19: 0x000a, 0x1e1a: 0x000a, 0x1e1b: 0x000a, 0x1e1c: 0x000a, 0x1e1d: 0x000a, + 0x1e1e: 0x000a, 0x1e1f: 0x000a, 0x1e20: 0x000a, 0x1e21: 0x000a, 0x1e22: 0x000a, 0x1e23: 0x000a, + 0x1e24: 0x000a, 0x1e25: 0x000a, 0x1e26: 0x000a, 0x1e27: 0x000a, 0x1e28: 0x000a, 0x1e29: 0x000a, + 0x1e2a: 0x000a, 0x1e2b: 0x000a, 0x1e2c: 0x000a, 0x1e2d: 0x000a, 0x1e2e: 0x000a, 0x1e2f: 0x000a, + 0x1e30: 0x000a, 0x1e31: 0x000a, 0x1e32: 0x000a, 0x1e33: 0x000a, 0x1e34: 0x000a, 0x1e35: 0x000a, + 0x1e36: 0x000a, 0x1e37: 0x000a, 0x1e38: 0x000a, 0x1e39: 0x000a, 0x1e3a: 0x000a, 0x1e3b: 0x000a, + 0x1e3c: 0x000a, 0x1e3d: 0x000a, 0x1e3e: 0x000a, 0x1e3f: 0x000a, + // Block 0x79, offset 0x1e40 + 0x1e40: 0x000a, 0x1e41: 0x000a, 0x1e42: 0x000a, 0x1e43: 0x000a, 0x1e44: 0x000a, 0x1e45: 0x000a, + 0x1e46: 0x000a, + // Block 0x7a, offset 0x1e80 + 0x1e8d: 0x000a, 0x1e8e: 0x000a, 0x1e8f: 0x000a, + // Block 0x7b, offset 0x1ec0 + 0x1eef: 0x000c, + 0x1ef0: 0x000c, 0x1ef1: 0x000c, 0x1ef2: 0x000c, 0x1ef3: 0x000a, 0x1ef4: 0x000c, 0x1ef5: 0x000c, + 0x1ef6: 0x000c, 0x1ef7: 0x000c, 0x1ef8: 0x000c, 0x1ef9: 0x000c, 0x1efa: 0x000c, 0x1efb: 0x000c, + 0x1efc: 0x000c, 0x1efd: 0x000c, 0x1efe: 0x000a, 0x1eff: 0x000a, + // Block 0x7c, offset 0x1f00 + 0x1f1e: 0x000c, 0x1f1f: 0x000c, + // Block 0x7d, offset 0x1f40 + 0x1f70: 0x000c, 0x1f71: 0x000c, + // Block 0x7e, offset 0x1f80 + 0x1f80: 0x000a, 0x1f81: 0x000a, 0x1f82: 0x000a, 0x1f83: 0x000a, 0x1f84: 0x000a, 0x1f85: 0x000a, + 0x1f86: 0x000a, 0x1f87: 0x000a, 0x1f88: 0x000a, 0x1f89: 0x000a, 0x1f8a: 0x000a, 0x1f8b: 0x000a, + 0x1f8c: 0x000a, 0x1f8d: 0x000a, 0x1f8e: 0x000a, 0x1f8f: 0x000a, 0x1f90: 0x000a, 0x1f91: 0x000a, + 0x1f92: 0x000a, 0x1f93: 0x000a, 0x1f94: 0x000a, 0x1f95: 0x000a, 0x1f96: 0x000a, 0x1f97: 0x000a, + 0x1f98: 0x000a, 0x1f99: 0x000a, 0x1f9a: 0x000a, 0x1f9b: 0x000a, 0x1f9c: 0x000a, 0x1f9d: 0x000a, + 0x1f9e: 0x000a, 0x1f9f: 0x000a, 0x1fa0: 0x000a, 0x1fa1: 0x000a, + // Block 0x7f, offset 0x1fc0 + 0x1fc8: 0x000a, + // Block 0x80, offset 0x2000 + 0x2002: 0x000c, + 0x2006: 0x000c, 0x200b: 0x000c, + 0x2025: 0x000c, 0x2026: 0x000c, 0x2028: 0x000a, 0x2029: 0x000a, + 0x202a: 0x000a, 0x202b: 0x000a, + 0x2038: 0x0004, 0x2039: 0x0004, + // Block 0x81, offset 0x2040 + 0x2074: 0x000a, 0x2075: 0x000a, + 0x2076: 0x000a, 0x2077: 0x000a, + // Block 0x82, offset 0x2080 + 0x2084: 0x000c, 0x2085: 0x000c, + 0x20a0: 0x000c, 0x20a1: 0x000c, 0x20a2: 0x000c, 0x20a3: 0x000c, + 0x20a4: 0x000c, 0x20a5: 0x000c, 0x20a6: 0x000c, 0x20a7: 0x000c, 0x20a8: 0x000c, 0x20a9: 0x000c, + 0x20aa: 0x000c, 0x20ab: 0x000c, 0x20ac: 0x000c, 0x20ad: 0x000c, 0x20ae: 0x000c, 0x20af: 0x000c, + 0x20b0: 0x000c, 0x20b1: 0x000c, + 0x20bf: 0x000c, + // Block 0x83, offset 0x20c0 + 0x20e6: 0x000c, 0x20e7: 0x000c, 0x20e8: 0x000c, 0x20e9: 0x000c, + 0x20ea: 0x000c, 0x20eb: 0x000c, 0x20ec: 0x000c, 0x20ed: 0x000c, + // Block 0x84, offset 0x2100 + 0x2107: 0x000c, 0x2108: 0x000c, 0x2109: 0x000c, 0x210a: 0x000c, 0x210b: 0x000c, + 0x210c: 0x000c, 0x210d: 0x000c, 0x210e: 0x000c, 0x210f: 0x000c, 0x2110: 0x000c, 0x2111: 0x000c, + // Block 0x85, offset 0x2140 + 0x2140: 0x000c, 0x2141: 0x000c, 0x2142: 0x000c, + 0x2173: 0x000c, + 0x2176: 0x000c, 0x2177: 0x000c, 0x2178: 0x000c, 0x2179: 0x000c, + 0x217c: 0x000c, 0x217d: 0x000c, + // Block 0x86, offset 0x2180 + 0x21a5: 0x000c, + // Block 0x87, offset 0x21c0 + 0x21e9: 0x000c, + 0x21ea: 0x000c, 0x21eb: 0x000c, 0x21ec: 0x000c, 0x21ed: 0x000c, 0x21ee: 0x000c, + 0x21f1: 0x000c, 0x21f2: 0x000c, 0x21f5: 0x000c, + 0x21f6: 0x000c, + // Block 0x88, offset 0x2200 + 0x2203: 0x000c, + 0x220c: 0x000c, + 0x223c: 0x000c, + // Block 0x89, offset 0x2240 + 0x2270: 0x000c, 0x2272: 0x000c, 0x2273: 0x000c, 0x2274: 0x000c, + 0x2277: 0x000c, 0x2278: 0x000c, + 0x227e: 0x000c, 0x227f: 0x000c, + // Block 0x8a, offset 0x2280 + 0x2281: 0x000c, + 0x22ac: 0x000c, 0x22ad: 0x000c, + 0x22b6: 0x000c, + // Block 0x8b, offset 0x22c0 + 0x22e5: 0x000c, 0x22e8: 0x000c, + 0x22ed: 0x000c, + // Block 0x8c, offset 0x2300 + 0x231d: 0x0001, + 0x231e: 0x000c, 0x231f: 0x0001, 0x2320: 0x0001, 0x2321: 0x0001, 0x2322: 0x0001, 0x2323: 0x0001, + 0x2324: 0x0001, 0x2325: 0x0001, 0x2326: 0x0001, 0x2327: 0x0001, 0x2328: 0x0001, 0x2329: 0x0003, + 0x232a: 0x0001, 0x232b: 0x0001, 0x232c: 0x0001, 0x232d: 0x0001, 0x232e: 0x0001, 0x232f: 0x0001, + 0x2330: 0x0001, 0x2331: 0x0001, 0x2332: 0x0001, 0x2333: 0x0001, 0x2334: 0x0001, 0x2335: 0x0001, + 0x2336: 0x0001, 0x2337: 0x0001, 0x2338: 0x0001, 0x2339: 0x0001, 0x233a: 0x0001, 0x233b: 0x0001, + 0x233c: 0x0001, 0x233d: 0x0001, 0x233e: 0x0001, 0x233f: 0x0001, + // Block 0x8d, offset 0x2340 + 0x2340: 0x0001, 0x2341: 0x0001, 0x2342: 0x0001, 0x2343: 0x0001, 0x2344: 0x0001, 0x2345: 0x0001, + 0x2346: 0x0001, 0x2347: 0x0001, 0x2348: 0x0001, 0x2349: 0x0001, 0x234a: 0x0001, 0x234b: 0x0001, + 0x234c: 0x0001, 0x234d: 0x0001, 0x234e: 0x0001, 0x234f: 0x0001, 0x2350: 0x000d, 0x2351: 0x000d, + 0x2352: 0x000d, 0x2353: 0x000d, 0x2354: 0x000d, 0x2355: 0x000d, 0x2356: 0x000d, 0x2357: 0x000d, + 0x2358: 0x000d, 0x2359: 0x000d, 0x235a: 0x000d, 0x235b: 0x000d, 0x235c: 0x000d, 0x235d: 0x000d, + 0x235e: 0x000d, 0x235f: 0x000d, 0x2360: 0x000d, 0x2361: 0x000d, 0x2362: 0x000d, 0x2363: 0x000d, + 0x2364: 0x000d, 0x2365: 0x000d, 0x2366: 0x000d, 0x2367: 0x000d, 0x2368: 0x000d, 0x2369: 0x000d, + 0x236a: 0x000d, 0x236b: 0x000d, 0x236c: 0x000d, 0x236d: 0x000d, 0x236e: 0x000d, 0x236f: 0x000d, + 0x2370: 0x000d, 0x2371: 0x000d, 0x2372: 0x000d, 0x2373: 0x000d, 0x2374: 0x000d, 0x2375: 0x000d, + 0x2376: 0x000d, 0x2377: 0x000d, 0x2378: 0x000d, 0x2379: 0x000d, 0x237a: 0x000d, 0x237b: 0x000d, + 0x237c: 0x000d, 0x237d: 0x000d, 0x237e: 0x000d, 0x237f: 0x000d, + // Block 0x8e, offset 0x2380 + 0x2380: 0x000d, 0x2381: 0x000d, 0x2382: 0x000d, 0x2383: 0x000d, 0x2384: 0x000d, 0x2385: 0x000d, + 0x2386: 0x000d, 0x2387: 0x000d, 0x2388: 0x000d, 0x2389: 0x000d, 0x238a: 0x000d, 0x238b: 0x000d, + 0x238c: 0x000d, 0x238d: 0x000d, 0x238e: 0x000d, 0x238f: 0x000d, 0x2390: 0x000d, 0x2391: 0x000d, + 0x2392: 0x000d, 0x2393: 0x000d, 0x2394: 0x000d, 0x2395: 0x000d, 0x2396: 0x000d, 0x2397: 0x000d, + 0x2398: 0x000d, 0x2399: 0x000d, 0x239a: 0x000d, 0x239b: 0x000d, 0x239c: 0x000d, 0x239d: 0x000d, + 0x239e: 0x000d, 0x239f: 0x000d, 0x23a0: 0x000d, 0x23a1: 0x000d, 0x23a2: 0x000d, 0x23a3: 0x000d, + 0x23a4: 0x000d, 0x23a5: 0x000d, 0x23a6: 0x000d, 0x23a7: 0x000d, 0x23a8: 0x000d, 0x23a9: 0x000d, + 0x23aa: 0x000d, 0x23ab: 0x000d, 0x23ac: 0x000d, 0x23ad: 0x000d, 0x23ae: 0x000d, 0x23af: 0x000d, + 0x23b0: 0x000d, 0x23b1: 0x000d, 0x23b2: 0x000d, 0x23b3: 0x000d, 0x23b4: 0x000d, 0x23b5: 0x000d, + 0x23b6: 0x000d, 0x23b7: 0x000d, 0x23b8: 0x000d, 0x23b9: 0x000d, 0x23ba: 0x000d, 0x23bb: 0x000d, + 0x23bc: 0x000d, 0x23bd: 0x000d, 0x23be: 0x000a, 0x23bf: 0x000a, + // Block 0x8f, offset 0x23c0 + 0x23c0: 0x000d, 0x23c1: 0x000d, 0x23c2: 0x000d, 0x23c3: 0x000d, 0x23c4: 0x000d, 0x23c5: 0x000d, + 0x23c6: 0x000d, 0x23c7: 0x000d, 0x23c8: 0x000d, 0x23c9: 0x000d, 0x23ca: 0x000d, 0x23cb: 0x000d, + 0x23cc: 0x000d, 0x23cd: 0x000d, 0x23ce: 0x000d, 0x23cf: 0x000d, 0x23d0: 0x000b, 0x23d1: 0x000b, + 0x23d2: 0x000b, 0x23d3: 0x000b, 0x23d4: 0x000b, 0x23d5: 0x000b, 0x23d6: 0x000b, 0x23d7: 0x000b, + 0x23d8: 0x000b, 0x23d9: 0x000b, 0x23da: 0x000b, 0x23db: 0x000b, 0x23dc: 0x000b, 0x23dd: 0x000b, + 0x23de: 0x000b, 0x23df: 0x000b, 0x23e0: 0x000b, 0x23e1: 0x000b, 0x23e2: 0x000b, 0x23e3: 0x000b, + 0x23e4: 0x000b, 0x23e5: 0x000b, 0x23e6: 0x000b, 0x23e7: 0x000b, 0x23e8: 0x000b, 0x23e9: 0x000b, + 0x23ea: 0x000b, 0x23eb: 0x000b, 0x23ec: 0x000b, 0x23ed: 0x000b, 0x23ee: 0x000b, 0x23ef: 0x000b, + 0x23f0: 0x000d, 0x23f1: 0x000d, 0x23f2: 0x000d, 0x23f3: 0x000d, 0x23f4: 0x000d, 0x23f5: 0x000d, + 0x23f6: 0x000d, 0x23f7: 0x000d, 0x23f8: 0x000d, 0x23f9: 0x000d, 0x23fa: 0x000d, 0x23fb: 0x000d, + 0x23fc: 0x000d, 0x23fd: 0x000a, 0x23fe: 0x000d, 0x23ff: 0x000d, + // Block 0x90, offset 0x2400 + 0x2400: 0x000c, 0x2401: 0x000c, 0x2402: 0x000c, 0x2403: 0x000c, 0x2404: 0x000c, 0x2405: 0x000c, + 0x2406: 0x000c, 0x2407: 0x000c, 0x2408: 0x000c, 0x2409: 0x000c, 0x240a: 0x000c, 0x240b: 0x000c, + 0x240c: 0x000c, 0x240d: 0x000c, 0x240e: 0x000c, 0x240f: 0x000c, 0x2410: 0x000a, 0x2411: 0x000a, + 0x2412: 0x000a, 0x2413: 0x000a, 0x2414: 0x000a, 0x2415: 0x000a, 0x2416: 0x000a, 0x2417: 0x000a, + 0x2418: 0x000a, 0x2419: 0x000a, + 0x2420: 0x000c, 0x2421: 0x000c, 0x2422: 0x000c, 0x2423: 0x000c, + 0x2424: 0x000c, 0x2425: 0x000c, 0x2426: 0x000c, 0x2427: 0x000c, 0x2428: 0x000c, 0x2429: 0x000c, + 0x242a: 0x000c, 0x242b: 0x000c, 0x242c: 0x000c, 0x242d: 0x000c, 0x242e: 0x000c, 0x242f: 0x000c, + 0x2430: 0x000a, 0x2431: 0x000a, 0x2432: 0x000a, 0x2433: 0x000a, 0x2434: 0x000a, 0x2435: 0x000a, + 0x2436: 0x000a, 0x2437: 0x000a, 0x2438: 0x000a, 0x2439: 0x000a, 0x243a: 0x000a, 0x243b: 0x000a, + 0x243c: 0x000a, 0x243d: 0x000a, 0x243e: 0x000a, 0x243f: 0x000a, + // Block 0x91, offset 0x2440 + 0x2440: 0x000a, 0x2441: 0x000a, 0x2442: 0x000a, 0x2443: 0x000a, 0x2444: 0x000a, 0x2445: 0x000a, + 0x2446: 0x000a, 0x2447: 0x000a, 0x2448: 0x000a, 0x2449: 0x000a, 0x244a: 0x000a, 0x244b: 0x000a, + 0x244c: 0x000a, 0x244d: 0x000a, 0x244e: 0x000a, 0x244f: 0x000a, 0x2450: 0x0006, 0x2451: 0x000a, + 0x2452: 0x0006, 0x2454: 0x000a, 0x2455: 0x0006, 0x2456: 0x000a, 0x2457: 0x000a, + 0x2458: 0x000a, 0x2459: 0x009a, 0x245a: 0x008a, 0x245b: 0x007a, 0x245c: 0x006a, 0x245d: 0x009a, + 0x245e: 0x008a, 0x245f: 0x0004, 0x2460: 0x000a, 0x2461: 0x000a, 0x2462: 0x0003, 0x2463: 0x0003, + 0x2464: 0x000a, 0x2465: 0x000a, 0x2466: 0x000a, 0x2468: 0x000a, 0x2469: 0x0004, + 0x246a: 0x0004, 0x246b: 0x000a, + 0x2470: 0x000d, 0x2471: 0x000d, 0x2472: 0x000d, 0x2473: 0x000d, 0x2474: 0x000d, 0x2475: 0x000d, + 0x2476: 0x000d, 0x2477: 0x000d, 0x2478: 0x000d, 0x2479: 0x000d, 0x247a: 0x000d, 0x247b: 0x000d, + 0x247c: 0x000d, 0x247d: 0x000d, 0x247e: 0x000d, 0x247f: 0x000d, + // Block 0x92, offset 0x2480 + 0x2480: 0x000d, 0x2481: 0x000d, 0x2482: 0x000d, 0x2483: 0x000d, 0x2484: 0x000d, 0x2485: 0x000d, + 0x2486: 0x000d, 0x2487: 0x000d, 0x2488: 0x000d, 0x2489: 0x000d, 0x248a: 0x000d, 0x248b: 0x000d, + 0x248c: 0x000d, 0x248d: 0x000d, 0x248e: 0x000d, 0x248f: 0x000d, 0x2490: 0x000d, 0x2491: 0x000d, + 0x2492: 0x000d, 0x2493: 0x000d, 0x2494: 0x000d, 0x2495: 0x000d, 0x2496: 0x000d, 0x2497: 0x000d, + 0x2498: 0x000d, 0x2499: 0x000d, 0x249a: 0x000d, 0x249b: 0x000d, 0x249c: 0x000d, 0x249d: 0x000d, + 0x249e: 0x000d, 0x249f: 0x000d, 0x24a0: 0x000d, 0x24a1: 0x000d, 0x24a2: 0x000d, 0x24a3: 0x000d, + 0x24a4: 0x000d, 0x24a5: 0x000d, 0x24a6: 0x000d, 0x24a7: 0x000d, 0x24a8: 0x000d, 0x24a9: 0x000d, + 0x24aa: 0x000d, 0x24ab: 0x000d, 0x24ac: 0x000d, 0x24ad: 0x000d, 0x24ae: 0x000d, 0x24af: 0x000d, + 0x24b0: 0x000d, 0x24b1: 0x000d, 0x24b2: 0x000d, 0x24b3: 0x000d, 0x24b4: 0x000d, 0x24b5: 0x000d, + 0x24b6: 0x000d, 0x24b7: 0x000d, 0x24b8: 0x000d, 0x24b9: 0x000d, 0x24ba: 0x000d, 0x24bb: 0x000d, + 0x24bc: 0x000d, 0x24bd: 0x000d, 0x24be: 0x000d, 0x24bf: 0x000b, + // Block 0x93, offset 0x24c0 + 0x24c1: 0x000a, 0x24c2: 0x000a, 0x24c3: 0x0004, 0x24c4: 0x0004, 0x24c5: 0x0004, + 0x24c6: 0x000a, 0x24c7: 0x000a, 0x24c8: 0x003a, 0x24c9: 0x002a, 0x24ca: 0x000a, 0x24cb: 0x0003, + 0x24cc: 0x0006, 0x24cd: 0x0003, 0x24ce: 0x0006, 0x24cf: 0x0006, 0x24d0: 0x0002, 0x24d1: 0x0002, + 0x24d2: 0x0002, 0x24d3: 0x0002, 0x24d4: 0x0002, 0x24d5: 0x0002, 0x24d6: 0x0002, 0x24d7: 0x0002, + 0x24d8: 0x0002, 0x24d9: 0x0002, 0x24da: 0x0006, 0x24db: 0x000a, 0x24dc: 0x000a, 0x24dd: 0x000a, + 0x24de: 0x000a, 0x24df: 0x000a, 0x24e0: 0x000a, + 0x24fb: 0x005a, + 0x24fc: 0x000a, 0x24fd: 0x004a, 0x24fe: 0x000a, 0x24ff: 0x000a, + // Block 0x94, offset 0x2500 + 0x2500: 0x000a, + 0x251b: 0x005a, 0x251c: 0x000a, 0x251d: 0x004a, + 0x251e: 0x000a, 0x251f: 0x00fa, 0x2520: 0x00ea, 0x2521: 0x000a, 0x2522: 0x003a, 0x2523: 0x002a, + 0x2524: 0x000a, 0x2525: 0x000a, + // Block 0x95, offset 0x2540 + 0x2560: 0x0004, 0x2561: 0x0004, 0x2562: 0x000a, 0x2563: 0x000a, + 0x2564: 0x000a, 0x2565: 0x0004, 0x2566: 0x0004, 0x2568: 0x000a, 0x2569: 0x000a, + 0x256a: 0x000a, 0x256b: 0x000a, 0x256c: 0x000a, 0x256d: 0x000a, 0x256e: 0x000a, + 0x2570: 0x000b, 0x2571: 0x000b, 0x2572: 0x000b, 0x2573: 0x000b, 0x2574: 0x000b, 0x2575: 0x000b, + 0x2576: 0x000b, 0x2577: 0x000b, 0x2578: 0x000b, 0x2579: 0x000a, 0x257a: 0x000a, 0x257b: 0x000a, + 0x257c: 0x000a, 0x257d: 0x000a, 0x257e: 0x000b, 0x257f: 0x000b, + // Block 0x96, offset 0x2580 + 0x2581: 0x000a, + // Block 0x97, offset 0x25c0 + 0x25c0: 0x000a, 0x25c1: 0x000a, 0x25c2: 0x000a, 0x25c3: 0x000a, 0x25c4: 0x000a, 0x25c5: 0x000a, + 0x25c6: 0x000a, 0x25c7: 0x000a, 0x25c8: 0x000a, 0x25c9: 0x000a, 0x25ca: 0x000a, 0x25cb: 0x000a, + 0x25cc: 0x000a, 0x25d0: 0x000a, 0x25d1: 0x000a, + 0x25d2: 0x000a, 0x25d3: 0x000a, 0x25d4: 0x000a, 0x25d5: 0x000a, 0x25d6: 0x000a, 0x25d7: 0x000a, + 0x25d8: 0x000a, 0x25d9: 0x000a, 0x25da: 0x000a, 0x25db: 0x000a, + 0x25e0: 0x000a, + // Block 0x98, offset 0x2600 + 0x263d: 0x000c, + // Block 0x99, offset 0x2640 + 0x2660: 0x000c, 0x2661: 0x0002, 0x2662: 0x0002, 0x2663: 0x0002, + 0x2664: 0x0002, 0x2665: 0x0002, 0x2666: 0x0002, 0x2667: 0x0002, 0x2668: 0x0002, 0x2669: 0x0002, + 0x266a: 0x0002, 0x266b: 0x0002, 0x266c: 0x0002, 0x266d: 0x0002, 0x266e: 0x0002, 0x266f: 0x0002, + 0x2670: 0x0002, 0x2671: 0x0002, 0x2672: 0x0002, 0x2673: 0x0002, 0x2674: 0x0002, 0x2675: 0x0002, + 0x2676: 0x0002, 0x2677: 0x0002, 0x2678: 0x0002, 0x2679: 0x0002, 0x267a: 0x0002, 0x267b: 0x0002, + // Block 0x9a, offset 0x2680 + 0x26b6: 0x000c, 0x26b7: 0x000c, 0x26b8: 0x000c, 0x26b9: 0x000c, 0x26ba: 0x000c, + // Block 0x9b, offset 0x26c0 + 0x26c0: 0x0001, 0x26c1: 0x0001, 0x26c2: 0x0001, 0x26c3: 0x0001, 0x26c4: 0x0001, 0x26c5: 0x0001, + 0x26c6: 0x0001, 0x26c7: 0x0001, 0x26c8: 0x0001, 0x26c9: 0x0001, 0x26ca: 0x0001, 0x26cb: 0x0001, + 0x26cc: 0x0001, 0x26cd: 0x0001, 0x26ce: 0x0001, 0x26cf: 0x0001, 0x26d0: 0x0001, 0x26d1: 0x0001, + 0x26d2: 0x0001, 0x26d3: 0x0001, 0x26d4: 0x0001, 0x26d5: 0x0001, 0x26d6: 0x0001, 0x26d7: 0x0001, + 0x26d8: 0x0001, 0x26d9: 0x0001, 0x26da: 0x0001, 0x26db: 0x0001, 0x26dc: 0x0001, 0x26dd: 0x0001, + 0x26de: 0x0001, 0x26df: 0x0001, 0x26e0: 0x0001, 0x26e1: 0x0001, 0x26e2: 0x0001, 0x26e3: 0x0001, + 0x26e4: 0x0001, 0x26e5: 0x0001, 0x26e6: 0x0001, 0x26e7: 0x0001, 0x26e8: 0x0001, 0x26e9: 0x0001, + 0x26ea: 0x0001, 0x26eb: 0x0001, 0x26ec: 0x0001, 0x26ed: 0x0001, 0x26ee: 0x0001, 0x26ef: 0x0001, + 0x26f0: 0x0001, 0x26f1: 0x0001, 0x26f2: 0x0001, 0x26f3: 0x0001, 0x26f4: 0x0001, 0x26f5: 0x0001, + 0x26f6: 0x0001, 0x26f7: 0x0001, 0x26f8: 0x0001, 0x26f9: 0x0001, 0x26fa: 0x0001, 0x26fb: 0x0001, + 0x26fc: 0x0001, 0x26fd: 0x0001, 0x26fe: 0x0001, 0x26ff: 0x0001, + // Block 0x9c, offset 0x2700 + 0x2700: 0x0001, 0x2701: 0x0001, 0x2702: 0x0001, 0x2703: 0x0001, 0x2704: 0x0001, 0x2705: 0x0001, + 0x2706: 0x0001, 0x2707: 0x0001, 0x2708: 0x0001, 0x2709: 0x0001, 0x270a: 0x0001, 0x270b: 0x0001, + 0x270c: 0x0001, 0x270d: 0x0001, 0x270e: 0x0001, 0x270f: 0x0001, 0x2710: 0x0001, 0x2711: 0x0001, + 0x2712: 0x0001, 0x2713: 0x0001, 0x2714: 0x0001, 0x2715: 0x0001, 0x2716: 0x0001, 0x2717: 0x0001, + 0x2718: 0x0001, 0x2719: 0x0001, 0x271a: 0x0001, 0x271b: 0x0001, 0x271c: 0x0001, 0x271d: 0x0001, + 0x271e: 0x0001, 0x271f: 0x000a, 0x2720: 0x0001, 0x2721: 0x0001, 0x2722: 0x0001, 0x2723: 0x0001, + 0x2724: 0x0001, 0x2725: 0x0001, 0x2726: 0x0001, 0x2727: 0x0001, 0x2728: 0x0001, 0x2729: 0x0001, + 0x272a: 0x0001, 0x272b: 0x0001, 0x272c: 0x0001, 0x272d: 0x0001, 0x272e: 0x0001, 0x272f: 0x0001, + 0x2730: 0x0001, 0x2731: 0x0001, 0x2732: 0x0001, 0x2733: 0x0001, 0x2734: 0x0001, 0x2735: 0x0001, + 0x2736: 0x0001, 0x2737: 0x0001, 0x2738: 0x0001, 0x2739: 0x0001, 0x273a: 0x0001, 0x273b: 0x0001, + 0x273c: 0x0001, 0x273d: 0x0001, 0x273e: 0x0001, 0x273f: 0x0001, + // Block 0x9d, offset 0x2740 + 0x2740: 0x0001, 0x2741: 0x000c, 0x2742: 0x000c, 0x2743: 0x000c, 0x2744: 0x0001, 0x2745: 0x000c, + 0x2746: 0x000c, 0x2747: 0x0001, 0x2748: 0x0001, 0x2749: 0x0001, 0x274a: 0x0001, 0x274b: 0x0001, + 0x274c: 0x000c, 0x274d: 0x000c, 0x274e: 0x000c, 0x274f: 0x000c, 0x2750: 0x0001, 0x2751: 0x0001, + 0x2752: 0x0001, 0x2753: 0x0001, 0x2754: 0x0001, 0x2755: 0x0001, 0x2756: 0x0001, 0x2757: 0x0001, + 0x2758: 0x0001, 0x2759: 0x0001, 0x275a: 0x0001, 0x275b: 0x0001, 0x275c: 0x0001, 0x275d: 0x0001, + 0x275e: 0x0001, 0x275f: 0x0001, 0x2760: 0x0001, 0x2761: 0x0001, 0x2762: 0x0001, 0x2763: 0x0001, + 0x2764: 0x0001, 0x2765: 0x0001, 0x2766: 0x0001, 0x2767: 0x0001, 0x2768: 0x0001, 0x2769: 0x0001, + 0x276a: 0x0001, 0x276b: 0x0001, 0x276c: 0x0001, 0x276d: 0x0001, 0x276e: 0x0001, 0x276f: 0x0001, + 0x2770: 0x0001, 0x2771: 0x0001, 0x2772: 0x0001, 0x2773: 0x0001, 0x2774: 0x0001, 0x2775: 0x0001, + 0x2776: 0x0001, 0x2777: 0x0001, 0x2778: 0x000c, 0x2779: 0x000c, 0x277a: 0x000c, 0x277b: 0x0001, + 0x277c: 0x0001, 0x277d: 0x0001, 0x277e: 0x0001, 0x277f: 0x000c, + // Block 0x9e, offset 0x2780 + 0x2780: 0x0001, 0x2781: 0x0001, 0x2782: 0x0001, 0x2783: 0x0001, 0x2784: 0x0001, 0x2785: 0x0001, + 0x2786: 0x0001, 0x2787: 0x0001, 0x2788: 0x0001, 0x2789: 0x0001, 0x278a: 0x0001, 0x278b: 0x0001, + 0x278c: 0x0001, 0x278d: 0x0001, 0x278e: 0x0001, 0x278f: 0x0001, 0x2790: 0x0001, 0x2791: 0x0001, + 0x2792: 0x0001, 0x2793: 0x0001, 0x2794: 0x0001, 0x2795: 0x0001, 0x2796: 0x0001, 0x2797: 0x0001, + 0x2798: 0x0001, 0x2799: 0x0001, 0x279a: 0x0001, 0x279b: 0x0001, 0x279c: 0x0001, 0x279d: 0x0001, + 0x279e: 0x0001, 0x279f: 0x0001, 0x27a0: 0x0001, 0x27a1: 0x0001, 0x27a2: 0x0001, 0x27a3: 0x0001, + 0x27a4: 0x0001, 0x27a5: 0x000c, 0x27a6: 0x000c, 0x27a7: 0x0001, 0x27a8: 0x0001, 0x27a9: 0x0001, + 0x27aa: 0x0001, 0x27ab: 0x0001, 0x27ac: 0x0001, 0x27ad: 0x0001, 0x27ae: 0x0001, 0x27af: 0x0001, + 0x27b0: 0x0001, 0x27b1: 0x0001, 0x27b2: 0x0001, 0x27b3: 0x0001, 0x27b4: 0x0001, 0x27b5: 0x0001, + 0x27b6: 0x0001, 0x27b7: 0x0001, 0x27b8: 0x0001, 0x27b9: 0x0001, 0x27ba: 0x0001, 0x27bb: 0x0001, + 0x27bc: 0x0001, 0x27bd: 0x0001, 0x27be: 0x0001, 0x27bf: 0x0001, + // Block 0x9f, offset 0x27c0 + 0x27c0: 0x0001, 0x27c1: 0x0001, 0x27c2: 0x0001, 0x27c3: 0x0001, 0x27c4: 0x0001, 0x27c5: 0x0001, + 0x27c6: 0x0001, 0x27c7: 0x0001, 0x27c8: 0x0001, 0x27c9: 0x0001, 0x27ca: 0x0001, 0x27cb: 0x0001, + 0x27cc: 0x0001, 0x27cd: 0x0001, 0x27ce: 0x0001, 0x27cf: 0x0001, 0x27d0: 0x0001, 0x27d1: 0x0001, + 0x27d2: 0x0001, 0x27d3: 0x0001, 0x27d4: 0x0001, 0x27d5: 0x0001, 0x27d6: 0x0001, 0x27d7: 0x0001, + 0x27d8: 0x0001, 0x27d9: 0x0001, 0x27da: 0x0001, 0x27db: 0x0001, 0x27dc: 0x0001, 0x27dd: 0x0001, + 0x27de: 0x0001, 0x27df: 0x0001, 0x27e0: 0x0001, 0x27e1: 0x0001, 0x27e2: 0x0001, 0x27e3: 0x0001, + 0x27e4: 0x0001, 0x27e5: 0x0001, 0x27e6: 0x0001, 0x27e7: 0x0001, 0x27e8: 0x0001, 0x27e9: 0x0001, + 0x27ea: 0x0001, 0x27eb: 0x0001, 0x27ec: 0x0001, 0x27ed: 0x0001, 0x27ee: 0x0001, 0x27ef: 0x0001, + 0x27f0: 0x0001, 0x27f1: 0x0001, 0x27f2: 0x0001, 0x27f3: 0x0001, 0x27f4: 0x0001, 0x27f5: 0x0001, + 0x27f6: 0x0001, 0x27f7: 0x0001, 0x27f8: 0x0001, 0x27f9: 0x000a, 0x27fa: 0x000a, 0x27fb: 0x000a, + 0x27fc: 0x000a, 0x27fd: 0x000a, 0x27fe: 0x000a, 0x27ff: 0x000a, + // Block 0xa0, offset 0x2800 + 0x2800: 0x000d, 0x2801: 0x000d, 0x2802: 0x000d, 0x2803: 0x000d, 0x2804: 0x000d, 0x2805: 0x000d, + 0x2806: 0x000d, 0x2807: 0x000d, 0x2808: 0x000d, 0x2809: 0x000d, 0x280a: 0x000d, 0x280b: 0x000d, + 0x280c: 0x000d, 0x280d: 0x000d, 0x280e: 0x000d, 0x280f: 0x000d, 0x2810: 0x000d, 0x2811: 0x000d, + 0x2812: 0x000d, 0x2813: 0x000d, 0x2814: 0x000d, 0x2815: 0x000d, 0x2816: 0x000d, 0x2817: 0x000d, + 0x2818: 0x000d, 0x2819: 0x000d, 0x281a: 0x000d, 0x281b: 0x000d, 0x281c: 0x000d, 0x281d: 0x000d, + 0x281e: 0x000d, 0x281f: 0x000d, 0x2820: 0x000d, 0x2821: 0x000d, 0x2822: 0x000d, 0x2823: 0x000d, + 0x2824: 0x000c, 0x2825: 0x000c, 0x2826: 0x000c, 0x2827: 0x000c, 0x2828: 0x000d, 0x2829: 0x000d, + 0x282a: 0x000d, 0x282b: 0x000d, 0x282c: 0x000d, 0x282d: 0x000d, 0x282e: 0x000d, 0x282f: 0x000d, + 0x2830: 0x0005, 0x2831: 0x0005, 0x2832: 0x0005, 0x2833: 0x0005, 0x2834: 0x0005, 0x2835: 0x0005, + 0x2836: 0x0005, 0x2837: 0x0005, 0x2838: 0x0005, 0x2839: 0x0005, 0x283a: 0x000d, 0x283b: 0x000d, + 0x283c: 0x000d, 0x283d: 0x000d, 0x283e: 0x000d, 0x283f: 0x000d, + // Block 0xa1, offset 0x2840 + 0x2840: 0x0001, 0x2841: 0x0001, 0x2842: 0x0001, 0x2843: 0x0001, 0x2844: 0x0001, 0x2845: 0x0001, + 0x2846: 0x0001, 0x2847: 0x0001, 0x2848: 0x0001, 0x2849: 0x0001, 0x284a: 0x0001, 0x284b: 0x0001, + 0x284c: 0x0001, 0x284d: 0x0001, 0x284e: 0x0001, 0x284f: 0x0001, 0x2850: 0x0001, 0x2851: 0x0001, + 0x2852: 0x0001, 0x2853: 0x0001, 0x2854: 0x0001, 0x2855: 0x0001, 0x2856: 0x0001, 0x2857: 0x0001, + 0x2858: 0x0001, 0x2859: 0x0001, 0x285a: 0x0001, 0x285b: 0x0001, 0x285c: 0x0001, 0x285d: 0x0001, + 0x285e: 0x0001, 0x285f: 0x0001, 0x2860: 0x0005, 0x2861: 0x0005, 0x2862: 0x0005, 0x2863: 0x0005, + 0x2864: 0x0005, 0x2865: 0x0005, 0x2866: 0x0005, 0x2867: 0x0005, 0x2868: 0x0005, 0x2869: 0x0005, + 0x286a: 0x0005, 0x286b: 0x0005, 0x286c: 0x0005, 0x286d: 0x0005, 0x286e: 0x0005, 0x286f: 0x0005, + 0x2870: 0x0005, 0x2871: 0x0005, 0x2872: 0x0005, 0x2873: 0x0005, 0x2874: 0x0005, 0x2875: 0x0005, + 0x2876: 0x0005, 0x2877: 0x0005, 0x2878: 0x0005, 0x2879: 0x0005, 0x287a: 0x0005, 0x287b: 0x0005, + 0x287c: 0x0005, 0x287d: 0x0005, 0x287e: 0x0005, 0x287f: 0x0001, + // Block 0xa2, offset 0x2880 + 0x2880: 0x0001, 0x2881: 0x0001, 0x2882: 0x0001, 0x2883: 0x0001, 0x2884: 0x0001, 0x2885: 0x0001, + 0x2886: 0x0001, 0x2887: 0x0001, 0x2888: 0x0001, 0x2889: 0x0001, 0x288a: 0x0001, 0x288b: 0x0001, + 0x288c: 0x0001, 0x288d: 0x0001, 0x288e: 0x0001, 0x288f: 0x0001, 0x2890: 0x0001, 0x2891: 0x0001, + 0x2892: 0x0001, 0x2893: 0x0001, 0x2894: 0x0001, 0x2895: 0x0001, 0x2896: 0x0001, 0x2897: 0x0001, + 0x2898: 0x0001, 0x2899: 0x0001, 0x289a: 0x0001, 0x289b: 0x0001, 0x289c: 0x0001, 0x289d: 0x0001, + 0x289e: 0x0001, 0x289f: 0x0001, 0x28a0: 0x0001, 0x28a1: 0x0001, 0x28a2: 0x0001, 0x28a3: 0x0001, + 0x28a4: 0x0001, 0x28a5: 0x0001, 0x28a6: 0x0001, 0x28a7: 0x0001, 0x28a8: 0x0001, 0x28a9: 0x0001, + 0x28aa: 0x0001, 0x28ab: 0x0001, 0x28ac: 0x0001, 0x28ad: 0x0001, 0x28ae: 0x0001, 0x28af: 0x0001, + 0x28b0: 0x000d, 0x28b1: 0x000d, 0x28b2: 0x000d, 0x28b3: 0x000d, 0x28b4: 0x000d, 0x28b5: 0x000d, + 0x28b6: 0x000d, 0x28b7: 0x000d, 0x28b8: 0x000d, 0x28b9: 0x000d, 0x28ba: 0x000d, 0x28bb: 0x000d, + 0x28bc: 0x000d, 0x28bd: 0x000d, 0x28be: 0x000d, 0x28bf: 0x000d, + // Block 0xa3, offset 0x28c0 + 0x28c0: 0x000d, 0x28c1: 0x000d, 0x28c2: 0x000d, 0x28c3: 0x000d, 0x28c4: 0x000d, 0x28c5: 0x000d, + 0x28c6: 0x000c, 0x28c7: 0x000c, 0x28c8: 0x000c, 0x28c9: 0x000c, 0x28ca: 0x000c, 0x28cb: 0x000c, + 0x28cc: 0x000c, 0x28cd: 0x000c, 0x28ce: 0x000c, 0x28cf: 0x000c, 0x28d0: 0x000c, 0x28d1: 0x000d, + 0x28d2: 0x000d, 0x28d3: 0x000d, 0x28d4: 0x000d, 0x28d5: 0x000d, 0x28d6: 0x000d, 0x28d7: 0x000d, + 0x28d8: 0x000d, 0x28d9: 0x000d, 0x28da: 0x000d, 0x28db: 0x000d, 0x28dc: 0x000d, 0x28dd: 0x000d, + 0x28de: 0x000d, 0x28df: 0x000d, 0x28e0: 0x000d, 0x28e1: 0x000d, 0x28e2: 0x000d, 0x28e3: 0x000d, + 0x28e4: 0x000d, 0x28e5: 0x000d, 0x28e6: 0x000d, 0x28e7: 0x000d, 0x28e8: 0x000d, 0x28e9: 0x000d, + 0x28ea: 0x000d, 0x28eb: 0x000d, 0x28ec: 0x000d, 0x28ed: 0x000d, 0x28ee: 0x000d, 0x28ef: 0x000d, + 0x28f0: 0x0001, 0x28f1: 0x0001, 0x28f2: 0x0001, 0x28f3: 0x0001, 0x28f4: 0x0001, 0x28f5: 0x0001, + 0x28f6: 0x0001, 0x28f7: 0x0001, 0x28f8: 0x0001, 0x28f9: 0x0001, 0x28fa: 0x0001, 0x28fb: 0x0001, + 0x28fc: 0x0001, 0x28fd: 0x0001, 0x28fe: 0x0001, 0x28ff: 0x0001, + // Block 0xa4, offset 0x2900 + 0x2901: 0x000c, + 0x2938: 0x000c, 0x2939: 0x000c, 0x293a: 0x000c, 0x293b: 0x000c, + 0x293c: 0x000c, 0x293d: 0x000c, 0x293e: 0x000c, 0x293f: 0x000c, + // Block 0xa5, offset 0x2940 + 0x2940: 0x000c, 0x2941: 0x000c, 0x2942: 0x000c, 0x2943: 0x000c, 0x2944: 0x000c, 0x2945: 0x000c, + 0x2946: 0x000c, + 0x2952: 0x000a, 0x2953: 0x000a, 0x2954: 0x000a, 0x2955: 0x000a, 0x2956: 0x000a, 0x2957: 0x000a, + 0x2958: 0x000a, 0x2959: 0x000a, 0x295a: 0x000a, 0x295b: 0x000a, 0x295c: 0x000a, 0x295d: 0x000a, + 0x295e: 0x000a, 0x295f: 0x000a, 0x2960: 0x000a, 0x2961: 0x000a, 0x2962: 0x000a, 0x2963: 0x000a, + 0x2964: 0x000a, 0x2965: 0x000a, + 0x297f: 0x000c, + // Block 0xa6, offset 0x2980 + 0x2980: 0x000c, 0x2981: 0x000c, + 0x29b3: 0x000c, 0x29b4: 0x000c, 0x29b5: 0x000c, + 0x29b6: 0x000c, 0x29b9: 0x000c, 0x29ba: 0x000c, + // Block 0xa7, offset 0x29c0 + 0x29c0: 0x000c, 0x29c1: 0x000c, 0x29c2: 0x000c, + 0x29e7: 0x000c, 0x29e8: 0x000c, 0x29e9: 0x000c, + 0x29ea: 0x000c, 0x29eb: 0x000c, 0x29ed: 0x000c, 0x29ee: 0x000c, 0x29ef: 0x000c, + 0x29f0: 0x000c, 0x29f1: 0x000c, 0x29f2: 0x000c, 0x29f3: 0x000c, 0x29f4: 0x000c, + // Block 0xa8, offset 0x2a00 + 0x2a33: 0x000c, + // Block 0xa9, offset 0x2a40 + 0x2a40: 0x000c, 0x2a41: 0x000c, + 0x2a76: 0x000c, 0x2a77: 0x000c, 0x2a78: 0x000c, 0x2a79: 0x000c, 0x2a7a: 0x000c, 0x2a7b: 0x000c, + 0x2a7c: 0x000c, 0x2a7d: 0x000c, 0x2a7e: 0x000c, + // Block 0xaa, offset 0x2a80 + 0x2a89: 0x000c, 0x2a8a: 0x000c, 0x2a8b: 0x000c, + 0x2a8c: 0x000c, + // Block 0xab, offset 0x2ac0 + 0x2aef: 0x000c, + 0x2af0: 0x000c, 0x2af1: 0x000c, 0x2af4: 0x000c, + 0x2af6: 0x000c, 0x2af7: 0x000c, + 0x2afe: 0x000c, + // Block 0xac, offset 0x2b00 + 0x2b1f: 0x000c, 0x2b23: 0x000c, + 0x2b24: 0x000c, 0x2b25: 0x000c, 0x2b26: 0x000c, 0x2b27: 0x000c, 0x2b28: 0x000c, 0x2b29: 0x000c, + 0x2b2a: 0x000c, + // Block 0xad, offset 0x2b40 + 0x2b40: 0x000c, + 0x2b66: 0x000c, 0x2b67: 0x000c, 0x2b68: 0x000c, 0x2b69: 0x000c, + 0x2b6a: 0x000c, 0x2b6b: 0x000c, 0x2b6c: 0x000c, + 0x2b70: 0x000c, 0x2b71: 0x000c, 0x2b72: 0x000c, 0x2b73: 0x000c, 0x2b74: 0x000c, + // Block 0xae, offset 0x2b80 + 0x2bb8: 0x000c, 0x2bb9: 0x000c, 0x2bba: 0x000c, 0x2bbb: 0x000c, + 0x2bbc: 0x000c, 0x2bbd: 0x000c, 0x2bbe: 0x000c, 0x2bbf: 0x000c, + // Block 0xaf, offset 0x2bc0 + 0x2bc2: 0x000c, 0x2bc3: 0x000c, 0x2bc4: 0x000c, + 0x2bc6: 0x000c, + 0x2bde: 0x000c, + // Block 0xb0, offset 0x2c00 + 0x2c33: 0x000c, 0x2c34: 0x000c, 0x2c35: 0x000c, + 0x2c36: 0x000c, 0x2c37: 0x000c, 0x2c38: 0x000c, 0x2c3a: 0x000c, + 0x2c3f: 0x000c, + // Block 0xb1, offset 0x2c40 + 0x2c40: 0x000c, 0x2c42: 0x000c, 0x2c43: 0x000c, + // Block 0xb2, offset 0x2c80 + 0x2cb2: 0x000c, 0x2cb3: 0x000c, 0x2cb4: 0x000c, 0x2cb5: 0x000c, + 0x2cbc: 0x000c, 0x2cbd: 0x000c, 0x2cbf: 0x000c, + // Block 0xb3, offset 0x2cc0 + 0x2cc0: 0x000c, + 0x2cdc: 0x000c, 0x2cdd: 0x000c, + // Block 0xb4, offset 0x2d00 + 0x2d33: 0x000c, 0x2d34: 0x000c, 0x2d35: 0x000c, + 0x2d36: 0x000c, 0x2d37: 0x000c, 0x2d38: 0x000c, 0x2d39: 0x000c, 0x2d3a: 0x000c, + 0x2d3d: 0x000c, 0x2d3f: 0x000c, + // Block 0xb5, offset 0x2d40 + 0x2d40: 0x000c, + 0x2d60: 0x000a, 0x2d61: 0x000a, 0x2d62: 0x000a, 0x2d63: 0x000a, + 0x2d64: 0x000a, 0x2d65: 0x000a, 0x2d66: 0x000a, 0x2d67: 0x000a, 0x2d68: 0x000a, 0x2d69: 0x000a, + 0x2d6a: 0x000a, 0x2d6b: 0x000a, 0x2d6c: 0x000a, + // Block 0xb6, offset 0x2d80 + 0x2dab: 0x000c, 0x2dad: 0x000c, + 0x2db0: 0x000c, 0x2db1: 0x000c, 0x2db2: 0x000c, 0x2db3: 0x000c, 0x2db4: 0x000c, 0x2db5: 0x000c, + 0x2db7: 0x000c, + // Block 0xb7, offset 0x2dc0 + 0x2ddd: 0x000c, + 0x2dde: 0x000c, 0x2ddf: 0x000c, 0x2de2: 0x000c, 0x2de3: 0x000c, + 0x2de4: 0x000c, 0x2de5: 0x000c, 0x2de7: 0x000c, 0x2de8: 0x000c, 0x2de9: 0x000c, + 0x2dea: 0x000c, 0x2deb: 0x000c, + // Block 0xb8, offset 0x2e00 + 0x2e2f: 0x000c, + 0x2e30: 0x000c, 0x2e31: 0x000c, 0x2e32: 0x000c, 0x2e33: 0x000c, 0x2e34: 0x000c, 0x2e35: 0x000c, + 0x2e36: 0x000c, 0x2e37: 0x000c, 0x2e39: 0x000c, 0x2e3a: 0x000c, + // Block 0xb9, offset 0x2e40 + 0x2e54: 0x000c, 0x2e55: 0x000c, 0x2e56: 0x000c, 0x2e57: 0x000c, + 0x2e5a: 0x000c, 0x2e5b: 0x000c, + 0x2e60: 0x000c, + // Block 0xba, offset 0x2e80 + 0x2e81: 0x000c, 0x2e82: 0x000c, 0x2e83: 0x000c, 0x2e84: 0x000c, 0x2e85: 0x000c, + 0x2e86: 0x000c, 0x2e89: 0x000c, 0x2e8a: 0x000c, + 0x2eb3: 0x000c, 0x2eb4: 0x000c, 0x2eb5: 0x000c, + 0x2eb6: 0x000c, 0x2eb7: 0x000c, 0x2eb8: 0x000c, 0x2ebb: 0x000c, + 0x2ebc: 0x000c, 0x2ebd: 0x000c, 0x2ebe: 0x000c, + // Block 0xbb, offset 0x2ec0 + 0x2ec7: 0x000c, + 0x2ed1: 0x000c, + 0x2ed2: 0x000c, 0x2ed3: 0x000c, 0x2ed4: 0x000c, 0x2ed5: 0x000c, 0x2ed6: 0x000c, + 0x2ed9: 0x000c, 0x2eda: 0x000c, 0x2edb: 0x000c, + // Block 0xbc, offset 0x2f00 + 0x2f0a: 0x000c, 0x2f0b: 0x000c, + 0x2f0c: 0x000c, 0x2f0d: 0x000c, 0x2f0e: 0x000c, 0x2f0f: 0x000c, 0x2f10: 0x000c, 0x2f11: 0x000c, + 0x2f12: 0x000c, 0x2f13: 0x000c, 0x2f14: 0x000c, 0x2f15: 0x000c, 0x2f16: 0x000c, + 0x2f18: 0x000c, 0x2f19: 0x000c, + // Block 0xbd, offset 0x2f40 + 0x2f70: 0x000c, 0x2f71: 0x000c, 0x2f72: 0x000c, 0x2f73: 0x000c, 0x2f74: 0x000c, 0x2f75: 0x000c, + 0x2f76: 0x000c, 0x2f78: 0x000c, 0x2f79: 0x000c, 0x2f7a: 0x000c, 0x2f7b: 0x000c, + 0x2f7c: 0x000c, 0x2f7d: 0x000c, + // Block 0xbe, offset 0x2f80 + 0x2f92: 0x000c, 0x2f93: 0x000c, 0x2f94: 0x000c, 0x2f95: 0x000c, 0x2f96: 0x000c, 0x2f97: 0x000c, + 0x2f98: 0x000c, 0x2f99: 0x000c, 0x2f9a: 0x000c, 0x2f9b: 0x000c, 0x2f9c: 0x000c, 0x2f9d: 0x000c, + 0x2f9e: 0x000c, 0x2f9f: 0x000c, 0x2fa0: 0x000c, 0x2fa1: 0x000c, 0x2fa2: 0x000c, 0x2fa3: 0x000c, + 0x2fa4: 0x000c, 0x2fa5: 0x000c, 0x2fa6: 0x000c, 0x2fa7: 0x000c, + 0x2faa: 0x000c, 0x2fab: 0x000c, 0x2fac: 0x000c, 0x2fad: 0x000c, 0x2fae: 0x000c, 0x2faf: 0x000c, + 0x2fb0: 0x000c, 0x2fb2: 0x000c, 0x2fb3: 0x000c, 0x2fb5: 0x000c, + 0x2fb6: 0x000c, + // Block 0xbf, offset 0x2fc0 + 0x2ff1: 0x000c, 0x2ff2: 0x000c, 0x2ff3: 0x000c, 0x2ff4: 0x000c, 0x2ff5: 0x000c, + 0x2ff6: 0x000c, 0x2ffa: 0x000c, + 0x2ffc: 0x000c, 0x2ffd: 0x000c, 0x2fff: 0x000c, + // Block 0xc0, offset 0x3000 + 0x3000: 0x000c, 0x3001: 0x000c, 0x3002: 0x000c, 0x3003: 0x000c, 0x3004: 0x000c, 0x3005: 0x000c, + 0x3007: 0x000c, + // Block 0xc1, offset 0x3040 + 0x3050: 0x000c, 0x3051: 0x000c, + 0x3055: 0x000c, 0x3057: 0x000c, + // Block 0xc2, offset 0x3080 + 0x30b3: 0x000c, 0x30b4: 0x000c, + // Block 0xc3, offset 0x30c0 + 0x30d5: 0x000a, 0x30d6: 0x000a, 0x30d7: 0x000a, + 0x30d8: 0x000a, 0x30d9: 0x000a, 0x30da: 0x000a, 0x30db: 0x000a, 0x30dc: 0x000a, 0x30dd: 0x0004, + 0x30de: 0x0004, 0x30df: 0x0004, 0x30e0: 0x0004, 0x30e1: 0x000a, 0x30e2: 0x000a, 0x30e3: 0x000a, + 0x30e4: 0x000a, 0x30e5: 0x000a, 0x30e6: 0x000a, 0x30e7: 0x000a, 0x30e8: 0x000a, 0x30e9: 0x000a, + 0x30ea: 0x000a, 0x30eb: 0x000a, 0x30ec: 0x000a, 0x30ed: 0x000a, 0x30ee: 0x000a, 0x30ef: 0x000a, + 0x30f0: 0x000a, 0x30f1: 0x000a, + // Block 0xc4, offset 0x3100 + 0x3130: 0x000c, 0x3131: 0x000c, 0x3132: 0x000c, 0x3133: 0x000c, 0x3134: 0x000c, + // Block 0xc5, offset 0x3140 + 0x3170: 0x000c, 0x3171: 0x000c, 0x3172: 0x000c, 0x3173: 0x000c, 0x3174: 0x000c, 0x3175: 0x000c, + 0x3176: 0x000c, + // Block 0xc6, offset 0x3180 + 0x318f: 0x000c, + // Block 0xc7, offset 0x31c0 + 0x31cf: 0x000c, 0x31d0: 0x000c, 0x31d1: 0x000c, + 0x31d2: 0x000c, + // Block 0xc8, offset 0x3200 + 0x3222: 0x000a, + // Block 0xc9, offset 0x3240 + 0x325d: 0x000c, + 0x325e: 0x000c, 0x3260: 0x000b, 0x3261: 0x000b, 0x3262: 0x000b, 0x3263: 0x000b, + // Block 0xca, offset 0x3280 + 0x32a7: 0x000c, 0x32a8: 0x000c, 0x32a9: 0x000c, + 0x32b3: 0x000b, 0x32b4: 0x000b, 0x32b5: 0x000b, + 0x32b6: 0x000b, 0x32b7: 0x000b, 0x32b8: 0x000b, 0x32b9: 0x000b, 0x32ba: 0x000b, 0x32bb: 0x000c, + 0x32bc: 0x000c, 0x32bd: 0x000c, 0x32be: 0x000c, 0x32bf: 0x000c, + // Block 0xcb, offset 0x32c0 + 0x32c0: 0x000c, 0x32c1: 0x000c, 0x32c2: 0x000c, 0x32c5: 0x000c, + 0x32c6: 0x000c, 0x32c7: 0x000c, 0x32c8: 0x000c, 0x32c9: 0x000c, 0x32ca: 0x000c, 0x32cb: 0x000c, + 0x32ea: 0x000c, 0x32eb: 0x000c, 0x32ec: 0x000c, 0x32ed: 0x000c, + // Block 0xcc, offset 0x3300 + 0x3300: 0x000a, 0x3301: 0x000a, 0x3302: 0x000c, 0x3303: 0x000c, 0x3304: 0x000c, 0x3305: 0x000a, + // Block 0xcd, offset 0x3340 + 0x3340: 0x000a, 0x3341: 0x000a, 0x3342: 0x000a, 0x3343: 0x000a, 0x3344: 0x000a, 0x3345: 0x000a, + 0x3346: 0x000a, 0x3347: 0x000a, 0x3348: 0x000a, 0x3349: 0x000a, 0x334a: 0x000a, 0x334b: 0x000a, + 0x334c: 0x000a, 0x334d: 0x000a, 0x334e: 0x000a, 0x334f: 0x000a, 0x3350: 0x000a, 0x3351: 0x000a, + 0x3352: 0x000a, 0x3353: 0x000a, 0x3354: 0x000a, 0x3355: 0x000a, 0x3356: 0x000a, + // Block 0xce, offset 0x3380 + 0x339b: 0x000a, + // Block 0xcf, offset 0x33c0 + 0x33d5: 0x000a, + // Block 0xd0, offset 0x3400 + 0x340f: 0x000a, + // Block 0xd1, offset 0x3440 + 0x3449: 0x000a, + // Block 0xd2, offset 0x3480 + 0x3483: 0x000a, + 0x348e: 0x0002, 0x348f: 0x0002, 0x3490: 0x0002, 0x3491: 0x0002, + 0x3492: 0x0002, 0x3493: 0x0002, 0x3494: 0x0002, 0x3495: 0x0002, 0x3496: 0x0002, 0x3497: 0x0002, + 0x3498: 0x0002, 0x3499: 0x0002, 0x349a: 0x0002, 0x349b: 0x0002, 0x349c: 0x0002, 0x349d: 0x0002, + 0x349e: 0x0002, 0x349f: 0x0002, 0x34a0: 0x0002, 0x34a1: 0x0002, 0x34a2: 0x0002, 0x34a3: 0x0002, + 0x34a4: 0x0002, 0x34a5: 0x0002, 0x34a6: 0x0002, 0x34a7: 0x0002, 0x34a8: 0x0002, 0x34a9: 0x0002, + 0x34aa: 0x0002, 0x34ab: 0x0002, 0x34ac: 0x0002, 0x34ad: 0x0002, 0x34ae: 0x0002, 0x34af: 0x0002, + 0x34b0: 0x0002, 0x34b1: 0x0002, 0x34b2: 0x0002, 0x34b3: 0x0002, 0x34b4: 0x0002, 0x34b5: 0x0002, + 0x34b6: 0x0002, 0x34b7: 0x0002, 0x34b8: 0x0002, 0x34b9: 0x0002, 0x34ba: 0x0002, 0x34bb: 0x0002, + 0x34bc: 0x0002, 0x34bd: 0x0002, 0x34be: 0x0002, 0x34bf: 0x0002, + // Block 0xd3, offset 0x34c0 + 0x34c0: 0x000c, 0x34c1: 0x000c, 0x34c2: 0x000c, 0x34c3: 0x000c, 0x34c4: 0x000c, 0x34c5: 0x000c, + 0x34c6: 0x000c, 0x34c7: 0x000c, 0x34c8: 0x000c, 0x34c9: 0x000c, 0x34ca: 0x000c, 0x34cb: 0x000c, + 0x34cc: 0x000c, 0x34cd: 0x000c, 0x34ce: 0x000c, 0x34cf: 0x000c, 0x34d0: 0x000c, 0x34d1: 0x000c, + 0x34d2: 0x000c, 0x34d3: 0x000c, 0x34d4: 0x000c, 0x34d5: 0x000c, 0x34d6: 0x000c, 0x34d7: 0x000c, + 0x34d8: 0x000c, 0x34d9: 0x000c, 0x34da: 0x000c, 0x34db: 0x000c, 0x34dc: 0x000c, 0x34dd: 0x000c, + 0x34de: 0x000c, 0x34df: 0x000c, 0x34e0: 0x000c, 0x34e1: 0x000c, 0x34e2: 0x000c, 0x34e3: 0x000c, + 0x34e4: 0x000c, 0x34e5: 0x000c, 0x34e6: 0x000c, 0x34e7: 0x000c, 0x34e8: 0x000c, 0x34e9: 0x000c, + 0x34ea: 0x000c, 0x34eb: 0x000c, 0x34ec: 0x000c, 0x34ed: 0x000c, 0x34ee: 0x000c, 0x34ef: 0x000c, + 0x34f0: 0x000c, 0x34f1: 0x000c, 0x34f2: 0x000c, 0x34f3: 0x000c, 0x34f4: 0x000c, 0x34f5: 0x000c, + 0x34f6: 0x000c, 0x34fb: 0x000c, + 0x34fc: 0x000c, 0x34fd: 0x000c, 0x34fe: 0x000c, 0x34ff: 0x000c, + // Block 0xd4, offset 0x3500 + 0x3500: 0x000c, 0x3501: 0x000c, 0x3502: 0x000c, 0x3503: 0x000c, 0x3504: 0x000c, 0x3505: 0x000c, + 0x3506: 0x000c, 0x3507: 0x000c, 0x3508: 0x000c, 0x3509: 0x000c, 0x350a: 0x000c, 0x350b: 0x000c, + 0x350c: 0x000c, 0x350d: 0x000c, 0x350e: 0x000c, 0x350f: 0x000c, 0x3510: 0x000c, 0x3511: 0x000c, + 0x3512: 0x000c, 0x3513: 0x000c, 0x3514: 0x000c, 0x3515: 0x000c, 0x3516: 0x000c, 0x3517: 0x000c, + 0x3518: 0x000c, 0x3519: 0x000c, 0x351a: 0x000c, 0x351b: 0x000c, 0x351c: 0x000c, 0x351d: 0x000c, + 0x351e: 0x000c, 0x351f: 0x000c, 0x3520: 0x000c, 0x3521: 0x000c, 0x3522: 0x000c, 0x3523: 0x000c, + 0x3524: 0x000c, 0x3525: 0x000c, 0x3526: 0x000c, 0x3527: 0x000c, 0x3528: 0x000c, 0x3529: 0x000c, + 0x352a: 0x000c, 0x352b: 0x000c, 0x352c: 0x000c, + 0x3535: 0x000c, + // Block 0xd5, offset 0x3540 + 0x3544: 0x000c, + 0x355b: 0x000c, 0x355c: 0x000c, 0x355d: 0x000c, + 0x355e: 0x000c, 0x355f: 0x000c, 0x3561: 0x000c, 0x3562: 0x000c, 0x3563: 0x000c, + 0x3564: 0x000c, 0x3565: 0x000c, 0x3566: 0x000c, 0x3567: 0x000c, 0x3568: 0x000c, 0x3569: 0x000c, + 0x356a: 0x000c, 0x356b: 0x000c, 0x356c: 0x000c, 0x356d: 0x000c, 0x356e: 0x000c, 0x356f: 0x000c, + // Block 0xd6, offset 0x3580 + 0x3580: 0x000c, 0x3581: 0x000c, 0x3582: 0x000c, 0x3583: 0x000c, 0x3584: 0x000c, 0x3585: 0x000c, + 0x3586: 0x000c, 0x3588: 0x000c, 0x3589: 0x000c, 0x358a: 0x000c, 0x358b: 0x000c, + 0x358c: 0x000c, 0x358d: 0x000c, 0x358e: 0x000c, 0x358f: 0x000c, 0x3590: 0x000c, 0x3591: 0x000c, + 0x3592: 0x000c, 0x3593: 0x000c, 0x3594: 0x000c, 0x3595: 0x000c, 0x3596: 0x000c, 0x3597: 0x000c, + 0x3598: 0x000c, 0x359b: 0x000c, 0x359c: 0x000c, 0x359d: 0x000c, + 0x359e: 0x000c, 0x359f: 0x000c, 0x35a0: 0x000c, 0x35a1: 0x000c, 0x35a3: 0x000c, + 0x35a4: 0x000c, 0x35a6: 0x000c, 0x35a7: 0x000c, 0x35a8: 0x000c, 0x35a9: 0x000c, + 0x35aa: 0x000c, + // Block 0xd7, offset 0x35c0 + 0x35ec: 0x000c, 0x35ed: 0x000c, 0x35ee: 0x000c, 0x35ef: 0x000c, + 0x35ff: 0x0004, + // Block 0xd8, offset 0x3600 + 0x3600: 0x0001, 0x3601: 0x0001, 0x3602: 0x0001, 0x3603: 0x0001, 0x3604: 0x0001, 0x3605: 0x0001, + 0x3606: 0x0001, 0x3607: 0x0001, 0x3608: 0x0001, 0x3609: 0x0001, 0x360a: 0x0001, 0x360b: 0x0001, + 0x360c: 0x0001, 0x360d: 0x0001, 0x360e: 0x0001, 0x360f: 0x0001, 0x3610: 0x000c, 0x3611: 0x000c, + 0x3612: 0x000c, 0x3613: 0x000c, 0x3614: 0x000c, 0x3615: 0x000c, 0x3616: 0x000c, 0x3617: 0x0001, + 0x3618: 0x0001, 0x3619: 0x0001, 0x361a: 0x0001, 0x361b: 0x0001, 0x361c: 0x0001, 0x361d: 0x0001, + 0x361e: 0x0001, 0x361f: 0x0001, 0x3620: 0x0001, 0x3621: 0x0001, 0x3622: 0x0001, 0x3623: 0x0001, + 0x3624: 0x0001, 0x3625: 0x0001, 0x3626: 0x0001, 0x3627: 0x0001, 0x3628: 0x0001, 0x3629: 0x0001, + 0x362a: 0x0001, 0x362b: 0x0001, 0x362c: 0x0001, 0x362d: 0x0001, 0x362e: 0x0001, 0x362f: 0x0001, + 0x3630: 0x0001, 0x3631: 0x0001, 0x3632: 0x0001, 0x3633: 0x0001, 0x3634: 0x0001, 0x3635: 0x0001, + 0x3636: 0x0001, 0x3637: 0x0001, 0x3638: 0x0001, 0x3639: 0x0001, 0x363a: 0x0001, 0x363b: 0x0001, + 0x363c: 0x0001, 0x363d: 0x0001, 0x363e: 0x0001, 0x363f: 0x0001, + // Block 0xd9, offset 0x3640 + 0x3640: 0x0001, 0x3641: 0x0001, 0x3642: 0x0001, 0x3643: 0x0001, 0x3644: 0x000c, 0x3645: 0x000c, + 0x3646: 0x000c, 0x3647: 0x000c, 0x3648: 0x000c, 0x3649: 0x000c, 0x364a: 0x000c, 0x364b: 0x0001, + 0x364c: 0x0001, 0x364d: 0x0001, 0x364e: 0x0001, 0x364f: 0x0001, 0x3650: 0x0001, 0x3651: 0x0001, + 0x3652: 0x0001, 0x3653: 0x0001, 0x3654: 0x0001, 0x3655: 0x0001, 0x3656: 0x0001, 0x3657: 0x0001, + 0x3658: 0x0001, 0x3659: 0x0001, 0x365a: 0x0001, 0x365b: 0x0001, 0x365c: 0x0001, 0x365d: 0x0001, + 0x365e: 0x0001, 0x365f: 0x0001, 0x3660: 0x0001, 0x3661: 0x0001, 0x3662: 0x0001, 0x3663: 0x0001, + 0x3664: 0x0001, 0x3665: 0x0001, 0x3666: 0x0001, 0x3667: 0x0001, 0x3668: 0x0001, 0x3669: 0x0001, + 0x366a: 0x0001, 0x366b: 0x0001, 0x366c: 0x0001, 0x366d: 0x0001, 0x366e: 0x0001, 0x366f: 0x0001, + 0x3670: 0x0001, 0x3671: 0x0001, 0x3672: 0x0001, 0x3673: 0x0001, 0x3674: 0x0001, 0x3675: 0x0001, + 0x3676: 0x0001, 0x3677: 0x0001, 0x3678: 0x0001, 0x3679: 0x0001, 0x367a: 0x0001, 0x367b: 0x0001, + 0x367c: 0x0001, 0x367d: 0x0001, 0x367e: 0x0001, 0x367f: 0x0001, + // Block 0xda, offset 0x3680 + 0x3680: 0x000d, 0x3681: 0x000d, 0x3682: 0x000d, 0x3683: 0x000d, 0x3684: 0x000d, 0x3685: 0x000d, + 0x3686: 0x000d, 0x3687: 0x000d, 0x3688: 0x000d, 0x3689: 0x000d, 0x368a: 0x000d, 0x368b: 0x000d, + 0x368c: 0x000d, 0x368d: 0x000d, 0x368e: 0x000d, 0x368f: 0x000d, 0x3690: 0x0001, 0x3691: 0x0001, + 0x3692: 0x0001, 0x3693: 0x0001, 0x3694: 0x0001, 0x3695: 0x0001, 0x3696: 0x0001, 0x3697: 0x0001, + 0x3698: 0x0001, 0x3699: 0x0001, 0x369a: 0x0001, 0x369b: 0x0001, 0x369c: 0x0001, 0x369d: 0x0001, + 0x369e: 0x0001, 0x369f: 0x0001, 0x36a0: 0x0001, 0x36a1: 0x0001, 0x36a2: 0x0001, 0x36a3: 0x0001, + 0x36a4: 0x0001, 0x36a5: 0x0001, 0x36a6: 0x0001, 0x36a7: 0x0001, 0x36a8: 0x0001, 0x36a9: 0x0001, + 0x36aa: 0x0001, 0x36ab: 0x0001, 0x36ac: 0x0001, 0x36ad: 0x0001, 0x36ae: 0x0001, 0x36af: 0x0001, + 0x36b0: 0x0001, 0x36b1: 0x0001, 0x36b2: 0x0001, 0x36b3: 0x0001, 0x36b4: 0x0001, 0x36b5: 0x0001, + 0x36b6: 0x0001, 0x36b7: 0x0001, 0x36b8: 0x0001, 0x36b9: 0x0001, 0x36ba: 0x0001, 0x36bb: 0x0001, + 0x36bc: 0x0001, 0x36bd: 0x0001, 0x36be: 0x0001, 0x36bf: 0x0001, + // Block 0xdb, offset 0x36c0 + 0x36c0: 0x000d, 0x36c1: 0x000d, 0x36c2: 0x000d, 0x36c3: 0x000d, 0x36c4: 0x000d, 0x36c5: 0x000d, + 0x36c6: 0x000d, 0x36c7: 0x000d, 0x36c8: 0x000d, 0x36c9: 0x000d, 0x36ca: 0x000d, 0x36cb: 0x000d, + 0x36cc: 0x000d, 0x36cd: 0x000d, 0x36ce: 0x000d, 0x36cf: 0x000d, 0x36d0: 0x000d, 0x36d1: 0x000d, + 0x36d2: 0x000d, 0x36d3: 0x000d, 0x36d4: 0x000d, 0x36d5: 0x000d, 0x36d6: 0x000d, 0x36d7: 0x000d, + 0x36d8: 0x000d, 0x36d9: 0x000d, 0x36da: 0x000d, 0x36db: 0x000d, 0x36dc: 0x000d, 0x36dd: 0x000d, + 0x36de: 0x000d, 0x36df: 0x000d, 0x36e0: 0x000d, 0x36e1: 0x000d, 0x36e2: 0x000d, 0x36e3: 0x000d, + 0x36e4: 0x000d, 0x36e5: 0x000d, 0x36e6: 0x000d, 0x36e7: 0x000d, 0x36e8: 0x000d, 0x36e9: 0x000d, + 0x36ea: 0x000d, 0x36eb: 0x000d, 0x36ec: 0x000d, 0x36ed: 0x000d, 0x36ee: 0x000d, 0x36ef: 0x000d, + 0x36f0: 0x000a, 0x36f1: 0x000a, 0x36f2: 0x000d, 0x36f3: 0x000d, 0x36f4: 0x000d, 0x36f5: 0x000d, + 0x36f6: 0x000d, 0x36f7: 0x000d, 0x36f8: 0x000d, 0x36f9: 0x000d, 0x36fa: 0x000d, 0x36fb: 0x000d, + 0x36fc: 0x000d, 0x36fd: 0x000d, 0x36fe: 0x000d, 0x36ff: 0x000d, + // Block 0xdc, offset 0x3700 + 0x3700: 0x000a, 0x3701: 0x000a, 0x3702: 0x000a, 0x3703: 0x000a, 0x3704: 0x000a, 0x3705: 0x000a, + 0x3706: 0x000a, 0x3707: 0x000a, 0x3708: 0x000a, 0x3709: 0x000a, 0x370a: 0x000a, 0x370b: 0x000a, + 0x370c: 0x000a, 0x370d: 0x000a, 0x370e: 0x000a, 0x370f: 0x000a, 0x3710: 0x000a, 0x3711: 0x000a, + 0x3712: 0x000a, 0x3713: 0x000a, 0x3714: 0x000a, 0x3715: 0x000a, 0x3716: 0x000a, 0x3717: 0x000a, + 0x3718: 0x000a, 0x3719: 0x000a, 0x371a: 0x000a, 0x371b: 0x000a, 0x371c: 0x000a, 0x371d: 0x000a, + 0x371e: 0x000a, 0x371f: 0x000a, 0x3720: 0x000a, 0x3721: 0x000a, 0x3722: 0x000a, 0x3723: 0x000a, + 0x3724: 0x000a, 0x3725: 0x000a, 0x3726: 0x000a, 0x3727: 0x000a, 0x3728: 0x000a, 0x3729: 0x000a, + 0x372a: 0x000a, 0x372b: 0x000a, + 0x3730: 0x000a, 0x3731: 0x000a, 0x3732: 0x000a, 0x3733: 0x000a, 0x3734: 0x000a, 0x3735: 0x000a, + 0x3736: 0x000a, 0x3737: 0x000a, 0x3738: 0x000a, 0x3739: 0x000a, 0x373a: 0x000a, 0x373b: 0x000a, + 0x373c: 0x000a, 0x373d: 0x000a, 0x373e: 0x000a, 0x373f: 0x000a, + // Block 0xdd, offset 0x3740 + 0x3740: 0x000a, 0x3741: 0x000a, 0x3742: 0x000a, 0x3743: 0x000a, 0x3744: 0x000a, 0x3745: 0x000a, + 0x3746: 0x000a, 0x3747: 0x000a, 0x3748: 0x000a, 0x3749: 0x000a, 0x374a: 0x000a, 0x374b: 0x000a, + 0x374c: 0x000a, 0x374d: 0x000a, 0x374e: 0x000a, 0x374f: 0x000a, 0x3750: 0x000a, 0x3751: 0x000a, + 0x3752: 0x000a, 0x3753: 0x000a, + 0x3760: 0x000a, 0x3761: 0x000a, 0x3762: 0x000a, 0x3763: 0x000a, + 0x3764: 0x000a, 0x3765: 0x000a, 0x3766: 0x000a, 0x3767: 0x000a, 0x3768: 0x000a, 0x3769: 0x000a, + 0x376a: 0x000a, 0x376b: 0x000a, 0x376c: 0x000a, 0x376d: 0x000a, 0x376e: 0x000a, + 0x3771: 0x000a, 0x3772: 0x000a, 0x3773: 0x000a, 0x3774: 0x000a, 0x3775: 0x000a, + 0x3776: 0x000a, 0x3777: 0x000a, 0x3778: 0x000a, 0x3779: 0x000a, 0x377a: 0x000a, 0x377b: 0x000a, + 0x377c: 0x000a, 0x377d: 0x000a, 0x377e: 0x000a, 0x377f: 0x000a, + // Block 0xde, offset 0x3780 + 0x3781: 0x000a, 0x3782: 0x000a, 0x3783: 0x000a, 0x3784: 0x000a, 0x3785: 0x000a, + 0x3786: 0x000a, 0x3787: 0x000a, 0x3788: 0x000a, 0x3789: 0x000a, 0x378a: 0x000a, 0x378b: 0x000a, + 0x378c: 0x000a, 0x378d: 0x000a, 0x378e: 0x000a, 0x378f: 0x000a, 0x3791: 0x000a, + 0x3792: 0x000a, 0x3793: 0x000a, 0x3794: 0x000a, 0x3795: 0x000a, 0x3796: 0x000a, 0x3797: 0x000a, + 0x3798: 0x000a, 0x3799: 0x000a, 0x379a: 0x000a, 0x379b: 0x000a, 0x379c: 0x000a, 0x379d: 0x000a, + 0x379e: 0x000a, 0x379f: 0x000a, 0x37a0: 0x000a, 0x37a1: 0x000a, 0x37a2: 0x000a, 0x37a3: 0x000a, + 0x37a4: 0x000a, 0x37a5: 0x000a, 0x37a6: 0x000a, 0x37a7: 0x000a, 0x37a8: 0x000a, 0x37a9: 0x000a, + 0x37aa: 0x000a, 0x37ab: 0x000a, 0x37ac: 0x000a, 0x37ad: 0x000a, 0x37ae: 0x000a, 0x37af: 0x000a, + 0x37b0: 0x000a, 0x37b1: 0x000a, 0x37b2: 0x000a, 0x37b3: 0x000a, 0x37b4: 0x000a, 0x37b5: 0x000a, + // Block 0xdf, offset 0x37c0 + 0x37c0: 0x0002, 0x37c1: 0x0002, 0x37c2: 0x0002, 0x37c3: 0x0002, 0x37c4: 0x0002, 0x37c5: 0x0002, + 0x37c6: 0x0002, 0x37c7: 0x0002, 0x37c8: 0x0002, 0x37c9: 0x0002, 0x37ca: 0x0002, 0x37cb: 0x000a, + 0x37cc: 0x000a, + 0x37ef: 0x000a, + // Block 0xe0, offset 0x3800 + 0x382a: 0x000a, 0x382b: 0x000a, 0x382c: 0x000a, + // Block 0xe1, offset 0x3840 + 0x3860: 0x000a, 0x3861: 0x000a, 0x3862: 0x000a, 0x3863: 0x000a, + 0x3864: 0x000a, 0x3865: 0x000a, + // Block 0xe2, offset 0x3880 + 0x3880: 0x000a, 0x3881: 0x000a, 0x3882: 0x000a, 0x3883: 0x000a, 0x3884: 0x000a, 0x3885: 0x000a, + 0x3886: 0x000a, 0x3887: 0x000a, 0x3888: 0x000a, 0x3889: 0x000a, 0x388a: 0x000a, 0x388b: 0x000a, + 0x388c: 0x000a, 0x388d: 0x000a, 0x388e: 0x000a, 0x388f: 0x000a, 0x3890: 0x000a, 0x3891: 0x000a, + 0x3892: 0x000a, 0x3893: 0x000a, 0x3894: 0x000a, 0x3895: 0x000a, + 0x38a0: 0x000a, 0x38a1: 0x000a, 0x38a2: 0x000a, 0x38a3: 0x000a, + 0x38a4: 0x000a, 0x38a5: 0x000a, 0x38a6: 0x000a, 0x38a7: 0x000a, 0x38a8: 0x000a, 0x38a9: 0x000a, + 0x38aa: 0x000a, 0x38ab: 0x000a, 0x38ac: 0x000a, + 0x38b0: 0x000a, 0x38b1: 0x000a, 0x38b2: 0x000a, 0x38b3: 0x000a, 0x38b4: 0x000a, 0x38b5: 0x000a, + 0x38b6: 0x000a, 0x38b7: 0x000a, 0x38b8: 0x000a, 0x38b9: 0x000a, 0x38ba: 0x000a, + // Block 0xe3, offset 0x38c0 + 0x38c0: 0x000a, 0x38c1: 0x000a, 0x38c2: 0x000a, 0x38c3: 0x000a, 0x38c4: 0x000a, 0x38c5: 0x000a, + 0x38c6: 0x000a, 0x38c7: 0x000a, 0x38c8: 0x000a, 0x38c9: 0x000a, 0x38ca: 0x000a, 0x38cb: 0x000a, + 0x38cc: 0x000a, 0x38cd: 0x000a, 0x38ce: 0x000a, 0x38cf: 0x000a, 0x38d0: 0x000a, 0x38d1: 0x000a, + 0x38d2: 0x000a, 0x38d3: 0x000a, 0x38d4: 0x000a, 0x38d5: 0x000a, 0x38d6: 0x000a, 0x38d7: 0x000a, + 0x38d8: 0x000a, + 0x38e0: 0x000a, 0x38e1: 0x000a, 0x38e2: 0x000a, 0x38e3: 0x000a, + 0x38e4: 0x000a, 0x38e5: 0x000a, 0x38e6: 0x000a, 0x38e7: 0x000a, 0x38e8: 0x000a, 0x38e9: 0x000a, + 0x38ea: 0x000a, 0x38eb: 0x000a, + // Block 0xe4, offset 0x3900 + 0x3900: 0x000a, 0x3901: 0x000a, 0x3902: 0x000a, 0x3903: 0x000a, 0x3904: 0x000a, 0x3905: 0x000a, + 0x3906: 0x000a, 0x3907: 0x000a, 0x3908: 0x000a, 0x3909: 0x000a, 0x390a: 0x000a, 0x390b: 0x000a, + 0x3910: 0x000a, 0x3911: 0x000a, + 0x3912: 0x000a, 0x3913: 0x000a, 0x3914: 0x000a, 0x3915: 0x000a, 0x3916: 0x000a, 0x3917: 0x000a, + 0x3918: 0x000a, 0x3919: 0x000a, 0x391a: 0x000a, 0x391b: 0x000a, 0x391c: 0x000a, 0x391d: 0x000a, + 0x391e: 0x000a, 0x391f: 0x000a, 0x3920: 0x000a, 0x3921: 0x000a, 0x3922: 0x000a, 0x3923: 0x000a, + 0x3924: 0x000a, 0x3925: 0x000a, 0x3926: 0x000a, 0x3927: 0x000a, 0x3928: 0x000a, 0x3929: 0x000a, + 0x392a: 0x000a, 0x392b: 0x000a, 0x392c: 0x000a, 0x392d: 0x000a, 0x392e: 0x000a, 0x392f: 0x000a, + 0x3930: 0x000a, 0x3931: 0x000a, 0x3932: 0x000a, 0x3933: 0x000a, 0x3934: 0x000a, 0x3935: 0x000a, + 0x3936: 0x000a, 0x3937: 0x000a, 0x3938: 0x000a, 0x3939: 0x000a, 0x393a: 0x000a, 0x393b: 0x000a, + 0x393c: 0x000a, 0x393d: 0x000a, 0x393e: 0x000a, 0x393f: 0x000a, + // Block 0xe5, offset 0x3940 + 0x3940: 0x000a, 0x3941: 0x000a, 0x3942: 0x000a, 0x3943: 0x000a, 0x3944: 0x000a, 0x3945: 0x000a, + 0x3946: 0x000a, 0x3947: 0x000a, + 0x3950: 0x000a, 0x3951: 0x000a, + 0x3952: 0x000a, 0x3953: 0x000a, 0x3954: 0x000a, 0x3955: 0x000a, 0x3956: 0x000a, 0x3957: 0x000a, + 0x3958: 0x000a, 0x3959: 0x000a, + 0x3960: 0x000a, 0x3961: 0x000a, 0x3962: 0x000a, 0x3963: 0x000a, + 0x3964: 0x000a, 0x3965: 0x000a, 0x3966: 0x000a, 0x3967: 0x000a, 0x3968: 0x000a, 0x3969: 0x000a, + 0x396a: 0x000a, 0x396b: 0x000a, 0x396c: 0x000a, 0x396d: 0x000a, 0x396e: 0x000a, 0x396f: 0x000a, + 0x3970: 0x000a, 0x3971: 0x000a, 0x3972: 0x000a, 0x3973: 0x000a, 0x3974: 0x000a, 0x3975: 0x000a, + 0x3976: 0x000a, 0x3977: 0x000a, 0x3978: 0x000a, 0x3979: 0x000a, 0x397a: 0x000a, 0x397b: 0x000a, + 0x397c: 0x000a, 0x397d: 0x000a, 0x397e: 0x000a, 0x397f: 0x000a, + // Block 0xe6, offset 0x3980 + 0x3980: 0x000a, 0x3981: 0x000a, 0x3982: 0x000a, 0x3983: 0x000a, 0x3984: 0x000a, 0x3985: 0x000a, + 0x3986: 0x000a, 0x3987: 0x000a, + 0x3990: 0x000a, 0x3991: 0x000a, + 0x3992: 0x000a, 0x3993: 0x000a, 0x3994: 0x000a, 0x3995: 0x000a, 0x3996: 0x000a, 0x3997: 0x000a, + 0x3998: 0x000a, 0x3999: 0x000a, 0x399a: 0x000a, 0x399b: 0x000a, 0x399c: 0x000a, 0x399d: 0x000a, + 0x399e: 0x000a, 0x399f: 0x000a, 0x39a0: 0x000a, 0x39a1: 0x000a, 0x39a2: 0x000a, 0x39a3: 0x000a, + 0x39a4: 0x000a, 0x39a5: 0x000a, 0x39a6: 0x000a, 0x39a7: 0x000a, 0x39a8: 0x000a, 0x39a9: 0x000a, + 0x39aa: 0x000a, 0x39ab: 0x000a, 0x39ac: 0x000a, 0x39ad: 0x000a, + // Block 0xe7, offset 0x39c0 + 0x39c0: 0x000a, 0x39c1: 0x000a, 0x39c2: 0x000a, 0x39c3: 0x000a, 0x39c4: 0x000a, 0x39c5: 0x000a, + 0x39c6: 0x000a, 0x39c7: 0x000a, 0x39c8: 0x000a, 0x39c9: 0x000a, 0x39ca: 0x000a, 0x39cb: 0x000a, + 0x39cd: 0x000a, 0x39ce: 0x000a, 0x39cf: 0x000a, 0x39d0: 0x000a, 0x39d1: 0x000a, + 0x39d2: 0x000a, 0x39d3: 0x000a, 0x39d4: 0x000a, 0x39d5: 0x000a, 0x39d6: 0x000a, 0x39d7: 0x000a, + 0x39d8: 0x000a, 0x39d9: 0x000a, 0x39da: 0x000a, 0x39db: 0x000a, 0x39dc: 0x000a, 0x39dd: 0x000a, + 0x39de: 0x000a, 0x39df: 0x000a, 0x39e0: 0x000a, 0x39e1: 0x000a, 0x39e2: 0x000a, 0x39e3: 0x000a, + 0x39e4: 0x000a, 0x39e5: 0x000a, 0x39e6: 0x000a, 0x39e7: 0x000a, 0x39e8: 0x000a, 0x39e9: 0x000a, + 0x39ea: 0x000a, 0x39eb: 0x000a, 0x39ec: 0x000a, 0x39ed: 0x000a, 0x39ee: 0x000a, 0x39ef: 0x000a, + 0x39f0: 0x000a, 0x39f1: 0x000a, 0x39f2: 0x000a, 0x39f3: 0x000a, 0x39f4: 0x000a, 0x39f5: 0x000a, + 0x39f6: 0x000a, 0x39f7: 0x000a, 0x39f8: 0x000a, 0x39f9: 0x000a, 0x39fa: 0x000a, 0x39fb: 0x000a, + 0x39fc: 0x000a, 0x39fd: 0x000a, 0x39fe: 0x000a, 0x39ff: 0x000a, + // Block 0xe8, offset 0x3a00 + 0x3a00: 0x000a, 0x3a01: 0x000a, 0x3a02: 0x000a, 0x3a03: 0x000a, 0x3a04: 0x000a, 0x3a05: 0x000a, + 0x3a06: 0x000a, 0x3a07: 0x000a, 0x3a08: 0x000a, 0x3a09: 0x000a, 0x3a0a: 0x000a, 0x3a0b: 0x000a, + 0x3a0c: 0x000a, 0x3a0d: 0x000a, 0x3a0e: 0x000a, 0x3a0f: 0x000a, 0x3a10: 0x000a, 0x3a11: 0x000a, + 0x3a12: 0x000a, 0x3a13: 0x000a, 0x3a14: 0x000a, 0x3a15: 0x000a, 0x3a16: 0x000a, 0x3a17: 0x000a, + 0x3a18: 0x000a, 0x3a19: 0x000a, 0x3a1a: 0x000a, 0x3a1b: 0x000a, 0x3a1c: 0x000a, 0x3a1d: 0x000a, + 0x3a1e: 0x000a, 0x3a1f: 0x000a, 0x3a20: 0x000a, 0x3a21: 0x000a, 0x3a22: 0x000a, 0x3a23: 0x000a, + 0x3a24: 0x000a, 0x3a25: 0x000a, 0x3a26: 0x000a, 0x3a27: 0x000a, 0x3a28: 0x000a, 0x3a29: 0x000a, + 0x3a2a: 0x000a, 0x3a2b: 0x000a, 0x3a2c: 0x000a, 0x3a2d: 0x000a, 0x3a2e: 0x000a, 0x3a2f: 0x000a, + 0x3a30: 0x000a, 0x3a31: 0x000a, 0x3a33: 0x000a, 0x3a34: 0x000a, 0x3a35: 0x000a, + 0x3a36: 0x000a, 0x3a3a: 0x000a, 0x3a3b: 0x000a, + 0x3a3c: 0x000a, 0x3a3d: 0x000a, 0x3a3e: 0x000a, 0x3a3f: 0x000a, + // Block 0xe9, offset 0x3a40 + 0x3a40: 0x000a, 0x3a41: 0x000a, 0x3a42: 0x000a, 0x3a43: 0x000a, 0x3a44: 0x000a, 0x3a45: 0x000a, + 0x3a46: 0x000a, 0x3a47: 0x000a, 0x3a48: 0x000a, 0x3a49: 0x000a, 0x3a4a: 0x000a, 0x3a4b: 0x000a, + 0x3a4c: 0x000a, 0x3a4d: 0x000a, 0x3a4e: 0x000a, 0x3a4f: 0x000a, 0x3a50: 0x000a, 0x3a51: 0x000a, + 0x3a52: 0x000a, 0x3a53: 0x000a, 0x3a54: 0x000a, 0x3a55: 0x000a, 0x3a56: 0x000a, 0x3a57: 0x000a, + 0x3a58: 0x000a, 0x3a59: 0x000a, 0x3a5a: 0x000a, 0x3a5b: 0x000a, 0x3a5c: 0x000a, 0x3a5d: 0x000a, + 0x3a5e: 0x000a, 0x3a5f: 0x000a, 0x3a60: 0x000a, 0x3a61: 0x000a, 0x3a62: 0x000a, + 0x3a65: 0x000a, 0x3a66: 0x000a, 0x3a67: 0x000a, 0x3a68: 0x000a, 0x3a69: 0x000a, + 0x3a6a: 0x000a, 0x3a6e: 0x000a, 0x3a6f: 0x000a, + 0x3a70: 0x000a, 0x3a71: 0x000a, 0x3a72: 0x000a, 0x3a73: 0x000a, 0x3a74: 0x000a, 0x3a75: 0x000a, + 0x3a76: 0x000a, 0x3a77: 0x000a, 0x3a78: 0x000a, 0x3a79: 0x000a, 0x3a7a: 0x000a, 0x3a7b: 0x000a, + 0x3a7c: 0x000a, 0x3a7d: 0x000a, 0x3a7e: 0x000a, 0x3a7f: 0x000a, + // Block 0xea, offset 0x3a80 + 0x3a80: 0x000a, 0x3a81: 0x000a, 0x3a82: 0x000a, 0x3a83: 0x000a, 0x3a84: 0x000a, 0x3a85: 0x000a, + 0x3a86: 0x000a, 0x3a87: 0x000a, 0x3a88: 0x000a, 0x3a89: 0x000a, 0x3a8a: 0x000a, + 0x3a8d: 0x000a, 0x3a8e: 0x000a, 0x3a8f: 0x000a, 0x3a90: 0x000a, 0x3a91: 0x000a, + 0x3a92: 0x000a, 0x3a93: 0x000a, 0x3a94: 0x000a, 0x3a95: 0x000a, 0x3a96: 0x000a, 0x3a97: 0x000a, + 0x3a98: 0x000a, 0x3a99: 0x000a, 0x3a9a: 0x000a, 0x3a9b: 0x000a, 0x3a9c: 0x000a, 0x3a9d: 0x000a, + 0x3a9e: 0x000a, 0x3a9f: 0x000a, 0x3aa0: 0x000a, 0x3aa1: 0x000a, 0x3aa2: 0x000a, 0x3aa3: 0x000a, + 0x3aa4: 0x000a, 0x3aa5: 0x000a, 0x3aa6: 0x000a, 0x3aa7: 0x000a, 0x3aa8: 0x000a, 0x3aa9: 0x000a, + 0x3aaa: 0x000a, 0x3aab: 0x000a, 0x3aac: 0x000a, 0x3aad: 0x000a, 0x3aae: 0x000a, 0x3aaf: 0x000a, + 0x3ab0: 0x000a, 0x3ab1: 0x000a, 0x3ab2: 0x000a, 0x3ab3: 0x000a, 0x3ab4: 0x000a, 0x3ab5: 0x000a, + 0x3ab6: 0x000a, 0x3ab7: 0x000a, 0x3ab8: 0x000a, 0x3ab9: 0x000a, 0x3aba: 0x000a, 0x3abb: 0x000a, + 0x3abc: 0x000a, 0x3abd: 0x000a, 0x3abe: 0x000a, 0x3abf: 0x000a, + // Block 0xeb, offset 0x3ac0 + 0x3ac0: 0x000a, 0x3ac1: 0x000a, 0x3ac2: 0x000a, 0x3ac3: 0x000a, 0x3ac4: 0x000a, 0x3ac5: 0x000a, + 0x3ac6: 0x000a, 0x3ac7: 0x000a, 0x3ac8: 0x000a, 0x3ac9: 0x000a, 0x3aca: 0x000a, 0x3acb: 0x000a, + 0x3acc: 0x000a, 0x3acd: 0x000a, 0x3ace: 0x000a, 0x3acf: 0x000a, 0x3ad0: 0x000a, 0x3ad1: 0x000a, + 0x3ad2: 0x000a, 0x3ad3: 0x000a, + 0x3ae0: 0x000a, 0x3ae1: 0x000a, 0x3ae2: 0x000a, 0x3ae3: 0x000a, + 0x3ae4: 0x000a, 0x3ae5: 0x000a, 0x3ae6: 0x000a, 0x3ae7: 0x000a, 0x3ae8: 0x000a, 0x3ae9: 0x000a, + 0x3aea: 0x000a, 0x3aeb: 0x000a, 0x3aec: 0x000a, 0x3aed: 0x000a, + 0x3af0: 0x000a, 0x3af1: 0x000a, 0x3af2: 0x000a, 0x3af3: 0x000a, + 0x3af8: 0x000a, 0x3af9: 0x000a, 0x3afa: 0x000a, + // Block 0xec, offset 0x3b00 + 0x3b00: 0x000a, 0x3b01: 0x000a, 0x3b02: 0x000a, + 0x3b10: 0x000a, 0x3b11: 0x000a, + 0x3b12: 0x000a, 0x3b13: 0x000a, 0x3b14: 0x000a, 0x3b15: 0x000a, + // Block 0xed, offset 0x3b40 + 0x3b7e: 0x000b, 0x3b7f: 0x000b, + // Block 0xee, offset 0x3b80 + 0x3b80: 0x000b, 0x3b81: 0x000b, 0x3b82: 0x000b, 0x3b83: 0x000b, 0x3b84: 0x000b, 0x3b85: 0x000b, + 0x3b86: 0x000b, 0x3b87: 0x000b, 0x3b88: 0x000b, 0x3b89: 0x000b, 0x3b8a: 0x000b, 0x3b8b: 0x000b, + 0x3b8c: 0x000b, 0x3b8d: 0x000b, 0x3b8e: 0x000b, 0x3b8f: 0x000b, 0x3b90: 0x000b, 0x3b91: 0x000b, + 0x3b92: 0x000b, 0x3b93: 0x000b, 0x3b94: 0x000b, 0x3b95: 0x000b, 0x3b96: 0x000b, 0x3b97: 0x000b, + 0x3b98: 0x000b, 0x3b99: 0x000b, 0x3b9a: 0x000b, 0x3b9b: 0x000b, 0x3b9c: 0x000b, 0x3b9d: 0x000b, + 0x3b9e: 0x000b, 0x3b9f: 0x000b, 0x3ba0: 0x000b, 0x3ba1: 0x000b, 0x3ba2: 0x000b, 0x3ba3: 0x000b, + 0x3ba4: 0x000b, 0x3ba5: 0x000b, 0x3ba6: 0x000b, 0x3ba7: 0x000b, 0x3ba8: 0x000b, 0x3ba9: 0x000b, + 0x3baa: 0x000b, 0x3bab: 0x000b, 0x3bac: 0x000b, 0x3bad: 0x000b, 0x3bae: 0x000b, 0x3baf: 0x000b, + 0x3bb0: 0x000b, 0x3bb1: 0x000b, 0x3bb2: 0x000b, 0x3bb3: 0x000b, 0x3bb4: 0x000b, 0x3bb5: 0x000b, + 0x3bb6: 0x000b, 0x3bb7: 0x000b, 0x3bb8: 0x000b, 0x3bb9: 0x000b, 0x3bba: 0x000b, 0x3bbb: 0x000b, + 0x3bbc: 0x000b, 0x3bbd: 0x000b, 0x3bbe: 0x000b, 0x3bbf: 0x000b, + // Block 0xef, offset 0x3bc0 + 0x3bc0: 0x000c, 0x3bc1: 0x000c, 0x3bc2: 0x000c, 0x3bc3: 0x000c, 0x3bc4: 0x000c, 0x3bc5: 0x000c, + 0x3bc6: 0x000c, 0x3bc7: 0x000c, 0x3bc8: 0x000c, 0x3bc9: 0x000c, 0x3bca: 0x000c, 0x3bcb: 0x000c, + 0x3bcc: 0x000c, 0x3bcd: 0x000c, 0x3bce: 0x000c, 0x3bcf: 0x000c, 0x3bd0: 0x000c, 0x3bd1: 0x000c, + 0x3bd2: 0x000c, 0x3bd3: 0x000c, 0x3bd4: 0x000c, 0x3bd5: 0x000c, 0x3bd6: 0x000c, 0x3bd7: 0x000c, + 0x3bd8: 0x000c, 0x3bd9: 0x000c, 0x3bda: 0x000c, 0x3bdb: 0x000c, 0x3bdc: 0x000c, 0x3bdd: 0x000c, + 0x3bde: 0x000c, 0x3bdf: 0x000c, 0x3be0: 0x000c, 0x3be1: 0x000c, 0x3be2: 0x000c, 0x3be3: 0x000c, + 0x3be4: 0x000c, 0x3be5: 0x000c, 0x3be6: 0x000c, 0x3be7: 0x000c, 0x3be8: 0x000c, 0x3be9: 0x000c, + 0x3bea: 0x000c, 0x3beb: 0x000c, 0x3bec: 0x000c, 0x3bed: 0x000c, 0x3bee: 0x000c, 0x3bef: 0x000c, + 0x3bf0: 0x000b, 0x3bf1: 0x000b, 0x3bf2: 0x000b, 0x3bf3: 0x000b, 0x3bf4: 0x000b, 0x3bf5: 0x000b, + 0x3bf6: 0x000b, 0x3bf7: 0x000b, 0x3bf8: 0x000b, 0x3bf9: 0x000b, 0x3bfa: 0x000b, 0x3bfb: 0x000b, + 0x3bfc: 0x000b, 0x3bfd: 0x000b, 0x3bfe: 0x000b, 0x3bff: 0x000b, +} + +// bidiIndex: 24 blocks, 1536 entries, 1536 bytes +// Block 0 is the zero block. +var bidiIndex = [1536]uint8{ + // Block 0x0, offset 0x0 + // Block 0x1, offset 0x40 + // Block 0x2, offset 0x80 + // Block 0x3, offset 0xc0 + 0xc2: 0x01, 0xc3: 0x02, + 0xca: 0x03, 0xcb: 0x04, 0xcc: 0x05, 0xcd: 0x06, 0xce: 0x07, 0xcf: 0x08, + 0xd2: 0x09, 0xd6: 0x0a, 0xd7: 0x0b, + 0xd8: 0x0c, 0xd9: 0x0d, 0xda: 0x0e, 0xdb: 0x0f, 0xdc: 0x10, 0xdd: 0x11, 0xde: 0x12, 0xdf: 0x13, + 0xe0: 0x02, 0xe1: 0x03, 0xe2: 0x04, 0xe3: 0x05, 0xe4: 0x06, + 0xea: 0x07, 0xef: 0x08, + 0xf0: 0x11, 0xf1: 0x12, 0xf2: 0x12, 0xf3: 0x14, 0xf4: 0x15, + // Block 0x4, offset 0x100 + 0x120: 0x14, 0x121: 0x15, 0x122: 0x16, 0x123: 0x17, 0x124: 0x18, 0x125: 0x19, 0x126: 0x1a, 0x127: 0x1b, + 0x128: 0x1c, 0x129: 0x1d, 0x12a: 0x1c, 0x12b: 0x1e, 0x12c: 0x1f, 0x12d: 0x20, 0x12e: 0x21, 0x12f: 0x22, + 0x130: 0x23, 0x131: 0x24, 0x132: 0x1a, 0x133: 0x25, 0x134: 0x26, 0x135: 0x27, 0x137: 0x28, + 0x138: 0x29, 0x139: 0x2a, 0x13a: 0x2b, 0x13b: 0x2c, 0x13c: 0x2d, 0x13d: 0x2e, 0x13e: 0x2f, 0x13f: 0x30, + // Block 0x5, offset 0x140 + 0x140: 0x31, 0x141: 0x32, 0x142: 0x33, + 0x14d: 0x34, 0x14e: 0x35, + 0x150: 0x36, + 0x15a: 0x37, 0x15c: 0x38, 0x15d: 0x39, 0x15e: 0x3a, 0x15f: 0x3b, + 0x160: 0x3c, 0x162: 0x3d, 0x164: 0x3e, 0x165: 0x3f, 0x167: 0x40, + 0x168: 0x41, 0x169: 0x42, 0x16a: 0x43, 0x16c: 0x44, 0x16d: 0x45, 0x16e: 0x46, 0x16f: 0x47, + 0x170: 0x48, 0x173: 0x49, 0x177: 0x4a, + 0x17e: 0x4b, 0x17f: 0x4c, + // Block 0x6, offset 0x180 + 0x180: 0x4d, 0x181: 0x4e, 0x182: 0x4f, 0x183: 0x50, 0x184: 0x51, 0x185: 0x52, 0x186: 0x53, 0x187: 0x54, + 0x188: 0x55, 0x189: 0x54, 0x18a: 0x54, 0x18b: 0x54, 0x18c: 0x56, 0x18d: 0x57, 0x18e: 0x58, 0x18f: 0x54, + 0x190: 0x59, 0x191: 0x5a, 0x192: 0x5b, 0x193: 0x5c, 0x194: 0x54, 0x195: 0x54, 0x196: 0x54, 0x197: 0x54, + 0x198: 0x54, 0x199: 0x54, 0x19a: 0x5d, 0x19b: 0x54, 0x19c: 0x54, 0x19d: 0x5e, 0x19e: 0x54, 0x19f: 0x5f, + 0x1a4: 0x54, 0x1a5: 0x54, 0x1a6: 0x60, 0x1a7: 0x61, + 0x1a8: 0x54, 0x1a9: 0x54, 0x1aa: 0x54, 0x1ab: 0x54, 0x1ac: 0x54, 0x1ad: 0x62, 0x1ae: 0x63, 0x1af: 0x54, + 0x1b3: 0x64, 0x1b5: 0x65, 0x1b7: 0x66, + 0x1b8: 0x67, 0x1b9: 0x68, 0x1ba: 0x69, 0x1bb: 0x6a, 0x1bc: 0x54, 0x1bd: 0x54, 0x1be: 0x54, 0x1bf: 0x6b, + // Block 0x7, offset 0x1c0 + 0x1c0: 0x6c, 0x1c2: 0x6d, 0x1c3: 0x6e, 0x1c7: 0x6f, + 0x1c8: 0x70, 0x1c9: 0x71, 0x1ca: 0x72, 0x1cb: 0x73, 0x1cd: 0x74, 0x1cf: 0x75, + // Block 0x8, offset 0x200 + 0x237: 0x54, + // Block 0x9, offset 0x240 + 0x252: 0x76, 0x253: 0x77, + 0x258: 0x78, 0x259: 0x79, 0x25a: 0x7a, 0x25b: 0x7b, 0x25c: 0x7c, 0x25e: 0x7d, + 0x260: 0x7e, 0x261: 0x7f, 0x263: 0x80, 0x264: 0x81, 0x265: 0x82, 0x266: 0x83, 0x267: 0x84, + 0x268: 0x85, 0x269: 0x86, 0x26a: 0x87, 0x26b: 0x88, 0x26f: 0x89, + // Block 0xa, offset 0x280 + 0x2ac: 0x8a, 0x2ad: 0x8b, 0x2ae: 0x0e, 0x2af: 0x0e, + 0x2b0: 0x0e, 0x2b1: 0x0e, 0x2b2: 0x0e, 0x2b3: 0x0e, 0x2b4: 0x8c, 0x2b5: 0x0e, 0x2b6: 0x0e, 0x2b7: 0x8d, + 0x2b8: 0x8e, 0x2b9: 0x8f, 0x2ba: 0x0e, 0x2bb: 0x90, 0x2bc: 0x91, 0x2bd: 0x92, 0x2bf: 0x93, + // Block 0xb, offset 0x2c0 + 0x2c4: 0x94, 0x2c5: 0x54, 0x2c6: 0x95, 0x2c7: 0x96, + 0x2cb: 0x97, 0x2cd: 0x98, + 0x2e0: 0x99, 0x2e1: 0x99, 0x2e2: 0x99, 0x2e3: 0x99, 0x2e4: 0x9a, 0x2e5: 0x99, 0x2e6: 0x99, 0x2e7: 0x99, + 0x2e8: 0x9b, 0x2e9: 0x99, 0x2ea: 0x99, 0x2eb: 0x9c, 0x2ec: 0x9d, 0x2ed: 0x99, 0x2ee: 0x99, 0x2ef: 0x99, + 0x2f0: 0x99, 0x2f1: 0x99, 0x2f2: 0x99, 0x2f3: 0x99, 0x2f4: 0x9e, 0x2f5: 0x99, 0x2f6: 0x99, 0x2f7: 0x99, + 0x2f8: 0x99, 0x2f9: 0x9f, 0x2fa: 0x99, 0x2fb: 0x99, 0x2fc: 0xa0, 0x2fd: 0xa1, 0x2fe: 0x99, 0x2ff: 0x99, + // Block 0xc, offset 0x300 + 0x300: 0xa2, 0x301: 0xa3, 0x302: 0xa4, 0x304: 0xa5, 0x305: 0xa6, 0x306: 0xa7, 0x307: 0xa8, + 0x308: 0xa9, 0x30b: 0xaa, 0x30c: 0x26, 0x30d: 0xab, + 0x310: 0xac, 0x311: 0xad, 0x312: 0xae, 0x313: 0xaf, 0x316: 0xb0, 0x317: 0xb1, + 0x318: 0xb2, 0x319: 0xb3, 0x31a: 0xb4, 0x31c: 0xb5, + 0x320: 0xb6, 0x327: 0xb7, + 0x328: 0xb8, 0x329: 0xb9, 0x32a: 0xba, + 0x330: 0xbb, 0x332: 0xbc, 0x334: 0xbd, 0x335: 0xbe, 0x336: 0xbf, + 0x33b: 0xc0, 0x33f: 0xc1, + // Block 0xd, offset 0x340 + 0x36b: 0xc2, 0x36c: 0xc3, + 0x37d: 0xc4, 0x37e: 0xc5, 0x37f: 0xc6, + // Block 0xe, offset 0x380 + 0x3b2: 0xc7, + // Block 0xf, offset 0x3c0 + 0x3c5: 0xc8, 0x3c6: 0xc9, + 0x3c8: 0x54, 0x3c9: 0xca, 0x3cc: 0x54, 0x3cd: 0xcb, + 0x3db: 0xcc, 0x3dc: 0xcd, 0x3dd: 0xce, 0x3de: 0xcf, 0x3df: 0xd0, + 0x3e8: 0xd1, 0x3e9: 0xd2, 0x3ea: 0xd3, + // Block 0x10, offset 0x400 + 0x400: 0xd4, 0x404: 0xc3, + 0x40b: 0xd5, + 0x420: 0x99, 0x421: 0x99, 0x422: 0x99, 0x423: 0xd6, 0x424: 0x99, 0x425: 0xd7, 0x426: 0x99, 0x427: 0x99, + 0x428: 0x99, 0x429: 0x99, 0x42a: 0x99, 0x42b: 0x99, 0x42c: 0x99, 0x42d: 0x99, 0x42e: 0x99, 0x42f: 0x99, + 0x430: 0x99, 0x431: 0xa0, 0x432: 0x0e, 0x433: 0x99, 0x434: 0x0e, 0x435: 0xd8, 0x436: 0x99, 0x437: 0x99, + 0x438: 0x0e, 0x439: 0x0e, 0x43a: 0x0e, 0x43b: 0xd9, 0x43c: 0x99, 0x43d: 0x99, 0x43e: 0x99, 0x43f: 0x99, + // Block 0x11, offset 0x440 + 0x440: 0xda, 0x441: 0x54, 0x442: 0xdb, 0x443: 0xdc, 0x444: 0xdd, 0x445: 0xde, + 0x449: 0xdf, 0x44c: 0x54, 0x44d: 0x54, 0x44e: 0x54, 0x44f: 0x54, + 0x450: 0x54, 0x451: 0x54, 0x452: 0x54, 0x453: 0x54, 0x454: 0x54, 0x455: 0x54, 0x456: 0x54, 0x457: 0x54, + 0x458: 0x54, 0x459: 0x54, 0x45a: 0x54, 0x45b: 0xe0, 0x45c: 0x54, 0x45d: 0x6a, 0x45e: 0x54, 0x45f: 0xe1, + 0x460: 0xe2, 0x461: 0xe3, 0x462: 0xe4, 0x464: 0xe5, 0x465: 0xe6, 0x466: 0xe7, 0x467: 0xe8, + 0x468: 0x54, 0x469: 0xe9, 0x46a: 0xea, + 0x47f: 0xeb, + // Block 0x12, offset 0x480 + 0x4bf: 0xeb, + // Block 0x13, offset 0x4c0 + 0x4d0: 0x09, 0x4d1: 0x0a, 0x4d6: 0x0b, + 0x4db: 0x0c, 0x4dd: 0x0d, 0x4de: 0x0e, 0x4df: 0x0f, + 0x4ef: 0x10, + 0x4ff: 0x10, + // Block 0x14, offset 0x500 + 0x50f: 0x10, + 0x51f: 0x10, + 0x52f: 0x10, + 0x53f: 0x10, + // Block 0x15, offset 0x540 + 0x540: 0xec, 0x541: 0xec, 0x542: 0xec, 0x543: 0xec, 0x544: 0x05, 0x545: 0x05, 0x546: 0x05, 0x547: 0xed, + 0x548: 0xec, 0x549: 0xec, 0x54a: 0xec, 0x54b: 0xec, 0x54c: 0xec, 0x54d: 0xec, 0x54e: 0xec, 0x54f: 0xec, + 0x550: 0xec, 0x551: 0xec, 0x552: 0xec, 0x553: 0xec, 0x554: 0xec, 0x555: 0xec, 0x556: 0xec, 0x557: 0xec, + 0x558: 0xec, 0x559: 0xec, 0x55a: 0xec, 0x55b: 0xec, 0x55c: 0xec, 0x55d: 0xec, 0x55e: 0xec, 0x55f: 0xec, + 0x560: 0xec, 0x561: 0xec, 0x562: 0xec, 0x563: 0xec, 0x564: 0xec, 0x565: 0xec, 0x566: 0xec, 0x567: 0xec, + 0x568: 0xec, 0x569: 0xec, 0x56a: 0xec, 0x56b: 0xec, 0x56c: 0xec, 0x56d: 0xec, 0x56e: 0xec, 0x56f: 0xec, + 0x570: 0xec, 0x571: 0xec, 0x572: 0xec, 0x573: 0xec, 0x574: 0xec, 0x575: 0xec, 0x576: 0xec, 0x577: 0xec, + 0x578: 0xec, 0x579: 0xec, 0x57a: 0xec, 0x57b: 0xec, 0x57c: 0xec, 0x57d: 0xec, 0x57e: 0xec, 0x57f: 0xec, + // Block 0x16, offset 0x580 + 0x58f: 0x10, + 0x59f: 0x10, + 0x5a0: 0x13, + 0x5af: 0x10, + 0x5bf: 0x10, + // Block 0x17, offset 0x5c0 + 0x5cf: 0x10, +} + +// Total table size 16952 bytes (16KiB); checksum: F50EF68C diff --git a/vendor/golang.org/x/text/unicode/norm/tables11.0.0.go b/vendor/golang.org/x/text/unicode/norm/tables11.0.0.go index 7297cce32..2c58f09ba 100644 --- a/vendor/golang.org/x/text/unicode/norm/tables11.0.0.go +++ b/vendor/golang.org/x/text/unicode/norm/tables11.0.0.go @@ -1,6 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. -// +build go1.13 +// +build go1.13,!go1.14 package norm diff --git a/vendor/golang.org/x/text/unicode/norm/tables12.0.0.go b/vendor/golang.org/x/text/unicode/norm/tables12.0.0.go new file mode 100644 index 000000000..10f5202c6 --- /dev/null +++ b/vendor/golang.org/x/text/unicode/norm/tables12.0.0.go @@ -0,0 +1,7710 @@ +// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. + +// +build go1.14 + +package norm + +import "sync" + +const ( + // Version is the Unicode edition from which the tables are derived. + Version = "12.0.0" + + // MaxTransformChunkSize indicates the maximum number of bytes that Transform + // may need to write atomically for any Form. Making a destination buffer at + // least this size ensures that Transform can always make progress and that + // the user does not need to grow the buffer on an ErrShortDst. + MaxTransformChunkSize = 35 + maxNonStarters*4 +) + +var ccc = [55]uint8{ + 0, 1, 7, 8, 9, 10, 11, 12, + 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, + 29, 30, 31, 32, 33, 34, 35, 36, + 84, 91, 103, 107, 118, 122, 129, 130, + 132, 202, 214, 216, 218, 220, 222, 224, + 226, 228, 230, 232, 233, 234, 240, +} + +const ( + firstMulti = 0x186D + firstCCC = 0x2CA1 + endMulti = 0x2F63 + firstLeadingCCC = 0x49B1 + firstCCCZeroExcept = 0x4A7B + firstStarterWithNLead = 0x4AA2 + lastDecomp = 0x4AA4 + maxDecomp = 0x8000 +) + +// decomps: 19108 bytes +var decomps = [...]byte{ + // Bytes 0 - 3f + 0x00, 0x41, 0x20, 0x41, 0x21, 0x41, 0x22, 0x41, + 0x23, 0x41, 0x24, 0x41, 0x25, 0x41, 0x26, 0x41, + 0x27, 0x41, 0x28, 0x41, 0x29, 0x41, 0x2A, 0x41, + 0x2B, 0x41, 0x2C, 0x41, 0x2D, 0x41, 0x2E, 0x41, + 0x2F, 0x41, 0x30, 0x41, 0x31, 0x41, 0x32, 0x41, + 0x33, 0x41, 0x34, 0x41, 0x35, 0x41, 0x36, 0x41, + 0x37, 0x41, 0x38, 0x41, 0x39, 0x41, 0x3A, 0x41, + 0x3B, 0x41, 0x3C, 0x41, 0x3D, 0x41, 0x3E, 0x41, + // Bytes 40 - 7f + 0x3F, 0x41, 0x40, 0x41, 0x41, 0x41, 0x42, 0x41, + 0x43, 0x41, 0x44, 0x41, 0x45, 0x41, 0x46, 0x41, + 0x47, 0x41, 0x48, 0x41, 0x49, 0x41, 0x4A, 0x41, + 0x4B, 0x41, 0x4C, 0x41, 0x4D, 0x41, 0x4E, 0x41, + 0x4F, 0x41, 0x50, 0x41, 0x51, 0x41, 0x52, 0x41, + 0x53, 0x41, 0x54, 0x41, 0x55, 0x41, 0x56, 0x41, + 0x57, 0x41, 0x58, 0x41, 0x59, 0x41, 0x5A, 0x41, + 0x5B, 0x41, 0x5C, 0x41, 0x5D, 0x41, 0x5E, 0x41, + // Bytes 80 - bf + 0x5F, 0x41, 0x60, 0x41, 0x61, 0x41, 0x62, 0x41, + 0x63, 0x41, 0x64, 0x41, 0x65, 0x41, 0x66, 0x41, + 0x67, 0x41, 0x68, 0x41, 0x69, 0x41, 0x6A, 0x41, + 0x6B, 0x41, 0x6C, 0x41, 0x6D, 0x41, 0x6E, 0x41, + 0x6F, 0x41, 0x70, 0x41, 0x71, 0x41, 0x72, 0x41, + 0x73, 0x41, 0x74, 0x41, 0x75, 0x41, 0x76, 0x41, + 0x77, 0x41, 0x78, 0x41, 0x79, 0x41, 0x7A, 0x41, + 0x7B, 0x41, 0x7C, 0x41, 0x7D, 0x41, 0x7E, 0x42, + // Bytes c0 - ff + 0xC2, 0xA2, 0x42, 0xC2, 0xA3, 0x42, 0xC2, 0xA5, + 0x42, 0xC2, 0xA6, 0x42, 0xC2, 0xAC, 0x42, 0xC2, + 0xB7, 0x42, 0xC3, 0x86, 0x42, 0xC3, 0xB0, 0x42, + 0xC4, 0xA6, 0x42, 0xC4, 0xA7, 0x42, 0xC4, 0xB1, + 0x42, 0xC5, 0x8B, 0x42, 0xC5, 0x93, 0x42, 0xC6, + 0x8E, 0x42, 0xC6, 0x90, 0x42, 0xC6, 0xAB, 0x42, + 0xC8, 0xA2, 0x42, 0xC8, 0xB7, 0x42, 0xC9, 0x90, + 0x42, 0xC9, 0x91, 0x42, 0xC9, 0x92, 0x42, 0xC9, + // Bytes 100 - 13f + 0x94, 0x42, 0xC9, 0x95, 0x42, 0xC9, 0x99, 0x42, + 0xC9, 0x9B, 0x42, 0xC9, 0x9C, 0x42, 0xC9, 0x9F, + 0x42, 0xC9, 0xA1, 0x42, 0xC9, 0xA3, 0x42, 0xC9, + 0xA5, 0x42, 0xC9, 0xA6, 0x42, 0xC9, 0xA8, 0x42, + 0xC9, 0xA9, 0x42, 0xC9, 0xAA, 0x42, 0xC9, 0xAB, + 0x42, 0xC9, 0xAD, 0x42, 0xC9, 0xAF, 0x42, 0xC9, + 0xB0, 0x42, 0xC9, 0xB1, 0x42, 0xC9, 0xB2, 0x42, + 0xC9, 0xB3, 0x42, 0xC9, 0xB4, 0x42, 0xC9, 0xB5, + // Bytes 140 - 17f + 0x42, 0xC9, 0xB8, 0x42, 0xC9, 0xB9, 0x42, 0xC9, + 0xBB, 0x42, 0xCA, 0x81, 0x42, 0xCA, 0x82, 0x42, + 0xCA, 0x83, 0x42, 0xCA, 0x89, 0x42, 0xCA, 0x8A, + 0x42, 0xCA, 0x8B, 0x42, 0xCA, 0x8C, 0x42, 0xCA, + 0x90, 0x42, 0xCA, 0x91, 0x42, 0xCA, 0x92, 0x42, + 0xCA, 0x95, 0x42, 0xCA, 0x9D, 0x42, 0xCA, 0x9F, + 0x42, 0xCA, 0xB9, 0x42, 0xCE, 0x91, 0x42, 0xCE, + 0x92, 0x42, 0xCE, 0x93, 0x42, 0xCE, 0x94, 0x42, + // Bytes 180 - 1bf + 0xCE, 0x95, 0x42, 0xCE, 0x96, 0x42, 0xCE, 0x97, + 0x42, 0xCE, 0x98, 0x42, 0xCE, 0x99, 0x42, 0xCE, + 0x9A, 0x42, 0xCE, 0x9B, 0x42, 0xCE, 0x9C, 0x42, + 0xCE, 0x9D, 0x42, 0xCE, 0x9E, 0x42, 0xCE, 0x9F, + 0x42, 0xCE, 0xA0, 0x42, 0xCE, 0xA1, 0x42, 0xCE, + 0xA3, 0x42, 0xCE, 0xA4, 0x42, 0xCE, 0xA5, 0x42, + 0xCE, 0xA6, 0x42, 0xCE, 0xA7, 0x42, 0xCE, 0xA8, + 0x42, 0xCE, 0xA9, 0x42, 0xCE, 0xB1, 0x42, 0xCE, + // Bytes 1c0 - 1ff + 0xB2, 0x42, 0xCE, 0xB3, 0x42, 0xCE, 0xB4, 0x42, + 0xCE, 0xB5, 0x42, 0xCE, 0xB6, 0x42, 0xCE, 0xB7, + 0x42, 0xCE, 0xB8, 0x42, 0xCE, 0xB9, 0x42, 0xCE, + 0xBA, 0x42, 0xCE, 0xBB, 0x42, 0xCE, 0xBC, 0x42, + 0xCE, 0xBD, 0x42, 0xCE, 0xBE, 0x42, 0xCE, 0xBF, + 0x42, 0xCF, 0x80, 0x42, 0xCF, 0x81, 0x42, 0xCF, + 0x82, 0x42, 0xCF, 0x83, 0x42, 0xCF, 0x84, 0x42, + 0xCF, 0x85, 0x42, 0xCF, 0x86, 0x42, 0xCF, 0x87, + // Bytes 200 - 23f + 0x42, 0xCF, 0x88, 0x42, 0xCF, 0x89, 0x42, 0xCF, + 0x9C, 0x42, 0xCF, 0x9D, 0x42, 0xD0, 0xBD, 0x42, + 0xD1, 0x8A, 0x42, 0xD1, 0x8C, 0x42, 0xD7, 0x90, + 0x42, 0xD7, 0x91, 0x42, 0xD7, 0x92, 0x42, 0xD7, + 0x93, 0x42, 0xD7, 0x94, 0x42, 0xD7, 0x9B, 0x42, + 0xD7, 0x9C, 0x42, 0xD7, 0x9D, 0x42, 0xD7, 0xA2, + 0x42, 0xD7, 0xA8, 0x42, 0xD7, 0xAA, 0x42, 0xD8, + 0xA1, 0x42, 0xD8, 0xA7, 0x42, 0xD8, 0xA8, 0x42, + // Bytes 240 - 27f + 0xD8, 0xA9, 0x42, 0xD8, 0xAA, 0x42, 0xD8, 0xAB, + 0x42, 0xD8, 0xAC, 0x42, 0xD8, 0xAD, 0x42, 0xD8, + 0xAE, 0x42, 0xD8, 0xAF, 0x42, 0xD8, 0xB0, 0x42, + 0xD8, 0xB1, 0x42, 0xD8, 0xB2, 0x42, 0xD8, 0xB3, + 0x42, 0xD8, 0xB4, 0x42, 0xD8, 0xB5, 0x42, 0xD8, + 0xB6, 0x42, 0xD8, 0xB7, 0x42, 0xD8, 0xB8, 0x42, + 0xD8, 0xB9, 0x42, 0xD8, 0xBA, 0x42, 0xD9, 0x81, + 0x42, 0xD9, 0x82, 0x42, 0xD9, 0x83, 0x42, 0xD9, + // Bytes 280 - 2bf + 0x84, 0x42, 0xD9, 0x85, 0x42, 0xD9, 0x86, 0x42, + 0xD9, 0x87, 0x42, 0xD9, 0x88, 0x42, 0xD9, 0x89, + 0x42, 0xD9, 0x8A, 0x42, 0xD9, 0xAE, 0x42, 0xD9, + 0xAF, 0x42, 0xD9, 0xB1, 0x42, 0xD9, 0xB9, 0x42, + 0xD9, 0xBA, 0x42, 0xD9, 0xBB, 0x42, 0xD9, 0xBE, + 0x42, 0xD9, 0xBF, 0x42, 0xDA, 0x80, 0x42, 0xDA, + 0x83, 0x42, 0xDA, 0x84, 0x42, 0xDA, 0x86, 0x42, + 0xDA, 0x87, 0x42, 0xDA, 0x88, 0x42, 0xDA, 0x8C, + // Bytes 2c0 - 2ff + 0x42, 0xDA, 0x8D, 0x42, 0xDA, 0x8E, 0x42, 0xDA, + 0x91, 0x42, 0xDA, 0x98, 0x42, 0xDA, 0xA1, 0x42, + 0xDA, 0xA4, 0x42, 0xDA, 0xA6, 0x42, 0xDA, 0xA9, + 0x42, 0xDA, 0xAD, 0x42, 0xDA, 0xAF, 0x42, 0xDA, + 0xB1, 0x42, 0xDA, 0xB3, 0x42, 0xDA, 0xBA, 0x42, + 0xDA, 0xBB, 0x42, 0xDA, 0xBE, 0x42, 0xDB, 0x81, + 0x42, 0xDB, 0x85, 0x42, 0xDB, 0x86, 0x42, 0xDB, + 0x87, 0x42, 0xDB, 0x88, 0x42, 0xDB, 0x89, 0x42, + // Bytes 300 - 33f + 0xDB, 0x8B, 0x42, 0xDB, 0x8C, 0x42, 0xDB, 0x90, + 0x42, 0xDB, 0x92, 0x43, 0xE0, 0xBC, 0x8B, 0x43, + 0xE1, 0x83, 0x9C, 0x43, 0xE1, 0x84, 0x80, 0x43, + 0xE1, 0x84, 0x81, 0x43, 0xE1, 0x84, 0x82, 0x43, + 0xE1, 0x84, 0x83, 0x43, 0xE1, 0x84, 0x84, 0x43, + 0xE1, 0x84, 0x85, 0x43, 0xE1, 0x84, 0x86, 0x43, + 0xE1, 0x84, 0x87, 0x43, 0xE1, 0x84, 0x88, 0x43, + 0xE1, 0x84, 0x89, 0x43, 0xE1, 0x84, 0x8A, 0x43, + // Bytes 340 - 37f + 0xE1, 0x84, 0x8B, 0x43, 0xE1, 0x84, 0x8C, 0x43, + 0xE1, 0x84, 0x8D, 0x43, 0xE1, 0x84, 0x8E, 0x43, + 0xE1, 0x84, 0x8F, 0x43, 0xE1, 0x84, 0x90, 0x43, + 0xE1, 0x84, 0x91, 0x43, 0xE1, 0x84, 0x92, 0x43, + 0xE1, 0x84, 0x94, 0x43, 0xE1, 0x84, 0x95, 0x43, + 0xE1, 0x84, 0x9A, 0x43, 0xE1, 0x84, 0x9C, 0x43, + 0xE1, 0x84, 0x9D, 0x43, 0xE1, 0x84, 0x9E, 0x43, + 0xE1, 0x84, 0xA0, 0x43, 0xE1, 0x84, 0xA1, 0x43, + // Bytes 380 - 3bf + 0xE1, 0x84, 0xA2, 0x43, 0xE1, 0x84, 0xA3, 0x43, + 0xE1, 0x84, 0xA7, 0x43, 0xE1, 0x84, 0xA9, 0x43, + 0xE1, 0x84, 0xAB, 0x43, 0xE1, 0x84, 0xAC, 0x43, + 0xE1, 0x84, 0xAD, 0x43, 0xE1, 0x84, 0xAE, 0x43, + 0xE1, 0x84, 0xAF, 0x43, 0xE1, 0x84, 0xB2, 0x43, + 0xE1, 0x84, 0xB6, 0x43, 0xE1, 0x85, 0x80, 0x43, + 0xE1, 0x85, 0x87, 0x43, 0xE1, 0x85, 0x8C, 0x43, + 0xE1, 0x85, 0x97, 0x43, 0xE1, 0x85, 0x98, 0x43, + // Bytes 3c0 - 3ff + 0xE1, 0x85, 0x99, 0x43, 0xE1, 0x85, 0xA0, 0x43, + 0xE1, 0x86, 0x84, 0x43, 0xE1, 0x86, 0x85, 0x43, + 0xE1, 0x86, 0x88, 0x43, 0xE1, 0x86, 0x91, 0x43, + 0xE1, 0x86, 0x92, 0x43, 0xE1, 0x86, 0x94, 0x43, + 0xE1, 0x86, 0x9E, 0x43, 0xE1, 0x86, 0xA1, 0x43, + 0xE1, 0x87, 0x87, 0x43, 0xE1, 0x87, 0x88, 0x43, + 0xE1, 0x87, 0x8C, 0x43, 0xE1, 0x87, 0x8E, 0x43, + 0xE1, 0x87, 0x93, 0x43, 0xE1, 0x87, 0x97, 0x43, + // Bytes 400 - 43f + 0xE1, 0x87, 0x99, 0x43, 0xE1, 0x87, 0x9D, 0x43, + 0xE1, 0x87, 0x9F, 0x43, 0xE1, 0x87, 0xB1, 0x43, + 0xE1, 0x87, 0xB2, 0x43, 0xE1, 0xB4, 0x82, 0x43, + 0xE1, 0xB4, 0x96, 0x43, 0xE1, 0xB4, 0x97, 0x43, + 0xE1, 0xB4, 0x9C, 0x43, 0xE1, 0xB4, 0x9D, 0x43, + 0xE1, 0xB4, 0xA5, 0x43, 0xE1, 0xB5, 0xBB, 0x43, + 0xE1, 0xB6, 0x85, 0x43, 0xE2, 0x80, 0x82, 0x43, + 0xE2, 0x80, 0x83, 0x43, 0xE2, 0x80, 0x90, 0x43, + // Bytes 440 - 47f + 0xE2, 0x80, 0x93, 0x43, 0xE2, 0x80, 0x94, 0x43, + 0xE2, 0x82, 0xA9, 0x43, 0xE2, 0x86, 0x90, 0x43, + 0xE2, 0x86, 0x91, 0x43, 0xE2, 0x86, 0x92, 0x43, + 0xE2, 0x86, 0x93, 0x43, 0xE2, 0x88, 0x82, 0x43, + 0xE2, 0x88, 0x87, 0x43, 0xE2, 0x88, 0x91, 0x43, + 0xE2, 0x88, 0x92, 0x43, 0xE2, 0x94, 0x82, 0x43, + 0xE2, 0x96, 0xA0, 0x43, 0xE2, 0x97, 0x8B, 0x43, + 0xE2, 0xA6, 0x85, 0x43, 0xE2, 0xA6, 0x86, 0x43, + // Bytes 480 - 4bf + 0xE2, 0xB5, 0xA1, 0x43, 0xE3, 0x80, 0x81, 0x43, + 0xE3, 0x80, 0x82, 0x43, 0xE3, 0x80, 0x88, 0x43, + 0xE3, 0x80, 0x89, 0x43, 0xE3, 0x80, 0x8A, 0x43, + 0xE3, 0x80, 0x8B, 0x43, 0xE3, 0x80, 0x8C, 0x43, + 0xE3, 0x80, 0x8D, 0x43, 0xE3, 0x80, 0x8E, 0x43, + 0xE3, 0x80, 0x8F, 0x43, 0xE3, 0x80, 0x90, 0x43, + 0xE3, 0x80, 0x91, 0x43, 0xE3, 0x80, 0x92, 0x43, + 0xE3, 0x80, 0x94, 0x43, 0xE3, 0x80, 0x95, 0x43, + // Bytes 4c0 - 4ff + 0xE3, 0x80, 0x96, 0x43, 0xE3, 0x80, 0x97, 0x43, + 0xE3, 0x82, 0xA1, 0x43, 0xE3, 0x82, 0xA2, 0x43, + 0xE3, 0x82, 0xA3, 0x43, 0xE3, 0x82, 0xA4, 0x43, + 0xE3, 0x82, 0xA5, 0x43, 0xE3, 0x82, 0xA6, 0x43, + 0xE3, 0x82, 0xA7, 0x43, 0xE3, 0x82, 0xA8, 0x43, + 0xE3, 0x82, 0xA9, 0x43, 0xE3, 0x82, 0xAA, 0x43, + 0xE3, 0x82, 0xAB, 0x43, 0xE3, 0x82, 0xAD, 0x43, + 0xE3, 0x82, 0xAF, 0x43, 0xE3, 0x82, 0xB1, 0x43, + // Bytes 500 - 53f + 0xE3, 0x82, 0xB3, 0x43, 0xE3, 0x82, 0xB5, 0x43, + 0xE3, 0x82, 0xB7, 0x43, 0xE3, 0x82, 0xB9, 0x43, + 0xE3, 0x82, 0xBB, 0x43, 0xE3, 0x82, 0xBD, 0x43, + 0xE3, 0x82, 0xBF, 0x43, 0xE3, 0x83, 0x81, 0x43, + 0xE3, 0x83, 0x83, 0x43, 0xE3, 0x83, 0x84, 0x43, + 0xE3, 0x83, 0x86, 0x43, 0xE3, 0x83, 0x88, 0x43, + 0xE3, 0x83, 0x8A, 0x43, 0xE3, 0x83, 0x8B, 0x43, + 0xE3, 0x83, 0x8C, 0x43, 0xE3, 0x83, 0x8D, 0x43, + // Bytes 540 - 57f + 0xE3, 0x83, 0x8E, 0x43, 0xE3, 0x83, 0x8F, 0x43, + 0xE3, 0x83, 0x92, 0x43, 0xE3, 0x83, 0x95, 0x43, + 0xE3, 0x83, 0x98, 0x43, 0xE3, 0x83, 0x9B, 0x43, + 0xE3, 0x83, 0x9E, 0x43, 0xE3, 0x83, 0x9F, 0x43, + 0xE3, 0x83, 0xA0, 0x43, 0xE3, 0x83, 0xA1, 0x43, + 0xE3, 0x83, 0xA2, 0x43, 0xE3, 0x83, 0xA3, 0x43, + 0xE3, 0x83, 0xA4, 0x43, 0xE3, 0x83, 0xA5, 0x43, + 0xE3, 0x83, 0xA6, 0x43, 0xE3, 0x83, 0xA7, 0x43, + // Bytes 580 - 5bf + 0xE3, 0x83, 0xA8, 0x43, 0xE3, 0x83, 0xA9, 0x43, + 0xE3, 0x83, 0xAA, 0x43, 0xE3, 0x83, 0xAB, 0x43, + 0xE3, 0x83, 0xAC, 0x43, 0xE3, 0x83, 0xAD, 0x43, + 0xE3, 0x83, 0xAF, 0x43, 0xE3, 0x83, 0xB0, 0x43, + 0xE3, 0x83, 0xB1, 0x43, 0xE3, 0x83, 0xB2, 0x43, + 0xE3, 0x83, 0xB3, 0x43, 0xE3, 0x83, 0xBB, 0x43, + 0xE3, 0x83, 0xBC, 0x43, 0xE3, 0x92, 0x9E, 0x43, + 0xE3, 0x92, 0xB9, 0x43, 0xE3, 0x92, 0xBB, 0x43, + // Bytes 5c0 - 5ff + 0xE3, 0x93, 0x9F, 0x43, 0xE3, 0x94, 0x95, 0x43, + 0xE3, 0x9B, 0xAE, 0x43, 0xE3, 0x9B, 0xBC, 0x43, + 0xE3, 0x9E, 0x81, 0x43, 0xE3, 0xA0, 0xAF, 0x43, + 0xE3, 0xA1, 0xA2, 0x43, 0xE3, 0xA1, 0xBC, 0x43, + 0xE3, 0xA3, 0x87, 0x43, 0xE3, 0xA3, 0xA3, 0x43, + 0xE3, 0xA4, 0x9C, 0x43, 0xE3, 0xA4, 0xBA, 0x43, + 0xE3, 0xA8, 0xAE, 0x43, 0xE3, 0xA9, 0xAC, 0x43, + 0xE3, 0xAB, 0xA4, 0x43, 0xE3, 0xAC, 0x88, 0x43, + // Bytes 600 - 63f + 0xE3, 0xAC, 0x99, 0x43, 0xE3, 0xAD, 0x89, 0x43, + 0xE3, 0xAE, 0x9D, 0x43, 0xE3, 0xB0, 0x98, 0x43, + 0xE3, 0xB1, 0x8E, 0x43, 0xE3, 0xB4, 0xB3, 0x43, + 0xE3, 0xB6, 0x96, 0x43, 0xE3, 0xBA, 0xAC, 0x43, + 0xE3, 0xBA, 0xB8, 0x43, 0xE3, 0xBC, 0x9B, 0x43, + 0xE3, 0xBF, 0xBC, 0x43, 0xE4, 0x80, 0x88, 0x43, + 0xE4, 0x80, 0x98, 0x43, 0xE4, 0x80, 0xB9, 0x43, + 0xE4, 0x81, 0x86, 0x43, 0xE4, 0x82, 0x96, 0x43, + // Bytes 640 - 67f + 0xE4, 0x83, 0xA3, 0x43, 0xE4, 0x84, 0xAF, 0x43, + 0xE4, 0x88, 0x82, 0x43, 0xE4, 0x88, 0xA7, 0x43, + 0xE4, 0x8A, 0xA0, 0x43, 0xE4, 0x8C, 0x81, 0x43, + 0xE4, 0x8C, 0xB4, 0x43, 0xE4, 0x8D, 0x99, 0x43, + 0xE4, 0x8F, 0x95, 0x43, 0xE4, 0x8F, 0x99, 0x43, + 0xE4, 0x90, 0x8B, 0x43, 0xE4, 0x91, 0xAB, 0x43, + 0xE4, 0x94, 0xAB, 0x43, 0xE4, 0x95, 0x9D, 0x43, + 0xE4, 0x95, 0xA1, 0x43, 0xE4, 0x95, 0xAB, 0x43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A, 0xA4, 0x43, 0xE4, 0xBA, 0xAE, 0x43, + 0xE4, 0xBA, 0xBA, 0x43, 0xE4, 0xBB, 0x80, 0x43, + 0xE4, 0xBB, 0x8C, 0x43, 0xE4, 0xBB, 0xA4, 0x43, + // Bytes 740 - 77f + 0xE4, 0xBC, 0x81, 0x43, 0xE4, 0xBC, 0x91, 0x43, + 0xE4, 0xBD, 0xA0, 0x43, 0xE4, 0xBE, 0x80, 0x43, + 0xE4, 0xBE, 0x86, 0x43, 0xE4, 0xBE, 0x8B, 0x43, + 0xE4, 0xBE, 0xAE, 0x43, 0xE4, 0xBE, 0xBB, 0x43, + 0xE4, 0xBE, 0xBF, 0x43, 0xE5, 0x80, 0x82, 0x43, + 0xE5, 0x80, 0xAB, 0x43, 0xE5, 0x81, 0xBA, 0x43, + 0xE5, 0x82, 0x99, 0x43, 0xE5, 0x83, 0x8F, 0x43, + 0xE5, 0x83, 0x9A, 0x43, 0xE5, 0x83, 0xA7, 0x43, + // Bytes 780 - 7bf + 0xE5, 0x84, 0xAA, 0x43, 0xE5, 0x84, 0xBF, 0x43, + 0xE5, 0x85, 0x80, 0x43, 0xE5, 0x85, 0x85, 0x43, + 0xE5, 0x85, 0x8D, 0x43, 0xE5, 0x85, 0x94, 0x43, + 0xE5, 0x85, 0xA4, 0x43, 0xE5, 0x85, 0xA5, 0x43, + 0xE5, 0x85, 0xA7, 0x43, 0xE5, 0x85, 0xA8, 0x43, + 0xE5, 0x85, 0xA9, 0x43, 0xE5, 0x85, 0xAB, 0x43, + 0xE5, 0x85, 0xAD, 0x43, 0xE5, 0x85, 0xB7, 0x43, + 0xE5, 0x86, 0x80, 0x43, 0xE5, 0x86, 0x82, 0x43, + // Bytes 7c0 - 7ff + 0xE5, 0x86, 0x8D, 0x43, 0xE5, 0x86, 0x92, 0x43, + 0xE5, 0x86, 0x95, 0x43, 0xE5, 0x86, 0x96, 0x43, + 0xE5, 0x86, 0x97, 0x43, 0xE5, 0x86, 0x99, 0x43, + 0xE5, 0x86, 0xA4, 0x43, 0xE5, 0x86, 0xAB, 0x43, + 0xE5, 0x86, 0xAC, 0x43, 0xE5, 0x86, 0xB5, 0x43, + 0xE5, 0x86, 0xB7, 0x43, 0xE5, 0x87, 0x89, 0x43, + 0xE5, 0x87, 0x8C, 0x43, 0xE5, 0x87, 0x9C, 0x43, + 0xE5, 0x87, 0x9E, 0x43, 0xE5, 0x87, 0xA0, 0x43, + // Bytes 800 - 83f + 0xE5, 0x87, 0xB5, 0x43, 0xE5, 0x88, 0x80, 0x43, + 0xE5, 0x88, 0x83, 0x43, 0xE5, 0x88, 0x87, 0x43, + 0xE5, 0x88, 0x97, 0x43, 0xE5, 0x88, 0x9D, 0x43, + 0xE5, 0x88, 0xA9, 0x43, 0xE5, 0x88, 0xBA, 0x43, + 0xE5, 0x88, 0xBB, 0x43, 0xE5, 0x89, 0x86, 0x43, + 0xE5, 0x89, 0x8D, 0x43, 0xE5, 0x89, 0xB2, 0x43, + 0xE5, 0x89, 0xB7, 0x43, 0xE5, 0x8A, 0x89, 0x43, + 0xE5, 0x8A, 0x9B, 0x43, 0xE5, 0x8A, 0xA3, 0x43, + // Bytes 840 - 87f + 0xE5, 0x8A, 0xB3, 0x43, 0xE5, 0x8A, 0xB4, 0x43, + 0xE5, 0x8B, 0x87, 0x43, 0xE5, 0x8B, 0x89, 0x43, + 0xE5, 0x8B, 0x92, 0x43, 0xE5, 0x8B, 0x9E, 0x43, + 0xE5, 0x8B, 0xA4, 0x43, 0xE5, 0x8B, 0xB5, 0x43, + 0xE5, 0x8B, 0xB9, 0x43, 0xE5, 0x8B, 0xBA, 0x43, + 0xE5, 0x8C, 0x85, 0x43, 0xE5, 0x8C, 0x86, 0x43, + 0xE5, 0x8C, 0x95, 0x43, 0xE5, 0x8C, 0x97, 0x43, + 0xE5, 0x8C, 0x9A, 0x43, 0xE5, 0x8C, 0xB8, 0x43, + // Bytes 880 - 8bf + 0xE5, 0x8C, 0xBB, 0x43, 0xE5, 0x8C, 0xBF, 0x43, + 0xE5, 0x8D, 0x81, 0x43, 0xE5, 0x8D, 0x84, 0x43, + 0xE5, 0x8D, 0x85, 0x43, 0xE5, 0x8D, 0x89, 0x43, + 0xE5, 0x8D, 0x91, 0x43, 0xE5, 0x8D, 0x94, 0x43, + 0xE5, 0x8D, 0x9A, 0x43, 0xE5, 0x8D, 0x9C, 0x43, + 0xE5, 0x8D, 0xA9, 0x43, 0xE5, 0x8D, 0xB0, 0x43, + 0xE5, 0x8D, 0xB3, 0x43, 0xE5, 0x8D, 0xB5, 0x43, + 0xE5, 0x8D, 0xBD, 0x43, 0xE5, 0x8D, 0xBF, 0x43, + // Bytes 8c0 - 8ff + 0xE5, 0x8E, 0x82, 0x43, 0xE5, 0x8E, 0xB6, 0x43, + 0xE5, 0x8F, 0x83, 0x43, 0xE5, 0x8F, 0x88, 0x43, + 0xE5, 0x8F, 0x8A, 0x43, 0xE5, 0x8F, 0x8C, 0x43, + 0xE5, 0x8F, 0x9F, 0x43, 0xE5, 0x8F, 0xA3, 0x43, + 0xE5, 0x8F, 0xA5, 0x43, 0xE5, 0x8F, 0xAB, 0x43, + 0xE5, 0x8F, 0xAF, 0x43, 0xE5, 0x8F, 0xB1, 0x43, + 0xE5, 0x8F, 0xB3, 0x43, 0xE5, 0x90, 0x86, 0x43, + 0xE5, 0x90, 0x88, 0x43, 0xE5, 0x90, 0x8D, 0x43, + // Bytes 900 - 93f + 0xE5, 0x90, 0x8F, 0x43, 0xE5, 0x90, 0x9D, 0x43, + 0xE5, 0x90, 0xB8, 0x43, 0xE5, 0x90, 0xB9, 0x43, + 0xE5, 0x91, 0x82, 0x43, 0xE5, 0x91, 0x88, 0x43, + 0xE5, 0x91, 0xA8, 0x43, 0xE5, 0x92, 0x9E, 0x43, + 0xE5, 0x92, 0xA2, 0x43, 0xE5, 0x92, 0xBD, 0x43, + 0xE5, 0x93, 0xB6, 0x43, 0xE5, 0x94, 0x90, 0x43, + 0xE5, 0x95, 0x8F, 0x43, 0xE5, 0x95, 0x93, 0x43, + 0xE5, 0x95, 0x95, 0x43, 0xE5, 0x95, 0xA3, 0x43, + // Bytes 940 - 97f + 0xE5, 0x96, 0x84, 0x43, 0xE5, 0x96, 0x87, 0x43, + 0xE5, 0x96, 0x99, 0x43, 0xE5, 0x96, 0x9D, 0x43, + 0xE5, 0x96, 0xAB, 0x43, 0xE5, 0x96, 0xB3, 0x43, + 0xE5, 0x96, 0xB6, 0x43, 0xE5, 0x97, 0x80, 0x43, + 0xE5, 0x97, 0x82, 0x43, 0xE5, 0x97, 0xA2, 0x43, + 0xE5, 0x98, 0x86, 0x43, 0xE5, 0x99, 0x91, 0x43, + 0xE5, 0x99, 0xA8, 0x43, 0xE5, 0x99, 0xB4, 0x43, + 0xE5, 0x9B, 0x97, 0x43, 0xE5, 0x9B, 0x9B, 0x43, + // Bytes 980 - 9bf + 0xE5, 0x9B, 0xB9, 0x43, 0xE5, 0x9C, 0x96, 0x43, + 0xE5, 0x9C, 0x97, 0x43, 0xE5, 0x9C, 0x9F, 0x43, + 0xE5, 0x9C, 0xB0, 0x43, 0xE5, 0x9E, 0x8B, 0x43, + 0xE5, 0x9F, 0x8E, 0x43, 0xE5, 0x9F, 0xB4, 0x43, + 0xE5, 0xA0, 0x8D, 0x43, 0xE5, 0xA0, 0xB1, 0x43, + 0xE5, 0xA0, 0xB2, 0x43, 0xE5, 0xA1, 0x80, 0x43, + 0xE5, 0xA1, 0x9A, 0x43, 0xE5, 0xA1, 0x9E, 0x43, + 0xE5, 0xA2, 0xA8, 0x43, 0xE5, 0xA2, 0xAC, 0x43, + // Bytes 9c0 - 9ff + 0xE5, 0xA2, 0xB3, 0x43, 0xE5, 0xA3, 0x98, 0x43, + 0xE5, 0xA3, 0x9F, 0x43, 0xE5, 0xA3, 0xAB, 0x43, + 0xE5, 0xA3, 0xAE, 0x43, 0xE5, 0xA3, 0xB0, 0x43, + 0xE5, 0xA3, 0xB2, 0x43, 0xE5, 0xA3, 0xB7, 0x43, + 0xE5, 0xA4, 0x82, 0x43, 0xE5, 0xA4, 0x86, 0x43, + 0xE5, 0xA4, 0x8A, 0x43, 0xE5, 0xA4, 0x95, 0x43, + 0xE5, 0xA4, 0x9A, 0x43, 0xE5, 0xA4, 0x9C, 0x43, + 0xE5, 0xA4, 0xA2, 0x43, 0xE5, 0xA4, 0xA7, 0x43, + // Bytes a00 - a3f + 0xE5, 0xA4, 0xA9, 0x43, 0xE5, 0xA5, 0x84, 0x43, + 0xE5, 0xA5, 0x88, 0x43, 0xE5, 0xA5, 0x91, 0x43, + 0xE5, 0xA5, 0x94, 0x43, 0xE5, 0xA5, 0xA2, 0x43, + 0xE5, 0xA5, 0xB3, 0x43, 0xE5, 0xA7, 0x98, 0x43, + 0xE5, 0xA7, 0xAC, 0x43, 0xE5, 0xA8, 0x9B, 0x43, + 0xE5, 0xA8, 0xA7, 0x43, 0xE5, 0xA9, 0xA2, 0x43, + 0xE5, 0xA9, 0xA6, 0x43, 0xE5, 0xAA, 0xB5, 0x43, + 0xE5, 0xAC, 0x88, 0x43, 0xE5, 0xAC, 0xA8, 0x43, + // Bytes a40 - a7f + 0xE5, 0xAC, 0xBE, 0x43, 0xE5, 0xAD, 0x90, 0x43, + 0xE5, 0xAD, 0x97, 0x43, 0xE5, 0xAD, 0xA6, 0x43, + 0xE5, 0xAE, 0x80, 0x43, 0xE5, 0xAE, 0x85, 0x43, + 0xE5, 0xAE, 0x97, 0x43, 0xE5, 0xAF, 0x83, 0x43, + 0xE5, 0xAF, 0x98, 0x43, 0xE5, 0xAF, 0xA7, 0x43, + 0xE5, 0xAF, 0xAE, 0x43, 0xE5, 0xAF, 0xB3, 0x43, + 0xE5, 0xAF, 0xB8, 0x43, 0xE5, 0xAF, 0xBF, 0x43, + 0xE5, 0xB0, 0x86, 0x43, 0xE5, 0xB0, 0x8F, 0x43, + // Bytes a80 - abf + 0xE5, 0xB0, 0xA2, 0x43, 0xE5, 0xB0, 0xB8, 0x43, + 0xE5, 0xB0, 0xBF, 0x43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 0x43, + 0xE5, 0xBB, 0xBE, 0x43, 0xE5, 0xBC, 0x84, 0x43, + // Bytes b40 - b7f + 0xE5, 0xBC, 0x8B, 0x43, 0xE5, 0xBC, 0x93, 0x43, + 0xE5, 0xBC, 0xA2, 0x43, 0xE5, 0xBD, 0x90, 0x43, + 0xE5, 0xBD, 0x93, 0x43, 0xE5, 0xBD, 0xA1, 0x43, + 0xE5, 0xBD, 0xA2, 0x43, 0xE5, 0xBD, 0xA9, 0x43, + 0xE5, 0xBD, 0xAB, 0x43, 0xE5, 0xBD, 0xB3, 0x43, + 0xE5, 0xBE, 0x8B, 0x43, 0xE5, 0xBE, 0x8C, 0x43, + 0xE5, 0xBE, 0x97, 0x43, 0xE5, 0xBE, 0x9A, 0x43, + 0xE5, 0xBE, 0xA9, 0x43, 0xE5, 0xBE, 0xAD, 0x43, + // Bytes b80 - bbf + 0xE5, 0xBF, 0x83, 0x43, 0xE5, 0xBF, 0x8D, 0x43, + 0xE5, 0xBF, 0x97, 0x43, 0xE5, 0xBF, 0xB5, 0x43, + 0xE5, 0xBF, 0xB9, 0x43, 0xE6, 0x80, 0x92, 0x43, + 0xE6, 0x80, 0x9C, 0x43, 0xE6, 0x81, 0xB5, 0x43, + 0xE6, 0x82, 0x81, 0x43, 0xE6, 0x82, 0x94, 0x43, + 0xE6, 0x83, 0x87, 0x43, 0xE6, 0x83, 0x98, 0x43, + 0xE6, 0x83, 0xA1, 0x43, 0xE6, 0x84, 0x88, 0x43, + 0xE6, 0x85, 0x84, 0x43, 0xE6, 0x85, 0x88, 0x43, + // Bytes bc0 - bff + 0xE6, 0x85, 0x8C, 0x43, 0xE6, 0x85, 0x8E, 0x43, + 0xE6, 0x85, 0xA0, 0x43, 0xE6, 0x85, 0xA8, 0x43, + 0xE6, 0x85, 0xBA, 0x43, 0xE6, 0x86, 0x8E, 0x43, + 0xE6, 0x86, 0x90, 0x43, 0xE6, 0x86, 0xA4, 0x43, + 0xE6, 0x86, 0xAF, 0x43, 0xE6, 0x86, 0xB2, 0x43, + 0xE6, 0x87, 0x9E, 0x43, 0xE6, 0x87, 0xB2, 0x43, + 0xE6, 0x87, 0xB6, 0x43, 0xE6, 0x88, 0x80, 0x43, + 0xE6, 0x88, 0x88, 0x43, 0xE6, 0x88, 0x90, 0x43, + // Bytes c00 - c3f + 0xE6, 0x88, 0x9B, 0x43, 0xE6, 0x88, 0xAE, 0x43, + 0xE6, 0x88, 0xB4, 0x43, 0xE6, 0x88, 0xB6, 0x43, + 0xE6, 0x89, 0x8B, 0x43, 0xE6, 0x89, 0x93, 0x43, + 0xE6, 0x89, 0x9D, 0x43, 0xE6, 0x8A, 0x95, 0x43, + 0xE6, 0x8A, 0xB1, 0x43, 0xE6, 0x8B, 0x89, 0x43, + 0xE6, 0x8B, 0x8F, 0x43, 0xE6, 0x8B, 0x93, 0x43, + 0xE6, 0x8B, 0x94, 0x43, 0xE6, 0x8B, 0xBC, 0x43, + 0xE6, 0x8B, 0xBE, 0x43, 0xE6, 0x8C, 0x87, 0x43, + // Bytes c40 - c7f + 0xE6, 0x8C, 0xBD, 0x43, 0xE6, 0x8D, 0x90, 0x43, + 0xE6, 0x8D, 0x95, 0x43, 0xE6, 0x8D, 0xA8, 0x43, + 0xE6, 0x8D, 0xBB, 0x43, 0xE6, 0x8E, 0x83, 0x43, + 0xE6, 0x8E, 0xA0, 0x43, 0xE6, 0x8E, 0xA9, 0x43, + 0xE6, 0x8F, 0x84, 0x43, 0xE6, 0x8F, 0x85, 0x43, + 0xE6, 0x8F, 0xA4, 0x43, 0xE6, 0x90, 0x9C, 0x43, + 0xE6, 0x90, 0xA2, 0x43, 0xE6, 0x91, 0x92, 0x43, + 0xE6, 0x91, 0xA9, 0x43, 0xE6, 0x91, 0xB7, 0x43, + // Bytes c80 - cbf + 0xE6, 0x91, 0xBE, 0x43, 0xE6, 0x92, 0x9A, 0x43, + 0xE6, 0x92, 0x9D, 0x43, 0xE6, 0x93, 0x84, 0x43, + 0xE6, 0x94, 0xAF, 0x43, 0xE6, 0x94, 0xB4, 0x43, + 0xE6, 0x95, 0x8F, 0x43, 0xE6, 0x95, 0x96, 0x43, + 0xE6, 0x95, 0xAC, 0x43, 0xE6, 0x95, 0xB8, 0x43, + 0xE6, 0x96, 0x87, 0x43, 0xE6, 0x96, 0x97, 0x43, + 0xE6, 0x96, 0x99, 0x43, 0xE6, 0x96, 0xA4, 0x43, + 0xE6, 0x96, 0xB0, 0x43, 0xE6, 0x96, 0xB9, 0x43, + // Bytes cc0 - cff + 0xE6, 0x97, 0x85, 0x43, 0xE6, 0x97, 0xA0, 0x43, + 0xE6, 0x97, 0xA2, 0x43, 0xE6, 0x97, 0xA3, 0x43, + 0xE6, 0x97, 0xA5, 0x43, 0xE6, 0x98, 0x93, 0x43, + 0xE6, 0x98, 0xA0, 0x43, 0xE6, 0x99, 0x89, 0x43, + 0xE6, 0x99, 0xB4, 0x43, 0xE6, 0x9A, 0x88, 0x43, + 0xE6, 0x9A, 0x91, 0x43, 0xE6, 0x9A, 0x9C, 0x43, + 0xE6, 0x9A, 0xB4, 0x43, 0xE6, 0x9B, 0x86, 0x43, + 0xE6, 0x9B, 0xB0, 0x43, 0xE6, 0x9B, 0xB4, 0x43, + // Bytes d00 - d3f + 0xE6, 0x9B, 0xB8, 0x43, 0xE6, 0x9C, 0x80, 0x43, + 0xE6, 0x9C, 0x88, 0x43, 0xE6, 0x9C, 0x89, 0x43, + 0xE6, 0x9C, 0x97, 0x43, 0xE6, 0x9C, 0x9B, 0x43, + 0xE6, 0x9C, 0xA1, 0x43, 0xE6, 0x9C, 0xA8, 0x43, + 0xE6, 0x9D, 0x8E, 0x43, 0xE6, 0x9D, 0x93, 0x43, + 0xE6, 0x9D, 0x96, 0x43, 0xE6, 0x9D, 0x9E, 0x43, + 0xE6, 0x9D, 0xBB, 0x43, 0xE6, 0x9E, 0x85, 0x43, + 0xE6, 0x9E, 0x97, 0x43, 0xE6, 0x9F, 0xB3, 0x43, + // Bytes d40 - d7f + 0xE6, 0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, + 0xE7, 0x81, 0xB7, 0x43, 0xE7, 0x81, 0xBD, 0x43, + 0xE7, 0x82, 0x99, 0x43, 0xE7, 0x82, 0xAD, 0x43, + 0xE7, 0x83, 0x88, 0x43, 0xE7, 0x83, 0x99, 0x43, + 0xE7, 0x84, 0xA1, 0x43, 0xE7, 0x85, 0x85, 0x43, + 0xE7, 0x85, 0x89, 0x43, 0xE7, 0x85, 0xAE, 0x43, + // Bytes ec0 - eff + 0xE7, 0x86, 0x9C, 0x43, 0xE7, 0x87, 0x8E, 0x43, + 0xE7, 0x87, 0x90, 0x43, 0xE7, 0x88, 0x90, 0x43, + 0xE7, 0x88, 0x9B, 0x43, 0xE7, 0x88, 0xA8, 0x43, + 0xE7, 0x88, 0xAA, 0x43, 0xE7, 0x88, 0xAB, 0x43, + 0xE7, 0x88, 0xB5, 0x43, 0xE7, 0x88, 0xB6, 0x43, + 0xE7, 0x88, 0xBB, 0x43, 0xE7, 0x88, 0xBF, 0x43, + 0xE7, 0x89, 0x87, 0x43, 0xE7, 0x89, 0x90, 0x43, + 0xE7, 0x89, 0x99, 0x43, 0xE7, 0x89, 0x9B, 0x43, + // Bytes f00 - f3f + 0xE7, 0x89, 0xA2, 0x43, 0xE7, 0x89, 0xB9, 0x43, + 0xE7, 0x8A, 0x80, 0x43, 0xE7, 0x8A, 0x95, 0x43, + 0xE7, 0x8A, 0xAC, 0x43, 0xE7, 0x8A, 0xAF, 0x43, + 0xE7, 0x8B, 0x80, 0x43, 0xE7, 0x8B, 0xBC, 0x43, + 0xE7, 0x8C, 0xAA, 0x43, 0xE7, 0x8D, 0xB5, 0x43, + 0xE7, 0x8D, 0xBA, 0x43, 0xE7, 0x8E, 0x84, 0x43, + 0xE7, 0x8E, 0x87, 0x43, 0xE7, 0x8E, 0x89, 0x43, + 0xE7, 0x8E, 0x8B, 0x43, 0xE7, 0x8E, 0xA5, 0x43, + // Bytes f40 - f7f + 0xE7, 0x8E, 0xB2, 0x43, 0xE7, 0x8F, 0x9E, 0x43, + 0xE7, 0x90, 0x86, 0x43, 0xE7, 0x90, 0x89, 0x43, + 0xE7, 0x90, 0xA2, 0x43, 0xE7, 0x91, 0x87, 0x43, + 0xE7, 0x91, 0x9C, 0x43, 0xE7, 0x91, 0xA9, 0x43, + 0xE7, 0x91, 0xB1, 0x43, 0xE7, 0x92, 0x85, 0x43, + 0xE7, 0x92, 0x89, 0x43, 0xE7, 0x92, 0x98, 0x43, + 0xE7, 0x93, 0x8A, 0x43, 0xE7, 0x93, 0x9C, 0x43, + 0xE7, 0x93, 0xA6, 0x43, 0xE7, 0x94, 0x86, 0x43, + // Bytes f80 - fbf + 0xE7, 0x94, 0x98, 0x43, 0xE7, 0x94, 0x9F, 0x43, + 0xE7, 0x94, 0xA4, 0x43, 0xE7, 0x94, 0xA8, 0x43, + 0xE7, 0x94, 0xB0, 0x43, 0xE7, 0x94, 0xB2, 0x43, + 0xE7, 0x94, 0xB3, 0x43, 0xE7, 0x94, 0xB7, 0x43, + 0xE7, 0x94, 0xBB, 0x43, 0xE7, 0x94, 0xBE, 0x43, + 0xE7, 0x95, 0x99, 0x43, 0xE7, 0x95, 0xA5, 0x43, + 0xE7, 0x95, 0xB0, 0x43, 0xE7, 0x96, 0x8B, 0x43, + 0xE7, 0x96, 0x92, 0x43, 0xE7, 0x97, 0xA2, 0x43, + // Bytes fc0 - fff + 0xE7, 0x98, 0x90, 0x43, 0xE7, 0x98, 0x9D, 0x43, + 0xE7, 0x98, 0x9F, 0x43, 0xE7, 0x99, 0x82, 0x43, + 0xE7, 0x99, 0xA9, 0x43, 0xE7, 0x99, 0xB6, 0x43, + 0xE7, 0x99, 0xBD, 0x43, 0xE7, 0x9A, 0xAE, 0x43, + 0xE7, 0x9A, 0xBF, 0x43, 0xE7, 0x9B, 0x8A, 0x43, + 0xE7, 0x9B, 0x9B, 0x43, 0xE7, 0x9B, 0xA3, 0x43, + 0xE7, 0x9B, 0xA7, 0x43, 0xE7, 0x9B, 0xAE, 0x43, + 0xE7,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9, 0x8A, 0x43, 0xE7, 0xA9, 0x8F, 0x43, + 0xE7, 0xA9, 0xB4, 0x43, 0xE7, 0xA9, 0xBA, 0x43, + 0xE7, 0xAA, 0x81, 0x43, 0xE7, 0xAA, 0xB1, 0x43, + 0xE7, 0xAB, 0x8B, 0x43, 0xE7, 0xAB, 0xAE, 0x43, + // Bytes 10c0 - 10ff + 0xE7, 0xAB, 0xB9, 0x43, 0xE7, 0xAC, 0xA0, 0x43, + 0xE7, 0xAE, 0x8F, 0x43, 0xE7, 0xAF, 0x80, 0x43, + 0xE7, 0xAF, 0x86, 0x43, 0xE7, 0xAF, 0x89, 0x43, + 0xE7, 0xB0, 0xBE, 0x43, 0xE7, 0xB1, 0xA0, 0x43, + 0xE7, 0xB1, 0xB3, 0x43, 0xE7, 0xB1, 0xBB, 0x43, + 0xE7, 0xB2, 0x92, 0x43, 0xE7, 0xB2, 0xBE, 0x43, + 0xE7, 0xB3, 0x92, 0x43, 0xE7, 0xB3, 0x96, 0x43, + 0xE7, 0xB3, 0xA3, 0x43, 0xE7, 0xB3, 0xA7, 0x43, + // Bytes 1100 - 113f + 0xE7, 0xB3, 0xA8, 0x43, 0xE7, 0xB3, 0xB8, 0x43, + 0xE7, 0xB4, 0x80, 0x43, 0xE7, 0xB4, 0x90, 0x43, + 0xE7, 0xB4, 0xA2, 0x43, 0xE7, 0xB4, 0xAF, 0x43, + 0xE7, 0xB5, 0x82, 0x43, 0xE7, 0xB5, 0x9B, 0x43, + 0xE7, 0xB5, 0xA3, 0x43, 0xE7, 0xB6, 0xA0, 0x43, + 0xE7, 0xB6, 0xBE, 0x43, 0xE7, 0xB7, 0x87, 0x43, + 0xE7, 0xB7, 0xB4, 0x43, 0xE7, 0xB8, 0x82, 0x43, + 0xE7, 0xB8, 0x89, 0x43, 0xE7, 0xB8, 0xB7, 0x43, + // Bytes 1140 - 117f + 0xE7, 0xB9, 0x81, 0x43, 0xE7, 0xB9, 0x85, 0x43, + 0xE7, 0xBC, 0xB6, 0x43, 0xE7, 0xBC, 0xBE, 0x43, + 0xE7, 0xBD, 0x91, 0x43, 0xE7, 0xBD, 0xB2, 0x43, + 0xE7, 0xBD, 0xB9, 0x43, 0xE7, 0xBD, 0xBA, 0x43, + 0xE7, 0xBE, 0x85, 0x43, 0xE7, 0xBE, 0x8A, 0x43, + 0xE7, 0xBE, 0x95, 0x43, 0xE7, 0xBE, 0x9A, 0x43, + 0xE7, 0xBE, 0xBD, 0x43, 0xE7, 0xBF, 0xBA, 0x43, + 0xE8, 0x80, 0x81, 0x43, 0xE8, 0x80, 0x85, 0x43, + // Bytes 1180 - 11bf + 0xE8, 0x80, 0x8C, 0x43, 0xE8, 0x80, 0x92, 0x43, + 0xE8, 0x80, 0xB3, 0x43, 0xE8, 0x81, 0x86, 0x43, + 0xE8, 0x81, 0xA0, 0x43, 0xE8, 0x81, 0xAF, 0x43, + 0xE8, 0x81, 0xB0, 0x43, 0xE8, 0x81, 0xBE, 0x43, + 0xE8, 0x81, 0xBF, 0x43, 0xE8, 0x82, 0x89, 0x43, + 0xE8, 0x82, 0x8B, 0x43, 0xE8, 0x82, 0xAD, 0x43, + 0xE8, 0x82, 0xB2, 0x43, 0xE8, 0x84, 0x83, 0x43, + 0xE8, 0x84, 0xBE, 0x43, 0xE8, 0x87, 0x98, 0x43, + // Bytes 11c0 - 11ff + 0xE8, 0x87, 0xA3, 0x43, 0xE8, 0x87, 0xA8, 0x43, + 0xE8, 0x87, 0xAA, 0x43, 0xE8, 0x87, 0xAD, 0x43, + 0xE8, 0x87, 0xB3, 0x43, 0xE8, 0x87, 0xBC, 0x43, + 0xE8, 0x88, 0x81, 0x43, 0xE8, 0x88, 0x84, 0x43, + 0xE8, 0x88, 0x8C, 0x43, 0xE8, 0x88, 0x98, 0x43, + 0xE8, 0x88, 0x9B, 0x43, 0xE8, 0x88, 0x9F, 0x43, + 0xE8, 0x89, 0xAE, 0x43, 0xE8, 0x89, 0xAF, 0x43, + 0xE8, 0x89, 0xB2, 0x43, 0xE8, 0x89, 0xB8, 0x43, + // Bytes 1200 - 123f + 0xE8, 0x89, 0xB9, 0x43, 0xE8, 0x8A, 0x8B, 0x43, + 0xE8, 0x8A, 0x91, 0x43, 0xE8, 0x8A, 0x9D, 0x43, + 0xE8, 0x8A, 0xB1, 0x43, 0xE8, 0x8A, 0xB3, 0x43, + 0xE8, 0x8A, 0xBD, 0x43, 0xE8, 0x8B, 0xA5, 0x43, + 0xE8, 0x8B, 0xA6, 0x43, 0xE8, 0x8C, 0x9D, 0x43, + 0xE8, 0x8C, 0xA3, 0x43, 0xE8, 0x8C, 0xB6, 0x43, + 0xE8, 0x8D, 0x92, 0x43, 0xE8, 0x8D, 0x93, 0x43, + 0xE8, 0x8D, 0xA3, 0x43, 0xE8, 0x8E, 0xAD, 0x43, + // Bytes 1240 - 127f + 0xE8, 0x8E, 0xBD, 0x43, 0xE8, 0x8F, 0x89, 0x43, + 0xE8, 0x8F, 0x8A, 0x43, 0xE8, 0x8F, 0x8C, 0x43, + 0xE8, 0x8F, 0x9C, 0x43, 0xE8, 0x8F, 0xA7, 0x43, + 0xE8, 0x8F, 0xAF, 0x43, 0xE8, 0x8F, 0xB1, 0x43, + 0xE8, 0x90, 0xBD, 0x43, 0xE8, 0x91, 0x89, 0x43, + 0xE8, 0x91, 0x97, 0x43, 0xE8, 0x93, 0xAE, 0x43, + 0xE8, 0x93, 0xB1, 0x43, 0xE8, 0x93, 0xB3, 0x43, + 0xE8, 0x93, 0xBC, 0x43, 0xE8, 0x94, 0x96, 0x43, + // Bytes 1280 - 12bf + 0xE8, 0x95, 0xA4, 0x43, 0xE8, 0x97, 0x8D, 0x43, + 0xE8, 0x97, 0xBA, 0x43, 0xE8, 0x98, 0x86, 0x43, + 0xE8, 0x98, 0x92, 0x43, 0xE8, 0x98, 0xAD, 0x43, + 0xE8, 0x98, 0xBF, 0x43, 0xE8, 0x99, 0x8D, 0x43, + 0xE8, 0x99, 0x90, 0x43, 0xE8, 0x99, 0x9C, 0x43, + 0xE8, 0x99, 0xA7, 0x43, 0xE8, 0x99, 0xA9, 0x43, + 0xE8, 0x99, 0xAB, 0x43, 0xE8, 0x9A, 0x88, 0x43, + 0xE8, 0x9A, 0xA9, 0x43, 0xE8, 0x9B, 0xA2, 0x43, + // Bytes 12c0 - 12ff + 0xE8, 0x9C, 0x8E, 0x43, 0xE8, 0x9C, 0xA8, 0x43, + 0xE8, 0x9D, 0xAB, 0x43, 0xE8, 0x9D, 0xB9, 0x43, + 0xE8, 0x9E, 0x86, 0x43, 0xE8, 0x9E, 0xBA, 0x43, + 0xE8, 0x9F, 0xA1, 0x43, 0xE8, 0xA0, 0x81, 0x43, + 0xE8, 0xA0, 0x9F, 0x43, 0xE8, 0xA1, 0x80, 0x43, + 0xE8, 0xA1, 0x8C, 0x43, 0xE8, 0xA1, 0xA0, 0x43, + 0xE8, 0xA1, 0xA3, 0x43, 0xE8, 0xA3, 0x82, 0x43, + 0xE8, 0xA3, 0x8F, 0x43, 0xE8, 0xA3, 0x97, 0x43, + // Bytes 1300 - 133f + 0xE8, 0xA3, 0x9E, 0x43, 0xE8, 0xA3, 0xA1, 0x43, + 0xE8, 0xA3, 0xB8, 0x43, 0xE8, 0xA3, 0xBA, 0x43, + 0xE8, 0xA4, 0x90, 0x43, 0xE8, 0xA5, 0x81, 0x43, + 0xE8, 0xA5, 0xA4, 0x43, 0xE8, 0xA5, 0xBE, 0x43, + 0xE8, 0xA6, 0x86, 0x43, 0xE8, 0xA6, 0x8B, 0x43, + 0xE8, 0xA6, 0x96, 0x43, 0xE8, 0xA7, 0x92, 0x43, + 0xE8, 0xA7, 0xA3, 0x43, 0xE8, 0xA8, 0x80, 0x43, + 0xE8, 0xAA, 0xA0, 0x43, 0xE8, 0xAA, 0xAA, 0x43, + // Bytes 1340 - 137f + 0xE8, 0xAA, 0xBF, 0x43, 0xE8, 0xAB, 0x8B, 0x43, + 0xE8, 0xAB, 0x92, 0x43, 0xE8, 0xAB, 0x96, 0x43, + 0xE8, 0xA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 0xBE, 0xB5, 0x43, + // Bytes 1400 - 143f + 0xE8, 0xBE, 0xB6, 0x43, 0xE9, 0x80, 0xA3, 0x43, + 0xE9, 0x80, 0xB8, 0x43, 0xE9, 0x81, 0x8A, 0x43, + 0xE9, 0x81, 0xA9, 0x43, 0xE9, 0x81, 0xB2, 0x43, + 0xE9, 0x81, 0xBC, 0x43, 0xE9, 0x82, 0x8F, 0x43, + 0xE9, 0x82, 0x91, 0x43, 0xE9, 0x82, 0x94, 0x43, + 0xE9, 0x83, 0x8E, 0x43, 0xE9, 0x83, 0x9E, 0x43, + 0xE9, 0x83, 0xB1, 0x43, 0xE9, 0x83, 0xBD, 0x43, + 0xE9, 0x84, 0x91, 0x43, 0xE9, 0x84, 0x9B, 0x43, + // Bytes 1440 - 147f + 0xE9, 0x85, 0x89, 0x43, 0xE9, 0x85, 0x8D, 0x43, + 0xE9, 0x85, 0xAA, 0x43, 0xE9, 0x86, 0x99, 0x43, + 0xE9, 0x86, 0xB4, 0x43, 0xE9, 0x87, 0x86, 0x43, + 0xE9, 0x87, 0x8C, 0x43, 0xE9, 0x87, 0x8F, 0x43, + 0xE9, 0x87, 0x91, 0x43, 0xE9, 0x88, 0xB4, 0x43, + 0xE9, 0x88, 0xB8, 0x43, 0xE9, 0x89, 0xB6, 0x43, + 0xE9, 0x89, 0xBC, 0x43, 0xE9, 0x8B, 0x97, 0x43, + 0xE9, 0x8B, 0x98, 0x43, 0xE9, 0x8C, 0x84, 0x43, + // Bytes 1480 - 14bf + 0xE9, 0x8D, 0x8A, 0x43, 0xE9, 0x8F, 0xB9, 0x43, + 0xE9, 0x90, 0x95, 0x43, 0xE9, 0x95, 0xB7, 0x43, + 0xE9, 0x96, 0x80, 0x43, 0xE9, 0x96, 0x8B, 0x43, + 0xE9, 0x96, 0xAD, 0x43, 0xE9, 0x96, 0xB7, 0x43, + 0xE9, 0x98, 0x9C, 0x43, 0xE9, 0x98, 0xAE, 0x43, + 0xE9, 0x99, 0x8B, 0x43, 0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, 0xA2, 0xAE, 0x44, + // Bytes 1800 - 183f + 0xF0, 0xA7, 0xA5, 0xA6, 0x44, 0xF0, 0xA7, 0xB2, + 0xA8, 0x44, 0xF0, 0xA7, 0xBB, 0x93, 0x44, 0xF0, + 0xA7, 0xBC, 0xAF, 0x44, 0xF0, 0xA8, 0x97, 0x92, + 0x44, 0xF0, 0xA8, 0x97, 0xAD, 0x44, 0xF0, 0xA8, + 0x9C, 0xAE, 0x44, 0xF0, 0xA8, 0xAF, 0xBA, 0x44, + 0xF0, 0xA8, 0xB5, 0xB7, 0x44, 0xF0, 0xA9, 0x85, + 0x85, 0x44, 0xF0, 0xA9, 0x87, 0x9F, 0x44, 0xF0, + 0xA9, 0x88, 0x9A, 0x44, 0xF0, 0xA9, 0x90, 0x8A, + // Bytes 1840 - 187f + 0x44, 0xF0, 0xA9, 0x92, 0x96, 0x44, 0xF0, 0xA9, + 0x96, 0xB6, 0x44, 0xF0, 0xA9, 0xAC, 0xB0, 0x44, + 0xF0, 0xAA, 0x83, 0x8E, 0x44, 0xF0, 0xAA, 0x84, + 0x85, 0x44, 0xF0, 0xAA, 0x88, 0x8E, 0x44, 0xF0, + 0xAA, 0x8A, 0x91, 0x44, 0xF0, 0xAA, 0x8E, 0x92, + 0x44, 0xF0, 0xAA, 0x98, 0x80, 0x42, 0x21, 0x21, + 0x42, 0x21, 0x3F, 0x42, 0x2E, 0x2E, 0x42, 0x30, + 0x2C, 0x42, 0x30, 0x2E, 0x42, 0x31, 0x2C, 0x42, + // Bytes 1880 - 18bf + 0x31, 0x2E, 0x42, 0x31, 0x30, 0x42, 0x31, 0x31, + 0x42, 0x31, 0x32, 0x42, 0x31, 0x33, 0x42, 0x31, + 0x34, 0x42, 0x31, 0x35, 0x42, 0x31, 0x36, 0x42, + 0x31, 0x37, 0x42, 0x31, 0x38, 0x42, 0x31, 0x39, + 0x42, 0x32, 0x2C, 0x42, 0x32, 0x2E, 0x42, 0x32, + 0x30, 0x42, 0x32, 0x31, 0x42, 0x32, 0x32, 0x42, + 0x32, 0x33, 0x42, 0x32, 0x34, 0x42, 0x32, 0x35, + 0x42, 0x32, 0x36, 0x42, 0x32, 0x37, 0x42, 0x32, + // Bytes 18c0 - 18ff + 0x38, 0x42, 0x32, 0x39, 0x42, 0x33, 0x2C, 0x42, + 0x33, 0x2E, 0x42, 0x33, 0x30, 0x42, 0x33, 0x31, + 0x42, 0x33, 0x32, 0x42, 0x33, 0x33, 0x42, 0x33, + 0x34, 0x42, 0x33, 0x35, 0x42, 0x33, 0x36, 0x42, + 0x33, 0x37, 0x42, 0x33, 0x38, 0x42, 0x33, 0x39, + 0x42, 0x34, 0x2C, 0x42, 0x34, 0x2E, 0x42, 0x34, + 0x30, 0x42, 0x34, 0x31, 0x42, 0x34, 0x32, 0x42, + 0x34, 0x33, 0x42, 0x34, 0x34, 0x42, 0x34, 0x35, + // Bytes 1900 - 193f + 0x42, 0x34, 0x36, 0x42, 0x34, 0x37, 0x42, 0x34, + 0x38, 0x42, 0x34, 0x39, 0x42, 0x35, 0x2C, 0x42, + 0x35, 0x2E, 0x42, 0x35, 0x30, 0x42, 0x36, 0x2C, + 0x42, 0x36, 0x2E, 0x42, 0x37, 0x2C, 0x42, 0x37, + 0x2E, 0x42, 0x38, 0x2C, 0x42, 0x38, 0x2E, 0x42, + 0x39, 0x2C, 0x42, 0x39, 0x2E, 0x42, 0x3D, 0x3D, + 0x42, 0x3F, 0x21, 0x42, 0x3F, 0x3F, 0x42, 0x41, + 0x55, 0x42, 0x42, 0x71, 0x42, 0x43, 0x44, 0x42, + // Bytes 1940 - 197f + 0x44, 0x4A, 0x42, 0x44, 0x5A, 0x42, 0x44, 0x7A, + 0x42, 0x47, 0x42, 0x42, 0x47, 0x79, 0x42, 0x48, + 0x50, 0x42, 0x48, 0x56, 0x42, 0x48, 0x67, 0x42, + 0x48, 0x7A, 0x42, 0x49, 0x49, 0x42, 0x49, 0x4A, + 0x42, 0x49, 0x55, 0x42, 0x49, 0x56, 0x42, 0x49, + 0x58, 0x42, 0x4B, 0x42, 0x42, 0x4B, 0x4B, 0x42, + 0x4B, 0x4D, 0x42, 0x4C, 0x4A, 0x42, 0x4C, 0x6A, + 0x42, 0x4D, 0x42, 0x42, 0x4D, 0x43, 0x42, 0x4D, + // Bytes 1980 - 19bf + 0x44, 0x42, 0x4D, 0x52, 0x42, 0x4D, 0x56, 0x42, + 0x4D, 0x57, 0x42, 0x4E, 0x4A, 0x42, 0x4E, 0x6A, + 0x42, 0x4E, 0x6F, 0x42, 0x50, 0x48, 0x42, 0x50, + 0x52, 0x42, 0x50, 0x61, 0x42, 0x52, 0x73, 0x42, + 0x53, 0x44, 0x42, 0x53, 0x4D, 0x42, 0x53, 0x53, + 0x42, 0x53, 0x76, 0x42, 0x54, 0x4D, 0x42, 0x56, + 0x49, 0x42, 0x57, 0x43, 0x42, 0x57, 0x5A, 0x42, + 0x57, 0x62, 0x42, 0x58, 0x49, 0x42, 0x63, 0x63, + // Bytes 19c0 - 19ff + 0x42, 0x63, 0x64, 0x42, 0x63, 0x6D, 0x42, 0x64, + 0x42, 0x42, 0x64, 0x61, 0x42, 0x64, 0x6C, 0x42, + 0x64, 0x6D, 0x42, 0x64, 0x7A, 0x42, 0x65, 0x56, + 0x42, 0x66, 0x66, 0x42, 0x66, 0x69, 0x42, 0x66, + 0x6C, 0x42, 0x66, 0x6D, 0x42, 0x68, 0x61, 0x42, + 0x69, 0x69, 0x42, 0x69, 0x6A, 0x42, 0x69, 0x6E, + 0x42, 0x69, 0x76, 0x42, 0x69, 0x78, 0x42, 0x6B, + 0x41, 0x42, 0x6B, 0x56, 0x42, 0x6B, 0x57, 0x42, + // Bytes 1a00 - 1a3f + 0x6B, 0x67, 0x42, 0x6B, 0x6C, 0x42, 0x6B, 0x6D, + 0x42, 0x6B, 0x74, 0x42, 0x6C, 0x6A, 0x42, 0x6C, + 0x6D, 0x42, 0x6C, 0x6E, 0x42, 0x6C, 0x78, 0x42, + 0x6D, 0x32, 0x42, 0x6D, 0x33, 0x42, 0x6D, 0x41, + 0x42, 0x6D, 0x56, 0x42, 0x6D, 0x57, 0x42, 0x6D, + 0x62, 0x42, 0x6D, 0x67, 0x42, 0x6D, 0x6C, 0x42, + 0x6D, 0x6D, 0x42, 0x6D, 0x73, 0x42, 0x6E, 0x41, + 0x42, 0x6E, 0x46, 0x42, 0x6E, 0x56, 0x42, 0x6E, + // Bytes 1a40 - 1a7f + 0x57, 0x42, 0x6E, 0x6A, 0x42, 0x6E, 0x6D, 0x42, + 0x6E, 0x73, 0x42, 0x6F, 0x56, 0x42, 0x70, 0x41, + 0x42, 0x70, 0x46, 0x42, 0x70, 0x56, 0x42, 0x70, + 0x57, 0x42, 0x70, 0x63, 0x42, 0x70, 0x73, 0x42, + 0x73, 0x72, 0x42, 0x73, 0x74, 0x42, 0x76, 0x69, + 0x42, 0x78, 0x69, 0x43, 0x28, 0x31, 0x29, 0x43, + 0x28, 0x32, 0x29, 0x43, 0x28, 0x33, 0x29, 0x43, + 0x28, 0x34, 0x29, 0x43, 0x28, 0x35, 0x29, 0x43, + // Bytes 1a80 - 1abf + 0x28, 0x36, 0x29, 0x43, 0x28, 0x37, 0x29, 0x43, + 0x28, 0x38, 0x29, 0x43, 0x28, 0x39, 0x29, 0x43, + 0x28, 0x41, 0x29, 0x43, 0x28, 0x42, 0x29, 0x43, + 0x28, 0x43, 0x29, 0x43, 0x28, 0x44, 0x29, 0x43, + 0x28, 0x45, 0x29, 0x43, 0x28, 0x46, 0x29, 0x43, + 0x28, 0x47, 0x29, 0x43, 0x28, 0x48, 0x29, 0x43, + 0x28, 0x49, 0x29, 0x43, 0x28, 0x4A, 0x29, 0x43, + 0x28, 0x4B, 0x29, 0x43, 0x28, 0x4C, 0x29, 0x43, + // Bytes 1ac0 - 1aff + 0x28, 0x4D, 0x29, 0x43, 0x28, 0x4E, 0x29, 0x43, + 0x28, 0x4F, 0x29, 0x43, 0x28, 0x50, 0x29, 0x43, + 0x28, 0x51, 0x29, 0x43, 0x28, 0x52, 0x29, 0x43, + 0x28, 0x53, 0x29, 0x43, 0x28, 0x54, 0x29, 0x43, + 0x28, 0x55, 0x29, 0x43, 0x28, 0x56, 0x29, 0x43, + 0x28, 0x57, 0x29, 0x43, 0x28, 0x58, 0x29, 0x43, + 0x28, 0x59, 0x29, 0x43, 0x28, 0x5A, 0x29, 0x43, + 0x28, 0x61, 0x29, 0x43, 0x28, 0x62, 0x29, 0x43, + // Bytes 1b00 - 1b3f + 0x28, 0x63, 0x29, 0x43, 0x28, 0x64, 0x29, 0x43, + 0x28, 0x65, 0x29, 0x43, 0x28, 0x66, 0x29, 0x43, + 0x28, 0x67, 0x29, 0x43, 0x28, 0x68, 0x29, 0x43, + 0x28, 0x69, 0x29, 0x43, 0x28, 0x6A, 0x29, 0x43, + 0x28, 0x6B, 0x29, 0x43, 0x28, 0x6C, 0x29, 0x43, + 0x28, 0x6D, 0x29, 0x43, 0x28, 0x6E, 0x29, 0x43, + 0x28, 0x6F, 0x29, 0x43, 0x28, 0x70, 0x29, 0x43, + 0x28, 0x71, 0x29, 0x43, 0x28, 0x72, 0x29, 0x43, + // Bytes 1b40 - 1b7f + 0x28, 0x73, 0x29, 0x43, 0x28, 0x74, 0x29, 0x43, + 0x28, 0x75, 0x29, 0x43, 0x28, 0x76, 0x29, 0x43, + 0x28, 0x77, 0x29, 0x43, 0x28, 0x78, 0x29, 0x43, + 0x28, 0x79, 0x29, 0x43, 0x28, 0x7A, 0x29, 0x43, + 0x2E, 0x2E, 0x2E, 0x43, 0x31, 0x30, 0x2E, 0x43, + 0x31, 0x31, 0x2E, 0x43, 0x31, 0x32, 0x2E, 0x43, + 0x31, 0x33, 0x2E, 0x43, 0x31, 0x34, 0x2E, 0x43, + 0x31, 0x35, 0x2E, 0x43, 0x31, 0x36, 0x2E, 0x43, + // Bytes 1b80 - 1bbf + 0x31, 0x37, 0x2E, 0x43, 0x31, 0x38, 0x2E, 0x43, + 0x31, 0x39, 0x2E, 0x43, 0x32, 0x30, 0x2E, 0x43, + 0x3A, 0x3A, 0x3D, 0x43, 0x3D, 0x3D, 0x3D, 0x43, + 0x43, 0x6F, 0x2E, 0x43, 0x46, 0x41, 0x58, 0x43, + 0x47, 0x48, 0x7A, 0x43, 0x47, 0x50, 0x61, 0x43, + 0x49, 0x49, 0x49, 0x43, 0x4C, 0x54, 0x44, 0x43, + 0x4C, 0xC2, 0xB7, 0x43, 0x4D, 0x48, 0x7A, 0x43, + 0x4D, 0x50, 0x61, 0x43, 0x4D, 0xCE, 0xA9, 0x43, + // Bytes 1bc0 - 1bff + 0x50, 0x50, 0x4D, 0x43, 0x50, 0x50, 0x56, 0x43, + 0x50, 0x54, 0x45, 0x43, 0x54, 0x45, 0x4C, 0x43, + 0x54, 0x48, 0x7A, 0x43, 0x56, 0x49, 0x49, 0x43, + 0x58, 0x49, 0x49, 0x43, 0x61, 0x2F, 0x63, 0x43, + 0x61, 0x2F, 0x73, 0x43, 0x61, 0xCA, 0xBE, 0x43, + 0x62, 0x61, 0x72, 0x43, 0x63, 0x2F, 0x6F, 0x43, + 0x63, 0x2F, 0x75, 0x43, 0x63, 0x61, 0x6C, 0x43, + 0x63, 0x6D, 0x32, 0x43, 0x63, 0x6D, 0x33, 0x43, + // Bytes 1c00 - 1c3f + 0x64, 0x6D, 0x32, 0x43, 0x64, 0x6D, 0x33, 0x43, + 0x65, 0x72, 0x67, 0x43, 0x66, 0x66, 0x69, 0x43, + 0x66, 0x66, 0x6C, 0x43, 0x67, 0x61, 0x6C, 0x43, + 0x68, 0x50, 0x61, 0x43, 0x69, 0x69, 0x69, 0x43, + 0x6B, 0x48, 0x7A, 0x43, 0x6B, 0x50, 0x61, 0x43, + 0x6B, 0x6D, 0x32, 0x43, 0x6B, 0x6D, 0x33, 0x43, + 0x6B, 0xCE, 0xA9, 0x43, 0x6C, 0x6F, 0x67, 0x43, + 0x6C, 0xC2, 0xB7, 0x43, 0x6D, 0x69, 0x6C, 0x43, + // Bytes 1c40 - 1c7f + 0x6D, 0x6D, 0x32, 0x43, 0x6D, 0x6D, 0x33, 0x43, + 0x6D, 0x6F, 0x6C, 0x43, 0x72, 0x61, 0x64, 0x43, + 0x76, 0x69, 0x69, 0x43, 0x78, 0x69, 0x69, 0x43, + 0xC2, 0xB0, 0x43, 0x43, 0xC2, 0xB0, 0x46, 0x43, + 0xCA, 0xBC, 0x6E, 0x43, 0xCE, 0xBC, 0x41, 0x43, + 0xCE, 0xBC, 0x46, 0x43, 0xCE, 0xBC, 0x56, 0x43, + 0xCE, 0xBC, 0x57, 0x43, 0xCE, 0xBC, 0x67, 0x43, + 0xCE, 0xBC, 0x6C, 0x43, 0xCE, 0xBC, 0x6D, 0x43, + // Bytes 1c80 - 1cbf + 0xCE, 0xBC, 0x73, 0x44, 0x28, 0x31, 0x30, 0x29, + 0x44, 0x28, 0x31, 0x31, 0x29, 0x44, 0x28, 0x31, + 0x32, 0x29, 0x44, 0x28, 0x31, 0x33, 0x29, 0x44, + 0x28, 0x31, 0x34, 0x29, 0x44, 0x28, 0x31, 0x35, + 0x29, 0x44, 0x28, 0x31, 0x36, 0x29, 0x44, 0x28, + 0x31, 0x37, 0x29, 0x44, 0x28, 0x31, 0x38, 0x29, + 0x44, 0x28, 0x31, 0x39, 0x29, 0x44, 0x28, 0x32, + 0x30, 0x29, 0x44, 0x30, 0xE7, 0x82, 0xB9, 0x44, + // Bytes 1cc0 - 1cff + 0x31, 0xE2, 0x81, 0x84, 0x44, 0x31, 0xE6, 0x97, + 0xA5, 0x44, 0x31, 0xE6, 0x9C, 0x88, 0x44, 0x31, + 0xE7, 0x82, 0xB9, 0x44, 0x32, 0xE6, 0x97, 0xA5, + 0x44, 0x32, 0xE6, 0x9C, 0x88, 0x44, 0x32, 0xE7, + 0x82, 0xB9, 0x44, 0x33, 0xE6, 0x97, 0xA5, 0x44, + 0x33, 0xE6, 0x9C, 0x88, 0x44, 0x33, 0xE7, 0x82, + 0xB9, 0x44, 0x34, 0xE6, 0x97, 0xA5, 0x44, 0x34, + 0xE6, 0x9C, 0x88, 0x44, 0x34, 0xE7, 0x82, 0xB9, + // Bytes 1d00 - 1d3f + 0x44, 0x35, 0xE6, 0x97, 0xA5, 0x44, 0x35, 0xE6, + 0x9C, 0x88, 0x44, 0x35, 0xE7, 0x82, 0xB9, 0x44, + 0x36, 0xE6, 0x97, 0xA5, 0x44, 0x36, 0xE6, 0x9C, + 0x88, 0x44, 0x36, 0xE7, 0x82, 0xB9, 0x44, 0x37, + 0xE6, 0x97, 0xA5, 0x44, 0x37, 0xE6, 0x9C, 0x88, + 0x44, 0x37, 0xE7, 0x82, 0xB9, 0x44, 0x38, 0xE6, + 0x97, 0xA5, 0x44, 0x38, 0xE6, 0x9C, 0x88, 0x44, + 0x38, 0xE7, 0x82, 0xB9, 0x44, 0x39, 0xE6, 0x97, + // Bytes 1d40 - 1d7f + 0xA5, 0x44, 0x39, 0xE6, 0x9C, 0x88, 0x44, 0x39, + 0xE7, 0x82, 0xB9, 0x44, 0x56, 0x49, 0x49, 0x49, + 0x44, 0x61, 0x2E, 0x6D, 0x2E, 0x44, 0x6B, 0x63, + 0x61, 0x6C, 0x44, 0x70, 0x2E, 0x6D, 0x2E, 0x44, + 0x76, 0x69, 0x69, 0x69, 0x44, 0xD5, 0xA5, 0xD6, + 0x82, 0x44, 0xD5, 0xB4, 0xD5, 0xA5, 0x44, 0xD5, + 0xB4, 0xD5, 0xAB, 0x44, 0xD5, 0xB4, 0xD5, 0xAD, + 0x44, 0xD5, 0xB4, 0xD5, 0xB6, 0x44, 0xD5, 0xBE, + // Bytes 1d80 - 1dbf + 0xD5, 0xB6, 0x44, 0xD7, 0x90, 0xD7, 0x9C, 0x44, + 0xD8, 0xA7, 0xD9, 0xB4, 0x44, 0xD8, 0xA8, 0xD8, + 0xAC, 0x44, 0xD8, 0xA8, 0xD8, 0xAD, 0x44, 0xD8, + 0xA8, 0xD8, 0xAE, 0x44, 0xD8, 0xA8, 0xD8, 0xB1, + 0x44, 0xD8, 0xA8, 0xD8, 0x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, 0xD8, 0xB7, 0xD9, + 0x89, 0x44, 0xD8, 0xB7, 0xD9, 0x8A, 0x44, 0xD8, + // Bytes 1f00 - 1f3f + 0xB8, 0xD9, 0x85, 0x44, 0xD8, 0xB9, 0xD8, 0xAC, + 0x44, 0xD8, 0xB9, 0xD9, 0x85, 0x44, 0xD8, 0xB9, + 0xD9, 0x89, 0x44, 0xD8, 0xB9, 0xD9, 0x8A, 0x44, + 0xD8, 0xBA, 0xD8, 0xAC, 0x44, 0xD8, 0xBA, 0xD9, + 0x85, 0x44, 0xD8, 0xBA, 0xD9, 0x89, 0x44, 0xD8, + 0xBA, 0xD9, 0x8A, 0x44, 0xD9, 0x81, 0xD8, 0xAC, + 0x44, 0xD9, 0x81, 0xD8, 0xAD, 0x44, 0xD9, 0x81, + 0xD8, 0xAE, 0x44, 0xD9, 0x81, 0xD9, 0x85, 0x44, + // Bytes 1f40 - 1f7f + 0xD9, 0x81, 0xD9, 0x89, 0x44, 0xD9, 0x81, 0xD9, + 0x8A, 0x44, 0xD9, 0x82, 0xD8, 0xAD, 0x44, 0xD9, + 0x82, 0xD9, 0x85, 0x44, 0xD9, 0x82, 0xD9, 0x89, + 0x44, 0xD9, 0x82, 0xD9, 0x8A, 0x44, 0xD9, 0x83, + 0xD8, 0xA7, 0x44, 0xD9, 0x83, 0xD8, 0xAC, 0x44, + 0xD9, 0x83, 0xD8, 0xAD, 0x44, 0xD9, 0x83, 0xD8, + 0xAE, 0x44, 0xD9, 0x83, 0xD9, 0x84, 0x44, 0xD9, + 0x83, 0xD9, 0x85, 0x44, 0xD9, 0x83, 0xD9, 0x89, + // Bytes 1f80 - 1fbf + 0x44, 0xD9, 0x83, 0xD9, 0x8A, 0x44, 0xD9, 0x84, + 0xD8, 0xA7, 0x44, 0xD9, 0x84, 0xD8, 0xAC, 0x44, + 0xD9, 0x84, 0xD8, 0xAD, 0x44, 0xD9, 0x84, 0xD8, + 0xAE, 0x44, 0xD9, 0x84, 0xD9, 0x85, 0x44, 0xD9, + 0x84, 0xD9, 0x87, 0x44, 0xD9, 0x84, 0xD9, 0x89, + 0x44, 0xD9, 0x84, 0xD9, 0x8A, 0x44, 0xD9, 0x85, + 0xD8, 0xA7, 0x44, 0xD9, 0x85, 0xD8, 0xAC, 0x44, + 0xD9, 0x85, 0xD8, 0xAD, 0x44, 0xD9, 0x85, 0xD8, + // Bytes 1fc0 - 1fff + 0xAE, 0x44, 0xD9, 0x85, 0xD9, 0x85, 0x44, 0xD9, + 0x85, 0xD9, 0x89, 0x44, 0xD9, 0x85, 0xD9, 0x8A, + 0x44, 0xD9, 0x86, 0xD8, 0xAC, 0x44, 0xD9, 0x86, + 0xD8, 0xAD, 0x44, 0xD9, 0x86, 0xD8, 0xAE, 0x44, + 0xD9, 0x86, 0xD8, 0xB1, 0x44, 0xD9, 0x86, 0xD8, + 0xB2, 0x44, 0xD9, 0x86, 0xD9, 0x85, 0x44, 0xD9, + 0x86, 0xD9, 0x86, 0x44, 0xD9, 0x86, 0xD9, 0x87, + 0x44, 0xD9, 0x86, 0xD9, 0x89, 0x44, 0xD9, 0x86, + // Bytes 2000 - 203f + 0xD9, 0x8A, 0x44, 0xD9, 0x87, 0xD8, 0xAC, 0x44, + 0xD9, 0x87, 0xD9, 0x85, 0x44, 0xD9, 0x87, 0xD9, + 0x89, 0x44, 0xD9, 0x87, 0xD9, 0x8A, 0x44, 0xD9, + 0x88, 0xD9, 0xB4, 0x44, 0xD9, 0x8A, 0xD8, 0xAC, + 0x44, 0xD9, 0x8A, 0xD8, 0xAD, 0x44, 0xD9, 0x8A, + 0xD8, 0xAE, 0x44, 0xD9, 0x8A, 0xD8, 0xB1, 0x44, + 0xD9, 0x8A, 0xD8, 0xB2, 0x44, 0xD9, 0x8A, 0xD9, + 0x85, 0x44, 0xD9, 0x8A, 0xD9, 0x86, 0x44, 0xD9, + // Bytes 2040 - 207f + 0x8A, 0xD9, 0x87, 0x44, 0xD9, 0x8A, 0xD9, 0x89, + 0x44, 0xD9, 0x8A, 0xD9, 0x8A, 0x44, 0xD9, 0x8A, + 0xD9, 0xB4, 0x44, 0xDB, 0x87, 0xD9, 0xB4, 0x45, + 0x28, 0xE1, 0x84, 0x80, 0x29, 0x45, 0x28, 0xE1, + 0x84, 0x82, 0x29, 0x45, 0x28, 0xE1, 0x84, 0x83, + 0x29, 0x45, 0x28, 0xE1, 0x84, 0x85, 0x29, 0x45, + 0x28, 0xE1, 0x84, 0x86, 0x29, 0x45, 0x28, 0xE1, + 0x84, 0x87, 0x29, 0x45, 0x28, 0xE1, 0x84, 0x89, + // Bytes 2080 - 20bf + 0x29, 0x45, 0x28, 0xE1, 0x84, 0x8B, 0x29, 0x45, + 0x28, 0xE1, 0x84, 0x8C, 0x29, 0x45, 0x28, 0xE1, + 0x84, 0x8E, 0x29, 0x45, 0x28, 0xE1, 0x84, 0x8F, + 0x29, 0x45, 0x28, 0xE1, 0x84, 0x90, 0x29, 0x45, + 0x28, 0xE1, 0x84, 0x91, 0x29, 0x45, 0x28, 0xE1, + 0x84, 0x92, 0x29, 0x45, 0x28, 0xE4, 0xB8, 0x80, + 0x29, 0x45, 0x28, 0xE4, 0xB8, 0x83, 0x29, 0x45, + 0x28, 0xE4, 0xB8, 0x89, 0x29, 0x45, 0x28, 0xE4, + // Bytes 20c0 - 20ff + 0xB9, 0x9D, 0x29, 0x45, 0x28, 0xE4, 0xBA, 0x8C, + 0x29, 0x45, 0x28, 0xE4, 0xBA, 0x94, 0x29, 0x45, + 0x28, 0xE4, 0xBB, 0xA3, 0x29, 0x45, 0x28, 0xE4, + 0xBC, 0x81, 0x29, 0x45, 0x28, 0xE4, 0xBC, 0x91, + 0x29, 0x45, 0x28, 0xE5, 0x85, 0xAB, 0x29, 0x45, + 0x28, 0xE5, 0x85, 0xAD, 0x29, 0x45, 0x28, 0xE5, + 0x8A, 0xB4, 0x29, 0x45, 0x28, 0xE5, 0x8D, 0x81, + 0x29, 0x45, 0x28, 0xE5, 0x8D, 0x94, 0x29, 0x45, + // Bytes 2100 - 213f + 0x28, 0xE5, 0x90, 0x8D, 0x29, 0x45, 0x28, 0xE5, + 0x91, 0xBC, 0x29, 0x45, 0x28, 0xE5, 0x9B, 0x9B, + 0x29, 0x45, 0x28, 0xE5, 0x9C, 0x9F, 0x29, 0x45, + 0x28, 0xE5, 0xAD, 0xA6, 0x29, 0x45, 0x28, 0xE6, + 0x97, 0xA5, 0x29, 0x45, 0x28, 0xE6, 0x9C, 0x88, + 0x29, 0x45, 0x28, 0xE6, 0x9C, 0x89, 0x29, 0x45, + 0x28, 0xE6, 0x9C, 0xA8, 0x29, 0x45, 0x28, 0xE6, + 0xA0, 0xAA, 0x29, 0x45, 0x28, 0xE6, 0xB0, 0xB4, + // Bytes 2140 - 217f + 0x29, 0x45, 0x28, 0xE7, 0x81, 0xAB, 0x29, 0x45, + 0x28, 0xE7, 0x89, 0xB9, 0x29, 0x45, 0x28, 0xE7, + 0x9B, 0xA3, 0x29, 0x45, 0x28, 0xE7, 0xA4, 0xBE, + 0x29, 0x45, 0x28, 0xE7, 0xA5, 0x9D, 0x29, 0x45, + 0x28, 0xE7, 0xA5, 0xAD, 0x29, 0x45, 0x28, 0xE8, + 0x87, 0xAA, 0x29, 0x45, 0x28, 0xE8, 0x87, 0xB3, + 0x29, 0x45, 0x28, 0xE8, 0xB2, 0xA1, 0x29, 0x45, + 0x28, 0xE8, 0xB3, 0x87, 0x29, 0x45, 0x28, 0xE9, + // Bytes 2180 - 21bf + 0x87, 0x91, 0x29, 0x45, 0x30, 0xE2, 0x81, 0x84, + 0x33, 0x45, 0x31, 0x30, 0xE6, 0x97, 0xA5, 0x45, + 0x31, 0x30, 0xE6, 0x9C, 0x88, 0x45, 0x31, 0x30, + 0xE7, 0x82, 0xB9, 0x45, 0x31, 0x31, 0xE6, 0x97, + 0xA5, 0x45, 0x31, 0x31, 0xE6, 0x9C, 0x88, 0x45, + 0x31, 0x31, 0xE7, 0x82, 0xB9, 0x45, 0x31, 0x32, + 0xE6, 0x97, 0xA5, 0x45, 0x31, 0x32, 0xE6, 0x9C, + 0x88, 0x45, 0x31, 0x32, 0xE7, 0x82, 0xB9, 0x45, + // Bytes 21c0 - 21ff + 0x31, 0x33, 0xE6, 0x97, 0xA5, 0x45, 0x31, 0x33, + 0xE7, 0x82, 0xB9, 0x45, 0x31, 0x34, 0xE6, 0x97, + 0xA5, 0x45, 0x31, 0x34, 0xE7, 0x82, 0xB9, 0x45, + 0x31, 0x35, 0xE6, 0x97, 0xA5, 0x45, 0x31, 0x35, + 0xE7, 0x82, 0xB9, 0x45, 0x31, 0x36, 0xE6, 0x97, + 0xA5, 0x45, 0x31, 0x36, 0xE7, 0x82, 0xB9, 0x45, + 0x31, 0x37, 0xE6, 0x97, 0xA5, 0x45, 0x31, 0x37, + 0xE7, 0x82, 0xB9, 0x45, 0x31, 0x38, 0xE6, 0x97, + // Bytes 2200 - 223f + 0xA5, 0x45, 0x31, 0x38, 0xE7, 0x82, 0xB9, 0x45, + 0x31, 0x39, 0xE6, 0x97, 0xA5, 0x45, 0x31, 0x39, + 0xE7, 0x82, 0xB9, 0x45, 0x31, 0xE2, 0x81, 0x84, + 0x32, 0x45, 0x31, 0xE2, 0x81, 0x84, 0x33, 0x45, + 0x31, 0xE2, 0x81, 0x84, 0x34, 0x45, 0x31, 0xE2, + 0x81, 0x84, 0x35, 0x45, 0x31, 0xE2, 0x81, 0x84, + 0x36, 0x45, 0x31, 0xE2, 0x81, 0x84, 0x37, 0x45, + 0x31, 0xE2, 0x81, 0x84, 0x38, 0x45, 0x31, 0xE2, + // Bytes 2240 - 227f + 0x81, 0x84, 0x39, 0x45, 0x32, 0x30, 0xE6, 0x97, + 0xA5, 0x45, 0x32, 0x30, 0xE7, 0x82, 0xB9, 0x45, + 0x32, 0x31, 0xE6, 0x97, 0xA5, 0x45, 0x32, 0x31, + 0xE7, 0x82, 0xB9, 0x45, 0x32, 0x32, 0xE6, 0x97, + 0xA5, 0x45, 0x32, 0x32, 0xE7, 0x82, 0xB9, 0x45, + 0x32, 0x33, 0xE6, 0x97, 0xA5, 0x45, 0x32, 0x33, + 0xE7, 0x82, 0xB9, 0x45, 0x32, 0x34, 0xE6, 0x97, + 0xA5, 0x45, 0x32, 0x34, 0xE7, 0x82, 0xB9, 0x45, + // Bytes 2280 - 22bf + 0x32, 0x35, 0xE6, 0x97, 0xA5, 0x45, 0x32, 0x36, + 0xE6, 0x97, 0xA5, 0x45, 0x32, 0x37, 0xE6, 0x97, + 0xA5, 0x45, 0x32, 0x38, 0xE6, 0x97, 0xA5, 0x45, + 0x32, 0x39, 0xE6, 0x97, 0xA5, 0x45, 0x32, 0xE2, + 0x81, 0x84, 0x33, 0x45, 0x32, 0xE2, 0x81, 0x84, + 0x35, 0x45, 0x33, 0x30, 0xE6, 0x97, 0xA5, 0x45, + 0x33, 0x31, 0xE6, 0x97, 0xA5, 0x45, 0x33, 0xE2, + 0x81, 0x84, 0x34, 0x45, 0x33, 0xE2, 0x81, 0x84, + // Bytes 22c0 - 22ff + 0x35, 0x45, 0x33, 0xE2, 0x81, 0x84, 0x38, 0x45, + 0x34, 0xE2, 0x81, 0x84, 0x35, 0x45, 0x35, 0xE2, + 0x81, 0x84, 0x36, 0x45, 0x35, 0xE2, 0x81, 0x84, + 0x38, 0x45, 0x37, 0xE2, 0x81, 0x84, 0x38, 0x45, + 0x41, 0xE2, 0x88, 0x95, 0x6D, 0x45, 0x56, 0xE2, + 0x88, 0x95, 0x6D, 0x45, 0x6D, 0xE2, 0x88, 0x95, + 0x73, 0x46, 0x31, 0xE2, 0x81, 0x84, 0x31, 0x30, + 0x46, 0x43, 0xE2, 0x88, 0x95, 0x6B, 0x67, 0x46, + // Bytes 2300 - 233f + 0x6D, 0xE2, 0x88, 0x95, 0x73, 0x32, 0x46, 0xD8, + 0xA8, 0xD8, 0xAD, 0xD9, 0x8A, 0x46, 0xD8, 0xA8, + 0xD8, 0xAE, 0xD9, 0x8A, 0x46, 0xD8, 0xAA, 0xD8, + 0xAC, 0xD9, 0x85, 0x46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A, 0xD9, 0x85, + 0xD9, 0x85, 0x46, 0xD8, 0xBA, 0xD9, 0x85, 0xD9, + 0x89, 0x46, 0xD8, 0xBA, 0xD9, 0x85, 0xD9, 0x8A, + // Bytes 2480 - 24bf + 0x46, 0xD9, 0x81, 0xD8, 0xAE, 0xD9, 0x85, 0x46, + 0xD9, 0x81, 0xD9, 0x85, 0xD9, 0x8A, 0x46, 0xD9, + 0x82, 0xD9, 0x84, 0xDB, 0x92, 0x46, 0xD9, 0x82, + 0xD9, 0x85, 0xD8, 0xAD, 0x46, 0xD9, 0x82, 0xD9, + 0x85, 0xD9, 0x85, 0x46, 0xD9, 0x82, 0xD9, 0x85, + 0xD9, 0x8A, 0x46, 0xD9, 0x83, 0xD9, 0x85, 0xD9, + 0x85, 0x46, 0xD9, 0x83, 0xD9, 0x85, 0xD9, 0x8A, + 0x46, 0xD9, 0x84, 0xD8, 0xAC, 0xD8, 0xAC, 0x46, + // Bytes 24c0 - 24ff + 0xD9, 0x84, 0xD8, 0xAC, 0xD9, 0x85, 0x46, 0xD9, + 0x84, 0xD8, 0xAC, 0xD9, 0x8A, 0x46, 0xD9, 0x84, + 0xD8, 0xAD, 0xD9, 0x85, 0x46, 0xD9, 0x84, 0xD8, + 0xAD, 0xD9, 0x89, 0x46, 0xD9, 0x84, 0xD8, 0xAD, + 0xD9, 0x8A, 0x46, 0xD9, 0x84, 0xD8, 0xAE, 0xD9, + 0x85, 0x46, 0xD9, 0x84, 0xD9, 0x85, 0xD8, 0xAD, + 0x46, 0xD9, 0x84, 0xD9, 0x85, 0xD9, 0x8A, 0x46, + 0xD9, 0x85, 0xD8, 0xAC, 0xD8, 0xAD, 0x46, 0xD9, + // Bytes 2500 - 253f + 0x85, 0xD8, 0xAC, 0xD8, 0xAE, 0x46, 0xD9, 0x85, + 0xD8, 0xAC, 0xD9, 0x85, 0x46, 0xD9, 0x85, 0xD8, + 0xAC, 0xD9, 0x8A, 0x46, 0xD9, 0x85, 0xD8, 0xAD, + 0xD8, 0xAC, 0x46, 0xD9, 0x85, 0xD8, 0xAD, 0xD9, + 0x85, 0x46, 0xD9, 0x85, 0xD8, 0xAD, 0xD9, 0x8A, + 0x46, 0xD9, 0x85, 0xD8, 0xAE, 0xD8, 0xAC, 0x46, + 0xD9, 0x85, 0xD8, 0xAE, 0xD9, 0x85, 0x46, 0xD9, + 0x85, 0xD8, 0xAE, 0xD9, 0x8A, 0x46, 0xD9, 0x85, + // Bytes 2540 - 257f + 0xD9, 0x85, 0xD9, 0x8A, 0x46, 0xD9, 0x86, 0xD8, + 0xAC, 0xD8, 0xAD, 0x46, 0xD9, 0x86, 0xD8, 0xAC, + 0xD9, 0x85, 0x46, 0xD9, 0x86, 0xD8, 0xAC, 0xD9, + 0x89, 0x46, 0xD9, 0x86, 0xD8, 0xAC, 0xD9, 0x8A, + 0x46, 0xD9, 0x86, 0xD8, 0xAD, 0xD9, 0x85, 0x46, + 0xD9, 0x86, 0xD8, 0xAD, 0xD9, 0x89, 0x46, 0xD9, + 0x86, 0xD8, 0xAD, 0xD9, 0x8A, 0x46, 0xD9, 0x86, + 0xD9, 0x85, 0xD9, 0x89, 0x46, 0xD9, 0x86, 0xD9, + // Bytes 2580 - 25bf + 0x85, 0xD9, 0x8A, 0x46, 0xD9, 0x87, 0xD9, 0x85, + 0xD8, 0xAC, 0x46, 0xD9, 0x87, 0xD9, 0x85, 0xD9, + 0x85, 0x46, 0xD9, 0x8A, 0xD8, 0xAC, 0xD9, 0x8A, + 0x46, 0xD9, 0x8A, 0xD8, 0xAD, 0xD9, 0x8A, 0x46, + 0xD9, 0x8A, 0xD9, 0x85, 0xD9, 0x85, 0x46, 0xD9, + 0x8A, 0xD9, 0x85, 0xD9, 0x8A, 0x46, 0xD9, 0x8A, + 0xD9, 0x94, 0xD8, 0xA7, 0x46, 0xD9, 0x8A, 0xD9, + 0x94, 0xD8, 0xAC, 0x46, 0xD9, 0x8A, 0xD9, 0x94, + // Bytes 25c0 - 25ff + 0xD8, 0xAD, 0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 0xE0, 0xBE, + 0xB5, 0x46, 0xE0, 0xBE, 0x92, 0xE0, 0xBE, 0xB7, + 0x46, 0xE0, 0xBE, 0x9C, 0xE0, 0xBE, 0xB7, 0x46, + // Bytes 2680 - 26bf + 0xE0, 0xBE, 0xA1, 0xE0, 0xBE, 0xB7, 0x46, 0xE0, + 0xBE, 0xA6, 0xE0, 0xBE, 0xB7, 0x46, 0xE0, 0xBE, + 0xAB, 0xE0, 0xBE, 0xB7, 0x46, 0xE2, 0x80, 0xB2, + 0xE2, 0x80, 0xB2, 0x46, 0xE2, 0x80, 0xB5, 0xE2, + 0x80, 0xB5, 0x46, 0xE2, 0x88, 0xAB, 0xE2, 0x88, + 0xAB, 0x46, 0xE2, 0x88, 0xAE, 0xE2, 0x88, 0xAE, + 0x46, 0xE3, 0x81, 0xBB, 0xE3, 0x81, 0x8B, 0x46, + 0xE3, 0x82, 0x88, 0xE3, 0x82, 0x8A, 0x46, 0xE3, + // Bytes 26c0 - 26ff + 0x82, 0xAD, 0xE3, 0x83, 0xAD, 0x46, 0xE3, 0x82, + 0xB3, 0xE3, 0x82, 0xB3, 0x46, 0xE3, 0x82, 0xB3, + 0xE3, 0x83, 0x88, 0x46, 0xE3, 0x83, 0x88, 0xE3, + 0x83, 0xB3, 0x46, 0xE3, 0x83, 0x8A, 0xE3, 0x83, + 0x8E, 0x46, 0xE3, 0x83, 0x9B, 0xE3, 0x83, 0xB3, + 0x46, 0xE3, 0x83, 0x9F, 0xE3, 0x83, 0xAA, 0x46, + 0xE3, 0x83, 0xAA, 0xE3, 0x83, 0xA9, 0x46, 0xE3, + 0x83, 0xAC, 0xE3, 0x83, 0xA0, 0x46, 0xE5, 0xA4, + // Bytes 2700 - 273f + 0xA7, 0xE6, 0xAD, 0xA3, 0x46, 0xE5, 0xB9, 0xB3, + 0xE6, 0x88, 0x90, 0x46, 0xE6, 0x98, 0x8E, 0xE6, + 0xB2, 0xBB, 0x46, 0xE6, 0x98, 0xAD, 0xE5, 0x92, + 0x8C, 0x47, 0x72, 0x61, 0x64, 0xE2, 0x88, 0x95, + 0x73, 0x47, 0xE3, 0x80, 0x94, 0x53, 0xE3, 0x80, + 0x95, 0x48, 0x28, 0xE1, 0x84, 0x80, 0xE1, 0x85, + 0xA1, 0x29, 0x48, 0x28, 0xE1, 0x84, 0x82, 0xE1, + 0x85, 0xA1, 0x29, 0x48, 0x28, 0xE1, 0x84, 0x83, + // Bytes 2740 - 277f + 0xE1, 0x85, 0xA1, 0x29, 0x48, 0x28, 0xE1, 0x84, + 0x85, 0xE1, 0x85, 0xA1, 0x29, 0x48, 0x28, 0xE1, + 0x84, 0x86, 0xE1, 0x85, 0xA1, 0x29, 0x48, 0x28, + 0xE1, 0x84, 0x87, 0xE1, 0x85, 0xA1, 0x29, 0x48, + 0x28, 0xE1, 0x84, 0x89, 0xE1, 0x85, 0xA1, 0x29, + 0x48, 0x28, 0xE1, 0x84, 0x8B, 0xE1, 0x85, 0xA1, + 0x29, 0x48, 0x28, 0xE1, 0x84, 0x8C, 0xE1, 0x85, + 0xA1, 0x29, 0x48, 0x28, 0xE1, 0x84, 0x8C, 0xE1, + // Bytes 2780 - 27bf + 0x85, 0xAE, 0x29, 0x48, 0x28, 0xE1, 0x84, 0x8E, + 0xE1, 0x85, 0xA1, 0x29, 0x48, 0x28, 0xE1, 0x84, + 0x8F, 0xE1, 0x85, 0xA1, 0x29, 0x48, 0x28, 0xE1, + 0x84, 0x90, 0xE1, 0x85, 0xA1, 0x29, 0x48, 0x28, + 0xE1, 0x84, 0x91, 0xE1, 0x85, 0xA1, 0x29, 0x48, + 0x28, 0xE1, 0x84, 0x92, 0xE1, 0x85, 0xA1, 0x29, + 0x48, 0x72, 0x61, 0x64, 0xE2, 0x88, 0x95, 0x73, + 0x32, 0x48, 0xD8, 0xA7, 0xD9, 0x83, 0xD8, 0xA8, + // Bytes 27c0 - 27ff + 0xD8, 0xB1, 0x48, 0xD8, 0xA7, 0xD9, 0x84, 0xD9, + 0x84, 0xD9, 0x87, 0x48, 0xD8, 0xB1, 0xD8, 0xB3, + 0xD9, 0x88, 0xD9, 0x84, 0x48, 0xD8, 0xB1, 0xDB, + 0x8C, 0xD8, 0xA7, 0xD9, 0x84, 0x48, 0xD8, 0xB5, + 0xD9, 0x84, 0xD8, 0xB9, 0xD9, 0x85, 0x48, 0xD8, + 0xB9, 0xD9, 0x84, 0xD9, 0x8A, 0xD9, 0x87, 0x48, + 0xD9, 0x85, 0xD8, 0xAD, 0xD9, 0x85, 0xD8, 0xAF, + 0x48, 0xD9, 0x88, 0xD8, 0xB3, 0xD9, 0x84, 0xD9, + // Bytes 2800 - 283f + 0x85, 0x49, 0xE2, 0x80, 0xB2, 0xE2, 0x80, 0xB2, + 0xE2, 0x80, 0xB2, 0x49, 0xE2, 0x80, 0xB5, 0xE2, + 0x80, 0xB5, 0xE2, 0x80, 0xB5, 0x49, 0xE2, 0x88, + 0xAB, 0xE2, 0x88, 0xAB, 0xE2, 0x88, 0xAB, 0x49, + 0xE2, 0x88, 0xAE, 0xE2, 0x88, 0xAE, 0xE2, 0x88, + 0xAE, 0x49, 0xE3, 0x80, 0x94, 0xE4, 0xB8, 0x89, + 0xE3, 0x80, 0x95, 0x49, 0xE3, 0x80, 0x94, 0xE4, + 0xBA, 0x8C, 0xE3, 0x80, 0x95, 0x49, 0xE3, 0x80, + // Bytes 2840 - 287f + 0x94, 0xE5, 0x8B, 0x9D, 0xE3, 0x80, 0x95, 0x49, + 0xE3, 0x80, 0x94, 0xE5, 0xAE, 0x89, 0xE3, 0x80, + 0x95, 0x49, 0xE3, 0x80, 0x94, 0xE6, 0x89, 0x93, + 0xE3, 0x80, 0x95, 0x49, 0xE3, 0x80, 0x94, 0xE6, + 0x95, 0x97, 0xE3, 0x80, 0x95, 0x49, 0xE3, 0x80, + 0x94, 0xE6, 0x9C, 0xAC, 0xE3, 0x80, 0x95, 0x49, + 0xE3, 0x80, 0x94, 0xE7, 0x82, 0xB9, 0xE3, 0x80, + 0x95, 0x49, 0xE3, 0x80, 0x94, 0xE7, 0x9B, 0x97, + // Bytes 2880 - 28bf + 0xE3, 0x80, 0x95, 0x49, 0xE3, 0x82, 0xA2, 0xE3, + 0x83, 0xBC, 0xE3, 0x83, 0xAB, 0x49, 0xE3, 0x82, + 0xA4, 0xE3, 0x83, 0xB3, 0xE3, 0x83, 0x81, 0x49, + 0xE3, 0x82, 0xA6, 0xE3, 0x82, 0xA9, 0xE3, 0x83, + 0xB3, 0x49, 0xE3, 0x82, 0xAA, 0xE3, 0x83, 0xB3, + 0xE3, 0x82, 0xB9, 0x49, 0xE3, 0x82, 0xAA, 0xE3, + 0x83, 0xBC, 0xE3, 0x83, 0xA0, 0x49, 0xE3, 0x82, + 0xAB, 0xE3, 0x82, 0xA4, 0xE3, 0x83, 0xAA, 0x49, + // Bytes 28c0 - 28ff + 0xE3, 0x82, 0xB1, 0xE3, 0x83, 0xBC, 0xE3, 0x82, + 0xB9, 0x49, 0xE3, 0x82, 0xB3, 0xE3, 0x83, 0xAB, + 0xE3, 0x83, 0x8A, 0x49, 0xE3, 0x82, 0xBB, 0xE3, + 0x83, 0xB3, 0xE3, 0x83, 0x81, 0x49, 0xE3, 0x82, + 0xBB, 0xE3, 0x83, 0xB3, 0xE3, 0x83, 0x88, 0x49, + 0xE3, 0x83, 0x86, 0xE3, 0x82, 0x99, 0xE3, 0x82, + 0xB7, 0x49, 0xE3, 0x83, 0x88, 0xE3, 0x82, 0x99, + 0xE3, 0x83, 0xAB, 0x49, 0xE3, 0x83, 0x8E, 0xE3, + // Bytes 2900 - 293f + 0x83, 0x83, 0xE3, 0x83, 0x88, 0x49, 0xE3, 0x83, + 0x8F, 0xE3, 0x82, 0xA4, 0xE3, 0x83, 0x84, 0x49, + 0xE3, 0x83, 0x92, 0xE3, 0x82, 0x99, 0xE3, 0x83, + 0xAB, 0x49, 0xE3, 0x83, 0x92, 0xE3, 0x82, 0x9A, + 0xE3, 0x82, 0xB3, 0x49, 0xE3, 0x83, 0x95, 0xE3, + 0x83, 0xA9, 0xE3, 0x83, 0xB3, 0x49, 0xE3, 0x83, + 0x98, 0xE3, 0x82, 0x9A, 0xE3, 0x82, 0xBD, 0x49, + 0xE3, 0x83, 0x98, 0xE3, 0x83, 0xAB, 0xE3, 0x83, + // Bytes 2940 - 297f + 0x84, 0x49, 0xE3, 0x83, 0x9B, 0xE3, 0x83, 0xBC, + 0xE3, 0x83, 0xAB, 0x49, 0xE3, 0x83, 0x9B, 0xE3, + 0x83, 0xBC, 0xE3, 0x83, 0xB3, 0x49, 0xE3, 0x83, + 0x9E, 0xE3, 0x82, 0xA4, 0xE3, 0x83, 0xAB, 0x49, + 0xE3, 0x83, 0x9E, 0xE3, 0x83, 0x83, 0xE3, 0x83, + 0x8F, 0x49, 0xE3, 0x83, 0x9E, 0xE3, 0x83, 0xAB, + 0xE3, 0x82, 0xAF, 0x49, 0xE3, 0x83, 0xA4, 0xE3, + 0x83, 0xBC, 0xE3, 0x83, 0xAB, 0x49, 0xE3, 0x83, + // Bytes 2980 - 29bf + 0xA6, 0xE3, 0x82, 0xA2, 0xE3, 0x83, 0xB3, 0x49, + 0xE3, 0x83, 0xAF, 0xE3, 0x83, 0x83, 0xE3, 0x83, + 0x88, 0x4C, 0xE2, 0x80, 0xB2, 0xE2, 0x80, 0xB2, + 0xE2, 0x80, 0xB2, 0xE2, 0x80, 0xB2, 0x4C, 0xE2, + 0x88, 0xAB, 0xE2, 0x88, 0xAB, 0xE2, 0x88, 0xAB, + 0xE2, 0x88, 0xAB, 0x4C, 0xE3, 0x82, 0xA2, 0xE3, + 0x83, 0xAB, 0xE3, 0x83, 0x95, 0xE3, 0x82, 0xA1, + 0x4C, 0xE3, 0x82, 0xA8, 0xE3, 0x83, 0xBC, 0xE3, + // Bytes 29c0 - 29ff + 0x82, 0xAB, 0xE3, 0x83, 0xBC, 0x4C, 0xE3, 0x82, + 0xAB, 0xE3, 0x82, 0x99, 0xE3, 0x83, 0xAD, 0xE3, + 0x83, 0xB3, 0x4C, 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x98, 0xE3, 0x82, 0x9A, 0xE3, 0x82, 0xA2, 0x4F, + 0xE3, 0x82, 0xAD, 0xE3, 0x83, 0xAD, 0xE3, 0x83, + 0xAF, 0xE3, 0x83, 0x83, 0xE3, 0x83, 0x88, 0x4F, + // Bytes 2b40 - 2b7f + 0xE3, 0x82, 0xB5, 0xE3, 0x83, 0xB3, 0xE3, 0x83, + 0x81, 0xE3, 0x83, 0xBC, 0xE3, 0x83, 0xA0, 0x4F, + 0xE3, 0x83, 0x8F, 0xE3, 0x82, 0x99, 0xE3, 0x83, + 0xBC, 0xE3, 0x83, 0xAC, 0xE3, 0x83, 0xAB, 0x4F, + 0xE3, 0x83, 0x98, 0xE3, 0x82, 0xAF, 0xE3, 0x82, + 0xBF, 0xE3, 0x83, 0xBC, 0xE3, 0x83, 0xAB, 0x4F, + 0xE3, 0x83, 0x9B, 0xE3, 0x82, 0x9A, 0xE3, 0x82, + 0xA4, 0xE3, 0x83, 0xB3, 0xE3, 0x83, 0x88, 0x4F, + // Bytes 2b80 - 2bbf + 0xE3, 0x83, 0x9E, 0xE3, 0x83, 0xB3, 0xE3, 0x82, + 0xB7, 0xE3, 0x83, 0xA7, 0xE3, 0x83, 0xB3, 0x4F, + 0xE3, 0x83, 0xA1, 0xE3, 0x82, 0xAB, 0xE3, 0x82, + 0x99, 0xE3, 0x83, 0x88, 0xE3, 0x83, 0xB3, 0x4F, + 0xE3, 0x83, 0xAB, 0xE3, 0x83, 0xBC, 0xE3, 0x83, + 0x95, 0xE3, 0x82, 0x99, 0xE3, 0x83, 0xAB, 0x51, + 0x28, 0xE1, 0x84, 0x8B, 0xE1, 0x85, 0xA9, 0xE1, + 0x84, 0x8C, 0xE1, 0x85, 0xA5, 0xE1, 0x86, 0xAB, + // Bytes 2bc0 - 2bff + 0x29, 0x52, 0xE3, 0x82, 0xAD, 0xE3, 0x82, 0x99, + 0xE3, 0x83, 0xAB, 0xE3, 0x82, 0xBF, 0xE3, 0x82, + 0x99, 0xE3, 0x83, 0xBC, 0x52, 0xE3, 0x82, 0xAD, + 0xE3, 0x83, 0xAD, 0xE3, 0x82, 0xAF, 0xE3, 0x82, + 0x99, 0xE3, 0x83, 0xA9, 0xE3, 0x83, 0xA0, 0x52, + 0xE3, 0x82, 0xAD, 0xE3, 0x83, 0xAD, 0xE3, 0x83, + 0xA1, 0xE3, 0x83, 0xBC, 0xE3, 0x83, 0x88, 0xE3, + 0x83, 0xAB, 0x52, 0xE3, 0x82, 0xAF, 0xE3, 0x82, + // Bytes 2c00 - 2c3f + 0x99, 0xE3, 0x83, 0xA9, 0xE3, 0x83, 0xA0, 0xE3, + 0x83, 0x88, 0xE3, 0x83, 0xB3, 0x52, 0xE3, 0x82, + 0xAF, 0xE3, 0x83, 0xAB, 0xE3, 0x82, 0xBB, 0xE3, + 0x82, 0x99, 0xE3, 0x82, 0xA4, 0xE3, 0x83, 0xAD, + 0x52, 0xE3, 0x83, 0x8F, 0xE3, 0x82, 0x9A, 0xE3, + 0x83, 0xBC, 0xE3, 0x82, 0xBB, 0xE3, 0x83, 0xB3, + 0xE3, 0x83, 0x88, 0x52, 0xE3, 0x83, 0x92, 0xE3, + 0x82, 0x9A, 0xE3, 0x82, 0xA2, 0xE3, 0x82, 0xB9, + // Bytes 2c40 - 2c7f + 0xE3, 0x83, 0x88, 0xE3, 0x83, 0xAB, 0x52, 0xE3, + 0x83, 0x95, 0xE3, 0x82, 0x99, 0xE3, 0x83, 0x83, + 0xE3, 0x82, 0xB7, 0xE3, 0x82, 0xA7, 0xE3, 0x83, + 0xAB, 0x52, 0xE3, 0x83, 0x9F, 0xE3, 0x83, 0xAA, + 0xE3, 0x83, 0x8F, 0xE3, 0x82, 0x99, 0xE3, 0x83, + 0xBC, 0xE3, 0x83, 0xAB, 0x52, 0xE3, 0x83, 0xAC, + 0xE3, 0x83, 0xB3, 0xE3, 0x83, 0x88, 0xE3, 0x82, + 0xB1, 0xE3, 0x82, 0x99, 0xE3, 0x83, 0xB3, 0x61, + // Bytes 2c80 - 2cbf + 0xD8, 0xB5, 0xD9, 0x84, 0xD9, 0x89, 0x20, 0xD8, + 0xA7, 0xD9, 0x84, 0xD9, 0x84, 0xD9, 0x87, 0x20, + 0xD8, 0xB9, 0xD9, 0x84, 0xD9, 0x8A, 0xD9, 0x87, + 0x20, 0xD9, 0x88, 0xD8, 0xB3, 0xD9, 0x84, 0xD9, + 0x85, 0x06, 0xE0, 0xA7, 0x87, 0xE0, 0xA6, 0xBE, + 0x01, 0x06, 0xE0, 0xA7, 0x87, 0xE0, 0xA7, 0x97, + 0x01, 0x06, 0xE0, 0xAD, 0x87, 0xE0, 0xAC, 0xBE, + 0x01, 0x06, 0xE0, 0xAD, 0x87, 0xE0, 0xAD, 0x96, + // Bytes 2cc0 - 2cff + 0x01, 0x06, 0xE0, 0xAD, 0x87, 0xE0, 0xAD, 0x97, + 0x01, 0x06, 0xE0, 0xAE, 0x92, 0xE0, 0xAF, 0x97, + 0x01, 0x06, 0xE0, 0xAF, 0x86, 0xE0, 0xAE, 0xBE, + 0x01, 0x06, 0xE0, 0xAF, 0x86, 0xE0, 0xAF, 0x97, + 0x01, 0x06, 0xE0, 0xAF, 0x87, 0xE0, 0xAE, 0xBE, + 0x01, 0x06, 0xE0, 0xB2, 0xBF, 0xE0, 0xB3, 0x95, + 0x01, 0x06, 0xE0, 0xB3, 0x86, 0xE0, 0xB3, 0x95, + 0x01, 0x06, 0xE0, 0xB3, 0x86, 0xE0, 0xB3, 0x96, + // Bytes 2d00 - 2d3f + 0x01, 0x06, 0xE0, 0xB5, 0x86, 0xE0, 0xB4, 0xBE, + 0x01, 0x06, 0xE0, 0xB5, 0x86, 0xE0, 0xB5, 0x97, + 0x01, 0x06, 0xE0, 0xB5, 0x87, 0xE0, 0xB4, 0xBE, + 0x01, 0x06, 0xE0, 0xB7, 0x99, 0xE0, 0xB7, 0x9F, + 0x01, 0x06, 0xE1, 0x80, 0xA5, 0xE1, 0x80, 0xAE, + 0x01, 0x06, 0xE1, 0xAC, 0x85, 0xE1, 0xAC, 0xB5, + 0x01, 0x06, 0xE1, 0xAC, 0x87, 0xE1, 0xAC, 0xB5, + 0x01, 0x06, 0xE1, 0xAC, 0x89, 0xE1, 0xAC, 0xB5, + // Bytes 2d40 - 2d7f + 0x01, 0x06, 0xE1, 0xAC, 0x8B, 0xE1, 0xAC, 0xB5, + 0x01, 0x06, 0xE1, 0xAC, 0x8D, 0xE1, 0xAC, 0xB5, + 0x01, 0x06, 0xE1, 0xAC, 0x91, 0xE1, 0xAC, 0xB5, + 0x01, 0x06, 0xE1, 0xAC, 0xBA, 0xE1, 0xAC, 0xB5, + 0x01, 0x06, 0xE1, 0xAC, 0xBC, 0xE1, 0xAC, 0xB5, + 0x01, 0x06, 0xE1, 0xAC, 0xBE, 0xE1, 0xAC, 0xB5, + 0x01, 0x06, 0xE1, 0xAC, 0xBF, 0xE1, 0xAC, 0xB5, + 0x01, 0x06, 0xE1, 0xAD, 0x82, 0xE1, 0xAC, 0xB5, + // Bytes 2d80 - 2dbf + 0x01, 0x08, 0xF0, 0x91, 0x84, 0xB1, 0xF0, 0x91, + 0x84, 0xA7, 0x01, 0x08, 0xF0, 0x91, 0x84, 0xB2, + 0xF0, 0x91, 0x84, 0xA7, 0x01, 0x08, 0xF0, 0x91, + 0x8D, 0x87, 0xF0, 0x91, 0x8C, 0xBE, 0x01, 0x08, + 0xF0, 0x91, 0x8D, 0x87, 0xF0, 0x91, 0x8D, 0x97, + 0x01, 0x08, 0xF0, 0x91, 0x92, 0xB9, 0xF0, 0x91, + 0x92, 0xB0, 0x01, 0x08, 0xF0, 0x91, 0x92, 0xB9, + 0xF0, 0x91, 0x92, 0xBA, 0x01, 0x08, 0xF0, 0x91, + // Bytes 2dc0 - 2dff + 0x92, 0xB9, 0xF0, 0x91, 0x92, 0xBD, 0x01, 0x08, + 0xF0, 0x91, 0x96, 0xB8, 0xF0, 0x91, 0x96, 0xAF, + 0x01, 0x08, 0xF0, 0x91, 0x96, 0xB9, 0xF0, 0x91, + 0x96, 0xAF, 0x01, 0x09, 0xE0, 0xB3, 0x86, 0xE0, + 0xB3, 0x82, 0xE0, 0xB3, 0x95, 0x02, 0x09, 0xE0, + 0xB7, 0x99, 0xE0, 0xB7, 0x8F, 0xE0, 0xB7, 0x8A, + 0x12, 0x44, 0x44, 0x5A, 0xCC, 0x8C, 0xC9, 0x44, + 0x44, 0x7A, 0xCC, 0x8C, 0xC9, 0x44, 0x64, 0x7A, + // Bytes 2e00 - 2e3f + 0xCC, 0x8C, 0xC9, 0x46, 0xD9, 0x84, 0xD8, 0xA7, + 0xD9, 0x93, 0xC9, 0x46, 0xD9, 0x84, 0xD8, 0xA7, + 0xD9, 0x94, 0xC9, 0x46, 0xD9, 0x84, 0xD8, 0xA7, + 0xD9, 0x95, 0xB5, 0x46, 0xE1, 0x84, 0x80, 0xE1, + 0x85, 0xA1, 0x01, 0x46, 0xE1, 0x84, 0x82, 0xE1, + 0x85, 0xA1, 0x01, 0x46, 0xE1, 0x84, 0x83, 0xE1, + 0x85, 0xA1, 0x01, 0x46, 0xE1, 0x84, 0x85, 0xE1, + 0x85, 0xA1, 0x01, 0x46, 0xE1, 0x84, 0x86, 0xE1, + // Bytes 2e40 - 2e7f + 0x85, 0xA1, 0x01, 0x46, 0xE1, 0x84, 0x87, 0xE1, + 0x85, 0xA1, 0x01, 0x46, 0xE1, 0x84, 0x89, 0xE1, + 0x85, 0xA1, 0x01, 0x46, 0xE1, 0x84, 0x8B, 0xE1, + 0x85, 0xA1, 0x01, 0x46, 0xE1, 0x84, 0x8B, 0xE1, + 0x85, 0xAE, 0x01, 0x46, 0xE1, 0x84, 0x8C, 0xE1, + 0x85, 0xA1, 0x01, 0x46, 0xE1, 0x84, 0x8E, 0xE1, + 0x85, 0xA1, 0x01, 0x46, 0xE1, 0x84, 0x8F, 0xE1, + 0x85, 0xA1, 0x01, 0x46, 0xE1, 0x84, 0x90, 0xE1, + // Bytes 2e80 - 2ebf + 0x85, 0xA1, 0x01, 0x46, 0xE1, 0x84, 0x91, 0xE1, + 0x85, 0xA1, 0x01, 0x46, 0xE1, 0x84, 0x92, 0xE1, + 0x85, 0xA1, 0x01, 0x49, 0xE3, 0x83, 0xA1, 0xE3, + 0x82, 0xAB, 0xE3, 0x82, 0x99, 0x0D, 0x4C, 0xE1, + 0x84, 0x8C, 0xE1, 0x85, 0xAE, 0xE1, 0x84, 0x8B, + 0xE1, 0x85, 0xB4, 0x01, 0x4C, 0xE3, 0x82, 0xAD, + 0xE3, 0x82, 0x99, 0xE3, 0x82, 0xAB, 0xE3, 0x82, + 0x99, 0x0D, 0x4C, 0xE3, 0x82, 0xB3, 0xE3, 0x83, + // Bytes 2ec0 - 2eff + 0xBC, 0xE3, 0x83, 0x9B, 0xE3, 0x82, 0x9A, 0x0D, + 0x4C, 0xE3, 0x83, 0xA4, 0xE3, 0x83, 0xBC, 0xE3, + 0x83, 0x88, 0xE3, 0x82, 0x99, 0x0D, 0x4F, 0xE1, + 0x84, 0x8E, 0xE1, 0x85, 0xA1, 0xE1, 0x86, 0xB7, + 0xE1, 0x84, 0x80, 0xE1, 0x85, 0xA9, 0x01, 0x4F, + 0xE3, 0x82, 0xA4, 0xE3, 0x83, 0x8B, 0xE3, 0x83, + 0xB3, 0xE3, 0x82, 0xAF, 0xE3, 0x82, 0x99, 0x0D, + 0x4F, 0xE3, 0x82, 0xB7, 0xE3, 0x83, 0xAA, 0xE3, + // Bytes 2f00 - 2f3f + 0x83, 0xB3, 0xE3, 0x82, 0xAF, 0xE3, 0x82, 0x99, + 0x0D, 0x4F, 0xE3, 0x83, 0x98, 0xE3, 0x82, 0x9A, + 0xE3, 0x83, 0xBC, 0xE3, 0x82, 0xB7, 0xE3, 0x82, + 0x99, 0x0D, 0x4F, 0xE3, 0x83, 0x9B, 0xE3, 0x82, + 0x9A, 0xE3, 0x83, 0xB3, 0xE3, 0x83, 0x88, 0xE3, + 0x82, 0x99, 0x0D, 0x52, 0xE3, 0x82, 0xA8, 0xE3, + 0x82, 0xB9, 0xE3, 0x82, 0xAF, 0xE3, 0x83, 0xBC, + 0xE3, 0x83, 0x88, 0xE3, 0x82, 0x99, 0x0D, 0x52, + // Bytes 2f40 - 2f7f + 0xE3, 0x83, 0x95, 0xE3, 0x82, 0xA1, 0xE3, 0x83, + 0xA9, 0xE3, 0x83, 0x83, 0xE3, 0x83, 0x88, 0xE3, + 0x82, 0x99, 0x0D, 0x86, 0xE0, 0xB3, 0x86, 0xE0, + 0xB3, 0x82, 0x01, 0x86, 0xE0, 0xB7, 0x99, 0xE0, + 0xB7, 0x8F, 0x01, 0x03, 0x3C, 0xCC, 0xB8, 0x05, + 0x03, 0x3D, 0xCC, 0xB8, 0x05, 0x03, 0x3E, 0xCC, + 0xB8, 0x05, 0x03, 0x41, 0xCC, 0x80, 0xC9, 0x03, + 0x41, 0xCC, 0x81, 0xC9, 0x03, 0x41, 0xCC, 0x83, + // Bytes 2f80 - 2fbf + 0xC9, 0x03, 0x41, 0xCC, 0x84, 0xC9, 0x03, 0x41, + 0xCC, 0x89, 0xC9, 0x03, 0x41, 0xCC, 0x8C, 0xC9, + 0x03, 0x41, 0xCC, 0x8F, 0xC9, 0x03, 0x41, 0xCC, + 0x91, 0xC9, 0x03, 0x41, 0xCC, 0xA5, 0xB5, 0x03, + 0x41, 0xCC, 0xA8, 0xA5, 0x03, 0x42, 0xCC, 0x87, + 0xC9, 0x03, 0x42, 0xCC, 0xA3, 0xB5, 0x03, 0x42, + 0xCC, 0xB1, 0xB5, 0x03, 0x43, 0xCC, 0x81, 0xC9, + 0x03, 0x43, 0xCC, 0x82, 0xC9, 0x03, 0x43, 0xCC, + // Bytes 2fc0 - 2fff + 0x87, 0xC9, 0x03, 0x43, 0xCC, 0x8C, 0xC9, 0x03, + 0x44, 0xCC, 0x87, 0xC9, 0x03, 0x44, 0xCC, 0x8C, + 0xC9, 0x03, 0x44, 0xCC, 0xA3, 0xB5, 0x03, 0x44, + 0xCC, 0xA7, 0xA5, 0x03, 0x44, 0xCC, 0xAD, 0xB5, + 0x03, 0x44, 0xCC, 0xB1, 0xB5, 0x03, 0x45, 0xCC, + 0x80, 0xC9, 0x03, 0x45, 0xCC, 0x81, 0xC9, 0x03, + 0x45, 0xCC, 0x83, 0xC9, 0x03, 0x45, 0xCC, 0x86, + 0xC9, 0x03, 0x45, 0xCC, 0x87, 0xC9, 0x03, 0x45, + // Bytes 3000 - 303f + 0xCC, 0x88, 0xC9, 0x03, 0x45, 0xCC, 0x89, 0xC9, + 0x03, 0x45, 0xCC, 0x8C, 0xC9, 0x03, 0x45, 0xCC, + 0x8F, 0xC9, 0x03, 0x45, 0xCC, 0x91, 0xC9, 0x03, + 0x45, 0xCC, 0xA8, 0xA5, 0x03, 0x45, 0xCC, 0xAD, + 0xB5, 0x03, 0x45, 0xCC, 0xB0, 0xB5, 0x03, 0x46, + 0xCC, 0x87, 0xC9, 0x03, 0x47, 0xCC, 0x81, 0xC9, + 0x03, 0x47, 0xCC, 0x82, 0xC9, 0x03, 0x47, 0xCC, + 0x84, 0xC9, 0x03, 0x47, 0xCC, 0x86, 0xC9, 0x03, + // Bytes 3040 - 307f + 0x47, 0xCC, 0x87, 0xC9, 0x03, 0x47, 0xCC, 0x8C, + 0xC9, 0x03, 0x47, 0xCC, 0xA7, 0xA5, 0x03, 0x48, + 0xCC, 0x82, 0xC9, 0x03, 0x48, 0xCC, 0x87, 0xC9, + 0x03, 0x48, 0xCC, 0x88, 0xC9, 0x03, 0x48, 0xCC, + 0x8C, 0xC9, 0x03, 0x48, 0xCC, 0xA3, 0xB5, 0x03, + 0x48, 0xCC, 0xA7, 0xA5, 0x03, 0x48, 0xCC, 0xAE, + 0xB5, 0x03, 0x49, 0xCC, 0x80, 0xC9, 0x03, 0x49, + 0xCC, 0x81, 0xC9, 0x03, 0x49, 0xCC, 0x82, 0xC9, + // Bytes 3080 - 30bf + 0x03, 0x49, 0xCC, 0x83, 0xC9, 0x03, 0x49, 0xCC, + 0x84, 0xC9, 0x03, 0x49, 0xCC, 0x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0x03, 0x4F, 0xCC, 0x89, 0xC9, 0x03, 0x4F, + // Bytes 3140 - 317f + 0xCC, 0x8B, 0xC9, 0x03, 0x4F, 0xCC, 0x8C, 0xC9, + 0x03, 0x4F, 0xCC, 0x8F, 0xC9, 0x03, 0x4F, 0xCC, + 0x91, 0xC9, 0x03, 0x50, 0xCC, 0x81, 0xC9, 0x03, + 0x50, 0xCC, 0x87, 0xC9, 0x03, 0x52, 0xCC, 0x81, + 0xC9, 0x03, 0x52, 0xCC, 0x87, 0xC9, 0x03, 0x52, + 0xCC, 0x8C, 0xC9, 0x03, 0x52, 0xCC, 0x8F, 0xC9, + 0x03, 0x52, 0xCC, 0x91, 0xC9, 0x03, 0x52, 0xCC, + 0xA7, 0xA5, 0x03, 0x52, 0xCC, 0xB1, 0xB5, 0x03, + // Bytes 3180 - 31bf + 0x53, 0xCC, 0x82, 0xC9, 0x03, 0x53, 0xCC, 0x87, + 0xC9, 0x03, 0x53, 0xCC, 0xA6, 0xB5, 0x03, 0x53, + 0xCC, 0xA7, 0xA5, 0x03, 0x54, 0xCC, 0x87, 0xC9, + 0x03, 0x54, 0xCC, 0x8C, 0xC9, 0x03, 0x54, 0xCC, + 0xA3, 0xB5, 0x03, 0x54, 0xCC, 0xA6, 0xB5, 0x03, + 0x54, 0xCC, 0xA7, 0xA5, 0x03, 0x54, 0xCC, 0xAD, + 0xB5, 0x03, 0x54, 0xCC, 0xB1, 0xB5, 0x03, 0x55, + 0xCC, 0x80, 0xC9, 0x03, 0x55, 0xCC, 0x81, 0xC9, + // Bytes 31c0 - 31ff + 0x03, 0x55, 0xCC, 0x82, 0xC9, 0x03, 0x55, 0xCC, + 0x86, 0xC9, 0x03, 0x55, 0xCC, 0x89, 0xC9, 0x03, + 0x55, 0xCC, 0x8A, 0xC9, 0x03, 0x55, 0xCC, 0x8B, + 0xC9, 0x03, 0x55, 0xCC, 0x8C, 0xC9, 0x03, 0x55, + 0xCC, 0x8F, 0xC9, 0x03, 0x55, 0xCC, 0x91, 0xC9, + 0x03, 0x55, 0xCC, 0xA3, 0xB5, 0x03, 0x55, 0xCC, + 0xA4, 0xB5, 0x03, 0x55, 0xCC, 0xA8, 0xA5, 0x03, + 0x55, 0xCC, 0xAD, 0xB5, 0x03, 0x55, 0xCC, 0xB0, + // Bytes 3200 - 323f + 0xB5, 0x03, 0x56, 0xCC, 0x83, 0xC9, 0x03, 0x56, + 0xCC, 0xA3, 0xB5, 0x03, 0x57, 0xCC, 0x80, 0xC9, + 0x03, 0x57, 0xCC, 0x81, 0xC9, 0x03, 0x57, 0xCC, + 0x82, 0xC9, 0x03, 0x57, 0xCC, 0x87, 0xC9, 0x03, + 0x57, 0xCC, 0x88, 0xC9, 0x03, 0x57, 0xCC, 0xA3, + 0xB5, 0x03, 0x58, 0xCC, 0x87, 0xC9, 0x03, 0x58, + 0xCC, 0x88, 0xC9, 0x03, 0x59, 0xCC, 0x80, 0xC9, + 0x03, 0x59, 0xCC, 0x81, 0xC9, 0x03, 0x59, 0xCC, + // Bytes 3240 - 327f + 0x82, 0xC9, 0x03, 0x59, 0xCC, 0x83, 0xC9, 0x03, + 0x59, 0xCC, 0x84, 0xC9, 0x03, 0x59, 0xCC, 0x87, + 0xC9, 0x03, 0x59, 0xCC, 0x88, 0xC9, 0x03, 0x59, + 0xCC, 0x89, 0xC9, 0x03, 0x59, 0xCC, 0xA3, 0xB5, + 0x03, 0x5A, 0xCC, 0x81, 0xC9, 0x03, 0x5A, 0xCC, + 0x82, 0xC9, 0x03, 0x5A, 0xCC, 0x87, 0xC9, 0x03, + 0x5A, 0xCC, 0x8C, 0xC9, 0x03, 0x5A, 0xCC, 0xA3, + 0xB5, 0x03, 0x5A, 0xCC, 0xB1, 0xB5, 0x03, 0x61, + // Bytes 3280 - 32bf + 0xCC, 0x80, 0xC9, 0x03, 0x61, 0xCC, 0x81, 0xC9, + 0x03, 0x61, 0xCC, 0x83, 0xC9, 0x03, 0x61, 0xCC, + 0x84, 0xC9, 0x03, 0x61, 0xCC, 0x89, 0xC9, 0x03, + 0x61, 0xCC, 0x8C, 0xC9, 0x03, 0x61, 0xCC, 0x8F, + 0xC9, 0x03, 0x61, 0xCC, 0x91, 0xC9, 0x03, 0x61, + 0xCC, 0xA5, 0xB5, 0x03, 0x61, 0xCC, 0xA8, 0xA5, + 0x03, 0x62, 0xCC, 0x87, 0xC9, 0x03, 0x62, 0xCC, + 0xA3, 0xB5, 0x03, 0x62, 0xCC, 0xB1, 0xB5, 0x03, + // Bytes 32c0 - 32ff + 0x63, 0xCC, 0x81, 0xC9, 0x03, 0x63, 0xCC, 0x82, + 0xC9, 0x03, 0x63, 0xCC, 0x87, 0xC9, 0x03, 0x63, + 0xCC, 0x8C, 0xC9, 0x03, 0x64, 0xCC, 0x87, 0xC9, + 0x03, 0x64, 0xCC, 0x8C, 0xC9, 0x03, 0x64, 0xCC, + 0xA3, 0xB5, 0x03, 0x64, 0xCC, 0xA7, 0xA5, 0x03, + 0x64, 0xCC, 0xAD, 0xB5, 0x03, 0x64, 0xCC, 0xB1, + 0xB5, 0x03, 0x65, 0xCC, 0x80, 0xC9, 0x03, 0x65, + 0xCC, 0x81, 0xC9, 0x03, 0x65, 0xCC, 0x83, 0xC9, + // Bytes 3300 - 333f + 0x03, 0x65, 0xCC, 0x86, 0xC9, 0x03, 0x65, 0xCC, + 0x87, 0xC9, 0x03, 0x65, 0xCC, 0x88, 0xC9, 0x03, + 0x65, 0xCC, 0x89, 0xC9, 0x03, 0x65, 0xCC, 0x8C, + 0xC9, 0x03, 0x65, 0xCC, 0x8F, 0xC9, 0x03, 0x65, + 0xCC, 0x91, 0xC9, 0x03, 0x65, 0xCC, 0xA8, 0xA5, + 0x03, 0x65, 0xCC, 0xAD, 0xB5, 0x03, 0x65, 0xCC, + 0xB0, 0xB5, 0x03, 0x66, 0xCC, 0x87, 0xC9, 0x03, + 0x67, 0xCC, 0x81, 0xC9, 0x03, 0x67, 0xCC, 0x82, + // Bytes 3340 - 337f + 0xC9, 0x03, 0x67, 0xCC, 0x84, 0xC9, 0x03, 0x67, + 0xCC, 0x86, 0xC9, 0x03, 0x67, 0xCC, 0x87, 0xC9, + 0x03, 0x67, 0xCC, 0x8C, 0xC9, 0x03, 0x67, 0xCC, + 0xA7, 0xA5, 0x03, 0x68, 0xCC, 0x82, 0xC9, 0x03, + 0x68, 0xCC, 0x87, 0xC9, 0x03, 0x68, 0xCC, 0x88, + 0xC9, 0x03, 0x68, 0xCC, 0x8C, 0xC9, 0x03, 0x68, + 0xCC, 0xA3, 0xB5, 0x03, 0x68, 0xCC, 0xA7, 0xA5, + 0x03, 0x68, 0xCC, 0xAE, 0xB5, 0x03, 0x68, 0xCC, + // Bytes 3380 - 33bf + 0xB1, 0xB5, 0x03, 0x69, 0xCC, 0x80, 0xC9, 0x03, + 0x69, 0xCC, 0x81, 0xC9, 0x03, 0x69, 0xCC, 0x82, + 0xC9, 0x03, 0x69, 0xCC, 0x83, 0xC9, 0x03, 0x69, + 0xCC, 0x84, 0xC9, 0x03, 0x69, 0xCC, 0x86, 0xC9, + 0x03, 0x69, 0xCC, 0x89, 0xC9, 0x03, 0x69, 0xCC, + 0x8C, 0xC9, 0x03, 0x69, 0xCC, 0x8F, 0xC9, 0x03, + 0x69, 0xCC, 0x91, 0xC9, 0x03, 0x69, 0xCC, 0xA3, + 0xB5, 0x03, 0x69, 0xCC, 0xA8, 0xA5, 0x03, 0x69, + // Bytes 33c0 - 33ff + 0xCC, 0xB0, 0xB5, 0x03, 0x6A, 0xCC, 0x82, 0xC9, + 0x03, 0x6A, 0xCC, 0x8C, 0xC9, 0x03, 0x6B, 0xCC, + 0x81, 0xC9, 0x03, 0x6B, 0xCC, 0x8C, 0xC9, 0x03, + 0x6B, 0xCC, 0xA3, 0xB5, 0x03, 0x6B, 0xCC, 0xA7, + 0xA5, 0x03, 0x6B, 0xCC, 0xB1, 0xB5, 0x03, 0x6C, + 0xCC, 0x81, 0xC9, 0x03, 0x6C, 0xCC, 0x8C, 0xC9, + 0x03, 0x6C, 0xCC, 0xA7, 0xA5, 0x03, 0x6C, 0xCC, + 0xAD, 0xB5, 0x03, 0x6C, 0xCC, 0xB1, 0xB5, 0x03, + // Bytes 3400 - 343f + 0x6D, 0xCC, 0x81, 0xC9, 0x03, 0x6D, 0xCC, 0x87, + 0xC9, 0x03, 0x6D, 0xCC, 0xA3, 0xB5, 0x03, 0x6E, + 0xCC, 0x80, 0xC9, 0x03, 0x6E, 0xCC, 0x81, 0xC9, + 0x03, 0x6E, 0xCC, 0x83, 0xC9, 0x03, 0x6E, 0xCC, + 0x87, 0xC9, 0x03, 0x6E, 0xCC, 0x8C, 0xC9, 0x03, + 0x6E, 0xCC, 0xA3, 0xB5, 0x03, 0x6E, 0xCC, 0xA7, + 0xA5, 0x03, 0x6E, 0xCC, 0xAD, 0xB5, 0x03, 0x6E, + 0xCC, 0xB1, 0xB5, 0x03, 0x6F, 0xCC, 0x80, 0xC9, + // Bytes 3440 - 347f + 0x03, 0x6F, 0xCC, 0x81, 0xC9, 0x03, 0x6F, 0xCC, + 0x86, 0xC9, 0x03, 0x6F, 0xCC, 0x89, 0xC9, 0x03, + 0x6F, 0xCC, 0x8B, 0xC9, 0x03, 0x6F, 0xCC, 0x8C, + 0xC9, 0x03, 0x6F, 0xCC, 0x8F, 0xC9, 0x03, 0x6F, + 0xCC, 0x91, 0xC9, 0x03, 0x70, 0xCC, 0x81, 0xC9, + 0x03, 0x70, 0xCC, 0x87, 0xC9, 0x03, 0x72, 0xCC, + 0x81, 0xC9, 0x03, 0x72, 0xCC, 0x87, 0xC9, 0x03, + 0x72, 0xCC, 0x8C, 0xC9, 0x03, 0x72, 0xCC, 0x8F, + // Bytes 3480 - 34bf + 0xC9, 0x03, 0x72, 0xCC, 0x91, 0xC9, 0x03, 0x72, + 0xCC, 0xA7, 0xA5, 0x03, 0x72, 0xCC, 0xB1, 0xB5, + 0x03, 0x73, 0xCC, 0x82, 0xC9, 0x03, 0x73, 0xCC, + 0x87, 0xC9, 0x03, 0x73, 0xCC, 0xA6, 0xB5, 0x03, + 0x73, 0xCC, 0xA7, 0xA5, 0x03, 0x74, 0xCC, 0x87, + 0xC9, 0x03, 0x74, 0xCC, 0x88, 0xC9, 0x03, 0x74, + 0xCC, 0x8C, 0xC9, 0x03, 0x74, 0xCC, 0xA3, 0xB5, + 0x03, 0x74, 0xCC, 0xA6, 0xB5, 0x03, 0x74, 0xCC, + // Bytes 34c0 - 34ff + 0xA7, 0xA5, 0x03, 0x74, 0xCC, 0xAD, 0xB5, 0x03, + 0x74, 0xCC, 0xB1, 0xB5, 0x03, 0x75, 0xCC, 0x80, + 0xC9, 0x03, 0x75, 0xCC, 0x81, 0xC9, 0x03, 0x75, + 0xCC, 0x82, 0xC9, 0x03, 0x75, 0xCC, 0x86, 0xC9, + 0x03, 0x75, 0xCC, 0x89, 0xC9, 0x03, 0x75, 0xCC, + 0x8A, 0xC9, 0x03, 0x75, 0xCC, 0x8B, 0xC9, 0x03, + 0x75, 0xCC, 0x8C, 0xC9, 0x03, 0x75, 0xCC, 0x8F, + 0xC9, 0x03, 0x75, 0xCC, 0x91, 0xC9, 0x03, 0x75, + // Bytes 3500 - 353f + 0xCC, 0xA3, 0xB5, 0x03, 0x75, 0xCC, 0xA4, 0xB5, + 0x03, 0x75, 0xCC, 0xA8, 0xA5, 0x03, 0x75, 0xCC, + 0xAD, 0xB5, 0x03, 0x75, 0xCC, 0xB0, 0xB5, 0x03, + 0x76, 0xCC, 0x83, 0xC9, 0x03, 0x76, 0xCC, 0xA3, + 0xB5, 0x03, 0x77, 0xCC, 0x80, 0xC9, 0x03, 0x77, + 0xCC, 0x81, 0xC9, 0x03, 0x77, 0xCC, 0x82, 0xC9, + 0x03, 0x77, 0xCC, 0x87, 0xC9, 0x03, 0x77, 0xCC, + 0x88, 0xC9, 0x03, 0x77, 0xCC, 0x8A, 0xC9, 0x03, + // Bytes 3540 - 357f + 0x77, 0xCC, 0xA3, 0xB5, 0x03, 0x78, 0xCC, 0x87, + 0xC9, 0x03, 0x78, 0xCC, 0x88, 0xC9, 0x03, 0x79, + 0xCC, 0x80, 0xC9, 0x03, 0x79, 0xCC, 0x81, 0xC9, + 0x03, 0x79, 0xCC, 0x82, 0xC9, 0x03, 0x79, 0xCC, + 0x83, 0xC9, 0x03, 0x79, 0xCC, 0x84, 0xC9, 0x03, + 0x79, 0xCC, 0x87, 0xC9, 0x03, 0x79, 0xCC, 0x88, + 0xC9, 0x03, 0x79, 0xCC, 0x89, 0xC9, 0x03, 0x79, + 0xCC, 0x8A, 0xC9, 0x03, 0x79, 0xCC, 0xA3, 0xB5, + // Bytes 3580 - 35bf + 0x03, 0x7A, 0xCC, 0x81, 0xC9, 0x03, 0x7A, 0xCC, + 0x82, 0xC9, 0x03, 0x7A, 0xCC, 0x87, 0xC9, 0x03, + 0x7A, 0xCC, 0x8C, 0xC9, 0x03, 0x7A, 0xCC, 0xA3, + 0xB5, 0x03, 0x7A, 0xCC, 0xB1, 0xB5, 0x04, 0xC2, + 0xA8, 0xCC, 0x80, 0xCA, 0x04, 0xC2, 0xA8, 0xCC, + 0x81, 0xCA, 0x04, 0xC2, 0xA8, 0xCD, 0x82, 0xCA, + 0x04, 0xC3, 0x86, 0xCC, 0x81, 0xC9, 0x04, 0xC3, + 0x86, 0xCC, 0x84, 0xC9, 0x04, 0xC3, 0x98, 0xCC, + // Bytes 35c0 - 35ff + 0x81, 0xC9, 0x04, 0xC3, 0xA6, 0xCC, 0x81, 0xC9, + 0x04, 0xC3, 0xA6, 0xCC, 0x84, 0xC9, 0x04, 0xC3, + 0xB8, 0xCC, 0x81, 0xC9, 0x04, 0xC5, 0xBF, 0xCC, + 0x87, 0xC9, 0x04, 0xC6, 0xB7, 0xCC, 0x8C, 0xC9, + 0x04, 0xCA, 0x92, 0xCC, 0x8C, 0xC9, 0x04, 0xCE, + 0x91, 0xCC, 0x80, 0xC9, 0x04, 0xCE, 0x91, 0xCC, + 0x81, 0xC9, 0x04, 0xCE, 0x91, 0xCC, 0x84, 0xC9, + 0x04, 0xCE, 0x91, 0xCC, 0x86, 0xC9, 0x04, 0xCE, + // Bytes 3600 - 363f + 0x91, 0xCD, 0x85, 0xD9, 0x04, 0xCE, 0x95, 0xCC, + 0x80, 0xC9, 0x04, 0xCE, 0x95, 0xCC, 0x81, 0xC9, + 0x04, 0xCE, 0x97, 0xCC, 0x80, 0xC9, 0x04, 0xCE, + 0x97, 0xCC, 0x81, 0xC9, 0x04, 0xCE, 0x97, 0xCD, + 0x85, 0xD9, 0x04, 0xCE, 0x99, 0xCC, 0x80, 0xC9, + 0x04, 0xCE, 0x99, 0xCC, 0x81, 0xC9, 0x04, 0xCE, + 0x99, 0xCC, 0x84, 0xC9, 0x04, 0xCE, 0x99, 0xCC, + 0x86, 0xC9, 0x04, 0xCE, 0x99, 0xCC, 0x88, 0xC9, + // Bytes 3640 - 367f + 0x04, 0xCE, 0x9F, 0xCC, 0x80, 0xC9, 0x04, 0xCE, + 0x9F, 0xCC, 0x81, 0xC9, 0x04, 0xCE, 0xA1, 0xCC, + 0x94, 0xC9, 0x04, 0xCE, 0xA5, 0xCC, 0x80, 0xC9, + 0x04, 0xCE, 0xA5, 0xCC, 0x81, 0xC9, 0x04, 0xCE, + 0xA5, 0xCC, 0x84, 0xC9, 0x04, 0xCE, 0xA5, 0xCC, + 0x86, 0xC9, 0x04, 0xCE, 0xA5, 0xCC, 0x88, 0xC9, + 0x04, 0xCE, 0xA9, 0xCC, 0x80, 0xC9, 0x04, 0xCE, + 0xA9, 0xCC, 0x81, 0xC9, 0x04, 0xCE, 0xA9, 0xCD, + // Bytes 3680 - 36bf + 0x85, 0xD9, 0x04, 0xCE, 0xB1, 0xCC, 0x84, 0xC9, + 0x04, 0xCE, 0xB1, 0xCC, 0x86, 0xC9, 0x04, 0xCE, + 0xB1, 0xCD, 0x85, 0xD9, 0x04, 0xCE, 0xB5, 0xCC, + 0x80, 0xC9, 0x04, 0xCE, 0xB5, 0xCC, 0x81, 0xC9, + 0x04, 0xCE, 0xB7, 0xCD, 0x85, 0xD9, 0x04, 0xCE, + 0xB9, 0xCC, 0x80, 0xC9, 0x04, 0xCE, 0xB9, 0xCC, + 0x81, 0xC9, 0x04, 0xCE, 0xB9, 0xCC, 0x84, 0xC9, + 0x04, 0xCE, 0xB9, 0xCC, 0x86, 0xC9, 0x04, 0xCE, + // Bytes 36c0 - 36ff + 0xB9, 0xCD, 0x82, 0xC9, 0x04, 0xCE, 0xBF, 0xCC, + 0x80, 0xC9, 0x04, 0xCE, 0xBF, 0xCC, 0x81, 0xC9, + 0x04, 0xCF, 0x81, 0xCC, 0x93, 0xC9, 0x04, 0xCF, + 0x81, 0xCC, 0x94, 0xC9, 0x04, 0xCF, 0x85, 0xCC, + 0x80, 0xC9, 0x04, 0xCF, 0x85, 0xCC, 0x81, 0xC9, + 0x04, 0xCF, 0x85, 0xCC, 0x84, 0xC9, 0x04, 0xCF, + 0x85, 0xCC, 0x86, 0xC9, 0x04, 0xCF, 0x85, 0xCD, + 0x82, 0xC9, 0x04, 0xCF, 0x89, 0xCD, 0x85, 0xD9, + // Bytes 3700 - 373f + 0x04, 0xCF, 0x92, 0xCC, 0x81, 0xC9, 0x04, 0xCF, + 0x92, 0xCC, 0x88, 0xC9, 0x04, 0xD0, 0x86, 0xCC, + 0x88, 0xC9, 0x04, 0xD0, 0x90, 0xCC, 0x86, 0xC9, + 0x04, 0xD0, 0x90, 0xCC, 0x88, 0xC9, 0x04, 0xD0, + 0x93, 0xCC, 0x81, 0xC9, 0x04, 0xD0, 0x95, 0xCC, + 0x80, 0xC9, 0x04, 0xD0, 0x95, 0xCC, 0x86, 0xC9, + 0x04, 0xD0, 0x95, 0xCC, 0x88, 0xC9, 0x04, 0xD0, + 0x96, 0xCC, 0x86, 0xC9, 0x04, 0xD0, 0x96, 0xCC, + // Bytes 3740 - 377f + 0x88, 0xC9, 0x04, 0xD0, 0x97, 0xCC, 0x88, 0xC9, + 0x04, 0xD0, 0x98, 0xCC, 0x80, 0xC9, 0x04, 0xD0, + 0x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, 0xD1, 0x83, 0xCC, + // Bytes 3800 - 383f + 0x88, 0xC9, 0x04, 0xD1, 0x83, 0xCC, 0x8B, 0xC9, + 0x04, 0xD1, 0x87, 0xCC, 0x88, 0xC9, 0x04, 0xD1, + 0x8B, 0xCC, 0x88, 0xC9, 0x04, 0xD1, 0x8D, 0xCC, + 0x88, 0xC9, 0x04, 0xD1, 0x96, 0xCC, 0x88, 0xC9, + 0x04, 0xD1, 0xB4, 0xCC, 0x8F, 0xC9, 0x04, 0xD1, + 0xB5, 0xCC, 0x8F, 0xC9, 0x04, 0xD3, 0x98, 0xCC, + 0x88, 0xC9, 0x04, 0xD3, 0x99, 0xCC, 0x88, 0xC9, + 0x04, 0xD3, 0xA8, 0xCC, 0x88, 0xC9, 0x04, 0xD3, + // Bytes 3840 - 387f + 0xA9, 0xCC, 0x88, 0xC9, 0x04, 0xD8, 0xA7, 0xD9, + 0x93, 0xC9, 0x04, 0xD8, 0xA7, 0xD9, 0x94, 0xC9, + 0x04, 0xD8, 0xA7, 0xD9, 0x95, 0xB5, 0x04, 0xD9, + 0x88, 0xD9, 0x94, 0xC9, 0x04, 0xD9, 0x8A, 0xD9, + 0x94, 0xC9, 0x04, 0xDB, 0x81, 0xD9, 0x94, 0xC9, + 0x04, 0xDB, 0x92, 0xD9, 0x94, 0xC9, 0x04, 0xDB, + 0x95, 0xD9, 0x94, 0xC9, 0x05, 0x41, 0xCC, 0x82, + 0xCC, 0x80, 0xCA, 0x05, 0x41, 0xCC, 0x82, 0xCC, + // Bytes 3880 - 38bf + 0x81, 0xCA, 0x05, 0x41, 0xCC, 0x82, 0xCC, 0x83, + 0xCA, 0x05, 0x41, 0xCC, 0x82, 0xCC, 0x89, 0xCA, + 0x05, 0x41, 0xCC, 0x86, 0xCC, 0x80, 0xCA, 0x05, + 0x41, 0xCC, 0x86, 0xCC, 0x81, 0xCA, 0x05, 0x41, + 0xCC, 0x86, 0xCC, 0x83, 0xCA, 0x05, 0x41, 0xCC, + 0x86, 0xCC, 0x89, 0xCA, 0x05, 0x41, 0xCC, 0x87, + 0xCC, 0x84, 0xCA, 0x05, 0x41, 0xCC, 0x88, 0xCC, + 0x84, 0xCA, 0x05, 0x41, 0xCC, 0x8A, 0xCC, 0x81, + // Bytes 38c0 - 38ff + 0xCA, 0x05, 0x41, 0xCC, 0xA3, 0xCC, 0x82, 0xCA, + 0x05, 0x41, 0xCC, 0xA3, 0xCC, 0x86, 0xCA, 0x05, + 0x43, 0xCC, 0xA7, 0xCC, 0x81, 0xCA, 0x05, 0x45, + 0xCC, 0x82, 0xCC, 0x80, 0xCA, 0x05, 0x45, 0xCC, + 0x82, 0xCC, 0x81, 0xCA, 0x05, 0x45, 0xCC, 0x82, + 0xCC, 0x83, 0xCA, 0x05, 0x45, 0xCC, 0x82, 0xCC, + 0x89, 0xCA, 0x05, 0x45, 0xCC, 0x84, 0xCC, 0x80, + 0xCA, 0x05, 0x45, 0xCC, 0x84, 0xCC, 0x81, 0xCA, + // Bytes 3900 - 393f + 0x05, 0x45, 0xCC, 0xA3, 0xCC, 0x82, 0xCA, 0x05, + 0x45, 0xCC, 0xA7, 0xCC, 0x86, 0xCA, 0x05, 0x49, + 0xCC, 0x88, 0xCC, 0x81, 0xCA, 0x05, 0x4C, 0xCC, + 0xA3, 0xCC, 0x84, 0xCA, 0x05, 0x4F, 0xCC, 0x82, + 0xCC, 0x80, 0xCA, 0x05, 0x4F, 0xCC, 0x82, 0xCC, + 0x81, 0xCA, 0x05, 0x4F, 0xCC, 0x82, 0xCC, 0x83, + 0xCA, 0x05, 0x4F, 0xCC, 0x82, 0xCC, 0x89, 0xCA, + 0x05, 0x4F, 0xCC, 0x83, 0xCC, 0x81, 0xCA, 0x05, + // Bytes 3940 - 397f + 0x4F, 0xCC, 0x83, 0xCC, 0x84, 0xCA, 0x05, 0x4F, + 0xCC, 0x83, 0xCC, 0x88, 0xCA, 0x05, 0x4F, 0xCC, + 0x84, 0xCC, 0x80, 0xCA, 0x05, 0x4F, 0xCC, 0x84, + 0xCC, 0x81, 0xCA, 0x05, 0x4F, 0xCC, 0x87, 0xCC, + 0x84, 0xCA, 0x05, 0x4F, 0xCC, 0x88, 0xCC, 0x84, + 0xCA, 0x05, 0x4F, 0xCC, 0x9B, 0xCC, 0x80, 0xCA, + 0x05, 0x4F, 0xCC, 0x9B, 0xCC, 0x81, 0xCA, 0x05, + 0x4F, 0xCC, 0x9B, 0xCC, 0x83, 0xCA, 0x05, 0x4F, + // Bytes 3980 - 39bf + 0xCC, 0x9B, 0xCC, 0x89, 0xCA, 0x05, 0x4F, 0xCC, + 0x9B, 0xCC, 0xA3, 0xB6, 0x05, 0x4F, 0xCC, 0xA3, + 0xCC, 0x82, 0xCA, 0x05, 0x4F, 0xCC, 0xA8, 0xCC, + 0x84, 0xCA, 0x05, 0x52, 0xCC, 0xA3, 0xCC, 0x84, + 0xCA, 0x05, 0x53, 0xCC, 0x81, 0xCC, 0x87, 0xCA, + 0x05, 0x53, 0xCC, 0x8C, 0xCC, 0x87, 0xCA, 0x05, + 0x53, 0xCC, 0xA3, 0xCC, 0x87, 0xCA, 0x05, 0x55, + 0xCC, 0x83, 0xCC, 0x81, 0xCA, 0x05, 0x55, 0xCC, + // Bytes 39c0 - 39ff + 0x84, 0xCC, 0x88, 0xCA, 0x05, 0x55, 0xCC, 0x88, + 0xCC, 0x80, 0xCA, 0x05, 0x55, 0xCC, 0x88, 0xCC, + 0x81, 0xCA, 0x05, 0x55, 0xCC, 0x88, 0xCC, 0x84, + 0xCA, 0x05, 0x55, 0xCC, 0x88, 0xCC, 0x8C, 0xCA, + 0x05, 0x55, 0xCC, 0x9B, 0xCC, 0x80, 0xCA, 0x05, + 0x55, 0xCC, 0x9B, 0xCC, 0x81, 0xCA, 0x05, 0x55, + 0xCC, 0x9B, 0xCC, 0x83, 0xCA, 0x05, 0x55, 0xCC, + 0x9B, 0xCC, 0x89, 0xCA, 0x05, 0x55, 0xCC, 0x9B, + // Bytes 3a00 - 3a3f + 0xCC, 0xA3, 0xB6, 0x05, 0x61, 0xCC, 0x82, 0xCC, + 0x80, 0xCA, 0x05, 0x61, 0xCC, 0x82, 0xCC, 0x81, + 0xCA, 0x05, 0x61, 0xCC, 0x82, 0xCC, 0x83, 0xCA, + 0x05, 0x61, 0xCC, 0x82, 0xCC, 0x89, 0xCA, 0x05, + 0x61, 0xCC, 0x86, 0xCC, 0x80, 0xCA, 0x05, 0x61, + 0xCC, 0x86, 0xCC, 0x81, 0xCA, 0x05, 0x61, 0xCC, + 0x86, 0xCC, 0x83, 0xCA, 0x05, 0x61, 0xCC, 0x86, + 0xCC, 0x89, 0xCA, 0x05, 0x61, 0xCC, 0x87, 0xCC, + // Bytes 3a40 - 3a7f + 0x84, 0xCA, 0x05, 0x61, 0xCC, 0x88, 0xCC, 0x84, + 0xCA, 0x05, 0x61, 0xCC, 0x8A, 0xCC, 0x81, 0xCA, + 0x05, 0x61, 0xCC, 0xA3, 0xCC, 0x82, 0xCA, 0x05, + 0x61, 0xCC, 0xA3, 0xCC, 0x86, 0xCA, 0x05, 0x63, + 0xCC, 0xA7, 0xCC, 0x81, 0xCA, 0x05, 0x65, 0xCC, + 0x82, 0xCC, 0x80, 0xCA, 0x05, 0x65, 0xCC, 0x82, + 0xCC, 0x81, 0xCA, 0x05, 0x65, 0xCC, 0x82, 0xCC, + 0x83, 0xCA, 0x05, 0x65, 0xCC, 0x82, 0xCC, 0x89, + // Bytes 3a80 - 3abf + 0xCA, 0x05, 0x65, 0xCC, 0x84, 0xCC, 0x80, 0xCA, + 0x05, 0x65, 0xCC, 0x84, 0xCC, 0x81, 0xCA, 0x05, + 0x65, 0xCC, 0xA3, 0xCC, 0x82, 0xCA, 0x05, 0x65, + 0xCC, 0xA7, 0xCC, 0x86, 0xCA, 0x05, 0x69, 0xCC, + 0x88, 0xCC, 0x81, 0xCA, 0x05, 0x6C, 0xCC, 0xA3, + 0xCC, 0x84, 0xCA, 0x05, 0x6F, 0xCC, 0x82, 0xCC, + 0x80, 0xCA, 0x05, 0x6F, 0xCC, 0x82, 0xCC, 0x81, + 0xCA, 0x05, 0x6F, 0xCC, 0x82, 0xCC, 0x83, 0xCA, + // Bytes 3ac0 - 3aff + 0x05, 0x6F, 0xCC, 0x82, 0xCC, 0x89, 0xCA, 0x05, + 0x6F, 0xCC, 0x83, 0xCC, 0x81, 0xCA, 0x05, 0x6F, + 0xCC, 0x83, 0xCC, 0x84, 0xCA, 0x05, 0x6F, 0xCC, + 0x83, 0xCC, 0x88, 0xCA, 0x05, 0x6F, 0xCC, 0x84, + 0xCC, 0x80, 0xCA, 0x05, 0x6F, 0xCC, 0x84, 0xCC, + 0x81, 0xCA, 0x05, 0x6F, 0xCC, 0x87, 0xCC, 0x84, + 0xCA, 0x05, 0x6F, 0xCC, 0x88, 0xCC, 0x84, 0xCA, + 0x05, 0x6F, 0xCC, 0x9B, 0xCC, 0x80, 0xCA, 0x05, + // Bytes 3b00 - 3b3f + 0x6F, 0xCC, 0x9B, 0xCC, 0x81, 0xCA, 0x05, 0x6F, + 0xCC, 0x9B, 0xCC, 0x83, 0xCA, 0x05, 0x6F, 0xCC, + 0x9B, 0xCC, 0x89, 0xCA, 0x05, 0x6F, 0xCC, 0x9B, + 0xCC, 0xA3, 0xB6, 0x05, 0x6F, 0xCC, 0xA3, 0xCC, + 0x82, 0xCA, 0x05, 0x6F, 0xCC, 0xA8, 0xCC, 0x84, + 0xCA, 0x05, 0x72, 0xCC, 0xA3, 0xCC, 0x84, 0xCA, + 0x05, 0x73, 0xCC, 0x81, 0xCC, 0x87, 0xCA, 0x05, + 0x73, 0xCC, 0x8C, 0xCC, 0x87, 0xCA, 0x05, 0x73, + // Bytes 3b40 - 3b7f + 0xCC, 0xA3, 0xCC, 0x87, 0xCA, 0x05, 0x75, 0xCC, + 0x83, 0xCC, 0x81, 0xCA, 0x05, 0x75, 0xCC, 0x84, + 0xCC, 0x88, 0xCA, 0x05, 0x75, 0xCC, 0x88, 0xCC, + 0x80, 0xCA, 0x05, 0x75, 0xCC, 0x88, 0xCC, 0x81, + 0xCA, 0x05, 0x75, 0xCC, 0x88, 0xCC, 0x84, 0xCA, + 0x05, 0x75, 0xCC, 0x88, 0xCC, 0x8C, 0xCA, 0x05, + 0x75, 0xCC, 0x9B, 0xCC, 0x80, 0xCA, 0x05, 0x75, + 0xCC, 0x9B, 0xCC, 0x81, 0xCA, 0x05, 0x75, 0xCC, + // Bytes 3b80 - 3bbf + 0x9B, 0xCC, 0x83, 0xCA, 0x05, 0x75, 0xCC, 0x9B, + 0xCC, 0x89, 0xCA, 0x05, 0x75, 0xCC, 0x9B, 0xCC, + 0xA3, 0xB6, 0x05, 0xE1, 0xBE, 0xBF, 0xCC, 0x80, + 0xCA, 0x05, 0xE1, 0xBE, 0xBF, 0xCC, 0x81, 0xCA, + 0x05, 0xE1, 0xBE, 0xBF, 0xCD, 0x82, 0xCA, 0x05, + 0xE1, 0xBF, 0xBE, 0xCC, 0x80, 0xCA, 0x05, 0xE1, + 0xBF, 0xBE, 0xCC, 0x81, 0xCA, 0x05, 0xE1, 0xBF, + 0xBE, 0xCD, 0x82, 0xCA, 0x05, 0xE2, 0x86, 0x90, + // Bytes 3bc0 - 3bff + 0xCC, 0xB8, 0x05, 0x05, 0xE2, 0x86, 0x92, 0xCC, + 0xB8, 0x05, 0x05, 0xE2, 0x86, 0x94, 0xCC, 0xB8, + 0x05, 0x05, 0xE2, 0x87, 0x90, 0xCC, 0xB8, 0x05, + 0x05, 0xE2, 0x87, 0x92, 0xCC, 0xB8, 0x05, 0x05, + 0xE2, 0x87, 0x94, 0xCC, 0xB8, 0x05, 0x05, 0xE2, + 0x88, 0x83, 0xCC, 0xB8, 0x05, 0x05, 0xE2, 0x88, + 0x88, 0xCC, 0xB8, 0x05, 0x05, 0xE2, 0x88, 0x8B, + 0xCC, 0xB8, 0x05, 0x05, 0xE2, 0x88, 0xA3, 0xCC, + // Bytes 3c00 - 3c3f + 0xB8, 0x05, 0x05, 0xE2, 0x88, 0xA5, 0xCC, 0xB8, + 0x05, 0x05, 0xE2, 0x88, 0xBC, 0xCC, 0xB8, 0x05, + 0x05, 0xE2, 0x89, 0x83, 0xCC, 0xB8, 0x05, 0x05, + 0xE2, 0x89, 0x85, 0xCC, 0xB8, 0x05, 0x05, 0xE2, + 0x89, 0x88, 0xCC, 0xB8, 0x05, 0x05, 0xE2, 0x89, + 0x8D, 0xCC, 0xB8, 0x05, 0x05, 0xE2, 0x89, 0xA1, + 0xCC, 0xB8, 0x05, 0x05, 0xE2, 0x89, 0xA4, 0xCC, + 0xB8, 0x05, 0x05, 0xE2, 0x89, 0xA5, 0xCC, 0xB8, + // Bytes 3c40 - 3c7f + 0x05, 0x05, 0xE2, 0x89, 0xB2, 0xCC, 0xB8, 0x05, + 0x05, 0xE2, 0x89, 0xB3, 0xCC, 0xB8, 0x05, 0x05, + 0xE2, 0x89, 0xB6, 0xCC, 0xB8, 0x05, 0x05, 0xE2, + 0x89, 0xB7, 0xCC, 0xB8, 0x05, 0x05, 0xE2, 0x89, + 0xBA, 0xCC, 0xB8, 0x05, 0x05, 0xE2, 0x89, 0xBB, + 0xCC, 0xB8, 0x05, 0x05, 0xE2, 0x89, 0xBC, 0xCC, + 0xB8, 0x05, 0x05, 0xE2, 0x89, 0xBD, 0xCC, 0xB8, + 0x05, 0x05, 0xE2, 0x8A, 0x82, 0xCC, 0xB8, 0x05, + // Bytes 3c80 - 3cbf + 0x05, 0xE2, 0x8A, 0x83, 0xCC, 0xB8, 0x05, 0x05, + 0xE2, 0x8A, 0x86, 0xCC, 0xB8, 0x05, 0x05, 0xE2, + 0x8A, 0x87, 0xCC, 0xB8, 0x05, 0x05, 0xE2, 0x8A, + 0x91, 0xCC, 0xB8, 0x05, 0x05, 0xE2, 0x8A, 0x92, + 0xCC, 0xB8, 0x05, 0x05, 0xE2, 0x8A, 0xA2, 0xCC, + 0xB8, 0x05, 0x05, 0xE2, 0x8A, 0xA8, 0xCC, 0xB8, + 0x05, 0x05, 0xE2, 0x8A, 0xA9, 0xCC, 0xB8, 0x05, + 0x05, 0xE2, 0x8A, 0xAB, 0xCC, 0xB8, 0x05, 0x05, + // Bytes 3cc0 - 3cff + 0xE2, 0x8A, 0xB2, 0xCC, 0xB8, 0x05, 0x05, 0xE2, + 0x8A, 0xB3, 0xCC, 0xB8, 0x05, 0x05, 0xE2, 0x8A, + 0xB4, 0xCC, 0xB8, 0x05, 0x05, 0xE2, 0x8A, 0xB5, + 0xCC, 0xB8, 0x05, 0x06, 0xCE, 0x91, 0xCC, 0x93, + 0xCD, 0x85, 0xDA, 0x06, 0xCE, 0x91, 0xCC, 0x94, + 0xCD, 0x85, 0xDA, 0x06, 0xCE, 0x95, 0xCC, 0x93, + 0xCC, 0x80, 0xCA, 0x06, 0xCE, 0x95, 0xCC, 0x93, + 0xCC, 0x81, 0xCA, 0x06, 0xCE, 0x95, 0xCC, 0x94, + // Bytes 3d00 - 3d3f + 0xCC, 0x80, 0xCA, 0x06, 0xCE, 0x95, 0xCC, 0x94, + 0xCC, 0x81, 0xCA, 0x06, 0xCE, 0x97, 0xCC, 0x93, + 0xCD, 0x85, 0xDA, 0x06, 0xCE, 0x97, 0xCC, 0x94, + 0xCD, 0x85, 0xDA, 0x06, 0xCE, 0x99, 0xCC, 0x93, + 0xCC, 0x80, 0xCA, 0x06, 0xCE, 0x99, 0xCC, 0x93, + 0xCC, 0x81, 0xCA, 0x06, 0xCE, 0x99, 0xCC, 0x93, + 0xCD, 0x82, 0xCA, 0x06, 0xCE, 0x99, 0xCC, 0x94, + 0xCC, 0x80, 0xCA, 0x06, 0xCE, 0x99, 0xCC, 0x94, + // Bytes 3d40 - 3d7f + 0xCC, 0x81, 0xCA, 0x06, 0xCE, 0x99, 0xCC, 0x94, + 0xCD, 0x82, 0xCA, 0x06, 0xCE, 0x9F, 0xCC, 0x93, + 0xCC, 0x80, 0xCA, 0x06, 0xCE, 0x9F, 0xCC, 0x93, + 0xCC, 0x81, 0xCA, 0x06, 0xCE, 0x9F, 0xCC, 0x94, + 0xCC, 0x80, 0xCA, 0x06, 0xCE, 0x9F, 0xCC, 0x94, + 0xCC, 0x81, 0xCA, 0x06, 0xCE, 0xA5, 0xCC, 0x94, + 0xCC, 0x80, 0xCA, 0x06, 0xCE, 0xA5, 0xCC, 0x94, + 0xCC, 0x81, 0xCA, 0x06, 0xCE, 0xA5, 0xCC, 0x94, + // Bytes 3d80 - 3dbf + 0xCD, 0x82, 0xCA, 0x06, 0xCE, 0xA9, 0xCC, 0x93, + 0xCD, 0x85, 0xDA, 0x06, 0xCE, 0xA9, 0xCC, 0x94, + 0xCD, 0x85, 0xDA, 0x06, 0xCE, 0xB1, 0xCC, 0x80, + 0xCD, 0x85, 0xDA, 0x06, 0xCE, 0xB1, 0xCC, 0x81, + 0xCD, 0x85, 0xDA, 0x06, 0xCE, 0xB1, 0xCC, 0x93, + 0xCD, 0x85, 0xDA, 0x06, 0xCE, 0xB1, 0xCC, 0x94, + 0xCD, 0x85, 0xDA, 0x06, 0xCE, 0xB1, 0xCD, 0x82, + 0xCD, 0x85, 0xDA, 0x06, 0xCE, 0xB5, 0xCC, 0x93, + // Bytes 3dc0 - 3dff + 0xCC, 0x80, 0xCA, 0x06, 0xCE, 0xB5, 0xCC, 0x93, + 0xCC, 0x81, 0xCA, 0x06, 0xCE, 0xB5, 0xCC, 0x94, + 0xCC, 0x80, 0xCA, 0x06, 0xCE, 0xB5, 0xCC, 0x94, + 0xCC, 0x81, 0xCA, 0x06, 0xCE, 0xB7, 0xCC, 0x80, + 0xCD, 0x85, 0xDA, 0x06, 0xCE, 0xB7, 0xCC, 0x81, + 0xCD, 0x85, 0xDA, 0x06, 0xCE, 0xB7, 0xCC, 0x93, + 0xCD, 0x85, 0xDA, 0x06, 0xCE, 0xB7, 0xCC, 0x94, + 0xCD, 0x85, 0xDA, 0x06, 0xCE, 0xB7, 0xCD, 0x82, + // Bytes 3e00 - 3e3f + 0xCD, 0x85, 0xDA, 0x06, 0xCE, 0xB9, 0xCC, 0x88, + 0xCC, 0x80, 0xCA, 0x06, 0xCE, 0xB9, 0xCC, 0x88, + 0xCC, 0x81, 0xCA, 0x06, 0xCE, 0xB9, 0xCC, 0x88, + 0xCD, 0x82, 0xCA, 0x06, 0xCE, 0xB9, 0xCC, 0x93, + 0xCC, 0x80, 0xCA, 0x06, 0xCE, 0xB9, 0xCC, 0x93, + 0xCC, 0x81, 0xCA, 0x06, 0xCE, 0xB9, 0xCC, 0x93, + 0xCD, 0x82, 0xCA, 0x06, 0xCE, 0xB9, 0xCC, 0x94, + 0xCC, 0x80, 0xCA, 0x06, 0xCE, 0xB9, 0xCC, 0x94, + // Bytes 3e40 - 3e7f + 0xCC, 0x81, 0xCA, 0x06, 0xCE, 0xB9, 0xCC, 0x94, + 0xCD, 0x82, 0xCA, 0x06, 0xCE, 0xBF, 0xCC, 0x93, + 0xCC, 0x80, 0xCA, 0x06, 0xCE, 0xBF, 0xCC, 0x93, + 0xCC, 0x81, 0xCA, 0x06, 0xCE, 0xBF, 0xCC, 0x94, + 0xCC, 0x80, 0xCA, 0x06, 0xCE, 0xBF, 0xCC, 0x94, + 0xCC, 0x81, 0xCA, 0x06, 0xCF, 0x85, 0xCC, 0x88, + 0xCC, 0x80, 0xCA, 0x06, 0xCF, 0x85, 0xCC, 0x88, + 0xCC, 0x81, 0xCA, 0x06, 0xCF, 0x85, 0xCC, 0x88, + // Bytes 3e80 - 3ebf + 0xCD, 0x82, 0xCA, 0x06, 0xCF, 0x85, 0xCC, 0x93, + 0xCC, 0x80, 0xCA, 0x06, 0xCF, 0x85, 0xCC, 0x93, + 0xCC, 0x81, 0xCA, 0x06, 0xCF, 0x85, 0xCC, 0x93, + 0xCD, 0x82, 0xCA, 0x06, 0xCF, 0x85, 0xCC, 0x94, + 0xCC, 0x80, 0xCA, 0x06, 0xCF, 0x85, 0xCC, 0x94, + 0xCC, 0x81, 0xCA, 0x06, 0xCF, 0x85, 0xCC, 0x94, + 0xCD, 0x82, 0xCA, 0x06, 0xCF, 0x89, 0xCC, 0x80, + 0xCD, 0x85, 0xDA, 0x06, 0xCF, 0x89, 0xCC, 0x81, + // Bytes 3ec0 - 3eff + 0xCD, 0x85, 0xDA, 0x06, 0xCF, 0x89, 0xCC, 0x93, + 0xCD, 0x85, 0xDA, 0x06, 0xCF, 0x89, 0xCC, 0x94, + 0xCD, 0x85, 0xDA, 0x06, 0xCF, 0x89, 0xCD, 0x82, + 0xCD, 0x85, 0xDA, 0x06, 0xE0, 0xA4, 0xA8, 0xE0, + 0xA4, 0xBC, 0x09, 0x06, 0xE0, 0xA4, 0xB0, 0xE0, + 0xA4, 0xBC, 0x09, 0x06, 0xE0, 0xA4, 0xB3, 0xE0, + 0xA4, 0xBC, 0x09, 0x06, 0xE0, 0xB1, 0x86, 0xE0, + 0xB1, 0x96, 0x85, 0x06, 0xE0, 0xB7, 0x99, 0xE0, + // Bytes 3f00 - 3f3f + 0xB7, 0x8A, 0x11, 0x06, 0xE3, 0x81, 0x86, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0x8B, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0x8D, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0x8F, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0x91, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0x93, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0x95, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0x97, 0xE3, + // Bytes 3f40 - 3f7f + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0x99, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0x9B, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0x9D, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0x9F, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0xA1, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0xA4, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0xA6, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0xA8, 0xE3, + // Bytes 3f80 - 3fbf + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0xAF, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0xAF, 0xE3, + 0x82, 0x9A, 0x0D, 0x06, 0xE3, 0x81, 0xB2, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0xB2, 0xE3, + 0x82, 0x9A, 0x0D, 0x06, 0xE3, 0x81, 0xB5, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0xB5, 0xE3, + 0x82, 0x9A, 0x0D, 0x06, 0xE3, 0x81, 0xB8, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0xB8, 0xE3, + // Bytes 3fc0 - 3fff + 0x82, 0x9A, 0x0D, 0x06, 0xE3, 0x81, 0xBB, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x81, 0xBB, 0xE3, + 0x82, 0x9A, 0x0D, 0x06, 0xE3, 0x82, 0x9D, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x82, 0xA6, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x82, 0xAB, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x82, 0xAD, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x82, 0xAF, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x82, 0xB1, 0xE3, + // Bytes 4000 - 403f + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x82, 0xB3, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x82, 0xB5, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x82, 0xB7, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x82, 0xB9, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x82, 0xBB, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x82, 0xBD, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x82, 0xBF, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x83, 0x81, 0xE3, + // Bytes 4040 - 407f + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x83, 0x84, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x83, 0x86, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x83, 0x88, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x83, 0x8F, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x83, 0x8F, 0xE3, + 0x82, 0x9A, 0x0D, 0x06, 0xE3, 0x83, 0x92, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x83, 0x92, 0xE3, + 0x82, 0x9A, 0x0D, 0x06, 0xE3, 0x83, 0x95, 0xE3, + // Bytes 4080 - 40bf + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x83, 0x95, 0xE3, + 0x82, 0x9A, 0x0D, 0x06, 0xE3, 0x83, 0x98, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x83, 0x98, 0xE3, + 0x82, 0x9A, 0x0D, 0x06, 0xE3, 0x83, 0x9B, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x83, 0x9B, 0xE3, + 0x82, 0x9A, 0x0D, 0x06, 0xE3, 0x83, 0xAF, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x83, 0xB0, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x83, 0xB1, 0xE3, + // Bytes 40c0 - 40ff + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x83, 0xB2, 0xE3, + 0x82, 0x99, 0x0D, 0x06, 0xE3, 0x83, 0xBD, 0xE3, + 0x82, 0x99, 0x0D, 0x08, 0xCE, 0x91, 0xCC, 0x93, + 0xCC, 0x80, 0xCD, 0x85, 0xDB, 0x08, 0xCE, 0x91, + 0xCC, 0x93, 0xCC, 0x81, 0xCD, 0x85, 0xDB, 0x08, + 0xCE, 0x91, 0xCC, 0x93, 0xCD, 0x82, 0xCD, 0x85, + 0xDB, 0x08, 0xCE, 0x91, 0xCC, 0x94, 0xCC, 0x80, + 0xCD, 0x85, 0xDB, 0x08, 0xCE, 0x91, 0xCC, 0x94, + // Bytes 4100 - 413f + 0xCC, 0x81, 0xCD, 0x85, 0xDB, 0x08, 0xCE, 0x91, + 0xCC, 0x94, 0xCD, 0x82, 0xCD, 0x85, 0xDB, 0x08, + 0xCE, 0x97, 0xCC, 0x93, 0xCC, 0x80, 0xCD, 0x85, + 0xDB, 0x08, 0xCE, 0x97, 0xCC, 0x93, 0xCC, 0x81, + 0xCD, 0x85, 0xDB, 0x08, 0xCE, 0x97, 0xCC, 0x93, + 0xCD, 0x82, 0xCD, 0x85, 0xDB, 0x08, 0xCE, 0x97, + 0xCC, 0x94, 0xCC, 0x80, 0xCD, 0x85, 0xDB, 0x08, + 0xCE, 0x97, 0xCC, 0x94, 0xCC, 0x81, 0xCD, 0x85, + // Bytes 4140 - 417f + 0xDB, 0x08, 0xCE, 0x97, 0xCC, 0x94, 0xCD, 0x82, + 0xCD, 0x85, 0xDB, 0x08, 0xCE, 0xA9, 0xCC, 0x93, + 0xCC, 0x80, 0xCD, 0x85, 0xDB, 0x08, 0xCE, 0xA9, + 0xCC, 0x93, 0xCC, 0x81, 0xCD, 0x85, 0xDB, 0x08, + 0xCE, 0xA9, 0xCC, 0x93, 0xCD, 0x82, 0xCD, 0x85, + 0xDB, 0x08, 0xCE, 0xA9, 0xCC, 0x94, 0xCC, 0x80, + 0xCD, 0x85, 0xDB, 0x08, 0xCE, 0xA9, 0xCC, 0x94, + 0xCC, 0x81, 0xCD, 0x85, 0xDB, 0x08, 0xCE, 0xA9, + // Bytes 4180 - 41bf + 0xCC, 0x94, 0xCD, 0x82, 0xCD, 0x85, 0xDB, 0x08, + 0xCE, 0xB1, 0xCC, 0x93, 0xCC, 0x80, 0xCD, 0x85, + 0xDB, 0x08, 0xCE, 0xB1, 0xCC, 0x93, 0xCC, 0x81, + 0xCD, 0x85, 0xDB, 0x08, 0xCE, 0xB1, 0xCC, 0x93, + 0xCD, 0x82, 0xCD, 0x85, 0xDB, 0x08, 0xCE, 0xB1, + 0xCC, 0x94, 0xCC, 0x80, 0xCD, 0x85, 0xDB, 0x08, + 0xCE, 0xB1, 0xCC, 0x94, 0xCC, 0x81, 0xCD, 0x85, + 0xDB, 0x08, 0xCE, 0xB1, 0xCC, 0x94, 0xCD, 0x82, + // Bytes 41c0 - 41ff + 0xCD, 0x85, 0xDB, 0x08, 0xCE, 0xB7, 0xCC, 0x93, + 0xCC, 0x80, 0xCD, 0x85, 0xDB, 0x08, 0xCE, 0xB7, + 0xCC, 0x93, 0xCC, 0x81, 0xCD, 0x85, 0xDB, 0x08, + 0xCE, 0xB7, 0xCC, 0x93, 0xCD, 0x82, 0xCD, 0x85, + 0xDB, 0x08, 0xCE, 0xB7, 0xCC, 0x94, 0xCC, 0x80, + 0xCD, 0x85, 0xDB, 0x08, 0xCE, 0xB7, 0xCC, 0x94, + 0xCC, 0x81, 0xCD, 0x85, 0xDB, 0x08, 0xCE, 0xB7, + 0xCC, 0x94, 0xCD, 0x82, 0xCD, 0x85, 0xDB, 0x08, + // Bytes 4200 - 423f + 0xCF, 0x89, 0xCC, 0x93, 0xCC, 0x80, 0xCD, 0x85, + 0xDB, 0x08, 0xCF, 0x89, 0xCC, 0x93, 0xCC, 0x81, + 0xCD, 0x85, 0xDB, 0x08, 0xCF, 0x89, 0xCC, 0x93, + 0xCD, 0x82, 0xCD, 0x85, 0xDB, 0x08, 0xCF, 0x89, + 0xCC, 0x94, 0xCC, 0x80, 0xCD, 0x85, 0xDB, 0x08, + 0xCF, 0x89, 0xCC, 0x94, 0xCC, 0x81, 0xCD, 0x85, + 0xDB, 0x08, 0xCF, 0x89, 0xCC, 0x94, 0xCD, 0x82, + 0xCD, 0x85, 0xDB, 0x08, 0xF0, 0x91, 0x82, 0x99, + // Bytes 4240 - 427f + 0xF0, 0x91, 0x82, 0xBA, 0x09, 0x08, 0xF0, 0x91, + 0x82, 0x9B, 0xF0, 0x91, 0x82, 0xBA, 0x09, 0x08, + 0xF0, 0x91, 0x82, 0xA5, 0xF0, 0x91, 0x82, 0xBA, + 0x09, 0x42, 0xC2, 0xB4, 0x01, 0x43, 0x20, 0xCC, + 0x81, 0xC9, 0x43, 0x20, 0xCC, 0x83, 0xC9, 0x43, + 0x20, 0xCC, 0x84, 0xC9, 0x43, 0x20, 0xCC, 0x85, + 0xC9, 0x43, 0x20, 0xCC, 0x86, 0xC9, 0x43, 0x20, + 0xCC, 0x87, 0xC9, 0x43, 0x20, 0xCC, 0x88, 0xC9, + // Bytes 4280 - 42bf + 0x43, 0x20, 0xCC, 0x8A, 0xC9, 0x43, 0x20, 0xCC, + 0x8B, 0xC9, 0x43, 0x20, 0xCC, 0x93, 0xC9, 0x43, + 0x20, 0xCC, 0x94, 0xC9, 0x43, 0x20, 0xCC, 0xA7, + 0xA5, 0x43, 0x20, 0xCC, 0xA8, 0xA5, 0x43, 0x20, + 0xCC, 0xB3, 0xB5, 0x43, 0x20, 0xCD, 0x82, 0xC9, + 0x43, 0x20, 0xCD, 0x85, 0xD9, 0x43, 0x20, 0xD9, + 0x8B, 0x59, 0x43, 0x20, 0xD9, 0x8C, 0x5D, 0x43, + 0x20, 0xD9, 0x8D, 0x61, 0x43, 0x20, 0xD9, 0x8E, + // Bytes 42c0 - 42ff + 0x65, 0x43, 0x20, 0xD9, 0x8F, 0x69, 0x43, 0x20, + 0xD9, 0x90, 0x6D, 0x43, 0x20, 0xD9, 0x91, 0x71, + 0x43, 0x20, 0xD9, 0x92, 0x75, 0x43, 0x41, 0xCC, + 0x8A, 0xC9, 0x43, 0x73, 0xCC, 0x87, 0xC9, 0x44, + 0x20, 0xE3, 0x82, 0x99, 0x0D, 0x44, 0x20, 0xE3, + 0x82, 0x9A, 0x0D, 0x44, 0xC2, 0xA8, 0xCC, 0x81, + 0xCA, 0x44, 0xCE, 0x91, 0xCC, 0x81, 0xC9, 0x44, + 0xCE, 0x95, 0xCC, 0x81, 0xC9, 0x44, 0xCE, 0x97, + // Bytes 4300 - 433f + 0xCC, 0x81, 0xC9, 0x44, 0xCE, 0x99, 0xCC, 0x81, + 0xC9, 0x44, 0xCE, 0x9F, 0xCC, 0x81, 0xC9, 0x44, + 0xCE, 0xA5, 0xCC, 0x81, 0xC9, 0x44, 0xCE, 0xA5, + 0xCC, 0x88, 0xC9, 0x44, 0xCE, 0xA9, 0xCC, 0x81, + 0xC9, 0x44, 0xCE, 0xB1, 0xCC, 0x81, 0xC9, 0x44, + 0xCE, 0xB5, 0xCC, 0x81, 0xC9, 0x44, 0xCE, 0xB7, + 0xCC, 0x81, 0xC9, 0x44, 0xCE, 0xB9, 0xCC, 0x81, + 0xC9, 0x44, 0xCE, 0xBF, 0xCC, 0x81, 0xC9, 0x44, + // Bytes 4340 - 437f + 0xCF, 0x85, 0xCC, 0x81, 0xC9, 0x44, 0xCF, 0x89, + 0xCC, 0x81, 0xC9, 0x44, 0xD7, 0x90, 0xD6, 0xB7, + 0x31, 0x44, 0xD7, 0x90, 0xD6, 0xB8, 0x35, 0x44, + 0xD7, 0x90, 0xD6, 0xBC, 0x41, 0x44, 0xD7, 0x91, + 0xD6, 0xBC, 0x41, 0x44, 0xD7, 0x91, 0xD6, 0xBF, + 0x49, 0x44, 0xD7, 0x92, 0xD6, 0xBC, 0x41, 0x44, + 0xD7, 0x93, 0xD6, 0xBC, 0x41, 0x44, 0xD7, 0x94, + 0xD6, 0xBC, 0x41, 0x44, 0xD7, 0x95, 0xD6, 0xB9, + // Bytes 4380 - 43bf + 0x39, 0x44, 0xD7, 0x95, 0xD6, 0xBC, 0x41, 0x44, + 0xD7, 0x96, 0xD6, 0xBC, 0x41, 0x44, 0xD7, 0x98, + 0xD6, 0xBC, 0x41, 0x44, 0xD7, 0x99, 0xD6, 0xB4, + 0x25, 0x44, 0xD7, 0x99, 0xD6, 0xBC, 0x41, 0x44, + 0xD7, 0x9A, 0xD6, 0xBC, 0x41, 0x44, 0xD7, 0x9B, + 0xD6, 0xBC, 0x41, 0x44, 0xD7, 0x9B, 0xD6, 0xBF, + 0x49, 0x44, 0xD7, 0x9C, 0xD6, 0xBC, 0x41, 0x44, + 0xD7, 0x9E, 0xD6, 0xBC, 0x41, 0x44, 0xD7, 0xA0, + // Bytes 43c0 - 43ff + 0xD6, 0xBC, 0x41, 0x44, 0xD7, 0xA1, 0xD6, 0xBC, + 0x41, 0x44, 0xD7, 0xA3, 0xD6, 0xBC, 0x41, 0x44, + 0xD7, 0xA4, 0xD6, 0xBC, 0x41, 0x44, 0xD7, 0xA4, + 0xD6, 0xBF, 0x49, 0x44, 0xD7, 0xA6, 0xD6, 0xBC, + 0x41, 0x44, 0xD7, 0xA7, 0xD6, 0xBC, 0x41, 0x44, + 0xD7, 0xA8, 0xD6, 0xBC, 0x41, 0x44, 0xD7, 0xA9, + 0xD6, 0xBC, 0x41, 0x44, 0xD7, 0xA9, 0xD7, 0x81, + 0x4D, 0x44, 0xD7, 0xA9, 0xD7, 0x82, 0x51, 0x44, + // Bytes 4400 - 443f + 0xD7, 0xAA, 0xD6, 0xBC, 0x41, 0x44, 0xD7, 0xB2, + 0xD6, 0xB7, 0x31, 0x44, 0xD8, 0xA7, 0xD9, 0x8B, + 0x59, 0x44, 0xD8, 0xA7, 0xD9, 0x93, 0xC9, 0x44, + 0xD8, 0xA7, 0xD9, 0x94, 0xC9, 0x44, 0xD8, 0xA7, + 0xD9, 0x95, 0xB5, 0x44, 0xD8, 0xB0, 0xD9, 0xB0, + 0x79, 0x44, 0xD8, 0xB1, 0xD9, 0xB0, 0x79, 0x44, + 0xD9, 0x80, 0xD9, 0x8B, 0x59, 0x44, 0xD9, 0x80, + 0xD9, 0x8E, 0x65, 0x44, 0xD9, 0x80, 0xD9, 0x8F, + // Bytes 4440 - 447f + 0x69, 0x44, 0xD9, 0x80, 0xD9, 0x90, 0x6D, 0x44, + 0xD9, 0x80, 0xD9, 0x91, 0x71, 0x44, 0xD9, 0x80, + 0xD9, 0x92, 0x75, 0x44, 0xD9, 0x87, 0xD9, 0xB0, + 0x79, 0x44, 0xD9, 0x88, 0xD9, 0x94, 0xC9, 0x44, + 0xD9, 0x89, 0xD9, 0xB0, 0x79, 0x44, 0xD9, 0x8A, + 0xD9, 0x94, 0xC9, 0x44, 0xDB, 0x92, 0xD9, 0x94, + 0xC9, 0x44, 0xDB, 0x95, 0xD9, 0x94, 0xC9, 0x45, + 0x20, 0xCC, 0x88, 0xCC, 0x80, 0xCA, 0x45, 0x20, + // Bytes 4480 - 44bf + 0xCC, 0x88, 0xCC, 0x81, 0xCA, 0x45, 0x20, 0xCC, + 0x88, 0xCD, 0x82, 0xCA, 0x45, 0x20, 0xCC, 0x93, + 0xCC, 0x80, 0xCA, 0x45, 0x20, 0xCC, 0x93, 0xCC, + 0x81, 0xCA, 0x45, 0x20, 0xCC, 0x93, 0xCD, 0x82, + 0xCA, 0x45, 0x20, 0xCC, 0x94, 0xCC, 0x80, 0xCA, + 0x45, 0x20, 0xCC, 0x94, 0xCC, 0x81, 0xCA, 0x45, + 0x20, 0xCC, 0x94, 0xCD, 0x82, 0xCA, 0x45, 0x20, + 0xD9, 0x8C, 0xD9, 0x91, 0x72, 0x45, 0x20, 0xD9, + // Bytes 44c0 - 44ff + 0x8D, 0xD9, 0x91, 0x72, 0x45, 0x20, 0xD9, 0x8E, + 0xD9, 0x91, 0x72, 0x45, 0x20, 0xD9, 0x8F, 0xD9, + 0x91, 0x72, 0x45, 0x20, 0xD9, 0x90, 0xD9, 0x91, + 0x72, 0x45, 0x20, 0xD9, 0x91, 0xD9, 0xB0, 0x7A, + 0x45, 0xE2, 0xAB, 0x9D, 0xCC, 0xB8, 0x05, 0x46, + 0xCE, 0xB9, 0xCC, 0x88, 0xCC, 0x81, 0xCA, 0x46, + 0xCF, 0x85, 0xCC, 0x88, 0xCC, 0x81, 0xCA, 0x46, + 0xD7, 0xA9, 0xD6, 0xBC, 0xD7, 0x81, 0x4E, 0x46, + // Bytes 4500 - 453f + 0xD7, 0xA9, 0xD6, 0xBC, 0xD7, 0x82, 0x52, 0x46, + 0xD9, 0x80, 0xD9, 0x8E, 0xD9, 0x91, 0x72, 0x46, + 0xD9, 0x80, 0xD9, 0x8F, 0xD9, 0x91, 0x72, 0x46, + 0xD9, 0x80, 0xD9, 0x90, 0xD9, 0x91, 0x72, 0x46, + 0xE0, 0xA4, 0x95, 0xE0, 0xA4, 0xBC, 0x09, 0x46, + 0xE0, 0xA4, 0x96, 0xE0, 0xA4, 0xBC, 0x09, 0x46, + 0xE0, 0xA4, 0x97, 0xE0, 0xA4, 0xBC, 0x09, 0x46, + 0xE0, 0xA4, 0x9C, 0xE0, 0xA4, 0xBC, 0x09, 0x46, + // Bytes 4540 - 457f + 0xE0, 0xA4, 0xA1, 0xE0, 0xA4, 0xBC, 0x09, 0x46, + 0xE0, 0xA4, 0xA2, 0xE0, 0xA4, 0xBC, 0x09, 0x46, + 0xE0, 0xA4, 0xAB, 0xE0, 0xA4, 0xBC, 0x09, 0x46, + 0xE0, 0xA4, 0xAF, 0xE0, 0xA4, 0xBC, 0x09, 0x46, + 0xE0, 0xA6, 0xA1, 0xE0, 0xA6, 0xBC, 0x09, 0x46, + 0xE0, 0xA6, 0xA2, 0xE0, 0xA6, 0xBC, 0x09, 0x46, + 0xE0, 0xA6, 0xAF, 0xE0, 0xA6, 0xBC, 0x09, 0x46, + 0xE0, 0xA8, 0x96, 0xE0, 0xA8, 0xBC, 0x09, 0x46, + // Bytes 4580 - 45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, 0xF0, 0x9D, 0x85, 0x98, 0xF0, 0x9D, + 0x85, 0xA5, 0xF0, 0x9D, 0x85, 0xB0, 0xAE, 0x4C, + 0xF0, 0x9D, 0x85, 0x98, 0xF0, 0x9D, 0x85, 0xA5, + // Bytes 4640 - 467f + 0xF0, 0x9D, 0x85, 0xB1, 0xAE, 0x4C, 0xF0, 0x9D, + 0x85, 0x98, 0xF0, 0x9D, 0x85, 0xA5, 0xF0, 0x9D, + 0x85, 0xB2, 0xAE, 0x4C, 0xF0, 0x9D, 0x86, 0xB9, + 0xF0, 0x9D, 0x85, 0xA5, 0xF0, 0x9D, 0x85, 0xAE, + 0xAE, 0x4C, 0xF0, 0x9D, 0x86, 0xB9, 0xF0, 0x9D, + 0x85, 0xA5, 0xF0, 0x9D, 0x85, 0xAF, 0xAE, 0x4C, + 0xF0, 0x9D, 0x86, 0xBA, 0xF0, 0x9D, 0x85, 0xA5, + 0xF0, 0x9D, 0x85, 0xAE, 0xAE, 0x4C, 0xF0, 0x9D, + // Bytes 4680 - 46bf + 0x86, 0xBA, 0xF0, 0x9D, 0x85, 0xA5, 0xF0, 0x9D, + 0x85, 0xAF, 0xAE, 0x83, 0x41, 0xCC, 0x82, 0xC9, + 0x83, 0x41, 0xCC, 0x86, 0xC9, 0x83, 0x41, 0xCC, + 0x87, 0xC9, 0x83, 0x41, 0xCC, 0x88, 0xC9, 0x83, + 0x41, 0xCC, 0x8A, 0xC9, 0x83, 0x41, 0xCC, 0xA3, + 0xB5, 0x83, 0x43, 0xCC, 0xA7, 0xA5, 0x83, 0x45, + 0xCC, 0x82, 0xC9, 0x83, 0x45, 0xCC, 0x84, 0xC9, + 0x83, 0x45, 0xCC, 0xA3, 0xB5, 0x83, 0x45, 0xCC, + // Bytes 46c0 - 46ff + 0xA7, 0xA5, 0x83, 0x49, 0xCC, 0x88, 0xC9, 0x83, + 0x4C, 0xCC, 0xA3, 0xB5, 0x83, 0x4F, 0xCC, 0x82, + 0xC9, 0x83, 0x4F, 0xCC, 0x83, 0xC9, 0x83, 0x4F, + 0xCC, 0x84, 0xC9, 0x83, 0x4F, 0xCC, 0x87, 0xC9, + 0x83, 0x4F, 0xCC, 0x88, 0xC9, 0x83, 0x4F, 0xCC, + 0x9B, 0xAD, 0x83, 0x4F, 0xCC, 0xA3, 0xB5, 0x83, + 0x4F, 0xCC, 0xA8, 0xA5, 0x83, 0x52, 0xCC, 0xA3, + 0xB5, 0x83, 0x53, 0xCC, 0x81, 0xC9, 0x83, 0x53, + // Bytes 4700 - 473f + 0xCC, 0x8C, 0xC9, 0x83, 0x53, 0xCC, 0xA3, 0xB5, + 0x83, 0x55, 0xCC, 0x83, 0xC9, 0x83, 0x55, 0xCC, + 0x84, 0xC9, 0x83, 0x55, 0xCC, 0x88, 0xC9, 0x83, + 0x55, 0xCC, 0x9B, 0xAD, 0x83, 0x61, 0xCC, 0x82, + 0xC9, 0x83, 0x61, 0xCC, 0x86, 0xC9, 0x83, 0x61, + 0xCC, 0x87, 0xC9, 0x83, 0x61, 0xCC, 0x88, 0xC9, + 0x83, 0x61, 0xCC, 0x8A, 0xC9, 0x83, 0x61, 0xCC, + 0xA3, 0xB5, 0x83, 0x63, 0xCC, 0xA7, 0xA5, 0x83, + // Bytes 4740 - 477f + 0x65, 0xCC, 0x82, 0xC9, 0x83, 0x65, 0xCC, 0x84, + 0xC9, 0x83, 0x65, 0xCC, 0xA3, 0xB5, 0x83, 0x65, + 0xCC, 0xA7, 0xA5, 0x83, 0x69, 0xCC, 0x88, 0xC9, + 0x83, 0x6C, 0xCC, 0xA3, 0xB5, 0x83, 0x6F, 0xCC, + 0x82, 0xC9, 0x83, 0x6F, 0xCC, 0x83, 0xC9, 0x83, + 0x6F, 0xCC, 0x84, 0xC9, 0x83, 0x6F, 0xCC, 0x87, + 0xC9, 0x83, 0x6F, 0xCC, 0x88, 0xC9, 0x83, 0x6F, + 0xCC, 0x9B, 0xAD, 0x83, 0x6F, 0xCC, 0xA3, 0xB5, + // Bytes 4780 - 47bf + 0x83, 0x6F, 0xCC, 0xA8, 0xA5, 0x83, 0x72, 0xCC, + 0xA3, 0xB5, 0x83, 0x73, 0xCC, 0x81, 0xC9, 0x83, + 0x73, 0xCC, 0x8C, 0xC9, 0x83, 0x73, 0xCC, 0xA3, + 0xB5, 0x83, 0x75, 0xCC, 0x83, 0xC9, 0x83, 0x75, + 0xCC, 0x84, 0xC9, 0x83, 0x75, 0xCC, 0x88, 0xC9, + 0x83, 0x75, 0xCC, 0x9B, 0xAD, 0x84, 0xCE, 0x91, + 0xCC, 0x93, 0xC9, 0x84, 0xCE, 0x91, 0xCC, 0x94, + 0xC9, 0x84, 0xCE, 0x95, 0xCC, 0x93, 0xC9, 0x84, + // Bytes 47c0 - 47ff + 0xCE, 0x95, 0xCC, 0x94, 0xC9, 0x84, 0xCE, 0x97, + 0xCC, 0x93, 0xC9, 0x84, 0xCE, 0x97, 0xCC, 0x94, + 0xC9, 0x84, 0xCE, 0x99, 0xCC, 0x93, 0xC9, 0x84, + 0xCE, 0x99, 0xCC, 0x94, 0xC9, 0x84, 0xCE, 0x9F, + 0xCC, 0x93, 0xC9, 0x84, 0xCE, 0x9F, 0xCC, 0x94, + 0xC9, 0x84, 0xCE, 0xA5, 0xCC, 0x94, 0xC9, 0x84, + 0xCE, 0xA9, 0xCC, 0x93, 0xC9, 0x84, 0xCE, 0xA9, + 0xCC, 0x94, 0xC9, 0x84, 0xCE, 0xB1, 0xCC, 0x80, + // Bytes 4800 - 483f + 0xC9, 0x84, 0xCE, 0xB1, 0xCC, 0x81, 0xC9, 0x84, + 0xCE, 0xB1, 0xCC, 0x93, 0xC9, 0x84, 0xCE, 0xB1, + 0xCC, 0x94, 0xC9, 0x84, 0xCE, 0xB1, 0xCD, 0x82, + 0xC9, 0x84, 0xCE, 0xB5, 0xCC, 0x93, 0xC9, 0x84, + 0xCE, 0xB5, 0xCC, 0x94, 0xC9, 0x84, 0xCE, 0xB7, + 0xCC, 0x80, 0xC9, 0x84, 0xCE, 0xB7, 0xCC, 0x81, + 0xC9, 0x84, 0xCE, 0xB7, 0xCC, 0x93, 0xC9, 0x84, + 0xCE, 0xB7, 0xCC, 0x94, 0xC9, 0x84, 0xCE, 0xB7, + // Bytes 4840 - 487f + 0xCD, 0x82, 0xC9, 0x84, 0xCE, 0xB9, 0xCC, 0x88, + 0xC9, 0x84, 0xCE, 0xB9, 0xCC, 0x93, 0xC9, 0x84, + 0xCE, 0xB9, 0xCC, 0x94, 0xC9, 0x84, 0xCE, 0xBF, + 0xCC, 0x93, 0xC9, 0x84, 0xCE, 0xBF, 0xCC, 0x94, + 0xC9, 0x84, 0xCF, 0x85, 0xCC, 0x88, 0xC9, 0x84, + 0xCF, 0x85, 0xCC, 0x93, 0xC9, 0x84, 0xCF, 0x85, + 0xCC, 0x94, 0xC9, 0x84, 0xCF, 0x89, 0xCC, 0x80, + 0xC9, 0x84, 0xCF, 0x89, 0xCC, 0x81, 0xC9, 0x84, + // Bytes 4880 - 48bf + 0xCF, 0x89, 0xCC, 0x93, 0xC9, 0x84, 0xCF, 0x89, + 0xCC, 0x94, 0xC9, 0x84, 0xCF, 0x89, 0xCD, 0x82, + 0xC9, 0x86, 0xCE, 0x91, 0xCC, 0x93, 0xCC, 0x80, + 0xCA, 0x86, 0xCE, 0x91, 0xCC, 0x93, 0xCC, 0x81, + 0xCA, 0x86, 0xCE, 0x91, 0xCC, 0x93, 0xCD, 0x82, + 0xCA, 0x86, 0xCE, 0x91, 0xCC, 0x94, 0xCC, 0x80, + 0xCA, 0x86, 0xCE, 0x91, 0xCC, 0x94, 0xCC, 0x81, + 0xCA, 0x86, 0xCE, 0x91, 0xCC, 0x94, 0xCD, 0x82, + // Bytes 48c0 - 48ff + 0xCA, 0x86, 0xCE, 0x97, 0xCC, 0x93, 0xCC, 0x80, + 0xCA, 0x86, 0xCE, 0x97, 0xCC, 0x93, 0xCC, 0x81, + 0xCA, 0x86, 0xCE, 0x97, 0xCC, 0x93, 0xCD, 0x82, + 0xCA, 0x86, 0xCE, 0x97, 0xCC, 0x94, 0xCC, 0x80, + 0xCA, 0x86, 0xCE, 0x97, 0xCC, 0x94, 0xCC, 0x81, + 0xCA, 0x86, 0xCE, 0x97, 0xCC, 0x94, 0xCD, 0x82, + 0xCA, 0x86, 0xCE, 0xA9, 0xCC, 0x93, 0xCC, 0x80, + 0xCA, 0x86, 0xCE, 0xA9, 0xCC, 0x93, 0xCC, 0x81, + // Bytes 4900 - 493f + 0xCA, 0x86, 0xCE, 0xA9, 0xCC, 0x93, 0xCD, 0x82, + 0xCA, 0x86, 0xCE, 0xA9, 0xCC, 0x94, 0xCC, 0x80, + 0xCA, 0x86, 0xCE, 0xA9, 0xCC, 0x94, 0xCC, 0x81, + 0xCA, 0x86, 0xCE, 0xA9, 0xCC, 0x94, 0xCD, 0x82, + 0xCA, 0x86, 0xCE, 0xB1, 0xCC, 0x93, 0xCC, 0x80, + 0xCA, 0x86, 0xCE, 0xB1, 0xCC, 0x93, 0xCC, 0x81, + 0xCA, 0x86, 0xCE, 0xB1, 0xCC, 0x93, 0xCD, 0x82, + 0xCA, 0x86, 0xCE, 0xB1, 0xCC, 0x94, 0xCC, 0x80, + // Bytes 4940 - 497f + 0xCA, 0x86, 0xCE, 0xB1, 0xCC, 0x94, 0xCC, 0x81, + 0xCA, 0x86, 0xCE, 0xB1, 0xCC, 0x94, 0xCD, 0x82, + 0xCA, 0x86, 0xCE, 0xB7, 0xCC, 0x93, 0xCC, 0x80, + 0xCA, 0x86, 0xCE, 0xB7, 0xCC, 0x93, 0xCC, 0x81, + 0xCA, 0x86, 0xCE, 0xB7, 0xCC, 0x93, 0xCD, 0x82, + 0xCA, 0x86, 0xCE, 0xB7, 0xCC, 0x94, 0xCC, 0x80, + 0xCA, 0x86, 0xCE, 0xB7, 0xCC, 0x94, 0xCC, 0x81, + 0xCA, 0x86, 0xCE, 0xB7, 0xCC, 0x94, 0xCD, 0x82, + // Bytes 4980 - 49bf + 0xCA, 0x86, 0xCF, 0x89, 0xCC, 0x93, 0xCC, 0x80, + 0xCA, 0x86, 0xCF, 0x89, 0xCC, 0x93, 0xCC, 0x81, + 0xCA, 0x86, 0xCF, 0x89, 0xCC, 0x93, 0xCD, 0x82, + 0xCA, 0x86, 0xCF, 0x89, 0xCC, 0x94, 0xCC, 0x80, + 0xCA, 0x86, 0xCF, 0x89, 0xCC, 0x94, 0xCC, 0x81, + 0xCA, 0x86, 0xCF, 0x89, 0xCC, 0x94, 0xCD, 0x82, + 0xCA, 0x42, 0xCC, 0x80, 0xC9, 0x32, 0x42, 0xCC, + 0x81, 0xC9, 0x32, 0x42, 0xCC, 0x93, 0xC9, 0x32, + // Bytes 49c0 - 49ff + 0x43, 0xE1, 0x85, 0xA1, 0x01, 0x00, 0x43, 0xE1, + 0x85, 0xA2, 0x01, 0x00, 0x43, 0xE1, 0x85, 0xA3, + 0x01, 0x00, 0x43, 0xE1, 0x85, 0xA4, 0x01, 0x00, + 0x43, 0xE1, 0x85, 0xA5, 0x01, 0x00, 0x43, 0xE1, + 0x85, 0xA6, 0x01, 0x00, 0x43, 0xE1, 0x85, 0xA7, + 0x01, 0x00, 0x43, 0xE1, 0x85, 0xA8, 0x01, 0x00, + 0x43, 0xE1, 0x85, 0xA9, 0x01, 0x00, 0x43, 0xE1, + 0x85, 0xAA, 0x01, 0x00, 0x43, 0xE1, 0x85, 0xAB, + // Bytes 4a00 - 4a3f + 0x01, 0x00, 0x43, 0xE1, 0x85, 0xAC, 0x01, 0x00, + 0x43, 0xE1, 0x85, 0xAD, 0x01, 0x00, 0x43, 0xE1, + 0x85, 0xAE, 0x01, 0x00, 0x43, 0xE1, 0x85, 0xAF, + 0x01, 0x00, 0x43, 0xE1, 0x85, 0xB0, 0x01, 0x00, + 0x43, 0xE1, 0x85, 0xB1, 0x01, 0x00, 0x43, 0xE1, + 0x85, 0xB2, 0x01, 0x00, 0x43, 0xE1, 0x85, 0xB3, + 0x01, 0x00, 0x43, 0xE1, 0x85, 0xB4, 0x01, 0x00, + 0x43, 0xE1, 0x85, 0xB5, 0x01, 0x00, 0x43, 0xE1, + // Bytes 4a40 - 4a7f + 0x86, 0xAA, 0x01, 0x00, 0x43, 0xE1, 0x86, 0xAC, + 0x01, 0x00, 0x43, 0xE1, 0x86, 0xAD, 0x01, 0x00, + 0x43, 0xE1, 0x86, 0xB0, 0x01, 0x00, 0x43, 0xE1, + 0x86, 0xB1, 0x01, 0x00, 0x43, 0xE1, 0x86, 0xB2, + 0x01, 0x00, 0x43, 0xE1, 0x86, 0xB3, 0x01, 0x00, + 0x43, 0xE1, 0x86, 0xB4, 0x01, 0x00, 0x43, 0xE1, + 0x86, 0xB5, 0x01, 0x00, 0x44, 0xCC, 0x88, 0xCC, + 0x81, 0xCA, 0x32, 0x43, 0xE3, 0x82, 0x99, 0x0D, + // Bytes 4a80 - 4abf + 0x03, 0x43, 0xE3, 0x82, 0x9A, 0x0D, 0x03, 0x46, + 0xE0, 0xBD, 0xB1, 0xE0, 0xBD, 0xB2, 0x9E, 0x26, + 0x46, 0xE0, 0xBD, 0xB1, 0xE0, 0xBD, 0xB4, 0xA2, + 0x26, 0x46, 0xE0, 0xBD, 0xB1, 0xE0, 0xBE, 0x80, + 0x9E, 0x26, 0x00, 0x01, +} + +// lookup returns the trie value for the first UTF-8 encoding in s and +// the width in bytes of this encoding. The size will be 0 if s does not +// hold enough bytes to complete the encoding. len(s) must be greater than 0. +func (t *nfcTrie) lookup(s []byte) (v uint16, sz int) { + c0 := s[0] + switch { + case c0 < 0x80: // is ASCII + return nfcValues[c0], 1 + case c0 < 0xC2: + return 0, 1 // Illegal UTF-8: not a starter, not ASCII. + case c0 < 0xE0: // 2-byte UTF-8 + if len(s) < 2 { + return 0, 0 + } + i := nfcIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c1), 2 + case c0 < 0xF0: // 3-byte UTF-8 + if len(s) < 3 { + return 0, 0 + } + i := nfcIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + o := uint32(i)<<6 + uint32(c1) + i = nfcIndex[o] + c2 := s[2] + if c2 < 0x80 || 0xC0 <= c2 { + return 0, 2 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c2), 3 + case c0 < 0xF8: // 4-byte UTF-8 + if len(s) < 4 { + return 0, 0 + } + i := nfcIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + o := uint32(i)<<6 + uint32(c1) + i = nfcIndex[o] + c2 := s[2] + if c2 < 0x80 || 0xC0 <= c2 { + return 0, 2 // Illegal UTF-8: not a continuation byte. + } + o = uint32(i)<<6 + uint32(c2) + i = nfcIndex[o] + c3 := s[3] + if c3 < 0x80 || 0xC0 <= c3 { + return 0, 3 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c3), 4 + } + // Illegal rune + return 0, 1 +} + +// lookupUnsafe returns the trie value for the first UTF-8 encoding in s. +// s must start with a full and valid UTF-8 encoded rune. +func (t *nfcTrie) lookupUnsafe(s []byte) uint16 { + c0 := s[0] + if c0 < 0x80 { // is ASCII + return nfcValues[c0] + } + i := nfcIndex[c0] + if c0 < 0xE0 { // 2-byte UTF-8 + return t.lookupValue(uint32(i), s[1]) + } + i = nfcIndex[uint32(i)<<6+uint32(s[1])] + if c0 < 0xF0 { // 3-byte UTF-8 + return t.lookupValue(uint32(i), s[2]) + } + i = nfcIndex[uint32(i)<<6+uint32(s[2])] + if c0 < 0xF8 { // 4-byte UTF-8 + return t.lookupValue(uint32(i), s[3]) + } + return 0 +} + +// lookupString returns the trie value for the first UTF-8 encoding in s and +// the width in bytes of this encoding. The size will be 0 if s does not +// hold enough bytes to complete the encoding. len(s) must be greater than 0. +func (t *nfcTrie) lookupString(s string) (v uint16, sz int) { + c0 := s[0] + switch { + case c0 < 0x80: // is ASCII + return nfcValues[c0], 1 + case c0 < 0xC2: + return 0, 1 // Illegal UTF-8: not a starter, not ASCII. + case c0 < 0xE0: // 2-byte UTF-8 + if len(s) < 2 { + return 0, 0 + } + i := nfcIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c1), 2 + case c0 < 0xF0: // 3-byte UTF-8 + if len(s) < 3 { + return 0, 0 + } + i := nfcIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + o := uint32(i)<<6 + uint32(c1) + i = nfcIndex[o] + c2 := s[2] + if c2 < 0x80 || 0xC0 <= c2 { + return 0, 2 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c2), 3 + case c0 < 0xF8: // 4-byte UTF-8 + if len(s) < 4 { + return 0, 0 + } + i := nfcIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + o := uint32(i)<<6 + uint32(c1) + i = nfcIndex[o] + c2 := s[2] + if c2 < 0x80 || 0xC0 <= c2 { + return 0, 2 // Illegal UTF-8: not a continuation byte. + } + o = uint32(i)<<6 + uint32(c2) + i = nfcIndex[o] + c3 := s[3] + if c3 < 0x80 || 0xC0 <= c3 { + return 0, 3 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c3), 4 + } + // Illegal rune + return 0, 1 +} + +// lookupStringUnsafe returns the trie value for the first UTF-8 encoding in s. +// s must start with a full and valid UTF-8 encoded rune. +func (t *nfcTrie) lookupStringUnsafe(s string) uint16 { + c0 := s[0] + if c0 < 0x80 { // is ASCII + return nfcValues[c0] + } + i := nfcIndex[c0] + if c0 < 0xE0 { // 2-byte UTF-8 + return t.lookupValue(uint32(i), s[1]) + } + i = nfcIndex[uint32(i)<<6+uint32(s[1])] + if c0 < 0xF0 { // 3-byte UTF-8 + return t.lookupValue(uint32(i), s[2]) + } + i = nfcIndex[uint32(i)<<6+uint32(s[2])] + if c0 < 0xF8 { // 4-byte UTF-8 + return t.lookupValue(uint32(i), s[3]) + } + return 0 +} + +// nfcTrie. Total size: 10610 bytes (10.36 KiB). Checksum: 95e8869a9f81e5e6. +type nfcTrie struct{} + +func newNfcTrie(i int) *nfcTrie { + return &nfcTrie{} +} + +// lookupValue determines the type of block n and looks up the value for b. +func (t *nfcTrie) lookupValue(n uint32, b byte) uint16 { + switch { + case n < 46: + return uint16(nfcValues[n<<6+uint32(b)]) + default: + n -= 46 + return uint16(nfcSparse.lookup(n, b)) + } +} + +// nfcValues: 48 blocks, 3072 entries, 6144 bytes +// The third block is the zero block. +var nfcValues = [3072]uint16{ + // Block 0x0, offset 0x0 + 0x3c: 0xa000, 0x3d: 0xa000, 0x3e: 0xa000, + // Block 0x1, offset 0x40 + 0x41: 0xa000, 0x42: 0xa000, 0x43: 0xa000, 0x44: 0xa000, 0x45: 0xa000, + 0x46: 0xa000, 0x47: 0xa000, 0x48: 0xa000, 0x49: 0xa000, 0x4a: 0xa000, 0x4b: 0xa000, + 0x4c: 0xa000, 0x4d: 0xa000, 0x4e: 0xa000, 0x4f: 0xa000, 0x50: 0xa000, + 0x52: 0xa000, 0x53: 0xa000, 0x54: 0xa000, 0x55: 0xa000, 0x56: 0xa000, 0x57: 0xa000, + 0x58: 0xa000, 0x59: 0xa000, 0x5a: 0xa000, + 0x61: 0xa000, 0x62: 0xa000, 0x63: 0xa000, + 0x64: 0xa000, 0x65: 0xa000, 0x66: 0xa000, 0x67: 0xa000, 0x68: 0xa000, 0x69: 0xa000, + 0x6a: 0xa000, 0x6b: 0xa000, 0x6c: 0xa000, 0x6d: 0xa000, 0x6e: 0xa000, 0x6f: 0xa000, + 0x70: 0xa000, 0x72: 0xa000, 0x73: 0xa000, 0x74: 0xa000, 0x75: 0xa000, + 0x76: 0xa000, 0x77: 0xa000, 0x78: 0xa000, 0x79: 0xa000, 0x7a: 0xa000, + // Block 0x2, offset 0x80 + // Block 0x3, offset 0xc0 + 0xc0: 0x2f72, 0xc1: 0x2f77, 0xc2: 0x468b, 0xc3: 0x2f7c, 0xc4: 0x469a, 0xc5: 0x469f, + 0xc6: 0xa000, 0xc7: 0x46a9, 0xc8: 0x2fe5, 0xc9: 0x2fea, 0xca: 0x46ae, 0xcb: 0x2ffe, + 0xcc: 0x3071, 0xcd: 0x3076, 0xce: 0x307b, 0xcf: 0x46c2, 0xd1: 0x3107, + 0xd2: 0x312a, 0xd3: 0x312f, 0xd4: 0x46cc, 0xd5: 0x46d1, 0xd6: 0x46e0, + 0xd8: 0xa000, 0xd9: 0x31b6, 0xda: 0x31bb, 0xdb: 0x31c0, 0xdc: 0x4712, 0xdd: 0x3238, + 0xe0: 0x327e, 0xe1: 0x3283, 0xe2: 0x471c, 0xe3: 0x3288, + 0xe4: 0x472b, 0xe5: 0x4730, 0xe6: 0xa000, 0xe7: 0x473a, 0xe8: 0x32f1, 0xe9: 0x32f6, + 0xea: 0x473f, 0xeb: 0x330a, 0xec: 0x3382, 0xed: 0x3387, 0xee: 0x338c, 0xef: 0x4753, + 0xf1: 0x3418, 0xf2: 0x343b, 0xf3: 0x3440, 0xf4: 0x475d, 0xf5: 0x4762, + 0xf6: 0x4771, 0xf8: 0xa000, 0xf9: 0x34cc, 0xfa: 0x34d1, 0xfb: 0x34d6, + 0xfc: 0x47a3, 0xfd: 0x3553, 0xff: 0x356c, + // Block 0x4, offset 0x100 + 0x100: 0x2f81, 0x101: 0x328d, 0x102: 0x4690, 0x103: 0x4721, 0x104: 0x2f9f, 0x105: 0x32ab, + 0x106: 0x2fb3, 0x107: 0x32bf, 0x108: 0x2fb8, 0x109: 0x32c4, 0x10a: 0x2fbd, 0x10b: 0x32c9, + 0x10c: 0x2fc2, 0x10d: 0x32ce, 0x10e: 0x2fcc, 0x10f: 0x32d8, + 0x112: 0x46b3, 0x113: 0x4744, 0x114: 0x2ff4, 0x115: 0x3300, 0x116: 0x2ff9, 0x117: 0x3305, + 0x118: 0x3017, 0x119: 0x3323, 0x11a: 0x3008, 0x11b: 0x3314, 0x11c: 0x3030, 0x11d: 0x333c, + 0x11e: 0x303a, 0x11f: 0x3346, 0x120: 0x303f, 0x121: 0x334b, 0x122: 0x3049, 0x123: 0x3355, + 0x124: 0x304e, 0x125: 0x335a, 0x128: 0x3080, 0x129: 0x3391, + 0x12a: 0x3085, 0x12b: 0x3396, 0x12c: 0x308a, 0x12d: 0x339b, 0x12e: 0x30ad, 0x12f: 0x33b9, + 0x130: 0x308f, 0x134: 0x30b7, 0x135: 0x33c3, + 0x136: 0x30cb, 0x137: 0x33dc, 0x139: 0x30d5, 0x13a: 0x33e6, 0x13b: 0x30df, + 0x13c: 0x33f0, 0x13d: 0x30da, 0x13e: 0x33eb, + // Block 0x5, offset 0x140 + 0x143: 0x3102, 0x144: 0x3413, 0x145: 0x311b, + 0x146: 0x342c, 0x147: 0x3111, 0x148: 0x3422, + 0x14c: 0x46d6, 0x14d: 0x4767, 0x14e: 0x3134, 0x14f: 0x3445, 0x150: 0x313e, 0x151: 0x344f, + 0x154: 0x315c, 0x155: 0x346d, 0x156: 0x3175, 0x157: 0x3486, + 0x158: 0x3166, 0x159: 0x3477, 0x15a: 0x46f9, 0x15b: 0x478a, 0x15c: 0x317f, 0x15d: 0x3490, + 0x15e: 0x318e, 0x15f: 0x349f, 0x160: 0x46fe, 0x161: 0x478f, 0x162: 0x31a7, 0x163: 0x34bd, + 0x164: 0x3198, 0x165: 0x34ae, 0x168: 0x4708, 0x169: 0x4799, + 0x16a: 0x470d, 0x16b: 0x479e, 0x16c: 0x31c5, 0x16d: 0x34db, 0x16e: 0x31cf, 0x16f: 0x34e5, + 0x170: 0x31d4, 0x171: 0x34ea, 0x172: 0x31f2, 0x173: 0x3508, 0x174: 0x3215, 0x175: 0x352b, + 0x176: 0x323d, 0x177: 0x3558, 0x178: 0x3251, 0x179: 0x3260, 0x17a: 0x3580, 0x17b: 0x326a, + 0x17c: 0x358a, 0x17d: 0x326f, 0x17e: 0x358f, 0x17f: 0xa000, + // Block 0x6, offset 0x180 + 0x184: 0x8100, 0x185: 0x8100, + 0x186: 0x8100, + 0x18d: 0x2f8b, 0x18e: 0x3297, 0x18f: 0x3099, 0x190: 0x33a5, 0x191: 0x3143, + 0x192: 0x3454, 0x193: 0x31d9, 0x194: 0x34ef, 0x195: 0x39d2, 0x196: 0x3b61, 0x197: 0x39cb, + 0x198: 0x3b5a, 0x199: 0x39d9, 0x19a: 0x3b68, 0x19b: 0x39c4, 0x19c: 0x3b53, + 0x19e: 0x38b3, 0x19f: 0x3a42, 0x1a0: 0x38ac, 0x1a1: 0x3a3b, 0x1a2: 0x35b6, 0x1a3: 0x35c8, + 0x1a6: 0x3044, 0x1a7: 0x3350, 0x1a8: 0x30c1, 0x1a9: 0x33d2, + 0x1aa: 0x46ef, 0x1ab: 0x4780, 0x1ac: 0x3993, 0x1ad: 0x3b22, 0x1ae: 0x35da, 0x1af: 0x35e0, + 0x1b0: 0x33c8, 0x1b4: 0x302b, 0x1b5: 0x3337, + 0x1b8: 0x30fd, 0x1b9: 0x340e, 0x1ba: 0x38ba, 0x1bb: 0x3a49, + 0x1bc: 0x35b0, 0x1bd: 0x35c2, 0x1be: 0x35bc, 0x1bf: 0x35ce, + // Block 0x7, offset 0x1c0 + 0x1c0: 0x2f90, 0x1c1: 0x329c, 0x1c2: 0x2f95, 0x1c3: 0x32a1, 0x1c4: 0x300d, 0x1c5: 0x3319, + 0x1c6: 0x3012, 0x1c7: 0x331e, 0x1c8: 0x309e, 0x1c9: 0x33aa, 0x1ca: 0x30a3, 0x1cb: 0x33af, + 0x1cc: 0x3148, 0x1cd: 0x3459, 0x1ce: 0x314d, 0x1cf: 0x345e, 0x1d0: 0x316b, 0x1d1: 0x347c, + 0x1d2: 0x3170, 0x1d3: 0x3481, 0x1d4: 0x31de, 0x1d5: 0x34f4, 0x1d6: 0x31e3, 0x1d7: 0x34f9, + 0x1d8: 0x3189, 0x1d9: 0x349a, 0x1da: 0x31a2, 0x1db: 0x34b8, + 0x1de: 0x305d, 0x1df: 0x3369, + 0x1e6: 0x4695, 0x1e7: 0x4726, 0x1e8: 0x46bd, 0x1e9: 0x474e, + 0x1ea: 0x3962, 0x1eb: 0x3af1, 0x1ec: 0x393f, 0x1ed: 0x3ace, 0x1ee: 0x46db, 0x1ef: 0x476c, + 0x1f0: 0x395b, 0x1f1: 0x3aea, 0x1f2: 0x3247, 0x1f3: 0x3562, + // Block 0x8, offset 0x200 + 0x200: 0x9932, 0x201: 0x9932, 0x202: 0x9932, 0x203: 0x9932, 0x204: 0x9932, 0x205: 0x8132, + 0x206: 0x9932, 0x207: 0x9932, 0x208: 0x9932, 0x209: 0x9932, 0x20a: 0x9932, 0x20b: 0x9932, + 0x20c: 0x9932, 0x20d: 0x8132, 0x20e: 0x8132, 0x20f: 0x9932, 0x210: 0x8132, 0x211: 0x9932, + 0x212: 0x8132, 0x213: 0x9932, 0x214: 0x9932, 0x215: 0x8133, 0x216: 0x812d, 0x217: 0x812d, + 0x218: 0x812d, 0x219: 0x812d, 0x21a: 0x8133, 0x21b: 0x992b, 0x21c: 0x812d, 0x21d: 0x812d, + 0x21e: 0x812d, 0x21f: 0x812d, 0x220: 0x812d, 0x221: 0x8129, 0x222: 0x8129, 0x223: 0x992d, + 0x224: 0x992d, 0x225: 0x992d, 0x226: 0x992d, 0x227: 0x9929, 0x228: 0x9929, 0x229: 0x812d, + 0x22a: 0x812d, 0x22b: 0x812d, 0x22c: 0x812d, 0x22d: 0x992d, 0x22e: 0x992d, 0x22f: 0x812d, + 0x230: 0x992d, 0x231: 0x992d, 0x232: 0x812d, 0x233: 0x812d, 0x234: 0x8101, 0x235: 0x8101, + 0x236: 0x8101, 0x237: 0x8101, 0x238: 0x9901, 0x239: 0x812d, 0x23a: 0x812d, 0x23b: 0x812d, + 0x23c: 0x812d, 0x23d: 0x8132, 0x23e: 0x8132, 0x23f: 0x8132, + // Block 0x9, offset 0x240 + 0x240: 0x49b1, 0x241: 0x49b6, 0x242: 0x9932, 0x243: 0x49bb, 0x244: 0x4a74, 0x245: 0x9936, + 0x246: 0x8132, 0x247: 0x812d, 0x248: 0x812d, 0x249: 0x812d, 0x24a: 0x8132, 0x24b: 0x8132, + 0x24c: 0x8132, 0x24d: 0x812d, 0x24e: 0x812d, 0x250: 0x8132, 0x251: 0x8132, + 0x252: 0x8132, 0x253: 0x812d, 0x254: 0x812d, 0x255: 0x812d, 0x256: 0x812d, 0x257: 0x8132, + 0x258: 0x8133, 0x259: 0x812d, 0x25a: 0x812d, 0x25b: 0x8132, 0x25c: 0x8134, 0x25d: 0x8135, + 0x25e: 0x8135, 0x25f: 0x8134, 0x260: 0x8135, 0x261: 0x8135, 0x262: 0x8134, 0x263: 0x8132, + 0x264: 0x8132, 0x265: 0x8132, 0x266: 0x8132, 0x267: 0x8132, 0x268: 0x8132, 0x269: 0x8132, + 0x26a: 0x8132, 0x26b: 0x8132, 0x26c: 0x8132, 0x26d: 0x8132, 0x26e: 0x8132, 0x26f: 0x8132, + 0x274: 0x0170, + 0x27a: 0x8100, + 0x27e: 0x0037, + // Block 0xa, offset 0x280 + 0x284: 0x8100, 0x285: 0x35a4, + 0x286: 0x35ec, 0x287: 0x00ce, 0x288: 0x360a, 0x289: 0x3616, 0x28a: 0x3628, + 0x28c: 0x3646, 0x28e: 0x3658, 0x28f: 0x3676, 0x290: 0x3e0b, 0x291: 0xa000, + 0x295: 0xa000, 0x297: 0xa000, + 0x299: 0xa000, + 0x29f: 0xa000, 0x2a1: 0xa000, + 0x2a5: 0xa000, 0x2a9: 0xa000, + 0x2aa: 0x363a, 0x2ab: 0x366a, 0x2ac: 0x4801, 0x2ad: 0x369a, 0x2ae: 0x482b, 0x2af: 0x36ac, + 0x2b0: 0x3e73, 0x2b1: 0xa000, 0x2b5: 0xa000, + 0x2b7: 0xa000, 0x2b9: 0xa000, + 0x2bf: 0xa000, + // Block 0xb, offset 0x2c0 + 0x2c0: 0x3724, 0x2c1: 0x3730, 0x2c3: 0x371e, + 0x2c6: 0xa000, 0x2c7: 0x370c, + 0x2cc: 0x3760, 0x2cd: 0x3748, 0x2ce: 0x3772, 0x2d0: 0xa000, + 0x2d3: 0xa000, 0x2d5: 0xa000, 0x2d6: 0xa000, 0x2d7: 0xa000, + 0x2d8: 0xa000, 0x2d9: 0x3754, 0x2da: 0xa000, + 0x2de: 0xa000, 0x2e3: 0xa000, + 0x2e7: 0xa000, + 0x2eb: 0xa000, 0x2ed: 0xa000, + 0x2f0: 0xa000, 0x2f3: 0xa000, 0x2f5: 0xa000, + 0x2f6: 0xa000, 0x2f7: 0xa000, 0x2f8: 0xa000, 0x2f9: 0x37d8, 0x2fa: 0xa000, + 0x2fe: 0xa000, + // Block 0xc, offset 0x300 + 0x301: 0x3736, 0x302: 0x37ba, + 0x310: 0x3712, 0x311: 0x3796, + 0x312: 0x3718, 0x313: 0x379c, 0x316: 0x372a, 0x317: 0x37ae, + 0x318: 0xa000, 0x319: 0xa000, 0x31a: 0x382c, 0x31b: 0x3832, 0x31c: 0x373c, 0x31d: 0x37c0, + 0x31e: 0x3742, 0x31f: 0x37c6, 0x322: 0x374e, 0x323: 0x37d2, + 0x324: 0x375a, 0x325: 0x37de, 0x326: 0x3766, 0x327: 0x37ea, 0x328: 0xa000, 0x329: 0xa000, + 0x32a: 0x3838, 0x32b: 0x383e, 0x32c: 0x3790, 0x32d: 0x3814, 0x32e: 0x376c, 0x32f: 0x37f0, + 0x330: 0x3778, 0x331: 0x37fc, 0x332: 0x377e, 0x333: 0x3802, 0x334: 0x3784, 0x335: 0x3808, + 0x338: 0x378a, 0x339: 0x380e, + // Block 0xd, offset 0x340 + 0x351: 0x812d, + 0x352: 0x8132, 0x353: 0x8132, 0x354: 0x8132, 0x355: 0x8132, 0x356: 0x812d, 0x357: 0x8132, + 0x358: 0x8132, 0x359: 0x8132, 0x35a: 0x812e, 0x35b: 0x812d, 0x35c: 0x8132, 0x35d: 0x8132, + 0x35e: 0x8132, 0x35f: 0x8132, 0x360: 0x8132, 0x361: 0x8132, 0x362: 0x812d, 0x363: 0x812d, + 0x364: 0x812d, 0x365: 0x812d, 0x366: 0x812d, 0x367: 0x812d, 0x368: 0x8132, 0x369: 0x8132, + 0x36a: 0x812d, 0x36b: 0x8132, 0x36c: 0x8132, 0x36d: 0x812e, 0x36e: 0x8131, 0x36f: 0x8132, + 0x370: 0x8105, 0x371: 0x8106, 0x372: 0x8107, 0x373: 0x8108, 0x374: 0x8109, 0x375: 0x810a, + 0x376: 0x810b, 0x377: 0x810c, 0x378: 0x810d, 0x379: 0x810e, 0x37a: 0x810e, 0x37b: 0x810f, + 0x37c: 0x8110, 0x37d: 0x8111, 0x37f: 0x8112, + // Block 0xe, offset 0x380 + 0x388: 0xa000, 0x38a: 0xa000, 0x38b: 0x8116, + 0x38c: 0x8117, 0x38d: 0x8118, 0x38e: 0x8119, 0x38f: 0x811a, 0x390: 0x811b, 0x391: 0x811c, + 0x392: 0x811d, 0x393: 0x9932, 0x394: 0x9932, 0x395: 0x992d, 0x396: 0x812d, 0x397: 0x8132, + 0x398: 0x8132, 0x399: 0x8132, 0x39a: 0x8132, 0x39b: 0x8132, 0x39c: 0x812d, 0x39d: 0x8132, + 0x39e: 0x8132, 0x39f: 0x812d, + 0x3b0: 0x811e, + // Block 0xf, offset 0x3c0 + 0x3d3: 0x812d, 0x3d4: 0x8132, 0x3d5: 0x8132, 0x3d6: 0x8132, 0x3d7: 0x8132, + 0x3d8: 0x8132, 0x3d9: 0x8132, 0x3da: 0x8132, 0x3db: 0x8132, 0x3dc: 0x8132, 0x3dd: 0x8132, + 0x3de: 0x8132, 0x3df: 0x8132, 0x3e0: 0x8132, 0x3e1: 0x8132, 0x3e3: 0x812d, + 0x3e4: 0x8132, 0x3e5: 0x8132, 0x3e6: 0x812d, 0x3e7: 0x8132, 0x3e8: 0x8132, 0x3e9: 0x812d, + 0x3ea: 0x8132, 0x3eb: 0x8132, 0x3ec: 0x8132, 0x3ed: 0x812d, 0x3ee: 0x812d, 0x3ef: 0x812d, + 0x3f0: 0x8116, 0x3f1: 0x8117, 0x3f2: 0x8118, 0x3f3: 0x8132, 0x3f4: 0x8132, 0x3f5: 0x8132, + 0x3f6: 0x812d, 0x3f7: 0x8132, 0x3f8: 0x8132, 0x3f9: 0x812d, 0x3fa: 0x812d, 0x3fb: 0x8132, + 0x3fc: 0x8132, 0x3fd: 0x8132, 0x3fe: 0x8132, 0x3ff: 0x8132, + // Block 0x10, offset 0x400 + 0x405: 0xa000, + 0x406: 0x2d29, 0x407: 0xa000, 0x408: 0x2d31, 0x409: 0xa000, 0x40a: 0x2d39, 0x40b: 0xa000, + 0x40c: 0x2d41, 0x40d: 0xa000, 0x40e: 0x2d49, 0x411: 0xa000, + 0x412: 0x2d51, + 0x434: 0x8102, 0x435: 0x9900, + 0x43a: 0xa000, 0x43b: 0x2d59, + 0x43c: 0xa000, 0x43d: 0x2d61, 0x43e: 0xa000, 0x43f: 0xa000, + // Block 0x11, offset 0x440 + 0x440: 0x8132, 0x441: 0x8132, 0x442: 0x812d, 0x443: 0x8132, 0x444: 0x8132, 0x445: 0x8132, + 0x446: 0x8132, 0x447: 0x8132, 0x448: 0x8132, 0x449: 0x8132, 0x44a: 0x812d, 0x44b: 0x8132, + 0x44c: 0x8132, 0x44d: 0x8135, 0x44e: 0x812a, 0x44f: 0x812d, 0x450: 0x8129, 0x451: 0x8132, + 0x452: 0x8132, 0x453: 0x8132, 0x454: 0x8132, 0x455: 0x8132, 0x456: 0x8132, 0x457: 0x8132, + 0x458: 0x8132, 0x459: 0x8132, 0x45a: 0x8132, 0x45b: 0x8132, 0x45c: 0x8132, 0x45d: 0x8132, + 0x45e: 0x8132, 0x45f: 0x8132, 0x460: 0x8132, 0x461: 0x8132, 0x462: 0x8132, 0x463: 0x8132, + 0x464: 0x8132, 0x465: 0x8132, 0x466: 0x8132, 0x467: 0x8132, 0x468: 0x8132, 0x469: 0x8132, + 0x46a: 0x8132, 0x46b: 0x8132, 0x46c: 0x8132, 0x46d: 0x8132, 0x46e: 0x8132, 0x46f: 0x8132, + 0x470: 0x8132, 0x471: 0x8132, 0x472: 0x8132, 0x473: 0x8132, 0x474: 0x8132, 0x475: 0x8132, + 0x476: 0x8133, 0x477: 0x8131, 0x478: 0x8131, 0x479: 0x812d, 0x47b: 0x8132, + 0x47c: 0x8134, 0x47d: 0x812d, 0x47e: 0x8132, 0x47f: 0x812d, + // Block 0x12, offset 0x480 + 0x480: 0x2f9a, 0x481: 0x32a6, 0x482: 0x2fa4, 0x483: 0x32b0, 0x484: 0x2fa9, 0x485: 0x32b5, + 0x486: 0x2fae, 0x487: 0x32ba, 0x488: 0x38cf, 0x489: 0x3a5e, 0x48a: 0x2fc7, 0x48b: 0x32d3, + 0x48c: 0x2fd1, 0x48d: 0x32dd, 0x48e: 0x2fe0, 0x48f: 0x32ec, 0x490: 0x2fd6, 0x491: 0x32e2, + 0x492: 0x2fdb, 0x493: 0x32e7, 0x494: 0x38f2, 0x495: 0x3a81, 0x496: 0x38f9, 0x497: 0x3a88, + 0x498: 0x301c, 0x499: 0x3328, 0x49a: 0x3021, 0x49b: 0x332d, 0x49c: 0x3907, 0x49d: 0x3a96, + 0x49e: 0x3026, 0x49f: 0x3332, 0x4a0: 0x3035, 0x4a1: 0x3341, 0x4a2: 0x3053, 0x4a3: 0x335f, + 0x4a4: 0x3062, 0x4a5: 0x336e, 0x4a6: 0x3058, 0x4a7: 0x3364, 0x4a8: 0x3067, 0x4a9: 0x3373, + 0x4aa: 0x306c, 0x4ab: 0x3378, 0x4ac: 0x30b2, 0x4ad: 0x33be, 0x4ae: 0x390e, 0x4af: 0x3a9d, + 0x4b0: 0x30bc, 0x4b1: 0x33cd, 0x4b2: 0x30c6, 0x4b3: 0x33d7, 0x4b4: 0x30d0, 0x4b5: 0x33e1, + 0x4b6: 0x46c7, 0x4b7: 0x4758, 0x4b8: 0x3915, 0x4b9: 0x3aa4, 0x4ba: 0x30e9, 0x4bb: 0x33fa, + 0x4bc: 0x30e4, 0x4bd: 0x33f5, 0x4be: 0x30ee, 0x4bf: 0x33ff, + // Block 0x13, offset 0x4c0 + 0x4c0: 0x30f3, 0x4c1: 0x3404, 0x4c2: 0x30f8, 0x4c3: 0x3409, 0x4c4: 0x310c, 0x4c5: 0x341d, + 0x4c6: 0x3116, 0x4c7: 0x3427, 0x4c8: 0x3125, 0x4c9: 0x3436, 0x4ca: 0x3120, 0x4cb: 0x3431, + 0x4cc: 0x3938, 0x4cd: 0x3ac7, 0x4ce: 0x3946, 0x4cf: 0x3ad5, 0x4d0: 0x394d, 0x4d1: 0x3adc, + 0x4d2: 0x3954, 0x4d3: 0x3ae3, 0x4d4: 0x3152, 0x4d5: 0x3463, 0x4d6: 0x3157, 0x4d7: 0x3468, + 0x4d8: 0x3161, 0x4d9: 0x3472, 0x4da: 0x46f4, 0x4db: 0x4785, 0x4dc: 0x399a, 0x4dd: 0x3b29, + 0x4de: 0x317a, 0x4df: 0x348b, 0x4e0: 0x3184, 0x4e1: 0x3495, 0x4e2: 0x4703, 0x4e3: 0x4794, + 0x4e4: 0x39a1, 0x4e5: 0x3b30, 0x4e6: 0x39a8, 0x4e7: 0x3b37, 0x4e8: 0x39af, 0x4e9: 0x3b3e, + 0x4ea: 0x3193, 0x4eb: 0x34a4, 0x4ec: 0x319d, 0x4ed: 0x34b3, 0x4ee: 0x31b1, 0x4ef: 0x34c7, + 0x4f0: 0x31ac, 0x4f1: 0x34c2, 0x4f2: 0x31ed, 0x4f3: 0x3503, 0x4f4: 0x31fc, 0x4f5: 0x3512, + 0x4f6: 0x31f7, 0x4f7: 0x350d, 0x4f8: 0x39b6, 0x4f9: 0x3b45, 0x4fa: 0x39bd, 0x4fb: 0x3b4c, + 0x4fc: 0x3201, 0x4fd: 0x3517, 0x4fe: 0x3206, 0x4ff: 0x351c, + // Block 0x14, offset 0x500 + 0x500: 0x320b, 0x501: 0x3521, 0x502: 0x3210, 0x503: 0x3526, 0x504: 0x321f, 0x505: 0x3535, + 0x506: 0x321a, 0x507: 0x3530, 0x508: 0x3224, 0x509: 0x353f, 0x50a: 0x3229, 0x50b: 0x3544, + 0x50c: 0x322e, 0x50d: 0x3549, 0x50e: 0x324c, 0x50f: 0x3567, 0x510: 0x3265, 0x511: 0x3585, + 0x512: 0x3274, 0x513: 0x3594, 0x514: 0x3279, 0x515: 0x3599, 0x516: 0x337d, 0x517: 0x34a9, + 0x518: 0x353a, 0x519: 0x3576, 0x51b: 0x35d4, + 0x520: 0x46a4, 0x521: 0x4735, 0x522: 0x2f86, 0x523: 0x3292, + 0x524: 0x387b, 0x525: 0x3a0a, 0x526: 0x3874, 0x527: 0x3a03, 0x528: 0x3889, 0x529: 0x3a18, + 0x52a: 0x3882, 0x52b: 0x3a11, 0x52c: 0x38c1, 0x52d: 0x3a50, 0x52e: 0x3897, 0x52f: 0x3a26, + 0x530: 0x3890, 0x531: 0x3a1f, 0x532: 0x38a5, 0x533: 0x3a34, 0x534: 0x389e, 0x535: 0x3a2d, + 0x536: 0x38c8, 0x537: 0x3a57, 0x538: 0x46b8, 0x539: 0x4749, 0x53a: 0x3003, 0x53b: 0x330f, + 0x53c: 0x2fef, 0x53d: 0x32fb, 0x53e: 0x38dd, 0x53f: 0x3a6c, + // Block 0x15, offset 0x540 + 0x540: 0x38d6, 0x541: 0x3a65, 0x542: 0x38eb, 0x543: 0x3a7a, 0x544: 0x38e4, 0x545: 0x3a73, + 0x546: 0x3900, 0x547: 0x3a8f, 0x548: 0x3094, 0x549: 0x33a0, 0x54a: 0x30a8, 0x54b: 0x33b4, + 0x54c: 0x46ea, 0x54d: 0x477b, 0x54e: 0x3139, 0x54f: 0x344a, 0x550: 0x3923, 0x551: 0x3ab2, + 0x552: 0x391c, 0x553: 0x3aab, 0x554: 0x3931, 0x555: 0x3ac0, 0x556: 0x392a, 0x557: 0x3ab9, + 0x558: 0x398c, 0x559: 0x3b1b, 0x55a: 0x3970, 0x55b: 0x3aff, 0x55c: 0x3969, 0x55d: 0x3af8, + 0x55e: 0x397e, 0x55f: 0x3b0d, 0x560: 0x3977, 0x561: 0x3b06, 0x562: 0x3985, 0x563: 0x3b14, + 0x564: 0x31e8, 0x565: 0x34fe, 0x566: 0x31ca, 0x567: 0x34e0, 0x568: 0x39e7, 0x569: 0x3b76, + 0x56a: 0x39e0, 0x56b: 0x3b6f, 0x56c: 0x39f5, 0x56d: 0x3b84, 0x56e: 0x39ee, 0x56f: 0x3b7d, + 0x570: 0x39fc, 0x571: 0x3b8b, 0x572: 0x3233, 0x573: 0x354e, 0x574: 0x325b, 0x575: 0x357b, + 0x576: 0x3256, 0x577: 0x3571, 0x578: 0x3242, 0x579: 0x355d, + // Block 0x16, offset 0x580 + 0x580: 0x4807, 0x581: 0x480d, 0x582: 0x4921, 0x583: 0x4939, 0x584: 0x4929, 0x585: 0x4941, + 0x586: 0x4931, 0x587: 0x4949, 0x588: 0x47ad, 0x589: 0x47b3, 0x58a: 0x4891, 0x58b: 0x48a9, + 0x58c: 0x4899, 0x58d: 0x48b1, 0x58e: 0x48a1, 0x58f: 0x48b9, 0x590: 0x4819, 0x591: 0x481f, + 0x592: 0x3dbb, 0x593: 0x3dcb, 0x594: 0x3dc3, 0x595: 0x3dd3, + 0x598: 0x47b9, 0x599: 0x47bf, 0x59a: 0x3ceb, 0x59b: 0x3cfb, 0x59c: 0x3cf3, 0x59d: 0x3d03, + 0x5a0: 0x4831, 0x5a1: 0x4837, 0x5a2: 0x4951, 0x5a3: 0x4969, + 0x5a4: 0x4959, 0x5a5: 0x4971, 0x5a6: 0x4961, 0x5a7: 0x4979, 0x5a8: 0x47c5, 0x5a9: 0x47cb, + 0x5aa: 0x48c1, 0x5ab: 0x48d9, 0x5ac: 0x48c9, 0x5ad: 0x48e1, 0x5ae: 0x48d1, 0x5af: 0x48e9, + 0x5b0: 0x4849, 0x5b1: 0x484f, 0x5b2: 0x3e1b, 0x5b3: 0x3e33, 0x5b4: 0x3e23, 0x5b5: 0x3e3b, + 0x5b6: 0x3e2b, 0x5b7: 0x3e43, 0x5b8: 0x47d1, 0x5b9: 0x47d7, 0x5ba: 0x3d1b, 0x5bb: 0x3d33, + 0x5bc: 0x3d23, 0x5bd: 0x3d3b, 0x5be: 0x3d2b, 0x5bf: 0x3d43, + // Block 0x17, offset 0x5c0 + 0x5c0: 0x4855, 0x5c1: 0x485b, 0x5c2: 0x3e4b, 0x5c3: 0x3e5b, 0x5c4: 0x3e53, 0x5c5: 0x3e63, + 0x5c8: 0x47dd, 0x5c9: 0x47e3, 0x5ca: 0x3d4b, 0x5cb: 0x3d5b, + 0x5cc: 0x3d53, 0x5cd: 0x3d63, 0x5d0: 0x4867, 0x5d1: 0x486d, + 0x5d2: 0x3e83, 0x5d3: 0x3e9b, 0x5d4: 0x3e8b, 0x5d5: 0x3ea3, 0x5d6: 0x3e93, 0x5d7: 0x3eab, + 0x5d9: 0x47e9, 0x5db: 0x3d6b, 0x5dd: 0x3d73, + 0x5df: 0x3d7b, 0x5e0: 0x487f, 0x5e1: 0x4885, 0x5e2: 0x4981, 0x5e3: 0x4999, + 0x5e4: 0x4989, 0x5e5: 0x49a1, 0x5e6: 0x4991, 0x5e7: 0x49a9, 0x5e8: 0x47ef, 0x5e9: 0x47f5, + 0x5ea: 0x48f1, 0x5eb: 0x4909, 0x5ec: 0x48f9, 0x5ed: 0x4911, 0x5ee: 0x4901, 0x5ef: 0x4919, + 0x5f0: 0x47fb, 0x5f1: 0x4321, 0x5f2: 0x3694, 0x5f3: 0x4327, 0x5f4: 0x4825, 0x5f5: 0x432d, + 0x5f6: 0x36a6, 0x5f7: 0x4333, 0x5f8: 0x36c4, 0x5f9: 0x4339, 0x5fa: 0x36dc, 0x5fb: 0x433f, + 0x5fc: 0x4873, 0x5fd: 0x4345, + // Block 0x18, offset 0x600 + 0x600: 0x3da3, 0x601: 0x3dab, 0x602: 0x4187, 0x603: 0x41a5, 0x604: 0x4191, 0x605: 0x41af, + 0x606: 0x419b, 0x607: 0x41b9, 0x608: 0x3cdb, 0x609: 0x3ce3, 0x60a: 0x40d3, 0x60b: 0x40f1, + 0x60c: 0x40dd, 0x60d: 0x40fb, 0x60e: 0x40e7, 0x60f: 0x4105, 0x610: 0x3deb, 0x611: 0x3df3, + 0x612: 0x41c3, 0x613: 0x41e1, 0x614: 0x41cd, 0x615: 0x41eb, 0x616: 0x41d7, 0x617: 0x41f5, + 0x618: 0x3d0b, 0x619: 0x3d13, 0x61a: 0x410f, 0x61b: 0x412d, 0x61c: 0x4119, 0x61d: 0x4137, + 0x61e: 0x4123, 0x61f: 0x4141, 0x620: 0x3ec3, 0x621: 0x3ecb, 0x622: 0x41ff, 0x623: 0x421d, + 0x624: 0x4209, 0x625: 0x4227, 0x626: 0x4213, 0x627: 0x4231, 0x628: 0x3d83, 0x629: 0x3d8b, + 0x62a: 0x414b, 0x62b: 0x4169, 0x62c: 0x4155, 0x62d: 0x4173, 0x62e: 0x415f, 0x62f: 0x417d, + 0x630: 0x3688, 0x631: 0x3682, 0x632: 0x3d93, 0x633: 0x368e, 0x634: 0x3d9b, + 0x636: 0x4813, 0x637: 0x3db3, 0x638: 0x35f8, 0x639: 0x35f2, 0x63a: 0x35e6, 0x63b: 0x42f1, + 0x63c: 0x35fe, 0x63d: 0x8100, 0x63e: 0x01d3, 0x63f: 0xa100, + // Block 0x19, offset 0x640 + 0x640: 0x8100, 0x641: 0x35aa, 0x642: 0x3ddb, 0x643: 0x36a0, 0x644: 0x3de3, + 0x646: 0x483d, 0x647: 0x3dfb, 0x648: 0x3604, 0x649: 0x42f7, 0x64a: 0x3610, 0x64b: 0x42fd, + 0x64c: 0x361c, 0x64d: 0x3b92, 0x64e: 0x3b99, 0x64f: 0x3ba0, 0x650: 0x36b8, 0x651: 0x36b2, + 0x652: 0x3e03, 0x653: 0x44e7, 0x656: 0x36be, 0x657: 0x3e13, + 0x658: 0x3634, 0x659: 0x362e, 0x65a: 0x3622, 0x65b: 0x4303, 0x65d: 0x3ba7, + 0x65e: 0x3bae, 0x65f: 0x3bb5, 0x660: 0x36ee, 0x661: 0x36e8, 0x662: 0x3e6b, 0x663: 0x44ef, + 0x664: 0x36d0, 0x665: 0x36d6, 0x666: 0x36f4, 0x667: 0x3e7b, 0x668: 0x3664, 0x669: 0x365e, + 0x66a: 0x3652, 0x66b: 0x430f, 0x66c: 0x364c, 0x66d: 0x359e, 0x66e: 0x42eb, 0x66f: 0x0081, + 0x672: 0x3eb3, 0x673: 0x36fa, 0x674: 0x3ebb, + 0x676: 0x488b, 0x677: 0x3ed3, 0x678: 0x3640, 0x679: 0x4309, 0x67a: 0x3670, 0x67b: 0x431b, + 0x67c: 0x367c, 0x67d: 0x4259, 0x67e: 0xa100, + // Block 0x1a, offset 0x680 + 0x681: 0x3c09, 0x683: 0xa000, 0x684: 0x3c10, 0x685: 0xa000, + 0x687: 0x3c17, 0x688: 0xa000, 0x689: 0x3c1e, + 0x68d: 0xa000, + 0x6a0: 0x2f68, 0x6a1: 0xa000, 0x6a2: 0x3c2c, + 0x6a4: 0xa000, 0x6a5: 0xa000, + 0x6ad: 0x3c25, 0x6ae: 0x2f63, 0x6af: 0x2f6d, + 0x6b0: 0x3c33, 0x6b1: 0x3c3a, 0x6b2: 0xa000, 0x6b3: 0xa000, 0x6b4: 0x3c41, 0x6b5: 0x3c48, + 0x6b6: 0xa000, 0x6b7: 0xa000, 0x6b8: 0x3c4f, 0x6b9: 0x3c56, 0x6ba: 0xa000, 0x6bb: 0xa000, + 0x6bc: 0xa000, 0x6bd: 0xa000, + // Block 0x1b, offset 0x6c0 + 0x6c0: 0x3c5d, 0x6c1: 0x3c64, 0x6c2: 0xa000, 0x6c3: 0xa000, 0x6c4: 0x3c79, 0x6c5: 0x3c80, + 0x6c6: 0xa000, 0x6c7: 0xa000, 0x6c8: 0x3c87, 0x6c9: 0x3c8e, + 0x6d1: 0xa000, + 0x6d2: 0xa000, + 0x6e2: 0xa000, + 0x6e8: 0xa000, 0x6e9: 0xa000, + 0x6eb: 0xa000, 0x6ec: 0x3ca3, 0x6ed: 0x3caa, 0x6ee: 0x3cb1, 0x6ef: 0x3cb8, + 0x6f2: 0xa000, 0x6f3: 0xa000, 0x6f4: 0xa000, 0x6f5: 0xa000, + // Block 0x1c, offset 0x700 + 0x706: 0xa000, 0x70b: 0xa000, + 0x70c: 0x3f0b, 0x70d: 0xa000, 0x70e: 0x3f13, 0x70f: 0xa000, 0x710: 0x3f1b, 0x711: 0xa000, + 0x712: 0x3f23, 0x713: 0xa000, 0x714: 0x3f2b, 0x715: 0xa000, 0x716: 0x3f33, 0x717: 0xa000, + 0x718: 0x3f3b, 0x719: 0xa000, 0x71a: 0x3f43, 0x71b: 0xa000, 0x71c: 0x3f4b, 0x71d: 0xa000, + 0x71e: 0x3f53, 0x71f: 0xa000, 0x720: 0x3f5b, 0x721: 0xa000, 0x722: 0x3f63, + 0x724: 0xa000, 0x725: 0x3f6b, 0x726: 0xa000, 0x727: 0x3f73, 0x728: 0xa000, 0x729: 0x3f7b, + 0x72f: 0xa000, + 0x730: 0x3f83, 0x731: 0x3f8b, 0x732: 0xa000, 0x733: 0x3f93, 0x734: 0x3f9b, 0x735: 0xa000, + 0x736: 0x3fa3, 0x737: 0x3fab, 0x738: 0xa000, 0x739: 0x3fb3, 0x73a: 0x3fbb, 0x73b: 0xa000, + 0x73c: 0x3fc3, 0x73d: 0x3fcb, + // Block 0x1d, offset 0x740 + 0x754: 0x3f03, + 0x759: 0x9903, 0x75a: 0x9903, 0x75b: 0x8100, 0x75c: 0x8100, 0x75d: 0xa000, + 0x75e: 0x3fd3, + 0x766: 0xa000, + 0x76b: 0xa000, 0x76c: 0x3fe3, 0x76d: 0xa000, 0x76e: 0x3feb, 0x76f: 0xa000, + 0x770: 0x3ff3, 0x771: 0xa000, 0x772: 0x3ffb, 0x773: 0xa000, 0x774: 0x4003, 0x775: 0xa000, + 0x776: 0x400b, 0x777: 0xa000, 0x778: 0x4013, 0x779: 0xa000, 0x77a: 0x401b, 0x77b: 0xa000, + 0x77c: 0x4023, 0x77d: 0xa000, 0x77e: 0x402b, 0x77f: 0xa000, + // Block 0x1e, offset 0x780 + 0x780: 0x4033, 0x781: 0xa000, 0x782: 0x403b, 0x784: 0xa000, 0x785: 0x4043, + 0x786: 0xa000, 0x787: 0x404b, 0x788: 0xa000, 0x789: 0x4053, + 0x78f: 0xa000, 0x790: 0x405b, 0x791: 0x4063, + 0x792: 0xa000, 0x793: 0x406b, 0x794: 0x4073, 0x795: 0xa000, 0x796: 0x407b, 0x797: 0x4083, + 0x798: 0xa000, 0x799: 0x408b, 0x79a: 0x4093, 0x79b: 0xa000, 0x79c: 0x409b, 0x79d: 0x40a3, + 0x7af: 0xa000, + 0x7b0: 0xa000, 0x7b1: 0xa000, 0x7b2: 0xa000, 0x7b4: 0x3fdb, + 0x7b7: 0x40ab, 0x7b8: 0x40b3, 0x7b9: 0x40bb, 0x7ba: 0x40c3, + 0x7bd: 0xa000, 0x7be: 0x40cb, + // Block 0x1f, offset 0x7c0 + 0x7c0: 0x1377, 0x7c1: 0x0cfb, 0x7c2: 0x13d3, 0x7c3: 0x139f, 0x7c4: 0x0e57, 0x7c5: 0x06eb, + 0x7c6: 0x08df, 0x7c7: 0x162b, 0x7c8: 0x162b, 0x7c9: 0x0a0b, 0x7ca: 0x145f, 0x7cb: 0x0943, + 0x7cc: 0x0a07, 0x7cd: 0x0bef, 0x7ce: 0x0fcf, 0x7cf: 0x115f, 0x7d0: 0x1297, 0x7d1: 0x12d3, + 0x7d2: 0x1307, 0x7d3: 0x141b, 0x7d4: 0x0d73, 0x7d5: 0x0dff, 0x7d6: 0x0eab, 0x7d7: 0x0f43, + 0x7d8: 0x125f, 0x7d9: 0x1447, 0x7da: 0x1573, 0x7db: 0x070f, 0x7dc: 0x08b3, 0x7dd: 0x0d87, + 0x7de: 0x0ecf, 0x7df: 0x1293, 0x7e0: 0x15c3, 0x7e1: 0x0ab3, 0x7e2: 0x0e77, 0x7e3: 0x1283, + 0x7e4: 0x1317, 0x7e5: 0x0c23, 0x7e6: 0x11bb, 0x7e7: 0x12df, 0x7e8: 0x0b1f, 0x7e9: 0x0d0f, + 0x7ea: 0x0e17, 0x7eb: 0x0f1b, 0x7ec: 0x1427, 0x7ed: 0x074f, 0x7ee: 0x07e7, 0x7ef: 0x0853, + 0x7f0: 0x0c8b, 0x7f1: 0x0d7f, 0x7f2: 0x0ecb, 0x7f3: 0x0fef, 0x7f4: 0x1177, 0x7f5: 0x128b, + 0x7f6: 0x12a3, 0x7f7: 0x13c7, 0x7f8: 0x14ef, 0x7f9: 0x15a3, 0x7fa: 0x15bf, 0x7fb: 0x102b, + 0x7fc: 0x106b, 0x7fd: 0x1123, 0x7fe: 0x1243, 0x7ff: 0x147b, + // Block 0x20, offset 0x800 + 0x800: 0x15cb, 0x801: 0x134b, 0x802: 0x09c7, 0x803: 0x0b3b, 0x804: 0x10db, 0x805: 0x119b, + 0x806: 0x0eff, 0x807: 0x1033, 0x808: 0x1397, 0x809: 0x14e7, 0x80a: 0x09c3, 0x80b: 0x0a8f, + 0x80c: 0x0d77, 0x80d: 0x0e2b, 0x80e: 0x0e5f, 0x80f: 0x1113, 0x810: 0x113b, 0x811: 0x14a7, + 0x812: 0x084f, 0x813: 0x11a7, 0x814: 0x07f3, 0x815: 0x07ef, 0x816: 0x1097, 0x817: 0x1127, + 0x818: 0x125b, 0x819: 0x14af, 0x81a: 0x1367, 0x81b: 0x0c27, 0x81c: 0x0d73, 0x81d: 0x1357, + 0x81e: 0x06f7, 0x81f: 0x0a63, 0x820: 0x0b93, 0x821: 0x0f2f, 0x822: 0x0faf, 0x823: 0x0873, + 0x824: 0x103b, 0x825: 0x075f, 0x826: 0x0b77, 0x827: 0x06d7, 0x828: 0x0deb, 0x829: 0x0ca3, + 0x82a: 0x110f, 0x82b: 0x08c7, 0x82c: 0x09b3, 0x82d: 0x0ffb, 0x82e: 0x1263, 0x82f: 0x133b, + 0x830: 0x0db7, 0x831: 0x13f7, 0x832: 0x0de3, 0x833: 0x0c37, 0x834: 0x121b, 0x835: 0x0c57, + 0x836: 0x0fab, 0x837: 0x072b, 0x838: 0x07a7, 0x839: 0x07eb, 0x83a: 0x0d53, 0x83b: 0x10fb, + 0x83c: 0x11f3, 0x83d: 0x1347, 0x83e: 0x145b, 0x83f: 0x085b, + // Block 0x21, offset 0x840 + 0x840: 0x090f, 0x841: 0x0a17, 0x842: 0x0b2f, 0x843: 0x0cbf, 0x844: 0x0e7b, 0x845: 0x103f, + 0x846: 0x1497, 0x847: 0x157b, 0x848: 0x15cf, 0x849: 0x15e7, 0x84a: 0x0837, 0x84b: 0x0cf3, + 0x84c: 0x0da3, 0x84d: 0x13eb, 0x84e: 0x0afb, 0x84f: 0x0bd7, 0x850: 0x0bf3, 0x851: 0x0c83, + 0x852: 0x0e6b, 0x853: 0x0eb7, 0x854: 0x0f67, 0x855: 0x108b, 0x856: 0x112f, 0x857: 0x1193, + 0x858: 0x13db, 0x859: 0x126b, 0x85a: 0x1403, 0x85b: 0x147f, 0x85c: 0x080f, 0x85d: 0x083b, + 0x85e: 0x0923, 0x85f: 0x0ea7, 0x860: 0x12f3, 0x861: 0x133b, 0x862: 0x0b1b, 0x863: 0x0b8b, + 0x864: 0x0c4f, 0x865: 0x0daf, 0x866: 0x10d7, 0x867: 0x0f23, 0x868: 0x073b, 0x869: 0x097f, + 0x86a: 0x0a63, 0x86b: 0x0ac7, 0x86c: 0x0b97, 0x86d: 0x0f3f, 0x86e: 0x0f5b, 0x86f: 0x116b, + 0x870: 0x118b, 0x871: 0x1463, 0x872: 0x14e3, 0x873: 0x14f3, 0x874: 0x152f, 0x875: 0x0753, + 0x876: 0x107f, 0x877: 0x144f, 0x878: 0x14cb, 0x879: 0x0baf, 0x87a: 0x0717, 0x87b: 0x0777, + 0x87c: 0x0a67, 0x87d: 0x0a87, 0x87e: 0x0caf, 0x87f: 0x0d73, + // Block 0x22, offset 0x880 + 0x880: 0x0ec3, 0x881: 0x0fcb, 0x882: 0x1277, 0x883: 0x1417, 0x884: 0x1623, 0x885: 0x0ce3, + 0x886: 0x14a3, 0x887: 0x0833, 0x888: 0x0d2f, 0x889: 0x0d3b, 0x88a: 0x0e0f, 0x88b: 0x0e47, + 0x88c: 0x0f4b, 0x88d: 0x0fa7, 0x88e: 0x1027, 0x88f: 0x110b, 0x890: 0x153b, 0x891: 0x07af, + 0x892: 0x0c03, 0x893: 0x14b3, 0x894: 0x0767, 0x895: 0x0aab, 0x896: 0x0e2f, 0x897: 0x13df, + 0x898: 0x0b67, 0x899: 0x0bb7, 0x89a: 0x0d43, 0x89b: 0x0f2f, 0x89c: 0x14bb, 0x89d: 0x0817, + 0x89e: 0x08ff, 0x89f: 0x0a97, 0x8a0: 0x0cd3, 0x8a1: 0x0d1f, 0x8a2: 0x0d5f, 0x8a3: 0x0df3, + 0x8a4: 0x0f47, 0x8a5: 0x0fbb, 0x8a6: 0x1157, 0x8a7: 0x12f7, 0x8a8: 0x1303, 0x8a9: 0x1457, + 0x8aa: 0x14d7, 0x8ab: 0x0883, 0x8ac: 0x0e4b, 0x8ad: 0x0903, 0x8ae: 0x0ec7, 0x8af: 0x0f6b, + 0x8b0: 0x1287, 0x8b1: 0x14bf, 0x8b2: 0x15ab, 0x8b3: 0x15d3, 0x8b4: 0x0d37, 0x8b5: 0x0e27, + 0x8b6: 0x11c3, 0x8b7: 0x10b7, 0x8b8: 0x10c3, 0x8b9: 0x10e7, 0x8ba: 0x0f17, 0x8bb: 0x0e9f, + 0x8bc: 0x1363, 0x8bd: 0x0733, 0x8be: 0x122b, 0x8bf: 0x081b, + // Block 0x23, offset 0x8c0 + 0x8c0: 0x080b, 0x8c1: 0x0b0b, 0x8c2: 0x0c2b, 0x8c3: 0x10f3, 0x8c4: 0x0a53, 0x8c5: 0x0e03, + 0x8c6: 0x0cef, 0x8c7: 0x13e7, 0x8c8: 0x12e7, 0x8c9: 0x14ab, 0x8ca: 0x1323, 0x8cb: 0x0b27, + 0x8cc: 0x0787, 0x8cd: 0x095b, 0x8d0: 0x09af, + 0x8d2: 0x0cdf, 0x8d5: 0x07f7, 0x8d6: 0x0f1f, 0x8d7: 0x0fe3, + 0x8d8: 0x1047, 0x8d9: 0x1063, 0x8da: 0x1067, 0x8db: 0x107b, 0x8dc: 0x14fb, 0x8dd: 0x10eb, + 0x8de: 0x116f, 0x8e0: 0x128f, 0x8e2: 0x1353, + 0x8e5: 0x1407, 0x8e6: 0x1433, + 0x8ea: 0x154f, 0x8eb: 0x1553, 0x8ec: 0x1557, 0x8ed: 0x15bb, 0x8ee: 0x142b, 0x8ef: 0x14c7, + 0x8f0: 0x0757, 0x8f1: 0x077b, 0x8f2: 0x078f, 0x8f3: 0x084b, 0x8f4: 0x0857, 0x8f5: 0x0897, + 0x8f6: 0x094b, 0x8f7: 0x0967, 0x8f8: 0x096f, 0x8f9: 0x09ab, 0x8fa: 0x09b7, 0x8fb: 0x0a93, + 0x8fc: 0x0a9b, 0x8fd: 0x0ba3, 0x8fe: 0x0bcb, 0x8ff: 0x0bd3, + // Block 0x24, offset 0x900 + 0x900: 0x0beb, 0x901: 0x0c97, 0x902: 0x0cc7, 0x903: 0x0ce7, 0x904: 0x0d57, 0x905: 0x0e1b, + 0x906: 0x0e37, 0x907: 0x0e67, 0x908: 0x0ebb, 0x909: 0x0edb, 0x90a: 0x0f4f, 0x90b: 0x102f, + 0x90c: 0x104b, 0x90d: 0x1053, 0x90e: 0x104f, 0x90f: 0x1057, 0x910: 0x105b, 0x911: 0x105f, + 0x912: 0x1073, 0x913: 0x1077, 0x914: 0x109b, 0x915: 0x10af, 0x916: 0x10cb, 0x917: 0x112f, + 0x918: 0x1137, 0x919: 0x113f, 0x91a: 0x1153, 0x91b: 0x117b, 0x91c: 0x11cb, 0x91d: 0x11ff, + 0x91e: 0x11ff, 0x91f: 0x1267, 0x920: 0x130f, 0x921: 0x1327, 0x922: 0x135b, 0x923: 0x135f, + 0x924: 0x13a3, 0x925: 0x13a7, 0x926: 0x13ff, 0x927: 0x1407, 0x928: 0x14db, 0x929: 0x151f, + 0x92a: 0x1537, 0x92b: 0x0b9b, 0x92c: 0x171e, 0x92d: 0x11e3, + 0x930: 0x06df, 0x931: 0x07e3, 0x932: 0x07a3, 0x933: 0x074b, 0x934: 0x078b, 0x935: 0x07b7, + 0x936: 0x0847, 0x937: 0x0863, 0x938: 0x094b, 0x939: 0x0937, 0x93a: 0x0947, 0x93b: 0x0963, + 0x93c: 0x09af, 0x93d: 0x09bf, 0x93e: 0x0a03, 0x93f: 0x0a0f, + // Block 0x25, offset 0x940 + 0x940: 0x0a2b, 0x941: 0x0a3b, 0x942: 0x0b23, 0x943: 0x0b2b, 0x944: 0x0b5b, 0x945: 0x0b7b, + 0x946: 0x0bab, 0x947: 0x0bc3, 0x948: 0x0bb3, 0x949: 0x0bd3, 0x94a: 0x0bc7, 0x94b: 0x0beb, + 0x94c: 0x0c07, 0x94d: 0x0c5f, 0x94e: 0x0c6b, 0x94f: 0x0c73, 0x950: 0x0c9b, 0x951: 0x0cdf, + 0x952: 0x0d0f, 0x953: 0x0d13, 0x954: 0x0d27, 0x955: 0x0da7, 0x956: 0x0db7, 0x957: 0x0e0f, + 0x958: 0x0e5b, 0x959: 0x0e53, 0x95a: 0x0e67, 0x95b: 0x0e83, 0x95c: 0x0ebb, 0x95d: 0x1013, + 0x95e: 0x0edf, 0x95f: 0x0f13, 0x960: 0x0f1f, 0x961: 0x0f5f, 0x962: 0x0f7b, 0x963: 0x0f9f, + 0x964: 0x0fc3, 0x965: 0x0fc7, 0x966: 0x0fe3, 0x967: 0x0fe7, 0x968: 0x0ff7, 0x969: 0x100b, + 0x96a: 0x1007, 0x96b: 0x1037, 0x96c: 0x10b3, 0x96d: 0x10cb, 0x96e: 0x10e3, 0x96f: 0x111b, + 0x970: 0x112f, 0x971: 0x114b, 0x972: 0x117b, 0x973: 0x122f, 0x974: 0x1257, 0x975: 0x12cb, + 0x976: 0x1313, 0x977: 0x131f, 0x978: 0x1327, 0x979: 0x133f, 0x97a: 0x1353, 0x97b: 0x1343, + 0x97c: 0x135b, 0x97d: 0x1357, 0x97e: 0x134f, 0x97f: 0x135f, + // Block 0x26, offset 0x980 + 0x980: 0x136b, 0x981: 0x13a7, 0x982: 0x13e3, 0x983: 0x1413, 0x984: 0x144b, 0x985: 0x146b, + 0x986: 0x14b7, 0x987: 0x14db, 0x988: 0x14fb, 0x989: 0x150f, 0x98a: 0x151f, 0x98b: 0x152b, + 0x98c: 0x1537, 0x98d: 0x158b, 0x98e: 0x162b, 0x98f: 0x16b5, 0x990: 0x16b0, 0x991: 0x16e2, + 0x992: 0x0607, 0x993: 0x062f, 0x994: 0x0633, 0x995: 0x1764, 0x996: 0x1791, 0x997: 0x1809, + 0x998: 0x1617, 0x999: 0x1627, + // Block 0x27, offset 0x9c0 + 0x9c0: 0x06fb, 0x9c1: 0x06f3, 0x9c2: 0x0703, 0x9c3: 0x1647, 0x9c4: 0x0747, 0x9c5: 0x0757, + 0x9c6: 0x075b, 0x9c7: 0x0763, 0x9c8: 0x076b, 0x9c9: 0x076f, 0x9ca: 0x077b, 0x9cb: 0x0773, + 0x9cc: 0x05b3, 0x9cd: 0x165b, 0x9ce: 0x078f, 0x9cf: 0x0793, 0x9d0: 0x0797, 0x9d1: 0x07b3, + 0x9d2: 0x164c, 0x9d3: 0x05b7, 0x9d4: 0x079f, 0x9d5: 0x07bf, 0x9d6: 0x1656, 0x9d7: 0x07cf, + 0x9d8: 0x07d7, 0x9d9: 0x0737, 0x9da: 0x07df, 0x9db: 0x07e3, 0x9dc: 0x1831, 0x9dd: 0x07ff, + 0x9de: 0x0807, 0x9df: 0x05bf, 0x9e0: 0x081f, 0x9e1: 0x0823, 0x9e2: 0x082b, 0x9e3: 0x082f, + 0x9e4: 0x05c3, 0x9e5: 0x0847, 0x9e6: 0x084b, 0x9e7: 0x0857, 0x9e8: 0x0863, 0x9e9: 0x0867, + 0x9ea: 0x086b, 0x9eb: 0x0873, 0x9ec: 0x0893, 0x9ed: 0x0897, 0x9ee: 0x089f, 0x9ef: 0x08af, + 0x9f0: 0x08b7, 0x9f1: 0x08bb, 0x9f2: 0x08bb, 0x9f3: 0x08bb, 0x9f4: 0x166a, 0x9f5: 0x0e93, + 0x9f6: 0x08cf, 0x9f7: 0x08d7, 0x9f8: 0x166f, 0x9f9: 0x08e3, 0x9fa: 0x08eb, 0x9fb: 0x08f3, + 0x9fc: 0x091b, 0x9fd: 0x0907, 0x9fe: 0x0913, 0x9ff: 0x0917, + // Block 0x28, offset 0xa00 + 0xa00: 0x091f, 0xa01: 0x0927, 0xa02: 0x092b, 0xa03: 0x0933, 0xa04: 0x093b, 0xa05: 0x093f, + 0xa06: 0x093f, 0xa07: 0x0947, 0xa08: 0x094f, 0xa09: 0x0953, 0xa0a: 0x095f, 0xa0b: 0x0983, + 0xa0c: 0x0967, 0xa0d: 0x0987, 0xa0e: 0x096b, 0xa0f: 0x0973, 0xa10: 0x080b, 0xa11: 0x09cf, + 0xa12: 0x0997, 0xa13: 0x099b, 0xa14: 0x099f, 0xa15: 0x0993, 0xa16: 0x09a7, 0xa17: 0x09a3, + 0xa18: 0x09bb, 0xa19: 0x1674, 0xa1a: 0x09d7, 0xa1b: 0x09db, 0xa1c: 0x09e3, 0xa1d: 0x09ef, + 0xa1e: 0x09f7, 0xa1f: 0x0a13, 0xa20: 0x1679, 0xa21: 0x167e, 0xa22: 0x0a1f, 0xa23: 0x0a23, + 0xa24: 0x0a27, 0xa25: 0x0a1b, 0xa26: 0x0a2f, 0xa27: 0x05c7, 0xa28: 0x05cb, 0xa29: 0x0a37, + 0xa2a: 0x0a3f, 0xa2b: 0x0a3f, 0xa2c: 0x1683, 0xa2d: 0x0a5b, 0xa2e: 0x0a5f, 0xa2f: 0x0a63, + 0xa30: 0x0a6b, 0xa31: 0x1688, 0xa32: 0x0a73, 0xa33: 0x0a77, 0xa34: 0x0b4f, 0xa35: 0x0a7f, + 0xa36: 0x05cf, 0xa37: 0x0a8b, 0xa38: 0x0a9b, 0xa39: 0x0aa7, 0xa3a: 0x0aa3, 0xa3b: 0x1692, + 0xa3c: 0x0aaf, 0xa3d: 0x1697, 0xa3e: 0x0abb, 0xa3f: 0x0ab7, + // Block 0x29, offset 0xa40 + 0xa40: 0x0abf, 0xa41: 0x0acf, 0xa42: 0x0ad3, 0xa43: 0x05d3, 0xa44: 0x0ae3, 0xa45: 0x0aeb, + 0xa46: 0x0aef, 0xa47: 0x0af3, 0xa48: 0x05d7, 0xa49: 0x169c, 0xa4a: 0x05db, 0xa4b: 0x0b0f, + 0xa4c: 0x0b13, 0xa4d: 0x0b17, 0xa4e: 0x0b1f, 0xa4f: 0x1863, 0xa50: 0x0b37, 0xa51: 0x16a6, + 0xa52: 0x16a6, 0xa53: 0x11d7, 0xa54: 0x0b47, 0xa55: 0x0b47, 0xa56: 0x05df, 0xa57: 0x16c9, + 0xa58: 0x179b, 0xa59: 0x0b57, 0xa5a: 0x0b5f, 0xa5b: 0x05e3, 0xa5c: 0x0b73, 0xa5d: 0x0b83, + 0xa5e: 0x0b87, 0xa5f: 0x0b8f, 0xa60: 0x0b9f, 0xa61: 0x05eb, 0xa62: 0x05e7, 0xa63: 0x0ba3, + 0xa64: 0x16ab, 0xa65: 0x0ba7, 0xa66: 0x0bbb, 0xa67: 0x0bbf, 0xa68: 0x0bc3, 0xa69: 0x0bbf, + 0xa6a: 0x0bcf, 0xa6b: 0x0bd3, 0xa6c: 0x0be3, 0xa6d: 0x0bdb, 0xa6e: 0x0bdf, 0xa6f: 0x0be7, + 0xa70: 0x0beb, 0xa71: 0x0bef, 0xa72: 0x0bfb, 0xa73: 0x0bff, 0xa74: 0x0c17, 0xa75: 0x0c1f, + 0xa76: 0x0c2f, 0xa77: 0x0c43, 0xa78: 0x16ba, 0xa79: 0x0c3f, 0xa7a: 0x0c33, 0xa7b: 0x0c4b, + 0xa7c: 0x0c53, 0xa7d: 0x0c67, 0xa7e: 0x16bf, 0xa7f: 0x0c6f, + // Block 0x2a, offset 0xa80 + 0xa80: 0x0c63, 0xa81: 0x0c5b, 0xa82: 0x05ef, 0xa83: 0x0c77, 0xa84: 0x0c7f, 0xa85: 0x0c87, + 0xa86: 0x0c7b, 0xa87: 0x05f3, 0xa88: 0x0c97, 0xa89: 0x0c9f, 0xa8a: 0x16c4, 0xa8b: 0x0ccb, + 0xa8c: 0x0cff, 0xa8d: 0x0cdb, 0xa8e: 0x05ff, 0xa8f: 0x0ce7, 0xa90: 0x05fb, 0xa91: 0x05f7, + 0xa92: 0x07c3, 0xa93: 0x07c7, 0xa94: 0x0d03, 0xa95: 0x0ceb, 0xa96: 0x11ab, 0xa97: 0x0663, + 0xa98: 0x0d0f, 0xa99: 0x0d13, 0xa9a: 0x0d17, 0xa9b: 0x0d2b, 0xa9c: 0x0d23, 0xa9d: 0x16dd, + 0xa9e: 0x0603, 0xa9f: 0x0d3f, 0xaa0: 0x0d33, 0xaa1: 0x0d4f, 0xaa2: 0x0d57, 0xaa3: 0x16e7, + 0xaa4: 0x0d5b, 0xaa5: 0x0d47, 0xaa6: 0x0d63, 0xaa7: 0x0607, 0xaa8: 0x0d67, 0xaa9: 0x0d6b, + 0xaaa: 0x0d6f, 0xaab: 0x0d7b, 0xaac: 0x16ec, 0xaad: 0x0d83, 0xaae: 0x060b, 0xaaf: 0x0d8f, + 0xab0: 0x16f1, 0xab1: 0x0d93, 0xab2: 0x060f, 0xab3: 0x0d9f, 0xab4: 0x0dab, 0xab5: 0x0db7, + 0xab6: 0x0dbb, 0xab7: 0x16f6, 0xab8: 0x168d, 0xab9: 0x16fb, 0xaba: 0x0ddb, 0xabb: 0x1700, + 0xabc: 0x0de7, 0xabd: 0x0def, 0xabe: 0x0ddf, 0xabf: 0x0dfb, + // Block 0x2b, offset 0xac0 + 0xac0: 0x0e0b, 0xac1: 0x0e1b, 0xac2: 0x0e0f, 0xac3: 0x0e13, 0xac4: 0x0e1f, 0xac5: 0x0e23, + 0xac6: 0x1705, 0xac7: 0x0e07, 0xac8: 0x0e3b, 0xac9: 0x0e3f, 0xaca: 0x0613, 0xacb: 0x0e53, + 0xacc: 0x0e4f, 0xacd: 0x170a, 0xace: 0x0e33, 0xacf: 0x0e6f, 0xad0: 0x170f, 0xad1: 0x1714, + 0xad2: 0x0e73, 0xad3: 0x0e87, 0xad4: 0x0e83, 0xad5: 0x0e7f, 0xad6: 0x0617, 0xad7: 0x0e8b, + 0xad8: 0x0e9b, 0xad9: 0x0e97, 0xada: 0x0ea3, 0xadb: 0x1651, 0xadc: 0x0eb3, 0xadd: 0x1719, + 0xade: 0x0ebf, 0xadf: 0x1723, 0xae0: 0x0ed3, 0xae1: 0x0edf, 0xae2: 0x0ef3, 0xae3: 0x1728, + 0xae4: 0x0f07, 0xae5: 0x0f0b, 0xae6: 0x172d, 0xae7: 0x1732, 0xae8: 0x0f27, 0xae9: 0x0f37, + 0xaea: 0x061b, 0xaeb: 0x0f3b, 0xaec: 0x061f, 0xaed: 0x061f, 0xaee: 0x0f53, 0xaef: 0x0f57, + 0xaf0: 0x0f5f, 0xaf1: 0x0f63, 0xaf2: 0x0f6f, 0xaf3: 0x0623, 0xaf4: 0x0f87, 0xaf5: 0x1737, + 0xaf6: 0x0fa3, 0xaf7: 0x173c, 0xaf8: 0x0faf, 0xaf9: 0x16a1, 0xafa: 0x0fbf, 0xafb: 0x1741, + 0xafc: 0x1746, 0xafd: 0x174b, 0xafe: 0x0627, 0xaff: 0x062b, + // Block 0x2c, offset 0xb00 + 0xb00: 0x0ff7, 0xb01: 0x1755, 0xb02: 0x1750, 0xb03: 0x175a, 0xb04: 0x175f, 0xb05: 0x0fff, + 0xb06: 0x1003, 0xb07: 0x1003, 0xb08: 0x100b, 0xb09: 0x0633, 0xb0a: 0x100f, 0xb0b: 0x0637, + 0xb0c: 0x063b, 0xb0d: 0x1769, 0xb0e: 0x1023, 0xb0f: 0x102b, 0xb10: 0x1037, 0xb11: 0x063f, + 0xb12: 0x176e, 0xb13: 0x105b, 0xb14: 0x1773, 0xb15: 0x1778, 0xb16: 0x107b, 0xb17: 0x1093, + 0xb18: 0x0643, 0xb19: 0x109b, 0xb1a: 0x109f, 0xb1b: 0x10a3, 0xb1c: 0x177d, 0xb1d: 0x1782, + 0xb1e: 0x1782, 0xb1f: 0x10bb, 0xb20: 0x0647, 0xb21: 0x1787, 0xb22: 0x10cf, 0xb23: 0x10d3, + 0xb24: 0x064b, 0xb25: 0x178c, 0xb26: 0x10ef, 0xb27: 0x064f, 0xb28: 0x10ff, 0xb29: 0x10f7, + 0xb2a: 0x1107, 0xb2b: 0x1796, 0xb2c: 0x111f, 0xb2d: 0x0653, 0xb2e: 0x112b, 0xb2f: 0x1133, + 0xb30: 0x1143, 0xb31: 0x0657, 0xb32: 0x17a0, 0xb33: 0x17a5, 0xb34: 0x065b, 0xb35: 0x17aa, + 0xb36: 0x115b, 0xb37: 0x17af, 0xb38: 0x1167, 0xb39: 0x1173, 0xb3a: 0x117b, 0xb3b: 0x17b4, + 0xb3c: 0x17b9, 0xb3d: 0x118f, 0xb3e: 0x17be, 0xb3f: 0x1197, + // Block 0x2d, offset 0xb40 + 0xb40: 0x16ce, 0xb41: 0x065f, 0xb42: 0x11af, 0xb43: 0x11b3, 0xb44: 0x0667, 0xb45: 0x11b7, + 0xb46: 0x0a33, 0xb47: 0x17c3, 0xb48: 0x17c8, 0xb49: 0x16d3, 0xb4a: 0x16d8, 0xb4b: 0x11d7, + 0xb4c: 0x11db, 0xb4d: 0x13f3, 0xb4e: 0x066b, 0xb4f: 0x1207, 0xb50: 0x1203, 0xb51: 0x120b, + 0xb52: 0x083f, 0xb53: 0x120f, 0xb54: 0x1213, 0xb55: 0x1217, 0xb56: 0x121f, 0xb57: 0x17cd, + 0xb58: 0x121b, 0xb59: 0x1223, 0xb5a: 0x1237, 0xb5b: 0x123b, 0xb5c: 0x1227, 0xb5d: 0x123f, + 0xb5e: 0x1253, 0xb5f: 0x1267, 0xb60: 0x1233, 0xb61: 0x1247, 0xb62: 0x124b, 0xb63: 0x124f, + 0xb64: 0x17d2, 0xb65: 0x17dc, 0xb66: 0x17d7, 0xb67: 0x066f, 0xb68: 0x126f, 0xb69: 0x1273, + 0xb6a: 0x127b, 0xb6b: 0x17f0, 0xb6c: 0x127f, 0xb6d: 0x17e1, 0xb6e: 0x0673, 0xb6f: 0x0677, + 0xb70: 0x17e6, 0xb71: 0x17eb, 0xb72: 0x067b, 0xb73: 0x129f, 0xb74: 0x12a3, 0xb75: 0x12a7, + 0xb76: 0x12ab, 0xb77: 0x12b7, 0xb78: 0x12b3, 0xb79: 0x12bf, 0xb7a: 0x12bb, 0xb7b: 0x12cb, + 0xb7c: 0x12c3, 0xb7d: 0x12c7, 0xb7e: 0x12cf, 0xb7f: 0x067f, + // Block 0x2e, offset 0xb80 + 0xb80: 0x12d7, 0xb81: 0x12db, 0xb82: 0x0683, 0xb83: 0x12eb, 0xb84: 0x12ef, 0xb85: 0x17f5, + 0xb86: 0x12fb, 0xb87: 0x12ff, 0xb88: 0x0687, 0xb89: 0x130b, 0xb8a: 0x05bb, 0xb8b: 0x17fa, + 0xb8c: 0x17ff, 0xb8d: 0x068b, 0xb8e: 0x068f, 0xb8f: 0x1337, 0xb90: 0x134f, 0xb91: 0x136b, + 0xb92: 0x137b, 0xb93: 0x1804, 0xb94: 0x138f, 0xb95: 0x1393, 0xb96: 0x13ab, 0xb97: 0x13b7, + 0xb98: 0x180e, 0xb99: 0x1660, 0xb9a: 0x13c3, 0xb9b: 0x13bf, 0xb9c: 0x13cb, 0xb9d: 0x1665, + 0xb9e: 0x13d7, 0xb9f: 0x13e3, 0xba0: 0x1813, 0xba1: 0x1818, 0xba2: 0x1423, 0xba3: 0x142f, + 0xba4: 0x1437, 0xba5: 0x181d, 0xba6: 0x143b, 0xba7: 0x1467, 0xba8: 0x1473, 0xba9: 0x1477, + 0xbaa: 0x146f, 0xbab: 0x1483, 0xbac: 0x1487, 0xbad: 0x1822, 0xbae: 0x1493, 0xbaf: 0x0693, + 0xbb0: 0x149b, 0xbb1: 0x1827, 0xbb2: 0x0697, 0xbb3: 0x14d3, 0xbb4: 0x0ac3, 0xbb5: 0x14eb, + 0xbb6: 0x182c, 0xbb7: 0x1836, 0xbb8: 0x069b, 0xbb9: 0x069f, 0xbba: 0x1513, 0xbbb: 0x183b, + 0xbbc: 0x06a3, 0xbbd: 0x1840, 0xbbe: 0x152b, 0xbbf: 0x152b, + // Block 0x2f, offset 0xbc0 + 0xbc0: 0x1533, 0xbc1: 0x1845, 0xbc2: 0x154b, 0xbc3: 0x06a7, 0xbc4: 0x155b, 0xbc5: 0x1567, + 0xbc6: 0x156f, 0xbc7: 0x1577, 0xbc8: 0x06ab, 0xbc9: 0x184a, 0xbca: 0x158b, 0xbcb: 0x15a7, + 0xbcc: 0x15b3, 0xbcd: 0x06af, 0xbce: 0x06b3, 0xbcf: 0x15b7, 0xbd0: 0x184f, 0xbd1: 0x06b7, + 0xbd2: 0x1854, 0xbd3: 0x1859, 0xbd4: 0x185e, 0xbd5: 0x15db, 0xbd6: 0x06bb, 0xbd7: 0x15ef, + 0xbd8: 0x15f7, 0xbd9: 0x15fb, 0xbda: 0x1603, 0xbdb: 0x160b, 0xbdc: 0x1613, 0xbdd: 0x1868, +} + +// nfcIndex: 22 blocks, 1408 entries, 1408 bytes +// Block 0 is the zero block. +var nfcIndex = [1408]uint8{ + // Block 0x0, offset 0x0 + // Block 0x1, offset 0x40 + // Block 0x2, offset 0x80 + // Block 0x3, offset 0xc0 + 0xc2: 0x2e, 0xc3: 0x01, 0xc4: 0x02, 0xc5: 0x03, 0xc6: 0x2f, 0xc7: 0x04, + 0xc8: 0x05, 0xca: 0x30, 0xcb: 0x31, 0xcc: 0x06, 0xcd: 0x07, 0xce: 0x08, 0xcf: 0x32, + 0xd0: 0x09, 0xd1: 0x33, 0xd2: 0x34, 0xd3: 0x0a, 0xd6: 0x0b, 0xd7: 0x35, + 0xd8: 0x36, 0xd9: 0x0c, 0xdb: 0x37, 0xdc: 0x38, 0xdd: 0x39, 0xdf: 0x3a, + 0xe0: 0x02, 0xe1: 0x03, 0xe2: 0x04, 0xe3: 0x05, + 0xea: 0x06, 0xeb: 0x07, 0xec: 0x08, 0xed: 0x09, 0xef: 0x0a, + 0xf0: 0x13, + // Block 0x4, offset 0x100 + 0x120: 0x3b, 0x121: 0x3c, 0x123: 0x0d, 0x124: 0x3d, 0x125: 0x3e, 0x126: 0x3f, 0x127: 0x40, + 0x128: 0x41, 0x129: 0x42, 0x12a: 0x43, 0x12b: 0x44, 0x12c: 0x3f, 0x12d: 0x45, 0x12e: 0x46, 0x12f: 0x47, + 0x131: 0x48, 0x132: 0x49, 0x133: 0x4a, 0x134: 0x4b, 0x135: 0x4c, 0x137: 0x4d, + 0x138: 0x4e, 0x139: 0x4f, 0x13a: 0x50, 0x13b: 0x51, 0x13c: 0x52, 0x13d: 0x53, 0x13e: 0x54, 0x13f: 0x55, + // Block 0x5, offset 0x140 + 0x140: 0x56, 0x142: 0x57, 0x144: 0x58, 0x145: 0x59, 0x146: 0x5a, 0x147: 0x5b, + 0x14d: 0x5c, + 0x15c: 0x5d, 0x15f: 0x5e, + 0x162: 0x5f, 0x164: 0x60, + 0x168: 0x61, 0x169: 0x62, 0x16a: 0x63, 0x16c: 0x0e, 0x16d: 0x64, 0x16e: 0x65, 0x16f: 0x66, + 0x170: 0x67, 0x173: 0x68, 0x177: 0x0f, + 0x178: 0x10, 0x179: 0x11, 0x17a: 0x12, 0x17b: 0x13, 0x17c: 0x14, 0x17d: 0x15, 0x17e: 0x16, 0x17f: 0x17, + // Block 0x6, offset 0x180 + 0x180: 0x69, 0x183: 0x6a, 0x184: 0x6b, 0x186: 0x6c, 0x187: 0x6d, + 0x188: 0x6e, 0x189: 0x18, 0x18a: 0x19, 0x18b: 0x6f, 0x18c: 0x70, + 0x1ab: 0x71, + 0x1b3: 0x72, 0x1b5: 0x73, 0x1b7: 0x74, + // Block 0x7, offset 0x1c0 + 0x1c0: 0x75, 0x1c1: 0x1a, 0x1c2: 0x1b, 0x1c3: 0x1c, 0x1c4: 0x76, 0x1c5: 0x77, + 0x1c9: 0x78, 0x1cc: 0x79, 0x1cd: 0x7a, + // Block 0x8, offset 0x200 + 0x219: 0x7b, 0x21a: 0x7c, 0x21b: 0x7d, + 0x220: 0x7e, 0x223: 0x7f, 0x224: 0x80, 0x225: 0x81, 0x226: 0x82, 0x227: 0x83, + 0x22a: 0x84, 0x22b: 0x85, 0x22f: 0x86, + 0x230: 0x87, 0x231: 0x88, 0x232: 0x89, 0x233: 0x8a, 0x234: 0x8b, 0x235: 0x8c, 0x236: 0x8d, 0x237: 0x87, + 0x238: 0x88, 0x239: 0x89, 0x23a: 0x8a, 0x23b: 0x8b, 0x23c: 0x8c, 0x23d: 0x8d, 0x23e: 0x87, 0x23f: 0x88, + // Block 0x9, offset 0x240 + 0x240: 0x89, 0x241: 0x8a, 0x242: 0x8b, 0x243: 0x8c, 0x244: 0x8d, 0x245: 0x87, 0x246: 0x88, 0x247: 0x89, + 0x248: 0x8a, 0x249: 0x8b, 0x24a: 0x8c, 0x24b: 0x8d, 0x24c: 0x87, 0x24d: 0x88, 0x24e: 0x89, 0x24f: 0x8a, + 0x250: 0x8b, 0x251: 0x8c, 0x252: 0x8d, 0x253: 0x87, 0x254: 0x88, 0x255: 0x89, 0x256: 0x8a, 0x257: 0x8b, + 0x258: 0x8c, 0x259: 0x8d, 0x25a: 0x87, 0x25b: 0x88, 0x25c: 0x89, 0x25d: 0x8a, 0x25e: 0x8b, 0x25f: 0x8c, + 0x260: 0x8d, 0x261: 0x87, 0x262: 0x88, 0x263: 0x89, 0x264: 0x8a, 0x265: 0x8b, 0x266: 0x8c, 0x267: 0x8d, + 0x268: 0x87, 0x269: 0x88, 0x26a: 0x89, 0x26b: 0x8a, 0x26c: 0x8b, 0x26d: 0x8c, 0x26e: 0x8d, 0x26f: 0x87, + 0x270: 0x88, 0x271: 0x89, 0x272: 0x8a, 0x273: 0x8b, 0x274: 0x8c, 0x275: 0x8d, 0x276: 0x87, 0x277: 0x88, + 0x278: 0x89, 0x279: 0x8a, 0x27a: 0x8b, 0x27b: 0x8c, 0x27c: 0x8d, 0x27d: 0x87, 0x27e: 0x88, 0x27f: 0x89, + // Block 0xa, offset 0x280 + 0x280: 0x8a, 0x281: 0x8b, 0x282: 0x8c, 0x283: 0x8d, 0x284: 0x87, 0x285: 0x88, 0x286: 0x89, 0x287: 0x8a, + 0x288: 0x8b, 0x289: 0x8c, 0x28a: 0x8d, 0x28b: 0x87, 0x28c: 0x88, 0x28d: 0x89, 0x28e: 0x8a, 0x28f: 0x8b, + 0x290: 0x8c, 0x291: 0x8d, 0x292: 0x87, 0x293: 0x88, 0x294: 0x89, 0x295: 0x8a, 0x296: 0x8b, 0x297: 0x8c, + 0x298: 0x8d, 0x299: 0x87, 0x29a: 0x88, 0x29b: 0x89, 0x29c: 0x8a, 0x29d: 0x8b, 0x29e: 0x8c, 0x29f: 0x8d, + 0x2a0: 0x87, 0x2a1: 0x88, 0x2a2: 0x89, 0x2a3: 0x8a, 0x2a4: 0x8b, 0x2a5: 0x8c, 0x2a6: 0x8d, 0x2a7: 0x87, + 0x2a8: 0x88, 0x2a9: 0x89, 0x2aa: 0x8a, 0x2ab: 0x8b, 0x2ac: 0x8c, 0x2ad: 0x8d, 0x2ae: 0x87, 0x2af: 0x88, + 0x2b0: 0x89, 0x2b1: 0x8a, 0x2b2: 0x8b, 0x2b3: 0x8c, 0x2b4: 0x8d, 0x2b5: 0x87, 0x2b6: 0x88, 0x2b7: 0x89, + 0x2b8: 0x8a, 0x2b9: 0x8b, 0x2ba: 0x8c, 0x2bb: 0x8d, 0x2bc: 0x87, 0x2bd: 0x88, 0x2be: 0x89, 0x2bf: 0x8a, + // Block 0xb, offset 0x2c0 + 0x2c0: 0x8b, 0x2c1: 0x8c, 0x2c2: 0x8d, 0x2c3: 0x87, 0x2c4: 0x88, 0x2c5: 0x89, 0x2c6: 0x8a, 0x2c7: 0x8b, + 0x2c8: 0x8c, 0x2c9: 0x8d, 0x2ca: 0x87, 0x2cb: 0x88, 0x2cc: 0x89, 0x2cd: 0x8a, 0x2ce: 0x8b, 0x2cf: 0x8c, + 0x2d0: 0x8d, 0x2d1: 0x87, 0x2d2: 0x88, 0x2d3: 0x89, 0x2d4: 0x8a, 0x2d5: 0x8b, 0x2d6: 0x8c, 0x2d7: 0x8d, + 0x2d8: 0x87, 0x2d9: 0x88, 0x2da: 0x89, 0x2db: 0x8a, 0x2dc: 0x8b, 0x2dd: 0x8c, 0x2de: 0x8e, + // Block 0xc, offset 0x300 + 0x324: 0x1d, 0x325: 0x1e, 0x326: 0x1f, 0x327: 0x20, + 0x328: 0x21, 0x329: 0x22, 0x32a: 0x23, 0x32b: 0x24, 0x32c: 0x8f, 0x32d: 0x90, 0x32e: 0x91, + 0x331: 0x92, 0x332: 0x93, 0x333: 0x94, 0x334: 0x95, + 0x338: 0x96, 0x339: 0x97, 0x33a: 0x98, 0x33b: 0x99, 0x33e: 0x9a, 0x33f: 0x9b, + // Block 0xd, offset 0x340 + 0x347: 0x9c, + 0x34b: 0x9d, 0x34d: 0x9e, + 0x368: 0x9f, 0x36b: 0xa0, + 0x374: 0xa1, + 0x37d: 0xa2, + // Block 0xe, offset 0x380 + 0x381: 0xa3, 0x382: 0xa4, 0x384: 0xa5, 0x385: 0x82, 0x387: 0xa6, + 0x388: 0xa7, 0x38b: 0xa8, 0x38c: 0xa9, 0x38d: 0xaa, + 0x391: 0xab, 0x392: 0xac, 0x393: 0xad, 0x396: 0xae, 0x397: 0xaf, + 0x398: 0x73, 0x39a: 0xb0, 0x39c: 0xb1, + 0x3a0: 0xb2, 0x3a7: 0xb3, + 0x3a8: 0xb4, 0x3a9: 0xb5, 0x3aa: 0xb6, + 0x3b0: 0x73, 0x3b5: 0xb7, 0x3b6: 0xb8, + // Block 0xf, offset 0x3c0 + 0x3eb: 0xb9, 0x3ec: 0xba, + // Block 0x10, offset 0x400 + 0x432: 0xbb, + // Block 0x11, offset 0x440 + 0x445: 0xbc, 0x446: 0xbd, 0x447: 0xbe, + 0x449: 0xbf, + // Block 0x12, offset 0x480 + 0x480: 0xc0, 0x484: 0xba, + 0x48b: 0xc1, + 0x4a3: 0xc2, 0x4a5: 0xc3, + // Block 0x13, offset 0x4c0 + 0x4c8: 0xc4, + // Block 0x14, offset 0x500 + 0x520: 0x25, 0x521: 0x26, 0x522: 0x27, 0x523: 0x28, 0x524: 0x29, 0x525: 0x2a, 0x526: 0x2b, 0x527: 0x2c, + 0x528: 0x2d, + // Block 0x15, offset 0x540 + 0x550: 0x0b, 0x551: 0x0c, 0x556: 0x0d, + 0x55b: 0x0e, 0x55d: 0x0f, 0x55e: 0x10, 0x55f: 0x11, + 0x56f: 0x12, +} + +// nfcSparseOffset: 151 entries, 302 bytes +var nfcSparseOffset = []uint16{0x0, 0x5, 0x9, 0xb, 0xd, 0x18, 0x28, 0x2a, 0x2f, 0x3a, 0x49, 0x56, 0x5e, 0x63, 0x68, 0x6a, 0x72, 0x79, 0x7c, 0x84, 0x88, 0x8c, 0x8e, 0x90, 0x99, 0x9d, 0xa4, 0xa9, 0xac, 0xb6, 0xb9, 0xc0, 0xc8, 0xcb, 0xcd, 0xd0, 0xd2, 0xd7, 0xe8, 0xf4, 0xf6, 0xfc, 0xfe, 0x100, 0x102, 0x104, 0x106, 0x108, 0x10b, 0x10e, 0x110, 0x113, 0x116, 0x11a, 0x11f, 0x128, 0x12a, 0x12d, 0x12f, 0x13a, 0x13e, 0x14c, 0x14f, 0x155, 0x15b, 0x166, 0x16a, 0x16c, 0x16e, 0x170, 0x172, 0x174, 0x17a, 0x17e, 0x180, 0x182, 0x18a, 0x18e, 0x191, 0x193, 0x195, 0x197, 0x19a, 0x19c, 0x19e, 0x1a0, 0x1a2, 0x1a8, 0x1ab, 0x1ad, 0x1b4, 0x1ba, 0x1c0, 0x1c8, 0x1ce, 0x1d4, 0x1da, 0x1de, 0x1ec, 0x1f5, 0x1f8, 0x1fb, 0x1fd, 0x200, 0x202, 0x206, 0x20b, 0x20d, 0x20f, 0x214, 0x21a, 0x21c, 0x21e, 0x220, 0x226, 0x229, 0x22b, 0x231, 0x234, 0x23c, 0x243, 0x246, 0x249, 0x24b, 0x24e, 0x256, 0x25a, 0x261, 0x264, 0x26a, 0x26c, 0x26f, 0x271, 0x274, 0x276, 0x278, 0x27a, 0x27c, 0x27f, 0x281, 0x283, 0x285, 0x287, 0x294, 0x29e, 0x2a0, 0x2a2, 0x2a8, 0x2aa, 0x2ac, 0x2af} + +// nfcSparseValues: 689 entries, 2756 bytes +var nfcSparseValues = [689]valueRange{ + // Block 0x0, offset 0x0 + {value: 0x0000, lo: 0x04}, + {value: 0xa100, lo: 0xa8, hi: 0xa8}, + {value: 0x8100, lo: 0xaf, hi: 0xaf}, + {value: 0x8100, lo: 0xb4, hi: 0xb4}, + {value: 0x8100, lo: 0xb8, hi: 0xb8}, + // Block 0x1, offset 0x5 + {value: 0x0091, lo: 0x03}, + {value: 0x46e5, lo: 0xa0, hi: 0xa1}, + {value: 0x4717, lo: 0xaf, hi: 0xb0}, + {value: 0xa000, lo: 0xb7, hi: 0xb7}, + // Block 0x2, offset 0x9 + {value: 0x0000, lo: 0x01}, + {value: 0xa000, lo: 0x92, hi: 0x92}, + // Block 0x3, offset 0xb + {value: 0x0000, lo: 0x01}, + {value: 0x8100, lo: 0x98, hi: 0x9d}, + // Block 0x4, offset 0xd + {value: 0x0006, lo: 0x0a}, + {value: 0xa000, lo: 0x81, hi: 0x81}, + {value: 0xa000, lo: 0x85, hi: 0x85}, + {value: 0xa000, lo: 0x89, hi: 0x89}, + {value: 0x4843, lo: 0x8a, hi: 0x8a}, + {value: 0x4861, lo: 0x8b, hi: 0x8b}, + {value: 0x36ca, lo: 0x8c, hi: 0x8c}, + {value: 0x36e2, lo: 0x8d, hi: 0x8d}, + {value: 0x4879, lo: 0x8e, hi: 0x8e}, + {value: 0xa000, lo: 0x92, hi: 0x92}, + {value: 0x3700, lo: 0x93, hi: 0x94}, + // Block 0x5, offset 0x18 + {value: 0x0000, lo: 0x0f}, + {value: 0xa000, lo: 0x83, hi: 0x83}, + {value: 0xa000, lo: 0x87, hi: 0x87}, + {value: 0xa000, lo: 0x8b, hi: 0x8b}, + {value: 0xa000, lo: 0x8d, hi: 0x8d}, + {value: 0x37a8, lo: 0x90, hi: 0x90}, + {value: 0x37b4, lo: 0x91, hi: 0x91}, + {value: 0x37a2, lo: 0x93, hi: 0x93}, + {value: 0xa000, lo: 0x96, hi: 0x96}, + {value: 0x381a, lo: 0x97, hi: 0x97}, + {value: 0x37e4, lo: 0x9c, hi: 0x9c}, + {value: 0x37cc, lo: 0x9d, hi: 0x9d}, + {value: 0x37f6, lo: 0x9e, hi: 0x9e}, + {value: 0xa000, lo: 0xb4, hi: 0xb5}, + {value: 0x3820, lo: 0xb6, hi: 0xb6}, + {value: 0x3826, lo: 0xb7, hi: 0xb7}, + // Block 0x6, offset 0x28 + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0x83, hi: 0x87}, + // Block 0x7, offset 0x2a + {value: 0x0001, lo: 0x04}, + {value: 0x8113, lo: 0x81, hi: 0x82}, + {value: 0x8132, lo: 0x84, hi: 0x84}, + {value: 0x812d, lo: 0x85, hi: 0x85}, + {value: 0x810d, lo: 0x87, hi: 0x87}, + // Block 0x8, offset 0x2f + {value: 0x0000, lo: 0x0a}, + {value: 0x8132, lo: 0x90, hi: 0x97}, + {value: 0x8119, lo: 0x98, hi: 0x98}, + {value: 0x811a, lo: 0x99, hi: 0x99}, + {value: 0x811b, lo: 0x9a, hi: 0x9a}, + {value: 0x3844, lo: 0xa2, hi: 0xa2}, + {value: 0x384a, lo: 0xa3, hi: 0xa3}, + {value: 0x3856, lo: 0xa4, hi: 0xa4}, + {value: 0x3850, lo: 0xa5, hi: 0xa5}, + {value: 0x385c, lo: 0xa6, hi: 0xa6}, + {value: 0xa000, lo: 0xa7, hi: 0xa7}, + // Block 0x9, offset 0x3a + {value: 0x0000, lo: 0x0e}, + {value: 0x386e, lo: 0x80, hi: 0x80}, + {value: 0xa000, lo: 0x81, hi: 0x81}, + {value: 0x3862, lo: 0x82, hi: 0x82}, + {value: 0xa000, lo: 0x92, hi: 0x92}, + {value: 0x3868, lo: 0x93, hi: 0x93}, + {value: 0xa000, lo: 0x95, hi: 0x95}, + {value: 0x8132, lo: 0x96, hi: 0x9c}, + {value: 0x8132, lo: 0x9f, hi: 0xa2}, + {value: 0x812d, lo: 0xa3, hi: 0xa3}, + {value: 0x8132, lo: 0xa4, hi: 0xa4}, + {value: 0x8132, lo: 0xa7, hi: 0xa8}, + {value: 0x812d, lo: 0xaa, hi: 0xaa}, + {value: 0x8132, lo: 0xab, hi: 0xac}, + {value: 0x812d, lo: 0xad, hi: 0xad}, + // Block 0xa, offset 0x49 + {value: 0x0000, lo: 0x0c}, + {value: 0x811f, lo: 0x91, hi: 0x91}, + {value: 0x8132, lo: 0xb0, hi: 0xb0}, + {value: 0x812d, lo: 0xb1, hi: 0xb1}, + {value: 0x8132, lo: 0xb2, hi: 0xb3}, + {value: 0x812d, lo: 0xb4, hi: 0xb4}, + {value: 0x8132, lo: 0xb5, hi: 0xb6}, + {value: 0x812d, lo: 0xb7, hi: 0xb9}, + {value: 0x8132, lo: 0xba, hi: 0xba}, + {value: 0x812d, lo: 0xbb, hi: 0xbc}, + {value: 0x8132, lo: 0xbd, hi: 0xbd}, + {value: 0x812d, lo: 0xbe, hi: 0xbe}, + {value: 0x8132, lo: 0xbf, hi: 0xbf}, + // Block 0xb, offset 0x56 + {value: 0x0005, lo: 0x07}, + {value: 0x8132, lo: 0x80, hi: 0x80}, + {value: 0x8132, lo: 0x81, hi: 0x81}, + {value: 0x812d, lo: 0x82, hi: 0x83}, + {value: 0x812d, lo: 0x84, hi: 0x85}, + {value: 0x812d, lo: 0x86, hi: 0x87}, + {value: 0x812d, lo: 0x88, hi: 0x89}, + {value: 0x8132, lo: 0x8a, hi: 0x8a}, + // Block 0xc, offset 0x5e + {value: 0x0000, lo: 0x04}, + {value: 0x8132, lo: 0xab, hi: 0xb1}, + {value: 0x812d, lo: 0xb2, hi: 0xb2}, + {value: 0x8132, lo: 0xb3, hi: 0xb3}, + {value: 0x812d, lo: 0xbd, hi: 0xbd}, + // Block 0xd, offset 0x63 + {value: 0x0000, lo: 0x04}, + {value: 0x8132, lo: 0x96, hi: 0x99}, + {value: 0x8132, lo: 0x9b, hi: 0xa3}, + {value: 0x8132, lo: 0xa5, hi: 0xa7}, + {value: 0x8132, lo: 0xa9, hi: 0xad}, + // Block 0xe, offset 0x68 + {value: 0x0000, lo: 0x01}, + {value: 0x812d, lo: 0x99, hi: 0x9b}, + // Block 0xf, offset 0x6a + {value: 0x0000, lo: 0x07}, + {value: 0xa000, lo: 0xa8, hi: 0xa8}, + {value: 0x3edb, lo: 0xa9, hi: 0xa9}, + {value: 0xa000, lo: 0xb0, hi: 0xb0}, + {value: 0x3ee3, lo: 0xb1, hi: 0xb1}, + {value: 0xa000, lo: 0xb3, hi: 0xb3}, + {value: 0x3eeb, lo: 0xb4, hi: 0xb4}, + {value: 0x9902, lo: 0xbc, hi: 0xbc}, + // Block 0x10, offset 0x72 + {value: 0x0008, lo: 0x06}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x8132, lo: 0x91, hi: 0x91}, + {value: 0x812d, lo: 0x92, hi: 0x92}, + {value: 0x8132, lo: 0x93, hi: 0x93}, + {value: 0x8132, lo: 0x94, hi: 0x94}, + {value: 0x451f, lo: 0x98, hi: 0x9f}, + // Block 0x11, offset 0x79 + {value: 0x0000, lo: 0x02}, + {value: 0x8102, lo: 0xbc, hi: 0xbc}, + {value: 0x9900, lo: 0xbe, hi: 0xbe}, + // Block 0x12, offset 0x7c + {value: 0x0008, lo: 0x07}, + {value: 0xa000, lo: 0x87, hi: 0x87}, + {value: 0x2ca1, lo: 0x8b, hi: 0x8c}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x9900, lo: 0x97, hi: 0x97}, + {value: 0x455f, lo: 0x9c, hi: 0x9d}, + {value: 0x456f, lo: 0x9f, hi: 0x9f}, + {value: 0x8132, lo: 0xbe, hi: 0xbe}, + // Block 0x13, offset 0x84 + {value: 0x0000, lo: 0x03}, + {value: 0x4597, lo: 0xb3, hi: 0xb3}, + {value: 0x459f, lo: 0xb6, hi: 0xb6}, + {value: 0x8102, lo: 0xbc, hi: 0xbc}, + // Block 0x14, offset 0x88 + {value: 0x0008, lo: 0x03}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x4577, lo: 0x99, hi: 0x9b}, + {value: 0x458f, lo: 0x9e, hi: 0x9e}, + // Block 0x15, offset 0x8c + {value: 0x0000, lo: 0x01}, + {value: 0x8102, lo: 0xbc, hi: 0xbc}, + // Block 0x16, offset 0x8e + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + // Block 0x17, offset 0x90 + {value: 0x0000, lo: 0x08}, + {value: 0xa000, lo: 0x87, hi: 0x87}, + {value: 0x2cb9, lo: 0x88, hi: 0x88}, + {value: 0x2cb1, lo: 0x8b, hi: 0x8b}, + {value: 0x2cc1, lo: 0x8c, hi: 0x8c}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x9900, lo: 0x96, hi: 0x97}, + {value: 0x45a7, lo: 0x9c, hi: 0x9c}, + {value: 0x45af, lo: 0x9d, hi: 0x9d}, + // Block 0x18, offset 0x99 + {value: 0x0000, lo: 0x03}, + {value: 0xa000, lo: 0x92, hi: 0x92}, + {value: 0x2cc9, lo: 0x94, hi: 0x94}, + {value: 0x9900, lo: 0xbe, hi: 0xbe}, + // Block 0x19, offset 0x9d + {value: 0x0000, lo: 0x06}, + {value: 0xa000, lo: 0x86, hi: 0x87}, + {value: 0x2cd1, lo: 0x8a, hi: 0x8a}, + {value: 0x2ce1, lo: 0x8b, hi: 0x8b}, + {value: 0x2cd9, lo: 0x8c, hi: 0x8c}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x9900, lo: 0x97, hi: 0x97}, + // Block 0x1a, offset 0xa4 + {value: 0x1801, lo: 0x04}, + {value: 0xa000, lo: 0x86, hi: 0x86}, + {value: 0x3ef3, lo: 0x88, hi: 0x88}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x8120, lo: 0x95, hi: 0x96}, + // Block 0x1b, offset 0xa9 + {value: 0x0000, lo: 0x02}, + {value: 0x8102, lo: 0xbc, hi: 0xbc}, + {value: 0xa000, lo: 0xbf, hi: 0xbf}, + // Block 0x1c, offset 0xac + {value: 0x0000, lo: 0x09}, + {value: 0x2ce9, lo: 0x80, hi: 0x80}, + {value: 0x9900, lo: 0x82, hi: 0x82}, + {value: 0xa000, lo: 0x86, hi: 0x86}, + {value: 0x2cf1, lo: 0x87, hi: 0x87}, + {value: 0x2cf9, lo: 0x88, hi: 0x88}, + {value: 0x2f53, lo: 0x8a, hi: 0x8a}, + {value: 0x2ddb, lo: 0x8b, hi: 0x8b}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x9900, lo: 0x95, hi: 0x96}, + // Block 0x1d, offset 0xb6 + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0xbb, hi: 0xbc}, + {value: 0x9900, lo: 0xbe, hi: 0xbe}, + // Block 0x1e, offset 0xb9 + {value: 0x0000, lo: 0x06}, + {value: 0xa000, lo: 0x86, hi: 0x87}, + {value: 0x2d01, lo: 0x8a, hi: 0x8a}, + {value: 0x2d11, lo: 0x8b, hi: 0x8b}, + {value: 0x2d09, lo: 0x8c, hi: 0x8c}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x9900, lo: 0x97, hi: 0x97}, + // Block 0x1f, offset 0xc0 + {value: 0x6be7, lo: 0x07}, + {value: 0x9904, lo: 0x8a, hi: 0x8a}, + {value: 0x9900, lo: 0x8f, hi: 0x8f}, + {value: 0xa000, lo: 0x99, hi: 0x99}, + {value: 0x3efb, lo: 0x9a, hi: 0x9a}, + {value: 0x2f5b, lo: 0x9c, hi: 0x9c}, + {value: 0x2de6, lo: 0x9d, hi: 0x9d}, + {value: 0x2d19, lo: 0x9e, hi: 0x9f}, + // Block 0x20, offset 0xc8 + {value: 0x0000, lo: 0x02}, + {value: 0x8122, lo: 0xb8, hi: 0xb9}, + {value: 0x8104, lo: 0xba, hi: 0xba}, + // Block 0x21, offset 0xcb + {value: 0x0000, lo: 0x01}, + {value: 0x8123, lo: 0x88, hi: 0x8b}, + // Block 0x22, offset 0xcd + {value: 0x0000, lo: 0x02}, + {value: 0x8124, lo: 0xb8, hi: 0xb9}, + {value: 0x8104, lo: 0xba, hi: 0xba}, + // Block 0x23, offset 0xd0 + {value: 0x0000, lo: 0x01}, + {value: 0x8125, lo: 0x88, hi: 0x8b}, + // Block 0x24, offset 0xd2 + {value: 0x0000, lo: 0x04}, + {value: 0x812d, lo: 0x98, hi: 0x99}, + {value: 0x812d, lo: 0xb5, hi: 0xb5}, + {value: 0x812d, lo: 0xb7, hi: 0xb7}, + {value: 0x812b, lo: 0xb9, hi: 0xb9}, + // Block 0x25, offset 0xd7 + {value: 0x0000, lo: 0x10}, + {value: 0x2647, lo: 0x83, hi: 0x83}, + {value: 0x264e, lo: 0x8d, hi: 0x8d}, + {value: 0x2655, lo: 0x92, hi: 0x92}, + {value: 0x265c, lo: 0x97, hi: 0x97}, + {value: 0x2663, lo: 0x9c, hi: 0x9c}, + {value: 0x2640, lo: 0xa9, hi: 0xa9}, + {value: 0x8126, lo: 0xb1, hi: 0xb1}, + {value: 0x8127, lo: 0xb2, hi: 0xb2}, + {value: 0x4a87, lo: 0xb3, hi: 0xb3}, + {value: 0x8128, lo: 0xb4, hi: 0xb4}, + {value: 0x4a90, lo: 0xb5, hi: 0xb5}, + {value: 0x45b7, lo: 0xb6, hi: 0xb6}, + {value: 0x8200, lo: 0xb7, hi: 0xb7}, + {value: 0x45bf, lo: 0xb8, hi: 0xb8}, + {value: 0x8200, lo: 0xb9, hi: 0xb9}, + {value: 0x8127, lo: 0xba, hi: 0xbd}, + // Block 0x26, offset 0xe8 + {value: 0x0000, lo: 0x0b}, + {value: 0x8127, lo: 0x80, hi: 0x80}, + {value: 0x4a99, lo: 0x81, hi: 0x81}, + {value: 0x8132, lo: 0x82, hi: 0x83}, + {value: 0x8104, lo: 0x84, hi: 0x84}, + {value: 0x8132, lo: 0x86, hi: 0x87}, + {value: 0x2671, lo: 0x93, hi: 0x93}, + {value: 0x2678, lo: 0x9d, hi: 0x9d}, + {value: 0x267f, lo: 0xa2, hi: 0xa2}, + {value: 0x2686, lo: 0xa7, hi: 0xa7}, + {value: 0x268d, lo: 0xac, hi: 0xac}, + {value: 0x266a, lo: 0xb9, hi: 0xb9}, + // Block 0x27, offset 0xf4 + {value: 0x0000, lo: 0x01}, + {value: 0x812d, lo: 0x86, hi: 0x86}, + // Block 0x28, offset 0xf6 + {value: 0x0000, lo: 0x05}, + {value: 0xa000, lo: 0xa5, hi: 0xa5}, + {value: 0x2d21, lo: 0xa6, hi: 0xa6}, + {value: 0x9900, lo: 0xae, hi: 0xae}, + {value: 0x8102, lo: 0xb7, hi: 0xb7}, + {value: 0x8104, lo: 0xb9, hi: 0xba}, + // Block 0x29, offset 0xfc + {value: 0x0000, lo: 0x01}, + {value: 0x812d, lo: 0x8d, hi: 0x8d}, + // Block 0x2a, offset 0xfe + {value: 0x0000, lo: 0x01}, + {value: 0xa000, lo: 0x80, hi: 0x92}, + // Block 0x2b, offset 0x100 + {value: 0x0000, lo: 0x01}, + {value: 0xb900, lo: 0xa1, hi: 0xb5}, + // Block 0x2c, offset 0x102 + {value: 0x0000, lo: 0x01}, + {value: 0x9900, lo: 0xa8, hi: 0xbf}, + // Block 0x2d, offset 0x104 + {value: 0x0000, lo: 0x01}, + {value: 0x9900, lo: 0x80, hi: 0x82}, + // Block 0x2e, offset 0x106 + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0x9d, hi: 0x9f}, + // Block 0x2f, offset 0x108 + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0x94, hi: 0x94}, + {value: 0x8104, lo: 0xb4, hi: 0xb4}, + // Block 0x30, offset 0x10b + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0x92, hi: 0x92}, + {value: 0x8132, lo: 0x9d, hi: 0x9d}, + // Block 0x31, offset 0x10e + {value: 0x0000, lo: 0x01}, + {value: 0x8131, lo: 0xa9, hi: 0xa9}, + // Block 0x32, offset 0x110 + {value: 0x0004, lo: 0x02}, + {value: 0x812e, lo: 0xb9, hi: 0xba}, + {value: 0x812d, lo: 0xbb, hi: 0xbb}, + // Block 0x33, offset 0x113 + {value: 0x0000, lo: 0x02}, + {value: 0x8132, lo: 0x97, hi: 0x97}, + {value: 0x812d, lo: 0x98, hi: 0x98}, + // Block 0x34, offset 0x116 + {value: 0x0000, lo: 0x03}, + {value: 0x8104, lo: 0xa0, hi: 0xa0}, + {value: 0x8132, lo: 0xb5, hi: 0xbc}, + {value: 0x812d, lo: 0xbf, hi: 0xbf}, + // Block 0x35, offset 0x11a + {value: 0x0000, lo: 0x04}, + {value: 0x8132, lo: 0xb0, hi: 0xb4}, + {value: 0x812d, lo: 0xb5, hi: 0xba}, + {value: 0x8132, lo: 0xbb, hi: 0xbc}, + {value: 0x812d, lo: 0xbd, hi: 0xbd}, + // Block 0x36, offset 0x11f + {value: 0x0000, lo: 0x08}, + {value: 0x2d69, lo: 0x80, hi: 0x80}, + {value: 0x2d71, lo: 0x81, hi: 0x81}, + {value: 0xa000, lo: 0x82, hi: 0x82}, + {value: 0x2d79, lo: 0x83, hi: 0x83}, + {value: 0x8104, lo: 0x84, hi: 0x84}, + {value: 0x8132, lo: 0xab, hi: 0xab}, + {value: 0x812d, lo: 0xac, hi: 0xac}, + {value: 0x8132, lo: 0xad, hi: 0xb3}, + // Block 0x37, offset 0x128 + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0xaa, hi: 0xab}, + // Block 0x38, offset 0x12a + {value: 0x0000, lo: 0x02}, + {value: 0x8102, lo: 0xa6, hi: 0xa6}, + {value: 0x8104, lo: 0xb2, hi: 0xb3}, + // Block 0x39, offset 0x12d + {value: 0x0000, lo: 0x01}, + {value: 0x8102, lo: 0xb7, hi: 0xb7}, + // Block 0x3a, offset 0x12f + {value: 0x0000, lo: 0x0a}, + {value: 0x8132, lo: 0x90, hi: 0x92}, + {value: 0x8101, lo: 0x94, hi: 0x94}, + {value: 0x812d, lo: 0x95, hi: 0x99}, + {value: 0x8132, lo: 0x9a, hi: 0x9b}, + {value: 0x812d, lo: 0x9c, hi: 0x9f}, + {value: 0x8132, lo: 0xa0, hi: 0xa0}, + {value: 0x8101, lo: 0xa2, hi: 0xa8}, + {value: 0x812d, lo: 0xad, hi: 0xad}, + {value: 0x8132, lo: 0xb4, hi: 0xb4}, + {value: 0x8132, lo: 0xb8, hi: 0xb9}, + // Block 0x3b, offset 0x13a + {value: 0x0004, lo: 0x03}, + {value: 0x0433, lo: 0x80, hi: 0x81}, + {value: 0x8100, lo: 0x97, hi: 0x97}, + {value: 0x8100, lo: 0xbe, hi: 0xbe}, + // Block 0x3c, offset 0x13e + {value: 0x0000, lo: 0x0d}, + {value: 0x8132, lo: 0x90, hi: 0x91}, + {value: 0x8101, lo: 0x92, hi: 0x93}, + {value: 0x8132, lo: 0x94, hi: 0x97}, + {value: 0x8101, lo: 0x98, hi: 0x9a}, + {value: 0x8132, lo: 0x9b, hi: 0x9c}, + {value: 0x8132, lo: 0xa1, hi: 0xa1}, + {value: 0x8101, lo: 0xa5, hi: 0xa6}, + {value: 0x8132, lo: 0xa7, hi: 0xa7}, + {value: 0x812d, lo: 0xa8, hi: 0xa8}, + {value: 0x8132, lo: 0xa9, hi: 0xa9}, + {value: 0x8101, lo: 0xaa, hi: 0xab}, + {value: 0x812d, lo: 0xac, hi: 0xaf}, + {value: 0x8132, lo: 0xb0, hi: 0xb0}, + // Block 0x3d, offset 0x14c + {value: 0x427e, lo: 0x02}, + {value: 0x01b8, lo: 0xa6, hi: 0xa6}, + {value: 0x0057, lo: 0xaa, hi: 0xab}, + // Block 0x3e, offset 0x14f + {value: 0x0007, lo: 0x05}, + {value: 0xa000, lo: 0x90, hi: 0x90}, + {value: 0xa000, lo: 0x92, hi: 0x92}, + {value: 0xa000, lo: 0x94, hi: 0x94}, + {value: 0x3bbc, lo: 0x9a, hi: 0x9b}, + {value: 0x3bca, lo: 0xae, hi: 0xae}, + // Block 0x3f, offset 0x155 + {value: 0x000e, lo: 0x05}, + {value: 0x3bd1, lo: 0x8d, hi: 0x8e}, + {value: 0x3bd8, lo: 0x8f, hi: 0x8f}, + {value: 0xa000, lo: 0x90, hi: 0x90}, + {value: 0xa000, lo: 0x92, hi: 0x92}, + {value: 0xa000, lo: 0x94, hi: 0x94}, + // Block 0x40, offset 0x15b + {value: 0x6405, lo: 0x0a}, + {value: 0xa000, lo: 0x83, hi: 0x83}, + {value: 0x3be6, lo: 0x84, hi: 0x84}, + {value: 0xa000, lo: 0x88, hi: 0x88}, + {value: 0x3bed, lo: 0x89, hi: 0x89}, + {value: 0xa000, lo: 0x8b, hi: 0x8b}, + {value: 0x3bf4, lo: 0x8c, hi: 0x8c}, + {value: 0xa000, lo: 0xa3, hi: 0xa3}, + {value: 0x3bfb, lo: 0xa4, hi: 0xa5}, + {value: 0x3c02, lo: 0xa6, hi: 0xa6}, + {value: 0xa000, lo: 0xbc, hi: 0xbc}, + // Block 0x41, offset 0x166 + {value: 0x0007, lo: 0x03}, + {value: 0x3c6b, lo: 0xa0, hi: 0xa1}, + {value: 0x3c95, lo: 0xa2, hi: 0xa3}, + {value: 0x3cbf, lo: 0xaa, hi: 0xad}, + // Block 0x42, offset 0x16a + {value: 0x0004, lo: 0x01}, + {value: 0x048b, lo: 0xa9, hi: 0xaa}, + // Block 0x43, offset 0x16c + {value: 0x0000, lo: 0x01}, + {value: 0x44e0, lo: 0x9c, hi: 0x9c}, + // Block 0x44, offset 0x16e + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0xaf, hi: 0xb1}, + // Block 0x45, offset 0x170 + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0xbf, hi: 0xbf}, + // Block 0x46, offset 0x172 + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0xa0, hi: 0xbf}, + // Block 0x47, offset 0x174 + {value: 0x0000, lo: 0x05}, + {value: 0x812c, lo: 0xaa, hi: 0xaa}, + {value: 0x8131, lo: 0xab, hi: 0xab}, + {value: 0x8133, lo: 0xac, hi: 0xac}, + {value: 0x812e, lo: 0xad, hi: 0xad}, + {value: 0x812f, lo: 0xae, hi: 0xaf}, + // Block 0x48, offset 0x17a + {value: 0x0000, lo: 0x03}, + {value: 0x4aa2, lo: 0xb3, hi: 0xb3}, + {value: 0x4aa2, lo: 0xb5, hi: 0xb6}, + {value: 0x4aa2, lo: 0xba, hi: 0xbf}, + // Block 0x49, offset 0x17e + {value: 0x0000, lo: 0x01}, + {value: 0x4aa2, lo: 0x8f, hi: 0xa3}, + // Block 0x4a, offset 0x180 + {value: 0x0000, lo: 0x01}, + {value: 0x8100, lo: 0xae, hi: 0xbe}, + // Block 0x4b, offset 0x182 + {value: 0x0000, lo: 0x07}, + {value: 0x8100, lo: 0x84, hi: 0x84}, + {value: 0x8100, lo: 0x87, hi: 0x87}, + {value: 0x8100, lo: 0x90, hi: 0x90}, + {value: 0x8100, lo: 0x9e, hi: 0x9e}, + {value: 0x8100, lo: 0xa1, hi: 0xa1}, + {value: 0x8100, lo: 0xb2, hi: 0xb2}, + {value: 0x8100, lo: 0xbb, hi: 0xbb}, + // Block 0x4c, offset 0x18a + {value: 0x0000, lo: 0x03}, + {value: 0x8100, lo: 0x80, hi: 0x80}, + {value: 0x8100, lo: 0x8b, hi: 0x8b}, + {value: 0x8100, lo: 0x8e, hi: 0x8e}, + // Block 0x4d, offset 0x18e + {value: 0x0000, lo: 0x02}, + {value: 0x8132, lo: 0xaf, hi: 0xaf}, + {value: 0x8132, lo: 0xb4, hi: 0xbd}, + // Block 0x4e, offset 0x191 + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0x9e, hi: 0x9f}, + // Block 0x4f, offset 0x193 + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0xb0, hi: 0xb1}, + // Block 0x50, offset 0x195 + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0x86, hi: 0x86}, + // Block 0x51, offset 0x197 + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0x84, hi: 0x84}, + {value: 0x8132, lo: 0xa0, hi: 0xb1}, + // Block 0x52, offset 0x19a + {value: 0x0000, lo: 0x01}, + {value: 0x812d, lo: 0xab, hi: 0xad}, + // Block 0x53, offset 0x19c + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0x93, hi: 0x93}, + // Block 0x54, offset 0x19e + {value: 0x0000, lo: 0x01}, + {value: 0x8102, lo: 0xb3, hi: 0xb3}, + // Block 0x55, offset 0x1a0 + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0x80, hi: 0x80}, + // Block 0x56, offset 0x1a2 + {value: 0x0000, lo: 0x05}, + {value: 0x8132, lo: 0xb0, hi: 0xb0}, + {value: 0x8132, lo: 0xb2, hi: 0xb3}, + {value: 0x812d, lo: 0xb4, hi: 0xb4}, + {value: 0x8132, lo: 0xb7, hi: 0xb8}, + {value: 0x8132, lo: 0xbe, hi: 0xbf}, + // Block 0x57, offset 0x1a8 + {value: 0x0000, lo: 0x02}, + {value: 0x8132, lo: 0x81, hi: 0x81}, + {value: 0x8104, lo: 0xb6, hi: 0xb6}, + // Block 0x58, offset 0x1ab + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0xad, hi: 0xad}, + // Block 0x59, offset 0x1ad + {value: 0x0000, lo: 0x06}, + {value: 0xe500, lo: 0x80, hi: 0x80}, + {value: 0xc600, lo: 0x81, hi: 0x9b}, + {value: 0xe500, lo: 0x9c, hi: 0x9c}, + {value: 0xc600, lo: 0x9d, hi: 0xb7}, + {value: 0xe500, lo: 0xb8, hi: 0xb8}, + {value: 0xc600, lo: 0xb9, hi: 0xbf}, + // Block 0x5a, offset 0x1b4 + {value: 0x0000, lo: 0x05}, + {value: 0xc600, lo: 0x80, hi: 0x93}, + {value: 0xe500, lo: 0x94, hi: 0x94}, + {value: 0xc600, lo: 0x95, hi: 0xaf}, + {value: 0xe500, lo: 0xb0, hi: 0xb0}, + {value: 0xc600, lo: 0xb1, hi: 0xbf}, + // Block 0x5b, offset 0x1ba + {value: 0x0000, lo: 0x05}, + {value: 0xc600, lo: 0x80, hi: 0x8b}, + {value: 0xe500, lo: 0x8c, hi: 0x8c}, + {value: 0xc600, lo: 0x8d, hi: 0xa7}, + {value: 0xe500, lo: 0xa8, hi: 0xa8}, + {value: 0xc600, lo: 0xa9, hi: 0xbf}, + // Block 0x5c, offset 0x1c0 + {value: 0x0000, lo: 0x07}, + {value: 0xc600, lo: 0x80, hi: 0x83}, + {value: 0xe500, lo: 0x84, hi: 0x84}, + {value: 0xc600, lo: 0x85, hi: 0x9f}, + {value: 0xe500, lo: 0xa0, hi: 0xa0}, + {value: 0xc600, lo: 0xa1, hi: 0xbb}, + {value: 0xe500, lo: 0xbc, hi: 0xbc}, + {value: 0xc600, lo: 0xbd, hi: 0xbf}, + // Block 0x5d, offset 0x1c8 + {value: 0x0000, lo: 0x05}, + {value: 0xc600, lo: 0x80, hi: 0x97}, + {value: 0xe500, lo: 0x98, hi: 0x98}, + {value: 0xc600, lo: 0x99, hi: 0xb3}, + {value: 0xe500, lo: 0xb4, hi: 0xb4}, + {value: 0xc600, lo: 0xb5, hi: 0xbf}, + // Block 0x5e, offset 0x1ce + {value: 0x0000, lo: 0x05}, + {value: 0xc600, lo: 0x80, hi: 0x8f}, + {value: 0xe500, lo: 0x90, hi: 0x90}, + {value: 0xc600, lo: 0x91, hi: 0xab}, + {value: 0xe500, lo: 0xac, hi: 0xac}, + {value: 0xc600, lo: 0xad, hi: 0xbf}, + // Block 0x5f, offset 0x1d4 + {value: 0x0000, lo: 0x05}, + {value: 0xc600, lo: 0x80, hi: 0x87}, + {value: 0xe500, lo: 0x88, hi: 0x88}, + {value: 0xc600, lo: 0x89, hi: 0xa3}, + {value: 0xe500, lo: 0xa4, hi: 0xa4}, + {value: 0xc600, lo: 0xa5, hi: 0xbf}, + // Block 0x60, offset 0x1da + {value: 0x0000, lo: 0x03}, + {value: 0xc600, lo: 0x80, hi: 0x87}, + {value: 0xe500, lo: 0x88, hi: 0x88}, + {value: 0xc600, lo: 0x89, hi: 0xa3}, + // Block 0x61, offset 0x1de + {value: 0x0006, lo: 0x0d}, + {value: 0x4393, lo: 0x9d, hi: 0x9d}, + {value: 0x8115, lo: 0x9e, hi: 0x9e}, + {value: 0x4405, lo: 0x9f, hi: 0x9f}, + {value: 0x43f3, lo: 0xaa, hi: 0xab}, + {value: 0x44f7, lo: 0xac, hi: 0xac}, + {value: 0x44ff, lo: 0xad, hi: 0xad}, + {value: 0x434b, lo: 0xae, hi: 0xb1}, + {value: 0x4369, lo: 0xb2, hi: 0xb4}, + {value: 0x4381, lo: 0xb5, hi: 0xb6}, + {value: 0x438d, lo: 0xb8, hi: 0xb8}, + {value: 0x4399, lo: 0xb9, hi: 0xbb}, + {value: 0x43b1, lo: 0xbc, hi: 0xbc}, + {value: 0x43b7, lo: 0xbe, hi: 0xbe}, + // Block 0x62, offset 0x1ec + {value: 0x0006, lo: 0x08}, + {value: 0x43bd, lo: 0x80, hi: 0x81}, + {value: 0x43c9, lo: 0x83, hi: 0x84}, + {value: 0x43db, lo: 0x86, hi: 0x89}, + {value: 0x43ff, lo: 0x8a, hi: 0x8a}, + {value: 0x437b, lo: 0x8b, hi: 0x8b}, + {value: 0x4363, lo: 0x8c, hi: 0x8c}, + {value: 0x43ab, lo: 0x8d, hi: 0x8d}, + {value: 0x43d5, lo: 0x8e, hi: 0x8e}, + // Block 0x63, offset 0x1f5 + {value: 0x0000, lo: 0x02}, + {value: 0x8100, lo: 0xa4, hi: 0xa5}, + {value: 0x8100, lo: 0xb0, hi: 0xb1}, + // Block 0x64, offset 0x1f8 + {value: 0x0000, lo: 0x02}, + {value: 0x8100, lo: 0x9b, hi: 0x9d}, + {value: 0x8200, lo: 0x9e, hi: 0xa3}, + // Block 0x65, offset 0x1fb + {value: 0x0000, lo: 0x01}, + {value: 0x8100, lo: 0x90, hi: 0x90}, + // Block 0x66, offset 0x1fd + {value: 0x0000, lo: 0x02}, + {value: 0x8100, lo: 0x99, hi: 0x99}, + {value: 0x8200, lo: 0xb2, hi: 0xb4}, + // Block 0x67, offset 0x200 + {value: 0x0000, lo: 0x01}, + {value: 0x8100, lo: 0xbc, hi: 0xbd}, + // Block 0x68, offset 0x202 + {value: 0x0000, lo: 0x03}, + {value: 0x8132, lo: 0xa0, hi: 0xa6}, + {value: 0x812d, lo: 0xa7, hi: 0xad}, + {value: 0x8132, lo: 0xae, hi: 0xaf}, + // Block 0x69, offset 0x206 + {value: 0x0000, lo: 0x04}, + {value: 0x8100, lo: 0x89, hi: 0x8c}, + {value: 0x8100, lo: 0xb0, hi: 0xb2}, + {value: 0x8100, lo: 0xb4, hi: 0xb4}, + {value: 0x8100, lo: 0xb6, hi: 0xbf}, + // Block 0x6a, offset 0x20b + {value: 0x0000, lo: 0x01}, + {value: 0x8100, lo: 0x81, hi: 0x8c}, + // Block 0x6b, offset 0x20d + {value: 0x0000, lo: 0x01}, + {value: 0x8100, lo: 0xb5, hi: 0xba}, + // Block 0x6c, offset 0x20f + {value: 0x0000, lo: 0x04}, + {value: 0x4aa2, lo: 0x9e, hi: 0x9f}, + {value: 0x4aa2, lo: 0xa3, hi: 0xa3}, + {value: 0x4aa2, lo: 0xa5, hi: 0xa6}, + {value: 0x4aa2, lo: 0xaa, hi: 0xaf}, + // Block 0x6d, offset 0x214 + {value: 0x0000, lo: 0x05}, + {value: 0x4aa2, lo: 0x82, hi: 0x87}, + {value: 0x4aa2, lo: 0x8a, hi: 0x8f}, + {value: 0x4aa2, lo: 0x92, hi: 0x97}, + {value: 0x4aa2, lo: 0x9a, hi: 0x9c}, + {value: 0x8100, lo: 0xa3, hi: 0xa3}, + // Block 0x6e, offset 0x21a + {value: 0x0000, lo: 0x01}, + {value: 0x812d, lo: 0xbd, hi: 0xbd}, + // Block 0x6f, offset 0x21c + {value: 0x0000, lo: 0x01}, + {value: 0x812d, lo: 0xa0, hi: 0xa0}, + // Block 0x70, offset 0x21e + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0xb6, hi: 0xba}, + // Block 0x71, offset 0x220 + {value: 0x002c, lo: 0x05}, + {value: 0x812d, lo: 0x8d, hi: 0x8d}, + {value: 0x8132, lo: 0x8f, hi: 0x8f}, + {value: 0x8132, lo: 0xb8, hi: 0xb8}, + {value: 0x8101, lo: 0xb9, hi: 0xba}, + {value: 0x8104, lo: 0xbf, hi: 0xbf}, + // Block 0x72, offset 0x226 + {value: 0x0000, lo: 0x02}, + {value: 0x8132, lo: 0xa5, hi: 0xa5}, + {value: 0x812d, lo: 0xa6, hi: 0xa6}, + // Block 0x73, offset 0x229 + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0xa4, hi: 0xa7}, + // Block 0x74, offset 0x22b + {value: 0x0000, lo: 0x05}, + {value: 0x812d, lo: 0x86, hi: 0x87}, + {value: 0x8132, lo: 0x88, hi: 0x8a}, + {value: 0x812d, lo: 0x8b, hi: 0x8b}, + {value: 0x8132, lo: 0x8c, hi: 0x8c}, + {value: 0x812d, lo: 0x8d, hi: 0x90}, + // Block 0x75, offset 0x231 + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0x86, hi: 0x86}, + {value: 0x8104, lo: 0xbf, hi: 0xbf}, + // Block 0x76, offset 0x234 + {value: 0x17fe, lo: 0x07}, + {value: 0xa000, lo: 0x99, hi: 0x99}, + {value: 0x423b, lo: 0x9a, hi: 0x9a}, + {value: 0xa000, lo: 0x9b, hi: 0x9b}, + {value: 0x4245, lo: 0x9c, hi: 0x9c}, + {value: 0xa000, lo: 0xa5, hi: 0xa5}, + {value: 0x424f, lo: 0xab, hi: 0xab}, + {value: 0x8104, lo: 0xb9, hi: 0xba}, + // Block 0x77, offset 0x23c + {value: 0x0000, lo: 0x06}, + {value: 0x8132, lo: 0x80, hi: 0x82}, + {value: 0x9900, lo: 0xa7, hi: 0xa7}, + {value: 0x2d81, lo: 0xae, hi: 0xae}, + {value: 0x2d8b, lo: 0xaf, hi: 0xaf}, + {value: 0xa000, lo: 0xb1, hi: 0xb2}, + {value: 0x8104, lo: 0xb3, hi: 0xb4}, + // Block 0x78, offset 0x243 + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0x80, hi: 0x80}, + {value: 0x8102, lo: 0x8a, hi: 0x8a}, + // Block 0x79, offset 0x246 + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0xb5, hi: 0xb5}, + {value: 0x8102, lo: 0xb6, hi: 0xb6}, + // Block 0x7a, offset 0x249 + {value: 0x0002, lo: 0x01}, + {value: 0x8102, lo: 0xa9, hi: 0xaa}, + // Block 0x7b, offset 0x24b + {value: 0x0000, lo: 0x02}, + {value: 0x8102, lo: 0xbb, hi: 0xbc}, + {value: 0x9900, lo: 0xbe, hi: 0xbe}, + // Block 0x7c, offset 0x24e + {value: 0x0000, lo: 0x07}, + {value: 0xa000, lo: 0x87, hi: 0x87}, + {value: 0x2d95, lo: 0x8b, hi: 0x8b}, + {value: 0x2d9f, lo: 0x8c, hi: 0x8c}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x9900, lo: 0x97, hi: 0x97}, + {value: 0x8132, lo: 0xa6, hi: 0xac}, + {value: 0x8132, lo: 0xb0, hi: 0xb4}, + // Block 0x7d, offset 0x256 + {value: 0x0000, lo: 0x03}, + {value: 0x8104, lo: 0x82, hi: 0x82}, + {value: 0x8102, lo: 0x86, hi: 0x86}, + {value: 0x8132, lo: 0x9e, hi: 0x9e}, + // Block 0x7e, offset 0x25a + {value: 0x6b57, lo: 0x06}, + {value: 0x9900, lo: 0xb0, hi: 0xb0}, + {value: 0xa000, lo: 0xb9, hi: 0xb9}, + {value: 0x9900, lo: 0xba, hi: 0xba}, + {value: 0x2db3, lo: 0xbb, hi: 0xbb}, + {value: 0x2da9, lo: 0xbc, hi: 0xbd}, + {value: 0x2dbd, lo: 0xbe, hi: 0xbe}, + // Block 0x7f, offset 0x261 + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0x82, hi: 0x82}, + {value: 0x8102, lo: 0x83, hi: 0x83}, + // Block 0x80, offset 0x264 + {value: 0x0000, lo: 0x05}, + {value: 0x9900, lo: 0xaf, hi: 0xaf}, + {value: 0xa000, lo: 0xb8, hi: 0xb9}, + {value: 0x2dc7, lo: 0xba, hi: 0xba}, + {value: 0x2dd1, lo: 0xbb, hi: 0xbb}, + {value: 0x8104, lo: 0xbf, hi: 0xbf}, + // Block 0x81, offset 0x26a + {value: 0x0000, lo: 0x01}, + {value: 0x8102, lo: 0x80, hi: 0x80}, + // Block 0x82, offset 0x26c + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0xb6, hi: 0xb6}, + {value: 0x8102, lo: 0xb7, hi: 0xb7}, + // Block 0x83, offset 0x26f + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0xab, hi: 0xab}, + // Block 0x84, offset 0x271 + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0xb9, hi: 0xb9}, + {value: 0x8102, lo: 0xba, hi: 0xba}, + // Block 0x85, offset 0x274 + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0xa0, hi: 0xa0}, + // Block 0x86, offset 0x276 + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0xb4, hi: 0xb4}, + // Block 0x87, offset 0x278 + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0x87, hi: 0x87}, + // Block 0x88, offset 0x27a + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0x99, hi: 0x99}, + // Block 0x89, offset 0x27c + {value: 0x0000, lo: 0x02}, + {value: 0x8102, lo: 0x82, hi: 0x82}, + {value: 0x8104, lo: 0x84, hi: 0x85}, + // Block 0x8a, offset 0x27f + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0x97, hi: 0x97}, + // Block 0x8b, offset 0x281 + {value: 0x0000, lo: 0x01}, + {value: 0x8101, lo: 0xb0, hi: 0xb4}, + // Block 0x8c, offset 0x283 + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0xb0, hi: 0xb6}, + // Block 0x8d, offset 0x285 + {value: 0x0000, lo: 0x01}, + {value: 0x8101, lo: 0x9e, hi: 0x9e}, + // Block 0x8e, offset 0x287 + {value: 0x0000, lo: 0x0c}, + {value: 0x45cf, lo: 0x9e, hi: 0x9e}, + {value: 0x45d9, lo: 0x9f, hi: 0x9f}, + {value: 0x460d, lo: 0xa0, hi: 0xa0}, + {value: 0x461b, lo: 0xa1, hi: 0xa1}, + {value: 0x4629, lo: 0xa2, hi: 0xa2}, + {value: 0x4637, lo: 0xa3, hi: 0xa3}, + {value: 0x4645, lo: 0xa4, hi: 0xa4}, + {value: 0x812b, lo: 0xa5, hi: 0xa6}, + {value: 0x8101, lo: 0xa7, hi: 0xa9}, + {value: 0x8130, lo: 0xad, hi: 0xad}, + {value: 0x812b, lo: 0xae, hi: 0xb2}, + {value: 0x812d, lo: 0xbb, hi: 0xbf}, + // Block 0x8f, offset 0x294 + {value: 0x0000, lo: 0x09}, + {value: 0x812d, lo: 0x80, hi: 0x82}, + {value: 0x8132, lo: 0x85, hi: 0x89}, + {value: 0x812d, lo: 0x8a, hi: 0x8b}, + {value: 0x8132, lo: 0xaa, hi: 0xad}, + {value: 0x45e3, lo: 0xbb, hi: 0xbb}, + {value: 0x45ed, lo: 0xbc, hi: 0xbc}, + {value: 0x4653, lo: 0xbd, hi: 0xbd}, + {value: 0x466f, lo: 0xbe, hi: 0xbe}, + {value: 0x4661, lo: 0xbf, hi: 0xbf}, + // Block 0x90, offset 0x29e + {value: 0x0000, lo: 0x01}, + {value: 0x467d, lo: 0x80, hi: 0x80}, + // Block 0x91, offset 0x2a0 + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0x82, hi: 0x84}, + // Block 0x92, offset 0x2a2 + {value: 0x0000, lo: 0x05}, + {value: 0x8132, lo: 0x80, hi: 0x86}, + {value: 0x8132, lo: 0x88, hi: 0x98}, + {value: 0x8132, lo: 0x9b, hi: 0xa1}, + {value: 0x8132, lo: 0xa3, hi: 0xa4}, + {value: 0x8132, lo: 0xa6, hi: 0xaa}, + // Block 0x93, offset 0x2a8 + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0xac, hi: 0xaf}, + // Block 0x94, offset 0x2aa + {value: 0x0000, lo: 0x01}, + {value: 0x812d, lo: 0x90, hi: 0x96}, + // Block 0x95, offset 0x2ac + {value: 0x0000, lo: 0x02}, + {value: 0x8132, lo: 0x84, hi: 0x89}, + {value: 0x8102, lo: 0x8a, hi: 0x8a}, + // Block 0x96, offset 0x2af + {value: 0x0000, lo: 0x01}, + {value: 0x8100, lo: 0x93, hi: 0x93}, +} + +// lookup returns the trie value for the first UTF-8 encoding in s and +// the width in bytes of this encoding. The size will be 0 if s does not +// hold enough bytes to complete the encoding. len(s) must be greater than 0. +func (t *nfkcTrie) lookup(s []byte) (v uint16, sz int) { + c0 := s[0] + switch { + case c0 < 0x80: // is ASCII + return nfkcValues[c0], 1 + case c0 < 0xC2: + return 0, 1 // Illegal UTF-8: not a starter, not ASCII. + case c0 < 0xE0: // 2-byte UTF-8 + if len(s) < 2 { + return 0, 0 + } + i := nfkcIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c1), 2 + case c0 < 0xF0: // 3-byte UTF-8 + if len(s) < 3 { + return 0, 0 + } + i := nfkcIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + o := uint32(i)<<6 + uint32(c1) + i = nfkcIndex[o] + c2 := s[2] + if c2 < 0x80 || 0xC0 <= c2 { + return 0, 2 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c2), 3 + case c0 < 0xF8: // 4-byte UTF-8 + if len(s) < 4 { + return 0, 0 + } + i := nfkcIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + o := uint32(i)<<6 + uint32(c1) + i = nfkcIndex[o] + c2 := s[2] + if c2 < 0x80 || 0xC0 <= c2 { + return 0, 2 // Illegal UTF-8: not a continuation byte. + } + o = uint32(i)<<6 + uint32(c2) + i = nfkcIndex[o] + c3 := s[3] + if c3 < 0x80 || 0xC0 <= c3 { + return 0, 3 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c3), 4 + } + // Illegal rune + return 0, 1 +} + +// lookupUnsafe returns the trie value for the first UTF-8 encoding in s. +// s must start with a full and valid UTF-8 encoded rune. +func (t *nfkcTrie) lookupUnsafe(s []byte) uint16 { + c0 := s[0] + if c0 < 0x80 { // is ASCII + return nfkcValues[c0] + } + i := nfkcIndex[c0] + if c0 < 0xE0 { // 2-byte UTF-8 + return t.lookupValue(uint32(i), s[1]) + } + i = nfkcIndex[uint32(i)<<6+uint32(s[1])] + if c0 < 0xF0 { // 3-byte UTF-8 + return t.lookupValue(uint32(i), s[2]) + } + i = nfkcIndex[uint32(i)<<6+uint32(s[2])] + if c0 < 0xF8 { // 4-byte UTF-8 + return t.lookupValue(uint32(i), s[3]) + } + return 0 +} + +// lookupString returns the trie value for the first UTF-8 encoding in s and +// the width in bytes of this encoding. The size will be 0 if s does not +// hold enough bytes to complete the encoding. len(s) must be greater than 0. +func (t *nfkcTrie) lookupString(s string) (v uint16, sz int) { + c0 := s[0] + switch { + case c0 < 0x80: // is ASCII + return nfkcValues[c0], 1 + case c0 < 0xC2: + return 0, 1 // Illegal UTF-8: not a starter, not ASCII. + case c0 < 0xE0: // 2-byte UTF-8 + if len(s) < 2 { + return 0, 0 + } + i := nfkcIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c1), 2 + case c0 < 0xF0: // 3-byte UTF-8 + if len(s) < 3 { + return 0, 0 + } + i := nfkcIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + o := uint32(i)<<6 + uint32(c1) + i = nfkcIndex[o] + c2 := s[2] + if c2 < 0x80 || 0xC0 <= c2 { + return 0, 2 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c2), 3 + case c0 < 0xF8: // 4-byte UTF-8 + if len(s) < 4 { + return 0, 0 + } + i := nfkcIndex[c0] + c1 := s[1] + if c1 < 0x80 || 0xC0 <= c1 { + return 0, 1 // Illegal UTF-8: not a continuation byte. + } + o := uint32(i)<<6 + uint32(c1) + i = nfkcIndex[o] + c2 := s[2] + if c2 < 0x80 || 0xC0 <= c2 { + return 0, 2 // Illegal UTF-8: not a continuation byte. + } + o = uint32(i)<<6 + uint32(c2) + i = nfkcIndex[o] + c3 := s[3] + if c3 < 0x80 || 0xC0 <= c3 { + return 0, 3 // Illegal UTF-8: not a continuation byte. + } + return t.lookupValue(uint32(i), c3), 4 + } + // Illegal rune + return 0, 1 +} + +// lookupStringUnsafe returns the trie value for the first UTF-8 encoding in s. +// s must start with a full and valid UTF-8 encoded rune. +func (t *nfkcTrie) lookupStringUnsafe(s string) uint16 { + c0 := s[0] + if c0 < 0x80 { // is ASCII + return nfkcValues[c0] + } + i := nfkcIndex[c0] + if c0 < 0xE0 { // 2-byte UTF-8 + return t.lookupValue(uint32(i), s[1]) + } + i = nfkcIndex[uint32(i)<<6+uint32(s[1])] + if c0 < 0xF0 { // 3-byte UTF-8 + return t.lookupValue(uint32(i), s[2]) + } + i = nfkcIndex[uint32(i)<<6+uint32(s[2])] + if c0 < 0xF8 { // 4-byte UTF-8 + return t.lookupValue(uint32(i), s[3]) + } + return 0 +} + +// nfkcTrie. Total size: 18684 bytes (18.25 KiB). Checksum: 113e23c477adfabd. +type nfkcTrie struct{} + +func newNfkcTrie(i int) *nfkcTrie { + return &nfkcTrie{} +} + +// lookupValue determines the type of block n and looks up the value for b. +func (t *nfkcTrie) lookupValue(n uint32, b byte) uint16 { + switch { + case n < 92: + return uint16(nfkcValues[n<<6+uint32(b)]) + default: + n -= 92 + return uint16(nfkcSparse.lookup(n, b)) + } +} + +// nfkcValues: 94 blocks, 6016 entries, 12032 bytes +// The third block is the zero block. +var nfkcValues = [6016]uint16{ + // Block 0x0, offset 0x0 + 0x3c: 0xa000, 0x3d: 0xa000, 0x3e: 0xa000, + // Block 0x1, offset 0x40 + 0x41: 0xa000, 0x42: 0xa000, 0x43: 0xa000, 0x44: 0xa000, 0x45: 0xa000, + 0x46: 0xa000, 0x47: 0xa000, 0x48: 0xa000, 0x49: 0xa000, 0x4a: 0xa000, 0x4b: 0xa000, + 0x4c: 0xa000, 0x4d: 0xa000, 0x4e: 0xa000, 0x4f: 0xa000, 0x50: 0xa000, + 0x52: 0xa000, 0x53: 0xa000, 0x54: 0xa000, 0x55: 0xa000, 0x56: 0xa000, 0x57: 0xa000, + 0x58: 0xa000, 0x59: 0xa000, 0x5a: 0xa000, + 0x61: 0xa000, 0x62: 0xa000, 0x63: 0xa000, + 0x64: 0xa000, 0x65: 0xa000, 0x66: 0xa000, 0x67: 0xa000, 0x68: 0xa000, 0x69: 0xa000, + 0x6a: 0xa000, 0x6b: 0xa000, 0x6c: 0xa000, 0x6d: 0xa000, 0x6e: 0xa000, 0x6f: 0xa000, + 0x70: 0xa000, 0x72: 0xa000, 0x73: 0xa000, 0x74: 0xa000, 0x75: 0xa000, + 0x76: 0xa000, 0x77: 0xa000, 0x78: 0xa000, 0x79: 0xa000, 0x7a: 0xa000, + // Block 0x2, offset 0x80 + // Block 0x3, offset 0xc0 + 0xc0: 0x2f72, 0xc1: 0x2f77, 0xc2: 0x468b, 0xc3: 0x2f7c, 0xc4: 0x469a, 0xc5: 0x469f, + 0xc6: 0xa000, 0xc7: 0x46a9, 0xc8: 0x2fe5, 0xc9: 0x2fea, 0xca: 0x46ae, 0xcb: 0x2ffe, + 0xcc: 0x3071, 0xcd: 0x3076, 0xce: 0x307b, 0xcf: 0x46c2, 0xd1: 0x3107, + 0xd2: 0x312a, 0xd3: 0x312f, 0xd4: 0x46cc, 0xd5: 0x46d1, 0xd6: 0x46e0, + 0xd8: 0xa000, 0xd9: 0x31b6, 0xda: 0x31bb, 0xdb: 0x31c0, 0xdc: 0x4712, 0xdd: 0x3238, + 0xe0: 0x327e, 0xe1: 0x3283, 0xe2: 0x471c, 0xe3: 0x3288, + 0xe4: 0x472b, 0xe5: 0x4730, 0xe6: 0xa000, 0xe7: 0x473a, 0xe8: 0x32f1, 0xe9: 0x32f6, + 0xea: 0x473f, 0xeb: 0x330a, 0xec: 0x3382, 0xed: 0x3387, 0xee: 0x338c, 0xef: 0x4753, + 0xf1: 0x3418, 0xf2: 0x343b, 0xf3: 0x3440, 0xf4: 0x475d, 0xf5: 0x4762, + 0xf6: 0x4771, 0xf8: 0xa000, 0xf9: 0x34cc, 0xfa: 0x34d1, 0xfb: 0x34d6, + 0xfc: 0x47a3, 0xfd: 0x3553, 0xff: 0x356c, + // Block 0x4, offset 0x100 + 0x100: 0x2f81, 0x101: 0x328d, 0x102: 0x4690, 0x103: 0x4721, 0x104: 0x2f9f, 0x105: 0x32ab, + 0x106: 0x2fb3, 0x107: 0x32bf, 0x108: 0x2fb8, 0x109: 0x32c4, 0x10a: 0x2fbd, 0x10b: 0x32c9, + 0x10c: 0x2fc2, 0x10d: 0x32ce, 0x10e: 0x2fcc, 0x10f: 0x32d8, + 0x112: 0x46b3, 0x113: 0x4744, 0x114: 0x2ff4, 0x115: 0x3300, 0x116: 0x2ff9, 0x117: 0x3305, + 0x118: 0x3017, 0x119: 0x3323, 0x11a: 0x3008, 0x11b: 0x3314, 0x11c: 0x3030, 0x11d: 0x333c, + 0x11e: 0x303a, 0x11f: 0x3346, 0x120: 0x303f, 0x121: 0x334b, 0x122: 0x3049, 0x123: 0x3355, + 0x124: 0x304e, 0x125: 0x335a, 0x128: 0x3080, 0x129: 0x3391, + 0x12a: 0x3085, 0x12b: 0x3396, 0x12c: 0x308a, 0x12d: 0x339b, 0x12e: 0x30ad, 0x12f: 0x33b9, + 0x130: 0x308f, 0x132: 0x195d, 0x133: 0x19ea, 0x134: 0x30b7, 0x135: 0x33c3, + 0x136: 0x30cb, 0x137: 0x33dc, 0x139: 0x30d5, 0x13a: 0x33e6, 0x13b: 0x30df, + 0x13c: 0x33f0, 0x13d: 0x30da, 0x13e: 0x33eb, 0x13f: 0x1baf, + // Block 0x5, offset 0x140 + 0x140: 0x1c37, 0x143: 0x3102, 0x144: 0x3413, 0x145: 0x311b, + 0x146: 0x342c, 0x147: 0x3111, 0x148: 0x3422, 0x149: 0x1c5f, + 0x14c: 0x46d6, 0x14d: 0x4767, 0x14e: 0x3134, 0x14f: 0x3445, 0x150: 0x313e, 0x151: 0x344f, + 0x154: 0x315c, 0x155: 0x346d, 0x156: 0x3175, 0x157: 0x3486, + 0x158: 0x3166, 0x159: 0x3477, 0x15a: 0x46f9, 0x15b: 0x478a, 0x15c: 0x317f, 0x15d: 0x3490, + 0x15e: 0x318e, 0x15f: 0x349f, 0x160: 0x46fe, 0x161: 0x478f, 0x162: 0x31a7, 0x163: 0x34bd, + 0x164: 0x3198, 0x165: 0x34ae, 0x168: 0x4708, 0x169: 0x4799, + 0x16a: 0x470d, 0x16b: 0x479e, 0x16c: 0x31c5, 0x16d: 0x34db, 0x16e: 0x31cf, 0x16f: 0x34e5, + 0x170: 0x31d4, 0x171: 0x34ea, 0x172: 0x31f2, 0x173: 0x3508, 0x174: 0x3215, 0x175: 0x352b, + 0x176: 0x323d, 0x177: 0x3558, 0x178: 0x3251, 0x179: 0x3260, 0x17a: 0x3580, 0x17b: 0x326a, + 0x17c: 0x358a, 0x17d: 0x326f, 0x17e: 0x358f, 0x17f: 0x00a7, + // Block 0x6, offset 0x180 + 0x184: 0x2df1, 0x185: 0x2df7, + 0x186: 0x2dfd, 0x187: 0x1972, 0x188: 0x1975, 0x189: 0x1a0b, 0x18a: 0x198a, 0x18b: 0x198d, + 0x18c: 0x1a41, 0x18d: 0x2f8b, 0x18e: 0x3297, 0x18f: 0x3099, 0x190: 0x33a5, 0x191: 0x3143, + 0x192: 0x3454, 0x193: 0x31d9, 0x194: 0x34ef, 0x195: 0x39d2, 0x196: 0x3b61, 0x197: 0x39cb, + 0x198: 0x3b5a, 0x199: 0x39d9, 0x19a: 0x3b68, 0x19b: 0x39c4, 0x19c: 0x3b53, + 0x19e: 0x38b3, 0x19f: 0x3a42, 0x1a0: 0x38ac, 0x1a1: 0x3a3b, 0x1a2: 0x35b6, 0x1a3: 0x35c8, + 0x1a6: 0x3044, 0x1a7: 0x3350, 0x1a8: 0x30c1, 0x1a9: 0x33d2, + 0x1aa: 0x46ef, 0x1ab: 0x4780, 0x1ac: 0x3993, 0x1ad: 0x3b22, 0x1ae: 0x35da, 0x1af: 0x35e0, + 0x1b0: 0x33c8, 0x1b1: 0x1942, 0x1b2: 0x1945, 0x1b3: 0x19d2, 0x1b4: 0x302b, 0x1b5: 0x3337, + 0x1b8: 0x30fd, 0x1b9: 0x340e, 0x1ba: 0x38ba, 0x1bb: 0x3a49, + 0x1bc: 0x35b0, 0x1bd: 0x35c2, 0x1be: 0x35bc, 0x1bf: 0x35ce, + // Block 0x7, offset 0x1c0 + 0x1c0: 0x2f90, 0x1c1: 0x329c, 0x1c2: 0x2f95, 0x1c3: 0x32a1, 0x1c4: 0x300d, 0x1c5: 0x3319, + 0x1c6: 0x3012, 0x1c7: 0x331e, 0x1c8: 0x309e, 0x1c9: 0x33aa, 0x1ca: 0x30a3, 0x1cb: 0x33af, + 0x1cc: 0x3148, 0x1cd: 0x3459, 0x1ce: 0x314d, 0x1cf: 0x345e, 0x1d0: 0x316b, 0x1d1: 0x347c, + 0x1d2: 0x3170, 0x1d3: 0x3481, 0x1d4: 0x31de, 0x1d5: 0x34f4, 0x1d6: 0x31e3, 0x1d7: 0x34f9, + 0x1d8: 0x3189, 0x1d9: 0x349a, 0x1da: 0x31a2, 0x1db: 0x34b8, + 0x1de: 0x305d, 0x1df: 0x3369, + 0x1e6: 0x4695, 0x1e7: 0x4726, 0x1e8: 0x46bd, 0x1e9: 0x474e, + 0x1ea: 0x3962, 0x1eb: 0x3af1, 0x1ec: 0x393f, 0x1ed: 0x3ace, 0x1ee: 0x46db, 0x1ef: 0x476c, + 0x1f0: 0x395b, 0x1f1: 0x3aea, 0x1f2: 0x3247, 0x1f3: 0x3562, + // Block 0x8, offset 0x200 + 0x200: 0x9932, 0x201: 0x9932, 0x202: 0x9932, 0x203: 0x9932, 0x204: 0x9932, 0x205: 0x8132, + 0x206: 0x9932, 0x207: 0x9932, 0x208: 0x9932, 0x209: 0x9932, 0x20a: 0x9932, 0x20b: 0x9932, + 0x20c: 0x9932, 0x20d: 0x8132, 0x20e: 0x8132, 0x20f: 0x9932, 0x210: 0x8132, 0x211: 0x9932, + 0x212: 0x8132, 0x213: 0x9932, 0x214: 0x9932, 0x215: 0x8133, 0x216: 0x812d, 0x217: 0x812d, + 0x218: 0x812d, 0x219: 0x812d, 0x21a: 0x8133, 0x21b: 0x992b, 0x21c: 0x812d, 0x21d: 0x812d, + 0x21e: 0x812d, 0x21f: 0x812d, 0x220: 0x812d, 0x221: 0x8129, 0x222: 0x8129, 0x223: 0x992d, + 0x224: 0x992d, 0x225: 0x992d, 0x226: 0x992d, 0x227: 0x9929, 0x228: 0x9929, 0x229: 0x812d, + 0x22a: 0x812d, 0x22b: 0x812d, 0x22c: 0x812d, 0x22d: 0x992d, 0x22e: 0x992d, 0x22f: 0x812d, + 0x230: 0x992d, 0x231: 0x992d, 0x232: 0x812d, 0x233: 0x812d, 0x234: 0x8101, 0x235: 0x8101, + 0x236: 0x8101, 0x237: 0x8101, 0x238: 0x9901, 0x239: 0x812d, 0x23a: 0x812d, 0x23b: 0x812d, + 0x23c: 0x812d, 0x23d: 0x8132, 0x23e: 0x8132, 0x23f: 0x8132, + // Block 0x9, offset 0x240 + 0x240: 0x49b1, 0x241: 0x49b6, 0x242: 0x9932, 0x243: 0x49bb, 0x244: 0x4a74, 0x245: 0x9936, + 0x246: 0x8132, 0x247: 0x812d, 0x248: 0x812d, 0x249: 0x812d, 0x24a: 0x8132, 0x24b: 0x8132, + 0x24c: 0x8132, 0x24d: 0x812d, 0x24e: 0x812d, 0x250: 0x8132, 0x251: 0x8132, + 0x252: 0x8132, 0x253: 0x812d, 0x254: 0x812d, 0x255: 0x812d, 0x256: 0x812d, 0x257: 0x8132, + 0x258: 0x8133, 0x259: 0x812d, 0x25a: 0x812d, 0x25b: 0x8132, 0x25c: 0x8134, 0x25d: 0x8135, + 0x25e: 0x8135, 0x25f: 0x8134, 0x260: 0x8135, 0x261: 0x8135, 0x262: 0x8134, 0x263: 0x8132, + 0x264: 0x8132, 0x265: 0x8132, 0x266: 0x8132, 0x267: 0x8132, 0x268: 0x8132, 0x269: 0x8132, + 0x26a: 0x8132, 0x26b: 0x8132, 0x26c: 0x8132, 0x26d: 0x8132, 0x26e: 0x8132, 0x26f: 0x8132, + 0x274: 0x0170, + 0x27a: 0x42a8, + 0x27e: 0x0037, + // Block 0xa, offset 0x280 + 0x284: 0x425d, 0x285: 0x447e, + 0x286: 0x35ec, 0x287: 0x00ce, 0x288: 0x360a, 0x289: 0x3616, 0x28a: 0x3628, + 0x28c: 0x3646, 0x28e: 0x3658, 0x28f: 0x3676, 0x290: 0x3e0b, 0x291: 0xa000, + 0x295: 0xa000, 0x297: 0xa000, + 0x299: 0xa000, + 0x29f: 0xa000, 0x2a1: 0xa000, + 0x2a5: 0xa000, 0x2a9: 0xa000, + 0x2aa: 0x363a, 0x2ab: 0x366a, 0x2ac: 0x4801, 0x2ad: 0x369a, 0x2ae: 0x482b, 0x2af: 0x36ac, + 0x2b0: 0x3e73, 0x2b1: 0xa000, 0x2b5: 0xa000, + 0x2b7: 0xa000, 0x2b9: 0xa000, + 0x2bf: 0xa000, + // Block 0xb, offset 0x2c0 + 0x2c1: 0xa000, 0x2c5: 0xa000, + 0x2c9: 0xa000, 0x2ca: 0x4843, 0x2cb: 0x4861, + 0x2cc: 0x36ca, 0x2cd: 0x36e2, 0x2ce: 0x4879, 0x2d0: 0x01be, 0x2d1: 0x01d0, + 0x2d2: 0x01ac, 0x2d3: 0x430f, 0x2d4: 0x4315, 0x2d5: 0x01fa, 0x2d6: 0x01e8, + 0x2f0: 0x01d6, 0x2f1: 0x01eb, 0x2f2: 0x01ee, 0x2f4: 0x0188, 0x2f5: 0x01c7, + 0x2f9: 0x01a6, + // Block 0xc, offset 0x300 + 0x300: 0x3724, 0x301: 0x3730, 0x303: 0x371e, + 0x306: 0xa000, 0x307: 0x370c, + 0x30c: 0x3760, 0x30d: 0x3748, 0x30e: 0x3772, 0x310: 0xa000, + 0x313: 0xa000, 0x315: 0xa000, 0x316: 0xa000, 0x317: 0xa000, + 0x318: 0xa000, 0x319: 0x3754, 0x31a: 0xa000, + 0x31e: 0xa000, 0x323: 0xa000, + 0x327: 0xa000, + 0x32b: 0xa000, 0x32d: 0xa000, + 0x330: 0xa000, 0x333: 0xa000, 0x335: 0xa000, + 0x336: 0xa000, 0x337: 0xa000, 0x338: 0xa000, 0x339: 0x37d8, 0x33a: 0xa000, + 0x33e: 0xa000, + // Block 0xd, offset 0x340 + 0x341: 0x3736, 0x342: 0x37ba, + 0x350: 0x3712, 0x351: 0x3796, + 0x352: 0x3718, 0x353: 0x379c, 0x356: 0x372a, 0x357: 0x37ae, + 0x358: 0xa000, 0x359: 0xa000, 0x35a: 0x382c, 0x35b: 0x3832, 0x35c: 0x373c, 0x35d: 0x37c0, + 0x35e: 0x3742, 0x35f: 0x37c6, 0x362: 0x374e, 0x363: 0x37d2, + 0x364: 0x375a, 0x365: 0x37de, 0x366: 0x3766, 0x367: 0x37ea, 0x368: 0xa000, 0x369: 0xa000, + 0x36a: 0x3838, 0x36b: 0x383e, 0x36c: 0x3790, 0x36d: 0x3814, 0x36e: 0x376c, 0x36f: 0x37f0, + 0x370: 0x3778, 0x371: 0x37fc, 0x372: 0x377e, 0x373: 0x3802, 0x374: 0x3784, 0x375: 0x3808, + 0x378: 0x378a, 0x379: 0x380e, + // Block 0xe, offset 0x380 + 0x387: 0x1d64, + 0x391: 0x812d, + 0x392: 0x8132, 0x393: 0x8132, 0x394: 0x8132, 0x395: 0x8132, 0x396: 0x812d, 0x397: 0x8132, + 0x398: 0x8132, 0x399: 0x8132, 0x39a: 0x812e, 0x39b: 0x812d, 0x39c: 0x8132, 0x39d: 0x8132, + 0x39e: 0x8132, 0x39f: 0x8132, 0x3a0: 0x8132, 0x3a1: 0x8132, 0x3a2: 0x812d, 0x3a3: 0x812d, + 0x3a4: 0x812d, 0x3a5: 0x812d, 0x3a6: 0x812d, 0x3a7: 0x812d, 0x3a8: 0x8132, 0x3a9: 0x8132, + 0x3aa: 0x812d, 0x3ab: 0x8132, 0x3ac: 0x8132, 0x3ad: 0x812e, 0x3ae: 0x8131, 0x3af: 0x8132, + 0x3b0: 0x8105, 0x3b1: 0x8106, 0x3b2: 0x8107, 0x3b3: 0x8108, 0x3b4: 0x8109, 0x3b5: 0x810a, + 0x3b6: 0x810b, 0x3b7: 0x810c, 0x3b8: 0x810d, 0x3b9: 0x810e, 0x3ba: 0x810e, 0x3bb: 0x810f, + 0x3bc: 0x8110, 0x3bd: 0x8111, 0x3bf: 0x8112, + // Block 0xf, offset 0x3c0 + 0x3c8: 0xa000, 0x3ca: 0xa000, 0x3cb: 0x8116, + 0x3cc: 0x8117, 0x3cd: 0x8118, 0x3ce: 0x8119, 0x3cf: 0x811a, 0x3d0: 0x811b, 0x3d1: 0x811c, + 0x3d2: 0x811d, 0x3d3: 0x9932, 0x3d4: 0x9932, 0x3d5: 0x992d, 0x3d6: 0x812d, 0x3d7: 0x8132, + 0x3d8: 0x8132, 0x3d9: 0x8132, 0x3da: 0x8132, 0x3db: 0x8132, 0x3dc: 0x812d, 0x3dd: 0x8132, + 0x3de: 0x8132, 0x3df: 0x812d, + 0x3f0: 0x811e, 0x3f5: 0x1d87, + 0x3f6: 0x2016, 0x3f7: 0x2052, 0x3f8: 0x204d, + // Block 0x10, offset 0x400 + 0x413: 0x812d, 0x414: 0x8132, 0x415: 0x8132, 0x416: 0x8132, 0x417: 0x8132, + 0x418: 0x8132, 0x419: 0x8132, 0x41a: 0x8132, 0x41b: 0x8132, 0x41c: 0x8132, 0x41d: 0x8132, + 0x41e: 0x8132, 0x41f: 0x8132, 0x420: 0x8132, 0x421: 0x8132, 0x423: 0x812d, + 0x424: 0x8132, 0x425: 0x8132, 0x426: 0x812d, 0x427: 0x8132, 0x428: 0x8132, 0x429: 0x812d, + 0x42a: 0x8132, 0x42b: 0x8132, 0x42c: 0x8132, 0x42d: 0x812d, 0x42e: 0x812d, 0x42f: 0x812d, + 0x430: 0x8116, 0x431: 0x8117, 0x432: 0x8118, 0x433: 0x8132, 0x434: 0x8132, 0x435: 0x8132, + 0x436: 0x812d, 0x437: 0x8132, 0x438: 0x8132, 0x439: 0x812d, 0x43a: 0x812d, 0x43b: 0x8132, + 0x43c: 0x8132, 0x43d: 0x8132, 0x43e: 0x8132, 0x43f: 0x8132, + // Block 0x11, offset 0x440 + 0x445: 0xa000, + 0x446: 0x2d29, 0x447: 0xa000, 0x448: 0x2d31, 0x449: 0xa000, 0x44a: 0x2d39, 0x44b: 0xa000, + 0x44c: 0x2d41, 0x44d: 0xa000, 0x44e: 0x2d49, 0x451: 0xa000, + 0x452: 0x2d51, + 0x474: 0x8102, 0x475: 0x9900, + 0x47a: 0xa000, 0x47b: 0x2d59, + 0x47c: 0xa000, 0x47d: 0x2d61, 0x47e: 0xa000, 0x47f: 0xa000, + // Block 0x12, offset 0x480 + 0x480: 0x0069, 0x481: 0x006b, 0x482: 0x006f, 0x483: 0x0083, 0x484: 0x00f5, 0x485: 0x00f8, + 0x486: 0x0413, 0x487: 0x0085, 0x488: 0x0089, 0x489: 0x008b, 0x48a: 0x0104, 0x48b: 0x0107, + 0x48c: 0x010a, 0x48d: 0x008f, 0x48f: 0x0097, 0x490: 0x009b, 0x491: 0x00e0, + 0x492: 0x009f, 0x493: 0x00fe, 0x494: 0x0417, 0x495: 0x041b, 0x496: 0x00a1, 0x497: 0x00a9, + 0x498: 0x00ab, 0x499: 0x0423, 0x49a: 0x012b, 0x49b: 0x00ad, 0x49c: 0x0427, 0x49d: 0x01be, + 0x49e: 0x01c1, 0x49f: 0x01c4, 0x4a0: 0x01fa, 0x4a1: 0x01fd, 0x4a2: 0x0093, 0x4a3: 0x00a5, + 0x4a4: 0x00ab, 0x4a5: 0x00ad, 0x4a6: 0x01be, 0x4a7: 0x01c1, 0x4a8: 0x01eb, 0x4a9: 0x01fa, + 0x4aa: 0x01fd, + 0x4b8: 0x020c, + // Block 0x13, offset 0x4c0 + 0x4db: 0x00fb, 0x4dc: 0x0087, 0x4dd: 0x0101, + 0x4de: 0x00d4, 0x4df: 0x010a, 0x4e0: 0x008d, 0x4e1: 0x010d, 0x4e2: 0x0110, 0x4e3: 0x0116, + 0x4e4: 0x011c, 0x4e5: 0x011f, 0x4e6: 0x0122, 0x4e7: 0x042b, 0x4e8: 0x016a, 0x4e9: 0x0128, + 0x4ea: 0x042f, 0x4eb: 0x016d, 0x4ec: 0x0131, 0x4ed: 0x012e, 0x4ee: 0x0134, 0x4ef: 0x0137, + 0x4f0: 0x013a, 0x4f1: 0x013d, 0x4f2: 0x0140, 0x4f3: 0x014c, 0x4f4: 0x014f, 0x4f5: 0x00ec, + 0x4f6: 0x0152, 0x4f7: 0x0155, 0x4f8: 0x041f, 0x4f9: 0x0158, 0x4fa: 0x015b, 0x4fb: 0x00b5, + 0x4fc: 0x015e, 0x4fd: 0x0161, 0x4fe: 0x0164, 0x4ff: 0x01d0, + // Block 0x14, offset 0x500 + 0x500: 0x8132, 0x501: 0x8132, 0x502: 0x812d, 0x503: 0x8132, 0x504: 0x8132, 0x505: 0x8132, + 0x506: 0x8132, 0x507: 0x8132, 0x508: 0x8132, 0x509: 0x8132, 0x50a: 0x812d, 0x50b: 0x8132, + 0x50c: 0x8132, 0x50d: 0x8135, 0x50e: 0x812a, 0x50f: 0x812d, 0x510: 0x8129, 0x511: 0x8132, + 0x512: 0x8132, 0x513: 0x8132, 0x514: 0x8132, 0x515: 0x8132, 0x516: 0x8132, 0x517: 0x8132, + 0x518: 0x8132, 0x519: 0x8132, 0x51a: 0x8132, 0x51b: 0x8132, 0x51c: 0x8132, 0x51d: 0x8132, + 0x51e: 0x8132, 0x51f: 0x8132, 0x520: 0x8132, 0x521: 0x8132, 0x522: 0x8132, 0x523: 0x8132, + 0x524: 0x8132, 0x525: 0x8132, 0x526: 0x8132, 0x527: 0x8132, 0x528: 0x8132, 0x529: 0x8132, + 0x52a: 0x8132, 0x52b: 0x8132, 0x52c: 0x8132, 0x52d: 0x8132, 0x52e: 0x8132, 0x52f: 0x8132, + 0x530: 0x8132, 0x531: 0x8132, 0x532: 0x8132, 0x533: 0x8132, 0x534: 0x8132, 0x535: 0x8132, + 0x536: 0x8133, 0x537: 0x8131, 0x538: 0x8131, 0x539: 0x812d, 0x53b: 0x8132, + 0x53c: 0x8134, 0x53d: 0x812d, 0x53e: 0x8132, 0x53f: 0x812d, + // Block 0x15, offset 0x540 + 0x540: 0x2f9a, 0x541: 0x32a6, 0x542: 0x2fa4, 0x543: 0x32b0, 0x544: 0x2fa9, 0x545: 0x32b5, + 0x546: 0x2fae, 0x547: 0x32ba, 0x548: 0x38cf, 0x549: 0x3a5e, 0x54a: 0x2fc7, 0x54b: 0x32d3, + 0x54c: 0x2fd1, 0x54d: 0x32dd, 0x54e: 0x2fe0, 0x54f: 0x32ec, 0x550: 0x2fd6, 0x551: 0x32e2, + 0x552: 0x2fdb, 0x553: 0x32e7, 0x554: 0x38f2, 0x555: 0x3a81, 0x556: 0x38f9, 0x557: 0x3a88, + 0x558: 0x301c, 0x559: 0x3328, 0x55a: 0x3021, 0x55b: 0x332d, 0x55c: 0x3907, 0x55d: 0x3a96, + 0x55e: 0x3026, 0x55f: 0x3332, 0x560: 0x3035, 0x561: 0x3341, 0x562: 0x3053, 0x563: 0x335f, + 0x564: 0x3062, 0x565: 0x336e, 0x566: 0x3058, 0x567: 0x3364, 0x568: 0x3067, 0x569: 0x3373, + 0x56a: 0x306c, 0x56b: 0x3378, 0x56c: 0x30b2, 0x56d: 0x33be, 0x56e: 0x390e, 0x56f: 0x3a9d, + 0x570: 0x30bc, 0x571: 0x33cd, 0x572: 0x30c6, 0x573: 0x33d7, 0x574: 0x30d0, 0x575: 0x33e1, + 0x576: 0x46c7, 0x577: 0x4758, 0x578: 0x3915, 0x579: 0x3aa4, 0x57a: 0x30e9, 0x57b: 0x33fa, + 0x57c: 0x30e4, 0x57d: 0x33f5, 0x57e: 0x30ee, 0x57f: 0x33ff, + // Block 0x16, offset 0x580 + 0x580: 0x30f3, 0x581: 0x3404, 0x582: 0x30f8, 0x583: 0x3409, 0x584: 0x310c, 0x585: 0x341d, + 0x586: 0x3116, 0x587: 0x3427, 0x588: 0x3125, 0x589: 0x3436, 0x58a: 0x3120, 0x58b: 0x3431, + 0x58c: 0x3938, 0x58d: 0x3ac7, 0x58e: 0x3946, 0x58f: 0x3ad5, 0x590: 0x394d, 0x591: 0x3adc, + 0x592: 0x3954, 0x593: 0x3ae3, 0x594: 0x3152, 0x595: 0x3463, 0x596: 0x3157, 0x597: 0x3468, + 0x598: 0x3161, 0x599: 0x3472, 0x59a: 0x46f4, 0x59b: 0x4785, 0x59c: 0x399a, 0x59d: 0x3b29, + 0x59e: 0x317a, 0x59f: 0x348b, 0x5a0: 0x3184, 0x5a1: 0x3495, 0x5a2: 0x4703, 0x5a3: 0x4794, + 0x5a4: 0x39a1, 0x5a5: 0x3b30, 0x5a6: 0x39a8, 0x5a7: 0x3b37, 0x5a8: 0x39af, 0x5a9: 0x3b3e, + 0x5aa: 0x3193, 0x5ab: 0x34a4, 0x5ac: 0x319d, 0x5ad: 0x34b3, 0x5ae: 0x31b1, 0x5af: 0x34c7, + 0x5b0: 0x31ac, 0x5b1: 0x34c2, 0x5b2: 0x31ed, 0x5b3: 0x3503, 0x5b4: 0x31fc, 0x5b5: 0x3512, + 0x5b6: 0x31f7, 0x5b7: 0x350d, 0x5b8: 0x39b6, 0x5b9: 0x3b45, 0x5ba: 0x39bd, 0x5bb: 0x3b4c, + 0x5bc: 0x3201, 0x5bd: 0x3517, 0x5be: 0x3206, 0x5bf: 0x351c, + // Block 0x17, offset 0x5c0 + 0x5c0: 0x320b, 0x5c1: 0x3521, 0x5c2: 0x3210, 0x5c3: 0x3526, 0x5c4: 0x321f, 0x5c5: 0x3535, + 0x5c6: 0x321a, 0x5c7: 0x3530, 0x5c8: 0x3224, 0x5c9: 0x353f, 0x5ca: 0x3229, 0x5cb: 0x3544, + 0x5cc: 0x322e, 0x5cd: 0x3549, 0x5ce: 0x324c, 0x5cf: 0x3567, 0x5d0: 0x3265, 0x5d1: 0x3585, + 0x5d2: 0x3274, 0x5d3: 0x3594, 0x5d4: 0x3279, 0x5d5: 0x3599, 0x5d6: 0x337d, 0x5d7: 0x34a9, + 0x5d8: 0x353a, 0x5d9: 0x3576, 0x5da: 0x1be3, 0x5db: 0x42da, + 0x5e0: 0x46a4, 0x5e1: 0x4735, 0x5e2: 0x2f86, 0x5e3: 0x3292, + 0x5e4: 0x387b, 0x5e5: 0x3a0a, 0x5e6: 0x3874, 0x5e7: 0x3a03, 0x5e8: 0x3889, 0x5e9: 0x3a18, + 0x5ea: 0x3882, 0x5eb: 0x3a11, 0x5ec: 0x38c1, 0x5ed: 0x3a50, 0x5ee: 0x3897, 0x5ef: 0x3a26, + 0x5f0: 0x3890, 0x5f1: 0x3a1f, 0x5f2: 0x38a5, 0x5f3: 0x3a34, 0x5f4: 0x389e, 0x5f5: 0x3a2d, + 0x5f6: 0x38c8, 0x5f7: 0x3a57, 0x5f8: 0x46b8, 0x5f9: 0x4749, 0x5fa: 0x3003, 0x5fb: 0x330f, + 0x5fc: 0x2fef, 0x5fd: 0x32fb, 0x5fe: 0x38dd, 0x5ff: 0x3a6c, + // Block 0x18, offset 0x600 + 0x600: 0x38d6, 0x601: 0x3a65, 0x602: 0x38eb, 0x603: 0x3a7a, 0x604: 0x38e4, 0x605: 0x3a73, + 0x606: 0x3900, 0x607: 0x3a8f, 0x608: 0x3094, 0x609: 0x33a0, 0x60a: 0x30a8, 0x60b: 0x33b4, + 0x60c: 0x46ea, 0x60d: 0x477b, 0x60e: 0x3139, 0x60f: 0x344a, 0x610: 0x3923, 0x611: 0x3ab2, + 0x612: 0x391c, 0x613: 0x3aab, 0x614: 0x3931, 0x615: 0x3ac0, 0x616: 0x392a, 0x617: 0x3ab9, + 0x618: 0x398c, 0x619: 0x3b1b, 0x61a: 0x3970, 0x61b: 0x3aff, 0x61c: 0x3969, 0x61d: 0x3af8, + 0x61e: 0x397e, 0x61f: 0x3b0d, 0x620: 0x3977, 0x621: 0x3b06, 0x622: 0x3985, 0x623: 0x3b14, + 0x624: 0x31e8, 0x625: 0x34fe, 0x626: 0x31ca, 0x627: 0x34e0, 0x628: 0x39e7, 0x629: 0x3b76, + 0x62a: 0x39e0, 0x62b: 0x3b6f, 0x62c: 0x39f5, 0x62d: 0x3b84, 0x62e: 0x39ee, 0x62f: 0x3b7d, + 0x630: 0x39fc, 0x631: 0x3b8b, 0x632: 0x3233, 0x633: 0x354e, 0x634: 0x325b, 0x635: 0x357b, + 0x636: 0x3256, 0x637: 0x3571, 0x638: 0x3242, 0x639: 0x355d, + // Block 0x19, offset 0x640 + 0x640: 0x4807, 0x641: 0x480d, 0x642: 0x4921, 0x643: 0x4939, 0x644: 0x4929, 0x645: 0x4941, + 0x646: 0x4931, 0x647: 0x4949, 0x648: 0x47ad, 0x649: 0x47b3, 0x64a: 0x4891, 0x64b: 0x48a9, + 0x64c: 0x4899, 0x64d: 0x48b1, 0x64e: 0x48a1, 0x64f: 0x48b9, 0x650: 0x4819, 0x651: 0x481f, + 0x652: 0x3dbb, 0x653: 0x3dcb, 0x654: 0x3dc3, 0x655: 0x3dd3, + 0x658: 0x47b9, 0x659: 0x47bf, 0x65a: 0x3ceb, 0x65b: 0x3cfb, 0x65c: 0x3cf3, 0x65d: 0x3d03, + 0x660: 0x4831, 0x661: 0x4837, 0x662: 0x4951, 0x663: 0x4969, + 0x664: 0x4959, 0x665: 0x4971, 0x666: 0x4961, 0x667: 0x4979, 0x668: 0x47c5, 0x669: 0x47cb, + 0x66a: 0x48c1, 0x66b: 0x48d9, 0x66c: 0x48c9, 0x66d: 0x48e1, 0x66e: 0x48d1, 0x66f: 0x48e9, + 0x670: 0x4849, 0x671: 0x484f, 0x672: 0x3e1b, 0x673: 0x3e33, 0x674: 0x3e23, 0x675: 0x3e3b, + 0x676: 0x3e2b, 0x677: 0x3e43, 0x678: 0x47d1, 0x679: 0x47d7, 0x67a: 0x3d1b, 0x67b: 0x3d33, + 0x67c: 0x3d23, 0x67d: 0x3d3b, 0x67e: 0x3d2b, 0x67f: 0x3d43, + // Block 0x1a, offset 0x680 + 0x680: 0x4855, 0x681: 0x485b, 0x682: 0x3e4b, 0x683: 0x3e5b, 0x684: 0x3e53, 0x685: 0x3e63, + 0x688: 0x47dd, 0x689: 0x47e3, 0x68a: 0x3d4b, 0x68b: 0x3d5b, + 0x68c: 0x3d53, 0x68d: 0x3d63, 0x690: 0x4867, 0x691: 0x486d, + 0x692: 0x3e83, 0x693: 0x3e9b, 0x694: 0x3e8b, 0x695: 0x3ea3, 0x696: 0x3e93, 0x697: 0x3eab, + 0x699: 0x47e9, 0x69b: 0x3d6b, 0x69d: 0x3d73, + 0x69f: 0x3d7b, 0x6a0: 0x487f, 0x6a1: 0x4885, 0x6a2: 0x4981, 0x6a3: 0x4999, + 0x6a4: 0x4989, 0x6a5: 0x49a1, 0x6a6: 0x4991, 0x6a7: 0x49a9, 0x6a8: 0x47ef, 0x6a9: 0x47f5, + 0x6aa: 0x48f1, 0x6ab: 0x4909, 0x6ac: 0x48f9, 0x6ad: 0x4911, 0x6ae: 0x4901, 0x6af: 0x4919, + 0x6b0: 0x47fb, 0x6b1: 0x4321, 0x6b2: 0x3694, 0x6b3: 0x4327, 0x6b4: 0x4825, 0x6b5: 0x432d, + 0x6b6: 0x36a6, 0x6b7: 0x4333, 0x6b8: 0x36c4, 0x6b9: 0x4339, 0x6ba: 0x36dc, 0x6bb: 0x433f, + 0x6bc: 0x4873, 0x6bd: 0x4345, + // Block 0x1b, offset 0x6c0 + 0x6c0: 0x3da3, 0x6c1: 0x3dab, 0x6c2: 0x4187, 0x6c3: 0x41a5, 0x6c4: 0x4191, 0x6c5: 0x41af, + 0x6c6: 0x419b, 0x6c7: 0x41b9, 0x6c8: 0x3cdb, 0x6c9: 0x3ce3, 0x6ca: 0x40d3, 0x6cb: 0x40f1, + 0x6cc: 0x40dd, 0x6cd: 0x40fb, 0x6ce: 0x40e7, 0x6cf: 0x4105, 0x6d0: 0x3deb, 0x6d1: 0x3df3, + 0x6d2: 0x41c3, 0x6d3: 0x41e1, 0x6d4: 0x41cd, 0x6d5: 0x41eb, 0x6d6: 0x41d7, 0x6d7: 0x41f5, + 0x6d8: 0x3d0b, 0x6d9: 0x3d13, 0x6da: 0x410f, 0x6db: 0x412d, 0x6dc: 0x4119, 0x6dd: 0x4137, + 0x6de: 0x4123, 0x6df: 0x4141, 0x6e0: 0x3ec3, 0x6e1: 0x3ecb, 0x6e2: 0x41ff, 0x6e3: 0x421d, + 0x6e4: 0x4209, 0x6e5: 0x4227, 0x6e6: 0x4213, 0x6e7: 0x4231, 0x6e8: 0x3d83, 0x6e9: 0x3d8b, + 0x6ea: 0x414b, 0x6eb: 0x4169, 0x6ec: 0x4155, 0x6ed: 0x4173, 0x6ee: 0x415f, 0x6ef: 0x417d, + 0x6f0: 0x3688, 0x6f1: 0x3682, 0x6f2: 0x3d93, 0x6f3: 0x368e, 0x6f4: 0x3d9b, + 0x6f6: 0x4813, 0x6f7: 0x3db3, 0x6f8: 0x35f8, 0x6f9: 0x35f2, 0x6fa: 0x35e6, 0x6fb: 0x42f1, + 0x6fc: 0x35fe, 0x6fd: 0x428a, 0x6fe: 0x01d3, 0x6ff: 0x428a, + // Block 0x1c, offset 0x700 + 0x700: 0x42a3, 0x701: 0x4485, 0x702: 0x3ddb, 0x703: 0x36a0, 0x704: 0x3de3, + 0x706: 0x483d, 0x707: 0x3dfb, 0x708: 0x3604, 0x709: 0x42f7, 0x70a: 0x3610, 0x70b: 0x42fd, + 0x70c: 0x361c, 0x70d: 0x448c, 0x70e: 0x4493, 0x70f: 0x449a, 0x710: 0x36b8, 0x711: 0x36b2, + 0x712: 0x3e03, 0x713: 0x44e7, 0x716: 0x36be, 0x717: 0x3e13, + 0x718: 0x3634, 0x719: 0x362e, 0x71a: 0x3622, 0x71b: 0x4303, 0x71d: 0x44a1, + 0x71e: 0x44a8, 0x71f: 0x44af, 0x720: 0x36ee, 0x721: 0x36e8, 0x722: 0x3e6b, 0x723: 0x44ef, + 0x724: 0x36d0, 0x725: 0x36d6, 0x726: 0x36f4, 0x727: 0x3e7b, 0x728: 0x3664, 0x729: 0x365e, + 0x72a: 0x3652, 0x72b: 0x430f, 0x72c: 0x364c, 0x72d: 0x4477, 0x72e: 0x447e, 0x72f: 0x0081, + 0x732: 0x3eb3, 0x733: 0x36fa, 0x734: 0x3ebb, + 0x736: 0x488b, 0x737: 0x3ed3, 0x738: 0x3640, 0x739: 0x4309, 0x73a: 0x3670, 0x73b: 0x431b, + 0x73c: 0x367c, 0x73d: 0x425d, 0x73e: 0x428f, + // Block 0x1d, offset 0x740 + 0x740: 0x1bdb, 0x741: 0x1bdf, 0x742: 0x0047, 0x743: 0x1c57, 0x745: 0x1beb, + 0x746: 0x1bef, 0x747: 0x00e9, 0x749: 0x1c5b, 0x74a: 0x008f, 0x74b: 0x0051, + 0x74c: 0x0051, 0x74d: 0x0051, 0x74e: 0x0091, 0x74f: 0x00da, 0x750: 0x0053, 0x751: 0x0053, + 0x752: 0x0059, 0x753: 0x0099, 0x755: 0x005d, 0x756: 0x1990, + 0x759: 0x0061, 0x75a: 0x0063, 0x75b: 0x0065, 0x75c: 0x0065, 0x75d: 0x0065, + 0x760: 0x19a2, 0x761: 0x1bcb, 0x762: 0x19ab, + 0x764: 0x0075, 0x766: 0x01b8, 0x768: 0x0075, + 0x76a: 0x0057, 0x76b: 0x42d5, 0x76c: 0x0045, 0x76d: 0x0047, 0x76f: 0x008b, + 0x770: 0x004b, 0x771: 0x004d, 0x773: 0x005b, 0x774: 0x009f, 0x775: 0x0215, + 0x776: 0x0218, 0x777: 0x021b, 0x778: 0x021e, 0x779: 0x0093, 0x77b: 0x1b9b, + 0x77c: 0x01e8, 0x77d: 0x01c1, 0x77e: 0x0179, 0x77f: 0x01a0, + // Block 0x1e, offset 0x780 + 0x780: 0x0463, 0x785: 0x0049, + 0x786: 0x0089, 0x787: 0x008b, 0x788: 0x0093, 0x789: 0x0095, + 0x790: 0x2231, 0x791: 0x223d, + 0x792: 0x22f1, 0x793: 0x2219, 0x794: 0x229d, 0x795: 0x2225, 0x796: 0x22a3, 0x797: 0x22bb, + 0x798: 0x22c7, 0x799: 0x222b, 0x79a: 0x22cd, 0x79b: 0x2237, 0x79c: 0x22c1, 0x79d: 0x22d3, + 0x79e: 0x22d9, 0x79f: 0x1cbf, 0x7a0: 0x0053, 0x7a1: 0x195a, 0x7a2: 0x1ba7, 0x7a3: 0x1963, + 0x7a4: 0x006d, 0x7a5: 0x19ae, 0x7a6: 0x1bd3, 0x7a7: 0x1d4b, 0x7a8: 0x1966, 0x7a9: 0x0071, + 0x7aa: 0x19ba, 0x7ab: 0x1bd7, 0x7ac: 0x0059, 0x7ad: 0x0047, 0x7ae: 0x0049, 0x7af: 0x005b, + 0x7b0: 0x0093, 0x7b1: 0x19e7, 0x7b2: 0x1c1b, 0x7b3: 0x19f0, 0x7b4: 0x00ad, 0x7b5: 0x1a65, + 0x7b6: 0x1c4f, 0x7b7: 0x1d5f, 0x7b8: 0x19f3, 0x7b9: 0x00b1, 0x7ba: 0x1a68, 0x7bb: 0x1c53, + 0x7bc: 0x0099, 0x7bd: 0x0087, 0x7be: 0x0089, 0x7bf: 0x009b, + // Block 0x1f, offset 0x7c0 + 0x7c1: 0x3c09, 0x7c3: 0xa000, 0x7c4: 0x3c10, 0x7c5: 0xa000, + 0x7c7: 0x3c17, 0x7c8: 0xa000, 0x7c9: 0x3c1e, + 0x7cd: 0xa000, + 0x7e0: 0x2f68, 0x7e1: 0xa000, 0x7e2: 0x3c2c, + 0x7e4: 0xa000, 0x7e5: 0xa000, + 0x7ed: 0x3c25, 0x7ee: 0x2f63, 0x7ef: 0x2f6d, + 0x7f0: 0x3c33, 0x7f1: 0x3c3a, 0x7f2: 0xa000, 0x7f3: 0xa000, 0x7f4: 0x3c41, 0x7f5: 0x3c48, + 0x7f6: 0xa000, 0x7f7: 0xa000, 0x7f8: 0x3c4f, 0x7f9: 0x3c56, 0x7fa: 0xa000, 0x7fb: 0xa000, + 0x7fc: 0xa000, 0x7fd: 0xa000, + // Block 0x20, offset 0x800 + 0x800: 0x3c5d, 0x801: 0x3c64, 0x802: 0xa000, 0x803: 0xa000, 0x804: 0x3c79, 0x805: 0x3c80, + 0x806: 0xa000, 0x807: 0xa000, 0x808: 0x3c87, 0x809: 0x3c8e, + 0x811: 0xa000, + 0x812: 0xa000, + 0x822: 0xa000, + 0x828: 0xa000, 0x829: 0xa000, + 0x82b: 0xa000, 0x82c: 0x3ca3, 0x82d: 0x3caa, 0x82e: 0x3cb1, 0x82f: 0x3cb8, + 0x832: 0xa000, 0x833: 0xa000, 0x834: 0xa000, 0x835: 0xa000, + // Block 0x21, offset 0x840 + 0x860: 0x0023, 0x861: 0x0025, 0x862: 0x0027, 0x863: 0x0029, + 0x864: 0x002b, 0x865: 0x002d, 0x866: 0x002f, 0x867: 0x0031, 0x868: 0x0033, 0x869: 0x1882, + 0x86a: 0x1885, 0x86b: 0x1888, 0x86c: 0x188b, 0x86d: 0x188e, 0x86e: 0x1891, 0x86f: 0x1894, + 0x870: 0x1897, 0x871: 0x189a, 0x872: 0x189d, 0x873: 0x18a6, 0x874: 0x1a6b, 0x875: 0x1a6f, + 0x876: 0x1a73, 0x877: 0x1a77, 0x878: 0x1a7b, 0x879: 0x1a7f, 0x87a: 0x1a83, 0x87b: 0x1a87, + 0x87c: 0x1a8b, 0x87d: 0x1c83, 0x87e: 0x1c88, 0x87f: 0x1c8d, + // Block 0x22, offset 0x880 + 0x880: 0x1c92, 0x881: 0x1c97, 0x882: 0x1c9c, 0x883: 0x1ca1, 0x884: 0x1ca6, 0x885: 0x1cab, + 0x886: 0x1cb0, 0x887: 0x1cb5, 0x888: 0x187f, 0x889: 0x18a3, 0x88a: 0x18c7, 0x88b: 0x18eb, + 0x88c: 0x190f, 0x88d: 0x1918, 0x88e: 0x191e, 0x88f: 0x1924, 0x890: 0x192a, 0x891: 0x1b63, + 0x892: 0x1b67, 0x893: 0x1b6b, 0x894: 0x1b6f, 0x895: 0x1b73, 0x896: 0x1b77, 0x897: 0x1b7b, + 0x898: 0x1b7f, 0x899: 0x1b83, 0x89a: 0x1b87, 0x89b: 0x1b8b, 0x89c: 0x1af7, 0x89d: 0x1afb, + 0x89e: 0x1aff, 0x89f: 0x1b03, 0x8a0: 0x1b07, 0x8a1: 0x1b0b, 0x8a2: 0x1b0f, 0x8a3: 0x1b13, + 0x8a4: 0x1b17, 0x8a5: 0x1b1b, 0x8a6: 0x1b1f, 0x8a7: 0x1b23, 0x8a8: 0x1b27, 0x8a9: 0x1b2b, + 0x8aa: 0x1b2f, 0x8ab: 0x1b33, 0x8ac: 0x1b37, 0x8ad: 0x1b3b, 0x8ae: 0x1b3f, 0x8af: 0x1b43, + 0x8b0: 0x1b47, 0x8b1: 0x1b4b, 0x8b2: 0x1b4f, 0x8b3: 0x1b53, 0x8b4: 0x1b57, 0x8b5: 0x1b5b, + 0x8b6: 0x0043, 0x8b7: 0x0045, 0x8b8: 0x0047, 0x8b9: 0x0049, 0x8ba: 0x004b, 0x8bb: 0x004d, + 0x8bc: 0x004f, 0x8bd: 0x0051, 0x8be: 0x0053, 0x8bf: 0x0055, + // Block 0x23, offset 0x8c0 + 0x8c0: 0x06bf, 0x8c1: 0x06e3, 0x8c2: 0x06ef, 0x8c3: 0x06ff, 0x8c4: 0x0707, 0x8c5: 0x0713, + 0x8c6: 0x071b, 0x8c7: 0x0723, 0x8c8: 0x072f, 0x8c9: 0x0783, 0x8ca: 0x079b, 0x8cb: 0x07ab, + 0x8cc: 0x07bb, 0x8cd: 0x07cb, 0x8ce: 0x07db, 0x8cf: 0x07fb, 0x8d0: 0x07ff, 0x8d1: 0x0803, + 0x8d2: 0x0837, 0x8d3: 0x085f, 0x8d4: 0x086f, 0x8d5: 0x0877, 0x8d6: 0x087b, 0x8d7: 0x0887, + 0x8d8: 0x08a3, 0x8d9: 0x08a7, 0x8da: 0x08bf, 0x8db: 0x08c3, 0x8dc: 0x08cb, 0x8dd: 0x08db, + 0x8de: 0x0977, 0x8df: 0x098b, 0x8e0: 0x09cb, 0x8e1: 0x09df, 0x8e2: 0x09e7, 0x8e3: 0x09eb, + 0x8e4: 0x09fb, 0x8e5: 0x0a17, 0x8e6: 0x0a43, 0x8e7: 0x0a4f, 0x8e8: 0x0a6f, 0x8e9: 0x0a7b, + 0x8ea: 0x0a7f, 0x8eb: 0x0a83, 0x8ec: 0x0a9b, 0x8ed: 0x0a9f, 0x8ee: 0x0acb, 0x8ef: 0x0ad7, + 0x8f0: 0x0adf, 0x8f1: 0x0ae7, 0x8f2: 0x0af7, 0x8f3: 0x0aff, 0x8f4: 0x0b07, 0x8f5: 0x0b33, + 0x8f6: 0x0b37, 0x8f7: 0x0b3f, 0x8f8: 0x0b43, 0x8f9: 0x0b4b, 0x8fa: 0x0b53, 0x8fb: 0x0b63, + 0x8fc: 0x0b7f, 0x8fd: 0x0bf7, 0x8fe: 0x0c0b, 0x8ff: 0x0c0f, + // Block 0x24, offset 0x900 + 0x900: 0x0c8f, 0x901: 0x0c93, 0x902: 0x0ca7, 0x903: 0x0cab, 0x904: 0x0cb3, 0x905: 0x0cbb, + 0x906: 0x0cc3, 0x907: 0x0ccf, 0x908: 0x0cf7, 0x909: 0x0d07, 0x90a: 0x0d1b, 0x90b: 0x0d8b, + 0x90c: 0x0d97, 0x90d: 0x0da7, 0x90e: 0x0db3, 0x90f: 0x0dbf, 0x910: 0x0dc7, 0x911: 0x0dcb, + 0x912: 0x0dcf, 0x913: 0x0dd3, 0x914: 0x0dd7, 0x915: 0x0e8f, 0x916: 0x0ed7, 0x917: 0x0ee3, + 0x918: 0x0ee7, 0x919: 0x0eeb, 0x91a: 0x0eef, 0x91b: 0x0ef7, 0x91c: 0x0efb, 0x91d: 0x0f0f, + 0x91e: 0x0f2b, 0x91f: 0x0f33, 0x920: 0x0f73, 0x921: 0x0f77, 0x922: 0x0f7f, 0x923: 0x0f83, + 0x924: 0x0f8b, 0x925: 0x0f8f, 0x926: 0x0fb3, 0x927: 0x0fb7, 0x928: 0x0fd3, 0x929: 0x0fd7, + 0x92a: 0x0fdb, 0x92b: 0x0fdf, 0x92c: 0x0ff3, 0x92d: 0x1017, 0x92e: 0x101b, 0x92f: 0x101f, + 0x930: 0x1043, 0x931: 0x1083, 0x932: 0x1087, 0x933: 0x10a7, 0x934: 0x10b7, 0x935: 0x10bf, + 0x936: 0x10df, 0x937: 0x1103, 0x938: 0x1147, 0x939: 0x114f, 0x93a: 0x1163, 0x93b: 0x116f, + 0x93c: 0x1177, 0x93d: 0x117f, 0x93e: 0x1183, 0x93f: 0x1187, + // Block 0x25, offset 0x940 + 0x940: 0x119f, 0x941: 0x11a3, 0x942: 0x11bf, 0x943: 0x11c7, 0x944: 0x11cf, 0x945: 0x11d3, + 0x946: 0x11df, 0x947: 0x11e7, 0x948: 0x11eb, 0x949: 0x11ef, 0x94a: 0x11f7, 0x94b: 0x11fb, + 0x94c: 0x129b, 0x94d: 0x12af, 0x94e: 0x12e3, 0x94f: 0x12e7, 0x950: 0x12ef, 0x951: 0x131b, + 0x952: 0x1323, 0x953: 0x132b, 0x954: 0x1333, 0x955: 0x136f, 0x956: 0x1373, 0x957: 0x137b, + 0x958: 0x137f, 0x959: 0x1383, 0x95a: 0x13af, 0x95b: 0x13b3, 0x95c: 0x13bb, 0x95d: 0x13cf, + 0x95e: 0x13d3, 0x95f: 0x13ef, 0x960: 0x13f7, 0x961: 0x13fb, 0x962: 0x141f, 0x963: 0x143f, + 0x964: 0x1453, 0x965: 0x1457, 0x966: 0x145f, 0x967: 0x148b, 0x968: 0x148f, 0x969: 0x149f, + 0x96a: 0x14c3, 0x96b: 0x14cf, 0x96c: 0x14df, 0x96d: 0x14f7, 0x96e: 0x14ff, 0x96f: 0x1503, + 0x970: 0x1507, 0x971: 0x150b, 0x972: 0x1517, 0x973: 0x151b, 0x974: 0x1523, 0x975: 0x153f, + 0x976: 0x1543, 0x977: 0x1547, 0x978: 0x155f, 0x979: 0x1563, 0x97a: 0x156b, 0x97b: 0x157f, + 0x97c: 0x1583, 0x97d: 0x1587, 0x97e: 0x158f, 0x97f: 0x1593, + // Block 0x26, offset 0x980 + 0x986: 0xa000, 0x98b: 0xa000, + 0x98c: 0x3f0b, 0x98d: 0xa000, 0x98e: 0x3f13, 0x98f: 0xa000, 0x990: 0x3f1b, 0x991: 0xa000, + 0x992: 0x3f23, 0x993: 0xa000, 0x994: 0x3f2b, 0x995: 0xa000, 0x996: 0x3f33, 0x997: 0xa000, + 0x998: 0x3f3b, 0x999: 0xa000, 0x99a: 0x3f43, 0x99b: 0xa000, 0x99c: 0x3f4b, 0x99d: 0xa000, + 0x99e: 0x3f53, 0x99f: 0xa000, 0x9a0: 0x3f5b, 0x9a1: 0xa000, 0x9a2: 0x3f63, + 0x9a4: 0xa000, 0x9a5: 0x3f6b, 0x9a6: 0xa000, 0x9a7: 0x3f73, 0x9a8: 0xa000, 0x9a9: 0x3f7b, + 0x9af: 0xa000, + 0x9b0: 0x3f83, 0x9b1: 0x3f8b, 0x9b2: 0xa000, 0x9b3: 0x3f93, 0x9b4: 0x3f9b, 0x9b5: 0xa000, + 0x9b6: 0x3fa3, 0x9b7: 0x3fab, 0x9b8: 0xa000, 0x9b9: 0x3fb3, 0x9ba: 0x3fbb, 0x9bb: 0xa000, + 0x9bc: 0x3fc3, 0x9bd: 0x3fcb, + // Block 0x27, offset 0x9c0 + 0x9d4: 0x3f03, + 0x9d9: 0x9903, 0x9da: 0x9903, 0x9db: 0x42df, 0x9dc: 0x42e5, 0x9dd: 0xa000, + 0x9de: 0x3fd3, 0x9df: 0x26b7, + 0x9e6: 0xa000, + 0x9eb: 0xa000, 0x9ec: 0x3fe3, 0x9ed: 0xa000, 0x9ee: 0x3feb, 0x9ef: 0xa000, + 0x9f0: 0x3ff3, 0x9f1: 0xa000, 0x9f2: 0x3ffb, 0x9f3: 0xa000, 0x9f4: 0x4003, 0x9f5: 0xa000, + 0x9f6: 0x400b, 0x9f7: 0xa000, 0x9f8: 0x4013, 0x9f9: 0xa000, 0x9fa: 0x401b, 0x9fb: 0xa000, + 0x9fc: 0x4023, 0x9fd: 0xa000, 0x9fe: 0x402b, 0x9ff: 0xa000, + // Block 0x28, offset 0xa00 + 0xa00: 0x4033, 0xa01: 0xa000, 0xa02: 0x403b, 0xa04: 0xa000, 0xa05: 0x4043, + 0xa06: 0xa000, 0xa07: 0x404b, 0xa08: 0xa000, 0xa09: 0x4053, + 0xa0f: 0xa000, 0xa10: 0x405b, 0xa11: 0x4063, + 0xa12: 0xa000, 0xa13: 0x406b, 0xa14: 0x4073, 0xa15: 0xa000, 0xa16: 0x407b, 0xa17: 0x4083, + 0xa18: 0xa000, 0xa19: 0x408b, 0xa1a: 0x4093, 0xa1b: 0xa000, 0xa1c: 0x409b, 0xa1d: 0x40a3, + 0xa2f: 0xa000, + 0xa30: 0xa000, 0xa31: 0xa000, 0xa32: 0xa000, 0xa34: 0x3fdb, + 0xa37: 0x40ab, 0xa38: 0x40b3, 0xa39: 0x40bb, 0xa3a: 0x40c3, + 0xa3d: 0xa000, 0xa3e: 0x40cb, 0xa3f: 0x26cc, + // Block 0x29, offset 0xa40 + 0xa40: 0x0367, 0xa41: 0x032b, 0xa42: 0x032f, 0xa43: 0x0333, 0xa44: 0x037b, 0xa45: 0x0337, + 0xa46: 0x033b, 0xa47: 0x033f, 0xa48: 0x0343, 0xa49: 0x0347, 0xa4a: 0x034b, 0xa4b: 0x034f, + 0xa4c: 0x0353, 0xa4d: 0x0357, 0xa4e: 0x035b, 0xa4f: 0x49c0, 0xa50: 0x49c6, 0xa51: 0x49cc, + 0xa52: 0x49d2, 0xa53: 0x49d8, 0xa54: 0x49de, 0xa55: 0x49e4, 0xa56: 0x49ea, 0xa57: 0x49f0, + 0xa58: 0x49f6, 0xa59: 0x49fc, 0xa5a: 0x4a02, 0xa5b: 0x4a08, 0xa5c: 0x4a0e, 0xa5d: 0x4a14, + 0xa5e: 0x4a1a, 0xa5f: 0x4a20, 0xa60: 0x4a26, 0xa61: 0x4a2c, 0xa62: 0x4a32, 0xa63: 0x4a38, + 0xa64: 0x03c3, 0xa65: 0x035f, 0xa66: 0x0363, 0xa67: 0x03e7, 0xa68: 0x03eb, 0xa69: 0x03ef, + 0xa6a: 0x03f3, 0xa6b: 0x03f7, 0xa6c: 0x03fb, 0xa6d: 0x03ff, 0xa6e: 0x036b, 0xa6f: 0x0403, + 0xa70: 0x0407, 0xa71: 0x036f, 0xa72: 0x0373, 0xa73: 0x0377, 0xa74: 0x037f, 0xa75: 0x0383, + 0xa76: 0x0387, 0xa77: 0x038b, 0xa78: 0x038f, 0xa79: 0x0393, 0xa7a: 0x0397, 0xa7b: 0x039b, + 0xa7c: 0x039f, 0xa7d: 0x03a3, 0xa7e: 0x03a7, 0xa7f: 0x03ab, + // Block 0x2a, offset 0xa80 + 0xa80: 0x03af, 0xa81: 0x03b3, 0xa82: 0x040b, 0xa83: 0x040f, 0xa84: 0x03b7, 0xa85: 0x03bb, + 0xa86: 0x03bf, 0xa87: 0x03c7, 0xa88: 0x03cb, 0xa89: 0x03cf, 0xa8a: 0x03d3, 0xa8b: 0x03d7, + 0xa8c: 0x03db, 0xa8d: 0x03df, 0xa8e: 0x03e3, + 0xa92: 0x06bf, 0xa93: 0x071b, 0xa94: 0x06cb, 0xa95: 0x097b, 0xa96: 0x06cf, 0xa97: 0x06e7, + 0xa98: 0x06d3, 0xa99: 0x0f93, 0xa9a: 0x0707, 0xa9b: 0x06db, 0xa9c: 0x06c3, 0xa9d: 0x09ff, + 0xa9e: 0x098f, 0xa9f: 0x072f, + // Block 0x2b, offset 0xac0 + 0xac0: 0x2057, 0xac1: 0x205d, 0xac2: 0x2063, 0xac3: 0x2069, 0xac4: 0x206f, 0xac5: 0x2075, + 0xac6: 0x207b, 0xac7: 0x2081, 0xac8: 0x2087, 0xac9: 0x208d, 0xaca: 0x2093, 0xacb: 0x2099, + 0xacc: 0x209f, 0xacd: 0x20a5, 0xace: 0x2729, 0xacf: 0x2732, 0xad0: 0x273b, 0xad1: 0x2744, + 0xad2: 0x274d, 0xad3: 0x2756, 0xad4: 0x275f, 0xad5: 0x2768, 0xad6: 0x2771, 0xad7: 0x2783, + 0xad8: 0x278c, 0xad9: 0x2795, 0xada: 0x279e, 0xadb: 0x27a7, 0xadc: 0x277a, 0xadd: 0x2baf, + 0xade: 0x2af0, 0xae0: 0x20ab, 0xae1: 0x20c3, 0xae2: 0x20b7, 0xae3: 0x210b, + 0xae4: 0x20c9, 0xae5: 0x20e7, 0xae6: 0x20b1, 0xae7: 0x20e1, 0xae8: 0x20bd, 0xae9: 0x20f3, + 0xaea: 0x2123, 0xaeb: 0x2141, 0xaec: 0x213b, 0xaed: 0x212f, 0xaee: 0x217d, 0xaef: 0x2111, + 0xaf0: 0x211d, 0xaf1: 0x2135, 0xaf2: 0x2129, 0xaf3: 0x2153, 0xaf4: 0x20ff, 0xaf5: 0x2147, + 0xaf6: 0x2171, 0xaf7: 0x2159, 0xaf8: 0x20ed, 0xaf9: 0x20cf, 0xafa: 0x2105, 0xafb: 0x2117, + 0xafc: 0x214d, 0xafd: 0x20d5, 0xafe: 0x2177, 0xaff: 0x20f9, + // Block 0x2c, offset 0xb00 + 0xb00: 0x215f, 0xb01: 0x20db, 0xb02: 0x2165, 0xb03: 0x216b, 0xb04: 0x092f, 0xb05: 0x0b03, + 0xb06: 0x0ca7, 0xb07: 0x10c7, + 0xb10: 0x1bc7, 0xb11: 0x18a9, + 0xb12: 0x18ac, 0xb13: 0x18af, 0xb14: 0x18b2, 0xb15: 0x18b5, 0xb16: 0x18b8, 0xb17: 0x18bb, + 0xb18: 0x18be, 0xb19: 0x18c1, 0xb1a: 0x18ca, 0xb1b: 0x18cd, 0xb1c: 0x18d0, 0xb1d: 0x18d3, + 0xb1e: 0x18d6, 0xb1f: 0x18d9, 0xb20: 0x0313, 0xb21: 0x031b, 0xb22: 0x031f, 0xb23: 0x0327, + 0xb24: 0x032b, 0xb25: 0x032f, 0xb26: 0x0337, 0xb27: 0x033f, 0xb28: 0x0343, 0xb29: 0x034b, + 0xb2a: 0x034f, 0xb2b: 0x0353, 0xb2c: 0x0357, 0xb2d: 0x035b, 0xb2e: 0x2e1b, 0xb2f: 0x2e23, + 0xb30: 0x2e2b, 0xb31: 0x2e33, 0xb32: 0x2e3b, 0xb33: 0x2e43, 0xb34: 0x2e4b, 0xb35: 0x2e53, + 0xb36: 0x2e63, 0xb37: 0x2e6b, 0xb38: 0x2e73, 0xb39: 0x2e7b, 0xb3a: 0x2e83, 0xb3b: 0x2e8b, + 0xb3c: 0x2ed6, 0xb3d: 0x2e9e, 0xb3e: 0x2e5b, + // Block 0x2d, offset 0xb40 + 0xb40: 0x06bf, 0xb41: 0x071b, 0xb42: 0x06cb, 0xb43: 0x097b, 0xb44: 0x071f, 0xb45: 0x07af, + 0xb46: 0x06c7, 0xb47: 0x07ab, 0xb48: 0x070b, 0xb49: 0x0887, 0xb4a: 0x0d07, 0xb4b: 0x0e8f, + 0xb4c: 0x0dd7, 0xb4d: 0x0d1b, 0xb4e: 0x145f, 0xb4f: 0x098b, 0xb50: 0x0ccf, 0xb51: 0x0d4b, + 0xb52: 0x0d0b, 0xb53: 0x104b, 0xb54: 0x08fb, 0xb55: 0x0f03, 0xb56: 0x1387, 0xb57: 0x105f, + 0xb58: 0x0843, 0xb59: 0x108f, 0xb5a: 0x0f9b, 0xb5b: 0x0a17, 0xb5c: 0x140f, 0xb5d: 0x077f, + 0xb5e: 0x08ab, 0xb5f: 0x0df7, 0xb60: 0x1527, 0xb61: 0x0743, 0xb62: 0x07d3, 0xb63: 0x0d9b, + 0xb64: 0x06cf, 0xb65: 0x06e7, 0xb66: 0x06d3, 0xb67: 0x0adb, 0xb68: 0x08ef, 0xb69: 0x087f, + 0xb6a: 0x0a57, 0xb6b: 0x0a4b, 0xb6c: 0x0feb, 0xb6d: 0x073f, 0xb6e: 0x139b, 0xb6f: 0x089b, + 0xb70: 0x09f3, 0xb71: 0x18dc, 0xb72: 0x18df, 0xb73: 0x18e2, 0xb74: 0x18e5, 0xb75: 0x18ee, + 0xb76: 0x18f1, 0xb77: 0x18f4, 0xb78: 0x18f7, 0xb79: 0x18fa, 0xb7a: 0x18fd, 0xb7b: 0x1900, + 0xb7c: 0x1903, 0xb7d: 0x1906, 0xb7e: 0x1909, 0xb7f: 0x1912, + // Block 0x2e, offset 0xb80 + 0xb80: 0x1cc9, 0xb81: 0x1cd8, 0xb82: 0x1ce7, 0xb83: 0x1cf6, 0xb84: 0x1d05, 0xb85: 0x1d14, + 0xb86: 0x1d23, 0xb87: 0x1d32, 0xb88: 0x1d41, 0xb89: 0x218f, 0xb8a: 0x21a1, 0xb8b: 0x21b3, + 0xb8c: 0x1954, 0xb8d: 0x1c07, 0xb8e: 0x19d5, 0xb8f: 0x1bab, 0xb90: 0x04cb, 0xb91: 0x04d3, + 0xb92: 0x04db, 0xb93: 0x04e3, 0xb94: 0x04eb, 0xb95: 0x04ef, 0xb96: 0x04f3, 0xb97: 0x04f7, + 0xb98: 0x04fb, 0xb99: 0x04ff, 0xb9a: 0x0503, 0xb9b: 0x0507, 0xb9c: 0x050b, 0xb9d: 0x050f, + 0xb9e: 0x0513, 0xb9f: 0x0517, 0xba0: 0x051b, 0xba1: 0x0523, 0xba2: 0x0527, 0xba3: 0x052b, + 0xba4: 0x052f, 0xba5: 0x0533, 0xba6: 0x0537, 0xba7: 0x053b, 0xba8: 0x053f, 0xba9: 0x0543, + 0xbaa: 0x0547, 0xbab: 0x054b, 0xbac: 0x054f, 0xbad: 0x0553, 0xbae: 0x0557, 0xbaf: 0x055b, + 0xbb0: 0x055f, 0xbb1: 0x0563, 0xbb2: 0x0567, 0xbb3: 0x056f, 0xbb4: 0x0577, 0xbb5: 0x057f, + 0xbb6: 0x0583, 0xbb7: 0x0587, 0xbb8: 0x058b, 0xbb9: 0x058f, 0xbba: 0x0593, 0xbbb: 0x0597, + 0xbbc: 0x059b, 0xbbd: 0x059f, 0xbbe: 0x05a3, + // Block 0x2f, offset 0xbc0 + 0xbc0: 0x2b0f, 0xbc1: 0x29ab, 0xbc2: 0x2b1f, 0xbc3: 0x2883, 0xbc4: 0x2ee7, 0xbc5: 0x288d, + 0xbc6: 0x2897, 0xbc7: 0x2f2b, 0xbc8: 0x29b8, 0xbc9: 0x28a1, 0xbca: 0x28ab, 0xbcb: 0x28b5, + 0xbcc: 0x29df, 0xbcd: 0x29ec, 0xbce: 0x29c5, 0xbcf: 0x29d2, 0xbd0: 0x2eac, 0xbd1: 0x29f9, + 0xbd2: 0x2a06, 0xbd3: 0x2bc1, 0xbd4: 0x26be, 0xbd5: 0x2bd4, 0xbd6: 0x2be7, 0xbd7: 0x2b2f, + 0xbd8: 0x2a13, 0xbd9: 0x2bfa, 0xbda: 0x2c0d, 0xbdb: 0x2a20, 0xbdc: 0x28bf, 0xbdd: 0x28c9, + 0xbde: 0x2eba, 0xbdf: 0x2a2d, 0xbe0: 0x2b3f, 0xbe1: 0x2ef8, 0xbe2: 0x28d3, 0xbe3: 0x28dd, + 0xbe4: 0x2a3a, 0xbe5: 0x28e7, 0xbe6: 0x28f1, 0xbe7: 0x26d3, 0xbe8: 0x26da, 0xbe9: 0x28fb, + 0xbea: 0x2905, 0xbeb: 0x2c20, 0xbec: 0x2a47, 0xbed: 0x2b4f, 0xbee: 0x2c33, 0xbef: 0x2a54, + 0xbf0: 0x2919, 0xbf1: 0x290f, 0xbf2: 0x2f3f, 0xbf3: 0x2a61, 0xbf4: 0x2c46, 0xbf5: 0x2923, + 0xbf6: 0x2b5f, 0xbf7: 0x292d, 0xbf8: 0x2a7b, 0xbf9: 0x2937, 0xbfa: 0x2a88, 0xbfb: 0x2f09, + 0xbfc: 0x2a6e, 0xbfd: 0x2b6f, 0xbfe: 0x2a95, 0xbff: 0x26e1, + // Block 0x30, offset 0xc00 + 0xc00: 0x2f1a, 0xc01: 0x2941, 0xc02: 0x294b, 0xc03: 0x2aa2, 0xc04: 0x2955, 0xc05: 0x295f, + 0xc06: 0x2969, 0xc07: 0x2b7f, 0xc08: 0x2aaf, 0xc09: 0x26e8, 0xc0a: 0x2c59, 0xc0b: 0x2e93, + 0xc0c: 0x2b8f, 0xc0d: 0x2abc, 0xc0e: 0x2ec8, 0xc0f: 0x2973, 0xc10: 0x297d, 0xc11: 0x2ac9, + 0xc12: 0x26ef, 0xc13: 0x2ad6, 0xc14: 0x2b9f, 0xc15: 0x26f6, 0xc16: 0x2c6c, 0xc17: 0x2987, + 0xc18: 0x1cba, 0xc19: 0x1cce, 0xc1a: 0x1cdd, 0xc1b: 0x1cec, 0xc1c: 0x1cfb, 0xc1d: 0x1d0a, + 0xc1e: 0x1d19, 0xc1f: 0x1d28, 0xc20: 0x1d37, 0xc21: 0x1d46, 0xc22: 0x2195, 0xc23: 0x21a7, + 0xc24: 0x21b9, 0xc25: 0x21c5, 0xc26: 0x21d1, 0xc27: 0x21dd, 0xc28: 0x21e9, 0xc29: 0x21f5, + 0xc2a: 0x2201, 0xc2b: 0x220d, 0xc2c: 0x2249, 0xc2d: 0x2255, 0xc2e: 0x2261, 0xc2f: 0x226d, + 0xc30: 0x2279, 0xc31: 0x1c17, 0xc32: 0x19c9, 0xc33: 0x1936, 0xc34: 0x1be7, 0xc35: 0x1a4a, + 0xc36: 0x1a59, 0xc37: 0x19cf, 0xc38: 0x1bff, 0xc39: 0x1c03, 0xc3a: 0x1960, 0xc3b: 0x2704, + 0xc3c: 0x2712, 0xc3d: 0x26fd, 0xc3e: 0x270b, 0xc3f: 0x2ae3, + // Block 0x31, offset 0xc40 + 0xc40: 0x1a4d, 0xc41: 0x1a35, 0xc42: 0x1c63, 0xc43: 0x1a1d, 0xc44: 0x19f6, 0xc45: 0x1969, + 0xc46: 0x1978, 0xc47: 0x1948, 0xc48: 0x1bf3, 0xc49: 0x1d55, 0xc4a: 0x1a50, 0xc4b: 0x1a38, + 0xc4c: 0x1c67, 0xc4d: 0x1c73, 0xc4e: 0x1a29, 0xc4f: 0x19ff, 0xc50: 0x1957, 0xc51: 0x1c1f, + 0xc52: 0x1bb3, 0xc53: 0x1b9f, 0xc54: 0x1bcf, 0xc55: 0x1c77, 0xc56: 0x1a2c, 0xc57: 0x19cc, + 0xc58: 0x1a02, 0xc59: 0x19e1, 0xc5a: 0x1a44, 0xc5b: 0x1c7b, 0xc5c: 0x1a2f, 0xc5d: 0x19c3, + 0xc5e: 0x1a05, 0xc5f: 0x1c3f, 0xc60: 0x1bf7, 0xc61: 0x1a17, 0xc62: 0x1c27, 0xc63: 0x1c43, + 0xc64: 0x1bfb, 0xc65: 0x1a1a, 0xc66: 0x1c2b, 0xc67: 0x22eb, 0xc68: 0x22ff, 0xc69: 0x1999, + 0xc6a: 0x1c23, 0xc6b: 0x1bb7, 0xc6c: 0x1ba3, 0xc6d: 0x1c4b, 0xc6e: 0x2719, 0xc6f: 0x27b0, + 0xc70: 0x1a5c, 0xc71: 0x1a47, 0xc72: 0x1c7f, 0xc73: 0x1a32, 0xc74: 0x1a53, 0xc75: 0x1a3b, + 0xc76: 0x1c6b, 0xc77: 0x1a20, 0xc78: 0x19f9, 0xc79: 0x1984, 0xc7a: 0x1a56, 0xc7b: 0x1a3e, + 0xc7c: 0x1c6f, 0xc7d: 0x1a23, 0xc7e: 0x19fc, 0xc7f: 0x1987, + // Block 0x32, offset 0xc80 + 0xc80: 0x1c2f, 0xc81: 0x1bbb, 0xc82: 0x1d50, 0xc83: 0x1939, 0xc84: 0x19bd, 0xc85: 0x19c0, + 0xc86: 0x22f8, 0xc87: 0x1b97, 0xc88: 0x19c6, 0xc89: 0x194b, 0xc8a: 0x19e4, 0xc8b: 0x194e, + 0xc8c: 0x19ed, 0xc8d: 0x196c, 0xc8e: 0x196f, 0xc8f: 0x1a08, 0xc90: 0x1a0e, 0xc91: 0x1a11, + 0xc92: 0x1c33, 0xc93: 0x1a14, 0xc94: 0x1a26, 0xc95: 0x1c3b, 0xc96: 0x1c47, 0xc97: 0x1993, + 0xc98: 0x1d5a, 0xc99: 0x1bbf, 0xc9a: 0x1996, 0xc9b: 0x1a5f, 0xc9c: 0x19a8, 0xc9d: 0x19b7, + 0xc9e: 0x22e5, 0xc9f: 0x22df, 0xca0: 0x1cc4, 0xca1: 0x1cd3, 0xca2: 0x1ce2, 0xca3: 0x1cf1, + 0xca4: 0x1d00, 0xca5: 0x1d0f, 0xca6: 0x1d1e, 0xca7: 0x1d2d, 0xca8: 0x1d3c, 0xca9: 0x2189, + 0xcaa: 0x219b, 0xcab: 0x21ad, 0xcac: 0x21bf, 0xcad: 0x21cb, 0xcae: 0x21d7, 0xcaf: 0x21e3, + 0xcb0: 0x21ef, 0xcb1: 0x21fb, 0xcb2: 0x2207, 0xcb3: 0x2243, 0xcb4: 0x224f, 0xcb5: 0x225b, + 0xcb6: 0x2267, 0xcb7: 0x2273, 0xcb8: 0x227f, 0xcb9: 0x2285, 0xcba: 0x228b, 0xcbb: 0x2291, + 0xcbc: 0x2297, 0xcbd: 0x22a9, 0xcbe: 0x22af, 0xcbf: 0x1c13, + // Block 0x33, offset 0xcc0 + 0xcc0: 0x1377, 0xcc1: 0x0cfb, 0xcc2: 0x13d3, 0xcc3: 0x139f, 0xcc4: 0x0e57, 0xcc5: 0x06eb, + 0xcc6: 0x08df, 0xcc7: 0x162b, 0xcc8: 0x162b, 0xcc9: 0x0a0b, 0xcca: 0x145f, 0xccb: 0x0943, + 0xccc: 0x0a07, 0xccd: 0x0bef, 0xcce: 0x0fcf, 0xccf: 0x115f, 0xcd0: 0x1297, 0xcd1: 0x12d3, + 0xcd2: 0x1307, 0xcd3: 0x141b, 0xcd4: 0x0d73, 0xcd5: 0x0dff, 0xcd6: 0x0eab, 0xcd7: 0x0f43, + 0xcd8: 0x125f, 0xcd9: 0x1447, 0xcda: 0x1573, 0xcdb: 0x070f, 0xcdc: 0x08b3, 0xcdd: 0x0d87, + 0xcde: 0x0ecf, 0xcdf: 0x1293, 0xce0: 0x15c3, 0xce1: 0x0ab3, 0xce2: 0x0e77, 0xce3: 0x1283, + 0xce4: 0x1317, 0xce5: 0x0c23, 0xce6: 0x11bb, 0xce7: 0x12df, 0xce8: 0x0b1f, 0xce9: 0x0d0f, + 0xcea: 0x0e17, 0xceb: 0x0f1b, 0xcec: 0x1427, 0xced: 0x074f, 0xcee: 0x07e7, 0xcef: 0x0853, + 0xcf0: 0x0c8b, 0xcf1: 0x0d7f, 0xcf2: 0x0ecb, 0xcf3: 0x0fef, 0xcf4: 0x1177, 0xcf5: 0x128b, + 0xcf6: 0x12a3, 0xcf7: 0x13c7, 0xcf8: 0x14ef, 0xcf9: 0x15a3, 0xcfa: 0x15bf, 0xcfb: 0x102b, + 0xcfc: 0x106b, 0xcfd: 0x1123, 0xcfe: 0x1243, 0xcff: 0x147b, + // Block 0x34, offset 0xd00 + 0xd00: 0x15cb, 0xd01: 0x134b, 0xd02: 0x09c7, 0xd03: 0x0b3b, 0xd04: 0x10db, 0xd05: 0x119b, + 0xd06: 0x0eff, 0xd07: 0x1033, 0xd08: 0x1397, 0xd09: 0x14e7, 0xd0a: 0x09c3, 0xd0b: 0x0a8f, + 0xd0c: 0x0d77, 0xd0d: 0x0e2b, 0xd0e: 0x0e5f, 0xd0f: 0x1113, 0xd10: 0x113b, 0xd11: 0x14a7, + 0xd12: 0x084f, 0xd13: 0x11a7, 0xd14: 0x07f3, 0xd15: 0x07ef, 0xd16: 0x1097, 0xd17: 0x1127, + 0xd18: 0x125b, 0xd19: 0x14af, 0xd1a: 0x1367, 0xd1b: 0x0c27, 0xd1c: 0x0d73, 0xd1d: 0x1357, + 0xd1e: 0x06f7, 0xd1f: 0x0a63, 0xd20: 0x0b93, 0xd21: 0x0f2f, 0xd22: 0x0faf, 0xd23: 0x0873, + 0xd24: 0x103b, 0xd25: 0x075f, 0xd26: 0x0b77, 0xd27: 0x06d7, 0xd28: 0x0deb, 0xd29: 0x0ca3, + 0xd2a: 0x110f, 0xd2b: 0x08c7, 0xd2c: 0x09b3, 0xd2d: 0x0ffb, 0xd2e: 0x1263, 0xd2f: 0x133b, + 0xd30: 0x0db7, 0xd31: 0x13f7, 0xd32: 0x0de3, 0xd33: 0x0c37, 0xd34: 0x121b, 0xd35: 0x0c57, + 0xd36: 0x0fab, 0xd37: 0x072b, 0xd38: 0x07a7, 0xd39: 0x07eb, 0xd3a: 0x0d53, 0xd3b: 0x10fb, + 0xd3c: 0x11f3, 0xd3d: 0x1347, 0xd3e: 0x145b, 0xd3f: 0x085b, + // Block 0x35, offset 0xd40 + 0xd40: 0x090f, 0xd41: 0x0a17, 0xd42: 0x0b2f, 0xd43: 0x0cbf, 0xd44: 0x0e7b, 0xd45: 0x103f, + 0xd46: 0x1497, 0xd47: 0x157b, 0xd48: 0x15cf, 0xd49: 0x15e7, 0xd4a: 0x0837, 0xd4b: 0x0cf3, + 0xd4c: 0x0da3, 0xd4d: 0x13eb, 0xd4e: 0x0afb, 0xd4f: 0x0bd7, 0xd50: 0x0bf3, 0xd51: 0x0c83, + 0xd52: 0x0e6b, 0xd53: 0x0eb7, 0xd54: 0x0f67, 0xd55: 0x108b, 0xd56: 0x112f, 0xd57: 0x1193, + 0xd58: 0x13db, 0xd59: 0x126b, 0xd5a: 0x1403, 0xd5b: 0x147f, 0xd5c: 0x080f, 0xd5d: 0x083b, + 0xd5e: 0x0923, 0xd5f: 0x0ea7, 0xd60: 0x12f3, 0xd61: 0x133b, 0xd62: 0x0b1b, 0xd63: 0x0b8b, + 0xd64: 0x0c4f, 0xd65: 0x0daf, 0xd66: 0x10d7, 0xd67: 0x0f23, 0xd68: 0x073b, 0xd69: 0x097f, + 0xd6a: 0x0a63, 0xd6b: 0x0ac7, 0xd6c: 0x0b97, 0xd6d: 0x0f3f, 0xd6e: 0x0f5b, 0xd6f: 0x116b, + 0xd70: 0x118b, 0xd71: 0x1463, 0xd72: 0x14e3, 0xd73: 0x14f3, 0xd74: 0x152f, 0xd75: 0x0753, + 0xd76: 0x107f, 0xd77: 0x144f, 0xd78: 0x14cb, 0xd79: 0x0baf, 0xd7a: 0x0717, 0xd7b: 0x0777, + 0xd7c: 0x0a67, 0xd7d: 0x0a87, 0xd7e: 0x0caf, 0xd7f: 0x0d73, + // Block 0x36, offset 0xd80 + 0xd80: 0x0ec3, 0xd81: 0x0fcb, 0xd82: 0x1277, 0xd83: 0x1417, 0xd84: 0x1623, 0xd85: 0x0ce3, + 0xd86: 0x14a3, 0xd87: 0x0833, 0xd88: 0x0d2f, 0xd89: 0x0d3b, 0xd8a: 0x0e0f, 0xd8b: 0x0e47, + 0xd8c: 0x0f4b, 0xd8d: 0x0fa7, 0xd8e: 0x1027, 0xd8f: 0x110b, 0xd90: 0x153b, 0xd91: 0x07af, + 0xd92: 0x0c03, 0xd93: 0x14b3, 0xd94: 0x0767, 0xd95: 0x0aab, 0xd96: 0x0e2f, 0xd97: 0x13df, + 0xd98: 0x0b67, 0xd99: 0x0bb7, 0xd9a: 0x0d43, 0xd9b: 0x0f2f, 0xd9c: 0x14bb, 0xd9d: 0x0817, + 0xd9e: 0x08ff, 0xd9f: 0x0a97, 0xda0: 0x0cd3, 0xda1: 0x0d1f, 0xda2: 0x0d5f, 0xda3: 0x0df3, + 0xda4: 0x0f47, 0xda5: 0x0fbb, 0xda6: 0x1157, 0xda7: 0x12f7, 0xda8: 0x1303, 0xda9: 0x1457, + 0xdaa: 0x14d7, 0xdab: 0x0883, 0xdac: 0x0e4b, 0xdad: 0x0903, 0xdae: 0x0ec7, 0xdaf: 0x0f6b, + 0xdb0: 0x1287, 0xdb1: 0x14bf, 0xdb2: 0x15ab, 0xdb3: 0x15d3, 0xdb4: 0x0d37, 0xdb5: 0x0e27, + 0xdb6: 0x11c3, 0xdb7: 0x10b7, 0xdb8: 0x10c3, 0xdb9: 0x10e7, 0xdba: 0x0f17, 0xdbb: 0x0e9f, + 0xdbc: 0x1363, 0xdbd: 0x0733, 0xdbe: 0x122b, 0xdbf: 0x081b, + // Block 0x37, offset 0xdc0 + 0xdc0: 0x080b, 0xdc1: 0x0b0b, 0xdc2: 0x0c2b, 0xdc3: 0x10f3, 0xdc4: 0x0a53, 0xdc5: 0x0e03, + 0xdc6: 0x0cef, 0xdc7: 0x13e7, 0xdc8: 0x12e7, 0xdc9: 0x14ab, 0xdca: 0x1323, 0xdcb: 0x0b27, + 0xdcc: 0x0787, 0xdcd: 0x095b, 0xdd0: 0x09af, + 0xdd2: 0x0cdf, 0xdd5: 0x07f7, 0xdd6: 0x0f1f, 0xdd7: 0x0fe3, + 0xdd8: 0x1047, 0xdd9: 0x1063, 0xdda: 0x1067, 0xddb: 0x107b, 0xddc: 0x14fb, 0xddd: 0x10eb, + 0xdde: 0x116f, 0xde0: 0x128f, 0xde2: 0x1353, + 0xde5: 0x1407, 0xde6: 0x1433, + 0xdea: 0x154f, 0xdeb: 0x1553, 0xdec: 0x1557, 0xded: 0x15bb, 0xdee: 0x142b, 0xdef: 0x14c7, + 0xdf0: 0x0757, 0xdf1: 0x077b, 0xdf2: 0x078f, 0xdf3: 0x084b, 0xdf4: 0x0857, 0xdf5: 0x0897, + 0xdf6: 0x094b, 0xdf7: 0x0967, 0xdf8: 0x096f, 0xdf9: 0x09ab, 0xdfa: 0x09b7, 0xdfb: 0x0a93, + 0xdfc: 0x0a9b, 0xdfd: 0x0ba3, 0xdfe: 0x0bcb, 0xdff: 0x0bd3, + // Block 0x38, offset 0xe00 + 0xe00: 0x0beb, 0xe01: 0x0c97, 0xe02: 0x0cc7, 0xe03: 0x0ce7, 0xe04: 0x0d57, 0xe05: 0x0e1b, + 0xe06: 0x0e37, 0xe07: 0x0e67, 0xe08: 0x0ebb, 0xe09: 0x0edb, 0xe0a: 0x0f4f, 0xe0b: 0x102f, + 0xe0c: 0x104b, 0xe0d: 0x1053, 0xe0e: 0x104f, 0xe0f: 0x1057, 0xe10: 0x105b, 0xe11: 0x105f, + 0xe12: 0x1073, 0xe13: 0x1077, 0xe14: 0x109b, 0xe15: 0x10af, 0xe16: 0x10cb, 0xe17: 0x112f, + 0xe18: 0x1137, 0xe19: 0x113f, 0xe1a: 0x1153, 0xe1b: 0x117b, 0xe1c: 0x11cb, 0xe1d: 0x11ff, + 0xe1e: 0x11ff, 0xe1f: 0x1267, 0xe20: 0x130f, 0xe21: 0x1327, 0xe22: 0x135b, 0xe23: 0x135f, + 0xe24: 0x13a3, 0xe25: 0x13a7, 0xe26: 0x13ff, 0xe27: 0x1407, 0xe28: 0x14db, 0xe29: 0x151f, + 0xe2a: 0x1537, 0xe2b: 0x0b9b, 0xe2c: 0x171e, 0xe2d: 0x11e3, + 0xe30: 0x06df, 0xe31: 0x07e3, 0xe32: 0x07a3, 0xe33: 0x074b, 0xe34: 0x078b, 0xe35: 0x07b7, + 0xe36: 0x0847, 0xe37: 0x0863, 0xe38: 0x094b, 0xe39: 0x0937, 0xe3a: 0x0947, 0xe3b: 0x0963, + 0xe3c: 0x09af, 0xe3d: 0x09bf, 0xe3e: 0x0a03, 0xe3f: 0x0a0f, + // Block 0x39, offset 0xe40 + 0xe40: 0x0a2b, 0xe41: 0x0a3b, 0xe42: 0x0b23, 0xe43: 0x0b2b, 0xe44: 0x0b5b, 0xe45: 0x0b7b, + 0xe46: 0x0bab, 0xe47: 0x0bc3, 0xe48: 0x0bb3, 0xe49: 0x0bd3, 0xe4a: 0x0bc7, 0xe4b: 0x0beb, + 0xe4c: 0x0c07, 0xe4d: 0x0c5f, 0xe4e: 0x0c6b, 0xe4f: 0x0c73, 0xe50: 0x0c9b, 0xe51: 0x0cdf, + 0xe52: 0x0d0f, 0xe53: 0x0d13, 0xe54: 0x0d27, 0xe55: 0x0da7, 0xe56: 0x0db7, 0xe57: 0x0e0f, + 0xe58: 0x0e5b, 0xe59: 0x0e53, 0xe5a: 0x0e67, 0xe5b: 0x0e83, 0xe5c: 0x0ebb, 0xe5d: 0x1013, + 0xe5e: 0x0edf, 0xe5f: 0x0f13, 0xe60: 0x0f1f, 0xe61: 0x0f5f, 0xe62: 0x0f7b, 0xe63: 0x0f9f, + 0xe64: 0x0fc3, 0xe65: 0x0fc7, 0xe66: 0x0fe3, 0xe67: 0x0fe7, 0xe68: 0x0ff7, 0xe69: 0x100b, + 0xe6a: 0x1007, 0xe6b: 0x1037, 0xe6c: 0x10b3, 0xe6d: 0x10cb, 0xe6e: 0x10e3, 0xe6f: 0x111b, + 0xe70: 0x112f, 0xe71: 0x114b, 0xe72: 0x117b, 0xe73: 0x122f, 0xe74: 0x1257, 0xe75: 0x12cb, + 0xe76: 0x1313, 0xe77: 0x131f, 0xe78: 0x1327, 0xe79: 0x133f, 0xe7a: 0x1353, 0xe7b: 0x1343, + 0xe7c: 0x135b, 0xe7d: 0x1357, 0xe7e: 0x134f, 0xe7f: 0x135f, + // Block 0x3a, offset 0xe80 + 0xe80: 0x136b, 0xe81: 0x13a7, 0xe82: 0x13e3, 0xe83: 0x1413, 0xe84: 0x144b, 0xe85: 0x146b, + 0xe86: 0x14b7, 0xe87: 0x14db, 0xe88: 0x14fb, 0xe89: 0x150f, 0xe8a: 0x151f, 0xe8b: 0x152b, + 0xe8c: 0x1537, 0xe8d: 0x158b, 0xe8e: 0x162b, 0xe8f: 0x16b5, 0xe90: 0x16b0, 0xe91: 0x16e2, + 0xe92: 0x0607, 0xe93: 0x062f, 0xe94: 0x0633, 0xe95: 0x1764, 0xe96: 0x1791, 0xe97: 0x1809, + 0xe98: 0x1617, 0xe99: 0x1627, + // Block 0x3b, offset 0xec0 + 0xec0: 0x19d8, 0xec1: 0x19db, 0xec2: 0x19de, 0xec3: 0x1c0b, 0xec4: 0x1c0f, 0xec5: 0x1a62, + 0xec6: 0x1a62, + 0xed3: 0x1d78, 0xed4: 0x1d69, 0xed5: 0x1d6e, 0xed6: 0x1d7d, 0xed7: 0x1d73, + 0xedd: 0x4393, + 0xede: 0x8115, 0xedf: 0x4405, 0xee0: 0x022d, 0xee1: 0x0215, 0xee2: 0x021e, 0xee3: 0x0221, + 0xee4: 0x0224, 0xee5: 0x0227, 0xee6: 0x022a, 0xee7: 0x0230, 0xee8: 0x0233, 0xee9: 0x0017, + 0xeea: 0x43f3, 0xeeb: 0x43f9, 0xeec: 0x44f7, 0xeed: 0x44ff, 0xeee: 0x434b, 0xeef: 0x4351, + 0xef0: 0x4357, 0xef1: 0x435d, 0xef2: 0x4369, 0xef3: 0x436f, 0xef4: 0x4375, 0xef5: 0x4381, + 0xef6: 0x4387, 0xef8: 0x438d, 0xef9: 0x4399, 0xefa: 0x439f, 0xefb: 0x43a5, + 0xefc: 0x43b1, 0xefe: 0x43b7, + // Block 0x3c, offset 0xf00 + 0xf00: 0x43bd, 0xf01: 0x43c3, 0xf03: 0x43c9, 0xf04: 0x43cf, + 0xf06: 0x43db, 0xf07: 0x43e1, 0xf08: 0x43e7, 0xf09: 0x43ed, 0xf0a: 0x43ff, 0xf0b: 0x437b, + 0xf0c: 0x4363, 0xf0d: 0x43ab, 0xf0e: 0x43d5, 0xf0f: 0x1d82, 0xf10: 0x0299, 0xf11: 0x0299, + 0xf12: 0x02a2, 0xf13: 0x02a2, 0xf14: 0x02a2, 0xf15: 0x02a2, 0xf16: 0x02a5, 0xf17: 0x02a5, + 0xf18: 0x02a5, 0xf19: 0x02a5, 0xf1a: 0x02ab, 0xf1b: 0x02ab, 0xf1c: 0x02ab, 0xf1d: 0x02ab, + 0xf1e: 0x029f, 0xf1f: 0x029f, 0xf20: 0x029f, 0xf21: 0x029f, 0xf22: 0x02a8, 0xf23: 0x02a8, + 0xf24: 0x02a8, 0xf25: 0x02a8, 0xf26: 0x029c, 0xf27: 0x029c, 0xf28: 0x029c, 0xf29: 0x029c, + 0xf2a: 0x02cf, 0xf2b: 0x02cf, 0xf2c: 0x02cf, 0xf2d: 0x02cf, 0xf2e: 0x02d2, 0xf2f: 0x02d2, + 0xf30: 0x02d2, 0xf31: 0x02d2, 0xf32: 0x02b1, 0xf33: 0x02b1, 0xf34: 0x02b1, 0xf35: 0x02b1, + 0xf36: 0x02ae, 0xf37: 0x02ae, 0xf38: 0x02ae, 0xf39: 0x02ae, 0xf3a: 0x02b4, 0xf3b: 0x02b4, + 0xf3c: 0x02b4, 0xf3d: 0x02b4, 0xf3e: 0x02b7, 0xf3f: 0x02b7, + // Block 0x3d, offset 0xf40 + 0xf40: 0x02b7, 0xf41: 0x02b7, 0xf42: 0x02c0, 0xf43: 0x02c0, 0xf44: 0x02bd, 0xf45: 0x02bd, + 0xf46: 0x02c3, 0xf47: 0x02c3, 0xf48: 0x02ba, 0xf49: 0x02ba, 0xf4a: 0x02c9, 0xf4b: 0x02c9, + 0xf4c: 0x02c6, 0xf4d: 0x02c6, 0xf4e: 0x02d5, 0xf4f: 0x02d5, 0xf50: 0x02d5, 0xf51: 0x02d5, + 0xf52: 0x02db, 0xf53: 0x02db, 0xf54: 0x02db, 0xf55: 0x02db, 0xf56: 0x02e1, 0xf57: 0x02e1, + 0xf58: 0x02e1, 0xf59: 0x02e1, 0xf5a: 0x02de, 0xf5b: 0x02de, 0xf5c: 0x02de, 0xf5d: 0x02de, + 0xf5e: 0x02e4, 0xf5f: 0x02e4, 0xf60: 0x02e7, 0xf61: 0x02e7, 0xf62: 0x02e7, 0xf63: 0x02e7, + 0xf64: 0x4471, 0xf65: 0x4471, 0xf66: 0x02ed, 0xf67: 0x02ed, 0xf68: 0x02ed, 0xf69: 0x02ed, + 0xf6a: 0x02ea, 0xf6b: 0x02ea, 0xf6c: 0x02ea, 0xf6d: 0x02ea, 0xf6e: 0x0308, 0xf6f: 0x0308, + 0xf70: 0x446b, 0xf71: 0x446b, + // Block 0x3e, offset 0xf80 + 0xf93: 0x02d8, 0xf94: 0x02d8, 0xf95: 0x02d8, 0xf96: 0x02d8, 0xf97: 0x02f6, + 0xf98: 0x02f6, 0xf99: 0x02f3, 0xf9a: 0x02f3, 0xf9b: 0x02f9, 0xf9c: 0x02f9, 0xf9d: 0x2052, + 0xf9e: 0x02ff, 0xf9f: 0x02ff, 0xfa0: 0x02f0, 0xfa1: 0x02f0, 0xfa2: 0x02fc, 0xfa3: 0x02fc, + 0xfa4: 0x0305, 0xfa5: 0x0305, 0xfa6: 0x0305, 0xfa7: 0x0305, 0xfa8: 0x028d, 0xfa9: 0x028d, + 0xfaa: 0x25ad, 0xfab: 0x25ad, 0xfac: 0x261d, 0xfad: 0x261d, 0xfae: 0x25ec, 0xfaf: 0x25ec, + 0xfb0: 0x2608, 0xfb1: 0x2608, 0xfb2: 0x2601, 0xfb3: 0x2601, 0xfb4: 0x260f, 0xfb5: 0x260f, + 0xfb6: 0x2616, 0xfb7: 0x2616, 0xfb8: 0x2616, 0xfb9: 0x25f3, 0xfba: 0x25f3, 0xfbb: 0x25f3, + 0xfbc: 0x0302, 0xfbd: 0x0302, 0xfbe: 0x0302, 0xfbf: 0x0302, + // Block 0x3f, offset 0xfc0 + 0xfc0: 0x25b4, 0xfc1: 0x25bb, 0xfc2: 0x25d7, 0xfc3: 0x25f3, 0xfc4: 0x25fa, 0xfc5: 0x1d8c, + 0xfc6: 0x1d91, 0xfc7: 0x1d96, 0xfc8: 0x1da5, 0xfc9: 0x1db4, 0xfca: 0x1db9, 0xfcb: 0x1dbe, + 0xfcc: 0x1dc3, 0xfcd: 0x1dc8, 0xfce: 0x1dd7, 0xfcf: 0x1de6, 0xfd0: 0x1deb, 0xfd1: 0x1df0, + 0xfd2: 0x1dff, 0xfd3: 0x1e0e, 0xfd4: 0x1e13, 0xfd5: 0x1e18, 0xfd6: 0x1e1d, 0xfd7: 0x1e2c, + 0xfd8: 0x1e31, 0xfd9: 0x1e40, 0xfda: 0x1e45, 0xfdb: 0x1e4a, 0xfdc: 0x1e59, 0xfdd: 0x1e5e, + 0xfde: 0x1e63, 0xfdf: 0x1e6d, 0xfe0: 0x1ea9, 0xfe1: 0x1eb8, 0xfe2: 0x1ec7, 0xfe3: 0x1ecc, + 0xfe4: 0x1ed1, 0xfe5: 0x1edb, 0xfe6: 0x1eea, 0xfe7: 0x1eef, 0xfe8: 0x1efe, 0xfe9: 0x1f03, + 0xfea: 0x1f08, 0xfeb: 0x1f17, 0xfec: 0x1f1c, 0xfed: 0x1f2b, 0xfee: 0x1f30, 0xfef: 0x1f35, + 0xff0: 0x1f3a, 0xff1: 0x1f3f, 0xff2: 0x1f44, 0xff3: 0x1f49, 0xff4: 0x1f4e, 0xff5: 0x1f53, + 0xff6: 0x1f58, 0xff7: 0x1f5d, 0xff8: 0x1f62, 0xff9: 0x1f67, 0xffa: 0x1f6c, 0xffb: 0x1f71, + 0xffc: 0x1f76, 0xffd: 0x1f7b, 0xffe: 0x1f80, 0xfff: 0x1f8a, + // Block 0x40, offset 0x1000 + 0x1000: 0x1f8f, 0x1001: 0x1f94, 0x1002: 0x1f99, 0x1003: 0x1fa3, 0x1004: 0x1fa8, 0x1005: 0x1fb2, + 0x1006: 0x1fb7, 0x1007: 0x1fbc, 0x1008: 0x1fc1, 0x1009: 0x1fc6, 0x100a: 0x1fcb, 0x100b: 0x1fd0, + 0x100c: 0x1fd5, 0x100d: 0x1fda, 0x100e: 0x1fe9, 0x100f: 0x1ff8, 0x1010: 0x1ffd, 0x1011: 0x2002, + 0x1012: 0x2007, 0x1013: 0x200c, 0x1014: 0x2011, 0x1015: 0x201b, 0x1016: 0x2020, 0x1017: 0x2025, + 0x1018: 0x2034, 0x1019: 0x2043, 0x101a: 0x2048, 0x101b: 0x4423, 0x101c: 0x4429, 0x101d: 0x445f, + 0x101e: 0x44b6, 0x101f: 0x44bd, 0x1020: 0x44c4, 0x1021: 0x44cb, 0x1022: 0x44d2, 0x1023: 0x44d9, + 0x1024: 0x25c9, 0x1025: 0x25d0, 0x1026: 0x25d7, 0x1027: 0x25de, 0x1028: 0x25f3, 0x1029: 0x25fa, + 0x102a: 0x1d9b, 0x102b: 0x1da0, 0x102c: 0x1da5, 0x102d: 0x1daa, 0x102e: 0x1db4, 0x102f: 0x1db9, + 0x1030: 0x1dcd, 0x1031: 0x1dd2, 0x1032: 0x1dd7, 0x1033: 0x1ddc, 0x1034: 0x1de6, 0x1035: 0x1deb, + 0x1036: 0x1df5, 0x1037: 0x1dfa, 0x1038: 0x1dff, 0x1039: 0x1e04, 0x103a: 0x1e0e, 0x103b: 0x1e13, + 0x103c: 0x1f3f, 0x103d: 0x1f44, 0x103e: 0x1f53, 0x103f: 0x1f58, + // Block 0x41, offset 0x1040 + 0x1040: 0x1f5d, 0x1041: 0x1f71, 0x1042: 0x1f76, 0x1043: 0x1f7b, 0x1044: 0x1f80, 0x1045: 0x1f99, + 0x1046: 0x1fa3, 0x1047: 0x1fa8, 0x1048: 0x1fad, 0x1049: 0x1fc1, 0x104a: 0x1fdf, 0x104b: 0x1fe4, + 0x104c: 0x1fe9, 0x104d: 0x1fee, 0x104e: 0x1ff8, 0x104f: 0x1ffd, 0x1050: 0x445f, 0x1051: 0x202a, + 0x1052: 0x202f, 0x1053: 0x2034, 0x1054: 0x2039, 0x1055: 0x2043, 0x1056: 0x2048, 0x1057: 0x25b4, + 0x1058: 0x25bb, 0x1059: 0x25c2, 0x105a: 0x25d7, 0x105b: 0x25e5, 0x105c: 0x1d8c, 0x105d: 0x1d91, + 0x105e: 0x1d96, 0x105f: 0x1da5, 0x1060: 0x1daf, 0x1061: 0x1dbe, 0x1062: 0x1dc3, 0x1063: 0x1dc8, + 0x1064: 0x1dd7, 0x1065: 0x1de1, 0x1066: 0x1dff, 0x1067: 0x1e18, 0x1068: 0x1e1d, 0x1069: 0x1e2c, + 0x106a: 0x1e31, 0x106b: 0x1e40, 0x106c: 0x1e4a, 0x106d: 0x1e59, 0x106e: 0x1e5e, 0x106f: 0x1e63, + 0x1070: 0x1e6d, 0x1071: 0x1ea9, 0x1072: 0x1eae, 0x1073: 0x1eb8, 0x1074: 0x1ec7, 0x1075: 0x1ecc, + 0x1076: 0x1ed1, 0x1077: 0x1edb, 0x1078: 0x1eea, 0x1079: 0x1efe, 0x107a: 0x1f03, 0x107b: 0x1f08, + 0x107c: 0x1f17, 0x107d: 0x1f1c, 0x107e: 0x1f2b, 0x107f: 0x1f30, + // Block 0x42, offset 0x1080 + 0x1080: 0x1f35, 0x1081: 0x1f3a, 0x1082: 0x1f49, 0x1083: 0x1f4e, 0x1084: 0x1f62, 0x1085: 0x1f67, + 0x1086: 0x1f6c, 0x1087: 0x1f71, 0x1088: 0x1f76, 0x1089: 0x1f8a, 0x108a: 0x1f8f, 0x108b: 0x1f94, + 0x108c: 0x1f99, 0x108d: 0x1f9e, 0x108e: 0x1fb2, 0x108f: 0x1fb7, 0x1090: 0x1fbc, 0x1091: 0x1fc1, + 0x1092: 0x1fd0, 0x1093: 0x1fd5, 0x1094: 0x1fda, 0x1095: 0x1fe9, 0x1096: 0x1ff3, 0x1097: 0x2002, + 0x1098: 0x2007, 0x1099: 0x4453, 0x109a: 0x201b, 0x109b: 0x2020, 0x109c: 0x2025, 0x109d: 0x2034, + 0x109e: 0x203e, 0x109f: 0x25d7, 0x10a0: 0x25e5, 0x10a1: 0x1da5, 0x10a2: 0x1daf, 0x10a3: 0x1dd7, + 0x10a4: 0x1de1, 0x10a5: 0x1dff, 0x10a6: 0x1e09, 0x10a7: 0x1e6d, 0x10a8: 0x1e72, 0x10a9: 0x1e95, + 0x10aa: 0x1e9a, 0x10ab: 0x1f71, 0x10ac: 0x1f76, 0x10ad: 0x1f99, 0x10ae: 0x1fe9, 0x10af: 0x1ff3, + 0x10b0: 0x2034, 0x10b1: 0x203e, 0x10b2: 0x4507, 0x10b3: 0x450f, 0x10b4: 0x4517, 0x10b5: 0x1ef4, + 0x10b6: 0x1ef9, 0x10b7: 0x1f0d, 0x10b8: 0x1f12, 0x10b9: 0x1f21, 0x10ba: 0x1f26, 0x10bb: 0x1e77, + 0x10bc: 0x1e7c, 0x10bd: 0x1e9f, 0x10be: 0x1ea4, 0x10bf: 0x1e36, + // Block 0x43, offset 0x10c0 + 0x10c0: 0x1e3b, 0x10c1: 0x1e22, 0x10c2: 0x1e27, 0x10c3: 0x1e4f, 0x10c4: 0x1e54, 0x10c5: 0x1ebd, + 0x10c6: 0x1ec2, 0x10c7: 0x1ee0, 0x10c8: 0x1ee5, 0x10c9: 0x1e81, 0x10ca: 0x1e86, 0x10cb: 0x1e8b, + 0x10cc: 0x1e95, 0x10cd: 0x1e90, 0x10ce: 0x1e68, 0x10cf: 0x1eb3, 0x10d0: 0x1ed6, 0x10d1: 0x1ef4, + 0x10d2: 0x1ef9, 0x10d3: 0x1f0d, 0x10d4: 0x1f12, 0x10d5: 0x1f21, 0x10d6: 0x1f26, 0x10d7: 0x1e77, + 0x10d8: 0x1e7c, 0x10d9: 0x1e9f, 0x10da: 0x1ea4, 0x10db: 0x1e36, 0x10dc: 0x1e3b, 0x10dd: 0x1e22, + 0x10de: 0x1e27, 0x10df: 0x1e4f, 0x10e0: 0x1e54, 0x10e1: 0x1ebd, 0x10e2: 0x1ec2, 0x10e3: 0x1ee0, + 0x10e4: 0x1ee5, 0x10e5: 0x1e81, 0x10e6: 0x1e86, 0x10e7: 0x1e8b, 0x10e8: 0x1e95, 0x10e9: 0x1e90, + 0x10ea: 0x1e68, 0x10eb: 0x1eb3, 0x10ec: 0x1ed6, 0x10ed: 0x1e81, 0x10ee: 0x1e86, 0x10ef: 0x1e8b, + 0x10f0: 0x1e95, 0x10f1: 0x1e72, 0x10f2: 0x1e9a, 0x10f3: 0x1eef, 0x10f4: 0x1e59, 0x10f5: 0x1e5e, + 0x10f6: 0x1e63, 0x10f7: 0x1e81, 0x10f8: 0x1e86, 0x10f9: 0x1e8b, 0x10fa: 0x1eef, 0x10fb: 0x1efe, + 0x10fc: 0x440b, 0x10fd: 0x440b, + // Block 0x44, offset 0x1100 + 0x1110: 0x2314, 0x1111: 0x2329, + 0x1112: 0x2329, 0x1113: 0x2330, 0x1114: 0x2337, 0x1115: 0x234c, 0x1116: 0x2353, 0x1117: 0x235a, + 0x1118: 0x237d, 0x1119: 0x237d, 0x111a: 0x23a0, 0x111b: 0x2399, 0x111c: 0x23b5, 0x111d: 0x23a7, + 0x111e: 0x23ae, 0x111f: 0x23d1, 0x1120: 0x23d1, 0x1121: 0x23ca, 0x1122: 0x23d8, 0x1123: 0x23d8, + 0x1124: 0x2402, 0x1125: 0x2402, 0x1126: 0x241e, 0x1127: 0x23e6, 0x1128: 0x23e6, 0x1129: 0x23df, + 0x112a: 0x23f4, 0x112b: 0x23f4, 0x112c: 0x23fb, 0x112d: 0x23fb, 0x112e: 0x2425, 0x112f: 0x2433, + 0x1130: 0x2433, 0x1131: 0x243a, 0x1132: 0x243a, 0x1133: 0x2441, 0x1134: 0x2448, 0x1135: 0x244f, + 0x1136: 0x2456, 0x1137: 0x2456, 0x1138: 0x245d, 0x1139: 0x246b, 0x113a: 0x2479, 0x113b: 0x2472, + 0x113c: 0x2480, 0x113d: 0x2480, 0x113e: 0x2495, 0x113f: 0x249c, + // Block 0x45, offset 0x1140 + 0x1140: 0x24cd, 0x1141: 0x24db, 0x1142: 0x24d4, 0x1143: 0x24b8, 0x1144: 0x24b8, 0x1145: 0x24e2, + 0x1146: 0x24e2, 0x1147: 0x24e9, 0x1148: 0x24e9, 0x1149: 0x2513, 0x114a: 0x251a, 0x114b: 0x2521, + 0x114c: 0x24f7, 0x114d: 0x2505, 0x114e: 0x2528, 0x114f: 0x252f, + 0x1152: 0x24fe, 0x1153: 0x2583, 0x1154: 0x258a, 0x1155: 0x2560, 0x1156: 0x2567, 0x1157: 0x254b, + 0x1158: 0x254b, 0x1159: 0x2552, 0x115a: 0x257c, 0x115b: 0x2575, 0x115c: 0x259f, 0x115d: 0x259f, + 0x115e: 0x230d, 0x115f: 0x2322, 0x1160: 0x231b, 0x1161: 0x2345, 0x1162: 0x233e, 0x1163: 0x2368, + 0x1164: 0x2361, 0x1165: 0x238b, 0x1166: 0x236f, 0x1167: 0x2384, 0x1168: 0x23bc, 0x1169: 0x2409, + 0x116a: 0x23ed, 0x116b: 0x242c, 0x116c: 0x24c6, 0x116d: 0x24f0, 0x116e: 0x2598, 0x116f: 0x2591, + 0x1170: 0x25a6, 0x1171: 0x253d, 0x1172: 0x24a3, 0x1173: 0x256e, 0x1174: 0x2495, 0x1175: 0x24cd, + 0x1176: 0x2464, 0x1177: 0x24b1, 0x1178: 0x2544, 0x1179: 0x2536, 0x117a: 0x24bf, 0x117b: 0x24aa, + 0x117c: 0x24bf, 0x117d: 0x2544, 0x117e: 0x2376, 0x117f: 0x2392, + // Block 0x46, offset 0x1180 + 0x1180: 0x250c, 0x1181: 0x2487, 0x1182: 0x2306, 0x1183: 0x24aa, 0x1184: 0x244f, 0x1185: 0x241e, + 0x1186: 0x23c3, 0x1187: 0x2559, + 0x11b0: 0x2417, 0x11b1: 0x248e, 0x11b2: 0x27c2, 0x11b3: 0x27b9, 0x11b4: 0x27ef, 0x11b5: 0x27dd, + 0x11b6: 0x27cb, 0x11b7: 0x27e6, 0x11b8: 0x27f8, 0x11b9: 0x2410, 0x11ba: 0x2c7f, 0x11bb: 0x2aff, + 0x11bc: 0x27d4, + // Block 0x47, offset 0x11c0 + 0x11d0: 0x0019, 0x11d1: 0x0483, + 0x11d2: 0x0487, 0x11d3: 0x0035, 0x11d4: 0x0037, 0x11d5: 0x0003, 0x11d6: 0x003f, 0x11d7: 0x04bf, + 0x11d8: 0x04c3, 0x11d9: 0x1b5f, + 0x11e0: 0x8132, 0x11e1: 0x8132, 0x11e2: 0x8132, 0x11e3: 0x8132, + 0x11e4: 0x8132, 0x11e5: 0x8132, 0x11e6: 0x8132, 0x11e7: 0x812d, 0x11e8: 0x812d, 0x11e9: 0x812d, + 0x11ea: 0x812d, 0x11eb: 0x812d, 0x11ec: 0x812d, 0x11ed: 0x812d, 0x11ee: 0x8132, 0x11ef: 0x8132, + 0x11f0: 0x1873, 0x11f1: 0x0443, 0x11f2: 0x043f, 0x11f3: 0x007f, 0x11f4: 0x007f, 0x11f5: 0x0011, + 0x11f6: 0x0013, 0x11f7: 0x00b7, 0x11f8: 0x00bb, 0x11f9: 0x04b7, 0x11fa: 0x04bb, 0x11fb: 0x04ab, + 0x11fc: 0x04af, 0x11fd: 0x0493, 0x11fe: 0x0497, 0x11ff: 0x048b, + // Block 0x48, offset 0x1200 + 0x1200: 0x048f, 0x1201: 0x049b, 0x1202: 0x049f, 0x1203: 0x04a3, 0x1204: 0x04a7, + 0x1207: 0x0077, 0x1208: 0x007b, 0x1209: 0x426c, 0x120a: 0x426c, 0x120b: 0x426c, + 0x120c: 0x426c, 0x120d: 0x007f, 0x120e: 0x007f, 0x120f: 0x007f, 0x1210: 0x0019, 0x1211: 0x0483, + 0x1212: 0x001d, 0x1214: 0x0037, 0x1215: 0x0035, 0x1216: 0x003f, 0x1217: 0x0003, + 0x1218: 0x0443, 0x1219: 0x0011, 0x121a: 0x0013, 0x121b: 0x00b7, 0x121c: 0x00bb, 0x121d: 0x04b7, + 0x121e: 0x04bb, 0x121f: 0x0007, 0x1220: 0x000d, 0x1221: 0x0015, 0x1222: 0x0017, 0x1223: 0x001b, + 0x1224: 0x0039, 0x1225: 0x003d, 0x1226: 0x003b, 0x1228: 0x0079, 0x1229: 0x0009, + 0x122a: 0x000b, 0x122b: 0x0041, + 0x1230: 0x42ad, 0x1231: 0x442f, 0x1232: 0x42b2, 0x1234: 0x42b7, + 0x1236: 0x42bc, 0x1237: 0x4435, 0x1238: 0x42c1, 0x1239: 0x443b, 0x123a: 0x42c6, 0x123b: 0x4441, + 0x123c: 0x42cb, 0x123d: 0x4447, 0x123e: 0x42d0, 0x123f: 0x444d, + // Block 0x49, offset 0x1240 + 0x1240: 0x0236, 0x1241: 0x4411, 0x1242: 0x4411, 0x1243: 0x4417, 0x1244: 0x4417, 0x1245: 0x4459, + 0x1246: 0x4459, 0x1247: 0x441d, 0x1248: 0x441d, 0x1249: 0x4465, 0x124a: 0x4465, 0x124b: 0x4465, + 0x124c: 0x4465, 0x124d: 0x0239, 0x124e: 0x0239, 0x124f: 0x023c, 0x1250: 0x023c, 0x1251: 0x023c, + 0x1252: 0x023c, 0x1253: 0x023f, 0x1254: 0x023f, 0x1255: 0x0242, 0x1256: 0x0242, 0x1257: 0x0242, + 0x1258: 0x0242, 0x1259: 0x0245, 0x125a: 0x0245, 0x125b: 0x0245, 0x125c: 0x0245, 0x125d: 0x0248, + 0x125e: 0x0248, 0x125f: 0x0248, 0x1260: 0x0248, 0x1261: 0x024b, 0x1262: 0x024b, 0x1263: 0x024b, + 0x1264: 0x024b, 0x1265: 0x024e, 0x1266: 0x024e, 0x1267: 0x024e, 0x1268: 0x024e, 0x1269: 0x0251, + 0x126a: 0x0251, 0x126b: 0x0254, 0x126c: 0x0254, 0x126d: 0x0257, 0x126e: 0x0257, 0x126f: 0x025a, + 0x1270: 0x025a, 0x1271: 0x025d, 0x1272: 0x025d, 0x1273: 0x025d, 0x1274: 0x025d, 0x1275: 0x0260, + 0x1276: 0x0260, 0x1277: 0x0260, 0x1278: 0x0260, 0x1279: 0x0263, 0x127a: 0x0263, 0x127b: 0x0263, + 0x127c: 0x0263, 0x127d: 0x0266, 0x127e: 0x0266, 0x127f: 0x0266, + // Block 0x4a, offset 0x1280 + 0x1280: 0x0266, 0x1281: 0x0269, 0x1282: 0x0269, 0x1283: 0x0269, 0x1284: 0x0269, 0x1285: 0x026c, + 0x1286: 0x026c, 0x1287: 0x026c, 0x1288: 0x026c, 0x1289: 0x026f, 0x128a: 0x026f, 0x128b: 0x026f, + 0x128c: 0x026f, 0x128d: 0x0272, 0x128e: 0x0272, 0x128f: 0x0272, 0x1290: 0x0272, 0x1291: 0x0275, + 0x1292: 0x0275, 0x1293: 0x0275, 0x1294: 0x0275, 0x1295: 0x0278, 0x1296: 0x0278, 0x1297: 0x0278, + 0x1298: 0x0278, 0x1299: 0x027b, 0x129a: 0x027b, 0x129b: 0x027b, 0x129c: 0x027b, 0x129d: 0x027e, + 0x129e: 0x027e, 0x129f: 0x027e, 0x12a0: 0x027e, 0x12a1: 0x0281, 0x12a2: 0x0281, 0x12a3: 0x0281, + 0x12a4: 0x0281, 0x12a5: 0x0284, 0x12a6: 0x0284, 0x12a7: 0x0284, 0x12a8: 0x0284, 0x12a9: 0x0287, + 0x12aa: 0x0287, 0x12ab: 0x0287, 0x12ac: 0x0287, 0x12ad: 0x028a, 0x12ae: 0x028a, 0x12af: 0x028d, + 0x12b0: 0x028d, 0x12b1: 0x0290, 0x12b2: 0x0290, 0x12b3: 0x0290, 0x12b4: 0x0290, 0x12b5: 0x2e03, + 0x12b6: 0x2e03, 0x12b7: 0x2e0b, 0x12b8: 0x2e0b, 0x12b9: 0x2e13, 0x12ba: 0x2e13, 0x12bb: 0x1f85, + 0x12bc: 0x1f85, + // Block 0x4b, offset 0x12c0 + 0x12c0: 0x0081, 0x12c1: 0x0083, 0x12c2: 0x0085, 0x12c3: 0x0087, 0x12c4: 0x0089, 0x12c5: 0x008b, + 0x12c6: 0x008d, 0x12c7: 0x008f, 0x12c8: 0x0091, 0x12c9: 0x0093, 0x12ca: 0x0095, 0x12cb: 0x0097, + 0x12cc: 0x0099, 0x12cd: 0x009b, 0x12ce: 0x009d, 0x12cf: 0x009f, 0x12d0: 0x00a1, 0x12d1: 0x00a3, + 0x12d2: 0x00a5, 0x12d3: 0x00a7, 0x12d4: 0x00a9, 0x12d5: 0x00ab, 0x12d6: 0x00ad, 0x12d7: 0x00af, + 0x12d8: 0x00b1, 0x12d9: 0x00b3, 0x12da: 0x00b5, 0x12db: 0x00b7, 0x12dc: 0x00b9, 0x12dd: 0x00bb, + 0x12de: 0x00bd, 0x12df: 0x0477, 0x12e0: 0x047b, 0x12e1: 0x0487, 0x12e2: 0x049b, 0x12e3: 0x049f, + 0x12e4: 0x0483, 0x12e5: 0x05ab, 0x12e6: 0x05a3, 0x12e7: 0x04c7, 0x12e8: 0x04cf, 0x12e9: 0x04d7, + 0x12ea: 0x04df, 0x12eb: 0x04e7, 0x12ec: 0x056b, 0x12ed: 0x0573, 0x12ee: 0x057b, 0x12ef: 0x051f, + 0x12f0: 0x05af, 0x12f1: 0x04cb, 0x12f2: 0x04d3, 0x12f3: 0x04db, 0x12f4: 0x04e3, 0x12f5: 0x04eb, + 0x12f6: 0x04ef, 0x12f7: 0x04f3, 0x12f8: 0x04f7, 0x12f9: 0x04fb, 0x12fa: 0x04ff, 0x12fb: 0x0503, + 0x12fc: 0x0507, 0x12fd: 0x050b, 0x12fe: 0x050f, 0x12ff: 0x0513, + // Block 0x4c, offset 0x1300 + 0x1300: 0x0517, 0x1301: 0x051b, 0x1302: 0x0523, 0x1303: 0x0527, 0x1304: 0x052b, 0x1305: 0x052f, + 0x1306: 0x0533, 0x1307: 0x0537, 0x1308: 0x053b, 0x1309: 0x053f, 0x130a: 0x0543, 0x130b: 0x0547, + 0x130c: 0x054b, 0x130d: 0x054f, 0x130e: 0x0553, 0x130f: 0x0557, 0x1310: 0x055b, 0x1311: 0x055f, + 0x1312: 0x0563, 0x1313: 0x0567, 0x1314: 0x056f, 0x1315: 0x0577, 0x1316: 0x057f, 0x1317: 0x0583, + 0x1318: 0x0587, 0x1319: 0x058b, 0x131a: 0x058f, 0x131b: 0x0593, 0x131c: 0x0597, 0x131d: 0x05a7, + 0x131e: 0x4a7b, 0x131f: 0x4a81, 0x1320: 0x03c3, 0x1321: 0x0313, 0x1322: 0x0317, 0x1323: 0x4a3e, + 0x1324: 0x031b, 0x1325: 0x4a44, 0x1326: 0x4a4a, 0x1327: 0x031f, 0x1328: 0x0323, 0x1329: 0x0327, + 0x132a: 0x4a50, 0x132b: 0x4a56, 0x132c: 0x4a5c, 0x132d: 0x4a62, 0x132e: 0x4a68, 0x132f: 0x4a6e, + 0x1330: 0x0367, 0x1331: 0x032b, 0x1332: 0x032f, 0x1333: 0x0333, 0x1334: 0x037b, 0x1335: 0x0337, + 0x1336: 0x033b, 0x1337: 0x033f, 0x1338: 0x0343, 0x1339: 0x0347, 0x133a: 0x034b, 0x133b: 0x034f, + 0x133c: 0x0353, 0x133d: 0x0357, 0x133e: 0x035b, + // Block 0x4d, offset 0x1340 + 0x1342: 0x49c0, 0x1343: 0x49c6, 0x1344: 0x49cc, 0x1345: 0x49d2, + 0x1346: 0x49d8, 0x1347: 0x49de, 0x134a: 0x49e4, 0x134b: 0x49ea, + 0x134c: 0x49f0, 0x134d: 0x49f6, 0x134e: 0x49fc, 0x134f: 0x4a02, + 0x1352: 0x4a08, 0x1353: 0x4a0e, 0x1354: 0x4a14, 0x1355: 0x4a1a, 0x1356: 0x4a20, 0x1357: 0x4a26, + 0x135a: 0x4a2c, 0x135b: 0x4a32, 0x135c: 0x4a38, + 0x1360: 0x00bf, 0x1361: 0x00c2, 0x1362: 0x00cb, 0x1363: 0x4267, + 0x1364: 0x00c8, 0x1365: 0x00c5, 0x1366: 0x0447, 0x1368: 0x046b, 0x1369: 0x044b, + 0x136a: 0x044f, 0x136b: 0x0453, 0x136c: 0x0457, 0x136d: 0x046f, 0x136e: 0x0473, + // Block 0x4e, offset 0x1380 + 0x1380: 0x0063, 0x1381: 0x0065, 0x1382: 0x0067, 0x1383: 0x0069, 0x1384: 0x006b, 0x1385: 0x006d, + 0x1386: 0x006f, 0x1387: 0x0071, 0x1388: 0x0073, 0x1389: 0x0075, 0x138a: 0x0083, 0x138b: 0x0085, + 0x138c: 0x0087, 0x138d: 0x0089, 0x138e: 0x008b, 0x138f: 0x008d, 0x1390: 0x008f, 0x1391: 0x0091, + 0x1392: 0x0093, 0x1393: 0x0095, 0x1394: 0x0097, 0x1395: 0x0099, 0x1396: 0x009b, 0x1397: 0x009d, + 0x1398: 0x009f, 0x1399: 0x00a1, 0x139a: 0x00a3, 0x139b: 0x00a5, 0x139c: 0x00a7, 0x139d: 0x00a9, + 0x139e: 0x00ab, 0x139f: 0x00ad, 0x13a0: 0x00af, 0x13a1: 0x00b1, 0x13a2: 0x00b3, 0x13a3: 0x00b5, + 0x13a4: 0x00dd, 0x13a5: 0x00f2, 0x13a8: 0x0173, 0x13a9: 0x0176, + 0x13aa: 0x0179, 0x13ab: 0x017c, 0x13ac: 0x017f, 0x13ad: 0x0182, 0x13ae: 0x0185, 0x13af: 0x0188, + 0x13b0: 0x018b, 0x13b1: 0x018e, 0x13b2: 0x0191, 0x13b3: 0x0194, 0x13b4: 0x0197, 0x13b5: 0x019a, + 0x13b6: 0x019d, 0x13b7: 0x01a0, 0x13b8: 0x01a3, 0x13b9: 0x0188, 0x13ba: 0x01a6, 0x13bb: 0x01a9, + 0x13bc: 0x01ac, 0x13bd: 0x01af, 0x13be: 0x01b2, 0x13bf: 0x01b5, + // Block 0x4f, offset 0x13c0 + 0x13c0: 0x01fd, 0x13c1: 0x0200, 0x13c2: 0x0203, 0x13c3: 0x045b, 0x13c4: 0x01c7, 0x13c5: 0x01d0, + 0x13c6: 0x01d6, 0x13c7: 0x01fa, 0x13c8: 0x01eb, 0x13c9: 0x01e8, 0x13ca: 0x0206, 0x13cb: 0x0209, + 0x13ce: 0x0021, 0x13cf: 0x0023, 0x13d0: 0x0025, 0x13d1: 0x0027, + 0x13d2: 0x0029, 0x13d3: 0x002b, 0x13d4: 0x002d, 0x13d5: 0x002f, 0x13d6: 0x0031, 0x13d7: 0x0033, + 0x13d8: 0x0021, 0x13d9: 0x0023, 0x13da: 0x0025, 0x13db: 0x0027, 0x13dc: 0x0029, 0x13dd: 0x002b, + 0x13de: 0x002d, 0x13df: 0x002f, 0x13e0: 0x0031, 0x13e1: 0x0033, 0x13e2: 0x0021, 0x13e3: 0x0023, + 0x13e4: 0x0025, 0x13e5: 0x0027, 0x13e6: 0x0029, 0x13e7: 0x002b, 0x13e8: 0x002d, 0x13e9: 0x002f, + 0x13ea: 0x0031, 0x13eb: 0x0033, 0x13ec: 0x0021, 0x13ed: 0x0023, 0x13ee: 0x0025, 0x13ef: 0x0027, + 0x13f0: 0x0029, 0x13f1: 0x002b, 0x13f2: 0x002d, 0x13f3: 0x002f, 0x13f4: 0x0031, 0x13f5: 0x0033, + 0x13f6: 0x0021, 0x13f7: 0x0023, 0x13f8: 0x0025, 0x13f9: 0x0027, 0x13fa: 0x0029, 0x13fb: 0x002b, + 0x13fc: 0x002d, 0x13fd: 0x002f, 0x13fe: 0x0031, 0x13ff: 0x0033, + // Block 0x50, offset 0x1400 + 0x1400: 0x0239, 0x1401: 0x023c, 0x1402: 0x0248, 0x1403: 0x0251, 0x1405: 0x028a, + 0x1406: 0x025a, 0x1407: 0x024b, 0x1408: 0x0269, 0x1409: 0x0290, 0x140a: 0x027b, 0x140b: 0x027e, + 0x140c: 0x0281, 0x140d: 0x0284, 0x140e: 0x025d, 0x140f: 0x026f, 0x1410: 0x0275, 0x1411: 0x0263, + 0x1412: 0x0278, 0x1413: 0x0257, 0x1414: 0x0260, 0x1415: 0x0242, 0x1416: 0x0245, 0x1417: 0x024e, + 0x1418: 0x0254, 0x1419: 0x0266, 0x141a: 0x026c, 0x141b: 0x0272, 0x141c: 0x0293, 0x141d: 0x02e4, + 0x141e: 0x02cc, 0x141f: 0x0296, 0x1421: 0x023c, 0x1422: 0x0248, + 0x1424: 0x0287, 0x1427: 0x024b, 0x1429: 0x0290, + 0x142a: 0x027b, 0x142b: 0x027e, 0x142c: 0x0281, 0x142d: 0x0284, 0x142e: 0x025d, 0x142f: 0x026f, + 0x1430: 0x0275, 0x1431: 0x0263, 0x1432: 0x0278, 0x1434: 0x0260, 0x1435: 0x0242, + 0x1436: 0x0245, 0x1437: 0x024e, 0x1439: 0x0266, 0x143b: 0x0272, + // Block 0x51, offset 0x1440 + 0x1442: 0x0248, + 0x1447: 0x024b, 0x1449: 0x0290, 0x144b: 0x027e, + 0x144d: 0x0284, 0x144e: 0x025d, 0x144f: 0x026f, 0x1451: 0x0263, + 0x1452: 0x0278, 0x1454: 0x0260, 0x1457: 0x024e, + 0x1459: 0x0266, 0x145b: 0x0272, 0x145d: 0x02e4, + 0x145f: 0x0296, 0x1461: 0x023c, 0x1462: 0x0248, + 0x1464: 0x0287, 0x1467: 0x024b, 0x1468: 0x0269, 0x1469: 0x0290, + 0x146a: 0x027b, 0x146c: 0x0281, 0x146d: 0x0284, 0x146e: 0x025d, 0x146f: 0x026f, + 0x1470: 0x0275, 0x1471: 0x0263, 0x1472: 0x0278, 0x1474: 0x0260, 0x1475: 0x0242, + 0x1476: 0x0245, 0x1477: 0x024e, 0x1479: 0x0266, 0x147a: 0x026c, 0x147b: 0x0272, + 0x147c: 0x0293, 0x147e: 0x02cc, + // Block 0x52, offset 0x1480 + 0x1480: 0x0239, 0x1481: 0x023c, 0x1482: 0x0248, 0x1483: 0x0251, 0x1484: 0x0287, 0x1485: 0x028a, + 0x1486: 0x025a, 0x1487: 0x024b, 0x1488: 0x0269, 0x1489: 0x0290, 0x148b: 0x027e, + 0x148c: 0x0281, 0x148d: 0x0284, 0x148e: 0x025d, 0x148f: 0x026f, 0x1490: 0x0275, 0x1491: 0x0263, + 0x1492: 0x0278, 0x1493: 0x0257, 0x1494: 0x0260, 0x1495: 0x0242, 0x1496: 0x0245, 0x1497: 0x024e, + 0x1498: 0x0254, 0x1499: 0x0266, 0x149a: 0x026c, 0x149b: 0x0272, + 0x14a1: 0x023c, 0x14a2: 0x0248, 0x14a3: 0x0251, + 0x14a5: 0x028a, 0x14a6: 0x025a, 0x14a7: 0x024b, 0x14a8: 0x0269, 0x14a9: 0x0290, + 0x14ab: 0x027e, 0x14ac: 0x0281, 0x14ad: 0x0284, 0x14ae: 0x025d, 0x14af: 0x026f, + 0x14b0: 0x0275, 0x14b1: 0x0263, 0x14b2: 0x0278, 0x14b3: 0x0257, 0x14b4: 0x0260, 0x14b5: 0x0242, + 0x14b6: 0x0245, 0x14b7: 0x024e, 0x14b8: 0x0254, 0x14b9: 0x0266, 0x14ba: 0x026c, 0x14bb: 0x0272, + // Block 0x53, offset 0x14c0 + 0x14c0: 0x1879, 0x14c1: 0x1876, 0x14c2: 0x187c, 0x14c3: 0x18a0, 0x14c4: 0x18c4, 0x14c5: 0x18e8, + 0x14c6: 0x190c, 0x14c7: 0x1915, 0x14c8: 0x191b, 0x14c9: 0x1921, 0x14ca: 0x1927, + 0x14d0: 0x1a8f, 0x14d1: 0x1a93, + 0x14d2: 0x1a97, 0x14d3: 0x1a9b, 0x14d4: 0x1a9f, 0x14d5: 0x1aa3, 0x14d6: 0x1aa7, 0x14d7: 0x1aab, + 0x14d8: 0x1aaf, 0x14d9: 0x1ab3, 0x14da: 0x1ab7, 0x14db: 0x1abb, 0x14dc: 0x1abf, 0x14dd: 0x1ac3, + 0x14de: 0x1ac7, 0x14df: 0x1acb, 0x14e0: 0x1acf, 0x14e1: 0x1ad3, 0x14e2: 0x1ad7, 0x14e3: 0x1adb, + 0x14e4: 0x1adf, 0x14e5: 0x1ae3, 0x14e6: 0x1ae7, 0x14e7: 0x1aeb, 0x14e8: 0x1aef, 0x14e9: 0x1af3, + 0x14ea: 0x2721, 0x14eb: 0x0047, 0x14ec: 0x0065, 0x14ed: 0x193c, 0x14ee: 0x19b4, + 0x14f0: 0x0043, 0x14f1: 0x0045, 0x14f2: 0x0047, 0x14f3: 0x0049, 0x14f4: 0x004b, 0x14f5: 0x004d, + 0x14f6: 0x004f, 0x14f7: 0x0051, 0x14f8: 0x0053, 0x14f9: 0x0055, 0x14fa: 0x0057, 0x14fb: 0x0059, + 0x14fc: 0x005b, 0x14fd: 0x005d, 0x14fe: 0x005f, 0x14ff: 0x0061, + // Block 0x54, offset 0x1500 + 0x1500: 0x26b0, 0x1501: 0x26c5, 0x1502: 0x0503, + 0x1510: 0x0c0f, 0x1511: 0x0a47, + 0x1512: 0x08d3, 0x1513: 0x45c7, 0x1514: 0x071b, 0x1515: 0x09ef, 0x1516: 0x132f, 0x1517: 0x09ff, + 0x1518: 0x0727, 0x1519: 0x0cd7, 0x151a: 0x0eaf, 0x151b: 0x0caf, 0x151c: 0x0827, 0x151d: 0x0b6b, + 0x151e: 0x07bf, 0x151f: 0x0cb7, 0x1520: 0x0813, 0x1521: 0x1117, 0x1522: 0x0f83, 0x1523: 0x138b, + 0x1524: 0x09d3, 0x1525: 0x090b, 0x1526: 0x0e63, 0x1527: 0x0c1b, 0x1528: 0x0c47, 0x1529: 0x06bf, + 0x152a: 0x06cb, 0x152b: 0x140b, 0x152c: 0x0adb, 0x152d: 0x06e7, 0x152e: 0x08ef, 0x152f: 0x0c3b, + 0x1530: 0x13b3, 0x1531: 0x0c13, 0x1532: 0x106f, 0x1533: 0x10ab, 0x1534: 0x08f7, 0x1535: 0x0e43, + 0x1536: 0x0d0b, 0x1537: 0x0d07, 0x1538: 0x0f97, 0x1539: 0x082b, 0x153a: 0x0957, 0x153b: 0x1443, + // Block 0x55, offset 0x1540 + 0x1540: 0x06fb, 0x1541: 0x06f3, 0x1542: 0x0703, 0x1543: 0x1647, 0x1544: 0x0747, 0x1545: 0x0757, + 0x1546: 0x075b, 0x1547: 0x0763, 0x1548: 0x076b, 0x1549: 0x076f, 0x154a: 0x077b, 0x154b: 0x0773, + 0x154c: 0x05b3, 0x154d: 0x165b, 0x154e: 0x078f, 0x154f: 0x0793, 0x1550: 0x0797, 0x1551: 0x07b3, + 0x1552: 0x164c, 0x1553: 0x05b7, 0x1554: 0x079f, 0x1555: 0x07bf, 0x1556: 0x1656, 0x1557: 0x07cf, + 0x1558: 0x07d7, 0x1559: 0x0737, 0x155a: 0x07df, 0x155b: 0x07e3, 0x155c: 0x1831, 0x155d: 0x07ff, + 0x155e: 0x0807, 0x155f: 0x05bf, 0x1560: 0x081f, 0x1561: 0x0823, 0x1562: 0x082b, 0x1563: 0x082f, + 0x1564: 0x05c3, 0x1565: 0x0847, 0x1566: 0x084b, 0x1567: 0x0857, 0x1568: 0x0863, 0x1569: 0x0867, + 0x156a: 0x086b, 0x156b: 0x0873, 0x156c: 0x0893, 0x156d: 0x0897, 0x156e: 0x089f, 0x156f: 0x08af, + 0x1570: 0x08b7, 0x1571: 0x08bb, 0x1572: 0x08bb, 0x1573: 0x08bb, 0x1574: 0x166a, 0x1575: 0x0e93, + 0x1576: 0x08cf, 0x1577: 0x08d7, 0x1578: 0x166f, 0x1579: 0x08e3, 0x157a: 0x08eb, 0x157b: 0x08f3, + 0x157c: 0x091b, 0x157d: 0x0907, 0x157e: 0x0913, 0x157f: 0x0917, + // Block 0x56, offset 0x1580 + 0x1580: 0x091f, 0x1581: 0x0927, 0x1582: 0x092b, 0x1583: 0x0933, 0x1584: 0x093b, 0x1585: 0x093f, + 0x1586: 0x093f, 0x1587: 0x0947, 0x1588: 0x094f, 0x1589: 0x0953, 0x158a: 0x095f, 0x158b: 0x0983, + 0x158c: 0x0967, 0x158d: 0x0987, 0x158e: 0x096b, 0x158f: 0x0973, 0x1590: 0x080b, 0x1591: 0x09cf, + 0x1592: 0x0997, 0x1593: 0x099b, 0x1594: 0x099f, 0x1595: 0x0993, 0x1596: 0x09a7, 0x1597: 0x09a3, + 0x1598: 0x09bb, 0x1599: 0x1674, 0x159a: 0x09d7, 0x159b: 0x09db, 0x159c: 0x09e3, 0x159d: 0x09ef, + 0x159e: 0x09f7, 0x159f: 0x0a13, 0x15a0: 0x1679, 0x15a1: 0x167e, 0x15a2: 0x0a1f, 0x15a3: 0x0a23, + 0x15a4: 0x0a27, 0x15a5: 0x0a1b, 0x15a6: 0x0a2f, 0x15a7: 0x05c7, 0x15a8: 0x05cb, 0x15a9: 0x0a37, + 0x15aa: 0x0a3f, 0x15ab: 0x0a3f, 0x15ac: 0x1683, 0x15ad: 0x0a5b, 0x15ae: 0x0a5f, 0x15af: 0x0a63, + 0x15b0: 0x0a6b, 0x15b1: 0x1688, 0x15b2: 0x0a73, 0x15b3: 0x0a77, 0x15b4: 0x0b4f, 0x15b5: 0x0a7f, + 0x15b6: 0x05cf, 0x15b7: 0x0a8b, 0x15b8: 0x0a9b, 0x15b9: 0x0aa7, 0x15ba: 0x0aa3, 0x15bb: 0x1692, + 0x15bc: 0x0aaf, 0x15bd: 0x1697, 0x15be: 0x0abb, 0x15bf: 0x0ab7, + // Block 0x57, offset 0x15c0 + 0x15c0: 0x0abf, 0x15c1: 0x0acf, 0x15c2: 0x0ad3, 0x15c3: 0x05d3, 0x15c4: 0x0ae3, 0x15c5: 0x0aeb, + 0x15c6: 0x0aef, 0x15c7: 0x0af3, 0x15c8: 0x05d7, 0x15c9: 0x169c, 0x15ca: 0x05db, 0x15cb: 0x0b0f, + 0x15cc: 0x0b13, 0x15cd: 0x0b17, 0x15ce: 0x0b1f, 0x15cf: 0x1863, 0x15d0: 0x0b37, 0x15d1: 0x16a6, + 0x15d2: 0x16a6, 0x15d3: 0x11d7, 0x15d4: 0x0b47, 0x15d5: 0x0b47, 0x15d6: 0x05df, 0x15d7: 0x16c9, + 0x15d8: 0x179b, 0x15d9: 0x0b57, 0x15da: 0x0b5f, 0x15db: 0x05e3, 0x15dc: 0x0b73, 0x15dd: 0x0b83, + 0x15de: 0x0b87, 0x15df: 0x0b8f, 0x15e0: 0x0b9f, 0x15e1: 0x05eb, 0x15e2: 0x05e7, 0x15e3: 0x0ba3, + 0x15e4: 0x16ab, 0x15e5: 0x0ba7, 0x15e6: 0x0bbb, 0x15e7: 0x0bbf, 0x15e8: 0x0bc3, 0x15e9: 0x0bbf, + 0x15ea: 0x0bcf, 0x15eb: 0x0bd3, 0x15ec: 0x0be3, 0x15ed: 0x0bdb, 0x15ee: 0x0bdf, 0x15ef: 0x0be7, + 0x15f0: 0x0beb, 0x15f1: 0x0bef, 0x15f2: 0x0bfb, 0x15f3: 0x0bff, 0x15f4: 0x0c17, 0x15f5: 0x0c1f, + 0x15f6: 0x0c2f, 0x15f7: 0x0c43, 0x15f8: 0x16ba, 0x15f9: 0x0c3f, 0x15fa: 0x0c33, 0x15fb: 0x0c4b, + 0x15fc: 0x0c53, 0x15fd: 0x0c67, 0x15fe: 0x16bf, 0x15ff: 0x0c6f, + // Block 0x58, offset 0x1600 + 0x1600: 0x0c63, 0x1601: 0x0c5b, 0x1602: 0x05ef, 0x1603: 0x0c77, 0x1604: 0x0c7f, 0x1605: 0x0c87, + 0x1606: 0x0c7b, 0x1607: 0x05f3, 0x1608: 0x0c97, 0x1609: 0x0c9f, 0x160a: 0x16c4, 0x160b: 0x0ccb, + 0x160c: 0x0cff, 0x160d: 0x0cdb, 0x160e: 0x05ff, 0x160f: 0x0ce7, 0x1610: 0x05fb, 0x1611: 0x05f7, + 0x1612: 0x07c3, 0x1613: 0x07c7, 0x1614: 0x0d03, 0x1615: 0x0ceb, 0x1616: 0x11ab, 0x1617: 0x0663, + 0x1618: 0x0d0f, 0x1619: 0x0d13, 0x161a: 0x0d17, 0x161b: 0x0d2b, 0x161c: 0x0d23, 0x161d: 0x16dd, + 0x161e: 0x0603, 0x161f: 0x0d3f, 0x1620: 0x0d33, 0x1621: 0x0d4f, 0x1622: 0x0d57, 0x1623: 0x16e7, + 0x1624: 0x0d5b, 0x1625: 0x0d47, 0x1626: 0x0d63, 0x1627: 0x0607, 0x1628: 0x0d67, 0x1629: 0x0d6b, + 0x162a: 0x0d6f, 0x162b: 0x0d7b, 0x162c: 0x16ec, 0x162d: 0x0d83, 0x162e: 0x060b, 0x162f: 0x0d8f, + 0x1630: 0x16f1, 0x1631: 0x0d93, 0x1632: 0x060f, 0x1633: 0x0d9f, 0x1634: 0x0dab, 0x1635: 0x0db7, + 0x1636: 0x0dbb, 0x1637: 0x16f6, 0x1638: 0x168d, 0x1639: 0x16fb, 0x163a: 0x0ddb, 0x163b: 0x1700, + 0x163c: 0x0de7, 0x163d: 0x0def, 0x163e: 0x0ddf, 0x163f: 0x0dfb, + // Block 0x59, offset 0x1640 + 0x1640: 0x0e0b, 0x1641: 0x0e1b, 0x1642: 0x0e0f, 0x1643: 0x0e13, 0x1644: 0x0e1f, 0x1645: 0x0e23, + 0x1646: 0x1705, 0x1647: 0x0e07, 0x1648: 0x0e3b, 0x1649: 0x0e3f, 0x164a: 0x0613, 0x164b: 0x0e53, + 0x164c: 0x0e4f, 0x164d: 0x170a, 0x164e: 0x0e33, 0x164f: 0x0e6f, 0x1650: 0x170f, 0x1651: 0x1714, + 0x1652: 0x0e73, 0x1653: 0x0e87, 0x1654: 0x0e83, 0x1655: 0x0e7f, 0x1656: 0x0617, 0x1657: 0x0e8b, + 0x1658: 0x0e9b, 0x1659: 0x0e97, 0x165a: 0x0ea3, 0x165b: 0x1651, 0x165c: 0x0eb3, 0x165d: 0x1719, + 0x165e: 0x0ebf, 0x165f: 0x1723, 0x1660: 0x0ed3, 0x1661: 0x0edf, 0x1662: 0x0ef3, 0x1663: 0x1728, + 0x1664: 0x0f07, 0x1665: 0x0f0b, 0x1666: 0x172d, 0x1667: 0x1732, 0x1668: 0x0f27, 0x1669: 0x0f37, + 0x166a: 0x061b, 0x166b: 0x0f3b, 0x166c: 0x061f, 0x166d: 0x061f, 0x166e: 0x0f53, 0x166f: 0x0f57, + 0x1670: 0x0f5f, 0x1671: 0x0f63, 0x1672: 0x0f6f, 0x1673: 0x0623, 0x1674: 0x0f87, 0x1675: 0x1737, + 0x1676: 0x0fa3, 0x1677: 0x173c, 0x1678: 0x0faf, 0x1679: 0x16a1, 0x167a: 0x0fbf, 0x167b: 0x1741, + 0x167c: 0x1746, 0x167d: 0x174b, 0x167e: 0x0627, 0x167f: 0x062b, + // Block 0x5a, offset 0x1680 + 0x1680: 0x0ff7, 0x1681: 0x1755, 0x1682: 0x1750, 0x1683: 0x175a, 0x1684: 0x175f, 0x1685: 0x0fff, + 0x1686: 0x1003, 0x1687: 0x1003, 0x1688: 0x100b, 0x1689: 0x0633, 0x168a: 0x100f, 0x168b: 0x0637, + 0x168c: 0x063b, 0x168d: 0x1769, 0x168e: 0x1023, 0x168f: 0x102b, 0x1690: 0x1037, 0x1691: 0x063f, + 0x1692: 0x176e, 0x1693: 0x105b, 0x1694: 0x1773, 0x1695: 0x1778, 0x1696: 0x107b, 0x1697: 0x1093, + 0x1698: 0x0643, 0x1699: 0x109b, 0x169a: 0x109f, 0x169b: 0x10a3, 0x169c: 0x177d, 0x169d: 0x1782, + 0x169e: 0x1782, 0x169f: 0x10bb, 0x16a0: 0x0647, 0x16a1: 0x1787, 0x16a2: 0x10cf, 0x16a3: 0x10d3, + 0x16a4: 0x064b, 0x16a5: 0x178c, 0x16a6: 0x10ef, 0x16a7: 0x064f, 0x16a8: 0x10ff, 0x16a9: 0x10f7, + 0x16aa: 0x1107, 0x16ab: 0x1796, 0x16ac: 0x111f, 0x16ad: 0x0653, 0x16ae: 0x112b, 0x16af: 0x1133, + 0x16b0: 0x1143, 0x16b1: 0x0657, 0x16b2: 0x17a0, 0x16b3: 0x17a5, 0x16b4: 0x065b, 0x16b5: 0x17aa, + 0x16b6: 0x115b, 0x16b7: 0x17af, 0x16b8: 0x1167, 0x16b9: 0x1173, 0x16ba: 0x117b, 0x16bb: 0x17b4, + 0x16bc: 0x17b9, 0x16bd: 0x118f, 0x16be: 0x17be, 0x16bf: 0x1197, + // Block 0x5b, offset 0x16c0 + 0x16c0: 0x16ce, 0x16c1: 0x065f, 0x16c2: 0x11af, 0x16c3: 0x11b3, 0x16c4: 0x0667, 0x16c5: 0x11b7, + 0x16c6: 0x0a33, 0x16c7: 0x17c3, 0x16c8: 0x17c8, 0x16c9: 0x16d3, 0x16ca: 0x16d8, 0x16cb: 0x11d7, + 0x16cc: 0x11db, 0x16cd: 0x13f3, 0x16ce: 0x066b, 0x16cf: 0x1207, 0x16d0: 0x1203, 0x16d1: 0x120b, + 0x16d2: 0x083f, 0x16d3: 0x120f, 0x16d4: 0x1213, 0x16d5: 0x1217, 0x16d6: 0x121f, 0x16d7: 0x17cd, + 0x16d8: 0x121b, 0x16d9: 0x1223, 0x16da: 0x1237, 0x16db: 0x123b, 0x16dc: 0x1227, 0x16dd: 0x123f, + 0x16de: 0x1253, 0x16df: 0x1267, 0x16e0: 0x1233, 0x16e1: 0x1247, 0x16e2: 0x124b, 0x16e3: 0x124f, + 0x16e4: 0x17d2, 0x16e5: 0x17dc, 0x16e6: 0x17d7, 0x16e7: 0x066f, 0x16e8: 0x126f, 0x16e9: 0x1273, + 0x16ea: 0x127b, 0x16eb: 0x17f0, 0x16ec: 0x127f, 0x16ed: 0x17e1, 0x16ee: 0x0673, 0x16ef: 0x0677, + 0x16f0: 0x17e6, 0x16f1: 0x17eb, 0x16f2: 0x067b, 0x16f3: 0x129f, 0x16f4: 0x12a3, 0x16f5: 0x12a7, + 0x16f6: 0x12ab, 0x16f7: 0x12b7, 0x16f8: 0x12b3, 0x16f9: 0x12bf, 0x16fa: 0x12bb, 0x16fb: 0x12cb, + 0x16fc: 0x12c3, 0x16fd: 0x12c7, 0x16fe: 0x12cf, 0x16ff: 0x067f, + // Block 0x5c, offset 0x1700 + 0x1700: 0x12d7, 0x1701: 0x12db, 0x1702: 0x0683, 0x1703: 0x12eb, 0x1704: 0x12ef, 0x1705: 0x17f5, + 0x1706: 0x12fb, 0x1707: 0x12ff, 0x1708: 0x0687, 0x1709: 0x130b, 0x170a: 0x05bb, 0x170b: 0x17fa, + 0x170c: 0x17ff, 0x170d: 0x068b, 0x170e: 0x068f, 0x170f: 0x1337, 0x1710: 0x134f, 0x1711: 0x136b, + 0x1712: 0x137b, 0x1713: 0x1804, 0x1714: 0x138f, 0x1715: 0x1393, 0x1716: 0x13ab, 0x1717: 0x13b7, + 0x1718: 0x180e, 0x1719: 0x1660, 0x171a: 0x13c3, 0x171b: 0x13bf, 0x171c: 0x13cb, 0x171d: 0x1665, + 0x171e: 0x13d7, 0x171f: 0x13e3, 0x1720: 0x1813, 0x1721: 0x1818, 0x1722: 0x1423, 0x1723: 0x142f, + 0x1724: 0x1437, 0x1725: 0x181d, 0x1726: 0x143b, 0x1727: 0x1467, 0x1728: 0x1473, 0x1729: 0x1477, + 0x172a: 0x146f, 0x172b: 0x1483, 0x172c: 0x1487, 0x172d: 0x1822, 0x172e: 0x1493, 0x172f: 0x0693, + 0x1730: 0x149b, 0x1731: 0x1827, 0x1732: 0x0697, 0x1733: 0x14d3, 0x1734: 0x0ac3, 0x1735: 0x14eb, + 0x1736: 0x182c, 0x1737: 0x1836, 0x1738: 0x069b, 0x1739: 0x069f, 0x173a: 0x1513, 0x173b: 0x183b, + 0x173c: 0x06a3, 0x173d: 0x1840, 0x173e: 0x152b, 0x173f: 0x152b, + // Block 0x5d, offset 0x1740 + 0x1740: 0x1533, 0x1741: 0x1845, 0x1742: 0x154b, 0x1743: 0x06a7, 0x1744: 0x155b, 0x1745: 0x1567, + 0x1746: 0x156f, 0x1747: 0x1577, 0x1748: 0x06ab, 0x1749: 0x184a, 0x174a: 0x158b, 0x174b: 0x15a7, + 0x174c: 0x15b3, 0x174d: 0x06af, 0x174e: 0x06b3, 0x174f: 0x15b7, 0x1750: 0x184f, 0x1751: 0x06b7, + 0x1752: 0x1854, 0x1753: 0x1859, 0x1754: 0x185e, 0x1755: 0x15db, 0x1756: 0x06bb, 0x1757: 0x15ef, + 0x1758: 0x15f7, 0x1759: 0x15fb, 0x175a: 0x1603, 0x175b: 0x160b, 0x175c: 0x1613, 0x175d: 0x1868, +} + +// nfkcIndex: 22 blocks, 1408 entries, 2816 bytes +// Block 0 is the zero block. +var nfkcIndex = [1408]uint16{ + // Block 0x0, offset 0x0 + // Block 0x1, offset 0x40 + // Block 0x2, offset 0x80 + // Block 0x3, offset 0xc0 + 0xc2: 0x5c, 0xc3: 0x01, 0xc4: 0x02, 0xc5: 0x03, 0xc6: 0x5d, 0xc7: 0x04, + 0xc8: 0x05, 0xca: 0x5e, 0xcb: 0x5f, 0xcc: 0x06, 0xcd: 0x07, 0xce: 0x08, 0xcf: 0x09, + 0xd0: 0x0a, 0xd1: 0x60, 0xd2: 0x61, 0xd3: 0x0b, 0xd6: 0x0c, 0xd7: 0x62, + 0xd8: 0x63, 0xd9: 0x0d, 0xdb: 0x64, 0xdc: 0x65, 0xdd: 0x66, 0xdf: 0x67, + 0xe0: 0x02, 0xe1: 0x03, 0xe2: 0x04, 0xe3: 0x05, + 0xea: 0x06, 0xeb: 0x07, 0xec: 0x08, 0xed: 0x09, 0xef: 0x0a, + 0xf0: 0x13, + // Block 0x4, offset 0x100 + 0x120: 0x68, 0x121: 0x69, 0x123: 0x0e, 0x124: 0x6a, 0x125: 0x6b, 0x126: 0x6c, 0x127: 0x6d, + 0x128: 0x6e, 0x129: 0x6f, 0x12a: 0x70, 0x12b: 0x71, 0x12c: 0x6c, 0x12d: 0x72, 0x12e: 0x73, 0x12f: 0x74, + 0x131: 0x75, 0x132: 0x76, 0x133: 0x77, 0x134: 0x78, 0x135: 0x79, 0x137: 0x7a, + 0x138: 0x7b, 0x139: 0x7c, 0x13a: 0x7d, 0x13b: 0x7e, 0x13c: 0x7f, 0x13d: 0x80, 0x13e: 0x81, 0x13f: 0x82, + // Block 0x5, offset 0x140 + 0x140: 0x83, 0x142: 0x84, 0x143: 0x85, 0x144: 0x86, 0x145: 0x87, 0x146: 0x88, 0x147: 0x89, + 0x14d: 0x8a, + 0x15c: 0x8b, 0x15f: 0x8c, + 0x162: 0x8d, 0x164: 0x8e, + 0x168: 0x8f, 0x169: 0x90, 0x16a: 0x91, 0x16c: 0x0f, 0x16d: 0x92, 0x16e: 0x93, 0x16f: 0x94, + 0x170: 0x95, 0x173: 0x96, 0x174: 0x97, 0x175: 0x10, 0x176: 0x11, 0x177: 0x12, + 0x178: 0x13, 0x179: 0x14, 0x17a: 0x15, 0x17b: 0x16, 0x17c: 0x17, 0x17d: 0x18, 0x17e: 0x19, 0x17f: 0x1a, + // Block 0x6, offset 0x180 + 0x180: 0x98, 0x181: 0x99, 0x182: 0x9a, 0x183: 0x9b, 0x184: 0x1b, 0x185: 0x1c, 0x186: 0x9c, 0x187: 0x9d, + 0x188: 0x9e, 0x189: 0x1d, 0x18a: 0x1e, 0x18b: 0x9f, 0x18c: 0xa0, + 0x191: 0x1f, 0x192: 0x20, 0x193: 0xa1, + 0x1a8: 0xa2, 0x1a9: 0xa3, 0x1ab: 0xa4, + 0x1b1: 0xa5, 0x1b3: 0xa6, 0x1b5: 0xa7, 0x1b7: 0xa8, + 0x1ba: 0xa9, 0x1bb: 0xaa, 0x1bc: 0x21, 0x1bd: 0x22, 0x1be: 0x23, 0x1bf: 0xab, + // Block 0x7, offset 0x1c0 + 0x1c0: 0xac, 0x1c1: 0x24, 0x1c2: 0x25, 0x1c3: 0x26, 0x1c4: 0xad, 0x1c5: 0x27, 0x1c6: 0x28, + 0x1c8: 0x29, 0x1c9: 0x2a, 0x1ca: 0x2b, 0x1cb: 0x2c, 0x1cc: 0x2d, 0x1cd: 0x2e, 0x1ce: 0x2f, 0x1cf: 0x30, + // Block 0x8, offset 0x200 + 0x219: 0xae, 0x21a: 0xaf, 0x21b: 0xb0, 0x21d: 0xb1, 0x21f: 0xb2, + 0x220: 0xb3, 0x223: 0xb4, 0x224: 0xb5, 0x225: 0xb6, 0x226: 0xb7, 0x227: 0xb8, + 0x22a: 0xb9, 0x22b: 0xba, 0x22d: 0xbb, 0x22f: 0xbc, + 0x230: 0xbd, 0x231: 0xbe, 0x232: 0xbf, 0x233: 0xc0, 0x234: 0xc1, 0x235: 0xc2, 0x236: 0xc3, 0x237: 0xbd, + 0x238: 0xbe, 0x239: 0xbf, 0x23a: 0xc0, 0x23b: 0xc1, 0x23c: 0xc2, 0x23d: 0xc3, 0x23e: 0xbd, 0x23f: 0xbe, + // Block 0x9, offset 0x240 + 0x240: 0xbf, 0x241: 0xc0, 0x242: 0xc1, 0x243: 0xc2, 0x244: 0xc3, 0x245: 0xbd, 0x246: 0xbe, 0x247: 0xbf, + 0x248: 0xc0, 0x249: 0xc1, 0x24a: 0xc2, 0x24b: 0xc3, 0x24c: 0xbd, 0x24d: 0xbe, 0x24e: 0xbf, 0x24f: 0xc0, + 0x250: 0xc1, 0x251: 0xc2, 0x252: 0xc3, 0x253: 0xbd, 0x254: 0xbe, 0x255: 0xbf, 0x256: 0xc0, 0x257: 0xc1, + 0x258: 0xc2, 0x259: 0xc3, 0x25a: 0xbd, 0x25b: 0xbe, 0x25c: 0xbf, 0x25d: 0xc0, 0x25e: 0xc1, 0x25f: 0xc2, + 0x260: 0xc3, 0x261: 0xbd, 0x262: 0xbe, 0x263: 0xbf, 0x264: 0xc0, 0x265: 0xc1, 0x266: 0xc2, 0x267: 0xc3, + 0x268: 0xbd, 0x269: 0xbe, 0x26a: 0xbf, 0x26b: 0xc0, 0x26c: 0xc1, 0x26d: 0xc2, 0x26e: 0xc3, 0x26f: 0xbd, + 0x270: 0xbe, 0x271: 0xbf, 0x272: 0xc0, 0x273: 0xc1, 0x274: 0xc2, 0x275: 0xc3, 0x276: 0xbd, 0x277: 0xbe, + 0x278: 0xbf, 0x279: 0xc0, 0x27a: 0xc1, 0x27b: 0xc2, 0x27c: 0xc3, 0x27d: 0xbd, 0x27e: 0xbe, 0x27f: 0xbf, + // Block 0xa, offset 0x280 + 0x280: 0xc0, 0x281: 0xc1, 0x282: 0xc2, 0x283: 0xc3, 0x284: 0xbd, 0x285: 0xbe, 0x286: 0xbf, 0x287: 0xc0, + 0x288: 0xc1, 0x289: 0xc2, 0x28a: 0xc3, 0x28b: 0xbd, 0x28c: 0xbe, 0x28d: 0xbf, 0x28e: 0xc0, 0x28f: 0xc1, + 0x290: 0xc2, 0x291: 0xc3, 0x292: 0xbd, 0x293: 0xbe, 0x294: 0xbf, 0x295: 0xc0, 0x296: 0xc1, 0x297: 0xc2, + 0x298: 0xc3, 0x299: 0xbd, 0x29a: 0xbe, 0x29b: 0xbf, 0x29c: 0xc0, 0x29d: 0xc1, 0x29e: 0xc2, 0x29f: 0xc3, + 0x2a0: 0xbd, 0x2a1: 0xbe, 0x2a2: 0xbf, 0x2a3: 0xc0, 0x2a4: 0xc1, 0x2a5: 0xc2, 0x2a6: 0xc3, 0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c: 0xc5, 0x33d: 0x49, 0x33e: 0x4a, 0x33f: 0x4b, + // Block 0xd, offset 0x340 + 0x347: 0xc6, + 0x34b: 0xc7, 0x34d: 0xc8, + 0x368: 0xc9, 0x36b: 0xca, + 0x374: 0xcb, + 0x37d: 0xcc, + // Block 0xe, offset 0x380 + 0x381: 0xcd, 0x382: 0xce, 0x384: 0xcf, 0x385: 0xb7, 0x387: 0xd0, + 0x388: 0xd1, 0x38b: 0xd2, 0x38c: 0xd3, 0x38d: 0xd4, + 0x391: 0xd5, 0x392: 0xd6, 0x393: 0xd7, 0x396: 0xd8, 0x397: 0xd9, + 0x398: 0xda, 0x39a: 0xdb, 0x39c: 0xdc, + 0x3a0: 0xdd, 0x3a7: 0xde, + 0x3a8: 0xdf, 0x3a9: 0xe0, 0x3aa: 0xe1, + 0x3b0: 0xda, 0x3b5: 0xe2, 0x3b6: 0xe3, + // Block 0xf, offset 0x3c0 + 0x3eb: 0xe4, 0x3ec: 0xe5, + // Block 0x10, offset 0x400 + 0x432: 0xe6, + // Block 0x11, offset 0x440 + 0x445: 0xe7, 0x446: 0xe8, 0x447: 0xe9, + 0x449: 0xea, + 0x450: 0xeb, 0x451: 0xec, 0x452: 0xed, 0x453: 0xee, 0x454: 0xef, 0x455: 0xf0, 0x456: 0xf1, 0x457: 0xf2, + 0x458: 0xf3, 0x459: 0xf4, 0x45a: 0x4c, 0x45b: 0xf5, 0x45c: 0xf6, 0x45d: 0xf7, 0x45e: 0xf8, 0x45f: 0x4d, + // Block 0x12, offset 0x480 + 0x480: 0xf9, 0x484: 0xe5, + 0x48b: 0xfa, + 0x4a3: 0xfb, 0x4a5: 0xfc, + 0x4b8: 0x4e, 0x4b9: 0x4f, 0x4ba: 0x50, + // Block 0x13, offset 0x4c0 + 0x4c4: 0x51, 0x4c5: 0xfd, 0x4c6: 0xfe, + 0x4c8: 0x52, 0x4c9: 0xff, + // Block 0x14, offset 0x500 + 0x520: 0x53, 0x521: 0x54, 0x522: 0x55, 0x523: 0x56, 0x524: 0x57, 0x525: 0x58, 0x526: 0x59, 0x527: 0x5a, + 0x528: 0x5b, + // Block 0x15, offset 0x540 + 0x550: 0x0b, 0x551: 0x0c, 0x556: 0x0d, + 0x55b: 0x0e, 0x55d: 0x0f, 0x55e: 0x10, 0x55f: 0x11, + 0x56f: 0x12, +} + +// nfkcSparseOffset: 164 entries, 328 bytes +var nfkcSparseOffset = []uint16{0x0, 0xe, 0x12, 0x1b, 0x25, 0x35, 0x37, 0x3c, 0x47, 0x56, 0x63, 0x6b, 0x70, 0x75, 0x77, 0x7f, 0x86, 0x89, 0x91, 0x95, 0x99, 0x9b, 0x9d, 0xa6, 0xaa, 0xb1, 0xb6, 0xb9, 0xc3, 0xc6, 0xcd, 0xd5, 0xd9, 0xdb, 0xdf, 0xe3, 0xe9, 0xfa, 0x106, 0x108, 0x10e, 0x110, 0x112, 0x114, 0x116, 0x118, 0x11a, 0x11c, 0x11f, 0x122, 0x124, 0x127, 0x12a, 0x12e, 0x133, 0x13c, 0x13e, 0x141, 0x143, 0x14e, 0x159, 0x167, 0x175, 0x185, 0x193, 0x19a, 0x1a0, 0x1af, 0x1b3, 0x1b5, 0x1b9, 0x1bb, 0x1be, 0x1c0, 0x1c3, 0x1c5, 0x1c8, 0x1ca, 0x1cc, 0x1ce, 0x1da, 0x1e4, 0x1ee, 0x1f1, 0x1f5, 0x1f7, 0x1f9, 0x1fb, 0x1fd, 0x200, 0x202, 0x204, 0x206, 0x208, 0x20e, 0x211, 0x215, 0x217, 0x21e, 0x224, 0x22a, 0x232, 0x238, 0x23e, 0x244, 0x248, 0x24a, 0x24c, 0x24e, 0x250, 0x256, 0x259, 0x25b, 0x261, 0x264, 0x26c, 0x273, 0x276, 0x279, 0x27b, 0x27e, 0x286, 0x28a, 0x291, 0x294, 0x29a, 0x29c, 0x29e, 0x2a1, 0x2a3, 0x2a6, 0x2a8, 0x2aa, 0x2ac, 0x2ae, 0x2b1, 0x2b3, 0x2b5, 0x2b7, 0x2b9, 0x2c6, 0x2d0, 0x2d2, 0x2d4, 0x2d8, 0x2dd, 0x2e9, 0x2ee, 0x2f7, 0x2fd, 0x302, 0x306, 0x30b, 0x30f, 0x31f, 0x32d, 0x33b, 0x349, 0x34f, 0x351, 0x353, 0x356, 0x361, 0x363} + +// nfkcSparseValues: 877 entries, 3508 bytes +var nfkcSparseValues = [877]valueRange{ + // Block 0x0, offset 0x0 + {value: 0x0002, lo: 0x0d}, + {value: 0x0001, lo: 0xa0, hi: 0xa0}, + {value: 0x427b, lo: 0xa8, hi: 0xa8}, + {value: 0x0083, lo: 0xaa, hi: 0xaa}, + {value: 0x4267, lo: 0xaf, hi: 0xaf}, + {value: 0x0025, lo: 0xb2, hi: 0xb3}, + {value: 0x425d, lo: 0xb4, hi: 0xb4}, + {value: 0x01dc, lo: 0xb5, hi: 0xb5}, + {value: 0x4294, lo: 0xb8, hi: 0xb8}, + {value: 0x0023, lo: 0xb9, hi: 0xb9}, + {value: 0x009f, lo: 0xba, hi: 0xba}, + {value: 0x221f, lo: 0xbc, hi: 0xbc}, + {value: 0x2213, lo: 0xbd, hi: 0xbd}, + {value: 0x22b5, lo: 0xbe, hi: 0xbe}, + // Block 0x1, offset 0xe + {value: 0x0091, lo: 0x03}, + {value: 0x46e5, lo: 0xa0, hi: 0xa1}, + {value: 0x4717, lo: 0xaf, hi: 0xb0}, + {value: 0xa000, lo: 0xb7, hi: 0xb7}, + // Block 0x2, offset 0x12 + {value: 0x0003, lo: 0x08}, + {value: 0xa000, lo: 0x92, hi: 0x92}, + {value: 0x0091, lo: 0xb0, hi: 0xb0}, + {value: 0x0119, lo: 0xb1, hi: 0xb1}, + {value: 0x0095, lo: 0xb2, hi: 0xb2}, + {value: 0x00a5, lo: 0xb3, hi: 0xb3}, + {value: 0x0143, lo: 0xb4, hi: 0xb6}, + {value: 0x00af, lo: 0xb7, hi: 0xb7}, + {value: 0x00b3, lo: 0xb8, hi: 0xb8}, + // Block 0x3, offset 0x1b + {value: 0x000a, lo: 0x09}, + {value: 0x4271, lo: 0x98, hi: 0x98}, + {value: 0x4276, lo: 0x99, hi: 0x9a}, + {value: 0x4299, lo: 0x9b, hi: 0x9b}, + {value: 0x4262, lo: 0x9c, hi: 0x9c}, + {value: 0x4285, lo: 0x9d, hi: 0x9d}, + {value: 0x0113, lo: 0xa0, hi: 0xa0}, + {value: 0x0099, lo: 0xa1, hi: 0xa1}, + {value: 0x00a7, lo: 0xa2, hi: 0xa3}, + {value: 0x0167, lo: 0xa4, hi: 0xa4}, + // Block 0x4, offset 0x25 + {value: 0x0000, lo: 0x0f}, + {value: 0xa000, lo: 0x83, hi: 0x83}, + {value: 0xa000, lo: 0x87, hi: 0x87}, + {value: 0xa000, lo: 0x8b, hi: 0x8b}, + {value: 0xa000, lo: 0x8d, hi: 0x8d}, + {value: 0x37a8, lo: 0x90, hi: 0x90}, + {value: 0x37b4, lo: 0x91, hi: 0x91}, + {value: 0x37a2, lo: 0x93, hi: 0x93}, + {value: 0xa000, lo: 0x96, hi: 0x96}, + {value: 0x381a, lo: 0x97, hi: 0x97}, + {value: 0x37e4, lo: 0x9c, hi: 0x9c}, + {value: 0x37cc, lo: 0x9d, hi: 0x9d}, + {value: 0x37f6, lo: 0x9e, hi: 0x9e}, + {value: 0xa000, lo: 0xb4, hi: 0xb5}, + {value: 0x3820, lo: 0xb6, hi: 0xb6}, + {value: 0x3826, lo: 0xb7, hi: 0xb7}, + // Block 0x5, offset 0x35 + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0x83, hi: 0x87}, + // Block 0x6, offset 0x37 + {value: 0x0001, lo: 0x04}, + {value: 0x8113, lo: 0x81, hi: 0x82}, + {value: 0x8132, lo: 0x84, hi: 0x84}, + {value: 0x812d, lo: 0x85, hi: 0x85}, + {value: 0x810d, lo: 0x87, hi: 0x87}, + // Block 0x7, offset 0x3c + {value: 0x0000, lo: 0x0a}, + {value: 0x8132, lo: 0x90, hi: 0x97}, + {value: 0x8119, lo: 0x98, hi: 0x98}, + {value: 0x811a, lo: 0x99, hi: 0x99}, + {value: 0x811b, lo: 0x9a, hi: 0x9a}, + {value: 0x3844, lo: 0xa2, hi: 0xa2}, + {value: 0x384a, lo: 0xa3, hi: 0xa3}, + {value: 0x3856, lo: 0xa4, hi: 0xa4}, + {value: 0x3850, lo: 0xa5, hi: 0xa5}, + {value: 0x385c, lo: 0xa6, hi: 0xa6}, + {value: 0xa000, lo: 0xa7, hi: 0xa7}, + // Block 0x8, offset 0x47 + {value: 0x0000, lo: 0x0e}, + {value: 0x386e, lo: 0x80, hi: 0x80}, + {value: 0xa000, lo: 0x81, hi: 0x81}, + {value: 0x3862, lo: 0x82, hi: 0x82}, + {value: 0xa000, lo: 0x92, hi: 0x92}, + {value: 0x3868, lo: 0x93, hi: 0x93}, + {value: 0xa000, lo: 0x95, hi: 0x95}, + {value: 0x8132, lo: 0x96, hi: 0x9c}, + {value: 0x8132, lo: 0x9f, hi: 0xa2}, + {value: 0x812d, lo: 0xa3, hi: 0xa3}, + {value: 0x8132, lo: 0xa4, hi: 0xa4}, + {value: 0x8132, lo: 0xa7, hi: 0xa8}, + {value: 0x812d, lo: 0xaa, hi: 0xaa}, + {value: 0x8132, lo: 0xab, hi: 0xac}, + {value: 0x812d, lo: 0xad, hi: 0xad}, + // Block 0x9, offset 0x56 + {value: 0x0000, lo: 0x0c}, + {value: 0x811f, lo: 0x91, hi: 0x91}, + {value: 0x8132, lo: 0xb0, hi: 0xb0}, + {value: 0x812d, lo: 0xb1, hi: 0xb1}, + {value: 0x8132, lo: 0xb2, hi: 0xb3}, + {value: 0x812d, lo: 0xb4, hi: 0xb4}, + {value: 0x8132, lo: 0xb5, hi: 0xb6}, + {value: 0x812d, lo: 0xb7, hi: 0xb9}, + {value: 0x8132, lo: 0xba, hi: 0xba}, + {value: 0x812d, lo: 0xbb, hi: 0xbc}, + {value: 0x8132, lo: 0xbd, hi: 0xbd}, + {value: 0x812d, lo: 0xbe, hi: 0xbe}, + {value: 0x8132, lo: 0xbf, hi: 0xbf}, + // Block 0xa, offset 0x63 + {value: 0x0005, lo: 0x07}, + {value: 0x8132, lo: 0x80, hi: 0x80}, + {value: 0x8132, lo: 0x81, hi: 0x81}, + {value: 0x812d, lo: 0x82, hi: 0x83}, + {value: 0x812d, lo: 0x84, hi: 0x85}, + {value: 0x812d, lo: 0x86, hi: 0x87}, + {value: 0x812d, lo: 0x88, hi: 0x89}, + {value: 0x8132, lo: 0x8a, hi: 0x8a}, + // Block 0xb, offset 0x6b + {value: 0x0000, lo: 0x04}, + {value: 0x8132, lo: 0xab, hi: 0xb1}, + {value: 0x812d, lo: 0xb2, hi: 0xb2}, + {value: 0x8132, lo: 0xb3, hi: 0xb3}, + {value: 0x812d, lo: 0xbd, hi: 0xbd}, + // Block 0xc, offset 0x70 + {value: 0x0000, lo: 0x04}, + {value: 0x8132, lo: 0x96, hi: 0x99}, + {value: 0x8132, lo: 0x9b, hi: 0xa3}, + {value: 0x8132, lo: 0xa5, hi: 0xa7}, + {value: 0x8132, lo: 0xa9, hi: 0xad}, + // Block 0xd, offset 0x75 + {value: 0x0000, lo: 0x01}, + {value: 0x812d, lo: 0x99, hi: 0x9b}, + // Block 0xe, offset 0x77 + {value: 0x0000, lo: 0x07}, + {value: 0xa000, lo: 0xa8, hi: 0xa8}, + {value: 0x3edb, lo: 0xa9, hi: 0xa9}, + {value: 0xa000, lo: 0xb0, hi: 0xb0}, + {value: 0x3ee3, lo: 0xb1, hi: 0xb1}, + {value: 0xa000, lo: 0xb3, hi: 0xb3}, + {value: 0x3eeb, lo: 0xb4, hi: 0xb4}, + {value: 0x9902, lo: 0xbc, hi: 0xbc}, + // Block 0xf, offset 0x7f + {value: 0x0008, lo: 0x06}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x8132, lo: 0x91, hi: 0x91}, + {value: 0x812d, lo: 0x92, hi: 0x92}, + {value: 0x8132, lo: 0x93, hi: 0x93}, + {value: 0x8132, lo: 0x94, hi: 0x94}, + {value: 0x451f, lo: 0x98, hi: 0x9f}, + // Block 0x10, offset 0x86 + {value: 0x0000, lo: 0x02}, + {value: 0x8102, lo: 0xbc, hi: 0xbc}, + {value: 0x9900, lo: 0xbe, hi: 0xbe}, + // Block 0x11, offset 0x89 + {value: 0x0008, lo: 0x07}, + {value: 0xa000, lo: 0x87, hi: 0x87}, + {value: 0x2ca1, lo: 0x8b, hi: 0x8c}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x9900, lo: 0x97, hi: 0x97}, + {value: 0x455f, lo: 0x9c, hi: 0x9d}, + {value: 0x456f, lo: 0x9f, hi: 0x9f}, + {value: 0x8132, lo: 0xbe, hi: 0xbe}, + // Block 0x12, offset 0x91 + {value: 0x0000, lo: 0x03}, + {value: 0x4597, lo: 0xb3, hi: 0xb3}, + {value: 0x459f, lo: 0xb6, hi: 0xb6}, + {value: 0x8102, lo: 0xbc, hi: 0xbc}, + // Block 0x13, offset 0x95 + {value: 0x0008, lo: 0x03}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x4577, lo: 0x99, hi: 0x9b}, + {value: 0x458f, lo: 0x9e, hi: 0x9e}, + // Block 0x14, offset 0x99 + {value: 0x0000, lo: 0x01}, + {value: 0x8102, lo: 0xbc, hi: 0xbc}, + // Block 0x15, offset 0x9b + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + // Block 0x16, offset 0x9d + {value: 0x0000, lo: 0x08}, + {value: 0xa000, lo: 0x87, hi: 0x87}, + {value: 0x2cb9, lo: 0x88, hi: 0x88}, + {value: 0x2cb1, lo: 0x8b, hi: 0x8b}, + {value: 0x2cc1, lo: 0x8c, hi: 0x8c}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x9900, lo: 0x96, hi: 0x97}, + {value: 0x45a7, lo: 0x9c, hi: 0x9c}, + {value: 0x45af, lo: 0x9d, hi: 0x9d}, + // Block 0x17, offset 0xa6 + {value: 0x0000, lo: 0x03}, + {value: 0xa000, lo: 0x92, hi: 0x92}, + {value: 0x2cc9, lo: 0x94, hi: 0x94}, + {value: 0x9900, lo: 0xbe, hi: 0xbe}, + // Block 0x18, offset 0xaa + {value: 0x0000, lo: 0x06}, + {value: 0xa000, lo: 0x86, hi: 0x87}, + {value: 0x2cd1, lo: 0x8a, hi: 0x8a}, + {value: 0x2ce1, lo: 0x8b, hi: 0x8b}, + {value: 0x2cd9, lo: 0x8c, hi: 0x8c}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x9900, lo: 0x97, hi: 0x97}, + // Block 0x19, offset 0xb1 + {value: 0x1801, lo: 0x04}, + {value: 0xa000, lo: 0x86, hi: 0x86}, + {value: 0x3ef3, lo: 0x88, hi: 0x88}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x8120, lo: 0x95, hi: 0x96}, + // Block 0x1a, offset 0xb6 + {value: 0x0000, lo: 0x02}, + {value: 0x8102, lo: 0xbc, hi: 0xbc}, + {value: 0xa000, lo: 0xbf, hi: 0xbf}, + // Block 0x1b, offset 0xb9 + {value: 0x0000, lo: 0x09}, + {value: 0x2ce9, lo: 0x80, hi: 0x80}, + {value: 0x9900, lo: 0x82, hi: 0x82}, + {value: 0xa000, lo: 0x86, hi: 0x86}, + {value: 0x2cf1, lo: 0x87, hi: 0x87}, + {value: 0x2cf9, lo: 0x88, hi: 0x88}, + {value: 0x2f53, lo: 0x8a, hi: 0x8a}, + {value: 0x2ddb, lo: 0x8b, hi: 0x8b}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x9900, lo: 0x95, hi: 0x96}, + // Block 0x1c, offset 0xc3 + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0xbb, hi: 0xbc}, + {value: 0x9900, lo: 0xbe, hi: 0xbe}, + // Block 0x1d, offset 0xc6 + {value: 0x0000, lo: 0x06}, + {value: 0xa000, lo: 0x86, hi: 0x87}, + {value: 0x2d01, lo: 0x8a, hi: 0x8a}, + {value: 0x2d11, lo: 0x8b, hi: 0x8b}, + {value: 0x2d09, lo: 0x8c, hi: 0x8c}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x9900, lo: 0x97, hi: 0x97}, + // Block 0x1e, offset 0xcd + {value: 0x6be7, lo: 0x07}, + {value: 0x9904, lo: 0x8a, hi: 0x8a}, + {value: 0x9900, lo: 0x8f, hi: 0x8f}, + {value: 0xa000, lo: 0x99, hi: 0x99}, + {value: 0x3efb, lo: 0x9a, hi: 0x9a}, + {value: 0x2f5b, lo: 0x9c, hi: 0x9c}, + {value: 0x2de6, lo: 0x9d, hi: 0x9d}, + {value: 0x2d19, lo: 0x9e, hi: 0x9f}, + // Block 0x1f, offset 0xd5 + {value: 0x0000, lo: 0x03}, + {value: 0x2624, lo: 0xb3, hi: 0xb3}, + {value: 0x8122, lo: 0xb8, hi: 0xb9}, + {value: 0x8104, lo: 0xba, hi: 0xba}, + // Block 0x20, offset 0xd9 + {value: 0x0000, lo: 0x01}, + {value: 0x8123, lo: 0x88, hi: 0x8b}, + // Block 0x21, offset 0xdb + {value: 0x0000, lo: 0x03}, + {value: 0x2639, lo: 0xb3, hi: 0xb3}, + {value: 0x8124, lo: 0xb8, hi: 0xb9}, + {value: 0x8104, lo: 0xba, hi: 0xba}, + // Block 0x22, offset 0xdf + {value: 0x0000, lo: 0x03}, + {value: 0x8125, lo: 0x88, hi: 0x8b}, + {value: 0x262b, lo: 0x9c, hi: 0x9c}, + {value: 0x2632, lo: 0x9d, hi: 0x9d}, + // Block 0x23, offset 0xe3 + {value: 0x0000, lo: 0x05}, + {value: 0x030b, lo: 0x8c, hi: 0x8c}, + {value: 0x812d, lo: 0x98, hi: 0x99}, + {value: 0x812d, lo: 0xb5, hi: 0xb5}, + {value: 0x812d, lo: 0xb7, hi: 0xb7}, + {value: 0x812b, lo: 0xb9, hi: 0xb9}, + // Block 0x24, offset 0xe9 + {value: 0x0000, lo: 0x10}, + {value: 0x2647, lo: 0x83, hi: 0x83}, + {value: 0x264e, lo: 0x8d, hi: 0x8d}, + {value: 0x2655, lo: 0x92, hi: 0x92}, + {value: 0x265c, lo: 0x97, hi: 0x97}, + {value: 0x2663, lo: 0x9c, hi: 0x9c}, + {value: 0x2640, lo: 0xa9, hi: 0xa9}, + {value: 0x8126, lo: 0xb1, hi: 0xb1}, + {value: 0x8127, lo: 0xb2, hi: 0xb2}, + {value: 0x4a87, lo: 0xb3, hi: 0xb3}, + {value: 0x8128, lo: 0xb4, hi: 0xb4}, + {value: 0x4a90, lo: 0xb5, hi: 0xb5}, + {value: 0x45b7, lo: 0xb6, hi: 0xb6}, + {value: 0x45f7, lo: 0xb7, hi: 0xb7}, + {value: 0x45bf, lo: 0xb8, hi: 0xb8}, + {value: 0x4602, lo: 0xb9, hi: 0xb9}, + {value: 0x8127, lo: 0xba, hi: 0xbd}, + // Block 0x25, offset 0xfa + {value: 0x0000, lo: 0x0b}, + {value: 0x8127, lo: 0x80, hi: 0x80}, + {value: 0x4a99, lo: 0x81, hi: 0x81}, + {value: 0x8132, lo: 0x82, hi: 0x83}, + {value: 0x8104, lo: 0x84, hi: 0x84}, + {value: 0x8132, lo: 0x86, hi: 0x87}, + {value: 0x2671, lo: 0x93, hi: 0x93}, + {value: 0x2678, lo: 0x9d, hi: 0x9d}, + {value: 0x267f, lo: 0xa2, hi: 0xa2}, + {value: 0x2686, lo: 0xa7, hi: 0xa7}, + {value: 0x268d, lo: 0xac, hi: 0xac}, + {value: 0x266a, lo: 0xb9, hi: 0xb9}, + // Block 0x26, offset 0x106 + {value: 0x0000, lo: 0x01}, + {value: 0x812d, lo: 0x86, hi: 0x86}, + // Block 0x27, offset 0x108 + {value: 0x0000, lo: 0x05}, + {value: 0xa000, lo: 0xa5, hi: 0xa5}, + {value: 0x2d21, lo: 0xa6, hi: 0xa6}, + {value: 0x9900, lo: 0xae, hi: 0xae}, + {value: 0x8102, lo: 0xb7, hi: 0xb7}, + {value: 0x8104, lo: 0xb9, hi: 0xba}, + // Block 0x28, offset 0x10e + {value: 0x0000, lo: 0x01}, + {value: 0x812d, lo: 0x8d, hi: 0x8d}, + // Block 0x29, offset 0x110 + {value: 0x0000, lo: 0x01}, + {value: 0x030f, lo: 0xbc, hi: 0xbc}, + // Block 0x2a, offset 0x112 + {value: 0x0000, lo: 0x01}, + {value: 0xa000, lo: 0x80, hi: 0x92}, + // Block 0x2b, offset 0x114 + {value: 0x0000, lo: 0x01}, + {value: 0xb900, lo: 0xa1, hi: 0xb5}, + // Block 0x2c, offset 0x116 + {value: 0x0000, lo: 0x01}, + {value: 0x9900, lo: 0xa8, hi: 0xbf}, + // Block 0x2d, offset 0x118 + {value: 0x0000, lo: 0x01}, + {value: 0x9900, lo: 0x80, hi: 0x82}, + // Block 0x2e, offset 0x11a + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0x9d, hi: 0x9f}, + // Block 0x2f, offset 0x11c + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0x94, hi: 0x94}, + {value: 0x8104, lo: 0xb4, hi: 0xb4}, + // Block 0x30, offset 0x11f + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0x92, hi: 0x92}, + {value: 0x8132, lo: 0x9d, hi: 0x9d}, + // Block 0x31, offset 0x122 + {value: 0x0000, lo: 0x01}, + {value: 0x8131, lo: 0xa9, hi: 0xa9}, + // Block 0x32, offset 0x124 + {value: 0x0004, lo: 0x02}, + {value: 0x812e, lo: 0xb9, hi: 0xba}, + {value: 0x812d, lo: 0xbb, hi: 0xbb}, + // Block 0x33, offset 0x127 + {value: 0x0000, lo: 0x02}, + {value: 0x8132, lo: 0x97, hi: 0x97}, + {value: 0x812d, lo: 0x98, hi: 0x98}, + // Block 0x34, offset 0x12a + {value: 0x0000, lo: 0x03}, + {value: 0x8104, lo: 0xa0, hi: 0xa0}, + {value: 0x8132, lo: 0xb5, hi: 0xbc}, + {value: 0x812d, lo: 0xbf, hi: 0xbf}, + // Block 0x35, offset 0x12e + {value: 0x0000, lo: 0x04}, + {value: 0x8132, lo: 0xb0, hi: 0xb4}, + {value: 0x812d, lo: 0xb5, hi: 0xba}, + {value: 0x8132, lo: 0xbb, hi: 0xbc}, + {value: 0x812d, lo: 0xbd, hi: 0xbd}, + // Block 0x36, offset 0x133 + {value: 0x0000, lo: 0x08}, + {value: 0x2d69, lo: 0x80, hi: 0x80}, + {value: 0x2d71, lo: 0x81, hi: 0x81}, + {value: 0xa000, lo: 0x82, hi: 0x82}, + {value: 0x2d79, lo: 0x83, hi: 0x83}, + {value: 0x8104, lo: 0x84, hi: 0x84}, + {value: 0x8132, lo: 0xab, hi: 0xab}, + {value: 0x812d, lo: 0xac, hi: 0xac}, + {value: 0x8132, lo: 0xad, hi: 0xb3}, + // Block 0x37, offset 0x13c + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0xaa, hi: 0xab}, + // Block 0x38, offset 0x13e + {value: 0x0000, lo: 0x02}, + {value: 0x8102, lo: 0xa6, hi: 0xa6}, + {value: 0x8104, lo: 0xb2, hi: 0xb3}, + // Block 0x39, offset 0x141 + {value: 0x0000, lo: 0x01}, + {value: 0x8102, lo: 0xb7, hi: 0xb7}, + // Block 0x3a, offset 0x143 + {value: 0x0000, lo: 0x0a}, + {value: 0x8132, lo: 0x90, hi: 0x92}, + {value: 0x8101, lo: 0x94, hi: 0x94}, + {value: 0x812d, lo: 0x95, hi: 0x99}, + {value: 0x8132, lo: 0x9a, hi: 0x9b}, + {value: 0x812d, lo: 0x9c, hi: 0x9f}, + {value: 0x8132, lo: 0xa0, hi: 0xa0}, + {value: 0x8101, lo: 0xa2, hi: 0xa8}, + {value: 0x812d, lo: 0xad, hi: 0xad}, + {value: 0x8132, lo: 0xb4, hi: 0xb4}, + {value: 0x8132, lo: 0xb8, hi: 0xb9}, + // Block 0x3b, offset 0x14e + {value: 0x0002, lo: 0x0a}, + {value: 0x0043, lo: 0xac, hi: 0xac}, + {value: 0x00d1, lo: 0xad, hi: 0xad}, + {value: 0x0045, lo: 0xae, hi: 0xae}, + {value: 0x0049, lo: 0xb0, hi: 0xb1}, + {value: 0x00e6, lo: 0xb2, hi: 0xb2}, + {value: 0x004f, lo: 0xb3, hi: 0xba}, + {value: 0x005f, lo: 0xbc, hi: 0xbc}, + {value: 0x00ef, lo: 0xbd, hi: 0xbd}, + {value: 0x0061, lo: 0xbe, hi: 0xbe}, + {value: 0x0065, lo: 0xbf, hi: 0xbf}, + // Block 0x3c, offset 0x159 + {value: 0x0000, lo: 0x0d}, + {value: 0x0001, lo: 0x80, hi: 0x8a}, + {value: 0x043b, lo: 0x91, hi: 0x91}, + {value: 0x429e, lo: 0x97, hi: 0x97}, + {value: 0x001d, lo: 0xa4, hi: 0xa4}, + {value: 0x1873, lo: 0xa5, hi: 0xa5}, + {value: 0x1b5f, lo: 0xa6, hi: 0xa6}, + {value: 0x0001, lo: 0xaf, hi: 0xaf}, + {value: 0x2694, lo: 0xb3, hi: 0xb3}, + {value: 0x2801, lo: 0xb4, hi: 0xb4}, + {value: 0x269b, lo: 0xb6, hi: 0xb6}, + {value: 0x280b, lo: 0xb7, hi: 0xb7}, + {value: 0x186d, lo: 0xbc, hi: 0xbc}, + {value: 0x426c, lo: 0xbe, hi: 0xbe}, + // Block 0x3d, offset 0x167 + {value: 0x0002, lo: 0x0d}, + {value: 0x1933, lo: 0x87, hi: 0x87}, + {value: 0x1930, lo: 0x88, hi: 0x88}, + {value: 0x1870, lo: 0x89, hi: 0x89}, + {value: 0x2991, lo: 0x97, hi: 0x97}, + {value: 0x0001, lo: 0x9f, hi: 0x9f}, + {value: 0x0021, lo: 0xb0, hi: 0xb0}, + {value: 0x0093, lo: 0xb1, hi: 0xb1}, + {value: 0x0029, lo: 0xb4, hi: 0xb9}, + {value: 0x0017, lo: 0xba, hi: 0xba}, + {value: 0x0467, lo: 0xbb, hi: 0xbb}, + {value: 0x003b, lo: 0xbc, hi: 0xbc}, + {value: 0x0011, lo: 0xbd, hi: 0xbe}, + {value: 0x009d, lo: 0xbf, hi: 0xbf}, + // Block 0x3e, offset 0x175 + {value: 0x0002, lo: 0x0f}, + {value: 0x0021, lo: 0x80, hi: 0x89}, + {value: 0x0017, lo: 0x8a, hi: 0x8a}, + {value: 0x0467, lo: 0x8b, hi: 0x8b}, + {value: 0x003b, lo: 0x8c, hi: 0x8c}, + {value: 0x0011, lo: 0x8d, hi: 0x8e}, + {value: 0x0083, lo: 0x90, hi: 0x90}, + {value: 0x008b, lo: 0x91, hi: 0x91}, + {value: 0x009f, lo: 0x92, hi: 0x92}, + {value: 0x00b1, lo: 0x93, hi: 0x93}, + {value: 0x0104, lo: 0x94, hi: 0x94}, + {value: 0x0091, lo: 0x95, hi: 0x95}, + {value: 0x0097, lo: 0x96, hi: 0x99}, + {value: 0x00a1, lo: 0x9a, hi: 0x9a}, + {value: 0x00a7, lo: 0x9b, hi: 0x9c}, + {value: 0x199c, lo: 0xa8, hi: 0xa8}, + // Block 0x3f, offset 0x185 + {value: 0x0000, lo: 0x0d}, + {value: 0x8132, lo: 0x90, hi: 0x91}, + {value: 0x8101, lo: 0x92, hi: 0x93}, + {value: 0x8132, lo: 0x94, hi: 0x97}, + {value: 0x8101, lo: 0x98, hi: 0x9a}, + {value: 0x8132, lo: 0x9b, hi: 0x9c}, + {value: 0x8132, lo: 0xa1, hi: 0xa1}, + {value: 0x8101, lo: 0xa5, hi: 0xa6}, + {value: 0x8132, lo: 0xa7, hi: 0xa7}, + {value: 0x812d, lo: 0xa8, hi: 0xa8}, + {value: 0x8132, lo: 0xa9, hi: 0xa9}, + {value: 0x8101, lo: 0xaa, hi: 0xab}, + {value: 0x812d, lo: 0xac, hi: 0xaf}, + {value: 0x8132, lo: 0xb0, hi: 0xb0}, + // Block 0x40, offset 0x193 + {value: 0x0007, lo: 0x06}, + {value: 0x2183, lo: 0x89, hi: 0x89}, + {value: 0xa000, lo: 0x90, hi: 0x90}, + {value: 0xa000, lo: 0x92, hi: 0x92}, + {value: 0xa000, lo: 0x94, hi: 0x94}, + {value: 0x3bbc, lo: 0x9a, hi: 0x9b}, + {value: 0x3bca, lo: 0xae, hi: 0xae}, + // Block 0x41, offset 0x19a + {value: 0x000e, lo: 0x05}, + {value: 0x3bd1, lo: 0x8d, hi: 0x8e}, + {value: 0x3bd8, lo: 0x8f, hi: 0x8f}, + {value: 0xa000, lo: 0x90, hi: 0x90}, + {value: 0xa000, lo: 0x92, hi: 0x92}, + {value: 0xa000, lo: 0x94, hi: 0x94}, + // Block 0x42, offset 0x1a0 + {value: 0x0173, lo: 0x0e}, + {value: 0xa000, lo: 0x83, hi: 0x83}, + {value: 0x3be6, lo: 0x84, hi: 0x84}, + {value: 0xa000, lo: 0x88, hi: 0x88}, + {value: 0x3bed, lo: 0x89, hi: 0x89}, + {value: 0xa000, lo: 0x8b, hi: 0x8b}, + {value: 0x3bf4, lo: 0x8c, hi: 0x8c}, + {value: 0xa000, lo: 0xa3, hi: 0xa3}, + {value: 0x3bfb, lo: 0xa4, hi: 0xa4}, + {value: 0xa000, lo: 0xa5, hi: 0xa5}, + {value: 0x3c02, lo: 0xa6, hi: 0xa6}, + {value: 0x26a2, lo: 0xac, hi: 0xad}, + {value: 0x26a9, lo: 0xaf, hi: 0xaf}, + {value: 0x281f, lo: 0xb0, hi: 0xb0}, + {value: 0xa000, lo: 0xbc, hi: 0xbc}, + // Block 0x43, offset 0x1af + {value: 0x0007, lo: 0x03}, + {value: 0x3c6b, lo: 0xa0, hi: 0xa1}, + {value: 0x3c95, lo: 0xa2, hi: 0xa3}, + {value: 0x3cbf, lo: 0xaa, hi: 0xad}, + // Block 0x44, offset 0x1b3 + {value: 0x0004, lo: 0x01}, + {value: 0x048b, lo: 0xa9, hi: 0xaa}, + // Block 0x45, offset 0x1b5 + {value: 0x0002, lo: 0x03}, + {value: 0x0057, lo: 0x80, hi: 0x8f}, + {value: 0x0083, lo: 0x90, hi: 0xa9}, + {value: 0x0021, lo: 0xaa, hi: 0xaa}, + // Block 0x46, offset 0x1b9 + {value: 0x0000, lo: 0x01}, + {value: 0x299e, lo: 0x8c, hi: 0x8c}, + // Block 0x47, offset 0x1bb + {value: 0x0266, lo: 0x02}, + {value: 0x1b8f, lo: 0xb4, hi: 0xb4}, + {value: 0x192d, lo: 0xb5, hi: 0xb6}, + // Block 0x48, offset 0x1be + {value: 0x0000, lo: 0x01}, + {value: 0x44e0, lo: 0x9c, hi: 0x9c}, + // Block 0x49, offset 0x1c0 + {value: 0x0000, lo: 0x02}, + {value: 0x0095, lo: 0xbc, hi: 0xbc}, + {value: 0x006d, lo: 0xbd, hi: 0xbd}, + // Block 0x4a, offset 0x1c3 + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0xaf, hi: 0xb1}, + // Block 0x4b, offset 0x1c5 + {value: 0x0000, lo: 0x02}, + {value: 0x047f, lo: 0xaf, hi: 0xaf}, + {value: 0x8104, lo: 0xbf, hi: 0xbf}, + // Block 0x4c, offset 0x1c8 + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0xa0, hi: 0xbf}, + // Block 0x4d, offset 0x1ca + {value: 0x0000, lo: 0x01}, + {value: 0x0dc3, lo: 0x9f, hi: 0x9f}, + // Block 0x4e, offset 0x1cc + {value: 0x0000, lo: 0x01}, + {value: 0x162f, lo: 0xb3, hi: 0xb3}, + // Block 0x4f, offset 0x1ce + {value: 0x0004, lo: 0x0b}, + {value: 0x1597, lo: 0x80, hi: 0x82}, + {value: 0x15af, lo: 0x83, hi: 0x83}, + {value: 0x15c7, lo: 0x84, hi: 0x85}, + {value: 0x15d7, lo: 0x86, hi: 0x89}, + {value: 0x15eb, lo: 0x8a, hi: 0x8c}, + {value: 0x15ff, lo: 0x8d, hi: 0x8d}, + {value: 0x1607, lo: 0x8e, hi: 0x8e}, + {value: 0x160f, lo: 0x8f, hi: 0x90}, + {value: 0x161b, lo: 0x91, hi: 0x93}, + {value: 0x162b, lo: 0x94, hi: 0x94}, + {value: 0x1633, lo: 0x95, hi: 0x95}, + // Block 0x50, offset 0x1da + {value: 0x0004, lo: 0x09}, + {value: 0x0001, lo: 0x80, hi: 0x80}, + {value: 0x812c, lo: 0xaa, hi: 0xaa}, + {value: 0x8131, lo: 0xab, hi: 0xab}, + {value: 0x8133, lo: 0xac, hi: 0xac}, + {value: 0x812e, lo: 0xad, hi: 0xad}, + {value: 0x812f, lo: 0xae, hi: 0xae}, + {value: 0x812f, lo: 0xaf, hi: 0xaf}, + {value: 0x04b3, lo: 0xb6, hi: 0xb6}, + {value: 0x0887, lo: 0xb8, hi: 0xba}, + // Block 0x51, offset 0x1e4 + {value: 0x0006, lo: 0x09}, + {value: 0x0313, lo: 0xb1, hi: 0xb1}, + {value: 0x0317, lo: 0xb2, hi: 0xb2}, + {value: 0x4a3e, lo: 0xb3, hi: 0xb3}, + {value: 0x031b, lo: 0xb4, hi: 0xb4}, + {value: 0x4a44, lo: 0xb5, hi: 0xb6}, + {value: 0x031f, lo: 0xb7, hi: 0xb7}, + {value: 0x0323, lo: 0xb8, hi: 0xb8}, + {value: 0x0327, lo: 0xb9, hi: 0xb9}, + {value: 0x4a50, lo: 0xba, hi: 0xbf}, + // Block 0x52, offset 0x1ee + {value: 0x0000, lo: 0x02}, + {value: 0x8132, lo: 0xaf, hi: 0xaf}, + {value: 0x8132, lo: 0xb4, hi: 0xbd}, + // Block 0x53, offset 0x1f1 + {value: 0x0000, lo: 0x03}, + {value: 0x020f, lo: 0x9c, hi: 0x9c}, + {value: 0x0212, lo: 0x9d, hi: 0x9d}, + {value: 0x8132, lo: 0x9e, hi: 0x9f}, + // Block 0x54, offset 0x1f5 + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0xb0, hi: 0xb1}, + // Block 0x55, offset 0x1f7 + {value: 0x0000, lo: 0x01}, + {value: 0x163b, lo: 0xb0, hi: 0xb0}, + // Block 0x56, offset 0x1f9 + {value: 0x000c, lo: 0x01}, + {value: 0x00d7, lo: 0xb8, hi: 0xb9}, + // Block 0x57, offset 0x1fb + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0x86, hi: 0x86}, + // Block 0x58, offset 0x1fd + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0x84, hi: 0x84}, + {value: 0x8132, lo: 0xa0, hi: 0xb1}, + // Block 0x59, offset 0x200 + {value: 0x0000, lo: 0x01}, + {value: 0x812d, lo: 0xab, hi: 0xad}, + // Block 0x5a, offset 0x202 + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0x93, hi: 0x93}, + // Block 0x5b, offset 0x204 + {value: 0x0000, lo: 0x01}, + {value: 0x8102, lo: 0xb3, hi: 0xb3}, + // Block 0x5c, offset 0x206 + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0x80, hi: 0x80}, + // Block 0x5d, offset 0x208 + {value: 0x0000, lo: 0x05}, + {value: 0x8132, lo: 0xb0, hi: 0xb0}, + {value: 0x8132, lo: 0xb2, hi: 0xb3}, + {value: 0x812d, lo: 0xb4, hi: 0xb4}, + {value: 0x8132, lo: 0xb7, hi: 0xb8}, + {value: 0x8132, lo: 0xbe, hi: 0xbf}, + // Block 0x5e, offset 0x20e + {value: 0x0000, lo: 0x02}, + {value: 0x8132, lo: 0x81, hi: 0x81}, + {value: 0x8104, lo: 0xb6, hi: 0xb6}, + // Block 0x5f, offset 0x211 + {value: 0x0008, lo: 0x03}, + {value: 0x1637, lo: 0x9c, hi: 0x9d}, + {value: 0x0125, lo: 0x9e, hi: 0x9e}, + {value: 0x1643, lo: 0x9f, hi: 0x9f}, + // Block 0x60, offset 0x215 + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0xad, hi: 0xad}, + // Block 0x61, offset 0x217 + {value: 0x0000, lo: 0x06}, + {value: 0xe500, lo: 0x80, hi: 0x80}, + {value: 0xc600, lo: 0x81, hi: 0x9b}, + {value: 0xe500, lo: 0x9c, hi: 0x9c}, + {value: 0xc600, lo: 0x9d, hi: 0xb7}, + {value: 0xe500, lo: 0xb8, hi: 0xb8}, + {value: 0xc600, lo: 0xb9, hi: 0xbf}, + // Block 0x62, offset 0x21e + {value: 0x0000, lo: 0x05}, + {value: 0xc600, lo: 0x80, hi: 0x93}, + {value: 0xe500, lo: 0x94, hi: 0x94}, + {value: 0xc600, lo: 0x95, hi: 0xaf}, + {value: 0xe500, lo: 0xb0, hi: 0xb0}, + {value: 0xc600, lo: 0xb1, hi: 0xbf}, + // Block 0x63, offset 0x224 + {value: 0x0000, lo: 0x05}, + {value: 0xc600, lo: 0x80, hi: 0x8b}, + {value: 0xe500, lo: 0x8c, hi: 0x8c}, + {value: 0xc600, lo: 0x8d, hi: 0xa7}, + {value: 0xe500, lo: 0xa8, hi: 0xa8}, + {value: 0xc600, lo: 0xa9, hi: 0xbf}, + // Block 0x64, offset 0x22a + {value: 0x0000, lo: 0x07}, + {value: 0xc600, lo: 0x80, hi: 0x83}, + {value: 0xe500, lo: 0x84, hi: 0x84}, + {value: 0xc600, lo: 0x85, hi: 0x9f}, + {value: 0xe500, lo: 0xa0, hi: 0xa0}, + {value: 0xc600, lo: 0xa1, hi: 0xbb}, + {value: 0xe500, lo: 0xbc, hi: 0xbc}, + {value: 0xc600, lo: 0xbd, hi: 0xbf}, + // Block 0x65, offset 0x232 + {value: 0x0000, lo: 0x05}, + {value: 0xc600, lo: 0x80, hi: 0x97}, + {value: 0xe500, lo: 0x98, hi: 0x98}, + {value: 0xc600, lo: 0x99, hi: 0xb3}, + {value: 0xe500, lo: 0xb4, hi: 0xb4}, + {value: 0xc600, lo: 0xb5, hi: 0xbf}, + // Block 0x66, offset 0x238 + {value: 0x0000, lo: 0x05}, + {value: 0xc600, lo: 0x80, hi: 0x8f}, + {value: 0xe500, lo: 0x90, hi: 0x90}, + {value: 0xc600, lo: 0x91, hi: 0xab}, + {value: 0xe500, lo: 0xac, hi: 0xac}, + {value: 0xc600, lo: 0xad, hi: 0xbf}, + // Block 0x67, offset 0x23e + {value: 0x0000, lo: 0x05}, + {value: 0xc600, lo: 0x80, hi: 0x87}, + {value: 0xe500, lo: 0x88, hi: 0x88}, + {value: 0xc600, lo: 0x89, hi: 0xa3}, + {value: 0xe500, lo: 0xa4, hi: 0xa4}, + {value: 0xc600, lo: 0xa5, hi: 0xbf}, + // Block 0x68, offset 0x244 + {value: 0x0000, lo: 0x03}, + {value: 0xc600, lo: 0x80, hi: 0x87}, + {value: 0xe500, lo: 0x88, hi: 0x88}, + {value: 0xc600, lo: 0x89, hi: 0xa3}, + // Block 0x69, offset 0x248 + {value: 0x0002, lo: 0x01}, + {value: 0x0003, lo: 0x81, hi: 0xbf}, + // Block 0x6a, offset 0x24a + {value: 0x0000, lo: 0x01}, + {value: 0x812d, lo: 0xbd, hi: 0xbd}, + // Block 0x6b, offset 0x24c + {value: 0x0000, lo: 0x01}, + {value: 0x812d, lo: 0xa0, hi: 0xa0}, + // Block 0x6c, offset 0x24e + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0xb6, hi: 0xba}, + // Block 0x6d, offset 0x250 + {value: 0x002c, lo: 0x05}, + {value: 0x812d, lo: 0x8d, hi: 0x8d}, + {value: 0x8132, lo: 0x8f, hi: 0x8f}, + {value: 0x8132, lo: 0xb8, hi: 0xb8}, + {value: 0x8101, lo: 0xb9, hi: 0xba}, + {value: 0x8104, lo: 0xbf, hi: 0xbf}, + // Block 0x6e, offset 0x256 + {value: 0x0000, lo: 0x02}, + {value: 0x8132, lo: 0xa5, hi: 0xa5}, + {value: 0x812d, lo: 0xa6, hi: 0xa6}, + // Block 0x6f, offset 0x259 + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0xa4, hi: 0xa7}, + // Block 0x70, offset 0x25b + {value: 0x0000, lo: 0x05}, + {value: 0x812d, lo: 0x86, hi: 0x87}, + {value: 0x8132, lo: 0x88, hi: 0x8a}, + {value: 0x812d, lo: 0x8b, hi: 0x8b}, + {value: 0x8132, lo: 0x8c, hi: 0x8c}, + {value: 0x812d, lo: 0x8d, hi: 0x90}, + // Block 0x71, offset 0x261 + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0x86, hi: 0x86}, + {value: 0x8104, lo: 0xbf, hi: 0xbf}, + // Block 0x72, offset 0x264 + {value: 0x17fe, lo: 0x07}, + {value: 0xa000, lo: 0x99, hi: 0x99}, + {value: 0x423b, lo: 0x9a, hi: 0x9a}, + {value: 0xa000, lo: 0x9b, hi: 0x9b}, + {value: 0x4245, lo: 0x9c, hi: 0x9c}, + {value: 0xa000, lo: 0xa5, hi: 0xa5}, + {value: 0x424f, lo: 0xab, hi: 0xab}, + {value: 0x8104, lo: 0xb9, hi: 0xba}, + // Block 0x73, offset 0x26c + {value: 0x0000, lo: 0x06}, + {value: 0x8132, lo: 0x80, hi: 0x82}, + {value: 0x9900, lo: 0xa7, hi: 0xa7}, + {value: 0x2d81, lo: 0xae, hi: 0xae}, + {value: 0x2d8b, lo: 0xaf, hi: 0xaf}, + {value: 0xa000, lo: 0xb1, hi: 0xb2}, + {value: 0x8104, lo: 0xb3, hi: 0xb4}, + // Block 0x74, offset 0x273 + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0x80, hi: 0x80}, + {value: 0x8102, lo: 0x8a, hi: 0x8a}, + // Block 0x75, offset 0x276 + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0xb5, hi: 0xb5}, + {value: 0x8102, lo: 0xb6, hi: 0xb6}, + // Block 0x76, offset 0x279 + {value: 0x0002, lo: 0x01}, + {value: 0x8102, lo: 0xa9, hi: 0xaa}, + // Block 0x77, offset 0x27b + {value: 0x0000, lo: 0x02}, + {value: 0x8102, lo: 0xbb, hi: 0xbc}, + {value: 0x9900, lo: 0xbe, hi: 0xbe}, + // Block 0x78, offset 0x27e + {value: 0x0000, lo: 0x07}, + {value: 0xa000, lo: 0x87, hi: 0x87}, + {value: 0x2d95, lo: 0x8b, hi: 0x8b}, + {value: 0x2d9f, lo: 0x8c, hi: 0x8c}, + {value: 0x8104, lo: 0x8d, hi: 0x8d}, + {value: 0x9900, lo: 0x97, hi: 0x97}, + {value: 0x8132, lo: 0xa6, hi: 0xac}, + {value: 0x8132, lo: 0xb0, hi: 0xb4}, + // Block 0x79, offset 0x286 + {value: 0x0000, lo: 0x03}, + {value: 0x8104, lo: 0x82, hi: 0x82}, + {value: 0x8102, lo: 0x86, hi: 0x86}, + {value: 0x8132, lo: 0x9e, hi: 0x9e}, + // Block 0x7a, offset 0x28a + {value: 0x6b57, lo: 0x06}, + {value: 0x9900, lo: 0xb0, hi: 0xb0}, + {value: 0xa000, lo: 0xb9, hi: 0xb9}, + {value: 0x9900, lo: 0xba, hi: 0xba}, + {value: 0x2db3, lo: 0xbb, hi: 0xbb}, + {value: 0x2da9, lo: 0xbc, hi: 0xbd}, + {value: 0x2dbd, lo: 0xbe, hi: 0xbe}, + // Block 0x7b, offset 0x291 + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0x82, hi: 0x82}, + {value: 0x8102, lo: 0x83, hi: 0x83}, + // Block 0x7c, offset 0x294 + {value: 0x0000, lo: 0x05}, + {value: 0x9900, lo: 0xaf, hi: 0xaf}, + {value: 0xa000, lo: 0xb8, hi: 0xb9}, + {value: 0x2dc7, lo: 0xba, hi: 0xba}, + {value: 0x2dd1, lo: 0xbb, hi: 0xbb}, + {value: 0x8104, lo: 0xbf, hi: 0xbf}, + // Block 0x7d, offset 0x29a + {value: 0x0000, lo: 0x01}, + {value: 0x8102, lo: 0x80, hi: 0x80}, + // Block 0x7e, offset 0x29c + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0xbf, hi: 0xbf}, + // Block 0x7f, offset 0x29e + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0xb6, hi: 0xb6}, + {value: 0x8102, lo: 0xb7, hi: 0xb7}, + // Block 0x80, offset 0x2a1 + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0xab, hi: 0xab}, + // Block 0x81, offset 0x2a3 + {value: 0x0000, lo: 0x02}, + {value: 0x8104, lo: 0xb9, hi: 0xb9}, + {value: 0x8102, lo: 0xba, hi: 0xba}, + // Block 0x82, offset 0x2a6 + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0xa0, hi: 0xa0}, + // Block 0x83, offset 0x2a8 + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0xb4, hi: 0xb4}, + // Block 0x84, offset 0x2aa + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0x87, hi: 0x87}, + // Block 0x85, offset 0x2ac + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0x99, hi: 0x99}, + // Block 0x86, offset 0x2ae + {value: 0x0000, lo: 0x02}, + {value: 0x8102, lo: 0x82, hi: 0x82}, + {value: 0x8104, lo: 0x84, hi: 0x85}, + // Block 0x87, offset 0x2b1 + {value: 0x0000, lo: 0x01}, + {value: 0x8104, lo: 0x97, hi: 0x97}, + // Block 0x88, offset 0x2b3 + {value: 0x0000, lo: 0x01}, + {value: 0x8101, lo: 0xb0, hi: 0xb4}, + // Block 0x89, offset 0x2b5 + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0xb0, hi: 0xb6}, + // Block 0x8a, offset 0x2b7 + {value: 0x0000, lo: 0x01}, + {value: 0x8101, lo: 0x9e, hi: 0x9e}, + // Block 0x8b, offset 0x2b9 + {value: 0x0000, lo: 0x0c}, + {value: 0x45cf, lo: 0x9e, hi: 0x9e}, + {value: 0x45d9, lo: 0x9f, hi: 0x9f}, + {value: 0x460d, lo: 0xa0, hi: 0xa0}, + {value: 0x461b, lo: 0xa1, hi: 0xa1}, + {value: 0x4629, lo: 0xa2, hi: 0xa2}, + {value: 0x4637, lo: 0xa3, hi: 0xa3}, + {value: 0x4645, lo: 0xa4, hi: 0xa4}, + {value: 0x812b, lo: 0xa5, hi: 0xa6}, + {value: 0x8101, lo: 0xa7, hi: 0xa9}, + {value: 0x8130, lo: 0xad, hi: 0xad}, + {value: 0x812b, lo: 0xae, hi: 0xb2}, + {value: 0x812d, lo: 0xbb, hi: 0xbf}, + // Block 0x8c, offset 0x2c6 + {value: 0x0000, lo: 0x09}, + {value: 0x812d, lo: 0x80, hi: 0x82}, + {value: 0x8132, lo: 0x85, hi: 0x89}, + {value: 0x812d, lo: 0x8a, hi: 0x8b}, + {value: 0x8132, lo: 0xaa, hi: 0xad}, + {value: 0x45e3, lo: 0xbb, hi: 0xbb}, + {value: 0x45ed, lo: 0xbc, hi: 0xbc}, + {value: 0x4653, lo: 0xbd, hi: 0xbd}, + {value: 0x466f, lo: 0xbe, hi: 0xbe}, + {value: 0x4661, lo: 0xbf, hi: 0xbf}, + // Block 0x8d, offset 0x2d0 + {value: 0x0000, lo: 0x01}, + {value: 0x467d, lo: 0x80, hi: 0x80}, + // Block 0x8e, offset 0x2d2 + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0x82, hi: 0x84}, + // Block 0x8f, offset 0x2d4 + {value: 0x0002, lo: 0x03}, + {value: 0x0043, lo: 0x80, hi: 0x99}, + {value: 0x0083, lo: 0x9a, hi: 0xb3}, + {value: 0x0043, lo: 0xb4, hi: 0xbf}, + // Block 0x90, offset 0x2d8 + {value: 0x0002, lo: 0x04}, + {value: 0x005b, lo: 0x80, hi: 0x8d}, + {value: 0x0083, lo: 0x8e, hi: 0x94}, + {value: 0x0093, lo: 0x96, hi: 0xa7}, + {value: 0x0043, lo: 0xa8, hi: 0xbf}, + // Block 0x91, offset 0x2dd + {value: 0x0002, lo: 0x0b}, + {value: 0x0073, lo: 0x80, hi: 0x81}, + {value: 0x0083, lo: 0x82, hi: 0x9b}, + {value: 0x0043, lo: 0x9c, hi: 0x9c}, + {value: 0x0047, lo: 0x9e, hi: 0x9f}, + {value: 0x004f, lo: 0xa2, hi: 0xa2}, + {value: 0x0055, lo: 0xa5, hi: 0xa6}, + {value: 0x005d, lo: 0xa9, hi: 0xac}, + {value: 0x0067, lo: 0xae, hi: 0xb5}, + {value: 0x0083, lo: 0xb6, hi: 0xb9}, + {value: 0x008d, lo: 0xbb, hi: 0xbb}, + {value: 0x0091, lo: 0xbd, hi: 0xbf}, + // Block 0x92, offset 0x2e9 + {value: 0x0002, lo: 0x04}, + {value: 0x0097, lo: 0x80, hi: 0x83}, + {value: 0x00a1, lo: 0x85, hi: 0x8f}, + {value: 0x0043, lo: 0x90, hi: 0xa9}, + {value: 0x0083, lo: 0xaa, hi: 0xbf}, + // Block 0x93, offset 0x2ee + {value: 0x0002, lo: 0x08}, + {value: 0x00af, lo: 0x80, hi: 0x83}, + {value: 0x0043, lo: 0x84, hi: 0x85}, + {value: 0x0049, lo: 0x87, hi: 0x8a}, + {value: 0x0055, lo: 0x8d, hi: 0x94}, + {value: 0x0067, lo: 0x96, hi: 0x9c}, + {value: 0x0083, lo: 0x9e, hi: 0xb7}, + {value: 0x0043, lo: 0xb8, hi: 0xb9}, + {value: 0x0049, lo: 0xbb, hi: 0xbe}, + // Block 0x94, offset 0x2f7 + {value: 0x0002, lo: 0x05}, + {value: 0x0053, lo: 0x80, hi: 0x84}, + {value: 0x005f, lo: 0x86, hi: 0x86}, + {value: 0x0067, lo: 0x8a, hi: 0x90}, + {value: 0x0083, lo: 0x92, hi: 0xab}, + {value: 0x0043, lo: 0xac, hi: 0xbf}, + // Block 0x95, offset 0x2fd + {value: 0x0002, lo: 0x04}, + {value: 0x006b, lo: 0x80, hi: 0x85}, + {value: 0x0083, lo: 0x86, hi: 0x9f}, + {value: 0x0043, lo: 0xa0, hi: 0xb9}, + {value: 0x0083, lo: 0xba, hi: 0xbf}, + // Block 0x96, offset 0x302 + {value: 0x0002, lo: 0x03}, + {value: 0x008f, lo: 0x80, hi: 0x93}, + {value: 0x0043, lo: 0x94, hi: 0xad}, + {value: 0x0083, lo: 0xae, hi: 0xbf}, + // Block 0x97, offset 0x306 + {value: 0x0002, lo: 0x04}, + {value: 0x00a7, lo: 0x80, hi: 0x87}, + {value: 0x0043, lo: 0x88, hi: 0xa1}, + {value: 0x0083, lo: 0xa2, hi: 0xbb}, + {value: 0x0043, lo: 0xbc, hi: 0xbf}, + // Block 0x98, offset 0x30b + {value: 0x0002, lo: 0x03}, + {value: 0x004b, lo: 0x80, hi: 0x95}, + {value: 0x0083, lo: 0x96, hi: 0xaf}, + {value: 0x0043, lo: 0xb0, hi: 0xbf}, + // Block 0x99, offset 0x30f + {value: 0x0003, lo: 0x0f}, + {value: 0x01b8, lo: 0x80, hi: 0x80}, + {value: 0x045f, lo: 0x81, hi: 0x81}, + {value: 0x01bb, lo: 0x82, hi: 0x9a}, + {value: 0x045b, lo: 0x9b, hi: 0x9b}, + {value: 0x01c7, lo: 0x9c, hi: 0x9c}, + {value: 0x01d0, lo: 0x9d, hi: 0x9d}, + {value: 0x01d6, lo: 0x9e, hi: 0x9e}, + {value: 0x01fa, lo: 0x9f, hi: 0x9f}, + {value: 0x01eb, lo: 0xa0, hi: 0xa0}, + {value: 0x01e8, lo: 0xa1, hi: 0xa1}, + {value: 0x0173, lo: 0xa2, hi: 0xb2}, + {value: 0x0188, lo: 0xb3, hi: 0xb3}, + {value: 0x01a6, lo: 0xb4, hi: 0xba}, + {value: 0x045f, lo: 0xbb, hi: 0xbb}, + {value: 0x01bb, lo: 0xbc, hi: 0xbf}, + // Block 0x9a, offset 0x31f + {value: 0x0003, lo: 0x0d}, + {value: 0x01c7, lo: 0x80, hi: 0x94}, + {value: 0x045b, lo: 0x95, hi: 0x95}, + {value: 0x01c7, lo: 0x96, hi: 0x96}, + {value: 0x01d0, lo: 0x97, hi: 0x97}, + {value: 0x01d6, lo: 0x98, hi: 0x98}, + {value: 0x01fa, lo: 0x99, hi: 0x99}, + {value: 0x01eb, lo: 0x9a, hi: 0x9a}, + {value: 0x01e8, lo: 0x9b, hi: 0x9b}, + {value: 0x0173, lo: 0x9c, hi: 0xac}, + {value: 0x0188, lo: 0xad, hi: 0xad}, + {value: 0x01a6, lo: 0xae, hi: 0xb4}, + {value: 0x045f, lo: 0xb5, hi: 0xb5}, + {value: 0x01bb, lo: 0xb6, hi: 0xbf}, + // Block 0x9b, offset 0x32d + {value: 0x0003, lo: 0x0d}, + {value: 0x01d9, lo: 0x80, hi: 0x8e}, + {value: 0x045b, lo: 0x8f, hi: 0x8f}, + {value: 0x01c7, lo: 0x90, hi: 0x90}, + {value: 0x01d0, lo: 0x91, hi: 0x91}, + {value: 0x01d6, lo: 0x92, hi: 0x92}, + {value: 0x01fa, lo: 0x93, hi: 0x93}, + {value: 0x01eb, lo: 0x94, hi: 0x94}, + {value: 0x01e8, lo: 0x95, hi: 0x95}, + {value: 0x0173, lo: 0x96, hi: 0xa6}, + {value: 0x0188, lo: 0xa7, hi: 0xa7}, + {value: 0x01a6, lo: 0xa8, hi: 0xae}, + {value: 0x045f, lo: 0xaf, hi: 0xaf}, + {value: 0x01bb, lo: 0xb0, hi: 0xbf}, + // Block 0x9c, offset 0x33b + {value: 0x0003, lo: 0x0d}, + {value: 0x01eb, lo: 0x80, hi: 0x88}, + {value: 0x045b, lo: 0x89, hi: 0x89}, + {value: 0x01c7, lo: 0x8a, hi: 0x8a}, + {value: 0x01d0, lo: 0x8b, hi: 0x8b}, + {value: 0x01d6, lo: 0x8c, hi: 0x8c}, + {value: 0x01fa, lo: 0x8d, hi: 0x8d}, + {value: 0x01eb, lo: 0x8e, hi: 0x8e}, + {value: 0x01e8, lo: 0x8f, hi: 0x8f}, + {value: 0x0173, lo: 0x90, hi: 0xa0}, + {value: 0x0188, lo: 0xa1, hi: 0xa1}, + {value: 0x01a6, lo: 0xa2, hi: 0xa8}, + {value: 0x045f, lo: 0xa9, hi: 0xa9}, + {value: 0x01bb, lo: 0xaa, hi: 0xbf}, + // Block 0x9d, offset 0x349 + {value: 0x0000, lo: 0x05}, + {value: 0x8132, lo: 0x80, hi: 0x86}, + {value: 0x8132, lo: 0x88, hi: 0x98}, + {value: 0x8132, lo: 0x9b, hi: 0xa1}, + {value: 0x8132, lo: 0xa3, hi: 0xa4}, + {value: 0x8132, lo: 0xa6, hi: 0xaa}, + // Block 0x9e, offset 0x34f + {value: 0x0000, lo: 0x01}, + {value: 0x8132, lo: 0xac, hi: 0xaf}, + // Block 0x9f, offset 0x351 + {value: 0x0000, lo: 0x01}, + {value: 0x812d, lo: 0x90, hi: 0x96}, + // Block 0xa0, offset 0x353 + {value: 0x0000, lo: 0x02}, + {value: 0x8132, lo: 0x84, hi: 0x89}, + {value: 0x8102, lo: 0x8a, hi: 0x8a}, + // Block 0xa1, offset 0x356 + {value: 0x0002, lo: 0x0a}, + {value: 0x0063, lo: 0x80, hi: 0x89}, + {value: 0x1951, lo: 0x8a, hi: 0x8a}, + {value: 0x1984, lo: 0x8b, hi: 0x8b}, + {value: 0x199f, lo: 0x8c, hi: 0x8c}, + {value: 0x19a5, lo: 0x8d, hi: 0x8d}, + {value: 0x1bc3, lo: 0x8e, hi: 0x8e}, + {value: 0x19b1, lo: 0x8f, hi: 0x8f}, + {value: 0x197b, lo: 0xaa, hi: 0xaa}, + {value: 0x197e, lo: 0xab, hi: 0xab}, + {value: 0x1981, lo: 0xac, hi: 0xac}, + // Block 0xa2, offset 0x361 + {value: 0x0000, lo: 0x01}, + {value: 0x193f, lo: 0x90, hi: 0x90}, + // Block 0xa3, offset 0x363 + {value: 0x0028, lo: 0x09}, + {value: 0x2865, lo: 0x80, hi: 0x80}, + {value: 0x2829, lo: 0x81, hi: 0x81}, + {value: 0x2833, lo: 0x82, hi: 0x82}, + {value: 0x2847, lo: 0x83, hi: 0x84}, + {value: 0x2851, lo: 0x85, hi: 0x86}, + {value: 0x283d, lo: 0x87, hi: 0x87}, + {value: 0x285b, lo: 0x88, hi: 0x88}, + {value: 0x0b6f, lo: 0x90, hi: 0x90}, + {value: 0x08e7, lo: 0x91, hi: 0x91}, +} + +// recompMap: 7520 bytes (entries only) +var recompMap map[uint32]rune +var recompMapOnce sync.Once + +const recompMapPacked = "" + + "\x00A\x03\x00\x00\x00\x00\xc0" + // 0x00410300: 0x000000C0 + "\x00A\x03\x01\x00\x00\x00\xc1" + // 0x00410301: 0x000000C1 + "\x00A\x03\x02\x00\x00\x00\xc2" + // 0x00410302: 0x000000C2 + "\x00A\x03\x03\x00\x00\x00\xc3" + // 0x00410303: 0x000000C3 + "\x00A\x03\b\x00\x00\x00\xc4" + // 0x00410308: 0x000000C4 + "\x00A\x03\n\x00\x00\x00\xc5" + // 0x0041030A: 0x000000C5 + "\x00C\x03'\x00\x00\x00\xc7" + // 0x00430327: 0x000000C7 + "\x00E\x03\x00\x00\x00\x00\xc8" + // 0x00450300: 0x000000C8 + "\x00E\x03\x01\x00\x00\x00\xc9" + // 0x00450301: 0x000000C9 + "\x00E\x03\x02\x00\x00\x00\xca" + // 0x00450302: 0x000000CA + "\x00E\x03\b\x00\x00\x00\xcb" + // 0x00450308: 0x000000CB + "\x00I\x03\x00\x00\x00\x00\xcc" + // 0x00490300: 0x000000CC + "\x00I\x03\x01\x00\x00\x00\xcd" + // 0x00490301: 0x000000CD + "\x00I\x03\x02\x00\x00\x00\xce" + // 0x00490302: 0x000000CE + "\x00I\x03\b\x00\x00\x00\xcf" + // 0x00490308: 0x000000CF + "\x00N\x03\x03\x00\x00\x00\xd1" + // 0x004E0303: 0x000000D1 + "\x00O\x03\x00\x00\x00\x00\xd2" + // 0x004F0300: 0x000000D2 + "\x00O\x03\x01\x00\x00\x00\xd3" + // 0x004F0301: 0x000000D3 + "\x00O\x03\x02\x00\x00\x00\xd4" + // 0x004F0302: 0x000000D4 + "\x00O\x03\x03\x00\x00\x00\xd5" + // 0x004F0303: 0x000000D5 + "\x00O\x03\b\x00\x00\x00\xd6" + // 0x004F0308: 0x000000D6 + "\x00U\x03\x00\x00\x00\x00\xd9" + // 0x00550300: 0x000000D9 + "\x00U\x03\x01\x00\x00\x00\xda" + // 0x00550301: 0x000000DA + "\x00U\x03\x02\x00\x00\x00\xdb" + // 0x00550302: 0x000000DB + "\x00U\x03\b\x00\x00\x00\xdc" + // 0x00550308: 0x000000DC + "\x00Y\x03\x01\x00\x00\x00\xdd" + // 0x00590301: 0x000000DD + "\x00a\x03\x00\x00\x00\x00\xe0" + // 0x00610300: 0x000000E0 + "\x00a\x03\x01\x00\x00\x00\xe1" + // 0x00610301: 0x000000E1 + "\x00a\x03\x02\x00\x00\x00\xe2" + // 0x00610302: 0x000000E2 + "\x00a\x03\x03\x00\x00\x00\xe3" + // 0x00610303: 0x000000E3 + "\x00a\x03\b\x00\x00\x00\xe4" + // 0x00610308: 0x000000E4 + "\x00a\x03\n\x00\x00\x00\xe5" + // 0x0061030A: 0x000000E5 + "\x00c\x03'\x00\x00\x00\xe7" + // 0x00630327: 0x000000E7 + "\x00e\x03\x00\x00\x00\x00\xe8" + // 0x00650300: 0x000000E8 + "\x00e\x03\x01\x00\x00\x00\xe9" + // 0x00650301: 0x000000E9 + "\x00e\x03\x02\x00\x00\x00\xea" + // 0x00650302: 0x000000EA + "\x00e\x03\b\x00\x00\x00\xeb" + // 0x00650308: 0x000000EB + "\x00i\x03\x00\x00\x00\x00\xec" + // 0x00690300: 0x000000EC + "\x00i\x03\x01\x00\x00\x00\xed" + // 0x00690301: 0x000000ED + "\x00i\x03\x02\x00\x00\x00\xee" + // 0x00690302: 0x000000EE + "\x00i\x03\b\x00\x00\x00\xef" + // 0x00690308: 0x000000EF + "\x00n\x03\x03\x00\x00\x00\xf1" + // 0x006E0303: 0x000000F1 + "\x00o\x03\x00\x00\x00\x00\xf2" + // 0x006F0300: 0x000000F2 + "\x00o\x03\x01\x00\x00\x00\xf3" + // 0x006F0301: 0x000000F3 + "\x00o\x03\x02\x00\x00\x00\xf4" + // 0x006F0302: 0x000000F4 + "\x00o\x03\x03\x00\x00\x00\xf5" + // 0x006F0303: 0x000000F5 + "\x00o\x03\b\x00\x00\x00\xf6" + // 0x006F0308: 0x000000F6 + "\x00u\x03\x00\x00\x00\x00\xf9" + // 0x00750300: 0x000000F9 + "\x00u\x03\x01\x00\x00\x00\xfa" + // 0x00750301: 0x000000FA + "\x00u\x03\x02\x00\x00\x00\xfb" + // 0x00750302: 0x000000FB + "\x00u\x03\b\x00\x00\x00\xfc" + // 0x00750308: 0x000000FC + "\x00y\x03\x01\x00\x00\x00\xfd" + // 0x00790301: 0x000000FD + "\x00y\x03\b\x00\x00\x00\xff" + // 0x00790308: 0x000000FF + "\x00A\x03\x04\x00\x00\x01\x00" + // 0x00410304: 0x00000100 + "\x00a\x03\x04\x00\x00\x01\x01" + // 0x00610304: 0x00000101 + "\x00A\x03\x06\x00\x00\x01\x02" + // 0x00410306: 0x00000102 + "\x00a\x03\x06\x00\x00\x01\x03" + // 0x00610306: 0x00000103 + "\x00A\x03(\x00\x00\x01\x04" + // 0x00410328: 0x00000104 + "\x00a\x03(\x00\x00\x01\x05" + // 0x00610328: 0x00000105 + "\x00C\x03\x01\x00\x00\x01\x06" + // 0x00430301: 0x00000106 + "\x00c\x03\x01\x00\x00\x01\a" + // 0x00630301: 0x00000107 + "\x00C\x03\x02\x00\x00\x01\b" + // 0x00430302: 0x00000108 + "\x00c\x03\x02\x00\x00\x01\t" + // 0x00630302: 0x00000109 + "\x00C\x03\a\x00\x00\x01\n" + // 0x00430307: 0x0000010A + "\x00c\x03\a\x00\x00\x01\v" + // 0x00630307: 0x0000010B + "\x00C\x03\f\x00\x00\x01\f" + // 0x0043030C: 0x0000010C + "\x00c\x03\f\x00\x00\x01\r" + // 0x0063030C: 0x0000010D + "\x00D\x03\f\x00\x00\x01\x0e" + // 0x0044030C: 0x0000010E + "\x00d\x03\f\x00\x00\x01\x0f" + // 0x0064030C: 0x0000010F + "\x00E\x03\x04\x00\x00\x01\x12" + // 0x00450304: 0x00000112 + "\x00e\x03\x04\x00\x00\x01\x13" + // 0x00650304: 0x00000113 + "\x00E\x03\x06\x00\x00\x01\x14" + // 0x00450306: 0x00000114 + "\x00e\x03\x06\x00\x00\x01\x15" + // 0x00650306: 0x00000115 + "\x00E\x03\a\x00\x00\x01\x16" + // 0x00450307: 0x00000116 + "\x00e\x03\a\x00\x00\x01\x17" + // 0x00650307: 0x00000117 + "\x00E\x03(\x00\x00\x01\x18" + // 0x00450328: 0x00000118 + "\x00e\x03(\x00\x00\x01\x19" + // 0x00650328: 0x00000119 + "\x00E\x03\f\x00\x00\x01\x1a" + // 0x0045030C: 0x0000011A + "\x00e\x03\f\x00\x00\x01\x1b" + // 0x0065030C: 0x0000011B + "\x00G\x03\x02\x00\x00\x01\x1c" + // 0x00470302: 0x0000011C + "\x00g\x03\x02\x00\x00\x01\x1d" + // 0x00670302: 0x0000011D + "\x00G\x03\x06\x00\x00\x01\x1e" + // 0x00470306: 0x0000011E + "\x00g\x03\x06\x00\x00\x01\x1f" + // 0x00670306: 0x0000011F + "\x00G\x03\a\x00\x00\x01 " + // 0x00470307: 0x00000120 + "\x00g\x03\a\x00\x00\x01!" + // 0x00670307: 0x00000121 + "\x00G\x03'\x00\x00\x01\"" + // 0x00470327: 0x00000122 + "\x00g\x03'\x00\x00\x01#" + // 0x00670327: 0x00000123 + "\x00H\x03\x02\x00\x00\x01$" + // 0x00480302: 0x00000124 + "\x00h\x03\x02\x00\x00\x01%" + // 0x00680302: 0x00000125 + "\x00I\x03\x03\x00\x00\x01(" + // 0x00490303: 0x00000128 + "\x00i\x03\x03\x00\x00\x01)" + // 0x00690303: 0x00000129 + "\x00I\x03\x04\x00\x00\x01*" + // 0x00490304: 0x0000012A + "\x00i\x03\x04\x00\x00\x01+" + // 0x00690304: 0x0000012B + "\x00I\x03\x06\x00\x00\x01," + // 0x00490306: 0x0000012C + "\x00i\x03\x06\x00\x00\x01-" + // 0x00690306: 0x0000012D + "\x00I\x03(\x00\x00\x01." + // 0x00490328: 0x0000012E + "\x00i\x03(\x00\x00\x01/" + // 0x00690328: 0x0000012F + "\x00I\x03\a\x00\x00\x010" + // 0x00490307: 0x00000130 + "\x00J\x03\x02\x00\x00\x014" + // 0x004A0302: 0x00000134 + "\x00j\x03\x02\x00\x00\x015" + // 0x006A0302: 0x00000135 + "\x00K\x03'\x00\x00\x016" + // 0x004B0327: 0x00000136 + "\x00k\x03'\x00\x00\x017" + // 0x006B0327: 0x00000137 + "\x00L\x03\x01\x00\x00\x019" + // 0x004C0301: 0x00000139 + "\x00l\x03\x01\x00\x00\x01:" + // 0x006C0301: 0x0000013A + "\x00L\x03'\x00\x00\x01;" + // 0x004C0327: 0x0000013B + "\x00l\x03'\x00\x00\x01<" + // 0x006C0327: 0x0000013C + "\x00L\x03\f\x00\x00\x01=" + // 0x004C030C: 0x0000013D + "\x00l\x03\f\x00\x00\x01>" + // 0x006C030C: 0x0000013E + "\x00N\x03\x01\x00\x00\x01C" + // 0x004E0301: 0x00000143 + "\x00n\x03\x01\x00\x00\x01D" + // 0x006E0301: 0x00000144 + "\x00N\x03'\x00\x00\x01E" + // 0x004E0327: 0x00000145 + "\x00n\x03'\x00\x00\x01F" + // 0x006E0327: 0x00000146 + "\x00N\x03\f\x00\x00\x01G" + // 0x004E030C: 0x00000147 + "\x00n\x03\f\x00\x00\x01H" + // 0x006E030C: 0x00000148 + "\x00O\x03\x04\x00\x00\x01L" + // 0x004F0304: 0x0000014C + "\x00o\x03\x04\x00\x00\x01M" + // 0x006F0304: 0x0000014D + "\x00O\x03\x06\x00\x00\x01N" + // 0x004F0306: 0x0000014E + "\x00o\x03\x06\x00\x00\x01O" + // 0x006F0306: 0x0000014F + "\x00O\x03\v\x00\x00\x01P" + // 0x004F030B: 0x00000150 + "\x00o\x03\v\x00\x00\x01Q" + // 0x006F030B: 0x00000151 + "\x00R\x03\x01\x00\x00\x01T" + // 0x00520301: 0x00000154 + "\x00r\x03\x01\x00\x00\x01U" + // 0x00720301: 0x00000155 + "\x00R\x03'\x00\x00\x01V" + // 0x00520327: 0x00000156 + "\x00r\x03'\x00\x00\x01W" + // 0x00720327: 0x00000157 + "\x00R\x03\f\x00\x00\x01X" + // 0x0052030C: 0x00000158 + "\x00r\x03\f\x00\x00\x01Y" + // 0x0072030C: 0x00000159 + "\x00S\x03\x01\x00\x00\x01Z" + // 0x00530301: 0x0000015A + "\x00s\x03\x01\x00\x00\x01[" + // 0x00730301: 0x0000015B + "\x00S\x03\x02\x00\x00\x01\\" + // 0x00530302: 0x0000015C + "\x00s\x03\x02\x00\x00\x01]" + // 0x00730302: 0x0000015D + "\x00S\x03'\x00\x00\x01^" + // 0x00530327: 0x0000015E + "\x00s\x03'\x00\x00\x01_" + // 0x00730327: 0x0000015F + "\x00S\x03\f\x00\x00\x01`" + // 0x0053030C: 0x00000160 + "\x00s\x03\f\x00\x00\x01a" + // 0x0073030C: 0x00000161 + "\x00T\x03'\x00\x00\x01b" + // 0x00540327: 0x00000162 + "\x00t\x03'\x00\x00\x01c" + // 0x00740327: 0x00000163 + "\x00T\x03\f\x00\x00\x01d" + // 0x0054030C: 0x00000164 + "\x00t\x03\f\x00\x00\x01e" + // 0x0074030C: 0x00000165 + "\x00U\x03\x03\x00\x00\x01h" + // 0x00550303: 0x00000168 + "\x00u\x03\x03\x00\x00\x01i" + // 0x00750303: 0x00000169 + "\x00U\x03\x04\x00\x00\x01j" + // 0x00550304: 0x0000016A + "\x00u\x03\x04\x00\x00\x01k" + // 0x00750304: 0x0000016B + "\x00U\x03\x06\x00\x00\x01l" + // 0x00550306: 0x0000016C + "\x00u\x03\x06\x00\x00\x01m" + // 0x00750306: 0x0000016D + "\x00U\x03\n\x00\x00\x01n" + // 0x0055030A: 0x0000016E + "\x00u\x03\n\x00\x00\x01o" + // 0x0075030A: 0x0000016F + "\x00U\x03\v\x00\x00\x01p" + // 0x0055030B: 0x00000170 + "\x00u\x03\v\x00\x00\x01q" + // 0x0075030B: 0x00000171 + "\x00U\x03(\x00\x00\x01r" + // 0x00550328: 0x00000172 + "\x00u\x03(\x00\x00\x01s" + // 0x00750328: 0x00000173 + "\x00W\x03\x02\x00\x00\x01t" + // 0x00570302: 0x00000174 + "\x00w\x03\x02\x00\x00\x01u" + // 0x00770302: 0x00000175 + "\x00Y\x03\x02\x00\x00\x01v" + // 0x00590302: 0x00000176 + "\x00y\x03\x02\x00\x00\x01w" + // 0x00790302: 0x00000177 + "\x00Y\x03\b\x00\x00\x01x" + // 0x00590308: 0x00000178 + "\x00Z\x03\x01\x00\x00\x01y" + // 0x005A0301: 0x00000179 + "\x00z\x03\x01\x00\x00\x01z" + // 0x007A0301: 0x0000017A + "\x00Z\x03\a\x00\x00\x01{" + // 0x005A0307: 0x0000017B + "\x00z\x03\a\x00\x00\x01|" + // 0x007A0307: 0x0000017C + "\x00Z\x03\f\x00\x00\x01}" + // 0x005A030C: 0x0000017D + "\x00z\x03\f\x00\x00\x01~" + // 0x007A030C: 0x0000017E + "\x00O\x03\x1b\x00\x00\x01\xa0" + // 0x004F031B: 0x000001A0 + "\x00o\x03\x1b\x00\x00\x01\xa1" + // 0x006F031B: 0x000001A1 + "\x00U\x03\x1b\x00\x00\x01\xaf" + // 0x0055031B: 0x000001AF + "\x00u\x03\x1b\x00\x00\x01\xb0" + // 0x0075031B: 0x000001B0 + "\x00A\x03\f\x00\x00\x01\xcd" + // 0x0041030C: 0x000001CD + "\x00a\x03\f\x00\x00\x01\xce" + // 0x0061030C: 0x000001CE + "\x00I\x03\f\x00\x00\x01\xcf" + // 0x0049030C: 0x000001CF + "\x00i\x03\f\x00\x00\x01\xd0" + // 0x0069030C: 0x000001D0 + "\x00O\x03\f\x00\x00\x01\xd1" + // 0x004F030C: 0x000001D1 + "\x00o\x03\f\x00\x00\x01\xd2" + // 0x006F030C: 0x000001D2 + "\x00U\x03\f\x00\x00\x01\xd3" + // 0x0055030C: 0x000001D3 + "\x00u\x03\f\x00\x00\x01\xd4" + // 0x0075030C: 0x000001D4 + "\x00\xdc\x03\x04\x00\x00\x01\xd5" + // 0x00DC0304: 0x000001D5 + "\x00\xfc\x03\x04\x00\x00\x01\xd6" + // 0x00FC0304: 0x000001D6 + "\x00\xdc\x03\x01\x00\x00\x01\xd7" + // 0x00DC0301: 0x000001D7 + "\x00\xfc\x03\x01\x00\x00\x01\xd8" + // 0x00FC0301: 0x000001D8 + "\x00\xdc\x03\f\x00\x00\x01\xd9" + // 0x00DC030C: 0x000001D9 + "\x00\xfc\x03\f\x00\x00\x01\xda" + // 0x00FC030C: 0x000001DA + "\x00\xdc\x03\x00\x00\x00\x01\xdb" + // 0x00DC0300: 0x000001DB + "\x00\xfc\x03\x00\x00\x00\x01\xdc" + // 0x00FC0300: 0x000001DC + "\x00\xc4\x03\x04\x00\x00\x01\xde" + // 0x00C40304: 0x000001DE + "\x00\xe4\x03\x04\x00\x00\x01\xdf" + // 0x00E40304: 0x000001DF + "\x02&\x03\x04\x00\x00\x01\xe0" + // 0x02260304: 0x000001E0 + "\x02'\x03\x04\x00\x00\x01\xe1" + // 0x02270304: 0x000001E1 + "\x00\xc6\x03\x04\x00\x00\x01\xe2" + // 0x00C60304: 0x000001E2 + "\x00\xe6\x03\x04\x00\x00\x01\xe3" + // 0x00E60304: 0x000001E3 + "\x00G\x03\f\x00\x00\x01\xe6" + // 0x0047030C: 0x000001E6 + "\x00g\x03\f\x00\x00\x01\xe7" + // 0x0067030C: 0x000001E7 + "\x00K\x03\f\x00\x00\x01\xe8" + // 0x004B030C: 0x000001E8 + "\x00k\x03\f\x00\x00\x01\xe9" + // 0x006B030C: 0x000001E9 + "\x00O\x03(\x00\x00\x01\xea" + // 0x004F0328: 0x000001EA + "\x00o\x03(\x00\x00\x01\xeb" + // 0x006F0328: 0x000001EB + "\x01\xea\x03\x04\x00\x00\x01\xec" + // 0x01EA0304: 0x000001EC + "\x01\xeb\x03\x04\x00\x00\x01\xed" + // 0x01EB0304: 0x000001ED + "\x01\xb7\x03\f\x00\x00\x01\xee" + // 0x01B7030C: 0x000001EE + "\x02\x92\x03\f\x00\x00\x01\xef" + // 0x0292030C: 0x000001EF + "\x00j\x03\f\x00\x00\x01\xf0" + // 0x006A030C: 0x000001F0 + "\x00G\x03\x01\x00\x00\x01\xf4" + // 0x00470301: 0x000001F4 + "\x00g\x03\x01\x00\x00\x01\xf5" + // 0x00670301: 0x000001F5 + "\x00N\x03\x00\x00\x00\x01\xf8" + // 0x004E0300: 0x000001F8 + "\x00n\x03\x00\x00\x00\x01\xf9" + // 0x006E0300: 0x000001F9 + "\x00\xc5\x03\x01\x00\x00\x01\xfa" + // 0x00C50301: 0x000001FA + "\x00\xe5\x03\x01\x00\x00\x01\xfb" + // 0x00E50301: 0x000001FB + "\x00\xc6\x03\x01\x00\x00\x01\xfc" + // 0x00C60301: 0x000001FC + "\x00\xe6\x03\x01\x00\x00\x01\xfd" + // 0x00E60301: 0x000001FD + "\x00\xd8\x03\x01\x00\x00\x01\xfe" + // 0x00D80301: 0x000001FE + "\x00\xf8\x03\x01\x00\x00\x01\xff" + // 0x00F80301: 0x000001FF + "\x00A\x03\x0f\x00\x00\x02\x00" + // 0x0041030F: 0x00000200 + "\x00a\x03\x0f\x00\x00\x02\x01" + // 0x0061030F: 0x00000201 + "\x00A\x03\x11\x00\x00\x02\x02" + // 0x00410311: 0x00000202 + "\x00a\x03\x11\x00\x00\x02\x03" + // 0x00610311: 0x00000203 + "\x00E\x03\x0f\x00\x00\x02\x04" + // 0x0045030F: 0x00000204 + "\x00e\x03\x0f\x00\x00\x02\x05" + // 0x0065030F: 0x00000205 + "\x00E\x03\x11\x00\x00\x02\x06" + // 0x00450311: 0x00000206 + "\x00e\x03\x11\x00\x00\x02\a" + // 0x00650311: 0x00000207 + "\x00I\x03\x0f\x00\x00\x02\b" + // 0x0049030F: 0x00000208 + "\x00i\x03\x0f\x00\x00\x02\t" + // 0x0069030F: 0x00000209 + "\x00I\x03\x11\x00\x00\x02\n" + // 0x00490311: 0x0000020A + "\x00i\x03\x11\x00\x00\x02\v" + // 0x00690311: 0x0000020B + "\x00O\x03\x0f\x00\x00\x02\f" + // 0x004F030F: 0x0000020C + "\x00o\x03\x0f\x00\x00\x02\r" + // 0x006F030F: 0x0000020D + "\x00O\x03\x11\x00\x00\x02\x0e" + // 0x004F0311: 0x0000020E + "\x00o\x03\x11\x00\x00\x02\x0f" + // 0x006F0311: 0x0000020F + "\x00R\x03\x0f\x00\x00\x02\x10" + // 0x0052030F: 0x00000210 + "\x00r\x03\x0f\x00\x00\x02\x11" + // 0x0072030F: 0x00000211 + "\x00R\x03\x11\x00\x00\x02\x12" + // 0x00520311: 0x00000212 + "\x00r\x03\x11\x00\x00\x02\x13" + // 0x00720311: 0x00000213 + "\x00U\x03\x0f\x00\x00\x02\x14" + // 0x0055030F: 0x00000214 + "\x00u\x03\x0f\x00\x00\x02\x15" + // 0x0075030F: 0x00000215 + "\x00U\x03\x11\x00\x00\x02\x16" + // 0x00550311: 0x00000216 + "\x00u\x03\x11\x00\x00\x02\x17" + // 0x00750311: 0x00000217 + "\x00S\x03&\x00\x00\x02\x18" + // 0x00530326: 0x00000218 + "\x00s\x03&\x00\x00\x02\x19" + // 0x00730326: 0x00000219 + "\x00T\x03&\x00\x00\x02\x1a" + // 0x00540326: 0x0000021A + "\x00t\x03&\x00\x00\x02\x1b" + // 0x00740326: 0x0000021B + "\x00H\x03\f\x00\x00\x02\x1e" + // 0x0048030C: 0x0000021E + "\x00h\x03\f\x00\x00\x02\x1f" + // 0x0068030C: 0x0000021F + "\x00A\x03\a\x00\x00\x02&" + // 0x00410307: 0x00000226 + "\x00a\x03\a\x00\x00\x02'" + // 0x00610307: 0x00000227 + "\x00E\x03'\x00\x00\x02(" + // 0x00450327: 0x00000228 + "\x00e\x03'\x00\x00\x02)" + // 0x00650327: 0x00000229 + "\x00\xd6\x03\x04\x00\x00\x02*" + // 0x00D60304: 0x0000022A + "\x00\xf6\x03\x04\x00\x00\x02+" + // 0x00F60304: 0x0000022B + "\x00\xd5\x03\x04\x00\x00\x02," + // 0x00D50304: 0x0000022C + "\x00\xf5\x03\x04\x00\x00\x02-" + // 0x00F50304: 0x0000022D + "\x00O\x03\a\x00\x00\x02." + // 0x004F0307: 0x0000022E + "\x00o\x03\a\x00\x00\x02/" + // 0x006F0307: 0x0000022F + "\x02.\x03\x04\x00\x00\x020" + // 0x022E0304: 0x00000230 + "\x02/\x03\x04\x00\x00\x021" + // 0x022F0304: 0x00000231 + "\x00Y\x03\x04\x00\x00\x022" + // 0x00590304: 0x00000232 + "\x00y\x03\x04\x00\x00\x023" + // 0x00790304: 0x00000233 + "\x00\xa8\x03\x01\x00\x00\x03\x85" + // 0x00A80301: 0x00000385 + "\x03\x91\x03\x01\x00\x00\x03\x86" + // 0x03910301: 0x00000386 + "\x03\x95\x03\x01\x00\x00\x03\x88" + // 0x03950301: 0x00000388 + "\x03\x97\x03\x01\x00\x00\x03\x89" + // 0x03970301: 0x00000389 + "\x03\x99\x03\x01\x00\x00\x03\x8a" + // 0x03990301: 0x0000038A + "\x03\x9f\x03\x01\x00\x00\x03\x8c" + // 0x039F0301: 0x0000038C + "\x03\xa5\x03\x01\x00\x00\x03\x8e" + // 0x03A50301: 0x0000038E + "\x03\xa9\x03\x01\x00\x00\x03\x8f" + // 0x03A90301: 0x0000038F + "\x03\xca\x03\x01\x00\x00\x03\x90" + // 0x03CA0301: 0x00000390 + "\x03\x99\x03\b\x00\x00\x03\xaa" + // 0x03990308: 0x000003AA + "\x03\xa5\x03\b\x00\x00\x03\xab" + // 0x03A50308: 0x000003AB + "\x03\xb1\x03\x01\x00\x00\x03\xac" + // 0x03B10301: 0x000003AC + "\x03\xb5\x03\x01\x00\x00\x03\xad" + // 0x03B50301: 0x000003AD + "\x03\xb7\x03\x01\x00\x00\x03\xae" + // 0x03B70301: 0x000003AE + "\x03\xb9\x03\x01\x00\x00\x03\xaf" + // 0x03B90301: 0x000003AF + "\x03\xcb\x03\x01\x00\x00\x03\xb0" + // 0x03CB0301: 0x000003B0 + "\x03\xb9\x03\b\x00\x00\x03\xca" + // 0x03B90308: 0x000003CA + "\x03\xc5\x03\b\x00\x00\x03\xcb" + // 0x03C50308: 0x000003CB + "\x03\xbf\x03\x01\x00\x00\x03\xcc" + // 0x03BF0301: 0x000003CC + "\x03\xc5\x03\x01\x00\x00\x03\xcd" + // 0x03C50301: 0x000003CD + "\x03\xc9\x03\x01\x00\x00\x03\xce" + // 0x03C90301: 0x000003CE + "\x03\xd2\x03\x01\x00\x00\x03\xd3" + // 0x03D20301: 0x000003D3 + "\x03\xd2\x03\b\x00\x00\x03\xd4" + // 0x03D20308: 0x000003D4 + "\x04\x15\x03\x00\x00\x00\x04\x00" + // 0x04150300: 0x00000400 + "\x04\x15\x03\b\x00\x00\x04\x01" + // 0x04150308: 0x00000401 + "\x04\x13\x03\x01\x00\x00\x04\x03" + // 0x04130301: 0x00000403 + "\x04\x06\x03\b\x00\x00\x04\a" + // 0x04060308: 0x00000407 + "\x04\x1a\x03\x01\x00\x00\x04\f" + // 0x041A0301: 0x0000040C + "\x04\x18\x03\x00\x00\x00\x04\r" + // 0x04180300: 0x0000040D + "\x04#\x03\x06\x00\x00\x04\x0e" + // 0x04230306: 0x0000040E + "\x04\x18\x03\x06\x00\x00\x04\x19" + // 0x04180306: 0x00000419 + "\x048\x03\x06\x00\x00\x049" + // 0x04380306: 0x00000439 + "\x045\x03\x00\x00\x00\x04P" + // 0x04350300: 0x00000450 + "\x045\x03\b\x00\x00\x04Q" + // 0x04350308: 0x00000451 + "\x043\x03\x01\x00\x00\x04S" + // 0x04330301: 0x00000453 + "\x04V\x03\b\x00\x00\x04W" + // 0x04560308: 0x00000457 + "\x04:\x03\x01\x00\x00\x04\\" + // 0x043A0301: 0x0000045C + "\x048\x03\x00\x00\x00\x04]" + // 0x04380300: 0x0000045D + "\x04C\x03\x06\x00\x00\x04^" + // 0x04430306: 0x0000045E + "\x04t\x03\x0f\x00\x00\x04v" + // 0x0474030F: 0x00000476 + "\x04u\x03\x0f\x00\x00\x04w" + // 0x0475030F: 0x00000477 + "\x04\x16\x03\x06\x00\x00\x04\xc1" + // 0x04160306: 0x000004C1 + "\x046\x03\x06\x00\x00\x04\xc2" + // 0x04360306: 0x000004C2 + "\x04\x10\x03\x06\x00\x00\x04\xd0" + // 0x04100306: 0x000004D0 + "\x040\x03\x06\x00\x00\x04\xd1" + // 0x04300306: 0x000004D1 + "\x04\x10\x03\b\x00\x00\x04\xd2" + // 0x04100308: 0x000004D2 + "\x040\x03\b\x00\x00\x04\xd3" + // 0x04300308: 0x000004D3 + "\x04\x15\x03\x06\x00\x00\x04\xd6" + // 0x04150306: 0x000004D6 + "\x045\x03\x06\x00\x00\x04\xd7" + // 0x04350306: 0x000004D7 + "\x04\xd8\x03\b\x00\x00\x04\xda" + // 0x04D80308: 0x000004DA + "\x04\xd9\x03\b\x00\x00\x04\xdb" + // 0x04D90308: 0x000004DB + "\x04\x16\x03\b\x00\x00\x04\xdc" + // 0x04160308: 0x000004DC + "\x046\x03\b\x00\x00\x04\xdd" + // 0x04360308: 0x000004DD + "\x04\x17\x03\b\x00\x00\x04\xde" + // 0x04170308: 0x000004DE + "\x047\x03\b\x00\x00\x04\xdf" + // 0x04370308: 0x000004DF + "\x04\x18\x03\x04\x00\x00\x04\xe2" + // 0x04180304: 0x000004E2 + "\x048\x03\x04\x00\x00\x04\xe3" + // 0x04380304: 0x000004E3 + "\x04\x18\x03\b\x00\x00\x04\xe4" + // 0x04180308: 0x000004E4 + "\x048\x03\b\x00\x00\x04\xe5" + // 0x04380308: 0x000004E5 + "\x04\x1e\x03\b\x00\x00\x04\xe6" + // 0x041E0308: 0x000004E6 + "\x04>\x03\b\x00\x00\x04\xe7" + // 0x043E0308: 0x000004E7 + "\x04\xe8\x03\b\x00\x00\x04\xea" + // 0x04E80308: 0x000004EA + "\x04\xe9\x03\b\x00\x00\x04\xeb" + // 0x04E90308: 0x000004EB + "\x04-\x03\b\x00\x00\x04\xec" + // 0x042D0308: 0x000004EC + "\x04M\x03\b\x00\x00\x04\xed" + // 0x044D0308: 0x000004ED + "\x04#\x03\x04\x00\x00\x04\xee" + // 0x04230304: 0x000004EE + "\x04C\x03\x04\x00\x00\x04\xef" + // 0x04430304: 0x000004EF + "\x04#\x03\b\x00\x00\x04\xf0" + // 0x04230308: 0x000004F0 + "\x04C\x03\b\x00\x00\x04\xf1" + // 0x04430308: 0x000004F1 + "\x04#\x03\v\x00\x00\x04\xf2" + // 0x0423030B: 0x000004F2 + "\x04C\x03\v\x00\x00\x04\xf3" + // 0x0443030B: 0x000004F3 + "\x04'\x03\b\x00\x00\x04\xf4" + // 0x04270308: 0x000004F4 + "\x04G\x03\b\x00\x00\x04\xf5" + // 0x04470308: 0x000004F5 + "\x04+\x03\b\x00\x00\x04\xf8" + // 0x042B0308: 0x000004F8 + "\x04K\x03\b\x00\x00\x04\xf9" + // 0x044B0308: 0x000004F9 + "\x06'\x06S\x00\x00\x06\"" + // 0x06270653: 0x00000622 + "\x06'\x06T\x00\x00\x06#" + // 0x06270654: 0x00000623 + "\x06H\x06T\x00\x00\x06$" + // 0x06480654: 0x00000624 + "\x06'\x06U\x00\x00\x06%" + // 0x06270655: 0x00000625 + "\x06J\x06T\x00\x00\x06&" + // 0x064A0654: 0x00000626 + "\x06\xd5\x06T\x00\x00\x06\xc0" + // 0x06D50654: 0x000006C0 + "\x06\xc1\x06T\x00\x00\x06\xc2" + // 0x06C10654: 0x000006C2 + "\x06\xd2\x06T\x00\x00\x06\xd3" + // 0x06D20654: 0x000006D3 + "\t(\t<\x00\x00\t)" + // 0x0928093C: 0x00000929 + "\t0\t<\x00\x00\t1" + // 0x0930093C: 0x00000931 + "\t3\t<\x00\x00\t4" + // 0x0933093C: 0x00000934 + "\t\xc7\t\xbe\x00\x00\t\xcb" + // 0x09C709BE: 0x000009CB + "\t\xc7\t\xd7\x00\x00\t\xcc" + // 0x09C709D7: 0x000009CC + "\vG\vV\x00\x00\vH" + // 0x0B470B56: 0x00000B48 + "\vG\v>\x00\x00\vK" + // 0x0B470B3E: 0x00000B4B + "\vG\vW\x00\x00\vL" + // 0x0B470B57: 0x00000B4C + "\v\x92\v\xd7\x00\x00\v\x94" + // 0x0B920BD7: 0x00000B94 + "\v\xc6\v\xbe\x00\x00\v\xca" + // 0x0BC60BBE: 0x00000BCA + "\v\xc7\v\xbe\x00\x00\v\xcb" + // 0x0BC70BBE: 0x00000BCB + "\v\xc6\v\xd7\x00\x00\v\xcc" + // 0x0BC60BD7: 0x00000BCC + "\fF\fV\x00\x00\fH" + // 0x0C460C56: 0x00000C48 + "\f\xbf\f\xd5\x00\x00\f\xc0" + // 0x0CBF0CD5: 0x00000CC0 + "\f\xc6\f\xd5\x00\x00\f\xc7" + // 0x0CC60CD5: 0x00000CC7 + "\f\xc6\f\xd6\x00\x00\f\xc8" + // 0x0CC60CD6: 0x00000CC8 + "\f\xc6\f\xc2\x00\x00\f\xca" + // 0x0CC60CC2: 0x00000CCA + "\f\xca\f\xd5\x00\x00\f\xcb" + // 0x0CCA0CD5: 0x00000CCB + "\rF\r>\x00\x00\rJ" + // 0x0D460D3E: 0x00000D4A + "\rG\r>\x00\x00\rK" + // 0x0D470D3E: 0x00000D4B + "\rF\rW\x00\x00\rL" + // 0x0D460D57: 0x00000D4C + "\r\xd9\r\xca\x00\x00\r\xda" + // 0x0DD90DCA: 0x00000DDA + "\r\xd9\r\xcf\x00\x00\r\xdc" + // 0x0DD90DCF: 0x00000DDC + "\r\xdc\r\xca\x00\x00\r\xdd" + // 0x0DDC0DCA: 0x00000DDD + "\r\xd9\r\xdf\x00\x00\r\xde" + // 0x0DD90DDF: 0x00000DDE + "\x10%\x10.\x00\x00\x10&" + // 0x1025102E: 0x00001026 + "\x1b\x05\x1b5\x00\x00\x1b\x06" + // 0x1B051B35: 0x00001B06 + "\x1b\a\x1b5\x00\x00\x1b\b" + // 0x1B071B35: 0x00001B08 + "\x1b\t\x1b5\x00\x00\x1b\n" + // 0x1B091B35: 0x00001B0A + "\x1b\v\x1b5\x00\x00\x1b\f" + // 0x1B0B1B35: 0x00001B0C + "\x1b\r\x1b5\x00\x00\x1b\x0e" + // 0x1B0D1B35: 0x00001B0E + "\x1b\x11\x1b5\x00\x00\x1b\x12" + // 0x1B111B35: 0x00001B12 + "\x1b:\x1b5\x00\x00\x1b;" + // 0x1B3A1B35: 0x00001B3B + "\x1b<\x1b5\x00\x00\x1b=" + // 0x1B3C1B35: 0x00001B3D + "\x1b>\x1b5\x00\x00\x1b@" + // 0x1B3E1B35: 0x00001B40 + "\x1b?\x1b5\x00\x00\x1bA" + // 0x1B3F1B35: 0x00001B41 + "\x1bB\x1b5\x00\x00\x1bC" + // 0x1B421B35: 0x00001B43 + "\x00A\x03%\x00\x00\x1e\x00" + // 0x00410325: 0x00001E00 + "\x00a\x03%\x00\x00\x1e\x01" + // 0x00610325: 0x00001E01 + "\x00B\x03\a\x00\x00\x1e\x02" + // 0x00420307: 0x00001E02 + "\x00b\x03\a\x00\x00\x1e\x03" + // 0x00620307: 0x00001E03 + "\x00B\x03#\x00\x00\x1e\x04" + // 0x00420323: 0x00001E04 + "\x00b\x03#\x00\x00\x1e\x05" + // 0x00620323: 0x00001E05 + "\x00B\x031\x00\x00\x1e\x06" + // 0x00420331: 0x00001E06 + "\x00b\x031\x00\x00\x1e\a" + // 0x00620331: 0x00001E07 + "\x00\xc7\x03\x01\x00\x00\x1e\b" + // 0x00C70301: 0x00001E08 + "\x00\xe7\x03\x01\x00\x00\x1e\t" + // 0x00E70301: 0x00001E09 + "\x00D\x03\a\x00\x00\x1e\n" + // 0x00440307: 0x00001E0A + "\x00d\x03\a\x00\x00\x1e\v" + // 0x00640307: 0x00001E0B + "\x00D\x03#\x00\x00\x1e\f" + // 0x00440323: 0x00001E0C + "\x00d\x03#\x00\x00\x1e\r" + // 0x00640323: 0x00001E0D + "\x00D\x031\x00\x00\x1e\x0e" + // 0x00440331: 0x00001E0E + "\x00d\x031\x00\x00\x1e\x0f" + // 0x00640331: 0x00001E0F + "\x00D\x03'\x00\x00\x1e\x10" + // 0x00440327: 0x00001E10 + "\x00d\x03'\x00\x00\x1e\x11" + // 0x00640327: 0x00001E11 + "\x00D\x03-\x00\x00\x1e\x12" + // 0x0044032D: 0x00001E12 + "\x00d\x03-\x00\x00\x1e\x13" + // 0x0064032D: 0x00001E13 + "\x01\x12\x03\x00\x00\x00\x1e\x14" + // 0x01120300: 0x00001E14 + "\x01\x13\x03\x00\x00\x00\x1e\x15" + // 0x01130300: 0x00001E15 + "\x01\x12\x03\x01\x00\x00\x1e\x16" + // 0x01120301: 0x00001E16 + "\x01\x13\x03\x01\x00\x00\x1e\x17" + // 0x01130301: 0x00001E17 + "\x00E\x03-\x00\x00\x1e\x18" + // 0x0045032D: 0x00001E18 + "\x00e\x03-\x00\x00\x1e\x19" + // 0x0065032D: 0x00001E19 + "\x00E\x030\x00\x00\x1e\x1a" + // 0x00450330: 0x00001E1A + "\x00e\x030\x00\x00\x1e\x1b" + // 0x00650330: 0x00001E1B + "\x02(\x03\x06\x00\x00\x1e\x1c" + // 0x02280306: 0x00001E1C + "\x02)\x03\x06\x00\x00\x1e\x1d" + // 0x02290306: 0x00001E1D + "\x00F\x03\a\x00\x00\x1e\x1e" + // 0x00460307: 0x00001E1E + "\x00f\x03\a\x00\x00\x1e\x1f" + // 0x00660307: 0x00001E1F + "\x00G\x03\x04\x00\x00\x1e " + // 0x00470304: 0x00001E20 + "\x00g\x03\x04\x00\x00\x1e!" + // 0x00670304: 0x00001E21 + "\x00H\x03\a\x00\x00\x1e\"" + // 0x00480307: 0x00001E22 + "\x00h\x03\a\x00\x00\x1e#" + // 0x00680307: 0x00001E23 + "\x00H\x03#\x00\x00\x1e$" + // 0x00480323: 0x00001E24 + "\x00h\x03#\x00\x00\x1e%" + // 0x00680323: 0x00001E25 + "\x00H\x03\b\x00\x00\x1e&" + // 0x00480308: 0x00001E26 + "\x00h\x03\b\x00\x00\x1e'" + // 0x00680308: 0x00001E27 + "\x00H\x03'\x00\x00\x1e(" + // 0x00480327: 0x00001E28 + "\x00h\x03'\x00\x00\x1e)" + // 0x00680327: 0x00001E29 + "\x00H\x03.\x00\x00\x1e*" + // 0x0048032E: 0x00001E2A + "\x00h\x03.\x00\x00\x1e+" + // 0x0068032E: 0x00001E2B + "\x00I\x030\x00\x00\x1e," + // 0x00490330: 0x00001E2C + "\x00i\x030\x00\x00\x1e-" + // 0x00690330: 0x00001E2D + "\x00\xcf\x03\x01\x00\x00\x1e." + // 0x00CF0301: 0x00001E2E + "\x00\xef\x03\x01\x00\x00\x1e/" + // 0x00EF0301: 0x00001E2F + "\x00K\x03\x01\x00\x00\x1e0" + // 0x004B0301: 0x00001E30 + "\x00k\x03\x01\x00\x00\x1e1" + // 0x006B0301: 0x00001E31 + "\x00K\x03#\x00\x00\x1e2" + // 0x004B0323: 0x00001E32 + "\x00k\x03#\x00\x00\x1e3" + // 0x006B0323: 0x00001E33 + "\x00K\x031\x00\x00\x1e4" + // 0x004B0331: 0x00001E34 + "\x00k\x031\x00\x00\x1e5" + // 0x006B0331: 0x00001E35 + "\x00L\x03#\x00\x00\x1e6" + // 0x004C0323: 0x00001E36 + "\x00l\x03#\x00\x00\x1e7" + // 0x006C0323: 0x00001E37 + "\x1e6\x03\x04\x00\x00\x1e8" + // 0x1E360304: 0x00001E38 + "\x1e7\x03\x04\x00\x00\x1e9" + // 0x1E370304: 0x00001E39 + "\x00L\x031\x00\x00\x1e:" + // 0x004C0331: 0x00001E3A + "\x00l\x031\x00\x00\x1e;" + // 0x006C0331: 0x00001E3B + "\x00L\x03-\x00\x00\x1e<" + // 0x004C032D: 0x00001E3C + "\x00l\x03-\x00\x00\x1e=" + // 0x006C032D: 0x00001E3D + "\x00M\x03\x01\x00\x00\x1e>" + // 0x004D0301: 0x00001E3E + "\x00m\x03\x01\x00\x00\x1e?" + // 0x006D0301: 0x00001E3F + "\x00M\x03\a\x00\x00\x1e@" + // 0x004D0307: 0x00001E40 + "\x00m\x03\a\x00\x00\x1eA" + // 0x006D0307: 0x00001E41 + "\x00M\x03#\x00\x00\x1eB" + // 0x004D0323: 0x00001E42 + "\x00m\x03#\x00\x00\x1eC" + // 0x006D0323: 0x00001E43 + "\x00N\x03\a\x00\x00\x1eD" + // 0x004E0307: 0x00001E44 + "\x00n\x03\a\x00\x00\x1eE" + // 0x006E0307: 0x00001E45 + "\x00N\x03#\x00\x00\x1eF" + // 0x004E0323: 0x00001E46 + "\x00n\x03#\x00\x00\x1eG" + // 0x006E0323: 0x00001E47 + "\x00N\x031\x00\x00\x1eH" + // 0x004E0331: 0x00001E48 + "\x00n\x031\x00\x00\x1eI" + // 0x006E0331: 0x00001E49 + "\x00N\x03-\x00\x00\x1eJ" + // 0x004E032D: 0x00001E4A + "\x00n\x03-\x00\x00\x1eK" + // 0x006E032D: 0x00001E4B + "\x00\xd5\x03\x01\x00\x00\x1eL" + // 0x00D50301: 0x00001E4C + "\x00\xf5\x03\x01\x00\x00\x1eM" + // 0x00F50301: 0x00001E4D + "\x00\xd5\x03\b\x00\x00\x1eN" + // 0x00D50308: 0x00001E4E + "\x00\xf5\x03\b\x00\x00\x1eO" + // 0x00F50308: 0x00001E4F + "\x01L\x03\x00\x00\x00\x1eP" + // 0x014C0300: 0x00001E50 + "\x01M\x03\x00\x00\x00\x1eQ" + // 0x014D0300: 0x00001E51 + "\x01L\x03\x01\x00\x00\x1eR" + // 0x014C0301: 0x00001E52 + "\x01M\x03\x01\x00\x00\x1eS" + // 0x014D0301: 0x00001E53 + "\x00P\x03\x01\x00\x00\x1eT" + // 0x00500301: 0x00001E54 + "\x00p\x03\x01\x00\x00\x1eU" + // 0x00700301: 0x00001E55 + "\x00P\x03\a\x00\x00\x1eV" + // 0x00500307: 0x00001E56 + "\x00p\x03\a\x00\x00\x1eW" + // 0x00700307: 0x00001E57 + "\x00R\x03\a\x00\x00\x1eX" + // 0x00520307: 0x00001E58 + "\x00r\x03\a\x00\x00\x1eY" + // 0x00720307: 0x00001E59 + "\x00R\x03#\x00\x00\x1eZ" + // 0x00520323: 0x00001E5A + "\x00r\x03#\x00\x00\x1e[" + // 0x00720323: 0x00001E5B + "\x1eZ\x03\x04\x00\x00\x1e\\" + // 0x1E5A0304: 0x00001E5C + "\x1e[\x03\x04\x00\x00\x1e]" + // 0x1E5B0304: 0x00001E5D + "\x00R\x031\x00\x00\x1e^" + // 0x00520331: 0x00001E5E + "\x00r\x031\x00\x00\x1e_" + // 0x00720331: 0x00001E5F + "\x00S\x03\a\x00\x00\x1e`" + // 0x00530307: 0x00001E60 + "\x00s\x03\a\x00\x00\x1ea" + // 0x00730307: 0x00001E61 + "\x00S\x03#\x00\x00\x1eb" + // 0x00530323: 0x00001E62 + "\x00s\x03#\x00\x00\x1ec" + // 0x00730323: 0x00001E63 + "\x01Z\x03\a\x00\x00\x1ed" + // 0x015A0307: 0x00001E64 + "\x01[\x03\a\x00\x00\x1ee" + // 0x015B0307: 0x00001E65 + "\x01`\x03\a\x00\x00\x1ef" + // 0x01600307: 0x00001E66 + "\x01a\x03\a\x00\x00\x1eg" + // 0x01610307: 0x00001E67 + "\x1eb\x03\a\x00\x00\x1eh" + // 0x1E620307: 0x00001E68 + "\x1ec\x03\a\x00\x00\x1ei" + // 0x1E630307: 0x00001E69 + "\x00T\x03\a\x00\x00\x1ej" + // 0x00540307: 0x00001E6A + "\x00t\x03\a\x00\x00\x1ek" + // 0x00740307: 0x00001E6B + "\x00T\x03#\x00\x00\x1el" + // 0x00540323: 0x00001E6C + "\x00t\x03#\x00\x00\x1em" + // 0x00740323: 0x00001E6D + "\x00T\x031\x00\x00\x1en" + // 0x00540331: 0x00001E6E + "\x00t\x031\x00\x00\x1eo" + // 0x00740331: 0x00001E6F + "\x00T\x03-\x00\x00\x1ep" + // 0x0054032D: 0x00001E70 + "\x00t\x03-\x00\x00\x1eq" + // 0x0074032D: 0x00001E71 + "\x00U\x03$\x00\x00\x1er" + // 0x00550324: 0x00001E72 + "\x00u\x03$\x00\x00\x1es" + // 0x00750324: 0x00001E73 + "\x00U\x030\x00\x00\x1et" + // 0x00550330: 0x00001E74 + "\x00u\x030\x00\x00\x1eu" + // 0x00750330: 0x00001E75 + "\x00U\x03-\x00\x00\x1ev" + // 0x0055032D: 0x00001E76 + "\x00u\x03-\x00\x00\x1ew" + // 0x0075032D: 0x00001E77 + "\x01h\x03\x01\x00\x00\x1ex" + // 0x01680301: 0x00001E78 + "\x01i\x03\x01\x00\x00\x1ey" + // 0x01690301: 0x00001E79 + "\x01j\x03\b\x00\x00\x1ez" + // 0x016A0308: 0x00001E7A + "\x01k\x03\b\x00\x00\x1e{" + // 0x016B0308: 0x00001E7B + "\x00V\x03\x03\x00\x00\x1e|" + // 0x00560303: 0x00001E7C + "\x00v\x03\x03\x00\x00\x1e}" + // 0x00760303: 0x00001E7D + "\x00V\x03#\x00\x00\x1e~" + // 0x00560323: 0x00001E7E + "\x00v\x03#\x00\x00\x1e\u007f" + // 0x00760323: 0x00001E7F + "\x00W\x03\x00\x00\x00\x1e\x80" + // 0x00570300: 0x00001E80 + "\x00w\x03\x00\x00\x00\x1e\x81" + // 0x00770300: 0x00001E81 + "\x00W\x03\x01\x00\x00\x1e\x82" + // 0x00570301: 0x00001E82 + "\x00w\x03\x01\x00\x00\x1e\x83" + // 0x00770301: 0x00001E83 + "\x00W\x03\b\x00\x00\x1e\x84" + // 0x00570308: 0x00001E84 + "\x00w\x03\b\x00\x00\x1e\x85" + // 0x00770308: 0x00001E85 + "\x00W\x03\a\x00\x00\x1e\x86" + // 0x00570307: 0x00001E86 + "\x00w\x03\a\x00\x00\x1e\x87" + // 0x00770307: 0x00001E87 + "\x00W\x03#\x00\x00\x1e\x88" + // 0x00570323: 0x00001E88 + "\x00w\x03#\x00\x00\x1e\x89" + // 0x00770323: 0x00001E89 + "\x00X\x03\a\x00\x00\x1e\x8a" + // 0x00580307: 0x00001E8A + "\x00x\x03\a\x00\x00\x1e\x8b" + // 0x00780307: 0x00001E8B + "\x00X\x03\b\x00\x00\x1e\x8c" + // 0x00580308: 0x00001E8C + "\x00x\x03\b\x00\x00\x1e\x8d" + // 0x00780308: 0x00001E8D + "\x00Y\x03\a\x00\x00\x1e\x8e" + // 0x00590307: 0x00001E8E + "\x00y\x03\a\x00\x00\x1e\x8f" + // 0x00790307: 0x00001E8F + "\x00Z\x03\x02\x00\x00\x1e\x90" + // 0x005A0302: 0x00001E90 + "\x00z\x03\x02\x00\x00\x1e\x91" + // 0x007A0302: 0x00001E91 + "\x00Z\x03#\x00\x00\x1e\x92" + // 0x005A0323: 0x00001E92 + "\x00z\x03#\x00\x00\x1e\x93" + // 0x007A0323: 0x00001E93 + "\x00Z\x031\x00\x00\x1e\x94" + // 0x005A0331: 0x00001E94 + "\x00z\x031\x00\x00\x1e\x95" + // 0x007A0331: 0x00001E95 + "\x00h\x031\x00\x00\x1e\x96" + // 0x00680331: 0x00001E96 + "\x00t\x03\b\x00\x00\x1e\x97" + // 0x00740308: 0x00001E97 + "\x00w\x03\n\x00\x00\x1e\x98" + // 0x0077030A: 0x00001E98 + "\x00y\x03\n\x00\x00\x1e\x99" + // 0x0079030A: 0x00001E99 + "\x01\u007f\x03\a\x00\x00\x1e\x9b" + // 0x017F0307: 0x00001E9B + "\x00A\x03#\x00\x00\x1e\xa0" + // 0x00410323: 0x00001EA0 + "\x00a\x03#\x00\x00\x1e\xa1" + // 0x00610323: 0x00001EA1 + "\x00A\x03\t\x00\x00\x1e\xa2" + // 0x00410309: 0x00001EA2 + "\x00a\x03\t\x00\x00\x1e\xa3" + // 0x00610309: 0x00001EA3 + "\x00\xc2\x03\x01\x00\x00\x1e\xa4" + // 0x00C20301: 0x00001EA4 + "\x00\xe2\x03\x01\x00\x00\x1e\xa5" + // 0x00E20301: 0x00001EA5 + "\x00\xc2\x03\x00\x00\x00\x1e\xa6" + // 0x00C20300: 0x00001EA6 + "\x00\xe2\x03\x00\x00\x00\x1e\xa7" + // 0x00E20300: 0x00001EA7 + "\x00\xc2\x03\t\x00\x00\x1e\xa8" + // 0x00C20309: 0x00001EA8 + "\x00\xe2\x03\t\x00\x00\x1e\xa9" + // 0x00E20309: 0x00001EA9 + "\x00\xc2\x03\x03\x00\x00\x1e\xaa" + // 0x00C20303: 0x00001EAA + "\x00\xe2\x03\x03\x00\x00\x1e\xab" + // 0x00E20303: 0x00001EAB + "\x1e\xa0\x03\x02\x00\x00\x1e\xac" + // 0x1EA00302: 0x00001EAC + "\x1e\xa1\x03\x02\x00\x00\x1e\xad" + // 0x1EA10302: 0x00001EAD + "\x01\x02\x03\x01\x00\x00\x1e\xae" + // 0x01020301: 0x00001EAE + "\x01\x03\x03\x01\x00\x00\x1e\xaf" + // 0x01030301: 0x00001EAF + "\x01\x02\x03\x00\x00\x00\x1e\xb0" + // 0x01020300: 0x00001EB0 + "\x01\x03\x03\x00\x00\x00\x1e\xb1" + // 0x01030300: 0x00001EB1 + "\x01\x02\x03\t\x00\x00\x1e\xb2" + // 0x01020309: 0x00001EB2 + "\x01\x03\x03\t\x00\x00\x1e\xb3" + // 0x01030309: 0x00001EB3 + "\x01\x02\x03\x03\x00\x00\x1e\xb4" + // 0x01020303: 0x00001EB4 + "\x01\x03\x03\x03\x00\x00\x1e\xb5" + // 0x01030303: 0x00001EB5 + "\x1e\xa0\x03\x06\x00\x00\x1e\xb6" + // 0x1EA00306: 0x00001EB6 + "\x1e\xa1\x03\x06\x00\x00\x1e\xb7" + // 0x1EA10306: 0x00001EB7 + "\x00E\x03#\x00\x00\x1e\xb8" + // 0x00450323: 0x00001EB8 + "\x00e\x03#\x00\x00\x1e\xb9" + // 0x00650323: 0x00001EB9 + "\x00E\x03\t\x00\x00\x1e\xba" + // 0x00450309: 0x00001EBA + "\x00e\x03\t\x00\x00\x1e\xbb" + // 0x00650309: 0x00001EBB + "\x00E\x03\x03\x00\x00\x1e\xbc" + // 0x00450303: 0x00001EBC + "\x00e\x03\x03\x00\x00\x1e\xbd" + // 0x00650303: 0x00001EBD + "\x00\xca\x03\x01\x00\x00\x1e\xbe" + // 0x00CA0301: 0x00001EBE + "\x00\xea\x03\x01\x00\x00\x1e\xbf" + // 0x00EA0301: 0x00001EBF + "\x00\xca\x03\x00\x00\x00\x1e\xc0" + // 0x00CA0300: 0x00001EC0 + "\x00\xea\x03\x00\x00\x00\x1e\xc1" + // 0x00EA0300: 0x00001EC1 + "\x00\xca\x03\t\x00\x00\x1e\xc2" + // 0x00CA0309: 0x00001EC2 + "\x00\xea\x03\t\x00\x00\x1e\xc3" + // 0x00EA0309: 0x00001EC3 + "\x00\xca\x03\x03\x00\x00\x1e\xc4" + // 0x00CA0303: 0x00001EC4 + "\x00\xea\x03\x03\x00\x00\x1e\xc5" + // 0x00EA0303: 0x00001EC5 + "\x1e\xb8\x03\x02\x00\x00\x1e\xc6" + // 0x1EB80302: 0x00001EC6 + "\x1e\xb9\x03\x02\x00\x00\x1e\xc7" + // 0x1EB90302: 0x00001EC7 + "\x00I\x03\t\x00\x00\x1e\xc8" + // 0x00490309: 0x00001EC8 + "\x00i\x03\t\x00\x00\x1e\xc9" + // 0x00690309: 0x00001EC9 + "\x00I\x03#\x00\x00\x1e\xca" + // 0x00490323: 0x00001ECA + "\x00i\x03#\x00\x00\x1e\xcb" + // 0x00690323: 0x00001ECB + "\x00O\x03#\x00\x00\x1e\xcc" + // 0x004F0323: 0x00001ECC + "\x00o\x03#\x00\x00\x1e\xcd" + // 0x006F0323: 0x00001ECD + "\x00O\x03\t\x00\x00\x1e\xce" + // 0x004F0309: 0x00001ECE + "\x00o\x03\t\x00\x00\x1e\xcf" + // 0x006F0309: 0x00001ECF + "\x00\xd4\x03\x01\x00\x00\x1e\xd0" + // 0x00D40301: 0x00001ED0 + "\x00\xf4\x03\x01\x00\x00\x1e\xd1" + // 0x00F40301: 0x00001ED1 + "\x00\xd4\x03\x00\x00\x00\x1e\xd2" + // 0x00D40300: 0x00001ED2 + "\x00\xf4\x03\x00\x00\x00\x1e\xd3" + // 0x00F40300: 0x00001ED3 + "\x00\xd4\x03\t\x00\x00\x1e\xd4" + // 0x00D40309: 0x00001ED4 + "\x00\xf4\x03\t\x00\x00\x1e\xd5" + // 0x00F40309: 0x00001ED5 + "\x00\xd4\x03\x03\x00\x00\x1e\xd6" + // 0x00D40303: 0x00001ED6 + "\x00\xf4\x03\x03\x00\x00\x1e\xd7" + // 0x00F40303: 0x00001ED7 + "\x1e\xcc\x03\x02\x00\x00\x1e\xd8" + // 0x1ECC0302: 0x00001ED8 + "\x1e\xcd\x03\x02\x00\x00\x1e\xd9" + // 0x1ECD0302: 0x00001ED9 + "\x01\xa0\x03\x01\x00\x00\x1e\xda" + // 0x01A00301: 0x00001EDA + "\x01\xa1\x03\x01\x00\x00\x1e\xdb" + // 0x01A10301: 0x00001EDB + "\x01\xa0\x03\x00\x00\x00\x1e\xdc" + // 0x01A00300: 0x00001EDC + "\x01\xa1\x03\x00\x00\x00\x1e\xdd" + // 0x01A10300: 0x00001EDD + "\x01\xa0\x03\t\x00\x00\x1e\xde" + // 0x01A00309: 0x00001EDE + "\x01\xa1\x03\t\x00\x00\x1e\xdf" + // 0x01A10309: 0x00001EDF + "\x01\xa0\x03\x03\x00\x00\x1e\xe0" + // 0x01A00303: 0x00001EE0 + "\x01\xa1\x03\x03\x00\x00\x1e\xe1" + // 0x01A10303: 0x00001EE1 + "\x01\xa0\x03#\x00\x00\x1e\xe2" + // 0x01A00323: 0x00001EE2 + "\x01\xa1\x03#\x00\x00\x1e\xe3" + // 0x01A10323: 0x00001EE3 + "\x00U\x03#\x00\x00\x1e\xe4" + // 0x00550323: 0x00001EE4 + "\x00u\x03#\x00\x00\x1e\xe5" + // 0x00750323: 0x00001EE5 + "\x00U\x03\t\x00\x00\x1e\xe6" + // 0x00550309: 0x00001EE6 + "\x00u\x03\t\x00\x00\x1e\xe7" + // 0x00750309: 0x00001EE7 + "\x01\xaf\x03\x01\x00\x00\x1e\xe8" + // 0x01AF0301: 0x00001EE8 + "\x01\xb0\x03\x01\x00\x00\x1e\xe9" + // 0x01B00301: 0x00001EE9 + "\x01\xaf\x03\x00\x00\x00\x1e\xea" + // 0x01AF0300: 0x00001EEA + "\x01\xb0\x03\x00\x00\x00\x1e\xeb" + // 0x01B00300: 0x00001EEB + "\x01\xaf\x03\t\x00\x00\x1e\xec" + // 0x01AF0309: 0x00001EEC + "\x01\xb0\x03\t\x00\x00\x1e\xed" + // 0x01B00309: 0x00001EED + "\x01\xaf\x03\x03\x00\x00\x1e\xee" + // 0x01AF0303: 0x00001EEE + "\x01\xb0\x03\x03\x00\x00\x1e\xef" + // 0x01B00303: 0x00001EEF + "\x01\xaf\x03#\x00\x00\x1e\xf0" + // 0x01AF0323: 0x00001EF0 + "\x01\xb0\x03#\x00\x00\x1e\xf1" + // 0x01B00323: 0x00001EF1 + "\x00Y\x03\x00\x00\x00\x1e\xf2" + // 0x00590300: 0x00001EF2 + "\x00y\x03\x00\x00\x00\x1e\xf3" + // 0x00790300: 0x00001EF3 + "\x00Y\x03#\x00\x00\x1e\xf4" + // 0x00590323: 0x00001EF4 + "\x00y\x03#\x00\x00\x1e\xf5" + // 0x00790323: 0x00001EF5 + "\x00Y\x03\t\x00\x00\x1e\xf6" + // 0x00590309: 0x00001EF6 + "\x00y\x03\t\x00\x00\x1e\xf7" + // 0x00790309: 0x00001EF7 + "\x00Y\x03\x03\x00\x00\x1e\xf8" + // 0x00590303: 0x00001EF8 + "\x00y\x03\x03\x00\x00\x1e\xf9" + // 0x00790303: 0x00001EF9 + "\x03\xb1\x03\x13\x00\x00\x1f\x00" + // 0x03B10313: 0x00001F00 + "\x03\xb1\x03\x14\x00\x00\x1f\x01" + // 0x03B10314: 0x00001F01 + "\x1f\x00\x03\x00\x00\x00\x1f\x02" + // 0x1F000300: 0x00001F02 + "\x1f\x01\x03\x00\x00\x00\x1f\x03" + // 0x1F010300: 0x00001F03 + "\x1f\x00\x03\x01\x00\x00\x1f\x04" + // 0x1F000301: 0x00001F04 + "\x1f\x01\x03\x01\x00\x00\x1f\x05" + // 0x1F010301: 0x00001F05 + "\x1f\x00\x03B\x00\x00\x1f\x06" + // 0x1F000342: 0x00001F06 + "\x1f\x01\x03B\x00\x00\x1f\a" + // 0x1F010342: 0x00001F07 + "\x03\x91\x03\x13\x00\x00\x1f\b" + // 0x03910313: 0x00001F08 + "\x03\x91\x03\x14\x00\x00\x1f\t" + // 0x03910314: 0x00001F09 + "\x1f\b\x03\x00\x00\x00\x1f\n" + // 0x1F080300: 0x00001F0A + "\x1f\t\x03\x00\x00\x00\x1f\v" + // 0x1F090300: 0x00001F0B + "\x1f\b\x03\x01\x00\x00\x1f\f" + // 0x1F080301: 0x00001F0C + "\x1f\t\x03\x01\x00\x00\x1f\r" + // 0x1F090301: 0x00001F0D + "\x1f\b\x03B\x00\x00\x1f\x0e" + // 0x1F080342: 0x00001F0E + "\x1f\t\x03B\x00\x00\x1f\x0f" + // 0x1F090342: 0x00001F0F + "\x03\xb5\x03\x13\x00\x00\x1f\x10" + // 0x03B50313: 0x00001F10 + "\x03\xb5\x03\x14\x00\x00\x1f\x11" + // 0x03B50314: 0x00001F11 + "\x1f\x10\x03\x00\x00\x00\x1f\x12" + // 0x1F100300: 0x00001F12 + "\x1f\x11\x03\x00\x00\x00\x1f\x13" + // 0x1F110300: 0x00001F13 + "\x1f\x10\x03\x01\x00\x00\x1f\x14" + // 0x1F100301: 0x00001F14 + "\x1f\x11\x03\x01\x00\x00\x1f\x15" + // 0x1F110301: 0x00001F15 + "\x03\x95\x03\x13\x00\x00\x1f\x18" + // 0x03950313: 0x00001F18 + "\x03\x95\x03\x14\x00\x00\x1f\x19" + // 0x03950314: 0x00001F19 + "\x1f\x18\x03\x00\x00\x00\x1f\x1a" + // 0x1F180300: 0x00001F1A + "\x1f\x19\x03\x00\x00\x00\x1f\x1b" + // 0x1F190300: 0x00001F1B + "\x1f\x18\x03\x01\x00\x00\x1f\x1c" + // 0x1F180301: 0x00001F1C + "\x1f\x19\x03\x01\x00\x00\x1f\x1d" + // 0x1F190301: 0x00001F1D + "\x03\xb7\x03\x13\x00\x00\x1f " + // 0x03B70313: 0x00001F20 + "\x03\xb7\x03\x14\x00\x00\x1f!" + // 0x03B70314: 0x00001F21 + "\x1f \x03\x00\x00\x00\x1f\"" + // 0x1F200300: 0x00001F22 + "\x1f!\x03\x00\x00\x00\x1f#" + // 0x1F210300: 0x00001F23 + "\x1f \x03\x01\x00\x00\x1f$" + // 0x1F200301: 0x00001F24 + "\x1f!\x03\x01\x00\x00\x1f%" + // 0x1F210301: 0x00001F25 + "\x1f \x03B\x00\x00\x1f&" + // 0x1F200342: 0x00001F26 + "\x1f!\x03B\x00\x00\x1f'" + // 0x1F210342: 0x00001F27 + "\x03\x97\x03\x13\x00\x00\x1f(" + // 0x03970313: 0x00001F28 + "\x03\x97\x03\x14\x00\x00\x1f)" + // 0x03970314: 0x00001F29 + "\x1f(\x03\x00\x00\x00\x1f*" + // 0x1F280300: 0x00001F2A + "\x1f)\x03\x00\x00\x00\x1f+" + // 0x1F290300: 0x00001F2B + "\x1f(\x03\x01\x00\x00\x1f," + // 0x1F280301: 0x00001F2C + "\x1f)\x03\x01\x00\x00\x1f-" + // 0x1F290301: 0x00001F2D + "\x1f(\x03B\x00\x00\x1f." + // 0x1F280342: 0x00001F2E + "\x1f)\x03B\x00\x00\x1f/" + // 0x1F290342: 0x00001F2F + "\x03\xb9\x03\x13\x00\x00\x1f0" + // 0x03B90313: 0x00001F30 + "\x03\xb9\x03\x14\x00\x00\x1f1" + // 0x03B90314: 0x00001F31 + "\x1f0\x03\x00\x00\x00\x1f2" + // 0x1F300300: 0x00001F32 + "\x1f1\x03\x00\x00\x00\x1f3" + // 0x1F310300: 0x00001F33 + "\x1f0\x03\x01\x00\x00\x1f4" + // 0x1F300301: 0x00001F34 + "\x1f1\x03\x01\x00\x00\x1f5" + // 0x1F310301: 0x00001F35 + "\x1f0\x03B\x00\x00\x1f6" + // 0x1F300342: 0x00001F36 + "\x1f1\x03B\x00\x00\x1f7" + // 0x1F310342: 0x00001F37 + "\x03\x99\x03\x13\x00\x00\x1f8" + // 0x03990313: 0x00001F38 + "\x03\x99\x03\x14\x00\x00\x1f9" + // 0x03990314: 0x00001F39 + "\x1f8\x03\x00\x00\x00\x1f:" + // 0x1F380300: 0x00001F3A + "\x1f9\x03\x00\x00\x00\x1f;" + // 0x1F390300: 0x00001F3B + "\x1f8\x03\x01\x00\x00\x1f<" + // 0x1F380301: 0x00001F3C + "\x1f9\x03\x01\x00\x00\x1f=" + // 0x1F390301: 0x00001F3D + "\x1f8\x03B\x00\x00\x1f>" + // 0x1F380342: 0x00001F3E + "\x1f9\x03B\x00\x00\x1f?" + // 0x1F390342: 0x00001F3F + "\x03\xbf\x03\x13\x00\x00\x1f@" + // 0x03BF0313: 0x00001F40 + "\x03\xbf\x03\x14\x00\x00\x1fA" + // 0x03BF0314: 0x00001F41 + "\x1f@\x03\x00\x00\x00\x1fB" + // 0x1F400300: 0x00001F42 + "\x1fA\x03\x00\x00\x00\x1fC" + // 0x1F410300: 0x00001F43 + "\x1f@\x03\x01\x00\x00\x1fD" + // 0x1F400301: 0x00001F44 + "\x1fA\x03\x01\x00\x00\x1fE" + // 0x1F410301: 0x00001F45 + "\x03\x9f\x03\x13\x00\x00\x1fH" + // 0x039F0313: 0x00001F48 + "\x03\x9f\x03\x14\x00\x00\x1fI" + // 0x039F0314: 0x00001F49 + "\x1fH\x03\x00\x00\x00\x1fJ" + // 0x1F480300: 0x00001F4A + "\x1fI\x03\x00\x00\x00\x1fK" + // 0x1F490300: 0x00001F4B + "\x1fH\x03\x01\x00\x00\x1fL" + // 0x1F480301: 0x00001F4C + "\x1fI\x03\x01\x00\x00\x1fM" + // 0x1F490301: 0x00001F4D + "\x03\xc5\x03\x13\x00\x00\x1fP" + // 0x03C50313: 0x00001F50 + "\x03\xc5\x03\x14\x00\x00\x1fQ" + // 0x03C50314: 0x00001F51 + "\x1fP\x03\x00\x00\x00\x1fR" + // 0x1F500300: 0x00001F52 + "\x1fQ\x03\x00\x00\x00\x1fS" + // 0x1F510300: 0x00001F53 + "\x1fP\x03\x01\x00\x00\x1fT" + // 0x1F500301: 0x00001F54 + "\x1fQ\x03\x01\x00\x00\x1fU" + // 0x1F510301: 0x00001F55 + "\x1fP\x03B\x00\x00\x1fV" + // 0x1F500342: 0x00001F56 + "\x1fQ\x03B\x00\x00\x1fW" + // 0x1F510342: 0x00001F57 + "\x03\xa5\x03\x14\x00\x00\x1fY" + // 0x03A50314: 0x00001F59 + "\x1fY\x03\x00\x00\x00\x1f[" + // 0x1F590300: 0x00001F5B + "\x1fY\x03\x01\x00\x00\x1f]" + // 0x1F590301: 0x00001F5D + "\x1fY\x03B\x00\x00\x1f_" + // 0x1F590342: 0x00001F5F + "\x03\xc9\x03\x13\x00\x00\x1f`" + // 0x03C90313: 0x00001F60 + "\x03\xc9\x03\x14\x00\x00\x1fa" + // 0x03C90314: 0x00001F61 + "\x1f`\x03\x00\x00\x00\x1fb" + // 0x1F600300: 0x00001F62 + "\x1fa\x03\x00\x00\x00\x1fc" + // 0x1F610300: 0x00001F63 + "\x1f`\x03\x01\x00\x00\x1fd" + // 0x1F600301: 0x00001F64 + "\x1fa\x03\x01\x00\x00\x1fe" + // 0x1F610301: 0x00001F65 + "\x1f`\x03B\x00\x00\x1ff" + // 0x1F600342: 0x00001F66 + "\x1fa\x03B\x00\x00\x1fg" + // 0x1F610342: 0x00001F67 + "\x03\xa9\x03\x13\x00\x00\x1fh" + // 0x03A90313: 0x00001F68 + "\x03\xa9\x03\x14\x00\x00\x1fi" + // 0x03A90314: 0x00001F69 + "\x1fh\x03\x00\x00\x00\x1fj" + // 0x1F680300: 0x00001F6A + "\x1fi\x03\x00\x00\x00\x1fk" + // 0x1F690300: 0x00001F6B + "\x1fh\x03\x01\x00\x00\x1fl" + // 0x1F680301: 0x00001F6C + "\x1fi\x03\x01\x00\x00\x1fm" + // 0x1F690301: 0x00001F6D + "\x1fh\x03B\x00\x00\x1fn" + // 0x1F680342: 0x00001F6E + "\x1fi\x03B\x00\x00\x1fo" + // 0x1F690342: 0x00001F6F + "\x03\xb1\x03\x00\x00\x00\x1fp" + // 0x03B10300: 0x00001F70 + "\x03\xb5\x03\x00\x00\x00\x1fr" + // 0x03B50300: 0x00001F72 + "\x03\xb7\x03\x00\x00\x00\x1ft" + // 0x03B70300: 0x00001F74 + "\x03\xb9\x03\x00\x00\x00\x1fv" + // 0x03B90300: 0x00001F76 + "\x03\xbf\x03\x00\x00\x00\x1fx" + // 0x03BF0300: 0x00001F78 + "\x03\xc5\x03\x00\x00\x00\x1fz" + // 0x03C50300: 0x00001F7A + "\x03\xc9\x03\x00\x00\x00\x1f|" + // 0x03C90300: 0x00001F7C + "\x1f\x00\x03E\x00\x00\x1f\x80" + // 0x1F000345: 0x00001F80 + "\x1f\x01\x03E\x00\x00\x1f\x81" + // 0x1F010345: 0x00001F81 + "\x1f\x02\x03E\x00\x00\x1f\x82" + // 0x1F020345: 0x00001F82 + "\x1f\x03\x03E\x00\x00\x1f\x83" + // 0x1F030345: 0x00001F83 + "\x1f\x04\x03E\x00\x00\x1f\x84" + // 0x1F040345: 0x00001F84 + "\x1f\x05\x03E\x00\x00\x1f\x85" + // 0x1F050345: 0x00001F85 + "\x1f\x06\x03E\x00\x00\x1f\x86" + // 0x1F060345: 0x00001F86 + "\x1f\a\x03E\x00\x00\x1f\x87" + // 0x1F070345: 0x00001F87 + "\x1f\b\x03E\x00\x00\x1f\x88" + // 0x1F080345: 0x00001F88 + "\x1f\t\x03E\x00\x00\x1f\x89" + // 0x1F090345: 0x00001F89 + "\x1f\n\x03E\x00\x00\x1f\x8a" + // 0x1F0A0345: 0x00001F8A + "\x1f\v\x03E\x00\x00\x1f\x8b" + // 0x1F0B0345: 0x00001F8B + "\x1f\f\x03E\x00\x00\x1f\x8c" + // 0x1F0C0345: 0x00001F8C + "\x1f\r\x03E\x00\x00\x1f\x8d" + // 0x1F0D0345: 0x00001F8D + "\x1f\x0e\x03E\x00\x00\x1f\x8e" + // 0x1F0E0345: 0x00001F8E + "\x1f\x0f\x03E\x00\x00\x1f\x8f" + // 0x1F0F0345: 0x00001F8F + "\x1f \x03E\x00\x00\x1f\x90" + // 0x1F200345: 0x00001F90 + "\x1f!\x03E\x00\x00\x1f\x91" + // 0x1F210345: 0x00001F91 + "\x1f\"\x03E\x00\x00\x1f\x92" + // 0x1F220345: 0x00001F92 + "\x1f#\x03E\x00\x00\x1f\x93" + // 0x1F230345: 0x00001F93 + "\x1f$\x03E\x00\x00\x1f\x94" + // 0x1F240345: 0x00001F94 + "\x1f%\x03E\x00\x00\x1f\x95" + // 0x1F250345: 0x00001F95 + "\x1f&\x03E\x00\x00\x1f\x96" + // 0x1F260345: 0x00001F96 + "\x1f'\x03E\x00\x00\x1f\x97" + // 0x1F270345: 0x00001F97 + "\x1f(\x03E\x00\x00\x1f\x98" + // 0x1F280345: 0x00001F98 + "\x1f)\x03E\x00\x00\x1f\x99" + // 0x1F290345: 0x00001F99 + "\x1f*\x03E\x00\x00\x1f\x9a" + // 0x1F2A0345: 0x00001F9A + "\x1f+\x03E\x00\x00\x1f\x9b" + // 0x1F2B0345: 0x00001F9B + "\x1f,\x03E\x00\x00\x1f\x9c" + // 0x1F2C0345: 0x00001F9C + "\x1f-\x03E\x00\x00\x1f\x9d" + // 0x1F2D0345: 0x00001F9D + "\x1f.\x03E\x00\x00\x1f\x9e" + // 0x1F2E0345: 0x00001F9E + "\x1f/\x03E\x00\x00\x1f\x9f" + // 0x1F2F0345: 0x00001F9F + "\x1f`\x03E\x00\x00\x1f\xa0" + // 0x1F600345: 0x00001FA0 + "\x1fa\x03E\x00\x00\x1f\xa1" + // 0x1F610345: 0x00001FA1 + "\x1fb\x03E\x00\x00\x1f\xa2" + // 0x1F620345: 0x00001FA2 + "\x1fc\x03E\x00\x00\x1f\xa3" + // 0x1F630345: 0x00001FA3 + "\x1fd\x03E\x00\x00\x1f\xa4" + // 0x1F640345: 0x00001FA4 + "\x1fe\x03E\x00\x00\x1f\xa5" + // 0x1F650345: 0x00001FA5 + "\x1ff\x03E\x00\x00\x1f\xa6" + // 0x1F660345: 0x00001FA6 + "\x1fg\x03E\x00\x00\x1f\xa7" + // 0x1F670345: 0x00001FA7 + "\x1fh\x03E\x00\x00\x1f\xa8" + // 0x1F680345: 0x00001FA8 + "\x1fi\x03E\x00\x00\x1f\xa9" + // 0x1F690345: 0x00001FA9 + "\x1fj\x03E\x00\x00\x1f\xaa" + // 0x1F6A0345: 0x00001FAA + "\x1fk\x03E\x00\x00\x1f\xab" + // 0x1F6B0345: 0x00001FAB + "\x1fl\x03E\x00\x00\x1f\xac" + // 0x1F6C0345: 0x00001FAC + "\x1fm\x03E\x00\x00\x1f\xad" + // 0x1F6D0345: 0x00001FAD + "\x1fn\x03E\x00\x00\x1f\xae" + // 0x1F6E0345: 0x00001FAE + "\x1fo\x03E\x00\x00\x1f\xaf" + // 0x1F6F0345: 0x00001FAF + "\x03\xb1\x03\x06\x00\x00\x1f\xb0" + // 0x03B10306: 0x00001FB0 + "\x03\xb1\x03\x04\x00\x00\x1f\xb1" + // 0x03B10304: 0x00001FB1 + "\x1fp\x03E\x00\x00\x1f\xb2" + // 0x1F700345: 0x00001FB2 + "\x03\xb1\x03E\x00\x00\x1f\xb3" + // 0x03B10345: 0x00001FB3 + "\x03\xac\x03E\x00\x00\x1f\xb4" + // 0x03AC0345: 0x00001FB4 + "\x03\xb1\x03B\x00\x00\x1f\xb6" + // 0x03B10342: 0x00001FB6 + "\x1f\xb6\x03E\x00\x00\x1f\xb7" + // 0x1FB60345: 0x00001FB7 + "\x03\x91\x03\x06\x00\x00\x1f\xb8" + // 0x03910306: 0x00001FB8 + "\x03\x91\x03\x04\x00\x00\x1f\xb9" + // 0x03910304: 0x00001FB9 + "\x03\x91\x03\x00\x00\x00\x1f\xba" + // 0x03910300: 0x00001FBA + "\x03\x91\x03E\x00\x00\x1f\xbc" + // 0x03910345: 0x00001FBC + "\x00\xa8\x03B\x00\x00\x1f\xc1" + // 0x00A80342: 0x00001FC1 + "\x1ft\x03E\x00\x00\x1f\xc2" + // 0x1F740345: 0x00001FC2 + "\x03\xb7\x03E\x00\x00\x1f\xc3" + // 0x03B70345: 0x00001FC3 + "\x03\xae\x03E\x00\x00\x1f\xc4" + // 0x03AE0345: 0x00001FC4 + "\x03\xb7\x03B\x00\x00\x1f\xc6" + // 0x03B70342: 0x00001FC6 + "\x1f\xc6\x03E\x00\x00\x1f\xc7" + // 0x1FC60345: 0x00001FC7 + "\x03\x95\x03\x00\x00\x00\x1f\xc8" + // 0x03950300: 0x00001FC8 + "\x03\x97\x03\x00\x00\x00\x1f\xca" + // 0x03970300: 0x00001FCA + "\x03\x97\x03E\x00\x00\x1f\xcc" + // 0x03970345: 0x00001FCC + "\x1f\xbf\x03\x00\x00\x00\x1f\xcd" + // 0x1FBF0300: 0x00001FCD + "\x1f\xbf\x03\x01\x00\x00\x1f\xce" + // 0x1FBF0301: 0x00001FCE + "\x1f\xbf\x03B\x00\x00\x1f\xcf" + // 0x1FBF0342: 0x00001FCF + "\x03\xb9\x03\x06\x00\x00\x1f\xd0" + // 0x03B90306: 0x00001FD0 + "\x03\xb9\x03\x04\x00\x00\x1f\xd1" + // 0x03B90304: 0x00001FD1 + "\x03\xca\x03\x00\x00\x00\x1f\xd2" + // 0x03CA0300: 0x00001FD2 + "\x03\xb9\x03B\x00\x00\x1f\xd6" + // 0x03B90342: 0x00001FD6 + "\x03\xca\x03B\x00\x00\x1f\xd7" + // 0x03CA0342: 0x00001FD7 + "\x03\x99\x03\x06\x00\x00\x1f\xd8" + // 0x03990306: 0x00001FD8 + "\x03\x99\x03\x04\x00\x00\x1f\xd9" + // 0x03990304: 0x00001FD9 + "\x03\x99\x03\x00\x00\x00\x1f\xda" + // 0x03990300: 0x00001FDA + "\x1f\xfe\x03\x00\x00\x00\x1f\xdd" + // 0x1FFE0300: 0x00001FDD + "\x1f\xfe\x03\x01\x00\x00\x1f\xde" + // 0x1FFE0301: 0x00001FDE + "\x1f\xfe\x03B\x00\x00\x1f\xdf" + // 0x1FFE0342: 0x00001FDF + "\x03\xc5\x03\x06\x00\x00\x1f\xe0" + // 0x03C50306: 0x00001FE0 + "\x03\xc5\x03\x04\x00\x00\x1f\xe1" + // 0x03C50304: 0x00001FE1 + "\x03\xcb\x03\x00\x00\x00\x1f\xe2" + // 0x03CB0300: 0x00001FE2 + "\x03\xc1\x03\x13\x00\x00\x1f\xe4" + // 0x03C10313: 0x00001FE4 + "\x03\xc1\x03\x14\x00\x00\x1f\xe5" + // 0x03C10314: 0x00001FE5 + "\x03\xc5\x03B\x00\x00\x1f\xe6" + // 0x03C50342: 0x00001FE6 + "\x03\xcb\x03B\x00\x00\x1f\xe7" + // 0x03CB0342: 0x00001FE7 + "\x03\xa5\x03\x06\x00\x00\x1f\xe8" + // 0x03A50306: 0x00001FE8 + "\x03\xa5\x03\x04\x00\x00\x1f\xe9" + // 0x03A50304: 0x00001FE9 + "\x03\xa5\x03\x00\x00\x00\x1f\xea" + // 0x03A50300: 0x00001FEA + "\x03\xa1\x03\x14\x00\x00\x1f\xec" + // 0x03A10314: 0x00001FEC + "\x00\xa8\x03\x00\x00\x00\x1f\xed" + // 0x00A80300: 0x00001FED + "\x1f|\x03E\x00\x00\x1f\xf2" + // 0x1F7C0345: 0x00001FF2 + "\x03\xc9\x03E\x00\x00\x1f\xf3" + // 0x03C90345: 0x00001FF3 + "\x03\xce\x03E\x00\x00\x1f\xf4" + // 0x03CE0345: 0x00001FF4 + "\x03\xc9\x03B\x00\x00\x1f\xf6" + // 0x03C90342: 0x00001FF6 + "\x1f\xf6\x03E\x00\x00\x1f\xf7" + // 0x1FF60345: 0x00001FF7 + "\x03\x9f\x03\x00\x00\x00\x1f\xf8" + // 0x039F0300: 0x00001FF8 + "\x03\xa9\x03\x00\x00\x00\x1f\xfa" + // 0x03A90300: 0x00001FFA + "\x03\xa9\x03E\x00\x00\x1f\xfc" + // 0x03A90345: 0x00001FFC + "!\x90\x038\x00\x00!\x9a" + // 0x21900338: 0x0000219A + "!\x92\x038\x00\x00!\x9b" + // 0x21920338: 0x0000219B + "!\x94\x038\x00\x00!\xae" + // 0x21940338: 0x000021AE + "!\xd0\x038\x00\x00!\xcd" + // 0x21D00338: 0x000021CD + "!\xd4\x038\x00\x00!\xce" + // 0x21D40338: 0x000021CE + "!\xd2\x038\x00\x00!\xcf" + // 0x21D20338: 0x000021CF + "\"\x03\x038\x00\x00\"\x04" + // 0x22030338: 0x00002204 + "\"\b\x038\x00\x00\"\t" + // 0x22080338: 0x00002209 + "\"\v\x038\x00\x00\"\f" + // 0x220B0338: 0x0000220C + "\"#\x038\x00\x00\"$" + // 0x22230338: 0x00002224 + "\"%\x038\x00\x00\"&" + // 0x22250338: 0x00002226 + "\"<\x038\x00\x00\"A" + // 0x223C0338: 0x00002241 + "\"C\x038\x00\x00\"D" + // 0x22430338: 0x00002244 + "\"E\x038\x00\x00\"G" + // 0x22450338: 0x00002247 + "\"H\x038\x00\x00\"I" + // 0x22480338: 0x00002249 + "\x00=\x038\x00\x00\"`" + // 0x003D0338: 0x00002260 + "\"a\x038\x00\x00\"b" + // 0x22610338: 0x00002262 + "\"M\x038\x00\x00\"m" + // 0x224D0338: 0x0000226D + "\x00<\x038\x00\x00\"n" + // 0x003C0338: 0x0000226E + "\x00>\x038\x00\x00\"o" + // 0x003E0338: 0x0000226F + "\"d\x038\x00\x00\"p" + // 0x22640338: 0x00002270 + "\"e\x038\x00\x00\"q" + // 0x22650338: 0x00002271 + "\"r\x038\x00\x00\"t" + // 0x22720338: 0x00002274 + "\"s\x038\x00\x00\"u" + // 0x22730338: 0x00002275 + "\"v\x038\x00\x00\"x" + // 0x22760338: 0x00002278 + "\"w\x038\x00\x00\"y" + // 0x22770338: 0x00002279 + "\"z\x038\x00\x00\"\x80" + // 0x227A0338: 0x00002280 + "\"{\x038\x00\x00\"\x81" + // 0x227B0338: 0x00002281 + "\"\x82\x038\x00\x00\"\x84" + // 0x22820338: 0x00002284 + "\"\x83\x038\x00\x00\"\x85" + // 0x22830338: 0x00002285 + "\"\x86\x038\x00\x00\"\x88" + // 0x22860338: 0x00002288 + "\"\x87\x038\x00\x00\"\x89" + // 0x22870338: 0x00002289 + "\"\xa2\x038\x00\x00\"\xac" + // 0x22A20338: 0x000022AC + "\"\xa8\x038\x00\x00\"\xad" + // 0x22A80338: 0x000022AD + "\"\xa9\x038\x00\x00\"\xae" + // 0x22A90338: 0x000022AE + "\"\xab\x038\x00\x00\"\xaf" + // 0x22AB0338: 0x000022AF + "\"|\x038\x00\x00\"\xe0" + // 0x227C0338: 0x000022E0 + "\"}\x038\x00\x00\"\xe1" + // 0x227D0338: 0x000022E1 + "\"\x91\x038\x00\x00\"\xe2" + // 0x22910338: 0x000022E2 + "\"\x92\x038\x00\x00\"\xe3" + // 0x22920338: 0x000022E3 + "\"\xb2\x038\x00\x00\"\xea" + // 0x22B20338: 0x000022EA + "\"\xb3\x038\x00\x00\"\xeb" + // 0x22B30338: 0x000022EB + "\"\xb4\x038\x00\x00\"\xec" + // 0x22B40338: 0x000022EC + "\"\xb5\x038\x00\x00\"\xed" + // 0x22B50338: 0x000022ED + "0K0\x99\x00\x000L" + // 0x304B3099: 0x0000304C + "0M0\x99\x00\x000N" + // 0x304D3099: 0x0000304E + "0O0\x99\x00\x000P" + // 0x304F3099: 0x00003050 + "0Q0\x99\x00\x000R" + // 0x30513099: 0x00003052 + "0S0\x99\x00\x000T" + // 0x30533099: 0x00003054 + "0U0\x99\x00\x000V" + // 0x30553099: 0x00003056 + "0W0\x99\x00\x000X" + // 0x30573099: 0x00003058 + "0Y0\x99\x00\x000Z" + // 0x30593099: 0x0000305A + "0[0\x99\x00\x000\\" + // 0x305B3099: 0x0000305C + "0]0\x99\x00\x000^" + // 0x305D3099: 0x0000305E + "0_0\x99\x00\x000`" + // 0x305F3099: 0x00003060 + "0a0\x99\x00\x000b" + // 0x30613099: 0x00003062 + "0d0\x99\x00\x000e" + // 0x30643099: 0x00003065 + "0f0\x99\x00\x000g" + // 0x30663099: 0x00003067 + "0h0\x99\x00\x000i" + // 0x30683099: 0x00003069 + "0o0\x99\x00\x000p" + // 0x306F3099: 0x00003070 + "0o0\x9a\x00\x000q" + // 0x306F309A: 0x00003071 + "0r0\x99\x00\x000s" + // 0x30723099: 0x00003073 + "0r0\x9a\x00\x000t" + // 0x3072309A: 0x00003074 + "0u0\x99\x00\x000v" + // 0x30753099: 0x00003076 + "0u0\x9a\x00\x000w" + // 0x3075309A: 0x00003077 + "0x0\x99\x00\x000y" + // 0x30783099: 0x00003079 + "0x0\x9a\x00\x000z" + // 0x3078309A: 0x0000307A + "0{0\x99\x00\x000|" + // 0x307B3099: 0x0000307C + "0{0\x9a\x00\x000}" + // 0x307B309A: 0x0000307D + "0F0\x99\x00\x000\x94" + // 0x30463099: 0x00003094 + "0\x9d0\x99\x00\x000\x9e" + // 0x309D3099: 0x0000309E + "0\xab0\x99\x00\x000\xac" + // 0x30AB3099: 0x000030AC + "0\xad0\x99\x00\x000\xae" + // 0x30AD3099: 0x000030AE + "0\xaf0\x99\x00\x000\xb0" + // 0x30AF3099: 0x000030B0 + "0\xb10\x99\x00\x000\xb2" + // 0x30B13099: 0x000030B2 + "0\xb30\x99\x00\x000\xb4" + // 0x30B33099: 0x000030B4 + "0\xb50\x99\x00\x000\xb6" + // 0x30B53099: 0x000030B6 + "0\xb70\x99\x00\x000\xb8" + // 0x30B73099: 0x000030B8 + "0\xb90\x99\x00\x000\xba" + // 0x30B93099: 0x000030BA + "0\xbb0\x99\x00\x000\xbc" + // 0x30BB3099: 0x000030BC + "0\xbd0\x99\x00\x000\xbe" + // 0x30BD3099: 0x000030BE + "0\xbf0\x99\x00\x000\xc0" + // 0x30BF3099: 0x000030C0 + "0\xc10\x99\x00\x000\xc2" + // 0x30C13099: 0x000030C2 + "0\xc40\x99\x00\x000\xc5" + // 0x30C43099: 0x000030C5 + "0\xc60\x99\x00\x000\xc7" + // 0x30C63099: 0x000030C7 + "0\xc80\x99\x00\x000\xc9" + // 0x30C83099: 0x000030C9 + "0\xcf0\x99\x00\x000\xd0" + // 0x30CF3099: 0x000030D0 + "0\xcf0\x9a\x00\x000\xd1" + // 0x30CF309A: 0x000030D1 + "0\xd20\x99\x00\x000\xd3" + // 0x30D23099: 0x000030D3 + "0\xd20\x9a\x00\x000\xd4" + // 0x30D2309A: 0x000030D4 + "0\xd50\x99\x00\x000\xd6" + // 0x30D53099: 0x000030D6 + "0\xd50\x9a\x00\x000\xd7" + // 0x30D5309A: 0x000030D7 + "0\xd80\x99\x00\x000\xd9" + // 0x30D83099: 0x000030D9 + "0\xd80\x9a\x00\x000\xda" + // 0x30D8309A: 0x000030DA + "0\xdb0\x99\x00\x000\xdc" + // 0x30DB3099: 0x000030DC + "0\xdb0\x9a\x00\x000\xdd" + // 0x30DB309A: 0x000030DD + "0\xa60\x99\x00\x000\xf4" + // 0x30A63099: 0x000030F4 + "0\xef0\x99\x00\x000\xf7" + // 0x30EF3099: 0x000030F7 + "0\xf00\x99\x00\x000\xf8" + // 0x30F03099: 0x000030F8 + "0\xf10\x99\x00\x000\xf9" + // 0x30F13099: 0x000030F9 + "0\xf20\x99\x00\x000\xfa" + // 0x30F23099: 0x000030FA + "0\xfd0\x99\x00\x000\xfe" + // 0x30FD3099: 0x000030FE + "\x10\x99\x10\xba\x00\x01\x10\x9a" + // 0x109910BA: 0x0001109A + "\x10\x9b\x10\xba\x00\x01\x10\x9c" + // 0x109B10BA: 0x0001109C + "\x10\xa5\x10\xba\x00\x01\x10\xab" + // 0x10A510BA: 0x000110AB + "\x111\x11'\x00\x01\x11." + // 0x11311127: 0x0001112E + "\x112\x11'\x00\x01\x11/" + // 0x11321127: 0x0001112F + "\x13G\x13>\x00\x01\x13K" + // 0x1347133E: 0x0001134B + "\x13G\x13W\x00\x01\x13L" + // 0x13471357: 0x0001134C + "\x14\xb9\x14\xba\x00\x01\x14\xbb" + // 0x14B914BA: 0x000114BB + "\x14\xb9\x14\xb0\x00\x01\x14\xbc" + // 0x14B914B0: 0x000114BC + "\x14\xb9\x14\xbd\x00\x01\x14\xbe" + // 0x14B914BD: 0x000114BE + "\x15\xb8\x15\xaf\x00\x01\x15\xba" + // 0x15B815AF: 0x000115BA + "\x15\xb9\x15\xaf\x00\x01\x15\xbb" + // 0x15B915AF: 0x000115BB + "" + // Total size of tables: 55KB (55977 bytes) diff --git a/vendor/google.golang.org/genproto/googleapis/api/annotations/annotations.pb.go b/vendor/google.golang.org/genproto/googleapis/api/annotations/annotations.pb.go index 4f3526e1d..2ac4deb0c 100644 --- a/vendor/google.golang.org/genproto/googleapis/api/annotations/annotations.pb.go +++ b/vendor/google.golang.org/genproto/googleapis/api/annotations/annotations.pb.go @@ -1,57 +1,124 @@ +// Copyright (c) 2015, Google Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.22.0 +// protoc v3.12.3 // source: google/api/annotations.proto package annotations import ( - fmt "fmt" - math "math" + reflect "reflect" proto "github.com/golang/protobuf/proto" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 -var E_Http = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.MethodOptions)(nil), - ExtensionType: (*HttpRule)(nil), - Field: 72295728, - Name: "google.api.http", - Tag: "bytes,72295728,opt,name=http", - Filename: "google/api/annotations.proto", +var file_google_api_annotations_proto_extTypes = []protoimpl.ExtensionInfo{ + { + ExtendedType: (*descriptor.MethodOptions)(nil), + ExtensionType: (*HttpRule)(nil), + Field: 72295728, + Name: "google.api.http", + Tag: "bytes,72295728,opt,name=http", + Filename: "google/api/annotations.proto", + }, } -func init() { - proto.RegisterExtension(E_Http) +// Extension fields to descriptor.MethodOptions. +var ( + // See `HttpRule`. + // + // optional google.api.HttpRule http = 72295728; + E_Http = &file_google_api_annotations_proto_extTypes[0] +) + +var File_google_api_annotations_proto protoreflect.FileDescriptor + +var file_google_api_annotations_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x15, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x3a, 0x4b, 0x0a, 0x04, 0x68, 0x74, 0x74, 0x70, 0x12, 0x1e, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xb0, 0xca, 0xbc, 0x22, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x04, 0x68, 0x74, 0x74, 0x70, + 0x42, 0x6e, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x42, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, + 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3b, 0x61, 0x6e, + 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50, 0x49, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { - proto.RegisterFile("google/api/annotations.proto", fileDescriptor_c591c5aa9fb79aab) +var file_google_api_annotations_proto_goTypes = []interface{}{ + (*descriptor.MethodOptions)(nil), // 0: google.protobuf.MethodOptions + (*HttpRule)(nil), // 1: google.api.HttpRule +} +var file_google_api_annotations_proto_depIdxs = []int32{ + 0, // 0: google.api.http:extendee -> google.protobuf.MethodOptions + 1, // 1: google.api.http:type_name -> google.api.HttpRule + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 1, // [1:2] is the sub-list for extension type_name + 0, // [0:1] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } -var fileDescriptor_c591c5aa9fb79aab = []byte{ - // 208 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x49, 0xcf, 0xcf, 0x4f, - 0xcf, 0x49, 0xd5, 0x4f, 0x2c, 0xc8, 0xd4, 0x4f, 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9, 0xcc, - 0xcf, 0x2b, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x82, 0xc8, 0xea, 0x25, 0x16, 0x64, - 0x4a, 0x89, 0x22, 0xa9, 0xcc, 0x28, 0x29, 0x29, 0x80, 0x28, 0x91, 0x52, 0x80, 0x0a, 0x83, 0x79, - 0x49, 0xa5, 0x69, 0xfa, 0x29, 0xa9, 0xc5, 0xc9, 0x45, 0x99, 0x05, 0x25, 0xf9, 0x45, 0x10, 0x15, - 0x56, 0xde, 0x5c, 0x2c, 0x20, 0xf5, 0x42, 0x72, 0x7a, 0x50, 0xd3, 0x60, 0x4a, 0xf5, 0x7c, 0x53, - 0x4b, 0x32, 0xf2, 0x53, 0xfc, 0x0b, 0xc0, 0x56, 0x4a, 0x6c, 0x38, 0xb5, 0x47, 0x49, 0x81, 0x51, - 0x83, 0xdb, 0x48, 0x44, 0x0f, 0x61, 0xad, 0x9e, 0x47, 0x49, 0x49, 0x41, 0x50, 0x69, 0x4e, 0x6a, - 0x10, 0xd8, 0x10, 0xa7, 0x3c, 0x2e, 0xbe, 0xe4, 0xfc, 0x5c, 0x24, 0x05, 0x4e, 0x02, 0x8e, 0x08, - 0x67, 0x07, 0x80, 0x4c, 0x0e, 0x60, 0x8c, 0x72, 0x84, 0xca, 0xa7, 0xe7, 0xe7, 0x24, 0xe6, 0xa5, - 0xeb, 0xe5, 0x17, 0xa5, 0xeb, 0xa7, 0xa7, 0xe6, 0x81, 0xed, 0xd5, 0x87, 0x48, 0x25, 0x16, 0x64, - 0x16, 0xa3, 0x7b, 0xda, 0x1a, 0x89, 0xbd, 0x88, 0x89, 0xc5, 0xdd, 0x31, 0xc0, 0x33, 0x89, 0x0d, - 0xac, 0xc9, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xe3, 0x29, 0x19, 0x62, 0x28, 0x01, 0x00, 0x00, +func init() { file_google_api_annotations_proto_init() } +func file_google_api_annotations_proto_init() { + if File_google_api_annotations_proto != nil { + return + } + file_google_api_http_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_api_annotations_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 1, + NumServices: 0, + }, + GoTypes: file_google_api_annotations_proto_goTypes, + DependencyIndexes: file_google_api_annotations_proto_depIdxs, + ExtensionInfos: file_google_api_annotations_proto_extTypes, + }.Build() + File_google_api_annotations_proto = out.File + file_google_api_annotations_proto_rawDesc = nil + file_google_api_annotations_proto_goTypes = nil + file_google_api_annotations_proto_depIdxs = nil } diff --git a/vendor/google.golang.org/genproto/googleapis/api/annotations/client.pb.go b/vendor/google.golang.org/genproto/googleapis/api/annotations/client.pb.go index 9757593e9..3832df0bd 100644 --- a/vendor/google.golang.org/genproto/googleapis/api/annotations/client.pb.go +++ b/vendor/google.golang.org/genproto/googleapis/api/annotations/client.pb.go @@ -1,81 +1,219 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.22.0 +// protoc v3.12.3 // source: google/api/client.proto package annotations import ( - fmt "fmt" - math "math" + reflect "reflect" proto "github.com/golang/protobuf/proto" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 -var E_MethodSignature = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.MethodOptions)(nil), - ExtensionType: ([]string)(nil), - Field: 1051, - Name: "google.api.method_signature", - Tag: "bytes,1051,rep,name=method_signature", - Filename: "google/api/client.proto", +var file_google_api_client_proto_extTypes = []protoimpl.ExtensionInfo{ + { + ExtendedType: (*descriptor.MethodOptions)(nil), + ExtensionType: ([]string)(nil), + Field: 1051, + Name: "google.api.method_signature", + Tag: "bytes,1051,rep,name=method_signature", + Filename: "google/api/client.proto", + }, + { + ExtendedType: (*descriptor.ServiceOptions)(nil), + ExtensionType: (*string)(nil), + Field: 1049, + Name: "google.api.default_host", + Tag: "bytes,1049,opt,name=default_host", + Filename: "google/api/client.proto", + }, + { + ExtendedType: (*descriptor.ServiceOptions)(nil), + ExtensionType: (*string)(nil), + Field: 1050, + Name: "google.api.oauth_scopes", + Tag: "bytes,1050,opt,name=oauth_scopes", + Filename: "google/api/client.proto", + }, } -var E_DefaultHost = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.ServiceOptions)(nil), - ExtensionType: (*string)(nil), - Field: 1049, - Name: "google.api.default_host", - Tag: "bytes,1049,opt,name=default_host", - Filename: "google/api/client.proto", +// Extension fields to descriptor.MethodOptions. +var ( + // A definition of a client library method signature. + // + // In client libraries, each proto RPC corresponds to one or more methods + // which the end user is able to call, and calls the underlying RPC. + // Normally, this method receives a single argument (a struct or instance + // corresponding to the RPC request object). Defining this field will + // add one or more overloads providing flattened or simpler method signatures + // in some languages. + // + // The fields on the method signature are provided as a comma-separated + // string. + // + // For example, the proto RPC and annotation: + // + // rpc CreateSubscription(CreateSubscriptionRequest) + // returns (Subscription) { + // option (google.api.method_signature) = "name,topic"; + // } + // + // Would add the following Java overload (in addition to the method accepting + // the request object): + // + // public final Subscription createSubscription(String name, String topic) + // + // The following backwards-compatibility guidelines apply: + // + // * Adding this annotation to an unannotated method is backwards + // compatible. + // * Adding this annotation to a method which already has existing + // method signature annotations is backwards compatible if and only if + // the new method signature annotation is last in the sequence. + // * Modifying or removing an existing method signature annotation is + // a breaking change. + // * Re-ordering existing method signature annotations is a breaking + // change. + // + // repeated string method_signature = 1051; + E_MethodSignature = &file_google_api_client_proto_extTypes[0] +) + +// Extension fields to descriptor.ServiceOptions. +var ( + // The hostname for this service. + // This should be specified with no prefix or protocol. + // + // Example: + // + // service Foo { + // option (google.api.default_host) = "foo.googleapi.com"; + // ... + // } + // + // optional string default_host = 1049; + E_DefaultHost = &file_google_api_client_proto_extTypes[1] + // OAuth scopes needed for the client. + // + // Example: + // + // service Foo { + // option (google.api.oauth_scopes) = \ + // "https://www.googleapis.com/auth/cloud-platform"; + // ... + // } + // + // If there is more than one scope, use a comma-separated string: + // + // Example: + // + // service Foo { + // option (google.api.oauth_scopes) = \ + // "https://www.googleapis.com/auth/cloud-platform," + // "https://www.googleapis.com/auth/monitoring"; + // ... + // } + // + // optional string oauth_scopes = 1050; + E_OauthScopes = &file_google_api_client_proto_extTypes[2] +) + +var File_google_api_client_proto protoreflect.FileDescriptor + +var file_google_api_client_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, + 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3a, 0x4a, 0x0a, 0x10, 0x6d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x9b, 0x08, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x3a, 0x43, 0x0a, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x68, + 0x6f, 0x73, 0x74, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x99, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x3a, 0x43, 0x0a, 0x0c, 0x6f, 0x61, 0x75, 0x74, + 0x68, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x9a, 0x08, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x42, 0x69, 0x0a, + 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x42, + 0x0b, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, + 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var E_OauthScopes = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.ServiceOptions)(nil), - ExtensionType: (*string)(nil), - Field: 1050, - Name: "google.api.oauth_scopes", - Tag: "bytes,1050,opt,name=oauth_scopes", - Filename: "google/api/client.proto", +var file_google_api_client_proto_goTypes = []interface{}{ + (*descriptor.MethodOptions)(nil), // 0: google.protobuf.MethodOptions + (*descriptor.ServiceOptions)(nil), // 1: google.protobuf.ServiceOptions +} +var file_google_api_client_proto_depIdxs = []int32{ + 0, // 0: google.api.method_signature:extendee -> google.protobuf.MethodOptions + 1, // 1: google.api.default_host:extendee -> google.protobuf.ServiceOptions + 1, // 2: google.api.oauth_scopes:extendee -> google.protobuf.ServiceOptions + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 0, // [0:3] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } -func init() { - proto.RegisterExtension(E_MethodSignature) - proto.RegisterExtension(E_DefaultHost) - proto.RegisterExtension(E_OauthScopes) -} - -func init() { - proto.RegisterFile("google/api/client.proto", fileDescriptor_78f2c6f7c3a942c1) -} - -var fileDescriptor_78f2c6f7c3a942c1 = []byte{ - // 262 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x3f, 0x4f, 0xc3, 0x30, - 0x10, 0xc5, 0x55, 0x40, 0xa8, 0x75, 0x11, 0xa0, 0x2c, 0x20, 0x06, 0xc8, 0xd8, 0xc9, 0x1e, 0xd8, - 0x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x6a, 0x8e, 0x5e, 0x0b, 0x0d, 0x36, 0xbe, 0x10, 0x7d, - 0x24, 0x9d, 0x09, 0x71, 0x5c, 0x69, 0x2d, 0x92, 0x8c, 0xbf, 0xee, 0x7e, 0xdd, 0x5f, 0x07, 0x47, - 0xf7, 0x8b, 0xe2, 0x71, 0x73, 0x1c, 0xa1, 0xdb, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcc, 0xc2, - 0xcf, 0x71, 0x90, 0x01, 0x00, 0x00, +func init() { file_google_api_client_proto_init() } +func file_google_api_client_proto_init() { + if File_google_api_client_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_api_client_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 3, + NumServices: 0, + }, + GoTypes: file_google_api_client_proto_goTypes, + DependencyIndexes: file_google_api_client_proto_depIdxs, + ExtensionInfos: file_google_api_client_proto_extTypes, + }.Build() + File_google_api_client_proto = out.File + file_google_api_client_proto_rawDesc = nil + file_google_api_client_proto_goTypes = nil + file_google_api_client_proto_depIdxs = nil } diff --git a/vendor/google.golang.org/genproto/googleapis/api/annotations/field_behavior.pb.go b/vendor/google.golang.org/genproto/googleapis/api/annotations/field_behavior.pb.go index 6e67a93fe..0038b20e4 100644 --- a/vendor/google.golang.org/genproto/googleapis/api/annotations/field_behavior.pb.go +++ b/vendor/google.golang.org/genproto/googleapis/api/annotations/field_behavior.pb.go @@ -1,26 +1,45 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.22.0 +// protoc v3.12.3 // source: google/api/field_behavior.proto package annotations import ( - fmt "fmt" - math "math" + reflect "reflect" + sync "sync" proto "github.com/golang/protobuf/proto" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 // An indicator of the behavior of a given field (for example, that a field // is required in requests, or given as output but ignored as input). @@ -56,69 +75,164 @@ const ( FieldBehavior_IMMUTABLE FieldBehavior = 5 ) -var FieldBehavior_name = map[int32]string{ - 0: "FIELD_BEHAVIOR_UNSPECIFIED", - 1: "OPTIONAL", - 2: "REQUIRED", - 3: "OUTPUT_ONLY", - 4: "INPUT_ONLY", - 5: "IMMUTABLE", -} +// Enum value maps for FieldBehavior. +var ( + FieldBehavior_name = map[int32]string{ + 0: "FIELD_BEHAVIOR_UNSPECIFIED", + 1: "OPTIONAL", + 2: "REQUIRED", + 3: "OUTPUT_ONLY", + 4: "INPUT_ONLY", + 5: "IMMUTABLE", + } + FieldBehavior_value = map[string]int32{ + "FIELD_BEHAVIOR_UNSPECIFIED": 0, + "OPTIONAL": 1, + "REQUIRED": 2, + "OUTPUT_ONLY": 3, + "INPUT_ONLY": 4, + "IMMUTABLE": 5, + } +) -var FieldBehavior_value = map[string]int32{ - "FIELD_BEHAVIOR_UNSPECIFIED": 0, - "OPTIONAL": 1, - "REQUIRED": 2, - "OUTPUT_ONLY": 3, - "INPUT_ONLY": 4, - "IMMUTABLE": 5, +func (x FieldBehavior) Enum() *FieldBehavior { + p := new(FieldBehavior) + *p = x + return p } func (x FieldBehavior) String() string { - return proto.EnumName(FieldBehavior_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (FieldBehavior) Descriptor() protoreflect.EnumDescriptor { + return file_google_api_field_behavior_proto_enumTypes[0].Descriptor() +} + +func (FieldBehavior) Type() protoreflect.EnumType { + return &file_google_api_field_behavior_proto_enumTypes[0] +} + +func (x FieldBehavior) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use FieldBehavior.Descriptor instead. func (FieldBehavior) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_4648f18fd5079967, []int{0} + return file_google_api_field_behavior_proto_rawDescGZIP(), []int{0} } -var E_FieldBehavior = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.FieldOptions)(nil), - ExtensionType: ([]FieldBehavior)(nil), - Field: 1052, - Name: "google.api.field_behavior", - Tag: "varint,1052,rep,name=field_behavior,enum=google.api.FieldBehavior", - Filename: "google/api/field_behavior.proto", +var file_google_api_field_behavior_proto_extTypes = []protoimpl.ExtensionInfo{ + { + ExtendedType: (*descriptor.FieldOptions)(nil), + ExtensionType: ([]FieldBehavior)(nil), + Field: 1052, + Name: "google.api.field_behavior", + Tag: "varint,1052,rep,name=field_behavior,enum=google.api.FieldBehavior", + Filename: "google/api/field_behavior.proto", + }, } -func init() { - proto.RegisterEnum("google.api.FieldBehavior", FieldBehavior_name, FieldBehavior_value) - proto.RegisterExtension(E_FieldBehavior) +// Extension fields to descriptor.FieldOptions. +var ( + // A designation of a specific field behavior (required, output only, etc.) + // in protobuf messages. + // + // Examples: + // + // string name = 1 [(google.api.field_behavior) = REQUIRED]; + // State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // google.protobuf.Duration ttl = 1 + // [(google.api.field_behavior) = INPUT_ONLY]; + // google.protobuf.Timestamp expire_time = 1 + // [(google.api.field_behavior) = OUTPUT_ONLY, + // (google.api.field_behavior) = IMMUTABLE]; + // + // repeated google.api.FieldBehavior field_behavior = 1052; + E_FieldBehavior = &file_google_api_field_behavior_proto_extTypes[0] +) + +var File_google_api_field_behavior_proto protoreflect.FileDescriptor + +var file_google_api_field_behavior_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x20, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2a, + 0x7b, 0x0a, 0x0d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, + 0x12, 0x1e, 0x0a, 0x1a, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x42, 0x45, 0x48, 0x41, 0x56, 0x49, + 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x0c, 0x0a, 0x08, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x0c, + 0x0a, 0x08, 0x52, 0x45, 0x51, 0x55, 0x49, 0x52, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, + 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x03, 0x12, 0x0e, 0x0a, + 0x0a, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x04, 0x12, 0x0d, 0x0a, + 0x09, 0x49, 0x4d, 0x4d, 0x55, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x05, 0x3a, 0x60, 0x0a, 0x0e, + 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x12, 0x1d, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x9c, 0x08, + 0x20, 0x03, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x52, + 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x42, 0x70, + 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x42, 0x12, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, + 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3b, 0x61, 0x6e, + 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50, 0x49, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { - proto.RegisterFile("google/api/field_behavior.proto", fileDescriptor_4648f18fd5079967) +var ( + file_google_api_field_behavior_proto_rawDescOnce sync.Once + file_google_api_field_behavior_proto_rawDescData = file_google_api_field_behavior_proto_rawDesc +) + +func file_google_api_field_behavior_proto_rawDescGZIP() []byte { + file_google_api_field_behavior_proto_rawDescOnce.Do(func() { + file_google_api_field_behavior_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_field_behavior_proto_rawDescData) + }) + return file_google_api_field_behavior_proto_rawDescData } -var fileDescriptor_4648f18fd5079967 = []byte{ - // 303 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0x4f, 0x4f, 0xb3, 0x30, - 0x1c, 0xc7, 0x9f, 0xfd, 0x79, 0xcc, 0xac, 0x0e, 0x49, 0x4f, 0xba, 0x44, 0xdd, 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3b, 0xaa, 0x4b, 0xa9, 0xb2, 0xe2, 0xf0, 0x6b, 0x30, 0xee, 0x9d, 0x59, 0x17, - 0x47, 0xe8, 0xaf, 0x23, 0x6a, 0xe9, 0x87, 0xc3, 0x55, 0x33, 0x7a, 0x1a, 0x58, 0x0b, 0xf5, 0xd6, - 0xc0, 0x3d, 0xd8, 0xe2, 0x59, 0xf5, 0x0c, 0xeb, 0x3c, 0xbb, 0x35, 0x21, 0xd4, 0x9a, 0x67, 0x02, - 0xa9, 0x5c, 0x38, 0x22, 0xcd, 0x8c, 0x84, 0xb3, 0x19, 0x71, 0x2d, 0x0b, 0xf3, 0xe9, 0x3c, 0xcb, - 0x54, 0xc9, 0x8d, 0xcf, 0x75, 0xe3, 0xfc, 0xdd, 0xed, 0xdf, 0xba, 0x8c, 0xcc, 0x77, 0xcc, 0xa5, - 0xcb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x94, 0x57, 0x94, 0xa8, 0x01, 0x00, 0x00, +var file_google_api_field_behavior_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_google_api_field_behavior_proto_goTypes = []interface{}{ + (FieldBehavior)(0), // 0: google.api.FieldBehavior + (*descriptor.FieldOptions)(nil), // 1: google.protobuf.FieldOptions +} +var file_google_api_field_behavior_proto_depIdxs = []int32{ + 1, // 0: google.api.field_behavior:extendee -> google.protobuf.FieldOptions + 0, // 1: google.api.field_behavior:type_name -> google.api.FieldBehavior + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 1, // [1:2] is the sub-list for extension type_name + 0, // [0:1] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_api_field_behavior_proto_init() } +func file_google_api_field_behavior_proto_init() { + if File_google_api_field_behavior_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_api_field_behavior_proto_rawDesc, + NumEnums: 1, + NumMessages: 0, + NumExtensions: 1, + NumServices: 0, + }, + GoTypes: file_google_api_field_behavior_proto_goTypes, + DependencyIndexes: file_google_api_field_behavior_proto_depIdxs, + EnumInfos: file_google_api_field_behavior_proto_enumTypes, + ExtensionInfos: file_google_api_field_behavior_proto_extTypes, + }.Build() + File_google_api_field_behavior_proto = out.File + file_google_api_field_behavior_proto_rawDesc = nil + file_google_api_field_behavior_proto_goTypes = nil + file_google_api_field_behavior_proto_depIdxs = nil } diff --git a/vendor/google.golang.org/genproto/googleapis/api/annotations/http.pb.go b/vendor/google.golang.org/genproto/googleapis/api/annotations/http.pb.go index 6ed6f3c91..955bc56a3 100644 --- a/vendor/google.golang.org/genproto/googleapis/api/annotations/http.pb.go +++ b/vendor/google.golang.org/genproto/googleapis/api/annotations/http.pb.go @@ -1,30 +1,53 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.22.0 +// protoc v3.12.3 // source: google/api/http.proto package annotations import ( - fmt "fmt" - math "math" + reflect "reflect" + sync "sync" proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 // Defines the HTTP configuration for an API service. It contains a list of // [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method // to one or more HTTP REST API methods. type Http struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // A list of HTTP configuration rules that apply to individual API methods. // // **NOTE:** All service configuration rules follow "last one wins" order. @@ -35,47 +58,51 @@ type Http struct { // // The default behavior is to not decode RFC 6570 reserved characters in multi // segment matches. - FullyDecodeReservedExpansion bool `protobuf:"varint,2,opt,name=fully_decode_reserved_expansion,json=fullyDecodeReservedExpansion,proto3" json:"fully_decode_reserved_expansion,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + FullyDecodeReservedExpansion bool `protobuf:"varint,2,opt,name=fully_decode_reserved_expansion,json=fullyDecodeReservedExpansion,proto3" json:"fully_decode_reserved_expansion,omitempty"` } -func (m *Http) Reset() { *m = Http{} } -func (m *Http) String() string { return proto.CompactTextString(m) } -func (*Http) ProtoMessage() {} +func (x *Http) Reset() { + *x = Http{} + if protoimpl.UnsafeEnabled { + mi := &file_google_api_http_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Http) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Http) ProtoMessage() {} + +func (x *Http) ProtoReflect() protoreflect.Message { + mi := &file_google_api_http_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Http.ProtoReflect.Descriptor instead. func (*Http) Descriptor() ([]byte, []int) { - return fileDescriptor_ff9994be407cdcc9, []int{0} + return file_google_api_http_proto_rawDescGZIP(), []int{0} } -func (m *Http) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Http.Unmarshal(m, b) -} -func (m *Http) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Http.Marshal(b, m, deterministic) -} -func (m *Http) XXX_Merge(src proto.Message) { - xxx_messageInfo_Http.Merge(m, src) -} -func (m *Http) XXX_Size() int { - return xxx_messageInfo_Http.Size(m) -} -func (m *Http) XXX_DiscardUnknown() { - xxx_messageInfo_Http.DiscardUnknown(m) -} - -var xxx_messageInfo_Http proto.InternalMessageInfo - -func (m *Http) GetRules() []*HttpRule { - if m != nil { - return m.Rules +func (x *Http) GetRules() []*HttpRule { + if x != nil { + return x.Rules } return nil } -func (m *Http) GetFullyDecodeReservedExpansion() bool { - if m != nil { - return m.FullyDecodeReservedExpansion +func (x *Http) GetFullyDecodeReservedExpansion() bool { + if x != nil { + return x.FullyDecodeReservedExpansion } return false } @@ -350,6 +377,10 @@ func (m *Http) GetFullyDecodeReservedExpansion() bool { // the request or response body to a repeated field. However, some gRPC // Transcoding implementations may not support this feature. type HttpRule struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Selects a method to which this rule applies. // // Refer to [selector][google.api.DocumentationRule.selector] for syntax details. @@ -358,7 +389,7 @@ type HttpRule struct { // used with any of the {get|put|post|delete|patch} methods. A custom method // can be defined using the 'custom' field. // - // Types that are valid to be assigned to Pattern: + // Types that are assignable to Pattern: // *HttpRule_Get // *HttpRule_Put // *HttpRule_Post @@ -383,69 +414,153 @@ type HttpRule struct { // Additional HTTP bindings for the selector. Nested bindings must // not contain an `additional_bindings` field themselves (that is, // the nesting may only be one level deep). - AdditionalBindings []*HttpRule `protobuf:"bytes,11,rep,name=additional_bindings,json=additionalBindings,proto3" json:"additional_bindings,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + AdditionalBindings []*HttpRule `protobuf:"bytes,11,rep,name=additional_bindings,json=additionalBindings,proto3" json:"additional_bindings,omitempty"` } -func (m *HttpRule) Reset() { *m = HttpRule{} } -func (m *HttpRule) String() string { return proto.CompactTextString(m) } -func (*HttpRule) ProtoMessage() {} +func (x *HttpRule) Reset() { + *x = HttpRule{} + if protoimpl.UnsafeEnabled { + mi := &file_google_api_http_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HttpRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HttpRule) ProtoMessage() {} + +func (x *HttpRule) ProtoReflect() protoreflect.Message { + mi := &file_google_api_http_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HttpRule.ProtoReflect.Descriptor instead. func (*HttpRule) Descriptor() ([]byte, []int) { - return fileDescriptor_ff9994be407cdcc9, []int{1} + return file_google_api_http_proto_rawDescGZIP(), []int{1} } -func (m *HttpRule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HttpRule.Unmarshal(m, b) -} -func (m *HttpRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HttpRule.Marshal(b, m, deterministic) -} -func (m *HttpRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_HttpRule.Merge(m, src) -} -func (m *HttpRule) XXX_Size() int { - return xxx_messageInfo_HttpRule.Size(m) -} -func (m *HttpRule) XXX_DiscardUnknown() { - xxx_messageInfo_HttpRule.DiscardUnknown(m) -} - -var xxx_messageInfo_HttpRule proto.InternalMessageInfo - -func (m *HttpRule) GetSelector() string { - if m != nil { - return m.Selector +func (x *HttpRule) GetSelector() string { + if x != nil { + return x.Selector } return "" } +func (m *HttpRule) GetPattern() isHttpRule_Pattern { + if m != nil { + return m.Pattern + } + return nil +} + +func (x *HttpRule) GetGet() string { + if x, ok := x.GetPattern().(*HttpRule_Get); ok { + return x.Get + } + return "" +} + +func (x *HttpRule) GetPut() string { + if x, ok := x.GetPattern().(*HttpRule_Put); ok { + return x.Put + } + return "" +} + +func (x *HttpRule) GetPost() string { + if x, ok := x.GetPattern().(*HttpRule_Post); ok { + return x.Post + } + return "" +} + +func (x *HttpRule) GetDelete() string { + if x, ok := x.GetPattern().(*HttpRule_Delete); ok { + return x.Delete + } + return "" +} + +func (x *HttpRule) GetPatch() string { + if x, ok := x.GetPattern().(*HttpRule_Patch); ok { + return x.Patch + } + return "" +} + +func (x *HttpRule) GetCustom() *CustomHttpPattern { + if x, ok := x.GetPattern().(*HttpRule_Custom); ok { + return x.Custom + } + return nil +} + +func (x *HttpRule) GetBody() string { + if x != nil { + return x.Body + } + return "" +} + +func (x *HttpRule) GetResponseBody() string { + if x != nil { + return x.ResponseBody + } + return "" +} + +func (x *HttpRule) GetAdditionalBindings() []*HttpRule { + if x != nil { + return x.AdditionalBindings + } + return nil +} + type isHttpRule_Pattern interface { isHttpRule_Pattern() } type HttpRule_Get struct { + // Maps to HTTP GET. Used for listing and getting information about + // resources. Get string `protobuf:"bytes,2,opt,name=get,proto3,oneof"` } type HttpRule_Put struct { + // Maps to HTTP PUT. Used for replacing a resource. Put string `protobuf:"bytes,3,opt,name=put,proto3,oneof"` } type HttpRule_Post struct { + // Maps to HTTP POST. Used for creating a resource or performing an action. Post string `protobuf:"bytes,4,opt,name=post,proto3,oneof"` } type HttpRule_Delete struct { + // Maps to HTTP DELETE. Used for deleting a resource. Delete string `protobuf:"bytes,5,opt,name=delete,proto3,oneof"` } type HttpRule_Patch struct { + // Maps to HTTP PATCH. Used for updating a resource. Patch string `protobuf:"bytes,6,opt,name=patch,proto3,oneof"` } type HttpRule_Custom struct { + // The custom pattern is used for specifying an HTTP method that is not + // included in the `pattern` field, such as HEAD, or "*" to leave the + // HTTP method unspecified for this rule. The wild-card rule is useful + // for services that provide content to Web (HTML) clients. Custom *CustomHttpPattern `protobuf:"bytes,8,opt,name=custom,proto3,oneof"` } @@ -461,79 +576,185 @@ func (*HttpRule_Patch) isHttpRule_Pattern() {} func (*HttpRule_Custom) isHttpRule_Pattern() {} -func (m *HttpRule) GetPattern() isHttpRule_Pattern { - if m != nil { - return m.Pattern - } - return nil +// A custom pattern is used for defining custom HTTP verb. +type CustomHttpPattern struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name of this custom HTTP verb. + Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` + // The path matched by this custom verb. + Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` } -func (m *HttpRule) GetGet() string { - if x, ok := m.GetPattern().(*HttpRule_Get); ok { - return x.Get +func (x *CustomHttpPattern) Reset() { + *x = CustomHttpPattern{} + if protoimpl.UnsafeEnabled { + mi := &file_google_api_http_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CustomHttpPattern) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CustomHttpPattern) ProtoMessage() {} + +func (x *CustomHttpPattern) ProtoReflect() protoreflect.Message { + mi := &file_google_api_http_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CustomHttpPattern.ProtoReflect.Descriptor instead. +func (*CustomHttpPattern) Descriptor() ([]byte, []int) { + return file_google_api_http_proto_rawDescGZIP(), []int{2} +} + +func (x *CustomHttpPattern) GetKind() string { + if x != nil { + return x.Kind } return "" } -func (m *HttpRule) GetPut() string { - if x, ok := m.GetPattern().(*HttpRule_Put); ok { - return x.Put +func (x *CustomHttpPattern) GetPath() string { + if x != nil { + return x.Path } return "" } -func (m *HttpRule) GetPost() string { - if x, ok := m.GetPattern().(*HttpRule_Post); ok { - return x.Post - } - return "" +var File_google_api_http_proto protoreflect.FileDescriptor + +var file_google_api_http_proto_rawDesc = []byte{ + 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x68, 0x74, 0x74, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x22, 0x79, 0x0a, 0x04, 0x48, 0x74, 0x74, 0x70, 0x12, 0x2a, 0x0a, 0x05, 0x72, + 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x52, 0x75, 0x6c, 0x65, + 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x45, 0x0a, 0x1f, 0x66, 0x75, 0x6c, 0x6c, 0x79, + 0x5f, 0x64, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, + 0x5f, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x1c, 0x66, 0x75, 0x6c, 0x6c, 0x79, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x64, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xda, + 0x02, 0x0a, 0x08, 0x48, 0x74, 0x74, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, + 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, + 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x03, 0x67, 0x65, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x67, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x03, 0x70, + 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x70, 0x75, 0x74, 0x12, + 0x14, 0x0a, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, + 0x04, 0x70, 0x6f, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, + 0x16, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, + 0x52, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x12, 0x37, 0x0a, 0x06, 0x63, 0x75, 0x73, 0x74, 0x6f, + 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x48, 0x74, 0x74, 0x70, 0x50, + 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x48, 0x00, 0x52, 0x06, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, + 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x62, 0x6f, 0x64, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x45, 0x0a, 0x13, 0x61, 0x64, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, + 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x12, 0x61, 0x64, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, + 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x22, 0x3b, 0x0a, 0x11, 0x43, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x48, 0x74, 0x74, 0x70, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, + 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x42, 0x6a, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x42, 0x09, 0x48, 0x74, 0x74, 0x70, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3b, 0x61, + 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, + 0x47, 0x41, 0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (m *HttpRule) GetDelete() string { - if x, ok := m.GetPattern().(*HttpRule_Delete); ok { - return x.Delete - } - return "" +var ( + file_google_api_http_proto_rawDescOnce sync.Once + file_google_api_http_proto_rawDescData = file_google_api_http_proto_rawDesc +) + +func file_google_api_http_proto_rawDescGZIP() []byte { + file_google_api_http_proto_rawDescOnce.Do(func() { + file_google_api_http_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_http_proto_rawDescData) + }) + return file_google_api_http_proto_rawDescData } -func (m *HttpRule) GetPatch() string { - if x, ok := m.GetPattern().(*HttpRule_Patch); ok { - return x.Patch - } - return "" +var file_google_api_http_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_google_api_http_proto_goTypes = []interface{}{ + (*Http)(nil), // 0: google.api.Http + (*HttpRule)(nil), // 1: google.api.HttpRule + (*CustomHttpPattern)(nil), // 2: google.api.CustomHttpPattern +} +var file_google_api_http_proto_depIdxs = []int32{ + 1, // 0: google.api.Http.rules:type_name -> google.api.HttpRule + 2, // 1: google.api.HttpRule.custom:type_name -> google.api.CustomHttpPattern + 1, // 2: google.api.HttpRule.additional_bindings:type_name -> google.api.HttpRule + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name } -func (m *HttpRule) GetCustom() *CustomHttpPattern { - if x, ok := m.GetPattern().(*HttpRule_Custom); ok { - return x.Custom +func init() { file_google_api_http_proto_init() } +func file_google_api_http_proto_init() { + if File_google_api_http_proto != nil { + return } - return nil -} - -func (m *HttpRule) GetBody() string { - if m != nil { - return m.Body + if !protoimpl.UnsafeEnabled { + file_google_api_http_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Http); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_api_http_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HttpRule); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_api_http_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CustomHttpPattern); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - return "" -} - -func (m *HttpRule) GetResponseBody() string { - if m != nil { - return m.ResponseBody - } - return "" -} - -func (m *HttpRule) GetAdditionalBindings() []*HttpRule { - if m != nil { - return m.AdditionalBindings - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*HttpRule) XXX_OneofWrappers() []interface{} { - return []interface{}{ + file_google_api_http_proto_msgTypes[1].OneofWrappers = []interface{}{ (*HttpRule_Get)(nil), (*HttpRule_Put)(nil), (*HttpRule_Post)(nil), @@ -541,95 +762,22 @@ func (*HttpRule) XXX_OneofWrappers() []interface{} { (*HttpRule_Patch)(nil), (*HttpRule_Custom)(nil), } -} - -// A custom pattern is used for defining custom HTTP verb. -type CustomHttpPattern struct { - // The name of this custom HTTP verb. - Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` - // The path matched by this custom verb. - Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CustomHttpPattern) Reset() { *m = CustomHttpPattern{} } -func (m *CustomHttpPattern) String() string { return proto.CompactTextString(m) } -func (*CustomHttpPattern) ProtoMessage() {} -func (*CustomHttpPattern) Descriptor() ([]byte, []int) { - return fileDescriptor_ff9994be407cdcc9, []int{2} -} - -func (m *CustomHttpPattern) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CustomHttpPattern.Unmarshal(m, b) -} -func (m *CustomHttpPattern) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CustomHttpPattern.Marshal(b, m, deterministic) -} -func (m *CustomHttpPattern) XXX_Merge(src proto.Message) { - xxx_messageInfo_CustomHttpPattern.Merge(m, src) -} -func (m *CustomHttpPattern) XXX_Size() int { - return xxx_messageInfo_CustomHttpPattern.Size(m) -} -func (m *CustomHttpPattern) XXX_DiscardUnknown() { - xxx_messageInfo_CustomHttpPattern.DiscardUnknown(m) -} - -var xxx_messageInfo_CustomHttpPattern proto.InternalMessageInfo - -func (m *CustomHttpPattern) GetKind() string { - if m != nil { - return m.Kind - } - return "" -} - -func (m *CustomHttpPattern) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -func init() { - proto.RegisterType((*Http)(nil), "google.api.Http") - proto.RegisterType((*HttpRule)(nil), "google.api.HttpRule") - proto.RegisterType((*CustomHttpPattern)(nil), "google.api.CustomHttpPattern") -} - -func init() { - proto.RegisterFile("google/api/http.proto", fileDescriptor_ff9994be407cdcc9) -} - -var fileDescriptor_ff9994be407cdcc9 = []byte{ - // 419 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x8e, 0xd3, 0x30, - 0x10, 0x86, 0x49, 0x9b, 0x76, 0xdb, 0xe9, 0x82, 0x84, 0x59, 0x90, 0x85, 0x40, 0x54, 0xe5, 0x52, - 0x71, 0x48, 0xa5, 0xe5, 0xc0, 0x61, 0x4f, 0x1b, 0xa8, 0x58, 0x6e, 0x55, 0x8e, 0x5c, 0x22, 0x37, - 0x1e, 0x52, 0x83, 0xd7, 0xb6, 0xe2, 0x09, 0xa2, 0xaf, 0xc3, 0x63, 0xf1, 0x24, 0x1c, 0x91, 0x9d, - 0x84, 0x56, 0x42, 0xe2, 0x36, 0xf3, 0xff, 0x9f, 0xa7, 0x7f, 0x27, 0x03, 0x4f, 0x6b, 0x6b, 0x6b, - 0x8d, 0x1b, 0xe1, 0xd4, 0xe6, 0x40, 0xe4, 0x32, 0xd7, 0x58, 0xb2, 0x0c, 0x3a, 0x39, 0x13, 0x4e, - 0xad, 0x8e, 0x90, 0xde, 0x11, 0x39, 0xf6, 0x06, 0x26, 0x4d, 0xab, 0xd1, 0xf3, 0x64, 0x39, 0x5e, - 0x2f, 0xae, 0xaf, 0xb2, 0x13, 0x93, 0x05, 0xa0, 0x68, 0x35, 0x16, 0x1d, 0xc2, 0xb6, 0xf0, 0xea, - 0x4b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0x76, 0x7a, 0x90, 0xf7, 0x7c, 0x3e, 0x87, 0x0b, - 0xd7, 0x85, 0x5a, 0xdd, 0xc0, 0xe3, 0x7f, 0x92, 0x86, 0x7c, 0xdf, 0x94, 0x91, 0xfd, 0x82, 0x63, - 0x1d, 0x34, 0x27, 0xe8, 0xd0, 0x6d, 0xb7, 0x88, 0x75, 0xfe, 0x15, 0x1e, 0x55, 0xf6, 0xfe, 0xec, - 0x67, 0xf3, 0x79, 0x1c, 0x13, 0xae, 0x67, 0x97, 0x7c, 0xbe, 0xed, 0x8d, 0xda, 0x6a, 0x61, 0xea, - 0xcc, 0x36, 0xf5, 0xa6, 0x46, 0x13, 0x6f, 0x6b, 0xd3, 0x59, 0xc2, 0x29, 0x1f, 0xaf, 0x4e, 0x18, - 0x63, 0x49, 0x84, 0x98, 0xfe, 0xe6, 0xac, 0xfe, 0x9d, 0x24, 0x3f, 0x47, 0xe9, 0xc7, 0xdb, 0xdd, - 0xa7, 0xfd, 0x34, 0xbe, 0x7b, 0xfb, 0x27, 0x00, 0x00, 0xff, 0xff, 0xae, 0xde, 0xa1, 0xd0, 0xac, - 0x02, 0x00, 0x00, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_api_http_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_api_http_proto_goTypes, + DependencyIndexes: file_google_api_http_proto_depIdxs, + MessageInfos: file_google_api_http_proto_msgTypes, + }.Build() + File_google_api_http_proto = out.File + file_google_api_http_proto_rawDesc = nil + file_google_api_http_proto_goTypes = nil + file_google_api_http_proto_depIdxs = nil } diff --git a/vendor/google.golang.org/genproto/googleapis/api/annotations/resource.pb.go b/vendor/google.golang.org/genproto/googleapis/api/annotations/resource.pb.go index 17048707d..ff6147fe2 100644 --- a/vendor/google.golang.org/genproto/googleapis/api/annotations/resource.pb.go +++ b/vendor/google.golang.org/genproto/googleapis/api/annotations/resource.pb.go @@ -1,26 +1,45 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.22.0 +// protoc v3.12.3 // source: google/api/resource.proto package annotations import ( - fmt "fmt" - math "math" + reflect "reflect" + sync "sync" proto "github.com/golang/protobuf/proto" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 // A description of the historical or future-looking state of the // resource pattern. @@ -38,24 +57,45 @@ const ( ResourceDescriptor_FUTURE_MULTI_PATTERN ResourceDescriptor_History = 2 ) -var ResourceDescriptor_History_name = map[int32]string{ - 0: "HISTORY_UNSPECIFIED", - 1: "ORIGINALLY_SINGLE_PATTERN", - 2: "FUTURE_MULTI_PATTERN", -} +// Enum value maps for ResourceDescriptor_History. +var ( + ResourceDescriptor_History_name = map[int32]string{ + 0: "HISTORY_UNSPECIFIED", + 1: "ORIGINALLY_SINGLE_PATTERN", + 2: "FUTURE_MULTI_PATTERN", + } + ResourceDescriptor_History_value = map[string]int32{ + "HISTORY_UNSPECIFIED": 0, + "ORIGINALLY_SINGLE_PATTERN": 1, + "FUTURE_MULTI_PATTERN": 2, + } +) -var ResourceDescriptor_History_value = map[string]int32{ - "HISTORY_UNSPECIFIED": 0, - "ORIGINALLY_SINGLE_PATTERN": 1, - "FUTURE_MULTI_PATTERN": 2, +func (x ResourceDescriptor_History) Enum() *ResourceDescriptor_History { + p := new(ResourceDescriptor_History) + *p = x + return p } func (x ResourceDescriptor_History) String() string { - return proto.EnumName(ResourceDescriptor_History_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (ResourceDescriptor_History) Descriptor() protoreflect.EnumDescriptor { + return file_google_api_resource_proto_enumTypes[0].Descriptor() +} + +func (ResourceDescriptor_History) Type() protoreflect.EnumType { + return &file_google_api_resource_proto_enumTypes[0] +} + +func (x ResourceDescriptor_History) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ResourceDescriptor_History.Descriptor instead. func (ResourceDescriptor_History) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_465e9122405d1bb5, []int{0, 0} + return file_google_api_resource_proto_rawDescGZIP(), []int{0, 0} } // A simple descriptor of a resource type. @@ -167,6 +207,10 @@ func (ResourceDescriptor_History) EnumDescriptor() ([]byte, []int) { // - pattern: "shelves/{shelf}" // parent_type: "cloudresourcemanager.googleapis.com/Folder" type ResourceDescriptor struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The resource type. It must be in the format of // {service_name}/{resource_type_kind}. The `resource_type_kind` must be // singular and must not include version numbers. @@ -217,83 +261,91 @@ type ResourceDescriptor struct { // }; // } History ResourceDescriptor_History `protobuf:"varint,4,opt,name=history,proto3,enum=google.api.ResourceDescriptor_History" json:"history,omitempty"` - // The plural name used in the resource name, such as 'projects' for - // the name of 'projects/{project}'. It is the same concept of the `plural` - // field in k8s CRD spec + // The plural name used in the resource name and permission names, such as + // 'projects' for the resource name of 'projects/{project}' and the permission + // name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same + // concept of the `plural` field in k8s CRD spec // https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + // + // Note: The plural form is required even for singleton resources. See + // https://aip.dev/156 Plural string `protobuf:"bytes,5,opt,name=plural,proto3" json:"plural,omitempty"` // The same concept of the `singular` field in k8s CRD spec // https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ // Such as "project" for the `resourcemanager.googleapis.com/Project` type. - Singular string `protobuf:"bytes,6,opt,name=singular,proto3" json:"singular,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Singular string `protobuf:"bytes,6,opt,name=singular,proto3" json:"singular,omitempty"` } -func (m *ResourceDescriptor) Reset() { *m = ResourceDescriptor{} } -func (m *ResourceDescriptor) String() string { return proto.CompactTextString(m) } -func (*ResourceDescriptor) ProtoMessage() {} +func (x *ResourceDescriptor) Reset() { + *x = ResourceDescriptor{} + if protoimpl.UnsafeEnabled { + mi := &file_google_api_resource_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceDescriptor) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceDescriptor) ProtoMessage() {} + +func (x *ResourceDescriptor) ProtoReflect() protoreflect.Message { + mi := &file_google_api_resource_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResourceDescriptor.ProtoReflect.Descriptor instead. func (*ResourceDescriptor) Descriptor() ([]byte, []int) { - return fileDescriptor_465e9122405d1bb5, []int{0} + return file_google_api_resource_proto_rawDescGZIP(), []int{0} } -func (m *ResourceDescriptor) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResourceDescriptor.Unmarshal(m, b) -} -func (m *ResourceDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResourceDescriptor.Marshal(b, m, deterministic) -} -func (m *ResourceDescriptor) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceDescriptor.Merge(m, src) -} -func (m *ResourceDescriptor) XXX_Size() int { - return xxx_messageInfo_ResourceDescriptor.Size(m) -} -func (m *ResourceDescriptor) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceDescriptor.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceDescriptor proto.InternalMessageInfo - -func (m *ResourceDescriptor) GetType() string { - if m != nil { - return m.Type +func (x *ResourceDescriptor) GetType() string { + if x != nil { + return x.Type } return "" } -func (m *ResourceDescriptor) GetPattern() []string { - if m != nil { - return m.Pattern +func (x *ResourceDescriptor) GetPattern() []string { + if x != nil { + return x.Pattern } return nil } -func (m *ResourceDescriptor) GetNameField() string { - if m != nil { - return m.NameField +func (x *ResourceDescriptor) GetNameField() string { + if x != nil { + return x.NameField } return "" } -func (m *ResourceDescriptor) GetHistory() ResourceDescriptor_History { - if m != nil { - return m.History +func (x *ResourceDescriptor) GetHistory() ResourceDescriptor_History { + if x != nil { + return x.History } return ResourceDescriptor_HISTORY_UNSPECIFIED } -func (m *ResourceDescriptor) GetPlural() string { - if m != nil { - return m.Plural +func (x *ResourceDescriptor) GetPlural() string { + if x != nil { + return x.Plural } return "" } -func (m *ResourceDescriptor) GetSingular() string { - if m != nil { - return m.Singular +func (x *ResourceDescriptor) GetSingular() string { + if x != nil { + return x.Singular } return "" } @@ -301,6 +353,10 @@ func (m *ResourceDescriptor) GetSingular() string { // Defines a proto annotation that describes a string field that refers to // an API resource. type ResourceReference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The resource type that the annotated field references. // // Example: @@ -310,6 +366,17 @@ type ResourceReference struct { // type: "pubsub.googleapis.com/Topic" // }]; // } + // + // Occasionally, a field may reference an arbitrary resource. In this case, + // APIs use the special value * in their resource reference. + // + // Example: + // + // message GetIamPolicyRequest { + // string resource = 2 [(google.api.resource_reference) = { + // type: "*" + // }]; + // } Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // The resource type of a child collection that the annotated field // references. This is useful for annotating the `parent` field that @@ -322,122 +389,256 @@ type ResourceReference struct { // child_type: "logging.googleapis.com/LogEntry" // }; // } - ChildType string `protobuf:"bytes,2,opt,name=child_type,json=childType,proto3" json:"child_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ChildType string `protobuf:"bytes,2,opt,name=child_type,json=childType,proto3" json:"child_type,omitempty"` } -func (m *ResourceReference) Reset() { *m = ResourceReference{} } -func (m *ResourceReference) String() string { return proto.CompactTextString(m) } -func (*ResourceReference) ProtoMessage() {} +func (x *ResourceReference) Reset() { + *x = ResourceReference{} + if protoimpl.UnsafeEnabled { + mi := &file_google_api_resource_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceReference) ProtoMessage() {} + +func (x *ResourceReference) ProtoReflect() protoreflect.Message { + mi := &file_google_api_resource_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResourceReference.ProtoReflect.Descriptor instead. func (*ResourceReference) Descriptor() ([]byte, []int) { - return fileDescriptor_465e9122405d1bb5, []int{1} + return file_google_api_resource_proto_rawDescGZIP(), []int{1} } -func (m *ResourceReference) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResourceReference.Unmarshal(m, b) -} -func (m *ResourceReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResourceReference.Marshal(b, m, deterministic) -} -func (m *ResourceReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceReference.Merge(m, src) -} -func (m *ResourceReference) XXX_Size() int { - return xxx_messageInfo_ResourceReference.Size(m) -} -func (m *ResourceReference) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceReference.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceReference proto.InternalMessageInfo - -func (m *ResourceReference) GetType() string { - if m != nil { - return m.Type +func (x *ResourceReference) GetType() string { + if x != nil { + return x.Type } return "" } -func (m *ResourceReference) GetChildType() string { - if m != nil { - return m.ChildType +func (x *ResourceReference) GetChildType() string { + if x != nil { + return x.ChildType } return "" } -var E_ResourceReference = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.FieldOptions)(nil), - ExtensionType: (*ResourceReference)(nil), - Field: 1055, - Name: "google.api.resource_reference", - Tag: "bytes,1055,opt,name=resource_reference", - Filename: "google/api/resource.proto", +var file_google_api_resource_proto_extTypes = []protoimpl.ExtensionInfo{ + { + ExtendedType: (*descriptor.FieldOptions)(nil), + ExtensionType: (*ResourceReference)(nil), + Field: 1055, + Name: "google.api.resource_reference", + Tag: "bytes,1055,opt,name=resource_reference", + Filename: "google/api/resource.proto", + }, + { + ExtendedType: (*descriptor.FileOptions)(nil), + ExtensionType: ([]*ResourceDescriptor)(nil), + Field: 1053, + Name: "google.api.resource_definition", + Tag: "bytes,1053,rep,name=resource_definition", + Filename: "google/api/resource.proto", + }, + { + ExtendedType: (*descriptor.MessageOptions)(nil), + ExtensionType: (*ResourceDescriptor)(nil), + Field: 1053, + Name: "google.api.resource", + Tag: "bytes,1053,opt,name=resource", + Filename: "google/api/resource.proto", + }, } -var E_ResourceDefinition = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.FileOptions)(nil), - ExtensionType: ([]*ResourceDescriptor)(nil), - Field: 1053, - Name: "google.api.resource_definition", - Tag: "bytes,1053,rep,name=resource_definition", - Filename: "google/api/resource.proto", +// Extension fields to descriptor.FieldOptions. +var ( + // An annotation that describes a resource reference, see + // [ResourceReference][]. + // + // optional google.api.ResourceReference resource_reference = 1055; + E_ResourceReference = &file_google_api_resource_proto_extTypes[0] +) + +// Extension fields to descriptor.FileOptions. +var ( + // An annotation that describes a resource definition without a corresponding + // message; see [ResourceDescriptor][]. + // + // repeated google.api.ResourceDescriptor resource_definition = 1053; + E_ResourceDefinition = &file_google_api_resource_proto_extTypes[1] +) + +// Extension fields to descriptor.MessageOptions. +var ( + // An annotation that describes a resource definition, see + // [ResourceDescriptor][]. + // + // optional google.api.ResourceDescriptor resource = 1053; + E_Resource = &file_google_api_resource_proto_extTypes[2] +) + +var File_google_api_resource_proto protoreflect.FileDescriptor + +var file_google_api_resource_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x02, 0x0a, 0x12, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, + 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, 0x1d, + 0x0a, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x40, 0x0a, + 0x07, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x48, + 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x07, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, + 0x16, 0x0a, 0x06, 0x70, 0x6c, 0x75, 0x72, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x70, 0x6c, 0x75, 0x72, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x69, 0x6e, 0x67, 0x75, + 0x6c, 0x61, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x69, 0x6e, 0x67, 0x75, + 0x6c, 0x61, 0x72, 0x22, 0x5b, 0x0a, 0x07, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x17, + 0x0a, 0x13, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x52, 0x49, 0x47, 0x49, + 0x4e, 0x41, 0x4c, 0x4c, 0x59, 0x5f, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x5f, 0x50, 0x41, 0x54, + 0x54, 0x45, 0x52, 0x4e, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x46, 0x55, 0x54, 0x55, 0x52, 0x45, + 0x5f, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x5f, 0x50, 0x41, 0x54, 0x54, 0x45, 0x52, 0x4e, 0x10, 0x02, + 0x22, 0x46, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x69, + 0x6c, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, + 0x68, 0x69, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x6c, 0x0a, 0x12, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1d, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x9f, 0x08, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x52, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x3a, 0x6e, 0x0a, 0x13, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x9d, 0x08, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x6f, 0x72, 0x52, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x66, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x5c, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x9d, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x42, 0x6e, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x42, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3b, 0x61, + 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, + 0x47, 0x41, 0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var E_Resource = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.MessageOptions)(nil), - ExtensionType: (*ResourceDescriptor)(nil), - Field: 1053, - Name: "google.api.resource", - Tag: "bytes,1053,opt,name=resource", - Filename: "google/api/resource.proto", +var ( + file_google_api_resource_proto_rawDescOnce sync.Once + file_google_api_resource_proto_rawDescData = file_google_api_resource_proto_rawDesc +) + +func file_google_api_resource_proto_rawDescGZIP() []byte { + file_google_api_resource_proto_rawDescOnce.Do(func() { + file_google_api_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_resource_proto_rawDescData) + }) + return file_google_api_resource_proto_rawDescData } -func init() { - proto.RegisterEnum("google.api.ResourceDescriptor_History", ResourceDescriptor_History_name, ResourceDescriptor_History_value) - proto.RegisterType((*ResourceDescriptor)(nil), "google.api.ResourceDescriptor") - proto.RegisterType((*ResourceReference)(nil), "google.api.ResourceReference") - proto.RegisterExtension(E_ResourceReference) - proto.RegisterExtension(E_ResourceDefinition) - proto.RegisterExtension(E_Resource) +var file_google_api_resource_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_google_api_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_google_api_resource_proto_goTypes = []interface{}{ + (ResourceDescriptor_History)(0), // 0: google.api.ResourceDescriptor.History + (*ResourceDescriptor)(nil), // 1: google.api.ResourceDescriptor + (*ResourceReference)(nil), // 2: google.api.ResourceReference + (*descriptor.FieldOptions)(nil), // 3: google.protobuf.FieldOptions + (*descriptor.FileOptions)(nil), // 4: google.protobuf.FileOptions + (*descriptor.MessageOptions)(nil), // 5: google.protobuf.MessageOptions +} +var file_google_api_resource_proto_depIdxs = []int32{ + 0, // 0: google.api.ResourceDescriptor.history:type_name -> google.api.ResourceDescriptor.History + 3, // 1: google.api.resource_reference:extendee -> google.protobuf.FieldOptions + 4, // 2: google.api.resource_definition:extendee -> google.protobuf.FileOptions + 5, // 3: google.api.resource:extendee -> google.protobuf.MessageOptions + 2, // 4: google.api.resource_reference:type_name -> google.api.ResourceReference + 1, // 5: google.api.resource_definition:type_name -> google.api.ResourceDescriptor + 1, // 6: google.api.resource:type_name -> google.api.ResourceDescriptor + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 4, // [4:7] is the sub-list for extension type_name + 1, // [1:4] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } -func init() { - proto.RegisterFile("google/api/resource.proto", fileDescriptor_465e9122405d1bb5) -} - -var fileDescriptor_465e9122405d1bb5 = []byte{ - // 490 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xcd, 0x6e, 0xd3, 0x4c, - 0x14, 0xfd, 0x9c, 0xe4, 0xcb, 0xcf, 0xad, 0xa8, 0xda, 0x29, 0x02, 0xb7, 0x22, 0x60, 0x65, 0x81, - 0xb2, 0xb2, 0xa5, 0xb0, 0x0b, 0x1b, 0x52, 0xe2, 0xa4, 0x96, 0xd2, 0xc4, 0x9a, 0x38, 0x8b, 0x02, - 0x92, 0x35, 0x75, 0x26, 0xee, 0x48, 0xee, 0xcc, 0x68, 0xec, 0x2c, 0xf2, 0x30, 0x08, 0x89, 0x67, - 0xe0, 0xe1, 0x58, 0xa2, 0x8c, 0x7f, 0x88, 0x68, 0x84, 0xd8, 0xcd, 0xbd, 0xe7, 0xde, 0x73, 0x8e, - 0xcf, 0x95, 0xe1, 0x32, 0x16, 0x22,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xbf, 0x88, 0x70, 0x2e, 0x32, 0xa2, 0xad, 0xbc, 0x3f, 0x78, 0xff, 0x34, - 0x8c, 0xef, 0xb5, 0xc6, 0x74, 0xe4, 0x7b, 0xf7, 0x4d, 0xbd, 0xf7, 0xee, 0x57, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x75, 0x12, 0x53, 0xef, 0x7c, 0x03, 0x00, 0x00, +func init() { file_google_api_resource_proto_init() } +func file_google_api_resource_proto_init() { + if File_google_api_resource_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_api_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceDescriptor); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_api_resource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceReference); 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_google_api_resource_proto_rawDesc, + NumEnums: 1, + NumMessages: 2, + NumExtensions: 3, + NumServices: 0, + }, + GoTypes: file_google_api_resource_proto_goTypes, + DependencyIndexes: file_google_api_resource_proto_depIdxs, + EnumInfos: file_google_api_resource_proto_enumTypes, + MessageInfos: file_google_api_resource_proto_msgTypes, + ExtensionInfos: file_google_api_resource_proto_extTypes, + }.Build() + File_google_api_resource_proto = out.File + file_google_api_resource_proto_rawDesc = nil + file_google_api_resource_proto_goTypes = nil + file_google_api_resource_proto_depIdxs = nil } diff --git a/vendor/google.golang.org/genproto/googleapis/iam/v1/iam_policy.pb.go b/vendor/google.golang.org/genproto/googleapis/iam/v1/iam_policy.pb.go index 9950ac2d3..375d38765 100644 --- a/vendor/google.golang.org/genproto/googleapis/iam/v1/iam_policy.pb.go +++ b/vendor/google.golang.org/genproto/googleapis/iam/v1/iam_policy.pb.go @@ -1,33 +1,57 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.22.0 +// protoc v3.12.3 // source: google/iam/v1/iam_policy.proto package iam import ( context "context" - fmt "fmt" - math "math" + reflect "reflect" + sync "sync" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 // Request message for `SetIamPolicy` method. type SetIamPolicyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // REQUIRED: The resource for which the policy is being specified. // See the operation documentation for the appropriate value for this field. Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` @@ -35,105 +59,121 @@ type SetIamPolicyRequest struct { // the policy is limited to a few 10s of KB. An empty policy is a // valid policy but certain Cloud Platform services (such as Projects) // might reject them. - Policy *Policy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Policy *Policy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"` } -func (m *SetIamPolicyRequest) Reset() { *m = SetIamPolicyRequest{} } -func (m *SetIamPolicyRequest) String() string { return proto.CompactTextString(m) } -func (*SetIamPolicyRequest) ProtoMessage() {} +func (x *SetIamPolicyRequest) Reset() { + *x = SetIamPolicyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_iam_v1_iam_policy_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetIamPolicyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetIamPolicyRequest) ProtoMessage() {} + +func (x *SetIamPolicyRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_iam_v1_iam_policy_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SetIamPolicyRequest.ProtoReflect.Descriptor instead. func (*SetIamPolicyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d2728eb97d748a32, []int{0} + return file_google_iam_v1_iam_policy_proto_rawDescGZIP(), []int{0} } -func (m *SetIamPolicyRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetIamPolicyRequest.Unmarshal(m, b) -} -func (m *SetIamPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetIamPolicyRequest.Marshal(b, m, deterministic) -} -func (m *SetIamPolicyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetIamPolicyRequest.Merge(m, src) -} -func (m *SetIamPolicyRequest) XXX_Size() int { - return xxx_messageInfo_SetIamPolicyRequest.Size(m) -} -func (m *SetIamPolicyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetIamPolicyRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SetIamPolicyRequest proto.InternalMessageInfo - -func (m *SetIamPolicyRequest) GetResource() string { - if m != nil { - return m.Resource +func (x *SetIamPolicyRequest) GetResource() string { + if x != nil { + return x.Resource } return "" } -func (m *SetIamPolicyRequest) GetPolicy() *Policy { - if m != nil { - return m.Policy +func (x *SetIamPolicyRequest) GetPolicy() *Policy { + if x != nil { + return x.Policy } return nil } // Request message for `GetIamPolicy` method. type GetIamPolicyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // REQUIRED: The resource for which the policy is being requested. // See the operation documentation for the appropriate value for this field. Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // OPTIONAL: A `GetPolicyOptions` object for specifying options to // `GetIamPolicy`. This field is only used by Cloud IAM. - Options *GetPolicyOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Options *GetPolicyOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` } -func (m *GetIamPolicyRequest) Reset() { *m = GetIamPolicyRequest{} } -func (m *GetIamPolicyRequest) String() string { return proto.CompactTextString(m) } -func (*GetIamPolicyRequest) ProtoMessage() {} +func (x *GetIamPolicyRequest) Reset() { + *x = GetIamPolicyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_iam_v1_iam_policy_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetIamPolicyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetIamPolicyRequest) ProtoMessage() {} + +func (x *GetIamPolicyRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_iam_v1_iam_policy_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetIamPolicyRequest.ProtoReflect.Descriptor instead. func (*GetIamPolicyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d2728eb97d748a32, []int{1} + return file_google_iam_v1_iam_policy_proto_rawDescGZIP(), []int{1} } -func (m *GetIamPolicyRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetIamPolicyRequest.Unmarshal(m, b) -} -func (m *GetIamPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetIamPolicyRequest.Marshal(b, m, deterministic) -} -func (m *GetIamPolicyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetIamPolicyRequest.Merge(m, src) -} -func (m *GetIamPolicyRequest) XXX_Size() int { - return xxx_messageInfo_GetIamPolicyRequest.Size(m) -} -func (m *GetIamPolicyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetIamPolicyRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetIamPolicyRequest proto.InternalMessageInfo - -func (m *GetIamPolicyRequest) GetResource() string { - if m != nil { - return m.Resource +func (x *GetIamPolicyRequest) GetResource() string { + if x != nil { + return x.Resource } return "" } -func (m *GetIamPolicyRequest) GetOptions() *GetPolicyOptions { - if m != nil { - return m.Options +func (x *GetIamPolicyRequest) GetOptions() *GetPolicyOptions { + if x != nil { + return x.Options } return nil } // Request message for `TestIamPermissions` method. type TestIamPermissionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // REQUIRED: The resource for which the policy detail is being requested. // See the operation documentation for the appropriate value for this field. Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` @@ -141,139 +181,298 @@ type TestIamPermissionsRequest struct { // wildcards (such as '*' or 'storage.*') are not allowed. For more // information see // [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - Permissions []string `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Permissions []string `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"` } -func (m *TestIamPermissionsRequest) Reset() { *m = TestIamPermissionsRequest{} } -func (m *TestIamPermissionsRequest) String() string { return proto.CompactTextString(m) } -func (*TestIamPermissionsRequest) ProtoMessage() {} +func (x *TestIamPermissionsRequest) Reset() { + *x = TestIamPermissionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_iam_v1_iam_policy_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TestIamPermissionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TestIamPermissionsRequest) ProtoMessage() {} + +func (x *TestIamPermissionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_iam_v1_iam_policy_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TestIamPermissionsRequest.ProtoReflect.Descriptor instead. func (*TestIamPermissionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d2728eb97d748a32, []int{2} + return file_google_iam_v1_iam_policy_proto_rawDescGZIP(), []int{2} } -func (m *TestIamPermissionsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TestIamPermissionsRequest.Unmarshal(m, b) -} -func (m *TestIamPermissionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TestIamPermissionsRequest.Marshal(b, m, deterministic) -} -func (m *TestIamPermissionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TestIamPermissionsRequest.Merge(m, src) -} -func (m *TestIamPermissionsRequest) XXX_Size() int { - return xxx_messageInfo_TestIamPermissionsRequest.Size(m) -} -func (m *TestIamPermissionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TestIamPermissionsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TestIamPermissionsRequest proto.InternalMessageInfo - -func (m *TestIamPermissionsRequest) GetResource() string { - if m != nil { - return m.Resource +func (x *TestIamPermissionsRequest) GetResource() string { + if x != nil { + return x.Resource } return "" } -func (m *TestIamPermissionsRequest) GetPermissions() []string { - if m != nil { - return m.Permissions +func (x *TestIamPermissionsRequest) GetPermissions() []string { + if x != nil { + return x.Permissions } return nil } // Response message for `TestIamPermissions` method. type TestIamPermissionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // A subset of `TestPermissionsRequest.permissions` that the caller is // allowed. - Permissions []string `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Permissions []string `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"` } -func (m *TestIamPermissionsResponse) Reset() { *m = TestIamPermissionsResponse{} } -func (m *TestIamPermissionsResponse) String() string { return proto.CompactTextString(m) } -func (*TestIamPermissionsResponse) ProtoMessage() {} +func (x *TestIamPermissionsResponse) Reset() { + *x = TestIamPermissionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_iam_v1_iam_policy_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TestIamPermissionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TestIamPermissionsResponse) ProtoMessage() {} + +func (x *TestIamPermissionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_iam_v1_iam_policy_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TestIamPermissionsResponse.ProtoReflect.Descriptor instead. func (*TestIamPermissionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d2728eb97d748a32, []int{3} + return file_google_iam_v1_iam_policy_proto_rawDescGZIP(), []int{3} } -func (m *TestIamPermissionsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TestIamPermissionsResponse.Unmarshal(m, b) -} -func (m *TestIamPermissionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TestIamPermissionsResponse.Marshal(b, m, deterministic) -} -func (m *TestIamPermissionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TestIamPermissionsResponse.Merge(m, src) -} -func (m *TestIamPermissionsResponse) XXX_Size() int { - return xxx_messageInfo_TestIamPermissionsResponse.Size(m) -} -func (m *TestIamPermissionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TestIamPermissionsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TestIamPermissionsResponse proto.InternalMessageInfo - -func (m *TestIamPermissionsResponse) GetPermissions() []string { - if m != nil { - return m.Permissions +func (x *TestIamPermissionsResponse) GetPermissions() []string { + if x != nil { + return x.Permissions } return nil } -func init() { - proto.RegisterType((*SetIamPolicyRequest)(nil), "google.iam.v1.SetIamPolicyRequest") - proto.RegisterType((*GetIamPolicyRequest)(nil), "google.iam.v1.GetIamPolicyRequest") - proto.RegisterType((*TestIamPermissionsRequest)(nil), "google.iam.v1.TestIamPermissionsRequest") - proto.RegisterType((*TestIamPermissionsResponse)(nil), "google.iam.v1.TestIamPermissionsResponse") +var File_google_iam_v1_iam_policy_proto protoreflect.FileDescriptor + +var file_google_iam_v1_iam_policy_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, + 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x1a, + 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, + 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x70, 0x0a, 0x13, 0x53, + 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x25, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x09, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x03, 0x0a, 0x01, 0x2a, 0x52, + 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x70, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x77, 0x0a, + 0x13, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x03, 0x0a, 0x01, + 0x2a, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x69, 0x0a, 0x19, 0x54, 0x65, 0x73, 0x74, 0x49, 0x61, + 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x03, 0x0a, 0x01, 0x2a, + 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x70, 0x65, + 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x22, 0x3e, 0x0a, 0x1a, 0x54, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x32, 0xb4, 0x03, 0x0a, 0x09, 0x49, 0x41, 0x4d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, + 0x74, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, + 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x23, 0x22, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x3d, 0x2a, 0x2a, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x3a, 0x01, 0x2a, 0x12, 0x74, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, + 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x22, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d, 0x2a, 0x2a, 0x7d, 0x3a, 0x67, 0x65, 0x74, 0x49, + 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3a, 0x01, 0x2a, 0x12, 0x9a, 0x01, 0x0a, 0x12, + 0x54, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, + 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x22, + 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d, 0x2a, + 0x2a, 0x7d, 0x3a, 0x74, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x01, 0x2a, 0x1a, 0x1e, 0xca, 0x41, 0x1b, 0x69, 0x61, 0x6d, + 0x2d, 0x6d, 0x65, 0x74, 0x61, 0x2d, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x42, 0x86, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x42, 0x0e, + 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, + 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x69, + 0x61, 0x6d, 0xf8, 0x01, 0x01, 0xaa, 0x02, 0x13, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x49, 0x61, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x13, 0x47, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x49, 0x61, 0x6d, 0x5c, 0x56, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { - proto.RegisterFile("google/iam/v1/iam_policy.proto", fileDescriptor_d2728eb97d748a32) +var ( + file_google_iam_v1_iam_policy_proto_rawDescOnce sync.Once + file_google_iam_v1_iam_policy_proto_rawDescData = file_google_iam_v1_iam_policy_proto_rawDesc +) + +func file_google_iam_v1_iam_policy_proto_rawDescGZIP() []byte { + file_google_iam_v1_iam_policy_proto_rawDescOnce.Do(func() { + file_google_iam_v1_iam_policy_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_iam_v1_iam_policy_proto_rawDescData) + }) + return file_google_iam_v1_iam_policy_proto_rawDescData } -var fileDescriptor_d2728eb97d748a32 = []byte{ - // 514 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xc1, 0x8a, 0xd3, 0x40, - 0x18, 0x66, 0x52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f8, - 0xb7, 0x87, 0x74, 0xba, 0x7f, 0xc1, 0xd4, 0x77, 0x70, 0xfd, 0x62, 0xac, 0xae, 0x7b, 0x67, 0x7d, - 0x2c, 0xb5, 0xd6, 0x35, 0x00, 0x9e, 0xd3, 0x3a, 0x0d, 0x76, 0x29, 0x66, 0x07, 0x8c, 0x28, 0x7c, - 0x80, 0x05, 0x35, 0x56, 0x58, 0x50, 0x89, 0x22, 0xce, 0x86, 0x1f, 0x01, 0xbc, 0x1e, 0x71, 0x56, - 0x9d, 0x60, 0x78, 0xed, 0x3c, 0xe0, 0x38, 0x7f, 0x72, 0x63, 0xf0, 0xe2, 0xae, 0x21, 0xc4, 0x3c, - 0xc1, 0x69, 0x8c, 0x78, 0x16, 0xfb, 0x31, 0x49, 0x8b, 0x07, 0xe9, 0x2f, 0x25, 0xcd, 0x27, 0xe2, - 0x01, 0xc5, 0xec, 0x07, 0x00, 0x5f, 0xac, 0x46, 0xa8, 0xbb, 0x1e, 0x27, 0x7c, 0x76, 0x82, 0x46, - 0x98, 0xa1, 0xc3, 0xde, 0xe9, 0xa2, 0x3a, 0x2d, 0xaa, 0xd3, 0x11, 0x66, 0xd3, 0xc3, 0xde, 0xf1, - 0x56, 0xa1, 0x75, 0xef, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x32, 0x24, 0xb5, 0x51, 0xb9, 0x04, - 0x00, 0x00, +var file_google_iam_v1_iam_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_google_iam_v1_iam_policy_proto_goTypes = []interface{}{ + (*SetIamPolicyRequest)(nil), // 0: google.iam.v1.SetIamPolicyRequest + (*GetIamPolicyRequest)(nil), // 1: google.iam.v1.GetIamPolicyRequest + (*TestIamPermissionsRequest)(nil), // 2: google.iam.v1.TestIamPermissionsRequest + (*TestIamPermissionsResponse)(nil), // 3: google.iam.v1.TestIamPermissionsResponse + (*Policy)(nil), // 4: google.iam.v1.Policy + (*GetPolicyOptions)(nil), // 5: google.iam.v1.GetPolicyOptions +} +var file_google_iam_v1_iam_policy_proto_depIdxs = []int32{ + 4, // 0: google.iam.v1.SetIamPolicyRequest.policy:type_name -> google.iam.v1.Policy + 5, // 1: google.iam.v1.GetIamPolicyRequest.options:type_name -> google.iam.v1.GetPolicyOptions + 0, // 2: google.iam.v1.IAMPolicy.SetIamPolicy:input_type -> google.iam.v1.SetIamPolicyRequest + 1, // 3: google.iam.v1.IAMPolicy.GetIamPolicy:input_type -> google.iam.v1.GetIamPolicyRequest + 2, // 4: google.iam.v1.IAMPolicy.TestIamPermissions:input_type -> google.iam.v1.TestIamPermissionsRequest + 4, // 5: google.iam.v1.IAMPolicy.SetIamPolicy:output_type -> google.iam.v1.Policy + 4, // 6: google.iam.v1.IAMPolicy.GetIamPolicy:output_type -> google.iam.v1.Policy + 3, // 7: google.iam.v1.IAMPolicy.TestIamPermissions:output_type -> google.iam.v1.TestIamPermissionsResponse + 5, // [5:8] is the sub-list for method output_type + 2, // [2:5] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_google_iam_v1_iam_policy_proto_init() } +func file_google_iam_v1_iam_policy_proto_init() { + if File_google_iam_v1_iam_policy_proto != nil { + return + } + file_google_iam_v1_options_proto_init() + file_google_iam_v1_policy_proto_init() + if !protoimpl.UnsafeEnabled { + file_google_iam_v1_iam_policy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetIamPolicyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_iam_v1_iam_policy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetIamPolicyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_iam_v1_iam_policy_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TestIamPermissionsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_iam_v1_iam_policy_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TestIamPermissionsResponse); 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_google_iam_v1_iam_policy_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_google_iam_v1_iam_policy_proto_goTypes, + DependencyIndexes: file_google_iam_v1_iam_policy_proto_depIdxs, + MessageInfos: file_google_iam_v1_iam_policy_proto_msgTypes, + }.Build() + File_google_iam_v1_iam_policy_proto = out.File + file_google_iam_v1_iam_policy_proto_rawDesc = nil + file_google_iam_v1_iam_policy_proto_goTypes = nil + file_google_iam_v1_iam_policy_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. @@ -363,13 +562,13 @@ type IAMPolicyServer interface { type UnimplementedIAMPolicyServer struct { } -func (*UnimplementedIAMPolicyServer) SetIamPolicy(ctx context.Context, req *SetIamPolicyRequest) (*Policy, error) { +func (*UnimplementedIAMPolicyServer) SetIamPolicy(context.Context, *SetIamPolicyRequest) (*Policy, error) { return nil, status.Errorf(codes.Unimplemented, "method SetIamPolicy not implemented") } -func (*UnimplementedIAMPolicyServer) GetIamPolicy(ctx context.Context, req *GetIamPolicyRequest) (*Policy, error) { +func (*UnimplementedIAMPolicyServer) GetIamPolicy(context.Context, *GetIamPolicyRequest) (*Policy, error) { return nil, status.Errorf(codes.Unimplemented, "method GetIamPolicy not implemented") } -func (*UnimplementedIAMPolicyServer) TestIamPermissions(ctx context.Context, req *TestIamPermissionsRequest) (*TestIamPermissionsResponse, error) { +func (*UnimplementedIAMPolicyServer) TestIamPermissions(context.Context, *TestIamPermissionsRequest) (*TestIamPermissionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method TestIamPermissions not implemented") } diff --git a/vendor/google.golang.org/genproto/googleapis/iam/v1/options.pb.go b/vendor/google.golang.org/genproto/googleapis/iam/v1/options.pb.go index fc3a218b7..e6c2bfcba 100644 --- a/vendor/google.golang.org/genproto/googleapis/iam/v1/options.pb.go +++ b/vendor/google.golang.org/genproto/googleapis/iam/v1/options.pb.go @@ -1,29 +1,53 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.22.0 +// protoc v3.12.3 // source: google/iam/v1/options.proto package iam import ( - fmt "fmt" - math "math" + reflect "reflect" + sync "sync" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 // Encapsulates settings provided to GetIamPolicy. type GetPolicyOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Optional. The policy format version to be returned. // // Valid values are 0, 1, and 3. Requests specifying an invalid value will be @@ -32,67 +56,131 @@ type GetPolicyOptions struct { // Requests for policies with any conditional bindings must specify version 3. // Policies without any conditional bindings may specify any valid value or // leave the field unset. - RequestedPolicyVersion int32 `protobuf:"varint,1,opt,name=requested_policy_version,json=requestedPolicyVersion,proto3" json:"requested_policy_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RequestedPolicyVersion int32 `protobuf:"varint,1,opt,name=requested_policy_version,json=requestedPolicyVersion,proto3" json:"requested_policy_version,omitempty"` } -func (m *GetPolicyOptions) Reset() { *m = GetPolicyOptions{} } -func (m *GetPolicyOptions) String() string { return proto.CompactTextString(m) } -func (*GetPolicyOptions) ProtoMessage() {} +func (x *GetPolicyOptions) Reset() { + *x = GetPolicyOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_iam_v1_options_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPolicyOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPolicyOptions) ProtoMessage() {} + +func (x *GetPolicyOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_iam_v1_options_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetPolicyOptions.ProtoReflect.Descriptor instead. func (*GetPolicyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_19aa09e909092bd1, []int{0} + return file_google_iam_v1_options_proto_rawDescGZIP(), []int{0} } -func (m *GetPolicyOptions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetPolicyOptions.Unmarshal(m, b) -} -func (m *GetPolicyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetPolicyOptions.Marshal(b, m, deterministic) -} -func (m *GetPolicyOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetPolicyOptions.Merge(m, src) -} -func (m *GetPolicyOptions) XXX_Size() int { - return xxx_messageInfo_GetPolicyOptions.Size(m) -} -func (m *GetPolicyOptions) XXX_DiscardUnknown() { - xxx_messageInfo_GetPolicyOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_GetPolicyOptions proto.InternalMessageInfo - -func (m *GetPolicyOptions) GetRequestedPolicyVersion() int32 { - if m != nil { - return m.RequestedPolicyVersion +func (x *GetPolicyOptions) GetRequestedPolicyVersion() int32 { + if x != nil { + return x.RequestedPolicyVersion } return 0 } -func init() { - proto.RegisterType((*GetPolicyOptions)(nil), "google.iam.v1.GetPolicyOptions") +var File_google_iam_v1_options_proto protoreflect.FileDescriptor + +var file_google_iam_v1_options_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, + 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4c, 0x0a, 0x10, 0x47, 0x65, + 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x38, + 0x0a, 0x18, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x16, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x84, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x42, 0x0c, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, + 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x69, 0x61, 0x6d, + 0xf8, 0x01, 0x01, 0xaa, 0x02, 0x13, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x49, 0x61, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x13, 0x47, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x49, 0x61, 0x6d, 0x5c, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { - proto.RegisterFile("google/iam/v1/options.proto", fileDescriptor_19aa09e909092bd1) +var ( + file_google_iam_v1_options_proto_rawDescOnce sync.Once + file_google_iam_v1_options_proto_rawDescData = file_google_iam_v1_options_proto_rawDesc +) + +func file_google_iam_v1_options_proto_rawDescGZIP() []byte { + file_google_iam_v1_options_proto_rawDescOnce.Do(func() { + file_google_iam_v1_options_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_iam_v1_options_proto_rawDescData) + }) + return file_google_iam_v1_options_proto_rawDescData } -var fileDescriptor_19aa09e909092bd1 = []byte{ - // 229 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4e, 0xcf, 0xcf, 0x4f, - 0xcf, 0x49, 0xd5, 0xcf, 0x4c, 0xcc, 0xd5, 0x2f, 0x33, 0xd4, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, - 0x2b, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x85, 0x48, 0xea, 0x65, 0x26, 0xe6, 0xea, - 0x95, 0x19, 0x4a, 0xc9, 0x40, 0xd5, 0x26, 0x16, 0x64, 0xea, 0x27, 0xe6, 0xe5, 0xe5, 0x97, 0x24, - 0x22, 0x29, 0x56, 0xf2, 0xe1, 0x12, 0x70, 0x4f, 0x2d, 0x09, 0xc8, 0xcf, 0xc9, 0x4c, 0xae, 0xf4, - 0x87, 0x18, 0x23, 0x64, 0xc1, 0x25, 0x51, 0x94, 0x5a, 0x58, 0x9a, 0x5a, 0x5c, 0x92, 0x9a, 0x12, - 0x5f, 0x00, 0x96, 0x8a, 0x2f, 0x4b, 0x2d, 0x2a, 0xce, 0xcc, 0xcf, 0x93, 0x60, 0x54, 0x60, 0xd4, - 0x60, 0x0d, 0x12, 0x83, 0xcb, 0x43, 0x74, 0x86, 0x41, 0x64, 0x9d, 0x5a, 0x18, 0xb9, 0x04, 0x93, - 0xf3, 0x73, 0xf5, 0x50, 0x5c, 0xe0, 0xc4, 0x03, 0x35, 0x38, 0x00, 0x64, 0x63, 0x00, 0x63, 0x94, - 0x01, 0x54, 0x3a, 0x3d, 0x3f, 0x27, 0x31, 0x2f, 0x5d, 0x2f, 0xbf, 0x28, 0x5d, 0x3f, 0x3d, 0x35, - 0x0f, 0xec, 0x1e, 0x7d, 0x88, 0x54, 0x62, 0x41, 0x66, 0x31, 0xd4, 0x73, 0xd6, 0x99, 0x89, 0xb9, - 0x3f, 0x18, 0x19, 0x57, 0x31, 0x09, 0xbb, 0x43, 0x74, 0x39, 0xe7, 0xe4, 0x97, 0xa6, 0xe8, 0x79, - 0x26, 0xe6, 0xea, 0x85, 0x19, 0x9e, 0x82, 0x89, 0xc6, 0x80, 0x45, 0x63, 0x3c, 0x13, 0x73, 0x63, - 0xc2, 0x0c, 0x93, 0xd8, 0xc0, 0x66, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xdf, 0x96, 0x0c, - 0x8b, 0x27, 0x01, 0x00, 0x00, +var file_google_iam_v1_options_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_iam_v1_options_proto_goTypes = []interface{}{ + (*GetPolicyOptions)(nil), // 0: google.iam.v1.GetPolicyOptions +} +var file_google_iam_v1_options_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_iam_v1_options_proto_init() } +func file_google_iam_v1_options_proto_init() { + if File_google_iam_v1_options_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_iam_v1_options_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPolicyOptions); 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_google_iam_v1_options_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_iam_v1_options_proto_goTypes, + DependencyIndexes: file_google_iam_v1_options_proto_depIdxs, + MessageInfos: file_google_iam_v1_options_proto_msgTypes, + }.Build() + File_google_iam_v1_options_proto = out.File + file_google_iam_v1_options_proto_rawDesc = nil + file_google_iam_v1_options_proto_goTypes = nil + file_google_iam_v1_options_proto_depIdxs = nil } diff --git a/vendor/google.golang.org/genproto/googleapis/iam/v1/policy.pb.go b/vendor/google.golang.org/genproto/googleapis/iam/v1/policy.pb.go index 086732f12..ba64dcc46 100644 --- a/vendor/google.golang.org/genproto/googleapis/iam/v1/policy.pb.go +++ b/vendor/google.golang.org/genproto/googleapis/iam/v1/policy.pb.go @@ -1,27 +1,47 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.22.0 +// protoc v3.12.3 // source: google/iam/v1/policy.proto package iam import ( - fmt "fmt" - math "math" + reflect "reflect" + sync "sync" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" expr "google.golang.org/genproto/googleapis/type/expr" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 // The type of action performed on a Binding in a policy. type BindingDelta_Action int32 @@ -35,24 +55,45 @@ const ( BindingDelta_REMOVE BindingDelta_Action = 2 ) -var BindingDelta_Action_name = map[int32]string{ - 0: "ACTION_UNSPECIFIED", - 1: "ADD", - 2: "REMOVE", -} +// Enum value maps for BindingDelta_Action. +var ( + BindingDelta_Action_name = map[int32]string{ + 0: "ACTION_UNSPECIFIED", + 1: "ADD", + 2: "REMOVE", + } + BindingDelta_Action_value = map[string]int32{ + "ACTION_UNSPECIFIED": 0, + "ADD": 1, + "REMOVE": 2, + } +) -var BindingDelta_Action_value = map[string]int32{ - "ACTION_UNSPECIFIED": 0, - "ADD": 1, - "REMOVE": 2, +func (x BindingDelta_Action) Enum() *BindingDelta_Action { + p := new(BindingDelta_Action) + *p = x + return p } func (x BindingDelta_Action) String() string { - return proto.EnumName(BindingDelta_Action_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (BindingDelta_Action) Descriptor() protoreflect.EnumDescriptor { + return file_google_iam_v1_policy_proto_enumTypes[0].Descriptor() +} + +func (BindingDelta_Action) Type() protoreflect.EnumType { + return &file_google_iam_v1_policy_proto_enumTypes[0] +} + +func (x BindingDelta_Action) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BindingDelta_Action.Descriptor instead. func (BindingDelta_Action) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a3cd40b8a66b2a99, []int{3, 0} + return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{3, 0} } // The type of action performed on an audit configuration in a policy. @@ -67,24 +108,45 @@ const ( AuditConfigDelta_REMOVE AuditConfigDelta_Action = 2 ) -var AuditConfigDelta_Action_name = map[int32]string{ - 0: "ACTION_UNSPECIFIED", - 1: "ADD", - 2: "REMOVE", -} +// Enum value maps for AuditConfigDelta_Action. +var ( + AuditConfigDelta_Action_name = map[int32]string{ + 0: "ACTION_UNSPECIFIED", + 1: "ADD", + 2: "REMOVE", + } + AuditConfigDelta_Action_value = map[string]int32{ + "ACTION_UNSPECIFIED": 0, + "ADD": 1, + "REMOVE": 2, + } +) -var AuditConfigDelta_Action_value = map[string]int32{ - "ACTION_UNSPECIFIED": 0, - "ADD": 1, - "REMOVE": 2, +func (x AuditConfigDelta_Action) Enum() *AuditConfigDelta_Action { + p := new(AuditConfigDelta_Action) + *p = x + return p } func (x AuditConfigDelta_Action) String() string { - return proto.EnumName(AuditConfigDelta_Action_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (AuditConfigDelta_Action) Descriptor() protoreflect.EnumDescriptor { + return file_google_iam_v1_policy_proto_enumTypes[1].Descriptor() +} + +func (AuditConfigDelta_Action) Type() protoreflect.EnumType { + return &file_google_iam_v1_policy_proto_enumTypes[1] +} + +func (x AuditConfigDelta_Action) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AuditConfigDelta_Action.Descriptor instead. func (AuditConfigDelta_Action) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a3cd40b8a66b2a99, []int{4, 0} + return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{4, 0} } // Defines an Identity and Access Management (IAM) policy. It is used to @@ -145,6 +207,10 @@ func (AuditConfigDelta_Action) EnumDescriptor() ([]byte, []int) { // For a description of IAM and its features, see the // [IAM developer's guide](https://cloud.google.com/iam/docs). type Policy struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Specifies the format of the policy. // // Valid values are 0, 1, and 3. Requests specifying an invalid value will be @@ -176,60 +242,68 @@ type Policy struct { // policy is overwritten. Due to blind-set semantics of an etag-less policy, // 'setIamPolicy' will not fail even if the incoming policy version does not // meet the requirements for modifying the stored policy. - Etag []byte `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Etag []byte `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` } -func (m *Policy) Reset() { *m = Policy{} } -func (m *Policy) String() string { return proto.CompactTextString(m) } -func (*Policy) ProtoMessage() {} +func (x *Policy) Reset() { + *x = Policy{} + if protoimpl.UnsafeEnabled { + mi := &file_google_iam_v1_policy_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Policy) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Policy) ProtoMessage() {} + +func (x *Policy) ProtoReflect() protoreflect.Message { + mi := &file_google_iam_v1_policy_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Policy.ProtoReflect.Descriptor instead. func (*Policy) Descriptor() ([]byte, []int) { - return fileDescriptor_a3cd40b8a66b2a99, []int{0} + return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{0} } -func (m *Policy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Policy.Unmarshal(m, b) -} -func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Policy.Marshal(b, m, deterministic) -} -func (m *Policy) XXX_Merge(src proto.Message) { - xxx_messageInfo_Policy.Merge(m, src) -} -func (m *Policy) XXX_Size() int { - return xxx_messageInfo_Policy.Size(m) -} -func (m *Policy) XXX_DiscardUnknown() { - xxx_messageInfo_Policy.DiscardUnknown(m) -} - -var xxx_messageInfo_Policy proto.InternalMessageInfo - -func (m *Policy) GetVersion() int32 { - if m != nil { - return m.Version +func (x *Policy) GetVersion() int32 { + if x != nil { + return x.Version } return 0 } -func (m *Policy) GetBindings() []*Binding { - if m != nil { - return m.Bindings +func (x *Policy) GetBindings() []*Binding { + if x != nil { + return x.Bindings } return nil } -func (m *Policy) GetEtag() []byte { - if m != nil { - return m.Etag +func (x *Policy) GetEtag() []byte { + if x != nil { + return x.Etag } return nil } // Associates `members` with a `role`. type Binding struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Role that is assigned to `members`. // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` @@ -262,104 +336,116 @@ type Binding struct { // NOTE: An unsatisfied condition will not allow user access via current // binding. Different bindings, including their conditions, are examined // independently. - Condition *expr.Expr `protobuf:"bytes,3,opt,name=condition,proto3" json:"condition,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Condition *expr.Expr `protobuf:"bytes,3,opt,name=condition,proto3" json:"condition,omitempty"` } -func (m *Binding) Reset() { *m = Binding{} } -func (m *Binding) String() string { return proto.CompactTextString(m) } -func (*Binding) ProtoMessage() {} +func (x *Binding) Reset() { + *x = Binding{} + if protoimpl.UnsafeEnabled { + mi := &file_google_iam_v1_policy_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Binding) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Binding) ProtoMessage() {} + +func (x *Binding) ProtoReflect() protoreflect.Message { + mi := &file_google_iam_v1_policy_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Binding.ProtoReflect.Descriptor instead. func (*Binding) Descriptor() ([]byte, []int) { - return fileDescriptor_a3cd40b8a66b2a99, []int{1} + return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{1} } -func (m *Binding) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Binding.Unmarshal(m, b) -} -func (m *Binding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Binding.Marshal(b, m, deterministic) -} -func (m *Binding) XXX_Merge(src proto.Message) { - xxx_messageInfo_Binding.Merge(m, src) -} -func (m *Binding) XXX_Size() int { - return xxx_messageInfo_Binding.Size(m) -} -func (m *Binding) XXX_DiscardUnknown() { - xxx_messageInfo_Binding.DiscardUnknown(m) -} - -var xxx_messageInfo_Binding proto.InternalMessageInfo - -func (m *Binding) GetRole() string { - if m != nil { - return m.Role +func (x *Binding) GetRole() string { + if x != nil { + return x.Role } return "" } -func (m *Binding) GetMembers() []string { - if m != nil { - return m.Members +func (x *Binding) GetMembers() []string { + if x != nil { + return x.Members } return nil } -func (m *Binding) GetCondition() *expr.Expr { - if m != nil { - return m.Condition +func (x *Binding) GetCondition() *expr.Expr { + if x != nil { + return x.Condition } return nil } // The difference delta between two policies. type PolicyDelta struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The delta for Bindings between two policies. BindingDeltas []*BindingDelta `protobuf:"bytes,1,rep,name=binding_deltas,json=bindingDeltas,proto3" json:"binding_deltas,omitempty"` // The delta for AuditConfigs between two policies. - AuditConfigDeltas []*AuditConfigDelta `protobuf:"bytes,2,rep,name=audit_config_deltas,json=auditConfigDeltas,proto3" json:"audit_config_deltas,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + AuditConfigDeltas []*AuditConfigDelta `protobuf:"bytes,2,rep,name=audit_config_deltas,json=auditConfigDeltas,proto3" json:"audit_config_deltas,omitempty"` } -func (m *PolicyDelta) Reset() { *m = PolicyDelta{} } -func (m *PolicyDelta) String() string { return proto.CompactTextString(m) } -func (*PolicyDelta) ProtoMessage() {} +func (x *PolicyDelta) Reset() { + *x = PolicyDelta{} + if protoimpl.UnsafeEnabled { + mi := &file_google_iam_v1_policy_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PolicyDelta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PolicyDelta) ProtoMessage() {} + +func (x *PolicyDelta) ProtoReflect() protoreflect.Message { + mi := &file_google_iam_v1_policy_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PolicyDelta.ProtoReflect.Descriptor instead. func (*PolicyDelta) Descriptor() ([]byte, []int) { - return fileDescriptor_a3cd40b8a66b2a99, []int{2} + return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{2} } -func (m *PolicyDelta) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PolicyDelta.Unmarshal(m, b) -} -func (m *PolicyDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PolicyDelta.Marshal(b, m, deterministic) -} -func (m *PolicyDelta) XXX_Merge(src proto.Message) { - xxx_messageInfo_PolicyDelta.Merge(m, src) -} -func (m *PolicyDelta) XXX_Size() int { - return xxx_messageInfo_PolicyDelta.Size(m) -} -func (m *PolicyDelta) XXX_DiscardUnknown() { - xxx_messageInfo_PolicyDelta.DiscardUnknown(m) -} - -var xxx_messageInfo_PolicyDelta proto.InternalMessageInfo - -func (m *PolicyDelta) GetBindingDeltas() []*BindingDelta { - if m != nil { - return m.BindingDeltas +func (x *PolicyDelta) GetBindingDeltas() []*BindingDelta { + if x != nil { + return x.BindingDeltas } return nil } -func (m *PolicyDelta) GetAuditConfigDeltas() []*AuditConfigDelta { - if m != nil { - return m.AuditConfigDeltas +func (x *PolicyDelta) GetAuditConfigDeltas() []*AuditConfigDelta { + if x != nil { + return x.AuditConfigDeltas } return nil } @@ -367,6 +453,10 @@ func (m *PolicyDelta) GetAuditConfigDeltas() []*AuditConfigDelta { // One delta entry for Binding. Each individual change (only one member in each // entry) to a binding will be a separate entry. type BindingDelta struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The action that was performed on a Binding. // Required Action BindingDelta_Action `protobuf:"varint,1,opt,name=action,proto3,enum=google.iam.v1.BindingDelta_Action" json:"action,omitempty"` @@ -379,61 +469,65 @@ type BindingDelta struct { // Required Member string `protobuf:"bytes,3,opt,name=member,proto3" json:"member,omitempty"` // The condition that is associated with this binding. - Condition *expr.Expr `protobuf:"bytes,4,opt,name=condition,proto3" json:"condition,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Condition *expr.Expr `protobuf:"bytes,4,opt,name=condition,proto3" json:"condition,omitempty"` } -func (m *BindingDelta) Reset() { *m = BindingDelta{} } -func (m *BindingDelta) String() string { return proto.CompactTextString(m) } -func (*BindingDelta) ProtoMessage() {} +func (x *BindingDelta) Reset() { + *x = BindingDelta{} + if protoimpl.UnsafeEnabled { + mi := &file_google_iam_v1_policy_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BindingDelta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BindingDelta) ProtoMessage() {} + +func (x *BindingDelta) ProtoReflect() protoreflect.Message { + mi := &file_google_iam_v1_policy_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BindingDelta.ProtoReflect.Descriptor instead. func (*BindingDelta) Descriptor() ([]byte, []int) { - return fileDescriptor_a3cd40b8a66b2a99, []int{3} + return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{3} } -func (m *BindingDelta) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BindingDelta.Unmarshal(m, b) -} -func (m *BindingDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BindingDelta.Marshal(b, m, deterministic) -} -func (m *BindingDelta) XXX_Merge(src proto.Message) { - xxx_messageInfo_BindingDelta.Merge(m, src) -} -func (m *BindingDelta) XXX_Size() int { - return xxx_messageInfo_BindingDelta.Size(m) -} -func (m *BindingDelta) XXX_DiscardUnknown() { - xxx_messageInfo_BindingDelta.DiscardUnknown(m) -} - -var xxx_messageInfo_BindingDelta proto.InternalMessageInfo - -func (m *BindingDelta) GetAction() BindingDelta_Action { - if m != nil { - return m.Action +func (x *BindingDelta) GetAction() BindingDelta_Action { + if x != nil { + return x.Action } return BindingDelta_ACTION_UNSPECIFIED } -func (m *BindingDelta) GetRole() string { - if m != nil { - return m.Role +func (x *BindingDelta) GetRole() string { + if x != nil { + return x.Role } return "" } -func (m *BindingDelta) GetMember() string { - if m != nil { - return m.Member +func (x *BindingDelta) GetMember() string { + if x != nil { + return x.Member } return "" } -func (m *BindingDelta) GetCondition() *expr.Expr { - if m != nil { - return m.Condition +func (x *BindingDelta) GetCondition() *expr.Expr { + if x != nil { + return x.Condition } return nil } @@ -441,6 +535,10 @@ func (m *BindingDelta) GetCondition() *expr.Expr { // One delta entry for AuditConfig. Each individual change (only one // exempted_member in each entry) to a AuditConfig will be a separate entry. type AuditConfigDelta struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The action that was performed on an audit configuration in a policy. // Required Action AuditConfigDelta_Action `protobuf:"varint,1,opt,name=action,proto3,enum=google.iam.v1.AuditConfigDelta_Action" json:"action,omitempty"` @@ -456,114 +554,265 @@ type AuditConfigDelta struct { // Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always // enabled, and cannot be configured. // Required - LogType string `protobuf:"bytes,4,opt,name=log_type,json=logType,proto3" json:"log_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + LogType string `protobuf:"bytes,4,opt,name=log_type,json=logType,proto3" json:"log_type,omitempty"` } -func (m *AuditConfigDelta) Reset() { *m = AuditConfigDelta{} } -func (m *AuditConfigDelta) String() string { return proto.CompactTextString(m) } -func (*AuditConfigDelta) ProtoMessage() {} +func (x *AuditConfigDelta) Reset() { + *x = AuditConfigDelta{} + if protoimpl.UnsafeEnabled { + mi := &file_google_iam_v1_policy_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AuditConfigDelta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AuditConfigDelta) ProtoMessage() {} + +func (x *AuditConfigDelta) ProtoReflect() protoreflect.Message { + mi := &file_google_iam_v1_policy_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AuditConfigDelta.ProtoReflect.Descriptor instead. func (*AuditConfigDelta) Descriptor() ([]byte, []int) { - return fileDescriptor_a3cd40b8a66b2a99, []int{4} + return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{4} } -func (m *AuditConfigDelta) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AuditConfigDelta.Unmarshal(m, b) -} -func (m *AuditConfigDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AuditConfigDelta.Marshal(b, m, deterministic) -} -func (m *AuditConfigDelta) XXX_Merge(src proto.Message) { - xxx_messageInfo_AuditConfigDelta.Merge(m, src) -} -func (m *AuditConfigDelta) XXX_Size() int { - return xxx_messageInfo_AuditConfigDelta.Size(m) -} -func (m *AuditConfigDelta) XXX_DiscardUnknown() { - xxx_messageInfo_AuditConfigDelta.DiscardUnknown(m) -} - -var xxx_messageInfo_AuditConfigDelta proto.InternalMessageInfo - -func (m *AuditConfigDelta) GetAction() AuditConfigDelta_Action { - if m != nil { - return m.Action +func (x *AuditConfigDelta) GetAction() AuditConfigDelta_Action { + if x != nil { + return x.Action } return AuditConfigDelta_ACTION_UNSPECIFIED } -func (m *AuditConfigDelta) GetService() string { - if m != nil { - return m.Service +func (x *AuditConfigDelta) GetService() string { + if x != nil { + return x.Service } return "" } -func (m *AuditConfigDelta) GetExemptedMember() string { - if m != nil { - return m.ExemptedMember +func (x *AuditConfigDelta) GetExemptedMember() string { + if x != nil { + return x.ExemptedMember } return "" } -func (m *AuditConfigDelta) GetLogType() string { - if m != nil { - return m.LogType +func (x *AuditConfigDelta) GetLogType() string { + if x != nil { + return x.LogType } return "" } -func init() { - proto.RegisterEnum("google.iam.v1.BindingDelta_Action", BindingDelta_Action_name, BindingDelta_Action_value) - proto.RegisterEnum("google.iam.v1.AuditConfigDelta_Action", AuditConfigDelta_Action_name, AuditConfigDelta_Action_value) - proto.RegisterType((*Policy)(nil), "google.iam.v1.Policy") - proto.RegisterType((*Binding)(nil), "google.iam.v1.Binding") - proto.RegisterType((*PolicyDelta)(nil), "google.iam.v1.PolicyDelta") - proto.RegisterType((*BindingDelta)(nil), "google.iam.v1.BindingDelta") - proto.RegisterType((*AuditConfigDelta)(nil), "google.iam.v1.AuditConfigDelta") +var File_google_iam_v1_policy_proto protoreflect.FileDescriptor + +var file_google_iam_v1_policy_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, + 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x16, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x6a, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, + 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, + 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, + 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x22, 0x68, 0x0a, + 0x07, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f, + 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa2, 0x01, 0x0a, 0x0b, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x42, 0x0a, 0x0e, 0x62, 0x69, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, + 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x52, 0x0d, 0x62, 0x69, + 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x73, 0x12, 0x4f, 0x0a, 0x13, 0x61, + 0x75, 0x64, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x64, 0x65, 0x6c, 0x74, + 0x61, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x52, 0x11, 0x61, 0x75, 0x64, 0x69, 0x74, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x73, 0x22, 0xde, 0x01, 0x0a, + 0x0c, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x3a, 0x0a, + 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, + 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f, 0x6e, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x35, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, + 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x44, 0x44, 0x10, + 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x10, 0x02, 0x22, 0xe7, 0x01, + 0x0a, 0x10, 0x41, 0x75, 0x64, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x44, 0x65, 0x6c, + 0x74, 0x61, 0x12, 0x3e, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x44, 0x65, + 0x6c, 0x74, 0x61, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0f, + 0x65, 0x78, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x4d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, + 0x22, 0x35, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x43, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x44, 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x52, + 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x10, 0x02, 0x42, 0x83, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, + 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, + 0x70, 0x69, 0x73, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x69, 0x61, 0x6d, 0xf8, 0x01, + 0x01, 0xaa, 0x02, 0x13, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x49, 0x61, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x13, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x49, 0x61, 0x6d, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { - proto.RegisterFile("google/iam/v1/policy.proto", fileDescriptor_a3cd40b8a66b2a99) +var ( + file_google_iam_v1_policy_proto_rawDescOnce sync.Once + file_google_iam_v1_policy_proto_rawDescData = file_google_iam_v1_policy_proto_rawDesc +) + +func file_google_iam_v1_policy_proto_rawDescGZIP() []byte { + file_google_iam_v1_policy_proto_rawDescOnce.Do(func() { + file_google_iam_v1_policy_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_iam_v1_policy_proto_rawDescData) + }) + return file_google_iam_v1_policy_proto_rawDescData } -var fileDescriptor_a3cd40b8a66b2a99 = []byte{ - // 550 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xcf, 0xae, 0xd2, 0x4e, - 0x14, 0xc7, 0x7f, 0x03, 0xfc, 0xca, 0xe5, 0x70, 0x2f, 0xc2, 0xdc, 0x84, 0x54, 0x34, 0x91, 0x74, - 0xa1, 0xac, 0x5a, 0xc1, 0xb8, 0xd1, 0xc4, 0x84, 0x7f, 0x1a, 0x16, 0xf7, 0x42, 0xc6, 0x2b, 0x0b, - 0x43, 0x42, 0x86, 0x76, 0xac, 0x63, 0xda, 0x4e, 0xd3, 0xf6, 0x12, 0x58, 0xfb, 0x26, 0x2e, 0x7d, - 0x14, 0x1f, 0xc2, 0xad, 0xaf, 0xe0, 0xd2, 0x74, 0xa6, 0x45, 0x68, 0x8c, 0x1a, 0x77, 0x73, 0xce, - 0xf9, 0xce, 0x39, 0xe7, 0xf3, 0x6d, 0x07, 0x3a, 0xae, 0x10, 0xae, 0xc7, 0x2c, 0x4e, 0x7d, 0x6b, - 0xdb, 0xb7, 0x42, 0xe1, 0x71, 0x7b, 0x6f, 0x86, 0x91, 0x48, 0x04, 0xbe, 0x50, 0x35, 0x93, 0x53, - 0xdf, 0xdc, 0xf6, 0x3b, 0xed, 0x4c, 0x9a, 0xec, 0x43, 0x66, 0xb1, 0x5d, 0x18, 0x29, 0x59, 0xe7, - 0x7e, 0x96, 0xa7, 0x21, 0xb7, 0x68, 0x10, 0x88, 0x84, 0x26, 0x5c, 0x04, 0xb1, 0xaa, 0x1a, 0x1f, - 0x40, 0x5b, 0xc8, 0xa6, 0x58, 0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 0xb1, - 0x27, 0x6e, 0x1d, 0x73, 0x46, 0x7d, 0x73, 0xd9, 0xff, 0x92, 0x67, 0x57, 0x32, 0xbb, 0x9a, 0x51, - 0x7f, 0xb5, 0xec, 0x6f, 0x34, 0xd9, 0xeb, 0xc9, 0x8f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x29, 0x86, - 0x8f, 0x3e, 0x35, 0x04, 0x00, 0x00, +var file_google_iam_v1_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_google_iam_v1_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_google_iam_v1_policy_proto_goTypes = []interface{}{ + (BindingDelta_Action)(0), // 0: google.iam.v1.BindingDelta.Action + (AuditConfigDelta_Action)(0), // 1: google.iam.v1.AuditConfigDelta.Action + (*Policy)(nil), // 2: google.iam.v1.Policy + (*Binding)(nil), // 3: google.iam.v1.Binding + (*PolicyDelta)(nil), // 4: google.iam.v1.PolicyDelta + (*BindingDelta)(nil), // 5: google.iam.v1.BindingDelta + (*AuditConfigDelta)(nil), // 6: google.iam.v1.AuditConfigDelta + (*expr.Expr)(nil), // 7: google.type.Expr +} +var file_google_iam_v1_policy_proto_depIdxs = []int32{ + 3, // 0: google.iam.v1.Policy.bindings:type_name -> google.iam.v1.Binding + 7, // 1: google.iam.v1.Binding.condition:type_name -> google.type.Expr + 5, // 2: google.iam.v1.PolicyDelta.binding_deltas:type_name -> google.iam.v1.BindingDelta + 6, // 3: google.iam.v1.PolicyDelta.audit_config_deltas:type_name -> google.iam.v1.AuditConfigDelta + 0, // 4: google.iam.v1.BindingDelta.action:type_name -> google.iam.v1.BindingDelta.Action + 7, // 5: google.iam.v1.BindingDelta.condition:type_name -> google.type.Expr + 1, // 6: google.iam.v1.AuditConfigDelta.action:type_name -> google.iam.v1.AuditConfigDelta.Action + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_google_iam_v1_policy_proto_init() } +func file_google_iam_v1_policy_proto_init() { + if File_google_iam_v1_policy_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_iam_v1_policy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Policy); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_iam_v1_policy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Binding); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_iam_v1_policy_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PolicyDelta); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_iam_v1_policy_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BindingDelta); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_iam_v1_policy_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AuditConfigDelta); 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_google_iam_v1_policy_proto_rawDesc, + NumEnums: 2, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_iam_v1_policy_proto_goTypes, + DependencyIndexes: file_google_iam_v1_policy_proto_depIdxs, + EnumInfos: file_google_iam_v1_policy_proto_enumTypes, + MessageInfos: file_google_iam_v1_policy_proto_msgTypes, + }.Build() + File_google_iam_v1_policy_proto = out.File + file_google_iam_v1_policy_proto_rawDesc = nil + file_google_iam_v1_policy_proto_goTypes = nil + file_google_iam_v1_policy_proto_depIdxs = nil } diff --git a/vendor/google.golang.org/genproto/googleapis/rpc/code/code.pb.go b/vendor/google.golang.org/genproto/googleapis/rpc/code/code.pb.go index a6e456964..9034439ad 100644 --- a/vendor/google.golang.org/genproto/googleapis/rpc/code/code.pb.go +++ b/vendor/google.golang.org/genproto/googleapis/rpc/code/code.pb.go @@ -1,25 +1,44 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.22.0 +// protoc v3.12.3 // source: google/rpc/code.proto package code import ( - fmt "fmt" - math "math" + reflect "reflect" + sync "sync" proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 // The canonical error codes for gRPC APIs. // @@ -170,85 +189,153 @@ const ( Code_DATA_LOSS Code = 15 ) -var Code_name = map[int32]string{ - 0: "OK", - 1: "CANCELLED", - 2: "UNKNOWN", - 3: "INVALID_ARGUMENT", - 4: "DEADLINE_EXCEEDED", - 5: "NOT_FOUND", - 6: "ALREADY_EXISTS", - 7: "PERMISSION_DENIED", - 16: "UNAUTHENTICATED", - 8: "RESOURCE_EXHAUSTED", - 9: "FAILED_PRECONDITION", - 10: "ABORTED", - 11: "OUT_OF_RANGE", - 12: "UNIMPLEMENTED", - 13: "INTERNAL", - 14: "UNAVAILABLE", - 15: "DATA_LOSS", -} +// Enum value maps for Code. +var ( + Code_name = map[int32]string{ + 0: "OK", + 1: "CANCELLED", + 2: "UNKNOWN", + 3: "INVALID_ARGUMENT", + 4: "DEADLINE_EXCEEDED", + 5: "NOT_FOUND", + 6: "ALREADY_EXISTS", + 7: "PERMISSION_DENIED", + 16: "UNAUTHENTICATED", + 8: "RESOURCE_EXHAUSTED", + 9: "FAILED_PRECONDITION", + 10: "ABORTED", + 11: "OUT_OF_RANGE", + 12: "UNIMPLEMENTED", + 13: "INTERNAL", + 14: "UNAVAILABLE", + 15: "DATA_LOSS", + } + Code_value = map[string]int32{ + "OK": 0, + "CANCELLED": 1, + "UNKNOWN": 2, + "INVALID_ARGUMENT": 3, + "DEADLINE_EXCEEDED": 4, + "NOT_FOUND": 5, + "ALREADY_EXISTS": 6, + "PERMISSION_DENIED": 7, + "UNAUTHENTICATED": 16, + "RESOURCE_EXHAUSTED": 8, + "FAILED_PRECONDITION": 9, + "ABORTED": 10, + "OUT_OF_RANGE": 11, + "UNIMPLEMENTED": 12, + "INTERNAL": 13, + "UNAVAILABLE": 14, + "DATA_LOSS": 15, + } +) -var Code_value = map[string]int32{ - "OK": 0, - "CANCELLED": 1, - "UNKNOWN": 2, - "INVALID_ARGUMENT": 3, - "DEADLINE_EXCEEDED": 4, - "NOT_FOUND": 5, - "ALREADY_EXISTS": 6, - "PERMISSION_DENIED": 7, - "UNAUTHENTICATED": 16, - "RESOURCE_EXHAUSTED": 8, - "FAILED_PRECONDITION": 9, - "ABORTED": 10, - "OUT_OF_RANGE": 11, - "UNIMPLEMENTED": 12, - "INTERNAL": 13, - "UNAVAILABLE": 14, - "DATA_LOSS": 15, +func (x Code) Enum() *Code { + p := new(Code) + *p = x + return p } func (x Code) String() string { - return proto.EnumName(Code_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (Code) Descriptor() protoreflect.EnumDescriptor { + return file_google_rpc_code_proto_enumTypes[0].Descriptor() +} + +func (Code) Type() protoreflect.EnumType { + return &file_google_rpc_code_proto_enumTypes[0] +} + +func (x Code) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Code.Descriptor instead. func (Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_fe593a732623ccf0, []int{0} + return file_google_rpc_code_proto_rawDescGZIP(), []int{0} } -func init() { - proto.RegisterEnum("google.rpc.Code", Code_name, Code_value) +var File_google_rpc_code_proto protoreflect.FileDescriptor + +var file_google_rpc_code_proto_rawDesc = []byte{ + 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x64, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x72, 0x70, 0x63, 0x2a, 0xb7, 0x02, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x06, 0x0a, 0x02, + 0x4f, 0x4b, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, + 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x02, + 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x41, 0x52, 0x47, 0x55, + 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x45, 0x41, 0x44, 0x4c, 0x49, + 0x4e, 0x45, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0d, 0x0a, + 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, + 0x41, 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x06, + 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x44, + 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x07, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x4e, 0x41, 0x55, 0x54, + 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x45, 0x44, 0x10, 0x10, 0x12, 0x16, 0x0a, 0x12, + 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x58, 0x48, 0x41, 0x55, 0x53, 0x54, + 0x45, 0x44, 0x10, 0x08, 0x12, 0x17, 0x0a, 0x13, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x50, + 0x52, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x09, 0x12, 0x0b, 0x0a, + 0x07, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x0a, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x55, + 0x54, 0x5f, 0x4f, 0x46, 0x5f, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x0b, 0x12, 0x11, 0x0a, 0x0d, + 0x55, 0x4e, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x45, 0x44, 0x10, 0x0c, 0x12, + 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x0d, 0x12, 0x0f, 0x0a, + 0x0b, 0x55, 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x0e, 0x12, 0x0d, + 0x0a, 0x09, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x4c, 0x4f, 0x53, 0x53, 0x10, 0x0f, 0x42, 0x58, 0x0a, + 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x42, + 0x09, 0x43, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, + 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, + 0x70, 0x69, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x3b, 0x63, 0x6f, 0x64, + 0x65, 0xa2, 0x02, 0x03, 0x52, 0x50, 0x43, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { - proto.RegisterFile("google/rpc/code.proto", fileDescriptor_fe593a732623ccf0) +var ( + file_google_rpc_code_proto_rawDescOnce sync.Once + file_google_rpc_code_proto_rawDescData = file_google_rpc_code_proto_rawDesc +) + +func file_google_rpc_code_proto_rawDescGZIP() []byte { + file_google_rpc_code_proto_rawDescOnce.Do(func() { + file_google_rpc_code_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_rpc_code_proto_rawDescData) + }) + return file_google_rpc_code_proto_rawDescData } -var fileDescriptor_fe593a732623ccf0 = []byte{ - // 362 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x51, 0xcd, 0x6e, 0x93, 0x31, - 0x10, 0xa4, 0x69, 0x49, 0x9b, 0xcd, 0xdf, 0xd6, 0xa5, 0xf0, 0x0e, 0x1c, 0x92, 0x43, 0x8f, 0x9c, - 0x36, 0x9f, 0x37, 0xad, 0x55, 0x67, 0xfd, 0xc9, 0x3f, 0x25, 0x70, 0xb1, 0x4a, 0x1a, 0x7d, 0x42, - 0x2a, 0x75, 0xf4, 0xc1, 0x13, 0xf1, 0x12, 0xbc, 0x1e, 0x72, 0x8b, 0xe8, 0xc5, 0x87, 0x99, 0xf1, - 0xee, 0xce, 0x0c, 0x5c, 0x76, 0xa5, 0x74, 0x8f, 0xfb, 0x65, 0x7f, 0xd8, 0x2d, 0x77, 0xe5, 0x61, - 0xbf, 0x38, 0xf4, 0xe5, 0x57, 0x51, 0xf0, 0x02, 0x2f, 0xfa, 0xc3, 0xee, 0xe3, 0x9f, 0x01, 0x9c, - 0x34, 0xe5, 0x61, 0xaf, 0x86, 0x30, 0x70, 0xb7, 0xf8, 0x46, 0x4d, 0x61, 0xd4, 0x90, 0x34, 0x6c, - 0x2d, 0x6b, 0x3c, 0x52, 0x63, 0x38, 0x4d, 0x72, 0x2b, 0xee, 0xb3, 0xe0, 0x40, 0xbd, 0x03, 0x34, - 0x72, 0x47, 0xd6, 0xe8, 0x4c, 0xfe, 0x3a, 0x6d, 0x58, 0x22, 0x1e, 0xab, 0x4b, 0x38, 0xd7, 0x4c, - 0xda, 0x1a, 0xe1, 0xcc, 0xdb, 0x86,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f, 0xff, 0xab, 0xf9, - 0x54, 0x9f, 0xdf, 0x83, 0x63, 0xdf, 0x36, 0xdf, 0x86, 0xcf, 0xaa, 0xab, 0xbf, 0x01, 0x00, 0x00, - 0xff, 0xff, 0x8e, 0x97, 0x77, 0xc2, 0xbf, 0x01, 0x00, 0x00, +var file_google_rpc_code_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_google_rpc_code_proto_goTypes = []interface{}{ + (Code)(0), // 0: google.rpc.Code +} +var file_google_rpc_code_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_rpc_code_proto_init() } +func file_google_rpc_code_proto_init() { + if File_google_rpc_code_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_rpc_code_proto_rawDesc, + NumEnums: 1, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_rpc_code_proto_goTypes, + DependencyIndexes: file_google_rpc_code_proto_depIdxs, + EnumInfos: file_google_rpc_code_proto_enumTypes, + }.Build() + File_google_rpc_code_proto = out.File + file_google_rpc_code_proto_rawDesc = nil + file_google_rpc_code_proto_goTypes = nil + file_google_rpc_code_proto_depIdxs = nil } diff --git a/vendor/google.golang.org/genproto/googleapis/rpc/errdetails/error_details.pb.go b/vendor/google.golang.org/genproto/googleapis/rpc/errdetails/error_details.pb.go index 5ea69f14e..bbe4c52ad 100644 --- a/vendor/google.golang.org/genproto/googleapis/rpc/errdetails/error_details.pb.go +++ b/vendor/google.golang.org/genproto/googleapis/rpc/errdetails/error_details.pb.go @@ -1,26 +1,45 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.22.0 +// protoc v3.12.3 // source: google/rpc/error_details.proto package errdetails import ( - fmt "fmt" - math "math" + reflect "reflect" + sync "sync" proto "github.com/golang/protobuf/proto" duration "github.com/golang/protobuf/ptypes/duration" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 // Describes when the clients can retry a failed request. Clients could ignore // the recommendation here or retry when this information is missing from error @@ -36,91 +55,107 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // number of retries have been reached or a maximum retry delay cap has been // reached. type RetryInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Clients should wait at least this long between retrying the same request. - RetryDelay *duration.Duration `protobuf:"bytes,1,opt,name=retry_delay,json=retryDelay,proto3" json:"retry_delay,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RetryDelay *duration.Duration `protobuf:"bytes,1,opt,name=retry_delay,json=retryDelay,proto3" json:"retry_delay,omitempty"` } -func (m *RetryInfo) Reset() { *m = RetryInfo{} } -func (m *RetryInfo) String() string { return proto.CompactTextString(m) } -func (*RetryInfo) ProtoMessage() {} +func (x *RetryInfo) Reset() { + *x = RetryInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_google_rpc_error_details_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RetryInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RetryInfo) ProtoMessage() {} + +func (x *RetryInfo) ProtoReflect() protoreflect.Message { + mi := &file_google_rpc_error_details_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RetryInfo.ProtoReflect.Descriptor instead. func (*RetryInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_851816e4d6b6361a, []int{0} + return file_google_rpc_error_details_proto_rawDescGZIP(), []int{0} } -func (m *RetryInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RetryInfo.Unmarshal(m, b) -} -func (m *RetryInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RetryInfo.Marshal(b, m, deterministic) -} -func (m *RetryInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_RetryInfo.Merge(m, src) -} -func (m *RetryInfo) XXX_Size() int { - return xxx_messageInfo_RetryInfo.Size(m) -} -func (m *RetryInfo) XXX_DiscardUnknown() { - xxx_messageInfo_RetryInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_RetryInfo proto.InternalMessageInfo - -func (m *RetryInfo) GetRetryDelay() *duration.Duration { - if m != nil { - return m.RetryDelay +func (x *RetryInfo) GetRetryDelay() *duration.Duration { + if x != nil { + return x.RetryDelay } return nil } // Describes additional debugging info. type DebugInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The stack trace entries indicating where the error occurred. StackEntries []string `protobuf:"bytes,1,rep,name=stack_entries,json=stackEntries,proto3" json:"stack_entries,omitempty"` // Additional debugging information provided by the server. - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` } -func (m *DebugInfo) Reset() { *m = DebugInfo{} } -func (m *DebugInfo) String() string { return proto.CompactTextString(m) } -func (*DebugInfo) ProtoMessage() {} +func (x *DebugInfo) Reset() { + *x = DebugInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_google_rpc_error_details_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DebugInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DebugInfo) ProtoMessage() {} + +func (x *DebugInfo) ProtoReflect() protoreflect.Message { + mi := &file_google_rpc_error_details_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DebugInfo.ProtoReflect.Descriptor instead. func (*DebugInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_851816e4d6b6361a, []int{1} + return file_google_rpc_error_details_proto_rawDescGZIP(), []int{1} } -func (m *DebugInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DebugInfo.Unmarshal(m, b) -} -func (m *DebugInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DebugInfo.Marshal(b, m, deterministic) -} -func (m *DebugInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_DebugInfo.Merge(m, src) -} -func (m *DebugInfo) XXX_Size() int { - return xxx_messageInfo_DebugInfo.Size(m) -} -func (m *DebugInfo) XXX_DiscardUnknown() { - xxx_messageInfo_DebugInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_DebugInfo proto.InternalMessageInfo - -func (m *DebugInfo) GetStackEntries() []string { - if m != nil { - return m.StackEntries +func (x *DebugInfo) GetStackEntries() []string { + if x != nil { + return x.StackEntries } return nil } -func (m *DebugInfo) GetDetail() string { - if m != nil { - return m.Detail +func (x *DebugInfo) GetDetail() string { + if x != nil { + return x.Detail } return "" } @@ -137,109 +172,58 @@ func (m *DebugInfo) GetDetail() string { // Also see RetryInfo and Help types for other details about handling a // quota failure. type QuotaFailure struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Describes all quota violations. - Violations []*QuotaFailure_Violation `protobuf:"bytes,1,rep,name=violations,proto3" json:"violations,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Violations []*QuotaFailure_Violation `protobuf:"bytes,1,rep,name=violations,proto3" json:"violations,omitempty"` } -func (m *QuotaFailure) Reset() { *m = QuotaFailure{} } -func (m *QuotaFailure) String() string { return proto.CompactTextString(m) } -func (*QuotaFailure) ProtoMessage() {} +func (x *QuotaFailure) Reset() { + *x = QuotaFailure{} + if protoimpl.UnsafeEnabled { + mi := &file_google_rpc_error_details_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QuotaFailure) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QuotaFailure) ProtoMessage() {} + +func (x *QuotaFailure) ProtoReflect() protoreflect.Message { + mi := &file_google_rpc_error_details_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QuotaFailure.ProtoReflect.Descriptor instead. func (*QuotaFailure) Descriptor() ([]byte, []int) { - return fileDescriptor_851816e4d6b6361a, []int{2} + return file_google_rpc_error_details_proto_rawDescGZIP(), []int{2} } -func (m *QuotaFailure) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_QuotaFailure.Unmarshal(m, b) -} -func (m *QuotaFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_QuotaFailure.Marshal(b, m, deterministic) -} -func (m *QuotaFailure) XXX_Merge(src proto.Message) { - xxx_messageInfo_QuotaFailure.Merge(m, src) -} -func (m *QuotaFailure) XXX_Size() int { - return xxx_messageInfo_QuotaFailure.Size(m) -} -func (m *QuotaFailure) XXX_DiscardUnknown() { - xxx_messageInfo_QuotaFailure.DiscardUnknown(m) -} - -var xxx_messageInfo_QuotaFailure proto.InternalMessageInfo - -func (m *QuotaFailure) GetViolations() []*QuotaFailure_Violation { - if m != nil { - return m.Violations +func (x *QuotaFailure) GetViolations() []*QuotaFailure_Violation { + if x != nil { + return x.Violations } return nil } -// A message type used to describe a single quota violation. For example, a -// daily quota or a custom quota that was exceeded. -type QuotaFailure_Violation struct { - // The subject on which the quota check failed. - // For example, "clientip:" or "project:". - Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` - // A description of how the quota check failed. Clients can use this - // description to find more about the quota configuration in the service's - // public documentation, or find the relevant quota limit to adjust through - // developer console. - // - // For example: "Service disabled" or "Daily Limit for read operations - // exceeded". - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *QuotaFailure_Violation) Reset() { *m = QuotaFailure_Violation{} } -func (m *QuotaFailure_Violation) String() string { return proto.CompactTextString(m) } -func (*QuotaFailure_Violation) ProtoMessage() {} -func (*QuotaFailure_Violation) Descriptor() ([]byte, []int) { - return fileDescriptor_851816e4d6b6361a, []int{2, 0} -} - -func (m *QuotaFailure_Violation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_QuotaFailure_Violation.Unmarshal(m, b) -} -func (m *QuotaFailure_Violation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_QuotaFailure_Violation.Marshal(b, m, deterministic) -} -func (m *QuotaFailure_Violation) XXX_Merge(src proto.Message) { - xxx_messageInfo_QuotaFailure_Violation.Merge(m, src) -} -func (m *QuotaFailure_Violation) XXX_Size() int { - return xxx_messageInfo_QuotaFailure_Violation.Size(m) -} -func (m *QuotaFailure_Violation) XXX_DiscardUnknown() { - xxx_messageInfo_QuotaFailure_Violation.DiscardUnknown(m) -} - -var xxx_messageInfo_QuotaFailure_Violation proto.InternalMessageInfo - -func (m *QuotaFailure_Violation) GetSubject() string { - if m != nil { - return m.Subject - } - return "" -} - -func (m *QuotaFailure_Violation) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - // Describes the cause of the error with structured details. // // Example of an error when contacting the "pubsub.googleapis.com" API when it // is not enabled: -// { "type": "API_DISABLED" +// { "reason": "API_DISABLED" // "domain": "googleapis.com" // "metadata": { // "resource": "projects/123", @@ -250,14 +234,18 @@ func (m *QuotaFailure_Violation) GetDescription() string { // // Example of an error that is returned when attempting to create a Spanner // instance in a region that is out of stock: -// { "type": "STOCKOUT" +// { "reason": "STOCKOUT" // "domain": "spanner.googleapis.com", // "metadata": { -// "availableRegions": ""us-central1,us-east2" +// "availableRegions": "us-central1,us-east2" // } // } // type ErrorInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The reason of the error. This is a constant value that identifies the // proximate cause of the error. Error reasons are unique within a particular // domain of errors. This should be at most 63 characters and match @@ -277,54 +265,58 @@ type ErrorInfo struct { // {"instanceLimit": "100/request"}, should be returned as, // {"instanceLimitPerRequest": "100"}, if the client exceeds the number of // instances that can be created in a single (batch) request. - Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,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:"-"` + Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *ErrorInfo) Reset() { *m = ErrorInfo{} } -func (m *ErrorInfo) String() string { return proto.CompactTextString(m) } -func (*ErrorInfo) ProtoMessage() {} +func (x *ErrorInfo) Reset() { + *x = ErrorInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_google_rpc_error_details_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ErrorInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ErrorInfo) ProtoMessage() {} + +func (x *ErrorInfo) ProtoReflect() protoreflect.Message { + mi := &file_google_rpc_error_details_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ErrorInfo.ProtoReflect.Descriptor instead. func (*ErrorInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_851816e4d6b6361a, []int{3} + return file_google_rpc_error_details_proto_rawDescGZIP(), []int{3} } -func (m *ErrorInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ErrorInfo.Unmarshal(m, b) -} -func (m *ErrorInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ErrorInfo.Marshal(b, m, deterministic) -} -func (m *ErrorInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ErrorInfo.Merge(m, src) -} -func (m *ErrorInfo) XXX_Size() int { - return xxx_messageInfo_ErrorInfo.Size(m) -} -func (m *ErrorInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ErrorInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_ErrorInfo proto.InternalMessageInfo - -func (m *ErrorInfo) GetReason() string { - if m != nil { - return m.Reason +func (x *ErrorInfo) GetReason() string { + if x != nil { + return x.Reason } return "" } -func (m *ErrorInfo) GetDomain() string { - if m != nil { - return m.Domain +func (x *ErrorInfo) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *ErrorInfo) GetMetadata() map[string]string { - if m != nil { - return m.Metadata +func (x *ErrorInfo) GetMetadata() map[string]string { + if x != nil { + return x.Metadata } return nil } @@ -335,260 +327,170 @@ func (m *ErrorInfo) GetMetadata() map[string]string { // acknowledged, it could list the terms of service violation in the // PreconditionFailure message. type PreconditionFailure struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Describes all precondition violations. - Violations []*PreconditionFailure_Violation `protobuf:"bytes,1,rep,name=violations,proto3" json:"violations,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Violations []*PreconditionFailure_Violation `protobuf:"bytes,1,rep,name=violations,proto3" json:"violations,omitempty"` } -func (m *PreconditionFailure) Reset() { *m = PreconditionFailure{} } -func (m *PreconditionFailure) String() string { return proto.CompactTextString(m) } -func (*PreconditionFailure) ProtoMessage() {} +func (x *PreconditionFailure) Reset() { + *x = PreconditionFailure{} + if protoimpl.UnsafeEnabled { + mi := &file_google_rpc_error_details_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PreconditionFailure) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PreconditionFailure) ProtoMessage() {} + +func (x *PreconditionFailure) ProtoReflect() protoreflect.Message { + mi := &file_google_rpc_error_details_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PreconditionFailure.ProtoReflect.Descriptor instead. func (*PreconditionFailure) Descriptor() ([]byte, []int) { - return fileDescriptor_851816e4d6b6361a, []int{4} + return file_google_rpc_error_details_proto_rawDescGZIP(), []int{4} } -func (m *PreconditionFailure) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PreconditionFailure.Unmarshal(m, b) -} -func (m *PreconditionFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PreconditionFailure.Marshal(b, m, deterministic) -} -func (m *PreconditionFailure) XXX_Merge(src proto.Message) { - xxx_messageInfo_PreconditionFailure.Merge(m, src) -} -func (m *PreconditionFailure) XXX_Size() int { - return xxx_messageInfo_PreconditionFailure.Size(m) -} -func (m *PreconditionFailure) XXX_DiscardUnknown() { - xxx_messageInfo_PreconditionFailure.DiscardUnknown(m) -} - -var xxx_messageInfo_PreconditionFailure proto.InternalMessageInfo - -func (m *PreconditionFailure) GetViolations() []*PreconditionFailure_Violation { - if m != nil { - return m.Violations +func (x *PreconditionFailure) GetViolations() []*PreconditionFailure_Violation { + if x != nil { + return x.Violations } return nil } -// A message type used to describe a single precondition failure. -type PreconditionFailure_Violation struct { - // The type of PreconditionFailure. We recommend using a service-specific - // enum type to define the supported precondition violation subjects. For - // example, "TOS" for "Terms of Service violation". - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - // The subject, relative to the type, that failed. - // For example, "google.com/cloud" relative to the "TOS" type would indicate - // which terms of service is being referenced. - Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` - // A description of how the precondition failed. Developers can use this - // description to understand how to fix the failure. - // - // For example: "Terms of service not accepted". - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PreconditionFailure_Violation) Reset() { *m = PreconditionFailure_Violation{} } -func (m *PreconditionFailure_Violation) String() string { return proto.CompactTextString(m) } -func (*PreconditionFailure_Violation) ProtoMessage() {} -func (*PreconditionFailure_Violation) Descriptor() ([]byte, []int) { - return fileDescriptor_851816e4d6b6361a, []int{4, 0} -} - -func (m *PreconditionFailure_Violation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PreconditionFailure_Violation.Unmarshal(m, b) -} -func (m *PreconditionFailure_Violation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PreconditionFailure_Violation.Marshal(b, m, deterministic) -} -func (m *PreconditionFailure_Violation) XXX_Merge(src proto.Message) { - xxx_messageInfo_PreconditionFailure_Violation.Merge(m, src) -} -func (m *PreconditionFailure_Violation) XXX_Size() int { - return xxx_messageInfo_PreconditionFailure_Violation.Size(m) -} -func (m *PreconditionFailure_Violation) XXX_DiscardUnknown() { - xxx_messageInfo_PreconditionFailure_Violation.DiscardUnknown(m) -} - -var xxx_messageInfo_PreconditionFailure_Violation proto.InternalMessageInfo - -func (m *PreconditionFailure_Violation) GetType() string { - if m != nil { - return m.Type - } - return "" -} - -func (m *PreconditionFailure_Violation) GetSubject() string { - if m != nil { - return m.Subject - } - return "" -} - -func (m *PreconditionFailure_Violation) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - // Describes violations in a client request. This error type focuses on the // syntactic aspects of the request. type BadRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Describes all violations in a client request. - FieldViolations []*BadRequest_FieldViolation `protobuf:"bytes,1,rep,name=field_violations,json=fieldViolations,proto3" json:"field_violations,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + FieldViolations []*BadRequest_FieldViolation `protobuf:"bytes,1,rep,name=field_violations,json=fieldViolations,proto3" json:"field_violations,omitempty"` } -func (m *BadRequest) Reset() { *m = BadRequest{} } -func (m *BadRequest) String() string { return proto.CompactTextString(m) } -func (*BadRequest) ProtoMessage() {} +func (x *BadRequest) Reset() { + *x = BadRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_rpc_error_details_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BadRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BadRequest) ProtoMessage() {} + +func (x *BadRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_rpc_error_details_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BadRequest.ProtoReflect.Descriptor instead. func (*BadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_851816e4d6b6361a, []int{5} + return file_google_rpc_error_details_proto_rawDescGZIP(), []int{5} } -func (m *BadRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BadRequest.Unmarshal(m, b) -} -func (m *BadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BadRequest.Marshal(b, m, deterministic) -} -func (m *BadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BadRequest.Merge(m, src) -} -func (m *BadRequest) XXX_Size() int { - return xxx_messageInfo_BadRequest.Size(m) -} -func (m *BadRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BadRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_BadRequest proto.InternalMessageInfo - -func (m *BadRequest) GetFieldViolations() []*BadRequest_FieldViolation { - if m != nil { - return m.FieldViolations +func (x *BadRequest) GetFieldViolations() []*BadRequest_FieldViolation { + if x != nil { + return x.FieldViolations } return nil } -// A message type used to describe a single bad request field. -type BadRequest_FieldViolation struct { - // A path leading to a field in the request body. The value will be a - // sequence of dot-separated identifiers that identify a protocol buffer - // field. E.g., "field_violations.field" would identify this field. - Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` - // A description of why the request element is bad. - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BadRequest_FieldViolation) Reset() { *m = BadRequest_FieldViolation{} } -func (m *BadRequest_FieldViolation) String() string { return proto.CompactTextString(m) } -func (*BadRequest_FieldViolation) ProtoMessage() {} -func (*BadRequest_FieldViolation) Descriptor() ([]byte, []int) { - return fileDescriptor_851816e4d6b6361a, []int{5, 0} -} - -func (m *BadRequest_FieldViolation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BadRequest_FieldViolation.Unmarshal(m, b) -} -func (m *BadRequest_FieldViolation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BadRequest_FieldViolation.Marshal(b, m, deterministic) -} -func (m *BadRequest_FieldViolation) XXX_Merge(src proto.Message) { - xxx_messageInfo_BadRequest_FieldViolation.Merge(m, src) -} -func (m *BadRequest_FieldViolation) XXX_Size() int { - return xxx_messageInfo_BadRequest_FieldViolation.Size(m) -} -func (m *BadRequest_FieldViolation) XXX_DiscardUnknown() { - xxx_messageInfo_BadRequest_FieldViolation.DiscardUnknown(m) -} - -var xxx_messageInfo_BadRequest_FieldViolation proto.InternalMessageInfo - -func (m *BadRequest_FieldViolation) GetField() string { - if m != nil { - return m.Field - } - return "" -} - -func (m *BadRequest_FieldViolation) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - // Contains metadata about the request that clients can attach when filing a bug // or providing other forms of feedback. type RequestInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // An opaque string that should only be interpreted by the service generating // it. For example, it can be used to identify requests in the service's logs. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Any data that was used to serve this request. For example, an encrypted // stack trace that can be sent back to the service provider for debugging. - ServingData string `protobuf:"bytes,2,opt,name=serving_data,json=servingData,proto3" json:"serving_data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ServingData string `protobuf:"bytes,2,opt,name=serving_data,json=servingData,proto3" json:"serving_data,omitempty"` } -func (m *RequestInfo) Reset() { *m = RequestInfo{} } -func (m *RequestInfo) String() string { return proto.CompactTextString(m) } -func (*RequestInfo) ProtoMessage() {} +func (x *RequestInfo) Reset() { + *x = RequestInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_google_rpc_error_details_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestInfo) ProtoMessage() {} + +func (x *RequestInfo) ProtoReflect() protoreflect.Message { + mi := &file_google_rpc_error_details_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RequestInfo.ProtoReflect.Descriptor instead. func (*RequestInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_851816e4d6b6361a, []int{6} + return file_google_rpc_error_details_proto_rawDescGZIP(), []int{6} } -func (m *RequestInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RequestInfo.Unmarshal(m, b) -} -func (m *RequestInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RequestInfo.Marshal(b, m, deterministic) -} -func (m *RequestInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestInfo.Merge(m, src) -} -func (m *RequestInfo) XXX_Size() int { - return xxx_messageInfo_RequestInfo.Size(m) -} -func (m *RequestInfo) XXX_DiscardUnknown() { - xxx_messageInfo_RequestInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_RequestInfo proto.InternalMessageInfo - -func (m *RequestInfo) GetRequestId() string { - if m != nil { - return m.RequestId +func (x *RequestInfo) GetRequestId() string { + if x != nil { + return x.RequestId } return "" } -func (m *RequestInfo) GetServingData() string { - if m != nil { - return m.ServingData +func (x *RequestInfo) GetServingData() string { + if x != nil { + return x.ServingData } return "" } // Describes the resource that is being accessed. type ResourceInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // A name for the type of resource being accessed, e.g. "sql table", // "cloud storage bucket", "file", "Google calendar"; or the type URL // of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". @@ -604,61 +506,65 @@ type ResourceInfo struct { // Describes what error is encountered when accessing this resource. // For example, updating a cloud project may require the `writer` permission // on the developer console project. - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` } -func (m *ResourceInfo) Reset() { *m = ResourceInfo{} } -func (m *ResourceInfo) String() string { return proto.CompactTextString(m) } -func (*ResourceInfo) ProtoMessage() {} +func (x *ResourceInfo) Reset() { + *x = ResourceInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_google_rpc_error_details_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceInfo) ProtoMessage() {} + +func (x *ResourceInfo) ProtoReflect() protoreflect.Message { + mi := &file_google_rpc_error_details_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResourceInfo.ProtoReflect.Descriptor instead. func (*ResourceInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_851816e4d6b6361a, []int{7} + return file_google_rpc_error_details_proto_rawDescGZIP(), []int{7} } -func (m *ResourceInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResourceInfo.Unmarshal(m, b) -} -func (m *ResourceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResourceInfo.Marshal(b, m, deterministic) -} -func (m *ResourceInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceInfo.Merge(m, src) -} -func (m *ResourceInfo) XXX_Size() int { - return xxx_messageInfo_ResourceInfo.Size(m) -} -func (m *ResourceInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceInfo proto.InternalMessageInfo - -func (m *ResourceInfo) GetResourceType() string { - if m != nil { - return m.ResourceType +func (x *ResourceInfo) GetResourceType() string { + if x != nil { + return x.ResourceType } return "" } -func (m *ResourceInfo) GetResourceName() string { - if m != nil { - return m.ResourceName +func (x *ResourceInfo) GetResourceName() string { + if x != nil { + return x.ResourceName } return "" } -func (m *ResourceInfo) GetOwner() string { - if m != nil { - return m.Owner +func (x *ResourceInfo) GetOwner() string { + if x != nil { + return x.Owner } return "" } -func (m *ResourceInfo) GetDescription() string { - if m != nil { - return m.Description +func (x *ResourceInfo) GetDescription() string { + if x != nil { + return x.Description } return "" } @@ -669,213 +575,706 @@ func (m *ResourceInfo) GetDescription() string { // project hasn't enabled the accessed service, this can contain a URL pointing // directly to the right place in the developer console to flip the bit. type Help struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // URL(s) pointing to additional information on handling the current error. - Links []*Help_Link `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Links []*Help_Link `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"` } -func (m *Help) Reset() { *m = Help{} } -func (m *Help) String() string { return proto.CompactTextString(m) } -func (*Help) ProtoMessage() {} +func (x *Help) Reset() { + *x = Help{} + if protoimpl.UnsafeEnabled { + mi := &file_google_rpc_error_details_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Help) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Help) ProtoMessage() {} + +func (x *Help) ProtoReflect() protoreflect.Message { + mi := &file_google_rpc_error_details_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Help.ProtoReflect.Descriptor instead. func (*Help) Descriptor() ([]byte, []int) { - return fileDescriptor_851816e4d6b6361a, []int{8} + return file_google_rpc_error_details_proto_rawDescGZIP(), []int{8} } -func (m *Help) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help.Unmarshal(m, b) -} -func (m *Help) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help.Marshal(b, m, deterministic) -} -func (m *Help) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help.Merge(m, src) -} -func (m *Help) XXX_Size() int { - return xxx_messageInfo_Help.Size(m) -} -func (m *Help) XXX_DiscardUnknown() { - xxx_messageInfo_Help.DiscardUnknown(m) -} - -var xxx_messageInfo_Help proto.InternalMessageInfo - -func (m *Help) GetLinks() []*Help_Link { - if m != nil { - return m.Links +func (x *Help) GetLinks() []*Help_Link { + if x != nil { + return x.Links } return nil } -// Describes a URL link. -type Help_Link struct { - // Describes what the link offers. - Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` - // The URL of the link. - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Help_Link) Reset() { *m = Help_Link{} } -func (m *Help_Link) String() string { return proto.CompactTextString(m) } -func (*Help_Link) ProtoMessage() {} -func (*Help_Link) Descriptor() ([]byte, []int) { - return fileDescriptor_851816e4d6b6361a, []int{8, 0} -} - -func (m *Help_Link) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_Link.Unmarshal(m, b) -} -func (m *Help_Link) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_Link.Marshal(b, m, deterministic) -} -func (m *Help_Link) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_Link.Merge(m, src) -} -func (m *Help_Link) XXX_Size() int { - return xxx_messageInfo_Help_Link.Size(m) -} -func (m *Help_Link) XXX_DiscardUnknown() { - xxx_messageInfo_Help_Link.DiscardUnknown(m) -} - -var xxx_messageInfo_Help_Link proto.InternalMessageInfo - -func (m *Help_Link) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -func (m *Help_Link) GetUrl() string { - if m != nil { - return m.Url - } - return "" -} - // Provides a localized error message that is safe to return to the user // which can be attached to an RPC error. type LocalizedMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The locale used following the specification defined at // http://www.rfc-editor.org/rfc/bcp/bcp47.txt. // Examples are: "en-US", "fr-CH", "es-MX" Locale string `protobuf:"bytes,1,opt,name=locale,proto3" json:"locale,omitempty"` // The localized error message in the above locale. - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } -func (m *LocalizedMessage) Reset() { *m = LocalizedMessage{} } -func (m *LocalizedMessage) String() string { return proto.CompactTextString(m) } -func (*LocalizedMessage) ProtoMessage() {} +func (x *LocalizedMessage) Reset() { + *x = LocalizedMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_google_rpc_error_details_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LocalizedMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LocalizedMessage) ProtoMessage() {} + +func (x *LocalizedMessage) ProtoReflect() protoreflect.Message { + mi := &file_google_rpc_error_details_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LocalizedMessage.ProtoReflect.Descriptor instead. func (*LocalizedMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_851816e4d6b6361a, []int{9} + return file_google_rpc_error_details_proto_rawDescGZIP(), []int{9} } -func (m *LocalizedMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LocalizedMessage.Unmarshal(m, b) -} -func (m *LocalizedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LocalizedMessage.Marshal(b, m, deterministic) -} -func (m *LocalizedMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_LocalizedMessage.Merge(m, src) -} -func (m *LocalizedMessage) XXX_Size() int { - return xxx_messageInfo_LocalizedMessage.Size(m) -} -func (m *LocalizedMessage) XXX_DiscardUnknown() { - xxx_messageInfo_LocalizedMessage.DiscardUnknown(m) -} - -var xxx_messageInfo_LocalizedMessage proto.InternalMessageInfo - -func (m *LocalizedMessage) GetLocale() string { - if m != nil { - return m.Locale +func (x *LocalizedMessage) GetLocale() string { + if x != nil { + return x.Locale } return "" } -func (m *LocalizedMessage) GetMessage() string { - if m != nil { - return m.Message +func (x *LocalizedMessage) GetMessage() string { + if x != nil { + return x.Message } return "" } -func init() { - proto.RegisterType((*RetryInfo)(nil), "google.rpc.RetryInfo") - proto.RegisterType((*DebugInfo)(nil), "google.rpc.DebugInfo") - proto.RegisterType((*QuotaFailure)(nil), "google.rpc.QuotaFailure") - proto.RegisterType((*QuotaFailure_Violation)(nil), "google.rpc.QuotaFailure.Violation") - proto.RegisterType((*ErrorInfo)(nil), "google.rpc.ErrorInfo") - proto.RegisterMapType((map[string]string)(nil), "google.rpc.ErrorInfo.MetadataEntry") - proto.RegisterType((*PreconditionFailure)(nil), "google.rpc.PreconditionFailure") - proto.RegisterType((*PreconditionFailure_Violation)(nil), "google.rpc.PreconditionFailure.Violation") - proto.RegisterType((*BadRequest)(nil), "google.rpc.BadRequest") - proto.RegisterType((*BadRequest_FieldViolation)(nil), "google.rpc.BadRequest.FieldViolation") - proto.RegisterType((*RequestInfo)(nil), "google.rpc.RequestInfo") - proto.RegisterType((*ResourceInfo)(nil), "google.rpc.ResourceInfo") - proto.RegisterType((*Help)(nil), "google.rpc.Help") - proto.RegisterType((*Help_Link)(nil), "google.rpc.Help.Link") - proto.RegisterType((*LocalizedMessage)(nil), "google.rpc.LocalizedMessage") +// A message type used to describe a single quota violation. For example, a +// daily quota or a custom quota that was exceeded. +type QuotaFailure_Violation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The subject on which the quota check failed. + // For example, "clientip:" or "project:". + Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` + // A description of how the quota check failed. Clients can use this + // description to find more about the quota configuration in the service's + // public documentation, or find the relevant quota limit to adjust through + // developer console. + // + // For example: "Service disabled" or "Daily Limit for read operations + // exceeded". + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func init() { - proto.RegisterFile("google/rpc/error_details.proto", fileDescriptor_851816e4d6b6361a) +func (x *QuotaFailure_Violation) Reset() { + *x = QuotaFailure_Violation{} + if protoimpl.UnsafeEnabled { + mi := &file_google_rpc_error_details_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -var fileDescriptor_851816e4d6b6361a = []byte{ - // 674 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x4d, 0x6f, 0xd3, 0x40, - 0x10, 0x95, 0x93, 0xb4, 0xe0, 0x49, 0x5a, 0x8a, 0x81, 0x2a, 0x44, 0x02, 0x05, 0x57, 0x48, 0x45, - 0x48, 0x8e, 0x54, 0x2e, 0xa8, 0x3d, 0x54, 0x0a, 0xe9, 0x97, 0xd4, 0x42, 0xb0, 0x10, 0x07, 0x38, - 0x44, 0x1b, 0x7b, 0x62, 0x2d, 0x71, 0xbc, 0x66, 0xbd, 0x2e, 0x0a, 0xbf, 0x82, 0x3b, 0x37, 0x4e, - 0xfc, 0x05, 0x0e, 0xfc, 0x37, 0xb4, 0x5f, 0x89, 0xdb, 0x14, 0xc4, 0x6d, 0xdf, 0xec, 0xdb, 0xb7, - 0xf3, 0x9e, 0x66, 0x17, 0x1e, 0x27, 0x8c, 0x25, 0x29, 0xf6, 0x78, 0x1e, 0xf5, 0x90, 0x73, 0xc6, - 0x47, 0x31, 0x0a, 0x42, 0xd3, 0x22, 0xc8, 0x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a, 0x38, 0x7c, 0x35, - 0x5e, 0x57, 0x27, 0x5e, 0xfc, 0x09, 0x00, 0x00, 0xff, 0xff, 0x2b, 0x8c, 0x9a, 0x65, 0xb5, 0x05, - 0x00, 0x00, +func (x *QuotaFailure_Violation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QuotaFailure_Violation) ProtoMessage() {} + +func (x *QuotaFailure_Violation) ProtoReflect() protoreflect.Message { + mi := &file_google_rpc_error_details_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QuotaFailure_Violation.ProtoReflect.Descriptor instead. +func (*QuotaFailure_Violation) Descriptor() ([]byte, []int) { + return file_google_rpc_error_details_proto_rawDescGZIP(), []int{2, 0} +} + +func (x *QuotaFailure_Violation) GetSubject() string { + if x != nil { + return x.Subject + } + return "" +} + +func (x *QuotaFailure_Violation) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +// A message type used to describe a single precondition failure. +type PreconditionFailure_Violation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The type of PreconditionFailure. We recommend using a service-specific + // enum type to define the supported precondition violation subjects. For + // example, "TOS" for "Terms of Service violation". + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + // The subject, relative to the type, that failed. + // For example, "google.com/cloud" relative to the "TOS" type would indicate + // which terms of service is being referenced. + Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` + // A description of how the precondition failed. Developers can use this + // description to understand how to fix the failure. + // + // For example: "Terms of service not accepted". + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *PreconditionFailure_Violation) Reset() { + *x = PreconditionFailure_Violation{} + if protoimpl.UnsafeEnabled { + mi := &file_google_rpc_error_details_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PreconditionFailure_Violation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PreconditionFailure_Violation) ProtoMessage() {} + +func (x *PreconditionFailure_Violation) ProtoReflect() protoreflect.Message { + mi := &file_google_rpc_error_details_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PreconditionFailure_Violation.ProtoReflect.Descriptor instead. +func (*PreconditionFailure_Violation) Descriptor() ([]byte, []int) { + return file_google_rpc_error_details_proto_rawDescGZIP(), []int{4, 0} +} + +func (x *PreconditionFailure_Violation) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *PreconditionFailure_Violation) GetSubject() string { + if x != nil { + return x.Subject + } + return "" +} + +func (x *PreconditionFailure_Violation) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +// A message type used to describe a single bad request field. +type BadRequest_FieldViolation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A path leading to a field in the request body. The value will be a + // sequence of dot-separated identifiers that identify a protocol buffer + // field. E.g., "field_violations.field" would identify this field. + Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` + // A description of why the request element is bad. + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *BadRequest_FieldViolation) Reset() { + *x = BadRequest_FieldViolation{} + if protoimpl.UnsafeEnabled { + mi := &file_google_rpc_error_details_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BadRequest_FieldViolation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BadRequest_FieldViolation) ProtoMessage() {} + +func (x *BadRequest_FieldViolation) ProtoReflect() protoreflect.Message { + mi := &file_google_rpc_error_details_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BadRequest_FieldViolation.ProtoReflect.Descriptor instead. +func (*BadRequest_FieldViolation) Descriptor() ([]byte, []int) { + return file_google_rpc_error_details_proto_rawDescGZIP(), []int{5, 0} +} + +func (x *BadRequest_FieldViolation) GetField() string { + if x != nil { + return x.Field + } + return "" +} + +func (x *BadRequest_FieldViolation) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +// Describes a URL link. +type Help_Link struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Describes what the link offers. + Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` + // The URL of the link. + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` +} + +func (x *Help_Link) Reset() { + *x = Help_Link{} + if protoimpl.UnsafeEnabled { + mi := &file_google_rpc_error_details_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Help_Link) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Help_Link) ProtoMessage() {} + +func (x *Help_Link) ProtoReflect() protoreflect.Message { + mi := &file_google_rpc_error_details_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Help_Link.ProtoReflect.Descriptor instead. +func (*Help_Link) Descriptor() ([]byte, []int) { + return file_google_rpc_error_details_proto_rawDescGZIP(), []int{8, 0} +} + +func (x *Help_Link) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *Help_Link) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +var File_google_rpc_error_details_proto protoreflect.FileDescriptor + +var file_google_rpc_error_details_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 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, 0x22, 0x47, 0x0a, 0x09, + 0x52, 0x65, 0x74, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3a, 0x0a, 0x0b, 0x72, 0x65, 0x74, + 0x72, 0x79, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x01, 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, 0x0a, 0x72, 0x65, 0x74, 0x72, 0x79, + 0x44, 0x65, 0x6c, 0x61, 0x79, 0x22, 0x48, 0x0a, 0x09, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, + 0x66, 0x6f, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x65, 0x6e, 0x74, 0x72, + 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x63, 0x6b, + 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, + 0x9b, 0x01, 0x0a, 0x0c, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, + 0x12, 0x42, 0x0a, 0x0a, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, + 0x63, 0x2e, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x2e, 0x56, + 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x47, 0x0a, 0x09, 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 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, 0x22, 0xb9, 0x01, + 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x72, + 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3f, 0x0a, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b, 0x0a, 0x0d, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xbd, 0x01, 0x0a, 0x13, 0x50, 0x72, + 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, + 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, + 0x70, 0x63, 0x2e, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x46, + 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x2e, 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x0a, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x5b, 0x0a, 0x09, + 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0x01, 0x0a, 0x0a, 0x42, 0x61, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x50, 0x0a, 0x10, 0x66, 0x69, 0x65, 0x6c, + 0x64, 0x5f, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, + 0x42, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x66, 0x69, 0x65, 0x6c, 0x64, + 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x48, 0x0a, 0x0e, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, + 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x65, + 0x6c, 0x64, 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, 0x22, 0x4f, 0x0a, 0x0b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, + 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x6e, + 0x67, 0x44, 0x61, 0x74, 0x61, 0x22, 0x90, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6f, 0x0a, 0x04, 0x48, 0x65, 0x6c, 0x70, + 0x12, 0x2b, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x65, 0x6c, + 0x70, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x1a, 0x3a, 0x0a, + 0x04, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x44, 0x0a, 0x10, 0x4c, 0x6f, 0x63, + 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6c, + 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, + 0x6c, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, + 0x63, 0x42, 0x11, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, + 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x72, 0x70, + 0x63, 0x2f, 0x65, 0x72, 0x72, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x3b, 0x65, 0x72, 0x72, + 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0xa2, 0x02, 0x03, 0x52, 0x50, 0x43, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_rpc_error_details_proto_rawDescOnce sync.Once + file_google_rpc_error_details_proto_rawDescData = file_google_rpc_error_details_proto_rawDesc +) + +func file_google_rpc_error_details_proto_rawDescGZIP() []byte { + file_google_rpc_error_details_proto_rawDescOnce.Do(func() { + file_google_rpc_error_details_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_rpc_error_details_proto_rawDescData) + }) + return file_google_rpc_error_details_proto_rawDescData +} + +var file_google_rpc_error_details_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_google_rpc_error_details_proto_goTypes = []interface{}{ + (*RetryInfo)(nil), // 0: google.rpc.RetryInfo + (*DebugInfo)(nil), // 1: google.rpc.DebugInfo + (*QuotaFailure)(nil), // 2: google.rpc.QuotaFailure + (*ErrorInfo)(nil), // 3: google.rpc.ErrorInfo + (*PreconditionFailure)(nil), // 4: google.rpc.PreconditionFailure + (*BadRequest)(nil), // 5: google.rpc.BadRequest + (*RequestInfo)(nil), // 6: google.rpc.RequestInfo + (*ResourceInfo)(nil), // 7: google.rpc.ResourceInfo + (*Help)(nil), // 8: google.rpc.Help + (*LocalizedMessage)(nil), // 9: google.rpc.LocalizedMessage + (*QuotaFailure_Violation)(nil), // 10: google.rpc.QuotaFailure.Violation + nil, // 11: google.rpc.ErrorInfo.MetadataEntry + (*PreconditionFailure_Violation)(nil), // 12: google.rpc.PreconditionFailure.Violation + (*BadRequest_FieldViolation)(nil), // 13: google.rpc.BadRequest.FieldViolation + (*Help_Link)(nil), // 14: google.rpc.Help.Link + (*duration.Duration)(nil), // 15: google.protobuf.Duration +} +var file_google_rpc_error_details_proto_depIdxs = []int32{ + 15, // 0: google.rpc.RetryInfo.retry_delay:type_name -> google.protobuf.Duration + 10, // 1: google.rpc.QuotaFailure.violations:type_name -> google.rpc.QuotaFailure.Violation + 11, // 2: google.rpc.ErrorInfo.metadata:type_name -> google.rpc.ErrorInfo.MetadataEntry + 12, // 3: google.rpc.PreconditionFailure.violations:type_name -> google.rpc.PreconditionFailure.Violation + 13, // 4: google.rpc.BadRequest.field_violations:type_name -> google.rpc.BadRequest.FieldViolation + 14, // 5: google.rpc.Help.links:type_name -> google.rpc.Help.Link + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_google_rpc_error_details_proto_init() } +func file_google_rpc_error_details_proto_init() { + if File_google_rpc_error_details_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_rpc_error_details_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RetryInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_rpc_error_details_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DebugInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_rpc_error_details_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QuotaFailure); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_rpc_error_details_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ErrorInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_rpc_error_details_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PreconditionFailure); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_rpc_error_details_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BadRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_rpc_error_details_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_rpc_error_details_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_rpc_error_details_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Help); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_rpc_error_details_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LocalizedMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_rpc_error_details_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QuotaFailure_Violation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_rpc_error_details_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PreconditionFailure_Violation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_rpc_error_details_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BadRequest_FieldViolation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_rpc_error_details_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Help_Link); 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_google_rpc_error_details_proto_rawDesc, + NumEnums: 0, + NumMessages: 15, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_rpc_error_details_proto_goTypes, + DependencyIndexes: file_google_rpc_error_details_proto_depIdxs, + MessageInfos: file_google_rpc_error_details_proto_msgTypes, + }.Build() + File_google_rpc_error_details_proto = out.File + file_google_rpc_error_details_proto_rawDesc = nil + file_google_rpc_error_details_proto_goTypes = nil + file_google_rpc_error_details_proto_depIdxs = nil } diff --git a/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go b/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go index c988461b6..5dfabd640 100644 --- a/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go +++ b/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go @@ -1,26 +1,45 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.22.0 +// protoc v3.12.3 // source: google/rpc/status.proto package status import ( - fmt "fmt" - math "math" + reflect "reflect" + sync "sync" proto "github.com/golang/protobuf/proto" any "github.com/golang/protobuf/ptypes/any" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 // The `Status` type defines a logical error model that is suitable for // different programming environments, including REST APIs and RPC APIs. It is @@ -30,6 +49,10 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // You can find out more about this error model and how to work with it in the // [API Design Guide](https://cloud.google.com/apis/design/errors). type Status struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // A developer-facing error message, which should be in English. Any @@ -38,80 +61,146 @@ type Status struct { Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // A list of messages that carry the error details. There is a common set of // message types for APIs to use. - Details []*any.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Details []*any.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"` } -func (m *Status) Reset() { *m = Status{} } -func (m *Status) String() string { return proto.CompactTextString(m) } -func (*Status) ProtoMessage() {} +func (x *Status) Reset() { + *x = Status{} + if protoimpl.UnsafeEnabled { + mi := &file_google_rpc_status_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Status) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Status) ProtoMessage() {} + +func (x *Status) ProtoReflect() protoreflect.Message { + mi := &file_google_rpc_status_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Status.ProtoReflect.Descriptor instead. func (*Status) Descriptor() ([]byte, []int) { - return fileDescriptor_24d244abaf643bfe, []int{0} + return file_google_rpc_status_proto_rawDescGZIP(), []int{0} } -func (m *Status) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Status.Unmarshal(m, b) -} -func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Status.Marshal(b, m, deterministic) -} -func (m *Status) XXX_Merge(src proto.Message) { - xxx_messageInfo_Status.Merge(m, src) -} -func (m *Status) XXX_Size() int { - return xxx_messageInfo_Status.Size(m) -} -func (m *Status) XXX_DiscardUnknown() { - xxx_messageInfo_Status.DiscardUnknown(m) -} - -var xxx_messageInfo_Status proto.InternalMessageInfo - -func (m *Status) GetCode() int32 { - if m != nil { - return m.Code +func (x *Status) GetCode() int32 { + if x != nil { + return x.Code } return 0 } -func (m *Status) GetMessage() string { - if m != nil { - return m.Message +func (x *Status) GetMessage() string { + if x != nil { + return x.Message } return "" } -func (m *Status) GetDetails() []*any.Any { - if m != nil { - return m.Details +func (x *Status) GetDetails() []*any.Any { + if x != nil { + return x.Details } return nil } -func init() { - proto.RegisterType((*Status)(nil), "google.rpc.Status") +var File_google_rpc_status_proto protoreflect.FileDescriptor + +var file_google_rpc_status_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x72, 0x70, 0x63, 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, + 0x22, 0x66, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, + 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 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, + 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x42, 0x61, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x42, 0x0b, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, + 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x3b, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x52, 0x50, 0x43, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } -func init() { - proto.RegisterFile("google/rpc/status.proto", fileDescriptor_24d244abaf643bfe) +var ( + file_google_rpc_status_proto_rawDescOnce sync.Once + file_google_rpc_status_proto_rawDescData = file_google_rpc_status_proto_rawDesc +) + +func file_google_rpc_status_proto_rawDescGZIP() []byte { + file_google_rpc_status_proto_rawDescOnce.Do(func() { + file_google_rpc_status_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_rpc_status_proto_rawDescData) + }) + return file_google_rpc_status_proto_rawDescData } -var fileDescriptor_24d244abaf643bfe = []byte{ - // 212 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4f, 0xcf, 0xcf, 0x4f, - 0xcf, 0x49, 0xd5, 0x2f, 0x2a, 0x48, 0xd6, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0x2d, 0xd6, 0x2b, 0x28, - 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x82, 0x48, 0xe8, 0x15, 0x15, 0x24, 0x4b, 0x49, 0x42, 0x15, 0x81, - 0x65, 0x92, 0x4a, 0xd3, 0xf4, 0x13, 0xf3, 0x2a, 0x21, 0xca, 0x94, 0xd2, 0xb8, 0xd8, 0x82, 0xc1, - 0xda, 0x84, 0x84, 0xb8, 0x58, 0x92, 0xf3, 0x53, 0x52, 0x25, 0x18, 0x15, 0x18, 0x35, 0x58, 0x83, - 0xc0, 0x6c, 0x21, 0x09, 0x2e, 0xf6, 0xdc, 0xd4, 0xe2, 0xe2, 0xc4, 0xf4, 0x54, 0x09, 0x26, 0x05, - 0x46, 0x0d, 0xce, 0x20, 0x18, 0x57, 0x48, 0x8f, 0x8b, 0x3d, 0x25, 0xb5, 0x24, 0x31, 0x33, 0xa7, - 0x58, 0x82, 0x59, 0x81, 0x59, 0x83, 0xdb, 0x48, 0x44, 0x0f, 0x6a, 0x21, 0xcc, 0x12, 0x3d, 0xc7, - 0xbc, 0xca, 0x20, 0x98, 0x22, 0xa7, 0x44, 0x2e, 0xbe, 0xe4, 0xfc, 0x5c, 0x3d, 0x84, 0xa3, 0x9c, - 0xb8, 0x21, 0xf6, 0x06, 0x80, 0x94, 0x07, 0x30, 0x46, 0x99, 0x43, 0xa5, 0xd2, 0xf3, 0x73, 0x12, - 0xf3, 0xd2, 0xf5, 0xf2, 0x8b, 0xd2, 0xf5, 0xd3, 0x53, 0xf3, 0xc0, 0x86, 0xe9, 0x43, 0xa4, 0x12, - 0x0b, 0x32, 0x8b, 0x91, 0xfc, 0x69, 0x0d, 0xa1, 0x7e, 0x30, 0x32, 0x2e, 0x62, 0x62, 0x0e, 0x0a, - 0x70, 0x4e, 0x62, 0x03, 0x2b, 0x36, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xb9, 0x28, 0x45, 0xb1, - 0x13, 0x01, 0x00, 0x00, +var file_google_rpc_status_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_rpc_status_proto_goTypes = []interface{}{ + (*Status)(nil), // 0: google.rpc.Status + (*any.Any)(nil), // 1: google.protobuf.Any +} +var file_google_rpc_status_proto_depIdxs = []int32{ + 1, // 0: google.rpc.Status.details:type_name -> google.protobuf.Any + 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_google_rpc_status_proto_init() } +func file_google_rpc_status_proto_init() { + if File_google_rpc_status_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_rpc_status_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Status); 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_google_rpc_status_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_rpc_status_proto_goTypes, + DependencyIndexes: file_google_rpc_status_proto_depIdxs, + MessageInfos: file_google_rpc_status_proto_msgTypes, + }.Build() + File_google_rpc_status_proto = out.File + file_google_rpc_status_proto_rawDesc = nil + file_google_rpc_status_proto_goTypes = nil + file_google_rpc_status_proto_depIdxs = nil } diff --git a/vendor/google.golang.org/genproto/googleapis/type/dayofweek/dayofweek.pb.go b/vendor/google.golang.org/genproto/googleapis/type/dayofweek/dayofweek.pb.go new file mode 100644 index 000000000..7d05e70bc --- /dev/null +++ b/vendor/google.golang.org/genproto/googleapis/type/dayofweek/dayofweek.pb.go @@ -0,0 +1,188 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.22.0 +// protoc v3.12.3 +// source: google/type/dayofweek.proto + +package dayofweek + +import ( + reflect "reflect" + sync "sync" + + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +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 that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// Represents a day of week. +type DayOfWeek int32 + +const ( + // The unspecified day-of-week. + DayOfWeek_DAY_OF_WEEK_UNSPECIFIED DayOfWeek = 0 + // The day-of-week of Monday. + DayOfWeek_MONDAY DayOfWeek = 1 + // The day-of-week of Tuesday. + DayOfWeek_TUESDAY DayOfWeek = 2 + // The day-of-week of Wednesday. + DayOfWeek_WEDNESDAY DayOfWeek = 3 + // The day-of-week of Thursday. + DayOfWeek_THURSDAY DayOfWeek = 4 + // The day-of-week of Friday. + DayOfWeek_FRIDAY DayOfWeek = 5 + // The day-of-week of Saturday. + DayOfWeek_SATURDAY DayOfWeek = 6 + // The day-of-week of Sunday. + DayOfWeek_SUNDAY DayOfWeek = 7 +) + +// Enum value maps for DayOfWeek. +var ( + DayOfWeek_name = map[int32]string{ + 0: "DAY_OF_WEEK_UNSPECIFIED", + 1: "MONDAY", + 2: "TUESDAY", + 3: "WEDNESDAY", + 4: "THURSDAY", + 5: "FRIDAY", + 6: "SATURDAY", + 7: "SUNDAY", + } + DayOfWeek_value = map[string]int32{ + "DAY_OF_WEEK_UNSPECIFIED": 0, + "MONDAY": 1, + "TUESDAY": 2, + "WEDNESDAY": 3, + "THURSDAY": 4, + "FRIDAY": 5, + "SATURDAY": 6, + "SUNDAY": 7, + } +) + +func (x DayOfWeek) Enum() *DayOfWeek { + p := new(DayOfWeek) + *p = x + return p +} + +func (x DayOfWeek) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DayOfWeek) Descriptor() protoreflect.EnumDescriptor { + return file_google_type_dayofweek_proto_enumTypes[0].Descriptor() +} + +func (DayOfWeek) Type() protoreflect.EnumType { + return &file_google_type_dayofweek_proto_enumTypes[0] +} + +func (x DayOfWeek) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use DayOfWeek.Descriptor instead. +func (DayOfWeek) EnumDescriptor() ([]byte, []int) { + return file_google_type_dayofweek_proto_rawDescGZIP(), []int{0} +} + +var File_google_type_dayofweek_proto protoreflect.FileDescriptor + +var file_google_type_dayofweek_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x64, 0x61, + 0x79, 0x6f, 0x66, 0x77, 0x65, 0x65, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2a, 0x84, 0x01, 0x0a, 0x09, 0x44, + 0x61, 0x79, 0x4f, 0x66, 0x57, 0x65, 0x65, 0x6b, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x41, 0x59, 0x5f, + 0x4f, 0x46, 0x5f, 0x57, 0x45, 0x45, 0x4b, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x4f, 0x4e, 0x44, 0x41, 0x59, 0x10, + 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x55, 0x45, 0x53, 0x44, 0x41, 0x59, 0x10, 0x02, 0x12, 0x0d, + 0x0a, 0x09, 0x57, 0x45, 0x44, 0x4e, 0x45, 0x53, 0x44, 0x41, 0x59, 0x10, 0x03, 0x12, 0x0c, 0x0a, + 0x08, 0x54, 0x48, 0x55, 0x52, 0x53, 0x44, 0x41, 0x59, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x46, + 0x52, 0x49, 0x44, 0x41, 0x59, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x41, 0x54, 0x55, 0x52, + 0x44, 0x41, 0x59, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x55, 0x4e, 0x44, 0x41, 0x59, 0x10, + 0x07, 0x42, 0x69, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x42, 0x0e, 0x44, 0x61, 0x79, 0x4f, 0x66, 0x57, 0x65, 0x65, 0x6b, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, + 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x74, 0x79, + 0x70, 0x65, 0x2f, 0x64, 0x61, 0x79, 0x6f, 0x66, 0x77, 0x65, 0x65, 0x6b, 0x3b, 0x64, 0x61, 0x79, + 0x6f, 0x66, 0x77, 0x65, 0x65, 0x6b, 0xa2, 0x02, 0x03, 0x47, 0x54, 0x50, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_type_dayofweek_proto_rawDescOnce sync.Once + file_google_type_dayofweek_proto_rawDescData = file_google_type_dayofweek_proto_rawDesc +) + +func file_google_type_dayofweek_proto_rawDescGZIP() []byte { + file_google_type_dayofweek_proto_rawDescOnce.Do(func() { + file_google_type_dayofweek_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_type_dayofweek_proto_rawDescData) + }) + return file_google_type_dayofweek_proto_rawDescData +} + +var file_google_type_dayofweek_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_google_type_dayofweek_proto_goTypes = []interface{}{ + (DayOfWeek)(0), // 0: google.type.DayOfWeek +} +var file_google_type_dayofweek_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_type_dayofweek_proto_init() } +func file_google_type_dayofweek_proto_init() { + if File_google_type_dayofweek_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_type_dayofweek_proto_rawDesc, + NumEnums: 1, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_type_dayofweek_proto_goTypes, + DependencyIndexes: file_google_type_dayofweek_proto_depIdxs, + EnumInfos: file_google_type_dayofweek_proto_enumTypes, + }.Build() + File_google_type_dayofweek_proto = out.File + file_google_type_dayofweek_proto_rawDesc = nil + file_google_type_dayofweek_proto_goTypes = nil + file_google_type_dayofweek_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/genproto/googleapis/type/expr/expr.pb.go b/vendor/google.golang.org/genproto/googleapis/type/expr/expr.pb.go index 5f8f3d7c2..4d9a47dca 100644 --- a/vendor/google.golang.org/genproto/googleapis/type/expr/expr.pb.go +++ b/vendor/google.golang.org/genproto/googleapis/type/expr/expr.pb.go @@ -1,25 +1,45 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.22.0 +// protoc v3.12.3 // source: google/type/expr.proto package expr import ( - fmt "fmt" - math "math" + reflect "reflect" + sync "sync" proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 // Represents an expression text. Example: // @@ -27,6 +47,10 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // description: "Determines whether the request has a user account" // expression: "size(request.user) > 0" type Expr struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Textual representation of an expression in // Common Expression Language syntax. // @@ -42,86 +66,150 @@ type Expr struct { Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // An optional string indicating the location of the expression for error // reporting, e.g. a file name and a position in the file. - Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` } -func (m *Expr) Reset() { *m = Expr{} } -func (m *Expr) String() string { return proto.CompactTextString(m) } -func (*Expr) ProtoMessage() {} +func (x *Expr) Reset() { + *x = Expr{} + if protoimpl.UnsafeEnabled { + mi := &file_google_type_expr_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Expr) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Expr) ProtoMessage() {} + +func (x *Expr) ProtoReflect() protoreflect.Message { + mi := &file_google_type_expr_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Expr.ProtoReflect.Descriptor instead. func (*Expr) Descriptor() ([]byte, []int) { - return fileDescriptor_d7920f1ae7a2722f, []int{0} + return file_google_type_expr_proto_rawDescGZIP(), []int{0} } -func (m *Expr) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Expr.Unmarshal(m, b) -} -func (m *Expr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Expr.Marshal(b, m, deterministic) -} -func (m *Expr) XXX_Merge(src proto.Message) { - xxx_messageInfo_Expr.Merge(m, src) -} -func (m *Expr) XXX_Size() int { - return xxx_messageInfo_Expr.Size(m) -} -func (m *Expr) XXX_DiscardUnknown() { - xxx_messageInfo_Expr.DiscardUnknown(m) -} - -var xxx_messageInfo_Expr proto.InternalMessageInfo - -func (m *Expr) GetExpression() string { - if m != nil { - return m.Expression +func (x *Expr) GetExpression() string { + if x != nil { + return x.Expression } return "" } -func (m *Expr) GetTitle() string { - if m != nil { - return m.Title +func (x *Expr) GetTitle() string { + if x != nil { + return x.Title } return "" } -func (m *Expr) GetDescription() string { - if m != nil { - return m.Description +func (x *Expr) GetDescription() string { + if x != nil { + return x.Description } return "" } -func (m *Expr) GetLocation() string { - if m != nil { - return m.Location +func (x *Expr) GetLocation() string { + if x != nil { + return x.Location } return "" } -func init() { - proto.RegisterType((*Expr)(nil), "google.type.Expr") +var File_google_type_expr_proto protoreflect.FileDescriptor + +var file_google_type_expr_proto_rawDesc = []byte{ + 0x0a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x65, 0x78, + 0x70, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x22, 0x7a, 0x0a, 0x04, 0x45, 0x78, 0x70, 0x72, 0x12, 0x1e, 0x0a, + 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, + 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x42, 0x5a, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x42, 0x09, 0x45, 0x78, 0x70, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, + 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x65, 0x78, + 0x70, 0x72, 0x3b, 0x65, 0x78, 0x70, 0x72, 0xa2, 0x02, 0x03, 0x47, 0x54, 0x50, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { - proto.RegisterFile("google/type/expr.proto", fileDescriptor_d7920f1ae7a2722f) +var ( + file_google_type_expr_proto_rawDescOnce sync.Once + file_google_type_expr_proto_rawDescData = file_google_type_expr_proto_rawDesc +) + +func file_google_type_expr_proto_rawDescGZIP() []byte { + file_google_type_expr_proto_rawDescOnce.Do(func() { + file_google_type_expr_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_type_expr_proto_rawDescData) + }) + return file_google_type_expr_proto_rawDescData } -var fileDescriptor_d7920f1ae7a2722f = []byte{ - // 195 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0xcf, 0xcf, 0x4f, - 0xcf, 0x49, 0xd5, 0x2f, 0xa9, 0x2c, 0x48, 0xd5, 0x4f, 0xad, 0x28, 0x28, 0xd2, 0x2b, 0x28, 0xca, - 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0x88, 0xeb, 0x81, 0xc4, 0x95, 0xaa, 0xb8, 0x58, 0x5c, 0x2b, 0x0a, - 0x8a, 0x84, 0xe4, 0xb8, 0xb8, 0x40, 0x4a, 0x52, 0x8b, 0x8b, 0x33, 0xf3, 0xf3, 0x24, 0x18, 0x15, - 0x18, 0x35, 0x38, 0x83, 0x90, 0x44, 0x84, 0x44, 0xb8, 0x58, 0x4b, 0x32, 0x4b, 0x72, 0x52, 0x25, - 0x98, 0xc0, 0x52, 0x10, 0x8e, 0x90, 0x02, 0x17, 0x77, 0x4a, 0x6a, 0x71, 0x72, 0x51, 0x66, 0x41, - 0x09, 0x48, 0x1b, 0x33, 0x58, 0x0e, 0x59, 0x48, 0x48, 0x8a, 0x8b, 0x23, 0x27, 0x3f, 0x39, 0x11, - 0x2c, 0xcd, 0x02, 0x96, 0x86, 0xf3, 0x9d, 0xa2, 0xb8, 0xf8, 0x93, 0xf3, 0x73, 0xf5, 0x90, 0x9c, - 0xe3, 0xc4, 0x09, 0x72, 0x4c, 0x00, 0xc8, 0x99, 0x01, 0x8c, 0x51, 0x26, 0x50, 0x99, 0xf4, 0xfc, - 0x9c, 0xc4, 0xbc, 0x74, 0xbd, 0xfc, 0xa2, 0x74, 0xfd, 0xf4, 0xd4, 0x3c, 0xb0, 0x27, 0xf4, 0x21, - 0x52, 0x89, 0x05, 0x99, 0xc5, 0x08, 0xff, 0x59, 0x83, 0x88, 0x45, 0x4c, 0xcc, 0xee, 0x21, 0x01, - 0x49, 0x6c, 0x60, 0x65, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe7, 0x67, 0x9e, 0xf5, 0x05, - 0x01, 0x00, 0x00, +var file_google_type_expr_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_type_expr_proto_goTypes = []interface{}{ + (*Expr)(nil), // 0: google.type.Expr +} +var file_google_type_expr_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_type_expr_proto_init() } +func file_google_type_expr_proto_init() { + if File_google_type_expr_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_type_expr_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Expr); 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_google_type_expr_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_type_expr_proto_goTypes, + DependencyIndexes: file_google_type_expr_proto_depIdxs, + MessageInfos: file_google_type_expr_proto_msgTypes, + }.Build() + File_google_type_expr_proto = out.File + file_google_type_expr_proto_rawDesc = nil + file_google_type_expr_proto_goTypes = nil + file_google_type_expr_proto_depIdxs = nil } diff --git a/vendor/google.golang.org/genproto/googleapis/type/timeofday/timeofday.pb.go b/vendor/google.golang.org/genproto/googleapis/type/timeofday/timeofday.pb.go index 12adf70b0..acd9653d4 100644 --- a/vendor/google.golang.org/genproto/googleapis/type/timeofday/timeofday.pb.go +++ b/vendor/google.golang.org/genproto/googleapis/type/timeofday/timeofday.pb.go @@ -1,30 +1,54 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.22.0 +// protoc v3.12.3 // source: google/type/timeofday.proto package timeofday import ( - fmt "fmt" - math "math" + reflect "reflect" + sync "sync" proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 // Represents a time of day. The date and time zone are either not significant // or are specified elsewhere. An API may choose to allow leap seconds. Related // types are [google.type.Date][google.type.Date] and `google.protobuf.Timestamp`. type TimeOfDay struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Hours of day in 24 hour format. Should be from 0 to 23. An API may choose // to allow the value "24:00:00" for scenarios like business closing time. Hours int32 `protobuf:"varint,1,opt,name=hours,proto3" json:"hours,omitempty"` @@ -34,86 +58,150 @@ type TimeOfDay struct { // allow the value 60 if it allows leap-seconds. Seconds int32 `protobuf:"varint,3,opt,name=seconds,proto3" json:"seconds,omitempty"` // Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. - Nanos int32 `protobuf:"varint,4,opt,name=nanos,proto3" json:"nanos,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Nanos int32 `protobuf:"varint,4,opt,name=nanos,proto3" json:"nanos,omitempty"` } -func (m *TimeOfDay) Reset() { *m = TimeOfDay{} } -func (m *TimeOfDay) String() string { return proto.CompactTextString(m) } -func (*TimeOfDay) ProtoMessage() {} +func (x *TimeOfDay) Reset() { + *x = TimeOfDay{} + if protoimpl.UnsafeEnabled { + mi := &file_google_type_timeofday_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TimeOfDay) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimeOfDay) ProtoMessage() {} + +func (x *TimeOfDay) ProtoReflect() protoreflect.Message { + mi := &file_google_type_timeofday_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TimeOfDay.ProtoReflect.Descriptor instead. func (*TimeOfDay) Descriptor() ([]byte, []int) { - return fileDescriptor_6c354ab94588cebb, []int{0} + return file_google_type_timeofday_proto_rawDescGZIP(), []int{0} } -func (m *TimeOfDay) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TimeOfDay.Unmarshal(m, b) -} -func (m *TimeOfDay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TimeOfDay.Marshal(b, m, deterministic) -} -func (m *TimeOfDay) XXX_Merge(src proto.Message) { - xxx_messageInfo_TimeOfDay.Merge(m, src) -} -func (m *TimeOfDay) XXX_Size() int { - return xxx_messageInfo_TimeOfDay.Size(m) -} -func (m *TimeOfDay) XXX_DiscardUnknown() { - xxx_messageInfo_TimeOfDay.DiscardUnknown(m) -} - -var xxx_messageInfo_TimeOfDay proto.InternalMessageInfo - -func (m *TimeOfDay) GetHours() int32 { - if m != nil { - return m.Hours +func (x *TimeOfDay) GetHours() int32 { + if x != nil { + return x.Hours } return 0 } -func (m *TimeOfDay) GetMinutes() int32 { - if m != nil { - return m.Minutes +func (x *TimeOfDay) GetMinutes() int32 { + if x != nil { + return x.Minutes } return 0 } -func (m *TimeOfDay) GetSeconds() int32 { - if m != nil { - return m.Seconds +func (x *TimeOfDay) GetSeconds() int32 { + if x != nil { + return x.Seconds } return 0 } -func (m *TimeOfDay) GetNanos() int32 { - if m != nil { - return m.Nanos +func (x *TimeOfDay) GetNanos() int32 { + if x != nil { + return x.Nanos } return 0 } -func init() { - proto.RegisterType((*TimeOfDay)(nil), "google.type.TimeOfDay") +var File_google_type_timeofday_proto protoreflect.FileDescriptor + +var file_google_type_timeofday_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x6f, 0x66, 0x64, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x22, 0x6b, 0x0a, 0x09, 0x54, 0x69, + 0x6d, 0x65, 0x4f, 0x66, 0x44, 0x61, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x6f, 0x75, 0x72, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x68, 0x6f, 0x75, 0x72, 0x73, 0x12, 0x18, 0x0a, + 0x07, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, + 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, + 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, + 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x42, 0x6c, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x42, 0x0e, 0x54, 0x69, 0x6d, 0x65, + 0x4f, 0x66, 0x44, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, + 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, + 0x70, 0x69, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x66, 0x64, + 0x61, 0x79, 0x3b, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x66, 0x64, 0x61, 0x79, 0xf8, 0x01, 0x01, 0xa2, + 0x02, 0x03, 0x47, 0x54, 0x50, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { - proto.RegisterFile("google/type/timeofday.proto", fileDescriptor_6c354ab94588cebb) +var ( + file_google_type_timeofday_proto_rawDescOnce sync.Once + file_google_type_timeofday_proto_rawDescData = file_google_type_timeofday_proto_rawDesc +) + +func file_google_type_timeofday_proto_rawDescGZIP() []byte { + file_google_type_timeofday_proto_rawDescOnce.Do(func() { + file_google_type_timeofday_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_type_timeofday_proto_rawDescData) + }) + return file_google_type_timeofday_proto_rawDescData } -var fileDescriptor_6c354ab94588cebb = []byte{ - // 201 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4e, 0xcf, 0xcf, 0x4f, - 0xcf, 0x49, 0xd5, 0x2f, 0xa9, 0x2c, 0x48, 0xd5, 0x2f, 0xc9, 0xcc, 0x4d, 0xcd, 0x4f, 0x4b, 0x49, - 0xac, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0x48, 0xea, 0x81, 0x24, 0x95, 0xb2, - 0xb9, 0x38, 0x43, 0x32, 0x73, 0x53, 0xfd, 0xd3, 0x5c, 0x12, 0x2b, 0x85, 0x44, 0xb8, 0x58, 0x33, - 0xf2, 0x4b, 0x8b, 0x8a, 0x25, 0x18, 0x15, 0x18, 0x35, 0x58, 0x83, 0x20, 0x1c, 0x21, 0x09, 0x2e, - 0xf6, 0xdc, 0xcc, 0xbc, 0xd2, 0x92, 0xd4, 0x62, 0x09, 0x26, 0xb0, 0x38, 0x8c, 0x0b, 0x92, 0x29, - 0x4e, 0x4d, 0xce, 0xcf, 0x4b, 0x29, 0x96, 0x60, 0x86, 0xc8, 0x40, 0xb9, 0x20, 0x93, 0xf2, 0x12, - 0xf3, 0xf2, 0x8b, 0x25, 0x58, 0x20, 0x26, 0x81, 0x39, 0x4e, 0x39, 0x5c, 0xfc, 0xc9, 0xf9, 0xb9, - 0x7a, 0x48, 0xf6, 0x3b, 0xf1, 0xc1, 0x6d, 0x0f, 0x00, 0x39, 0x2e, 0x80, 0x31, 0xca, 0x0e, 0x2a, - 0x9d, 0x9e, 0x9f, 0x93, 0x98, 0x97, 0xae, 0x97, 0x5f, 0x94, 0xae, 0x9f, 0x9e, 0x9a, 0x07, 0x76, - 0xba, 0x3e, 0x44, 0x2a, 0xb1, 0x20, 0xb3, 0x18, 0xcd, 0x6b, 0xd6, 0x70, 0xd6, 0x0f, 0x46, 0xc6, - 0x45, 0x4c, 0xcc, 0xee, 0x21, 0x01, 0x49, 0x6c, 0x60, 0x3d, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x21, 0xc8, 0xc5, 0x17, 0x0d, 0x01, 0x00, 0x00, +var file_google_type_timeofday_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_type_timeofday_proto_goTypes = []interface{}{ + (*TimeOfDay)(nil), // 0: google.type.TimeOfDay +} +var file_google_type_timeofday_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_type_timeofday_proto_init() } +func file_google_type_timeofday_proto_init() { + if File_google_type_timeofday_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_type_timeofday_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TimeOfDay); 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_google_type_timeofday_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_type_timeofday_proto_goTypes, + DependencyIndexes: file_google_type_timeofday_proto_depIdxs, + MessageInfos: file_google_type_timeofday_proto_msgTypes, + }.Build() + File_google_type_timeofday_proto = out.File + file_google_type_timeofday_proto_rawDesc = nil + file_google_type_timeofday_proto_goTypes = nil + file_google_type_timeofday_proto_depIdxs = nil } diff --git a/vendor/google.golang.org/genproto/protobuf/field_mask/field_mask.go b/vendor/google.golang.org/genproto/protobuf/field_mask/field_mask.go new file mode 100644 index 000000000..d10ad6653 --- /dev/null +++ b/vendor/google.golang.org/genproto/protobuf/field_mask/field_mask.go @@ -0,0 +1,23 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Package field_mask aliases all exported identifiers in +// package "google.golang.org/protobuf/types/known/fieldmaskpb". +package field_mask + +import "google.golang.org/protobuf/types/known/fieldmaskpb" + +type FieldMask = fieldmaskpb.FieldMask + +var File_google_protobuf_field_mask_proto = fieldmaskpb.File_google_protobuf_field_mask_proto diff --git a/vendor/google.golang.org/genproto/protobuf/field_mask/field_mask.pb.go b/vendor/google.golang.org/genproto/protobuf/field_mask/field_mask.pb.go deleted file mode 100644 index 44fb5e630..000000000 --- a/vendor/google.golang.org/genproto/protobuf/field_mask/field_mask.pb.go +++ /dev/null @@ -1,284 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: google/protobuf/field_mask.proto - -package field_mask - -import ( - fmt "fmt" - math "math" - - proto "github.com/golang/protobuf/proto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// `FieldMask` represents a set of symbolic field paths, for example: -// -// paths: "f.a" -// paths: "f.b.d" -// -// Here `f` represents a field in some root message, `a` and `b` -// fields in the message found in `f`, and `d` a field found in the -// message in `f.b`. -// -// Field masks are used to specify a subset of fields that should be -// returned by a get operation or modified by an update operation. -// Field masks also have a custom JSON encoding (see below). -// -// # Field Masks in Projections -// -// When used in the context of a projection, a response message or -// sub-message is filtered by the API to only contain those fields as -// specified in the mask. For example, if the mask in the previous -// example is applied to a response message as follows: -// -// f { -// a : 22 -// b { -// d : 1 -// x : 2 -// } -// y : 13 -// } -// z: 8 -// -// The result will not contain specific values for fields x,y and z -// (their value will be set to the default, and omitted in proto text -// output): -// -// -// f { -// a : 22 -// b { -// d : 1 -// } -// } -// -// A repeated field is not allowed except at the last position of a -// paths string. -// -// If a FieldMask object is not present in a get operation, the -// operation applies to all fields (as if a FieldMask of all fields -// had been specified). -// -// Note that a field mask does not necessarily apply to the -// top-level response message. In case of a REST get operation, the -// field mask applies directly to the response, but in case of a REST -// list operation, the mask instead applies to each individual message -// in the returned resource list. In case of a REST custom method, -// other definitions may be used. Where the mask applies will be -// clearly documented together with its declaration in the API. In -// any case, the effect on the returned resource/resources is required -// behavior for APIs. -// -// # Field Masks in Update Operations -// -// A field mask in update operations specifies which fields of the -// targeted resource are going to be updated. The API is required -// to only change the values of the fields as specified in the mask -// and leave the others untouched. If a resource is passed in to -// describe the updated values, the API ignores the values of all -// fields not covered by the mask. -// -// If a repeated field is specified for an update operation, new values will -// be appended to the existing repeated field in the target resource. Note that -// a repeated field is only allowed in the last position of a `paths` string. -// -// If a sub-message is specified in the last position of the field mask for an -// update operation, then new value will be merged into the existing sub-message -// in the target resource. -// -// For example, given the target message: -// -// f { -// b { -// d: 1 -// x: 2 -// } -// c: [1] -// } -// -// And an update message: -// -// f { -// b { -// d: 10 -// } -// c: [2] -// } -// -// then if the field mask is: -// -// paths: ["f.b", "f.c"] -// -// then the result will be: -// -// f { -// b { -// d: 10 -// x: 2 -// } -// c: [1, 2] -// } -// -// An implementation may provide options to override this default behavior for -// repeated and message fields. -// -// In order to reset a field's value to the default, the field must -// be in the mask and set to the default value in the provided resource. -// Hence, in order to reset all fields of a resource, provide a default -// instance of the resource and set all fields in the mask, or do -// not provide a mask as described below. -// -// If a field mask is not present on update, the operation applies to -// all fields (as if a field mask of all fields has been specified). -// Note that in the presence of schema evolution, this may mean that -// fields the client does not know and has therefore not filled into -// the request will be reset to their default. If this is unwanted -// behavior, a specific service may require a client to always specify -// a field mask, producing an error if not. -// -// As with get operations, the location of the resource which -// describes the updated values in the request message depends on the -// operation kind. In any case, the effect of the field mask is -// required to be honored by the API. -// -// ## Considerations for HTTP REST -// -// The HTTP kind of an update operation which uses a field mask must -// be set to PATCH instead of PUT in order to satisfy HTTP semantics -// (PUT must only be used for full updates). -// -// # JSON Encoding of Field Masks -// -// In JSON, a field mask is encoded as a single string where paths are -// separated by a comma. Fields name in each path are converted -// to/from lower-camel naming conventions. -// -// As an example, consider the following message declarations: -// -// message Profile { -// User user = 1; -// Photo photo = 2; -// } -// message User { -// string display_name = 1; -// string address = 2; -// } -// -// In proto a field mask for `Profile` may look as such: -// -// mask { -// paths: "user.display_name" -// paths: "photo" -// } -// -// In JSON, the same mask is represented as below: -// -// { -// mask: "user.displayName,photo" -// } -// -// # Field Masks and Oneof Fields -// -// Field masks treat fields in oneofs just as regular fields. Consider the -// following message: -// -// message SampleMessage { -// oneof test_oneof { -// string name = 4; -// SubMessage sub_message = 9; -// } -// } -// -// The field mask can be: -// -// mask { -// paths: "name" -// } -// -// Or: -// -// mask { -// paths: "sub_message" -// } -// -// Note that oneof type names ("test_oneof" in this case) cannot be used in -// paths. -// -// ## Field Mask Verification -// -// The implementation of any API method which has a FieldMask type field in the -// request should verify the included field paths, and return an -// `INVALID_ARGUMENT` error if any path is unmappable. -type FieldMask struct { - // The set of field mask paths. - Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FieldMask) Reset() { *m = FieldMask{} } -func (m *FieldMask) String() string { return proto.CompactTextString(m) } -func (*FieldMask) ProtoMessage() {} -func (*FieldMask) Descriptor() ([]byte, []int) { - return fileDescriptor_5158202634f0da48, []int{0} -} - -func (m *FieldMask) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FieldMask.Unmarshal(m, b) -} -func (m *FieldMask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FieldMask.Marshal(b, m, deterministic) -} -func (m *FieldMask) XXX_Merge(src proto.Message) { - xxx_messageInfo_FieldMask.Merge(m, src) -} -func (m *FieldMask) XXX_Size() int { - return xxx_messageInfo_FieldMask.Size(m) -} -func (m *FieldMask) XXX_DiscardUnknown() { - xxx_messageInfo_FieldMask.DiscardUnknown(m) -} - -var xxx_messageInfo_FieldMask proto.InternalMessageInfo - -func (m *FieldMask) GetPaths() []string { - if m != nil { - return m.Paths - } - return nil -} - -func init() { - proto.RegisterType((*FieldMask)(nil), "google.protobuf.FieldMask") -} - -func init() { - proto.RegisterFile("google/protobuf/field_mask.proto", fileDescriptor_5158202634f0da48) -} - -var fileDescriptor_5158202634f0da48 = []byte{ - // 175 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x48, 0xcf, 0xcf, 0x4f, - 0xcf, 0x49, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x4f, 0xcb, 0x4c, 0xcd, - 0x49, 0x89, 0xcf, 0x4d, 0x2c, 0xce, 0xd6, 0x03, 0x8b, 0x09, 0xf1, 0x43, 0x54, 0xe8, 0xc1, 0x54, - 0x28, 0x29, 0x72, 0x71, 0xba, 0x81, 0x14, 0xf9, 0x26, 0x16, 0x67, 0x0b, 0x89, 0x70, 0xb1, 0x16, - 0x24, 0x96, 0x64, 0x14, 0x4b, 0x30, 0x2a, 0x30, 0x6b, 0x70, 0x06, 0x41, 0x38, 0x4e, 0x3d, 0x8c, - 0x5c, 0xc2, 0xc9, 0xf9, 0xb9, 0x7a, 0x68, 0x5a, 0x9d, 0xf8, 0xe0, 0x1a, 0x03, 0x40, 0x42, 0x01, - 0x8c, 0x51, 0x96, 0x50, 0x25, 0xe9, 0xf9, 0x39, 0x89, 0x79, 0xe9, 0x7a, 0xf9, 0x45, 0xe9, 0xfa, - 0xe9, 0xa9, 0x79, 0x60, 0x0d, 0xd8, 0xdc, 0x64, 0x8d, 0x60, 0xfe, 0x60, 0x64, 0x5c, 0xc4, 0xc4, - 0xec, 0x1e, 0xe0, 0xb4, 0x8a, 0x49, 0xce, 0x1d, 0x62, 0x48, 0x00, 0x54, 0x83, 0x5e, 0x78, 0x6a, - 0x4e, 0x8e, 0x77, 0x5e, 0x7e, 0x79, 0x5e, 0x48, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0x24, - 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xda, 0xb7, 0xa8, 0xed, 0x00, 0x00, 0x00, -} diff --git a/vendor/google.golang.org/grpc/README.md b/vendor/google.golang.org/grpc/README.md index a54b6f560..800e7bd4c 100644 --- a/vendor/google.golang.org/grpc/README.md +++ b/vendor/google.golang.org/grpc/README.md @@ -130,6 +130,10 @@ possible reasons, including: 1. mis-configured transport credentials, connection failed on handshaking 1. bytes disrupted, possibly by a proxy in between 1. server shutdown + 1. Keepalive parameters caused connection shutdown, for example if you have configured + your server to terminate connections regularly to [trigger DNS lookups](https://github.com/grpc/grpc-go/issues/3170#issuecomment-552517779). + If this is the case, you may want to increase your [MaxConnectionAgeGrace](https://pkg.go.dev/google.golang.org/grpc/keepalive?tab=doc#ServerParameters), + to allow longer RPC calls to finish. It can be tricky to debug this because the error happens on the client side but the root cause of the connection being closed is on the server side. Turn on diff --git a/vendor/google.golang.org/grpc/balancer/base/balancer.go b/vendor/google.golang.org/grpc/balancer/base/balancer.go index 0ac26b480..80559b80a 100644 --- a/vendor/google.golang.org/grpc/balancer/base/balancer.go +++ b/vendor/google.golang.org/grpc/balancer/base/balancer.go @@ -113,10 +113,6 @@ func (b *baseBalancer) UpdateClientConnState(s balancer.ClientConnState) error { if grpclog.V(2) { grpclog.Infoln("base.baseBalancer: got new ClientConn state: ", s) } - if len(s.ResolverState.Addresses) == 0 { - b.ResolverError(errors.New("produced zero addresses")) - return balancer.ErrBadResolverState - } // Successful resolution; clear resolver error and ensure we return nil. b.resolverErr = nil // addrsSet is the set converted from addrs, it's used for quick lookup of an address. @@ -144,6 +140,14 @@ func (b *baseBalancer) UpdateClientConnState(s balancer.ClientConnState) error { // The entry will be deleted in HandleSubConnStateChange. } } + // If resolver state contains no addresses, return an error so ClientConn + // will trigger re-resolve. Also records this as an resolver error, so when + // the overall state turns transient failure, the error message will have + // the zero address information. + if len(s.ResolverState.Addresses) == 0 { + b.ResolverError(errors.New("produced zero addresses")) + return balancer.ErrBadResolverState + } return nil } diff --git a/vendor/google.golang.org/grpc/clientconn.go b/vendor/google.golang.org/grpc/clientconn.go index 293d2f62f..0740693b7 100644 --- a/vendor/google.golang.org/grpc/clientconn.go +++ b/vendor/google.golang.org/grpc/clientconn.go @@ -194,12 +194,13 @@ func DialContext(ctx context.Context, target string, opts ...DialOption) (conn * cc.mkp = cc.dopts.copts.KeepaliveParams if cc.dopts.copts.Dialer == nil { - cc.dopts.copts.Dialer = newProxyDialer( - func(ctx context.Context, addr string) (net.Conn, error) { - network, addr := parseDialTarget(addr) - return (&net.Dialer{}).DialContext(ctx, network, addr) - }, - ) + cc.dopts.copts.Dialer = func(ctx context.Context, addr string) (net.Conn, error) { + network, addr := parseDialTarget(addr) + return (&net.Dialer{}).DialContext(ctx, network, addr) + } + if cc.dopts.withProxy { + cc.dopts.copts.Dialer = newProxyDialer(cc.dopts.copts.Dialer) + } } if cc.dopts.copts.UserAgent != "" { @@ -1525,9 +1526,9 @@ var ErrClientConnTimeout = errors.New("grpc: timed out when dialing") func (cc *ClientConn) getResolver(scheme string) resolver.Builder { for _, rb := range cc.dopts.resolvers { - if cc.parsedTarget.Scheme == rb.Scheme() { + if scheme == rb.Scheme() { return rb } } - return resolver.Get(cc.parsedTarget.Scheme) + return resolver.Get(scheme) } diff --git a/vendor/google.golang.org/grpc/credentials/tls.go b/vendor/google.golang.org/grpc/credentials/tls.go index 28b4f6232..86e956bc8 100644 --- a/vendor/google.golang.org/grpc/credentials/tls.go +++ b/vendor/google.golang.org/grpc/credentials/tls.go @@ -135,16 +135,26 @@ func NewTLS(c *tls.Config) TransportCredentials { return tc } -// NewClientTLSFromCert constructs TLS credentials from the input certificate for client. +// NewClientTLSFromCert constructs TLS credentials from the provided root +// certificate authority certificate(s) to validate server connections. If +// certificates to establish the identity of the client need to be included in +// the credentials (eg: for mTLS), use NewTLS instead, where a complete +// tls.Config can be specified. // serverNameOverride is for testing only. If set to a non empty string, -// it will override the virtual host name of authority (e.g. :authority header field) in requests. +// it will override the virtual host name of authority (e.g. :authority header +// field) in requests. func NewClientTLSFromCert(cp *x509.CertPool, serverNameOverride string) TransportCredentials { return NewTLS(&tls.Config{ServerName: serverNameOverride, RootCAs: cp}) } -// NewClientTLSFromFile constructs TLS credentials from the input certificate file for client. +// NewClientTLSFromFile constructs TLS credentials from the provided root +// certificate authority certificate file(s) to validate server connections. If +// certificates to establish the identity of the client need to be included in +// the credentials (eg: for mTLS), use NewTLS instead, where a complete +// tls.Config can be specified. // serverNameOverride is for testing only. If set to a non empty string, -// it will override the virtual host name of authority (e.g. :authority header field) in requests. +// it will override the virtual host name of authority (e.g. :authority header +// field) in requests. func NewClientTLSFromFile(certFile, serverNameOverride string) (TransportCredentials, error) { b, err := ioutil.ReadFile(certFile) if err != nil { diff --git a/vendor/google.golang.org/grpc/dialoptions.go b/vendor/google.golang.org/grpc/dialoptions.go index 63f5ae21d..35bde1033 100644 --- a/vendor/google.golang.org/grpc/dialoptions.go +++ b/vendor/google.golang.org/grpc/dialoptions.go @@ -72,6 +72,7 @@ type dialOptions struct { // we need to be able to configure this in tests. resolveNowBackoff func(int) time.Duration resolvers []resolver.Builder + withProxy bool } // DialOption configures how we set up the connection. @@ -307,6 +308,16 @@ func WithInsecure() DialOption { }) } +// WithNoProxy returns a DialOption which disables the use of proxies for this +// ClientConn. This is ignored if WithDialer or WithContextDialer are used. +// +// This API is EXPERIMENTAL. +func WithNoProxy() DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.withProxy = false + }) +} + // WithTransportCredentials returns a DialOption which configures a connection // level security credentials (e.g., TLS/SSL). This should not be used together // with WithCredentialsBundle. @@ -557,6 +568,7 @@ func defaultDialOptions() dialOptions { ReadBufferSize: defaultReadBufSize, }, resolveNowBackoff: internalbackoff.DefaultExponential.Backoff, + withProxy: true, } } diff --git a/vendor/google.golang.org/grpc/go.mod b/vendor/google.golang.org/grpc/go.mod index 84c98c29f..ecef1ab0c 100644 --- a/vendor/google.golang.org/grpc/go.mod +++ b/vendor/google.golang.org/grpc/go.mod @@ -3,8 +3,8 @@ module google.golang.org/grpc go 1.11 require ( + github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f github.com/envoyproxy/go-control-plane v0.9.4 - github.com/envoyproxy/protoc-gen-validate v0.1.0 github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b github.com/golang/mock v1.1.1 github.com/golang/protobuf v1.3.3 diff --git a/vendor/google.golang.org/grpc/internal/internal.go b/vendor/google.golang.org/grpc/internal/internal.go index 0912f0bf4..c6fbe8bb1 100644 --- a/vendor/google.golang.org/grpc/internal/internal.go +++ b/vendor/google.golang.org/grpc/internal/internal.go @@ -37,11 +37,6 @@ var ( // KeepaliveMinPingTime is the minimum ping interval. This must be 10s by // default, but tests may wish to set it lower for convenience. KeepaliveMinPingTime = 10 * time.Second - // StatusRawProto is exported by status/status.go. This func returns a - // pointer to the wrapped Status proto for a given status.Status without a - // call to proto.Clone(). The returned Status proto should not be mutated by - // the caller. - StatusRawProto interface{} // func (*status.Status) *spb.Status // NewRequestInfoContext creates a new context based on the argument context attaching // the passed in RequestInfo to the new context. NewRequestInfoContext interface{} // func(context.Context, credentials.RequestInfo) context.Context diff --git a/vendor/google.golang.org/grpc/internal/status/status.go b/vendor/google.golang.org/grpc/internal/status/status.go new file mode 100644 index 000000000..681260692 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/status/status.go @@ -0,0 +1,161 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +// Package status implements errors returned by gRPC. These errors are +// serialized and transmitted on the wire between server and client, and allow +// for additional data to be transmitted via the Details field in the status +// proto. gRPC service handlers should return an error created by this +// package, and gRPC clients should expect a corresponding error to be +// returned from the RPC call. +// +// This package upholds the invariants that a non-nil error may not +// contain an OK code, and an OK code must result in a nil error. +package status + +import ( + "errors" + "fmt" + + "github.com/golang/protobuf/proto" + "github.com/golang/protobuf/ptypes" + spb "google.golang.org/genproto/googleapis/rpc/status" + "google.golang.org/grpc/codes" +) + +// Status represents an RPC status code, message, and details. It is immutable +// and should be created with New, Newf, or FromProto. +type Status struct { + s *spb.Status +} + +// New returns a Status representing c and msg. +func New(c codes.Code, msg string) *Status { + return &Status{s: &spb.Status{Code: int32(c), Message: msg}} +} + +// Newf returns New(c, fmt.Sprintf(format, a...)). +func Newf(c codes.Code, format string, a ...interface{}) *Status { + return New(c, fmt.Sprintf(format, a...)) +} + +// FromProto returns a Status representing s. +func FromProto(s *spb.Status) *Status { + return &Status{s: proto.Clone(s).(*spb.Status)} +} + +// Err returns an error representing c and msg. If c is OK, returns nil. +func Err(c codes.Code, msg string) error { + return New(c, msg).Err() +} + +// Errorf returns Error(c, fmt.Sprintf(format, a...)). +func Errorf(c codes.Code, format string, a ...interface{}) error { + return Err(c, fmt.Sprintf(format, a...)) +} + +// Code returns the status code contained in s. +func (s *Status) Code() codes.Code { + if s == nil || s.s == nil { + return codes.OK + } + return codes.Code(s.s.Code) +} + +// Message returns the message contained in s. +func (s *Status) Message() string { + if s == nil || s.s == nil { + return "" + } + return s.s.Message +} + +// Proto returns s's status as an spb.Status proto message. +func (s *Status) Proto() *spb.Status { + if s == nil { + return nil + } + return proto.Clone(s.s).(*spb.Status) +} + +// Err returns an immutable error representing s; returns nil if s.Code() is OK. +func (s *Status) Err() error { + if s.Code() == codes.OK { + return nil + } + return (*Error)(s.Proto()) +} + +// WithDetails returns a new status with the provided details messages appended to the status. +// If any errors are encountered, it returns nil and the first error encountered. +func (s *Status) WithDetails(details ...proto.Message) (*Status, error) { + if s.Code() == codes.OK { + return nil, errors.New("no error details for status with code OK") + } + // s.Code() != OK implies that s.Proto() != nil. + p := s.Proto() + for _, detail := range details { + any, err := ptypes.MarshalAny(detail) + if err != nil { + return nil, err + } + p.Details = append(p.Details, any) + } + return &Status{s: p}, nil +} + +// Details returns a slice of details messages attached to the status. +// If a detail cannot be decoded, the error is returned in place of the detail. +func (s *Status) Details() []interface{} { + if s == nil || s.s == nil { + return nil + } + details := make([]interface{}, 0, len(s.s.Details)) + for _, any := range s.s.Details { + detail := &ptypes.DynamicAny{} + if err := ptypes.UnmarshalAny(any, detail); err != nil { + details = append(details, err) + continue + } + details = append(details, detail.Message) + } + return details +} + +// Error is an alias of a status proto. It implements error and Status, +// and a nil Error should never be returned by this package. +type Error spb.Status + +func (se *Error) Error() string { + p := (*spb.Status)(se) + return fmt.Sprintf("rpc error: code = %s desc = %s", codes.Code(p.GetCode()), p.GetMessage()) +} + +// GRPCStatus returns the Status represented by se. +func (se *Error) GRPCStatus() *Status { + return FromProto((*spb.Status)(se)) +} + +// Is implements future error.Is functionality. +// A Error is equivalent if the code and message are identical. +func (se *Error) Is(target error) bool { + tse, ok := target.(*Error) + if !ok { + return false + } + return proto.Equal((*spb.Status)(se), (*spb.Status)(tse)) +} diff --git a/vendor/google.golang.org/grpc/internal/transport/handler_server.go b/vendor/google.golang.org/grpc/internal/transport/handler_server.go index 228b82184..fc44e9761 100644 --- a/vendor/google.golang.org/grpc/internal/transport/handler_server.go +++ b/vendor/google.golang.org/grpc/internal/transport/handler_server.go @@ -112,11 +112,10 @@ func NewServerHandlerTransport(w http.ResponseWriter, r *http.Request, stats sta // at this point to be speaking over HTTP/2, so it's able to speak valid // gRPC. type serverHandlerTransport struct { - rw http.ResponseWriter - req *http.Request - timeoutSet bool - timeout time.Duration - didCommonHeaders bool + rw http.ResponseWriter + req *http.Request + timeoutSet bool + timeout time.Duration headerMD metadata.MD @@ -186,8 +185,11 @@ func (ht *serverHandlerTransport) WriteStatus(s *Stream, st *status.Status) erro ht.writeStatusMu.Lock() defer ht.writeStatusMu.Unlock() + headersWritten := s.updateHeaderSent() err := ht.do(func() { - ht.writeCommonHeaders(s) + if !headersWritten { + ht.writePendingHeaders(s) + } // And flush, in case no header or body has been sent yet. // This forces a separation of headers and trailers if this is the @@ -227,6 +229,8 @@ func (ht *serverHandlerTransport) WriteStatus(s *Stream, st *status.Status) erro if err == nil { // transport has not been closed if ht.stats != nil { + // Note: The trailer fields are compressed with hpack after this call returns. + // No WireLength field is set here. ht.stats.HandleRPC(s.Context(), &stats.OutTrailer{ Trailer: s.trailer.Copy(), }) @@ -236,14 +240,16 @@ func (ht *serverHandlerTransport) WriteStatus(s *Stream, st *status.Status) erro return err } +// writePendingHeaders sets common and custom headers on the first +// write call (Write, WriteHeader, or WriteStatus) +func (ht *serverHandlerTransport) writePendingHeaders(s *Stream) { + ht.writeCommonHeaders(s) + ht.writeCustomHeaders(s) +} + // writeCommonHeaders sets common headers on the first write // call (Write, WriteHeader, or WriteStatus). func (ht *serverHandlerTransport) writeCommonHeaders(s *Stream) { - if ht.didCommonHeaders { - return - } - ht.didCommonHeaders = true - h := ht.rw.Header() h["Date"] = nil // suppress Date to make tests happy; TODO: restore h.Set("Content-Type", ht.contentType) @@ -262,9 +268,30 @@ func (ht *serverHandlerTransport) writeCommonHeaders(s *Stream) { } } +// writeCustomHeaders sets custom headers set on the stream via SetHeader +// on the first write call (Write, WriteHeader, or WriteStatus). +func (ht *serverHandlerTransport) writeCustomHeaders(s *Stream) { + h := ht.rw.Header() + + s.hdrMu.Lock() + for k, vv := range s.header { + if isReservedHeader(k) { + continue + } + for _, v := range vv { + h.Add(k, encodeMetadataHeader(k, v)) + } + } + + s.hdrMu.Unlock() +} + func (ht *serverHandlerTransport) Write(s *Stream, hdr []byte, data []byte, opts *Options) error { + headersWritten := s.updateHeaderSent() return ht.do(func() { - ht.writeCommonHeaders(s) + if !headersWritten { + ht.writePendingHeaders(s) + } ht.rw.Write(hdr) ht.rw.Write(data) ht.rw.(http.Flusher).Flush() @@ -272,27 +299,27 @@ func (ht *serverHandlerTransport) Write(s *Stream, hdr []byte, data []byte, opts } func (ht *serverHandlerTransport) WriteHeader(s *Stream, md metadata.MD) error { + if err := s.SetHeader(md); err != nil { + return err + } + + headersWritten := s.updateHeaderSent() err := ht.do(func() { - ht.writeCommonHeaders(s) - h := ht.rw.Header() - for k, vv := range md { - // Clients don't tolerate reading restricted headers after some non restricted ones were sent. - if isReservedHeader(k) { - continue - } - for _, v := range vv { - v = encodeMetadataHeader(k, v) - h.Add(k, v) - } + if !headersWritten { + ht.writePendingHeaders(s) } + ht.rw.WriteHeader(200) ht.rw.(http.Flusher).Flush() }) if err == nil { if ht.stats != nil { + // Note: The header fields are compressed with hpack after this call returns. + // No WireLength field is set here. ht.stats.HandleRPC(s.Context(), &stats.OutHeader{ - Header: md.Copy(), + Header: md.Copy(), + Compression: s.sendCompress, }) } } diff --git a/vendor/google.golang.org/grpc/internal/transport/http2_client.go b/vendor/google.golang.org/grpc/internal/transport/http2_client.go index b1b82ec95..1cc586f73 100644 --- a/vendor/google.golang.org/grpc/internal/transport/http2_client.go +++ b/vendor/google.golang.org/grpc/internal/transport/http2_client.go @@ -686,6 +686,8 @@ func (t *http2Client) NewStream(ctx context.Context, callHdr *CallHdr) (_ *Strea } else { header = metadata.Pairs("user-agent", t.userAgent) } + // Note: The header fields are compressed with hpack after this call returns. + // No WireLength field is set here. outHeader := &stats.OutHeader{ Client: true, FullMethod: callHdr.Method, @@ -1193,9 +1195,10 @@ func (t *http2Client) operateHeaders(frame *http2.MetaHeadersFrame) { if t.statsHandler != nil { if isHeader { inHeader := &stats.InHeader{ - Client: true, - WireLength: int(frame.Header().Length), - Header: s.header.Copy(), + Client: true, + WireLength: int(frame.Header().Length), + Header: s.header.Copy(), + Compression: s.recvCompress, } t.statsHandler.HandleRPC(s.ctx, inHeader) } else { diff --git a/vendor/google.golang.org/grpc/internal/transport/http2_server.go b/vendor/google.golang.org/grpc/internal/transport/http2_server.go index 8b04b0392..fa33ffb18 100644 --- a/vendor/google.golang.org/grpc/internal/transport/http2_server.go +++ b/vendor/google.golang.org/grpc/internal/transport/http2_server.go @@ -35,11 +35,9 @@ import ( "golang.org/x/net/http2" "golang.org/x/net/http2/hpack" - spb "google.golang.org/genproto/googleapis/rpc/status" "google.golang.org/grpc/codes" "google.golang.org/grpc/credentials" "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/internal" "google.golang.org/grpc/internal/channelz" "google.golang.org/grpc/internal/grpcrand" "google.golang.org/grpc/keepalive" @@ -57,9 +55,6 @@ var ( // ErrHeaderListSizeLimitViolation indicates that the header list size is larger // than the limit set by peer. ErrHeaderListSizeLimitViolation = errors.New("transport: trying to send header list size larger than the limit set by peer") - // statusRawProto is a function to get to the raw status proto wrapped in a - // status.Status without a proto.Clone(). - statusRawProto = internal.StatusRawProto.(func(*status.Status) *spb.Status) ) // serverConnectionCounter counts the number of connections a server has seen @@ -813,10 +808,11 @@ func (t *http2Server) writeHeaderLocked(s *Stream) error { return ErrHeaderListSizeLimitViolation } if t.stats != nil { - // Note: WireLength is not set in outHeader. - // TODO(mmukhi): Revisit this later, if needed. + // Note: Headers are compressed with hpack after this call returns. + // No WireLength field is set here. outHeader := &stats.OutHeader{ - Header: s.header.Copy(), + Header: s.header.Copy(), + Compression: s.sendCompress, } t.stats.HandleRPC(s.Context(), outHeader) } @@ -849,7 +845,7 @@ func (t *http2Server) WriteStatus(s *Stream, st *status.Status) error { headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-status", Value: strconv.Itoa(int(st.Code()))}) headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-message", Value: encodeGrpcMessage(st.Message())}) - if p := statusRawProto(st); p != nil && len(p.Details) > 0 { + if p := st.Proto(); p != nil && len(p.Details) > 0 { stBytes, err := proto.Marshal(p) if err != nil { // TODO: return error instead, when callers are able to handle it. @@ -880,6 +876,8 @@ func (t *http2Server) WriteStatus(s *Stream, st *status.Status) error { rst := s.getState() == streamActive t.finishStream(s, rst, http2.ErrCodeNo, trailingHeader, true) if t.stats != nil { + // Note: The trailer fields are compressed with hpack after this call returns. + // No WireLength field is set here. t.stats.HandleRPC(s.Context(), &stats.OutTrailer{ Trailer: s.trailer.Copy(), }) diff --git a/vendor/google.golang.org/grpc/stats/stats.go b/vendor/google.golang.org/grpc/stats/stats.go index 9e22c393f..a7970c79a 100644 --- a/vendor/google.golang.org/grpc/stats/stats.go +++ b/vendor/google.golang.org/grpc/stats/stats.go @@ -81,6 +81,10 @@ type InHeader struct { Client bool // WireLength is the wire length of header. WireLength int + // Compression is the compression algorithm used for the RPC. + Compression string + // Header contains the header metadata received. + Header metadata.MD // The following fields are valid only if Client is false. // FullMethod is the full RPC method string, i.e., /package.service/method. @@ -89,10 +93,6 @@ type InHeader struct { RemoteAddr net.Addr // LocalAddr is the local address of the corresponding connection. LocalAddr net.Addr - // Compression is the compression algorithm used for the RPC. - Compression string - // Header contains the header metadata received. - Header metadata.MD } // IsClient indicates if the stats information is from client side. @@ -141,6 +141,10 @@ func (s *OutPayload) isRPCStats() {} type OutHeader struct { // Client is true if this OutHeader is from client side. Client bool + // Compression is the compression algorithm used for the RPC. + Compression string + // Header contains the header metadata sent. + Header metadata.MD // The following fields are valid only if Client is true. // FullMethod is the full RPC method string, i.e., /package.service/method. @@ -149,10 +153,6 @@ type OutHeader struct { RemoteAddr net.Addr // LocalAddr is the local address of the corresponding connection. LocalAddr net.Addr - // Compression is the compression algorithm used for the RPC. - Compression string - // Header contains the header metadata sent. - Header metadata.MD } // IsClient indicates if this stats information is from client side. @@ -165,6 +165,9 @@ type OutTrailer struct { // Client is true if this OutTrailer is from client side. Client bool // WireLength is the wire length of trailer. + // + // Deprecated: This field is never set. The length is not known when this message is + // emitted because the trailer fields are compressed with hpack after that. WireLength int // Trailer contains the trailer metadata sent to the client. This // field is only valid if this OutTrailer is from the server side. diff --git a/vendor/google.golang.org/grpc/status/status.go b/vendor/google.golang.org/grpc/status/status.go index a1348e9b1..01e182c30 100644 --- a/vendor/google.golang.org/grpc/status/status.go +++ b/vendor/google.golang.org/grpc/status/status.go @@ -29,88 +29,23 @@ package status import ( "context" - "errors" "fmt" - "github.com/golang/protobuf/proto" - "github.com/golang/protobuf/ptypes" spb "google.golang.org/genproto/googleapis/rpc/status" + "google.golang.org/grpc/codes" - "google.golang.org/grpc/internal" + "google.golang.org/grpc/internal/status" ) -func init() { - internal.StatusRawProto = statusRawProto -} - -func statusRawProto(s *Status) *spb.Status { return s.s } - -// statusError is an alias of a status proto. It implements error and Status, -// and a nil statusError should never be returned by this package. -type statusError spb.Status - -func (se *statusError) Error() string { - p := (*spb.Status)(se) - return fmt.Sprintf("rpc error: code = %s desc = %s", codes.Code(p.GetCode()), p.GetMessage()) -} - -func (se *statusError) GRPCStatus() *Status { - return &Status{s: (*spb.Status)(se)} -} - -// Is implements future error.Is functionality. -// A statusError is equivalent if the code and message are identical. -func (se *statusError) Is(target error) bool { - tse, ok := target.(*statusError) - if !ok { - return false - } - - return proto.Equal((*spb.Status)(se), (*spb.Status)(tse)) -} - -// Status represents an RPC status code, message, and details. It is immutable -// and should be created with New, Newf, or FromProto. -type Status struct { - s *spb.Status -} - -// Code returns the status code contained in s. -func (s *Status) Code() codes.Code { - if s == nil || s.s == nil { - return codes.OK - } - return codes.Code(s.s.Code) -} - -// Message returns the message contained in s. -func (s *Status) Message() string { - if s == nil || s.s == nil { - return "" - } - return s.s.Message -} - -// Proto returns s's status as an spb.Status proto message. -func (s *Status) Proto() *spb.Status { - if s == nil { - return nil - } - return proto.Clone(s.s).(*spb.Status) -} - -// Err returns an immutable error representing s; returns nil if s.Code() is -// OK. -func (s *Status) Err() error { - if s.Code() == codes.OK { - return nil - } - return (*statusError)(s.s) -} +// Status references google.golang.org/grpc/internal/status. It represents an +// RPC status code, message, and details. It is immutable and should be +// created with New, Newf, or FromProto. +// https://godoc.org/google.golang.org/grpc/internal/status +type Status = status.Status // New returns a Status representing c and msg. func New(c codes.Code, msg string) *Status { - return &Status{s: &spb.Status{Code: int32(c), Message: msg}} + return status.New(c, msg) } // Newf returns New(c, fmt.Sprintf(format, a...)). @@ -135,7 +70,7 @@ func ErrorProto(s *spb.Status) error { // FromProto returns a Status representing s. func FromProto(s *spb.Status) *Status { - return &Status{s: proto.Clone(s).(*spb.Status)} + return status.FromProto(s) } // FromError returns a Status representing err if it was produced from this @@ -160,42 +95,6 @@ func Convert(err error) *Status { return s } -// WithDetails returns a new status with the provided details messages appended to the status. -// If any errors are encountered, it returns nil and the first error encountered. -func (s *Status) WithDetails(details ...proto.Message) (*Status, error) { - if s.Code() == codes.OK { - return nil, errors.New("no error details for status with code OK") - } - // s.Code() != OK implies that s.Proto() != nil. - p := s.Proto() - for _, detail := range details { - any, err := ptypes.MarshalAny(detail) - if err != nil { - return nil, err - } - p.Details = append(p.Details, any) - } - return &Status{s: p}, nil -} - -// Details returns a slice of details messages attached to the status. -// If a detail cannot be decoded, the error is returned in place of the detail. -func (s *Status) Details() []interface{} { - if s == nil || s.s == nil { - return nil - } - details := make([]interface{}, 0, len(s.s.Details)) - for _, any := range s.s.Details { - detail := &ptypes.DynamicAny{} - if err := ptypes.UnmarshalAny(any, detail); err != nil { - details = append(details, err) - continue - } - details = append(details, detail.Message) - } - return details -} - // Code returns the Code of the error if it is a Status error, codes.OK if err // is nil, or codes.Unknown otherwise. func Code(err error) codes.Code { diff --git a/vendor/google.golang.org/grpc/version.go b/vendor/google.golang.org/grpc/version.go index 03abf1620..ca5d55fdd 100644 --- a/vendor/google.golang.org/grpc/version.go +++ b/vendor/google.golang.org/grpc/version.go @@ -19,4 +19,4 @@ package grpc // Version is the current grpc version. -const Version = "1.28.0" +const Version = "1.29.1" diff --git a/vendor/google.golang.org/grpc/vet.sh b/vendor/google.golang.org/grpc/vet.sh index f077fe775..e12024fb8 100644 --- a/vendor/google.golang.org/grpc/vet.sh +++ b/vendor/google.golang.org/grpc/vet.sh @@ -1,20 +1,22 @@ #!/bin/bash -if [[ `uname -a` = *"Darwin"* ]]; then - echo "It seems you are running on Mac. This script does not work on Mac. See https://github.com/grpc/grpc-go/issues/2047" - exit 1 -fi - set -ex # Exit on error; debugging enabled. set -o pipefail # Fail a pipe if any sub-command fails. +# not makes sure the command passed to it does not exit with a return code of 0. +not() { + # This is required instead of the earlier (! $COMMAND) because subshells and + # pipefail don't work the same on Darwin as in Linux. + ! "$@" +} + die() { echo "$@" >&2 exit 1 } fail_on_output() { - tee /dev/stderr | (! read) + tee /dev/stderr | not read } # Check to make sure it's safe to modify the user's git repo. @@ -60,7 +62,7 @@ if [[ "$1" = "-install" ]]; then unzip ${PROTOC_FILENAME} bin/protoc --version popd - elif ! which protoc > /dev/null; then + elif not which protoc > /dev/null; then die "Please install protoc into your path" fi fi @@ -70,21 +72,21 @@ elif [[ "$#" -ne 0 ]]; then fi # - Ensure all source files contain a copyright message. -(! git grep -L "\(Copyright [0-9]\{4,\} gRPC authors\)\|DO NOT EDIT" -- '*.go') +not git grep -L "\(Copyright [0-9]\{4,\} gRPC authors\)\|DO NOT EDIT" -- '*.go' # - Make sure all tests in grpc and grpc/test use leakcheck via Teardown. -(! grep 'func Test[^(]' *_test.go) -(! grep 'func Test[^(]' test/*.go) +not grep 'func Test[^(]' *_test.go +not grep 'func Test[^(]' test/*.go # - Do not import x/net/context. -(! git grep -l 'x/net/context' -- "*.go") +not git grep -l 'x/net/context' -- "*.go" # - Do not import math/rand for real library code. Use internal/grpcrand for # thread safety. -git grep -l '"math/rand"' -- "*.go" 2>&1 | (! grep -v '^examples\|^stress\|grpcrand\|^benchmark\|wrr_test') +git grep -l '"math/rand"' -- "*.go" 2>&1 | not grep -v '^examples\|^stress\|grpcrand\|^benchmark\|wrr_test' # - Ensure all ptypes proto packages are renamed when importing. -(! git grep "\(import \|^\s*\)\"github.com/golang/protobuf/ptypes/" -- "*.go") +not git grep "\(import \|^\s*\)\"github.com/golang/protobuf/ptypes/" -- "*.go" # - Check imports that are illegal in appengine (until Go 1.11). # TODO: Remove when we drop Go 1.10 support @@ -92,8 +94,8 @@ go list -f {{.Dir}} ./... | xargs go run test/go_vet/vet.go # - gofmt, goimports, golint (with exceptions for generated code), go vet. gofmt -s -d -l . 2>&1 | fail_on_output -goimports -l . 2>&1 | (! grep -vE "(_mock|\.pb)\.go") -golint ./... 2>&1 | (! grep -vE "(_mock|\.pb)\.go:") +goimports -l . 2>&1 | not grep -vE "(_mock|\.pb)\.go" +golint ./... 2>&1 | not grep -vE "(_mock|\.pb)\.go:" go vet -all ./... misspell -error . @@ -119,9 +121,9 @@ fi SC_OUT="$(mktemp)" staticcheck -go 1.9 -checks 'inherit,-ST1015' ./... > "${SC_OUT}" || true # Error if anything other than deprecation warnings are printed. -(! grep -v "is deprecated:.*SA1019" "${SC_OUT}") +not grep -v "is deprecated:.*SA1019" "${SC_OUT}" # Only ignore the following deprecated types/fields/functions. -(! grep -Fv '.HandleResolvedAddrs +not grep -Fv '.HandleResolvedAddrs .HandleSubConnStateChange .HeaderMap .NewAddress @@ -157,4 +159,5 @@ naming.Update naming.Watcher resolver.Backend resolver.GRPCLB' "${SC_OUT}" -) + +echo SUCCESS diff --git a/vendor/google.golang.org/protobuf/AUTHORS b/vendor/google.golang.org/protobuf/AUTHORS new file mode 100644 index 000000000..2b00ddba0 --- /dev/null +++ b/vendor/google.golang.org/protobuf/AUTHORS @@ -0,0 +1,3 @@ +# This source code refers to The Go Authors for copyright purposes. +# The master list of authors is in the main Go distribution, +# visible at https://tip.golang.org/AUTHORS. diff --git a/vendor/google.golang.org/protobuf/CONTRIBUTORS b/vendor/google.golang.org/protobuf/CONTRIBUTORS new file mode 100644 index 000000000..1fbd3e976 --- /dev/null +++ b/vendor/google.golang.org/protobuf/CONTRIBUTORS @@ -0,0 +1,3 @@ +# This source code was written by the Go contributors. +# The master list of contributors is in the main Go distribution, +# visible at https://tip.golang.org/CONTRIBUTORS. diff --git a/vendor/google.golang.org/protobuf/LICENSE b/vendor/google.golang.org/protobuf/LICENSE new file mode 100644 index 000000000..49ea0f928 --- /dev/null +++ b/vendor/google.golang.org/protobuf/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2018 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/google.golang.org/protobuf/PATENTS b/vendor/google.golang.org/protobuf/PATENTS new file mode 100644 index 000000000..733099041 --- /dev/null +++ b/vendor/google.golang.org/protobuf/PATENTS @@ -0,0 +1,22 @@ +Additional IP Rights Grant (Patents) + +"This implementation" means the copyrightable works distributed by +Google as part of the Go project. + +Google hereby grants to You a perpetual, worldwide, non-exclusive, +no-charge, royalty-free, irrevocable (except as stated in this section) +patent license to make, have made, use, offer to sell, sell, import, +transfer and otherwise run, modify and propagate the contents of this +implementation of Go, where such license applies only to those patent +claims, both currently owned or controlled by Google and acquired in +the future, licensable by Google that are necessarily infringed by this +implementation of Go. This grant does not include claims that would be +infringed only as a consequence of further modification of this +implementation. If you or your agent or exclusive licensee institute or +order or agree to the institution of patent litigation against any +entity (including a cross-claim or counterclaim in a lawsuit) alleging +that this implementation of Go or any code incorporated within this +implementation of Go constitutes direct or contributory patent +infringement, or inducement of patent infringement, then any patent +rights granted to you under this License for this implementation of Go +shall terminate as of the date such litigation is filed. diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo/init.go b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo/init.go new file mode 100644 index 000000000..369df13da --- /dev/null +++ b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo/init.go @@ -0,0 +1,168 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package internal_gengo + +import ( + "unicode" + "unicode/utf8" + + "google.golang.org/protobuf/compiler/protogen" + "google.golang.org/protobuf/encoding/protowire" + + "google.golang.org/protobuf/types/descriptorpb" +) + +type fileInfo struct { + *protogen.File + + allEnums []*enumInfo + allMessages []*messageInfo + allExtensions []*extensionInfo + + allEnumsByPtr map[*enumInfo]int // value is index into allEnums + allMessagesByPtr map[*messageInfo]int // value is index into allMessages + allMessageFieldsByPtr map[*messageInfo]*structFields + + // needRawDesc specifies whether the generator should emit logic to provide + // the legacy raw descriptor in GZIP'd form. + // This is updated by enum and message generation logic as necessary, + // and checked at the end of file generation. + needRawDesc bool +} + +type structFields struct { + count int + unexported map[int]string +} + +func (sf *structFields) append(name string) { + if r, _ := utf8.DecodeRuneInString(name); !unicode.IsUpper(r) { + if sf.unexported == nil { + sf.unexported = make(map[int]string) + } + sf.unexported[sf.count] = name + } + sf.count++ +} + +func newFileInfo(file *protogen.File) *fileInfo { + f := &fileInfo{File: file} + + // Collect all enums, messages, and extensions in "flattened ordering". + // See filetype.TypeBuilder. + var walkMessages func([]*protogen.Message, func(*protogen.Message)) + walkMessages = func(messages []*protogen.Message, f func(*protogen.Message)) { + for _, m := range messages { + f(m) + walkMessages(m.Messages, f) + } + } + initEnumInfos := func(enums []*protogen.Enum) { + for _, enum := range enums { + f.allEnums = append(f.allEnums, newEnumInfo(f, enum)) + } + } + initMessageInfos := func(messages []*protogen.Message) { + for _, message := range messages { + f.allMessages = append(f.allMessages, newMessageInfo(f, message)) + } + } + initExtensionInfos := func(extensions []*protogen.Extension) { + for _, extension := range extensions { + f.allExtensions = append(f.allExtensions, newExtensionInfo(f, extension)) + } + } + initEnumInfos(f.Enums) + initMessageInfos(f.Messages) + initExtensionInfos(f.Extensions) + walkMessages(f.Messages, func(m *protogen.Message) { + initEnumInfos(m.Enums) + initMessageInfos(m.Messages) + initExtensionInfos(m.Extensions) + }) + + // Derive a reverse mapping of enum and message pointers to their index + // in allEnums and allMessages. + if len(f.allEnums) > 0 { + f.allEnumsByPtr = make(map[*enumInfo]int) + for i, e := range f.allEnums { + f.allEnumsByPtr[e] = i + } + } + if len(f.allMessages) > 0 { + f.allMessagesByPtr = make(map[*messageInfo]int) + f.allMessageFieldsByPtr = make(map[*messageInfo]*structFields) + for i, m := range f.allMessages { + f.allMessagesByPtr[m] = i + f.allMessageFieldsByPtr[m] = new(structFields) + } + } + + return f +} + +type enumInfo struct { + *protogen.Enum + + genJSONMethod bool + genRawDescMethod bool +} + +func newEnumInfo(f *fileInfo, enum *protogen.Enum) *enumInfo { + e := &enumInfo{Enum: enum} + e.genJSONMethod = true + e.genRawDescMethod = true + return e +} + +type messageInfo struct { + *protogen.Message + + genRawDescMethod bool + genExtRangeMethod bool + + isTracked bool + hasWeak bool +} + +func newMessageInfo(f *fileInfo, message *protogen.Message) *messageInfo { + m := &messageInfo{Message: message} + m.genRawDescMethod = true + m.genExtRangeMethod = true + m.isTracked = isTrackedMessage(m) + for _, field := range m.Fields { + m.hasWeak = m.hasWeak || field.Desc.IsWeak() + } + return m +} + +// isTrackedMessage reports whether field tracking is enabled on the message. +func isTrackedMessage(m *messageInfo) (tracked bool) { + const trackFieldUse_fieldNumber = 37383685 + + // Decode the option from unknown fields to avoid a dependency on the + // annotation proto from protoc-gen-go. + b := m.Desc.Options().(*descriptorpb.MessageOptions).ProtoReflect().GetUnknown() + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + if num == trackFieldUse_fieldNumber && typ == protowire.VarintType { + v, _ := protowire.ConsumeVarint(b) + tracked = protowire.DecodeBool(v) + } + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + return tracked +} + +type extensionInfo struct { + *protogen.Extension +} + +func newExtensionInfo(f *fileInfo, extension *protogen.Extension) *extensionInfo { + x := &extensionInfo{Extension: extension} + return x +} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo/main.go b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo/main.go new file mode 100644 index 000000000..d8f86c05d --- /dev/null +++ b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo/main.go @@ -0,0 +1,892 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package internal_gengo is internal to the protobuf module. +package internal_gengo + +import ( + "fmt" + "go/ast" + "go/parser" + "go/token" + "math" + "strconv" + "strings" + "unicode" + "unicode/utf8" + + "google.golang.org/protobuf/compiler/protogen" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/encoding/tag" + "google.golang.org/protobuf/internal/fieldnum" + "google.golang.org/protobuf/internal/genname" + "google.golang.org/protobuf/internal/version" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoimpl" + + "google.golang.org/protobuf/types/descriptorpb" + "google.golang.org/protobuf/types/pluginpb" +) + +// SupportedFeatures reports the set of supported protobuf language features. +var SupportedFeatures = uint64(pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL) + +// GenerateVersionMarkers specifies whether to generate version markers. +var GenerateVersionMarkers = true + +// Standard library dependencies. +const ( + mathPackage = protogen.GoImportPath("math") + reflectPackage = protogen.GoImportPath("reflect") + syncPackage = protogen.GoImportPath("sync") +) + +// Protobuf library dependencies. +// +// These are declared as an interface type so that they can be more easily +// patched to support unique build environments that impose restrictions +// on the dependencies of generated source code. +var ( + protoPackage goImportPath = protogen.GoImportPath("google.golang.org/protobuf/proto") + protoifacePackage goImportPath = protogen.GoImportPath("google.golang.org/protobuf/runtime/protoiface") + protoimplPackage goImportPath = protogen.GoImportPath("google.golang.org/protobuf/runtime/protoimpl") + protoreflectPackage goImportPath = protogen.GoImportPath("google.golang.org/protobuf/reflect/protoreflect") + protoV1Package goImportPath = protogen.GoImportPath("github.com/golang/protobuf/proto") +) + +type goImportPath interface { + String() string + Ident(string) protogen.GoIdent +} + +// GenerateFile generates the contents of a .pb.go file. +func GenerateFile(gen *protogen.Plugin, file *protogen.File) *protogen.GeneratedFile { + filename := file.GeneratedFilenamePrefix + ".pb.go" + g := gen.NewGeneratedFile(filename, file.GoImportPath) + f := newFileInfo(file) + + genStandaloneComments(g, f, fieldnum.FileDescriptorProto_Syntax) + genGeneratedHeader(gen, g, f) + genStandaloneComments(g, f, fieldnum.FileDescriptorProto_Package) + g.P("package ", f.GoPackageName) + g.P() + + // Emit a static check that enforces a minimum version of the proto package. + if GenerateVersionMarkers { + g.P("const (") + g.P("// Verify that this generated code is sufficiently up-to-date.") + g.P("_ = ", protoimplPackage.Ident("EnforceVersion"), "(", protoimpl.GenVersion, " - ", protoimplPackage.Ident("MinVersion"), ")") + g.P("// Verify that runtime/protoimpl is sufficiently up-to-date.") + g.P("_ = ", protoimplPackage.Ident("EnforceVersion"), "(", protoimplPackage.Ident("MaxVersion"), " - ", protoimpl.GenVersion, ")") + g.P(")") + g.P() + + // TODO: Remove this after some soak-in period after the v2 release. + g.P("// This is a compile-time assertion that a sufficiently up-to-date version") + g.P("// of the legacy proto package is being used.") + g.P("const _ = ", protoV1Package.Ident("ProtoPackageIsVersion4")) + g.P() + } + + for i, imps := 0, f.Desc.Imports(); i < imps.Len(); i++ { + genImport(gen, g, f, imps.Get(i)) + } + for _, enum := range f.allEnums { + genEnum(g, f, enum) + } + for _, message := range f.allMessages { + genMessage(g, f, message) + } + genExtensions(g, f) + + genReflectFileDescriptor(gen, g, f) + + return g +} + +// genStandaloneComments prints all leading comments for a FileDescriptorProto +// location identified by the field number n. +func genStandaloneComments(g *protogen.GeneratedFile, f *fileInfo, n int32) { + for _, loc := range f.Proto.GetSourceCodeInfo().GetLocation() { + if len(loc.Path) == 1 && loc.Path[0] == n { + for _, s := range loc.GetLeadingDetachedComments() { + g.P(protogen.Comments(s)) + g.P() + } + if s := loc.GetLeadingComments(); s != "" { + g.P(protogen.Comments(s)) + g.P() + } + } + } +} + +func genGeneratedHeader(gen *protogen.Plugin, g *protogen.GeneratedFile, f *fileInfo) { + g.P("// Code generated by protoc-gen-go. DO NOT EDIT.") + + if GenerateVersionMarkers { + g.P("// versions:") + protocGenGoVersion := version.String() + protocVersion := "(unknown)" + if v := gen.Request.GetCompilerVersion(); v != nil { + protocVersion = fmt.Sprintf("v%v.%v.%v", v.GetMajor(), v.GetMinor(), v.GetPatch()) + } + g.P("// \tprotoc-gen-go ", protocGenGoVersion) + g.P("// \tprotoc ", protocVersion) + } + + if f.Proto.GetOptions().GetDeprecated() { + g.P("// ", f.Desc.Path(), " is a deprecated file.") + } else { + g.P("// source: ", f.Desc.Path()) + } + g.P() +} + +func genImport(gen *protogen.Plugin, g *protogen.GeneratedFile, f *fileInfo, imp protoreflect.FileImport) { + impFile, ok := gen.FilesByPath[imp.Path()] + if !ok { + return + } + if impFile.GoImportPath == f.GoImportPath { + // Don't generate imports or aliases for types in the same Go package. + return + } + // Generate imports for all non-weak dependencies, even if they are not + // referenced, because other code and tools depend on having the + // full transitive closure of protocol buffer types in the binary. + if !imp.IsWeak { + g.Import(impFile.GoImportPath) + } + if !imp.IsPublic { + return + } + + // Generate public imports by generating the imported file, parsing it, + // and extracting every symbol that should receive a forwarding declaration. + impGen := GenerateFile(gen, impFile) + impGen.Skip() + b, err := impGen.Content() + if err != nil { + gen.Error(err) + return + } + fset := token.NewFileSet() + astFile, err := parser.ParseFile(fset, "", b, parser.ParseComments) + if err != nil { + gen.Error(err) + return + } + genForward := func(tok token.Token, name string, expr ast.Expr) { + // Don't import unexported symbols. + r, _ := utf8.DecodeRuneInString(name) + if !unicode.IsUpper(r) { + return + } + // Don't import the FileDescriptor. + if name == impFile.GoDescriptorIdent.GoName { + return + } + // Don't import decls referencing a symbol defined in another package. + // i.e., don't import decls which are themselves public imports: + // + // type T = somepackage.T + if _, ok := expr.(*ast.SelectorExpr); ok { + return + } + g.P(tok, " ", name, " = ", impFile.GoImportPath.Ident(name)) + } + g.P("// Symbols defined in public import of ", imp.Path(), ".") + g.P() + for _, decl := range astFile.Decls { + switch decl := decl.(type) { + case *ast.GenDecl: + for _, spec := range decl.Specs { + switch spec := spec.(type) { + case *ast.TypeSpec: + genForward(decl.Tok, spec.Name.Name, spec.Type) + case *ast.ValueSpec: + for i, name := range spec.Names { + var expr ast.Expr + if i < len(spec.Values) { + expr = spec.Values[i] + } + genForward(decl.Tok, name.Name, expr) + } + case *ast.ImportSpec: + default: + panic(fmt.Sprintf("can't generate forward for spec type %T", spec)) + } + } + } + } + g.P() +} + +func genEnum(g *protogen.GeneratedFile, f *fileInfo, e *enumInfo) { + // Enum type declaration. + g.Annotate(e.GoIdent.GoName, e.Location) + leadingComments := appendDeprecationSuffix(e.Comments.Leading, + e.Desc.Options().(*descriptorpb.EnumOptions).GetDeprecated()) + g.P(leadingComments, + "type ", e.GoIdent, " int32") + + // Enum value constants. + g.P("const (") + for _, value := range e.Values { + g.Annotate(value.GoIdent.GoName, value.Location) + leadingComments := appendDeprecationSuffix(value.Comments.Leading, + value.Desc.Options().(*descriptorpb.EnumValueOptions).GetDeprecated()) + g.P(leadingComments, + value.GoIdent, " ", e.GoIdent, " = ", value.Desc.Number(), + trailingComment(value.Comments.Trailing)) + } + g.P(")") + g.P() + + // Enum value maps. + g.P("// Enum value maps for ", e.GoIdent, ".") + g.P("var (") + g.P(e.GoIdent.GoName+"_name", " = map[int32]string{") + for _, value := range e.Values { + duplicate := "" + if value.Desc != e.Desc.Values().ByNumber(value.Desc.Number()) { + duplicate = "// Duplicate value: " + } + g.P(duplicate, value.Desc.Number(), ": ", strconv.Quote(string(value.Desc.Name())), ",") + } + g.P("}") + g.P(e.GoIdent.GoName+"_value", " = map[string]int32{") + for _, value := range e.Values { + g.P(strconv.Quote(string(value.Desc.Name())), ": ", value.Desc.Number(), ",") + } + g.P("}") + g.P(")") + g.P() + + // Enum method. + // + // NOTE: A pointer value is needed to represent presence in proto2. + // Since a proto2 message can reference a proto3 enum, it is useful to + // always generate this method (even on proto3 enums) to support that case. + g.P("func (x ", e.GoIdent, ") Enum() *", e.GoIdent, " {") + g.P("p := new(", e.GoIdent, ")") + g.P("*p = x") + g.P("return p") + g.P("}") + g.P() + + // String method. + g.P("func (x ", e.GoIdent, ") String() string {") + g.P("return ", protoimplPackage.Ident("X"), ".EnumStringOf(x.Descriptor(), ", protoreflectPackage.Ident("EnumNumber"), "(x))") + g.P("}") + g.P() + + genEnumReflectMethods(g, f, e) + + // UnmarshalJSON method. + if e.genJSONMethod && e.Desc.Syntax() == protoreflect.Proto2 { + g.P("// Deprecated: Do not use.") + g.P("func (x *", e.GoIdent, ") UnmarshalJSON(b []byte) error {") + g.P("num, err := ", protoimplPackage.Ident("X"), ".UnmarshalJSONEnum(x.Descriptor(), b)") + g.P("if err != nil {") + g.P("return err") + g.P("}") + g.P("*x = ", e.GoIdent, "(num)") + g.P("return nil") + g.P("}") + g.P() + } + + // EnumDescriptor method. + if e.genRawDescMethod { + var indexes []string + for i := 1; i < len(e.Location.Path); i += 2 { + indexes = append(indexes, strconv.Itoa(int(e.Location.Path[i]))) + } + g.P("// Deprecated: Use ", e.GoIdent, ".Descriptor instead.") + g.P("func (", e.GoIdent, ") EnumDescriptor() ([]byte, []int) {") + g.P("return ", rawDescVarName(f), "GZIP(), []int{", strings.Join(indexes, ","), "}") + g.P("}") + g.P() + f.needRawDesc = true + } +} + +func genMessage(g *protogen.GeneratedFile, f *fileInfo, m *messageInfo) { + if m.Desc.IsMapEntry() { + return + } + + // Message type declaration. + g.Annotate(m.GoIdent.GoName, m.Location) + leadingComments := appendDeprecationSuffix(m.Comments.Leading, + m.Desc.Options().(*descriptorpb.MessageOptions).GetDeprecated()) + g.P(leadingComments, + "type ", m.GoIdent, " struct {") + genMessageFields(g, f, m) + g.P("}") + g.P() + + genMessageDefaultDecls(g, f, m) + genMessageMethods(g, f, m) + genMessageOneofWrapperTypes(g, f, m) +} + +func genMessageFields(g *protogen.GeneratedFile, f *fileInfo, m *messageInfo) { + sf := f.allMessageFieldsByPtr[m] + genMessageInternalFields(g, f, m, sf) + for _, field := range m.Fields { + genMessageField(g, f, m, field, sf) + } +} + +func genMessageInternalFields(g *protogen.GeneratedFile, f *fileInfo, m *messageInfo, sf *structFields) { + g.P(genname.State, " ", protoimplPackage.Ident("MessageState")) + sf.append(genname.State) + g.P(genname.SizeCache, " ", protoimplPackage.Ident("SizeCache")) + sf.append(genname.SizeCache) + if m.hasWeak { + g.P(genname.WeakFields, " ", protoimplPackage.Ident("WeakFields")) + sf.append(genname.WeakFields) + } + g.P(genname.UnknownFields, " ", protoimplPackage.Ident("UnknownFields")) + sf.append(genname.UnknownFields) + if m.Desc.ExtensionRanges().Len() > 0 { + g.P(genname.ExtensionFields, " ", protoimplPackage.Ident("ExtensionFields")) + sf.append(genname.ExtensionFields) + } + if sf.count > 0 { + g.P() + } +} + +func genMessageField(g *protogen.GeneratedFile, f *fileInfo, m *messageInfo, field *protogen.Field, sf *structFields) { + if oneof := field.Oneof; oneof != nil && !oneof.Desc.IsSynthetic() { + // It would be a bit simpler to iterate over the oneofs below, + // but generating the field here keeps the contents of the Go + // struct in the same order as the contents of the source + // .proto file. + if oneof.Fields[0] != field { + return // only generate for first appearance + } + + tags := structTags{ + {"protobuf_oneof", string(oneof.Desc.Name())}, + } + if m.isTracked { + tags = append(tags, gotrackTags...) + } + + g.Annotate(m.GoIdent.GoName+"."+oneof.GoName, oneof.Location) + leadingComments := oneof.Comments.Leading + if leadingComments != "" { + leadingComments += "\n" + } + ss := []string{fmt.Sprintf(" Types that are assignable to %s:\n", oneof.GoName)} + for _, field := range oneof.Fields { + ss = append(ss, "\t*"+field.GoIdent.GoName+"\n") + } + leadingComments += protogen.Comments(strings.Join(ss, "")) + g.P(leadingComments, + oneof.GoName, " ", oneofInterfaceName(oneof), tags) + sf.append(oneof.GoName) + return + } + goType, pointer := fieldGoType(g, f, field) + if pointer { + goType = "*" + goType + } + tags := structTags{ + {"protobuf", fieldProtobufTagValue(field)}, + {"json", fieldJSONTagValue(field)}, + } + if field.Desc.IsMap() { + key := field.Message.Fields[0] + val := field.Message.Fields[1] + tags = append(tags, structTags{ + {"protobuf_key", fieldProtobufTagValue(key)}, + {"protobuf_val", fieldProtobufTagValue(val)}, + }...) + } + if m.isTracked { + tags = append(tags, gotrackTags...) + } + + name := field.GoName + if field.Desc.IsWeak() { + name = genname.WeakFieldPrefix + name + } + g.Annotate(m.GoIdent.GoName+"."+name, field.Location) + leadingComments := appendDeprecationSuffix(field.Comments.Leading, + field.Desc.Options().(*descriptorpb.FieldOptions).GetDeprecated()) + g.P(leadingComments, + name, " ", goType, tags, + trailingComment(field.Comments.Trailing)) + sf.append(field.GoName) +} + +// genMessageDefaultDecls generates consts and vars holding the default +// values of fields. +func genMessageDefaultDecls(g *protogen.GeneratedFile, f *fileInfo, m *messageInfo) { + var consts, vars []string + for _, field := range m.Fields { + if !field.Desc.HasDefault() { + continue + } + name := "Default_" + m.GoIdent.GoName + "_" + field.GoName + goType, _ := fieldGoType(g, f, field) + defVal := field.Desc.Default() + switch field.Desc.Kind() { + case protoreflect.StringKind: + consts = append(consts, fmt.Sprintf("%s = %s(%q)", name, goType, defVal.String())) + case protoreflect.BytesKind: + vars = append(vars, fmt.Sprintf("%s = %s(%q)", name, goType, defVal.Bytes())) + case protoreflect.EnumKind: + idx := field.Desc.DefaultEnumValue().Index() + val := field.Enum.Values[idx] + consts = append(consts, fmt.Sprintf("%s = %s", name, g.QualifiedGoIdent(val.GoIdent))) + case protoreflect.FloatKind, protoreflect.DoubleKind: + if f := defVal.Float(); math.IsNaN(f) || math.IsInf(f, 0) { + var fn, arg string + switch f := defVal.Float(); { + case math.IsInf(f, -1): + fn, arg = g.QualifiedGoIdent(mathPackage.Ident("Inf")), "-1" + case math.IsInf(f, +1): + fn, arg = g.QualifiedGoIdent(mathPackage.Ident("Inf")), "+1" + case math.IsNaN(f): + fn, arg = g.QualifiedGoIdent(mathPackage.Ident("NaN")), "" + } + vars = append(vars, fmt.Sprintf("%s = %s(%s(%s))", name, goType, fn, arg)) + } else { + consts = append(consts, fmt.Sprintf("%s = %s(%v)", name, goType, f)) + } + default: + consts = append(consts, fmt.Sprintf("%s = %s(%v)", name, goType, defVal.Interface())) + } + } + if len(consts) > 0 { + g.P("// Default values for ", m.GoIdent, " fields.") + g.P("const (") + for _, s := range consts { + g.P(s) + } + g.P(")") + } + if len(vars) > 0 { + g.P("// Default values for ", m.GoIdent, " fields.") + g.P("var (") + for _, s := range vars { + g.P(s) + } + g.P(")") + } + g.P() +} + +func genMessageMethods(g *protogen.GeneratedFile, f *fileInfo, m *messageInfo) { + genMessageBaseMethods(g, f, m) + genMessageGetterMethods(g, f, m) + genMessageSetterMethods(g, f, m) +} + +func genMessageBaseMethods(g *protogen.GeneratedFile, f *fileInfo, m *messageInfo) { + // Reset method. + g.P("func (x *", m.GoIdent, ") Reset() {") + g.P("*x = ", m.GoIdent, "{}") + g.P("if ", protoimplPackage.Ident("UnsafeEnabled"), " {") + g.P("mi := &", messageTypesVarName(f), "[", f.allMessagesByPtr[m], "]") + g.P("ms := ", protoimplPackage.Ident("X"), ".MessageStateOf(", protoimplPackage.Ident("Pointer"), "(x))") + g.P("ms.StoreMessageInfo(mi)") + g.P("}") + g.P("}") + g.P() + + // String method. + g.P("func (x *", m.GoIdent, ") String() string {") + g.P("return ", protoimplPackage.Ident("X"), ".MessageStringOf(x)") + g.P("}") + g.P() + + // ProtoMessage method. + g.P("func (*", m.GoIdent, ") ProtoMessage() {}") + g.P() + + // ProtoReflect method. + genMessageReflectMethods(g, f, m) + + // Descriptor method. + if m.genRawDescMethod { + var indexes []string + for i := 1; i < len(m.Location.Path); i += 2 { + indexes = append(indexes, strconv.Itoa(int(m.Location.Path[i]))) + } + g.P("// Deprecated: Use ", m.GoIdent, ".ProtoReflect.Descriptor instead.") + g.P("func (*", m.GoIdent, ") Descriptor() ([]byte, []int) {") + g.P("return ", rawDescVarName(f), "GZIP(), []int{", strings.Join(indexes, ","), "}") + g.P("}") + g.P() + f.needRawDesc = true + } + + // ExtensionRangeArray method. + extRanges := m.Desc.ExtensionRanges() + if m.genExtRangeMethod && extRanges.Len() > 0 { + protoExtRange := protoifacePackage.Ident("ExtensionRangeV1") + extRangeVar := "extRange_" + m.GoIdent.GoName + g.P("var ", extRangeVar, " = []", protoExtRange, " {") + for i := 0; i < extRanges.Len(); i++ { + r := extRanges.Get(i) + g.P("{Start:", r[0], ", End:", r[1]-1 /* inclusive */, "},") + } + g.P("}") + g.P() + g.P("// Deprecated: Use ", m.GoIdent, ".ProtoReflect.Descriptor.ExtensionRanges instead.") + g.P("func (*", m.GoIdent, ") ExtensionRangeArray() []", protoExtRange, " {") + g.P("return ", extRangeVar) + g.P("}") + g.P() + } +} + +func genMessageGetterMethods(g *protogen.GeneratedFile, f *fileInfo, m *messageInfo) { + for _, field := range m.Fields { + genNoInterfacePragma(g, m.isTracked) + + // Getter for parent oneof. + if oneof := field.Oneof; oneof != nil && oneof.Fields[0] == field && !oneof.Desc.IsSynthetic() { + g.Annotate(m.GoIdent.GoName+".Get"+oneof.GoName, oneof.Location) + g.P("func (m *", m.GoIdent.GoName, ") Get", oneof.GoName, "() ", oneofInterfaceName(oneof), " {") + g.P("if m != nil {") + g.P("return m.", oneof.GoName) + g.P("}") + g.P("return nil") + g.P("}") + g.P() + } + + // Getter for message field. + goType, pointer := fieldGoType(g, f, field) + defaultValue := fieldDefaultValue(g, m, field) + g.Annotate(m.GoIdent.GoName+".Get"+field.GoName, field.Location) + leadingComments := appendDeprecationSuffix("", + field.Desc.Options().(*descriptorpb.FieldOptions).GetDeprecated()) + switch { + case field.Desc.IsWeak(): + g.P(leadingComments, "func (x *", m.GoIdent, ") Get", field.GoName, "() ", protoPackage.Ident("Message"), "{") + g.P("var w ", protoimplPackage.Ident("WeakFields")) + g.P("if x != nil {") + g.P("w = x.", genname.WeakFields) + if m.isTracked { + g.P("_ = x.", genname.WeakFieldPrefix+field.GoName) + } + g.P("}") + g.P("return ", protoimplPackage.Ident("X"), ".GetWeak(w, ", field.Desc.Number(), ", ", strconv.Quote(string(field.Message.Desc.FullName())), ")") + g.P("}") + case field.Oneof != nil && !field.Oneof.Desc.IsSynthetic(): + g.P(leadingComments, "func (x *", m.GoIdent, ") Get", field.GoName, "() ", goType, " {") + g.P("if x, ok := x.Get", field.Oneof.GoName, "().(*", field.GoIdent, "); ok {") + g.P("return x.", field.GoName) + g.P("}") + g.P("return ", defaultValue) + g.P("}") + default: + g.P(leadingComments, "func (x *", m.GoIdent, ") Get", field.GoName, "() ", goType, " {") + if !field.Desc.HasPresence() || defaultValue == "nil" { + g.P("if x != nil {") + } else { + g.P("if x != nil && x.", field.GoName, " != nil {") + } + star := "" + if pointer { + star = "*" + } + g.P("return ", star, " x.", field.GoName) + g.P("}") + g.P("return ", defaultValue) + g.P("}") + } + g.P() + } +} + +func genMessageSetterMethods(g *protogen.GeneratedFile, f *fileInfo, m *messageInfo) { + for _, field := range m.Fields { + if !field.Desc.IsWeak() { + continue + } + + genNoInterfacePragma(g, m.isTracked) + + g.Annotate(m.GoIdent.GoName+".Set"+field.GoName, field.Location) + leadingComments := appendDeprecationSuffix("", + field.Desc.Options().(*descriptorpb.FieldOptions).GetDeprecated()) + g.P(leadingComments, "func (x *", m.GoIdent, ") Set", field.GoName, "(v ", protoPackage.Ident("Message"), ") {") + g.P("var w *", protoimplPackage.Ident("WeakFields")) + g.P("if x != nil {") + g.P("w = &x.", genname.WeakFields) + if m.isTracked { + g.P("_ = x.", genname.WeakFieldPrefix+field.GoName) + } + g.P("}") + g.P(protoimplPackage.Ident("X"), ".SetWeak(w, ", field.Desc.Number(), ", ", strconv.Quote(string(field.Message.Desc.FullName())), ", v)") + g.P("}") + g.P() + } +} + +// fieldGoType returns the Go type used for a field. +// +// If it returns pointer=true, the struct field is a pointer to the type. +func fieldGoType(g *protogen.GeneratedFile, f *fileInfo, field *protogen.Field) (goType string, pointer bool) { + if field.Desc.IsWeak() { + return "struct{}", false + } + + pointer = field.Desc.HasPresence() + switch field.Desc.Kind() { + case protoreflect.BoolKind: + goType = "bool" + case protoreflect.EnumKind: + goType = g.QualifiedGoIdent(field.Enum.GoIdent) + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + goType = "int32" + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + goType = "uint32" + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + goType = "int64" + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + goType = "uint64" + case protoreflect.FloatKind: + goType = "float32" + case protoreflect.DoubleKind: + goType = "float64" + case protoreflect.StringKind: + goType = "string" + case protoreflect.BytesKind: + goType = "[]byte" + pointer = false // rely on nullability of slices for presence + case protoreflect.MessageKind, protoreflect.GroupKind: + goType = "*" + g.QualifiedGoIdent(field.Message.GoIdent) + pointer = false // pointer captured as part of the type + } + switch { + case field.Desc.IsList(): + return "[]" + goType, false + case field.Desc.IsMap(): + keyType, _ := fieldGoType(g, f, field.Message.Fields[0]) + valType, _ := fieldGoType(g, f, field.Message.Fields[1]) + return fmt.Sprintf("map[%v]%v", keyType, valType), false + } + return goType, pointer +} + +func fieldProtobufTagValue(field *protogen.Field) string { + var enumName string + if field.Desc.Kind() == protoreflect.EnumKind { + enumName = protoimpl.X.LegacyEnumName(field.Enum.Desc) + } + return tag.Marshal(field.Desc, enumName) +} + +func fieldDefaultValue(g *protogen.GeneratedFile, m *messageInfo, field *protogen.Field) string { + if field.Desc.IsList() { + return "nil" + } + if field.Desc.HasDefault() { + defVarName := "Default_" + m.GoIdent.GoName + "_" + field.GoName + if field.Desc.Kind() == protoreflect.BytesKind { + return "append([]byte(nil), " + defVarName + "...)" + } + return defVarName + } + switch field.Desc.Kind() { + case protoreflect.BoolKind: + return "false" + case protoreflect.StringKind: + return `""` + case protoreflect.MessageKind, protoreflect.GroupKind, protoreflect.BytesKind: + return "nil" + case protoreflect.EnumKind: + return g.QualifiedGoIdent(field.Enum.Values[0].GoIdent) + default: + return "0" + } +} + +func fieldJSONTagValue(field *protogen.Field) string { + return string(field.Desc.Name()) + ",omitempty" +} + +func genExtensions(g *protogen.GeneratedFile, f *fileInfo) { + if len(f.allExtensions) == 0 { + return + } + + g.P("var ", extensionTypesVarName(f), " = []", protoimplPackage.Ident("ExtensionInfo"), "{") + for _, x := range f.allExtensions { + // For MessageSet extensions, the name used is the parent message. + name := x.Desc.FullName() + if messageset.IsMessageSetExtension(x.Desc) { + name = name.Parent() + } + + g.P("{") + g.P("ExtendedType: (*", x.Extendee.GoIdent, ")(nil),") + goType, pointer := fieldGoType(g, f, x.Extension) + if pointer { + goType = "*" + goType + } + g.P("ExtensionType: (", goType, ")(nil),") + g.P("Field: ", x.Desc.Number(), ",") + g.P("Name: ", strconv.Quote(string(name)), ",") + g.P("Tag: ", strconv.Quote(fieldProtobufTagValue(x.Extension)), ",") + g.P("Filename: ", strconv.Quote(f.Desc.Path()), ",") + g.P("},") + } + g.P("}") + g.P() + + // Group extensions by the target message. + var orderedTargets []protogen.GoIdent + allExtensionsByTarget := make(map[protogen.GoIdent][]*extensionInfo) + allExtensionsByPtr := make(map[*extensionInfo]int) + for i, x := range f.allExtensions { + target := x.Extendee.GoIdent + if len(allExtensionsByTarget[target]) == 0 { + orderedTargets = append(orderedTargets, target) + } + allExtensionsByTarget[target] = append(allExtensionsByTarget[target], x) + allExtensionsByPtr[x] = i + } + for _, target := range orderedTargets { + g.P("// Extension fields to ", target, ".") + g.P("var (") + for _, x := range allExtensionsByTarget[target] { + xd := x.Desc + typeName := xd.Kind().String() + switch xd.Kind() { + case protoreflect.EnumKind: + typeName = string(xd.Enum().FullName()) + case protoreflect.MessageKind, protoreflect.GroupKind: + typeName = string(xd.Message().FullName()) + } + fieldName := string(xd.Name()) + + leadingComments := x.Comments.Leading + if leadingComments != "" { + leadingComments += "\n" + } + leadingComments += protogen.Comments(fmt.Sprintf(" %v %v %v = %v;\n", + xd.Cardinality(), typeName, fieldName, xd.Number())) + leadingComments = appendDeprecationSuffix(leadingComments, + x.Desc.Options().(*descriptorpb.FieldOptions).GetDeprecated()) + g.P(leadingComments, + "E_", x.GoIdent, " = &", extensionTypesVarName(f), "[", allExtensionsByPtr[x], "]", + trailingComment(x.Comments.Trailing)) + } + g.P(")") + g.P() + } +} + +// genMessageOneofWrapperTypes generates the oneof wrapper types and +// associates the types with the parent message type. +func genMessageOneofWrapperTypes(g *protogen.GeneratedFile, f *fileInfo, m *messageInfo) { + for _, oneof := range m.Oneofs { + if oneof.Desc.IsSynthetic() { + continue + } + ifName := oneofInterfaceName(oneof) + g.P("type ", ifName, " interface {") + g.P(ifName, "()") + g.P("}") + g.P() + for _, field := range oneof.Fields { + g.Annotate(field.GoIdent.GoName, field.Location) + g.Annotate(field.GoIdent.GoName+"."+field.GoName, field.Location) + g.P("type ", field.GoIdent, " struct {") + goType, _ := fieldGoType(g, f, field) + tags := structTags{ + {"protobuf", fieldProtobufTagValue(field)}, + } + if m.isTracked { + tags = append(tags, gotrackTags...) + } + leadingComments := appendDeprecationSuffix(field.Comments.Leading, + field.Desc.Options().(*descriptorpb.FieldOptions).GetDeprecated()) + g.P(leadingComments, + field.GoName, " ", goType, tags, + trailingComment(field.Comments.Trailing)) + g.P("}") + g.P() + } + for _, field := range oneof.Fields { + g.P("func (*", field.GoIdent, ") ", ifName, "() {}") + g.P() + } + } +} + +// oneofInterfaceName returns the name of the interface type implemented by +// the oneof field value types. +func oneofInterfaceName(oneof *protogen.Oneof) string { + return "is" + oneof.GoIdent.GoName +} + +// genNoInterfacePragma generates a standalone "nointerface" pragma to +// decorate methods with field-tracking support. +func genNoInterfacePragma(g *protogen.GeneratedFile, tracked bool) { + if tracked { + g.P("//go:nointerface") + g.P() + } +} + +var gotrackTags = structTags{{"go", "track"}} + +// structTags is a data structure for build idiomatic Go struct tags. +// Each [2]string is a key-value pair, where value is the unescaped string. +// +// Example: structTags{{"key", "value"}}.String() -> `key:"value"` +type structTags [][2]string + +func (tags structTags) String() string { + if len(tags) == 0 { + return "" + } + var ss []string + for _, tag := range tags { + // NOTE: When quoting the value, we need to make sure the backtick + // character does not appear. Convert all cases to the escaped hex form. + key := tag[0] + val := strings.Replace(strconv.Quote(tag[1]), "`", `\x60`, -1) + ss = append(ss, fmt.Sprintf("%s:%s", key, val)) + } + return "`" + strings.Join(ss, " ") + "`" +} + +// appendDeprecationSuffix optionally appends a deprecation notice as a suffix. +func appendDeprecationSuffix(prefix protogen.Comments, deprecated bool) protogen.Comments { + if !deprecated { + return prefix + } + if prefix != "" { + prefix += "\n" + } + return prefix + " Deprecated: Do not use.\n" +} + +// trailingComment is like protogen.Comments, but lacks a trailing newline. +type trailingComment protogen.Comments + +func (c trailingComment) String() string { + s := strings.TrimSuffix(protogen.Comments(c).String(), "\n") + if strings.Contains(s, "\n") { + // We don't support multi-lined trailing comments as it is unclear + // how to best render them in the generated code. + return "" + } + return s +} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo/reflect.go b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo/reflect.go new file mode 100644 index 000000000..1319a1267 --- /dev/null +++ b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo/reflect.go @@ -0,0 +1,351 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package internal_gengo + +import ( + "fmt" + "math" + "strings" + "unicode/utf8" + + "google.golang.org/protobuf/compiler/protogen" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + + "google.golang.org/protobuf/types/descriptorpb" +) + +func genReflectFileDescriptor(gen *protogen.Plugin, g *protogen.GeneratedFile, f *fileInfo) { + g.P("var ", f.GoDescriptorIdent, " ", protoreflectPackage.Ident("FileDescriptor")) + g.P() + + genFileDescriptor(gen, g, f) + if len(f.allEnums) > 0 { + g.P("var ", enumTypesVarName(f), " = make([]", protoimplPackage.Ident("EnumInfo"), ",", len(f.allEnums), ")") + } + if len(f.allMessages) > 0 { + g.P("var ", messageTypesVarName(f), " = make([]", protoimplPackage.Ident("MessageInfo"), ",", len(f.allMessages), ")") + } + + // Generate a unique list of Go types for all declarations and dependencies, + // and the associated index into the type list for all dependencies. + var goTypes []string + var depIdxs []string + seen := map[protoreflect.FullName]int{} + genDep := func(name protoreflect.FullName, depSource string) { + if depSource != "" { + line := fmt.Sprintf("%d, // %d: %s -> %s", seen[name], len(depIdxs), depSource, name) + depIdxs = append(depIdxs, line) + } + } + genEnum := func(e *protogen.Enum, depSource string) { + if e != nil { + name := e.Desc.FullName() + if _, ok := seen[name]; !ok { + line := fmt.Sprintf("(%s)(0), // %d: %s", g.QualifiedGoIdent(e.GoIdent), len(goTypes), name) + goTypes = append(goTypes, line) + seen[name] = len(seen) + } + if depSource != "" { + genDep(name, depSource) + } + } + } + genMessage := func(m *protogen.Message, depSource string) { + if m != nil { + name := m.Desc.FullName() + if _, ok := seen[name]; !ok { + line := fmt.Sprintf("(*%s)(nil), // %d: %s", g.QualifiedGoIdent(m.GoIdent), len(goTypes), name) + if m.Desc.IsMapEntry() { + // Map entry messages have no associated Go type. + line = fmt.Sprintf("nil, // %d: %s", len(goTypes), name) + } + goTypes = append(goTypes, line) + seen[name] = len(seen) + } + if depSource != "" { + genDep(name, depSource) + } + } + } + + // This ordering is significant. + // See filetype.TypeBuilder.DependencyIndexes. + type offsetEntry struct { + start int + name string + } + var depOffsets []offsetEntry + for _, enum := range f.allEnums { + genEnum(enum.Enum, "") + } + for _, message := range f.allMessages { + genMessage(message.Message, "") + } + depOffsets = append(depOffsets, offsetEntry{len(depIdxs), "field type_name"}) + for _, message := range f.allMessages { + for _, field := range message.Fields { + if field.Desc.IsWeak() { + continue + } + source := string(field.Desc.FullName()) + genEnum(field.Enum, source+":type_name") + genMessage(field.Message, source+":type_name") + } + } + depOffsets = append(depOffsets, offsetEntry{len(depIdxs), "extension extendee"}) + for _, extension := range f.allExtensions { + source := string(extension.Desc.FullName()) + genMessage(extension.Extendee, source+":extendee") + } + depOffsets = append(depOffsets, offsetEntry{len(depIdxs), "extension type_name"}) + for _, extension := range f.allExtensions { + source := string(extension.Desc.FullName()) + genEnum(extension.Enum, source+":type_name") + genMessage(extension.Message, source+":type_name") + } + depOffsets = append(depOffsets, offsetEntry{len(depIdxs), "method input_type"}) + for _, service := range f.Services { + for _, method := range service.Methods { + source := string(method.Desc.FullName()) + genMessage(method.Input, source+":input_type") + } + } + depOffsets = append(depOffsets, offsetEntry{len(depIdxs), "method output_type"}) + for _, service := range f.Services { + for _, method := range service.Methods { + source := string(method.Desc.FullName()) + genMessage(method.Output, source+":output_type") + } + } + depOffsets = append(depOffsets, offsetEntry{len(depIdxs), ""}) + for i := len(depOffsets) - 2; i >= 0; i-- { + curr, next := depOffsets[i], depOffsets[i+1] + depIdxs = append(depIdxs, fmt.Sprintf("%d, // [%d:%d] is the sub-list for %s", + curr.start, curr.start, next.start, curr.name)) + } + if len(depIdxs) > math.MaxInt32 { + panic("too many dependencies") // sanity check + } + + g.P("var ", goTypesVarName(f), " = []interface{}{") + for _, s := range goTypes { + g.P(s) + } + g.P("}") + + g.P("var ", depIdxsVarName(f), " = []int32{") + for _, s := range depIdxs { + g.P(s) + } + g.P("}") + + g.P("func init() { ", initFuncName(f.File), "() }") + + g.P("func ", initFuncName(f.File), "() {") + g.P("if ", f.GoDescriptorIdent, " != nil {") + g.P("return") + g.P("}") + + // Ensure that initialization functions for different files in the same Go + // package run in the correct order: Call the init funcs for every .proto file + // imported by this one that is in the same Go package. + for i, imps := 0, f.Desc.Imports(); i < imps.Len(); i++ { + impFile := gen.FilesByPath[imps.Get(i).Path()] + if impFile.GoImportPath != f.GoImportPath { + continue + } + g.P(initFuncName(impFile), "()") + } + + if len(f.allMessages) > 0 { + // Populate MessageInfo.Exporters. + g.P("if !", protoimplPackage.Ident("UnsafeEnabled"), " {") + for _, message := range f.allMessages { + if sf := f.allMessageFieldsByPtr[message]; len(sf.unexported) > 0 { + idx := f.allMessagesByPtr[message] + typesVar := messageTypesVarName(f) + + g.P(typesVar, "[", idx, "].Exporter = func(v interface{}, i int) interface{} {") + g.P("switch v := v.(*", message.GoIdent, "); i {") + for i := 0; i < sf.count; i++ { + if name := sf.unexported[i]; name != "" { + g.P("case ", i, ": return &v.", name) + } + } + g.P("default: return nil") + g.P("}") + g.P("}") + } + } + g.P("}") + + // Populate MessageInfo.OneofWrappers. + for _, message := range f.allMessages { + if len(message.Oneofs) > 0 { + idx := f.allMessagesByPtr[message] + typesVar := messageTypesVarName(f) + + // Associate the wrapper types by directly passing them to the MessageInfo. + g.P(typesVar, "[", idx, "].OneofWrappers = []interface{} {") + for _, oneof := range message.Oneofs { + if !oneof.Desc.IsSynthetic() { + for _, field := range oneof.Fields { + g.P("(*", field.GoIdent, ")(nil),") + } + } + } + g.P("}") + } + } + } + + g.P("type x struct{}") + g.P("out := ", protoimplPackage.Ident("TypeBuilder"), "{") + g.P("File: ", protoimplPackage.Ident("DescBuilder"), "{") + g.P("GoPackagePath: ", reflectPackage.Ident("TypeOf"), "(x{}).PkgPath(),") + g.P("RawDescriptor: ", rawDescVarName(f), ",") + g.P("NumEnums: ", len(f.allEnums), ",") + g.P("NumMessages: ", len(f.allMessages), ",") + g.P("NumExtensions: ", len(f.allExtensions), ",") + g.P("NumServices: ", len(f.Services), ",") + g.P("},") + g.P("GoTypes: ", goTypesVarName(f), ",") + g.P("DependencyIndexes: ", depIdxsVarName(f), ",") + if len(f.allEnums) > 0 { + g.P("EnumInfos: ", enumTypesVarName(f), ",") + } + if len(f.allMessages) > 0 { + g.P("MessageInfos: ", messageTypesVarName(f), ",") + } + if len(f.allExtensions) > 0 { + g.P("ExtensionInfos: ", extensionTypesVarName(f), ",") + } + g.P("}.Build()") + g.P(f.GoDescriptorIdent, " = out.File") + + // Set inputs to nil to allow GC to reclaim resources. + g.P(rawDescVarName(f), " = nil") + g.P(goTypesVarName(f), " = nil") + g.P(depIdxsVarName(f), " = nil") + g.P("}") +} + +func genFileDescriptor(gen *protogen.Plugin, g *protogen.GeneratedFile, f *fileInfo) { + descProto := proto.Clone(f.Proto).(*descriptorpb.FileDescriptorProto) + descProto.SourceCodeInfo = nil // drop source code information + + b, err := proto.MarshalOptions{AllowPartial: true, Deterministic: true}.Marshal(descProto) + if err != nil { + gen.Error(err) + return + } + + g.P("var ", rawDescVarName(f), " = []byte{") + for len(b) > 0 { + n := 16 + if n > len(b) { + n = len(b) + } + + s := "" + for _, c := range b[:n] { + s += fmt.Sprintf("0x%02x,", c) + } + g.P(s) + + b = b[n:] + } + g.P("}") + g.P() + + if f.needRawDesc { + onceVar := rawDescVarName(f) + "Once" + dataVar := rawDescVarName(f) + "Data" + g.P("var (") + g.P(onceVar, " ", syncPackage.Ident("Once")) + g.P(dataVar, " = ", rawDescVarName(f)) + g.P(")") + g.P() + + g.P("func ", rawDescVarName(f), "GZIP() []byte {") + g.P(onceVar, ".Do(func() {") + g.P(dataVar, " = ", protoimplPackage.Ident("X"), ".CompressGZIP(", dataVar, ")") + g.P("})") + g.P("return ", dataVar) + g.P("}") + g.P() + } +} + +func genEnumReflectMethods(g *protogen.GeneratedFile, f *fileInfo, e *enumInfo) { + idx := f.allEnumsByPtr[e] + typesVar := enumTypesVarName(f) + + // Descriptor method. + g.P("func (", e.GoIdent, ") Descriptor() ", protoreflectPackage.Ident("EnumDescriptor"), " {") + g.P("return ", typesVar, "[", idx, "].Descriptor()") + g.P("}") + g.P() + + // Type method. + g.P("func (", e.GoIdent, ") Type() ", protoreflectPackage.Ident("EnumType"), " {") + g.P("return &", typesVar, "[", idx, "]") + g.P("}") + g.P() + + // Number method. + g.P("func (x ", e.GoIdent, ") Number() ", protoreflectPackage.Ident("EnumNumber"), " {") + g.P("return ", protoreflectPackage.Ident("EnumNumber"), "(x)") + g.P("}") + g.P() +} + +func genMessageReflectMethods(g *protogen.GeneratedFile, f *fileInfo, m *messageInfo) { + idx := f.allMessagesByPtr[m] + typesVar := messageTypesVarName(f) + + // ProtoReflect method. + g.P("func (x *", m.GoIdent, ") ProtoReflect() ", protoreflectPackage.Ident("Message"), " {") + g.P("mi := &", typesVar, "[", idx, "]") + g.P("if ", protoimplPackage.Ident("UnsafeEnabled"), " && x != nil {") + g.P("ms := ", protoimplPackage.Ident("X"), ".MessageStateOf(", protoimplPackage.Ident("Pointer"), "(x))") + g.P("if ms.LoadMessageInfo() == nil {") + g.P("ms.StoreMessageInfo(mi)") + g.P("}") + g.P("return ms") + g.P("}") + g.P("return mi.MessageOf(x)") + g.P("}") + g.P() +} + +func fileVarName(f *protogen.File, suffix string) string { + prefix := f.GoDescriptorIdent.GoName + _, n := utf8.DecodeRuneInString(prefix) + prefix = strings.ToLower(prefix[:n]) + prefix[n:] + return prefix + "_" + suffix +} +func rawDescVarName(f *fileInfo) string { + return fileVarName(f.File, "rawDesc") +} +func goTypesVarName(f *fileInfo) string { + return fileVarName(f.File, "goTypes") +} +func depIdxsVarName(f *fileInfo) string { + return fileVarName(f.File, "depIdxs") +} +func enumTypesVarName(f *fileInfo) string { + return fileVarName(f.File, "enumTypes") +} +func messageTypesVarName(f *fileInfo) string { + return fileVarName(f.File, "msgTypes") +} +func extensionTypesVarName(f *fileInfo) string { + return fileVarName(f.File, "extTypes") +} +func initFuncName(f *protogen.File) string { + return fileVarName(f, "init") +} diff --git a/vendor/google.golang.org/protobuf/compiler/protogen/protogen.go b/vendor/google.golang.org/protobuf/compiler/protogen/protogen.go new file mode 100644 index 000000000..b3f7a6ee1 --- /dev/null +++ b/vendor/google.golang.org/protobuf/compiler/protogen/protogen.go @@ -0,0 +1,1419 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protogen provides support for writing protoc plugins. +// +// Plugins for protoc, the Protocol Buffer compiler, +// are programs which read a CodeGeneratorRequest message from standard input +// and write a CodeGeneratorResponse message to standard output. +// This package provides support for writing plugins which generate Go code. +package protogen + +import ( + "bufio" + "bytes" + "encoding/binary" + "fmt" + "go/ast" + "go/parser" + "go/printer" + "go/token" + "go/types" + "io/ioutil" + "log" + "os" + "path" + "path/filepath" + "sort" + "strconv" + "strings" + + "google.golang.org/protobuf/encoding/prototext" + "google.golang.org/protobuf/internal/fieldnum" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protodesc" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + + "google.golang.org/protobuf/types/descriptorpb" + "google.golang.org/protobuf/types/pluginpb" +) + +const goPackageDocURL = "https://developers.google.com/protocol-buffers/docs/reference/go-generated#package" + +// Run executes a function as a protoc plugin. +// +// It reads a CodeGeneratorRequest message from os.Stdin, invokes the plugin +// function, and writes a CodeGeneratorResponse message to os.Stdout. +// +// If a failure occurs while reading or writing, Run prints an error to +// os.Stderr and calls os.Exit(1). +func (opts Options) Run(f func(*Plugin) error) { + if err := run(opts, f); err != nil { + fmt.Fprintf(os.Stderr, "%s: %v\n", filepath.Base(os.Args[0]), err) + os.Exit(1) + } +} + +func run(opts Options, f func(*Plugin) error) error { + if len(os.Args) > 1 { + return fmt.Errorf("unknown argument %q (this program should be run by protoc, not directly)", os.Args[1]) + } + in, err := ioutil.ReadAll(os.Stdin) + if err != nil { + return err + } + req := &pluginpb.CodeGeneratorRequest{} + if err := proto.Unmarshal(in, req); err != nil { + return err + } + gen, err := opts.New(req) + if err != nil { + return err + } + if err := f(gen); err != nil { + // Errors from the plugin function are reported by setting the + // error field in the CodeGeneratorResponse. + // + // In contrast, errors that indicate a problem in protoc + // itself (unparsable input, I/O errors, etc.) are reported + // to stderr. + gen.Error(err) + } + resp := gen.Response() + out, err := proto.Marshal(resp) + if err != nil { + return err + } + if _, err := os.Stdout.Write(out); err != nil { + return err + } + return nil +} + +// A Plugin is a protoc plugin invocation. +type Plugin struct { + // Request is the CodeGeneratorRequest provided by protoc. + Request *pluginpb.CodeGeneratorRequest + + // Files is the set of files to generate and everything they import. + // Files appear in topological order, so each file appears before any + // file that imports it. + Files []*File + FilesByPath map[string]*File + + // SupportedFeatures is the set of protobuf language features supported by + // this generator plugin. See the documentation for + // google.protobuf.CodeGeneratorResponse.supported_features for details. + SupportedFeatures uint64 + + fileReg *protoregistry.Files + enumsByName map[protoreflect.FullName]*Enum + messagesByName map[protoreflect.FullName]*Message + annotateCode bool + pathType pathType + module string + genFiles []*GeneratedFile + opts Options + err error +} + +type Options struct { + // If ParamFunc is non-nil, it will be called with each unknown + // generator parameter. + // + // Plugins for protoc can accept parameters from the command line, + // passed in the --_out protoc, separated from the output + // directory with a colon; e.g., + // + // --go_out==,=: + // + // Parameters passed in this fashion as a comma-separated list of + // key=value pairs will be passed to the ParamFunc. + // + // The (flag.FlagSet).Set method matches this function signature, + // so parameters can be converted into flags as in the following: + // + // var flags flag.FlagSet + // value := flags.Bool("param", false, "") + // opts := &protogen.Options{ + // ParamFunc: flags.Set, + // } + // protogen.Run(opts, func(p *protogen.Plugin) error { + // if *value { ... } + // }) + ParamFunc func(name, value string) error + + // ImportRewriteFunc is called with the import path of each package + // imported by a generated file. It returns the import path to use + // for this package. + ImportRewriteFunc func(GoImportPath) GoImportPath +} + +// New returns a new Plugin. +func (opts Options) New(req *pluginpb.CodeGeneratorRequest) (*Plugin, error) { + gen := &Plugin{ + Request: req, + FilesByPath: make(map[string]*File), + fileReg: new(protoregistry.Files), + enumsByName: make(map[protoreflect.FullName]*Enum), + messagesByName: make(map[protoreflect.FullName]*Message), + opts: opts, + } + + packageNames := make(map[string]GoPackageName) // filename -> package name + importPaths := make(map[string]GoImportPath) // filename -> import path + mfiles := make(map[string]bool) // filename set + var packageImportPath GoImportPath + for _, param := range strings.Split(req.GetParameter(), ",") { + var value string + if i := strings.Index(param, "="); i >= 0 { + value = param[i+1:] + param = param[0:i] + } + switch param { + case "": + // Ignore. + case "import_path": + packageImportPath = GoImportPath(value) + case "module": + gen.module = value + case "paths": + switch value { + case "import": + gen.pathType = pathTypeImport + case "source_relative": + gen.pathType = pathTypeSourceRelative + default: + return nil, fmt.Errorf(`unknown path type %q: want "import" or "source_relative"`, value) + } + case "annotate_code": + switch value { + case "true", "": + gen.annotateCode = true + case "false": + default: + return nil, fmt.Errorf(`bad value for parameter %q: want "true" or "false"`, param) + } + default: + if param[0] == 'M' { + if i := strings.Index(value, ";"); i >= 0 { + pkgName := GoPackageName(value[i+1:]) + if otherName, ok := packageNames[param[1:]]; ok && pkgName != otherName { + return nil, fmt.Errorf("inconsistent package names for %q: %q != %q", value[:i], pkgName, otherName) + } + packageNames[param[1:]] = pkgName + value = value[:i] + } + importPaths[param[1:]] = GoImportPath(value) + mfiles[param[1:]] = true + continue + } + if opts.ParamFunc != nil { + if err := opts.ParamFunc(param, value); err != nil { + return nil, err + } + } + } + } + if gen.module != "" { + // When the module= option is provided, we strip the module name + // prefix from generated files. This only makes sense if generated + // filenames are based on the import path, so default to paths=import + // and complain if source_relative was selected manually. + switch gen.pathType { + case pathTypeLegacy: + gen.pathType = pathTypeImport + case pathTypeSourceRelative: + return nil, fmt.Errorf("cannot use module= with paths=source_relative") + } + } + + // Figure out the import path and package name for each file. + // + // The rules here are complicated and have grown organically over time. + // Interactions between different ways of specifying package information + // may be surprising. + // + // The recommended approach is to include a go_package option in every + // .proto source file specifying the full import path of the Go package + // associated with this file. + // + // option go_package = "google.golang.org/protobuf/types/known/anypb"; + // + // Build systems which want to exert full control over import paths may + // specify M= flags. + // + // Other approaches are not recommend. + generatedFileNames := make(map[string]bool) + for _, name := range gen.Request.FileToGenerate { + generatedFileNames[name] = true + } + // We need to determine the import paths before the package names, + // because the Go package name for a file is sometimes derived from + // different file in the same package. + packageNameForImportPath := make(map[GoImportPath]GoPackageName) + for _, fdesc := range gen.Request.ProtoFile { + filename := fdesc.GetName() + packageName, importPath := goPackageOption(fdesc) + switch { + case importPaths[filename] != "": + // Command line: Mfoo.proto=quux/bar + // + // Explicit mapping of source file to import path. + case generatedFileNames[filename] && packageImportPath != "": + // Command line: import_path=quux/bar + // + // The import_path flag sets the import path for every file that + // we generate code for. + importPaths[filename] = packageImportPath + case importPath != "": + // Source file: option go_package = "quux/bar"; + // + // The go_package option sets the import path. Most users should use this. + importPaths[filename] = importPath + default: + // Source filename. + // + // Last resort when nothing else is available. + importPaths[filename] = GoImportPath(path.Dir(filename)) + } + if packageName != "" { + packageNameForImportPath[importPaths[filename]] = packageName + } + } + for _, fdesc := range gen.Request.ProtoFile { + filename := fdesc.GetName() + packageName, importPath := goPackageOption(fdesc) + defaultPackageName := packageNameForImportPath[importPaths[filename]] + switch { + case packageNames[filename] != "": + // A package name specified by the "M" command-line argument. + case packageName != "": + // TODO: For the "M" command-line argument, this means that the + // package name can be derived from the go_package option. + // Go package information should either consistently come from the + // command-line or the .proto source file, but not both. + // See how to make this consistent. + + // Source file: option go_package = "quux/bar"; + packageNames[filename] = packageName + case defaultPackageName != "": + // A go_package option in another file in the same package. + // + // This is a poor choice in general, since every source file should + // contain a go_package option. Supported mainly for historical + // compatibility. + packageNames[filename] = defaultPackageName + case generatedFileNames[filename] && packageImportPath != "": + // Command line: import_path=quux/bar + packageNames[filename] = cleanPackageName(path.Base(string(packageImportPath))) + case fdesc.GetPackage() != "": + // Source file: package quux.bar; + packageNames[filename] = cleanPackageName(fdesc.GetPackage()) + default: + // Source filename. + packageNames[filename] = cleanPackageName(baseName(filename)) + } + + goPkgOpt := string(importPaths[filename]) + if path.Base(string(goPkgOpt)) != string(packageNames[filename]) { + goPkgOpt += ";" + string(packageNames[filename]) + } + switch { + case packageImportPath != "": + // Command line: import_path=quux/bar + warn("Deprecated use of the 'import_path' command-line argument. In %q, please specify:\n"+ + "\toption go_package = %q;\n"+ + "A future release of protoc-gen-go will no longer support the 'import_path' argument.\n"+ + "See "+goPackageDocURL+" for more information.\n"+ + "\n", fdesc.GetName(), goPkgOpt) + case mfiles[filename]: + // Command line: M=foo.proto=quux/bar + case packageName != "" && importPath == "": + // Source file: option go_package = "quux"; + warn("Deprecated use of 'go_package' option without a full import path in %q, please specify:\n"+ + "\toption go_package = %q;\n"+ + "A future release of protoc-gen-go will require the import path be specified.\n"+ + "See "+goPackageDocURL+" for more information.\n"+ + "\n", fdesc.GetName(), goPkgOpt) + case packageName == "" && importPath == "": + // No Go package information provided. + dotIdx := strings.Index(goPkgOpt, ".") // heuristic for top-level domain + slashIdx := strings.Index(goPkgOpt, "/") // heuristic for multi-segment path + if isFull := 0 <= dotIdx && dotIdx <= slashIdx; isFull { + warn("Missing 'go_package' option in %q, please specify:\n"+ + "\toption go_package = %q;\n"+ + "A future release of protoc-gen-go will require this be specified.\n"+ + "See "+goPackageDocURL+" for more information.\n"+ + "\n", fdesc.GetName(), goPkgOpt) + } else { + warn("Missing 'go_package' option in %q,\n"+ + "please specify it with the full Go package path as\n"+ + "a future release of protoc-gen-go will require this be specified.\n"+ + "See "+goPackageDocURL+" for more information.\n"+ + "\n", fdesc.GetName()) + } + } + } + + // Consistency check: Every file with the same Go import path should have + // the same Go package name. + packageFiles := make(map[GoImportPath][]string) + for filename, importPath := range importPaths { + if _, ok := packageNames[filename]; !ok { + // Skip files mentioned in a M= parameter + // but which do not appear in the CodeGeneratorRequest. + continue + } + packageFiles[importPath] = append(packageFiles[importPath], filename) + } + for importPath, filenames := range packageFiles { + for i := 1; i < len(filenames); i++ { + if a, b := packageNames[filenames[0]], packageNames[filenames[i]]; a != b { + return nil, fmt.Errorf("Go package %v has inconsistent names %v (%v) and %v (%v)", + importPath, a, filenames[0], b, filenames[i]) + } + } + } + + for _, fdesc := range gen.Request.ProtoFile { + filename := fdesc.GetName() + if gen.FilesByPath[filename] != nil { + return nil, fmt.Errorf("duplicate file name: %q", filename) + } + f, err := newFile(gen, fdesc, packageNames[filename], importPaths[filename]) + if err != nil { + return nil, err + } + gen.Files = append(gen.Files, f) + gen.FilesByPath[filename] = f + } + for _, filename := range gen.Request.FileToGenerate { + f, ok := gen.FilesByPath[filename] + if !ok { + return nil, fmt.Errorf("no descriptor for generated file: %v", filename) + } + f.Generate = true + } + return gen, nil +} + +// Error records an error in code generation. The generator will report the +// error back to protoc and will not produce output. +func (gen *Plugin) Error(err error) { + if gen.err == nil { + gen.err = err + } +} + +// Response returns the generator output. +func (gen *Plugin) Response() *pluginpb.CodeGeneratorResponse { + resp := &pluginpb.CodeGeneratorResponse{} + if gen.err != nil { + resp.Error = proto.String(gen.err.Error()) + return resp + } + for _, g := range gen.genFiles { + if g.skip { + continue + } + content, err := g.Content() + if err != nil { + return &pluginpb.CodeGeneratorResponse{ + Error: proto.String(err.Error()), + } + } + filename := g.filename + if gen.module != "" { + trim := gen.module + "/" + if !strings.HasPrefix(filename, trim) { + return &pluginpb.CodeGeneratorResponse{ + Error: proto.String(fmt.Sprintf("%v: generated file does not match prefix %q", filename, gen.module)), + } + } + filename = strings.TrimPrefix(filename, trim) + } + resp.File = append(resp.File, &pluginpb.CodeGeneratorResponse_File{ + Name: proto.String(filename), + Content: proto.String(string(content)), + }) + if gen.annotateCode && strings.HasSuffix(g.filename, ".go") { + meta, err := g.metaFile(content) + if err != nil { + return &pluginpb.CodeGeneratorResponse{ + Error: proto.String(err.Error()), + } + } + resp.File = append(resp.File, &pluginpb.CodeGeneratorResponse_File{ + Name: proto.String(filename + ".meta"), + Content: proto.String(meta), + }) + } + } + if gen.SupportedFeatures > 0 { + resp.SupportedFeatures = proto.Uint64(gen.SupportedFeatures) + } + return resp +} + +// A File describes a .proto source file. +type File struct { + Desc protoreflect.FileDescriptor + Proto *descriptorpb.FileDescriptorProto + + GoDescriptorIdent GoIdent // name of Go variable for the file descriptor + GoPackageName GoPackageName // name of this file's Go package + GoImportPath GoImportPath // import path of this file's Go package + + Enums []*Enum // top-level enum declarations + Messages []*Message // top-level message declarations + Extensions []*Extension // top-level extension declarations + Services []*Service // top-level service declarations + + Generate bool // true if we should generate code for this file + + // GeneratedFilenamePrefix is used to construct filenames for generated + // files associated with this source file. + // + // For example, the source file "dir/foo.proto" might have a filename prefix + // of "dir/foo". Appending ".pb.go" produces an output file of "dir/foo.pb.go". + GeneratedFilenamePrefix string + + comments map[pathKey]CommentSet +} + +func newFile(gen *Plugin, p *descriptorpb.FileDescriptorProto, packageName GoPackageName, importPath GoImportPath) (*File, error) { + desc, err := protodesc.NewFile(p, gen.fileReg) + if err != nil { + return nil, fmt.Errorf("invalid FileDescriptorProto %q: %v", p.GetName(), err) + } + if err := gen.fileReg.RegisterFile(desc); err != nil { + return nil, fmt.Errorf("cannot register descriptor %q: %v", p.GetName(), err) + } + f := &File{ + Desc: desc, + Proto: p, + GoPackageName: packageName, + GoImportPath: importPath, + comments: make(map[pathKey]CommentSet), + } + + // Determine the prefix for generated Go files. + prefix := p.GetName() + if ext := path.Ext(prefix); ext == ".proto" || ext == ".protodevel" { + prefix = prefix[:len(prefix)-len(ext)] + } + switch gen.pathType { + case pathTypeLegacy: + // The default is to derive the output filename from the Go import path + // if the file contains a go_package option,or from the input filename instead. + if _, importPath := goPackageOption(p); importPath != "" { + prefix = path.Join(string(importPath), path.Base(prefix)) + } + case pathTypeImport: + // If paths=import, the output filename is derived from the Go import path. + prefix = path.Join(string(f.GoImportPath), path.Base(prefix)) + case pathTypeSourceRelative: + // If paths=source_relative, the output filename is derived from + // the input filename. + } + f.GoDescriptorIdent = GoIdent{ + GoName: "File_" + strs.GoSanitized(p.GetName()), + GoImportPath: f.GoImportPath, + } + f.GeneratedFilenamePrefix = prefix + + for _, loc := range p.GetSourceCodeInfo().GetLocation() { + // Descriptors declarations are guaranteed to have unique comment sets. + // Other locations may not be unique, but we don't use them. + var leadingDetached []Comments + for _, s := range loc.GetLeadingDetachedComments() { + leadingDetached = append(leadingDetached, Comments(s)) + } + f.comments[newPathKey(loc.Path)] = CommentSet{ + LeadingDetached: leadingDetached, + Leading: Comments(loc.GetLeadingComments()), + Trailing: Comments(loc.GetTrailingComments()), + } + } + for i, eds := 0, desc.Enums(); i < eds.Len(); i++ { + f.Enums = append(f.Enums, newEnum(gen, f, nil, eds.Get(i))) + } + for i, mds := 0, desc.Messages(); i < mds.Len(); i++ { + f.Messages = append(f.Messages, newMessage(gen, f, nil, mds.Get(i))) + } + for i, xds := 0, desc.Extensions(); i < xds.Len(); i++ { + f.Extensions = append(f.Extensions, newField(gen, f, nil, xds.Get(i))) + } + for i, sds := 0, desc.Services(); i < sds.Len(); i++ { + f.Services = append(f.Services, newService(gen, f, sds.Get(i))) + } + for _, message := range f.Messages { + if err := message.resolveDependencies(gen); err != nil { + return nil, err + } + } + for _, extension := range f.Extensions { + if err := extension.resolveDependencies(gen); err != nil { + return nil, err + } + } + for _, service := range f.Services { + for _, method := range service.Methods { + if err := method.resolveDependencies(gen); err != nil { + return nil, err + } + } + } + return f, nil +} + +func (f *File) location(idxPath ...int32) Location { + return Location{ + SourceFile: f.Desc.Path(), + Path: idxPath, + } +} + +// goPackageOption interprets a file's go_package option. +// If there is no go_package, it returns ("", ""). +// If there's a simple name, it returns (pkg, ""). +// If the option implies an import path, it returns (pkg, impPath). +func goPackageOption(d *descriptorpb.FileDescriptorProto) (pkg GoPackageName, impPath GoImportPath) { + opt := d.GetOptions().GetGoPackage() + if opt == "" { + return "", "" + } + rawPkg, impPath := goPackageOptionRaw(opt) + pkg = cleanPackageName(rawPkg) + if string(pkg) != rawPkg && impPath != "" { + warn("Malformed 'go_package' option in %q, please specify:\n"+ + "\toption go_package = %q;\n"+ + "A future release of protoc-gen-go will reject this.\n"+ + "See "+goPackageDocURL+" for more information.\n"+ + "\n", d.GetName(), string(impPath)+";"+string(pkg)) + } + return pkg, impPath +} +func goPackageOptionRaw(opt string) (rawPkg string, impPath GoImportPath) { + // A semicolon-delimited suffix delimits the import path and package name. + if i := strings.Index(opt, ";"); i >= 0 { + return opt[i+1:], GoImportPath(opt[:i]) + } + // The presence of a slash implies there's an import path. + if i := strings.LastIndex(opt, "/"); i >= 0 { + return opt[i+1:], GoImportPath(opt) + } + return opt, "" +} + +// An Enum describes an enum. +type Enum struct { + Desc protoreflect.EnumDescriptor + + GoIdent GoIdent // name of the generated Go type + + Values []*EnumValue // enum value declarations + + Location Location // location of this enum + Comments CommentSet // comments associated with this enum +} + +func newEnum(gen *Plugin, f *File, parent *Message, desc protoreflect.EnumDescriptor) *Enum { + var loc Location + if parent != nil { + loc = parent.Location.appendPath(fieldnum.DescriptorProto_EnumType, int32(desc.Index())) + } else { + loc = f.location(fieldnum.FileDescriptorProto_EnumType, int32(desc.Index())) + } + enum := &Enum{ + Desc: desc, + GoIdent: newGoIdent(f, desc), + Location: loc, + Comments: f.comments[newPathKey(loc.Path)], + } + gen.enumsByName[desc.FullName()] = enum + for i, vds := 0, enum.Desc.Values(); i < vds.Len(); i++ { + enum.Values = append(enum.Values, newEnumValue(gen, f, parent, enum, vds.Get(i))) + } + return enum +} + +// An EnumValue describes an enum value. +type EnumValue struct { + Desc protoreflect.EnumValueDescriptor + + GoIdent GoIdent // name of the generated Go declaration + + Parent *Enum // enum in which this value is declared + + Location Location // location of this enum value + Comments CommentSet // comments associated with this enum value +} + +func newEnumValue(gen *Plugin, f *File, message *Message, enum *Enum, desc protoreflect.EnumValueDescriptor) *EnumValue { + // A top-level enum value's name is: EnumName_ValueName + // An enum value contained in a message is: MessageName_ValueName + // + // For historical reasons, enum value names are not camel-cased. + parentIdent := enum.GoIdent + if message != nil { + parentIdent = message.GoIdent + } + name := parentIdent.GoName + "_" + string(desc.Name()) + loc := enum.Location.appendPath(fieldnum.EnumDescriptorProto_Value, int32(desc.Index())) + return &EnumValue{ + Desc: desc, + GoIdent: f.GoImportPath.Ident(name), + Parent: enum, + Location: loc, + Comments: f.comments[newPathKey(loc.Path)], + } +} + +// A Message describes a message. +type Message struct { + Desc protoreflect.MessageDescriptor + + GoIdent GoIdent // name of the generated Go type + + Fields []*Field // message field declarations + Oneofs []*Oneof // message oneof declarations + + Enums []*Enum // nested enum declarations + Messages []*Message // nested message declarations + Extensions []*Extension // nested extension declarations + + Location Location // location of this message + Comments CommentSet // comments associated with this message +} + +func newMessage(gen *Plugin, f *File, parent *Message, desc protoreflect.MessageDescriptor) *Message { + var loc Location + if parent != nil { + loc = parent.Location.appendPath(fieldnum.DescriptorProto_NestedType, int32(desc.Index())) + } else { + loc = f.location(fieldnum.FileDescriptorProto_MessageType, int32(desc.Index())) + } + message := &Message{ + Desc: desc, + GoIdent: newGoIdent(f, desc), + Location: loc, + Comments: f.comments[newPathKey(loc.Path)], + } + gen.messagesByName[desc.FullName()] = message + for i, eds := 0, desc.Enums(); i < eds.Len(); i++ { + message.Enums = append(message.Enums, newEnum(gen, f, message, eds.Get(i))) + } + for i, mds := 0, desc.Messages(); i < mds.Len(); i++ { + message.Messages = append(message.Messages, newMessage(gen, f, message, mds.Get(i))) + } + for i, fds := 0, desc.Fields(); i < fds.Len(); i++ { + message.Fields = append(message.Fields, newField(gen, f, message, fds.Get(i))) + } + for i, ods := 0, desc.Oneofs(); i < ods.Len(); i++ { + message.Oneofs = append(message.Oneofs, newOneof(gen, f, message, ods.Get(i))) + } + for i, xds := 0, desc.Extensions(); i < xds.Len(); i++ { + message.Extensions = append(message.Extensions, newField(gen, f, message, xds.Get(i))) + } + + // Resolve local references between fields and oneofs. + for _, field := range message.Fields { + if od := field.Desc.ContainingOneof(); od != nil { + oneof := message.Oneofs[od.Index()] + field.Oneof = oneof + oneof.Fields = append(oneof.Fields, field) + } + } + + // Field name conflict resolution. + // + // We assume well-known method names that may be attached to a generated + // message type, as well as a 'Get*' method for each field. For each + // field in turn, we add _s to its name until there are no conflicts. + // + // Any change to the following set of method names is a potential + // incompatible API change because it may change generated field names. + // + // TODO: If we ever support a 'go_name' option to set the Go name of a + // field, we should consider dropping this entirely. The conflict + // resolution algorithm is subtle and surprising (changing the order + // in which fields appear in the .proto source file can change the + // names of fields in generated code), and does not adapt well to + // adding new per-field methods such as setters. + usedNames := map[string]bool{ + "Reset": true, + "String": true, + "ProtoMessage": true, + "Marshal": true, + "Unmarshal": true, + "ExtensionRangeArray": true, + "ExtensionMap": true, + "Descriptor": true, + } + makeNameUnique := func(name string, hasGetter bool) string { + for usedNames[name] || (hasGetter && usedNames["Get"+name]) { + name += "_" + } + usedNames[name] = true + usedNames["Get"+name] = hasGetter + return name + } + for _, field := range message.Fields { + field.GoName = makeNameUnique(field.GoName, true) + field.GoIdent.GoName = message.GoIdent.GoName + "_" + field.GoName + if field.Oneof != nil && field.Oneof.Fields[0] == field { + // Make the name for a oneof unique as well. For historical reasons, + // this assumes that a getter method is not generated for oneofs. + // This is incorrect, but fixing it breaks existing code. + field.Oneof.GoName = makeNameUnique(field.Oneof.GoName, false) + field.Oneof.GoIdent.GoName = message.GoIdent.GoName + "_" + field.Oneof.GoName + } + } + + // Oneof field name conflict resolution. + // + // This conflict resolution is incomplete as it does not consider collisions + // with other oneof field types, but fixing it breaks existing code. + for _, field := range message.Fields { + if field.Oneof != nil { + Loop: + for { + for _, nestedMessage := range message.Messages { + if nestedMessage.GoIdent == field.GoIdent { + field.GoIdent.GoName += "_" + continue Loop + } + } + for _, nestedEnum := range message.Enums { + if nestedEnum.GoIdent == field.GoIdent { + field.GoIdent.GoName += "_" + continue Loop + } + } + break Loop + } + } + } + + return message +} + +func (message *Message) resolveDependencies(gen *Plugin) error { + for _, field := range message.Fields { + if err := field.resolveDependencies(gen); err != nil { + return err + } + } + for _, message := range message.Messages { + if err := message.resolveDependencies(gen); err != nil { + return err + } + } + for _, extension := range message.Extensions { + if err := extension.resolveDependencies(gen); err != nil { + return err + } + } + return nil +} + +// A Field describes a message field. +type Field struct { + Desc protoreflect.FieldDescriptor + + // GoName is the base name of this field's Go field and methods. + // For code generated by protoc-gen-go, this means a field named + // '{{GoName}}' and a getter method named 'Get{{GoName}}'. + GoName string // e.g., "FieldName" + + // GoIdent is the base name of a top-level declaration for this field. + // For code generated by protoc-gen-go, this means a wrapper type named + // '{{GoIdent}}' for members fields of a oneof, and a variable named + // 'E_{{GoIdent}}' for extension fields. + GoIdent GoIdent // e.g., "MessageName_FieldName" + + Parent *Message // message in which this field is declared; nil if top-level extension + Oneof *Oneof // containing oneof; nil if not part of a oneof + Extendee *Message // extended message for extension fields; nil otherwise + + Enum *Enum // type for enum fields; nil otherwise + Message *Message // type for message or group fields; nil otherwise + + Location Location // location of this field + Comments CommentSet // comments associated with this field +} + +func newField(gen *Plugin, f *File, message *Message, desc protoreflect.FieldDescriptor) *Field { + var loc Location + switch { + case desc.IsExtension() && message == nil: + loc = f.location(fieldnum.FileDescriptorProto_Extension, int32(desc.Index())) + case desc.IsExtension() && message != nil: + loc = message.Location.appendPath(fieldnum.DescriptorProto_Extension, int32(desc.Index())) + default: + loc = message.Location.appendPath(fieldnum.DescriptorProto_Field, int32(desc.Index())) + } + camelCased := strs.GoCamelCase(string(desc.Name())) + var parentPrefix string + if message != nil { + parentPrefix = message.GoIdent.GoName + "_" + } + field := &Field{ + Desc: desc, + GoName: camelCased, + GoIdent: GoIdent{ + GoImportPath: f.GoImportPath, + GoName: parentPrefix + camelCased, + }, + Parent: message, + Location: loc, + Comments: f.comments[newPathKey(loc.Path)], + } + return field +} + +func (field *Field) resolveDependencies(gen *Plugin) error { + desc := field.Desc + switch desc.Kind() { + case protoreflect.EnumKind: + name := field.Desc.Enum().FullName() + enum, ok := gen.enumsByName[name] + if !ok { + return fmt.Errorf("field %v: no descriptor for enum %v", desc.FullName(), name) + } + field.Enum = enum + case protoreflect.MessageKind, protoreflect.GroupKind: + name := desc.Message().FullName() + message, ok := gen.messagesByName[name] + if !ok { + return fmt.Errorf("field %v: no descriptor for type %v", desc.FullName(), name) + } + field.Message = message + } + if desc.IsExtension() { + name := desc.ContainingMessage().FullName() + message, ok := gen.messagesByName[name] + if !ok { + return fmt.Errorf("field %v: no descriptor for type %v", desc.FullName(), name) + } + field.Extendee = message + } + return nil +} + +// A Oneof describes a message oneof. +type Oneof struct { + Desc protoreflect.OneofDescriptor + + // GoName is the base name of this oneof's Go field and methods. + // For code generated by protoc-gen-go, this means a field named + // '{{GoName}}' and a getter method named 'Get{{GoName}}'. + GoName string // e.g., "OneofName" + + // GoIdent is the base name of a top-level declaration for this oneof. + GoIdent GoIdent // e.g., "MessageName_OneofName" + + Parent *Message // message in which this oneof is declared + + Fields []*Field // fields that are part of this oneof + + Location Location // location of this oneof + Comments CommentSet // comments associated with this oneof +} + +func newOneof(gen *Plugin, f *File, message *Message, desc protoreflect.OneofDescriptor) *Oneof { + loc := message.Location.appendPath(fieldnum.DescriptorProto_OneofDecl, int32(desc.Index())) + camelCased := strs.GoCamelCase(string(desc.Name())) + parentPrefix := message.GoIdent.GoName + "_" + return &Oneof{ + Desc: desc, + Parent: message, + GoName: camelCased, + GoIdent: GoIdent{ + GoImportPath: f.GoImportPath, + GoName: parentPrefix + camelCased, + }, + Location: loc, + Comments: f.comments[newPathKey(loc.Path)], + } +} + +// Extension is an alias of Field for documentation. +type Extension = Field + +// A Service describes a service. +type Service struct { + Desc protoreflect.ServiceDescriptor + + GoName string + + Methods []*Method // service method declarations + + Location Location // location of this service + Comments CommentSet // comments associated with this service +} + +func newService(gen *Plugin, f *File, desc protoreflect.ServiceDescriptor) *Service { + loc := f.location(fieldnum.FileDescriptorProto_Service, int32(desc.Index())) + service := &Service{ + Desc: desc, + GoName: strs.GoCamelCase(string(desc.Name())), + Location: loc, + Comments: f.comments[newPathKey(loc.Path)], + } + for i, mds := 0, desc.Methods(); i < mds.Len(); i++ { + service.Methods = append(service.Methods, newMethod(gen, f, service, mds.Get(i))) + } + return service +} + +// A Method describes a method in a service. +type Method struct { + Desc protoreflect.MethodDescriptor + + GoName string + + Parent *Service // service in which this method is declared + + Input *Message + Output *Message + + Location Location // location of this method + Comments CommentSet // comments associated with this method +} + +func newMethod(gen *Plugin, f *File, service *Service, desc protoreflect.MethodDescriptor) *Method { + loc := service.Location.appendPath(fieldnum.ServiceDescriptorProto_Method, int32(desc.Index())) + method := &Method{ + Desc: desc, + GoName: strs.GoCamelCase(string(desc.Name())), + Parent: service, + Location: loc, + Comments: f.comments[newPathKey(loc.Path)], + } + return method +} + +func (method *Method) resolveDependencies(gen *Plugin) error { + desc := method.Desc + + inName := desc.Input().FullName() + in, ok := gen.messagesByName[inName] + if !ok { + return fmt.Errorf("method %v: no descriptor for type %v", desc.FullName(), inName) + } + method.Input = in + + outName := desc.Output().FullName() + out, ok := gen.messagesByName[outName] + if !ok { + return fmt.Errorf("method %v: no descriptor for type %v", desc.FullName(), outName) + } + method.Output = out + + return nil +} + +// A GeneratedFile is a generated file. +type GeneratedFile struct { + gen *Plugin + skip bool + filename string + goImportPath GoImportPath + buf bytes.Buffer + packageNames map[GoImportPath]GoPackageName + usedPackageNames map[GoPackageName]bool + manualImports map[GoImportPath]bool + annotations map[string][]Location +} + +// NewGeneratedFile creates a new generated file with the given filename +// and import path. +func (gen *Plugin) NewGeneratedFile(filename string, goImportPath GoImportPath) *GeneratedFile { + g := &GeneratedFile{ + gen: gen, + filename: filename, + goImportPath: goImportPath, + packageNames: make(map[GoImportPath]GoPackageName), + usedPackageNames: make(map[GoPackageName]bool), + manualImports: make(map[GoImportPath]bool), + annotations: make(map[string][]Location), + } + + // All predeclared identifiers in Go are already used. + for _, s := range types.Universe.Names() { + g.usedPackageNames[GoPackageName(s)] = true + } + + gen.genFiles = append(gen.genFiles, g) + return g +} + +// P prints a line to the generated output. It converts each parameter to a +// string following the same rules as fmt.Print. It never inserts spaces +// between parameters. +func (g *GeneratedFile) P(v ...interface{}) { + for _, x := range v { + switch x := x.(type) { + case GoIdent: + fmt.Fprint(&g.buf, g.QualifiedGoIdent(x)) + default: + fmt.Fprint(&g.buf, x) + } + } + fmt.Fprintln(&g.buf) +} + +// QualifiedGoIdent returns the string to use for a Go identifier. +// +// If the identifier is from a different Go package than the generated file, +// the returned name will be qualified (package.name) and an import statement +// for the identifier's package will be included in the file. +func (g *GeneratedFile) QualifiedGoIdent(ident GoIdent) string { + if ident.GoImportPath == g.goImportPath { + return ident.GoName + } + if packageName, ok := g.packageNames[ident.GoImportPath]; ok { + return string(packageName) + "." + ident.GoName + } + packageName := cleanPackageName(baseName(string(ident.GoImportPath))) + for i, orig := 1, packageName; g.usedPackageNames[packageName]; i++ { + packageName = orig + GoPackageName(strconv.Itoa(i)) + } + g.packageNames[ident.GoImportPath] = packageName + g.usedPackageNames[packageName] = true + return string(packageName) + "." + ident.GoName +} + +// Import ensures a package is imported by the generated file. +// +// Packages referenced by QualifiedGoIdent are automatically imported. +// Explicitly importing a package with Import is generally only necessary +// when the import will be blank (import _ "package"). +func (g *GeneratedFile) Import(importPath GoImportPath) { + g.manualImports[importPath] = true +} + +// Write implements io.Writer. +func (g *GeneratedFile) Write(p []byte) (n int, err error) { + return g.buf.Write(p) +} + +// Skip removes the generated file from the plugin output. +func (g *GeneratedFile) Skip() { + g.skip = true +} + +// Unskip reverts a previous call to Skip, re-including the generated file in +// the plugin output. +func (g *GeneratedFile) Unskip() { + g.skip = false +} + +// Annotate associates a symbol in a generated Go file with a location in a +// source .proto file. +// +// The symbol may refer to a type, constant, variable, function, method, or +// struct field. The "T.sel" syntax is used to identify the method or field +// 'sel' on type 'T'. +func (g *GeneratedFile) Annotate(symbol string, loc Location) { + g.annotations[symbol] = append(g.annotations[symbol], loc) +} + +// Content returns the contents of the generated file. +func (g *GeneratedFile) Content() ([]byte, error) { + if !strings.HasSuffix(g.filename, ".go") { + return g.buf.Bytes(), nil + } + + // Reformat generated code. + original := g.buf.Bytes() + fset := token.NewFileSet() + file, err := parser.ParseFile(fset, "", original, parser.ParseComments) + if err != nil { + // Print out the bad code with line numbers. + // This should never happen in practice, but it can while changing generated code + // so consider this a debugging aid. + var src bytes.Buffer + s := bufio.NewScanner(bytes.NewReader(original)) + for line := 1; s.Scan(); line++ { + fmt.Fprintf(&src, "%5d\t%s\n", line, s.Bytes()) + } + return nil, fmt.Errorf("%v: unparsable Go source: %v\n%v", g.filename, err, src.String()) + } + + // Collect a sorted list of all imports. + var importPaths [][2]string + rewriteImport := func(importPath string) string { + if f := g.gen.opts.ImportRewriteFunc; f != nil { + return string(f(GoImportPath(importPath))) + } + return importPath + } + for importPath := range g.packageNames { + pkgName := string(g.packageNames[GoImportPath(importPath)]) + pkgPath := rewriteImport(string(importPath)) + importPaths = append(importPaths, [2]string{pkgName, pkgPath}) + } + for importPath := range g.manualImports { + if _, ok := g.packageNames[importPath]; !ok { + pkgPath := rewriteImport(string(importPath)) + importPaths = append(importPaths, [2]string{"_", pkgPath}) + } + } + sort.Slice(importPaths, func(i, j int) bool { + return importPaths[i][1] < importPaths[j][1] + }) + + // Modify the AST to include a new import block. + if len(importPaths) > 0 { + // Insert block after package statement or + // possible comment attached to the end of the package statement. + pos := file.Package + tokFile := fset.File(file.Package) + pkgLine := tokFile.Line(file.Package) + for _, c := range file.Comments { + if tokFile.Line(c.Pos()) > pkgLine { + break + } + pos = c.End() + } + + // Construct the import block. + impDecl := &ast.GenDecl{ + Tok: token.IMPORT, + TokPos: pos, + Lparen: pos, + Rparen: pos, + } + for _, importPath := range importPaths { + impDecl.Specs = append(impDecl.Specs, &ast.ImportSpec{ + Name: &ast.Ident{ + Name: importPath[0], + NamePos: pos, + }, + Path: &ast.BasicLit{ + Kind: token.STRING, + Value: strconv.Quote(importPath[1]), + ValuePos: pos, + }, + EndPos: pos, + }) + } + file.Decls = append([]ast.Decl{impDecl}, file.Decls...) + } + + var out bytes.Buffer + if err = (&printer.Config{Mode: printer.TabIndent | printer.UseSpaces, Tabwidth: 8}).Fprint(&out, fset, file); err != nil { + return nil, fmt.Errorf("%v: can not reformat Go source: %v", g.filename, err) + } + return out.Bytes(), nil +} + +// metaFile returns the contents of the file's metadata file, which is a +// text formatted string of the google.protobuf.GeneratedCodeInfo. +func (g *GeneratedFile) metaFile(content []byte) (string, error) { + fset := token.NewFileSet() + astFile, err := parser.ParseFile(fset, "", content, 0) + if err != nil { + return "", err + } + info := &descriptorpb.GeneratedCodeInfo{} + + seenAnnotations := make(map[string]bool) + annotate := func(s string, ident *ast.Ident) { + seenAnnotations[s] = true + for _, loc := range g.annotations[s] { + info.Annotation = append(info.Annotation, &descriptorpb.GeneratedCodeInfo_Annotation{ + SourceFile: proto.String(loc.SourceFile), + Path: loc.Path, + Begin: proto.Int32(int32(fset.Position(ident.Pos()).Offset)), + End: proto.Int32(int32(fset.Position(ident.End()).Offset)), + }) + } + } + for _, decl := range astFile.Decls { + switch decl := decl.(type) { + case *ast.GenDecl: + for _, spec := range decl.Specs { + switch spec := spec.(type) { + case *ast.TypeSpec: + annotate(spec.Name.Name, spec.Name) + switch st := spec.Type.(type) { + case *ast.StructType: + for _, field := range st.Fields.List { + for _, name := range field.Names { + annotate(spec.Name.Name+"."+name.Name, name) + } + } + case *ast.InterfaceType: + for _, field := range st.Methods.List { + for _, name := range field.Names { + annotate(spec.Name.Name+"."+name.Name, name) + } + } + } + case *ast.ValueSpec: + for _, name := range spec.Names { + annotate(name.Name, name) + } + } + } + case *ast.FuncDecl: + if decl.Recv == nil { + annotate(decl.Name.Name, decl.Name) + } else { + recv := decl.Recv.List[0].Type + if s, ok := recv.(*ast.StarExpr); ok { + recv = s.X + } + if id, ok := recv.(*ast.Ident); ok { + annotate(id.Name+"."+decl.Name.Name, decl.Name) + } + } + } + } + for a := range g.annotations { + if !seenAnnotations[a] { + return "", fmt.Errorf("%v: no symbol matching annotation %q", g.filename, a) + } + } + + b, err := prototext.Marshal(info) + if err != nil { + return "", err + } + return string(b), nil +} + +// A GoIdent is a Go identifier, consisting of a name and import path. +// The name is a single identifier and may not be a dot-qualified selector. +type GoIdent struct { + GoName string + GoImportPath GoImportPath +} + +func (id GoIdent) String() string { return fmt.Sprintf("%q.%v", id.GoImportPath, id.GoName) } + +// newGoIdent returns the Go identifier for a descriptor. +func newGoIdent(f *File, d protoreflect.Descriptor) GoIdent { + name := strings.TrimPrefix(string(d.FullName()), string(f.Desc.Package())+".") + return GoIdent{ + GoName: strs.GoCamelCase(name), + GoImportPath: f.GoImportPath, + } +} + +// A GoImportPath is the import path of a Go package. +// For example: "google.golang.org/protobuf/compiler/protogen" +type GoImportPath string + +func (p GoImportPath) String() string { return strconv.Quote(string(p)) } + +// Ident returns a GoIdent with s as the GoName and p as the GoImportPath. +func (p GoImportPath) Ident(s string) GoIdent { + return GoIdent{GoName: s, GoImportPath: p} +} + +// A GoPackageName is the name of a Go package. e.g., "protobuf". +type GoPackageName string + +// cleanPackageName converts a string to a valid Go package name. +func cleanPackageName(name string) GoPackageName { + return GoPackageName(strs.GoSanitized(name)) +} + +// baseName returns the last path element of the name, with the last dotted suffix removed. +func baseName(name string) string { + // First, find the last element + if i := strings.LastIndex(name, "/"); i >= 0 { + name = name[i+1:] + } + // Now drop the suffix + if i := strings.LastIndex(name, "."); i >= 0 { + name = name[:i] + } + return name +} + +type pathType int + +const ( + pathTypeLegacy pathType = iota + pathTypeImport + pathTypeSourceRelative +) + +// A Location is a location in a .proto source file. +// +// See the google.protobuf.SourceCodeInfo documentation in descriptor.proto +// for details. +type Location struct { + SourceFile string + Path protoreflect.SourcePath +} + +// appendPath add elements to a Location's path, returning a new Location. +func (loc Location) appendPath(a ...int32) Location { + var n protoreflect.SourcePath + n = append(n, loc.Path...) + n = append(n, a...) + return Location{ + SourceFile: loc.SourceFile, + Path: n, + } +} + +// A pathKey is a representation of a location path suitable for use as a map key. +type pathKey struct { + s string +} + +// newPathKey converts a location path to a pathKey. +func newPathKey(idxPath []int32) pathKey { + buf := make([]byte, 4*len(idxPath)) + for i, x := range idxPath { + binary.LittleEndian.PutUint32(buf[i*4:], uint32(x)) + } + return pathKey{string(buf)} +} + +// CommentSet is a set of leading and trailing comments associated +// with a .proto descriptor declaration. +type CommentSet struct { + LeadingDetached []Comments + Leading Comments + Trailing Comments +} + +// Comments is a comments string as provided by protoc. +type Comments string + +// String formats the comments by inserting // to the start of each line, +// ensuring that there is a trailing newline. +// An empty comment is formatted as an empty string. +func (c Comments) String() string { + if c == "" { + return "" + } + var b []byte + for _, line := range strings.Split(strings.TrimSuffix(string(c), "\n"), "\n") { + b = append(b, "//"...) + b = append(b, line...) + b = append(b, "\n"...) + } + return string(b) +} + +var warnings = true + +func warn(format string, a ...interface{}) { + if warnings { + log.Printf("WARNING: "+format, a...) + } +} diff --git a/vendor/google.golang.org/protobuf/encoding/protojson/decode.go b/vendor/google.golang.org/protobuf/encoding/protojson/decode.go new file mode 100644 index 000000000..2a6077590 --- /dev/null +++ b/vendor/google.golang.org/protobuf/encoding/protojson/decode.go @@ -0,0 +1,690 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protojson + +import ( + "encoding/base64" + "fmt" + "math" + "strconv" + "strings" + + "google.golang.org/protobuf/internal/encoding/json" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/internal/set" + "google.golang.org/protobuf/proto" + pref "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +// Unmarshal reads the given []byte into the given proto.Message. +func Unmarshal(b []byte, m proto.Message) error { + return UnmarshalOptions{}.Unmarshal(b, m) +} + +// UnmarshalOptions is a configurable JSON format parser. +type UnmarshalOptions struct { + pragma.NoUnkeyedLiterals + + // If AllowPartial is set, input for messages that will result in missing + // required fields will not return an error. + AllowPartial bool + + // If DiscardUnknown is set, unknown fields are ignored. + DiscardUnknown bool + + // Resolver is used for looking up types when unmarshaling + // google.protobuf.Any messages or extension fields. + // If nil, this defaults to using protoregistry.GlobalTypes. + Resolver interface { + protoregistry.MessageTypeResolver + protoregistry.ExtensionTypeResolver + } +} + +// Unmarshal reads the given []byte and populates the given proto.Message using +// options in UnmarshalOptions object. It will clear the message first before +// setting the fields. If it returns an error, the given message may be +// partially set. +func (o UnmarshalOptions) Unmarshal(b []byte, m proto.Message) error { + return o.unmarshal(b, m) +} + +// unmarshal is a centralized function that all unmarshal operations go through. +// For profiling purposes, avoid changing the name of this function or +// introducing other code paths for unmarshal that do not go through this. +func (o UnmarshalOptions) unmarshal(b []byte, m proto.Message) error { + proto.Reset(m) + + if o.Resolver == nil { + o.Resolver = protoregistry.GlobalTypes + } + + dec := decoder{json.NewDecoder(b), o} + if err := dec.unmarshalMessage(m.ProtoReflect(), false); err != nil { + return err + } + + // Check for EOF. + tok, err := dec.Read() + if err != nil { + return err + } + if tok.Kind() != json.EOF { + return dec.unexpectedTokenError(tok) + } + + if o.AllowPartial { + return nil + } + return proto.CheckInitialized(m) +} + +type decoder struct { + *json.Decoder + opts UnmarshalOptions +} + +// newError returns an error object with position info. +func (d decoder) newError(pos int, f string, x ...interface{}) error { + line, column := d.Position(pos) + head := fmt.Sprintf("(line %d:%d): ", line, column) + return errors.New(head+f, x...) +} + +// unexpectedTokenError returns a syntax error for the given unexpected token. +func (d decoder) unexpectedTokenError(tok json.Token) error { + return d.syntaxError(tok.Pos(), "unexpected token %s", tok.RawString()) +} + +// syntaxError returns a syntax error for given position. +func (d decoder) syntaxError(pos int, f string, x ...interface{}) error { + line, column := d.Position(pos) + head := fmt.Sprintf("syntax error (line %d:%d): ", line, column) + return errors.New(head+f, x...) +} + +// unmarshalMessage unmarshals a message into the given protoreflect.Message. +func (d decoder) unmarshalMessage(m pref.Message, skipTypeURL bool) error { + if isCustomType(m.Descriptor().FullName()) { + return d.unmarshalCustomType(m) + } + + tok, err := d.Read() + if err != nil { + return err + } + if tok.Kind() != json.ObjectOpen { + return d.unexpectedTokenError(tok) + } + + if err := d.unmarshalFields(m, skipTypeURL); err != nil { + return err + } + + return nil +} + +// unmarshalFields unmarshals the fields into the given protoreflect.Message. +func (d decoder) unmarshalFields(m pref.Message, skipTypeURL bool) error { + messageDesc := m.Descriptor() + if !flags.ProtoLegacy && messageset.IsMessageSet(messageDesc) { + return errors.New("no support for proto1 MessageSets") + } + + var seenNums set.Ints + var seenOneofs set.Ints + fieldDescs := messageDesc.Fields() + for { + // Read field name. + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + default: + return d.unexpectedTokenError(tok) + case json.ObjectClose: + return nil + case json.Name: + // Continue below. + } + + name := tok.Name() + // Unmarshaling a non-custom embedded message in Any will contain the + // JSON field "@type" which should be skipped because it is not a field + // of the embedded message, but simply an artifact of the Any format. + if skipTypeURL && name == "@type" { + d.Read() + continue + } + + // Get the FieldDescriptor. + var fd pref.FieldDescriptor + if strings.HasPrefix(name, "[") && strings.HasSuffix(name, "]") { + // Only extension names are in [name] format. + extName := pref.FullName(name[1 : len(name)-1]) + extType, err := d.findExtension(extName) + if err != nil && err != protoregistry.NotFound { + return d.newError(tok.Pos(), "unable to resolve %s: %v", tok.RawString(), err) + } + if extType != nil { + fd = extType.TypeDescriptor() + if !messageDesc.ExtensionRanges().Has(fd.Number()) || fd.ContainingMessage().FullName() != messageDesc.FullName() { + return d.newError(tok.Pos(), "message %v cannot be extended by %v", messageDesc.FullName(), fd.FullName()) + } + } + } else { + // The name can either be the JSON name or the proto field name. + fd = fieldDescs.ByJSONName(name) + if fd == nil { + fd = fieldDescs.ByName(pref.Name(name)) + if fd == nil { + // The proto name of a group field is in all lowercase, + // while the textual field name is the group message name. + gd := fieldDescs.ByName(pref.Name(strings.ToLower(name))) + if gd != nil && gd.Kind() == pref.GroupKind && gd.Message().Name() == pref.Name(name) { + fd = gd + } + } else if fd.Kind() == pref.GroupKind && fd.Message().Name() != pref.Name(name) { + fd = nil // reset since field name is actually the message name + } + } + } + if flags.ProtoLegacy { + if fd != nil && fd.IsWeak() && fd.Message().IsPlaceholder() { + fd = nil // reset since the weak reference is not linked in + } + } + + if fd == nil { + // Field is unknown. + if d.opts.DiscardUnknown { + if err := d.skipJSONValue(); err != nil { + return err + } + continue + } + return d.newError(tok.Pos(), "unknown field %v", tok.RawString()) + } + + // Do not allow duplicate fields. + num := uint64(fd.Number()) + if seenNums.Has(num) { + return d.newError(tok.Pos(), "duplicate field %v", tok.RawString()) + } + seenNums.Set(num) + + // No need to set values for JSON null unless the field type is + // google.protobuf.Value or google.protobuf.NullValue. + if tok, _ := d.Peek(); tok.Kind() == json.Null && !isKnownValue(fd) && !isNullValue(fd) { + d.Read() + continue + } + + switch { + case fd.IsList(): + list := m.Mutable(fd).List() + if err := d.unmarshalList(list, fd); err != nil { + return err + } + case fd.IsMap(): + mmap := m.Mutable(fd).Map() + if err := d.unmarshalMap(mmap, fd); err != nil { + return err + } + default: + // If field is a oneof, check if it has already been set. + if od := fd.ContainingOneof(); od != nil { + idx := uint64(od.Index()) + if seenOneofs.Has(idx) { + return d.newError(tok.Pos(), "error parsing %s, oneof %v is already set", tok.RawString(), od.FullName()) + } + seenOneofs.Set(idx) + } + + // Required or optional fields. + if err := d.unmarshalSingular(m, fd); err != nil { + return err + } + } + } +} + +// findExtension returns protoreflect.ExtensionType from the resolver if found. +func (d decoder) findExtension(xtName pref.FullName) (pref.ExtensionType, error) { + xt, err := d.opts.Resolver.FindExtensionByName(xtName) + if err == nil { + return xt, nil + } + return messageset.FindMessageSetExtension(d.opts.Resolver, xtName) +} + +func isKnownValue(fd pref.FieldDescriptor) bool { + md := fd.Message() + return md != nil && md.FullName() == "google.protobuf.Value" +} + +func isNullValue(fd pref.FieldDescriptor) bool { + ed := fd.Enum() + return ed != nil && ed.FullName() == "google.protobuf.NullValue" +} + +// unmarshalSingular unmarshals to the non-repeated field specified +// by the given FieldDescriptor. +func (d decoder) unmarshalSingular(m pref.Message, fd pref.FieldDescriptor) error { + var val pref.Value + var err error + switch fd.Kind() { + case pref.MessageKind, pref.GroupKind: + val = m.NewField(fd) + err = d.unmarshalMessage(val.Message(), false) + default: + val, err = d.unmarshalScalar(fd) + } + + if err != nil { + return err + } + m.Set(fd, val) + return nil +} + +// unmarshalScalar unmarshals to a scalar/enum protoreflect.Value specified by +// the given FieldDescriptor. +func (d decoder) unmarshalScalar(fd pref.FieldDescriptor) (pref.Value, error) { + const b32 int = 32 + const b64 int = 64 + + tok, err := d.Read() + if err != nil { + return pref.Value{}, err + } + + kind := fd.Kind() + switch kind { + case pref.BoolKind: + if tok.Kind() == json.Bool { + return pref.ValueOfBool(tok.Bool()), nil + } + + case pref.Int32Kind, pref.Sint32Kind, pref.Sfixed32Kind: + if v, ok := unmarshalInt(tok, b32); ok { + return v, nil + } + + case pref.Int64Kind, pref.Sint64Kind, pref.Sfixed64Kind: + if v, ok := unmarshalInt(tok, b64); ok { + return v, nil + } + + case pref.Uint32Kind, pref.Fixed32Kind: + if v, ok := unmarshalUint(tok, b32); ok { + return v, nil + } + + case pref.Uint64Kind, pref.Fixed64Kind: + if v, ok := unmarshalUint(tok, b64); ok { + return v, nil + } + + case pref.FloatKind: + if v, ok := unmarshalFloat(tok, b32); ok { + return v, nil + } + + case pref.DoubleKind: + if v, ok := unmarshalFloat(tok, b64); ok { + return v, nil + } + + case pref.StringKind: + if tok.Kind() == json.String { + return pref.ValueOfString(tok.ParsedString()), nil + } + + case pref.BytesKind: + if v, ok := unmarshalBytes(tok); ok { + return v, nil + } + + case pref.EnumKind: + if v, ok := unmarshalEnum(tok, fd); ok { + return v, nil + } + + default: + panic(fmt.Sprintf("unmarshalScalar: invalid scalar kind %v", kind)) + } + + return pref.Value{}, d.newError(tok.Pos(), "invalid value for %v type: %v", kind, tok.RawString()) +} + +func unmarshalInt(tok json.Token, bitSize int) (pref.Value, bool) { + switch tok.Kind() { + case json.Number: + return getInt(tok, bitSize) + + case json.String: + // Decode number from string. + s := strings.TrimSpace(tok.ParsedString()) + if len(s) != len(tok.ParsedString()) { + return pref.Value{}, false + } + dec := json.NewDecoder([]byte(s)) + tok, err := dec.Read() + if err != nil { + return pref.Value{}, false + } + return getInt(tok, bitSize) + } + return pref.Value{}, false +} + +func getInt(tok json.Token, bitSize int) (pref.Value, bool) { + n, ok := tok.Int(bitSize) + if !ok { + return pref.Value{}, false + } + if bitSize == 32 { + return pref.ValueOfInt32(int32(n)), true + } + return pref.ValueOfInt64(n), true +} + +func unmarshalUint(tok json.Token, bitSize int) (pref.Value, bool) { + switch tok.Kind() { + case json.Number: + return getUint(tok, bitSize) + + case json.String: + // Decode number from string. + s := strings.TrimSpace(tok.ParsedString()) + if len(s) != len(tok.ParsedString()) { + return pref.Value{}, false + } + dec := json.NewDecoder([]byte(s)) + tok, err := dec.Read() + if err != nil { + return pref.Value{}, false + } + return getUint(tok, bitSize) + } + return pref.Value{}, false +} + +func getUint(tok json.Token, bitSize int) (pref.Value, bool) { + n, ok := tok.Uint(bitSize) + if !ok { + return pref.Value{}, false + } + if bitSize == 32 { + return pref.ValueOfUint32(uint32(n)), true + } + return pref.ValueOfUint64(n), true +} + +func unmarshalFloat(tok json.Token, bitSize int) (pref.Value, bool) { + switch tok.Kind() { + case json.Number: + return getFloat(tok, bitSize) + + case json.String: + s := tok.ParsedString() + switch s { + case "NaN": + if bitSize == 32 { + return pref.ValueOfFloat32(float32(math.NaN())), true + } + return pref.ValueOfFloat64(math.NaN()), true + case "Infinity": + if bitSize == 32 { + return pref.ValueOfFloat32(float32(math.Inf(+1))), true + } + return pref.ValueOfFloat64(math.Inf(+1)), true + case "-Infinity": + if bitSize == 32 { + return pref.ValueOfFloat32(float32(math.Inf(-1))), true + } + return pref.ValueOfFloat64(math.Inf(-1)), true + } + + // Decode number from string. + if len(s) != len(strings.TrimSpace(s)) { + return pref.Value{}, false + } + dec := json.NewDecoder([]byte(s)) + tok, err := dec.Read() + if err != nil { + return pref.Value{}, false + } + return getFloat(tok, bitSize) + } + return pref.Value{}, false +} + +func getFloat(tok json.Token, bitSize int) (pref.Value, bool) { + n, ok := tok.Float(bitSize) + if !ok { + return pref.Value{}, false + } + if bitSize == 32 { + return pref.ValueOfFloat32(float32(n)), true + } + return pref.ValueOfFloat64(n), true +} + +func unmarshalBytes(tok json.Token) (pref.Value, bool) { + if tok.Kind() != json.String { + return pref.Value{}, false + } + + s := tok.ParsedString() + enc := base64.StdEncoding + if strings.ContainsAny(s, "-_") { + enc = base64.URLEncoding + } + if len(s)%4 != 0 { + enc = enc.WithPadding(base64.NoPadding) + } + b, err := enc.DecodeString(s) + if err != nil { + return pref.Value{}, false + } + return pref.ValueOfBytes(b), true +} + +func unmarshalEnum(tok json.Token, fd pref.FieldDescriptor) (pref.Value, bool) { + switch tok.Kind() { + case json.String: + // Lookup EnumNumber based on name. + s := tok.ParsedString() + if enumVal := fd.Enum().Values().ByName(pref.Name(s)); enumVal != nil { + return pref.ValueOfEnum(enumVal.Number()), true + } + + case json.Number: + if n, ok := tok.Int(32); ok { + return pref.ValueOfEnum(pref.EnumNumber(n)), true + } + + case json.Null: + // This is only valid for google.protobuf.NullValue. + if isNullValue(fd) { + return pref.ValueOfEnum(0), true + } + } + + return pref.Value{}, false +} + +func (d decoder) unmarshalList(list pref.List, fd pref.FieldDescriptor) error { + tok, err := d.Read() + if err != nil { + return err + } + if tok.Kind() != json.ArrayOpen { + return d.unexpectedTokenError(tok) + } + + switch fd.Kind() { + case pref.MessageKind, pref.GroupKind: + for { + tok, err := d.Peek() + if err != nil { + return err + } + + if tok.Kind() == json.ArrayClose { + d.Read() + return nil + } + + val := list.NewElement() + if err := d.unmarshalMessage(val.Message(), false); err != nil { + return err + } + list.Append(val) + } + default: + for { + tok, err := d.Peek() + if err != nil { + return err + } + + if tok.Kind() == json.ArrayClose { + d.Read() + return nil + } + + val, err := d.unmarshalScalar(fd) + if err != nil { + return err + } + list.Append(val) + } + } + + return nil +} + +func (d decoder) unmarshalMap(mmap pref.Map, fd pref.FieldDescriptor) error { + tok, err := d.Read() + if err != nil { + return err + } + if tok.Kind() != json.ObjectOpen { + return d.unexpectedTokenError(tok) + } + + // Determine ahead whether map entry is a scalar type or a message type in + // order to call the appropriate unmarshalMapValue func inside the for loop + // below. + var unmarshalMapValue func() (pref.Value, error) + switch fd.MapValue().Kind() { + case pref.MessageKind, pref.GroupKind: + unmarshalMapValue = func() (pref.Value, error) { + val := mmap.NewValue() + if err := d.unmarshalMessage(val.Message(), false); err != nil { + return pref.Value{}, err + } + return val, nil + } + default: + unmarshalMapValue = func() (pref.Value, error) { + return d.unmarshalScalar(fd.MapValue()) + } + } + +Loop: + for { + // Read field name. + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + default: + return d.unexpectedTokenError(tok) + case json.ObjectClose: + break Loop + case json.Name: + // Continue. + } + + // Unmarshal field name. + pkey, err := d.unmarshalMapKey(tok, fd.MapKey()) + if err != nil { + return err + } + + // Check for duplicate field name. + if mmap.Has(pkey) { + return d.newError(tok.Pos(), "duplicate map key %v", tok.RawString()) + } + + // Read and unmarshal field value. + pval, err := unmarshalMapValue() + if err != nil { + return err + } + + mmap.Set(pkey, pval) + } + + return nil +} + +// unmarshalMapKey converts given token of Name kind into a protoreflect.MapKey. +// A map key type is any integral or string type. +func (d decoder) unmarshalMapKey(tok json.Token, fd pref.FieldDescriptor) (pref.MapKey, error) { + const b32 = 32 + const b64 = 64 + const base10 = 10 + + name := tok.Name() + kind := fd.Kind() + switch kind { + case pref.StringKind: + return pref.ValueOfString(name).MapKey(), nil + + case pref.BoolKind: + switch name { + case "true": + return pref.ValueOfBool(true).MapKey(), nil + case "false": + return pref.ValueOfBool(false).MapKey(), nil + } + + case pref.Int32Kind, pref.Sint32Kind, pref.Sfixed32Kind: + if n, err := strconv.ParseInt(name, base10, b32); err == nil { + return pref.ValueOfInt32(int32(n)).MapKey(), nil + } + + case pref.Int64Kind, pref.Sint64Kind, pref.Sfixed64Kind: + if n, err := strconv.ParseInt(name, base10, b64); err == nil { + return pref.ValueOfInt64(int64(n)).MapKey(), nil + } + + case pref.Uint32Kind, pref.Fixed32Kind: + if n, err := strconv.ParseUint(name, base10, b32); err == nil { + return pref.ValueOfUint32(uint32(n)).MapKey(), nil + } + + case pref.Uint64Kind, pref.Fixed64Kind: + if n, err := strconv.ParseUint(name, base10, b64); err == nil { + return pref.ValueOfUint64(uint64(n)).MapKey(), nil + } + + default: + panic(fmt.Sprintf("invalid kind for map key: %v", kind)) + } + + return pref.MapKey{}, d.newError(tok.Pos(), "invalid value for %v key: %s", kind, tok.RawString()) +} diff --git a/vendor/google.golang.org/protobuf/encoding/protojson/doc.go b/vendor/google.golang.org/protobuf/encoding/protojson/doc.go new file mode 100644 index 000000000..00ea2fecf --- /dev/null +++ b/vendor/google.golang.org/protobuf/encoding/protojson/doc.go @@ -0,0 +1,11 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protojson marshals and unmarshals protocol buffer messages as JSON +// format. It follows the guide at +// https://developers.google.com/protocol-buffers/docs/proto3#json. +// +// This package produces a different output than the standard "encoding/json" +// package, which does not operate correctly on protocol buffer messages. +package protojson diff --git a/vendor/google.golang.org/protobuf/encoding/protojson/encode.go b/vendor/google.golang.org/protobuf/encoding/protojson/encode.go new file mode 100644 index 000000000..73b750a19 --- /dev/null +++ b/vendor/google.golang.org/protobuf/encoding/protojson/encode.go @@ -0,0 +1,401 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protojson + +import ( + "encoding/base64" + "fmt" + "sort" + + "google.golang.org/protobuf/internal/encoding/json" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/proto" + pref "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +const defaultIndent = " " + +// Format formats the message as a multiline string. +// This function is only intended for human consumption and ignores errors. +// Do not depend on the output being stable. It may change over time across +// different versions of the program. +func Format(m proto.Message) string { + return MarshalOptions{Multiline: true}.Format(m) +} + +// Marshal writes the given proto.Message in JSON format using default options. +// Do not depend on the output being stable. It may change over time across +// different versions of the program. +func Marshal(m proto.Message) ([]byte, error) { + return MarshalOptions{}.Marshal(m) +} + +// MarshalOptions is a configurable JSON format marshaler. +type MarshalOptions struct { + pragma.NoUnkeyedLiterals + + // Multiline specifies whether the marshaler should format the output in + // indented-form with every textual element on a new line. + // If Indent is an empty string, then an arbitrary indent is chosen. + Multiline bool + + // Indent specifies the set of indentation characters to use in a multiline + // formatted output such that every entry is preceded by Indent and + // terminated by a newline. If non-empty, then Multiline is treated as true. + // Indent can only be composed of space or tab characters. + Indent string + + // AllowPartial allows messages that have missing required fields to marshal + // without returning an error. If AllowPartial is false (the default), + // Marshal will return error if there are any missing required fields. + AllowPartial bool + + // UseProtoNames uses proto field name instead of lowerCamelCase name in JSON + // field names. + UseProtoNames bool + + // UseEnumNumbers emits enum values as numbers. + UseEnumNumbers bool + + // EmitUnpopulated specifies whether to emit unpopulated fields. It does not + // emit unpopulated oneof fields or unpopulated extension fields. + // The JSON value emitted for unpopulated fields are as follows: + // ╔═══════╤════════════════════════════╗ + // ║ JSON │ Protobuf field ║ + // ╠═══════╪════════════════════════════╣ + // ║ false │ proto3 boolean fields ║ + // ║ 0 │ proto3 numeric fields ║ + // ║ "" │ proto3 string/bytes fields ║ + // ║ null │ proto2 scalar fields ║ + // ║ null │ message fields ║ + // ║ [] │ list fields ║ + // ║ {} │ map fields ║ + // ╚═══════╧════════════════════════════╝ + EmitUnpopulated bool + + // Resolver is used for looking up types when expanding google.protobuf.Any + // messages. If nil, this defaults to using protoregistry.GlobalTypes. + Resolver interface { + protoregistry.ExtensionTypeResolver + protoregistry.MessageTypeResolver + } +} + +// Format formats the message as a string. +// This method is only intended for human consumption and ignores errors. +// Do not depend on the output being stable. It may change over time across +// different versions of the program. +func (o MarshalOptions) Format(m proto.Message) string { + if m == nil || !m.ProtoReflect().IsValid() { + return "" // invalid syntax, but okay since this is for debugging + } + o.AllowPartial = true + b, _ := o.Marshal(m) + return string(b) +} + +// Marshal marshals the given proto.Message in the JSON format using options in +// MarshalOptions. Do not depend on the output being stable. It may change over +// time across different versions of the program. +func (o MarshalOptions) Marshal(m proto.Message) ([]byte, error) { + return o.marshal(m) +} + +// marshal is a centralized function that all marshal operations go through. +// For profiling purposes, avoid changing the name of this function or +// introducing other code paths for marshal that do not go through this. +func (o MarshalOptions) marshal(m proto.Message) ([]byte, error) { + if o.Multiline && o.Indent == "" { + o.Indent = defaultIndent + } + if o.Resolver == nil { + o.Resolver = protoregistry.GlobalTypes + } + + internalEnc, err := json.NewEncoder(o.Indent) + if err != nil { + return nil, err + } + + // Treat nil message interface as an empty message, + // in which case the output in an empty JSON object. + if m == nil { + return []byte("{}"), nil + } + + enc := encoder{internalEnc, o} + if err := enc.marshalMessage(m.ProtoReflect()); err != nil { + return nil, err + } + if o.AllowPartial { + return enc.Bytes(), nil + } + return enc.Bytes(), proto.CheckInitialized(m) +} + +type encoder struct { + *json.Encoder + opts MarshalOptions +} + +// marshalMessage marshals the given protoreflect.Message. +func (e encoder) marshalMessage(m pref.Message) error { + if isCustomType(m.Descriptor().FullName()) { + return e.marshalCustomType(m) + } + + e.StartObject() + defer e.EndObject() + if err := e.marshalFields(m); err != nil { + return err + } + + return nil +} + +// marshalFields marshals the fields in the given protoreflect.Message. +func (e encoder) marshalFields(m pref.Message) error { + messageDesc := m.Descriptor() + if !flags.ProtoLegacy && messageset.IsMessageSet(messageDesc) { + return errors.New("no support for proto1 MessageSets") + } + + // Marshal out known fields. + fieldDescs := messageDesc.Fields() + for i := 0; i < fieldDescs.Len(); { + fd := fieldDescs.Get(i) + if od := fd.ContainingOneof(); od != nil { + fd = m.WhichOneof(od) + i += od.Fields().Len() + if fd == nil { + continue // unpopulated oneofs are not affected by EmitUnpopulated + } + } else { + i++ + } + + val := m.Get(fd) + if !m.Has(fd) { + if !e.opts.EmitUnpopulated { + continue + } + isProto2Scalar := fd.Syntax() == pref.Proto2 && fd.Default().IsValid() + isSingularMessage := fd.Cardinality() != pref.Repeated && fd.Message() != nil + if isProto2Scalar || isSingularMessage { + // Use invalid value to emit null. + val = pref.Value{} + } + } + + name := fd.JSONName() + if e.opts.UseProtoNames { + name = string(fd.Name()) + // Use type name for group field name. + if fd.Kind() == pref.GroupKind { + name = string(fd.Message().Name()) + } + } + if err := e.WriteName(name); err != nil { + return err + } + if err := e.marshalValue(val, fd); err != nil { + return err + } + } + + // Marshal out extensions. + if err := e.marshalExtensions(m); err != nil { + return err + } + return nil +} + +// marshalValue marshals the given protoreflect.Value. +func (e encoder) marshalValue(val pref.Value, fd pref.FieldDescriptor) error { + switch { + case fd.IsList(): + return e.marshalList(val.List(), fd) + case fd.IsMap(): + return e.marshalMap(val.Map(), fd) + default: + return e.marshalSingular(val, fd) + } +} + +// marshalSingular marshals the given non-repeated field value. This includes +// all scalar types, enums, messages, and groups. +func (e encoder) marshalSingular(val pref.Value, fd pref.FieldDescriptor) error { + if !val.IsValid() { + e.WriteNull() + return nil + } + + switch kind := fd.Kind(); kind { + case pref.BoolKind: + e.WriteBool(val.Bool()) + + case pref.StringKind: + if e.WriteString(val.String()) != nil { + return errors.InvalidUTF8(string(fd.FullName())) + } + + case pref.Int32Kind, pref.Sint32Kind, pref.Sfixed32Kind: + e.WriteInt(val.Int()) + + case pref.Uint32Kind, pref.Fixed32Kind: + e.WriteUint(val.Uint()) + + case pref.Int64Kind, pref.Sint64Kind, pref.Uint64Kind, + pref.Sfixed64Kind, pref.Fixed64Kind: + // 64-bit integers are written out as JSON string. + e.WriteString(val.String()) + + case pref.FloatKind: + // Encoder.WriteFloat handles the special numbers NaN and infinites. + e.WriteFloat(val.Float(), 32) + + case pref.DoubleKind: + // Encoder.WriteFloat handles the special numbers NaN and infinites. + e.WriteFloat(val.Float(), 64) + + case pref.BytesKind: + e.WriteString(base64.StdEncoding.EncodeToString(val.Bytes())) + + case pref.EnumKind: + if fd.Enum().FullName() == "google.protobuf.NullValue" { + e.WriteNull() + } else { + desc := fd.Enum().Values().ByNumber(val.Enum()) + if e.opts.UseEnumNumbers || desc == nil { + e.WriteInt(int64(val.Enum())) + } else { + e.WriteString(string(desc.Name())) + } + } + + case pref.MessageKind, pref.GroupKind: + if err := e.marshalMessage(val.Message()); err != nil { + return err + } + + default: + panic(fmt.Sprintf("%v has unknown kind: %v", fd.FullName(), kind)) + } + return nil +} + +// marshalList marshals the given protoreflect.List. +func (e encoder) marshalList(list pref.List, fd pref.FieldDescriptor) error { + e.StartArray() + defer e.EndArray() + + for i := 0; i < list.Len(); i++ { + item := list.Get(i) + if err := e.marshalSingular(item, fd); err != nil { + return err + } + } + return nil +} + +type mapEntry struct { + key pref.MapKey + value pref.Value +} + +// marshalMap marshals given protoreflect.Map. +func (e encoder) marshalMap(mmap pref.Map, fd pref.FieldDescriptor) error { + e.StartObject() + defer e.EndObject() + + // Get a sorted list based on keyType first. + entries := make([]mapEntry, 0, mmap.Len()) + mmap.Range(func(key pref.MapKey, val pref.Value) bool { + entries = append(entries, mapEntry{key: key, value: val}) + return true + }) + sortMap(fd.MapKey().Kind(), entries) + + // Write out sorted list. + for _, entry := range entries { + if err := e.WriteName(entry.key.String()); err != nil { + return err + } + if err := e.marshalSingular(entry.value, fd.MapValue()); err != nil { + return err + } + } + return nil +} + +// sortMap orders list based on value of key field for deterministic ordering. +func sortMap(keyKind pref.Kind, values []mapEntry) { + sort.Slice(values, func(i, j int) bool { + switch keyKind { + case pref.Int32Kind, pref.Sint32Kind, pref.Sfixed32Kind, + pref.Int64Kind, pref.Sint64Kind, pref.Sfixed64Kind: + return values[i].key.Int() < values[j].key.Int() + + case pref.Uint32Kind, pref.Fixed32Kind, + pref.Uint64Kind, pref.Fixed64Kind: + return values[i].key.Uint() < values[j].key.Uint() + } + return values[i].key.String() < values[j].key.String() + }) +} + +// marshalExtensions marshals extension fields. +func (e encoder) marshalExtensions(m pref.Message) error { + type entry struct { + key string + value pref.Value + desc pref.FieldDescriptor + } + + // Get a sorted list based on field key first. + var entries []entry + m.Range(func(fd pref.FieldDescriptor, v pref.Value) bool { + if !fd.IsExtension() { + return true + } + + // For MessageSet extensions, the name used is the parent message. + name := fd.FullName() + if messageset.IsMessageSetExtension(fd) { + name = name.Parent() + } + + // Use [name] format for JSON field name. + entries = append(entries, entry{ + key: string(name), + value: v, + desc: fd, + }) + return true + }) + + // Sort extensions lexicographically. + sort.Slice(entries, func(i, j int) bool { + return entries[i].key < entries[j].key + }) + + // Write out sorted list. + for _, entry := range entries { + // JSON field name is the proto field name enclosed in [], similar to + // textproto. This is consistent with Go v1 lib. C++ lib v3.7.0 does not + // marshal out extension fields. + if err := e.WriteName("[" + entry.key + "]"); err != nil { + return err + } + if err := e.marshalValue(entry.value, entry.desc); err != nil { + return err + } + } + return nil +} diff --git a/vendor/google.golang.org/protobuf/encoding/protojson/well_known_types.go b/vendor/google.golang.org/protobuf/encoding/protojson/well_known_types.go new file mode 100644 index 000000000..3c3ef14da --- /dev/null +++ b/vendor/google.golang.org/protobuf/encoding/protojson/well_known_types.go @@ -0,0 +1,903 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protojson + +import ( + "bytes" + "fmt" + "strconv" + "strings" + "time" + + "google.golang.org/protobuf/internal/detectknown" + "google.golang.org/protobuf/internal/encoding/json" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/fieldnum" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/proto" + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +// isCustomType returns true if type name has special JSON conversion rules. +// The list of custom types here has to match the ones in marshalCustomType and +// unmarshalCustomType. +func isCustomType(name pref.FullName) bool { + switch detectknown.Which(name) { + case detectknown.AnyProto: + case detectknown.TimestampProto: + case detectknown.DurationProto: + case detectknown.WrappersProto: + case detectknown.StructProto: + case detectknown.FieldMaskProto: + case detectknown.EmptyProto: + default: + return false + } + return true +} + +// marshalCustomType marshals given well-known type message that have special +// JSON conversion rules. It needs to be a message type where isCustomType +// returns true, else it will panic. +func (e encoder) marshalCustomType(m pref.Message) error { + name := m.Descriptor().FullName() + switch detectknown.Which(name) { + case detectknown.AnyProto: + return e.marshalAny(m) + case detectknown.TimestampProto: + return e.marshalTimestamp(m) + case detectknown.DurationProto: + return e.marshalDuration(m) + case detectknown.WrappersProto: + return e.marshalWrapperType(m) + case detectknown.StructProto: + return e.marshalStructType(m) + case detectknown.FieldMaskProto: + return e.marshalFieldMask(m) + case detectknown.EmptyProto: + return e.marshalEmpty(m) + default: + panic(fmt.Sprintf("%s does not have a custom marshaler", name)) + } +} + +// unmarshalCustomType unmarshals given well-known type message that have +// special JSON conversion rules. It needs to be a message type where +// isCustomType returns true, else it will panic. +func (d decoder) unmarshalCustomType(m pref.Message) error { + name := m.Descriptor().FullName() + switch detectknown.Which(name) { + case detectknown.AnyProto: + return d.unmarshalAny(m) + case detectknown.TimestampProto: + return d.unmarshalTimestamp(m) + case detectknown.DurationProto: + return d.unmarshalDuration(m) + case detectknown.WrappersProto: + return d.unmarshalWrapperType(m) + case detectknown.StructProto: + return d.unmarshalStructType(m) + case detectknown.FieldMaskProto: + return d.unmarshalFieldMask(m) + case detectknown.EmptyProto: + return d.unmarshalEmpty(m) + default: + panic(fmt.Sprintf("%s does not have a custom unmarshaler", name)) + } +} + +// The JSON representation of an Any message uses the regular representation of +// the deserialized, embedded message, with an additional field `@type` which +// contains the type URL. If the embedded message type is well-known and has a +// custom JSON representation, that representation will be embedded adding a +// field `value` which holds the custom JSON in addition to the `@type` field. + +func (e encoder) marshalAny(m pref.Message) error { + fds := m.Descriptor().Fields() + fdType := fds.ByNumber(fieldnum.Any_TypeUrl) + fdValue := fds.ByNumber(fieldnum.Any_Value) + + // Start writing the JSON object. + e.StartObject() + defer e.EndObject() + + if !m.Has(fdType) { + if !m.Has(fdValue) { + // If message is empty, marshal out empty JSON object. + return nil + } else { + // Return error if type_url field is not set, but value is set. + return errors.New("%s: type_url is not set", m.Descriptor().FullName()) + } + } + + typeVal := m.Get(fdType) + valueVal := m.Get(fdValue) + + // Marshal out @type field. + typeURL := typeVal.String() + e.WriteName("@type") + if err := e.WriteString(typeURL); err != nil { + return err + } + + // Resolve the type in order to unmarshal value field. + emt, err := e.opts.Resolver.FindMessageByURL(typeURL) + if err != nil { + return errors.New("%s: unable to resolve %q: %v", m.Descriptor().FullName(), typeURL, err) + } + + em := emt.New() + err = proto.UnmarshalOptions{ + AllowPartial: true, // never check required fields inside an Any + Resolver: e.opts.Resolver, + }.Unmarshal(valueVal.Bytes(), em.Interface()) + if err != nil { + return errors.New("%s: unable to unmarshal %q: %v", m.Descriptor().FullName(), typeURL, err) + } + + // If type of value has custom JSON encoding, marshal out a field "value" + // with corresponding custom JSON encoding of the embedded message as a + // field. + if isCustomType(emt.Descriptor().FullName()) { + e.WriteName("value") + return e.marshalCustomType(em) + } + + // Else, marshal out the embedded message's fields in this Any object. + if err := e.marshalFields(em); err != nil { + return err + } + + return nil +} + +func (d decoder) unmarshalAny(m pref.Message) error { + // Peek to check for json.ObjectOpen to avoid advancing a read. + start, err := d.Peek() + if err != nil { + return err + } + if start.Kind() != json.ObjectOpen { + return d.unexpectedTokenError(start) + } + + // Use another decoder to parse the unread bytes for @type field. This + // avoids advancing a read from current decoder because the current JSON + // object may contain the fields of the embedded type. + dec := decoder{d.Clone(), UnmarshalOptions{}} + tok, err := findTypeURL(dec) + switch err { + case errEmptyObject: + // An empty JSON object translates to an empty Any message. + d.Read() // Read json.ObjectOpen. + d.Read() // Read json.ObjectClose. + return nil + + case errMissingType: + if d.opts.DiscardUnknown { + // Treat all fields as unknowns, similar to an empty object. + return d.skipJSONValue() + } + // Use start.Pos() for line position. + return d.newError(start.Pos(), err.Error()) + + default: + if err != nil { + return err + } + } + + typeURL := tok.ParsedString() + emt, err := d.opts.Resolver.FindMessageByURL(typeURL) + if err != nil { + return d.newError(tok.Pos(), "unable to resolve %v: %q", tok.RawString(), err) + } + + // Create new message for the embedded message type and unmarshal into it. + em := emt.New() + if isCustomType(emt.Descriptor().FullName()) { + // If embedded message is a custom type, + // unmarshal the JSON "value" field into it. + if err := d.unmarshalAnyValue(em); err != nil { + return err + } + } else { + // Else unmarshal the current JSON object into it. + if err := d.unmarshalMessage(em, true); err != nil { + return err + } + } + // Serialize the embedded message and assign the resulting bytes to the + // proto value field. + b, err := proto.MarshalOptions{ + AllowPartial: true, // No need to check required fields inside an Any. + Deterministic: true, + }.Marshal(em.Interface()) + if err != nil { + return d.newError(start.Pos(), "error in marshaling Any.value field: %v", err) + } + + fds := m.Descriptor().Fields() + fdType := fds.ByNumber(fieldnum.Any_TypeUrl) + fdValue := fds.ByNumber(fieldnum.Any_Value) + + m.Set(fdType, pref.ValueOfString(typeURL)) + m.Set(fdValue, pref.ValueOfBytes(b)) + return nil +} + +var errEmptyObject = fmt.Errorf(`empty object`) +var errMissingType = fmt.Errorf(`missing "@type" field`) + +// findTypeURL returns the token for the "@type" field value from the given +// JSON bytes. It is expected that the given bytes start with json.ObjectOpen. +// It returns errEmptyObject if the JSON object is empty or errMissingType if +// @type field does not exist. It returns other error if the @type field is not +// valid or other decoding issues. +func findTypeURL(d decoder) (json.Token, error) { + var typeURL string + var typeTok json.Token + numFields := 0 + // Skip start object. + d.Read() + +Loop: + for { + tok, err := d.Read() + if err != nil { + return json.Token{}, err + } + + switch tok.Kind() { + case json.ObjectClose: + if typeURL == "" { + // Did not find @type field. + if numFields > 0 { + return json.Token{}, errMissingType + } + return json.Token{}, errEmptyObject + } + break Loop + + case json.Name: + numFields++ + if tok.Name() != "@type" { + // Skip value. + if err := d.skipJSONValue(); err != nil { + return json.Token{}, err + } + continue + } + + // Return error if this was previously set already. + if typeURL != "" { + return json.Token{}, d.newError(tok.Pos(), `duplicate "@type" field`) + } + // Read field value. + tok, err := d.Read() + if err != nil { + return json.Token{}, err + } + if tok.Kind() != json.String { + return json.Token{}, d.newError(tok.Pos(), `@type field value is not a string: %v`, tok.RawString()) + } + typeURL = tok.ParsedString() + if typeURL == "" { + return json.Token{}, d.newError(tok.Pos(), `@type field contains empty value`) + } + typeTok = tok + } + } + + return typeTok, nil +} + +// skipJSONValue parses a JSON value (null, boolean, string, number, object and +// array) in order to advance the read to the next JSON value. It relies on +// the decoder returning an error if the types are not in valid sequence. +func (d decoder) skipJSONValue() error { + tok, err := d.Read() + if err != nil { + return err + } + // Only need to continue reading for objects and arrays. + switch tok.Kind() { + case json.ObjectOpen: + for { + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + case json.ObjectClose: + return nil + case json.Name: + // Skip object field value. + if err := d.skipJSONValue(); err != nil { + return err + } + } + } + + case json.ArrayOpen: + for { + tok, err := d.Peek() + if err != nil { + return err + } + switch tok.Kind() { + case json.ArrayClose: + d.Read() + return nil + default: + // Skip array item. + if err := d.skipJSONValue(); err != nil { + return err + } + } + } + } + return nil +} + +// unmarshalAnyValue unmarshals the given custom-type message from the JSON +// object's "value" field. +func (d decoder) unmarshalAnyValue(m pref.Message) error { + // Skip ObjectOpen, and start reading the fields. + d.Read() + + var found bool // Used for detecting duplicate "value". + for { + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + case json.ObjectClose: + if !found { + return d.newError(tok.Pos(), `missing "value" field`) + } + return nil + + case json.Name: + switch tok.Name() { + case "@type": + // Skip the value as this was previously parsed already. + d.Read() + + case "value": + if found { + return d.newError(tok.Pos(), `duplicate "value" field`) + } + // Unmarshal the field value into the given message. + if err := d.unmarshalCustomType(m); err != nil { + return err + } + found = true + + default: + if d.opts.DiscardUnknown { + if err := d.skipJSONValue(); err != nil { + return err + } + continue + } + return d.newError(tok.Pos(), "unknown field %v", tok.RawString()) + } + } + } +} + +// Wrapper types are encoded as JSON primitives like string, number or boolean. + +// The "value" field has the same field number for all wrapper types. +const wrapperFieldNumber = fieldnum.BoolValue_Value + +func (e encoder) marshalWrapperType(m pref.Message) error { + fd := m.Descriptor().Fields().ByNumber(wrapperFieldNumber) + val := m.Get(fd) + return e.marshalSingular(val, fd) +} + +func (d decoder) unmarshalWrapperType(m pref.Message) error { + fd := m.Descriptor().Fields().ByNumber(wrapperFieldNumber) + val, err := d.unmarshalScalar(fd) + if err != nil { + return err + } + m.Set(fd, val) + return nil +} + +// The JSON representation for Empty is an empty JSON object. + +func (e encoder) marshalEmpty(pref.Message) error { + e.StartObject() + e.EndObject() + return nil +} + +func (d decoder) unmarshalEmpty(pref.Message) error { + tok, err := d.Read() + if err != nil { + return err + } + if tok.Kind() != json.ObjectOpen { + return d.unexpectedTokenError(tok) + } + + for { + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + case json.ObjectClose: + return nil + + case json.Name: + if d.opts.DiscardUnknown { + if err := d.skipJSONValue(); err != nil { + return err + } + continue + } + return d.newError(tok.Pos(), "unknown field %v", tok.RawString()) + + default: + return d.unexpectedTokenError(tok) + } + } +} + +func (e encoder) marshalStructType(m pref.Message) error { + switch m.Descriptor().Name() { + case "Struct": + return e.marshalStruct(m) + case "ListValue": + return e.marshalListValue(m) + case "Value": + return e.marshalKnownValue(m) + default: + panic(fmt.Sprintf("invalid struct type: %v", m.Descriptor().FullName())) + } +} + +func (d decoder) unmarshalStructType(m pref.Message) error { + switch m.Descriptor().Name() { + case "Struct": + return d.unmarshalStruct(m) + case "ListValue": + return d.unmarshalListValue(m) + case "Value": + return d.unmarshalKnownValue(m) + default: + panic(fmt.Sprintf("invalid struct type: %v", m.Descriptor().FullName())) + } +} + +// The JSON representation for Struct is a JSON object that contains the encoded +// Struct.fields map and follows the serialization rules for a map. + +func (e encoder) marshalStruct(m pref.Message) error { + fd := m.Descriptor().Fields().ByNumber(fieldnum.Struct_Fields) + return e.marshalMap(m.Get(fd).Map(), fd) +} + +func (d decoder) unmarshalStruct(m pref.Message) error { + fd := m.Descriptor().Fields().ByNumber(fieldnum.Struct_Fields) + return d.unmarshalMap(m.Mutable(fd).Map(), fd) +} + +// The JSON representation for ListValue is JSON array that contains the encoded +// ListValue.values repeated field and follows the serialization rules for a +// repeated field. + +func (e encoder) marshalListValue(m pref.Message) error { + fd := m.Descriptor().Fields().ByNumber(fieldnum.ListValue_Values) + return e.marshalList(m.Get(fd).List(), fd) +} + +func (d decoder) unmarshalListValue(m pref.Message) error { + fd := m.Descriptor().Fields().ByNumber(fieldnum.ListValue_Values) + return d.unmarshalList(m.Mutable(fd).List(), fd) +} + +// The JSON representation for a Value is dependent on the oneof field that is +// set. Each of the field in the oneof has its own custom serialization rule. A +// Value message needs to be a oneof field set, else it is an error. + +func (e encoder) marshalKnownValue(m pref.Message) error { + od := m.Descriptor().Oneofs().ByName("kind") + fd := m.WhichOneof(od) + if fd == nil { + return errors.New("%s: none of the oneof fields is set", m.Descriptor().FullName()) + } + return e.marshalSingular(m.Get(fd), fd) +} + +func (d decoder) unmarshalKnownValue(m pref.Message) error { + tok, err := d.Peek() + if err != nil { + return err + } + + var fd pref.FieldDescriptor + var val pref.Value + switch tok.Kind() { + case json.Null: + d.Read() + fd = m.Descriptor().Fields().ByNumber(fieldnum.Value_NullValue) + val = pref.ValueOfEnum(0) + + case json.Bool: + tok, err := d.Read() + if err != nil { + return err + } + fd = m.Descriptor().Fields().ByNumber(fieldnum.Value_BoolValue) + val = pref.ValueOfBool(tok.Bool()) + + case json.Number: + tok, err := d.Read() + if err != nil { + return err + } + fd = m.Descriptor().Fields().ByNumber(fieldnum.Value_NumberValue) + var ok bool + val, ok = unmarshalFloat(tok, 64) + if !ok { + return d.newError(tok.Pos(), "invalid google.protobuf.Value: %v", tok.RawString()) + } + + case json.String: + // A JSON string may have been encoded from the number_value field, + // e.g. "NaN", "Infinity", etc. Parsing a proto double type also allows + // for it to be in JSON string form. Given this custom encoding spec, + // however, there is no way to identify that and hence a JSON string is + // always assigned to the string_value field, which means that certain + // encoding cannot be parsed back to the same field. + tok, err := d.Read() + if err != nil { + return err + } + fd = m.Descriptor().Fields().ByNumber(fieldnum.Value_StringValue) + val = pref.ValueOfString(tok.ParsedString()) + + case json.ObjectOpen: + fd = m.Descriptor().Fields().ByNumber(fieldnum.Value_StructValue) + val = m.NewField(fd) + if err := d.unmarshalStruct(val.Message()); err != nil { + return err + } + + case json.ArrayOpen: + fd = m.Descriptor().Fields().ByNumber(fieldnum.Value_ListValue) + val = m.NewField(fd) + if err := d.unmarshalListValue(val.Message()); err != nil { + return err + } + + default: + return d.newError(tok.Pos(), "invalid google.protobuf.Value: %v", tok.RawString()) + } + + m.Set(fd, val) + return nil +} + +// The JSON representation for a Duration is a JSON string that ends in the +// suffix "s" (indicating seconds) and is preceded by the number of seconds, +// with nanoseconds expressed as fractional seconds. +// +// Durations less than one second are represented with a 0 seconds field and a +// positive or negative nanos field. For durations of one second or more, a +// non-zero value for the nanos field must be of the same sign as the seconds +// field. +// +// Duration.seconds must be from -315,576,000,000 to +315,576,000,000 inclusive. +// Duration.nanos must be from -999,999,999 to +999,999,999 inclusive. + +const ( + secondsInNanos = 999999999 + maxSecondsInDuration = 315576000000 +) + +func (e encoder) marshalDuration(m pref.Message) error { + fds := m.Descriptor().Fields() + fdSeconds := fds.ByNumber(fieldnum.Duration_Seconds) + fdNanos := fds.ByNumber(fieldnum.Duration_Nanos) + + secsVal := m.Get(fdSeconds) + nanosVal := m.Get(fdNanos) + secs := secsVal.Int() + nanos := nanosVal.Int() + if secs < -maxSecondsInDuration || secs > maxSecondsInDuration { + return errors.New("%s: seconds out of range %v", m.Descriptor().FullName(), secs) + } + if nanos < -secondsInNanos || nanos > secondsInNanos { + return errors.New("%s: nanos out of range %v", m.Descriptor().FullName(), nanos) + } + if (secs > 0 && nanos < 0) || (secs < 0 && nanos > 0) { + return errors.New("%s: signs of seconds and nanos do not match", m.Descriptor().FullName()) + } + // Generated output always contains 0, 3, 6, or 9 fractional digits, + // depending on required precision, followed by the suffix "s". + f := "%d.%09d" + if nanos < 0 { + nanos = -nanos + if secs == 0 { + f = "-%d.%09d" + } + } + x := fmt.Sprintf(f, secs, nanos) + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, ".000") + e.WriteString(x + "s") + return nil +} + +func (d decoder) unmarshalDuration(m pref.Message) error { + tok, err := d.Read() + if err != nil { + return err + } + if tok.Kind() != json.String { + return d.unexpectedTokenError(tok) + } + + secs, nanos, ok := parseDuration(tok.ParsedString()) + if !ok { + return d.newError(tok.Pos(), "invalid google.protobuf.Duration value %v", tok.RawString()) + } + // Validate seconds. No need to validate nanos because parseDuration would + // have covered that already. + if secs < -maxSecondsInDuration || secs > maxSecondsInDuration { + return d.newError(tok.Pos(), "google.protobuf.Duration value out of range: %v", tok.RawString()) + } + + fds := m.Descriptor().Fields() + fdSeconds := fds.ByNumber(fieldnum.Duration_Seconds) + fdNanos := fds.ByNumber(fieldnum.Duration_Nanos) + + m.Set(fdSeconds, pref.ValueOfInt64(secs)) + m.Set(fdNanos, pref.ValueOfInt32(nanos)) + return nil +} + +// parseDuration parses the given input string for seconds and nanoseconds value +// for the Duration JSON format. The format is a decimal number with a suffix +// 's'. It can have optional plus/minus sign. There needs to be at least an +// integer or fractional part. Fractional part is limited to 9 digits only for +// nanoseconds precision, regardless of whether there are trailing zero digits. +// Example values are 1s, 0.1s, 1.s, .1s, +1s, -1s, -.1s. +func parseDuration(input string) (int64, int32, bool) { + b := []byte(input) + size := len(b) + if size < 2 { + return 0, 0, false + } + if b[size-1] != 's' { + return 0, 0, false + } + b = b[:size-1] + + // Read optional plus/minus symbol. + var neg bool + switch b[0] { + case '-': + neg = true + b = b[1:] + case '+': + b = b[1:] + } + if len(b) == 0 { + return 0, 0, false + } + + // Read the integer part. + var intp []byte + switch { + case b[0] == '0': + b = b[1:] + + case '1' <= b[0] && b[0] <= '9': + intp = b[0:] + b = b[1:] + n := 1 + for len(b) > 0 && '0' <= b[0] && b[0] <= '9' { + n++ + b = b[1:] + } + intp = intp[:n] + + case b[0] == '.': + // Continue below. + + default: + return 0, 0, false + } + + hasFrac := false + var frac [9]byte + if len(b) > 0 { + if b[0] != '.' { + return 0, 0, false + } + // Read the fractional part. + b = b[1:] + n := 0 + for len(b) > 0 && n < 9 && '0' <= b[0] && b[0] <= '9' { + frac[n] = b[0] + n++ + b = b[1:] + } + // It is not valid if there are more bytes left. + if len(b) > 0 { + return 0, 0, false + } + // Pad fractional part with 0s. + for i := n; i < 9; i++ { + frac[i] = '0' + } + hasFrac = true + } + + var secs int64 + if len(intp) > 0 { + var err error + secs, err = strconv.ParseInt(string(intp), 10, 64) + if err != nil { + return 0, 0, false + } + } + + var nanos int64 + if hasFrac { + nanob := bytes.TrimLeft(frac[:], "0") + if len(nanob) > 0 { + var err error + nanos, err = strconv.ParseInt(string(nanob), 10, 32) + if err != nil { + return 0, 0, false + } + } + } + + if neg { + if secs > 0 { + secs = -secs + } + if nanos > 0 { + nanos = -nanos + } + } + return secs, int32(nanos), true +} + +// The JSON representation for a Timestamp is a JSON string in the RFC 3339 +// format, i.e. "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" where +// {year} is always expressed using four digits while {month}, {day}, {hour}, +// {min}, and {sec} are zero-padded to two digits each. The fractional seconds, +// which can go up to 9 digits, up to 1 nanosecond resolution, is optional. The +// "Z" suffix indicates the timezone ("UTC"); the timezone is required. Encoding +// should always use UTC (as indicated by "Z") and a decoder should be able to +// accept both UTC and other timezones (as indicated by an offset). +// +// Timestamp.seconds must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z +// inclusive. +// Timestamp.nanos must be from 0 to 999,999,999 inclusive. + +const ( + maxTimestampSeconds = 253402300799 + minTimestampSeconds = -62135596800 +) + +func (e encoder) marshalTimestamp(m pref.Message) error { + fds := m.Descriptor().Fields() + fdSeconds := fds.ByNumber(fieldnum.Timestamp_Seconds) + fdNanos := fds.ByNumber(fieldnum.Timestamp_Nanos) + + secsVal := m.Get(fdSeconds) + nanosVal := m.Get(fdNanos) + secs := secsVal.Int() + nanos := nanosVal.Int() + if secs < minTimestampSeconds || secs > maxTimestampSeconds { + return errors.New("%s: seconds out of range %v", m.Descriptor().FullName(), secs) + } + if nanos < 0 || nanos > secondsInNanos { + return errors.New("%s: nanos out of range %v", m.Descriptor().FullName(), nanos) + } + // Uses RFC 3339, where generated output will be Z-normalized and uses 0, 3, + // 6 or 9 fractional digits. + t := time.Unix(secs, nanos).UTC() + x := t.Format("2006-01-02T15:04:05.000000000") + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, ".000") + e.WriteString(x + "Z") + return nil +} + +func (d decoder) unmarshalTimestamp(m pref.Message) error { + tok, err := d.Read() + if err != nil { + return err + } + if tok.Kind() != json.String { + return d.unexpectedTokenError(tok) + } + + t, err := time.Parse(time.RFC3339Nano, tok.ParsedString()) + if err != nil { + return d.newError(tok.Pos(), "invalid google.protobuf.Timestamp value %v", tok.RawString()) + } + // Validate seconds. No need to validate nanos because time.Parse would have + // covered that already. + secs := t.Unix() + if secs < minTimestampSeconds || secs > maxTimestampSeconds { + return d.newError(tok.Pos(), "google.protobuf.Timestamp value out of range: %v", tok.RawString()) + } + + fds := m.Descriptor().Fields() + fdSeconds := fds.ByNumber(fieldnum.Timestamp_Seconds) + fdNanos := fds.ByNumber(fieldnum.Timestamp_Nanos) + + m.Set(fdSeconds, pref.ValueOfInt64(secs)) + m.Set(fdNanos, pref.ValueOfInt32(int32(t.Nanosecond()))) + return nil +} + +// The JSON representation for a FieldMask is a JSON string where paths are +// separated by a comma. Fields name in each path are converted to/from +// lower-camel naming conventions. Encoding should fail if the path name would +// end up differently after a round-trip. + +func (e encoder) marshalFieldMask(m pref.Message) error { + fd := m.Descriptor().Fields().ByNumber(fieldnum.FieldMask_Paths) + list := m.Get(fd).List() + paths := make([]string, 0, list.Len()) + + for i := 0; i < list.Len(); i++ { + s := list.Get(i).String() + // Return error if conversion to camelCase is not reversible. + cc := strs.JSONCamelCase(s) + if s != strs.JSONSnakeCase(cc) { + return errors.New("%s.paths contains irreversible value %q", m.Descriptor().FullName(), s) + } + paths = append(paths, cc) + } + + e.WriteString(strings.Join(paths, ",")) + return nil +} + +func (d decoder) unmarshalFieldMask(m pref.Message) error { + tok, err := d.Read() + if err != nil { + return err + } + if tok.Kind() != json.String { + return d.unexpectedTokenError(tok) + } + str := strings.TrimSpace(tok.ParsedString()) + if str == "" { + return nil + } + paths := strings.Split(str, ",") + + fd := m.Descriptor().Fields().ByNumber(fieldnum.FieldMask_Paths) + list := m.Mutable(fd).List() + + for _, s := range paths { + s = strings.TrimSpace(s) + // Convert to snake_case. Unlike encoding, no validation is done because + // it is not possible to know the original path names. + list.Append(pref.ValueOfString(strs.JSONSnakeCase(s))) + } + return nil +} diff --git a/vendor/google.golang.org/protobuf/encoding/prototext/decode.go b/vendor/google.golang.org/protobuf/encoding/prototext/decode.go new file mode 100644 index 000000000..c2f8f28f2 --- /dev/null +++ b/vendor/google.golang.org/protobuf/encoding/prototext/decode.go @@ -0,0 +1,796 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package prototext + +import ( + "fmt" + "strings" + "unicode/utf8" + + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/encoding/text" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/fieldnum" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/internal/set" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/proto" + pref "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +// Unmarshal reads the given []byte into the given proto.Message. +func Unmarshal(b []byte, m proto.Message) error { + return UnmarshalOptions{}.Unmarshal(b, m) +} + +// UnmarshalOptions is a configurable textproto format unmarshaler. +type UnmarshalOptions struct { + pragma.NoUnkeyedLiterals + + // AllowPartial accepts input for messages that will result in missing + // required fields. If AllowPartial is false (the default), Unmarshal will + // return error if there are any missing required fields. + AllowPartial bool + + // DiscardUnknown specifies whether to ignore unknown fields when parsing. + // An unknown field is any field whose field name or field number does not + // resolve to any known or extension field in the message. + // By default, unmarshal rejects unknown fields as an error. + DiscardUnknown bool + + // Resolver is used for looking up types when unmarshaling + // google.protobuf.Any messages or extension fields. + // If nil, this defaults to using protoregistry.GlobalTypes. + Resolver interface { + protoregistry.MessageTypeResolver + protoregistry.ExtensionTypeResolver + } +} + +// Unmarshal reads the given []byte and populates the given proto.Message using options in +// UnmarshalOptions object. +func (o UnmarshalOptions) Unmarshal(b []byte, m proto.Message) error { + return o.unmarshal(b, m) +} + +// unmarshal is a centralized function that all unmarshal operations go through. +// For profiling purposes, avoid changing the name of this function or +// introducing other code paths for unmarshal that do not go through this. +func (o UnmarshalOptions) unmarshal(b []byte, m proto.Message) error { + proto.Reset(m) + + if o.Resolver == nil { + o.Resolver = protoregistry.GlobalTypes + } + + dec := decoder{text.NewDecoder(b), o} + if err := dec.unmarshalMessage(m.ProtoReflect(), false); err != nil { + return err + } + if o.AllowPartial { + return nil + } + return proto.CheckInitialized(m) +} + +type decoder struct { + *text.Decoder + opts UnmarshalOptions +} + +// newError returns an error object with position info. +func (d decoder) newError(pos int, f string, x ...interface{}) error { + line, column := d.Position(pos) + head := fmt.Sprintf("(line %d:%d): ", line, column) + return errors.New(head+f, x...) +} + +// unexpectedTokenError returns a syntax error for the given unexpected token. +func (d decoder) unexpectedTokenError(tok text.Token) error { + return d.syntaxError(tok.Pos(), "unexpected token: %s", tok.RawString()) +} + +// syntaxError returns a syntax error for given position. +func (d decoder) syntaxError(pos int, f string, x ...interface{}) error { + line, column := d.Position(pos) + head := fmt.Sprintf("syntax error (line %d:%d): ", line, column) + return errors.New(head+f, x...) +} + +// unmarshalMessage unmarshals into the given protoreflect.Message. +func (d decoder) unmarshalMessage(m pref.Message, checkDelims bool) error { + messageDesc := m.Descriptor() + if !flags.ProtoLegacy && messageset.IsMessageSet(messageDesc) { + return errors.New("no support for proto1 MessageSets") + } + + if messageDesc.FullName() == "google.protobuf.Any" { + return d.unmarshalAny(m, checkDelims) + } + + if checkDelims { + tok, err := d.Read() + if err != nil { + return err + } + + if tok.Kind() != text.MessageOpen { + return d.unexpectedTokenError(tok) + } + } + + var seenNums set.Ints + var seenOneofs set.Ints + fieldDescs := messageDesc.Fields() + + for { + // Read field name. + tok, err := d.Read() + if err != nil { + return err + } + switch typ := tok.Kind(); typ { + case text.Name: + // Continue below. + case text.EOF: + if checkDelims { + return text.ErrUnexpectedEOF + } + return nil + default: + if checkDelims && typ == text.MessageClose { + return nil + } + return d.unexpectedTokenError(tok) + } + + // Resolve the field descriptor. + var name pref.Name + var fd pref.FieldDescriptor + var xt pref.ExtensionType + var xtErr error + var isFieldNumberName bool + + switch tok.NameKind() { + case text.IdentName: + name = pref.Name(tok.IdentName()) + fd = fieldDescs.ByName(name) + if fd == nil { + // The proto name of a group field is in all lowercase, + // while the textproto field name is the group message name. + gd := fieldDescs.ByName(pref.Name(strings.ToLower(string(name)))) + if gd != nil && gd.Kind() == pref.GroupKind && gd.Message().Name() == name { + fd = gd + } + } else if fd.Kind() == pref.GroupKind && fd.Message().Name() != name { + fd = nil // reset since field name is actually the message name + } + + case text.TypeName: + // Handle extensions only. This code path is not for Any. + xt, xtErr = d.findExtension(pref.FullName(tok.TypeName())) + + case text.FieldNumber: + isFieldNumberName = true + num := pref.FieldNumber(tok.FieldNumber()) + if !num.IsValid() { + return d.newError(tok.Pos(), "invalid field number: %d", num) + } + fd = fieldDescs.ByNumber(num) + if fd == nil { + xt, xtErr = d.opts.Resolver.FindExtensionByNumber(messageDesc.FullName(), num) + } + } + + if xt != nil { + fd = xt.TypeDescriptor() + if !messageDesc.ExtensionRanges().Has(fd.Number()) || fd.ContainingMessage().FullName() != messageDesc.FullName() { + return d.newError(tok.Pos(), "message %v cannot be extended by %v", messageDesc.FullName(), fd.FullName()) + } + } else if xtErr != nil && xtErr != protoregistry.NotFound { + return d.newError(tok.Pos(), "unable to resolve [%s]: %v", tok.RawString(), xtErr) + } + if flags.ProtoLegacy { + if fd != nil && fd.IsWeak() && fd.Message().IsPlaceholder() { + fd = nil // reset since the weak reference is not linked in + } + } + + // Handle unknown fields. + if fd == nil { + if d.opts.DiscardUnknown || messageDesc.ReservedNames().Has(name) { + d.skipValue() + continue + } + return d.newError(tok.Pos(), "unknown field: %v", tok.RawString()) + } + + // Handle fields identified by field number. + if isFieldNumberName { + // TODO: Add an option to permit parsing field numbers. + // + // This requires careful thought as the MarshalOptions.EmitUnknown + // option allows formatting unknown fields as the field number and the + // best-effort textual representation of the field value. In that case, + // it may not be possible to unmarshal the value from a parser that does + // have information about the unknown field. + return d.newError(tok.Pos(), "cannot specify field by number: %v", tok.RawString()) + } + + switch { + case fd.IsList(): + kind := fd.Kind() + if kind != pref.MessageKind && kind != pref.GroupKind && !tok.HasSeparator() { + return d.syntaxError(tok.Pos(), "missing field separator :") + } + + list := m.Mutable(fd).List() + if err := d.unmarshalList(fd, list); err != nil { + return err + } + + case fd.IsMap(): + mmap := m.Mutable(fd).Map() + if err := d.unmarshalMap(fd, mmap); err != nil { + return err + } + + default: + kind := fd.Kind() + if kind != pref.MessageKind && kind != pref.GroupKind && !tok.HasSeparator() { + return d.syntaxError(tok.Pos(), "missing field separator :") + } + + // If field is a oneof, check if it has already been set. + if od := fd.ContainingOneof(); od != nil { + idx := uint64(od.Index()) + if seenOneofs.Has(idx) { + return d.newError(tok.Pos(), "error parsing %q, oneof %v is already set", tok.RawString(), od.FullName()) + } + seenOneofs.Set(idx) + } + + num := uint64(fd.Number()) + if seenNums.Has(num) { + return d.newError(tok.Pos(), "non-repeated field %q is repeated", tok.RawString()) + } + + if err := d.unmarshalSingular(fd, m); err != nil { + return err + } + seenNums.Set(num) + } + } + + return nil +} + +// findExtension returns protoreflect.ExtensionType from the Resolver if found. +func (d decoder) findExtension(xtName pref.FullName) (pref.ExtensionType, error) { + xt, err := d.opts.Resolver.FindExtensionByName(xtName) + if err == nil { + return xt, nil + } + return messageset.FindMessageSetExtension(d.opts.Resolver, xtName) +} + +// unmarshalSingular unmarshals a non-repeated field value specified by the +// given FieldDescriptor. +func (d decoder) unmarshalSingular(fd pref.FieldDescriptor, m pref.Message) error { + var val pref.Value + var err error + switch fd.Kind() { + case pref.MessageKind, pref.GroupKind: + val = m.NewField(fd) + err = d.unmarshalMessage(val.Message(), true) + default: + val, err = d.unmarshalScalar(fd) + } + if err == nil { + m.Set(fd, val) + } + return err +} + +// unmarshalScalar unmarshals a scalar/enum protoreflect.Value specified by the +// given FieldDescriptor. +func (d decoder) unmarshalScalar(fd pref.FieldDescriptor) (pref.Value, error) { + tok, err := d.Read() + if err != nil { + return pref.Value{}, err + } + + if tok.Kind() != text.Scalar { + return pref.Value{}, d.unexpectedTokenError(tok) + } + + kind := fd.Kind() + switch kind { + case pref.BoolKind: + if b, ok := tok.Bool(); ok { + return pref.ValueOfBool(b), nil + } + + case pref.Int32Kind, pref.Sint32Kind, pref.Sfixed32Kind: + if n, ok := tok.Int32(); ok { + return pref.ValueOfInt32(n), nil + } + + case pref.Int64Kind, pref.Sint64Kind, pref.Sfixed64Kind: + if n, ok := tok.Int64(); ok { + return pref.ValueOfInt64(n), nil + } + + case pref.Uint32Kind, pref.Fixed32Kind: + if n, ok := tok.Uint32(); ok { + return pref.ValueOfUint32(n), nil + } + + case pref.Uint64Kind, pref.Fixed64Kind: + if n, ok := tok.Uint64(); ok { + return pref.ValueOfUint64(n), nil + } + + case pref.FloatKind: + if n, ok := tok.Float32(); ok { + return pref.ValueOfFloat32(n), nil + } + + case pref.DoubleKind: + if n, ok := tok.Float64(); ok { + return pref.ValueOfFloat64(n), nil + } + + case pref.StringKind: + if s, ok := tok.String(); ok { + if strs.EnforceUTF8(fd) && !utf8.ValidString(s) { + return pref.Value{}, d.newError(tok.Pos(), "contains invalid UTF-8") + } + return pref.ValueOfString(s), nil + } + + case pref.BytesKind: + if b, ok := tok.String(); ok { + return pref.ValueOfBytes([]byte(b)), nil + } + + case pref.EnumKind: + if lit, ok := tok.Enum(); ok { + // Lookup EnumNumber based on name. + if enumVal := fd.Enum().Values().ByName(pref.Name(lit)); enumVal != nil { + return pref.ValueOfEnum(enumVal.Number()), nil + } + } + if num, ok := tok.Int32(); ok { + return pref.ValueOfEnum(pref.EnumNumber(num)), nil + } + + default: + panic(fmt.Sprintf("invalid scalar kind %v", kind)) + } + + return pref.Value{}, d.newError(tok.Pos(), "invalid value for %v type: %v", kind, tok.RawString()) +} + +// unmarshalList unmarshals into given protoreflect.List. A list value can +// either be in [] syntax or simply just a single scalar/message value. +func (d decoder) unmarshalList(fd pref.FieldDescriptor, list pref.List) error { + tok, err := d.Peek() + if err != nil { + return err + } + + switch fd.Kind() { + case pref.MessageKind, pref.GroupKind: + switch tok.Kind() { + case text.ListOpen: + d.Read() + for { + tok, err := d.Peek() + if err != nil { + return err + } + + switch tok.Kind() { + case text.ListClose: + d.Read() + return nil + case text.MessageOpen: + pval := list.NewElement() + if err := d.unmarshalMessage(pval.Message(), true); err != nil { + return err + } + list.Append(pval) + default: + return d.unexpectedTokenError(tok) + } + } + + case text.MessageOpen: + pval := list.NewElement() + if err := d.unmarshalMessage(pval.Message(), true); err != nil { + return err + } + list.Append(pval) + return nil + } + + default: + switch tok.Kind() { + case text.ListOpen: + d.Read() + for { + tok, err := d.Peek() + if err != nil { + return err + } + + switch tok.Kind() { + case text.ListClose: + d.Read() + return nil + case text.Scalar: + pval, err := d.unmarshalScalar(fd) + if err != nil { + return err + } + list.Append(pval) + default: + return d.unexpectedTokenError(tok) + } + } + + case text.Scalar: + pval, err := d.unmarshalScalar(fd) + if err != nil { + return err + } + list.Append(pval) + return nil + } + } + + return d.unexpectedTokenError(tok) +} + +// unmarshalMap unmarshals into given protoreflect.Map. A map value is a +// textproto message containing {key: , value: }. +func (d decoder) unmarshalMap(fd pref.FieldDescriptor, mmap pref.Map) error { + // Determine ahead whether map entry is a scalar type or a message type in + // order to call the appropriate unmarshalMapValue func inside + // unmarshalMapEntry. + var unmarshalMapValue func() (pref.Value, error) + switch fd.MapValue().Kind() { + case pref.MessageKind, pref.GroupKind: + unmarshalMapValue = func() (pref.Value, error) { + pval := mmap.NewValue() + if err := d.unmarshalMessage(pval.Message(), true); err != nil { + return pref.Value{}, err + } + return pval, nil + } + default: + unmarshalMapValue = func() (pref.Value, error) { + return d.unmarshalScalar(fd.MapValue()) + } + } + + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + case text.MessageOpen: + return d.unmarshalMapEntry(fd, mmap, unmarshalMapValue) + + case text.ListOpen: + for { + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + case text.ListClose: + return nil + case text.MessageOpen: + if err := d.unmarshalMapEntry(fd, mmap, unmarshalMapValue); err != nil { + return err + } + default: + return d.unexpectedTokenError(tok) + } + } + + default: + return d.unexpectedTokenError(tok) + } +} + +// unmarshalMap unmarshals into given protoreflect.Map. A map value is a +// textproto message containing {key: , value: }. +func (d decoder) unmarshalMapEntry(fd pref.FieldDescriptor, mmap pref.Map, unmarshalMapValue func() (pref.Value, error)) error { + var key pref.MapKey + var pval pref.Value +Loop: + for { + // Read field name. + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + case text.Name: + if tok.NameKind() != text.IdentName { + if !d.opts.DiscardUnknown { + return d.newError(tok.Pos(), "unknown map entry field %q", tok.RawString()) + } + d.skipValue() + continue Loop + } + // Continue below. + case text.MessageClose: + break Loop + default: + return d.unexpectedTokenError(tok) + } + + name := tok.IdentName() + switch name { + case "key": + if !tok.HasSeparator() { + return d.syntaxError(tok.Pos(), "missing field separator :") + } + if key.IsValid() { + return d.newError(tok.Pos(), `map entry "key" cannot be repeated`) + } + val, err := d.unmarshalScalar(fd.MapKey()) + if err != nil { + return err + } + key = val.MapKey() + + case "value": + if kind := fd.MapValue().Kind(); (kind != pref.MessageKind) && (kind != pref.GroupKind) { + if !tok.HasSeparator() { + return d.syntaxError(tok.Pos(), "missing field separator :") + } + } + if pval.IsValid() { + return d.newError(tok.Pos(), `map entry "value" cannot be repeated`) + } + pval, err = unmarshalMapValue() + if err != nil { + return err + } + + default: + if !d.opts.DiscardUnknown { + return d.newError(tok.Pos(), "unknown map entry field %q", name) + } + d.skipValue() + } + } + + if !key.IsValid() { + key = fd.MapKey().Default().MapKey() + } + if !pval.IsValid() { + switch fd.MapValue().Kind() { + case pref.MessageKind, pref.GroupKind: + // If value field is not set for message/group types, construct an + // empty one as default. + pval = mmap.NewValue() + default: + pval = fd.MapValue().Default() + } + } + mmap.Set(key, pval) + return nil +} + +// unmarshalAny unmarshals an Any textproto. It can either be in expanded form +// or non-expanded form. +func (d decoder) unmarshalAny(m pref.Message, checkDelims bool) error { + var typeURL string + var bValue []byte + + // hasFields tracks which valid fields have been seen in the loop below in + // order to flag an error if there are duplicates or conflicts. It may + // contain the strings "type_url", "value" and "expanded". The literal + // "expanded" is used to indicate that the expanded form has been + // encountered already. + hasFields := map[string]bool{} + + if checkDelims { + tok, err := d.Read() + if err != nil { + return err + } + + if tok.Kind() != text.MessageOpen { + return d.unexpectedTokenError(tok) + } + } + +Loop: + for { + // Read field name. Can only have 3 possible field names, i.e. type_url, + // value and type URL name inside []. + tok, err := d.Read() + if err != nil { + return err + } + if typ := tok.Kind(); typ != text.Name { + if checkDelims { + if typ == text.MessageClose { + break Loop + } + } else if typ == text.EOF { + break Loop + } + return d.unexpectedTokenError(tok) + } + + switch tok.NameKind() { + case text.IdentName: + // Both type_url and value fields require field separator :. + if !tok.HasSeparator() { + return d.syntaxError(tok.Pos(), "missing field separator :") + } + + switch tok.IdentName() { + case "type_url": + if hasFields["type_url"] { + return d.newError(tok.Pos(), "duplicate Any type_url field") + } + if hasFields["expanded"] { + return d.newError(tok.Pos(), "conflict with [%s] field", typeURL) + } + tok, err := d.Read() + if err != nil { + return err + } + var ok bool + typeURL, ok = tok.String() + if !ok { + return d.newError(tok.Pos(), "invalid Any type_url: %v", tok.RawString()) + } + hasFields["type_url"] = true + + case "value": + if hasFields["value"] { + return d.newError(tok.Pos(), "duplicate Any value field") + } + if hasFields["expanded"] { + return d.newError(tok.Pos(), "conflict with [%s] field", typeURL) + } + tok, err := d.Read() + if err != nil { + return err + } + s, ok := tok.String() + if !ok { + return d.newError(tok.Pos(), "invalid Any value: %v", tok.RawString()) + } + bValue = []byte(s) + hasFields["value"] = true + + default: + if !d.opts.DiscardUnknown { + return d.newError(tok.Pos(), "invalid field name %q in google.protobuf.Any message", tok.RawString()) + } + } + + case text.TypeName: + if hasFields["expanded"] { + return d.newError(tok.Pos(), "cannot have more than one type") + } + if hasFields["type_url"] { + return d.newError(tok.Pos(), "conflict with type_url field") + } + typeURL = tok.TypeName() + var err error + bValue, err = d.unmarshalExpandedAny(typeURL, tok.Pos()) + if err != nil { + return err + } + hasFields["expanded"] = true + + default: + if !d.opts.DiscardUnknown { + return d.newError(tok.Pos(), "invalid field name %q in google.protobuf.Any message", tok.RawString()) + } + } + } + + fds := m.Descriptor().Fields() + if len(typeURL) > 0 { + m.Set(fds.ByNumber(fieldnum.Any_TypeUrl), pref.ValueOfString(typeURL)) + } + if len(bValue) > 0 { + m.Set(fds.ByNumber(fieldnum.Any_Value), pref.ValueOfBytes(bValue)) + } + return nil +} + +func (d decoder) unmarshalExpandedAny(typeURL string, pos int) ([]byte, error) { + mt, err := d.opts.Resolver.FindMessageByURL(typeURL) + if err != nil { + return nil, d.newError(pos, "unable to resolve message [%v]: %v", typeURL, err) + } + // Create new message for the embedded message type and unmarshal the value + // field into it. + m := mt.New() + if err := d.unmarshalMessage(m, true); err != nil { + return nil, err + } + // Serialize the embedded message and return the resulting bytes. + b, err := proto.MarshalOptions{ + AllowPartial: true, // Never check required fields inside an Any. + Deterministic: true, + }.Marshal(m.Interface()) + if err != nil { + return nil, d.newError(pos, "error in marshaling message into Any.value: %v", err) + } + return b, nil +} + +// skipValue makes the decoder parse a field value in order to advance the read +// to the next field. It relies on Read returning an error if the types are not +// in valid sequence. +func (d decoder) skipValue() error { + tok, err := d.Read() + if err != nil { + return err + } + // Only need to continue reading for messages and lists. + switch tok.Kind() { + case text.MessageOpen: + return d.skipMessageValue() + + case text.ListOpen: + for { + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + case text.ListClose: + return nil + case text.MessageOpen: + return d.skipMessageValue() + default: + // Skip items. This will not validate whether skipped values are + // of the same type or not, same behavior as C++ + // TextFormat::Parser::AllowUnknownField(true) version 3.8.0. + if err := d.skipValue(); err != nil { + return err + } + } + } + } + return nil +} + +// skipMessageValue makes the decoder parse and skip over all fields in a +// message. It assumes that the previous read type is MessageOpen. +func (d decoder) skipMessageValue() error { + for { + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + case text.MessageClose: + return nil + case text.Name: + if err := d.skipValue(); err != nil { + return err + } + } + } +} diff --git a/vendor/google.golang.org/protobuf/encoding/prototext/doc.go b/vendor/google.golang.org/protobuf/encoding/prototext/doc.go new file mode 100644 index 000000000..162b4f98a --- /dev/null +++ b/vendor/google.golang.org/protobuf/encoding/prototext/doc.go @@ -0,0 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package prototext marshals and unmarshals protocol buffer messages as the +// textproto format. +package prototext diff --git a/vendor/google.golang.org/protobuf/encoding/prototext/encode.go b/vendor/google.golang.org/protobuf/encoding/prototext/encode.go new file mode 100644 index 000000000..41e5c773c --- /dev/null +++ b/vendor/google.golang.org/protobuf/encoding/prototext/encode.go @@ -0,0 +1,433 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package prototext + +import ( + "fmt" + "sort" + "strconv" + "unicode/utf8" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/encoding/text" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/fieldnum" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/internal/mapsort" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/proto" + pref "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +const defaultIndent = " " + +// Format formats the message as a multiline string. +// This function is only intended for human consumption and ignores errors. +// Do not depend on the output being stable. It may change over time across +// different versions of the program. +func Format(m proto.Message) string { + return MarshalOptions{Multiline: true}.Format(m) +} + +// Marshal writes the given proto.Message in textproto format using default +// options. Do not depend on the output being stable. It may change over time +// across different versions of the program. +func Marshal(m proto.Message) ([]byte, error) { + return MarshalOptions{}.Marshal(m) +} + +// MarshalOptions is a configurable text format marshaler. +type MarshalOptions struct { + pragma.NoUnkeyedLiterals + + // Multiline specifies whether the marshaler should format the output in + // indented-form with every textual element on a new line. + // If Indent is an empty string, then an arbitrary indent is chosen. + Multiline bool + + // Indent specifies the set of indentation characters to use in a multiline + // formatted output such that every entry is preceded by Indent and + // terminated by a newline. If non-empty, then Multiline is treated as true. + // Indent can only be composed of space or tab characters. + Indent string + + // EmitASCII specifies whether to format strings and bytes as ASCII only + // as opposed to using UTF-8 encoding when possible. + EmitASCII bool + + // allowInvalidUTF8 specifies whether to permit the encoding of strings + // with invalid UTF-8. This is unexported as it is intended to only + // be specified by the Format method. + allowInvalidUTF8 bool + + // AllowPartial allows messages that have missing required fields to marshal + // without returning an error. If AllowPartial is false (the default), + // Marshal will return error if there are any missing required fields. + AllowPartial bool + + // EmitUnknown specifies whether to emit unknown fields in the output. + // If specified, the unmarshaler may be unable to parse the output. + // The default is to exclude unknown fields. + EmitUnknown bool + + // Resolver is used for looking up types when expanding google.protobuf.Any + // messages. If nil, this defaults to using protoregistry.GlobalTypes. + Resolver interface { + protoregistry.ExtensionTypeResolver + protoregistry.MessageTypeResolver + } +} + +// Format formats the message as a string. +// This method is only intended for human consumption and ignores errors. +// Do not depend on the output being stable. It may change over time across +// different versions of the program. +func (o MarshalOptions) Format(m proto.Message) string { + if m == nil || !m.ProtoReflect().IsValid() { + return "" // invalid syntax, but okay since this is for debugging + } + o.allowInvalidUTF8 = true + o.AllowPartial = true + o.EmitUnknown = true + b, _ := o.Marshal(m) + return string(b) +} + +// Marshal writes the given proto.Message in textproto format using options in +// MarshalOptions object. Do not depend on the output being stable. It may +// change over time across different versions of the program. +func (o MarshalOptions) Marshal(m proto.Message) ([]byte, error) { + return o.marshal(m) +} + +// marshal is a centralized function that all marshal operations go through. +// For profiling purposes, avoid changing the name of this function or +// introducing other code paths for marshal that do not go through this. +func (o MarshalOptions) marshal(m proto.Message) ([]byte, error) { + var delims = [2]byte{'{', '}'} + + if o.Multiline && o.Indent == "" { + o.Indent = defaultIndent + } + if o.Resolver == nil { + o.Resolver = protoregistry.GlobalTypes + } + + internalEnc, err := text.NewEncoder(o.Indent, delims, o.EmitASCII) + if err != nil { + return nil, err + } + + // Treat nil message interface as an empty message, + // in which case there is nothing to output. + if m == nil { + return []byte{}, nil + } + + enc := encoder{internalEnc, o} + err = enc.marshalMessage(m.ProtoReflect(), false) + if err != nil { + return nil, err + } + out := enc.Bytes() + if len(o.Indent) > 0 && len(out) > 0 { + out = append(out, '\n') + } + if o.AllowPartial { + return out, nil + } + return out, proto.CheckInitialized(m) +} + +type encoder struct { + *text.Encoder + opts MarshalOptions +} + +// marshalMessage marshals the given protoreflect.Message. +func (e encoder) marshalMessage(m pref.Message, inclDelims bool) error { + messageDesc := m.Descriptor() + if !flags.ProtoLegacy && messageset.IsMessageSet(messageDesc) { + return errors.New("no support for proto1 MessageSets") + } + + if inclDelims { + e.StartMessage() + defer e.EndMessage() + } + + // Handle Any expansion. + if messageDesc.FullName() == "google.protobuf.Any" { + if e.marshalAny(m) { + return nil + } + // If unable to expand, continue on to marshal Any as a regular message. + } + + // Marshal known fields. + fieldDescs := messageDesc.Fields() + size := fieldDescs.Len() + for i := 0; i < size; { + fd := fieldDescs.Get(i) + if od := fd.ContainingOneof(); od != nil { + fd = m.WhichOneof(od) + i += od.Fields().Len() + } else { + i++ + } + + if fd == nil || !m.Has(fd) { + continue + } + + name := fd.Name() + // Use type name for group field name. + if fd.Kind() == pref.GroupKind { + name = fd.Message().Name() + } + val := m.Get(fd) + if err := e.marshalField(string(name), val, fd); err != nil { + return err + } + } + + // Marshal extensions. + if err := e.marshalExtensions(m); err != nil { + return err + } + + // Marshal unknown fields. + if e.opts.EmitUnknown { + e.marshalUnknown(m.GetUnknown()) + } + + return nil +} + +// marshalField marshals the given field with protoreflect.Value. +func (e encoder) marshalField(name string, val pref.Value, fd pref.FieldDescriptor) error { + switch { + case fd.IsList(): + return e.marshalList(name, val.List(), fd) + case fd.IsMap(): + return e.marshalMap(name, val.Map(), fd) + default: + e.WriteName(name) + return e.marshalSingular(val, fd) + } +} + +// marshalSingular marshals the given non-repeated field value. This includes +// all scalar types, enums, messages, and groups. +func (e encoder) marshalSingular(val pref.Value, fd pref.FieldDescriptor) error { + kind := fd.Kind() + switch kind { + case pref.BoolKind: + e.WriteBool(val.Bool()) + + case pref.StringKind: + s := val.String() + if !e.opts.allowInvalidUTF8 && strs.EnforceUTF8(fd) && !utf8.ValidString(s) { + return errors.InvalidUTF8(string(fd.FullName())) + } + e.WriteString(s) + + case pref.Int32Kind, pref.Int64Kind, + pref.Sint32Kind, pref.Sint64Kind, + pref.Sfixed32Kind, pref.Sfixed64Kind: + e.WriteInt(val.Int()) + + case pref.Uint32Kind, pref.Uint64Kind, + pref.Fixed32Kind, pref.Fixed64Kind: + e.WriteUint(val.Uint()) + + case pref.FloatKind: + // Encoder.WriteFloat handles the special numbers NaN and infinites. + e.WriteFloat(val.Float(), 32) + + case pref.DoubleKind: + // Encoder.WriteFloat handles the special numbers NaN and infinites. + e.WriteFloat(val.Float(), 64) + + case pref.BytesKind: + e.WriteString(string(val.Bytes())) + + case pref.EnumKind: + num := val.Enum() + if desc := fd.Enum().Values().ByNumber(num); desc != nil { + e.WriteLiteral(string(desc.Name())) + } else { + // Use numeric value if there is no enum description. + e.WriteInt(int64(num)) + } + + case pref.MessageKind, pref.GroupKind: + return e.marshalMessage(val.Message(), true) + + default: + panic(fmt.Sprintf("%v has unknown kind: %v", fd.FullName(), kind)) + } + return nil +} + +// marshalList marshals the given protoreflect.List as multiple name-value fields. +func (e encoder) marshalList(name string, list pref.List, fd pref.FieldDescriptor) error { + size := list.Len() + for i := 0; i < size; i++ { + e.WriteName(name) + if err := e.marshalSingular(list.Get(i), fd); err != nil { + return err + } + } + return nil +} + +// marshalMap marshals the given protoreflect.Map as multiple name-value fields. +func (e encoder) marshalMap(name string, mmap pref.Map, fd pref.FieldDescriptor) error { + var err error + mapsort.Range(mmap, fd.MapKey().Kind(), func(key pref.MapKey, val pref.Value) bool { + e.WriteName(name) + e.StartMessage() + defer e.EndMessage() + + e.WriteName("key") + err = e.marshalSingular(key.Value(), fd.MapKey()) + if err != nil { + return false + } + + e.WriteName("value") + err = e.marshalSingular(val, fd.MapValue()) + if err != nil { + return false + } + return true + }) + return err +} + +// marshalExtensions marshals extension fields. +func (e encoder) marshalExtensions(m pref.Message) error { + type entry struct { + key string + value pref.Value + desc pref.FieldDescriptor + } + + // Get a sorted list based on field key first. + var entries []entry + m.Range(func(fd pref.FieldDescriptor, v pref.Value) bool { + if !fd.IsExtension() { + return true + } + // For MessageSet extensions, the name used is the parent message. + name := fd.FullName() + if messageset.IsMessageSetExtension(fd) { + name = name.Parent() + } + entries = append(entries, entry{ + key: string(name), + value: v, + desc: fd, + }) + return true + }) + // Sort extensions lexicographically. + sort.Slice(entries, func(i, j int) bool { + return entries[i].key < entries[j].key + }) + + // Write out sorted list. + for _, entry := range entries { + // Extension field name is the proto field name enclosed in []. + name := "[" + entry.key + "]" + if err := e.marshalField(name, entry.value, entry.desc); err != nil { + return err + } + } + return nil +} + +// marshalUnknown parses the given []byte and marshals fields out. +// This function assumes proper encoding in the given []byte. +func (e encoder) marshalUnknown(b []byte) { + const dec = 10 + const hex = 16 + for len(b) > 0 { + num, wtype, n := protowire.ConsumeTag(b) + b = b[n:] + e.WriteName(strconv.FormatInt(int64(num), dec)) + + switch wtype { + case protowire.VarintType: + var v uint64 + v, n = protowire.ConsumeVarint(b) + e.WriteUint(v) + case protowire.Fixed32Type: + var v uint32 + v, n = protowire.ConsumeFixed32(b) + e.WriteLiteral("0x" + strconv.FormatUint(uint64(v), hex)) + case protowire.Fixed64Type: + var v uint64 + v, n = protowire.ConsumeFixed64(b) + e.WriteLiteral("0x" + strconv.FormatUint(v, hex)) + case protowire.BytesType: + var v []byte + v, n = protowire.ConsumeBytes(b) + e.WriteString(string(v)) + case protowire.StartGroupType: + e.StartMessage() + var v []byte + v, n = protowire.ConsumeGroup(num, b) + e.marshalUnknown(v) + e.EndMessage() + default: + panic(fmt.Sprintf("prototext: error parsing unknown field wire type: %v", wtype)) + } + + b = b[n:] + } +} + +// marshalAny marshals the given google.protobuf.Any message in expanded form. +// It returns true if it was able to marshal, else false. +func (e encoder) marshalAny(any pref.Message) bool { + // Construct the embedded message. + fds := any.Descriptor().Fields() + fdType := fds.ByNumber(fieldnum.Any_TypeUrl) + typeURL := any.Get(fdType).String() + mt, err := e.opts.Resolver.FindMessageByURL(typeURL) + if err != nil { + return false + } + m := mt.New().Interface() + + // Unmarshal bytes into embedded message. + fdValue := fds.ByNumber(fieldnum.Any_Value) + value := any.Get(fdValue) + err = proto.UnmarshalOptions{ + AllowPartial: true, + Resolver: e.opts.Resolver, + }.Unmarshal(value.Bytes(), m) + if err != nil { + return false + } + + // Get current encoder position. If marshaling fails, reset encoder output + // back to this position. + pos := e.Snapshot() + + // Field name is the proto field name enclosed in []. + e.WriteName("[" + typeURL + "]") + err = e.marshalMessage(m.ProtoReflect(), true) + if err != nil { + e.Reset(pos) + return false + } + return true +} diff --git a/vendor/google.golang.org/protobuf/encoding/protowire/wire.go b/vendor/google.golang.org/protobuf/encoding/protowire/wire.go new file mode 100644 index 000000000..a427f8b70 --- /dev/null +++ b/vendor/google.golang.org/protobuf/encoding/protowire/wire.go @@ -0,0 +1,538 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protowire parses and formats the raw wire encoding. +// See https://developers.google.com/protocol-buffers/docs/encoding. +// +// For marshaling and unmarshaling entire protobuf messages, +// use the "google.golang.org/protobuf/proto" package instead. +package protowire + +import ( + "io" + "math" + "math/bits" + + "google.golang.org/protobuf/internal/errors" +) + +// Number represents the field number. +type Number int32 + +const ( + MinValidNumber Number = 1 + FirstReservedNumber Number = 19000 + LastReservedNumber Number = 19999 + MaxValidNumber Number = 1<<29 - 1 +) + +// IsValid reports whether the field number is semantically valid. +// +// Note that while numbers within the reserved range are semantically invalid, +// they are syntactically valid in the wire format. +// Implementations may treat records with reserved field numbers as unknown. +func (n Number) IsValid() bool { + return MinValidNumber <= n && n < FirstReservedNumber || LastReservedNumber < n && n <= MaxValidNumber +} + +// Type represents the wire type. +type Type int8 + +const ( + VarintType Type = 0 + Fixed32Type Type = 5 + Fixed64Type Type = 1 + BytesType Type = 2 + StartGroupType Type = 3 + EndGroupType Type = 4 +) + +const ( + _ = -iota + errCodeTruncated + errCodeFieldNumber + errCodeOverflow + errCodeReserved + errCodeEndGroup +) + +var ( + errFieldNumber = errors.New("invalid field number") + errOverflow = errors.New("variable length integer overflow") + errReserved = errors.New("cannot parse reserved wire type") + errEndGroup = errors.New("mismatching end group marker") + errParse = errors.New("parse error") +) + +// ParseError converts an error code into an error value. +// This returns nil if n is a non-negative number. +func ParseError(n int) error { + if n >= 0 { + return nil + } + switch n { + case errCodeTruncated: + return io.ErrUnexpectedEOF + case errCodeFieldNumber: + return errFieldNumber + case errCodeOverflow: + return errOverflow + case errCodeReserved: + return errReserved + case errCodeEndGroup: + return errEndGroup + default: + return errParse + } +} + +// ConsumeField parses an entire field record (both tag and value) and returns +// the field number, the wire type, and the total length. +// This returns a negative length upon an error (see ParseError). +// +// The total length includes the tag header and the end group marker (if the +// field is a group). +func ConsumeField(b []byte) (Number, Type, int) { + num, typ, n := ConsumeTag(b) + if n < 0 { + return 0, 0, n // forward error code + } + m := ConsumeFieldValue(num, typ, b[n:]) + if m < 0 { + return 0, 0, m // forward error code + } + return num, typ, n + m +} + +// ConsumeFieldValue parses a field value and returns its length. +// This assumes that the field Number and wire Type have already been parsed. +// This returns a negative length upon an error (see ParseError). +// +// When parsing a group, the length includes the end group marker and +// the end group is verified to match the starting field number. +func ConsumeFieldValue(num Number, typ Type, b []byte) (n int) { + switch typ { + case VarintType: + _, n = ConsumeVarint(b) + return n + case Fixed32Type: + _, n = ConsumeFixed32(b) + return n + case Fixed64Type: + _, n = ConsumeFixed64(b) + return n + case BytesType: + _, n = ConsumeBytes(b) + return n + case StartGroupType: + n0 := len(b) + for { + num2, typ2, n := ConsumeTag(b) + if n < 0 { + return n // forward error code + } + b = b[n:] + if typ2 == EndGroupType { + if num != num2 { + return errCodeEndGroup + } + return n0 - len(b) + } + + n = ConsumeFieldValue(num2, typ2, b) + if n < 0 { + return n // forward error code + } + b = b[n:] + } + case EndGroupType: + return errCodeEndGroup + default: + return errCodeReserved + } +} + +// AppendTag encodes num and typ as a varint-encoded tag and appends it to b. +func AppendTag(b []byte, num Number, typ Type) []byte { + return AppendVarint(b, EncodeTag(num, typ)) +} + +// ConsumeTag parses b as a varint-encoded tag, reporting its length. +// This returns a negative length upon an error (see ParseError). +func ConsumeTag(b []byte) (Number, Type, int) { + v, n := ConsumeVarint(b) + if n < 0 { + return 0, 0, n // forward error code + } + num, typ := DecodeTag(v) + if num < MinValidNumber { + return 0, 0, errCodeFieldNumber + } + return num, typ, n +} + +func SizeTag(num Number) int { + return SizeVarint(EncodeTag(num, 0)) // wire type has no effect on size +} + +// AppendVarint appends v to b as a varint-encoded uint64. +func AppendVarint(b []byte, v uint64) []byte { + switch { + case v < 1<<7: + b = append(b, byte(v)) + case v < 1<<14: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte(v>>7)) + case v < 1<<21: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte(v>>14)) + case v < 1<<28: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte(v>>21)) + case v < 1<<35: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte(v>>28)) + case v < 1<<42: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte(v>>35)) + case v < 1<<49: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte((v>>35)&0x7f|0x80), + byte(v>>42)) + case v < 1<<56: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte((v>>35)&0x7f|0x80), + byte((v>>42)&0x7f|0x80), + byte(v>>49)) + case v < 1<<63: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte((v>>35)&0x7f|0x80), + byte((v>>42)&0x7f|0x80), + byte((v>>49)&0x7f|0x80), + byte(v>>56)) + default: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte((v>>35)&0x7f|0x80), + byte((v>>42)&0x7f|0x80), + byte((v>>49)&0x7f|0x80), + byte((v>>56)&0x7f|0x80), + 1) + } + return b +} + +// ConsumeVarint parses b as a varint-encoded uint64, reporting its length. +// This returns a negative length upon an error (see ParseError). +func ConsumeVarint(b []byte) (v uint64, n int) { + var y uint64 + if len(b) <= 0 { + return 0, errCodeTruncated + } + v = uint64(b[0]) + if v < 0x80 { + return v, 1 + } + v -= 0x80 + + if len(b) <= 1 { + return 0, errCodeTruncated + } + y = uint64(b[1]) + v += y << 7 + if y < 0x80 { + return v, 2 + } + v -= 0x80 << 7 + + if len(b) <= 2 { + return 0, errCodeTruncated + } + y = uint64(b[2]) + v += y << 14 + if y < 0x80 { + return v, 3 + } + v -= 0x80 << 14 + + if len(b) <= 3 { + return 0, errCodeTruncated + } + y = uint64(b[3]) + v += y << 21 + if y < 0x80 { + return v, 4 + } + v -= 0x80 << 21 + + if len(b) <= 4 { + return 0, errCodeTruncated + } + y = uint64(b[4]) + v += y << 28 + if y < 0x80 { + return v, 5 + } + v -= 0x80 << 28 + + if len(b) <= 5 { + return 0, errCodeTruncated + } + y = uint64(b[5]) + v += y << 35 + if y < 0x80 { + return v, 6 + } + v -= 0x80 << 35 + + if len(b) <= 6 { + return 0, errCodeTruncated + } + y = uint64(b[6]) + v += y << 42 + if y < 0x80 { + return v, 7 + } + v -= 0x80 << 42 + + if len(b) <= 7 { + return 0, errCodeTruncated + } + y = uint64(b[7]) + v += y << 49 + if y < 0x80 { + return v, 8 + } + v -= 0x80 << 49 + + if len(b) <= 8 { + return 0, errCodeTruncated + } + y = uint64(b[8]) + v += y << 56 + if y < 0x80 { + return v, 9 + } + v -= 0x80 << 56 + + if len(b) <= 9 { + return 0, errCodeTruncated + } + y = uint64(b[9]) + v += y << 63 + if y < 2 { + return v, 10 + } + return 0, errCodeOverflow +} + +// SizeVarint returns the encoded size of a varint. +// The size is guaranteed to be within 1 and 10, inclusive. +func SizeVarint(v uint64) int { + // This computes 1 + (bits.Len64(v)-1)/7. + // 9/64 is a good enough approximation of 1/7 + return int(9*uint32(bits.Len64(v))+64) / 64 +} + +// AppendFixed32 appends v to b as a little-endian uint32. +func AppendFixed32(b []byte, v uint32) []byte { + return append(b, + byte(v>>0), + byte(v>>8), + byte(v>>16), + byte(v>>24)) +} + +// ConsumeFixed32 parses b as a little-endian uint32, reporting its length. +// This returns a negative length upon an error (see ParseError). +func ConsumeFixed32(b []byte) (v uint32, n int) { + if len(b) < 4 { + return 0, errCodeTruncated + } + v = uint32(b[0])<<0 | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 + return v, 4 +} + +// SizeFixed32 returns the encoded size of a fixed32; which is always 4. +func SizeFixed32() int { + return 4 +} + +// AppendFixed64 appends v to b as a little-endian uint64. +func AppendFixed64(b []byte, v uint64) []byte { + return append(b, + byte(v>>0), + byte(v>>8), + byte(v>>16), + byte(v>>24), + byte(v>>32), + byte(v>>40), + byte(v>>48), + byte(v>>56)) +} + +// ConsumeFixed64 parses b as a little-endian uint64, reporting its length. +// This returns a negative length upon an error (see ParseError). +func ConsumeFixed64(b []byte) (v uint64, n int) { + if len(b) < 8 { + return 0, errCodeTruncated + } + v = uint64(b[0])<<0 | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 + return v, 8 +} + +// SizeFixed64 returns the encoded size of a fixed64; which is always 8. +func SizeFixed64() int { + return 8 +} + +// AppendBytes appends v to b as a length-prefixed bytes value. +func AppendBytes(b []byte, v []byte) []byte { + return append(AppendVarint(b, uint64(len(v))), v...) +} + +// ConsumeBytes parses b as a length-prefixed bytes value, reporting its length. +// This returns a negative length upon an error (see ParseError). +func ConsumeBytes(b []byte) (v []byte, n int) { + m, n := ConsumeVarint(b) + if n < 0 { + return nil, n // forward error code + } + if m > uint64(len(b[n:])) { + return nil, errCodeTruncated + } + return b[n:][:m], n + int(m) +} + +// SizeBytes returns the encoded size of a length-prefixed bytes value, +// given only the length. +func SizeBytes(n int) int { + return SizeVarint(uint64(n)) + n +} + +// AppendString appends v to b as a length-prefixed bytes value. +func AppendString(b []byte, v string) []byte { + return append(AppendVarint(b, uint64(len(v))), v...) +} + +// ConsumeString parses b as a length-prefixed bytes value, reporting its length. +// This returns a negative length upon an error (see ParseError). +func ConsumeString(b []byte) (v string, n int) { + bb, n := ConsumeBytes(b) + return string(bb), n +} + +// AppendGroup appends v to b as group value, with a trailing end group marker. +// The value v must not contain the end marker. +func AppendGroup(b []byte, num Number, v []byte) []byte { + return AppendVarint(append(b, v...), EncodeTag(num, EndGroupType)) +} + +// ConsumeGroup parses b as a group value until the trailing end group marker, +// and verifies that the end marker matches the provided num. The value v +// does not contain the end marker, while the length does contain the end marker. +// This returns a negative length upon an error (see ParseError). +func ConsumeGroup(num Number, b []byte) (v []byte, n int) { + n = ConsumeFieldValue(num, StartGroupType, b) + if n < 0 { + return nil, n // forward error code + } + b = b[:n] + + // Truncate off end group marker, but need to handle denormalized varints. + // Assuming end marker is never 0 (which is always the case since + // EndGroupType is non-zero), we can truncate all trailing bytes where the + // lower 7 bits are all zero (implying that the varint is denormalized). + for len(b) > 0 && b[len(b)-1]&0x7f == 0 { + b = b[:len(b)-1] + } + b = b[:len(b)-SizeTag(num)] + return b, n +} + +// SizeGroup returns the encoded size of a group, given only the length. +func SizeGroup(num Number, n int) int { + return n + SizeTag(num) +} + +// DecodeTag decodes the field Number and wire Type from its unified form. +// The Number is -1 if the decoded field number overflows int32. +// Other than overflow, this does not check for field number validity. +func DecodeTag(x uint64) (Number, Type) { + // NOTE: MessageSet allows for larger field numbers than normal. + if x>>3 > uint64(math.MaxInt32) { + return -1, 0 + } + return Number(x >> 3), Type(x & 7) +} + +// EncodeTag encodes the field Number and wire Type into its unified form. +func EncodeTag(num Number, typ Type) uint64 { + return uint64(num)<<3 | uint64(typ&7) +} + +// DecodeZigZag decodes a zig-zag-encoded uint64 as an int64. +// Input: {…, 5, 3, 1, 0, 2, 4, 6, …} +// Output: {…, -3, -2, -1, 0, +1, +2, +3, …} +func DecodeZigZag(x uint64) int64 { + return int64(x>>1) ^ int64(x)<<63>>63 +} + +// EncodeZigZag encodes an int64 as a zig-zag-encoded uint64. +// Input: {…, -3, -2, -1, 0, +1, +2, +3, …} +// Output: {…, 5, 3, 1, 0, 2, 4, 6, …} +func EncodeZigZag(x int64) uint64 { + return uint64(x<<1) ^ uint64(x>>63) +} + +// DecodeBool decodes a uint64 as a bool. +// Input: { 0, 1, 2, …} +// Output: {false, true, true, …} +func DecodeBool(x uint64) bool { + return x != 0 +} + +// EncodeBool encodes a bool as a uint64. +// Input: {false, true} +// Output: { 0, 1} +func EncodeBool(x bool) uint64 { + if x { + return 1 + } + return 0 +} diff --git a/vendor/google.golang.org/protobuf/internal/descfmt/stringer.go b/vendor/google.golang.org/protobuf/internal/descfmt/stringer.go new file mode 100644 index 000000000..e7af0fe0d --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/descfmt/stringer.go @@ -0,0 +1,316 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package descfmt provides functionality to format descriptors. +package descfmt + +import ( + "fmt" + "io" + "reflect" + "strconv" + "strings" + + "google.golang.org/protobuf/internal/detrand" + "google.golang.org/protobuf/internal/pragma" + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +type list interface { + Len() int + pragma.DoNotImplement +} + +func FormatList(s fmt.State, r rune, vs list) { + io.WriteString(s, formatListOpt(vs, true, r == 'v' && (s.Flag('+') || s.Flag('#')))) +} +func formatListOpt(vs list, isRoot, allowMulti bool) string { + start, end := "[", "]" + if isRoot { + var name string + switch vs.(type) { + case pref.Names: + name = "Names" + case pref.FieldNumbers: + name = "FieldNumbers" + case pref.FieldRanges: + name = "FieldRanges" + case pref.EnumRanges: + name = "EnumRanges" + case pref.FileImports: + name = "FileImports" + case pref.Descriptor: + name = reflect.ValueOf(vs).MethodByName("Get").Type().Out(0).Name() + "s" + } + start, end = name+"{", "}" + } + + var ss []string + switch vs := vs.(type) { + case pref.Names: + for i := 0; i < vs.Len(); i++ { + ss = append(ss, fmt.Sprint(vs.Get(i))) + } + return start + joinStrings(ss, false) + end + case pref.FieldNumbers: + for i := 0; i < vs.Len(); i++ { + ss = append(ss, fmt.Sprint(vs.Get(i))) + } + return start + joinStrings(ss, false) + end + case pref.FieldRanges: + for i := 0; i < vs.Len(); i++ { + r := vs.Get(i) + if r[0]+1 == r[1] { + ss = append(ss, fmt.Sprintf("%d", r[0])) + } else { + ss = append(ss, fmt.Sprintf("%d:%d", r[0], r[1])) // enum ranges are end exclusive + } + } + return start + joinStrings(ss, false) + end + case pref.EnumRanges: + for i := 0; i < vs.Len(); i++ { + r := vs.Get(i) + if r[0] == r[1] { + ss = append(ss, fmt.Sprintf("%d", r[0])) + } else { + ss = append(ss, fmt.Sprintf("%d:%d", r[0], int64(r[1])+1)) // enum ranges are end inclusive + } + } + return start + joinStrings(ss, false) + end + case pref.FileImports: + for i := 0; i < vs.Len(); i++ { + var rs records + rs.Append(reflect.ValueOf(vs.Get(i)), "Path", "Package", "IsPublic", "IsWeak") + ss = append(ss, "{"+rs.Join()+"}") + } + return start + joinStrings(ss, allowMulti) + end + default: + _, isEnumValue := vs.(pref.EnumValueDescriptors) + for i := 0; i < vs.Len(); i++ { + m := reflect.ValueOf(vs).MethodByName("Get") + v := m.Call([]reflect.Value{reflect.ValueOf(i)})[0].Interface() + ss = append(ss, formatDescOpt(v.(pref.Descriptor), false, allowMulti && !isEnumValue)) + } + return start + joinStrings(ss, allowMulti && isEnumValue) + end + } +} + +// descriptorAccessors is a list of accessors to print for each descriptor. +// +// Do not print all accessors since some contain redundant information, +// while others are pointers that we do not want to follow since the descriptor +// is actually a cyclic graph. +// +// Using a list allows us to print the accessors in a sensible order. +var descriptorAccessors = map[reflect.Type][]string{ + reflect.TypeOf((*pref.FileDescriptor)(nil)).Elem(): {"Path", "Package", "Imports", "Messages", "Enums", "Extensions", "Services"}, + reflect.TypeOf((*pref.MessageDescriptor)(nil)).Elem(): {"IsMapEntry", "Fields", "Oneofs", "ReservedNames", "ReservedRanges", "RequiredNumbers", "ExtensionRanges", "Messages", "Enums", "Extensions"}, + reflect.TypeOf((*pref.FieldDescriptor)(nil)).Elem(): {"Number", "Cardinality", "Kind", "HasJSONName", "JSONName", "HasPresence", "IsExtension", "IsPacked", "IsWeak", "IsList", "IsMap", "MapKey", "MapValue", "HasDefault", "Default", "ContainingOneof", "ContainingMessage", "Message", "Enum"}, + reflect.TypeOf((*pref.OneofDescriptor)(nil)).Elem(): {"Fields"}, // not directly used; must keep in sync with formatDescOpt + reflect.TypeOf((*pref.EnumDescriptor)(nil)).Elem(): {"Values", "ReservedNames", "ReservedRanges"}, + reflect.TypeOf((*pref.EnumValueDescriptor)(nil)).Elem(): {"Number"}, + reflect.TypeOf((*pref.ServiceDescriptor)(nil)).Elem(): {"Methods"}, + reflect.TypeOf((*pref.MethodDescriptor)(nil)).Elem(): {"Input", "Output", "IsStreamingClient", "IsStreamingServer"}, +} + +func FormatDesc(s fmt.State, r rune, t pref.Descriptor) { + io.WriteString(s, formatDescOpt(t, true, r == 'v' && (s.Flag('+') || s.Flag('#')))) +} +func formatDescOpt(t pref.Descriptor, isRoot, allowMulti bool) string { + rv := reflect.ValueOf(t) + rt := rv.MethodByName("ProtoType").Type().In(0) + + start, end := "{", "}" + if isRoot { + start = rt.Name() + "{" + } + + _, isFile := t.(pref.FileDescriptor) + rs := records{allowMulti: allowMulti} + if t.IsPlaceholder() { + if isFile { + rs.Append(rv, "Path", "Package", "IsPlaceholder") + } else { + rs.Append(rv, "FullName", "IsPlaceholder") + } + } else { + switch { + case isFile: + rs.Append(rv, "Syntax") + case isRoot: + rs.Append(rv, "Syntax", "FullName") + default: + rs.Append(rv, "Name") + } + switch t := t.(type) { + case pref.FieldDescriptor: + for _, s := range descriptorAccessors[rt] { + switch s { + case "MapKey": + if k := t.MapKey(); k != nil { + rs.recs = append(rs.recs, [2]string{"MapKey", k.Kind().String()}) + } + case "MapValue": + if v := t.MapValue(); v != nil { + switch v.Kind() { + case pref.EnumKind: + rs.recs = append(rs.recs, [2]string{"MapValue", string(v.Enum().FullName())}) + case pref.MessageKind, pref.GroupKind: + rs.recs = append(rs.recs, [2]string{"MapValue", string(v.Message().FullName())}) + default: + rs.recs = append(rs.recs, [2]string{"MapValue", v.Kind().String()}) + } + } + case "ContainingOneof": + if od := t.ContainingOneof(); od != nil { + rs.recs = append(rs.recs, [2]string{"Oneof", string(od.Name())}) + } + case "ContainingMessage": + if t.IsExtension() { + rs.recs = append(rs.recs, [2]string{"Extendee", string(t.ContainingMessage().FullName())}) + } + case "Message": + if !t.IsMap() { + rs.Append(rv, s) + } + default: + rs.Append(rv, s) + } + } + case pref.OneofDescriptor: + var ss []string + fs := t.Fields() + for i := 0; i < fs.Len(); i++ { + ss = append(ss, string(fs.Get(i).Name())) + } + if len(ss) > 0 { + rs.recs = append(rs.recs, [2]string{"Fields", "[" + joinStrings(ss, false) + "]"}) + } + default: + rs.Append(rv, descriptorAccessors[rt]...) + } + if rv.MethodByName("GoType").IsValid() { + rs.Append(rv, "GoType") + } + } + return start + rs.Join() + end +} + +type records struct { + recs [][2]string + allowMulti bool +} + +func (rs *records) Append(v reflect.Value, accessors ...string) { + for _, a := range accessors { + var rv reflect.Value + if m := v.MethodByName(a); m.IsValid() { + rv = m.Call(nil)[0] + } + if v.Kind() == reflect.Struct && !rv.IsValid() { + rv = v.FieldByName(a) + } + if !rv.IsValid() { + panic(fmt.Sprintf("unknown accessor: %v.%s", v.Type(), a)) + } + if _, ok := rv.Interface().(pref.Value); ok { + rv = rv.MethodByName("Interface").Call(nil)[0] + if !rv.IsNil() { + rv = rv.Elem() + } + } + + // Ignore zero values. + var isZero bool + switch rv.Kind() { + case reflect.Interface, reflect.Slice: + isZero = rv.IsNil() + case reflect.Bool: + isZero = rv.Bool() == false + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + isZero = rv.Int() == 0 + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: + isZero = rv.Uint() == 0 + case reflect.String: + isZero = rv.String() == "" + } + if n, ok := rv.Interface().(list); ok { + isZero = n.Len() == 0 + } + if isZero { + continue + } + + // Format the value. + var s string + v := rv.Interface() + switch v := v.(type) { + case list: + s = formatListOpt(v, false, rs.allowMulti) + case pref.FieldDescriptor, pref.OneofDescriptor, pref.EnumValueDescriptor, pref.MethodDescriptor: + s = string(v.(pref.Descriptor).Name()) + case pref.Descriptor: + s = string(v.FullName()) + case string: + s = strconv.Quote(v) + case []byte: + s = fmt.Sprintf("%q", v) + default: + s = fmt.Sprint(v) + } + rs.recs = append(rs.recs, [2]string{a, s}) + } +} + +func (rs *records) Join() string { + var ss []string + + // In single line mode, simply join all records with commas. + if !rs.allowMulti { + for _, r := range rs.recs { + ss = append(ss, r[0]+formatColon(0)+r[1]) + } + return joinStrings(ss, false) + } + + // In allowMulti line mode, align single line records for more readable output. + var maxLen int + flush := func(i int) { + for _, r := range rs.recs[len(ss):i] { + ss = append(ss, r[0]+formatColon(maxLen-len(r[0]))+r[1]) + } + maxLen = 0 + } + for i, r := range rs.recs { + if isMulti := strings.Contains(r[1], "\n"); isMulti { + flush(i) + ss = append(ss, r[0]+formatColon(0)+strings.Join(strings.Split(r[1], "\n"), "\n\t")) + } else if maxLen < len(r[0]) { + maxLen = len(r[0]) + } + } + flush(len(rs.recs)) + return joinStrings(ss, true) +} + +func formatColon(padding int) string { + // Deliberately introduce instability into the debug output to + // discourage users from performing string comparisons. + // This provides us flexibility to change the output in the future. + if detrand.Bool() { + return ":" + strings.Repeat(" ", 1+padding) // use non-breaking spaces (U+00a0) + } else { + return ":" + strings.Repeat(" ", 1+padding) // use regular spaces (U+0020) + } +} + +func joinStrings(ss []string, isMulti bool) string { + if len(ss) == 0 { + return "" + } + if isMulti { + return "\n\t" + strings.Join(ss, "\n\t") + "\n" + } + return strings.Join(ss, ", ") +} diff --git a/vendor/google.golang.org/protobuf/internal/descopts/options.go b/vendor/google.golang.org/protobuf/internal/descopts/options.go new file mode 100644 index 000000000..8401be8c8 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/descopts/options.go @@ -0,0 +1,29 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package descopts contains the nil pointers to concrete descriptor options. +// +// This package exists as a form of reverse dependency injection so that certain +// packages (e.g., internal/filedesc and internal/filetype can avoid a direct +// dependency on the descriptor proto package). +package descopts + +import pref "google.golang.org/protobuf/reflect/protoreflect" + +// These variables are set by the init function in descriptor.pb.go via logic +// in internal/filetype. In other words, so long as the descriptor proto package +// is linked in, these variables will be populated. +// +// Each variable is populated with a nil pointer to the options struct. +var ( + File pref.ProtoMessage + Enum pref.ProtoMessage + EnumValue pref.ProtoMessage + Message pref.ProtoMessage + Field pref.ProtoMessage + Oneof pref.ProtoMessage + ExtensionRange pref.ProtoMessage + Service pref.ProtoMessage + Method pref.ProtoMessage +) diff --git a/vendor/google.golang.org/protobuf/internal/detectknown/detect.go b/vendor/google.golang.org/protobuf/internal/detectknown/detect.go new file mode 100644 index 000000000..f411e39e3 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/detectknown/detect.go @@ -0,0 +1,64 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package detectknown provides functionality for detecting well-known types +// and identifying them by name. +package detectknown + +import "google.golang.org/protobuf/reflect/protoreflect" + +type ProtoFile int + +const ( + Unknown ProtoFile = iota + AnyProto + TimestampProto + DurationProto + WrappersProto + StructProto + FieldMaskProto + ApiProto + TypeProto + SourceContextProto + EmptyProto +) + +var wellKnownTypes = map[protoreflect.FullName]ProtoFile{ + "google.protobuf.Any": AnyProto, + "google.protobuf.Timestamp": TimestampProto, + "google.protobuf.Duration": DurationProto, + "google.protobuf.BoolValue": WrappersProto, + "google.protobuf.Int32Value": WrappersProto, + "google.protobuf.Int64Value": WrappersProto, + "google.protobuf.UInt32Value": WrappersProto, + "google.protobuf.UInt64Value": WrappersProto, + "google.protobuf.FloatValue": WrappersProto, + "google.protobuf.DoubleValue": WrappersProto, + "google.protobuf.BytesValue": WrappersProto, + "google.protobuf.StringValue": WrappersProto, + "google.protobuf.Struct": StructProto, + "google.protobuf.ListValue": StructProto, + "google.protobuf.Value": StructProto, + "google.protobuf.NullValue": StructProto, + "google.protobuf.FieldMask": FieldMaskProto, + "google.protobuf.Api": ApiProto, + "google.protobuf.Method": ApiProto, + "google.protobuf.Mixin": ApiProto, + "google.protobuf.Syntax": TypeProto, + "google.protobuf.Type": TypeProto, + "google.protobuf.Field": TypeProto, + "google.protobuf.Field.Kind": TypeProto, + "google.protobuf.Field.Cardinality": TypeProto, + "google.protobuf.Enum": TypeProto, + "google.protobuf.EnumValue": TypeProto, + "google.protobuf.Option": TypeProto, + "google.protobuf.SourceContext": SourceContextProto, + "google.protobuf.Empty": EmptyProto, +} + +// Which identifies the proto file that a well-known type belongs to. +// This identifies both enums and messages. +func Which(s protoreflect.FullName) ProtoFile { + return wellKnownTypes[s] +} diff --git a/vendor/google.golang.org/protobuf/internal/detrand/rand.go b/vendor/google.golang.org/protobuf/internal/detrand/rand.go new file mode 100644 index 000000000..a904dd1f9 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/detrand/rand.go @@ -0,0 +1,61 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package detrand provides deterministically random functionality. +// +// The pseudo-randomness of these functions is seeded by the program binary +// itself and guarantees that the output does not change within a program, +// while ensuring that the output is unstable across different builds. +package detrand + +import ( + "encoding/binary" + "hash/fnv" + "os" +) + +// Disable disables detrand such that all functions returns the zero value. +// This function is not concurrent-safe and must be called during program init. +func Disable() { + randSeed = 0 +} + +// Bool returns a deterministically random boolean. +func Bool() bool { + return randSeed%2 == 1 +} + +// randSeed is a best-effort at an approximate hash of the Go binary. +var randSeed = binaryHash() + +func binaryHash() uint64 { + // Open the Go binary. + s, err := os.Executable() + if err != nil { + return 0 + } + f, err := os.Open(s) + if err != nil { + return 0 + } + defer f.Close() + + // Hash the size and several samples of the Go binary. + const numSamples = 8 + var buf [64]byte + h := fnv.New64() + fi, err := f.Stat() + if err != nil { + return 0 + } + binary.LittleEndian.PutUint64(buf[:8], uint64(fi.Size())) + h.Write(buf[:8]) + for i := int64(0); i < numSamples; i++ { + if _, err := f.ReadAt(buf[:], i*fi.Size()/numSamples); err != nil { + return 0 + } + h.Write(buf[:]) + } + return h.Sum64() +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/defval/default.go b/vendor/google.golang.org/protobuf/internal/encoding/defval/default.go new file mode 100644 index 000000000..fdd9b13f2 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/defval/default.go @@ -0,0 +1,213 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package defval marshals and unmarshals textual forms of default values. +// +// This package handles both the form historically used in Go struct field tags +// and also the form used by google.protobuf.FieldDescriptorProto.default_value +// since they differ in superficial ways. +package defval + +import ( + "fmt" + "math" + "strconv" + + ptext "google.golang.org/protobuf/internal/encoding/text" + errors "google.golang.org/protobuf/internal/errors" + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +// Format is the serialization format used to represent the default value. +type Format int + +const ( + _ Format = iota + + // Descriptor uses the serialization format that protoc uses with the + // google.protobuf.FieldDescriptorProto.default_value field. + Descriptor + + // GoTag uses the historical serialization format in Go struct field tags. + GoTag +) + +// Unmarshal deserializes the default string s according to the given kind k. +// When k is an enum, a list of enum value descriptors must be provided. +func Unmarshal(s string, k pref.Kind, evs pref.EnumValueDescriptors, f Format) (pref.Value, pref.EnumValueDescriptor, error) { + switch k { + case pref.BoolKind: + if f == GoTag { + switch s { + case "1": + return pref.ValueOfBool(true), nil, nil + case "0": + return pref.ValueOfBool(false), nil, nil + } + } else { + switch s { + case "true": + return pref.ValueOfBool(true), nil, nil + case "false": + return pref.ValueOfBool(false), nil, nil + } + } + case pref.EnumKind: + if f == GoTag { + // Go tags use the numeric form of the enum value. + if n, err := strconv.ParseInt(s, 10, 32); err == nil { + if ev := evs.ByNumber(pref.EnumNumber(n)); ev != nil { + return pref.ValueOfEnum(ev.Number()), ev, nil + } + } + } else { + // Descriptor default_value use the enum identifier. + ev := evs.ByName(pref.Name(s)) + if ev != nil { + return pref.ValueOfEnum(ev.Number()), ev, nil + } + } + case pref.Int32Kind, pref.Sint32Kind, pref.Sfixed32Kind: + if v, err := strconv.ParseInt(s, 10, 32); err == nil { + return pref.ValueOfInt32(int32(v)), nil, nil + } + case pref.Int64Kind, pref.Sint64Kind, pref.Sfixed64Kind: + if v, err := strconv.ParseInt(s, 10, 64); err == nil { + return pref.ValueOfInt64(int64(v)), nil, nil + } + case pref.Uint32Kind, pref.Fixed32Kind: + if v, err := strconv.ParseUint(s, 10, 32); err == nil { + return pref.ValueOfUint32(uint32(v)), nil, nil + } + case pref.Uint64Kind, pref.Fixed64Kind: + if v, err := strconv.ParseUint(s, 10, 64); err == nil { + return pref.ValueOfUint64(uint64(v)), nil, nil + } + case pref.FloatKind, pref.DoubleKind: + var v float64 + var err error + switch s { + case "-inf": + v = math.Inf(-1) + case "inf": + v = math.Inf(+1) + case "nan": + v = math.NaN() + default: + v, err = strconv.ParseFloat(s, 64) + } + if err == nil { + if k == pref.FloatKind { + return pref.ValueOfFloat32(float32(v)), nil, nil + } else { + return pref.ValueOfFloat64(float64(v)), nil, nil + } + } + case pref.StringKind: + // String values are already unescaped and can be used as is. + return pref.ValueOfString(s), nil, nil + case pref.BytesKind: + if b, ok := unmarshalBytes(s); ok { + return pref.ValueOfBytes(b), nil, nil + } + } + return pref.Value{}, nil, errors.New("could not parse value for %v: %q", k, s) +} + +// Marshal serializes v as the default string according to the given kind k. +// When specifying the Descriptor format for an enum kind, the associated +// enum value descriptor must be provided. +func Marshal(v pref.Value, ev pref.EnumValueDescriptor, k pref.Kind, f Format) (string, error) { + switch k { + case pref.BoolKind: + if f == GoTag { + if v.Bool() { + return "1", nil + } else { + return "0", nil + } + } else { + if v.Bool() { + return "true", nil + } else { + return "false", nil + } + } + case pref.EnumKind: + if f == GoTag { + return strconv.FormatInt(int64(v.Enum()), 10), nil + } else { + return string(ev.Name()), nil + } + case pref.Int32Kind, pref.Sint32Kind, pref.Sfixed32Kind, pref.Int64Kind, pref.Sint64Kind, pref.Sfixed64Kind: + return strconv.FormatInt(v.Int(), 10), nil + case pref.Uint32Kind, pref.Fixed32Kind, pref.Uint64Kind, pref.Fixed64Kind: + return strconv.FormatUint(v.Uint(), 10), nil + case pref.FloatKind, pref.DoubleKind: + f := v.Float() + switch { + case math.IsInf(f, -1): + return "-inf", nil + case math.IsInf(f, +1): + return "inf", nil + case math.IsNaN(f): + return "nan", nil + default: + if k == pref.FloatKind { + return strconv.FormatFloat(f, 'g', -1, 32), nil + } else { + return strconv.FormatFloat(f, 'g', -1, 64), nil + } + } + case pref.StringKind: + // String values are serialized as is without any escaping. + return v.String(), nil + case pref.BytesKind: + if s, ok := marshalBytes(v.Bytes()); ok { + return s, nil + } + } + return "", errors.New("could not format value for %v: %v", k, v) +} + +// unmarshalBytes deserializes bytes by applying C unescaping. +func unmarshalBytes(s string) ([]byte, bool) { + // Bytes values use the same escaping as the text format, + // however they lack the surrounding double quotes. + v, err := ptext.UnmarshalString(`"` + s + `"`) + if err != nil { + return nil, false + } + return []byte(v), true +} + +// marshalBytes serializes bytes by using C escaping. +// To match the exact output of protoc, this is identical to the +// CEscape function in strutil.cc of the protoc source code. +func marshalBytes(b []byte) (string, bool) { + var s []byte + for _, c := range b { + switch c { + case '\n': + s = append(s, `\n`...) + case '\r': + s = append(s, `\r`...) + case '\t': + s = append(s, `\t`...) + case '"': + s = append(s, `\"`...) + case '\'': + s = append(s, `\'`...) + case '\\': + s = append(s, `\\`...) + default: + if printableASCII := c >= 0x20 && c <= 0x7e; printableASCII { + s = append(s, c) + } else { + s = append(s, fmt.Sprintf(`\%03o`, c)...) + } + } + } + return string(s), true +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/json/decode.go b/vendor/google.golang.org/protobuf/internal/encoding/json/decode.go new file mode 100644 index 000000000..b13fd29e8 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/json/decode.go @@ -0,0 +1,340 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package json + +import ( + "bytes" + "fmt" + "io" + "regexp" + "unicode/utf8" + + "google.golang.org/protobuf/internal/errors" +) + +// call specifies which Decoder method was invoked. +type call uint8 + +const ( + readCall call = iota + peekCall +) + +const unexpectedFmt = "unexpected token %s" + +// ErrUnexpectedEOF means that EOF was encountered in the middle of the input. +var ErrUnexpectedEOF = errors.New("%v", io.ErrUnexpectedEOF) + +// Decoder is a token-based JSON decoder. +type Decoder struct { + // lastCall is last method called, either readCall or peekCall. + // Initial value is readCall. + lastCall call + + // lastToken contains the last read token. + lastToken Token + + // lastErr contains the last read error. + lastErr error + + // openStack is a stack containing ObjectOpen and ArrayOpen values. The + // top of stack represents the object or the array the current value is + // directly located in. + openStack []Kind + + // orig is used in reporting line and column. + orig []byte + // in contains the unconsumed input. + in []byte +} + +// NewDecoder returns a Decoder to read the given []byte. +func NewDecoder(b []byte) *Decoder { + return &Decoder{orig: b, in: b} +} + +// Peek looks ahead and returns the next token kind without advancing a read. +func (d *Decoder) Peek() (Token, error) { + defer func() { d.lastCall = peekCall }() + if d.lastCall == readCall { + d.lastToken, d.lastErr = d.Read() + } + return d.lastToken, d.lastErr +} + +// Read returns the next JSON token. +// It will return an error if there is no valid token. +func (d *Decoder) Read() (Token, error) { + const scalar = Null | Bool | Number | String + + defer func() { d.lastCall = readCall }() + if d.lastCall == peekCall { + return d.lastToken, d.lastErr + } + + tok, err := d.parseNext() + if err != nil { + return Token{}, err + } + + switch tok.kind { + case EOF: + if len(d.openStack) != 0 || + d.lastToken.kind&scalar|ObjectClose|ArrayClose == 0 { + return Token{}, ErrUnexpectedEOF + } + + case Null: + if !d.isValueNext() { + return Token{}, d.newSyntaxError(tok.pos, unexpectedFmt, tok.RawString()) + } + + case Bool, Number: + if !d.isValueNext() { + return Token{}, d.newSyntaxError(tok.pos, unexpectedFmt, tok.RawString()) + } + + case String: + if d.isValueNext() { + break + } + // This string token should only be for a field name. + if d.lastToken.kind&(ObjectOpen|comma) == 0 { + return Token{}, d.newSyntaxError(tok.pos, unexpectedFmt, tok.RawString()) + } + if len(d.in) == 0 { + return Token{}, ErrUnexpectedEOF + } + if c := d.in[0]; c != ':' { + return Token{}, d.newSyntaxError(d.currPos(), `unexpected character %s, missing ":" after field name`, string(c)) + } + tok.kind = Name + d.consume(1) + + case ObjectOpen, ArrayOpen: + if !d.isValueNext() { + return Token{}, d.newSyntaxError(tok.pos, unexpectedFmt, tok.RawString()) + } + d.openStack = append(d.openStack, tok.kind) + + case ObjectClose: + if len(d.openStack) == 0 || + d.lastToken.kind == comma || + d.openStack[len(d.openStack)-1] != ObjectOpen { + return Token{}, d.newSyntaxError(tok.pos, unexpectedFmt, tok.RawString()) + } + d.openStack = d.openStack[:len(d.openStack)-1] + + case ArrayClose: + if len(d.openStack) == 0 || + d.lastToken.kind == comma || + d.openStack[len(d.openStack)-1] != ArrayOpen { + return Token{}, d.newSyntaxError(tok.pos, unexpectedFmt, tok.RawString()) + } + d.openStack = d.openStack[:len(d.openStack)-1] + + case comma: + if len(d.openStack) == 0 || + d.lastToken.kind&(scalar|ObjectClose|ArrayClose) == 0 { + return Token{}, d.newSyntaxError(tok.pos, unexpectedFmt, tok.RawString()) + } + } + + // Update d.lastToken only after validating token to be in the right sequence. + d.lastToken = tok + + if d.lastToken.kind == comma { + return d.Read() + } + return tok, nil +} + +// Any sequence that looks like a non-delimiter (for error reporting). +var errRegexp = regexp.MustCompile(`^([-+._a-zA-Z0-9]{1,32}|.)`) + +// parseNext parses for the next JSON token. It returns a Token object for +// different types, except for Name. It does not handle whether the next token +// is in a valid sequence or not. +func (d *Decoder) parseNext() (Token, error) { + // Trim leading spaces. + d.consume(0) + + in := d.in + if len(in) == 0 { + return d.consumeToken(EOF, 0), nil + } + + switch in[0] { + case 'n': + if n := matchWithDelim("null", in); n != 0 { + return d.consumeToken(Null, n), nil + } + + case 't': + if n := matchWithDelim("true", in); n != 0 { + return d.consumeBoolToken(true, n), nil + } + + case 'f': + if n := matchWithDelim("false", in); n != 0 { + return d.consumeBoolToken(false, n), nil + } + + case '-', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': + if n, ok := parseNumber(in); ok { + return d.consumeToken(Number, n), nil + } + + case '"': + s, n, err := d.parseString(in) + if err != nil { + return Token{}, err + } + return d.consumeStringToken(s, n), nil + + case '{': + return d.consumeToken(ObjectOpen, 1), nil + + case '}': + return d.consumeToken(ObjectClose, 1), nil + + case '[': + return d.consumeToken(ArrayOpen, 1), nil + + case ']': + return d.consumeToken(ArrayClose, 1), nil + + case ',': + return d.consumeToken(comma, 1), nil + } + return Token{}, d.newSyntaxError(d.currPos(), "invalid value %s", errRegexp.Find(in)) +} + +// newSyntaxError returns an error with line and column information useful for +// syntax errors. +func (d *Decoder) newSyntaxError(pos int, f string, x ...interface{}) error { + e := errors.New(f, x...) + line, column := d.Position(pos) + return errors.New("syntax error (line %d:%d): %v", line, column, e) +} + +// Position returns line and column number of given index of the original input. +// It will panic if index is out of range. +func (d *Decoder) Position(idx int) (line int, column int) { + b := d.orig[:idx] + line = bytes.Count(b, []byte("\n")) + 1 + if i := bytes.LastIndexByte(b, '\n'); i >= 0 { + b = b[i+1:] + } + column = utf8.RuneCount(b) + 1 // ignore multi-rune characters + return line, column +} + +// currPos returns the current index position of d.in from d.orig. +func (d *Decoder) currPos() int { + return len(d.orig) - len(d.in) +} + +// matchWithDelim matches s with the input b and verifies that the match +// terminates with a delimiter of some form (e.g., r"[^-+_.a-zA-Z0-9]"). +// As a special case, EOF is considered a delimiter. It returns the length of s +// if there is a match, else 0. +func matchWithDelim(s string, b []byte) int { + if !bytes.HasPrefix(b, []byte(s)) { + return 0 + } + + n := len(s) + if n < len(b) && isNotDelim(b[n]) { + return 0 + } + return n +} + +// isNotDelim returns true if given byte is a not delimiter character. +func isNotDelim(c byte) bool { + return (c == '-' || c == '+' || c == '.' || c == '_' || + ('a' <= c && c <= 'z') || + ('A' <= c && c <= 'Z') || + ('0' <= c && c <= '9')) +} + +// consume consumes n bytes of input and any subsequent whitespace. +func (d *Decoder) consume(n int) { + d.in = d.in[n:] + for len(d.in) > 0 { + switch d.in[0] { + case ' ', '\n', '\r', '\t': + d.in = d.in[1:] + default: + return + } + } +} + +// isValueNext returns true if next type should be a JSON value: Null, +// Number, String or Bool. +func (d *Decoder) isValueNext() bool { + if len(d.openStack) == 0 { + return d.lastToken.kind == 0 + } + + start := d.openStack[len(d.openStack)-1] + switch start { + case ObjectOpen: + return d.lastToken.kind&Name != 0 + case ArrayOpen: + return d.lastToken.kind&(ArrayOpen|comma) != 0 + } + panic(fmt.Sprintf( + "unreachable logic in Decoder.isValueNext, lastToken.kind: %v, openStack: %v", + d.lastToken.kind, start)) +} + +// consumeToken constructs a Token for given Kind with raw value derived from +// current d.in and given size, and consumes the given size-lenght of it. +func (d *Decoder) consumeToken(kind Kind, size int) Token { + tok := Token{ + kind: kind, + raw: d.in[:size], + pos: len(d.orig) - len(d.in), + } + d.consume(size) + return tok +} + +// consumeBoolToken constructs a Token for a Bool kind with raw value derived from +// current d.in and given size. +func (d *Decoder) consumeBoolToken(b bool, size int) Token { + tok := Token{ + kind: Bool, + raw: d.in[:size], + pos: len(d.orig) - len(d.in), + boo: b, + } + d.consume(size) + return tok +} + +// consumeStringToken constructs a Token for a String kind with raw value derived +// from current d.in and given size. +func (d *Decoder) consumeStringToken(s string, size int) Token { + tok := Token{ + kind: String, + raw: d.in[:size], + pos: len(d.orig) - len(d.in), + str: s, + } + d.consume(size) + return tok +} + +// Clone returns a copy of the Decoder for use in reading ahead the next JSON +// object, array or other values without affecting current Decoder. +func (d *Decoder) Clone() *Decoder { + ret := *d + ret.openStack = append([]Kind(nil), ret.openStack...) + return &ret +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/json/decode_number.go b/vendor/google.golang.org/protobuf/internal/encoding/json/decode_number.go new file mode 100644 index 000000000..2999d7133 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/json/decode_number.go @@ -0,0 +1,254 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package json + +import ( + "bytes" + "strconv" +) + +// parseNumber reads the given []byte for a valid JSON number. If it is valid, +// it returns the number of bytes. Parsing logic follows the definition in +// https://tools.ietf.org/html/rfc7159#section-6, and is based off +// encoding/json.isValidNumber function. +func parseNumber(input []byte) (int, bool) { + var n int + + s := input + if len(s) == 0 { + return 0, false + } + + // Optional - + if s[0] == '-' { + s = s[1:] + n++ + if len(s) == 0 { + return 0, false + } + } + + // Digits + switch { + case s[0] == '0': + s = s[1:] + n++ + + case '1' <= s[0] && s[0] <= '9': + s = s[1:] + n++ + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + + default: + return 0, false + } + + // . followed by 1 or more digits. + if len(s) >= 2 && s[0] == '.' && '0' <= s[1] && s[1] <= '9' { + s = s[2:] + n += 2 + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + } + + // e or E followed by an optional - or + and + // 1 or more digits. + if len(s) >= 2 && (s[0] == 'e' || s[0] == 'E') { + s = s[1:] + n++ + if s[0] == '+' || s[0] == '-' { + s = s[1:] + n++ + if len(s) == 0 { + return 0, false + } + } + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + } + + // Check that next byte is a delimiter or it is at the end. + if n < len(input) && isNotDelim(input[n]) { + return 0, false + } + + return n, true +} + +// numberParts is the result of parsing out a valid JSON number. It contains +// the parts of a number. The parts are used for integer conversion. +type numberParts struct { + neg bool + intp []byte + frac []byte + exp []byte +} + +// parseNumber constructs numberParts from given []byte. The logic here is +// similar to consumeNumber above with the difference of having to construct +// numberParts. The slice fields in numberParts are subslices of the input. +func parseNumberParts(input []byte) (numberParts, bool) { + var neg bool + var intp []byte + var frac []byte + var exp []byte + + s := input + if len(s) == 0 { + return numberParts{}, false + } + + // Optional - + if s[0] == '-' { + neg = true + s = s[1:] + if len(s) == 0 { + return numberParts{}, false + } + } + + // Digits + switch { + case s[0] == '0': + // Skip first 0 and no need to store. + s = s[1:] + + case '1' <= s[0] && s[0] <= '9': + intp = s + n := 1 + s = s[1:] + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + intp = intp[:n] + + default: + return numberParts{}, false + } + + // . followed by 1 or more digits. + if len(s) >= 2 && s[0] == '.' && '0' <= s[1] && s[1] <= '9' { + frac = s[1:] + n := 1 + s = s[2:] + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + frac = frac[:n] + } + + // e or E followed by an optional - or + and + // 1 or more digits. + if len(s) >= 2 && (s[0] == 'e' || s[0] == 'E') { + s = s[1:] + exp = s + n := 0 + if s[0] == '+' || s[0] == '-' { + s = s[1:] + n++ + if len(s) == 0 { + return numberParts{}, false + } + } + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + exp = exp[:n] + } + + return numberParts{ + neg: neg, + intp: intp, + frac: bytes.TrimRight(frac, "0"), // Remove unnecessary 0s to the right. + exp: exp, + }, true +} + +// normalizeToIntString returns an integer string in normal form without the +// E-notation for given numberParts. It will return false if it is not an +// integer or if the exponent exceeds than max/min int value. +func normalizeToIntString(n numberParts) (string, bool) { + intpSize := len(n.intp) + fracSize := len(n.frac) + + if intpSize == 0 && fracSize == 0 { + return "0", true + } + + var exp int + if len(n.exp) > 0 { + i, err := strconv.ParseInt(string(n.exp), 10, 32) + if err != nil { + return "", false + } + exp = int(i) + } + + var num []byte + if exp >= 0 { + // For positive E, shift fraction digits into integer part and also pad + // with zeroes as needed. + + // If there are more digits in fraction than the E value, then the + // number is not an integer. + if fracSize > exp { + return "", false + } + + // Make sure resulting digits are within max value limit to avoid + // unnecessarily constructing a large byte slice that may simply fail + // later on. + const maxDigits = 20 // Max uint64 value has 20 decimal digits. + if intpSize+exp > maxDigits { + return "", false + } + + // Set cap to make a copy of integer part when appended. + num = n.intp[:len(n.intp):len(n.intp)] + num = append(num, n.frac...) + for i := 0; i < exp-fracSize; i++ { + num = append(num, '0') + } + } else { + // For negative E, shift digits in integer part out. + + // If there are fractions, then the number is not an integer. + if fracSize > 0 { + return "", false + } + + // index is where the decimal point will be after adjusting for negative + // exponent. + index := intpSize + exp + if index < 0 { + return "", false + } + + num = n.intp + // If any of the digits being shifted to the right of the decimal point + // is non-zero, then the number is not an integer. + for i := index; i < intpSize; i++ { + if num[i] != '0' { + return "", false + } + } + num = num[:index] + } + + if n.neg { + return "-" + string(num), true + } + return string(num), true +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/json/decode_string.go b/vendor/google.golang.org/protobuf/internal/encoding/json/decode_string.go new file mode 100644 index 000000000..f7fea7d8d --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/json/decode_string.go @@ -0,0 +1,91 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package json + +import ( + "strconv" + "unicode" + "unicode/utf16" + "unicode/utf8" + + "google.golang.org/protobuf/internal/strs" +) + +func (d *Decoder) parseString(in []byte) (string, int, error) { + in0 := in + if len(in) == 0 { + return "", 0, ErrUnexpectedEOF + } + if in[0] != '"' { + return "", 0, d.newSyntaxError(d.currPos(), "invalid character %q at start of string", in[0]) + } + in = in[1:] + i := indexNeedEscapeInBytes(in) + in, out := in[i:], in[:i:i] // set cap to prevent mutations + for len(in) > 0 { + switch r, n := utf8.DecodeRune(in); { + case r == utf8.RuneError && n == 1: + return "", 0, d.newSyntaxError(d.currPos(), "invalid UTF-8 in string") + case r < ' ': + return "", 0, d.newSyntaxError(d.currPos(), "invalid character %q in string", r) + case r == '"': + in = in[1:] + n := len(in0) - len(in) + return string(out), n, nil + case r == '\\': + if len(in) < 2 { + return "", 0, ErrUnexpectedEOF + } + switch r := in[1]; r { + case '"', '\\', '/': + in, out = in[2:], append(out, r) + case 'b': + in, out = in[2:], append(out, '\b') + case 'f': + in, out = in[2:], append(out, '\f') + case 'n': + in, out = in[2:], append(out, '\n') + case 'r': + in, out = in[2:], append(out, '\r') + case 't': + in, out = in[2:], append(out, '\t') + case 'u': + if len(in) < 6 { + return "", 0, ErrUnexpectedEOF + } + v, err := strconv.ParseUint(string(in[2:6]), 16, 16) + if err != nil { + return "", 0, d.newSyntaxError(d.currPos(), "invalid escape code %q in string", in[:6]) + } + in = in[6:] + + r := rune(v) + if utf16.IsSurrogate(r) { + if len(in) < 6 { + return "", 0, ErrUnexpectedEOF + } + v, err := strconv.ParseUint(string(in[2:6]), 16, 16) + r = utf16.DecodeRune(r, rune(v)) + if in[0] != '\\' || in[1] != 'u' || + r == unicode.ReplacementChar || err != nil { + return "", 0, d.newSyntaxError(d.currPos(), "invalid escape code %q in string", in[:6]) + } + in = in[6:] + } + out = append(out, string(r)...) + default: + return "", 0, d.newSyntaxError(d.currPos(), "invalid escape code %q in string", in[:2]) + } + default: + i := indexNeedEscapeInBytes(in[n:]) + in, out = in[n+i:], append(out, in[:n+i]...) + } + } + return "", 0, ErrUnexpectedEOF +} + +// indexNeedEscapeInBytes returns the index of the character that needs +// escaping. If no characters need escaping, this returns the input length. +func indexNeedEscapeInBytes(b []byte) int { return indexNeedEscapeInString(strs.UnsafeString(b)) } diff --git a/vendor/google.golang.org/protobuf/internal/encoding/json/decode_token.go b/vendor/google.golang.org/protobuf/internal/encoding/json/decode_token.go new file mode 100644 index 000000000..2eb7023b2 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/json/decode_token.go @@ -0,0 +1,193 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package json + +import ( + "bytes" + "fmt" + "strconv" +) + +// Kind represents a token kind expressible in the JSON format. +type Kind uint16 + +const ( + Invalid Kind = (1 << iota) / 2 + EOF + Null + Bool + Number + String + Name + ObjectOpen + ObjectClose + ArrayOpen + ArrayClose + + // comma is only for parsing in between tokens and + // does not need to be exported. + comma +) + +func (k Kind) String() string { + switch k { + case EOF: + return "eof" + case Null: + return "null" + case Bool: + return "bool" + case Number: + return "number" + case String: + return "string" + case ObjectOpen: + return "{" + case ObjectClose: + return "}" + case Name: + return "name" + case ArrayOpen: + return "[" + case ArrayClose: + return "]" + case comma: + return "," + } + return "" +} + +// Token provides a parsed token kind and value. +// +// Values are provided by the difference accessor methods. The accessor methods +// Name, Bool, and ParsedString will panic if called on the wrong kind. There +// are different accessor methods for the Number kind for converting to the +// appropriate Go numeric type and those methods have the ok return value. +type Token struct { + // Token kind. + kind Kind + // pos provides the position of the token in the original input. + pos int + // raw bytes of the serialized token. + // This is a subslice into the original input. + raw []byte + // boo is parsed boolean value. + boo bool + // str is parsed string value. + str string +} + +// Kind returns the token kind. +func (t Token) Kind() Kind { + return t.kind +} + +// RawString returns the read value in string. +func (t Token) RawString() string { + return string(t.raw) +} + +// Pos returns the token position from the input. +func (t Token) Pos() int { + return t.pos +} + +// Name returns the object name if token is Name, else it will return an error. +func (t Token) Name() string { + if t.kind == Name { + return t.str + } + panic(fmt.Sprintf("Token is not a Name: %v", t.RawString())) +} + +// Bool returns the bool value if token kind is Bool, else it panics. +func (t Token) Bool() bool { + if t.kind == Bool { + return t.boo + } + panic(fmt.Sprintf("Token is not a Bool: %v", t.RawString())) +} + +// ParsedString returns the string value for a JSON string token or the read +// value in string if token is not a string. +func (t Token) ParsedString() string { + if t.kind == String { + return t.str + } + panic(fmt.Sprintf("Token is not a String: %v", t.RawString())) +} + +// Float returns the floating-point number if token kind is Number. +// +// The floating-point precision is specified by the bitSize parameter: 32 for +// float32 or 64 for float64. If bitSize=32, the result still has type float64, +// but it will be convertible to float32 without changing its value. It will +// return false if the number exceeds the floating point limits for given +// bitSize. +func (t Token) Float(bitSize int) (float64, bool) { + if t.kind != Number { + return 0, false + } + f, err := strconv.ParseFloat(t.RawString(), bitSize) + if err != nil { + return 0, false + } + return f, true +} + +// Int returns the signed integer number if token is Number. +// +// The given bitSize specifies the integer type that the result must fit into. +// It returns false if the number is not an integer value or if the result +// exceeds the limits for given bitSize. +func (t Token) Int(bitSize int) (int64, bool) { + s, ok := t.getIntStr() + if !ok { + return 0, false + } + n, err := strconv.ParseInt(s, 10, bitSize) + if err != nil { + return 0, false + } + return n, true +} + +// Uint returns the signed integer number if token is Number, else it will +// return an error. +// +// The given bitSize specifies the unsigned integer type that the result must +// fit into. It returns false if the number is not an unsigned integer value +// or if the result exceeds the limits for given bitSize. +func (t Token) Uint(bitSize int) (uint64, bool) { + s, ok := t.getIntStr() + if !ok { + return 0, false + } + n, err := strconv.ParseUint(s, 10, bitSize) + if err != nil { + return 0, false + } + return n, true +} + +func (t Token) getIntStr() (string, bool) { + if t.kind != Number { + return "", false + } + parts, ok := parseNumberParts(t.raw) + if !ok { + return "", false + } + return normalizeToIntString(parts) +} + +// TokenEquals returns true if given Tokens are equal, else false. +func TokenEquals(x, y Token) bool { + return x.kind == y.kind && + x.pos == y.pos && + bytes.Equal(x.raw, y.raw) && + x.boo == y.boo && + x.str == y.str +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/json/encode.go b/vendor/google.golang.org/protobuf/internal/encoding/json/encode.go new file mode 100644 index 000000000..fbdf34873 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/json/encode.go @@ -0,0 +1,276 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package json + +import ( + "math" + "math/bits" + "strconv" + "strings" + "unicode/utf8" + + "google.golang.org/protobuf/internal/detrand" + "google.golang.org/protobuf/internal/errors" +) + +// kind represents an encoding type. +type kind uint8 + +const ( + _ kind = (1 << iota) / 2 + name + scalar + objectOpen + objectClose + arrayOpen + arrayClose +) + +// Encoder provides methods to write out JSON constructs and values. The user is +// responsible for producing valid sequences of JSON constructs and values. +type Encoder struct { + indent string + lastKind kind + indents []byte + out []byte +} + +// NewEncoder returns an Encoder. +// +// If indent is a non-empty string, it causes every entry for an Array or Object +// to be preceded by the indent and trailed by a newline. +func NewEncoder(indent string) (*Encoder, error) { + e := &Encoder{} + if len(indent) > 0 { + if strings.Trim(indent, " \t") != "" { + return nil, errors.New("indent may only be composed of space or tab characters") + } + e.indent = indent + } + return e, nil +} + +// Bytes returns the content of the written bytes. +func (e *Encoder) Bytes() []byte { + return e.out +} + +// WriteNull writes out the null value. +func (e *Encoder) WriteNull() { + e.prepareNext(scalar) + e.out = append(e.out, "null"...) +} + +// WriteBool writes out the given boolean value. +func (e *Encoder) WriteBool(b bool) { + e.prepareNext(scalar) + if b { + e.out = append(e.out, "true"...) + } else { + e.out = append(e.out, "false"...) + } +} + +// WriteString writes out the given string in JSON string value. Returns error +// if input string contains invalid UTF-8. +func (e *Encoder) WriteString(s string) error { + e.prepareNext(scalar) + var err error + if e.out, err = appendString(e.out, s); err != nil { + return err + } + return nil +} + +// Sentinel error used for indicating invalid UTF-8. +var errInvalidUTF8 = errors.New("invalid UTF-8") + +func appendString(out []byte, in string) ([]byte, error) { + out = append(out, '"') + i := indexNeedEscapeInString(in) + in, out = in[i:], append(out, in[:i]...) + for len(in) > 0 { + switch r, n := utf8.DecodeRuneInString(in); { + case r == utf8.RuneError && n == 1: + return out, errInvalidUTF8 + case r < ' ' || r == '"' || r == '\\': + out = append(out, '\\') + switch r { + case '"', '\\': + out = append(out, byte(r)) + case '\b': + out = append(out, 'b') + case '\f': + out = append(out, 'f') + case '\n': + out = append(out, 'n') + case '\r': + out = append(out, 'r') + case '\t': + out = append(out, 't') + default: + out = append(out, 'u') + out = append(out, "0000"[1+(bits.Len32(uint32(r))-1)/4:]...) + out = strconv.AppendUint(out, uint64(r), 16) + } + in = in[n:] + default: + i := indexNeedEscapeInString(in[n:]) + in, out = in[n+i:], append(out, in[:n+i]...) + } + } + out = append(out, '"') + return out, nil +} + +// indexNeedEscapeInString returns the index of the character that needs +// escaping. If no characters need escaping, this returns the input length. +func indexNeedEscapeInString(s string) int { + for i, r := range s { + if r < ' ' || r == '\\' || r == '"' || r == utf8.RuneError { + return i + } + } + return len(s) +} + +// WriteFloat writes out the given float and bitSize in JSON number value. +func (e *Encoder) WriteFloat(n float64, bitSize int) { + e.prepareNext(scalar) + e.out = appendFloat(e.out, n, bitSize) +} + +// appendFloat formats given float in bitSize, and appends to the given []byte. +func appendFloat(out []byte, n float64, bitSize int) []byte { + switch { + case math.IsNaN(n): + return append(out, `"NaN"`...) + case math.IsInf(n, +1): + return append(out, `"Infinity"`...) + case math.IsInf(n, -1): + return append(out, `"-Infinity"`...) + } + + // JSON number formatting logic based on encoding/json. + // See floatEncoder.encode for reference. + fmt := byte('f') + if abs := math.Abs(n); abs != 0 { + if bitSize == 64 && (abs < 1e-6 || abs >= 1e21) || + bitSize == 32 && (float32(abs) < 1e-6 || float32(abs) >= 1e21) { + fmt = 'e' + } + } + out = strconv.AppendFloat(out, n, fmt, -1, bitSize) + if fmt == 'e' { + n := len(out) + if n >= 4 && out[n-4] == 'e' && out[n-3] == '-' && out[n-2] == '0' { + out[n-2] = out[n-1] + out = out[:n-1] + } + } + return out +} + +// WriteInt writes out the given signed integer in JSON number value. +func (e *Encoder) WriteInt(n int64) { + e.prepareNext(scalar) + e.out = append(e.out, strconv.FormatInt(n, 10)...) +} + +// WriteUint writes out the given unsigned integer in JSON number value. +func (e *Encoder) WriteUint(n uint64) { + e.prepareNext(scalar) + e.out = append(e.out, strconv.FormatUint(n, 10)...) +} + +// StartObject writes out the '{' symbol. +func (e *Encoder) StartObject() { + e.prepareNext(objectOpen) + e.out = append(e.out, '{') +} + +// EndObject writes out the '}' symbol. +func (e *Encoder) EndObject() { + e.prepareNext(objectClose) + e.out = append(e.out, '}') +} + +// WriteName writes out the given string in JSON string value and the name +// separator ':'. Returns error if input string contains invalid UTF-8, which +// should not be likely as protobuf field names should be valid. +func (e *Encoder) WriteName(s string) error { + e.prepareNext(name) + var err error + // Append to output regardless of error. + e.out, err = appendString(e.out, s) + e.out = append(e.out, ':') + return err +} + +// StartArray writes out the '[' symbol. +func (e *Encoder) StartArray() { + e.prepareNext(arrayOpen) + e.out = append(e.out, '[') +} + +// EndArray writes out the ']' symbol. +func (e *Encoder) EndArray() { + e.prepareNext(arrayClose) + e.out = append(e.out, ']') +} + +// prepareNext adds possible comma and indentation for the next value based +// on last type and indent option. It also updates lastKind to next. +func (e *Encoder) prepareNext(next kind) { + defer func() { + // Set lastKind to next. + e.lastKind = next + }() + + if len(e.indent) == 0 { + // Need to add comma on the following condition. + if e.lastKind&(scalar|objectClose|arrayClose) != 0 && + next&(name|scalar|objectOpen|arrayOpen) != 0 { + e.out = append(e.out, ',') + // For single-line output, add a random extra space after each + // comma to make output unstable. + if detrand.Bool() { + e.out = append(e.out, ' ') + } + } + return + } + + switch { + case e.lastKind&(objectOpen|arrayOpen) != 0: + // If next type is NOT closing, add indent and newline. + if next&(objectClose|arrayClose) == 0 { + e.indents = append(e.indents, e.indent...) + e.out = append(e.out, '\n') + e.out = append(e.out, e.indents...) + } + + case e.lastKind&(scalar|objectClose|arrayClose) != 0: + switch { + // If next type is either a value or name, add comma and newline. + case next&(name|scalar|objectOpen|arrayOpen) != 0: + e.out = append(e.out, ',', '\n') + + // If next type is a closing object or array, adjust indentation. + case next&(objectClose|arrayClose) != 0: + e.indents = e.indents[:len(e.indents)-len(e.indent)] + e.out = append(e.out, '\n') + } + e.out = append(e.out, e.indents...) + + case e.lastKind&name != 0: + e.out = append(e.out, ' ') + // For multi-line output, add a random extra space after key: to make + // output unstable. + if detrand.Bool() { + e.out = append(e.out, ' ') + } + } +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/messageset/messageset.go b/vendor/google.golang.org/protobuf/internal/encoding/messageset/messageset.go new file mode 100644 index 000000000..b1eeea507 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/messageset/messageset.go @@ -0,0 +1,258 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package messageset encodes and decodes the obsolete MessageSet wire format. +package messageset + +import ( + "math" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/errors" + pref "google.golang.org/protobuf/reflect/protoreflect" + preg "google.golang.org/protobuf/reflect/protoregistry" +) + +// The MessageSet wire format is equivalent to a message defiend as follows, +// where each Item defines an extension field with a field number of 'type_id' +// and content of 'message'. MessageSet extensions must be non-repeated message +// fields. +// +// message MessageSet { +// repeated group Item = 1 { +// required int32 type_id = 2; +// required string message = 3; +// } +// } +const ( + FieldItem = protowire.Number(1) + FieldTypeID = protowire.Number(2) + FieldMessage = protowire.Number(3) +) + +// ExtensionName is the field name for extensions of MessageSet. +// +// A valid MessageSet extension must be of the form: +// message MyMessage { +// extend proto2.bridge.MessageSet { +// optional MyMessage message_set_extension = 1234; +// } +// ... +// } +const ExtensionName = "message_set_extension" + +// IsMessageSet returns whether the message uses the MessageSet wire format. +func IsMessageSet(md pref.MessageDescriptor) bool { + xmd, ok := md.(interface{ IsMessageSet() bool }) + return ok && xmd.IsMessageSet() +} + +// IsMessageSetExtension reports this field extends a MessageSet. +func IsMessageSetExtension(fd pref.FieldDescriptor) bool { + if fd.Name() != ExtensionName { + return false + } + if fd.FullName().Parent() != fd.Message().FullName() { + return false + } + return IsMessageSet(fd.ContainingMessage()) +} + +// FindMessageSetExtension locates a MessageSet extension field by name. +// In text and JSON formats, the extension name used is the message itself. +// The extension field name is derived by appending ExtensionName. +func FindMessageSetExtension(r preg.ExtensionTypeResolver, s pref.FullName) (pref.ExtensionType, error) { + name := s.Append(ExtensionName) + xt, err := r.FindExtensionByName(name) + if err != nil { + if err == preg.NotFound { + return nil, err + } + return nil, errors.Wrap(err, "%q", name) + } + if !IsMessageSetExtension(xt.TypeDescriptor()) { + return nil, preg.NotFound + } + return xt, nil +} + +// SizeField returns the size of a MessageSet item field containing an extension +// with the given field number, not counting the contents of the message subfield. +func SizeField(num protowire.Number) int { + return 2*protowire.SizeTag(FieldItem) + protowire.SizeTag(FieldTypeID) + protowire.SizeVarint(uint64(num)) +} + +// Unmarshal parses a MessageSet. +// +// It calls fn with the type ID and value of each item in the MessageSet. +// Unknown fields are discarded. +// +// If wantLen is true, the item values include the varint length prefix. +// This is ugly, but simplifies the fast-path decoder in internal/impl. +func Unmarshal(b []byte, wantLen bool, fn func(typeID protowire.Number, value []byte) error) error { + for len(b) > 0 { + num, wtyp, n := protowire.ConsumeTag(b) + if n < 0 { + return protowire.ParseError(n) + } + b = b[n:] + if num != FieldItem || wtyp != protowire.StartGroupType { + n := protowire.ConsumeFieldValue(num, wtyp, b) + if n < 0 { + return protowire.ParseError(n) + } + b = b[n:] + continue + } + typeID, value, n, err := ConsumeFieldValue(b, wantLen) + if err != nil { + return err + } + b = b[n:] + if typeID == 0 { + continue + } + if err := fn(typeID, value); err != nil { + return err + } + } + return nil +} + +// ConsumeFieldValue parses b as a MessageSet item field value until and including +// the trailing end group marker. It assumes the start group tag has already been parsed. +// It returns the contents of the type_id and message subfields and the total +// item length. +// +// If wantLen is true, the returned message value includes the length prefix. +func ConsumeFieldValue(b []byte, wantLen bool) (typeid protowire.Number, message []byte, n int, err error) { + ilen := len(b) + for { + num, wtyp, n := protowire.ConsumeTag(b) + if n < 0 { + return 0, nil, 0, protowire.ParseError(n) + } + b = b[n:] + switch { + case num == FieldItem && wtyp == protowire.EndGroupType: + if wantLen && len(message) == 0 { + // The message field was missing, which should never happen. + // Be prepared for this case anyway. + message = protowire.AppendVarint(message, 0) + } + return typeid, message, ilen - len(b), nil + case num == FieldTypeID && wtyp == protowire.VarintType: + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, nil, 0, protowire.ParseError(n) + } + b = b[n:] + if v < 1 || v > math.MaxInt32 { + return 0, nil, 0, errors.New("invalid type_id in message set") + } + typeid = protowire.Number(v) + case num == FieldMessage && wtyp == protowire.BytesType: + m, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, nil, 0, protowire.ParseError(n) + } + if message == nil { + if wantLen { + message = b[:n:n] + } else { + message = m[:len(m):len(m)] + } + } else { + // This case should never happen in practice, but handle it for + // correctness: The MessageSet item contains multiple message + // fields, which need to be merged. + // + // In the case where we're returning the length, this becomes + // quite inefficient since we need to strip the length off + // the existing data and reconstruct it with the combined length. + if wantLen { + _, nn := protowire.ConsumeVarint(message) + m0 := message[nn:] + message = nil + message = protowire.AppendVarint(message, uint64(len(m0)+len(m))) + message = append(message, m0...) + message = append(message, m...) + } else { + message = append(message, m...) + } + } + b = b[n:] + default: + // We have no place to put it, so we just ignore unknown fields. + n := protowire.ConsumeFieldValue(num, wtyp, b) + if n < 0 { + return 0, nil, 0, protowire.ParseError(n) + } + b = b[n:] + } + } +} + +// AppendFieldStart appends the start of a MessageSet item field containing +// an extension with the given number. The caller must add the message +// subfield (including the tag). +func AppendFieldStart(b []byte, num protowire.Number) []byte { + b = protowire.AppendTag(b, FieldItem, protowire.StartGroupType) + b = protowire.AppendTag(b, FieldTypeID, protowire.VarintType) + b = protowire.AppendVarint(b, uint64(num)) + return b +} + +// AppendFieldEnd appends the trailing end group marker for a MessageSet item field. +func AppendFieldEnd(b []byte) []byte { + return protowire.AppendTag(b, FieldItem, protowire.EndGroupType) +} + +// SizeUnknown returns the size of an unknown fields section in MessageSet format. +// +// See AppendUnknown. +func SizeUnknown(unknown []byte) (size int) { + for len(unknown) > 0 { + num, typ, n := protowire.ConsumeTag(unknown) + if n < 0 || typ != protowire.BytesType { + return 0 + } + unknown = unknown[n:] + _, n = protowire.ConsumeBytes(unknown) + if n < 0 { + return 0 + } + unknown = unknown[n:] + size += SizeField(num) + protowire.SizeTag(FieldMessage) + n + } + return size +} + +// AppendUnknown appends unknown fields to b in MessageSet format. +// +// For historic reasons, unresolved items in a MessageSet are stored in a +// message's unknown fields section in non-MessageSet format. That is, an +// unknown item with typeID T and value V appears in the unknown fields as +// a field with number T and value V. +// +// This function converts the unknown fields back into MessageSet form. +func AppendUnknown(b, unknown []byte) ([]byte, error) { + for len(unknown) > 0 { + num, typ, n := protowire.ConsumeTag(unknown) + if n < 0 || typ != protowire.BytesType { + return nil, errors.New("invalid data in message set unknown fields") + } + unknown = unknown[n:] + _, n = protowire.ConsumeBytes(unknown) + if n < 0 { + return nil, errors.New("invalid data in message set unknown fields") + } + b = AppendFieldStart(b, num) + b = protowire.AppendTag(b, FieldMessage, protowire.BytesType) + b = append(b, unknown[:n]...) + b = AppendFieldEnd(b) + unknown = unknown[n:] + } + return b, nil +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/tag/tag.go b/vendor/google.golang.org/protobuf/internal/encoding/tag/tag.go new file mode 100644 index 000000000..16c02d7b6 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/tag/tag.go @@ -0,0 +1,207 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package tag marshals and unmarshals the legacy struct tags as generated +// by historical versions of protoc-gen-go. +package tag + +import ( + "reflect" + "strconv" + "strings" + + defval "google.golang.org/protobuf/internal/encoding/defval" + fdesc "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/strs" + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +var byteType = reflect.TypeOf(byte(0)) + +// Unmarshal decodes the tag into a prototype.Field. +// +// The goType is needed to determine the original protoreflect.Kind since the +// tag does not record sufficient information to determine that. +// The type is the underlying field type (e.g., a repeated field may be +// represented by []T, but the Go type passed in is just T). +// A list of enum value descriptors must be provided for enum fields. +// This does not populate the Enum or Message (except for weak message). +// +// This function is a best effort attempt; parsing errors are ignored. +func Unmarshal(tag string, goType reflect.Type, evs pref.EnumValueDescriptors) pref.FieldDescriptor { + f := new(fdesc.Field) + f.L0.ParentFile = fdesc.SurrogateProto2 + for len(tag) > 0 { + i := strings.IndexByte(tag, ',') + if i < 0 { + i = len(tag) + } + switch s := tag[:i]; { + case strings.HasPrefix(s, "name="): + f.L0.FullName = pref.FullName(s[len("name="):]) + case strings.Trim(s, "0123456789") == "": + n, _ := strconv.ParseUint(s, 10, 32) + f.L1.Number = pref.FieldNumber(n) + case s == "opt": + f.L1.Cardinality = pref.Optional + case s == "req": + f.L1.Cardinality = pref.Required + case s == "rep": + f.L1.Cardinality = pref.Repeated + case s == "varint": + switch goType.Kind() { + case reflect.Bool: + f.L1.Kind = pref.BoolKind + case reflect.Int32: + f.L1.Kind = pref.Int32Kind + case reflect.Int64: + f.L1.Kind = pref.Int64Kind + case reflect.Uint32: + f.L1.Kind = pref.Uint32Kind + case reflect.Uint64: + f.L1.Kind = pref.Uint64Kind + } + case s == "zigzag32": + if goType.Kind() == reflect.Int32 { + f.L1.Kind = pref.Sint32Kind + } + case s == "zigzag64": + if goType.Kind() == reflect.Int64 { + f.L1.Kind = pref.Sint64Kind + } + case s == "fixed32": + switch goType.Kind() { + case reflect.Int32: + f.L1.Kind = pref.Sfixed32Kind + case reflect.Uint32: + f.L1.Kind = pref.Fixed32Kind + case reflect.Float32: + f.L1.Kind = pref.FloatKind + } + case s == "fixed64": + switch goType.Kind() { + case reflect.Int64: + f.L1.Kind = pref.Sfixed64Kind + case reflect.Uint64: + f.L1.Kind = pref.Fixed64Kind + case reflect.Float64: + f.L1.Kind = pref.DoubleKind + } + case s == "bytes": + switch { + case goType.Kind() == reflect.String: + f.L1.Kind = pref.StringKind + case goType.Kind() == reflect.Slice && goType.Elem() == byteType: + f.L1.Kind = pref.BytesKind + default: + f.L1.Kind = pref.MessageKind + } + case s == "group": + f.L1.Kind = pref.GroupKind + case strings.HasPrefix(s, "enum="): + f.L1.Kind = pref.EnumKind + case strings.HasPrefix(s, "json="): + jsonName := s[len("json="):] + if jsonName != strs.JSONCamelCase(string(f.L0.FullName.Name())) { + f.L1.JSONName.Init(jsonName) + } + case s == "packed": + f.L1.HasPacked = true + f.L1.IsPacked = true + case strings.HasPrefix(s, "weak="): + f.L1.IsWeak = true + f.L1.Message = fdesc.PlaceholderMessage(pref.FullName(s[len("weak="):])) + case strings.HasPrefix(s, "def="): + // The default tag is special in that everything afterwards is the + // default regardless of the presence of commas. + s, i = tag[len("def="):], len(tag) + v, ev, _ := defval.Unmarshal(s, f.L1.Kind, evs, defval.GoTag) + f.L1.Default = fdesc.DefaultValue(v, ev) + case s == "proto3": + f.L0.ParentFile = fdesc.SurrogateProto3 + } + tag = strings.TrimPrefix(tag[i:], ",") + } + + // The generator uses the group message name instead of the field name. + // We obtain the real field name by lowercasing the group name. + if f.L1.Kind == pref.GroupKind { + f.L0.FullName = pref.FullName(strings.ToLower(string(f.L0.FullName))) + } + return f +} + +// Marshal encodes the protoreflect.FieldDescriptor as a tag. +// +// The enumName must be provided if the kind is an enum. +// Historically, the formulation of the enum "name" was the proto package +// dot-concatenated with the generated Go identifier for the enum type. +// Depending on the context on how Marshal is called, there are different ways +// through which that information is determined. As such it is the caller's +// responsibility to provide a function to obtain that information. +func Marshal(fd pref.FieldDescriptor, enumName string) string { + var tag []string + switch fd.Kind() { + case pref.BoolKind, pref.EnumKind, pref.Int32Kind, pref.Uint32Kind, pref.Int64Kind, pref.Uint64Kind: + tag = append(tag, "varint") + case pref.Sint32Kind: + tag = append(tag, "zigzag32") + case pref.Sint64Kind: + tag = append(tag, "zigzag64") + case pref.Sfixed32Kind, pref.Fixed32Kind, pref.FloatKind: + tag = append(tag, "fixed32") + case pref.Sfixed64Kind, pref.Fixed64Kind, pref.DoubleKind: + tag = append(tag, "fixed64") + case pref.StringKind, pref.BytesKind, pref.MessageKind: + tag = append(tag, "bytes") + case pref.GroupKind: + tag = append(tag, "group") + } + tag = append(tag, strconv.Itoa(int(fd.Number()))) + switch fd.Cardinality() { + case pref.Optional: + tag = append(tag, "opt") + case pref.Required: + tag = append(tag, "req") + case pref.Repeated: + tag = append(tag, "rep") + } + if fd.IsPacked() { + tag = append(tag, "packed") + } + name := string(fd.Name()) + if fd.Kind() == pref.GroupKind { + // The name of the FieldDescriptor for a group field is + // lowercased. To find the original capitalization, we + // look in the field's MessageType. + name = string(fd.Message().Name()) + } + tag = append(tag, "name="+name) + if jsonName := fd.JSONName(); jsonName != "" && jsonName != name && !fd.IsExtension() { + // NOTE: The jsonName != name condition is suspect, but it preserve + // the exact same semantics from the previous generator. + tag = append(tag, "json="+jsonName) + } + if fd.IsWeak() { + tag = append(tag, "weak="+string(fd.Message().FullName())) + } + // The previous implementation does not tag extension fields as proto3, + // even when the field is defined in a proto3 file. Match that behavior + // for consistency. + if fd.Syntax() == pref.Proto3 && !fd.IsExtension() { + tag = append(tag, "proto3") + } + if fd.Kind() == pref.EnumKind && enumName != "" { + tag = append(tag, "enum="+enumName) + } + if fd.ContainingOneof() != nil { + tag = append(tag, "oneof") + } + // This must appear last in the tag, since commas in strings aren't escaped. + if fd.HasDefault() { + def, _ := defval.Marshal(fd.Default(), fd.DefaultEnumValue(), fd.Kind(), defval.GoTag) + tag = append(tag, "def="+def) + } + return strings.Join(tag, ",") +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/text/decode.go b/vendor/google.golang.org/protobuf/internal/encoding/text/decode.go new file mode 100644 index 000000000..eb10ea102 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/text/decode.go @@ -0,0 +1,665 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package text + +import ( + "bytes" + "fmt" + "io" + "regexp" + "strconv" + "unicode/utf8" + + "google.golang.org/protobuf/internal/errors" +) + +// Decoder is a token-based textproto decoder. +type Decoder struct { + // lastCall is last method called, either readCall or peekCall. + // Initial value is readCall. + lastCall call + + // lastToken contains the last read token. + lastToken Token + + // lastErr contains the last read error. + lastErr error + + // openStack is a stack containing the byte characters for MessageOpen and + // ListOpen kinds. The top of stack represents the message or the list that + // the current token is nested in. An empty stack means the current token is + // at the top level message. The characters '{' and '<' both represent the + // MessageOpen kind. + openStack []byte + + // orig is used in reporting line and column. + orig []byte + // in contains the unconsumed input. + in []byte +} + +// NewDecoder returns a Decoder to read the given []byte. +func NewDecoder(b []byte) *Decoder { + return &Decoder{orig: b, in: b} +} + +// ErrUnexpectedEOF means that EOF was encountered in the middle of the input. +var ErrUnexpectedEOF = errors.New("%v", io.ErrUnexpectedEOF) + +// call specifies which Decoder method was invoked. +type call uint8 + +const ( + readCall call = iota + peekCall +) + +// Peek looks ahead and returns the next token and error without advancing a read. +func (d *Decoder) Peek() (Token, error) { + defer func() { d.lastCall = peekCall }() + if d.lastCall == readCall { + d.lastToken, d.lastErr = d.Read() + } + return d.lastToken, d.lastErr +} + +// Read returns the next token. +// It will return an error if there is no valid token. +func (d *Decoder) Read() (Token, error) { + defer func() { d.lastCall = readCall }() + if d.lastCall == peekCall { + return d.lastToken, d.lastErr + } + + tok, err := d.parseNext(d.lastToken.kind) + if err != nil { + return Token{}, err + } + + switch tok.kind { + case comma, semicolon: + tok, err = d.parseNext(tok.kind) + if err != nil { + return Token{}, err + } + } + d.lastToken = tok + return tok, nil +} + +const ( + mismatchedFmt = "mismatched close character %q" + unexpectedFmt = "unexpected character %q" +) + +// parseNext parses the next Token based on given last kind. +func (d *Decoder) parseNext(lastKind Kind) (Token, error) { + // Trim leading spaces. + d.consume(0) + isEOF := false + if len(d.in) == 0 { + isEOF = true + } + + switch lastKind { + case EOF: + return d.consumeToken(EOF, 0, 0), nil + + case bof: + // Start of top level message. Next token can be EOF or Name. + if isEOF { + return d.consumeToken(EOF, 0, 0), nil + } + return d.parseFieldName() + + case Name: + // Next token can be MessageOpen, ListOpen or Scalar. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case '{', '<': + d.pushOpenStack(ch) + return d.consumeToken(MessageOpen, 1, 0), nil + case '[': + d.pushOpenStack(ch) + return d.consumeToken(ListOpen, 1, 0), nil + default: + return d.parseScalar() + } + + case Scalar: + openKind, closeCh := d.currentOpenKind() + switch openKind { + case bof: + // Top level message. + // Next token can be EOF, comma, semicolon or Name. + if isEOF { + return d.consumeToken(EOF, 0, 0), nil + } + switch d.in[0] { + case ',': + return d.consumeToken(comma, 1, 0), nil + case ';': + return d.consumeToken(semicolon, 1, 0), nil + default: + return d.parseFieldName() + } + + case MessageOpen: + // Next token can be MessageClose, comma, semicolon or Name. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case closeCh: + d.popOpenStack() + return d.consumeToken(MessageClose, 1, 0), nil + case otherCloseChar[closeCh]: + return Token{}, d.newSyntaxError(mismatchedFmt, ch) + case ',': + return d.consumeToken(comma, 1, 0), nil + case ';': + return d.consumeToken(semicolon, 1, 0), nil + default: + return d.parseFieldName() + } + + case ListOpen: + // Next token can be ListClose or comma. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case ']': + d.popOpenStack() + return d.consumeToken(ListClose, 1, 0), nil + case ',': + return d.consumeToken(comma, 1, 0), nil + default: + return Token{}, d.newSyntaxError(unexpectedFmt, ch) + } + } + + case MessageOpen: + // Next token can be MessageClose or Name. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + _, closeCh := d.currentOpenKind() + switch ch := d.in[0]; ch { + case closeCh: + d.popOpenStack() + return d.consumeToken(MessageClose, 1, 0), nil + case otherCloseChar[closeCh]: + return Token{}, d.newSyntaxError(mismatchedFmt, ch) + default: + return d.parseFieldName() + } + + case MessageClose: + openKind, closeCh := d.currentOpenKind() + switch openKind { + case bof: + // Top level message. + // Next token can be EOF, comma, semicolon or Name. + if isEOF { + return d.consumeToken(EOF, 0, 0), nil + } + switch ch := d.in[0]; ch { + case ',': + return d.consumeToken(comma, 1, 0), nil + case ';': + return d.consumeToken(semicolon, 1, 0), nil + default: + return d.parseFieldName() + } + + case MessageOpen: + // Next token can be MessageClose, comma, semicolon or Name. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case closeCh: + d.popOpenStack() + return d.consumeToken(MessageClose, 1, 0), nil + case otherCloseChar[closeCh]: + return Token{}, d.newSyntaxError(mismatchedFmt, ch) + case ',': + return d.consumeToken(comma, 1, 0), nil + case ';': + return d.consumeToken(semicolon, 1, 0), nil + default: + return d.parseFieldName() + } + + case ListOpen: + // Next token can be ListClose or comma + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case closeCh: + d.popOpenStack() + return d.consumeToken(ListClose, 1, 0), nil + case ',': + return d.consumeToken(comma, 1, 0), nil + default: + return Token{}, d.newSyntaxError(unexpectedFmt, ch) + } + } + + case ListOpen: + // Next token can be ListClose, MessageStart or Scalar. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case ']': + d.popOpenStack() + return d.consumeToken(ListClose, 1, 0), nil + case '{', '<': + d.pushOpenStack(ch) + return d.consumeToken(MessageOpen, 1, 0), nil + default: + return d.parseScalar() + } + + case ListClose: + openKind, closeCh := d.currentOpenKind() + switch openKind { + case bof: + // Top level message. + // Next token can be EOF, comma, semicolon or Name. + if isEOF { + return d.consumeToken(EOF, 0, 0), nil + } + switch ch := d.in[0]; ch { + case ',': + return d.consumeToken(comma, 1, 0), nil + case ';': + return d.consumeToken(semicolon, 1, 0), nil + default: + return d.parseFieldName() + } + + case MessageOpen: + // Next token can be MessageClose, comma, semicolon or Name. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case closeCh: + d.popOpenStack() + return d.consumeToken(MessageClose, 1, 0), nil + case otherCloseChar[closeCh]: + return Token{}, d.newSyntaxError(mismatchedFmt, ch) + case ',': + return d.consumeToken(comma, 1, 0), nil + case ';': + return d.consumeToken(semicolon, 1, 0), nil + default: + return d.parseFieldName() + } + + default: + // It is not possible to have this case. Let it panic below. + } + + case comma, semicolon: + openKind, closeCh := d.currentOpenKind() + switch openKind { + case bof: + // Top level message. Next token can be EOF or Name. + if isEOF { + return d.consumeToken(EOF, 0, 0), nil + } + return d.parseFieldName() + + case MessageOpen: + // Next token can be MessageClose or Name. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case closeCh: + d.popOpenStack() + return d.consumeToken(MessageClose, 1, 0), nil + case otherCloseChar[closeCh]: + return Token{}, d.newSyntaxError(mismatchedFmt, ch) + default: + return d.parseFieldName() + } + + case ListOpen: + if lastKind == semicolon { + // It is not be possible to have this case as logic here + // should not have produced a semicolon Token when inside a + // list. Let it panic below. + break + } + // Next token can be MessageOpen or Scalar. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case '{', '<': + d.pushOpenStack(ch) + return d.consumeToken(MessageOpen, 1, 0), nil + default: + return d.parseScalar() + } + } + } + + line, column := d.Position(len(d.orig) - len(d.in)) + panic(fmt.Sprintf("Decoder.parseNext: bug at handling line %d:%d with lastKind=%v", line, column, lastKind)) +} + +var otherCloseChar = map[byte]byte{ + '}': '>', + '>': '}', +} + +// currentOpenKind indicates whether current position is inside a message, list +// or top-level message by returning MessageOpen, ListOpen or bof respectively. +// If the returned kind is either a MessageOpen or ListOpen, it also returns the +// corresponding closing character. +func (d *Decoder) currentOpenKind() (Kind, byte) { + if len(d.openStack) == 0 { + return bof, 0 + } + openCh := d.openStack[len(d.openStack)-1] + switch openCh { + case '{': + return MessageOpen, '}' + case '<': + return MessageOpen, '>' + case '[': + return ListOpen, ']' + } + panic(fmt.Sprintf("Decoder: openStack contains invalid byte %s", string(openCh))) +} + +func (d *Decoder) pushOpenStack(ch byte) { + d.openStack = append(d.openStack, ch) +} + +func (d *Decoder) popOpenStack() { + d.openStack = d.openStack[:len(d.openStack)-1] +} + +// parseFieldName parses field name and separator. +func (d *Decoder) parseFieldName() (tok Token, err error) { + defer func() { + if err == nil && d.tryConsumeChar(':') { + tok.attrs |= hasSeparator + } + }() + + // Extension or Any type URL. + if d.in[0] == '[' { + return d.parseTypeName() + } + + // Identifier. + if size := parseIdent(d.in, false); size > 0 { + return d.consumeToken(Name, size, uint8(IdentName)), nil + } + + // Field number. Identify if input is a valid number that is not negative + // and is decimal integer within 32-bit range. + if num := parseNumber(d.in); num.size > 0 { + if !num.neg && num.kind == numDec { + if _, err := strconv.ParseInt(string(d.in[:num.size]), 10, 32); err == nil { + return d.consumeToken(Name, num.size, uint8(FieldNumber)), nil + } + } + return Token{}, d.newSyntaxError("invalid field number: %s", d.in[:num.size]) + } + + return Token{}, d.newSyntaxError("invalid field name: %s", errRegexp.Find(d.in)) +} + +// parseTypeName parses Any type URL or extension field name. The name is +// enclosed in [ and ] characters. The C++ parser does not handle many legal URL +// strings. This implementation is more liberal and allows for the pattern +// ^[-_a-zA-Z0-9]+([./][-_a-zA-Z0-9]+)*`). Whitespaces and comments are allowed +// in between [ ], '.', '/' and the sub names. +func (d *Decoder) parseTypeName() (Token, error) { + startPos := len(d.orig) - len(d.in) + // Use alias s to advance first in order to use d.in for error handling. + // Caller already checks for [ as first character. + s := consume(d.in[1:], 0) + if len(s) == 0 { + return Token{}, ErrUnexpectedEOF + } + + var name []byte + for len(s) > 0 && isTypeNameChar(s[0]) { + name = append(name, s[0]) + s = s[1:] + } + s = consume(s, 0) + + var closed bool + for len(s) > 0 && !closed { + switch { + case s[0] == ']': + s = s[1:] + closed = true + + case s[0] == '/', s[0] == '.': + if len(name) > 0 && (name[len(name)-1] == '/' || name[len(name)-1] == '.') { + return Token{}, d.newSyntaxError("invalid type URL/extension field name: %s", + d.orig[startPos:len(d.orig)-len(s)+1]) + } + name = append(name, s[0]) + s = s[1:] + s = consume(s, 0) + for len(s) > 0 && isTypeNameChar(s[0]) { + name = append(name, s[0]) + s = s[1:] + } + s = consume(s, 0) + + default: + return Token{}, d.newSyntaxError( + "invalid type URL/extension field name: %s", d.orig[startPos:len(d.orig)-len(s)+1]) + } + } + + if !closed { + return Token{}, ErrUnexpectedEOF + } + + // First character cannot be '.'. Last character cannot be '.' or '/'. + size := len(name) + if size == 0 || name[0] == '.' || name[size-1] == '.' || name[size-1] == '/' { + return Token{}, d.newSyntaxError("invalid type URL/extension field name: %s", + d.orig[startPos:len(d.orig)-len(s)]) + } + + d.in = s + endPos := len(d.orig) - len(d.in) + d.consume(0) + + return Token{ + kind: Name, + attrs: uint8(TypeName), + pos: startPos, + raw: d.orig[startPos:endPos], + str: string(name), + }, nil +} + +func isTypeNameChar(b byte) bool { + return (b == '-' || b == '_' || + ('0' <= b && b <= '9') || + ('a' <= b && b <= 'z') || + ('A' <= b && b <= 'Z')) +} + +func isWhiteSpace(b byte) bool { + switch b { + case ' ', '\n', '\r', '\t': + return true + default: + return false + } +} + +// parseIdent parses an unquoted proto identifier and returns size. +// If allowNeg is true, it allows '-' to be the first character in the +// identifier. This is used when parsing literal values like -infinity, etc. +// Regular expression matches an identifier: `^[_a-zA-Z][_a-zA-Z0-9]*` +func parseIdent(input []byte, allowNeg bool) int { + var size int + + s := input + if len(s) == 0 { + return 0 + } + + if allowNeg && s[0] == '-' { + s = s[1:] + size++ + if len(s) == 0 { + return 0 + } + } + + switch { + case s[0] == '_', + 'a' <= s[0] && s[0] <= 'z', + 'A' <= s[0] && s[0] <= 'Z': + s = s[1:] + size++ + default: + return 0 + } + + for len(s) > 0 && (s[0] == '_' || + 'a' <= s[0] && s[0] <= 'z' || + 'A' <= s[0] && s[0] <= 'Z' || + '0' <= s[0] && s[0] <= '9') { + s = s[1:] + size++ + } + + if len(s) > 0 && !isDelim(s[0]) { + return 0 + } + + return size +} + +// parseScalar parses for a string, literal or number value. +func (d *Decoder) parseScalar() (Token, error) { + if d.in[0] == '"' || d.in[0] == '\'' { + return d.parseStringValue() + } + + if tok, ok := d.parseLiteralValue(); ok { + return tok, nil + } + + if tok, ok := d.parseNumberValue(); ok { + return tok, nil + } + + return Token{}, d.newSyntaxError("invalid scalar value: %s", errRegexp.Find(d.in)) +} + +// parseLiteralValue parses a literal value. A literal value is used for +// bools, special floats and enums. This function simply identifies that the +// field value is a literal. +func (d *Decoder) parseLiteralValue() (Token, bool) { + size := parseIdent(d.in, true) + if size == 0 { + return Token{}, false + } + return d.consumeToken(Scalar, size, literalValue), true +} + +// consumeToken constructs a Token for given Kind from d.in and consumes given +// size-length from it. +func (d *Decoder) consumeToken(kind Kind, size int, attrs uint8) Token { + // Important to compute raw and pos before consuming. + tok := Token{ + kind: kind, + attrs: attrs, + pos: len(d.orig) - len(d.in), + raw: d.in[:size], + } + d.consume(size) + return tok +} + +// newSyntaxError returns a syntax error with line and column information for +// current position. +func (d *Decoder) newSyntaxError(f string, x ...interface{}) error { + e := errors.New(f, x...) + line, column := d.Position(len(d.orig) - len(d.in)) + return errors.New("syntax error (line %d:%d): %v", line, column, e) +} + +// Position returns line and column number of given index of the original input. +// It will panic if index is out of range. +func (d *Decoder) Position(idx int) (line int, column int) { + b := d.orig[:idx] + line = bytes.Count(b, []byte("\n")) + 1 + if i := bytes.LastIndexByte(b, '\n'); i >= 0 { + b = b[i+1:] + } + column = utf8.RuneCount(b) + 1 // ignore multi-rune characters + return line, column +} + +func (d *Decoder) tryConsumeChar(c byte) bool { + if len(d.in) > 0 && d.in[0] == c { + d.consume(1) + return true + } + return false +} + +// consume consumes n bytes of input and any subsequent whitespace or comments. +func (d *Decoder) consume(n int) { + d.in = consume(d.in, n) + return +} + +// consume consumes n bytes of input and any subsequent whitespace or comments. +func consume(b []byte, n int) []byte { + b = b[n:] + for len(b) > 0 { + switch b[0] { + case ' ', '\n', '\r', '\t': + b = b[1:] + case '#': + if i := bytes.IndexByte(b, '\n'); i >= 0 { + b = b[i+len("\n"):] + } else { + b = nil + } + default: + return b + } + } + return b +} + +// Any sequence that looks like a non-delimiter (for error reporting). +var errRegexp = regexp.MustCompile(`^([-+._a-zA-Z0-9\/]+|.)`) + +// isDelim returns true if given byte is a delimiter character. +func isDelim(c byte) bool { + return !(c == '-' || c == '+' || c == '.' || c == '_' || + ('a' <= c && c <= 'z') || + ('A' <= c && c <= 'Z') || + ('0' <= c && c <= '9')) +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/text/decode_number.go b/vendor/google.golang.org/protobuf/internal/encoding/text/decode_number.go new file mode 100644 index 000000000..f2d90b789 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/text/decode_number.go @@ -0,0 +1,190 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package text + +// parseNumberValue parses a number from the input and returns a Token object. +func (d *Decoder) parseNumberValue() (Token, bool) { + in := d.in + num := parseNumber(in) + if num.size == 0 { + return Token{}, false + } + numAttrs := num.kind + if num.neg { + numAttrs |= isNegative + } + strSize := num.size + last := num.size - 1 + if num.kind == numFloat && (d.in[last] == 'f' || d.in[last] == 'F') { + strSize = last + } + tok := Token{ + kind: Scalar, + attrs: numberValue, + pos: len(d.orig) - len(d.in), + raw: d.in[:num.size], + str: string(d.in[:strSize]), + numAttrs: numAttrs, + } + d.consume(num.size) + return tok, true +} + +const ( + numDec uint8 = (1 << iota) / 2 + numHex + numOct + numFloat +) + +// number is the result of parsing out a valid number from parseNumber. It +// contains data for doing float or integer conversion via the strconv package +// in conjunction with the input bytes. +type number struct { + kind uint8 + neg bool + size int +} + +// parseNumber constructs a number object from given input. It allows for the +// following patterns: +// integer: ^-?([1-9][0-9]*|0[xX][0-9a-fA-F]+|0[0-7]*) +// float: ^-?((0|[1-9][0-9]*)?([.][0-9]*)?([eE][+-]?[0-9]+)?[fF]?) +// It also returns the number of parsed bytes for the given number, 0 if it is +// not a number. +func parseNumber(input []byte) number { + kind := numDec + var size int + var neg bool + + s := input + if len(s) == 0 { + return number{} + } + + // Optional - + if s[0] == '-' { + neg = true + s = s[1:] + size++ + if len(s) == 0 { + return number{} + } + } + + // C++ allows for whitespace and comments in between the negative sign and + // the rest of the number. This logic currently does not but is consistent + // with v1. + + switch { + case s[0] == '0': + if len(s) > 1 { + switch { + case s[1] == 'x' || s[1] == 'X': + // Parse as hex number. + kind = numHex + n := 2 + s = s[2:] + for len(s) > 0 && (('0' <= s[0] && s[0] <= '9') || + ('a' <= s[0] && s[0] <= 'f') || + ('A' <= s[0] && s[0] <= 'F')) { + s = s[1:] + n++ + } + if n == 2 { + return number{} + } + size += n + + case '0' <= s[1] && s[1] <= '7': + // Parse as octal number. + kind = numOct + n := 2 + s = s[2:] + for len(s) > 0 && '0' <= s[0] && s[0] <= '7' { + s = s[1:] + n++ + } + size += n + } + + if kind&(numHex|numOct) > 0 { + if len(s) > 0 && !isDelim(s[0]) { + return number{} + } + return number{kind: kind, neg: neg, size: size} + } + } + s = s[1:] + size++ + + case '1' <= s[0] && s[0] <= '9': + n := 1 + s = s[1:] + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + size += n + + case s[0] == '.': + // Set kind to numFloat to signify the intent to parse as float. And + // that it needs to have other digits after '.'. + kind = numFloat + + default: + return number{} + } + + // . followed by 0 or more digits. + if len(s) > 0 && s[0] == '.' { + n := 1 + s = s[1:] + // If decimal point was before any digits, it should be followed by + // other digits. + if len(s) == 0 && kind == numFloat { + return number{} + } + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + size += n + kind = numFloat + } + + // e or E followed by an optional - or + and 1 or more digits. + if len(s) >= 2 && (s[0] == 'e' || s[0] == 'E') { + kind = numFloat + s = s[1:] + n := 1 + if s[0] == '+' || s[0] == '-' { + s = s[1:] + n++ + if len(s) == 0 { + return number{} + } + } + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + size += n + } + + // Optional suffix f or F for floats. + if len(s) > 0 && (s[0] == 'f' || s[0] == 'F') { + kind = numFloat + s = s[1:] + size++ + } + + // Check that next byte is a delimiter or it is at the end. + if len(s) > 0 && !isDelim(s[0]) { + return number{} + } + + return number{kind: kind, neg: neg, size: size} +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/text/decode_string.go b/vendor/google.golang.org/protobuf/internal/encoding/text/decode_string.go new file mode 100644 index 000000000..d4d349023 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/text/decode_string.go @@ -0,0 +1,161 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package text + +import ( + "bytes" + "strconv" + "strings" + "unicode" + "unicode/utf16" + "unicode/utf8" + + "google.golang.org/protobuf/internal/strs" +) + +// parseStringValue parses string field token. +// This differs from parseString since the text format allows +// multiple back-to-back string literals where they are semantically treated +// as a single large string with all values concatenated. +// +// E.g., `"foo" "bar" "baz"` => "foobarbaz" +func (d *Decoder) parseStringValue() (Token, error) { + // Note that the ending quote is sufficient to unambiguously mark the end + // of a string. Thus, the text grammar does not require intervening + // whitespace or control characters in-between strings. + // Thus, the following is valid: + // `"foo"'bar'"baz"` => "foobarbaz" + in0 := d.in + var ss []string + for len(d.in) > 0 && (d.in[0] == '"' || d.in[0] == '\'') { + s, err := d.parseString() + if err != nil { + return Token{}, err + } + ss = append(ss, s) + } + // d.in already points to the end of the value at this point. + return Token{ + kind: Scalar, + attrs: stringValue, + pos: len(d.orig) - len(in0), + raw: in0[:len(in0)-len(d.in)], + str: strings.Join(ss, ""), + }, nil +} + +// parseString parses a string value enclosed in " or '. +func (d *Decoder) parseString() (string, error) { + in := d.in + if len(in) == 0 { + return "", ErrUnexpectedEOF + } + quote := in[0] + in = in[1:] + i := indexNeedEscapeInBytes(in) + in, out := in[i:], in[:i:i] // set cap to prevent mutations + for len(in) > 0 { + switch r, n := utf8.DecodeRune(in); { + case r == utf8.RuneError && n == 1: + return "", d.newSyntaxError("invalid UTF-8 detected") + case r == 0 || r == '\n': + return "", d.newSyntaxError("invalid character %q in string", r) + case r == rune(quote): + in = in[1:] + d.consume(len(d.in) - len(in)) + return string(out), nil + case r == '\\': + if len(in) < 2 { + return "", ErrUnexpectedEOF + } + switch r := in[1]; r { + case '"', '\'', '\\', '?': + in, out = in[2:], append(out, r) + case 'a': + in, out = in[2:], append(out, '\a') + case 'b': + in, out = in[2:], append(out, '\b') + case 'n': + in, out = in[2:], append(out, '\n') + case 'r': + in, out = in[2:], append(out, '\r') + case 't': + in, out = in[2:], append(out, '\t') + case 'v': + in, out = in[2:], append(out, '\v') + case 'f': + in, out = in[2:], append(out, '\f') + case '0', '1', '2', '3', '4', '5', '6', '7': + // One, two, or three octal characters. + n := len(in[1:]) - len(bytes.TrimLeft(in[1:], "01234567")) + if n > 3 { + n = 3 + } + v, err := strconv.ParseUint(string(in[1:1+n]), 8, 8) + if err != nil { + return "", d.newSyntaxError("invalid octal escape code %q in string", in[:1+n]) + } + in, out = in[1+n:], append(out, byte(v)) + case 'x': + // One or two hexadecimal characters. + n := len(in[2:]) - len(bytes.TrimLeft(in[2:], "0123456789abcdefABCDEF")) + if n > 2 { + n = 2 + } + v, err := strconv.ParseUint(string(in[2:2+n]), 16, 8) + if err != nil { + return "", d.newSyntaxError("invalid hex escape code %q in string", in[:2+n]) + } + in, out = in[2+n:], append(out, byte(v)) + case 'u', 'U': + // Four or eight hexadecimal characters + n := 6 + if r == 'U' { + n = 10 + } + if len(in) < n { + return "", ErrUnexpectedEOF + } + v, err := strconv.ParseUint(string(in[2:n]), 16, 32) + if utf8.MaxRune < v || err != nil { + return "", d.newSyntaxError("invalid Unicode escape code %q in string", in[:n]) + } + in = in[n:] + + r := rune(v) + if utf16.IsSurrogate(r) { + if len(in) < 6 { + return "", ErrUnexpectedEOF + } + v, err := strconv.ParseUint(string(in[2:6]), 16, 16) + r = utf16.DecodeRune(r, rune(v)) + if in[0] != '\\' || in[1] != 'u' || r == unicode.ReplacementChar || err != nil { + return "", d.newSyntaxError("invalid Unicode escape code %q in string", in[:6]) + } + in = in[6:] + } + out = append(out, string(r)...) + default: + return "", d.newSyntaxError("invalid escape code %q in string", in[:2]) + } + default: + i := indexNeedEscapeInBytes(in[n:]) + in, out = in[n+i:], append(out, in[:n+i]...) + } + } + return "", ErrUnexpectedEOF +} + +// indexNeedEscapeInString returns the index of the character that needs +// escaping. If no characters need escaping, this returns the input length. +func indexNeedEscapeInBytes(b []byte) int { return indexNeedEscapeInString(strs.UnsafeString(b)) } + +// UnmarshalString returns an unescaped string given a textproto string value. +// String value needs to contain single or double quotes. This is only used by +// internal/encoding/defval package for unmarshaling bytes. +func UnmarshalString(s string) (string, error) { + d := NewDecoder([]byte(s)) + return d.parseString() +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/text/decode_token.go b/vendor/google.golang.org/protobuf/internal/encoding/text/decode_token.go new file mode 100644 index 000000000..83d2b0d5a --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/text/decode_token.go @@ -0,0 +1,373 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package text + +import ( + "bytes" + "fmt" + "math" + "strconv" + "strings" + + "google.golang.org/protobuf/internal/flags" +) + +// Kind represents a token kind expressible in the textproto format. +type Kind uint8 + +// Kind values. +const ( + Invalid Kind = iota + EOF + Name // Name indicates the field name. + Scalar // Scalar are scalar values, e.g. "string", 47, ENUM_LITERAL, true. + MessageOpen + MessageClose + ListOpen + ListClose + + // comma and semi-colon are only for parsing in between values and should not be exposed. + comma + semicolon + + // bof indicates beginning of file, which is the default token + // kind at the beginning of parsing. + bof = Invalid +) + +func (t Kind) String() string { + switch t { + case Invalid: + return "" + case EOF: + return "eof" + case Scalar: + return "scalar" + case Name: + return "name" + case MessageOpen: + return "{" + case MessageClose: + return "}" + case ListOpen: + return "[" + case ListClose: + return "]" + case comma: + return "," + case semicolon: + return ";" + default: + return fmt.Sprintf("", uint8(t)) + } +} + +// NameKind represents different types of field names. +type NameKind uint8 + +// NameKind values. +const ( + IdentName NameKind = iota + 1 + TypeName + FieldNumber +) + +func (t NameKind) String() string { + switch t { + case IdentName: + return "IdentName" + case TypeName: + return "TypeName" + case FieldNumber: + return "FieldNumber" + default: + return fmt.Sprintf("", uint8(t)) + } +} + +// Bit mask in Token.attrs to indicate if a Name token is followed by the +// separator char ':'. The field name separator char is optional for message +// field or repeated message field, but required for all other types. Decoder +// simply indicates whether a Name token is followed by separator or not. It is +// up to the prototext package to validate. +const hasSeparator = 1 << 7 + +// Scalar value types. +const ( + numberValue = iota + 1 + stringValue + literalValue +) + +// Bit mask in Token.numAttrs to indicate that the number is a negative. +const isNegative = 1 << 7 + +// Token provides a parsed token kind and value. Values are provided by the +// different accessor methods. +type Token struct { + // Kind of the Token object. + kind Kind + // attrs contains metadata for the following Kinds: + // Name: hasSeparator bit and one of NameKind. + // Scalar: one of numberValue, stringValue, literalValue. + attrs uint8 + // numAttrs contains metadata for numberValue: + // - highest bit is whether negative or positive. + // - lower bits indicate one of numDec, numHex, numOct, numFloat. + numAttrs uint8 + // pos provides the position of the token in the original input. + pos int + // raw bytes of the serialized token. + // This is a subslice into the original input. + raw []byte + // str contains parsed string for the following: + // - stringValue of Scalar kind + // - numberValue of Scalar kind + // - TypeName of Name kind + str string +} + +// Kind returns the token kind. +func (t Token) Kind() Kind { + return t.kind +} + +// RawString returns the read value in string. +func (t Token) RawString() string { + return string(t.raw) +} + +// Pos returns the token position from the input. +func (t Token) Pos() int { + return t.pos +} + +// NameKind returns IdentName, TypeName or FieldNumber. +// It panics if type is not Name. +func (t Token) NameKind() NameKind { + if t.kind == Name { + return NameKind(t.attrs &^ hasSeparator) + } + panic(fmt.Sprintf("Token is not a Name type: %s", t.kind)) +} + +// HasSeparator returns true if the field name is followed by the separator char +// ':', else false. It panics if type is not Name. +func (t Token) HasSeparator() bool { + if t.kind == Name { + return t.attrs&hasSeparator != 0 + } + panic(fmt.Sprintf("Token is not a Name type: %s", t.kind)) +} + +// IdentName returns the value for IdentName type. +func (t Token) IdentName() string { + if t.kind == Name && t.attrs&uint8(IdentName) != 0 { + return string(t.raw) + } + panic(fmt.Sprintf("Token is not an IdentName: %s:%s", t.kind, NameKind(t.attrs&^hasSeparator))) +} + +// TypeName returns the value for TypeName type. +func (t Token) TypeName() string { + if t.kind == Name && t.attrs&uint8(TypeName) != 0 { + return t.str + } + panic(fmt.Sprintf("Token is not a TypeName: %s:%s", t.kind, NameKind(t.attrs&^hasSeparator))) +} + +// FieldNumber returns the value for FieldNumber type. It returns a +// non-negative int32 value. Caller will still need to validate for the correct +// field number range. +func (t Token) FieldNumber() int32 { + if t.kind != Name || t.attrs&uint8(FieldNumber) == 0 { + panic(fmt.Sprintf("Token is not a FieldNumber: %s:%s", t.kind, NameKind(t.attrs&^hasSeparator))) + } + // Following should not return an error as it had already been called right + // before this Token was constructed. + num, _ := strconv.ParseInt(string(t.raw), 10, 32) + return int32(num) +} + +// String returns the string value for a Scalar type. +func (t Token) String() (string, bool) { + if t.kind != Scalar || t.attrs != stringValue { + return "", false + } + return t.str, true +} + +// Enum returns the literal value for a Scalar type for use as enum literals. +func (t Token) Enum() (string, bool) { + if t.kind != Scalar || t.attrs != literalValue || (len(t.raw) > 0 && t.raw[0] == '-') { + return "", false + } + return string(t.raw), true +} + +// Bool returns the bool value for a Scalar type. +func (t Token) Bool() (bool, bool) { + if t.kind != Scalar { + return false, false + } + switch t.attrs { + case literalValue: + if b, ok := boolLits[string(t.raw)]; ok { + return b, true + } + case numberValue: + // Unsigned integer representation of 0 or 1 is permitted: 00, 0x0, 01, + // 0x1, etc. + n, err := strconv.ParseUint(t.str, 0, 64) + if err == nil { + switch n { + case 0: + return false, true + case 1: + return true, true + } + } + } + return false, false +} + +// These exact boolean literals are the ones supported in C++. +var boolLits = map[string]bool{ + "t": true, + "true": true, + "True": true, + "f": false, + "false": false, + "False": false, +} + +// Uint64 returns the uint64 value for a Scalar type. +func (t Token) Uint64() (uint64, bool) { + if t.kind != Scalar || t.attrs != numberValue || + t.numAttrs&isNegative > 0 || t.numAttrs&numFloat > 0 { + return 0, false + } + n, err := strconv.ParseUint(t.str, 0, 64) + if err != nil { + return 0, false + } + return n, true +} + +// Uint32 returns the uint32 value for a Scalar type. +func (t Token) Uint32() (uint32, bool) { + if t.kind != Scalar || t.attrs != numberValue || + t.numAttrs&isNegative > 0 || t.numAttrs&numFloat > 0 { + return 0, false + } + n, err := strconv.ParseUint(t.str, 0, 32) + if err != nil { + return 0, false + } + return uint32(n), true +} + +// Int64 returns the int64 value for a Scalar type. +func (t Token) Int64() (int64, bool) { + if t.kind != Scalar || t.attrs != numberValue || t.numAttrs&numFloat > 0 { + return 0, false + } + if n, err := strconv.ParseInt(t.str, 0, 64); err == nil { + return n, true + } + // C++ accepts large positive hex numbers as negative values. + // This feature is here for proto1 backwards compatibility purposes. + if flags.ProtoLegacy && (t.numAttrs == numHex) { + if n, err := strconv.ParseUint(t.str, 0, 64); err == nil { + return int64(n), true + } + } + return 0, false +} + +// Int32 returns the int32 value for a Scalar type. +func (t Token) Int32() (int32, bool) { + if t.kind != Scalar || t.attrs != numberValue || t.numAttrs&numFloat > 0 { + return 0, false + } + if n, err := strconv.ParseInt(t.str, 0, 32); err == nil { + return int32(n), true + } + // C++ accepts large positive hex numbers as negative values. + // This feature is here for proto1 backwards compatibility purposes. + if flags.ProtoLegacy && (t.numAttrs == numHex) { + if n, err := strconv.ParseUint(t.str, 0, 32); err == nil { + return int32(n), true + } + } + return 0, false +} + +// Float64 returns the float64 value for a Scalar type. +func (t Token) Float64() (float64, bool) { + if t.kind != Scalar { + return 0, false + } + switch t.attrs { + case literalValue: + if f, ok := floatLits[strings.ToLower(string(t.raw))]; ok { + return f, true + } + case numberValue: + n, err := strconv.ParseFloat(t.str, 64) + if err == nil { + return n, true + } + nerr := err.(*strconv.NumError) + if nerr.Err == strconv.ErrRange { + return n, true + } + } + return 0, false +} + +// Float32 returns the float32 value for a Scalar type. +func (t Token) Float32() (float32, bool) { + if t.kind != Scalar { + return 0, false + } + switch t.attrs { + case literalValue: + if f, ok := floatLits[strings.ToLower(string(t.raw))]; ok { + return float32(f), true + } + case numberValue: + n, err := strconv.ParseFloat(t.str, 64) + if err == nil { + // Overflows are treated as (-)infinity. + return float32(n), true + } + nerr := err.(*strconv.NumError) + if nerr.Err == strconv.ErrRange { + return float32(n), true + } + } + return 0, false +} + +// These are the supported float literals which C++ permits case-insensitive +// variants of these. +var floatLits = map[string]float64{ + "nan": math.NaN(), + "inf": math.Inf(1), + "infinity": math.Inf(1), + "-inf": math.Inf(-1), + "-infinity": math.Inf(-1), +} + +// TokenEquals returns true if given Tokens are equal, else false. +func TokenEquals(x, y Token) bool { + return x.kind == y.kind && + x.attrs == y.attrs && + x.numAttrs == y.numAttrs && + x.pos == y.pos && + bytes.Equal(x.raw, y.raw) && + x.str == y.str +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/text/doc.go b/vendor/google.golang.org/protobuf/internal/encoding/text/doc.go new file mode 100644 index 000000000..0ce8d6fb8 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/text/doc.go @@ -0,0 +1,29 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package text implements the text format for protocol buffers. +// This package has no semantic understanding for protocol buffers and is only +// a parser and composer for the format. +// +// There is no formal specification for the protobuf text format, as such the +// C++ implementation (see google::protobuf::TextFormat) is the reference +// implementation of the text format. +// +// This package is neither a superset nor a subset of the C++ implementation. +// This implementation permits a more liberal grammar in some cases to be +// backwards compatible with the historical Go implementation. +// Future parsings unique to Go should not be added. +// Some grammars allowed by the C++ implementation are deliberately +// not implemented here because they are considered a bug by the protobuf team +// and should not be replicated. +// +// The Go implementation should implement a sufficient amount of the C++ +// grammar such that the default text serialization by C++ can be parsed by Go. +// However, just because the C++ parser accepts some input does not mean that +// the Go implementation should as well. +// +// The text format is almost a superset of JSON except: +// * message keys are not quoted strings, but identifiers +// * the top-level value must be a message without the delimiters +package text diff --git a/vendor/google.golang.org/protobuf/internal/encoding/text/encode.go b/vendor/google.golang.org/protobuf/internal/encoding/text/encode.go new file mode 100644 index 000000000..c4ba1c598 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/text/encode.go @@ -0,0 +1,267 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package text + +import ( + "math" + "math/bits" + "strconv" + "strings" + "unicode/utf8" + + "google.golang.org/protobuf/internal/detrand" + "google.golang.org/protobuf/internal/errors" +) + +// encType represents an encoding type. +type encType uint8 + +const ( + _ encType = (1 << iota) / 2 + name + scalar + messageOpen + messageClose +) + +// Encoder provides methods to write out textproto constructs and values. The user is +// responsible for producing valid sequences of constructs and values. +type Encoder struct { + encoderState + + indent string + newline string // set to "\n" if len(indent) > 0 + delims [2]byte + outputASCII bool +} + +type encoderState struct { + lastType encType + indents []byte + out []byte +} + +// NewEncoder returns an Encoder. +// +// If indent is a non-empty string, it causes every entry in a List or Message +// to be preceded by the indent and trailed by a newline. +// +// If delims is not the zero value, it controls the delimiter characters used +// for messages (e.g., "{}" vs "<>"). +// +// If outputASCII is true, strings will be serialized in such a way that +// multi-byte UTF-8 sequences are escaped. This property ensures that the +// overall output is ASCII (as opposed to UTF-8). +func NewEncoder(indent string, delims [2]byte, outputASCII bool) (*Encoder, error) { + e := &Encoder{} + if len(indent) > 0 { + if strings.Trim(indent, " \t") != "" { + return nil, errors.New("indent may only be composed of space and tab characters") + } + e.indent = indent + e.newline = "\n" + } + switch delims { + case [2]byte{0, 0}: + e.delims = [2]byte{'{', '}'} + case [2]byte{'{', '}'}, [2]byte{'<', '>'}: + e.delims = delims + default: + return nil, errors.New("delimiters may only be \"{}\" or \"<>\"") + } + e.outputASCII = outputASCII + + return e, nil +} + +// Bytes returns the content of the written bytes. +func (e *Encoder) Bytes() []byte { + return e.out +} + +// StartMessage writes out the '{' or '<' symbol. +func (e *Encoder) StartMessage() { + e.prepareNext(messageOpen) + e.out = append(e.out, e.delims[0]) +} + +// EndMessage writes out the '}' or '>' symbol. +func (e *Encoder) EndMessage() { + e.prepareNext(messageClose) + e.out = append(e.out, e.delims[1]) +} + +// WriteName writes out the field name and the separator ':'. +func (e *Encoder) WriteName(s string) { + e.prepareNext(name) + e.out = append(e.out, s...) + e.out = append(e.out, ':') +} + +// WriteBool writes out the given boolean value. +func (e *Encoder) WriteBool(b bool) { + if b { + e.WriteLiteral("true") + } else { + e.WriteLiteral("false") + } +} + +// WriteString writes out the given string value. +func (e *Encoder) WriteString(s string) { + e.prepareNext(scalar) + e.out = appendString(e.out, s, e.outputASCII) +} + +func appendString(out []byte, in string, outputASCII bool) []byte { + out = append(out, '"') + i := indexNeedEscapeInString(in) + in, out = in[i:], append(out, in[:i]...) + for len(in) > 0 { + switch r, n := utf8.DecodeRuneInString(in); { + case r == utf8.RuneError && n == 1: + // We do not report invalid UTF-8 because strings in the text format + // are used to represent both the proto string and bytes type. + r = rune(in[0]) + fallthrough + case r < ' ' || r == '"' || r == '\\': + out = append(out, '\\') + switch r { + case '"', '\\': + out = append(out, byte(r)) + case '\n': + out = append(out, 'n') + case '\r': + out = append(out, 'r') + case '\t': + out = append(out, 't') + default: + out = append(out, 'x') + out = append(out, "00"[1+(bits.Len32(uint32(r))-1)/4:]...) + out = strconv.AppendUint(out, uint64(r), 16) + } + in = in[n:] + case outputASCII && r >= utf8.RuneSelf: + out = append(out, '\\') + if r <= math.MaxUint16 { + out = append(out, 'u') + out = append(out, "0000"[1+(bits.Len32(uint32(r))-1)/4:]...) + out = strconv.AppendUint(out, uint64(r), 16) + } else { + out = append(out, 'U') + out = append(out, "00000000"[1+(bits.Len32(uint32(r))-1)/4:]...) + out = strconv.AppendUint(out, uint64(r), 16) + } + in = in[n:] + default: + i := indexNeedEscapeInString(in[n:]) + in, out = in[n+i:], append(out, in[:n+i]...) + } + } + out = append(out, '"') + return out +} + +// indexNeedEscapeInString returns the index of the character that needs +// escaping. If no characters need escaping, this returns the input length. +func indexNeedEscapeInString(s string) int { + for i := 0; i < len(s); i++ { + if c := s[i]; c < ' ' || c == '"' || c == '\'' || c == '\\' || c >= utf8.RuneSelf { + return i + } + } + return len(s) +} + +// WriteFloat writes out the given float value for given bitSize. +func (e *Encoder) WriteFloat(n float64, bitSize int) { + e.prepareNext(scalar) + e.out = appendFloat(e.out, n, bitSize) +} + +func appendFloat(out []byte, n float64, bitSize int) []byte { + switch { + case math.IsNaN(n): + return append(out, "nan"...) + case math.IsInf(n, +1): + return append(out, "inf"...) + case math.IsInf(n, -1): + return append(out, "-inf"...) + default: + return strconv.AppendFloat(out, n, 'g', -1, bitSize) + } +} + +// WriteInt writes out the given signed integer value. +func (e *Encoder) WriteInt(n int64) { + e.prepareNext(scalar) + e.out = append(e.out, strconv.FormatInt(n, 10)...) +} + +// WriteUint writes out the given unsigned integer value. +func (e *Encoder) WriteUint(n uint64) { + e.prepareNext(scalar) + e.out = append(e.out, strconv.FormatUint(n, 10)...) +} + +// WriteLiteral writes out the given string as a literal value without quotes. +// This is used for writing enum literal strings. +func (e *Encoder) WriteLiteral(s string) { + e.prepareNext(scalar) + e.out = append(e.out, s...) +} + +// prepareNext adds possible space and indentation for the next value based +// on last encType and indent option. It also updates e.lastType to next. +func (e *Encoder) prepareNext(next encType) { + defer func() { + e.lastType = next + }() + + // Single line. + if len(e.indent) == 0 { + // Add space after each field before the next one. + if e.lastType&(scalar|messageClose) != 0 && next == name { + e.out = append(e.out, ' ') + // Add a random extra space to make output unstable. + if detrand.Bool() { + e.out = append(e.out, ' ') + } + } + return + } + + // Multi-line. + switch { + case e.lastType == name: + e.out = append(e.out, ' ') + // Add a random extra space after name: to make output unstable. + if detrand.Bool() { + e.out = append(e.out, ' ') + } + + case e.lastType == messageOpen && next != messageClose: + e.indents = append(e.indents, e.indent...) + e.out = append(e.out, '\n') + e.out = append(e.out, e.indents...) + + case e.lastType&(scalar|messageClose) != 0: + if next == messageClose { + e.indents = e.indents[:len(e.indents)-len(e.indent)] + } + e.out = append(e.out, '\n') + e.out = append(e.out, e.indents...) + } +} + +// Snapshot returns the current snapshot for use in Reset. +func (e *Encoder) Snapshot() encoderState { + return e.encoderState +} + +// Reset resets the Encoder to the given encoderState from a Snapshot. +func (e *Encoder) Reset(es encoderState) { + e.encoderState = es +} diff --git a/vendor/google.golang.org/protobuf/internal/errors/errors.go b/vendor/google.golang.org/protobuf/internal/errors/errors.go new file mode 100644 index 000000000..20c17b35e --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/errors/errors.go @@ -0,0 +1,89 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package errors implements functions to manipulate errors. +package errors + +import ( + "errors" + "fmt" + + "google.golang.org/protobuf/internal/detrand" +) + +// Error is a sentinel matching all errors produced by this package. +var Error = errors.New("protobuf error") + +// New formats a string according to the format specifier and arguments and +// returns an error that has a "proto" prefix. +func New(f string, x ...interface{}) error { + return &prefixError{s: format(f, x...)} +} + +type prefixError struct{ s string } + +var prefix = func() string { + // Deliberately introduce instability into the error message string to + // discourage users from performing error string comparisons. + if detrand.Bool() { + return "proto: " // use non-breaking spaces (U+00a0) + } else { + return "proto: " // use regular spaces (U+0020) + } +}() + +func (e *prefixError) Error() string { + return prefix + e.s +} + +func (e *prefixError) Unwrap() error { + return Error +} + +// Wrap returns an error that has a "proto" prefix, the formatted string described +// by the format specifier and arguments, and a suffix of err. The error wraps err. +func Wrap(err error, f string, x ...interface{}) error { + return &wrapError{ + s: format(f, x...), + err: err, + } +} + +type wrapError struct { + s string + err error +} + +func (e *wrapError) Error() string { + return format("%v%v: %v", prefix, e.s, e.err) +} + +func (e *wrapError) Unwrap() error { + return e.err +} + +func (e *wrapError) Is(target error) bool { + return target == Error +} + +func format(f string, x ...interface{}) string { + // avoid "proto: " prefix when chaining + for i := 0; i < len(x); i++ { + switch e := x[i].(type) { + case *prefixError: + x[i] = e.s + case *wrapError: + x[i] = format("%v: %v", e.s, e.err) + } + } + return fmt.Sprintf(f, x...) +} + +func InvalidUTF8(name string) error { + return New("field %v contains invalid UTF-8", name) +} + +func RequiredNotSet(name string) error { + return New("required field %v not set", name) +} diff --git a/vendor/google.golang.org/protobuf/internal/errors/is_go112.go b/vendor/google.golang.org/protobuf/internal/errors/is_go112.go new file mode 100644 index 000000000..f90e909b3 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/errors/is_go112.go @@ -0,0 +1,39 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !go1.13 + +package errors + +import "reflect" + +// Is is a copy of Go 1.13's errors.Is for use with older Go versions. +func Is(err, target error) bool { + if target == nil { + return err == target + } + + isComparable := reflect.TypeOf(target).Comparable() + for { + if isComparable && err == target { + return true + } + if x, ok := err.(interface{ Is(error) bool }); ok && x.Is(target) { + return true + } + if err = unwrap(err); err == nil { + return false + } + } +} + +func unwrap(err error) error { + u, ok := err.(interface { + Unwrap() error + }) + if !ok { + return nil + } + return u.Unwrap() +} diff --git a/vendor/google.golang.org/protobuf/internal/errors/is_go113.go b/vendor/google.golang.org/protobuf/internal/errors/is_go113.go new file mode 100644 index 000000000..dc05f4191 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/errors/is_go113.go @@ -0,0 +1,12 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build go1.13 + +package errors + +import "errors" + +// Is is errors.Is. +func Is(err, target error) bool { return errors.Is(err, target) } diff --git a/vendor/google.golang.org/protobuf/internal/fieldnum/any_gen.go b/vendor/google.golang.org/protobuf/internal/fieldnum/any_gen.go new file mode 100644 index 000000000..74c5fef24 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/fieldnum/any_gen.go @@ -0,0 +1,13 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package fieldnum + +// Field numbers for google.protobuf.Any. +const ( + Any_TypeUrl = 1 // optional string + Any_Value = 2 // optional bytes +) diff --git a/vendor/google.golang.org/protobuf/internal/fieldnum/api_gen.go b/vendor/google.golang.org/protobuf/internal/fieldnum/api_gen.go new file mode 100644 index 000000000..9a6b5f29b --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/fieldnum/api_gen.go @@ -0,0 +1,35 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package fieldnum + +// Field numbers for google.protobuf.Api. +const ( + Api_Name = 1 // optional string + Api_Methods = 2 // repeated google.protobuf.Method + Api_Options = 3 // repeated google.protobuf.Option + Api_Version = 4 // optional string + Api_SourceContext = 5 // optional google.protobuf.SourceContext + Api_Mixins = 6 // repeated google.protobuf.Mixin + Api_Syntax = 7 // optional google.protobuf.Syntax +) + +// Field numbers for google.protobuf.Method. +const ( + Method_Name = 1 // optional string + Method_RequestTypeUrl = 2 // optional string + Method_RequestStreaming = 3 // optional bool + Method_ResponseTypeUrl = 4 // optional string + Method_ResponseStreaming = 5 // optional bool + Method_Options = 6 // repeated google.protobuf.Option + Method_Syntax = 7 // optional google.protobuf.Syntax +) + +// Field numbers for google.protobuf.Mixin. +const ( + Mixin_Name = 1 // optional string + Mixin_Root = 2 // optional string +) diff --git a/vendor/google.golang.org/protobuf/internal/fieldnum/descriptor_gen.go b/vendor/google.golang.org/protobuf/internal/fieldnum/descriptor_gen.go new file mode 100644 index 000000000..6e37b59e9 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/fieldnum/descriptor_gen.go @@ -0,0 +1,240 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package fieldnum + +// Field numbers for google.protobuf.FileDescriptorSet. +const ( + FileDescriptorSet_File = 1 // repeated google.protobuf.FileDescriptorProto +) + +// Field numbers for google.protobuf.FileDescriptorProto. +const ( + FileDescriptorProto_Name = 1 // optional string + FileDescriptorProto_Package = 2 // optional string + FileDescriptorProto_Dependency = 3 // repeated string + FileDescriptorProto_PublicDependency = 10 // repeated int32 + FileDescriptorProto_WeakDependency = 11 // repeated int32 + FileDescriptorProto_MessageType = 4 // repeated google.protobuf.DescriptorProto + FileDescriptorProto_EnumType = 5 // repeated google.protobuf.EnumDescriptorProto + FileDescriptorProto_Service = 6 // repeated google.protobuf.ServiceDescriptorProto + FileDescriptorProto_Extension = 7 // repeated google.protobuf.FieldDescriptorProto + FileDescriptorProto_Options = 8 // optional google.protobuf.FileOptions + FileDescriptorProto_SourceCodeInfo = 9 // optional google.protobuf.SourceCodeInfo + FileDescriptorProto_Syntax = 12 // optional string +) + +// Field numbers for google.protobuf.DescriptorProto. +const ( + DescriptorProto_Name = 1 // optional string + DescriptorProto_Field = 2 // repeated google.protobuf.FieldDescriptorProto + DescriptorProto_Extension = 6 // repeated google.protobuf.FieldDescriptorProto + DescriptorProto_NestedType = 3 // repeated google.protobuf.DescriptorProto + DescriptorProto_EnumType = 4 // repeated google.protobuf.EnumDescriptorProto + DescriptorProto_ExtensionRange = 5 // repeated google.protobuf.DescriptorProto.ExtensionRange + DescriptorProto_OneofDecl = 8 // repeated google.protobuf.OneofDescriptorProto + DescriptorProto_Options = 7 // optional google.protobuf.MessageOptions + DescriptorProto_ReservedRange = 9 // repeated google.protobuf.DescriptorProto.ReservedRange + DescriptorProto_ReservedName = 10 // repeated string +) + +// Field numbers for google.protobuf.DescriptorProto.ExtensionRange. +const ( + DescriptorProto_ExtensionRange_Start = 1 // optional int32 + DescriptorProto_ExtensionRange_End = 2 // optional int32 + DescriptorProto_ExtensionRange_Options = 3 // optional google.protobuf.ExtensionRangeOptions +) + +// Field numbers for google.protobuf.DescriptorProto.ReservedRange. +const ( + DescriptorProto_ReservedRange_Start = 1 // optional int32 + DescriptorProto_ReservedRange_End = 2 // optional int32 +) + +// Field numbers for google.protobuf.ExtensionRangeOptions. +const ( + ExtensionRangeOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption +) + +// Field numbers for google.protobuf.FieldDescriptorProto. +const ( + FieldDescriptorProto_Name = 1 // optional string + FieldDescriptorProto_Number = 3 // optional int32 + FieldDescriptorProto_Label = 4 // optional google.protobuf.FieldDescriptorProto.Label + FieldDescriptorProto_Type = 5 // optional google.protobuf.FieldDescriptorProto.Type + FieldDescriptorProto_TypeName = 6 // optional string + FieldDescriptorProto_Extendee = 2 // optional string + FieldDescriptorProto_DefaultValue = 7 // optional string + FieldDescriptorProto_OneofIndex = 9 // optional int32 + FieldDescriptorProto_JsonName = 10 // optional string + FieldDescriptorProto_Options = 8 // optional google.protobuf.FieldOptions + FieldDescriptorProto_Proto3Optional = 17 // optional bool +) + +// Field numbers for google.protobuf.OneofDescriptorProto. +const ( + OneofDescriptorProto_Name = 1 // optional string + OneofDescriptorProto_Options = 2 // optional google.protobuf.OneofOptions +) + +// Field numbers for google.protobuf.EnumDescriptorProto. +const ( + EnumDescriptorProto_Name = 1 // optional string + EnumDescriptorProto_Value = 2 // repeated google.protobuf.EnumValueDescriptorProto + EnumDescriptorProto_Options = 3 // optional google.protobuf.EnumOptions + EnumDescriptorProto_ReservedRange = 4 // repeated google.protobuf.EnumDescriptorProto.EnumReservedRange + EnumDescriptorProto_ReservedName = 5 // repeated string +) + +// Field numbers for google.protobuf.EnumDescriptorProto.EnumReservedRange. +const ( + EnumDescriptorProto_EnumReservedRange_Start = 1 // optional int32 + EnumDescriptorProto_EnumReservedRange_End = 2 // optional int32 +) + +// Field numbers for google.protobuf.EnumValueDescriptorProto. +const ( + EnumValueDescriptorProto_Name = 1 // optional string + EnumValueDescriptorProto_Number = 2 // optional int32 + EnumValueDescriptorProto_Options = 3 // optional google.protobuf.EnumValueOptions +) + +// Field numbers for google.protobuf.ServiceDescriptorProto. +const ( + ServiceDescriptorProto_Name = 1 // optional string + ServiceDescriptorProto_Method = 2 // repeated google.protobuf.MethodDescriptorProto + ServiceDescriptorProto_Options = 3 // optional google.protobuf.ServiceOptions +) + +// Field numbers for google.protobuf.MethodDescriptorProto. +const ( + MethodDescriptorProto_Name = 1 // optional string + MethodDescriptorProto_InputType = 2 // optional string + MethodDescriptorProto_OutputType = 3 // optional string + MethodDescriptorProto_Options = 4 // optional google.protobuf.MethodOptions + MethodDescriptorProto_ClientStreaming = 5 // optional bool + MethodDescriptorProto_ServerStreaming = 6 // optional bool +) + +// Field numbers for google.protobuf.FileOptions. +const ( + FileOptions_JavaPackage = 1 // optional string + FileOptions_JavaOuterClassname = 8 // optional string + FileOptions_JavaMultipleFiles = 10 // optional bool + FileOptions_JavaGenerateEqualsAndHash = 20 // optional bool + FileOptions_JavaStringCheckUtf8 = 27 // optional bool + FileOptions_OptimizeFor = 9 // optional google.protobuf.FileOptions.OptimizeMode + FileOptions_GoPackage = 11 // optional string + FileOptions_CcGenericServices = 16 // optional bool + FileOptions_JavaGenericServices = 17 // optional bool + FileOptions_PyGenericServices = 18 // optional bool + FileOptions_PhpGenericServices = 42 // optional bool + FileOptions_Deprecated = 23 // optional bool + FileOptions_CcEnableArenas = 31 // optional bool + FileOptions_ObjcClassPrefix = 36 // optional string + FileOptions_CsharpNamespace = 37 // optional string + FileOptions_SwiftPrefix = 39 // optional string + FileOptions_PhpClassPrefix = 40 // optional string + FileOptions_PhpNamespace = 41 // optional string + FileOptions_PhpMetadataNamespace = 44 // optional string + FileOptions_RubyPackage = 45 // optional string + FileOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption +) + +// Field numbers for google.protobuf.MessageOptions. +const ( + MessageOptions_MessageSetWireFormat = 1 // optional bool + MessageOptions_NoStandardDescriptorAccessor = 2 // optional bool + MessageOptions_Deprecated = 3 // optional bool + MessageOptions_MapEntry = 7 // optional bool + MessageOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption +) + +// Field numbers for google.protobuf.FieldOptions. +const ( + FieldOptions_Ctype = 1 // optional google.protobuf.FieldOptions.CType + FieldOptions_Packed = 2 // optional bool + FieldOptions_Jstype = 6 // optional google.protobuf.FieldOptions.JSType + FieldOptions_Lazy = 5 // optional bool + FieldOptions_Deprecated = 3 // optional bool + FieldOptions_Weak = 10 // optional bool + FieldOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption +) + +// Field numbers for google.protobuf.OneofOptions. +const ( + OneofOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption +) + +// Field numbers for google.protobuf.EnumOptions. +const ( + EnumOptions_AllowAlias = 2 // optional bool + EnumOptions_Deprecated = 3 // optional bool + EnumOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption +) + +// Field numbers for google.protobuf.EnumValueOptions. +const ( + EnumValueOptions_Deprecated = 1 // optional bool + EnumValueOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption +) + +// Field numbers for google.protobuf.ServiceOptions. +const ( + ServiceOptions_Deprecated = 33 // optional bool + ServiceOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption +) + +// Field numbers for google.protobuf.MethodOptions. +const ( + MethodOptions_Deprecated = 33 // optional bool + MethodOptions_IdempotencyLevel = 34 // optional google.protobuf.MethodOptions.IdempotencyLevel + MethodOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption +) + +// Field numbers for google.protobuf.UninterpretedOption. +const ( + UninterpretedOption_Name = 2 // repeated google.protobuf.UninterpretedOption.NamePart + UninterpretedOption_IdentifierValue = 3 // optional string + UninterpretedOption_PositiveIntValue = 4 // optional uint64 + UninterpretedOption_NegativeIntValue = 5 // optional int64 + UninterpretedOption_DoubleValue = 6 // optional double + UninterpretedOption_StringValue = 7 // optional bytes + UninterpretedOption_AggregateValue = 8 // optional string +) + +// Field numbers for google.protobuf.UninterpretedOption.NamePart. +const ( + UninterpretedOption_NamePart_NamePart = 1 // required string + UninterpretedOption_NamePart_IsExtension = 2 // required bool +) + +// Field numbers for google.protobuf.SourceCodeInfo. +const ( + SourceCodeInfo_Location = 1 // repeated google.protobuf.SourceCodeInfo.Location +) + +// Field numbers for google.protobuf.SourceCodeInfo.Location. +const ( + SourceCodeInfo_Location_Path = 1 // repeated int32 + SourceCodeInfo_Location_Span = 2 // repeated int32 + SourceCodeInfo_Location_LeadingComments = 3 // optional string + SourceCodeInfo_Location_TrailingComments = 4 // optional string + SourceCodeInfo_Location_LeadingDetachedComments = 6 // repeated string +) + +// Field numbers for google.protobuf.GeneratedCodeInfo. +const ( + GeneratedCodeInfo_Annotation = 1 // repeated google.protobuf.GeneratedCodeInfo.Annotation +) + +// Field numbers for google.protobuf.GeneratedCodeInfo.Annotation. +const ( + GeneratedCodeInfo_Annotation_Path = 1 // repeated int32 + GeneratedCodeInfo_Annotation_SourceFile = 2 // optional string + GeneratedCodeInfo_Annotation_Begin = 3 // optional int32 + GeneratedCodeInfo_Annotation_End = 4 // optional int32 +) diff --git a/vendor/google.golang.org/protobuf/internal/fieldnum/doc.go b/vendor/google.golang.org/protobuf/internal/fieldnum/doc.go new file mode 100644 index 000000000..e59788599 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/fieldnum/doc.go @@ -0,0 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package fieldnum contains constants for field numbers of fields in messages +// declared in descriptor.proto and any of the well-known types. +package fieldnum diff --git a/vendor/google.golang.org/protobuf/internal/fieldnum/duration_gen.go b/vendor/google.golang.org/protobuf/internal/fieldnum/duration_gen.go new file mode 100644 index 000000000..8816c7358 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/fieldnum/duration_gen.go @@ -0,0 +1,13 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package fieldnum + +// Field numbers for google.protobuf.Duration. +const ( + Duration_Seconds = 1 // optional int64 + Duration_Nanos = 2 // optional int32 +) diff --git a/vendor/google.golang.org/protobuf/internal/fieldnum/empty_gen.go b/vendor/google.golang.org/protobuf/internal/fieldnum/empty_gen.go new file mode 100644 index 000000000..b5130a6dd --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/fieldnum/empty_gen.go @@ -0,0 +1,10 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package fieldnum + +// Field numbers for google.protobuf.Empty. +const () diff --git a/vendor/google.golang.org/protobuf/internal/fieldnum/field_mask_gen.go b/vendor/google.golang.org/protobuf/internal/fieldnum/field_mask_gen.go new file mode 100644 index 000000000..7e3bfa27b --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/fieldnum/field_mask_gen.go @@ -0,0 +1,12 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package fieldnum + +// Field numbers for google.protobuf.FieldMask. +const ( + FieldMask_Paths = 1 // repeated string +) diff --git a/vendor/google.golang.org/protobuf/internal/fieldnum/source_context_gen.go b/vendor/google.golang.org/protobuf/internal/fieldnum/source_context_gen.go new file mode 100644 index 000000000..241972b1f --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/fieldnum/source_context_gen.go @@ -0,0 +1,12 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package fieldnum + +// Field numbers for google.protobuf.SourceContext. +const ( + SourceContext_FileName = 1 // optional string +) diff --git a/vendor/google.golang.org/protobuf/internal/fieldnum/struct_gen.go b/vendor/google.golang.org/protobuf/internal/fieldnum/struct_gen.go new file mode 100644 index 000000000..c460aab44 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/fieldnum/struct_gen.go @@ -0,0 +1,33 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package fieldnum + +// Field numbers for google.protobuf.Struct. +const ( + Struct_Fields = 1 // repeated google.protobuf.Struct.FieldsEntry +) + +// Field numbers for google.protobuf.Struct.FieldsEntry. +const ( + Struct_FieldsEntry_Key = 1 // optional string + Struct_FieldsEntry_Value = 2 // optional google.protobuf.Value +) + +// Field numbers for google.protobuf.Value. +const ( + Value_NullValue = 1 // optional google.protobuf.NullValue + Value_NumberValue = 2 // optional double + Value_StringValue = 3 // optional string + Value_BoolValue = 4 // optional bool + Value_StructValue = 5 // optional google.protobuf.Struct + Value_ListValue = 6 // optional google.protobuf.ListValue +) + +// Field numbers for google.protobuf.ListValue. +const ( + ListValue_Values = 1 // repeated google.protobuf.Value +) diff --git a/vendor/google.golang.org/protobuf/internal/fieldnum/timestamp_gen.go b/vendor/google.golang.org/protobuf/internal/fieldnum/timestamp_gen.go new file mode 100644 index 000000000..b4346fba5 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/fieldnum/timestamp_gen.go @@ -0,0 +1,13 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package fieldnum + +// Field numbers for google.protobuf.Timestamp. +const ( + Timestamp_Seconds = 1 // optional int64 + Timestamp_Nanos = 2 // optional int32 +) diff --git a/vendor/google.golang.org/protobuf/internal/fieldnum/type_gen.go b/vendor/google.golang.org/protobuf/internal/fieldnum/type_gen.go new file mode 100644 index 000000000..b392e9598 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/fieldnum/type_gen.go @@ -0,0 +1,53 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package fieldnum + +// Field numbers for google.protobuf.Type. +const ( + Type_Name = 1 // optional string + Type_Fields = 2 // repeated google.protobuf.Field + Type_Oneofs = 3 // repeated string + Type_Options = 4 // repeated google.protobuf.Option + Type_SourceContext = 5 // optional google.protobuf.SourceContext + Type_Syntax = 6 // optional google.protobuf.Syntax +) + +// Field numbers for google.protobuf.Field. +const ( + Field_Kind = 1 // optional google.protobuf.Field.Kind + Field_Cardinality = 2 // optional google.protobuf.Field.Cardinality + Field_Number = 3 // optional int32 + Field_Name = 4 // optional string + Field_TypeUrl = 6 // optional string + Field_OneofIndex = 7 // optional int32 + Field_Packed = 8 // optional bool + Field_Options = 9 // repeated google.protobuf.Option + Field_JsonName = 10 // optional string + Field_DefaultValue = 11 // optional string +) + +// Field numbers for google.protobuf.Enum. +const ( + Enum_Name = 1 // optional string + Enum_Enumvalue = 2 // repeated google.protobuf.EnumValue + Enum_Options = 3 // repeated google.protobuf.Option + Enum_SourceContext = 4 // optional google.protobuf.SourceContext + Enum_Syntax = 5 // optional google.protobuf.Syntax +) + +// Field numbers for google.protobuf.EnumValue. +const ( + EnumValue_Name = 1 // optional string + EnumValue_Number = 2 // optional int32 + EnumValue_Options = 3 // repeated google.protobuf.Option +) + +// Field numbers for google.protobuf.Option. +const ( + Option_Name = 1 // optional string + Option_Value = 2 // optional google.protobuf.Any +) diff --git a/vendor/google.golang.org/protobuf/internal/fieldnum/wrappers_gen.go b/vendor/google.golang.org/protobuf/internal/fieldnum/wrappers_gen.go new file mode 100644 index 000000000..42f846a9f --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/fieldnum/wrappers_gen.go @@ -0,0 +1,52 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package fieldnum + +// Field numbers for google.protobuf.DoubleValue. +const ( + DoubleValue_Value = 1 // optional double +) + +// Field numbers for google.protobuf.FloatValue. +const ( + FloatValue_Value = 1 // optional float +) + +// Field numbers for google.protobuf.Int64Value. +const ( + Int64Value_Value = 1 // optional int64 +) + +// Field numbers for google.protobuf.UInt64Value. +const ( + UInt64Value_Value = 1 // optional uint64 +) + +// Field numbers for google.protobuf.Int32Value. +const ( + Int32Value_Value = 1 // optional int32 +) + +// Field numbers for google.protobuf.UInt32Value. +const ( + UInt32Value_Value = 1 // optional uint32 +) + +// Field numbers for google.protobuf.BoolValue. +const ( + BoolValue_Value = 1 // optional bool +) + +// Field numbers for google.protobuf.StringValue. +const ( + StringValue_Value = 1 // optional string +) + +// Field numbers for google.protobuf.BytesValue. +const ( + BytesValue_Value = 1 // optional bytes +) diff --git a/vendor/google.golang.org/protobuf/internal/fieldsort/fieldsort.go b/vendor/google.golang.org/protobuf/internal/fieldsort/fieldsort.go new file mode 100644 index 000000000..517c4e2a0 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/fieldsort/fieldsort.go @@ -0,0 +1,40 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package fieldsort defines an ordering of fields. +// +// The ordering defined by this package matches the historic behavior of the proto +// package, placing extensions first and oneofs last. +// +// There is no guarantee about stability of the wire encoding, and users should not +// depend on the order defined in this package as it is subject to change without +// notice. +package fieldsort + +import ( + "google.golang.org/protobuf/reflect/protoreflect" +) + +// Less returns true if field a comes before field j in ordered wire marshal output. +func Less(a, b protoreflect.FieldDescriptor) bool { + ea := a.IsExtension() + eb := b.IsExtension() + oa := a.ContainingOneof() + ob := b.ContainingOneof() + switch { + case ea != eb: + return ea + case oa != nil && ob != nil: + if oa == ob { + return a.Number() < b.Number() + } + return oa.Index() < ob.Index() + case oa != nil && !oa.IsSynthetic(): + return false + case ob != nil && !ob.IsSynthetic(): + return true + default: + return a.Number() < b.Number() + } +} diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/build.go b/vendor/google.golang.org/protobuf/internal/filedesc/build.go new file mode 100644 index 000000000..462d384e9 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/filedesc/build.go @@ -0,0 +1,155 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package filedesc provides functionality for constructing descriptors. +package filedesc + +import ( + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/fieldnum" + "google.golang.org/protobuf/reflect/protoreflect" + pref "google.golang.org/protobuf/reflect/protoreflect" + preg "google.golang.org/protobuf/reflect/protoregistry" +) + +// Builder construct a protoreflect.FileDescriptor from the raw descriptor. +type Builder struct { + // GoPackagePath is the Go package path that is invoking this builder. + GoPackagePath string + + // RawDescriptor is the wire-encoded bytes of FileDescriptorProto + // and must be populated. + RawDescriptor []byte + + // NumEnums is the total number of enums declared in the file. + NumEnums int32 + // NumMessages is the total number of messages declared in the file. + // It includes the implicit message declarations for map entries. + NumMessages int32 + // NumExtensions is the total number of extensions declared in the file. + NumExtensions int32 + // NumServices is the total number of services declared in the file. + NumServices int32 + + // TypeResolver resolves extension field types for descriptor options. + // If nil, it uses protoregistry.GlobalTypes. + TypeResolver interface { + preg.ExtensionTypeResolver + } + + // FileRegistry is use to lookup file, enum, and message dependencies. + // Once constructed, the file descriptor is registered here. + // If nil, it uses protoregistry.GlobalFiles. + FileRegistry interface { + FindFileByPath(string) (protoreflect.FileDescriptor, error) + FindDescriptorByName(pref.FullName) (pref.Descriptor, error) + RegisterFile(pref.FileDescriptor) error + } +} + +// resolverByIndex is an interface Builder.FileRegistry may implement. +// If so, it permits looking up an enum or message dependency based on the +// sub-list and element index into filetype.Builder.DependencyIndexes. +type resolverByIndex interface { + FindEnumByIndex(int32, int32, []Enum, []Message) pref.EnumDescriptor + FindMessageByIndex(int32, int32, []Enum, []Message) pref.MessageDescriptor +} + +// Indexes of each sub-list in filetype.Builder.DependencyIndexes. +const ( + listFieldDeps int32 = iota + listExtTargets + listExtDeps + listMethInDeps + listMethOutDeps +) + +// Out is the output of the Builder. +type Out struct { + File pref.FileDescriptor + + // Enums is all enum descriptors in "flattened ordering". + Enums []Enum + // Messages is all message descriptors in "flattened ordering". + // It includes the implicit message declarations for map entries. + Messages []Message + // Extensions is all extension descriptors in "flattened ordering". + Extensions []Extension + // Service is all service descriptors in "flattened ordering". + Services []Service +} + +// Build constructs a FileDescriptor given the parameters set in Builder. +// It assumes that the inputs are well-formed and panics if any inconsistencies +// are encountered. +// +// If NumEnums+NumMessages+NumExtensions+NumServices is zero, +// then Build automatically derives them from the raw descriptor. +func (db Builder) Build() (out Out) { + // Populate the counts if uninitialized. + if db.NumEnums+db.NumMessages+db.NumExtensions+db.NumServices == 0 { + db.unmarshalCounts(db.RawDescriptor, true) + } + + // Initialize resolvers and registries if unpopulated. + if db.TypeResolver == nil { + db.TypeResolver = preg.GlobalTypes + } + if db.FileRegistry == nil { + db.FileRegistry = preg.GlobalFiles + } + + fd := newRawFile(db) + out.File = fd + out.Enums = fd.allEnums + out.Messages = fd.allMessages + out.Extensions = fd.allExtensions + out.Services = fd.allServices + + if err := db.FileRegistry.RegisterFile(fd); err != nil { + panic(err) + } + return out +} + +// unmarshalCounts counts the number of enum, message, extension, and service +// declarations in the raw message, which is either a FileDescriptorProto +// or a MessageDescriptorProto depending on whether isFile is set. +func (db *Builder) unmarshalCounts(b []byte, isFile bool) { + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + if isFile { + switch num { + case fieldnum.FileDescriptorProto_EnumType: + db.NumEnums++ + case fieldnum.FileDescriptorProto_MessageType: + db.unmarshalCounts(v, false) + db.NumMessages++ + case fieldnum.FileDescriptorProto_Extension: + db.NumExtensions++ + case fieldnum.FileDescriptorProto_Service: + db.NumServices++ + } + } else { + switch num { + case fieldnum.DescriptorProto_EnumType: + db.NumEnums++ + case fieldnum.DescriptorProto_NestedType: + db.unmarshalCounts(v, false) + db.NumMessages++ + case fieldnum.DescriptorProto_Extension: + db.NumExtensions++ + } + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } +} diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/desc.go b/vendor/google.golang.org/protobuf/internal/filedesc/desc.go new file mode 100644 index 000000000..2540befd6 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/filedesc/desc.go @@ -0,0 +1,613 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package filedesc + +import ( + "bytes" + "fmt" + "sync" + "sync/atomic" + + "google.golang.org/protobuf/internal/descfmt" + "google.golang.org/protobuf/internal/descopts" + "google.golang.org/protobuf/internal/encoding/defval" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/internal/strs" + pref "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +// The types in this file may have a suffix: +// • L0: Contains fields common to all descriptors (except File) and +// must be initialized up front. +// • L1: Contains fields specific to a descriptor and +// must be initialized up front. +// • L2: Contains fields that are lazily initialized when constructing +// from the raw file descriptor. When constructing as a literal, the L2 +// fields must be initialized up front. +// +// The types are exported so that packages like reflect/protodesc can +// directly construct descriptors. + +type ( + File struct { + fileRaw + L1 FileL1 + + once uint32 // atomically set if L2 is valid + mu sync.Mutex // protects L2 + L2 *FileL2 + } + FileL1 struct { + Syntax pref.Syntax + Path string + Package pref.FullName + + Enums Enums + Messages Messages + Extensions Extensions + Services Services + } + FileL2 struct { + Options func() pref.ProtoMessage + Imports FileImports + Locations SourceLocations + } +) + +func (fd *File) ParentFile() pref.FileDescriptor { return fd } +func (fd *File) Parent() pref.Descriptor { return nil } +func (fd *File) Index() int { return 0 } +func (fd *File) Syntax() pref.Syntax { return fd.L1.Syntax } +func (fd *File) Name() pref.Name { return fd.L1.Package.Name() } +func (fd *File) FullName() pref.FullName { return fd.L1.Package } +func (fd *File) IsPlaceholder() bool { return false } +func (fd *File) Options() pref.ProtoMessage { + if f := fd.lazyInit().Options; f != nil { + return f() + } + return descopts.File +} +func (fd *File) Path() string { return fd.L1.Path } +func (fd *File) Package() pref.FullName { return fd.L1.Package } +func (fd *File) Imports() pref.FileImports { return &fd.lazyInit().Imports } +func (fd *File) Enums() pref.EnumDescriptors { return &fd.L1.Enums } +func (fd *File) Messages() pref.MessageDescriptors { return &fd.L1.Messages } +func (fd *File) Extensions() pref.ExtensionDescriptors { return &fd.L1.Extensions } +func (fd *File) Services() pref.ServiceDescriptors { return &fd.L1.Services } +func (fd *File) SourceLocations() pref.SourceLocations { return &fd.lazyInit().Locations } +func (fd *File) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, fd) } +func (fd *File) ProtoType(pref.FileDescriptor) {} +func (fd *File) ProtoInternal(pragma.DoNotImplement) {} + +func (fd *File) lazyInit() *FileL2 { + if atomic.LoadUint32(&fd.once) == 0 { + fd.lazyInitOnce() + } + return fd.L2 +} + +func (fd *File) lazyInitOnce() { + fd.mu.Lock() + if fd.L2 == nil { + fd.lazyRawInit() // recursively initializes all L2 structures + } + atomic.StoreUint32(&fd.once, 1) + fd.mu.Unlock() +} + +// ProtoLegacyRawDesc is a pseudo-internal API for allowing the v1 code +// to be able to retrieve the raw descriptor. +// +// WARNING: This method is exempt from the compatibility promise and may be +// removed in the future without warning. +func (fd *File) ProtoLegacyRawDesc() []byte { + return fd.builder.RawDescriptor +} + +// GoPackagePath is a pseudo-internal API for determining the Go package path +// that this file descriptor is declared in. +// +// WARNING: This method is exempt from the compatibility promise and may be +// removed in the future without warning. +func (fd *File) GoPackagePath() string { + return fd.builder.GoPackagePath +} + +type ( + Enum struct { + Base + L1 EnumL1 + L2 *EnumL2 // protected by fileDesc.once + } + EnumL1 struct { + eagerValues bool // controls whether EnumL2.Values is already populated + } + EnumL2 struct { + Options func() pref.ProtoMessage + Values EnumValues + ReservedNames Names + ReservedRanges EnumRanges + } + + EnumValue struct { + Base + L1 EnumValueL1 + } + EnumValueL1 struct { + Options func() pref.ProtoMessage + Number pref.EnumNumber + } +) + +func (ed *Enum) Options() pref.ProtoMessage { + if f := ed.lazyInit().Options; f != nil { + return f() + } + return descopts.Enum +} +func (ed *Enum) Values() pref.EnumValueDescriptors { + if ed.L1.eagerValues { + return &ed.L2.Values + } + return &ed.lazyInit().Values +} +func (ed *Enum) ReservedNames() pref.Names { return &ed.lazyInit().ReservedNames } +func (ed *Enum) ReservedRanges() pref.EnumRanges { return &ed.lazyInit().ReservedRanges } +func (ed *Enum) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, ed) } +func (ed *Enum) ProtoType(pref.EnumDescriptor) {} +func (ed *Enum) lazyInit() *EnumL2 { + ed.L0.ParentFile.lazyInit() // implicitly initializes L2 + return ed.L2 +} + +func (ed *EnumValue) Options() pref.ProtoMessage { + if f := ed.L1.Options; f != nil { + return f() + } + return descopts.EnumValue +} +func (ed *EnumValue) Number() pref.EnumNumber { return ed.L1.Number } +func (ed *EnumValue) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, ed) } +func (ed *EnumValue) ProtoType(pref.EnumValueDescriptor) {} + +type ( + Message struct { + Base + L1 MessageL1 + L2 *MessageL2 // protected by fileDesc.once + } + MessageL1 struct { + Enums Enums + Messages Messages + Extensions Extensions + IsMapEntry bool // promoted from google.protobuf.MessageOptions + IsMessageSet bool // promoted from google.protobuf.MessageOptions + } + MessageL2 struct { + Options func() pref.ProtoMessage + Fields Fields + Oneofs Oneofs + ReservedNames Names + ReservedRanges FieldRanges + RequiredNumbers FieldNumbers // must be consistent with Fields.Cardinality + ExtensionRanges FieldRanges + ExtensionRangeOptions []func() pref.ProtoMessage // must be same length as ExtensionRanges + } + + Field struct { + Base + L1 FieldL1 + } + FieldL1 struct { + Options func() pref.ProtoMessage + Number pref.FieldNumber + Cardinality pref.Cardinality // must be consistent with Message.RequiredNumbers + Kind pref.Kind + JSONName jsonName + IsProto3Optional bool // promoted from google.protobuf.FieldDescriptorProto + IsWeak bool // promoted from google.protobuf.FieldOptions + HasPacked bool // promoted from google.protobuf.FieldOptions + IsPacked bool // promoted from google.protobuf.FieldOptions + HasEnforceUTF8 bool // promoted from google.protobuf.FieldOptions + EnforceUTF8 bool // promoted from google.protobuf.FieldOptions + Default defaultValue + ContainingOneof pref.OneofDescriptor // must be consistent with Message.Oneofs.Fields + Enum pref.EnumDescriptor + Message pref.MessageDescriptor + } + + Oneof struct { + Base + L1 OneofL1 + } + OneofL1 struct { + Options func() pref.ProtoMessage + Fields OneofFields // must be consistent with Message.Fields.ContainingOneof + } +) + +func (md *Message) Options() pref.ProtoMessage { + if f := md.lazyInit().Options; f != nil { + return f() + } + return descopts.Message +} +func (md *Message) IsMapEntry() bool { return md.L1.IsMapEntry } +func (md *Message) Fields() pref.FieldDescriptors { return &md.lazyInit().Fields } +func (md *Message) Oneofs() pref.OneofDescriptors { return &md.lazyInit().Oneofs } +func (md *Message) ReservedNames() pref.Names { return &md.lazyInit().ReservedNames } +func (md *Message) ReservedRanges() pref.FieldRanges { return &md.lazyInit().ReservedRanges } +func (md *Message) RequiredNumbers() pref.FieldNumbers { return &md.lazyInit().RequiredNumbers } +func (md *Message) ExtensionRanges() pref.FieldRanges { return &md.lazyInit().ExtensionRanges } +func (md *Message) ExtensionRangeOptions(i int) pref.ProtoMessage { + if f := md.lazyInit().ExtensionRangeOptions[i]; f != nil { + return f() + } + return descopts.ExtensionRange +} +func (md *Message) Enums() pref.EnumDescriptors { return &md.L1.Enums } +func (md *Message) Messages() pref.MessageDescriptors { return &md.L1.Messages } +func (md *Message) Extensions() pref.ExtensionDescriptors { return &md.L1.Extensions } +func (md *Message) ProtoType(pref.MessageDescriptor) {} +func (md *Message) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, md) } +func (md *Message) lazyInit() *MessageL2 { + md.L0.ParentFile.lazyInit() // implicitly initializes L2 + return md.L2 +} + +// IsMessageSet is a pseudo-internal API for checking whether a message +// should serialize in the proto1 message format. +// +// WARNING: This method is exempt from the compatibility promise and may be +// removed in the future without warning. +func (md *Message) IsMessageSet() bool { + return md.L1.IsMessageSet +} + +func (fd *Field) Options() pref.ProtoMessage { + if f := fd.L1.Options; f != nil { + return f() + } + return descopts.Field +} +func (fd *Field) Number() pref.FieldNumber { return fd.L1.Number } +func (fd *Field) Cardinality() pref.Cardinality { return fd.L1.Cardinality } +func (fd *Field) Kind() pref.Kind { return fd.L1.Kind } +func (fd *Field) HasJSONName() bool { return fd.L1.JSONName.has } +func (fd *Field) JSONName() string { return fd.L1.JSONName.get(fd) } +func (fd *Field) HasPresence() bool { + return fd.L1.Cardinality != pref.Repeated && (fd.L0.ParentFile.L1.Syntax == pref.Proto2 || fd.L1.Message != nil || fd.L1.ContainingOneof != nil) +} +func (fd *Field) HasOptionalKeyword() bool { + return (fd.L0.ParentFile.L1.Syntax == pref.Proto2 && fd.L1.Cardinality == pref.Optional && fd.L1.ContainingOneof == nil) || fd.L1.IsProto3Optional +} +func (fd *Field) IsPacked() bool { + if !fd.L1.HasPacked && fd.L0.ParentFile.L1.Syntax != pref.Proto2 && fd.L1.Cardinality == pref.Repeated { + switch fd.L1.Kind { + case pref.StringKind, pref.BytesKind, pref.MessageKind, pref.GroupKind: + default: + return true + } + } + return fd.L1.IsPacked +} +func (fd *Field) IsExtension() bool { return false } +func (fd *Field) IsWeak() bool { return fd.L1.IsWeak } +func (fd *Field) IsList() bool { return fd.Cardinality() == pref.Repeated && !fd.IsMap() } +func (fd *Field) IsMap() bool { return fd.Message() != nil && fd.Message().IsMapEntry() } +func (fd *Field) MapKey() pref.FieldDescriptor { + if !fd.IsMap() { + return nil + } + return fd.Message().Fields().ByNumber(1) +} +func (fd *Field) MapValue() pref.FieldDescriptor { + if !fd.IsMap() { + return nil + } + return fd.Message().Fields().ByNumber(2) +} +func (fd *Field) HasDefault() bool { return fd.L1.Default.has } +func (fd *Field) Default() pref.Value { return fd.L1.Default.get(fd) } +func (fd *Field) DefaultEnumValue() pref.EnumValueDescriptor { return fd.L1.Default.enum } +func (fd *Field) ContainingOneof() pref.OneofDescriptor { return fd.L1.ContainingOneof } +func (fd *Field) ContainingMessage() pref.MessageDescriptor { + return fd.L0.Parent.(pref.MessageDescriptor) +} +func (fd *Field) Enum() pref.EnumDescriptor { + return fd.L1.Enum +} +func (fd *Field) Message() pref.MessageDescriptor { + if fd.L1.IsWeak { + if d, _ := protoregistry.GlobalFiles.FindDescriptorByName(fd.L1.Message.FullName()); d != nil { + return d.(pref.MessageDescriptor) + } + } + return fd.L1.Message +} +func (fd *Field) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, fd) } +func (fd *Field) ProtoType(pref.FieldDescriptor) {} + +// EnforceUTF8 is a pseudo-internal API to determine whether to enforce UTF-8 +// validation for the string field. This exists for Google-internal use only +// since proto3 did not enforce UTF-8 validity prior to the open-source release. +// If this method does not exist, the default is to enforce valid UTF-8. +// +// WARNING: This method is exempt from the compatibility promise and may be +// removed in the future without warning. +func (fd *Field) EnforceUTF8() bool { + if fd.L1.HasEnforceUTF8 { + return fd.L1.EnforceUTF8 + } + return fd.L0.ParentFile.L1.Syntax == pref.Proto3 +} + +func (od *Oneof) IsSynthetic() bool { + return od.L0.ParentFile.L1.Syntax == pref.Proto3 && len(od.L1.Fields.List) == 1 && od.L1.Fields.List[0].HasOptionalKeyword() +} +func (od *Oneof) Options() pref.ProtoMessage { + if f := od.L1.Options; f != nil { + return f() + } + return descopts.Oneof +} +func (od *Oneof) Fields() pref.FieldDescriptors { return &od.L1.Fields } +func (od *Oneof) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, od) } +func (od *Oneof) ProtoType(pref.OneofDescriptor) {} + +type ( + Extension struct { + Base + L1 ExtensionL1 + L2 *ExtensionL2 // protected by fileDesc.once + } + ExtensionL1 struct { + Number pref.FieldNumber + Extendee pref.MessageDescriptor + Cardinality pref.Cardinality + Kind pref.Kind + } + ExtensionL2 struct { + Options func() pref.ProtoMessage + JSONName jsonName + IsProto3Optional bool // promoted from google.protobuf.FieldDescriptorProto + IsPacked bool // promoted from google.protobuf.FieldOptions + Default defaultValue + Enum pref.EnumDescriptor + Message pref.MessageDescriptor + } +) + +func (xd *Extension) Options() pref.ProtoMessage { + if f := xd.lazyInit().Options; f != nil { + return f() + } + return descopts.Field +} +func (xd *Extension) Number() pref.FieldNumber { return xd.L1.Number } +func (xd *Extension) Cardinality() pref.Cardinality { return xd.L1.Cardinality } +func (xd *Extension) Kind() pref.Kind { return xd.L1.Kind } +func (xd *Extension) HasJSONName() bool { return xd.lazyInit().JSONName.has } +func (xd *Extension) JSONName() string { return xd.lazyInit().JSONName.get(xd) } +func (xd *Extension) HasPresence() bool { return xd.L1.Cardinality != pref.Repeated } +func (xd *Extension) HasOptionalKeyword() bool { + return (xd.L0.ParentFile.L1.Syntax == pref.Proto2 && xd.L1.Cardinality == pref.Optional) || xd.lazyInit().IsProto3Optional +} +func (xd *Extension) IsPacked() bool { return xd.lazyInit().IsPacked } +func (xd *Extension) IsExtension() bool { return true } +func (xd *Extension) IsWeak() bool { return false } +func (xd *Extension) IsList() bool { return xd.Cardinality() == pref.Repeated } +func (xd *Extension) IsMap() bool { return false } +func (xd *Extension) MapKey() pref.FieldDescriptor { return nil } +func (xd *Extension) MapValue() pref.FieldDescriptor { return nil } +func (xd *Extension) HasDefault() bool { return xd.lazyInit().Default.has } +func (xd *Extension) Default() pref.Value { return xd.lazyInit().Default.get(xd) } +func (xd *Extension) DefaultEnumValue() pref.EnumValueDescriptor { return xd.lazyInit().Default.enum } +func (xd *Extension) ContainingOneof() pref.OneofDescriptor { return nil } +func (xd *Extension) ContainingMessage() pref.MessageDescriptor { return xd.L1.Extendee } +func (xd *Extension) Enum() pref.EnumDescriptor { return xd.lazyInit().Enum } +func (xd *Extension) Message() pref.MessageDescriptor { return xd.lazyInit().Message } +func (xd *Extension) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, xd) } +func (xd *Extension) ProtoType(pref.FieldDescriptor) {} +func (xd *Extension) ProtoInternal(pragma.DoNotImplement) {} +func (xd *Extension) lazyInit() *ExtensionL2 { + xd.L0.ParentFile.lazyInit() // implicitly initializes L2 + return xd.L2 +} + +type ( + Service struct { + Base + L1 ServiceL1 + L2 *ServiceL2 // protected by fileDesc.once + } + ServiceL1 struct{} + ServiceL2 struct { + Options func() pref.ProtoMessage + Methods Methods + } + + Method struct { + Base + L1 MethodL1 + } + MethodL1 struct { + Options func() pref.ProtoMessage + Input pref.MessageDescriptor + Output pref.MessageDescriptor + IsStreamingClient bool + IsStreamingServer bool + } +) + +func (sd *Service) Options() pref.ProtoMessage { + if f := sd.lazyInit().Options; f != nil { + return f() + } + return descopts.Service +} +func (sd *Service) Methods() pref.MethodDescriptors { return &sd.lazyInit().Methods } +func (sd *Service) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, sd) } +func (sd *Service) ProtoType(pref.ServiceDescriptor) {} +func (sd *Service) ProtoInternal(pragma.DoNotImplement) {} +func (sd *Service) lazyInit() *ServiceL2 { + sd.L0.ParentFile.lazyInit() // implicitly initializes L2 + return sd.L2 +} + +func (md *Method) Options() pref.ProtoMessage { + if f := md.L1.Options; f != nil { + return f() + } + return descopts.Method +} +func (md *Method) Input() pref.MessageDescriptor { return md.L1.Input } +func (md *Method) Output() pref.MessageDescriptor { return md.L1.Output } +func (md *Method) IsStreamingClient() bool { return md.L1.IsStreamingClient } +func (md *Method) IsStreamingServer() bool { return md.L1.IsStreamingServer } +func (md *Method) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, md) } +func (md *Method) ProtoType(pref.MethodDescriptor) {} +func (md *Method) ProtoInternal(pragma.DoNotImplement) {} + +// Surrogate files are can be used to create standalone descriptors +// where the syntax is only information derived from the parent file. +var ( + SurrogateProto2 = &File{L1: FileL1{Syntax: pref.Proto2}, L2: &FileL2{}} + SurrogateProto3 = &File{L1: FileL1{Syntax: pref.Proto3}, L2: &FileL2{}} +) + +type ( + Base struct { + L0 BaseL0 + } + BaseL0 struct { + FullName pref.FullName // must be populated + ParentFile *File // must be populated + Parent pref.Descriptor + Index int + } +) + +func (d *Base) Name() pref.Name { return d.L0.FullName.Name() } +func (d *Base) FullName() pref.FullName { return d.L0.FullName } +func (d *Base) ParentFile() pref.FileDescriptor { + if d.L0.ParentFile == SurrogateProto2 || d.L0.ParentFile == SurrogateProto3 { + return nil // surrogate files are not real parents + } + return d.L0.ParentFile +} +func (d *Base) Parent() pref.Descriptor { return d.L0.Parent } +func (d *Base) Index() int { return d.L0.Index } +func (d *Base) Syntax() pref.Syntax { return d.L0.ParentFile.Syntax() } +func (d *Base) IsPlaceholder() bool { return false } +func (d *Base) ProtoInternal(pragma.DoNotImplement) {} + +type jsonName struct { + has bool + once sync.Once + name string +} + +// Init initializes the name. It is exported for use by other internal packages. +func (js *jsonName) Init(s string) { + js.has = true + js.name = s +} + +func (js *jsonName) get(fd pref.FieldDescriptor) string { + if !js.has { + js.once.Do(func() { + js.name = strs.JSONCamelCase(string(fd.Name())) + }) + } + return js.name +} + +func DefaultValue(v pref.Value, ev pref.EnumValueDescriptor) defaultValue { + dv := defaultValue{has: v.IsValid(), val: v, enum: ev} + if b, ok := v.Interface().([]byte); ok { + // Store a copy of the default bytes, so that we can detect + // accidental mutations of the original value. + dv.bytes = append([]byte(nil), b...) + } + return dv +} + +func unmarshalDefault(b []byte, k pref.Kind, pf *File, ed pref.EnumDescriptor) defaultValue { + var evs pref.EnumValueDescriptors + if k == pref.EnumKind { + // If the enum is declared within the same file, be careful not to + // blindly call the Values method, lest we bind ourselves in a deadlock. + if e, ok := ed.(*Enum); ok && e.L0.ParentFile == pf { + evs = &e.L2.Values + } else { + evs = ed.Values() + } + + // If we are unable to resolve the enum dependency, use a placeholder + // enum value since we will not be able to parse the default value. + if ed.IsPlaceholder() && pref.Name(b).IsValid() { + v := pref.ValueOfEnum(0) + ev := PlaceholderEnumValue(ed.FullName().Parent().Append(pref.Name(b))) + return DefaultValue(v, ev) + } + } + + v, ev, err := defval.Unmarshal(string(b), k, evs, defval.Descriptor) + if err != nil { + panic(err) + } + return DefaultValue(v, ev) +} + +type defaultValue struct { + has bool + val pref.Value + enum pref.EnumValueDescriptor + bytes []byte +} + +func (dv *defaultValue) get(fd pref.FieldDescriptor) pref.Value { + // Return the zero value as the default if unpopulated. + if !dv.has { + if fd.Cardinality() == pref.Repeated { + return pref.Value{} + } + switch fd.Kind() { + case pref.BoolKind: + return pref.ValueOfBool(false) + case pref.Int32Kind, pref.Sint32Kind, pref.Sfixed32Kind: + return pref.ValueOfInt32(0) + case pref.Int64Kind, pref.Sint64Kind, pref.Sfixed64Kind: + return pref.ValueOfInt64(0) + case pref.Uint32Kind, pref.Fixed32Kind: + return pref.ValueOfUint32(0) + case pref.Uint64Kind, pref.Fixed64Kind: + return pref.ValueOfUint64(0) + case pref.FloatKind: + return pref.ValueOfFloat32(0) + case pref.DoubleKind: + return pref.ValueOfFloat64(0) + case pref.StringKind: + return pref.ValueOfString("") + case pref.BytesKind: + return pref.ValueOfBytes(nil) + case pref.EnumKind: + if evs := fd.Enum().Values(); evs.Len() > 0 { + return pref.ValueOfEnum(evs.Get(0).Number()) + } + return pref.ValueOfEnum(0) + } + } + + if len(dv.bytes) > 0 && !bytes.Equal(dv.bytes, dv.val.Bytes()) { + // TODO: Avoid panic if we're running with the race detector + // and instead spawn a goroutine that periodically resets + // this value back to the original to induce a race. + panic(fmt.Sprintf("detected mutation on the default bytes for %v", fd.FullName())) + } + return dv.val +} diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/desc_init.go b/vendor/google.golang.org/protobuf/internal/filedesc/desc_init.go new file mode 100644 index 000000000..c0cddf86a --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/filedesc/desc_init.go @@ -0,0 +1,471 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package filedesc + +import ( + "sync" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/fieldnum" + "google.golang.org/protobuf/internal/strs" + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +// fileRaw is a data struct used when initializing a file descriptor from +// a raw FileDescriptorProto. +type fileRaw struct { + builder Builder + allEnums []Enum + allMessages []Message + allExtensions []Extension + allServices []Service +} + +func newRawFile(db Builder) *File { + fd := &File{fileRaw: fileRaw{builder: db}} + fd.initDecls(db.NumEnums, db.NumMessages, db.NumExtensions, db.NumServices) + fd.unmarshalSeed(db.RawDescriptor) + + // Extended message targets are eagerly resolved since registration + // needs this information at program init time. + for i := range fd.allExtensions { + xd := &fd.allExtensions[i] + xd.L1.Extendee = fd.resolveMessageDependency(xd.L1.Extendee, listExtTargets, int32(i)) + } + + fd.checkDecls() + return fd +} + +// initDecls pre-allocates slices for the exact number of enums, messages +// (including map entries), extensions, and services declared in the proto file. +// This is done to avoid regrowing the slice, which would change the address +// for any previously seen declaration. +// +// The alloc methods "allocates" slices by pulling from the capacity. +func (fd *File) initDecls(numEnums, numMessages, numExtensions, numServices int32) { + fd.allEnums = make([]Enum, 0, numEnums) + fd.allMessages = make([]Message, 0, numMessages) + fd.allExtensions = make([]Extension, 0, numExtensions) + fd.allServices = make([]Service, 0, numServices) +} + +func (fd *File) allocEnums(n int) []Enum { + total := len(fd.allEnums) + es := fd.allEnums[total : total+n] + fd.allEnums = fd.allEnums[:total+n] + return es +} +func (fd *File) allocMessages(n int) []Message { + total := len(fd.allMessages) + ms := fd.allMessages[total : total+n] + fd.allMessages = fd.allMessages[:total+n] + return ms +} +func (fd *File) allocExtensions(n int) []Extension { + total := len(fd.allExtensions) + xs := fd.allExtensions[total : total+n] + fd.allExtensions = fd.allExtensions[:total+n] + return xs +} +func (fd *File) allocServices(n int) []Service { + total := len(fd.allServices) + xs := fd.allServices[total : total+n] + fd.allServices = fd.allServices[:total+n] + return xs +} + +// checkDecls performs a sanity check that the expected number of expected +// declarations matches the number that were found in the descriptor proto. +func (fd *File) checkDecls() { + switch { + case len(fd.allEnums) != cap(fd.allEnums): + case len(fd.allMessages) != cap(fd.allMessages): + case len(fd.allExtensions) != cap(fd.allExtensions): + case len(fd.allServices) != cap(fd.allServices): + default: + return + } + panic("mismatching cardinality") +} + +func (fd *File) unmarshalSeed(b []byte) { + sb := getBuilder() + defer putBuilder(sb) + + var prevField pref.FieldNumber + var numEnums, numMessages, numExtensions, numServices int + var posEnums, posMessages, posExtensions, posServices int + b0 := b + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case fieldnum.FileDescriptorProto_Syntax: + switch string(v) { + case "proto2": + fd.L1.Syntax = pref.Proto2 + case "proto3": + fd.L1.Syntax = pref.Proto3 + default: + panic("invalid syntax") + } + case fieldnum.FileDescriptorProto_Name: + fd.L1.Path = sb.MakeString(v) + case fieldnum.FileDescriptorProto_Package: + fd.L1.Package = pref.FullName(sb.MakeString(v)) + case fieldnum.FileDescriptorProto_EnumType: + if prevField != fieldnum.FileDescriptorProto_EnumType { + if numEnums > 0 { + panic("non-contiguous repeated field") + } + posEnums = len(b0) - len(b) - n - m + } + numEnums++ + case fieldnum.FileDescriptorProto_MessageType: + if prevField != fieldnum.FileDescriptorProto_MessageType { + if numMessages > 0 { + panic("non-contiguous repeated field") + } + posMessages = len(b0) - len(b) - n - m + } + numMessages++ + case fieldnum.FileDescriptorProto_Extension: + if prevField != fieldnum.FileDescriptorProto_Extension { + if numExtensions > 0 { + panic("non-contiguous repeated field") + } + posExtensions = len(b0) - len(b) - n - m + } + numExtensions++ + case fieldnum.FileDescriptorProto_Service: + if prevField != fieldnum.FileDescriptorProto_Service { + if numServices > 0 { + panic("non-contiguous repeated field") + } + posServices = len(b0) - len(b) - n - m + } + numServices++ + } + prevField = num + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + prevField = -1 // ignore known field numbers of unknown wire type + } + } + + // If syntax is missing, it is assumed to be proto2. + if fd.L1.Syntax == 0 { + fd.L1.Syntax = pref.Proto2 + } + + // Must allocate all declarations before parsing each descriptor type + // to ensure we handled all descriptors in "flattened ordering". + if numEnums > 0 { + fd.L1.Enums.List = fd.allocEnums(numEnums) + } + if numMessages > 0 { + fd.L1.Messages.List = fd.allocMessages(numMessages) + } + if numExtensions > 0 { + fd.L1.Extensions.List = fd.allocExtensions(numExtensions) + } + if numServices > 0 { + fd.L1.Services.List = fd.allocServices(numServices) + } + + if numEnums > 0 { + b := b0[posEnums:] + for i := range fd.L1.Enums.List { + _, n := protowire.ConsumeVarint(b) + v, m := protowire.ConsumeBytes(b[n:]) + fd.L1.Enums.List[i].unmarshalSeed(v, sb, fd, fd, i) + b = b[n+m:] + } + } + if numMessages > 0 { + b := b0[posMessages:] + for i := range fd.L1.Messages.List { + _, n := protowire.ConsumeVarint(b) + v, m := protowire.ConsumeBytes(b[n:]) + fd.L1.Messages.List[i].unmarshalSeed(v, sb, fd, fd, i) + b = b[n+m:] + } + } + if numExtensions > 0 { + b := b0[posExtensions:] + for i := range fd.L1.Extensions.List { + _, n := protowire.ConsumeVarint(b) + v, m := protowire.ConsumeBytes(b[n:]) + fd.L1.Extensions.List[i].unmarshalSeed(v, sb, fd, fd, i) + b = b[n+m:] + } + } + if numServices > 0 { + b := b0[posServices:] + for i := range fd.L1.Services.List { + _, n := protowire.ConsumeVarint(b) + v, m := protowire.ConsumeBytes(b[n:]) + fd.L1.Services.List[i].unmarshalSeed(v, sb, fd, fd, i) + b = b[n+m:] + } + } +} + +func (ed *Enum) unmarshalSeed(b []byte, sb *strs.Builder, pf *File, pd pref.Descriptor, i int) { + ed.L0.ParentFile = pf + ed.L0.Parent = pd + ed.L0.Index = i + + var numValues int + for b := b; len(b) > 0; { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case fieldnum.EnumDescriptorProto_Name: + ed.L0.FullName = appendFullName(sb, pd.FullName(), v) + case fieldnum.EnumDescriptorProto_Value: + numValues++ + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + + // Only construct enum value descriptors for top-level enums since + // they are needed for registration. + if pd != pf { + return + } + ed.L1.eagerValues = true + ed.L2 = new(EnumL2) + ed.L2.Values.List = make([]EnumValue, numValues) + for i := 0; len(b) > 0; { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case fieldnum.EnumDescriptorProto_Value: + ed.L2.Values.List[i].unmarshalFull(v, sb, pf, ed, i) + i++ + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } +} + +func (md *Message) unmarshalSeed(b []byte, sb *strs.Builder, pf *File, pd pref.Descriptor, i int) { + md.L0.ParentFile = pf + md.L0.Parent = pd + md.L0.Index = i + + var prevField pref.FieldNumber + var numEnums, numMessages, numExtensions int + var posEnums, posMessages, posExtensions int + b0 := b + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case fieldnum.DescriptorProto_Name: + md.L0.FullName = appendFullName(sb, pd.FullName(), v) + case fieldnum.DescriptorProto_EnumType: + if prevField != fieldnum.DescriptorProto_EnumType { + if numEnums > 0 { + panic("non-contiguous repeated field") + } + posEnums = len(b0) - len(b) - n - m + } + numEnums++ + case fieldnum.DescriptorProto_NestedType: + if prevField != fieldnum.DescriptorProto_NestedType { + if numMessages > 0 { + panic("non-contiguous repeated field") + } + posMessages = len(b0) - len(b) - n - m + } + numMessages++ + case fieldnum.DescriptorProto_Extension: + if prevField != fieldnum.DescriptorProto_Extension { + if numExtensions > 0 { + panic("non-contiguous repeated field") + } + posExtensions = len(b0) - len(b) - n - m + } + numExtensions++ + case fieldnum.DescriptorProto_Options: + md.unmarshalSeedOptions(v) + } + prevField = num + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + prevField = -1 // ignore known field numbers of unknown wire type + } + } + + // Must allocate all declarations before parsing each descriptor type + // to ensure we handled all descriptors in "flattened ordering". + if numEnums > 0 { + md.L1.Enums.List = pf.allocEnums(numEnums) + } + if numMessages > 0 { + md.L1.Messages.List = pf.allocMessages(numMessages) + } + if numExtensions > 0 { + md.L1.Extensions.List = pf.allocExtensions(numExtensions) + } + + if numEnums > 0 { + b := b0[posEnums:] + for i := range md.L1.Enums.List { + _, n := protowire.ConsumeVarint(b) + v, m := protowire.ConsumeBytes(b[n:]) + md.L1.Enums.List[i].unmarshalSeed(v, sb, pf, md, i) + b = b[n+m:] + } + } + if numMessages > 0 { + b := b0[posMessages:] + for i := range md.L1.Messages.List { + _, n := protowire.ConsumeVarint(b) + v, m := protowire.ConsumeBytes(b[n:]) + md.L1.Messages.List[i].unmarshalSeed(v, sb, pf, md, i) + b = b[n+m:] + } + } + if numExtensions > 0 { + b := b0[posExtensions:] + for i := range md.L1.Extensions.List { + _, n := protowire.ConsumeVarint(b) + v, m := protowire.ConsumeBytes(b[n:]) + md.L1.Extensions.List[i].unmarshalSeed(v, sb, pf, md, i) + b = b[n+m:] + } + } +} + +func (md *Message) unmarshalSeedOptions(b []byte) { + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case fieldnum.MessageOptions_MapEntry: + md.L1.IsMapEntry = protowire.DecodeBool(v) + case fieldnum.MessageOptions_MessageSetWireFormat: + md.L1.IsMessageSet = protowire.DecodeBool(v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } +} + +func (xd *Extension) unmarshalSeed(b []byte, sb *strs.Builder, pf *File, pd pref.Descriptor, i int) { + xd.L0.ParentFile = pf + xd.L0.Parent = pd + xd.L0.Index = i + + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case fieldnum.FieldDescriptorProto_Number: + xd.L1.Number = pref.FieldNumber(v) + case fieldnum.FieldDescriptorProto_Label: + xd.L1.Cardinality = pref.Cardinality(v) + case fieldnum.FieldDescriptorProto_Type: + xd.L1.Kind = pref.Kind(v) + } + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case fieldnum.FieldDescriptorProto_Name: + xd.L0.FullName = appendFullName(sb, pd.FullName(), v) + case fieldnum.FieldDescriptorProto_Extendee: + xd.L1.Extendee = PlaceholderMessage(makeFullName(sb, v)) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } +} + +func (sd *Service) unmarshalSeed(b []byte, sb *strs.Builder, pf *File, pd pref.Descriptor, i int) { + sd.L0.ParentFile = pf + sd.L0.Parent = pd + sd.L0.Index = i + + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case fieldnum.ServiceDescriptorProto_Name: + sd.L0.FullName = appendFullName(sb, pd.FullName(), v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } +} + +var nameBuilderPool = sync.Pool{ + New: func() interface{} { return new(strs.Builder) }, +} + +func getBuilder() *strs.Builder { + return nameBuilderPool.Get().(*strs.Builder) +} +func putBuilder(b *strs.Builder) { + nameBuilderPool.Put(b) +} + +// makeFullName converts b to a protoreflect.FullName, +// where b must start with a leading dot. +func makeFullName(sb *strs.Builder, b []byte) pref.FullName { + if len(b) == 0 || b[0] != '.' { + panic("name reference must be fully qualified") + } + return pref.FullName(sb.MakeString(b[1:])) +} + +func appendFullName(sb *strs.Builder, prefix pref.FullName, suffix []byte) pref.FullName { + return sb.AppendFullName(prefix, pref.Name(strs.UnsafeString(suffix))) +} diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/desc_lazy.go b/vendor/google.golang.org/protobuf/internal/filedesc/desc_lazy.go new file mode 100644 index 000000000..bc215944a --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/filedesc/desc_lazy.go @@ -0,0 +1,704 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package filedesc + +import ( + "reflect" + "sync" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/descopts" + "google.golang.org/protobuf/internal/fieldnum" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/proto" + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +func (fd *File) lazyRawInit() { + fd.unmarshalFull(fd.builder.RawDescriptor) + fd.resolveMessages() + fd.resolveExtensions() + fd.resolveServices() +} + +func (file *File) resolveMessages() { + var depIdx int32 + for i := range file.allMessages { + md := &file.allMessages[i] + + // Resolve message field dependencies. + for j := range md.L2.Fields.List { + fd := &md.L2.Fields.List[j] + + // Weak fields are resolved upon actual use. + if fd.L1.IsWeak { + continue + } + + // Resolve message field dependency. + switch fd.L1.Kind { + case pref.EnumKind: + fd.L1.Enum = file.resolveEnumDependency(fd.L1.Enum, listFieldDeps, depIdx) + depIdx++ + case pref.MessageKind, pref.GroupKind: + fd.L1.Message = file.resolveMessageDependency(fd.L1.Message, listFieldDeps, depIdx) + depIdx++ + } + + // Default is resolved here since it depends on Enum being resolved. + if v := fd.L1.Default.val; v.IsValid() { + fd.L1.Default = unmarshalDefault(v.Bytes(), fd.L1.Kind, file, fd.L1.Enum) + } + } + } +} + +func (file *File) resolveExtensions() { + var depIdx int32 + for i := range file.allExtensions { + xd := &file.allExtensions[i] + + // Resolve extension field dependency. + switch xd.L1.Kind { + case pref.EnumKind: + xd.L2.Enum = file.resolveEnumDependency(xd.L2.Enum, listExtDeps, depIdx) + depIdx++ + case pref.MessageKind, pref.GroupKind: + xd.L2.Message = file.resolveMessageDependency(xd.L2.Message, listExtDeps, depIdx) + depIdx++ + } + + // Default is resolved here since it depends on Enum being resolved. + if v := xd.L2.Default.val; v.IsValid() { + xd.L2.Default = unmarshalDefault(v.Bytes(), xd.L1.Kind, file, xd.L2.Enum) + } + } +} + +func (file *File) resolveServices() { + var depIdx int32 + for i := range file.allServices { + sd := &file.allServices[i] + + // Resolve method dependencies. + for j := range sd.L2.Methods.List { + md := &sd.L2.Methods.List[j] + md.L1.Input = file.resolveMessageDependency(md.L1.Input, listMethInDeps, depIdx) + md.L1.Output = file.resolveMessageDependency(md.L1.Output, listMethOutDeps, depIdx) + depIdx++ + } + } +} + +func (file *File) resolveEnumDependency(ed pref.EnumDescriptor, i, j int32) pref.EnumDescriptor { + r := file.builder.FileRegistry + if r, ok := r.(resolverByIndex); ok { + if ed2 := r.FindEnumByIndex(i, j, file.allEnums, file.allMessages); ed2 != nil { + return ed2 + } + } + for i := range file.allEnums { + if ed2 := &file.allEnums[i]; ed2.L0.FullName == ed.FullName() { + return ed2 + } + } + if d, _ := r.FindDescriptorByName(ed.FullName()); d != nil { + return d.(pref.EnumDescriptor) + } + return ed +} + +func (file *File) resolveMessageDependency(md pref.MessageDescriptor, i, j int32) pref.MessageDescriptor { + r := file.builder.FileRegistry + if r, ok := r.(resolverByIndex); ok { + if md2 := r.FindMessageByIndex(i, j, file.allEnums, file.allMessages); md2 != nil { + return md2 + } + } + for i := range file.allMessages { + if md2 := &file.allMessages[i]; md2.L0.FullName == md.FullName() { + return md2 + } + } + if d, _ := r.FindDescriptorByName(md.FullName()); d != nil { + return d.(pref.MessageDescriptor) + } + return md +} + +func (fd *File) unmarshalFull(b []byte) { + sb := getBuilder() + defer putBuilder(sb) + + var enumIdx, messageIdx, extensionIdx, serviceIdx int + var rawOptions []byte + fd.L2 = new(FileL2) + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case fieldnum.FileDescriptorProto_PublicDependency: + fd.L2.Imports[v].IsPublic = true + case fieldnum.FileDescriptorProto_WeakDependency: + fd.L2.Imports[v].IsWeak = true + } + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case fieldnum.FileDescriptorProto_Dependency: + path := sb.MakeString(v) + imp, _ := fd.builder.FileRegistry.FindFileByPath(path) + if imp == nil { + imp = PlaceholderFile(path) + } + fd.L2.Imports = append(fd.L2.Imports, pref.FileImport{FileDescriptor: imp}) + case fieldnum.FileDescriptorProto_EnumType: + fd.L1.Enums.List[enumIdx].unmarshalFull(v, sb) + enumIdx++ + case fieldnum.FileDescriptorProto_MessageType: + fd.L1.Messages.List[messageIdx].unmarshalFull(v, sb) + messageIdx++ + case fieldnum.FileDescriptorProto_Extension: + fd.L1.Extensions.List[extensionIdx].unmarshalFull(v, sb) + extensionIdx++ + case fieldnum.FileDescriptorProto_Service: + fd.L1.Services.List[serviceIdx].unmarshalFull(v, sb) + serviceIdx++ + case fieldnum.FileDescriptorProto_Options: + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + fd.L2.Options = fd.builder.optionsUnmarshaler(&descopts.File, rawOptions) +} + +func (ed *Enum) unmarshalFull(b []byte, sb *strs.Builder) { + var rawValues [][]byte + var rawOptions []byte + if !ed.L1.eagerValues { + ed.L2 = new(EnumL2) + } + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case fieldnum.EnumDescriptorProto_Value: + rawValues = append(rawValues, v) + case fieldnum.EnumDescriptorProto_ReservedName: + ed.L2.ReservedNames.List = append(ed.L2.ReservedNames.List, pref.Name(sb.MakeString(v))) + case fieldnum.EnumDescriptorProto_ReservedRange: + ed.L2.ReservedRanges.List = append(ed.L2.ReservedRanges.List, unmarshalEnumReservedRange(v)) + case fieldnum.EnumDescriptorProto_Options: + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + if !ed.L1.eagerValues && len(rawValues) > 0 { + ed.L2.Values.List = make([]EnumValue, len(rawValues)) + for i, b := range rawValues { + ed.L2.Values.List[i].unmarshalFull(b, sb, ed.L0.ParentFile, ed, i) + } + } + ed.L2.Options = ed.L0.ParentFile.builder.optionsUnmarshaler(&descopts.Enum, rawOptions) +} + +func unmarshalEnumReservedRange(b []byte) (r [2]pref.EnumNumber) { + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case fieldnum.EnumDescriptorProto_EnumReservedRange_Start: + r[0] = pref.EnumNumber(v) + case fieldnum.EnumDescriptorProto_EnumReservedRange_End: + r[1] = pref.EnumNumber(v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + return r +} + +func (vd *EnumValue) unmarshalFull(b []byte, sb *strs.Builder, pf *File, pd pref.Descriptor, i int) { + vd.L0.ParentFile = pf + vd.L0.Parent = pd + vd.L0.Index = i + + var rawOptions []byte + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case fieldnum.EnumValueDescriptorProto_Number: + vd.L1.Number = pref.EnumNumber(v) + } + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case fieldnum.EnumValueDescriptorProto_Name: + // NOTE: Enum values are in the same scope as the enum parent. + vd.L0.FullName = appendFullName(sb, pd.Parent().FullName(), v) + case fieldnum.EnumValueDescriptorProto_Options: + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + vd.L1.Options = pf.builder.optionsUnmarshaler(&descopts.EnumValue, rawOptions) +} + +func (md *Message) unmarshalFull(b []byte, sb *strs.Builder) { + var rawFields, rawOneofs [][]byte + var enumIdx, messageIdx, extensionIdx int + var rawOptions []byte + md.L2 = new(MessageL2) + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case fieldnum.DescriptorProto_Field: + rawFields = append(rawFields, v) + case fieldnum.DescriptorProto_OneofDecl: + rawOneofs = append(rawOneofs, v) + case fieldnum.DescriptorProto_ReservedName: + md.L2.ReservedNames.List = append(md.L2.ReservedNames.List, pref.Name(sb.MakeString(v))) + case fieldnum.DescriptorProto_ReservedRange: + md.L2.ReservedRanges.List = append(md.L2.ReservedRanges.List, unmarshalMessageReservedRange(v)) + case fieldnum.DescriptorProto_ExtensionRange: + r, rawOptions := unmarshalMessageExtensionRange(v) + opts := md.L0.ParentFile.builder.optionsUnmarshaler(&descopts.ExtensionRange, rawOptions) + md.L2.ExtensionRanges.List = append(md.L2.ExtensionRanges.List, r) + md.L2.ExtensionRangeOptions = append(md.L2.ExtensionRangeOptions, opts) + case fieldnum.DescriptorProto_EnumType: + md.L1.Enums.List[enumIdx].unmarshalFull(v, sb) + enumIdx++ + case fieldnum.DescriptorProto_NestedType: + md.L1.Messages.List[messageIdx].unmarshalFull(v, sb) + messageIdx++ + case fieldnum.DescriptorProto_Extension: + md.L1.Extensions.List[extensionIdx].unmarshalFull(v, sb) + extensionIdx++ + case fieldnum.DescriptorProto_Options: + md.unmarshalOptions(v) + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + if len(rawFields) > 0 || len(rawOneofs) > 0 { + md.L2.Fields.List = make([]Field, len(rawFields)) + md.L2.Oneofs.List = make([]Oneof, len(rawOneofs)) + for i, b := range rawFields { + fd := &md.L2.Fields.List[i] + fd.unmarshalFull(b, sb, md.L0.ParentFile, md, i) + if fd.L1.Cardinality == pref.Required { + md.L2.RequiredNumbers.List = append(md.L2.RequiredNumbers.List, fd.L1.Number) + } + } + for i, b := range rawOneofs { + od := &md.L2.Oneofs.List[i] + od.unmarshalFull(b, sb, md.L0.ParentFile, md, i) + } + } + md.L2.Options = md.L0.ParentFile.builder.optionsUnmarshaler(&descopts.Message, rawOptions) +} + +func (md *Message) unmarshalOptions(b []byte) { + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case fieldnum.MessageOptions_MapEntry: + md.L1.IsMapEntry = protowire.DecodeBool(v) + case fieldnum.MessageOptions_MessageSetWireFormat: + md.L1.IsMessageSet = protowire.DecodeBool(v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } +} + +func unmarshalMessageReservedRange(b []byte) (r [2]pref.FieldNumber) { + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case fieldnum.DescriptorProto_ReservedRange_Start: + r[0] = pref.FieldNumber(v) + case fieldnum.DescriptorProto_ReservedRange_End: + r[1] = pref.FieldNumber(v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + return r +} + +func unmarshalMessageExtensionRange(b []byte) (r [2]pref.FieldNumber, rawOptions []byte) { + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case fieldnum.DescriptorProto_ExtensionRange_Start: + r[0] = pref.FieldNumber(v) + case fieldnum.DescriptorProto_ExtensionRange_End: + r[1] = pref.FieldNumber(v) + } + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case fieldnum.DescriptorProto_ExtensionRange_Options: + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + return r, rawOptions +} + +func (fd *Field) unmarshalFull(b []byte, sb *strs.Builder, pf *File, pd pref.Descriptor, i int) { + fd.L0.ParentFile = pf + fd.L0.Parent = pd + fd.L0.Index = i + + var rawTypeName []byte + var rawOptions []byte + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case fieldnum.FieldDescriptorProto_Number: + fd.L1.Number = pref.FieldNumber(v) + case fieldnum.FieldDescriptorProto_Label: + fd.L1.Cardinality = pref.Cardinality(v) + case fieldnum.FieldDescriptorProto_Type: + fd.L1.Kind = pref.Kind(v) + case fieldnum.FieldDescriptorProto_OneofIndex: + // In Message.unmarshalFull, we allocate slices for both + // the field and oneof descriptors before unmarshaling either + // of them. This ensures pointers to slice elements are stable. + od := &pd.(*Message).L2.Oneofs.List[v] + od.L1.Fields.List = append(od.L1.Fields.List, fd) + if fd.L1.ContainingOneof != nil { + panic("oneof type already set") + } + fd.L1.ContainingOneof = od + case fieldnum.FieldDescriptorProto_Proto3Optional: + fd.L1.IsProto3Optional = protowire.DecodeBool(v) + } + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case fieldnum.FieldDescriptorProto_Name: + fd.L0.FullName = appendFullName(sb, pd.FullName(), v) + case fieldnum.FieldDescriptorProto_JsonName: + fd.L1.JSONName.Init(sb.MakeString(v)) + case fieldnum.FieldDescriptorProto_DefaultValue: + fd.L1.Default.val = pref.ValueOfBytes(v) // temporarily store as bytes; later resolved in resolveMessages + case fieldnum.FieldDescriptorProto_TypeName: + rawTypeName = v + case fieldnum.FieldDescriptorProto_Options: + fd.unmarshalOptions(v) + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + if rawTypeName != nil { + name := makeFullName(sb, rawTypeName) + switch fd.L1.Kind { + case pref.EnumKind: + fd.L1.Enum = PlaceholderEnum(name) + case pref.MessageKind, pref.GroupKind: + fd.L1.Message = PlaceholderMessage(name) + } + } + fd.L1.Options = pf.builder.optionsUnmarshaler(&descopts.Field, rawOptions) +} + +func (fd *Field) unmarshalOptions(b []byte) { + const FieldOptions_EnforceUTF8 = 13 + + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case fieldnum.FieldOptions_Packed: + fd.L1.HasPacked = true + fd.L1.IsPacked = protowire.DecodeBool(v) + case fieldnum.FieldOptions_Weak: + fd.L1.IsWeak = protowire.DecodeBool(v) + case FieldOptions_EnforceUTF8: + fd.L1.HasEnforceUTF8 = true + fd.L1.EnforceUTF8 = protowire.DecodeBool(v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } +} + +func (od *Oneof) unmarshalFull(b []byte, sb *strs.Builder, pf *File, pd pref.Descriptor, i int) { + od.L0.ParentFile = pf + od.L0.Parent = pd + od.L0.Index = i + + var rawOptions []byte + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case fieldnum.OneofDescriptorProto_Name: + od.L0.FullName = appendFullName(sb, pd.FullName(), v) + case fieldnum.OneofDescriptorProto_Options: + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + od.L1.Options = pf.builder.optionsUnmarshaler(&descopts.Oneof, rawOptions) +} + +func (xd *Extension) unmarshalFull(b []byte, sb *strs.Builder) { + var rawTypeName []byte + var rawOptions []byte + xd.L2 = new(ExtensionL2) + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case fieldnum.FieldDescriptorProto_Proto3Optional: + xd.L2.IsProto3Optional = protowire.DecodeBool(v) + } + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case fieldnum.FieldDescriptorProto_JsonName: + xd.L2.JSONName.Init(sb.MakeString(v)) + case fieldnum.FieldDescriptorProto_DefaultValue: + xd.L2.Default.val = pref.ValueOfBytes(v) // temporarily store as bytes; later resolved in resolveExtensions + case fieldnum.FieldDescriptorProto_TypeName: + rawTypeName = v + case fieldnum.FieldDescriptorProto_Options: + xd.unmarshalOptions(v) + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + if rawTypeName != nil { + name := makeFullName(sb, rawTypeName) + switch xd.L1.Kind { + case pref.EnumKind: + xd.L2.Enum = PlaceholderEnum(name) + case pref.MessageKind, pref.GroupKind: + xd.L2.Message = PlaceholderMessage(name) + } + } + xd.L2.Options = xd.L0.ParentFile.builder.optionsUnmarshaler(&descopts.Field, rawOptions) +} + +func (xd *Extension) unmarshalOptions(b []byte) { + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case fieldnum.FieldOptions_Packed: + xd.L2.IsPacked = protowire.DecodeBool(v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } +} + +func (sd *Service) unmarshalFull(b []byte, sb *strs.Builder) { + var rawMethods [][]byte + var rawOptions []byte + sd.L2 = new(ServiceL2) + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case fieldnum.ServiceDescriptorProto_Method: + rawMethods = append(rawMethods, v) + case fieldnum.ServiceDescriptorProto_Options: + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + if len(rawMethods) > 0 { + sd.L2.Methods.List = make([]Method, len(rawMethods)) + for i, b := range rawMethods { + sd.L2.Methods.List[i].unmarshalFull(b, sb, sd.L0.ParentFile, sd, i) + } + } + sd.L2.Options = sd.L0.ParentFile.builder.optionsUnmarshaler(&descopts.Service, rawOptions) +} + +func (md *Method) unmarshalFull(b []byte, sb *strs.Builder, pf *File, pd pref.Descriptor, i int) { + md.L0.ParentFile = pf + md.L0.Parent = pd + md.L0.Index = i + + var rawOptions []byte + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case fieldnum.MethodDescriptorProto_ClientStreaming: + md.L1.IsStreamingClient = protowire.DecodeBool(v) + case fieldnum.MethodDescriptorProto_ServerStreaming: + md.L1.IsStreamingServer = protowire.DecodeBool(v) + } + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case fieldnum.MethodDescriptorProto_Name: + md.L0.FullName = appendFullName(sb, pd.FullName(), v) + case fieldnum.MethodDescriptorProto_InputType: + md.L1.Input = PlaceholderMessage(makeFullName(sb, v)) + case fieldnum.MethodDescriptorProto_OutputType: + md.L1.Output = PlaceholderMessage(makeFullName(sb, v)) + case fieldnum.MethodDescriptorProto_Options: + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + md.L1.Options = pf.builder.optionsUnmarshaler(&descopts.Method, rawOptions) +} + +// appendOptions appends src to dst, where the returned slice is never nil. +// This is necessary to distinguish between empty and unpopulated options. +func appendOptions(dst, src []byte) []byte { + if dst == nil { + dst = []byte{} + } + return append(dst, src...) +} + +// optionsUnmarshaler constructs a lazy unmarshal function for an options message. +// +// The type of message to unmarshal to is passed as a pointer since the +// vars in descopts may not yet be populated at the time this function is called. +func (db *Builder) optionsUnmarshaler(p *pref.ProtoMessage, b []byte) func() pref.ProtoMessage { + if b == nil { + return nil + } + var opts pref.ProtoMessage + var once sync.Once + return func() pref.ProtoMessage { + once.Do(func() { + if *p == nil { + panic("Descriptor.Options called without importing the descriptor package") + } + opts = reflect.New(reflect.TypeOf(*p).Elem()).Interface().(pref.ProtoMessage) + if err := (proto.UnmarshalOptions{ + AllowPartial: true, + Resolver: db.TypeResolver, + }).Unmarshal(b, opts); err != nil { + panic(err) + } + }) + return opts + } +} diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/desc_list.go b/vendor/google.golang.org/protobuf/internal/filedesc/desc_list.go new file mode 100644 index 000000000..1b7089b64 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/filedesc/desc_list.go @@ -0,0 +1,286 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package filedesc + +import ( + "fmt" + "math" + "sort" + "sync" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/descfmt" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/reflect/protoreflect" + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +type FileImports []pref.FileImport + +func (p *FileImports) Len() int { return len(*p) } +func (p *FileImports) Get(i int) pref.FileImport { return (*p)[i] } +func (p *FileImports) Format(s fmt.State, r rune) { descfmt.FormatList(s, r, p) } +func (p *FileImports) ProtoInternal(pragma.DoNotImplement) {} + +type Names struct { + List []pref.Name + once sync.Once + has map[pref.Name]int // protected by once +} + +func (p *Names) Len() int { return len(p.List) } +func (p *Names) Get(i int) pref.Name { return p.List[i] } +func (p *Names) Has(s pref.Name) bool { return p.lazyInit().has[s] > 0 } +func (p *Names) Format(s fmt.State, r rune) { descfmt.FormatList(s, r, p) } +func (p *Names) ProtoInternal(pragma.DoNotImplement) {} +func (p *Names) lazyInit() *Names { + p.once.Do(func() { + if len(p.List) > 0 { + p.has = make(map[pref.Name]int, len(p.List)) + for _, s := range p.List { + p.has[s] = p.has[s] + 1 + } + } + }) + return p +} + +// CheckValid reports any errors with the set of names with an error message +// that completes the sentence: "ranges is invalid because it has ..." +func (p *Names) CheckValid() error { + for s, n := range p.lazyInit().has { + switch { + case n > 1: + return errors.New("duplicate name: %q", s) + case false && !s.IsValid(): + // NOTE: The C++ implementation does not validate the identifier. + // See https://github.com/protocolbuffers/protobuf/issues/6335. + return errors.New("invalid name: %q", s) + } + } + return nil +} + +type EnumRanges struct { + List [][2]pref.EnumNumber // start inclusive; end inclusive + once sync.Once + sorted [][2]pref.EnumNumber // protected by once +} + +func (p *EnumRanges) Len() int { return len(p.List) } +func (p *EnumRanges) Get(i int) [2]pref.EnumNumber { return p.List[i] } +func (p *EnumRanges) Has(n pref.EnumNumber) bool { + for ls := p.lazyInit().sorted; len(ls) > 0; { + i := len(ls) / 2 + switch r := enumRange(ls[i]); { + case n < r.Start(): + ls = ls[:i] // search lower + case n > r.End(): + ls = ls[i+1:] // search upper + default: + return true + } + } + return false +} +func (p *EnumRanges) Format(s fmt.State, r rune) { descfmt.FormatList(s, r, p) } +func (p *EnumRanges) ProtoInternal(pragma.DoNotImplement) {} +func (p *EnumRanges) lazyInit() *EnumRanges { + p.once.Do(func() { + p.sorted = append(p.sorted, p.List...) + sort.Slice(p.sorted, func(i, j int) bool { + return p.sorted[i][0] < p.sorted[j][0] + }) + }) + return p +} + +// CheckValid reports any errors with the set of names with an error message +// that completes the sentence: "ranges is invalid because it has ..." +func (p *EnumRanges) CheckValid() error { + var rp enumRange + for i, r := range p.lazyInit().sorted { + r := enumRange(r) + switch { + case !(r.Start() <= r.End()): + return errors.New("invalid range: %v", r) + case !(rp.End() < r.Start()) && i > 0: + return errors.New("overlapping ranges: %v with %v", rp, r) + } + rp = r + } + return nil +} + +type enumRange [2]protoreflect.EnumNumber + +func (r enumRange) Start() protoreflect.EnumNumber { return r[0] } // inclusive +func (r enumRange) End() protoreflect.EnumNumber { return r[1] } // inclusive +func (r enumRange) String() string { + if r.Start() == r.End() { + return fmt.Sprintf("%d", r.Start()) + } + return fmt.Sprintf("%d to %d", r.Start(), r.End()) +} + +type FieldRanges struct { + List [][2]pref.FieldNumber // start inclusive; end exclusive + once sync.Once + sorted [][2]pref.FieldNumber // protected by once +} + +func (p *FieldRanges) Len() int { return len(p.List) } +func (p *FieldRanges) Get(i int) [2]pref.FieldNumber { return p.List[i] } +func (p *FieldRanges) Has(n pref.FieldNumber) bool { + for ls := p.lazyInit().sorted; len(ls) > 0; { + i := len(ls) / 2 + switch r := fieldRange(ls[i]); { + case n < r.Start(): + ls = ls[:i] // search lower + case n > r.End(): + ls = ls[i+1:] // search upper + default: + return true + } + } + return false +} +func (p *FieldRanges) Format(s fmt.State, r rune) { descfmt.FormatList(s, r, p) } +func (p *FieldRanges) ProtoInternal(pragma.DoNotImplement) {} +func (p *FieldRanges) lazyInit() *FieldRanges { + p.once.Do(func() { + p.sorted = append(p.sorted, p.List...) + sort.Slice(p.sorted, func(i, j int) bool { + return p.sorted[i][0] < p.sorted[j][0] + }) + }) + return p +} + +// CheckValid reports any errors with the set of ranges with an error message +// that completes the sentence: "ranges is invalid because it has ..." +func (p *FieldRanges) CheckValid(isMessageSet bool) error { + var rp fieldRange + for i, r := range p.lazyInit().sorted { + r := fieldRange(r) + switch { + case !isValidFieldNumber(r.Start(), isMessageSet): + return errors.New("invalid field number: %d", r.Start()) + case !isValidFieldNumber(r.End(), isMessageSet): + return errors.New("invalid field number: %d", r.End()) + case !(r.Start() <= r.End()): + return errors.New("invalid range: %v", r) + case !(rp.End() < r.Start()) && i > 0: + return errors.New("overlapping ranges: %v with %v", rp, r) + } + rp = r + } + return nil +} + +// isValidFieldNumber reports whether the field number is valid. +// Unlike the FieldNumber.IsValid method, it allows ranges that cover the +// reserved number range. +func isValidFieldNumber(n protoreflect.FieldNumber, isMessageSet bool) bool { + if isMessageSet { + return protowire.MinValidNumber <= n && n <= math.MaxInt32 + } + return protowire.MinValidNumber <= n && n <= protowire.MaxValidNumber +} + +// CheckOverlap reports an error if p and q overlap. +func (p *FieldRanges) CheckOverlap(q *FieldRanges) error { + rps := p.lazyInit().sorted + rqs := q.lazyInit().sorted + for pi, qi := 0, 0; pi < len(rps) && qi < len(rqs); { + rp := fieldRange(rps[pi]) + rq := fieldRange(rqs[qi]) + if !(rp.End() < rq.Start() || rq.End() < rp.Start()) { + return errors.New("overlapping ranges: %v with %v", rp, rq) + } + if rp.Start() < rq.Start() { + pi++ + } else { + qi++ + } + } + return nil +} + +type fieldRange [2]protoreflect.FieldNumber + +func (r fieldRange) Start() protoreflect.FieldNumber { return r[0] } // inclusive +func (r fieldRange) End() protoreflect.FieldNumber { return r[1] - 1 } // inclusive +func (r fieldRange) String() string { + if r.Start() == r.End() { + return fmt.Sprintf("%d", r.Start()) + } + return fmt.Sprintf("%d to %d", r.Start(), r.End()) +} + +type FieldNumbers struct { + List []pref.FieldNumber + once sync.Once + has map[pref.FieldNumber]struct{} // protected by once +} + +func (p *FieldNumbers) Len() int { return len(p.List) } +func (p *FieldNumbers) Get(i int) pref.FieldNumber { return p.List[i] } +func (p *FieldNumbers) Has(n pref.FieldNumber) bool { + p.once.Do(func() { + if len(p.List) > 0 { + p.has = make(map[pref.FieldNumber]struct{}, len(p.List)) + for _, n := range p.List { + p.has[n] = struct{}{} + } + } + }) + _, ok := p.has[n] + return ok +} +func (p *FieldNumbers) Format(s fmt.State, r rune) { descfmt.FormatList(s, r, p) } +func (p *FieldNumbers) ProtoInternal(pragma.DoNotImplement) {} + +type OneofFields struct { + List []pref.FieldDescriptor + once sync.Once + byName map[pref.Name]pref.FieldDescriptor // protected by once + byJSON map[string]pref.FieldDescriptor // protected by once + byNum map[pref.FieldNumber]pref.FieldDescriptor // protected by once +} + +func (p *OneofFields) Len() int { return len(p.List) } +func (p *OneofFields) Get(i int) pref.FieldDescriptor { return p.List[i] } +func (p *OneofFields) ByName(s pref.Name) pref.FieldDescriptor { return p.lazyInit().byName[s] } +func (p *OneofFields) ByJSONName(s string) pref.FieldDescriptor { return p.lazyInit().byJSON[s] } +func (p *OneofFields) ByNumber(n pref.FieldNumber) pref.FieldDescriptor { return p.lazyInit().byNum[n] } +func (p *OneofFields) Format(s fmt.State, r rune) { descfmt.FormatList(s, r, p) } +func (p *OneofFields) ProtoInternal(pragma.DoNotImplement) {} + +func (p *OneofFields) lazyInit() *OneofFields { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[pref.Name]pref.FieldDescriptor, len(p.List)) + p.byJSON = make(map[string]pref.FieldDescriptor, len(p.List)) + p.byNum = make(map[pref.FieldNumber]pref.FieldDescriptor, len(p.List)) + for _, f := range p.List { + // Field names and numbers are guaranteed to be unique. + p.byName[f.Name()] = f + p.byJSON[f.JSONName()] = f + p.byNum[f.Number()] = f + } + } + }) + return p +} + +type SourceLocations struct { + List []pref.SourceLocation +} + +func (p *SourceLocations) Len() int { return len(p.List) } +func (p *SourceLocations) Get(i int) pref.SourceLocation { return p.List[i] } +func (p *SourceLocations) ProtoInternal(pragma.DoNotImplement) {} diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/desc_list_gen.go b/vendor/google.golang.org/protobuf/internal/filedesc/desc_list_gen.go new file mode 100644 index 000000000..6a8825e80 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/filedesc/desc_list_gen.go @@ -0,0 +1,345 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-types. DO NOT EDIT. + +package filedesc + +import ( + "fmt" + "sync" + + "google.golang.org/protobuf/internal/descfmt" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/reflect/protoreflect" +) + +type Enums struct { + List []Enum + once sync.Once + byName map[protoreflect.Name]*Enum // protected by once +} + +func (p *Enums) Len() int { + return len(p.List) +} +func (p *Enums) Get(i int) protoreflect.EnumDescriptor { + return &p.List[i] +} +func (p *Enums) ByName(s protoreflect.Name) protoreflect.EnumDescriptor { + if d := p.lazyInit().byName[s]; d != nil { + return d + } + return nil +} +func (p *Enums) Format(s fmt.State, r rune) { + descfmt.FormatList(s, r, p) +} +func (p *Enums) ProtoInternal(pragma.DoNotImplement) {} +func (p *Enums) lazyInit() *Enums { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]*Enum, len(p.List)) + for i := range p.List { + d := &p.List[i] + if _, ok := p.byName[d.Name()]; !ok { + p.byName[d.Name()] = d + } + } + } + }) + return p +} + +type EnumValues struct { + List []EnumValue + once sync.Once + byName map[protoreflect.Name]*EnumValue // protected by once + byNum map[protoreflect.EnumNumber]*EnumValue // protected by once +} + +func (p *EnumValues) Len() int { + return len(p.List) +} +func (p *EnumValues) Get(i int) protoreflect.EnumValueDescriptor { + return &p.List[i] +} +func (p *EnumValues) ByName(s protoreflect.Name) protoreflect.EnumValueDescriptor { + if d := p.lazyInit().byName[s]; d != nil { + return d + } + return nil +} +func (p *EnumValues) ByNumber(n protoreflect.EnumNumber) protoreflect.EnumValueDescriptor { + if d := p.lazyInit().byNum[n]; d != nil { + return d + } + return nil +} +func (p *EnumValues) Format(s fmt.State, r rune) { + descfmt.FormatList(s, r, p) +} +func (p *EnumValues) ProtoInternal(pragma.DoNotImplement) {} +func (p *EnumValues) lazyInit() *EnumValues { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]*EnumValue, len(p.List)) + p.byNum = make(map[protoreflect.EnumNumber]*EnumValue, len(p.List)) + for i := range p.List { + d := &p.List[i] + if _, ok := p.byName[d.Name()]; !ok { + p.byName[d.Name()] = d + } + if _, ok := p.byNum[d.Number()]; !ok { + p.byNum[d.Number()] = d + } + } + } + }) + return p +} + +type Messages struct { + List []Message + once sync.Once + byName map[protoreflect.Name]*Message // protected by once +} + +func (p *Messages) Len() int { + return len(p.List) +} +func (p *Messages) Get(i int) protoreflect.MessageDescriptor { + return &p.List[i] +} +func (p *Messages) ByName(s protoreflect.Name) protoreflect.MessageDescriptor { + if d := p.lazyInit().byName[s]; d != nil { + return d + } + return nil +} +func (p *Messages) Format(s fmt.State, r rune) { + descfmt.FormatList(s, r, p) +} +func (p *Messages) ProtoInternal(pragma.DoNotImplement) {} +func (p *Messages) lazyInit() *Messages { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]*Message, len(p.List)) + for i := range p.List { + d := &p.List[i] + if _, ok := p.byName[d.Name()]; !ok { + p.byName[d.Name()] = d + } + } + } + }) + return p +} + +type Fields struct { + List []Field + once sync.Once + byName map[protoreflect.Name]*Field // protected by once + byJSON map[string]*Field // protected by once + byNum map[protoreflect.FieldNumber]*Field // protected by once +} + +func (p *Fields) Len() int { + return len(p.List) +} +func (p *Fields) Get(i int) protoreflect.FieldDescriptor { + return &p.List[i] +} +func (p *Fields) ByName(s protoreflect.Name) protoreflect.FieldDescriptor { + if d := p.lazyInit().byName[s]; d != nil { + return d + } + return nil +} +func (p *Fields) ByJSONName(s string) protoreflect.FieldDescriptor { + if d := p.lazyInit().byJSON[s]; d != nil { + return d + } + return nil +} +func (p *Fields) ByNumber(n protoreflect.FieldNumber) protoreflect.FieldDescriptor { + if d := p.lazyInit().byNum[n]; d != nil { + return d + } + return nil +} +func (p *Fields) Format(s fmt.State, r rune) { + descfmt.FormatList(s, r, p) +} +func (p *Fields) ProtoInternal(pragma.DoNotImplement) {} +func (p *Fields) lazyInit() *Fields { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]*Field, len(p.List)) + p.byJSON = make(map[string]*Field, len(p.List)) + p.byNum = make(map[protoreflect.FieldNumber]*Field, len(p.List)) + for i := range p.List { + d := &p.List[i] + if _, ok := p.byName[d.Name()]; !ok { + p.byName[d.Name()] = d + } + if _, ok := p.byJSON[d.JSONName()]; !ok { + p.byJSON[d.JSONName()] = d + } + if _, ok := p.byNum[d.Number()]; !ok { + p.byNum[d.Number()] = d + } + } + } + }) + return p +} + +type Oneofs struct { + List []Oneof + once sync.Once + byName map[protoreflect.Name]*Oneof // protected by once +} + +func (p *Oneofs) Len() int { + return len(p.List) +} +func (p *Oneofs) Get(i int) protoreflect.OneofDescriptor { + return &p.List[i] +} +func (p *Oneofs) ByName(s protoreflect.Name) protoreflect.OneofDescriptor { + if d := p.lazyInit().byName[s]; d != nil { + return d + } + return nil +} +func (p *Oneofs) Format(s fmt.State, r rune) { + descfmt.FormatList(s, r, p) +} +func (p *Oneofs) ProtoInternal(pragma.DoNotImplement) {} +func (p *Oneofs) lazyInit() *Oneofs { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]*Oneof, len(p.List)) + for i := range p.List { + d := &p.List[i] + if _, ok := p.byName[d.Name()]; !ok { + p.byName[d.Name()] = d + } + } + } + }) + return p +} + +type Extensions struct { + List []Extension + once sync.Once + byName map[protoreflect.Name]*Extension // protected by once +} + +func (p *Extensions) Len() int { + return len(p.List) +} +func (p *Extensions) Get(i int) protoreflect.ExtensionDescriptor { + return &p.List[i] +} +func (p *Extensions) ByName(s protoreflect.Name) protoreflect.ExtensionDescriptor { + if d := p.lazyInit().byName[s]; d != nil { + return d + } + return nil +} +func (p *Extensions) Format(s fmt.State, r rune) { + descfmt.FormatList(s, r, p) +} +func (p *Extensions) ProtoInternal(pragma.DoNotImplement) {} +func (p *Extensions) lazyInit() *Extensions { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]*Extension, len(p.List)) + for i := range p.List { + d := &p.List[i] + if _, ok := p.byName[d.Name()]; !ok { + p.byName[d.Name()] = d + } + } + } + }) + return p +} + +type Services struct { + List []Service + once sync.Once + byName map[protoreflect.Name]*Service // protected by once +} + +func (p *Services) Len() int { + return len(p.List) +} +func (p *Services) Get(i int) protoreflect.ServiceDescriptor { + return &p.List[i] +} +func (p *Services) ByName(s protoreflect.Name) protoreflect.ServiceDescriptor { + if d := p.lazyInit().byName[s]; d != nil { + return d + } + return nil +} +func (p *Services) Format(s fmt.State, r rune) { + descfmt.FormatList(s, r, p) +} +func (p *Services) ProtoInternal(pragma.DoNotImplement) {} +func (p *Services) lazyInit() *Services { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]*Service, len(p.List)) + for i := range p.List { + d := &p.List[i] + if _, ok := p.byName[d.Name()]; !ok { + p.byName[d.Name()] = d + } + } + } + }) + return p +} + +type Methods struct { + List []Method + once sync.Once + byName map[protoreflect.Name]*Method // protected by once +} + +func (p *Methods) Len() int { + return len(p.List) +} +func (p *Methods) Get(i int) protoreflect.MethodDescriptor { + return &p.List[i] +} +func (p *Methods) ByName(s protoreflect.Name) protoreflect.MethodDescriptor { + if d := p.lazyInit().byName[s]; d != nil { + return d + } + return nil +} +func (p *Methods) Format(s fmt.State, r rune) { + descfmt.FormatList(s, r, p) +} +func (p *Methods) ProtoInternal(pragma.DoNotImplement) {} +func (p *Methods) lazyInit() *Methods { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]*Method, len(p.List)) + for i := range p.List { + d := &p.List[i] + if _, ok := p.byName[d.Name()]; !ok { + p.byName[d.Name()] = d + } + } + } + }) + return p +} diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/placeholder.go b/vendor/google.golang.org/protobuf/internal/filedesc/placeholder.go new file mode 100644 index 000000000..dbf2c605b --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/filedesc/placeholder.go @@ -0,0 +1,107 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package filedesc + +import ( + "google.golang.org/protobuf/internal/descopts" + "google.golang.org/protobuf/internal/pragma" + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +var ( + emptyNames = new(Names) + emptyEnumRanges = new(EnumRanges) + emptyFieldRanges = new(FieldRanges) + emptyFieldNumbers = new(FieldNumbers) + emptySourceLocations = new(SourceLocations) + + emptyFiles = new(FileImports) + emptyMessages = new(Messages) + emptyFields = new(Fields) + emptyOneofs = new(Oneofs) + emptyEnums = new(Enums) + emptyEnumValues = new(EnumValues) + emptyExtensions = new(Extensions) + emptyServices = new(Services) +) + +// PlaceholderFile is a placeholder, representing only the file path. +type PlaceholderFile string + +func (f PlaceholderFile) ParentFile() pref.FileDescriptor { return f } +func (f PlaceholderFile) Parent() pref.Descriptor { return nil } +func (f PlaceholderFile) Index() int { return 0 } +func (f PlaceholderFile) Syntax() pref.Syntax { return 0 } +func (f PlaceholderFile) Name() pref.Name { return "" } +func (f PlaceholderFile) FullName() pref.FullName { return "" } +func (f PlaceholderFile) IsPlaceholder() bool { return true } +func (f PlaceholderFile) Options() pref.ProtoMessage { return descopts.File } +func (f PlaceholderFile) Path() string { return string(f) } +func (f PlaceholderFile) Package() pref.FullName { return "" } +func (f PlaceholderFile) Imports() pref.FileImports { return emptyFiles } +func (f PlaceholderFile) Messages() pref.MessageDescriptors { return emptyMessages } +func (f PlaceholderFile) Enums() pref.EnumDescriptors { return emptyEnums } +func (f PlaceholderFile) Extensions() pref.ExtensionDescriptors { return emptyExtensions } +func (f PlaceholderFile) Services() pref.ServiceDescriptors { return emptyServices } +func (f PlaceholderFile) SourceLocations() pref.SourceLocations { return emptySourceLocations } +func (f PlaceholderFile) ProtoType(pref.FileDescriptor) { return } +func (f PlaceholderFile) ProtoInternal(pragma.DoNotImplement) { return } + +// PlaceholderEnum is a placeholder, representing only the full name. +type PlaceholderEnum pref.FullName + +func (e PlaceholderEnum) ParentFile() pref.FileDescriptor { return nil } +func (e PlaceholderEnum) Parent() pref.Descriptor { return nil } +func (e PlaceholderEnum) Index() int { return 0 } +func (e PlaceholderEnum) Syntax() pref.Syntax { return 0 } +func (e PlaceholderEnum) Name() pref.Name { return pref.FullName(e).Name() } +func (e PlaceholderEnum) FullName() pref.FullName { return pref.FullName(e) } +func (e PlaceholderEnum) IsPlaceholder() bool { return true } +func (e PlaceholderEnum) Options() pref.ProtoMessage { return descopts.Enum } +func (e PlaceholderEnum) Values() pref.EnumValueDescriptors { return emptyEnumValues } +func (e PlaceholderEnum) ReservedNames() pref.Names { return emptyNames } +func (e PlaceholderEnum) ReservedRanges() pref.EnumRanges { return emptyEnumRanges } +func (e PlaceholderEnum) ProtoType(pref.EnumDescriptor) { return } +func (e PlaceholderEnum) ProtoInternal(pragma.DoNotImplement) { return } + +// PlaceholderEnumValue is a placeholder, representing only the full name. +type PlaceholderEnumValue pref.FullName + +func (e PlaceholderEnumValue) ParentFile() pref.FileDescriptor { return nil } +func (e PlaceholderEnumValue) Parent() pref.Descriptor { return nil } +func (e PlaceholderEnumValue) Index() int { return 0 } +func (e PlaceholderEnumValue) Syntax() pref.Syntax { return 0 } +func (e PlaceholderEnumValue) Name() pref.Name { return pref.FullName(e).Name() } +func (e PlaceholderEnumValue) FullName() pref.FullName { return pref.FullName(e) } +func (e PlaceholderEnumValue) IsPlaceholder() bool { return true } +func (e PlaceholderEnumValue) Options() pref.ProtoMessage { return descopts.EnumValue } +func (e PlaceholderEnumValue) Number() pref.EnumNumber { return 0 } +func (e PlaceholderEnumValue) ProtoType(pref.EnumValueDescriptor) { return } +func (e PlaceholderEnumValue) ProtoInternal(pragma.DoNotImplement) { return } + +// PlaceholderMessage is a placeholder, representing only the full name. +type PlaceholderMessage pref.FullName + +func (m PlaceholderMessage) ParentFile() pref.FileDescriptor { return nil } +func (m PlaceholderMessage) Parent() pref.Descriptor { return nil } +func (m PlaceholderMessage) Index() int { return 0 } +func (m PlaceholderMessage) Syntax() pref.Syntax { return 0 } +func (m PlaceholderMessage) Name() pref.Name { return pref.FullName(m).Name() } +func (m PlaceholderMessage) FullName() pref.FullName { return pref.FullName(m) } +func (m PlaceholderMessage) IsPlaceholder() bool { return true } +func (m PlaceholderMessage) Options() pref.ProtoMessage { return descopts.Message } +func (m PlaceholderMessage) IsMapEntry() bool { return false } +func (m PlaceholderMessage) Fields() pref.FieldDescriptors { return emptyFields } +func (m PlaceholderMessage) Oneofs() pref.OneofDescriptors { return emptyOneofs } +func (m PlaceholderMessage) ReservedNames() pref.Names { return emptyNames } +func (m PlaceholderMessage) ReservedRanges() pref.FieldRanges { return emptyFieldRanges } +func (m PlaceholderMessage) RequiredNumbers() pref.FieldNumbers { return emptyFieldNumbers } +func (m PlaceholderMessage) ExtensionRanges() pref.FieldRanges { return emptyFieldRanges } +func (m PlaceholderMessage) ExtensionRangeOptions(int) pref.ProtoMessage { panic("index out of range") } +func (m PlaceholderMessage) Messages() pref.MessageDescriptors { return emptyMessages } +func (m PlaceholderMessage) Enums() pref.EnumDescriptors { return emptyEnums } +func (m PlaceholderMessage) Extensions() pref.ExtensionDescriptors { return emptyExtensions } +func (m PlaceholderMessage) ProtoType(pref.MessageDescriptor) { return } +func (m PlaceholderMessage) ProtoInternal(pragma.DoNotImplement) { return } diff --git a/vendor/google.golang.org/protobuf/internal/filetype/build.go b/vendor/google.golang.org/protobuf/internal/filetype/build.go new file mode 100644 index 000000000..0a0dd35de --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/filetype/build.go @@ -0,0 +1,297 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package filetype provides functionality for wrapping descriptors +// with Go type information. +package filetype + +import ( + "reflect" + + "google.golang.org/protobuf/internal/descopts" + fdesc "google.golang.org/protobuf/internal/filedesc" + pimpl "google.golang.org/protobuf/internal/impl" + pref "google.golang.org/protobuf/reflect/protoreflect" + preg "google.golang.org/protobuf/reflect/protoregistry" +) + +// Builder constructs type descriptors from a raw file descriptor +// and associated Go types for each enum and message declaration. +// +// +// Flattened Ordering +// +// The protobuf type system represents declarations as a tree. Certain nodes in +// the tree require us to either associate it with a concrete Go type or to +// resolve a dependency, which is information that must be provided separately +// since it cannot be derived from the file descriptor alone. +// +// However, representing a tree as Go literals is difficult to simply do in a +// space and time efficient way. Thus, we store them as a flattened list of +// objects where the serialization order from the tree-based form is important. +// +// The "flattened ordering" is defined as a tree traversal of all enum, message, +// extension, and service declarations using the following algorithm: +// +// def VisitFileDecls(fd): +// for e in fd.Enums: yield e +// for m in fd.Messages: yield m +// for x in fd.Extensions: yield x +// for s in fd.Services: yield s +// for m in fd.Messages: yield from VisitMessageDecls(m) +// +// def VisitMessageDecls(md): +// for e in md.Enums: yield e +// for m in md.Messages: yield m +// for x in md.Extensions: yield x +// for m in md.Messages: yield from VisitMessageDecls(m) +// +// The traversal starts at the root file descriptor and yields each direct +// declaration within each node before traversing into sub-declarations +// that children themselves may have. +type Builder struct { + // File is the underlying file descriptor builder. + File fdesc.Builder + + // GoTypes is a unique set of the Go types for all declarations and + // dependencies. Each type is represented as a zero value of the Go type. + // + // Declarations are Go types generated for enums and messages directly + // declared (not publicly imported) in the proto source file. + // Messages for map entries are accounted for, but represented by nil. + // Enum declarations in "flattened ordering" come first, followed by + // message declarations in "flattened ordering". + // + // Dependencies are Go types for enums or messages referenced by + // message fields (excluding weak fields), for parent extended messages of + // extension fields, for enums or messages referenced by extension fields, + // and for input and output messages referenced by service methods. + // Dependencies must come after declarations, but the ordering of + // dependencies themselves is unspecified. + GoTypes []interface{} + + // DependencyIndexes is an ordered list of indexes into GoTypes for the + // dependencies of messages, extensions, or services. + // + // There are 5 sub-lists in "flattened ordering" concatenated back-to-back: + // 0. Message field dependencies: list of the enum or message type + // referred to by every message field. + // 1. Extension field targets: list of the extended parent message of + // every extension. + // 2. Extension field dependencies: list of the enum or message type + // referred to by every extension field. + // 3. Service method inputs: list of the input message type + // referred to by every service method. + // 4. Service method outputs: list of the output message type + // referred to by every service method. + // + // The offset into DependencyIndexes for the start of each sub-list + // is appended to the end in reverse order. + DependencyIndexes []int32 + + // EnumInfos is a list of enum infos in "flattened ordering". + EnumInfos []pimpl.EnumInfo + + // MessageInfos is a list of message infos in "flattened ordering". + // If provided, the GoType and PBType for each element is populated. + // + // Requirement: len(MessageInfos) == len(Build.Messages) + MessageInfos []pimpl.MessageInfo + + // ExtensionInfos is a list of extension infos in "flattened ordering". + // Each element is initialized and registered with the protoregistry package. + // + // Requirement: len(LegacyExtensions) == len(Build.Extensions) + ExtensionInfos []pimpl.ExtensionInfo + + // TypeRegistry is the registry to register each type descriptor. + // If nil, it uses protoregistry.GlobalTypes. + TypeRegistry interface { + RegisterMessage(pref.MessageType) error + RegisterEnum(pref.EnumType) error + RegisterExtension(pref.ExtensionType) error + } +} + +// Out is the output of the builder. +type Out struct { + File pref.FileDescriptor +} + +func (tb Builder) Build() (out Out) { + // Replace the resolver with one that resolves dependencies by index, + // which is faster and more reliable than relying on the global registry. + if tb.File.FileRegistry == nil { + tb.File.FileRegistry = preg.GlobalFiles + } + tb.File.FileRegistry = &resolverByIndex{ + goTypes: tb.GoTypes, + depIdxs: tb.DependencyIndexes, + fileRegistry: tb.File.FileRegistry, + } + + // Initialize registry if unpopulated. + if tb.TypeRegistry == nil { + tb.TypeRegistry = preg.GlobalTypes + } + + fbOut := tb.File.Build() + out.File = fbOut.File + + // Process enums. + enumGoTypes := tb.GoTypes[:len(fbOut.Enums)] + if len(tb.EnumInfos) != len(fbOut.Enums) { + panic("mismatching enum lengths") + } + if len(fbOut.Enums) > 0 { + for i := range fbOut.Enums { + tb.EnumInfos[i] = pimpl.EnumInfo{ + GoReflectType: reflect.TypeOf(enumGoTypes[i]), + Desc: &fbOut.Enums[i], + } + // Register enum types. + if err := tb.TypeRegistry.RegisterEnum(&tb.EnumInfos[i]); err != nil { + panic(err) + } + } + } + + // Process messages. + messageGoTypes := tb.GoTypes[len(fbOut.Enums):][:len(fbOut.Messages)] + if len(tb.MessageInfos) != len(fbOut.Messages) { + panic("mismatching message lengths") + } + if len(fbOut.Messages) > 0 { + for i := range fbOut.Messages { + if messageGoTypes[i] == nil { + continue // skip map entry + } + + tb.MessageInfos[i].GoReflectType = reflect.TypeOf(messageGoTypes[i]) + tb.MessageInfos[i].Desc = &fbOut.Messages[i] + + // Register message types. + if err := tb.TypeRegistry.RegisterMessage(&tb.MessageInfos[i]); err != nil { + panic(err) + } + } + + // As a special-case for descriptor.proto, + // locally register concrete message type for the options. + if out.File.Path() == "google/protobuf/descriptor.proto" && out.File.Package() == "google.protobuf" { + for i := range fbOut.Messages { + switch fbOut.Messages[i].Name() { + case "FileOptions": + descopts.File = messageGoTypes[i].(pref.ProtoMessage) + case "EnumOptions": + descopts.Enum = messageGoTypes[i].(pref.ProtoMessage) + case "EnumValueOptions": + descopts.EnumValue = messageGoTypes[i].(pref.ProtoMessage) + case "MessageOptions": + descopts.Message = messageGoTypes[i].(pref.ProtoMessage) + case "FieldOptions": + descopts.Field = messageGoTypes[i].(pref.ProtoMessage) + case "OneofOptions": + descopts.Oneof = messageGoTypes[i].(pref.ProtoMessage) + case "ExtensionRangeOptions": + descopts.ExtensionRange = messageGoTypes[i].(pref.ProtoMessage) + case "ServiceOptions": + descopts.Service = messageGoTypes[i].(pref.ProtoMessage) + case "MethodOptions": + descopts.Method = messageGoTypes[i].(pref.ProtoMessage) + } + } + } + } + + // Process extensions. + if len(tb.ExtensionInfos) != len(fbOut.Extensions) { + panic("mismatching extension lengths") + } + var depIdx int32 + for i := range fbOut.Extensions { + // For enum and message kinds, determine the referent Go type so + // that we can construct their constructors. + const listExtDeps = 2 + var goType reflect.Type + switch fbOut.Extensions[i].L1.Kind { + case pref.EnumKind: + j := depIdxs.Get(tb.DependencyIndexes, listExtDeps, depIdx) + goType = reflect.TypeOf(tb.GoTypes[j]) + depIdx++ + case pref.MessageKind, pref.GroupKind: + j := depIdxs.Get(tb.DependencyIndexes, listExtDeps, depIdx) + goType = reflect.TypeOf(tb.GoTypes[j]) + depIdx++ + default: + goType = goTypeForPBKind[fbOut.Extensions[i].L1.Kind] + } + if fbOut.Extensions[i].IsList() { + goType = reflect.SliceOf(goType) + } + + pimpl.InitExtensionInfo(&tb.ExtensionInfos[i], &fbOut.Extensions[i], goType) + + // Register extension types. + if err := tb.TypeRegistry.RegisterExtension(&tb.ExtensionInfos[i]); err != nil { + panic(err) + } + } + + return out +} + +var goTypeForPBKind = map[pref.Kind]reflect.Type{ + pref.BoolKind: reflect.TypeOf(bool(false)), + pref.Int32Kind: reflect.TypeOf(int32(0)), + pref.Sint32Kind: reflect.TypeOf(int32(0)), + pref.Sfixed32Kind: reflect.TypeOf(int32(0)), + pref.Int64Kind: reflect.TypeOf(int64(0)), + pref.Sint64Kind: reflect.TypeOf(int64(0)), + pref.Sfixed64Kind: reflect.TypeOf(int64(0)), + pref.Uint32Kind: reflect.TypeOf(uint32(0)), + pref.Fixed32Kind: reflect.TypeOf(uint32(0)), + pref.Uint64Kind: reflect.TypeOf(uint64(0)), + pref.Fixed64Kind: reflect.TypeOf(uint64(0)), + pref.FloatKind: reflect.TypeOf(float32(0)), + pref.DoubleKind: reflect.TypeOf(float64(0)), + pref.StringKind: reflect.TypeOf(string("")), + pref.BytesKind: reflect.TypeOf([]byte(nil)), +} + +type depIdxs []int32 + +// Get retrieves the jth element of the ith sub-list. +func (x depIdxs) Get(i, j int32) int32 { + return x[x[int32(len(x))-i-1]+j] +} + +type ( + resolverByIndex struct { + goTypes []interface{} + depIdxs depIdxs + fileRegistry + } + fileRegistry interface { + FindFileByPath(string) (pref.FileDescriptor, error) + FindDescriptorByName(pref.FullName) (pref.Descriptor, error) + RegisterFile(pref.FileDescriptor) error + } +) + +func (r *resolverByIndex) FindEnumByIndex(i, j int32, es []fdesc.Enum, ms []fdesc.Message) pref.EnumDescriptor { + if depIdx := int(r.depIdxs.Get(i, j)); int(depIdx) < len(es)+len(ms) { + return &es[depIdx] + } else { + return pimpl.Export{}.EnumDescriptorOf(r.goTypes[depIdx]) + } +} + +func (r *resolverByIndex) FindMessageByIndex(i, j int32, es []fdesc.Enum, ms []fdesc.Message) pref.MessageDescriptor { + if depIdx := int(r.depIdxs.Get(i, j)); depIdx < len(es)+len(ms) { + return &ms[depIdx-len(es)] + } else { + return pimpl.Export{}.MessageDescriptorOf(r.goTypes[depIdx]) + } +} diff --git a/vendor/google.golang.org/protobuf/internal/flags/flags.go b/vendor/google.golang.org/protobuf/internal/flags/flags.go new file mode 100644 index 000000000..58372dd34 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/flags/flags.go @@ -0,0 +1,24 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package flags provides a set of flags controlled by build tags. +package flags + +// ProtoLegacy specifies whether to enable support for legacy functionality +// such as MessageSets, weak fields, and various other obscure behavior +// that is necessary to maintain backwards compatibility with proto1 or +// the pre-release variants of proto2 and proto3. +// +// This is disabled by default unless built with the "protolegacy" tag. +// +// WARNING: The compatibility agreement covers nothing provided by this flag. +// As such, functionality may suddenly be removed or changed at our discretion. +const ProtoLegacy = protoLegacy + +// LazyUnmarshalExtensions specifies whether to lazily unmarshal extensions. +// +// Lazy extension unmarshaling validates the contents of message-valued +// extension fields at unmarshal time, but defers creating the message +// structure until the extension is first accessed. +const LazyUnmarshalExtensions = ProtoLegacy diff --git a/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go b/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go new file mode 100644 index 000000000..a72995f02 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go @@ -0,0 +1,9 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !protolegacy + +package flags + +const protoLegacy = false diff --git a/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go b/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go new file mode 100644 index 000000000..772e2f0e4 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go @@ -0,0 +1,9 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build protolegacy + +package flags + +const protoLegacy = true diff --git a/vendor/google.golang.org/protobuf/internal/genname/name.go b/vendor/google.golang.org/protobuf/internal/genname/name.go new file mode 100644 index 000000000..f45509fbd --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/genname/name.go @@ -0,0 +1,25 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package genname contains constants for generated names. +package genname + +const ( + State = "state" + + SizeCache = "sizeCache" + SizeCacheA = "XXX_sizecache" + + WeakFields = "weakFields" + WeakFieldsA = "XXX_weak" + + UnknownFields = "unknownFields" + UnknownFieldsA = "XXX_unrecognized" + + ExtensionFields = "extensionFields" + ExtensionFieldsA = "XXX_InternalExtensions" + ExtensionFieldsB = "XXX_extensions" + + WeakFieldPrefix = "XXX_weak_" +) diff --git a/vendor/google.golang.org/protobuf/internal/impl/api_export.go b/vendor/google.golang.org/protobuf/internal/impl/api_export.go new file mode 100644 index 000000000..4d22c9604 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/api_export.go @@ -0,0 +1,170 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + "strconv" + + "google.golang.org/protobuf/encoding/prototext" + "google.golang.org/protobuf/proto" + pref "google.golang.org/protobuf/reflect/protoreflect" + piface "google.golang.org/protobuf/runtime/protoiface" +) + +// Export is a zero-length named type that exists only to export a set of +// functions that we do not want to appear in godoc. +type Export struct{} + +// enum is any enum type generated by protoc-gen-go +// and must be a named int32 type. +type enum = interface{} + +// EnumOf returns the protoreflect.Enum interface over e. +// It returns nil if e is nil. +func (Export) EnumOf(e enum) pref.Enum { + switch e := e.(type) { + case nil: + return nil + case pref.Enum: + return e + default: + return legacyWrapEnum(reflect.ValueOf(e)) + } +} + +// EnumDescriptorOf returns the protoreflect.EnumDescriptor for e. +// It returns nil if e is nil. +func (Export) EnumDescriptorOf(e enum) pref.EnumDescriptor { + switch e := e.(type) { + case nil: + return nil + case pref.Enum: + return e.Descriptor() + default: + return LegacyLoadEnumDesc(reflect.TypeOf(e)) + } +} + +// EnumTypeOf returns the protoreflect.EnumType for e. +// It returns nil if e is nil. +func (Export) EnumTypeOf(e enum) pref.EnumType { + switch e := e.(type) { + case nil: + return nil + case pref.Enum: + return e.Type() + default: + return legacyLoadEnumType(reflect.TypeOf(e)) + } +} + +// EnumStringOf returns the enum value as a string, either as the name if +// the number is resolvable, or the number formatted as a string. +func (Export) EnumStringOf(ed pref.EnumDescriptor, n pref.EnumNumber) string { + ev := ed.Values().ByNumber(n) + if ev != nil { + return string(ev.Name()) + } + return strconv.Itoa(int(n)) +} + +// message is any message type generated by protoc-gen-go +// and must be a pointer to a named struct type. +type message = interface{} + +// legacyMessageWrapper wraps a v2 message as a v1 message. +type legacyMessageWrapper struct{ m pref.ProtoMessage } + +func (m legacyMessageWrapper) Reset() { proto.Reset(m.m) } +func (m legacyMessageWrapper) String() string { return Export{}.MessageStringOf(m.m) } +func (m legacyMessageWrapper) ProtoMessage() {} + +// ProtoMessageV1Of converts either a v1 or v2 message to a v1 message. +// It returns nil if m is nil. +func (Export) ProtoMessageV1Of(m message) piface.MessageV1 { + switch mv := m.(type) { + case nil: + return nil + case piface.MessageV1: + return mv + case unwrapper: + return Export{}.ProtoMessageV1Of(mv.protoUnwrap()) + case pref.ProtoMessage: + return legacyMessageWrapper{mv} + default: + panic(fmt.Sprintf("message %T is neither a v1 or v2 Message", m)) + } +} + +func (Export) protoMessageV2Of(m message) pref.ProtoMessage { + switch mv := m.(type) { + case nil: + return nil + case pref.ProtoMessage: + return mv + case legacyMessageWrapper: + return mv.m + case piface.MessageV1: + return nil + default: + panic(fmt.Sprintf("message %T is neither a v1 or v2 Message", m)) + } +} + +// ProtoMessageV2Of converts either a v1 or v2 message to a v2 message. +// It returns nil if m is nil. +func (Export) ProtoMessageV2Of(m message) pref.ProtoMessage { + if m == nil { + return nil + } + if mv := (Export{}).protoMessageV2Of(m); mv != nil { + return mv + } + return legacyWrapMessage(reflect.ValueOf(m)).Interface() +} + +// MessageOf returns the protoreflect.Message interface over m. +// It returns nil if m is nil. +func (Export) MessageOf(m message) pref.Message { + if m == nil { + return nil + } + if mv := (Export{}).protoMessageV2Of(m); mv != nil { + return mv.ProtoReflect() + } + return legacyWrapMessage(reflect.ValueOf(m)) +} + +// MessageDescriptorOf returns the protoreflect.MessageDescriptor for m. +// It returns nil if m is nil. +func (Export) MessageDescriptorOf(m message) pref.MessageDescriptor { + if m == nil { + return nil + } + if mv := (Export{}).protoMessageV2Of(m); mv != nil { + return mv.ProtoReflect().Descriptor() + } + return LegacyLoadMessageDesc(reflect.TypeOf(m)) +} + +// MessageTypeOf returns the protoreflect.MessageType for m. +// It returns nil if m is nil. +func (Export) MessageTypeOf(m message) pref.MessageType { + if m == nil { + return nil + } + if mv := (Export{}).protoMessageV2Of(m); mv != nil { + return mv.ProtoReflect().Type() + } + return legacyLoadMessageInfo(reflect.TypeOf(m), "") +} + +// MessageStringOf returns the message value as a string, +// which is the message serialized in the protobuf text format. +func (Export) MessageStringOf(m pref.ProtoMessage) string { + return prototext.MarshalOptions{Multiline: false}.Format(m) +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/checkinit.go b/vendor/google.golang.org/protobuf/internal/impl/checkinit.go new file mode 100644 index 000000000..b82341e57 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/checkinit.go @@ -0,0 +1,141 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "sync" + + "google.golang.org/protobuf/internal/errors" + pref "google.golang.org/protobuf/reflect/protoreflect" + piface "google.golang.org/protobuf/runtime/protoiface" +) + +func (mi *MessageInfo) checkInitialized(in piface.CheckInitializedInput) (piface.CheckInitializedOutput, error) { + var p pointer + if ms, ok := in.Message.(*messageState); ok { + p = ms.pointer() + } else { + p = in.Message.(*messageReflectWrapper).pointer() + } + return piface.CheckInitializedOutput{}, mi.checkInitializedPointer(p) +} + +func (mi *MessageInfo) checkInitializedPointer(p pointer) error { + mi.init() + if !mi.needsInitCheck { + return nil + } + if p.IsNil() { + for _, f := range mi.orderedCoderFields { + if f.isRequired { + return errors.RequiredNotSet(string(mi.Desc.Fields().ByNumber(f.num).FullName())) + } + } + return nil + } + if mi.extensionOffset.IsValid() { + e := p.Apply(mi.extensionOffset).Extensions() + if err := mi.isInitExtensions(e); err != nil { + return err + } + } + for _, f := range mi.orderedCoderFields { + if !f.isRequired && f.funcs.isInit == nil { + continue + } + fptr := p.Apply(f.offset) + if f.isPointer && fptr.Elem().IsNil() { + if f.isRequired { + return errors.RequiredNotSet(string(mi.Desc.Fields().ByNumber(f.num).FullName())) + } + continue + } + if f.funcs.isInit == nil { + continue + } + if err := f.funcs.isInit(fptr, f); err != nil { + return err + } + } + return nil +} + +func (mi *MessageInfo) isInitExtensions(ext *map[int32]ExtensionField) error { + if ext == nil { + return nil + } + for _, x := range *ext { + ei := getExtensionFieldInfo(x.Type()) + if ei.funcs.isInit == nil { + continue + } + v := x.Value() + if !v.IsValid() { + continue + } + if err := ei.funcs.isInit(v); err != nil { + return err + } + } + return nil +} + +var ( + needsInitCheckMu sync.Mutex + needsInitCheckMap sync.Map +) + +// needsInitCheck reports whether a message needs to be checked for partial initialization. +// +// It returns true if the message transitively includes any required or extension fields. +func needsInitCheck(md pref.MessageDescriptor) bool { + if v, ok := needsInitCheckMap.Load(md); ok { + if has, ok := v.(bool); ok { + return has + } + } + needsInitCheckMu.Lock() + defer needsInitCheckMu.Unlock() + return needsInitCheckLocked(md) +} + +func needsInitCheckLocked(md pref.MessageDescriptor) (has bool) { + if v, ok := needsInitCheckMap.Load(md); ok { + // If has is true, we've previously determined that this message + // needs init checks. + // + // If has is false, we've previously determined that it can never + // be uninitialized. + // + // If has is not a bool, we've just encountered a cycle in the + // message graph. In this case, it is safe to return false: If + // the message does have required fields, we'll detect them later + // in the graph traversal. + has, ok := v.(bool) + return ok && has + } + needsInitCheckMap.Store(md, struct{}{}) // avoid cycles while descending into this message + defer func() { + needsInitCheckMap.Store(md, has) + }() + if md.RequiredNumbers().Len() > 0 { + return true + } + if md.ExtensionRanges().Len() > 0 { + return true + } + for i := 0; i < md.Fields().Len(); i++ { + fd := md.Fields().Get(i) + // Map keys are never messages, so just consider the map value. + if fd.IsMap() { + fd = fd.MapValue() + } + fmd := fd.Message() + if fmd != nil && needsInitCheckLocked(fmd) { + return true + } + } + return false +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_extension.go b/vendor/google.golang.org/protobuf/internal/impl/codec_extension.go new file mode 100644 index 000000000..08d35170b --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_extension.go @@ -0,0 +1,223 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "sync" + "sync/atomic" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/errors" + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +type extensionFieldInfo struct { + wiretag uint64 + tagsize int + unmarshalNeedsValue bool + funcs valueCoderFuncs + validation validationInfo +} + +var legacyExtensionFieldInfoCache sync.Map // map[protoreflect.ExtensionType]*extensionFieldInfo + +func getExtensionFieldInfo(xt pref.ExtensionType) *extensionFieldInfo { + if xi, ok := xt.(*ExtensionInfo); ok { + xi.lazyInit() + return xi.info + } + return legacyLoadExtensionFieldInfo(xt) +} + +// legacyLoadExtensionFieldInfo dynamically loads a *ExtensionInfo for xt. +func legacyLoadExtensionFieldInfo(xt pref.ExtensionType) *extensionFieldInfo { + if xi, ok := legacyExtensionFieldInfoCache.Load(xt); ok { + return xi.(*extensionFieldInfo) + } + e := makeExtensionFieldInfo(xt.TypeDescriptor()) + if e, ok := legacyMessageTypeCache.LoadOrStore(xt, e); ok { + return e.(*extensionFieldInfo) + } + return e +} + +func makeExtensionFieldInfo(xd pref.ExtensionDescriptor) *extensionFieldInfo { + var wiretag uint64 + if !xd.IsPacked() { + wiretag = protowire.EncodeTag(xd.Number(), wireTypes[xd.Kind()]) + } else { + wiretag = protowire.EncodeTag(xd.Number(), protowire.BytesType) + } + e := &extensionFieldInfo{ + wiretag: wiretag, + tagsize: protowire.SizeVarint(wiretag), + funcs: encoderFuncsForValue(xd), + } + // Does the unmarshal function need a value passed to it? + // This is true for composite types, where we pass in a message, list, or map to fill in, + // and for enums, where we pass in a prototype value to specify the concrete enum type. + switch xd.Kind() { + case pref.MessageKind, pref.GroupKind, pref.EnumKind: + e.unmarshalNeedsValue = true + default: + if xd.Cardinality() == pref.Repeated { + e.unmarshalNeedsValue = true + } + } + return e +} + +type lazyExtensionValue struct { + atomicOnce uint32 // atomically set if value is valid + mu sync.Mutex + xi *extensionFieldInfo + value pref.Value + b []byte + fn func() pref.Value +} + +type ExtensionField struct { + typ pref.ExtensionType + + // value is either the value of GetValue, + // or a *lazyExtensionValue that then returns the value of GetValue. + value pref.Value + lazy *lazyExtensionValue +} + +func (f *ExtensionField) appendLazyBytes(xt pref.ExtensionType, xi *extensionFieldInfo, num protowire.Number, wtyp protowire.Type, b []byte) { + if f.lazy == nil { + f.lazy = &lazyExtensionValue{xi: xi} + } + f.typ = xt + f.lazy.xi = xi + f.lazy.b = protowire.AppendTag(f.lazy.b, num, wtyp) + f.lazy.b = append(f.lazy.b, b...) +} + +func (f *ExtensionField) canLazy(xt pref.ExtensionType) bool { + if f.typ == nil { + return true + } + if f.typ == xt && f.lazy != nil && atomic.LoadUint32(&f.lazy.atomicOnce) == 0 { + return true + } + return false +} + +func (f *ExtensionField) lazyInit() { + f.lazy.mu.Lock() + defer f.lazy.mu.Unlock() + if atomic.LoadUint32(&f.lazy.atomicOnce) == 1 { + return + } + if f.lazy.xi != nil { + b := f.lazy.b + val := f.typ.New() + for len(b) > 0 { + var tag uint64 + if b[0] < 0x80 { + tag = uint64(b[0]) + b = b[1:] + } else if len(b) >= 2 && b[1] < 128 { + tag = uint64(b[0]&0x7f) + uint64(b[1])<<7 + b = b[2:] + } else { + var n int + tag, n = protowire.ConsumeVarint(b) + if n < 0 { + panic(errors.New("bad tag in lazy extension decoding")) + } + b = b[n:] + } + num := protowire.Number(tag >> 3) + wtyp := protowire.Type(tag & 7) + var out unmarshalOutput + var err error + val, out, err = f.lazy.xi.funcs.unmarshal(b, val, num, wtyp, lazyUnmarshalOptions) + if err != nil { + panic(errors.New("decode failure in lazy extension decoding: %v", err)) + } + b = b[out.n:] + } + f.lazy.value = val + } else { + f.lazy.value = f.lazy.fn() + } + f.lazy.xi = nil + f.lazy.fn = nil + f.lazy.b = nil + atomic.StoreUint32(&f.lazy.atomicOnce, 1) +} + +// Set sets the type and value of the extension field. +// This must not be called concurrently. +func (f *ExtensionField) Set(t pref.ExtensionType, v pref.Value) { + f.typ = t + f.value = v + f.lazy = nil +} + +// SetLazy sets the type and a value that is to be lazily evaluated upon first use. +// This must not be called concurrently. +func (f *ExtensionField) SetLazy(t pref.ExtensionType, fn func() pref.Value) { + f.typ = t + f.lazy = &lazyExtensionValue{fn: fn} +} + +// Value returns the value of the extension field. +// This may be called concurrently. +func (f *ExtensionField) Value() pref.Value { + if f.lazy != nil { + if atomic.LoadUint32(&f.lazy.atomicOnce) == 0 { + f.lazyInit() + } + return f.lazy.value + } + return f.value +} + +// Type returns the type of the extension field. +// This may be called concurrently. +func (f ExtensionField) Type() pref.ExtensionType { + return f.typ +} + +// IsSet returns whether the extension field is set. +// This may be called concurrently. +func (f ExtensionField) IsSet() bool { + return f.typ != nil +} + +// IsLazy reports whether a field is lazily encoded. +// It is exported for testing. +func IsLazy(m pref.Message, fd pref.FieldDescriptor) bool { + var mi *MessageInfo + var p pointer + switch m := m.(type) { + case *messageState: + mi = m.messageInfo() + p = m.pointer() + case *messageReflectWrapper: + mi = m.messageInfo() + p = m.pointer() + default: + return false + } + xd, ok := fd.(pref.ExtensionTypeDescriptor) + if !ok { + return false + } + xt := xd.Type() + ext := mi.extensionMap(p) + if ext == nil { + return false + } + f, ok := (*ext)[int32(fd.Number())] + if !ok { + return false + } + return f.typ == xt && f.lazy != nil && atomic.LoadUint32(&f.lazy.atomicOnce) == 0 +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_field.go b/vendor/google.golang.org/protobuf/internal/impl/codec_field.go new file mode 100644 index 000000000..c00744d38 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_field.go @@ -0,0 +1,828 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + "sync" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/proto" + pref "google.golang.org/protobuf/reflect/protoreflect" + preg "google.golang.org/protobuf/reflect/protoregistry" + piface "google.golang.org/protobuf/runtime/protoiface" +) + +type errInvalidUTF8 struct{} + +func (errInvalidUTF8) Error() string { return "string field contains invalid UTF-8" } +func (errInvalidUTF8) InvalidUTF8() bool { return true } + +// initOneofFieldCoders initializes the fast-path functions for the fields in a oneof. +// +// For size, marshal, and isInit operations, functions are set only on the first field +// in the oneof. The functions are called when the oneof is non-nil, and will dispatch +// to the appropriate field-specific function as necessary. +// +// The unmarshal function is set on each field individually as usual. +func (mi *MessageInfo) initOneofFieldCoders(od pref.OneofDescriptor, si structInfo) { + fs := si.oneofsByName[od.Name()] + ft := fs.Type + oneofFields := make(map[reflect.Type]*coderFieldInfo) + needIsInit := false + fields := od.Fields() + for i, lim := 0, fields.Len(); i < lim; i++ { + fd := od.Fields().Get(i) + num := fd.Number() + // Make a copy of the original coderFieldInfo for use in unmarshaling. + // + // oneofFields[oneofType].funcs.marshal is the field-specific marshal function. + // + // mi.coderFields[num].marshal is set on only the first field in the oneof, + // and dispatches to the field-specific marshaler in oneofFields. + cf := *mi.coderFields[num] + ot := si.oneofWrappersByNumber[num] + cf.ft = ot.Field(0).Type + cf.mi, cf.funcs = fieldCoder(fd, cf.ft) + oneofFields[ot] = &cf + if cf.funcs.isInit != nil { + needIsInit = true + } + mi.coderFields[num].funcs.unmarshal = func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + var vw reflect.Value // pointer to wrapper type + vi := p.AsValueOf(ft).Elem() // oneof field value of interface kind + if !vi.IsNil() && !vi.Elem().IsNil() && vi.Elem().Elem().Type() == ot { + vw = vi.Elem() + } else { + vw = reflect.New(ot) + } + out, err := cf.funcs.unmarshal(b, pointerOfValue(vw).Apply(zeroOffset), wtyp, &cf, opts) + if err != nil { + return out, err + } + vi.Set(vw) + return out, nil + } + } + getInfo := func(p pointer) (pointer, *coderFieldInfo) { + v := p.AsValueOf(ft).Elem() + if v.IsNil() { + return pointer{}, nil + } + v = v.Elem() // interface -> *struct + if v.IsNil() { + return pointer{}, nil + } + return pointerOfValue(v).Apply(zeroOffset), oneofFields[v.Elem().Type()] + } + first := mi.coderFields[od.Fields().Get(0).Number()] + first.funcs.size = func(p pointer, _ *coderFieldInfo, opts marshalOptions) int { + p, info := getInfo(p) + if info == nil || info.funcs.size == nil { + return 0 + } + return info.funcs.size(p, info, opts) + } + first.funcs.marshal = func(b []byte, p pointer, _ *coderFieldInfo, opts marshalOptions) ([]byte, error) { + p, info := getInfo(p) + if info == nil || info.funcs.marshal == nil { + return b, nil + } + return info.funcs.marshal(b, p, info, opts) + } + first.funcs.merge = func(dst, src pointer, _ *coderFieldInfo, opts mergeOptions) { + srcp, srcinfo := getInfo(src) + if srcinfo == nil || srcinfo.funcs.merge == nil { + return + } + dstp, dstinfo := getInfo(dst) + if dstinfo != srcinfo { + dst.AsValueOf(ft).Elem().Set(reflect.New(src.AsValueOf(ft).Elem().Elem().Elem().Type())) + dstp = pointerOfValue(dst.AsValueOf(ft).Elem().Elem()).Apply(zeroOffset) + } + srcinfo.funcs.merge(dstp, srcp, srcinfo, opts) + } + if needIsInit { + first.funcs.isInit = func(p pointer, _ *coderFieldInfo) error { + p, info := getInfo(p) + if info == nil || info.funcs.isInit == nil { + return nil + } + return info.funcs.isInit(p, info) + } + } +} + +func makeWeakMessageFieldCoder(fd pref.FieldDescriptor) pointerCoderFuncs { + var once sync.Once + var messageType pref.MessageType + lazyInit := func() { + once.Do(func() { + messageName := fd.Message().FullName() + messageType, _ = preg.GlobalTypes.FindMessageByName(messageName) + }) + } + + return pointerCoderFuncs{ + size: func(p pointer, f *coderFieldInfo, opts marshalOptions) int { + m, ok := p.WeakFields().get(f.num) + if !ok { + return 0 + } + lazyInit() + if messageType == nil { + panic(fmt.Sprintf("weak message %v is not linked in", fd.Message().FullName())) + } + return sizeMessage(m, f.tagsize, opts) + }, + marshal: func(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + m, ok := p.WeakFields().get(f.num) + if !ok { + return b, nil + } + lazyInit() + if messageType == nil { + panic(fmt.Sprintf("weak message %v is not linked in", fd.Message().FullName())) + } + return appendMessage(b, m, f.wiretag, opts) + }, + unmarshal: func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + fs := p.WeakFields() + m, ok := fs.get(f.num) + if !ok { + lazyInit() + if messageType == nil { + return unmarshalOutput{}, errUnknown + } + m = messageType.New().Interface() + fs.set(f.num, m) + } + return consumeMessage(b, m, wtyp, opts) + }, + isInit: func(p pointer, f *coderFieldInfo) error { + m, ok := p.WeakFields().get(f.num) + if !ok { + return nil + } + return proto.CheckInitialized(m) + }, + merge: func(dst, src pointer, f *coderFieldInfo, opts mergeOptions) { + sm, ok := src.WeakFields().get(f.num) + if !ok { + return + } + dm, ok := dst.WeakFields().get(f.num) + if !ok { + lazyInit() + if messageType == nil { + panic(fmt.Sprintf("weak message %v is not linked in", fd.Message().FullName())) + } + dm = messageType.New().Interface() + dst.WeakFields().set(f.num, dm) + } + opts.Merge(dm, sm) + }, + } +} + +func makeMessageFieldCoder(fd pref.FieldDescriptor, ft reflect.Type) pointerCoderFuncs { + if mi := getMessageInfo(ft); mi != nil { + funcs := pointerCoderFuncs{ + size: sizeMessageInfo, + marshal: appendMessageInfo, + unmarshal: consumeMessageInfo, + merge: mergeMessage, + } + if needsInitCheck(mi.Desc) { + funcs.isInit = isInitMessageInfo + } + return funcs + } else { + return pointerCoderFuncs{ + size: func(p pointer, f *coderFieldInfo, opts marshalOptions) int { + m := asMessage(p.AsValueOf(ft).Elem()) + return sizeMessage(m, f.tagsize, opts) + }, + marshal: func(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + m := asMessage(p.AsValueOf(ft).Elem()) + return appendMessage(b, m, f.wiretag, opts) + }, + unmarshal: func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + mp := p.AsValueOf(ft).Elem() + if mp.IsNil() { + mp.Set(reflect.New(ft.Elem())) + } + return consumeMessage(b, asMessage(mp), wtyp, opts) + }, + isInit: func(p pointer, f *coderFieldInfo) error { + m := asMessage(p.AsValueOf(ft).Elem()) + return proto.CheckInitialized(m) + }, + merge: mergeMessage, + } + } +} + +func sizeMessageInfo(p pointer, f *coderFieldInfo, opts marshalOptions) int { + return protowire.SizeBytes(f.mi.sizePointer(p.Elem(), opts)) + f.tagsize +} + +func appendMessageInfo(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(f.mi.sizePointer(p.Elem(), opts))) + return f.mi.marshalAppendPointer(b, p.Elem(), opts) +} + +func consumeMessageInfo(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + if p.Elem().IsNil() { + p.SetPointer(pointerOfValue(reflect.New(f.mi.GoReflectType.Elem()))) + } + o, err := f.mi.unmarshalPointer(v, p.Elem(), 0, opts) + if err != nil { + return out, err + } + out.n = n + out.initialized = o.initialized + return out, nil +} + +func isInitMessageInfo(p pointer, f *coderFieldInfo) error { + return f.mi.checkInitializedPointer(p.Elem()) +} + +func sizeMessage(m proto.Message, tagsize int, _ marshalOptions) int { + return protowire.SizeBytes(proto.Size(m)) + tagsize +} + +func appendMessage(b []byte, m proto.Message, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(proto.Size(m))) + return opts.Options().MarshalAppend(b, m) +} + +func consumeMessage(b []byte, m proto.Message, wtyp protowire.Type, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + o, err := opts.Options().UnmarshalState(piface.UnmarshalInput{ + Buf: v, + Message: m.ProtoReflect(), + }) + if err != nil { + return out, err + } + out.n = n + out.initialized = o.Flags&piface.UnmarshalInitialized != 0 + return out, nil +} + +func sizeMessageValue(v pref.Value, tagsize int, opts marshalOptions) int { + m := v.Message().Interface() + return sizeMessage(m, tagsize, opts) +} + +func appendMessageValue(b []byte, v pref.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + m := v.Message().Interface() + return appendMessage(b, m, wiretag, opts) +} + +func consumeMessageValue(b []byte, v pref.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (pref.Value, unmarshalOutput, error) { + m := v.Message().Interface() + out, err := consumeMessage(b, m, wtyp, opts) + return v, out, err +} + +func isInitMessageValue(v pref.Value) error { + m := v.Message().Interface() + return proto.CheckInitialized(m) +} + +var coderMessageValue = valueCoderFuncs{ + size: sizeMessageValue, + marshal: appendMessageValue, + unmarshal: consumeMessageValue, + isInit: isInitMessageValue, + merge: mergeMessageValue, +} + +func sizeGroupValue(v pref.Value, tagsize int, opts marshalOptions) int { + m := v.Message().Interface() + return sizeGroup(m, tagsize, opts) +} + +func appendGroupValue(b []byte, v pref.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + m := v.Message().Interface() + return appendGroup(b, m, wiretag, opts) +} + +func consumeGroupValue(b []byte, v pref.Value, num protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (pref.Value, unmarshalOutput, error) { + m := v.Message().Interface() + out, err := consumeGroup(b, m, num, wtyp, opts) + return v, out, err +} + +var coderGroupValue = valueCoderFuncs{ + size: sizeGroupValue, + marshal: appendGroupValue, + unmarshal: consumeGroupValue, + isInit: isInitMessageValue, + merge: mergeMessageValue, +} + +func makeGroupFieldCoder(fd pref.FieldDescriptor, ft reflect.Type) pointerCoderFuncs { + num := fd.Number() + if mi := getMessageInfo(ft); mi != nil { + funcs := pointerCoderFuncs{ + size: sizeGroupType, + marshal: appendGroupType, + unmarshal: consumeGroupType, + merge: mergeMessage, + } + if needsInitCheck(mi.Desc) { + funcs.isInit = isInitMessageInfo + } + return funcs + } else { + return pointerCoderFuncs{ + size: func(p pointer, f *coderFieldInfo, opts marshalOptions) int { + m := asMessage(p.AsValueOf(ft).Elem()) + return sizeGroup(m, f.tagsize, opts) + }, + marshal: func(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + m := asMessage(p.AsValueOf(ft).Elem()) + return appendGroup(b, m, f.wiretag, opts) + }, + unmarshal: func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + mp := p.AsValueOf(ft).Elem() + if mp.IsNil() { + mp.Set(reflect.New(ft.Elem())) + } + return consumeGroup(b, asMessage(mp), num, wtyp, opts) + }, + isInit: func(p pointer, f *coderFieldInfo) error { + m := asMessage(p.AsValueOf(ft).Elem()) + return proto.CheckInitialized(m) + }, + merge: mergeMessage, + } + } +} + +func sizeGroupType(p pointer, f *coderFieldInfo, opts marshalOptions) int { + return 2*f.tagsize + f.mi.sizePointer(p.Elem(), opts) +} + +func appendGroupType(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, f.wiretag) // start group + b, err := f.mi.marshalAppendPointer(b, p.Elem(), opts) + b = protowire.AppendVarint(b, f.wiretag+1) // end group + return b, err +} + +func consumeGroupType(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.StartGroupType { + return out, errUnknown + } + if p.Elem().IsNil() { + p.SetPointer(pointerOfValue(reflect.New(f.mi.GoReflectType.Elem()))) + } + return f.mi.unmarshalPointer(b, p.Elem(), f.num, opts) +} + +func sizeGroup(m proto.Message, tagsize int, _ marshalOptions) int { + return 2*tagsize + proto.Size(m) +} + +func appendGroup(b []byte, m proto.Message, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) // start group + b, err := opts.Options().MarshalAppend(b, m) + b = protowire.AppendVarint(b, wiretag+1) // end group + return b, err +} + +func consumeGroup(b []byte, m proto.Message, num protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.StartGroupType { + return out, errUnknown + } + b, n := protowire.ConsumeGroup(num, b) + if n < 0 { + return out, protowire.ParseError(n) + } + o, err := opts.Options().UnmarshalState(piface.UnmarshalInput{ + Buf: b, + Message: m.ProtoReflect(), + }) + if err != nil { + return out, err + } + out.n = n + out.initialized = o.Flags&piface.UnmarshalInitialized != 0 + return out, nil +} + +func makeMessageSliceFieldCoder(fd pref.FieldDescriptor, ft reflect.Type) pointerCoderFuncs { + if mi := getMessageInfo(ft); mi != nil { + funcs := pointerCoderFuncs{ + size: sizeMessageSliceInfo, + marshal: appendMessageSliceInfo, + unmarshal: consumeMessageSliceInfo, + merge: mergeMessageSlice, + } + if needsInitCheck(mi.Desc) { + funcs.isInit = isInitMessageSliceInfo + } + return funcs + } + return pointerCoderFuncs{ + size: func(p pointer, f *coderFieldInfo, opts marshalOptions) int { + return sizeMessageSlice(p, ft, f.tagsize, opts) + }, + marshal: func(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + return appendMessageSlice(b, p, f.wiretag, ft, opts) + }, + unmarshal: func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + return consumeMessageSlice(b, p, ft, wtyp, opts) + }, + isInit: func(p pointer, f *coderFieldInfo) error { + return isInitMessageSlice(p, ft) + }, + merge: mergeMessageSlice, + } +} + +func sizeMessageSliceInfo(p pointer, f *coderFieldInfo, opts marshalOptions) int { + s := p.PointerSlice() + n := 0 + for _, v := range s { + n += protowire.SizeBytes(f.mi.sizePointer(v, opts)) + f.tagsize + } + return n +} + +func appendMessageSliceInfo(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := p.PointerSlice() + var err error + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + siz := f.mi.sizePointer(v, opts) + b = protowire.AppendVarint(b, uint64(siz)) + b, err = f.mi.marshalAppendPointer(b, v, opts) + if err != nil { + return b, err + } + } + return b, nil +} + +func consumeMessageSliceInfo(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + m := reflect.New(f.mi.GoReflectType.Elem()).Interface() + mp := pointerOfIface(m) + o, err := f.mi.unmarshalPointer(v, mp, 0, opts) + if err != nil { + return out, err + } + p.AppendPointerSlice(mp) + out.n = n + out.initialized = o.initialized + return out, nil +} + +func isInitMessageSliceInfo(p pointer, f *coderFieldInfo) error { + s := p.PointerSlice() + for _, v := range s { + if err := f.mi.checkInitializedPointer(v); err != nil { + return err + } + } + return nil +} + +func sizeMessageSlice(p pointer, goType reflect.Type, tagsize int, _ marshalOptions) int { + s := p.PointerSlice() + n := 0 + for _, v := range s { + m := asMessage(v.AsValueOf(goType.Elem())) + n += protowire.SizeBytes(proto.Size(m)) + tagsize + } + return n +} + +func appendMessageSlice(b []byte, p pointer, wiretag uint64, goType reflect.Type, opts marshalOptions) ([]byte, error) { + s := p.PointerSlice() + var err error + for _, v := range s { + m := asMessage(v.AsValueOf(goType.Elem())) + b = protowire.AppendVarint(b, wiretag) + siz := proto.Size(m) + b = protowire.AppendVarint(b, uint64(siz)) + b, err = opts.Options().MarshalAppend(b, m) + if err != nil { + return b, err + } + } + return b, nil +} + +func consumeMessageSlice(b []byte, p pointer, goType reflect.Type, wtyp protowire.Type, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + mp := reflect.New(goType.Elem()) + o, err := opts.Options().UnmarshalState(piface.UnmarshalInput{ + Buf: v, + Message: asMessage(mp).ProtoReflect(), + }) + if err != nil { + return out, err + } + p.AppendPointerSlice(pointerOfValue(mp)) + out.n = n + out.initialized = o.Flags&piface.UnmarshalInitialized != 0 + return out, nil +} + +func isInitMessageSlice(p pointer, goType reflect.Type) error { + s := p.PointerSlice() + for _, v := range s { + m := asMessage(v.AsValueOf(goType.Elem())) + if err := proto.CheckInitialized(m); err != nil { + return err + } + } + return nil +} + +// Slices of messages + +func sizeMessageSliceValue(listv pref.Value, tagsize int, opts marshalOptions) int { + list := listv.List() + n := 0 + for i, llen := 0, list.Len(); i < llen; i++ { + m := list.Get(i).Message().Interface() + n += protowire.SizeBytes(proto.Size(m)) + tagsize + } + return n +} + +func appendMessageSliceValue(b []byte, listv pref.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + mopts := opts.Options() + for i, llen := 0, list.Len(); i < llen; i++ { + m := list.Get(i).Message().Interface() + b = protowire.AppendVarint(b, wiretag) + siz := proto.Size(m) + b = protowire.AppendVarint(b, uint64(siz)) + var err error + b, err = mopts.MarshalAppend(b, m) + if err != nil { + return b, err + } + } + return b, nil +} + +func consumeMessageSliceValue(b []byte, listv pref.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ pref.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp != protowire.BytesType { + return pref.Value{}, out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return pref.Value{}, out, protowire.ParseError(n) + } + m := list.NewElement() + o, err := opts.Options().UnmarshalState(piface.UnmarshalInput{ + Buf: v, + Message: m.Message(), + }) + if err != nil { + return pref.Value{}, out, err + } + list.Append(m) + out.n = n + out.initialized = o.Flags&piface.UnmarshalInitialized != 0 + return listv, out, nil +} + +func isInitMessageSliceValue(listv pref.Value) error { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + m := list.Get(i).Message().Interface() + if err := proto.CheckInitialized(m); err != nil { + return err + } + } + return nil +} + +var coderMessageSliceValue = valueCoderFuncs{ + size: sizeMessageSliceValue, + marshal: appendMessageSliceValue, + unmarshal: consumeMessageSliceValue, + isInit: isInitMessageSliceValue, + merge: mergeMessageListValue, +} + +func sizeGroupSliceValue(listv pref.Value, tagsize int, opts marshalOptions) int { + list := listv.List() + n := 0 + for i, llen := 0, list.Len(); i < llen; i++ { + m := list.Get(i).Message().Interface() + n += 2*tagsize + proto.Size(m) + } + return n +} + +func appendGroupSliceValue(b []byte, listv pref.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + mopts := opts.Options() + for i, llen := 0, list.Len(); i < llen; i++ { + m := list.Get(i).Message().Interface() + b = protowire.AppendVarint(b, wiretag) // start group + var err error + b, err = mopts.MarshalAppend(b, m) + if err != nil { + return b, err + } + b = protowire.AppendVarint(b, wiretag+1) // end group + } + return b, nil +} + +func consumeGroupSliceValue(b []byte, listv pref.Value, num protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ pref.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp != protowire.StartGroupType { + return pref.Value{}, out, errUnknown + } + b, n := protowire.ConsumeGroup(num, b) + if n < 0 { + return pref.Value{}, out, protowire.ParseError(n) + } + m := list.NewElement() + o, err := opts.Options().UnmarshalState(piface.UnmarshalInput{ + Buf: b, + Message: m.Message(), + }) + if err != nil { + return pref.Value{}, out, err + } + list.Append(m) + out.n = n + out.initialized = o.Flags&piface.UnmarshalInitialized != 0 + return listv, out, nil +} + +var coderGroupSliceValue = valueCoderFuncs{ + size: sizeGroupSliceValue, + marshal: appendGroupSliceValue, + unmarshal: consumeGroupSliceValue, + isInit: isInitMessageSliceValue, + merge: mergeMessageListValue, +} + +func makeGroupSliceFieldCoder(fd pref.FieldDescriptor, ft reflect.Type) pointerCoderFuncs { + num := fd.Number() + if mi := getMessageInfo(ft); mi != nil { + funcs := pointerCoderFuncs{ + size: sizeGroupSliceInfo, + marshal: appendGroupSliceInfo, + unmarshal: consumeGroupSliceInfo, + merge: mergeMessageSlice, + } + if needsInitCheck(mi.Desc) { + funcs.isInit = isInitMessageSliceInfo + } + return funcs + } + return pointerCoderFuncs{ + size: func(p pointer, f *coderFieldInfo, opts marshalOptions) int { + return sizeGroupSlice(p, ft, f.tagsize, opts) + }, + marshal: func(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + return appendGroupSlice(b, p, f.wiretag, ft, opts) + }, + unmarshal: func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + return consumeGroupSlice(b, p, num, wtyp, ft, opts) + }, + isInit: func(p pointer, f *coderFieldInfo) error { + return isInitMessageSlice(p, ft) + }, + merge: mergeMessageSlice, + } +} + +func sizeGroupSlice(p pointer, messageType reflect.Type, tagsize int, _ marshalOptions) int { + s := p.PointerSlice() + n := 0 + for _, v := range s { + m := asMessage(v.AsValueOf(messageType.Elem())) + n += 2*tagsize + proto.Size(m) + } + return n +} + +func appendGroupSlice(b []byte, p pointer, wiretag uint64, messageType reflect.Type, opts marshalOptions) ([]byte, error) { + s := p.PointerSlice() + var err error + for _, v := range s { + m := asMessage(v.AsValueOf(messageType.Elem())) + b = protowire.AppendVarint(b, wiretag) // start group + b, err = opts.Options().MarshalAppend(b, m) + if err != nil { + return b, err + } + b = protowire.AppendVarint(b, wiretag+1) // end group + } + return b, nil +} + +func consumeGroupSlice(b []byte, p pointer, num protowire.Number, wtyp protowire.Type, goType reflect.Type, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.StartGroupType { + return out, errUnknown + } + b, n := protowire.ConsumeGroup(num, b) + if n < 0 { + return out, protowire.ParseError(n) + } + mp := reflect.New(goType.Elem()) + o, err := opts.Options().UnmarshalState(piface.UnmarshalInput{ + Buf: b, + Message: asMessage(mp).ProtoReflect(), + }) + if err != nil { + return out, err + } + p.AppendPointerSlice(pointerOfValue(mp)) + out.n = n + out.initialized = o.Flags&piface.UnmarshalInitialized != 0 + return out, nil +} + +func sizeGroupSliceInfo(p pointer, f *coderFieldInfo, opts marshalOptions) int { + s := p.PointerSlice() + n := 0 + for _, v := range s { + n += 2*f.tagsize + f.mi.sizePointer(v, opts) + } + return n +} + +func appendGroupSliceInfo(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := p.PointerSlice() + var err error + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) // start group + b, err = f.mi.marshalAppendPointer(b, v, opts) + if err != nil { + return b, err + } + b = protowire.AppendVarint(b, f.wiretag+1) // end group + } + return b, nil +} + +func consumeGroupSliceInfo(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + if wtyp != protowire.StartGroupType { + return unmarshalOutput{}, errUnknown + } + m := reflect.New(f.mi.GoReflectType.Elem()).Interface() + mp := pointerOfIface(m) + out, err := f.mi.unmarshalPointer(b, mp, f.num, opts) + if err != nil { + return out, err + } + p.AppendPointerSlice(mp) + return out, nil +} + +func asMessage(v reflect.Value) pref.ProtoMessage { + if m, ok := v.Interface().(pref.ProtoMessage); ok { + return m + } + return legacyWrapMessage(v).Interface() +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_gen.go b/vendor/google.golang.org/protobuf/internal/impl/codec_gen.go new file mode 100644 index 000000000..ff198d0a1 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_gen.go @@ -0,0 +1,5637 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-types. DO NOT EDIT. + +package impl + +import ( + "math" + "unicode/utf8" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// sizeBool returns the size of wire encoding a bool pointer as a Bool. +func sizeBool(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Bool() + return f.tagsize + protowire.SizeVarint(protowire.EncodeBool(v)) +} + +// appendBool wire encodes a bool pointer as a Bool. +func appendBool(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Bool() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeBool(v)) + return b, nil +} + +// consumeBool wire decodes a bool pointer as a Bool. +func consumeBool(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + *p.Bool() = protowire.DecodeBool(v) + out.n = n + return out, nil +} + +var coderBool = pointerCoderFuncs{ + size: sizeBool, + marshal: appendBool, + unmarshal: consumeBool, + merge: mergeBool, +} + +// sizeBoolNoZero returns the size of wire encoding a bool pointer as a Bool. +// The zero value is not encoded. +func sizeBoolNoZero(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Bool() + if v == false { + return 0 + } + return f.tagsize + protowire.SizeVarint(protowire.EncodeBool(v)) +} + +// appendBoolNoZero wire encodes a bool pointer as a Bool. +// The zero value is not encoded. +func appendBoolNoZero(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Bool() + if v == false { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeBool(v)) + return b, nil +} + +var coderBoolNoZero = pointerCoderFuncs{ + size: sizeBoolNoZero, + marshal: appendBoolNoZero, + unmarshal: consumeBool, + merge: mergeBoolNoZero, +} + +// sizeBoolPtr returns the size of wire encoding a *bool pointer as a Bool. +// It panics if the pointer is nil. +func sizeBoolPtr(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := **p.BoolPtr() + return f.tagsize + protowire.SizeVarint(protowire.EncodeBool(v)) +} + +// appendBoolPtr wire encodes a *bool pointer as a Bool. +// It panics if the pointer is nil. +func appendBoolPtr(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := **p.BoolPtr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeBool(v)) + return b, nil +} + +// consumeBoolPtr wire decodes a *bool pointer as a Bool. +func consumeBoolPtr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + vp := p.BoolPtr() + if *vp == nil { + *vp = new(bool) + } + **vp = protowire.DecodeBool(v) + out.n = n + return out, nil +} + +var coderBoolPtr = pointerCoderFuncs{ + size: sizeBoolPtr, + marshal: appendBoolPtr, + unmarshal: consumeBoolPtr, + merge: mergeBoolPtr, +} + +// sizeBoolSlice returns the size of wire encoding a []bool pointer as a repeated Bool. +func sizeBoolSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.BoolSlice() + for _, v := range s { + size += f.tagsize + protowire.SizeVarint(protowire.EncodeBool(v)) + } + return size +} + +// appendBoolSlice encodes a []bool pointer as a repeated Bool. +func appendBoolSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.BoolSlice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeBool(v)) + } + return b, nil +} + +// consumeBoolSlice wire decodes a []bool pointer as a repeated Bool. +func consumeBoolSlice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.BoolSlice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + s = append(s, protowire.DecodeBool(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + *sp = append(*sp, protowire.DecodeBool(v)) + out.n = n + return out, nil +} + +var coderBoolSlice = pointerCoderFuncs{ + size: sizeBoolSlice, + marshal: appendBoolSlice, + unmarshal: consumeBoolSlice, + merge: mergeBoolSlice, +} + +// sizeBoolPackedSlice returns the size of wire encoding a []bool pointer as a packed repeated Bool. +func sizeBoolPackedSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.BoolSlice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += protowire.SizeVarint(protowire.EncodeBool(v)) + } + return f.tagsize + protowire.SizeBytes(n) +} + +// appendBoolPackedSlice encodes a []bool pointer as a packed repeated Bool. +func appendBoolPackedSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.BoolSlice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := 0 + for _, v := range s { + n += protowire.SizeVarint(protowire.EncodeBool(v)) + } + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendVarint(b, protowire.EncodeBool(v)) + } + return b, nil +} + +var coderBoolPackedSlice = pointerCoderFuncs{ + size: sizeBoolPackedSlice, + marshal: appendBoolPackedSlice, + unmarshal: consumeBoolSlice, + merge: mergeBoolSlice, +} + +// sizeBoolValue returns the size of wire encoding a bool value as a Bool. +func sizeBoolValue(v protoreflect.Value, tagsize int, _ marshalOptions) int { + return tagsize + protowire.SizeVarint(protowire.EncodeBool(v.Bool())) +} + +// appendBoolValue encodes a bool value as a Bool. +func appendBoolValue(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, protowire.EncodeBool(v.Bool())) + return b, nil +} + +// consumeBoolValue decodes a bool value as a Bool. +func consumeBoolValue(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + out.n = n + return protoreflect.ValueOfBool(protowire.DecodeBool(v)), out, nil +} + +var coderBoolValue = valueCoderFuncs{ + size: sizeBoolValue, + marshal: appendBoolValue, + unmarshal: consumeBoolValue, + merge: mergeScalarValue, +} + +// sizeBoolSliceValue returns the size of wire encoding a []bool value as a repeated Bool. +func sizeBoolSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeVarint(protowire.EncodeBool(v.Bool())) + } + return size +} + +// appendBoolSliceValue encodes a []bool value as a repeated Bool. +func appendBoolSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, protowire.EncodeBool(v.Bool())) + } + return b, nil +} + +// consumeBoolSliceValue wire decodes a []bool value as a repeated Bool. +func consumeBoolSliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfBool(protowire.DecodeBool(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfBool(protowire.DecodeBool(v))) + out.n = n + return listv, out, nil +} + +var coderBoolSliceValue = valueCoderFuncs{ + size: sizeBoolSliceValue, + marshal: appendBoolSliceValue, + unmarshal: consumeBoolSliceValue, + merge: mergeListValue, +} + +// sizeBoolPackedSliceValue returns the size of wire encoding a []bool value as a packed repeated Bool. +func sizeBoolPackedSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := 0 + for i, llen := 0, llen; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(protowire.EncodeBool(v.Bool())) + } + return tagsize + protowire.SizeBytes(n) +} + +// appendBoolPackedSliceValue encodes a []bool value as a packed repeated Bool. +func appendBoolPackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := 0 + for i := 0; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(protowire.EncodeBool(v.Bool())) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, protowire.EncodeBool(v.Bool())) + } + return b, nil +} + +var coderBoolPackedSliceValue = valueCoderFuncs{ + size: sizeBoolPackedSliceValue, + marshal: appendBoolPackedSliceValue, + unmarshal: consumeBoolSliceValue, + merge: mergeListValue, +} + +// sizeEnumValue returns the size of wire encoding a value as a Enum. +func sizeEnumValue(v protoreflect.Value, tagsize int, _ marshalOptions) int { + return tagsize + protowire.SizeVarint(uint64(v.Enum())) +} + +// appendEnumValue encodes a value as a Enum. +func appendEnumValue(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(v.Enum())) + return b, nil +} + +// consumeEnumValue decodes a value as a Enum. +func consumeEnumValue(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + out.n = n + return protoreflect.ValueOfEnum(protoreflect.EnumNumber(v)), out, nil +} + +var coderEnumValue = valueCoderFuncs{ + size: sizeEnumValue, + marshal: appendEnumValue, + unmarshal: consumeEnumValue, + merge: mergeScalarValue, +} + +// sizeEnumSliceValue returns the size of wire encoding a [] value as a repeated Enum. +func sizeEnumSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeVarint(uint64(v.Enum())) + } + return size +} + +// appendEnumSliceValue encodes a [] value as a repeated Enum. +func appendEnumSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(v.Enum())) + } + return b, nil +} + +// consumeEnumSliceValue wire decodes a [] value as a repeated Enum. +func consumeEnumSliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfEnum(protoreflect.EnumNumber(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfEnum(protoreflect.EnumNumber(v))) + out.n = n + return listv, out, nil +} + +var coderEnumSliceValue = valueCoderFuncs{ + size: sizeEnumSliceValue, + marshal: appendEnumSliceValue, + unmarshal: consumeEnumSliceValue, + merge: mergeListValue, +} + +// sizeEnumPackedSliceValue returns the size of wire encoding a [] value as a packed repeated Enum. +func sizeEnumPackedSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := 0 + for i, llen := 0, llen; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(uint64(v.Enum())) + } + return tagsize + protowire.SizeBytes(n) +} + +// appendEnumPackedSliceValue encodes a [] value as a packed repeated Enum. +func appendEnumPackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := 0 + for i := 0; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(uint64(v.Enum())) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, uint64(v.Enum())) + } + return b, nil +} + +var coderEnumPackedSliceValue = valueCoderFuncs{ + size: sizeEnumPackedSliceValue, + marshal: appendEnumPackedSliceValue, + unmarshal: consumeEnumSliceValue, + merge: mergeListValue, +} + +// sizeInt32 returns the size of wire encoding a int32 pointer as a Int32. +func sizeInt32(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Int32() + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendInt32 wire encodes a int32 pointer as a Int32. +func appendInt32(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Int32() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +// consumeInt32 wire decodes a int32 pointer as a Int32. +func consumeInt32(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + *p.Int32() = int32(v) + out.n = n + return out, nil +} + +var coderInt32 = pointerCoderFuncs{ + size: sizeInt32, + marshal: appendInt32, + unmarshal: consumeInt32, + merge: mergeInt32, +} + +// sizeInt32NoZero returns the size of wire encoding a int32 pointer as a Int32. +// The zero value is not encoded. +func sizeInt32NoZero(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Int32() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendInt32NoZero wire encodes a int32 pointer as a Int32. +// The zero value is not encoded. +func appendInt32NoZero(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Int32() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +var coderInt32NoZero = pointerCoderFuncs{ + size: sizeInt32NoZero, + marshal: appendInt32NoZero, + unmarshal: consumeInt32, + merge: mergeInt32NoZero, +} + +// sizeInt32Ptr returns the size of wire encoding a *int32 pointer as a Int32. +// It panics if the pointer is nil. +func sizeInt32Ptr(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := **p.Int32Ptr() + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendInt32Ptr wire encodes a *int32 pointer as a Int32. +// It panics if the pointer is nil. +func appendInt32Ptr(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := **p.Int32Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +// consumeInt32Ptr wire decodes a *int32 pointer as a Int32. +func consumeInt32Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + vp := p.Int32Ptr() + if *vp == nil { + *vp = new(int32) + } + **vp = int32(v) + out.n = n + return out, nil +} + +var coderInt32Ptr = pointerCoderFuncs{ + size: sizeInt32Ptr, + marshal: appendInt32Ptr, + unmarshal: consumeInt32Ptr, + merge: mergeInt32Ptr, +} + +// sizeInt32Slice returns the size of wire encoding a []int32 pointer as a repeated Int32. +func sizeInt32Slice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Int32Slice() + for _, v := range s { + size += f.tagsize + protowire.SizeVarint(uint64(v)) + } + return size +} + +// appendInt32Slice encodes a []int32 pointer as a repeated Int32. +func appendInt32Slice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Int32Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + } + return b, nil +} + +// consumeInt32Slice wire decodes a []int32 pointer as a repeated Int32. +func consumeInt32Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Int32Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + s = append(s, int32(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + *sp = append(*sp, int32(v)) + out.n = n + return out, nil +} + +var coderInt32Slice = pointerCoderFuncs{ + size: sizeInt32Slice, + marshal: appendInt32Slice, + unmarshal: consumeInt32Slice, + merge: mergeInt32Slice, +} + +// sizeInt32PackedSlice returns the size of wire encoding a []int32 pointer as a packed repeated Int32. +func sizeInt32PackedSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Int32Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += protowire.SizeVarint(uint64(v)) + } + return f.tagsize + protowire.SizeBytes(n) +} + +// appendInt32PackedSlice encodes a []int32 pointer as a packed repeated Int32. +func appendInt32PackedSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Int32Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := 0 + for _, v := range s { + n += protowire.SizeVarint(uint64(v)) + } + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendVarint(b, uint64(v)) + } + return b, nil +} + +var coderInt32PackedSlice = pointerCoderFuncs{ + size: sizeInt32PackedSlice, + marshal: appendInt32PackedSlice, + unmarshal: consumeInt32Slice, + merge: mergeInt32Slice, +} + +// sizeInt32Value returns the size of wire encoding a int32 value as a Int32. +func sizeInt32Value(v protoreflect.Value, tagsize int, _ marshalOptions) int { + return tagsize + protowire.SizeVarint(uint64(int32(v.Int()))) +} + +// appendInt32Value encodes a int32 value as a Int32. +func appendInt32Value(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(int32(v.Int()))) + return b, nil +} + +// consumeInt32Value decodes a int32 value as a Int32. +func consumeInt32Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + out.n = n + return protoreflect.ValueOfInt32(int32(v)), out, nil +} + +var coderInt32Value = valueCoderFuncs{ + size: sizeInt32Value, + marshal: appendInt32Value, + unmarshal: consumeInt32Value, + merge: mergeScalarValue, +} + +// sizeInt32SliceValue returns the size of wire encoding a []int32 value as a repeated Int32. +func sizeInt32SliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeVarint(uint64(int32(v.Int()))) + } + return size +} + +// appendInt32SliceValue encodes a []int32 value as a repeated Int32. +func appendInt32SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(int32(v.Int()))) + } + return b, nil +} + +// consumeInt32SliceValue wire decodes a []int32 value as a repeated Int32. +func consumeInt32SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt32(int32(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt32(int32(v))) + out.n = n + return listv, out, nil +} + +var coderInt32SliceValue = valueCoderFuncs{ + size: sizeInt32SliceValue, + marshal: appendInt32SliceValue, + unmarshal: consumeInt32SliceValue, + merge: mergeListValue, +} + +// sizeInt32PackedSliceValue returns the size of wire encoding a []int32 value as a packed repeated Int32. +func sizeInt32PackedSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := 0 + for i, llen := 0, llen; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(uint64(int32(v.Int()))) + } + return tagsize + protowire.SizeBytes(n) +} + +// appendInt32PackedSliceValue encodes a []int32 value as a packed repeated Int32. +func appendInt32PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := 0 + for i := 0; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(uint64(int32(v.Int()))) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, uint64(int32(v.Int()))) + } + return b, nil +} + +var coderInt32PackedSliceValue = valueCoderFuncs{ + size: sizeInt32PackedSliceValue, + marshal: appendInt32PackedSliceValue, + unmarshal: consumeInt32SliceValue, + merge: mergeListValue, +} + +// sizeSint32 returns the size of wire encoding a int32 pointer as a Sint32. +func sizeSint32(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Int32() + return f.tagsize + protowire.SizeVarint(protowire.EncodeZigZag(int64(v))) +} + +// appendSint32 wire encodes a int32 pointer as a Sint32. +func appendSint32(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Int32() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(v))) + return b, nil +} + +// consumeSint32 wire decodes a int32 pointer as a Sint32. +func consumeSint32(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + *p.Int32() = int32(protowire.DecodeZigZag(v & math.MaxUint32)) + out.n = n + return out, nil +} + +var coderSint32 = pointerCoderFuncs{ + size: sizeSint32, + marshal: appendSint32, + unmarshal: consumeSint32, + merge: mergeInt32, +} + +// sizeSint32NoZero returns the size of wire encoding a int32 pointer as a Sint32. +// The zero value is not encoded. +func sizeSint32NoZero(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Int32() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeVarint(protowire.EncodeZigZag(int64(v))) +} + +// appendSint32NoZero wire encodes a int32 pointer as a Sint32. +// The zero value is not encoded. +func appendSint32NoZero(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Int32() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(v))) + return b, nil +} + +var coderSint32NoZero = pointerCoderFuncs{ + size: sizeSint32NoZero, + marshal: appendSint32NoZero, + unmarshal: consumeSint32, + merge: mergeInt32NoZero, +} + +// sizeSint32Ptr returns the size of wire encoding a *int32 pointer as a Sint32. +// It panics if the pointer is nil. +func sizeSint32Ptr(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := **p.Int32Ptr() + return f.tagsize + protowire.SizeVarint(protowire.EncodeZigZag(int64(v))) +} + +// appendSint32Ptr wire encodes a *int32 pointer as a Sint32. +// It panics if the pointer is nil. +func appendSint32Ptr(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := **p.Int32Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(v))) + return b, nil +} + +// consumeSint32Ptr wire decodes a *int32 pointer as a Sint32. +func consumeSint32Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + vp := p.Int32Ptr() + if *vp == nil { + *vp = new(int32) + } + **vp = int32(protowire.DecodeZigZag(v & math.MaxUint32)) + out.n = n + return out, nil +} + +var coderSint32Ptr = pointerCoderFuncs{ + size: sizeSint32Ptr, + marshal: appendSint32Ptr, + unmarshal: consumeSint32Ptr, + merge: mergeInt32Ptr, +} + +// sizeSint32Slice returns the size of wire encoding a []int32 pointer as a repeated Sint32. +func sizeSint32Slice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Int32Slice() + for _, v := range s { + size += f.tagsize + protowire.SizeVarint(protowire.EncodeZigZag(int64(v))) + } + return size +} + +// appendSint32Slice encodes a []int32 pointer as a repeated Sint32. +func appendSint32Slice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Int32Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(v))) + } + return b, nil +} + +// consumeSint32Slice wire decodes a []int32 pointer as a repeated Sint32. +func consumeSint32Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Int32Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + s = append(s, int32(protowire.DecodeZigZag(v&math.MaxUint32))) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + *sp = append(*sp, int32(protowire.DecodeZigZag(v&math.MaxUint32))) + out.n = n + return out, nil +} + +var coderSint32Slice = pointerCoderFuncs{ + size: sizeSint32Slice, + marshal: appendSint32Slice, + unmarshal: consumeSint32Slice, + merge: mergeInt32Slice, +} + +// sizeSint32PackedSlice returns the size of wire encoding a []int32 pointer as a packed repeated Sint32. +func sizeSint32PackedSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Int32Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += protowire.SizeVarint(protowire.EncodeZigZag(int64(v))) + } + return f.tagsize + protowire.SizeBytes(n) +} + +// appendSint32PackedSlice encodes a []int32 pointer as a packed repeated Sint32. +func appendSint32PackedSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Int32Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := 0 + for _, v := range s { + n += protowire.SizeVarint(protowire.EncodeZigZag(int64(v))) + } + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(v))) + } + return b, nil +} + +var coderSint32PackedSlice = pointerCoderFuncs{ + size: sizeSint32PackedSlice, + marshal: appendSint32PackedSlice, + unmarshal: consumeSint32Slice, + merge: mergeInt32Slice, +} + +// sizeSint32Value returns the size of wire encoding a int32 value as a Sint32. +func sizeSint32Value(v protoreflect.Value, tagsize int, _ marshalOptions) int { + return tagsize + protowire.SizeVarint(protowire.EncodeZigZag(int64(int32(v.Int())))) +} + +// appendSint32Value encodes a int32 value as a Sint32. +func appendSint32Value(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(int32(v.Int())))) + return b, nil +} + +// consumeSint32Value decodes a int32 value as a Sint32. +func consumeSint32Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + out.n = n + return protoreflect.ValueOfInt32(int32(protowire.DecodeZigZag(v & math.MaxUint32))), out, nil +} + +var coderSint32Value = valueCoderFuncs{ + size: sizeSint32Value, + marshal: appendSint32Value, + unmarshal: consumeSint32Value, + merge: mergeScalarValue, +} + +// sizeSint32SliceValue returns the size of wire encoding a []int32 value as a repeated Sint32. +func sizeSint32SliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeVarint(protowire.EncodeZigZag(int64(int32(v.Int())))) + } + return size +} + +// appendSint32SliceValue encodes a []int32 value as a repeated Sint32. +func appendSint32SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(int32(v.Int())))) + } + return b, nil +} + +// consumeSint32SliceValue wire decodes a []int32 value as a repeated Sint32. +func consumeSint32SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt32(int32(protowire.DecodeZigZag(v & math.MaxUint32)))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt32(int32(protowire.DecodeZigZag(v & math.MaxUint32)))) + out.n = n + return listv, out, nil +} + +var coderSint32SliceValue = valueCoderFuncs{ + size: sizeSint32SliceValue, + marshal: appendSint32SliceValue, + unmarshal: consumeSint32SliceValue, + merge: mergeListValue, +} + +// sizeSint32PackedSliceValue returns the size of wire encoding a []int32 value as a packed repeated Sint32. +func sizeSint32PackedSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := 0 + for i, llen := 0, llen; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(protowire.EncodeZigZag(int64(int32(v.Int())))) + } + return tagsize + protowire.SizeBytes(n) +} + +// appendSint32PackedSliceValue encodes a []int32 value as a packed repeated Sint32. +func appendSint32PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := 0 + for i := 0; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(protowire.EncodeZigZag(int64(int32(v.Int())))) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(int32(v.Int())))) + } + return b, nil +} + +var coderSint32PackedSliceValue = valueCoderFuncs{ + size: sizeSint32PackedSliceValue, + marshal: appendSint32PackedSliceValue, + unmarshal: consumeSint32SliceValue, + merge: mergeListValue, +} + +// sizeUint32 returns the size of wire encoding a uint32 pointer as a Uint32. +func sizeUint32(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Uint32() + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendUint32 wire encodes a uint32 pointer as a Uint32. +func appendUint32(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Uint32() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +// consumeUint32 wire decodes a uint32 pointer as a Uint32. +func consumeUint32(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + *p.Uint32() = uint32(v) + out.n = n + return out, nil +} + +var coderUint32 = pointerCoderFuncs{ + size: sizeUint32, + marshal: appendUint32, + unmarshal: consumeUint32, + merge: mergeUint32, +} + +// sizeUint32NoZero returns the size of wire encoding a uint32 pointer as a Uint32. +// The zero value is not encoded. +func sizeUint32NoZero(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Uint32() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendUint32NoZero wire encodes a uint32 pointer as a Uint32. +// The zero value is not encoded. +func appendUint32NoZero(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Uint32() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +var coderUint32NoZero = pointerCoderFuncs{ + size: sizeUint32NoZero, + marshal: appendUint32NoZero, + unmarshal: consumeUint32, + merge: mergeUint32NoZero, +} + +// sizeUint32Ptr returns the size of wire encoding a *uint32 pointer as a Uint32. +// It panics if the pointer is nil. +func sizeUint32Ptr(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := **p.Uint32Ptr() + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendUint32Ptr wire encodes a *uint32 pointer as a Uint32. +// It panics if the pointer is nil. +func appendUint32Ptr(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := **p.Uint32Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +// consumeUint32Ptr wire decodes a *uint32 pointer as a Uint32. +func consumeUint32Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + vp := p.Uint32Ptr() + if *vp == nil { + *vp = new(uint32) + } + **vp = uint32(v) + out.n = n + return out, nil +} + +var coderUint32Ptr = pointerCoderFuncs{ + size: sizeUint32Ptr, + marshal: appendUint32Ptr, + unmarshal: consumeUint32Ptr, + merge: mergeUint32Ptr, +} + +// sizeUint32Slice returns the size of wire encoding a []uint32 pointer as a repeated Uint32. +func sizeUint32Slice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Uint32Slice() + for _, v := range s { + size += f.tagsize + protowire.SizeVarint(uint64(v)) + } + return size +} + +// appendUint32Slice encodes a []uint32 pointer as a repeated Uint32. +func appendUint32Slice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Uint32Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + } + return b, nil +} + +// consumeUint32Slice wire decodes a []uint32 pointer as a repeated Uint32. +func consumeUint32Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Uint32Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + s = append(s, uint32(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + *sp = append(*sp, uint32(v)) + out.n = n + return out, nil +} + +var coderUint32Slice = pointerCoderFuncs{ + size: sizeUint32Slice, + marshal: appendUint32Slice, + unmarshal: consumeUint32Slice, + merge: mergeUint32Slice, +} + +// sizeUint32PackedSlice returns the size of wire encoding a []uint32 pointer as a packed repeated Uint32. +func sizeUint32PackedSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Uint32Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += protowire.SizeVarint(uint64(v)) + } + return f.tagsize + protowire.SizeBytes(n) +} + +// appendUint32PackedSlice encodes a []uint32 pointer as a packed repeated Uint32. +func appendUint32PackedSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Uint32Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := 0 + for _, v := range s { + n += protowire.SizeVarint(uint64(v)) + } + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendVarint(b, uint64(v)) + } + return b, nil +} + +var coderUint32PackedSlice = pointerCoderFuncs{ + size: sizeUint32PackedSlice, + marshal: appendUint32PackedSlice, + unmarshal: consumeUint32Slice, + merge: mergeUint32Slice, +} + +// sizeUint32Value returns the size of wire encoding a uint32 value as a Uint32. +func sizeUint32Value(v protoreflect.Value, tagsize int, _ marshalOptions) int { + return tagsize + protowire.SizeVarint(uint64(uint32(v.Uint()))) +} + +// appendUint32Value encodes a uint32 value as a Uint32. +func appendUint32Value(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(uint32(v.Uint()))) + return b, nil +} + +// consumeUint32Value decodes a uint32 value as a Uint32. +func consumeUint32Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + out.n = n + return protoreflect.ValueOfUint32(uint32(v)), out, nil +} + +var coderUint32Value = valueCoderFuncs{ + size: sizeUint32Value, + marshal: appendUint32Value, + unmarshal: consumeUint32Value, + merge: mergeScalarValue, +} + +// sizeUint32SliceValue returns the size of wire encoding a []uint32 value as a repeated Uint32. +func sizeUint32SliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeVarint(uint64(uint32(v.Uint()))) + } + return size +} + +// appendUint32SliceValue encodes a []uint32 value as a repeated Uint32. +func appendUint32SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(uint32(v.Uint()))) + } + return b, nil +} + +// consumeUint32SliceValue wire decodes a []uint32 value as a repeated Uint32. +func consumeUint32SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfUint32(uint32(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfUint32(uint32(v))) + out.n = n + return listv, out, nil +} + +var coderUint32SliceValue = valueCoderFuncs{ + size: sizeUint32SliceValue, + marshal: appendUint32SliceValue, + unmarshal: consumeUint32SliceValue, + merge: mergeListValue, +} + +// sizeUint32PackedSliceValue returns the size of wire encoding a []uint32 value as a packed repeated Uint32. +func sizeUint32PackedSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := 0 + for i, llen := 0, llen; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(uint64(uint32(v.Uint()))) + } + return tagsize + protowire.SizeBytes(n) +} + +// appendUint32PackedSliceValue encodes a []uint32 value as a packed repeated Uint32. +func appendUint32PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := 0 + for i := 0; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(uint64(uint32(v.Uint()))) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, uint64(uint32(v.Uint()))) + } + return b, nil +} + +var coderUint32PackedSliceValue = valueCoderFuncs{ + size: sizeUint32PackedSliceValue, + marshal: appendUint32PackedSliceValue, + unmarshal: consumeUint32SliceValue, + merge: mergeListValue, +} + +// sizeInt64 returns the size of wire encoding a int64 pointer as a Int64. +func sizeInt64(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Int64() + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendInt64 wire encodes a int64 pointer as a Int64. +func appendInt64(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Int64() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +// consumeInt64 wire decodes a int64 pointer as a Int64. +func consumeInt64(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + *p.Int64() = int64(v) + out.n = n + return out, nil +} + +var coderInt64 = pointerCoderFuncs{ + size: sizeInt64, + marshal: appendInt64, + unmarshal: consumeInt64, + merge: mergeInt64, +} + +// sizeInt64NoZero returns the size of wire encoding a int64 pointer as a Int64. +// The zero value is not encoded. +func sizeInt64NoZero(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Int64() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendInt64NoZero wire encodes a int64 pointer as a Int64. +// The zero value is not encoded. +func appendInt64NoZero(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Int64() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +var coderInt64NoZero = pointerCoderFuncs{ + size: sizeInt64NoZero, + marshal: appendInt64NoZero, + unmarshal: consumeInt64, + merge: mergeInt64NoZero, +} + +// sizeInt64Ptr returns the size of wire encoding a *int64 pointer as a Int64. +// It panics if the pointer is nil. +func sizeInt64Ptr(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := **p.Int64Ptr() + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendInt64Ptr wire encodes a *int64 pointer as a Int64. +// It panics if the pointer is nil. +func appendInt64Ptr(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := **p.Int64Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +// consumeInt64Ptr wire decodes a *int64 pointer as a Int64. +func consumeInt64Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + vp := p.Int64Ptr() + if *vp == nil { + *vp = new(int64) + } + **vp = int64(v) + out.n = n + return out, nil +} + +var coderInt64Ptr = pointerCoderFuncs{ + size: sizeInt64Ptr, + marshal: appendInt64Ptr, + unmarshal: consumeInt64Ptr, + merge: mergeInt64Ptr, +} + +// sizeInt64Slice returns the size of wire encoding a []int64 pointer as a repeated Int64. +func sizeInt64Slice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Int64Slice() + for _, v := range s { + size += f.tagsize + protowire.SizeVarint(uint64(v)) + } + return size +} + +// appendInt64Slice encodes a []int64 pointer as a repeated Int64. +func appendInt64Slice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Int64Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + } + return b, nil +} + +// consumeInt64Slice wire decodes a []int64 pointer as a repeated Int64. +func consumeInt64Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Int64Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + s = append(s, int64(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + *sp = append(*sp, int64(v)) + out.n = n + return out, nil +} + +var coderInt64Slice = pointerCoderFuncs{ + size: sizeInt64Slice, + marshal: appendInt64Slice, + unmarshal: consumeInt64Slice, + merge: mergeInt64Slice, +} + +// sizeInt64PackedSlice returns the size of wire encoding a []int64 pointer as a packed repeated Int64. +func sizeInt64PackedSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Int64Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += protowire.SizeVarint(uint64(v)) + } + return f.tagsize + protowire.SizeBytes(n) +} + +// appendInt64PackedSlice encodes a []int64 pointer as a packed repeated Int64. +func appendInt64PackedSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Int64Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := 0 + for _, v := range s { + n += protowire.SizeVarint(uint64(v)) + } + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendVarint(b, uint64(v)) + } + return b, nil +} + +var coderInt64PackedSlice = pointerCoderFuncs{ + size: sizeInt64PackedSlice, + marshal: appendInt64PackedSlice, + unmarshal: consumeInt64Slice, + merge: mergeInt64Slice, +} + +// sizeInt64Value returns the size of wire encoding a int64 value as a Int64. +func sizeInt64Value(v protoreflect.Value, tagsize int, _ marshalOptions) int { + return tagsize + protowire.SizeVarint(uint64(v.Int())) +} + +// appendInt64Value encodes a int64 value as a Int64. +func appendInt64Value(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(v.Int())) + return b, nil +} + +// consumeInt64Value decodes a int64 value as a Int64. +func consumeInt64Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + out.n = n + return protoreflect.ValueOfInt64(int64(v)), out, nil +} + +var coderInt64Value = valueCoderFuncs{ + size: sizeInt64Value, + marshal: appendInt64Value, + unmarshal: consumeInt64Value, + merge: mergeScalarValue, +} + +// sizeInt64SliceValue returns the size of wire encoding a []int64 value as a repeated Int64. +func sizeInt64SliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeVarint(uint64(v.Int())) + } + return size +} + +// appendInt64SliceValue encodes a []int64 value as a repeated Int64. +func appendInt64SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(v.Int())) + } + return b, nil +} + +// consumeInt64SliceValue wire decodes a []int64 value as a repeated Int64. +func consumeInt64SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt64(int64(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt64(int64(v))) + out.n = n + return listv, out, nil +} + +var coderInt64SliceValue = valueCoderFuncs{ + size: sizeInt64SliceValue, + marshal: appendInt64SliceValue, + unmarshal: consumeInt64SliceValue, + merge: mergeListValue, +} + +// sizeInt64PackedSliceValue returns the size of wire encoding a []int64 value as a packed repeated Int64. +func sizeInt64PackedSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := 0 + for i, llen := 0, llen; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(uint64(v.Int())) + } + return tagsize + protowire.SizeBytes(n) +} + +// appendInt64PackedSliceValue encodes a []int64 value as a packed repeated Int64. +func appendInt64PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := 0 + for i := 0; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(uint64(v.Int())) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, uint64(v.Int())) + } + return b, nil +} + +var coderInt64PackedSliceValue = valueCoderFuncs{ + size: sizeInt64PackedSliceValue, + marshal: appendInt64PackedSliceValue, + unmarshal: consumeInt64SliceValue, + merge: mergeListValue, +} + +// sizeSint64 returns the size of wire encoding a int64 pointer as a Sint64. +func sizeSint64(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Int64() + return f.tagsize + protowire.SizeVarint(protowire.EncodeZigZag(v)) +} + +// appendSint64 wire encodes a int64 pointer as a Sint64. +func appendSint64(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Int64() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v)) + return b, nil +} + +// consumeSint64 wire decodes a int64 pointer as a Sint64. +func consumeSint64(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + *p.Int64() = protowire.DecodeZigZag(v) + out.n = n + return out, nil +} + +var coderSint64 = pointerCoderFuncs{ + size: sizeSint64, + marshal: appendSint64, + unmarshal: consumeSint64, + merge: mergeInt64, +} + +// sizeSint64NoZero returns the size of wire encoding a int64 pointer as a Sint64. +// The zero value is not encoded. +func sizeSint64NoZero(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Int64() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeVarint(protowire.EncodeZigZag(v)) +} + +// appendSint64NoZero wire encodes a int64 pointer as a Sint64. +// The zero value is not encoded. +func appendSint64NoZero(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Int64() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v)) + return b, nil +} + +var coderSint64NoZero = pointerCoderFuncs{ + size: sizeSint64NoZero, + marshal: appendSint64NoZero, + unmarshal: consumeSint64, + merge: mergeInt64NoZero, +} + +// sizeSint64Ptr returns the size of wire encoding a *int64 pointer as a Sint64. +// It panics if the pointer is nil. +func sizeSint64Ptr(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := **p.Int64Ptr() + return f.tagsize + protowire.SizeVarint(protowire.EncodeZigZag(v)) +} + +// appendSint64Ptr wire encodes a *int64 pointer as a Sint64. +// It panics if the pointer is nil. +func appendSint64Ptr(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := **p.Int64Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v)) + return b, nil +} + +// consumeSint64Ptr wire decodes a *int64 pointer as a Sint64. +func consumeSint64Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + vp := p.Int64Ptr() + if *vp == nil { + *vp = new(int64) + } + **vp = protowire.DecodeZigZag(v) + out.n = n + return out, nil +} + +var coderSint64Ptr = pointerCoderFuncs{ + size: sizeSint64Ptr, + marshal: appendSint64Ptr, + unmarshal: consumeSint64Ptr, + merge: mergeInt64Ptr, +} + +// sizeSint64Slice returns the size of wire encoding a []int64 pointer as a repeated Sint64. +func sizeSint64Slice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Int64Slice() + for _, v := range s { + size += f.tagsize + protowire.SizeVarint(protowire.EncodeZigZag(v)) + } + return size +} + +// appendSint64Slice encodes a []int64 pointer as a repeated Sint64. +func appendSint64Slice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Int64Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v)) + } + return b, nil +} + +// consumeSint64Slice wire decodes a []int64 pointer as a repeated Sint64. +func consumeSint64Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Int64Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + s = append(s, protowire.DecodeZigZag(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + *sp = append(*sp, protowire.DecodeZigZag(v)) + out.n = n + return out, nil +} + +var coderSint64Slice = pointerCoderFuncs{ + size: sizeSint64Slice, + marshal: appendSint64Slice, + unmarshal: consumeSint64Slice, + merge: mergeInt64Slice, +} + +// sizeSint64PackedSlice returns the size of wire encoding a []int64 pointer as a packed repeated Sint64. +func sizeSint64PackedSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Int64Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += protowire.SizeVarint(protowire.EncodeZigZag(v)) + } + return f.tagsize + protowire.SizeBytes(n) +} + +// appendSint64PackedSlice encodes a []int64 pointer as a packed repeated Sint64. +func appendSint64PackedSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Int64Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := 0 + for _, v := range s { + n += protowire.SizeVarint(protowire.EncodeZigZag(v)) + } + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v)) + } + return b, nil +} + +var coderSint64PackedSlice = pointerCoderFuncs{ + size: sizeSint64PackedSlice, + marshal: appendSint64PackedSlice, + unmarshal: consumeSint64Slice, + merge: mergeInt64Slice, +} + +// sizeSint64Value returns the size of wire encoding a int64 value as a Sint64. +func sizeSint64Value(v protoreflect.Value, tagsize int, _ marshalOptions) int { + return tagsize + protowire.SizeVarint(protowire.EncodeZigZag(v.Int())) +} + +// appendSint64Value encodes a int64 value as a Sint64. +func appendSint64Value(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v.Int())) + return b, nil +} + +// consumeSint64Value decodes a int64 value as a Sint64. +func consumeSint64Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + out.n = n + return protoreflect.ValueOfInt64(protowire.DecodeZigZag(v)), out, nil +} + +var coderSint64Value = valueCoderFuncs{ + size: sizeSint64Value, + marshal: appendSint64Value, + unmarshal: consumeSint64Value, + merge: mergeScalarValue, +} + +// sizeSint64SliceValue returns the size of wire encoding a []int64 value as a repeated Sint64. +func sizeSint64SliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeVarint(protowire.EncodeZigZag(v.Int())) + } + return size +} + +// appendSint64SliceValue encodes a []int64 value as a repeated Sint64. +func appendSint64SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v.Int())) + } + return b, nil +} + +// consumeSint64SliceValue wire decodes a []int64 value as a repeated Sint64. +func consumeSint64SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt64(protowire.DecodeZigZag(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt64(protowire.DecodeZigZag(v))) + out.n = n + return listv, out, nil +} + +var coderSint64SliceValue = valueCoderFuncs{ + size: sizeSint64SliceValue, + marshal: appendSint64SliceValue, + unmarshal: consumeSint64SliceValue, + merge: mergeListValue, +} + +// sizeSint64PackedSliceValue returns the size of wire encoding a []int64 value as a packed repeated Sint64. +func sizeSint64PackedSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := 0 + for i, llen := 0, llen; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(protowire.EncodeZigZag(v.Int())) + } + return tagsize + protowire.SizeBytes(n) +} + +// appendSint64PackedSliceValue encodes a []int64 value as a packed repeated Sint64. +func appendSint64PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := 0 + for i := 0; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(protowire.EncodeZigZag(v.Int())) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v.Int())) + } + return b, nil +} + +var coderSint64PackedSliceValue = valueCoderFuncs{ + size: sizeSint64PackedSliceValue, + marshal: appendSint64PackedSliceValue, + unmarshal: consumeSint64SliceValue, + merge: mergeListValue, +} + +// sizeUint64 returns the size of wire encoding a uint64 pointer as a Uint64. +func sizeUint64(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Uint64() + return f.tagsize + protowire.SizeVarint(v) +} + +// appendUint64 wire encodes a uint64 pointer as a Uint64. +func appendUint64(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Uint64() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, v) + return b, nil +} + +// consumeUint64 wire decodes a uint64 pointer as a Uint64. +func consumeUint64(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + *p.Uint64() = v + out.n = n + return out, nil +} + +var coderUint64 = pointerCoderFuncs{ + size: sizeUint64, + marshal: appendUint64, + unmarshal: consumeUint64, + merge: mergeUint64, +} + +// sizeUint64NoZero returns the size of wire encoding a uint64 pointer as a Uint64. +// The zero value is not encoded. +func sizeUint64NoZero(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Uint64() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeVarint(v) +} + +// appendUint64NoZero wire encodes a uint64 pointer as a Uint64. +// The zero value is not encoded. +func appendUint64NoZero(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Uint64() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, v) + return b, nil +} + +var coderUint64NoZero = pointerCoderFuncs{ + size: sizeUint64NoZero, + marshal: appendUint64NoZero, + unmarshal: consumeUint64, + merge: mergeUint64NoZero, +} + +// sizeUint64Ptr returns the size of wire encoding a *uint64 pointer as a Uint64. +// It panics if the pointer is nil. +func sizeUint64Ptr(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := **p.Uint64Ptr() + return f.tagsize + protowire.SizeVarint(v) +} + +// appendUint64Ptr wire encodes a *uint64 pointer as a Uint64. +// It panics if the pointer is nil. +func appendUint64Ptr(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := **p.Uint64Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, v) + return b, nil +} + +// consumeUint64Ptr wire decodes a *uint64 pointer as a Uint64. +func consumeUint64Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + vp := p.Uint64Ptr() + if *vp == nil { + *vp = new(uint64) + } + **vp = v + out.n = n + return out, nil +} + +var coderUint64Ptr = pointerCoderFuncs{ + size: sizeUint64Ptr, + marshal: appendUint64Ptr, + unmarshal: consumeUint64Ptr, + merge: mergeUint64Ptr, +} + +// sizeUint64Slice returns the size of wire encoding a []uint64 pointer as a repeated Uint64. +func sizeUint64Slice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Uint64Slice() + for _, v := range s { + size += f.tagsize + protowire.SizeVarint(v) + } + return size +} + +// appendUint64Slice encodes a []uint64 pointer as a repeated Uint64. +func appendUint64Slice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Uint64Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, v) + } + return b, nil +} + +// consumeUint64Slice wire decodes a []uint64 pointer as a repeated Uint64. +func consumeUint64Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Uint64Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + s = append(s, v) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, protowire.ParseError(n) + } + *sp = append(*sp, v) + out.n = n + return out, nil +} + +var coderUint64Slice = pointerCoderFuncs{ + size: sizeUint64Slice, + marshal: appendUint64Slice, + unmarshal: consumeUint64Slice, + merge: mergeUint64Slice, +} + +// sizeUint64PackedSlice returns the size of wire encoding a []uint64 pointer as a packed repeated Uint64. +func sizeUint64PackedSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Uint64Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += protowire.SizeVarint(v) + } + return f.tagsize + protowire.SizeBytes(n) +} + +// appendUint64PackedSlice encodes a []uint64 pointer as a packed repeated Uint64. +func appendUint64PackedSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Uint64Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := 0 + for _, v := range s { + n += protowire.SizeVarint(v) + } + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendVarint(b, v) + } + return b, nil +} + +var coderUint64PackedSlice = pointerCoderFuncs{ + size: sizeUint64PackedSlice, + marshal: appendUint64PackedSlice, + unmarshal: consumeUint64Slice, + merge: mergeUint64Slice, +} + +// sizeUint64Value returns the size of wire encoding a uint64 value as a Uint64. +func sizeUint64Value(v protoreflect.Value, tagsize int, _ marshalOptions) int { + return tagsize + protowire.SizeVarint(v.Uint()) +} + +// appendUint64Value encodes a uint64 value as a Uint64. +func appendUint64Value(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, v.Uint()) + return b, nil +} + +// consumeUint64Value decodes a uint64 value as a Uint64. +func consumeUint64Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + out.n = n + return protoreflect.ValueOfUint64(v), out, nil +} + +var coderUint64Value = valueCoderFuncs{ + size: sizeUint64Value, + marshal: appendUint64Value, + unmarshal: consumeUint64Value, + merge: mergeScalarValue, +} + +// sizeUint64SliceValue returns the size of wire encoding a []uint64 value as a repeated Uint64. +func sizeUint64SliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeVarint(v.Uint()) + } + return size +} + +// appendUint64SliceValue encodes a []uint64 value as a repeated Uint64. +func appendUint64SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, v.Uint()) + } + return b, nil +} + +// consumeUint64SliceValue wire decodes a []uint64 value as a repeated Uint64. +func consumeUint64SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfUint64(v)) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfUint64(v)) + out.n = n + return listv, out, nil +} + +var coderUint64SliceValue = valueCoderFuncs{ + size: sizeUint64SliceValue, + marshal: appendUint64SliceValue, + unmarshal: consumeUint64SliceValue, + merge: mergeListValue, +} + +// sizeUint64PackedSliceValue returns the size of wire encoding a []uint64 value as a packed repeated Uint64. +func sizeUint64PackedSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := 0 + for i, llen := 0, llen; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(v.Uint()) + } + return tagsize + protowire.SizeBytes(n) +} + +// appendUint64PackedSliceValue encodes a []uint64 value as a packed repeated Uint64. +func appendUint64PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := 0 + for i := 0; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(v.Uint()) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, v.Uint()) + } + return b, nil +} + +var coderUint64PackedSliceValue = valueCoderFuncs{ + size: sizeUint64PackedSliceValue, + marshal: appendUint64PackedSliceValue, + unmarshal: consumeUint64SliceValue, + merge: mergeListValue, +} + +// sizeSfixed32 returns the size of wire encoding a int32 pointer as a Sfixed32. +func sizeSfixed32(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + + return f.tagsize + protowire.SizeFixed32() +} + +// appendSfixed32 wire encodes a int32 pointer as a Sfixed32. +func appendSfixed32(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Int32() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, uint32(v)) + return b, nil +} + +// consumeSfixed32 wire decodes a int32 pointer as a Sfixed32. +func consumeSfixed32(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *p.Int32() = int32(v) + out.n = n + return out, nil +} + +var coderSfixed32 = pointerCoderFuncs{ + size: sizeSfixed32, + marshal: appendSfixed32, + unmarshal: consumeSfixed32, + merge: mergeInt32, +} + +// sizeSfixed32NoZero returns the size of wire encoding a int32 pointer as a Sfixed32. +// The zero value is not encoded. +func sizeSfixed32NoZero(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Int32() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeFixed32() +} + +// appendSfixed32NoZero wire encodes a int32 pointer as a Sfixed32. +// The zero value is not encoded. +func appendSfixed32NoZero(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Int32() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, uint32(v)) + return b, nil +} + +var coderSfixed32NoZero = pointerCoderFuncs{ + size: sizeSfixed32NoZero, + marshal: appendSfixed32NoZero, + unmarshal: consumeSfixed32, + merge: mergeInt32NoZero, +} + +// sizeSfixed32Ptr returns the size of wire encoding a *int32 pointer as a Sfixed32. +// It panics if the pointer is nil. +func sizeSfixed32Ptr(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + return f.tagsize + protowire.SizeFixed32() +} + +// appendSfixed32Ptr wire encodes a *int32 pointer as a Sfixed32. +// It panics if the pointer is nil. +func appendSfixed32Ptr(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := **p.Int32Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, uint32(v)) + return b, nil +} + +// consumeSfixed32Ptr wire decodes a *int32 pointer as a Sfixed32. +func consumeSfixed32Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, protowire.ParseError(n) + } + vp := p.Int32Ptr() + if *vp == nil { + *vp = new(int32) + } + **vp = int32(v) + out.n = n + return out, nil +} + +var coderSfixed32Ptr = pointerCoderFuncs{ + size: sizeSfixed32Ptr, + marshal: appendSfixed32Ptr, + unmarshal: consumeSfixed32Ptr, + merge: mergeInt32Ptr, +} + +// sizeSfixed32Slice returns the size of wire encoding a []int32 pointer as a repeated Sfixed32. +func sizeSfixed32Slice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Int32Slice() + size = len(s) * (f.tagsize + protowire.SizeFixed32()) + return size +} + +// appendSfixed32Slice encodes a []int32 pointer as a repeated Sfixed32. +func appendSfixed32Slice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Int32Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, uint32(v)) + } + return b, nil +} + +// consumeSfixed32Slice wire decodes a []int32 pointer as a repeated Sfixed32. +func consumeSfixed32Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Int32Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, protowire.ParseError(n) + } + s = append(s, int32(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *sp = append(*sp, int32(v)) + out.n = n + return out, nil +} + +var coderSfixed32Slice = pointerCoderFuncs{ + size: sizeSfixed32Slice, + marshal: appendSfixed32Slice, + unmarshal: consumeSfixed32Slice, + merge: mergeInt32Slice, +} + +// sizeSfixed32PackedSlice returns the size of wire encoding a []int32 pointer as a packed repeated Sfixed32. +func sizeSfixed32PackedSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Int32Slice() + if len(s) == 0 { + return 0 + } + n := len(s) * protowire.SizeFixed32() + return f.tagsize + protowire.SizeBytes(n) +} + +// appendSfixed32PackedSlice encodes a []int32 pointer as a packed repeated Sfixed32. +func appendSfixed32PackedSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Int32Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := len(s) * protowire.SizeFixed32() + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendFixed32(b, uint32(v)) + } + return b, nil +} + +var coderSfixed32PackedSlice = pointerCoderFuncs{ + size: sizeSfixed32PackedSlice, + marshal: appendSfixed32PackedSlice, + unmarshal: consumeSfixed32Slice, + merge: mergeInt32Slice, +} + +// sizeSfixed32Value returns the size of wire encoding a int32 value as a Sfixed32. +func sizeSfixed32Value(v protoreflect.Value, tagsize int, _ marshalOptions) int { + return tagsize + protowire.SizeFixed32() +} + +// appendSfixed32Value encodes a int32 value as a Sfixed32. +func appendSfixed32Value(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed32(b, uint32(v.Int())) + return b, nil +} + +// consumeSfixed32Value decodes a int32 value as a Sfixed32. +func consumeSfixed32Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + out.n = n + return protoreflect.ValueOfInt32(int32(v)), out, nil +} + +var coderSfixed32Value = valueCoderFuncs{ + size: sizeSfixed32Value, + marshal: appendSfixed32Value, + unmarshal: consumeSfixed32Value, + merge: mergeScalarValue, +} + +// sizeSfixed32SliceValue returns the size of wire encoding a []int32 value as a repeated Sfixed32. +func sizeSfixed32SliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + size = list.Len() * (tagsize + protowire.SizeFixed32()) + return size +} + +// appendSfixed32SliceValue encodes a []int32 value as a repeated Sfixed32. +func appendSfixed32SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed32(b, uint32(v.Int())) + } + return b, nil +} + +// consumeSfixed32SliceValue wire decodes a []int32 value as a repeated Sfixed32. +func consumeSfixed32SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt32(int32(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.Fixed32Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt32(int32(v))) + out.n = n + return listv, out, nil +} + +var coderSfixed32SliceValue = valueCoderFuncs{ + size: sizeSfixed32SliceValue, + marshal: appendSfixed32SliceValue, + unmarshal: consumeSfixed32SliceValue, + merge: mergeListValue, +} + +// sizeSfixed32PackedSliceValue returns the size of wire encoding a []int32 value as a packed repeated Sfixed32. +func sizeSfixed32PackedSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := llen * protowire.SizeFixed32() + return tagsize + protowire.SizeBytes(n) +} + +// appendSfixed32PackedSliceValue encodes a []int32 value as a packed repeated Sfixed32. +func appendSfixed32PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := llen * protowire.SizeFixed32() + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendFixed32(b, uint32(v.Int())) + } + return b, nil +} + +var coderSfixed32PackedSliceValue = valueCoderFuncs{ + size: sizeSfixed32PackedSliceValue, + marshal: appendSfixed32PackedSliceValue, + unmarshal: consumeSfixed32SliceValue, + merge: mergeListValue, +} + +// sizeFixed32 returns the size of wire encoding a uint32 pointer as a Fixed32. +func sizeFixed32(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + + return f.tagsize + protowire.SizeFixed32() +} + +// appendFixed32 wire encodes a uint32 pointer as a Fixed32. +func appendFixed32(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Uint32() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, v) + return b, nil +} + +// consumeFixed32 wire decodes a uint32 pointer as a Fixed32. +func consumeFixed32(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *p.Uint32() = v + out.n = n + return out, nil +} + +var coderFixed32 = pointerCoderFuncs{ + size: sizeFixed32, + marshal: appendFixed32, + unmarshal: consumeFixed32, + merge: mergeUint32, +} + +// sizeFixed32NoZero returns the size of wire encoding a uint32 pointer as a Fixed32. +// The zero value is not encoded. +func sizeFixed32NoZero(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Uint32() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeFixed32() +} + +// appendFixed32NoZero wire encodes a uint32 pointer as a Fixed32. +// The zero value is not encoded. +func appendFixed32NoZero(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Uint32() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, v) + return b, nil +} + +var coderFixed32NoZero = pointerCoderFuncs{ + size: sizeFixed32NoZero, + marshal: appendFixed32NoZero, + unmarshal: consumeFixed32, + merge: mergeUint32NoZero, +} + +// sizeFixed32Ptr returns the size of wire encoding a *uint32 pointer as a Fixed32. +// It panics if the pointer is nil. +func sizeFixed32Ptr(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + return f.tagsize + protowire.SizeFixed32() +} + +// appendFixed32Ptr wire encodes a *uint32 pointer as a Fixed32. +// It panics if the pointer is nil. +func appendFixed32Ptr(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := **p.Uint32Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, v) + return b, nil +} + +// consumeFixed32Ptr wire decodes a *uint32 pointer as a Fixed32. +func consumeFixed32Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, protowire.ParseError(n) + } + vp := p.Uint32Ptr() + if *vp == nil { + *vp = new(uint32) + } + **vp = v + out.n = n + return out, nil +} + +var coderFixed32Ptr = pointerCoderFuncs{ + size: sizeFixed32Ptr, + marshal: appendFixed32Ptr, + unmarshal: consumeFixed32Ptr, + merge: mergeUint32Ptr, +} + +// sizeFixed32Slice returns the size of wire encoding a []uint32 pointer as a repeated Fixed32. +func sizeFixed32Slice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Uint32Slice() + size = len(s) * (f.tagsize + protowire.SizeFixed32()) + return size +} + +// appendFixed32Slice encodes a []uint32 pointer as a repeated Fixed32. +func appendFixed32Slice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Uint32Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, v) + } + return b, nil +} + +// consumeFixed32Slice wire decodes a []uint32 pointer as a repeated Fixed32. +func consumeFixed32Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Uint32Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, protowire.ParseError(n) + } + s = append(s, v) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *sp = append(*sp, v) + out.n = n + return out, nil +} + +var coderFixed32Slice = pointerCoderFuncs{ + size: sizeFixed32Slice, + marshal: appendFixed32Slice, + unmarshal: consumeFixed32Slice, + merge: mergeUint32Slice, +} + +// sizeFixed32PackedSlice returns the size of wire encoding a []uint32 pointer as a packed repeated Fixed32. +func sizeFixed32PackedSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Uint32Slice() + if len(s) == 0 { + return 0 + } + n := len(s) * protowire.SizeFixed32() + return f.tagsize + protowire.SizeBytes(n) +} + +// appendFixed32PackedSlice encodes a []uint32 pointer as a packed repeated Fixed32. +func appendFixed32PackedSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Uint32Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := len(s) * protowire.SizeFixed32() + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendFixed32(b, v) + } + return b, nil +} + +var coderFixed32PackedSlice = pointerCoderFuncs{ + size: sizeFixed32PackedSlice, + marshal: appendFixed32PackedSlice, + unmarshal: consumeFixed32Slice, + merge: mergeUint32Slice, +} + +// sizeFixed32Value returns the size of wire encoding a uint32 value as a Fixed32. +func sizeFixed32Value(v protoreflect.Value, tagsize int, _ marshalOptions) int { + return tagsize + protowire.SizeFixed32() +} + +// appendFixed32Value encodes a uint32 value as a Fixed32. +func appendFixed32Value(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed32(b, uint32(v.Uint())) + return b, nil +} + +// consumeFixed32Value decodes a uint32 value as a Fixed32. +func consumeFixed32Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + out.n = n + return protoreflect.ValueOfUint32(uint32(v)), out, nil +} + +var coderFixed32Value = valueCoderFuncs{ + size: sizeFixed32Value, + marshal: appendFixed32Value, + unmarshal: consumeFixed32Value, + merge: mergeScalarValue, +} + +// sizeFixed32SliceValue returns the size of wire encoding a []uint32 value as a repeated Fixed32. +func sizeFixed32SliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + size = list.Len() * (tagsize + protowire.SizeFixed32()) + return size +} + +// appendFixed32SliceValue encodes a []uint32 value as a repeated Fixed32. +func appendFixed32SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed32(b, uint32(v.Uint())) + } + return b, nil +} + +// consumeFixed32SliceValue wire decodes a []uint32 value as a repeated Fixed32. +func consumeFixed32SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfUint32(uint32(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.Fixed32Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfUint32(uint32(v))) + out.n = n + return listv, out, nil +} + +var coderFixed32SliceValue = valueCoderFuncs{ + size: sizeFixed32SliceValue, + marshal: appendFixed32SliceValue, + unmarshal: consumeFixed32SliceValue, + merge: mergeListValue, +} + +// sizeFixed32PackedSliceValue returns the size of wire encoding a []uint32 value as a packed repeated Fixed32. +func sizeFixed32PackedSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := llen * protowire.SizeFixed32() + return tagsize + protowire.SizeBytes(n) +} + +// appendFixed32PackedSliceValue encodes a []uint32 value as a packed repeated Fixed32. +func appendFixed32PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := llen * protowire.SizeFixed32() + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendFixed32(b, uint32(v.Uint())) + } + return b, nil +} + +var coderFixed32PackedSliceValue = valueCoderFuncs{ + size: sizeFixed32PackedSliceValue, + marshal: appendFixed32PackedSliceValue, + unmarshal: consumeFixed32SliceValue, + merge: mergeListValue, +} + +// sizeFloat returns the size of wire encoding a float32 pointer as a Float. +func sizeFloat(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + + return f.tagsize + protowire.SizeFixed32() +} + +// appendFloat wire encodes a float32 pointer as a Float. +func appendFloat(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Float32() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, math.Float32bits(v)) + return b, nil +} + +// consumeFloat wire decodes a float32 pointer as a Float. +func consumeFloat(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *p.Float32() = math.Float32frombits(v) + out.n = n + return out, nil +} + +var coderFloat = pointerCoderFuncs{ + size: sizeFloat, + marshal: appendFloat, + unmarshal: consumeFloat, + merge: mergeFloat32, +} + +// sizeFloatNoZero returns the size of wire encoding a float32 pointer as a Float. +// The zero value is not encoded. +func sizeFloatNoZero(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Float32() + if v == 0 && !math.Signbit(float64(v)) { + return 0 + } + return f.tagsize + protowire.SizeFixed32() +} + +// appendFloatNoZero wire encodes a float32 pointer as a Float. +// The zero value is not encoded. +func appendFloatNoZero(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Float32() + if v == 0 && !math.Signbit(float64(v)) { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, math.Float32bits(v)) + return b, nil +} + +var coderFloatNoZero = pointerCoderFuncs{ + size: sizeFloatNoZero, + marshal: appendFloatNoZero, + unmarshal: consumeFloat, + merge: mergeFloat32NoZero, +} + +// sizeFloatPtr returns the size of wire encoding a *float32 pointer as a Float. +// It panics if the pointer is nil. +func sizeFloatPtr(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + return f.tagsize + protowire.SizeFixed32() +} + +// appendFloatPtr wire encodes a *float32 pointer as a Float. +// It panics if the pointer is nil. +func appendFloatPtr(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := **p.Float32Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, math.Float32bits(v)) + return b, nil +} + +// consumeFloatPtr wire decodes a *float32 pointer as a Float. +func consumeFloatPtr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, protowire.ParseError(n) + } + vp := p.Float32Ptr() + if *vp == nil { + *vp = new(float32) + } + **vp = math.Float32frombits(v) + out.n = n + return out, nil +} + +var coderFloatPtr = pointerCoderFuncs{ + size: sizeFloatPtr, + marshal: appendFloatPtr, + unmarshal: consumeFloatPtr, + merge: mergeFloat32Ptr, +} + +// sizeFloatSlice returns the size of wire encoding a []float32 pointer as a repeated Float. +func sizeFloatSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Float32Slice() + size = len(s) * (f.tagsize + protowire.SizeFixed32()) + return size +} + +// appendFloatSlice encodes a []float32 pointer as a repeated Float. +func appendFloatSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Float32Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, math.Float32bits(v)) + } + return b, nil +} + +// consumeFloatSlice wire decodes a []float32 pointer as a repeated Float. +func consumeFloatSlice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Float32Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, protowire.ParseError(n) + } + s = append(s, math.Float32frombits(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *sp = append(*sp, math.Float32frombits(v)) + out.n = n + return out, nil +} + +var coderFloatSlice = pointerCoderFuncs{ + size: sizeFloatSlice, + marshal: appendFloatSlice, + unmarshal: consumeFloatSlice, + merge: mergeFloat32Slice, +} + +// sizeFloatPackedSlice returns the size of wire encoding a []float32 pointer as a packed repeated Float. +func sizeFloatPackedSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Float32Slice() + if len(s) == 0 { + return 0 + } + n := len(s) * protowire.SizeFixed32() + return f.tagsize + protowire.SizeBytes(n) +} + +// appendFloatPackedSlice encodes a []float32 pointer as a packed repeated Float. +func appendFloatPackedSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Float32Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := len(s) * protowire.SizeFixed32() + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendFixed32(b, math.Float32bits(v)) + } + return b, nil +} + +var coderFloatPackedSlice = pointerCoderFuncs{ + size: sizeFloatPackedSlice, + marshal: appendFloatPackedSlice, + unmarshal: consumeFloatSlice, + merge: mergeFloat32Slice, +} + +// sizeFloatValue returns the size of wire encoding a float32 value as a Float. +func sizeFloatValue(v protoreflect.Value, tagsize int, _ marshalOptions) int { + return tagsize + protowire.SizeFixed32() +} + +// appendFloatValue encodes a float32 value as a Float. +func appendFloatValue(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed32(b, math.Float32bits(float32(v.Float()))) + return b, nil +} + +// consumeFloatValue decodes a float32 value as a Float. +func consumeFloatValue(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + out.n = n + return protoreflect.ValueOfFloat32(math.Float32frombits(uint32(v))), out, nil +} + +var coderFloatValue = valueCoderFuncs{ + size: sizeFloatValue, + marshal: appendFloatValue, + unmarshal: consumeFloatValue, + merge: mergeScalarValue, +} + +// sizeFloatSliceValue returns the size of wire encoding a []float32 value as a repeated Float. +func sizeFloatSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + size = list.Len() * (tagsize + protowire.SizeFixed32()) + return size +} + +// appendFloatSliceValue encodes a []float32 value as a repeated Float. +func appendFloatSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed32(b, math.Float32bits(float32(v.Float()))) + } + return b, nil +} + +// consumeFloatSliceValue wire decodes a []float32 value as a repeated Float. +func consumeFloatSliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfFloat32(math.Float32frombits(uint32(v)))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.Fixed32Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfFloat32(math.Float32frombits(uint32(v)))) + out.n = n + return listv, out, nil +} + +var coderFloatSliceValue = valueCoderFuncs{ + size: sizeFloatSliceValue, + marshal: appendFloatSliceValue, + unmarshal: consumeFloatSliceValue, + merge: mergeListValue, +} + +// sizeFloatPackedSliceValue returns the size of wire encoding a []float32 value as a packed repeated Float. +func sizeFloatPackedSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := llen * protowire.SizeFixed32() + return tagsize + protowire.SizeBytes(n) +} + +// appendFloatPackedSliceValue encodes a []float32 value as a packed repeated Float. +func appendFloatPackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := llen * protowire.SizeFixed32() + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendFixed32(b, math.Float32bits(float32(v.Float()))) + } + return b, nil +} + +var coderFloatPackedSliceValue = valueCoderFuncs{ + size: sizeFloatPackedSliceValue, + marshal: appendFloatPackedSliceValue, + unmarshal: consumeFloatSliceValue, + merge: mergeListValue, +} + +// sizeSfixed64 returns the size of wire encoding a int64 pointer as a Sfixed64. +func sizeSfixed64(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + + return f.tagsize + protowire.SizeFixed64() +} + +// appendSfixed64 wire encodes a int64 pointer as a Sfixed64. +func appendSfixed64(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Int64() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, uint64(v)) + return b, nil +} + +// consumeSfixed64 wire decodes a int64 pointer as a Sfixed64. +func consumeSfixed64(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *p.Int64() = int64(v) + out.n = n + return out, nil +} + +var coderSfixed64 = pointerCoderFuncs{ + size: sizeSfixed64, + marshal: appendSfixed64, + unmarshal: consumeSfixed64, + merge: mergeInt64, +} + +// sizeSfixed64NoZero returns the size of wire encoding a int64 pointer as a Sfixed64. +// The zero value is not encoded. +func sizeSfixed64NoZero(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Int64() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeFixed64() +} + +// appendSfixed64NoZero wire encodes a int64 pointer as a Sfixed64. +// The zero value is not encoded. +func appendSfixed64NoZero(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Int64() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, uint64(v)) + return b, nil +} + +var coderSfixed64NoZero = pointerCoderFuncs{ + size: sizeSfixed64NoZero, + marshal: appendSfixed64NoZero, + unmarshal: consumeSfixed64, + merge: mergeInt64NoZero, +} + +// sizeSfixed64Ptr returns the size of wire encoding a *int64 pointer as a Sfixed64. +// It panics if the pointer is nil. +func sizeSfixed64Ptr(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + return f.tagsize + protowire.SizeFixed64() +} + +// appendSfixed64Ptr wire encodes a *int64 pointer as a Sfixed64. +// It panics if the pointer is nil. +func appendSfixed64Ptr(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := **p.Int64Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, uint64(v)) + return b, nil +} + +// consumeSfixed64Ptr wire decodes a *int64 pointer as a Sfixed64. +func consumeSfixed64Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, protowire.ParseError(n) + } + vp := p.Int64Ptr() + if *vp == nil { + *vp = new(int64) + } + **vp = int64(v) + out.n = n + return out, nil +} + +var coderSfixed64Ptr = pointerCoderFuncs{ + size: sizeSfixed64Ptr, + marshal: appendSfixed64Ptr, + unmarshal: consumeSfixed64Ptr, + merge: mergeInt64Ptr, +} + +// sizeSfixed64Slice returns the size of wire encoding a []int64 pointer as a repeated Sfixed64. +func sizeSfixed64Slice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Int64Slice() + size = len(s) * (f.tagsize + protowire.SizeFixed64()) + return size +} + +// appendSfixed64Slice encodes a []int64 pointer as a repeated Sfixed64. +func appendSfixed64Slice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Int64Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, uint64(v)) + } + return b, nil +} + +// consumeSfixed64Slice wire decodes a []int64 pointer as a repeated Sfixed64. +func consumeSfixed64Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Int64Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, protowire.ParseError(n) + } + s = append(s, int64(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *sp = append(*sp, int64(v)) + out.n = n + return out, nil +} + +var coderSfixed64Slice = pointerCoderFuncs{ + size: sizeSfixed64Slice, + marshal: appendSfixed64Slice, + unmarshal: consumeSfixed64Slice, + merge: mergeInt64Slice, +} + +// sizeSfixed64PackedSlice returns the size of wire encoding a []int64 pointer as a packed repeated Sfixed64. +func sizeSfixed64PackedSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Int64Slice() + if len(s) == 0 { + return 0 + } + n := len(s) * protowire.SizeFixed64() + return f.tagsize + protowire.SizeBytes(n) +} + +// appendSfixed64PackedSlice encodes a []int64 pointer as a packed repeated Sfixed64. +func appendSfixed64PackedSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Int64Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := len(s) * protowire.SizeFixed64() + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendFixed64(b, uint64(v)) + } + return b, nil +} + +var coderSfixed64PackedSlice = pointerCoderFuncs{ + size: sizeSfixed64PackedSlice, + marshal: appendSfixed64PackedSlice, + unmarshal: consumeSfixed64Slice, + merge: mergeInt64Slice, +} + +// sizeSfixed64Value returns the size of wire encoding a int64 value as a Sfixed64. +func sizeSfixed64Value(v protoreflect.Value, tagsize int, _ marshalOptions) int { + return tagsize + protowire.SizeFixed64() +} + +// appendSfixed64Value encodes a int64 value as a Sfixed64. +func appendSfixed64Value(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed64(b, uint64(v.Int())) + return b, nil +} + +// consumeSfixed64Value decodes a int64 value as a Sfixed64. +func consumeSfixed64Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + out.n = n + return protoreflect.ValueOfInt64(int64(v)), out, nil +} + +var coderSfixed64Value = valueCoderFuncs{ + size: sizeSfixed64Value, + marshal: appendSfixed64Value, + unmarshal: consumeSfixed64Value, + merge: mergeScalarValue, +} + +// sizeSfixed64SliceValue returns the size of wire encoding a []int64 value as a repeated Sfixed64. +func sizeSfixed64SliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + size = list.Len() * (tagsize + protowire.SizeFixed64()) + return size +} + +// appendSfixed64SliceValue encodes a []int64 value as a repeated Sfixed64. +func appendSfixed64SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed64(b, uint64(v.Int())) + } + return b, nil +} + +// consumeSfixed64SliceValue wire decodes a []int64 value as a repeated Sfixed64. +func consumeSfixed64SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt64(int64(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.Fixed64Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt64(int64(v))) + out.n = n + return listv, out, nil +} + +var coderSfixed64SliceValue = valueCoderFuncs{ + size: sizeSfixed64SliceValue, + marshal: appendSfixed64SliceValue, + unmarshal: consumeSfixed64SliceValue, + merge: mergeListValue, +} + +// sizeSfixed64PackedSliceValue returns the size of wire encoding a []int64 value as a packed repeated Sfixed64. +func sizeSfixed64PackedSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := llen * protowire.SizeFixed64() + return tagsize + protowire.SizeBytes(n) +} + +// appendSfixed64PackedSliceValue encodes a []int64 value as a packed repeated Sfixed64. +func appendSfixed64PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := llen * protowire.SizeFixed64() + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendFixed64(b, uint64(v.Int())) + } + return b, nil +} + +var coderSfixed64PackedSliceValue = valueCoderFuncs{ + size: sizeSfixed64PackedSliceValue, + marshal: appendSfixed64PackedSliceValue, + unmarshal: consumeSfixed64SliceValue, + merge: mergeListValue, +} + +// sizeFixed64 returns the size of wire encoding a uint64 pointer as a Fixed64. +func sizeFixed64(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + + return f.tagsize + protowire.SizeFixed64() +} + +// appendFixed64 wire encodes a uint64 pointer as a Fixed64. +func appendFixed64(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Uint64() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, v) + return b, nil +} + +// consumeFixed64 wire decodes a uint64 pointer as a Fixed64. +func consumeFixed64(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *p.Uint64() = v + out.n = n + return out, nil +} + +var coderFixed64 = pointerCoderFuncs{ + size: sizeFixed64, + marshal: appendFixed64, + unmarshal: consumeFixed64, + merge: mergeUint64, +} + +// sizeFixed64NoZero returns the size of wire encoding a uint64 pointer as a Fixed64. +// The zero value is not encoded. +func sizeFixed64NoZero(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Uint64() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeFixed64() +} + +// appendFixed64NoZero wire encodes a uint64 pointer as a Fixed64. +// The zero value is not encoded. +func appendFixed64NoZero(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Uint64() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, v) + return b, nil +} + +var coderFixed64NoZero = pointerCoderFuncs{ + size: sizeFixed64NoZero, + marshal: appendFixed64NoZero, + unmarshal: consumeFixed64, + merge: mergeUint64NoZero, +} + +// sizeFixed64Ptr returns the size of wire encoding a *uint64 pointer as a Fixed64. +// It panics if the pointer is nil. +func sizeFixed64Ptr(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + return f.tagsize + protowire.SizeFixed64() +} + +// appendFixed64Ptr wire encodes a *uint64 pointer as a Fixed64. +// It panics if the pointer is nil. +func appendFixed64Ptr(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := **p.Uint64Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, v) + return b, nil +} + +// consumeFixed64Ptr wire decodes a *uint64 pointer as a Fixed64. +func consumeFixed64Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, protowire.ParseError(n) + } + vp := p.Uint64Ptr() + if *vp == nil { + *vp = new(uint64) + } + **vp = v + out.n = n + return out, nil +} + +var coderFixed64Ptr = pointerCoderFuncs{ + size: sizeFixed64Ptr, + marshal: appendFixed64Ptr, + unmarshal: consumeFixed64Ptr, + merge: mergeUint64Ptr, +} + +// sizeFixed64Slice returns the size of wire encoding a []uint64 pointer as a repeated Fixed64. +func sizeFixed64Slice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Uint64Slice() + size = len(s) * (f.tagsize + protowire.SizeFixed64()) + return size +} + +// appendFixed64Slice encodes a []uint64 pointer as a repeated Fixed64. +func appendFixed64Slice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Uint64Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, v) + } + return b, nil +} + +// consumeFixed64Slice wire decodes a []uint64 pointer as a repeated Fixed64. +func consumeFixed64Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Uint64Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, protowire.ParseError(n) + } + s = append(s, v) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *sp = append(*sp, v) + out.n = n + return out, nil +} + +var coderFixed64Slice = pointerCoderFuncs{ + size: sizeFixed64Slice, + marshal: appendFixed64Slice, + unmarshal: consumeFixed64Slice, + merge: mergeUint64Slice, +} + +// sizeFixed64PackedSlice returns the size of wire encoding a []uint64 pointer as a packed repeated Fixed64. +func sizeFixed64PackedSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Uint64Slice() + if len(s) == 0 { + return 0 + } + n := len(s) * protowire.SizeFixed64() + return f.tagsize + protowire.SizeBytes(n) +} + +// appendFixed64PackedSlice encodes a []uint64 pointer as a packed repeated Fixed64. +func appendFixed64PackedSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Uint64Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := len(s) * protowire.SizeFixed64() + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendFixed64(b, v) + } + return b, nil +} + +var coderFixed64PackedSlice = pointerCoderFuncs{ + size: sizeFixed64PackedSlice, + marshal: appendFixed64PackedSlice, + unmarshal: consumeFixed64Slice, + merge: mergeUint64Slice, +} + +// sizeFixed64Value returns the size of wire encoding a uint64 value as a Fixed64. +func sizeFixed64Value(v protoreflect.Value, tagsize int, _ marshalOptions) int { + return tagsize + protowire.SizeFixed64() +} + +// appendFixed64Value encodes a uint64 value as a Fixed64. +func appendFixed64Value(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed64(b, v.Uint()) + return b, nil +} + +// consumeFixed64Value decodes a uint64 value as a Fixed64. +func consumeFixed64Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + out.n = n + return protoreflect.ValueOfUint64(v), out, nil +} + +var coderFixed64Value = valueCoderFuncs{ + size: sizeFixed64Value, + marshal: appendFixed64Value, + unmarshal: consumeFixed64Value, + merge: mergeScalarValue, +} + +// sizeFixed64SliceValue returns the size of wire encoding a []uint64 value as a repeated Fixed64. +func sizeFixed64SliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + size = list.Len() * (tagsize + protowire.SizeFixed64()) + return size +} + +// appendFixed64SliceValue encodes a []uint64 value as a repeated Fixed64. +func appendFixed64SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed64(b, v.Uint()) + } + return b, nil +} + +// consumeFixed64SliceValue wire decodes a []uint64 value as a repeated Fixed64. +func consumeFixed64SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfUint64(v)) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.Fixed64Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfUint64(v)) + out.n = n + return listv, out, nil +} + +var coderFixed64SliceValue = valueCoderFuncs{ + size: sizeFixed64SliceValue, + marshal: appendFixed64SliceValue, + unmarshal: consumeFixed64SliceValue, + merge: mergeListValue, +} + +// sizeFixed64PackedSliceValue returns the size of wire encoding a []uint64 value as a packed repeated Fixed64. +func sizeFixed64PackedSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := llen * protowire.SizeFixed64() + return tagsize + protowire.SizeBytes(n) +} + +// appendFixed64PackedSliceValue encodes a []uint64 value as a packed repeated Fixed64. +func appendFixed64PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := llen * protowire.SizeFixed64() + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendFixed64(b, v.Uint()) + } + return b, nil +} + +var coderFixed64PackedSliceValue = valueCoderFuncs{ + size: sizeFixed64PackedSliceValue, + marshal: appendFixed64PackedSliceValue, + unmarshal: consumeFixed64SliceValue, + merge: mergeListValue, +} + +// sizeDouble returns the size of wire encoding a float64 pointer as a Double. +func sizeDouble(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + + return f.tagsize + protowire.SizeFixed64() +} + +// appendDouble wire encodes a float64 pointer as a Double. +func appendDouble(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Float64() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, math.Float64bits(v)) + return b, nil +} + +// consumeDouble wire decodes a float64 pointer as a Double. +func consumeDouble(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *p.Float64() = math.Float64frombits(v) + out.n = n + return out, nil +} + +var coderDouble = pointerCoderFuncs{ + size: sizeDouble, + marshal: appendDouble, + unmarshal: consumeDouble, + merge: mergeFloat64, +} + +// sizeDoubleNoZero returns the size of wire encoding a float64 pointer as a Double. +// The zero value is not encoded. +func sizeDoubleNoZero(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Float64() + if v == 0 && !math.Signbit(float64(v)) { + return 0 + } + return f.tagsize + protowire.SizeFixed64() +} + +// appendDoubleNoZero wire encodes a float64 pointer as a Double. +// The zero value is not encoded. +func appendDoubleNoZero(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Float64() + if v == 0 && !math.Signbit(float64(v)) { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, math.Float64bits(v)) + return b, nil +} + +var coderDoubleNoZero = pointerCoderFuncs{ + size: sizeDoubleNoZero, + marshal: appendDoubleNoZero, + unmarshal: consumeDouble, + merge: mergeFloat64NoZero, +} + +// sizeDoublePtr returns the size of wire encoding a *float64 pointer as a Double. +// It panics if the pointer is nil. +func sizeDoublePtr(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + return f.tagsize + protowire.SizeFixed64() +} + +// appendDoublePtr wire encodes a *float64 pointer as a Double. +// It panics if the pointer is nil. +func appendDoublePtr(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := **p.Float64Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, math.Float64bits(v)) + return b, nil +} + +// consumeDoublePtr wire decodes a *float64 pointer as a Double. +func consumeDoublePtr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, protowire.ParseError(n) + } + vp := p.Float64Ptr() + if *vp == nil { + *vp = new(float64) + } + **vp = math.Float64frombits(v) + out.n = n + return out, nil +} + +var coderDoublePtr = pointerCoderFuncs{ + size: sizeDoublePtr, + marshal: appendDoublePtr, + unmarshal: consumeDoublePtr, + merge: mergeFloat64Ptr, +} + +// sizeDoubleSlice returns the size of wire encoding a []float64 pointer as a repeated Double. +func sizeDoubleSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Float64Slice() + size = len(s) * (f.tagsize + protowire.SizeFixed64()) + return size +} + +// appendDoubleSlice encodes a []float64 pointer as a repeated Double. +func appendDoubleSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Float64Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, math.Float64bits(v)) + } + return b, nil +} + +// consumeDoubleSlice wire decodes a []float64 pointer as a repeated Double. +func consumeDoubleSlice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Float64Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, protowire.ParseError(n) + } + s = append(s, math.Float64frombits(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *sp = append(*sp, math.Float64frombits(v)) + out.n = n + return out, nil +} + +var coderDoubleSlice = pointerCoderFuncs{ + size: sizeDoubleSlice, + marshal: appendDoubleSlice, + unmarshal: consumeDoubleSlice, + merge: mergeFloat64Slice, +} + +// sizeDoublePackedSlice returns the size of wire encoding a []float64 pointer as a packed repeated Double. +func sizeDoublePackedSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.Float64Slice() + if len(s) == 0 { + return 0 + } + n := len(s) * protowire.SizeFixed64() + return f.tagsize + protowire.SizeBytes(n) +} + +// appendDoublePackedSlice encodes a []float64 pointer as a packed repeated Double. +func appendDoublePackedSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.Float64Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := len(s) * protowire.SizeFixed64() + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendFixed64(b, math.Float64bits(v)) + } + return b, nil +} + +var coderDoublePackedSlice = pointerCoderFuncs{ + size: sizeDoublePackedSlice, + marshal: appendDoublePackedSlice, + unmarshal: consumeDoubleSlice, + merge: mergeFloat64Slice, +} + +// sizeDoubleValue returns the size of wire encoding a float64 value as a Double. +func sizeDoubleValue(v protoreflect.Value, tagsize int, _ marshalOptions) int { + return tagsize + protowire.SizeFixed64() +} + +// appendDoubleValue encodes a float64 value as a Double. +func appendDoubleValue(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed64(b, math.Float64bits(v.Float())) + return b, nil +} + +// consumeDoubleValue decodes a float64 value as a Double. +func consumeDoubleValue(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + out.n = n + return protoreflect.ValueOfFloat64(math.Float64frombits(v)), out, nil +} + +var coderDoubleValue = valueCoderFuncs{ + size: sizeDoubleValue, + marshal: appendDoubleValue, + unmarshal: consumeDoubleValue, + merge: mergeScalarValue, +} + +// sizeDoubleSliceValue returns the size of wire encoding a []float64 value as a repeated Double. +func sizeDoubleSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + size = list.Len() * (tagsize + protowire.SizeFixed64()) + return size +} + +// appendDoubleSliceValue encodes a []float64 value as a repeated Double. +func appendDoubleSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed64(b, math.Float64bits(v.Float())) + } + return b, nil +} + +// consumeDoubleSliceValue wire decodes a []float64 value as a repeated Double. +func consumeDoubleSliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfFloat64(math.Float64frombits(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.Fixed64Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfFloat64(math.Float64frombits(v))) + out.n = n + return listv, out, nil +} + +var coderDoubleSliceValue = valueCoderFuncs{ + size: sizeDoubleSliceValue, + marshal: appendDoubleSliceValue, + unmarshal: consumeDoubleSliceValue, + merge: mergeListValue, +} + +// sizeDoublePackedSliceValue returns the size of wire encoding a []float64 value as a packed repeated Double. +func sizeDoublePackedSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := llen * protowire.SizeFixed64() + return tagsize + protowire.SizeBytes(n) +} + +// appendDoublePackedSliceValue encodes a []float64 value as a packed repeated Double. +func appendDoublePackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := llen * protowire.SizeFixed64() + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendFixed64(b, math.Float64bits(v.Float())) + } + return b, nil +} + +var coderDoublePackedSliceValue = valueCoderFuncs{ + size: sizeDoublePackedSliceValue, + marshal: appendDoublePackedSliceValue, + unmarshal: consumeDoubleSliceValue, + merge: mergeListValue, +} + +// sizeString returns the size of wire encoding a string pointer as a String. +func sizeString(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.String() + return f.tagsize + protowire.SizeBytes(len(v)) +} + +// appendString wire encodes a string pointer as a String. +func appendString(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.String() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendString(b, v) + return b, nil +} + +// consumeString wire decodes a string pointer as a String. +func consumeString(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeString(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *p.String() = v + out.n = n + return out, nil +} + +var coderString = pointerCoderFuncs{ + size: sizeString, + marshal: appendString, + unmarshal: consumeString, + merge: mergeString, +} + +// appendStringValidateUTF8 wire encodes a string pointer as a String. +func appendStringValidateUTF8(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.String() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendString(b, v) + if !utf8.ValidString(v) { + return b, errInvalidUTF8{} + } + return b, nil +} + +// consumeStringValidateUTF8 wire decodes a string pointer as a String. +func consumeStringValidateUTF8(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeString(b) + if n < 0 { + return out, protowire.ParseError(n) + } + if !utf8.ValidString(v) { + return out, errInvalidUTF8{} + } + *p.String() = v + out.n = n + return out, nil +} + +var coderStringValidateUTF8 = pointerCoderFuncs{ + size: sizeString, + marshal: appendStringValidateUTF8, + unmarshal: consumeStringValidateUTF8, + merge: mergeString, +} + +// sizeStringNoZero returns the size of wire encoding a string pointer as a String. +// The zero value is not encoded. +func sizeStringNoZero(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.String() + if len(v) == 0 { + return 0 + } + return f.tagsize + protowire.SizeBytes(len(v)) +} + +// appendStringNoZero wire encodes a string pointer as a String. +// The zero value is not encoded. +func appendStringNoZero(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.String() + if len(v) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendString(b, v) + return b, nil +} + +var coderStringNoZero = pointerCoderFuncs{ + size: sizeStringNoZero, + marshal: appendStringNoZero, + unmarshal: consumeString, + merge: mergeStringNoZero, +} + +// appendStringNoZeroValidateUTF8 wire encodes a string pointer as a String. +// The zero value is not encoded. +func appendStringNoZeroValidateUTF8(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.String() + if len(v) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendString(b, v) + if !utf8.ValidString(v) { + return b, errInvalidUTF8{} + } + return b, nil +} + +var coderStringNoZeroValidateUTF8 = pointerCoderFuncs{ + size: sizeStringNoZero, + marshal: appendStringNoZeroValidateUTF8, + unmarshal: consumeStringValidateUTF8, + merge: mergeStringNoZero, +} + +// sizeStringPtr returns the size of wire encoding a *string pointer as a String. +// It panics if the pointer is nil. +func sizeStringPtr(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := **p.StringPtr() + return f.tagsize + protowire.SizeBytes(len(v)) +} + +// appendStringPtr wire encodes a *string pointer as a String. +// It panics if the pointer is nil. +func appendStringPtr(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := **p.StringPtr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendString(b, v) + return b, nil +} + +// consumeStringPtr wire decodes a *string pointer as a String. +func consumeStringPtr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeString(b) + if n < 0 { + return out, protowire.ParseError(n) + } + vp := p.StringPtr() + if *vp == nil { + *vp = new(string) + } + **vp = v + out.n = n + return out, nil +} + +var coderStringPtr = pointerCoderFuncs{ + size: sizeStringPtr, + marshal: appendStringPtr, + unmarshal: consumeStringPtr, + merge: mergeStringPtr, +} + +// appendStringPtrValidateUTF8 wire encodes a *string pointer as a String. +// It panics if the pointer is nil. +func appendStringPtrValidateUTF8(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := **p.StringPtr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendString(b, v) + if !utf8.ValidString(v) { + return b, errInvalidUTF8{} + } + return b, nil +} + +// consumeStringPtrValidateUTF8 wire decodes a *string pointer as a String. +func consumeStringPtrValidateUTF8(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeString(b) + if n < 0 { + return out, protowire.ParseError(n) + } + if !utf8.ValidString(v) { + return out, errInvalidUTF8{} + } + vp := p.StringPtr() + if *vp == nil { + *vp = new(string) + } + **vp = v + out.n = n + return out, nil +} + +var coderStringPtrValidateUTF8 = pointerCoderFuncs{ + size: sizeStringPtr, + marshal: appendStringPtrValidateUTF8, + unmarshal: consumeStringPtrValidateUTF8, + merge: mergeStringPtr, +} + +// sizeStringSlice returns the size of wire encoding a []string pointer as a repeated String. +func sizeStringSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.StringSlice() + for _, v := range s { + size += f.tagsize + protowire.SizeBytes(len(v)) + } + return size +} + +// appendStringSlice encodes a []string pointer as a repeated String. +func appendStringSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.StringSlice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendString(b, v) + } + return b, nil +} + +// consumeStringSlice wire decodes a []string pointer as a repeated String. +func consumeStringSlice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.StringSlice() + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeString(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *sp = append(*sp, v) + out.n = n + return out, nil +} + +var coderStringSlice = pointerCoderFuncs{ + size: sizeStringSlice, + marshal: appendStringSlice, + unmarshal: consumeStringSlice, + merge: mergeStringSlice, +} + +// appendStringSliceValidateUTF8 encodes a []string pointer as a repeated String. +func appendStringSliceValidateUTF8(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.StringSlice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendString(b, v) + if !utf8.ValidString(v) { + return b, errInvalidUTF8{} + } + } + return b, nil +} + +// consumeStringSliceValidateUTF8 wire decodes a []string pointer as a repeated String. +func consumeStringSliceValidateUTF8(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.StringSlice() + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeString(b) + if n < 0 { + return out, protowire.ParseError(n) + } + if !utf8.ValidString(v) { + return out, errInvalidUTF8{} + } + *sp = append(*sp, v) + out.n = n + return out, nil +} + +var coderStringSliceValidateUTF8 = pointerCoderFuncs{ + size: sizeStringSlice, + marshal: appendStringSliceValidateUTF8, + unmarshal: consumeStringSliceValidateUTF8, + merge: mergeStringSlice, +} + +// sizeStringValue returns the size of wire encoding a string value as a String. +func sizeStringValue(v protoreflect.Value, tagsize int, _ marshalOptions) int { + return tagsize + protowire.SizeBytes(len(v.String())) +} + +// appendStringValue encodes a string value as a String. +func appendStringValue(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendString(b, v.String()) + return b, nil +} + +// consumeStringValue decodes a string value as a String. +func consumeStringValue(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeString(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + out.n = n + return protoreflect.ValueOfString(string(v)), out, nil +} + +var coderStringValue = valueCoderFuncs{ + size: sizeStringValue, + marshal: appendStringValue, + unmarshal: consumeStringValue, + merge: mergeScalarValue, +} + +// appendStringValueValidateUTF8 encodes a string value as a String. +func appendStringValueValidateUTF8(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendString(b, v.String()) + if !utf8.ValidString(v.String()) { + return b, errInvalidUTF8{} + } + return b, nil +} + +// consumeStringValueValidateUTF8 decodes a string value as a String. +func consumeStringValueValidateUTF8(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeString(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + if !utf8.ValidString(v) { + return protoreflect.Value{}, out, errInvalidUTF8{} + } + out.n = n + return protoreflect.ValueOfString(string(v)), out, nil +} + +var coderStringValueValidateUTF8 = valueCoderFuncs{ + size: sizeStringValue, + marshal: appendStringValueValidateUTF8, + unmarshal: consumeStringValueValidateUTF8, + merge: mergeScalarValue, +} + +// sizeStringSliceValue returns the size of wire encoding a []string value as a repeated String. +func sizeStringSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeBytes(len(v.String())) + } + return size +} + +// appendStringSliceValue encodes a []string value as a repeated String. +func appendStringSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendString(b, v.String()) + } + return b, nil +} + +// consumeStringSliceValue wire decodes a []string value as a repeated String. +func consumeStringSliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp != protowire.BytesType { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeString(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfString(string(v))) + out.n = n + return listv, out, nil +} + +var coderStringSliceValue = valueCoderFuncs{ + size: sizeStringSliceValue, + marshal: appendStringSliceValue, + unmarshal: consumeStringSliceValue, + merge: mergeListValue, +} + +// sizeBytes returns the size of wire encoding a []byte pointer as a Bytes. +func sizeBytes(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Bytes() + return f.tagsize + protowire.SizeBytes(len(v)) +} + +// appendBytes wire encodes a []byte pointer as a Bytes. +func appendBytes(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Bytes() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendBytes(b, v) + return b, nil +} + +// consumeBytes wire decodes a []byte pointer as a Bytes. +func consumeBytes(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *p.Bytes() = append(emptyBuf[:], v...) + out.n = n + return out, nil +} + +var coderBytes = pointerCoderFuncs{ + size: sizeBytes, + marshal: appendBytes, + unmarshal: consumeBytes, + merge: mergeBytes, +} + +// appendBytesValidateUTF8 wire encodes a []byte pointer as a Bytes. +func appendBytesValidateUTF8(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Bytes() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendBytes(b, v) + if !utf8.Valid(v) { + return b, errInvalidUTF8{} + } + return b, nil +} + +// consumeBytesValidateUTF8 wire decodes a []byte pointer as a Bytes. +func consumeBytesValidateUTF8(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + if !utf8.Valid(v) { + return out, errInvalidUTF8{} + } + *p.Bytes() = append(emptyBuf[:], v...) + out.n = n + return out, nil +} + +var coderBytesValidateUTF8 = pointerCoderFuncs{ + size: sizeBytes, + marshal: appendBytesValidateUTF8, + unmarshal: consumeBytesValidateUTF8, + merge: mergeBytes, +} + +// sizeBytesNoZero returns the size of wire encoding a []byte pointer as a Bytes. +// The zero value is not encoded. +func sizeBytesNoZero(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := *p.Bytes() + if len(v) == 0 { + return 0 + } + return f.tagsize + protowire.SizeBytes(len(v)) +} + +// appendBytesNoZero wire encodes a []byte pointer as a Bytes. +// The zero value is not encoded. +func appendBytesNoZero(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Bytes() + if len(v) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendBytes(b, v) + return b, nil +} + +// consumeBytesNoZero wire decodes a []byte pointer as a Bytes. +// The zero value is not decoded. +func consumeBytesNoZero(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *p.Bytes() = append(([]byte)(nil), v...) + out.n = n + return out, nil +} + +var coderBytesNoZero = pointerCoderFuncs{ + size: sizeBytesNoZero, + marshal: appendBytesNoZero, + unmarshal: consumeBytesNoZero, + merge: mergeBytesNoZero, +} + +// appendBytesNoZeroValidateUTF8 wire encodes a []byte pointer as a Bytes. +// The zero value is not encoded. +func appendBytesNoZeroValidateUTF8(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + v := *p.Bytes() + if len(v) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendBytes(b, v) + if !utf8.Valid(v) { + return b, errInvalidUTF8{} + } + return b, nil +} + +// consumeBytesNoZeroValidateUTF8 wire decodes a []byte pointer as a Bytes. +func consumeBytesNoZeroValidateUTF8(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + if !utf8.Valid(v) { + return out, errInvalidUTF8{} + } + *p.Bytes() = append(([]byte)(nil), v...) + out.n = n + return out, nil +} + +var coderBytesNoZeroValidateUTF8 = pointerCoderFuncs{ + size: sizeBytesNoZero, + marshal: appendBytesNoZeroValidateUTF8, + unmarshal: consumeBytesNoZeroValidateUTF8, + merge: mergeBytesNoZero, +} + +// sizeBytesSlice returns the size of wire encoding a [][]byte pointer as a repeated Bytes. +func sizeBytesSlice(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + s := *p.BytesSlice() + for _, v := range s { + size += f.tagsize + protowire.SizeBytes(len(v)) + } + return size +} + +// appendBytesSlice encodes a [][]byte pointer as a repeated Bytes. +func appendBytesSlice(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.BytesSlice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendBytes(b, v) + } + return b, nil +} + +// consumeBytesSlice wire decodes a [][]byte pointer as a repeated Bytes. +func consumeBytesSlice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.BytesSlice() + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + *sp = append(*sp, append(emptyBuf[:], v...)) + out.n = n + return out, nil +} + +var coderBytesSlice = pointerCoderFuncs{ + size: sizeBytesSlice, + marshal: appendBytesSlice, + unmarshal: consumeBytesSlice, + merge: mergeBytesSlice, +} + +// appendBytesSliceValidateUTF8 encodes a [][]byte pointer as a repeated Bytes. +func appendBytesSliceValidateUTF8(b []byte, p pointer, f *coderFieldInfo, _ marshalOptions) ([]byte, error) { + s := *p.BytesSlice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendBytes(b, v) + if !utf8.Valid(v) { + return b, errInvalidUTF8{} + } + } + return b, nil +} + +// consumeBytesSliceValidateUTF8 wire decodes a [][]byte pointer as a repeated Bytes. +func consumeBytesSliceValidateUTF8(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.BytesSlice() + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + if !utf8.Valid(v) { + return out, errInvalidUTF8{} + } + *sp = append(*sp, append(emptyBuf[:], v...)) + out.n = n + return out, nil +} + +var coderBytesSliceValidateUTF8 = pointerCoderFuncs{ + size: sizeBytesSlice, + marshal: appendBytesSliceValidateUTF8, + unmarshal: consumeBytesSliceValidateUTF8, + merge: mergeBytesSlice, +} + +// sizeBytesValue returns the size of wire encoding a []byte value as a Bytes. +func sizeBytesValue(v protoreflect.Value, tagsize int, _ marshalOptions) int { + return tagsize + protowire.SizeBytes(len(v.Bytes())) +} + +// appendBytesValue encodes a []byte value as a Bytes. +func appendBytesValue(b []byte, v protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendBytes(b, v.Bytes()) + return b, nil +} + +// consumeBytesValue decodes a []byte value as a Bytes. +func consumeBytesValue(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + out.n = n + return protoreflect.ValueOfBytes(append(emptyBuf[:], v...)), out, nil +} + +var coderBytesValue = valueCoderFuncs{ + size: sizeBytesValue, + marshal: appendBytesValue, + unmarshal: consumeBytesValue, + merge: mergeBytesValue, +} + +// sizeBytesSliceValue returns the size of wire encoding a [][]byte value as a repeated Bytes. +func sizeBytesSliceValue(listv protoreflect.Value, tagsize int, _ marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeBytes(len(v.Bytes())) + } + return size +} + +// appendBytesSliceValue encodes a [][]byte value as a repeated Bytes. +func appendBytesSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, _ marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendBytes(b, v.Bytes()) + } + return b, nil +} + +// consumeBytesSliceValue wire decodes a [][]byte value as a repeated Bytes. +func consumeBytesSliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, _ unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp != protowire.BytesType { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfBytes(append(emptyBuf[:], v...))) + out.n = n + return listv, out, nil +} + +var coderBytesSliceValue = valueCoderFuncs{ + size: sizeBytesSliceValue, + marshal: appendBytesSliceValue, + unmarshal: consumeBytesSliceValue, + merge: mergeBytesListValue, +} + +// We append to an empty array rather than a nil []byte to get non-nil zero-length byte slices. +var emptyBuf [0]byte + +var wireTypes = map[protoreflect.Kind]protowire.Type{ + protoreflect.BoolKind: protowire.VarintType, + protoreflect.EnumKind: protowire.VarintType, + protoreflect.Int32Kind: protowire.VarintType, + protoreflect.Sint32Kind: protowire.VarintType, + protoreflect.Uint32Kind: protowire.VarintType, + protoreflect.Int64Kind: protowire.VarintType, + protoreflect.Sint64Kind: protowire.VarintType, + protoreflect.Uint64Kind: protowire.VarintType, + protoreflect.Sfixed32Kind: protowire.Fixed32Type, + protoreflect.Fixed32Kind: protowire.Fixed32Type, + protoreflect.FloatKind: protowire.Fixed32Type, + protoreflect.Sfixed64Kind: protowire.Fixed64Type, + protoreflect.Fixed64Kind: protowire.Fixed64Type, + protoreflect.DoubleKind: protowire.Fixed64Type, + protoreflect.StringKind: protowire.BytesType, + protoreflect.BytesKind: protowire.BytesType, + protoreflect.MessageKind: protowire.BytesType, + protoreflect.GroupKind: protowire.StartGroupType, +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_map.go b/vendor/google.golang.org/protobuf/internal/impl/codec_map.go new file mode 100644 index 000000000..35a67c25b --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_map.go @@ -0,0 +1,388 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "errors" + "reflect" + "sort" + + "google.golang.org/protobuf/encoding/protowire" + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +type mapInfo struct { + goType reflect.Type + keyWiretag uint64 + valWiretag uint64 + keyFuncs valueCoderFuncs + valFuncs valueCoderFuncs + keyZero pref.Value + keyKind pref.Kind + conv *mapConverter +} + +func encoderFuncsForMap(fd pref.FieldDescriptor, ft reflect.Type) (valueMessage *MessageInfo, funcs pointerCoderFuncs) { + // TODO: Consider generating specialized map coders. + keyField := fd.MapKey() + valField := fd.MapValue() + keyWiretag := protowire.EncodeTag(1, wireTypes[keyField.Kind()]) + valWiretag := protowire.EncodeTag(2, wireTypes[valField.Kind()]) + keyFuncs := encoderFuncsForValue(keyField) + valFuncs := encoderFuncsForValue(valField) + conv := newMapConverter(ft, fd) + + mapi := &mapInfo{ + goType: ft, + keyWiretag: keyWiretag, + valWiretag: valWiretag, + keyFuncs: keyFuncs, + valFuncs: valFuncs, + keyZero: keyField.Default(), + keyKind: keyField.Kind(), + conv: conv, + } + if valField.Kind() == pref.MessageKind { + valueMessage = getMessageInfo(ft.Elem()) + } + + funcs = pointerCoderFuncs{ + size: func(p pointer, f *coderFieldInfo, opts marshalOptions) int { + return sizeMap(p.AsValueOf(ft).Elem(), mapi, f, opts) + }, + marshal: func(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + return appendMap(b, p.AsValueOf(ft).Elem(), mapi, f, opts) + }, + unmarshal: func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + mp := p.AsValueOf(ft) + if mp.Elem().IsNil() { + mp.Elem().Set(reflect.MakeMap(mapi.goType)) + } + if f.mi == nil { + return consumeMap(b, mp.Elem(), wtyp, mapi, f, opts) + } else { + return consumeMapOfMessage(b, mp.Elem(), wtyp, mapi, f, opts) + } + }, + } + switch valField.Kind() { + case pref.MessageKind: + funcs.merge = mergeMapOfMessage + case pref.BytesKind: + funcs.merge = mergeMapOfBytes + default: + funcs.merge = mergeMap + } + if valFuncs.isInit != nil { + funcs.isInit = func(p pointer, f *coderFieldInfo) error { + return isInitMap(p.AsValueOf(ft).Elem(), mapi, f) + } + } + return valueMessage, funcs +} + +const ( + mapKeyTagSize = 1 // field 1, tag size 1. + mapValTagSize = 1 // field 2, tag size 2. +) + +func sizeMap(mapv reflect.Value, mapi *mapInfo, f *coderFieldInfo, opts marshalOptions) int { + if mapv.Len() == 0 { + return 0 + } + n := 0 + iter := mapRange(mapv) + for iter.Next() { + key := mapi.conv.keyConv.PBValueOf(iter.Key()).MapKey() + keySize := mapi.keyFuncs.size(key.Value(), mapKeyTagSize, opts) + var valSize int + value := mapi.conv.valConv.PBValueOf(iter.Value()) + if f.mi == nil { + valSize = mapi.valFuncs.size(value, mapValTagSize, opts) + } else { + p := pointerOfValue(iter.Value()) + valSize += mapValTagSize + valSize += protowire.SizeBytes(f.mi.sizePointer(p, opts)) + } + n += f.tagsize + protowire.SizeBytes(keySize+valSize) + } + return n +} + +func consumeMap(b []byte, mapv reflect.Value, wtyp protowire.Type, mapi *mapInfo, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + var ( + key = mapi.keyZero + val = mapi.conv.valConv.New() + ) + for len(b) > 0 { + num, wtyp, n := protowire.ConsumeTag(b) + if n < 0 { + return out, protowire.ParseError(n) + } + if num > protowire.MaxValidNumber { + return out, errors.New("invalid field number") + } + b = b[n:] + err := errUnknown + switch num { + case 1: + var v pref.Value + var o unmarshalOutput + v, o, err = mapi.keyFuncs.unmarshal(b, key, num, wtyp, opts) + if err != nil { + break + } + key = v + n = o.n + case 2: + var v pref.Value + var o unmarshalOutput + v, o, err = mapi.valFuncs.unmarshal(b, val, num, wtyp, opts) + if err != nil { + break + } + val = v + n = o.n + } + if err == errUnknown { + n = protowire.ConsumeFieldValue(num, wtyp, b) + if n < 0 { + return out, protowire.ParseError(n) + } + } else if err != nil { + return out, err + } + b = b[n:] + } + mapv.SetMapIndex(mapi.conv.keyConv.GoValueOf(key), mapi.conv.valConv.GoValueOf(val)) + out.n = n + return out, nil +} + +func consumeMapOfMessage(b []byte, mapv reflect.Value, wtyp protowire.Type, mapi *mapInfo, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + var ( + key = mapi.keyZero + val = reflect.New(f.mi.GoReflectType.Elem()) + ) + for len(b) > 0 { + num, wtyp, n := protowire.ConsumeTag(b) + if n < 0 { + return out, protowire.ParseError(n) + } + if num > protowire.MaxValidNumber { + return out, errors.New("invalid field number") + } + b = b[n:] + err := errUnknown + switch num { + case 1: + var v pref.Value + var o unmarshalOutput + v, o, err = mapi.keyFuncs.unmarshal(b, key, num, wtyp, opts) + if err != nil { + break + } + key = v + n = o.n + case 2: + if wtyp != protowire.BytesType { + break + } + var v []byte + v, n = protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + var o unmarshalOutput + o, err = f.mi.unmarshalPointer(v, pointerOfValue(val), 0, opts) + if o.initialized { + // Consider this map item initialized so long as we see + // an initialized value. + out.initialized = true + } + } + if err == errUnknown { + n = protowire.ConsumeFieldValue(num, wtyp, b) + if n < 0 { + return out, protowire.ParseError(n) + } + } else if err != nil { + return out, err + } + b = b[n:] + } + mapv.SetMapIndex(mapi.conv.keyConv.GoValueOf(key), val) + out.n = n + return out, nil +} + +func appendMapItem(b []byte, keyrv, valrv reflect.Value, mapi *mapInfo, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + if f.mi == nil { + key := mapi.conv.keyConv.PBValueOf(keyrv).MapKey() + val := mapi.conv.valConv.PBValueOf(valrv) + size := 0 + size += mapi.keyFuncs.size(key.Value(), mapKeyTagSize, opts) + size += mapi.valFuncs.size(val, mapValTagSize, opts) + b = protowire.AppendVarint(b, uint64(size)) + b, err := mapi.keyFuncs.marshal(b, key.Value(), mapi.keyWiretag, opts) + if err != nil { + return nil, err + } + return mapi.valFuncs.marshal(b, val, mapi.valWiretag, opts) + } else { + key := mapi.conv.keyConv.PBValueOf(keyrv).MapKey() + val := pointerOfValue(valrv) + valSize := f.mi.sizePointer(val, opts) + size := 0 + size += mapi.keyFuncs.size(key.Value(), mapKeyTagSize, opts) + size += mapValTagSize + protowire.SizeBytes(valSize) + b = protowire.AppendVarint(b, uint64(size)) + b, err := mapi.keyFuncs.marshal(b, key.Value(), mapi.keyWiretag, opts) + if err != nil { + return nil, err + } + b = protowire.AppendVarint(b, mapi.valWiretag) + b = protowire.AppendVarint(b, uint64(valSize)) + return f.mi.marshalAppendPointer(b, val, opts) + } +} + +func appendMap(b []byte, mapv reflect.Value, mapi *mapInfo, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + if mapv.Len() == 0 { + return b, nil + } + if opts.Deterministic() { + return appendMapDeterministic(b, mapv, mapi, f, opts) + } + iter := mapRange(mapv) + for iter.Next() { + var err error + b = protowire.AppendVarint(b, f.wiretag) + b, err = appendMapItem(b, iter.Key(), iter.Value(), mapi, f, opts) + if err != nil { + return b, err + } + } + return b, nil +} + +func appendMapDeterministic(b []byte, mapv reflect.Value, mapi *mapInfo, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + keys := mapv.MapKeys() + sort.Slice(keys, func(i, j int) bool { + switch keys[i].Kind() { + case reflect.Bool: + return !keys[i].Bool() && keys[j].Bool() + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + return keys[i].Int() < keys[j].Int() + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + return keys[i].Uint() < keys[j].Uint() + case reflect.Float32, reflect.Float64: + return keys[i].Float() < keys[j].Float() + case reflect.String: + return keys[i].String() < keys[j].String() + default: + panic("invalid kind: " + keys[i].Kind().String()) + } + }) + for _, key := range keys { + var err error + b = protowire.AppendVarint(b, f.wiretag) + b, err = appendMapItem(b, key, mapv.MapIndex(key), mapi, f, opts) + if err != nil { + return b, err + } + } + return b, nil +} + +func isInitMap(mapv reflect.Value, mapi *mapInfo, f *coderFieldInfo) error { + if mi := f.mi; mi != nil { + mi.init() + if !mi.needsInitCheck { + return nil + } + iter := mapRange(mapv) + for iter.Next() { + val := pointerOfValue(iter.Value()) + if err := mi.checkInitializedPointer(val); err != nil { + return err + } + } + } else { + iter := mapRange(mapv) + for iter.Next() { + val := mapi.conv.valConv.PBValueOf(iter.Value()) + if err := mapi.valFuncs.isInit(val); err != nil { + return err + } + } + } + return nil +} + +func mergeMap(dst, src pointer, f *coderFieldInfo, opts mergeOptions) { + dstm := dst.AsValueOf(f.ft).Elem() + srcm := src.AsValueOf(f.ft).Elem() + if srcm.Len() == 0 { + return + } + if dstm.IsNil() { + dstm.Set(reflect.MakeMap(f.ft)) + } + iter := mapRange(srcm) + for iter.Next() { + dstm.SetMapIndex(iter.Key(), iter.Value()) + } +} + +func mergeMapOfBytes(dst, src pointer, f *coderFieldInfo, opts mergeOptions) { + dstm := dst.AsValueOf(f.ft).Elem() + srcm := src.AsValueOf(f.ft).Elem() + if srcm.Len() == 0 { + return + } + if dstm.IsNil() { + dstm.Set(reflect.MakeMap(f.ft)) + } + iter := mapRange(srcm) + for iter.Next() { + dstm.SetMapIndex(iter.Key(), reflect.ValueOf(append(emptyBuf[:], iter.Value().Bytes()...))) + } +} + +func mergeMapOfMessage(dst, src pointer, f *coderFieldInfo, opts mergeOptions) { + dstm := dst.AsValueOf(f.ft).Elem() + srcm := src.AsValueOf(f.ft).Elem() + if srcm.Len() == 0 { + return + } + if dstm.IsNil() { + dstm.Set(reflect.MakeMap(f.ft)) + } + iter := mapRange(srcm) + for iter.Next() { + val := reflect.New(f.ft.Elem().Elem()) + if f.mi != nil { + f.mi.mergePointer(pointerOfValue(val), pointerOfValue(iter.Value()), opts) + } else { + opts.Merge(asMessage(val), asMessage(iter.Value())) + } + dstm.SetMapIndex(iter.Key(), val) + } +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_map_go111.go b/vendor/google.golang.org/protobuf/internal/impl/codec_map_go111.go new file mode 100644 index 000000000..2706bb67f --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_map_go111.go @@ -0,0 +1,37 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !go1.12 + +package impl + +import "reflect" + +type mapIter struct { + v reflect.Value + keys []reflect.Value +} + +// mapRange provides a less-efficient equivalent to +// the Go 1.12 reflect.Value.MapRange method. +func mapRange(v reflect.Value) *mapIter { + return &mapIter{v: v} +} + +func (i *mapIter) Next() bool { + if i.keys == nil { + i.keys = i.v.MapKeys() + } else { + i.keys = i.keys[1:] + } + return len(i.keys) > 0 +} + +func (i *mapIter) Key() reflect.Value { + return i.keys[0] +} + +func (i *mapIter) Value() reflect.Value { + return i.v.MapIndex(i.keys[0]) +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go b/vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go new file mode 100644 index 000000000..1533ef600 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go @@ -0,0 +1,11 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build go1.12 + +package impl + +import "reflect" + +func mapRange(v reflect.Value) *reflect.MapIter { return v.MapRange() } diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_message.go b/vendor/google.golang.org/protobuf/internal/impl/codec_message.go new file mode 100644 index 000000000..0e176d565 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_message.go @@ -0,0 +1,159 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + "sort" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/fieldsort" + pref "google.golang.org/protobuf/reflect/protoreflect" + piface "google.golang.org/protobuf/runtime/protoiface" +) + +// coderMessageInfo contains per-message information used by the fast-path functions. +// This is a different type from MessageInfo to keep MessageInfo as general-purpose as +// possible. +type coderMessageInfo struct { + methods piface.Methods + + orderedCoderFields []*coderFieldInfo + denseCoderFields []*coderFieldInfo + coderFields map[protowire.Number]*coderFieldInfo + sizecacheOffset offset + unknownOffset offset + extensionOffset offset + needsInitCheck bool + isMessageSet bool + numRequiredFields uint8 +} + +type coderFieldInfo struct { + funcs pointerCoderFuncs // fast-path per-field functions + mi *MessageInfo // field's message + ft reflect.Type + validation validationInfo // information used by message validation + num pref.FieldNumber // field number + offset offset // struct field offset + wiretag uint64 // field tag (number + wire type) + tagsize int // size of the varint-encoded tag + isPointer bool // true if IsNil may be called on the struct field + isRequired bool // true if field is required +} + +func (mi *MessageInfo) makeCoderMethods(t reflect.Type, si structInfo) { + mi.sizecacheOffset = si.sizecacheOffset + mi.unknownOffset = si.unknownOffset + mi.extensionOffset = si.extensionOffset + + mi.coderFields = make(map[protowire.Number]*coderFieldInfo) + fields := mi.Desc.Fields() + preallocFields := make([]coderFieldInfo, fields.Len()) + for i := 0; i < fields.Len(); i++ { + fd := fields.Get(i) + + fs := si.fieldsByNumber[fd.Number()] + isOneof := fd.ContainingOneof() != nil && !fd.ContainingOneof().IsSynthetic() + if isOneof { + fs = si.oneofsByName[fd.ContainingOneof().Name()] + } + ft := fs.Type + var wiretag uint64 + if !fd.IsPacked() { + wiretag = protowire.EncodeTag(fd.Number(), wireTypes[fd.Kind()]) + } else { + wiretag = protowire.EncodeTag(fd.Number(), protowire.BytesType) + } + var fieldOffset offset + var funcs pointerCoderFuncs + var childMessage *MessageInfo + switch { + case isOneof: + fieldOffset = offsetOf(fs, mi.Exporter) + case fd.IsWeak(): + fieldOffset = si.weakOffset + funcs = makeWeakMessageFieldCoder(fd) + default: + fieldOffset = offsetOf(fs, mi.Exporter) + childMessage, funcs = fieldCoder(fd, ft) + } + cf := &preallocFields[i] + *cf = coderFieldInfo{ + num: fd.Number(), + offset: fieldOffset, + wiretag: wiretag, + ft: ft, + tagsize: protowire.SizeVarint(wiretag), + funcs: funcs, + mi: childMessage, + validation: newFieldValidationInfo(mi, si, fd, ft), + isPointer: fd.Cardinality() == pref.Repeated || fd.HasPresence(), + isRequired: fd.Cardinality() == pref.Required, + } + mi.orderedCoderFields = append(mi.orderedCoderFields, cf) + mi.coderFields[cf.num] = cf + } + for i, oneofs := 0, mi.Desc.Oneofs(); i < oneofs.Len(); i++ { + if od := oneofs.Get(i); !od.IsSynthetic() { + mi.initOneofFieldCoders(od, si) + } + } + if messageset.IsMessageSet(mi.Desc) { + if !mi.extensionOffset.IsValid() { + panic(fmt.Sprintf("%v: MessageSet with no extensions field", mi.Desc.FullName())) + } + if !mi.unknownOffset.IsValid() { + panic(fmt.Sprintf("%v: MessageSet with no unknown field", mi.Desc.FullName())) + } + mi.isMessageSet = true + } + sort.Slice(mi.orderedCoderFields, func(i, j int) bool { + return mi.orderedCoderFields[i].num < mi.orderedCoderFields[j].num + }) + + var maxDense pref.FieldNumber + for _, cf := range mi.orderedCoderFields { + if cf.num >= 16 && cf.num >= 2*maxDense { + break + } + maxDense = cf.num + } + mi.denseCoderFields = make([]*coderFieldInfo, maxDense+1) + for _, cf := range mi.orderedCoderFields { + if int(cf.num) >= len(mi.denseCoderFields) { + break + } + mi.denseCoderFields[cf.num] = cf + } + + // To preserve compatibility with historic wire output, marshal oneofs last. + if mi.Desc.Oneofs().Len() > 0 { + sort.Slice(mi.orderedCoderFields, func(i, j int) bool { + fi := fields.ByNumber(mi.orderedCoderFields[i].num) + fj := fields.ByNumber(mi.orderedCoderFields[j].num) + return fieldsort.Less(fi, fj) + }) + } + + mi.needsInitCheck = needsInitCheck(mi.Desc) + if mi.methods.Marshal == nil && mi.methods.Size == nil { + mi.methods.Flags |= piface.SupportMarshalDeterministic + mi.methods.Marshal = mi.marshal + mi.methods.Size = mi.size + } + if mi.methods.Unmarshal == nil { + mi.methods.Flags |= piface.SupportUnmarshalDiscardUnknown + mi.methods.Unmarshal = mi.unmarshal + } + if mi.methods.CheckInitialized == nil { + mi.methods.CheckInitialized = mi.checkInitialized + } + if mi.methods.Merge == nil { + mi.methods.Merge = mi.merge + } +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_messageset.go b/vendor/google.golang.org/protobuf/internal/impl/codec_messageset.go new file mode 100644 index 000000000..cfb68e12f --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_messageset.go @@ -0,0 +1,120 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "sort" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/flags" +) + +func sizeMessageSet(mi *MessageInfo, p pointer, opts marshalOptions) (size int) { + if !flags.ProtoLegacy { + return 0 + } + + ext := *p.Apply(mi.extensionOffset).Extensions() + for _, x := range ext { + xi := getExtensionFieldInfo(x.Type()) + if xi.funcs.size == nil { + continue + } + num, _ := protowire.DecodeTag(xi.wiretag) + size += messageset.SizeField(num) + size += xi.funcs.size(x.Value(), protowire.SizeTag(messageset.FieldMessage), opts) + } + + unknown := *p.Apply(mi.unknownOffset).Bytes() + size += messageset.SizeUnknown(unknown) + + return size +} + +func marshalMessageSet(mi *MessageInfo, b []byte, p pointer, opts marshalOptions) ([]byte, error) { + if !flags.ProtoLegacy { + return b, errors.New("no support for message_set_wire_format") + } + + ext := *p.Apply(mi.extensionOffset).Extensions() + switch len(ext) { + case 0: + case 1: + // Fast-path for one extension: Don't bother sorting the keys. + for _, x := range ext { + var err error + b, err = marshalMessageSetField(mi, b, x, opts) + if err != nil { + return b, err + } + } + default: + // Sort the keys to provide a deterministic encoding. + // Not sure this is required, but the old code does it. + keys := make([]int, 0, len(ext)) + for k := range ext { + keys = append(keys, int(k)) + } + sort.Ints(keys) + for _, k := range keys { + var err error + b, err = marshalMessageSetField(mi, b, ext[int32(k)], opts) + if err != nil { + return b, err + } + } + } + + unknown := *p.Apply(mi.unknownOffset).Bytes() + b, err := messageset.AppendUnknown(b, unknown) + if err != nil { + return b, err + } + + return b, nil +} + +func marshalMessageSetField(mi *MessageInfo, b []byte, x ExtensionField, opts marshalOptions) ([]byte, error) { + xi := getExtensionFieldInfo(x.Type()) + num, _ := protowire.DecodeTag(xi.wiretag) + b = messageset.AppendFieldStart(b, num) + b, err := xi.funcs.marshal(b, x.Value(), protowire.EncodeTag(messageset.FieldMessage, protowire.BytesType), opts) + if err != nil { + return b, err + } + b = messageset.AppendFieldEnd(b) + return b, nil +} + +func unmarshalMessageSet(mi *MessageInfo, b []byte, p pointer, opts unmarshalOptions) (out unmarshalOutput, err error) { + if !flags.ProtoLegacy { + return out, errors.New("no support for message_set_wire_format") + } + + ep := p.Apply(mi.extensionOffset).Extensions() + if *ep == nil { + *ep = make(map[int32]ExtensionField) + } + ext := *ep + unknown := p.Apply(mi.unknownOffset).Bytes() + initialized := true + err = messageset.Unmarshal(b, true, func(num protowire.Number, v []byte) error { + o, err := mi.unmarshalExtension(v, num, protowire.BytesType, ext, opts) + if err == errUnknown { + *unknown = protowire.AppendTag(*unknown, num, protowire.BytesType) + *unknown = append(*unknown, v...) + return nil + } + if !o.initialized { + initialized = false + } + return err + }) + out.n = len(b) + out.initialized = initialized + return out, err +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_reflect.go b/vendor/google.golang.org/protobuf/internal/impl/codec_reflect.go new file mode 100644 index 000000000..86f7dc3c9 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_reflect.go @@ -0,0 +1,209 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build purego appengine + +package impl + +import ( + "reflect" + + "google.golang.org/protobuf/encoding/protowire" +) + +func sizeEnum(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := p.v.Elem().Int() + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +func appendEnum(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := p.v.Elem().Int() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +func consumeEnum(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return out, protowire.ParseError(n) + } + p.v.Elem().SetInt(int64(v)) + out.n = n + return out, nil +} + +func mergeEnum(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + dst.v.Elem().Set(src.v.Elem()) +} + +var coderEnum = pointerCoderFuncs{ + size: sizeEnum, + marshal: appendEnum, + unmarshal: consumeEnum, + merge: mergeEnum, +} + +func sizeEnumNoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + if p.v.Elem().Int() == 0 { + return 0 + } + return sizeEnum(p, f, opts) +} + +func appendEnumNoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + if p.v.Elem().Int() == 0 { + return b, nil + } + return appendEnum(b, p, f, opts) +} + +func mergeEnumNoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + if src.v.Elem().Int() != 0 { + dst.v.Elem().Set(src.v.Elem()) + } +} + +var coderEnumNoZero = pointerCoderFuncs{ + size: sizeEnumNoZero, + marshal: appendEnumNoZero, + unmarshal: consumeEnum, + merge: mergeEnumNoZero, +} + +func sizeEnumPtr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + return sizeEnum(pointer{p.v.Elem()}, f, opts) +} + +func appendEnumPtr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + return appendEnum(b, pointer{p.v.Elem()}, f, opts) +} + +func consumeEnumPtr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + if p.v.Elem().IsNil() { + p.v.Elem().Set(reflect.New(p.v.Elem().Type().Elem())) + } + return consumeEnum(b, pointer{p.v.Elem()}, wtyp, f, opts) +} + +func mergeEnumPtr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + if !src.v.Elem().IsNil() { + v := reflect.New(dst.v.Type().Elem().Elem()) + v.Elem().Set(src.v.Elem().Elem()) + dst.v.Elem().Set(v) + } +} + +var coderEnumPtr = pointerCoderFuncs{ + size: sizeEnumPtr, + marshal: appendEnumPtr, + unmarshal: consumeEnumPtr, + merge: mergeEnumPtr, +} + +func sizeEnumSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := p.v.Elem() + for i, llen := 0, s.Len(); i < llen; i++ { + size += protowire.SizeVarint(uint64(s.Index(i).Int())) + f.tagsize + } + return size +} + +func appendEnumSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := p.v.Elem() + for i, llen := 0, s.Len(); i < llen; i++ { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(s.Index(i).Int())) + } + return b, nil +} + +func consumeEnumSlice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + s := p.v.Elem() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, protowire.ParseError(n) + } + for len(b) > 0 { + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return out, protowire.ParseError(n) + } + rv := reflect.New(s.Type().Elem()).Elem() + rv.SetInt(int64(v)) + s.Set(reflect.Append(s, rv)) + b = b[n:] + } + out.n = n + return out, nil + } + if wtyp != protowire.VarintType { + return out, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return out, protowire.ParseError(n) + } + rv := reflect.New(s.Type().Elem()).Elem() + rv.SetInt(int64(v)) + s.Set(reflect.Append(s, rv)) + out.n = n + return out, nil +} + +func mergeEnumSlice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + dst.v.Elem().Set(reflect.AppendSlice(dst.v.Elem(), src.v.Elem())) +} + +var coderEnumSlice = pointerCoderFuncs{ + size: sizeEnumSlice, + marshal: appendEnumSlice, + unmarshal: consumeEnumSlice, + merge: mergeEnumSlice, +} + +func sizeEnumPackedSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := p.v.Elem() + llen := s.Len() + if llen == 0 { + return 0 + } + n := 0 + for i := 0; i < llen; i++ { + n += protowire.SizeVarint(uint64(s.Index(i).Int())) + } + return f.tagsize + protowire.SizeBytes(n) +} + +func appendEnumPackedSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := p.v.Elem() + llen := s.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := 0 + for i := 0; i < llen; i++ { + n += protowire.SizeVarint(uint64(s.Index(i).Int())) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + b = protowire.AppendVarint(b, uint64(s.Index(i).Int())) + } + return b, nil +} + +var coderEnumPackedSlice = pointerCoderFuncs{ + size: sizeEnumPackedSlice, + marshal: appendEnumPackedSlice, + unmarshal: consumeEnumSlice, + merge: mergeEnumSlice, +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_tables.go b/vendor/google.golang.org/protobuf/internal/impl/codec_tables.go new file mode 100644 index 000000000..e89971238 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_tables.go @@ -0,0 +1,557 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/strs" + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +// pointerCoderFuncs is a set of pointer encoding functions. +type pointerCoderFuncs struct { + mi *MessageInfo + size func(p pointer, f *coderFieldInfo, opts marshalOptions) int + marshal func(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) + unmarshal func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) + isInit func(p pointer, f *coderFieldInfo) error + merge func(dst, src pointer, f *coderFieldInfo, opts mergeOptions) +} + +// valueCoderFuncs is a set of protoreflect.Value encoding functions. +type valueCoderFuncs struct { + size func(v pref.Value, tagsize int, opts marshalOptions) int + marshal func(b []byte, v pref.Value, wiretag uint64, opts marshalOptions) ([]byte, error) + unmarshal func(b []byte, v pref.Value, num protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (pref.Value, unmarshalOutput, error) + isInit func(v pref.Value) error + merge func(dst, src pref.Value, opts mergeOptions) pref.Value +} + +// fieldCoder returns pointer functions for a field, used for operating on +// struct fields. +func fieldCoder(fd pref.FieldDescriptor, ft reflect.Type) (*MessageInfo, pointerCoderFuncs) { + switch { + case fd.IsMap(): + return encoderFuncsForMap(fd, ft) + case fd.Cardinality() == pref.Repeated && !fd.IsPacked(): + // Repeated fields (not packed). + if ft.Kind() != reflect.Slice { + break + } + ft := ft.Elem() + switch fd.Kind() { + case pref.BoolKind: + if ft.Kind() == reflect.Bool { + return nil, coderBoolSlice + } + case pref.EnumKind: + if ft.Kind() == reflect.Int32 { + return nil, coderEnumSlice + } + case pref.Int32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderInt32Slice + } + case pref.Sint32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSint32Slice + } + case pref.Uint32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderUint32Slice + } + case pref.Int64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderInt64Slice + } + case pref.Sint64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSint64Slice + } + case pref.Uint64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderUint64Slice + } + case pref.Sfixed32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSfixed32Slice + } + case pref.Fixed32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderFixed32Slice + } + case pref.FloatKind: + if ft.Kind() == reflect.Float32 { + return nil, coderFloatSlice + } + case pref.Sfixed64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSfixed64Slice + } + case pref.Fixed64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderFixed64Slice + } + case pref.DoubleKind: + if ft.Kind() == reflect.Float64 { + return nil, coderDoubleSlice + } + case pref.StringKind: + if ft.Kind() == reflect.String && strs.EnforceUTF8(fd) { + return nil, coderStringSliceValidateUTF8 + } + if ft.Kind() == reflect.String { + return nil, coderStringSlice + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 && strs.EnforceUTF8(fd) { + return nil, coderBytesSliceValidateUTF8 + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 { + return nil, coderBytesSlice + } + case pref.BytesKind: + if ft.Kind() == reflect.String { + return nil, coderStringSlice + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 { + return nil, coderBytesSlice + } + case pref.MessageKind: + return getMessageInfo(ft), makeMessageSliceFieldCoder(fd, ft) + case pref.GroupKind: + return getMessageInfo(ft), makeGroupSliceFieldCoder(fd, ft) + } + case fd.Cardinality() == pref.Repeated && fd.IsPacked(): + // Packed repeated fields. + // + // Only repeated fields of primitive numeric types + // (Varint, Fixed32, or Fixed64 wire type) can be packed. + if ft.Kind() != reflect.Slice { + break + } + ft := ft.Elem() + switch fd.Kind() { + case pref.BoolKind: + if ft.Kind() == reflect.Bool { + return nil, coderBoolPackedSlice + } + case pref.EnumKind: + if ft.Kind() == reflect.Int32 { + return nil, coderEnumPackedSlice + } + case pref.Int32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderInt32PackedSlice + } + case pref.Sint32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSint32PackedSlice + } + case pref.Uint32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderUint32PackedSlice + } + case pref.Int64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderInt64PackedSlice + } + case pref.Sint64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSint64PackedSlice + } + case pref.Uint64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderUint64PackedSlice + } + case pref.Sfixed32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSfixed32PackedSlice + } + case pref.Fixed32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderFixed32PackedSlice + } + case pref.FloatKind: + if ft.Kind() == reflect.Float32 { + return nil, coderFloatPackedSlice + } + case pref.Sfixed64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSfixed64PackedSlice + } + case pref.Fixed64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderFixed64PackedSlice + } + case pref.DoubleKind: + if ft.Kind() == reflect.Float64 { + return nil, coderDoublePackedSlice + } + } + case fd.Kind() == pref.MessageKind: + return getMessageInfo(ft), makeMessageFieldCoder(fd, ft) + case fd.Kind() == pref.GroupKind: + return getMessageInfo(ft), makeGroupFieldCoder(fd, ft) + case fd.Syntax() == pref.Proto3 && fd.ContainingOneof() == nil: + // Populated oneof fields always encode even if set to the zero value, + // which normally are not encoded in proto3. + switch fd.Kind() { + case pref.BoolKind: + if ft.Kind() == reflect.Bool { + return nil, coderBoolNoZero + } + case pref.EnumKind: + if ft.Kind() == reflect.Int32 { + return nil, coderEnumNoZero + } + case pref.Int32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderInt32NoZero + } + case pref.Sint32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSint32NoZero + } + case pref.Uint32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderUint32NoZero + } + case pref.Int64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderInt64NoZero + } + case pref.Sint64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSint64NoZero + } + case pref.Uint64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderUint64NoZero + } + case pref.Sfixed32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSfixed32NoZero + } + case pref.Fixed32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderFixed32NoZero + } + case pref.FloatKind: + if ft.Kind() == reflect.Float32 { + return nil, coderFloatNoZero + } + case pref.Sfixed64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSfixed64NoZero + } + case pref.Fixed64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderFixed64NoZero + } + case pref.DoubleKind: + if ft.Kind() == reflect.Float64 { + return nil, coderDoubleNoZero + } + case pref.StringKind: + if ft.Kind() == reflect.String && strs.EnforceUTF8(fd) { + return nil, coderStringNoZeroValidateUTF8 + } + if ft.Kind() == reflect.String { + return nil, coderStringNoZero + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 && strs.EnforceUTF8(fd) { + return nil, coderBytesNoZeroValidateUTF8 + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 { + return nil, coderBytesNoZero + } + case pref.BytesKind: + if ft.Kind() == reflect.String { + return nil, coderStringNoZero + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 { + return nil, coderBytesNoZero + } + } + case ft.Kind() == reflect.Ptr: + ft := ft.Elem() + switch fd.Kind() { + case pref.BoolKind: + if ft.Kind() == reflect.Bool { + return nil, coderBoolPtr + } + case pref.EnumKind: + if ft.Kind() == reflect.Int32 { + return nil, coderEnumPtr + } + case pref.Int32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderInt32Ptr + } + case pref.Sint32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSint32Ptr + } + case pref.Uint32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderUint32Ptr + } + case pref.Int64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderInt64Ptr + } + case pref.Sint64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSint64Ptr + } + case pref.Uint64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderUint64Ptr + } + case pref.Sfixed32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSfixed32Ptr + } + case pref.Fixed32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderFixed32Ptr + } + case pref.FloatKind: + if ft.Kind() == reflect.Float32 { + return nil, coderFloatPtr + } + case pref.Sfixed64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSfixed64Ptr + } + case pref.Fixed64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderFixed64Ptr + } + case pref.DoubleKind: + if ft.Kind() == reflect.Float64 { + return nil, coderDoublePtr + } + case pref.StringKind: + if ft.Kind() == reflect.String && strs.EnforceUTF8(fd) { + return nil, coderStringPtrValidateUTF8 + } + if ft.Kind() == reflect.String { + return nil, coderStringPtr + } + case pref.BytesKind: + if ft.Kind() == reflect.String { + return nil, coderStringPtr + } + } + default: + switch fd.Kind() { + case pref.BoolKind: + if ft.Kind() == reflect.Bool { + return nil, coderBool + } + case pref.EnumKind: + if ft.Kind() == reflect.Int32 { + return nil, coderEnum + } + case pref.Int32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderInt32 + } + case pref.Sint32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSint32 + } + case pref.Uint32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderUint32 + } + case pref.Int64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderInt64 + } + case pref.Sint64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSint64 + } + case pref.Uint64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderUint64 + } + case pref.Sfixed32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSfixed32 + } + case pref.Fixed32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderFixed32 + } + case pref.FloatKind: + if ft.Kind() == reflect.Float32 { + return nil, coderFloat + } + case pref.Sfixed64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSfixed64 + } + case pref.Fixed64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderFixed64 + } + case pref.DoubleKind: + if ft.Kind() == reflect.Float64 { + return nil, coderDouble + } + case pref.StringKind: + if ft.Kind() == reflect.String && strs.EnforceUTF8(fd) { + return nil, coderStringValidateUTF8 + } + if ft.Kind() == reflect.String { + return nil, coderString + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 && strs.EnforceUTF8(fd) { + return nil, coderBytesValidateUTF8 + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 { + return nil, coderBytes + } + case pref.BytesKind: + if ft.Kind() == reflect.String { + return nil, coderString + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 { + return nil, coderBytes + } + } + } + panic(fmt.Sprintf("invalid type: no encoder for %v %v %v/%v", fd.FullName(), fd.Cardinality(), fd.Kind(), ft)) +} + +// encoderFuncsForValue returns value functions for a field, used for +// extension values and map encoding. +func encoderFuncsForValue(fd pref.FieldDescriptor) valueCoderFuncs { + switch { + case fd.Cardinality() == pref.Repeated && !fd.IsPacked(): + switch fd.Kind() { + case pref.BoolKind: + return coderBoolSliceValue + case pref.EnumKind: + return coderEnumSliceValue + case pref.Int32Kind: + return coderInt32SliceValue + case pref.Sint32Kind: + return coderSint32SliceValue + case pref.Uint32Kind: + return coderUint32SliceValue + case pref.Int64Kind: + return coderInt64SliceValue + case pref.Sint64Kind: + return coderSint64SliceValue + case pref.Uint64Kind: + return coderUint64SliceValue + case pref.Sfixed32Kind: + return coderSfixed32SliceValue + case pref.Fixed32Kind: + return coderFixed32SliceValue + case pref.FloatKind: + return coderFloatSliceValue + case pref.Sfixed64Kind: + return coderSfixed64SliceValue + case pref.Fixed64Kind: + return coderFixed64SliceValue + case pref.DoubleKind: + return coderDoubleSliceValue + case pref.StringKind: + // We don't have a UTF-8 validating coder for repeated string fields. + // Value coders are used for extensions and maps. + // Extensions are never proto3, and maps never contain lists. + return coderStringSliceValue + case pref.BytesKind: + return coderBytesSliceValue + case pref.MessageKind: + return coderMessageSliceValue + case pref.GroupKind: + return coderGroupSliceValue + } + case fd.Cardinality() == pref.Repeated && fd.IsPacked(): + switch fd.Kind() { + case pref.BoolKind: + return coderBoolPackedSliceValue + case pref.EnumKind: + return coderEnumPackedSliceValue + case pref.Int32Kind: + return coderInt32PackedSliceValue + case pref.Sint32Kind: + return coderSint32PackedSliceValue + case pref.Uint32Kind: + return coderUint32PackedSliceValue + case pref.Int64Kind: + return coderInt64PackedSliceValue + case pref.Sint64Kind: + return coderSint64PackedSliceValue + case pref.Uint64Kind: + return coderUint64PackedSliceValue + case pref.Sfixed32Kind: + return coderSfixed32PackedSliceValue + case pref.Fixed32Kind: + return coderFixed32PackedSliceValue + case pref.FloatKind: + return coderFloatPackedSliceValue + case pref.Sfixed64Kind: + return coderSfixed64PackedSliceValue + case pref.Fixed64Kind: + return coderFixed64PackedSliceValue + case pref.DoubleKind: + return coderDoublePackedSliceValue + } + default: + switch fd.Kind() { + default: + case pref.BoolKind: + return coderBoolValue + case pref.EnumKind: + return coderEnumValue + case pref.Int32Kind: + return coderInt32Value + case pref.Sint32Kind: + return coderSint32Value + case pref.Uint32Kind: + return coderUint32Value + case pref.Int64Kind: + return coderInt64Value + case pref.Sint64Kind: + return coderSint64Value + case pref.Uint64Kind: + return coderUint64Value + case pref.Sfixed32Kind: + return coderSfixed32Value + case pref.Fixed32Kind: + return coderFixed32Value + case pref.FloatKind: + return coderFloatValue + case pref.Sfixed64Kind: + return coderSfixed64Value + case pref.Fixed64Kind: + return coderFixed64Value + case pref.DoubleKind: + return coderDoubleValue + case pref.StringKind: + if strs.EnforceUTF8(fd) { + return coderStringValueValidateUTF8 + } + return coderStringValue + case pref.BytesKind: + return coderBytesValue + case pref.MessageKind: + return coderMessageValue + case pref.GroupKind: + return coderGroupValue + } + } + panic(fmt.Sprintf("invalid field: no encoder for %v %v %v", fd.FullName(), fd.Cardinality(), fd.Kind())) +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go b/vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go new file mode 100644 index 000000000..e118af1e2 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go @@ -0,0 +1,17 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !purego,!appengine + +package impl + +// When using unsafe pointers, we can just treat enum values as int32s. + +var ( + coderEnumNoZero = coderInt32NoZero + coderEnum = coderInt32 + coderEnumPtr = coderInt32Ptr + coderEnumSlice = coderInt32Slice + coderEnumPackedSlice = coderInt32PackedSlice +) diff --git a/vendor/google.golang.org/protobuf/internal/impl/convert.go b/vendor/google.golang.org/protobuf/internal/impl/convert.go new file mode 100644 index 000000000..36a90dff3 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/convert.go @@ -0,0 +1,467 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +// unwrapper unwraps the value to the underlying value. +// This is implemented by List and Map. +type unwrapper interface { + protoUnwrap() interface{} +} + +// A Converter coverts to/from Go reflect.Value types and protobuf protoreflect.Value types. +type Converter interface { + // PBValueOf converts a reflect.Value to a protoreflect.Value. + PBValueOf(reflect.Value) pref.Value + + // GoValueOf converts a protoreflect.Value to a reflect.Value. + GoValueOf(pref.Value) reflect.Value + + // IsValidPB returns whether a protoreflect.Value is compatible with this type. + IsValidPB(pref.Value) bool + + // IsValidGo returns whether a reflect.Value is compatible with this type. + IsValidGo(reflect.Value) bool + + // New returns a new field value. + // For scalars, it returns the default value of the field. + // For composite types, it returns a new mutable value. + New() pref.Value + + // Zero returns a new field value. + // For scalars, it returns the default value of the field. + // For composite types, it returns an immutable, empty value. + Zero() pref.Value +} + +// NewConverter matches a Go type with a protobuf field and returns a Converter +// that converts between the two. Enums must be a named int32 kind that +// implements protoreflect.Enum, and messages must be pointer to a named +// struct type that implements protoreflect.ProtoMessage. +// +// This matcher deliberately supports a wider range of Go types than what +// protoc-gen-go historically generated to be able to automatically wrap some +// v1 messages generated by other forks of protoc-gen-go. +func NewConverter(t reflect.Type, fd pref.FieldDescriptor) Converter { + switch { + case fd.IsList(): + return newListConverter(t, fd) + case fd.IsMap(): + return newMapConverter(t, fd) + default: + return newSingularConverter(t, fd) + } + panic(fmt.Sprintf("invalid Go type %v for field %v", t, fd.FullName())) +} + +var ( + boolType = reflect.TypeOf(bool(false)) + int32Type = reflect.TypeOf(int32(0)) + int64Type = reflect.TypeOf(int64(0)) + uint32Type = reflect.TypeOf(uint32(0)) + uint64Type = reflect.TypeOf(uint64(0)) + float32Type = reflect.TypeOf(float32(0)) + float64Type = reflect.TypeOf(float64(0)) + stringType = reflect.TypeOf(string("")) + bytesType = reflect.TypeOf([]byte(nil)) + byteType = reflect.TypeOf(byte(0)) +) + +var ( + boolZero = pref.ValueOfBool(false) + int32Zero = pref.ValueOfInt32(0) + int64Zero = pref.ValueOfInt64(0) + uint32Zero = pref.ValueOfUint32(0) + uint64Zero = pref.ValueOfUint64(0) + float32Zero = pref.ValueOfFloat32(0) + float64Zero = pref.ValueOfFloat64(0) + stringZero = pref.ValueOfString("") + bytesZero = pref.ValueOfBytes(nil) +) + +func newSingularConverter(t reflect.Type, fd pref.FieldDescriptor) Converter { + defVal := func(fd pref.FieldDescriptor, zero pref.Value) pref.Value { + if fd.Cardinality() == pref.Repeated { + // Default isn't defined for repeated fields. + return zero + } + return fd.Default() + } + switch fd.Kind() { + case pref.BoolKind: + if t.Kind() == reflect.Bool { + return &boolConverter{t, defVal(fd, boolZero)} + } + case pref.Int32Kind, pref.Sint32Kind, pref.Sfixed32Kind: + if t.Kind() == reflect.Int32 { + return &int32Converter{t, defVal(fd, int32Zero)} + } + case pref.Int64Kind, pref.Sint64Kind, pref.Sfixed64Kind: + if t.Kind() == reflect.Int64 { + return &int64Converter{t, defVal(fd, int64Zero)} + } + case pref.Uint32Kind, pref.Fixed32Kind: + if t.Kind() == reflect.Uint32 { + return &uint32Converter{t, defVal(fd, uint32Zero)} + } + case pref.Uint64Kind, pref.Fixed64Kind: + if t.Kind() == reflect.Uint64 { + return &uint64Converter{t, defVal(fd, uint64Zero)} + } + case pref.FloatKind: + if t.Kind() == reflect.Float32 { + return &float32Converter{t, defVal(fd, float32Zero)} + } + case pref.DoubleKind: + if t.Kind() == reflect.Float64 { + return &float64Converter{t, defVal(fd, float64Zero)} + } + case pref.StringKind: + if t.Kind() == reflect.String || (t.Kind() == reflect.Slice && t.Elem() == byteType) { + return &stringConverter{t, defVal(fd, stringZero)} + } + case pref.BytesKind: + if t.Kind() == reflect.String || (t.Kind() == reflect.Slice && t.Elem() == byteType) { + return &bytesConverter{t, defVal(fd, bytesZero)} + } + case pref.EnumKind: + // Handle enums, which must be a named int32 type. + if t.Kind() == reflect.Int32 { + return newEnumConverter(t, fd) + } + case pref.MessageKind, pref.GroupKind: + return newMessageConverter(t) + } + panic(fmt.Sprintf("invalid Go type %v for field %v", t, fd.FullName())) +} + +type boolConverter struct { + goType reflect.Type + def pref.Value +} + +func (c *boolConverter) PBValueOf(v reflect.Value) pref.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return pref.ValueOfBool(v.Bool()) +} +func (c *boolConverter) GoValueOf(v pref.Value) reflect.Value { + return reflect.ValueOf(v.Bool()).Convert(c.goType) +} +func (c *boolConverter) IsValidPB(v pref.Value) bool { + _, ok := v.Interface().(bool) + return ok +} +func (c *boolConverter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *boolConverter) New() pref.Value { return c.def } +func (c *boolConverter) Zero() pref.Value { return c.def } + +type int32Converter struct { + goType reflect.Type + def pref.Value +} + +func (c *int32Converter) PBValueOf(v reflect.Value) pref.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return pref.ValueOfInt32(int32(v.Int())) +} +func (c *int32Converter) GoValueOf(v pref.Value) reflect.Value { + return reflect.ValueOf(int32(v.Int())).Convert(c.goType) +} +func (c *int32Converter) IsValidPB(v pref.Value) bool { + _, ok := v.Interface().(int32) + return ok +} +func (c *int32Converter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *int32Converter) New() pref.Value { return c.def } +func (c *int32Converter) Zero() pref.Value { return c.def } + +type int64Converter struct { + goType reflect.Type + def pref.Value +} + +func (c *int64Converter) PBValueOf(v reflect.Value) pref.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return pref.ValueOfInt64(int64(v.Int())) +} +func (c *int64Converter) GoValueOf(v pref.Value) reflect.Value { + return reflect.ValueOf(int64(v.Int())).Convert(c.goType) +} +func (c *int64Converter) IsValidPB(v pref.Value) bool { + _, ok := v.Interface().(int64) + return ok +} +func (c *int64Converter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *int64Converter) New() pref.Value { return c.def } +func (c *int64Converter) Zero() pref.Value { return c.def } + +type uint32Converter struct { + goType reflect.Type + def pref.Value +} + +func (c *uint32Converter) PBValueOf(v reflect.Value) pref.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return pref.ValueOfUint32(uint32(v.Uint())) +} +func (c *uint32Converter) GoValueOf(v pref.Value) reflect.Value { + return reflect.ValueOf(uint32(v.Uint())).Convert(c.goType) +} +func (c *uint32Converter) IsValidPB(v pref.Value) bool { + _, ok := v.Interface().(uint32) + return ok +} +func (c *uint32Converter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *uint32Converter) New() pref.Value { return c.def } +func (c *uint32Converter) Zero() pref.Value { return c.def } + +type uint64Converter struct { + goType reflect.Type + def pref.Value +} + +func (c *uint64Converter) PBValueOf(v reflect.Value) pref.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return pref.ValueOfUint64(uint64(v.Uint())) +} +func (c *uint64Converter) GoValueOf(v pref.Value) reflect.Value { + return reflect.ValueOf(uint64(v.Uint())).Convert(c.goType) +} +func (c *uint64Converter) IsValidPB(v pref.Value) bool { + _, ok := v.Interface().(uint64) + return ok +} +func (c *uint64Converter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *uint64Converter) New() pref.Value { return c.def } +func (c *uint64Converter) Zero() pref.Value { return c.def } + +type float32Converter struct { + goType reflect.Type + def pref.Value +} + +func (c *float32Converter) PBValueOf(v reflect.Value) pref.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return pref.ValueOfFloat32(float32(v.Float())) +} +func (c *float32Converter) GoValueOf(v pref.Value) reflect.Value { + return reflect.ValueOf(float32(v.Float())).Convert(c.goType) +} +func (c *float32Converter) IsValidPB(v pref.Value) bool { + _, ok := v.Interface().(float32) + return ok +} +func (c *float32Converter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *float32Converter) New() pref.Value { return c.def } +func (c *float32Converter) Zero() pref.Value { return c.def } + +type float64Converter struct { + goType reflect.Type + def pref.Value +} + +func (c *float64Converter) PBValueOf(v reflect.Value) pref.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return pref.ValueOfFloat64(float64(v.Float())) +} +func (c *float64Converter) GoValueOf(v pref.Value) reflect.Value { + return reflect.ValueOf(float64(v.Float())).Convert(c.goType) +} +func (c *float64Converter) IsValidPB(v pref.Value) bool { + _, ok := v.Interface().(float64) + return ok +} +func (c *float64Converter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *float64Converter) New() pref.Value { return c.def } +func (c *float64Converter) Zero() pref.Value { return c.def } + +type stringConverter struct { + goType reflect.Type + def pref.Value +} + +func (c *stringConverter) PBValueOf(v reflect.Value) pref.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return pref.ValueOfString(v.Convert(stringType).String()) +} +func (c *stringConverter) GoValueOf(v pref.Value) reflect.Value { + // pref.Value.String never panics, so we go through an interface + // conversion here to check the type. + s := v.Interface().(string) + if c.goType.Kind() == reflect.Slice && s == "" { + return reflect.Zero(c.goType) // ensure empty string is []byte(nil) + } + return reflect.ValueOf(s).Convert(c.goType) +} +func (c *stringConverter) IsValidPB(v pref.Value) bool { + _, ok := v.Interface().(string) + return ok +} +func (c *stringConverter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *stringConverter) New() pref.Value { return c.def } +func (c *stringConverter) Zero() pref.Value { return c.def } + +type bytesConverter struct { + goType reflect.Type + def pref.Value +} + +func (c *bytesConverter) PBValueOf(v reflect.Value) pref.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + if c.goType.Kind() == reflect.String && v.Len() == 0 { + return pref.ValueOfBytes(nil) // ensure empty string is []byte(nil) + } + return pref.ValueOfBytes(v.Convert(bytesType).Bytes()) +} +func (c *bytesConverter) GoValueOf(v pref.Value) reflect.Value { + return reflect.ValueOf(v.Bytes()).Convert(c.goType) +} +func (c *bytesConverter) IsValidPB(v pref.Value) bool { + _, ok := v.Interface().([]byte) + return ok +} +func (c *bytesConverter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *bytesConverter) New() pref.Value { return c.def } +func (c *bytesConverter) Zero() pref.Value { return c.def } + +type enumConverter struct { + goType reflect.Type + def pref.Value +} + +func newEnumConverter(goType reflect.Type, fd pref.FieldDescriptor) Converter { + var def pref.Value + if fd.Cardinality() == pref.Repeated { + def = pref.ValueOfEnum(fd.Enum().Values().Get(0).Number()) + } else { + def = fd.Default() + } + return &enumConverter{goType, def} +} + +func (c *enumConverter) PBValueOf(v reflect.Value) pref.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return pref.ValueOfEnum(pref.EnumNumber(v.Int())) +} + +func (c *enumConverter) GoValueOf(v pref.Value) reflect.Value { + return reflect.ValueOf(v.Enum()).Convert(c.goType) +} + +func (c *enumConverter) IsValidPB(v pref.Value) bool { + _, ok := v.Interface().(pref.EnumNumber) + return ok +} + +func (c *enumConverter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} + +func (c *enumConverter) New() pref.Value { + return c.def +} + +func (c *enumConverter) Zero() pref.Value { + return c.def +} + +type messageConverter struct { + goType reflect.Type +} + +func newMessageConverter(goType reflect.Type) Converter { + return &messageConverter{goType} +} + +func (c *messageConverter) PBValueOf(v reflect.Value) pref.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + if m, ok := v.Interface().(pref.ProtoMessage); ok { + return pref.ValueOfMessage(m.ProtoReflect()) + } + return pref.ValueOfMessage(legacyWrapMessage(v)) +} + +func (c *messageConverter) GoValueOf(v pref.Value) reflect.Value { + m := v.Message() + var rv reflect.Value + if u, ok := m.(unwrapper); ok { + rv = reflect.ValueOf(u.protoUnwrap()) + } else { + rv = reflect.ValueOf(m.Interface()) + } + if rv.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", rv.Type(), c.goType)) + } + return rv +} + +func (c *messageConverter) IsValidPB(v pref.Value) bool { + m := v.Message() + var rv reflect.Value + if u, ok := m.(unwrapper); ok { + rv = reflect.ValueOf(u.protoUnwrap()) + } else { + rv = reflect.ValueOf(m.Interface()) + } + return rv.Type() == c.goType +} + +func (c *messageConverter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} + +func (c *messageConverter) New() pref.Value { + return c.PBValueOf(reflect.New(c.goType.Elem())) +} + +func (c *messageConverter) Zero() pref.Value { + return c.PBValueOf(reflect.Zero(c.goType)) +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/convert_list.go b/vendor/google.golang.org/protobuf/internal/impl/convert_list.go new file mode 100644 index 000000000..6fccab520 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/convert_list.go @@ -0,0 +1,141 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +func newListConverter(t reflect.Type, fd pref.FieldDescriptor) Converter { + switch { + case t.Kind() == reflect.Ptr && t.Elem().Kind() == reflect.Slice: + return &listPtrConverter{t, newSingularConverter(t.Elem().Elem(), fd)} + case t.Kind() == reflect.Slice: + return &listConverter{t, newSingularConverter(t.Elem(), fd)} + } + panic(fmt.Sprintf("invalid Go type %v for field %v", t, fd.FullName())) +} + +type listConverter struct { + goType reflect.Type // []T + c Converter +} + +func (c *listConverter) PBValueOf(v reflect.Value) pref.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + pv := reflect.New(c.goType) + pv.Elem().Set(v) + return pref.ValueOfList(&listReflect{pv, c.c}) +} + +func (c *listConverter) GoValueOf(v pref.Value) reflect.Value { + rv := v.List().(*listReflect).v + if rv.IsNil() { + return reflect.Zero(c.goType) + } + return rv.Elem() +} + +func (c *listConverter) IsValidPB(v pref.Value) bool { + list, ok := v.Interface().(*listReflect) + if !ok { + return false + } + return list.v.Type().Elem() == c.goType +} + +func (c *listConverter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} + +func (c *listConverter) New() pref.Value { + return pref.ValueOfList(&listReflect{reflect.New(c.goType), c.c}) +} + +func (c *listConverter) Zero() pref.Value { + return pref.ValueOfList(&listReflect{reflect.Zero(reflect.PtrTo(c.goType)), c.c}) +} + +type listPtrConverter struct { + goType reflect.Type // *[]T + c Converter +} + +func (c *listPtrConverter) PBValueOf(v reflect.Value) pref.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return pref.ValueOfList(&listReflect{v, c.c}) +} + +func (c *listPtrConverter) GoValueOf(v pref.Value) reflect.Value { + return v.List().(*listReflect).v +} + +func (c *listPtrConverter) IsValidPB(v pref.Value) bool { + list, ok := v.Interface().(*listReflect) + if !ok { + return false + } + return list.v.Type() == c.goType +} + +func (c *listPtrConverter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} + +func (c *listPtrConverter) New() pref.Value { + return c.PBValueOf(reflect.New(c.goType.Elem())) +} + +func (c *listPtrConverter) Zero() pref.Value { + return c.PBValueOf(reflect.Zero(c.goType)) +} + +type listReflect struct { + v reflect.Value // *[]T + conv Converter +} + +func (ls *listReflect) Len() int { + if ls.v.IsNil() { + return 0 + } + return ls.v.Elem().Len() +} +func (ls *listReflect) Get(i int) pref.Value { + return ls.conv.PBValueOf(ls.v.Elem().Index(i)) +} +func (ls *listReflect) Set(i int, v pref.Value) { + ls.v.Elem().Index(i).Set(ls.conv.GoValueOf(v)) +} +func (ls *listReflect) Append(v pref.Value) { + ls.v.Elem().Set(reflect.Append(ls.v.Elem(), ls.conv.GoValueOf(v))) +} +func (ls *listReflect) AppendMutable() pref.Value { + if _, ok := ls.conv.(*messageConverter); !ok { + panic("invalid AppendMutable on list with non-message type") + } + v := ls.NewElement() + ls.Append(v) + return v +} +func (ls *listReflect) Truncate(i int) { + ls.v.Elem().Set(ls.v.Elem().Slice(0, i)) +} +func (ls *listReflect) NewElement() pref.Value { + return ls.conv.New() +} +func (ls *listReflect) IsValid() bool { + return !ls.v.IsNil() +} +func (ls *listReflect) protoUnwrap() interface{} { + return ls.v.Interface() +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/convert_map.go b/vendor/google.golang.org/protobuf/internal/impl/convert_map.go new file mode 100644 index 000000000..de06b2593 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/convert_map.go @@ -0,0 +1,121 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +type mapConverter struct { + goType reflect.Type // map[K]V + keyConv, valConv Converter +} + +func newMapConverter(t reflect.Type, fd pref.FieldDescriptor) *mapConverter { + if t.Kind() != reflect.Map { + panic(fmt.Sprintf("invalid Go type %v for field %v", t, fd.FullName())) + } + return &mapConverter{ + goType: t, + keyConv: newSingularConverter(t.Key(), fd.MapKey()), + valConv: newSingularConverter(t.Elem(), fd.MapValue()), + } +} + +func (c *mapConverter) PBValueOf(v reflect.Value) pref.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return pref.ValueOfMap(&mapReflect{v, c.keyConv, c.valConv}) +} + +func (c *mapConverter) GoValueOf(v pref.Value) reflect.Value { + return v.Map().(*mapReflect).v +} + +func (c *mapConverter) IsValidPB(v pref.Value) bool { + mapv, ok := v.Interface().(*mapReflect) + if !ok { + return false + } + return mapv.v.Type() == c.goType +} + +func (c *mapConverter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} + +func (c *mapConverter) New() pref.Value { + return c.PBValueOf(reflect.MakeMap(c.goType)) +} + +func (c *mapConverter) Zero() pref.Value { + return c.PBValueOf(reflect.Zero(c.goType)) +} + +type mapReflect struct { + v reflect.Value // map[K]V + keyConv Converter + valConv Converter +} + +func (ms *mapReflect) Len() int { + return ms.v.Len() +} +func (ms *mapReflect) Has(k pref.MapKey) bool { + rk := ms.keyConv.GoValueOf(k.Value()) + rv := ms.v.MapIndex(rk) + return rv.IsValid() +} +func (ms *mapReflect) Get(k pref.MapKey) pref.Value { + rk := ms.keyConv.GoValueOf(k.Value()) + rv := ms.v.MapIndex(rk) + if !rv.IsValid() { + return pref.Value{} + } + return ms.valConv.PBValueOf(rv) +} +func (ms *mapReflect) Set(k pref.MapKey, v pref.Value) { + rk := ms.keyConv.GoValueOf(k.Value()) + rv := ms.valConv.GoValueOf(v) + ms.v.SetMapIndex(rk, rv) +} +func (ms *mapReflect) Clear(k pref.MapKey) { + rk := ms.keyConv.GoValueOf(k.Value()) + ms.v.SetMapIndex(rk, reflect.Value{}) +} +func (ms *mapReflect) Mutable(k pref.MapKey) pref.Value { + if _, ok := ms.valConv.(*messageConverter); !ok { + panic("invalid Mutable on map with non-message value type") + } + v := ms.Get(k) + if !v.IsValid() { + v = ms.NewValue() + ms.Set(k, v) + } + return v +} +func (ms *mapReflect) Range(f func(pref.MapKey, pref.Value) bool) { + iter := mapRange(ms.v) + for iter.Next() { + k := ms.keyConv.PBValueOf(iter.Key()).MapKey() + v := ms.valConv.PBValueOf(iter.Value()) + if !f(k, v) { + return + } + } +} +func (ms *mapReflect) NewValue() pref.Value { + return ms.valConv.New() +} +func (ms *mapReflect) IsValid() bool { + return !ms.v.IsNil() +} +func (ms *mapReflect) protoUnwrap() interface{} { + return ms.v.Interface() +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/decode.go b/vendor/google.golang.org/protobuf/internal/impl/decode.go new file mode 100644 index 000000000..85ba1d3b3 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/decode.go @@ -0,0 +1,274 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "math/bits" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + preg "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/runtime/protoiface" + piface "google.golang.org/protobuf/runtime/protoiface" +) + +type unmarshalOptions struct { + flags protoiface.UnmarshalInputFlags + resolver interface { + FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) + FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) + } +} + +func (o unmarshalOptions) Options() proto.UnmarshalOptions { + return proto.UnmarshalOptions{ + Merge: true, + AllowPartial: true, + DiscardUnknown: o.DiscardUnknown(), + Resolver: o.resolver, + } +} + +func (o unmarshalOptions) DiscardUnknown() bool { return o.flags&piface.UnmarshalDiscardUnknown != 0 } + +func (o unmarshalOptions) IsDefault() bool { + return o.flags == 0 && o.resolver == preg.GlobalTypes +} + +var lazyUnmarshalOptions = unmarshalOptions{ + resolver: preg.GlobalTypes, +} + +type unmarshalOutput struct { + n int // number of bytes consumed + initialized bool +} + +// unmarshal is protoreflect.Methods.Unmarshal. +func (mi *MessageInfo) unmarshal(in piface.UnmarshalInput) (piface.UnmarshalOutput, error) { + var p pointer + if ms, ok := in.Message.(*messageState); ok { + p = ms.pointer() + } else { + p = in.Message.(*messageReflectWrapper).pointer() + } + out, err := mi.unmarshalPointer(in.Buf, p, 0, unmarshalOptions{ + flags: in.Flags, + resolver: in.Resolver, + }) + var flags piface.UnmarshalOutputFlags + if out.initialized { + flags |= piface.UnmarshalInitialized + } + return piface.UnmarshalOutput{ + Flags: flags, + }, err +} + +// errUnknown is returned during unmarshaling to indicate a parse error that +// should result in a field being placed in the unknown fields section (for example, +// when the wire type doesn't match) as opposed to the entire unmarshal operation +// failing (for example, when a field extends past the available input). +// +// This is a sentinel error which should never be visible to the user. +var errUnknown = errors.New("unknown") + +func (mi *MessageInfo) unmarshalPointer(b []byte, p pointer, groupTag protowire.Number, opts unmarshalOptions) (out unmarshalOutput, err error) { + mi.init() + if flags.ProtoLegacy && mi.isMessageSet { + return unmarshalMessageSet(mi, b, p, opts) + } + initialized := true + var requiredMask uint64 + var exts *map[int32]ExtensionField + start := len(b) + for len(b) > 0 { + // Parse the tag (field number and wire type). + var tag uint64 + if b[0] < 0x80 { + tag = uint64(b[0]) + b = b[1:] + } else if len(b) >= 2 && b[1] < 128 { + tag = uint64(b[0]&0x7f) + uint64(b[1])<<7 + b = b[2:] + } else { + var n int + tag, n = protowire.ConsumeVarint(b) + if n < 0 { + return out, protowire.ParseError(n) + } + b = b[n:] + } + var num protowire.Number + if n := tag >> 3; n < uint64(protowire.MinValidNumber) || n > uint64(protowire.MaxValidNumber) { + return out, errors.New("invalid field number") + } else { + num = protowire.Number(n) + } + wtyp := protowire.Type(tag & 7) + + if wtyp == protowire.EndGroupType { + if num != groupTag { + return out, errors.New("mismatching end group marker") + } + groupTag = 0 + break + } + + var f *coderFieldInfo + if int(num) < len(mi.denseCoderFields) { + f = mi.denseCoderFields[num] + } else { + f = mi.coderFields[num] + } + var n int + err := errUnknown + switch { + case f != nil: + if f.funcs.unmarshal == nil { + break + } + var o unmarshalOutput + o, err = f.funcs.unmarshal(b, p.Apply(f.offset), wtyp, f, opts) + n = o.n + if err != nil { + break + } + requiredMask |= f.validation.requiredBit + if f.funcs.isInit != nil && !o.initialized { + initialized = false + } + default: + // Possible extension. + if exts == nil && mi.extensionOffset.IsValid() { + exts = p.Apply(mi.extensionOffset).Extensions() + if *exts == nil { + *exts = make(map[int32]ExtensionField) + } + } + if exts == nil { + break + } + var o unmarshalOutput + o, err = mi.unmarshalExtension(b, num, wtyp, *exts, opts) + if err != nil { + break + } + n = o.n + if !o.initialized { + initialized = false + } + } + if err != nil { + if err != errUnknown { + return out, err + } + n = protowire.ConsumeFieldValue(num, wtyp, b) + if n < 0 { + return out, protowire.ParseError(n) + } + if !opts.DiscardUnknown() && mi.unknownOffset.IsValid() { + u := p.Apply(mi.unknownOffset).Bytes() + *u = protowire.AppendTag(*u, num, wtyp) + *u = append(*u, b[:n]...) + } + } + b = b[n:] + } + if groupTag != 0 { + return out, errors.New("missing end group marker") + } + if mi.numRequiredFields > 0 && bits.OnesCount64(requiredMask) != int(mi.numRequiredFields) { + initialized = false + } + if initialized { + out.initialized = true + } + out.n = start - len(b) + return out, nil +} + +func (mi *MessageInfo) unmarshalExtension(b []byte, num protowire.Number, wtyp protowire.Type, exts map[int32]ExtensionField, opts unmarshalOptions) (out unmarshalOutput, err error) { + x := exts[int32(num)] + xt := x.Type() + if xt == nil { + var err error + xt, err = opts.resolver.FindExtensionByNumber(mi.Desc.FullName(), num) + if err != nil { + if err == preg.NotFound { + return out, errUnknown + } + return out, errors.New("%v: unable to resolve extension %v: %v", mi.Desc.FullName(), num, err) + } + } + xi := getExtensionFieldInfo(xt) + if xi.funcs.unmarshal == nil { + return out, errUnknown + } + if flags.LazyUnmarshalExtensions { + if opts.IsDefault() && x.canLazy(xt) { + out, valid := skipExtension(b, xi, num, wtyp, opts) + switch valid { + case ValidationValid: + if out.initialized { + x.appendLazyBytes(xt, xi, num, wtyp, b[:out.n]) + exts[int32(num)] = x + return out, nil + } + case ValidationInvalid: + return out, errors.New("invalid wire format") + case ValidationUnknown: + } + } + } + ival := x.Value() + if !ival.IsValid() && xi.unmarshalNeedsValue { + // Create a new message, list, or map value to fill in. + // For enums, create a prototype value to let the unmarshal func know the + // concrete type. + ival = xt.New() + } + v, out, err := xi.funcs.unmarshal(b, ival, num, wtyp, opts) + if err != nil { + return out, err + } + if xi.funcs.isInit == nil { + out.initialized = true + } + x.Set(xt, v) + exts[int32(num)] = x + return out, nil +} + +func skipExtension(b []byte, xi *extensionFieldInfo, num protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (out unmarshalOutput, _ ValidationStatus) { + if xi.validation.mi == nil { + return out, ValidationUnknown + } + xi.validation.mi.init() + switch xi.validation.typ { + case validationTypeMessage: + if wtyp != protowire.BytesType { + return out, ValidationUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, ValidationUnknown + } + out, st := xi.validation.mi.validate(v, 0, opts) + out.n = n + return out, st + case validationTypeGroup: + if wtyp != protowire.StartGroupType { + return out, ValidationUnknown + } + out, st := xi.validation.mi.validate(b, num, opts) + return out, st + default: + return out, ValidationUnknown + } +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/encode.go b/vendor/google.golang.org/protobuf/internal/impl/encode.go new file mode 100644 index 000000000..8c8a794c6 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/encode.go @@ -0,0 +1,199 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "math" + "sort" + "sync/atomic" + + "google.golang.org/protobuf/internal/flags" + proto "google.golang.org/protobuf/proto" + piface "google.golang.org/protobuf/runtime/protoiface" +) + +type marshalOptions struct { + flags piface.MarshalInputFlags +} + +func (o marshalOptions) Options() proto.MarshalOptions { + return proto.MarshalOptions{ + AllowPartial: true, + Deterministic: o.Deterministic(), + UseCachedSize: o.UseCachedSize(), + } +} + +func (o marshalOptions) Deterministic() bool { return o.flags&piface.MarshalDeterministic != 0 } +func (o marshalOptions) UseCachedSize() bool { return o.flags&piface.MarshalUseCachedSize != 0 } + +// size is protoreflect.Methods.Size. +func (mi *MessageInfo) size(in piface.SizeInput) piface.SizeOutput { + var p pointer + if ms, ok := in.Message.(*messageState); ok { + p = ms.pointer() + } else { + p = in.Message.(*messageReflectWrapper).pointer() + } + size := mi.sizePointer(p, marshalOptions{ + flags: in.Flags, + }) + return piface.SizeOutput{Size: size} +} + +func (mi *MessageInfo) sizePointer(p pointer, opts marshalOptions) (size int) { + mi.init() + if p.IsNil() { + return 0 + } + if opts.UseCachedSize() && mi.sizecacheOffset.IsValid() { + if size := atomic.LoadInt32(p.Apply(mi.sizecacheOffset).Int32()); size >= 0 { + return int(size) + } + } + return mi.sizePointerSlow(p, opts) +} + +func (mi *MessageInfo) sizePointerSlow(p pointer, opts marshalOptions) (size int) { + if flags.ProtoLegacy && mi.isMessageSet { + size = sizeMessageSet(mi, p, opts) + if mi.sizecacheOffset.IsValid() { + atomic.StoreInt32(p.Apply(mi.sizecacheOffset).Int32(), int32(size)) + } + return size + } + if mi.extensionOffset.IsValid() { + e := p.Apply(mi.extensionOffset).Extensions() + size += mi.sizeExtensions(e, opts) + } + for _, f := range mi.orderedCoderFields { + if f.funcs.size == nil { + continue + } + fptr := p.Apply(f.offset) + if f.isPointer && fptr.Elem().IsNil() { + continue + } + size += f.funcs.size(fptr, f, opts) + } + if mi.unknownOffset.IsValid() { + u := *p.Apply(mi.unknownOffset).Bytes() + size += len(u) + } + if mi.sizecacheOffset.IsValid() { + if size > math.MaxInt32 { + // The size is too large for the int32 sizecache field. + // We will need to recompute the size when encoding; + // unfortunately expensive, but better than invalid output. + atomic.StoreInt32(p.Apply(mi.sizecacheOffset).Int32(), -1) + } else { + atomic.StoreInt32(p.Apply(mi.sizecacheOffset).Int32(), int32(size)) + } + } + return size +} + +// marshal is protoreflect.Methods.Marshal. +func (mi *MessageInfo) marshal(in piface.MarshalInput) (out piface.MarshalOutput, err error) { + var p pointer + if ms, ok := in.Message.(*messageState); ok { + p = ms.pointer() + } else { + p = in.Message.(*messageReflectWrapper).pointer() + } + b, err := mi.marshalAppendPointer(in.Buf, p, marshalOptions{ + flags: in.Flags, + }) + return piface.MarshalOutput{Buf: b}, err +} + +func (mi *MessageInfo) marshalAppendPointer(b []byte, p pointer, opts marshalOptions) ([]byte, error) { + mi.init() + if p.IsNil() { + return b, nil + } + if flags.ProtoLegacy && mi.isMessageSet { + return marshalMessageSet(mi, b, p, opts) + } + var err error + // The old marshaler encodes extensions at beginning. + if mi.extensionOffset.IsValid() { + e := p.Apply(mi.extensionOffset).Extensions() + // TODO: Special handling for MessageSet? + b, err = mi.appendExtensions(b, e, opts) + if err != nil { + return b, err + } + } + for _, f := range mi.orderedCoderFields { + if f.funcs.marshal == nil { + continue + } + fptr := p.Apply(f.offset) + if f.isPointer && fptr.Elem().IsNil() { + continue + } + b, err = f.funcs.marshal(b, fptr, f, opts) + if err != nil { + return b, err + } + } + if mi.unknownOffset.IsValid() && !mi.isMessageSet { + u := *p.Apply(mi.unknownOffset).Bytes() + b = append(b, u...) + } + return b, nil +} + +func (mi *MessageInfo) sizeExtensions(ext *map[int32]ExtensionField, opts marshalOptions) (n int) { + if ext == nil { + return 0 + } + for _, x := range *ext { + xi := getExtensionFieldInfo(x.Type()) + if xi.funcs.size == nil { + continue + } + n += xi.funcs.size(x.Value(), xi.tagsize, opts) + } + return n +} + +func (mi *MessageInfo) appendExtensions(b []byte, ext *map[int32]ExtensionField, opts marshalOptions) ([]byte, error) { + if ext == nil { + return b, nil + } + + switch len(*ext) { + case 0: + return b, nil + case 1: + // Fast-path for one extension: Don't bother sorting the keys. + var err error + for _, x := range *ext { + xi := getExtensionFieldInfo(x.Type()) + b, err = xi.funcs.marshal(b, x.Value(), xi.wiretag, opts) + } + return b, err + default: + // Sort the keys to provide a deterministic encoding. + // Not sure this is required, but the old code does it. + keys := make([]int, 0, len(*ext)) + for k := range *ext { + keys = append(keys, int(k)) + } + sort.Ints(keys) + var err error + for _, k := range keys { + x := (*ext)[int32(k)] + xi := getExtensionFieldInfo(x.Type()) + b, err = xi.funcs.marshal(b, x.Value(), xi.wiretag, opts) + if err != nil { + return b, err + } + } + return b, nil + } +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/enum.go b/vendor/google.golang.org/protobuf/internal/impl/enum.go new file mode 100644 index 000000000..8c1eab4bf --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/enum.go @@ -0,0 +1,21 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "reflect" + + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +type EnumInfo struct { + GoReflectType reflect.Type // int32 kind + Desc pref.EnumDescriptor +} + +func (t *EnumInfo) New(n pref.EnumNumber) pref.Enum { + return reflect.ValueOf(n).Convert(t.GoReflectType).Interface().(pref.Enum) +} +func (t *EnumInfo) Descriptor() pref.EnumDescriptor { return t.Desc } diff --git a/vendor/google.golang.org/protobuf/internal/impl/extension.go b/vendor/google.golang.org/protobuf/internal/impl/extension.go new file mode 100644 index 000000000..e904fd993 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/extension.go @@ -0,0 +1,156 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "reflect" + "sync" + "sync/atomic" + + pref "google.golang.org/protobuf/reflect/protoreflect" + piface "google.golang.org/protobuf/runtime/protoiface" +) + +// ExtensionInfo implements ExtensionType. +// +// This type contains a number of exported fields for legacy compatibility. +// The only non-deprecated use of this type is through the methods of the +// ExtensionType interface. +type ExtensionInfo struct { + // An ExtensionInfo may exist in several stages of initialization. + // + // extensionInfoUninitialized: Some or all of the legacy exported + // fields may be set, but none of the unexported fields have been + // initialized. This is the starting state for an ExtensionInfo + // in legacy generated code. + // + // extensionInfoDescInit: The desc field is set, but other unexported fields + // may not be initialized. Legacy exported fields may or may not be set. + // This is the starting state for an ExtensionInfo in newly generated code. + // + // extensionInfoFullInit: The ExtensionInfo is fully initialized. + // This state is only entered after lazy initialization is complete. + init uint32 + mu sync.Mutex + + goType reflect.Type + desc extensionTypeDescriptor + conv Converter + info *extensionFieldInfo // for fast-path method implementations + + // ExtendedType is a typed nil-pointer to the parent message type that + // is being extended. It is possible for this to be unpopulated in v2 + // since the message may no longer implement the MessageV1 interface. + // + // Deprecated: Use the ExtendedType method instead. + ExtendedType piface.MessageV1 + + // ExtensionType is the zero value of the extension type. + // + // For historical reasons, reflect.TypeOf(ExtensionType) and the + // type returned by InterfaceOf may not be identical. + // + // Deprecated: Use InterfaceOf(xt.Zero()) instead. + ExtensionType interface{} + + // Field is the field number of the extension. + // + // Deprecated: Use the Descriptor().Number method instead. + Field int32 + + // Name is the fully qualified name of extension. + // + // Deprecated: Use the Descriptor().FullName method instead. + Name string + + // Tag is the protobuf struct tag used in the v1 API. + // + // Deprecated: Do not use. + Tag string + + // Filename is the proto filename in which the extension is defined. + // + // Deprecated: Use Descriptor().ParentFile().Path() instead. + Filename string +} + +// Stages of initialization: See the ExtensionInfo.init field. +const ( + extensionInfoUninitialized = 0 + extensionInfoDescInit = 1 + extensionInfoFullInit = 2 +) + +func InitExtensionInfo(xi *ExtensionInfo, xd pref.ExtensionDescriptor, goType reflect.Type) { + xi.goType = goType + xi.desc = extensionTypeDescriptor{xd, xi} + xi.init = extensionInfoDescInit +} + +func (xi *ExtensionInfo) New() pref.Value { + return xi.lazyInit().New() +} +func (xi *ExtensionInfo) Zero() pref.Value { + return xi.lazyInit().Zero() +} +func (xi *ExtensionInfo) ValueOf(v interface{}) pref.Value { + return xi.lazyInit().PBValueOf(reflect.ValueOf(v)) +} +func (xi *ExtensionInfo) InterfaceOf(v pref.Value) interface{} { + return xi.lazyInit().GoValueOf(v).Interface() +} +func (xi *ExtensionInfo) IsValidValue(v pref.Value) bool { + return xi.lazyInit().IsValidPB(v) +} +func (xi *ExtensionInfo) IsValidInterface(v interface{}) bool { + return xi.lazyInit().IsValidGo(reflect.ValueOf(v)) +} +func (xi *ExtensionInfo) TypeDescriptor() pref.ExtensionTypeDescriptor { + if atomic.LoadUint32(&xi.init) < extensionInfoDescInit { + xi.lazyInitSlow() + } + return &xi.desc +} + +func (xi *ExtensionInfo) lazyInit() Converter { + if atomic.LoadUint32(&xi.init) < extensionInfoFullInit { + xi.lazyInitSlow() + } + return xi.conv +} + +func (xi *ExtensionInfo) lazyInitSlow() { + xi.mu.Lock() + defer xi.mu.Unlock() + + if xi.init == extensionInfoFullInit { + return + } + defer atomic.StoreUint32(&xi.init, extensionInfoFullInit) + + if xi.desc.ExtensionDescriptor == nil { + xi.initFromLegacy() + } + if !xi.desc.ExtensionDescriptor.IsPlaceholder() { + if xi.ExtensionType == nil { + xi.initToLegacy() + } + xi.conv = NewConverter(xi.goType, xi.desc.ExtensionDescriptor) + xi.info = makeExtensionFieldInfo(xi.desc.ExtensionDescriptor) + xi.info.validation = newValidationInfo(xi.desc.ExtensionDescriptor, xi.goType) + } +} + +type extensionTypeDescriptor struct { + pref.ExtensionDescriptor + xi *ExtensionInfo +} + +func (xtd *extensionTypeDescriptor) Type() pref.ExtensionType { + return xtd.xi +} +func (xtd *extensionTypeDescriptor) Descriptor() pref.ExtensionDescriptor { + return xtd.ExtensionDescriptor +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/legacy_enum.go b/vendor/google.golang.org/protobuf/internal/impl/legacy_enum.go new file mode 100644 index 000000000..f7d7ffb51 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/legacy_enum.go @@ -0,0 +1,219 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + "strings" + "sync" + + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/reflect/protoreflect" + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +// legacyEnumName returns the name of enums used in legacy code. +// It is neither the protobuf full name nor the qualified Go name, +// but rather an odd hybrid of both. +func legacyEnumName(ed pref.EnumDescriptor) string { + var protoPkg string + enumName := string(ed.FullName()) + if fd := ed.ParentFile(); fd != nil { + protoPkg = string(fd.Package()) + enumName = strings.TrimPrefix(enumName, protoPkg+".") + } + if protoPkg == "" { + return strs.GoCamelCase(enumName) + } + return protoPkg + "." + strs.GoCamelCase(enumName) +} + +// legacyWrapEnum wraps v as a protoreflect.Enum, +// where v must be a int32 kind and not implement the v2 API already. +func legacyWrapEnum(v reflect.Value) pref.Enum { + et := legacyLoadEnumType(v.Type()) + return et.New(pref.EnumNumber(v.Int())) +} + +var legacyEnumTypeCache sync.Map // map[reflect.Type]protoreflect.EnumType + +// legacyLoadEnumType dynamically loads a protoreflect.EnumType for t, +// where t must be an int32 kind and not implement the v2 API already. +func legacyLoadEnumType(t reflect.Type) pref.EnumType { + // Fast-path: check if a EnumType is cached for this concrete type. + if et, ok := legacyEnumTypeCache.Load(t); ok { + return et.(pref.EnumType) + } + + // Slow-path: derive enum descriptor and initialize EnumType. + var et pref.EnumType + ed := LegacyLoadEnumDesc(t) + et = &legacyEnumType{ + desc: ed, + goType: t, + } + if et, ok := legacyEnumTypeCache.LoadOrStore(t, et); ok { + return et.(pref.EnumType) + } + return et +} + +type legacyEnumType struct { + desc pref.EnumDescriptor + goType reflect.Type + m sync.Map // map[protoreflect.EnumNumber]proto.Enum +} + +func (t *legacyEnumType) New(n pref.EnumNumber) pref.Enum { + if e, ok := t.m.Load(n); ok { + return e.(pref.Enum) + } + e := &legacyEnumWrapper{num: n, pbTyp: t, goTyp: t.goType} + t.m.Store(n, e) + return e +} +func (t *legacyEnumType) Descriptor() pref.EnumDescriptor { + return t.desc +} + +type legacyEnumWrapper struct { + num pref.EnumNumber + pbTyp pref.EnumType + goTyp reflect.Type +} + +func (e *legacyEnumWrapper) Descriptor() pref.EnumDescriptor { + return e.pbTyp.Descriptor() +} +func (e *legacyEnumWrapper) Type() pref.EnumType { + return e.pbTyp +} +func (e *legacyEnumWrapper) Number() pref.EnumNumber { + return e.num +} +func (e *legacyEnumWrapper) ProtoReflect() pref.Enum { + return e +} +func (e *legacyEnumWrapper) protoUnwrap() interface{} { + v := reflect.New(e.goTyp).Elem() + v.SetInt(int64(e.num)) + return v.Interface() +} + +var ( + _ pref.Enum = (*legacyEnumWrapper)(nil) + _ unwrapper = (*legacyEnumWrapper)(nil) +) + +var legacyEnumDescCache sync.Map // map[reflect.Type]protoreflect.EnumDescriptor + +// LegacyLoadEnumDesc returns an EnumDescriptor derived from the Go type, +// which must be an int32 kind and not implement the v2 API already. +// +// This is exported for testing purposes. +func LegacyLoadEnumDesc(t reflect.Type) pref.EnumDescriptor { + // Fast-path: check if an EnumDescriptor is cached for this concrete type. + if ed, ok := legacyEnumDescCache.Load(t); ok { + return ed.(pref.EnumDescriptor) + } + + // Slow-path: initialize EnumDescriptor from the raw descriptor. + ev := reflect.Zero(t).Interface() + if _, ok := ev.(pref.Enum); ok { + panic(fmt.Sprintf("%v already implements proto.Enum", t)) + } + edV1, ok := ev.(enumV1) + if !ok { + return aberrantLoadEnumDesc(t) + } + b, idxs := edV1.EnumDescriptor() + + var ed pref.EnumDescriptor + if len(idxs) == 1 { + ed = legacyLoadFileDesc(b).Enums().Get(idxs[0]) + } else { + md := legacyLoadFileDesc(b).Messages().Get(idxs[0]) + for _, i := range idxs[1 : len(idxs)-1] { + md = md.Messages().Get(i) + } + ed = md.Enums().Get(idxs[len(idxs)-1]) + } + if ed, ok := legacyEnumDescCache.LoadOrStore(t, ed); ok { + return ed.(protoreflect.EnumDescriptor) + } + return ed +} + +var aberrantEnumDescCache sync.Map // map[reflect.Type]protoreflect.EnumDescriptor + +// aberrantLoadEnumDesc returns an EnumDescriptor derived from the Go type, +// which must not implement protoreflect.Enum or enumV1. +// +// If the type does not implement enumV1, then there is no reliable +// way to derive the original protobuf type information. +// We are unable to use the global enum registry since it is +// unfortunately keyed by the protobuf full name, which we also do not know. +// Thus, this produces some bogus enum descriptor based on the Go type name. +func aberrantLoadEnumDesc(t reflect.Type) pref.EnumDescriptor { + // Fast-path: check if an EnumDescriptor is cached for this concrete type. + if ed, ok := aberrantEnumDescCache.Load(t); ok { + return ed.(pref.EnumDescriptor) + } + + // Slow-path: construct a bogus, but unique EnumDescriptor. + ed := &filedesc.Enum{L2: new(filedesc.EnumL2)} + ed.L0.FullName = AberrantDeriveFullName(t) // e.g., github_com.user.repo.MyEnum + ed.L0.ParentFile = filedesc.SurrogateProto3 + ed.L2.Values.List = append(ed.L2.Values.List, filedesc.EnumValue{}) + + // TODO: Use the presence of a UnmarshalJSON method to determine proto2? + + vd := &ed.L2.Values.List[0] + vd.L0.FullName = ed.L0.FullName + "_UNKNOWN" // e.g., github_com.user.repo.MyEnum_UNKNOWN + vd.L0.ParentFile = ed.L0.ParentFile + vd.L0.Parent = ed + + // TODO: We could use the String method to obtain some enum value names by + // starting at 0 and print the enum until it produces invalid identifiers. + // An exhaustive query is clearly impractical, but can be best-effort. + + if ed, ok := aberrantEnumDescCache.LoadOrStore(t, ed); ok { + return ed.(pref.EnumDescriptor) + } + return ed +} + +// AberrantDeriveFullName derives a fully qualified protobuf name for the given Go type +// The provided name is not guaranteed to be stable nor universally unique. +// It should be sufficiently unique within a program. +// +// This is exported for testing purposes. +func AberrantDeriveFullName(t reflect.Type) pref.FullName { + sanitize := func(r rune) rune { + switch { + case r == '/': + return '.' + case 'a' <= r && r <= 'z', 'A' <= r && r <= 'Z', '0' <= r && r <= '9': + return r + default: + return '_' + } + } + prefix := strings.Map(sanitize, t.PkgPath()) + suffix := strings.Map(sanitize, t.Name()) + if suffix == "" { + suffix = fmt.Sprintf("UnknownX%X", reflect.ValueOf(t).Pointer()) + } + + ss := append(strings.Split(prefix, "."), suffix) + for i, s := range ss { + if s == "" || ('0' <= s[0] && s[0] <= '9') { + ss[i] = "x" + s + } + } + return pref.FullName(strings.Join(ss, ".")) +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/legacy_export.go b/vendor/google.golang.org/protobuf/internal/impl/legacy_export.go new file mode 100644 index 000000000..c3d741c2f --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/legacy_export.go @@ -0,0 +1,92 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "encoding/binary" + "encoding/json" + "hash/crc32" + "math" + "reflect" + + "google.golang.org/protobuf/internal/errors" + pref "google.golang.org/protobuf/reflect/protoreflect" + piface "google.golang.org/protobuf/runtime/protoiface" +) + +// These functions exist to support exported APIs in generated protobufs. +// While these are deprecated, they cannot be removed for compatibility reasons. + +// LegacyEnumName returns the name of enums used in legacy code. +func (Export) LegacyEnumName(ed pref.EnumDescriptor) string { + return legacyEnumName(ed) +} + +// LegacyMessageTypeOf returns the protoreflect.MessageType for m, +// with name used as the message name if necessary. +func (Export) LegacyMessageTypeOf(m piface.MessageV1, name pref.FullName) pref.MessageType { + if mv := (Export{}).protoMessageV2Of(m); mv != nil { + return mv.ProtoReflect().Type() + } + return legacyLoadMessageInfo(reflect.TypeOf(m), name) +} + +// UnmarshalJSONEnum unmarshals an enum from a JSON-encoded input. +// The input can either be a string representing the enum value by name, +// or a number representing the enum number itself. +func (Export) UnmarshalJSONEnum(ed pref.EnumDescriptor, b []byte) (pref.EnumNumber, error) { + if b[0] == '"' { + var name pref.Name + if err := json.Unmarshal(b, &name); err != nil { + return 0, errors.New("invalid input for enum %v: %s", ed.FullName(), b) + } + ev := ed.Values().ByName(name) + if ev == nil { + return 0, errors.New("invalid value for enum %v: %s", ed.FullName(), name) + } + return ev.Number(), nil + } else { + var num pref.EnumNumber + if err := json.Unmarshal(b, &num); err != nil { + return 0, errors.New("invalid input for enum %v: %s", ed.FullName(), b) + } + return num, nil + } +} + +// CompressGZIP compresses the input as a GZIP-encoded file. +// The current implementation does no compression. +func (Export) CompressGZIP(in []byte) (out []byte) { + // RFC 1952, section 2.3.1. + var gzipHeader = [10]byte{0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff} + + // RFC 1951, section 3.2.4. + var blockHeader [5]byte + const maxBlockSize = math.MaxUint16 + numBlocks := 1 + len(in)/maxBlockSize + + // RFC 1952, section 2.3.1. + var gzipFooter [8]byte + binary.LittleEndian.PutUint32(gzipFooter[0:4], crc32.ChecksumIEEE(in)) + binary.LittleEndian.PutUint32(gzipFooter[4:8], uint32(len(in))) + + // Encode the input without compression using raw DEFLATE blocks. + out = make([]byte, 0, len(gzipHeader)+len(blockHeader)*numBlocks+len(in)+len(gzipFooter)) + out = append(out, gzipHeader[:]...) + for blockHeader[0] == 0 { + blockSize := maxBlockSize + if blockSize > len(in) { + blockHeader[0] = 0x01 // final bit per RFC 1951, section 3.2.3. + blockSize = len(in) + } + binary.LittleEndian.PutUint16(blockHeader[1:3], uint16(blockSize)^0x0000) + binary.LittleEndian.PutUint16(blockHeader[3:5], uint16(blockSize)^0xffff) + out = append(out, blockHeader[:]...) + out = append(out, in[:blockSize]...) + in = in[blockSize:] + } + out = append(out, gzipFooter[:]...) + return out +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/legacy_extension.go b/vendor/google.golang.org/protobuf/internal/impl/legacy_extension.go new file mode 100644 index 000000000..61757ce50 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/legacy_extension.go @@ -0,0 +1,175 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "reflect" + + "google.golang.org/protobuf/internal/descopts" + "google.golang.org/protobuf/internal/encoding/messageset" + ptag "google.golang.org/protobuf/internal/encoding/tag" + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/pragma" + pref "google.golang.org/protobuf/reflect/protoreflect" + preg "google.golang.org/protobuf/reflect/protoregistry" + piface "google.golang.org/protobuf/runtime/protoiface" +) + +func (xi *ExtensionInfo) initToLegacy() { + xd := xi.desc + var parent piface.MessageV1 + messageName := xd.ContainingMessage().FullName() + if mt, _ := preg.GlobalTypes.FindMessageByName(messageName); mt != nil { + // Create a new parent message and unwrap it if possible. + mv := mt.New().Interface() + t := reflect.TypeOf(mv) + if mv, ok := mv.(unwrapper); ok { + t = reflect.TypeOf(mv.protoUnwrap()) + } + + // Check whether the message implements the legacy v1 Message interface. + mz := reflect.Zero(t).Interface() + if mz, ok := mz.(piface.MessageV1); ok { + parent = mz + } + } + + // Determine the v1 extension type, which is unfortunately not the same as + // the v2 ExtensionType.GoType. + extType := xi.goType + switch extType.Kind() { + case reflect.Bool, reflect.Int32, reflect.Int64, reflect.Uint32, reflect.Uint64, reflect.Float32, reflect.Float64, reflect.String: + extType = reflect.PtrTo(extType) // T -> *T for singular scalar fields + } + + // Reconstruct the legacy enum full name. + var enumName string + if xd.Kind() == pref.EnumKind { + enumName = legacyEnumName(xd.Enum()) + } + + // Derive the proto file that the extension was declared within. + var filename string + if fd := xd.ParentFile(); fd != nil { + filename = fd.Path() + } + + // For MessageSet extensions, the name used is the parent message. + name := xd.FullName() + if messageset.IsMessageSetExtension(xd) { + name = name.Parent() + } + + xi.ExtendedType = parent + xi.ExtensionType = reflect.Zero(extType).Interface() + xi.Field = int32(xd.Number()) + xi.Name = string(name) + xi.Tag = ptag.Marshal(xd, enumName) + xi.Filename = filename +} + +// initFromLegacy initializes an ExtensionInfo from +// the contents of the deprecated exported fields of the type. +func (xi *ExtensionInfo) initFromLegacy() { + // The v1 API returns "type incomplete" descriptors where only the + // field number is specified. In such a case, use a placeholder. + if xi.ExtendedType == nil || xi.ExtensionType == nil { + xd := placeholderExtension{ + name: pref.FullName(xi.Name), + number: pref.FieldNumber(xi.Field), + } + xi.desc = extensionTypeDescriptor{xd, xi} + return + } + + // Resolve enum or message dependencies. + var ed pref.EnumDescriptor + var md pref.MessageDescriptor + t := reflect.TypeOf(xi.ExtensionType) + isOptional := t.Kind() == reflect.Ptr && t.Elem().Kind() != reflect.Struct + isRepeated := t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 + if isOptional || isRepeated { + t = t.Elem() + } + switch v := reflect.Zero(t).Interface().(type) { + case pref.Enum: + ed = v.Descriptor() + case enumV1: + ed = LegacyLoadEnumDesc(t) + case pref.ProtoMessage: + md = v.ProtoReflect().Descriptor() + case messageV1: + md = LegacyLoadMessageDesc(t) + } + + // Derive basic field information from the struct tag. + var evs pref.EnumValueDescriptors + if ed != nil { + evs = ed.Values() + } + fd := ptag.Unmarshal(xi.Tag, t, evs).(*filedesc.Field) + + // Construct a v2 ExtensionType. + xd := &filedesc.Extension{L2: new(filedesc.ExtensionL2)} + xd.L0.ParentFile = filedesc.SurrogateProto2 + xd.L0.FullName = pref.FullName(xi.Name) + xd.L1.Number = pref.FieldNumber(xi.Field) + xd.L1.Cardinality = fd.L1.Cardinality + xd.L1.Kind = fd.L1.Kind + xd.L2.IsPacked = fd.L1.IsPacked + xd.L2.Default = fd.L1.Default + xd.L1.Extendee = Export{}.MessageDescriptorOf(xi.ExtendedType) + xd.L2.Enum = ed + xd.L2.Message = md + + // Derive real extension field name for MessageSets. + if messageset.IsMessageSet(xd.L1.Extendee) && md.FullName() == xd.L0.FullName { + xd.L0.FullName = xd.L0.FullName.Append(messageset.ExtensionName) + } + + tt := reflect.TypeOf(xi.ExtensionType) + if isOptional { + tt = tt.Elem() + } + xi.goType = tt + xi.desc = extensionTypeDescriptor{xd, xi} +} + +type placeholderExtension struct { + name pref.FullName + number pref.FieldNumber +} + +func (x placeholderExtension) ParentFile() pref.FileDescriptor { return nil } +func (x placeholderExtension) Parent() pref.Descriptor { return nil } +func (x placeholderExtension) Index() int { return 0 } +func (x placeholderExtension) Syntax() pref.Syntax { return 0 } +func (x placeholderExtension) Name() pref.Name { return x.name.Name() } +func (x placeholderExtension) FullName() pref.FullName { return x.name } +func (x placeholderExtension) IsPlaceholder() bool { return true } +func (x placeholderExtension) Options() pref.ProtoMessage { return descopts.Field } +func (x placeholderExtension) Number() pref.FieldNumber { return x.number } +func (x placeholderExtension) Cardinality() pref.Cardinality { return 0 } +func (x placeholderExtension) Kind() pref.Kind { return 0 } +func (x placeholderExtension) HasJSONName() bool { return false } +func (x placeholderExtension) JSONName() string { return "" } +func (x placeholderExtension) HasPresence() bool { return false } +func (x placeholderExtension) HasOptionalKeyword() bool { return false } +func (x placeholderExtension) IsExtension() bool { return true } +func (x placeholderExtension) IsWeak() bool { return false } +func (x placeholderExtension) IsPacked() bool { return false } +func (x placeholderExtension) IsList() bool { return false } +func (x placeholderExtension) IsMap() bool { return false } +func (x placeholderExtension) MapKey() pref.FieldDescriptor { return nil } +func (x placeholderExtension) MapValue() pref.FieldDescriptor { return nil } +func (x placeholderExtension) HasDefault() bool { return false } +func (x placeholderExtension) Default() pref.Value { return pref.Value{} } +func (x placeholderExtension) DefaultEnumValue() pref.EnumValueDescriptor { return nil } +func (x placeholderExtension) ContainingOneof() pref.OneofDescriptor { return nil } +func (x placeholderExtension) ContainingMessage() pref.MessageDescriptor { return nil } +func (x placeholderExtension) Enum() pref.EnumDescriptor { return nil } +func (x placeholderExtension) Message() pref.MessageDescriptor { return nil } +func (x placeholderExtension) ProtoType(pref.FieldDescriptor) { return } +func (x placeholderExtension) ProtoInternal(pragma.DoNotImplement) { return } diff --git a/vendor/google.golang.org/protobuf/internal/impl/legacy_file.go b/vendor/google.golang.org/protobuf/internal/impl/legacy_file.go new file mode 100644 index 000000000..9ab091086 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/legacy_file.go @@ -0,0 +1,81 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "bytes" + "compress/gzip" + "io/ioutil" + "sync" + + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +// Every enum and message type generated by protoc-gen-go since commit 2fc053c5 +// on February 25th, 2016 has had a method to get the raw descriptor. +// Types that were not generated by protoc-gen-go or were generated prior +// to that version are not supported. +// +// The []byte returned is the encoded form of a FileDescriptorProto message +// compressed using GZIP. The []int is the path from the top-level file +// to the specific message or enum declaration. +type ( + enumV1 interface { + EnumDescriptor() ([]byte, []int) + } + messageV1 interface { + Descriptor() ([]byte, []int) + } +) + +var legacyFileDescCache sync.Map // map[*byte]protoreflect.FileDescriptor + +// legacyLoadFileDesc unmarshals b as a compressed FileDescriptorProto message. +// +// This assumes that b is immutable and that b does not refer to part of a +// concatenated series of GZIP files (which would require shenanigans that +// rely on the concatenation properties of both protobufs and GZIP). +// File descriptors generated by protoc-gen-go do not rely on that property. +func legacyLoadFileDesc(b []byte) protoreflect.FileDescriptor { + // Fast-path: check whether we already have a cached file descriptor. + if fd, ok := legacyFileDescCache.Load(&b[0]); ok { + return fd.(protoreflect.FileDescriptor) + } + + // Slow-path: decompress and unmarshal the file descriptor proto. + zr, err := gzip.NewReader(bytes.NewReader(b)) + if err != nil { + panic(err) + } + b2, err := ioutil.ReadAll(zr) + if err != nil { + panic(err) + } + + fd := filedesc.Builder{ + RawDescriptor: b2, + FileRegistry: resolverOnly{protoregistry.GlobalFiles}, // do not register back to global registry + }.Build().File + if fd, ok := legacyFileDescCache.LoadOrStore(&b[0], fd); ok { + return fd.(protoreflect.FileDescriptor) + } + return fd +} + +type resolverOnly struct { + reg *protoregistry.Files +} + +func (r resolverOnly) FindFileByPath(path string) (protoreflect.FileDescriptor, error) { + return r.reg.FindFileByPath(path) +} +func (r resolverOnly) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error) { + return r.reg.FindDescriptorByName(name) +} +func (resolverOnly) RegisterFile(protoreflect.FileDescriptor) error { + return nil +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/legacy_message.go b/vendor/google.golang.org/protobuf/internal/impl/legacy_message.go new file mode 100644 index 000000000..06c68e117 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/legacy_message.go @@ -0,0 +1,502 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + "strings" + "sync" + + "google.golang.org/protobuf/internal/descopts" + ptag "google.golang.org/protobuf/internal/encoding/tag" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/reflect/protoreflect" + pref "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" + piface "google.golang.org/protobuf/runtime/protoiface" +) + +// legacyWrapMessage wraps v as a protoreflect.Message, +// where v must be a *struct kind and not implement the v2 API already. +func legacyWrapMessage(v reflect.Value) pref.Message { + typ := v.Type() + if typ.Kind() != reflect.Ptr || typ.Elem().Kind() != reflect.Struct { + return aberrantMessage{v: v} + } + mt := legacyLoadMessageInfo(typ, "") + return mt.MessageOf(v.Interface()) +} + +var legacyMessageTypeCache sync.Map // map[reflect.Type]*MessageInfo + +// legacyLoadMessageInfo dynamically loads a *MessageInfo for t, +// where t must be a *struct kind and not implement the v2 API already. +// The provided name is used if it cannot be determined from the message. +func legacyLoadMessageInfo(t reflect.Type, name pref.FullName) *MessageInfo { + // Fast-path: check if a MessageInfo is cached for this concrete type. + if mt, ok := legacyMessageTypeCache.Load(t); ok { + return mt.(*MessageInfo) + } + + // Slow-path: derive message descriptor and initialize MessageInfo. + mi := &MessageInfo{ + Desc: legacyLoadMessageDesc(t, name), + GoReflectType: t, + } + + v := reflect.Zero(t).Interface() + if _, ok := v.(legacyMarshaler); ok { + mi.methods.Marshal = legacyMarshal + + // We have no way to tell whether the type's Marshal method + // supports deterministic serialization or not, but this + // preserves the v1 implementation's behavior of always + // calling Marshal methods when present. + mi.methods.Flags |= piface.SupportMarshalDeterministic + } + if _, ok := v.(legacyUnmarshaler); ok { + mi.methods.Unmarshal = legacyUnmarshal + } + if _, ok := v.(legacyMerger); ok { + mi.methods.Merge = legacyMerge + } + + if mi, ok := legacyMessageTypeCache.LoadOrStore(t, mi); ok { + return mi.(*MessageInfo) + } + return mi +} + +var legacyMessageDescCache sync.Map // map[reflect.Type]protoreflect.MessageDescriptor + +// LegacyLoadMessageDesc returns an MessageDescriptor derived from the Go type, +// which must be a *struct kind and not implement the v2 API already. +// +// This is exported for testing purposes. +func LegacyLoadMessageDesc(t reflect.Type) pref.MessageDescriptor { + return legacyLoadMessageDesc(t, "") +} +func legacyLoadMessageDesc(t reflect.Type, name pref.FullName) pref.MessageDescriptor { + // Fast-path: check if a MessageDescriptor is cached for this concrete type. + if mi, ok := legacyMessageDescCache.Load(t); ok { + return mi.(pref.MessageDescriptor) + } + + // Slow-path: initialize MessageDescriptor from the raw descriptor. + mv := reflect.Zero(t).Interface() + if _, ok := mv.(pref.ProtoMessage); ok { + panic(fmt.Sprintf("%v already implements proto.Message", t)) + } + mdV1, ok := mv.(messageV1) + if !ok { + return aberrantLoadMessageDesc(t, name) + } + + // If this is a dynamic message type where there isn't a 1-1 mapping between + // Go and protobuf types, calling the Descriptor method on the zero value of + // the message type isn't likely to work. If it panics, swallow the panic and + // continue as if the Descriptor method wasn't present. + b, idxs := func() ([]byte, []int) { + defer func() { + recover() + }() + return mdV1.Descriptor() + }() + if b == nil { + return aberrantLoadMessageDesc(t, name) + } + + // If the Go type has no fields, then this might be a proto3 empty message + // from before the size cache was added. If there are any fields, check to + // see that at least one of them looks like something we generated. + if nfield := t.Elem().NumField(); nfield > 0 { + hasProtoField := false + for i := 0; i < nfield; i++ { + f := t.Elem().Field(i) + if f.Tag.Get("protobuf") != "" || f.Tag.Get("protobuf_oneof") != "" || strings.HasPrefix(f.Name, "XXX_") { + hasProtoField = true + break + } + } + if !hasProtoField { + return aberrantLoadMessageDesc(t, name) + } + } + + md := legacyLoadFileDesc(b).Messages().Get(idxs[0]) + for _, i := range idxs[1:] { + md = md.Messages().Get(i) + } + if name != "" && md.FullName() != name { + panic(fmt.Sprintf("mismatching message name: got %v, want %v", md.FullName(), name)) + } + if md, ok := legacyMessageDescCache.LoadOrStore(t, md); ok { + return md.(protoreflect.MessageDescriptor) + } + return md +} + +var ( + aberrantMessageDescLock sync.Mutex + aberrantMessageDescCache map[reflect.Type]protoreflect.MessageDescriptor +) + +// aberrantLoadMessageDesc returns an MessageDescriptor derived from the Go type, +// which must not implement protoreflect.ProtoMessage or messageV1. +// +// This is a best-effort derivation of the message descriptor using the protobuf +// tags on the struct fields. +func aberrantLoadMessageDesc(t reflect.Type, name pref.FullName) pref.MessageDescriptor { + aberrantMessageDescLock.Lock() + defer aberrantMessageDescLock.Unlock() + if aberrantMessageDescCache == nil { + aberrantMessageDescCache = make(map[reflect.Type]protoreflect.MessageDescriptor) + } + return aberrantLoadMessageDescReentrant(t, name) +} +func aberrantLoadMessageDescReentrant(t reflect.Type, name pref.FullName) pref.MessageDescriptor { + // Fast-path: check if an MessageDescriptor is cached for this concrete type. + if md, ok := aberrantMessageDescCache[t]; ok { + return md + } + + // Slow-path: construct a descriptor from the Go struct type (best-effort). + // Cache the MessageDescriptor early on so that we can resolve internal + // cyclic references. + md := &filedesc.Message{L2: new(filedesc.MessageL2)} + md.L0.FullName = aberrantDeriveMessageName(t, name) + md.L0.ParentFile = filedesc.SurrogateProto2 + aberrantMessageDescCache[t] = md + + if t.Kind() != reflect.Ptr || t.Elem().Kind() != reflect.Struct { + return md + } + + // Try to determine if the message is using proto3 by checking scalars. + for i := 0; i < t.Elem().NumField(); i++ { + f := t.Elem().Field(i) + if tag := f.Tag.Get("protobuf"); tag != "" { + switch f.Type.Kind() { + case reflect.Bool, reflect.Int32, reflect.Int64, reflect.Uint32, reflect.Uint64, reflect.Float32, reflect.Float64, reflect.String: + md.L0.ParentFile = filedesc.SurrogateProto3 + } + for _, s := range strings.Split(tag, ",") { + if s == "proto3" { + md.L0.ParentFile = filedesc.SurrogateProto3 + } + } + } + } + + // Obtain a list of oneof wrapper types. + var oneofWrappers []reflect.Type + for _, method := range []string{"XXX_OneofFuncs", "XXX_OneofWrappers"} { + if fn, ok := t.MethodByName(method); ok { + for _, v := range fn.Func.Call([]reflect.Value{reflect.Zero(fn.Type.In(0))}) { + if vs, ok := v.Interface().([]interface{}); ok { + for _, v := range vs { + oneofWrappers = append(oneofWrappers, reflect.TypeOf(v)) + } + } + } + } + } + + // Obtain a list of the extension ranges. + if fn, ok := t.MethodByName("ExtensionRangeArray"); ok { + vs := fn.Func.Call([]reflect.Value{reflect.Zero(fn.Type.In(0))})[0] + for i := 0; i < vs.Len(); i++ { + v := vs.Index(i) + md.L2.ExtensionRanges.List = append(md.L2.ExtensionRanges.List, [2]pref.FieldNumber{ + pref.FieldNumber(v.FieldByName("Start").Int()), + pref.FieldNumber(v.FieldByName("End").Int() + 1), + }) + md.L2.ExtensionRangeOptions = append(md.L2.ExtensionRangeOptions, nil) + } + } + + // Derive the message fields by inspecting the struct fields. + for i := 0; i < t.Elem().NumField(); i++ { + f := t.Elem().Field(i) + if tag := f.Tag.Get("protobuf"); tag != "" { + tagKey := f.Tag.Get("protobuf_key") + tagVal := f.Tag.Get("protobuf_val") + aberrantAppendField(md, f.Type, tag, tagKey, tagVal) + } + if tag := f.Tag.Get("protobuf_oneof"); tag != "" { + n := len(md.L2.Oneofs.List) + md.L2.Oneofs.List = append(md.L2.Oneofs.List, filedesc.Oneof{}) + od := &md.L2.Oneofs.List[n] + od.L0.FullName = md.FullName().Append(pref.Name(tag)) + od.L0.ParentFile = md.L0.ParentFile + od.L0.Parent = md + od.L0.Index = n + + for _, t := range oneofWrappers { + if t.Implements(f.Type) { + f := t.Elem().Field(0) + if tag := f.Tag.Get("protobuf"); tag != "" { + aberrantAppendField(md, f.Type, tag, "", "") + fd := &md.L2.Fields.List[len(md.L2.Fields.List)-1] + fd.L1.ContainingOneof = od + od.L1.Fields.List = append(od.L1.Fields.List, fd) + } + } + } + } + } + + return md +} + +func aberrantDeriveMessageName(t reflect.Type, name pref.FullName) pref.FullName { + if name.IsValid() { + return name + } + func() { + defer func() { recover() }() // swallow possible nil panics + if m, ok := reflect.Zero(t).Interface().(interface{ XXX_MessageName() string }); ok { + name = pref.FullName(m.XXX_MessageName()) + } + }() + if name.IsValid() { + return name + } + if t.Kind() == reflect.Ptr { + t = t.Elem() + } + return AberrantDeriveFullName(t) +} + +func aberrantAppendField(md *filedesc.Message, goType reflect.Type, tag, tagKey, tagVal string) { + t := goType + isOptional := t.Kind() == reflect.Ptr && t.Elem().Kind() != reflect.Struct + isRepeated := t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 + if isOptional || isRepeated { + t = t.Elem() + } + fd := ptag.Unmarshal(tag, t, placeholderEnumValues{}).(*filedesc.Field) + + // Append field descriptor to the message. + n := len(md.L2.Fields.List) + md.L2.Fields.List = append(md.L2.Fields.List, *fd) + fd = &md.L2.Fields.List[n] + fd.L0.FullName = md.FullName().Append(fd.Name()) + fd.L0.ParentFile = md.L0.ParentFile + fd.L0.Parent = md + fd.L0.Index = n + + if fd.L1.IsWeak || fd.L1.HasPacked { + fd.L1.Options = func() pref.ProtoMessage { + opts := descopts.Field.ProtoReflect().New() + if fd.L1.IsWeak { + opts.Set(opts.Descriptor().Fields().ByName("weak"), protoreflect.ValueOfBool(true)) + } + if fd.L1.HasPacked { + opts.Set(opts.Descriptor().Fields().ByName("packed"), protoreflect.ValueOfBool(fd.L1.IsPacked)) + } + return opts.Interface() + } + } + + // Populate Enum and Message. + if fd.Enum() == nil && fd.Kind() == pref.EnumKind { + switch v := reflect.Zero(t).Interface().(type) { + case pref.Enum: + fd.L1.Enum = v.Descriptor() + default: + fd.L1.Enum = LegacyLoadEnumDesc(t) + } + } + if fd.Message() == nil && (fd.Kind() == pref.MessageKind || fd.Kind() == pref.GroupKind) { + switch v := reflect.Zero(t).Interface().(type) { + case pref.ProtoMessage: + fd.L1.Message = v.ProtoReflect().Descriptor() + case messageV1: + fd.L1.Message = LegacyLoadMessageDesc(t) + default: + if t.Kind() == reflect.Map { + n := len(md.L1.Messages.List) + md.L1.Messages.List = append(md.L1.Messages.List, filedesc.Message{L2: new(filedesc.MessageL2)}) + md2 := &md.L1.Messages.List[n] + md2.L0.FullName = md.FullName().Append(pref.Name(strs.MapEntryName(string(fd.Name())))) + md2.L0.ParentFile = md.L0.ParentFile + md2.L0.Parent = md + md2.L0.Index = n + + md2.L1.IsMapEntry = true + md2.L2.Options = func() pref.ProtoMessage { + opts := descopts.Message.ProtoReflect().New() + opts.Set(opts.Descriptor().Fields().ByName("map_entry"), protoreflect.ValueOfBool(true)) + return opts.Interface() + } + + aberrantAppendField(md2, t.Key(), tagKey, "", "") + aberrantAppendField(md2, t.Elem(), tagVal, "", "") + + fd.L1.Message = md2 + break + } + fd.L1.Message = aberrantLoadMessageDescReentrant(t, "") + } + } +} + +type placeholderEnumValues struct { + protoreflect.EnumValueDescriptors +} + +func (placeholderEnumValues) ByNumber(n pref.EnumNumber) pref.EnumValueDescriptor { + return filedesc.PlaceholderEnumValue(pref.FullName(fmt.Sprintf("UNKNOWN_%d", n))) +} + +// legacyMarshaler is the proto.Marshaler interface superseded by protoiface.Methoder. +type legacyMarshaler interface { + Marshal() ([]byte, error) +} + +// legacyUnmarshaler is the proto.Unmarshaler interface superseded by protoiface.Methoder. +type legacyUnmarshaler interface { + Unmarshal([]byte) error +} + +// legacyMerger is the proto.Merger interface superseded by protoiface.Methoder. +type legacyMerger interface { + Merge(protoiface.MessageV1) +} + +var legacyProtoMethods = &piface.Methods{ + Marshal: legacyMarshal, + Unmarshal: legacyUnmarshal, + Merge: legacyMerge, + + // We have no way to tell whether the type's Marshal method + // supports deterministic serialization or not, but this + // preserves the v1 implementation's behavior of always + // calling Marshal methods when present. + Flags: piface.SupportMarshalDeterministic, +} + +func legacyMarshal(in piface.MarshalInput) (piface.MarshalOutput, error) { + v := in.Message.(unwrapper).protoUnwrap() + marshaler, ok := v.(legacyMarshaler) + if !ok { + return piface.MarshalOutput{}, errors.New("%T does not implement Marshal", v) + } + out, err := marshaler.Marshal() + if in.Buf != nil { + out = append(in.Buf, out...) + } + return piface.MarshalOutput{ + Buf: out, + }, err +} + +func legacyUnmarshal(in piface.UnmarshalInput) (piface.UnmarshalOutput, error) { + v := in.Message.(unwrapper).protoUnwrap() + unmarshaler, ok := v.(legacyUnmarshaler) + if !ok { + return piface.UnmarshalOutput{}, errors.New("%T does not implement Marshal", v) + } + return piface.UnmarshalOutput{}, unmarshaler.Unmarshal(in.Buf) +} + +func legacyMerge(in piface.MergeInput) piface.MergeOutput { + dstv := in.Destination.(unwrapper).protoUnwrap() + merger, ok := dstv.(legacyMerger) + if !ok { + return piface.MergeOutput{} + } + merger.Merge(Export{}.ProtoMessageV1Of(in.Source)) + return piface.MergeOutput{Flags: piface.MergeComplete} +} + +// aberrantMessageType implements MessageType for all types other than pointer-to-struct. +type aberrantMessageType struct { + t reflect.Type +} + +func (mt aberrantMessageType) New() pref.Message { + return aberrantMessage{reflect.Zero(mt.t)} +} +func (mt aberrantMessageType) Zero() pref.Message { + return aberrantMessage{reflect.Zero(mt.t)} +} +func (mt aberrantMessageType) GoType() reflect.Type { + return mt.t +} +func (mt aberrantMessageType) Descriptor() pref.MessageDescriptor { + return LegacyLoadMessageDesc(mt.t) +} + +// aberrantMessage implements Message for all types other than pointer-to-struct. +// +// When the underlying type implements legacyMarshaler or legacyUnmarshaler, +// the aberrant Message can be marshaled or unmarshaled. Otherwise, there is +// not much that can be done with values of this type. +type aberrantMessage struct { + v reflect.Value +} + +func (m aberrantMessage) ProtoReflect() pref.Message { + return m +} + +func (m aberrantMessage) Descriptor() pref.MessageDescriptor { + return LegacyLoadMessageDesc(m.v.Type()) +} +func (m aberrantMessage) Type() pref.MessageType { + return aberrantMessageType{m.v.Type()} +} +func (m aberrantMessage) New() pref.Message { + return aberrantMessage{reflect.Zero(m.v.Type())} +} +func (m aberrantMessage) Interface() pref.ProtoMessage { + return m +} +func (m aberrantMessage) Range(f func(pref.FieldDescriptor, pref.Value) bool) { +} +func (m aberrantMessage) Has(pref.FieldDescriptor) bool { + panic("invalid field descriptor") +} +func (m aberrantMessage) Clear(pref.FieldDescriptor) { + panic("invalid field descriptor") +} +func (m aberrantMessage) Get(pref.FieldDescriptor) pref.Value { + panic("invalid field descriptor") +} +func (m aberrantMessage) Set(pref.FieldDescriptor, pref.Value) { + panic("invalid field descriptor") +} +func (m aberrantMessage) Mutable(pref.FieldDescriptor) pref.Value { + panic("invalid field descriptor") +} +func (m aberrantMessage) NewField(pref.FieldDescriptor) pref.Value { + panic("invalid field descriptor") +} +func (m aberrantMessage) WhichOneof(pref.OneofDescriptor) pref.FieldDescriptor { + panic("invalid oneof descriptor") +} +func (m aberrantMessage) GetUnknown() pref.RawFields { + return nil +} +func (m aberrantMessage) SetUnknown(pref.RawFields) { + // SetUnknown discards its input on messages which don't support unknown field storage. +} +func (m aberrantMessage) IsValid() bool { + // An invalid message is a read-only, empty message. Since we don't know anything + // about the alleged contents of this message, we can't say with confidence that + // it is invalid in this sense. Therefore, report it as valid. + return true +} +func (m aberrantMessage) ProtoMethods() *piface.Methods { + return legacyProtoMethods +} +func (m aberrantMessage) protoUnwrap() interface{} { + return m.v.Interface() +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/merge.go b/vendor/google.golang.org/protobuf/internal/impl/merge.go new file mode 100644 index 000000000..cdc4267df --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/merge.go @@ -0,0 +1,176 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + + "google.golang.org/protobuf/proto" + pref "google.golang.org/protobuf/reflect/protoreflect" + piface "google.golang.org/protobuf/runtime/protoiface" +) + +type mergeOptions struct{} + +func (o mergeOptions) Merge(dst, src proto.Message) { + proto.Merge(dst, src) +} + +// merge is protoreflect.Methods.Merge. +func (mi *MessageInfo) merge(in piface.MergeInput) piface.MergeOutput { + dp, ok := mi.getPointer(in.Destination) + if !ok { + return piface.MergeOutput{} + } + sp, ok := mi.getPointer(in.Source) + if !ok { + return piface.MergeOutput{} + } + mi.mergePointer(dp, sp, mergeOptions{}) + return piface.MergeOutput{Flags: piface.MergeComplete} +} + +func (mi *MessageInfo) mergePointer(dst, src pointer, opts mergeOptions) { + mi.init() + if dst.IsNil() { + panic(fmt.Sprintf("invalid value: merging into nil message")) + } + if src.IsNil() { + return + } + for _, f := range mi.orderedCoderFields { + if f.funcs.merge == nil { + continue + } + sfptr := src.Apply(f.offset) + if f.isPointer && sfptr.Elem().IsNil() { + continue + } + f.funcs.merge(dst.Apply(f.offset), sfptr, f, opts) + } + if mi.extensionOffset.IsValid() { + sext := src.Apply(mi.extensionOffset).Extensions() + dext := dst.Apply(mi.extensionOffset).Extensions() + if *dext == nil { + *dext = make(map[int32]ExtensionField) + } + for num, sx := range *sext { + xt := sx.Type() + xi := getExtensionFieldInfo(xt) + if xi.funcs.merge == nil { + continue + } + dx := (*dext)[num] + var dv pref.Value + if dx.Type() == sx.Type() { + dv = dx.Value() + } + if !dv.IsValid() && xi.unmarshalNeedsValue { + dv = xt.New() + } + dv = xi.funcs.merge(dv, sx.Value(), opts) + dx.Set(sx.Type(), dv) + (*dext)[num] = dx + } + } + if mi.unknownOffset.IsValid() { + du := dst.Apply(mi.unknownOffset).Bytes() + su := src.Apply(mi.unknownOffset).Bytes() + if len(*su) > 0 { + *du = append(*du, *su...) + } + } +} + +func mergeScalarValue(dst, src pref.Value, opts mergeOptions) pref.Value { + return src +} + +func mergeBytesValue(dst, src pref.Value, opts mergeOptions) pref.Value { + return pref.ValueOfBytes(append(emptyBuf[:], src.Bytes()...)) +} + +func mergeListValue(dst, src pref.Value, opts mergeOptions) pref.Value { + dstl := dst.List() + srcl := src.List() + for i, llen := 0, srcl.Len(); i < llen; i++ { + dstl.Append(srcl.Get(i)) + } + return dst +} + +func mergeBytesListValue(dst, src pref.Value, opts mergeOptions) pref.Value { + dstl := dst.List() + srcl := src.List() + for i, llen := 0, srcl.Len(); i < llen; i++ { + sb := srcl.Get(i).Bytes() + db := append(emptyBuf[:], sb...) + dstl.Append(pref.ValueOfBytes(db)) + } + return dst +} + +func mergeMessageListValue(dst, src pref.Value, opts mergeOptions) pref.Value { + dstl := dst.List() + srcl := src.List() + for i, llen := 0, srcl.Len(); i < llen; i++ { + sm := srcl.Get(i).Message() + dm := proto.Clone(sm.Interface()).ProtoReflect() + dstl.Append(pref.ValueOfMessage(dm)) + } + return dst +} + +func mergeMessageValue(dst, src pref.Value, opts mergeOptions) pref.Value { + opts.Merge(dst.Message().Interface(), src.Message().Interface()) + return dst +} + +func mergeMessage(dst, src pointer, f *coderFieldInfo, opts mergeOptions) { + if f.mi != nil { + if dst.Elem().IsNil() { + dst.SetPointer(pointerOfValue(reflect.New(f.mi.GoReflectType.Elem()))) + } + f.mi.mergePointer(dst.Elem(), src.Elem(), opts) + } else { + dm := dst.AsValueOf(f.ft).Elem() + sm := src.AsValueOf(f.ft).Elem() + if dm.IsNil() { + dm.Set(reflect.New(f.ft.Elem())) + } + opts.Merge(asMessage(dm), asMessage(sm)) + } +} + +func mergeMessageSlice(dst, src pointer, f *coderFieldInfo, opts mergeOptions) { + for _, sp := range src.PointerSlice() { + dm := reflect.New(f.ft.Elem().Elem()) + if f.mi != nil { + f.mi.mergePointer(pointerOfValue(dm), sp, opts) + } else { + opts.Merge(asMessage(dm), asMessage(sp.AsValueOf(f.ft.Elem().Elem()))) + } + dst.AppendPointerSlice(pointerOfValue(dm)) + } +} + +func mergeBytes(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.Bytes() = append(emptyBuf[:], *src.Bytes()...) +} + +func mergeBytesNoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.Bytes() + if len(v) > 0 { + *dst.Bytes() = append(emptyBuf[:], v...) + } +} + +func mergeBytesSlice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.BytesSlice() + for _, v := range *src.BytesSlice() { + *ds = append(*ds, append(emptyBuf[:], v...)) + } +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/merge_gen.go b/vendor/google.golang.org/protobuf/internal/impl/merge_gen.go new file mode 100644 index 000000000..8816c274d --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/merge_gen.go @@ -0,0 +1,209 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-types. DO NOT EDIT. + +package impl + +import () + +func mergeBool(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.Bool() = *src.Bool() +} + +func mergeBoolNoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.Bool() + if v != false { + *dst.Bool() = v + } +} + +func mergeBoolPtr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + p := *src.BoolPtr() + if p != nil { + v := *p + *dst.BoolPtr() = &v + } +} + +func mergeBoolSlice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.BoolSlice() + ss := src.BoolSlice() + *ds = append(*ds, *ss...) +} + +func mergeInt32(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.Int32() = *src.Int32() +} + +func mergeInt32NoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.Int32() + if v != 0 { + *dst.Int32() = v + } +} + +func mergeInt32Ptr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + p := *src.Int32Ptr() + if p != nil { + v := *p + *dst.Int32Ptr() = &v + } +} + +func mergeInt32Slice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.Int32Slice() + ss := src.Int32Slice() + *ds = append(*ds, *ss...) +} + +func mergeUint32(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.Uint32() = *src.Uint32() +} + +func mergeUint32NoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.Uint32() + if v != 0 { + *dst.Uint32() = v + } +} + +func mergeUint32Ptr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + p := *src.Uint32Ptr() + if p != nil { + v := *p + *dst.Uint32Ptr() = &v + } +} + +func mergeUint32Slice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.Uint32Slice() + ss := src.Uint32Slice() + *ds = append(*ds, *ss...) +} + +func mergeInt64(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.Int64() = *src.Int64() +} + +func mergeInt64NoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.Int64() + if v != 0 { + *dst.Int64() = v + } +} + +func mergeInt64Ptr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + p := *src.Int64Ptr() + if p != nil { + v := *p + *dst.Int64Ptr() = &v + } +} + +func mergeInt64Slice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.Int64Slice() + ss := src.Int64Slice() + *ds = append(*ds, *ss...) +} + +func mergeUint64(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.Uint64() = *src.Uint64() +} + +func mergeUint64NoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.Uint64() + if v != 0 { + *dst.Uint64() = v + } +} + +func mergeUint64Ptr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + p := *src.Uint64Ptr() + if p != nil { + v := *p + *dst.Uint64Ptr() = &v + } +} + +func mergeUint64Slice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.Uint64Slice() + ss := src.Uint64Slice() + *ds = append(*ds, *ss...) +} + +func mergeFloat32(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.Float32() = *src.Float32() +} + +func mergeFloat32NoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.Float32() + if v != 0 { + *dst.Float32() = v + } +} + +func mergeFloat32Ptr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + p := *src.Float32Ptr() + if p != nil { + v := *p + *dst.Float32Ptr() = &v + } +} + +func mergeFloat32Slice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.Float32Slice() + ss := src.Float32Slice() + *ds = append(*ds, *ss...) +} + +func mergeFloat64(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.Float64() = *src.Float64() +} + +func mergeFloat64NoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.Float64() + if v != 0 { + *dst.Float64() = v + } +} + +func mergeFloat64Ptr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + p := *src.Float64Ptr() + if p != nil { + v := *p + *dst.Float64Ptr() = &v + } +} + +func mergeFloat64Slice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.Float64Slice() + ss := src.Float64Slice() + *ds = append(*ds, *ss...) +} + +func mergeString(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.String() = *src.String() +} + +func mergeStringNoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.String() + if v != "" { + *dst.String() = v + } +} + +func mergeStringPtr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + p := *src.StringPtr() + if p != nil { + v := *p + *dst.StringPtr() = &v + } +} + +func mergeStringSlice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.StringSlice() + ss := src.StringSlice() + *ds = append(*ds, *ss...) +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/message.go b/vendor/google.golang.org/protobuf/internal/impl/message.go new file mode 100644 index 000000000..7dd994bd9 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/message.go @@ -0,0 +1,215 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + "strconv" + "strings" + "sync" + "sync/atomic" + + "google.golang.org/protobuf/internal/genname" + "google.golang.org/protobuf/reflect/protoreflect" + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +// MessageInfo provides protobuf related functionality for a given Go type +// that represents a message. A given instance of MessageInfo is tied to +// exactly one Go type, which must be a pointer to a struct type. +// +// The exported fields must be populated before any methods are called +// and cannot be mutated after set. +type MessageInfo struct { + // GoReflectType is the underlying message Go type and must be populated. + GoReflectType reflect.Type // pointer to struct + + // Desc is the underlying message descriptor type and must be populated. + Desc pref.MessageDescriptor + + // Exporter must be provided in a purego environment in order to provide + // access to unexported fields. + Exporter exporter + + // OneofWrappers is list of pointers to oneof wrapper struct types. + OneofWrappers []interface{} + + initMu sync.Mutex // protects all unexported fields + initDone uint32 + + reflectMessageInfo // for reflection implementation + coderMessageInfo // for fast-path method implementations +} + +// exporter is a function that returns a reference to the ith field of v, +// where v is a pointer to a struct. It returns nil if it does not support +// exporting the requested field (e.g., already exported). +type exporter func(v interface{}, i int) interface{} + +// getMessageInfo returns the MessageInfo for any message type that +// is generated by our implementation of protoc-gen-go (for v2 and on). +// If it is unable to obtain a MessageInfo, it returns nil. +func getMessageInfo(mt reflect.Type) *MessageInfo { + m, ok := reflect.Zero(mt).Interface().(pref.ProtoMessage) + if !ok { + return nil + } + mr, ok := m.ProtoReflect().(interface{ ProtoMessageInfo() *MessageInfo }) + if !ok { + return nil + } + return mr.ProtoMessageInfo() +} + +func (mi *MessageInfo) init() { + // This function is called in the hot path. Inline the sync.Once logic, + // since allocating a closure for Once.Do is expensive. + // Keep init small to ensure that it can be inlined. + if atomic.LoadUint32(&mi.initDone) == 0 { + mi.initOnce() + } +} + +func (mi *MessageInfo) initOnce() { + mi.initMu.Lock() + defer mi.initMu.Unlock() + if mi.initDone == 1 { + return + } + + t := mi.GoReflectType + if t.Kind() != reflect.Ptr && t.Elem().Kind() != reflect.Struct { + panic(fmt.Sprintf("got %v, want *struct kind", t)) + } + t = t.Elem() + + si := mi.makeStructInfo(t) + mi.makeReflectFuncs(t, si) + mi.makeCoderMethods(t, si) + + atomic.StoreUint32(&mi.initDone, 1) +} + +// getPointer returns the pointer for a message, which should be of +// the type of the MessageInfo. If the message is of a different type, +// it returns ok==false. +func (mi *MessageInfo) getPointer(m pref.Message) (p pointer, ok bool) { + switch m := m.(type) { + case *messageState: + return m.pointer(), m.messageInfo() == mi + case *messageReflectWrapper: + return m.pointer(), m.messageInfo() == mi + } + return pointer{}, false +} + +type ( + SizeCache = int32 + WeakFields = map[int32]protoreflect.ProtoMessage + UnknownFields = []byte + ExtensionFields = map[int32]ExtensionField +) + +var ( + sizecacheType = reflect.TypeOf(SizeCache(0)) + weakFieldsType = reflect.TypeOf(WeakFields(nil)) + unknownFieldsType = reflect.TypeOf(UnknownFields(nil)) + extensionFieldsType = reflect.TypeOf(ExtensionFields(nil)) +) + +type structInfo struct { + sizecacheOffset offset + weakOffset offset + unknownOffset offset + extensionOffset offset + + fieldsByNumber map[pref.FieldNumber]reflect.StructField + oneofsByName map[pref.Name]reflect.StructField + oneofWrappersByType map[reflect.Type]pref.FieldNumber + oneofWrappersByNumber map[pref.FieldNumber]reflect.Type +} + +func (mi *MessageInfo) makeStructInfo(t reflect.Type) structInfo { + si := structInfo{ + sizecacheOffset: invalidOffset, + weakOffset: invalidOffset, + unknownOffset: invalidOffset, + extensionOffset: invalidOffset, + + fieldsByNumber: map[pref.FieldNumber]reflect.StructField{}, + oneofsByName: map[pref.Name]reflect.StructField{}, + oneofWrappersByType: map[reflect.Type]pref.FieldNumber{}, + oneofWrappersByNumber: map[pref.FieldNumber]reflect.Type{}, + } + +fieldLoop: + for i := 0; i < t.NumField(); i++ { + switch f := t.Field(i); f.Name { + case genname.SizeCache, genname.SizeCacheA: + if f.Type == sizecacheType { + si.sizecacheOffset = offsetOf(f, mi.Exporter) + } + case genname.WeakFields, genname.WeakFieldsA: + if f.Type == weakFieldsType { + si.weakOffset = offsetOf(f, mi.Exporter) + } + case genname.UnknownFields, genname.UnknownFieldsA: + if f.Type == unknownFieldsType { + si.unknownOffset = offsetOf(f, mi.Exporter) + } + case genname.ExtensionFields, genname.ExtensionFieldsA, genname.ExtensionFieldsB: + if f.Type == extensionFieldsType { + si.extensionOffset = offsetOf(f, mi.Exporter) + } + default: + for _, s := range strings.Split(f.Tag.Get("protobuf"), ",") { + if len(s) > 0 && strings.Trim(s, "0123456789") == "" { + n, _ := strconv.ParseUint(s, 10, 64) + si.fieldsByNumber[pref.FieldNumber(n)] = f + continue fieldLoop + } + } + if s := f.Tag.Get("protobuf_oneof"); len(s) > 0 { + si.oneofsByName[pref.Name(s)] = f + continue fieldLoop + } + } + } + + // Derive a mapping of oneof wrappers to fields. + oneofWrappers := mi.OneofWrappers + for _, method := range []string{"XXX_OneofFuncs", "XXX_OneofWrappers"} { + if fn, ok := reflect.PtrTo(t).MethodByName(method); ok { + for _, v := range fn.Func.Call([]reflect.Value{reflect.Zero(fn.Type.In(0))}) { + if vs, ok := v.Interface().([]interface{}); ok { + oneofWrappers = vs + } + } + } + } + for _, v := range oneofWrappers { + tf := reflect.TypeOf(v).Elem() + f := tf.Field(0) + for _, s := range strings.Split(f.Tag.Get("protobuf"), ",") { + if len(s) > 0 && strings.Trim(s, "0123456789") == "" { + n, _ := strconv.ParseUint(s, 10, 64) + si.oneofWrappersByType[tf] = pref.FieldNumber(n) + si.oneofWrappersByNumber[pref.FieldNumber(n)] = tf + break + } + } + } + + return si +} + +func (mi *MessageInfo) New() protoreflect.Message { + return mi.MessageOf(reflect.New(mi.GoReflectType.Elem()).Interface()) +} +func (mi *MessageInfo) Zero() protoreflect.Message { + return mi.MessageOf(reflect.Zero(mi.GoReflectType).Interface()) +} +func (mi *MessageInfo) Descriptor() protoreflect.MessageDescriptor { return mi.Desc } diff --git a/vendor/google.golang.org/protobuf/internal/impl/message_reflect.go b/vendor/google.golang.org/protobuf/internal/impl/message_reflect.go new file mode 100644 index 000000000..0f4b8db76 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/message_reflect.go @@ -0,0 +1,364 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + + "google.golang.org/protobuf/internal/pragma" + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +type reflectMessageInfo struct { + fields map[pref.FieldNumber]*fieldInfo + oneofs map[pref.Name]*oneofInfo + + // denseFields is a subset of fields where: + // 0 < fieldDesc.Number() < len(denseFields) + // It provides faster access to the fieldInfo, but may be incomplete. + denseFields []*fieldInfo + + // rangeInfos is a list of all fields (not belonging to a oneof) and oneofs. + rangeInfos []interface{} // either *fieldInfo or *oneofInfo + + getUnknown func(pointer) pref.RawFields + setUnknown func(pointer, pref.RawFields) + extensionMap func(pointer) *extensionMap + + nilMessage atomicNilMessage +} + +// makeReflectFuncs generates the set of functions to support reflection. +func (mi *MessageInfo) makeReflectFuncs(t reflect.Type, si structInfo) { + mi.makeKnownFieldsFunc(si) + mi.makeUnknownFieldsFunc(t, si) + mi.makeExtensionFieldsFunc(t, si) +} + +// makeKnownFieldsFunc generates functions for operations that can be performed +// on each protobuf message field. It takes in a reflect.Type representing the +// Go struct and matches message fields with struct fields. +// +// This code assumes that the struct is well-formed and panics if there are +// any discrepancies. +func (mi *MessageInfo) makeKnownFieldsFunc(si structInfo) { + mi.fields = map[pref.FieldNumber]*fieldInfo{} + md := mi.Desc + fds := md.Fields() + for i := 0; i < fds.Len(); i++ { + fd := fds.Get(i) + fs := si.fieldsByNumber[fd.Number()] + var fi fieldInfo + switch { + case fd.ContainingOneof() != nil && !fd.ContainingOneof().IsSynthetic(): + fi = fieldInfoForOneof(fd, si.oneofsByName[fd.ContainingOneof().Name()], mi.Exporter, si.oneofWrappersByNumber[fd.Number()]) + case fd.IsMap(): + fi = fieldInfoForMap(fd, fs, mi.Exporter) + case fd.IsList(): + fi = fieldInfoForList(fd, fs, mi.Exporter) + case fd.IsWeak(): + fi = fieldInfoForWeakMessage(fd, si.weakOffset) + case fd.Kind() == pref.MessageKind || fd.Kind() == pref.GroupKind: + fi = fieldInfoForMessage(fd, fs, mi.Exporter) + default: + fi = fieldInfoForScalar(fd, fs, mi.Exporter) + } + mi.fields[fd.Number()] = &fi + } + + mi.oneofs = map[pref.Name]*oneofInfo{} + for i := 0; i < md.Oneofs().Len(); i++ { + od := md.Oneofs().Get(i) + mi.oneofs[od.Name()] = makeOneofInfo(od, si, mi.Exporter) + } + + mi.denseFields = make([]*fieldInfo, fds.Len()*2) + for i := 0; i < fds.Len(); i++ { + if fd := fds.Get(i); int(fd.Number()) < len(mi.denseFields) { + mi.denseFields[fd.Number()] = mi.fields[fd.Number()] + } + } + + for i := 0; i < fds.Len(); { + fd := fds.Get(i) + if od := fd.ContainingOneof(); od != nil && !od.IsSynthetic() { + mi.rangeInfos = append(mi.rangeInfos, mi.oneofs[od.Name()]) + i += od.Fields().Len() + } else { + mi.rangeInfos = append(mi.rangeInfos, mi.fields[fd.Number()]) + i++ + } + } +} + +func (mi *MessageInfo) makeUnknownFieldsFunc(t reflect.Type, si structInfo) { + mi.getUnknown = func(pointer) pref.RawFields { return nil } + mi.setUnknown = func(pointer, pref.RawFields) { return } + if si.unknownOffset.IsValid() { + mi.getUnknown = func(p pointer) pref.RawFields { + if p.IsNil() { + return nil + } + rv := p.Apply(si.unknownOffset).AsValueOf(unknownFieldsType) + return pref.RawFields(*rv.Interface().(*[]byte)) + } + mi.setUnknown = func(p pointer, b pref.RawFields) { + if p.IsNil() { + panic("invalid SetUnknown on nil Message") + } + rv := p.Apply(si.unknownOffset).AsValueOf(unknownFieldsType) + *rv.Interface().(*[]byte) = []byte(b) + } + } else { + mi.getUnknown = func(pointer) pref.RawFields { + return nil + } + mi.setUnknown = func(p pointer, _ pref.RawFields) { + if p.IsNil() { + panic("invalid SetUnknown on nil Message") + } + } + } +} + +func (mi *MessageInfo) makeExtensionFieldsFunc(t reflect.Type, si structInfo) { + if si.extensionOffset.IsValid() { + mi.extensionMap = func(p pointer) *extensionMap { + if p.IsNil() { + return (*extensionMap)(nil) + } + v := p.Apply(si.extensionOffset).AsValueOf(extensionFieldsType) + return (*extensionMap)(v.Interface().(*map[int32]ExtensionField)) + } + } else { + mi.extensionMap = func(pointer) *extensionMap { + return (*extensionMap)(nil) + } + } +} + +type extensionMap map[int32]ExtensionField + +func (m *extensionMap) Range(f func(pref.FieldDescriptor, pref.Value) bool) { + if m != nil { + for _, x := range *m { + xd := x.Type().TypeDescriptor() + v := x.Value() + if xd.IsList() && v.List().Len() == 0 { + continue + } + if !f(xd, v) { + return + } + } + } +} +func (m *extensionMap) Has(xt pref.ExtensionType) (ok bool) { + if m == nil { + return false + } + xd := xt.TypeDescriptor() + x, ok := (*m)[int32(xd.Number())] + if !ok { + return false + } + switch { + case xd.IsList(): + return x.Value().List().Len() > 0 + case xd.IsMap(): + return x.Value().Map().Len() > 0 + case xd.Message() != nil: + return x.Value().Message().IsValid() + } + return true +} +func (m *extensionMap) Clear(xt pref.ExtensionType) { + delete(*m, int32(xt.TypeDescriptor().Number())) +} +func (m *extensionMap) Get(xt pref.ExtensionType) pref.Value { + xd := xt.TypeDescriptor() + if m != nil { + if x, ok := (*m)[int32(xd.Number())]; ok { + return x.Value() + } + } + return xt.Zero() +} +func (m *extensionMap) Set(xt pref.ExtensionType, v pref.Value) { + xd := xt.TypeDescriptor() + isValid := true + switch { + case !xt.IsValidValue(v): + isValid = false + case xd.IsList(): + isValid = v.List().IsValid() + case xd.IsMap(): + isValid = v.Map().IsValid() + case xd.Message() != nil: + isValid = v.Message().IsValid() + } + if !isValid { + panic(fmt.Sprintf("%v: assigning invalid value", xt.TypeDescriptor().FullName())) + } + + if *m == nil { + *m = make(map[int32]ExtensionField) + } + var x ExtensionField + x.Set(xt, v) + (*m)[int32(xd.Number())] = x +} +func (m *extensionMap) Mutable(xt pref.ExtensionType) pref.Value { + xd := xt.TypeDescriptor() + if xd.Kind() != pref.MessageKind && xd.Kind() != pref.GroupKind && !xd.IsList() && !xd.IsMap() { + panic("invalid Mutable on field with non-composite type") + } + if x, ok := (*m)[int32(xd.Number())]; ok { + return x.Value() + } + v := xt.New() + m.Set(xt, v) + return v +} + +// MessageState is a data structure that is nested as the first field in a +// concrete message. It provides a way to implement the ProtoReflect method +// in an allocation-free way without needing to have a shadow Go type generated +// for every message type. This technique only works using unsafe. +// +// +// Example generated code: +// +// type M struct { +// state protoimpl.MessageState +// +// Field1 int32 +// Field2 string +// Field3 *BarMessage +// ... +// } +// +// func (m *M) ProtoReflect() protoreflect.Message { +// mi := &file_fizz_buzz_proto_msgInfos[5] +// if protoimpl.UnsafeEnabled && m != nil { +// ms := protoimpl.X.MessageStateOf(Pointer(m)) +// if ms.LoadMessageInfo() == nil { +// ms.StoreMessageInfo(mi) +// } +// return ms +// } +// return mi.MessageOf(m) +// } +// +// The MessageState type holds a *MessageInfo, which must be atomically set to +// the message info associated with a given message instance. +// By unsafely converting a *M into a *MessageState, the MessageState object +// has access to all the information needed to implement protobuf reflection. +// It has access to the message info as its first field, and a pointer to the +// MessageState is identical to a pointer to the concrete message value. +// +// +// Requirements: +// • The type M must implement protoreflect.ProtoMessage. +// • The address of m must not be nil. +// • The address of m and the address of m.state must be equal, +// even though they are different Go types. +type MessageState struct { + pragma.NoUnkeyedLiterals + pragma.DoNotCompare + pragma.DoNotCopy + + atomicMessageInfo *MessageInfo +} + +type messageState MessageState + +var ( + _ pref.Message = (*messageState)(nil) + _ unwrapper = (*messageState)(nil) +) + +// messageDataType is a tuple of a pointer to the message data and +// a pointer to the message type. It is a generalized way of providing a +// reflective view over a message instance. The disadvantage of this approach +// is the need to allocate this tuple of 16B. +type messageDataType struct { + p pointer + mi *MessageInfo +} + +type ( + messageReflectWrapper messageDataType + messageIfaceWrapper messageDataType +) + +var ( + _ pref.Message = (*messageReflectWrapper)(nil) + _ unwrapper = (*messageReflectWrapper)(nil) + _ pref.ProtoMessage = (*messageIfaceWrapper)(nil) + _ unwrapper = (*messageIfaceWrapper)(nil) +) + +// MessageOf returns a reflective view over a message. The input must be a +// pointer to a named Go struct. If the provided type has a ProtoReflect method, +// it must be implemented by calling this method. +func (mi *MessageInfo) MessageOf(m interface{}) pref.Message { + // TODO: Switch the input to be an opaque Pointer. + if reflect.TypeOf(m) != mi.GoReflectType { + panic(fmt.Sprintf("type mismatch: got %T, want %v", m, mi.GoReflectType)) + } + p := pointerOfIface(m) + if p.IsNil() { + return mi.nilMessage.Init(mi) + } + return &messageReflectWrapper{p, mi} +} + +func (m *messageReflectWrapper) pointer() pointer { return m.p } +func (m *messageReflectWrapper) messageInfo() *MessageInfo { return m.mi } + +func (m *messageIfaceWrapper) ProtoReflect() pref.Message { + return (*messageReflectWrapper)(m) +} +func (m *messageIfaceWrapper) protoUnwrap() interface{} { + return m.p.AsIfaceOf(m.mi.GoReflectType.Elem()) +} + +// checkField verifies that the provided field descriptor is valid. +// Exactly one of the returned values is populated. +func (mi *MessageInfo) checkField(fd pref.FieldDescriptor) (*fieldInfo, pref.ExtensionType) { + var fi *fieldInfo + if n := fd.Number(); 0 < n && int(n) < len(mi.denseFields) { + fi = mi.denseFields[n] + } else { + fi = mi.fields[n] + } + if fi != nil { + if fi.fieldDesc != fd { + if got, want := fd.FullName(), fi.fieldDesc.FullName(); got != want { + panic(fmt.Sprintf("mismatching field: got %v, want %v", got, want)) + } + panic(fmt.Sprintf("mismatching field: %v", fd.FullName())) + } + return fi, nil + } + + if fd.IsExtension() { + if got, want := fd.ContainingMessage().FullName(), mi.Desc.FullName(); got != want { + // TODO: Should this be exact containing message descriptor match? + panic(fmt.Sprintf("extension %v has mismatching containing message: got %v, want %v", fd.FullName(), got, want)) + } + if !mi.Desc.ExtensionRanges().Has(fd.Number()) { + panic(fmt.Sprintf("extension %v extends %v outside the extension range", fd.FullName(), mi.Desc.FullName())) + } + xtd, ok := fd.(pref.ExtensionTypeDescriptor) + if !ok { + panic(fmt.Sprintf("extension %v does not implement protoreflect.ExtensionTypeDescriptor", fd.FullName())) + } + return nil, xtd.Type() + } + panic(fmt.Sprintf("field %v is invalid", fd.FullName())) +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/message_reflect_field.go b/vendor/google.golang.org/protobuf/internal/impl/message_reflect_field.go new file mode 100644 index 000000000..23124a86e --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/message_reflect_field.go @@ -0,0 +1,466 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "math" + "reflect" + "sync" + + "google.golang.org/protobuf/internal/flags" + pref "google.golang.org/protobuf/reflect/protoreflect" + preg "google.golang.org/protobuf/reflect/protoregistry" +) + +type fieldInfo struct { + fieldDesc pref.FieldDescriptor + + // These fields are used for protobuf reflection support. + has func(pointer) bool + clear func(pointer) + get func(pointer) pref.Value + set func(pointer, pref.Value) + mutable func(pointer) pref.Value + newMessage func() pref.Message + newField func() pref.Value +} + +func fieldInfoForOneof(fd pref.FieldDescriptor, fs reflect.StructField, x exporter, ot reflect.Type) fieldInfo { + ft := fs.Type + if ft.Kind() != reflect.Interface { + panic(fmt.Sprintf("field %v has invalid type: got %v, want interface kind", fd.FullName(), ft)) + } + if ot.Kind() != reflect.Struct { + panic(fmt.Sprintf("field %v has invalid type: got %v, want struct kind", fd.FullName(), ot)) + } + if !reflect.PtrTo(ot).Implements(ft) { + panic(fmt.Sprintf("field %v has invalid type: %v does not implement %v", fd.FullName(), ot, ft)) + } + conv := NewConverter(ot.Field(0).Type, fd) + isMessage := fd.Message() != nil + + // TODO: Implement unsafe fast path? + fieldOffset := offsetOf(fs, x) + return fieldInfo{ + // NOTE: The logic below intentionally assumes that oneof fields are + // well-formatted. That is, the oneof interface never contains a + // typed nil pointer to one of the wrapper structs. + + fieldDesc: fd, + has: func(p pointer) bool { + if p.IsNil() { + return false + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.IsNil() || rv.Elem().Type().Elem() != ot || rv.Elem().IsNil() { + return false + } + return true + }, + clear: func(p pointer) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.IsNil() || rv.Elem().Type().Elem() != ot { + // NOTE: We intentionally don't check for rv.Elem().IsNil() + // so that (*OneofWrapperType)(nil) gets cleared to nil. + return + } + rv.Set(reflect.Zero(rv.Type())) + }, + get: func(p pointer) pref.Value { + if p.IsNil() { + return conv.Zero() + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.IsNil() || rv.Elem().Type().Elem() != ot || rv.Elem().IsNil() { + return conv.Zero() + } + rv = rv.Elem().Elem().Field(0) + return conv.PBValueOf(rv) + }, + set: func(p pointer, v pref.Value) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.IsNil() || rv.Elem().Type().Elem() != ot || rv.Elem().IsNil() { + rv.Set(reflect.New(ot)) + } + rv = rv.Elem().Elem().Field(0) + rv.Set(conv.GoValueOf(v)) + }, + mutable: func(p pointer) pref.Value { + if !isMessage { + panic(fmt.Sprintf("field %v with invalid Mutable call on field with non-composite type", fd.FullName())) + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.IsNil() || rv.Elem().Type().Elem() != ot || rv.Elem().IsNil() { + rv.Set(reflect.New(ot)) + } + rv = rv.Elem().Elem().Field(0) + if rv.IsNil() { + rv.Set(conv.GoValueOf(pref.ValueOfMessage(conv.New().Message()))) + } + return conv.PBValueOf(rv) + }, + newMessage: func() pref.Message { + return conv.New().Message() + }, + newField: func() pref.Value { + return conv.New() + }, + } +} + +func fieldInfoForMap(fd pref.FieldDescriptor, fs reflect.StructField, x exporter) fieldInfo { + ft := fs.Type + if ft.Kind() != reflect.Map { + panic(fmt.Sprintf("field %v has invalid type: got %v, want map kind", fd.FullName(), ft)) + } + conv := NewConverter(ft, fd) + + // TODO: Implement unsafe fast path? + fieldOffset := offsetOf(fs, x) + return fieldInfo{ + fieldDesc: fd, + has: func(p pointer) bool { + if p.IsNil() { + return false + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + return rv.Len() > 0 + }, + clear: func(p pointer) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + rv.Set(reflect.Zero(rv.Type())) + }, + get: func(p pointer) pref.Value { + if p.IsNil() { + return conv.Zero() + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.Len() == 0 { + return conv.Zero() + } + return conv.PBValueOf(rv) + }, + set: func(p pointer, v pref.Value) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + pv := conv.GoValueOf(v) + if pv.IsNil() { + panic(fmt.Sprintf("map field %v cannot be set with read-only value", fd.FullName())) + } + rv.Set(pv) + }, + mutable: func(p pointer) pref.Value { + v := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if v.IsNil() { + v.Set(reflect.MakeMap(fs.Type)) + } + return conv.PBValueOf(v) + }, + newField: func() pref.Value { + return conv.New() + }, + } +} + +func fieldInfoForList(fd pref.FieldDescriptor, fs reflect.StructField, x exporter) fieldInfo { + ft := fs.Type + if ft.Kind() != reflect.Slice { + panic(fmt.Sprintf("field %v has invalid type: got %v, want slice kind", fd.FullName(), ft)) + } + conv := NewConverter(reflect.PtrTo(ft), fd) + + // TODO: Implement unsafe fast path? + fieldOffset := offsetOf(fs, x) + return fieldInfo{ + fieldDesc: fd, + has: func(p pointer) bool { + if p.IsNil() { + return false + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + return rv.Len() > 0 + }, + clear: func(p pointer) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + rv.Set(reflect.Zero(rv.Type())) + }, + get: func(p pointer) pref.Value { + if p.IsNil() { + return conv.Zero() + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type) + if rv.Elem().Len() == 0 { + return conv.Zero() + } + return conv.PBValueOf(rv) + }, + set: func(p pointer, v pref.Value) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + pv := conv.GoValueOf(v) + if pv.IsNil() { + panic(fmt.Sprintf("list field %v cannot be set with read-only value", fd.FullName())) + } + rv.Set(pv.Elem()) + }, + mutable: func(p pointer) pref.Value { + v := p.Apply(fieldOffset).AsValueOf(fs.Type) + return conv.PBValueOf(v) + }, + newField: func() pref.Value { + return conv.New() + }, + } +} + +var ( + nilBytes = reflect.ValueOf([]byte(nil)) + emptyBytes = reflect.ValueOf([]byte{}) +) + +func fieldInfoForScalar(fd pref.FieldDescriptor, fs reflect.StructField, x exporter) fieldInfo { + ft := fs.Type + nullable := fd.HasPresence() + isBytes := ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 + if nullable { + if ft.Kind() != reflect.Ptr && ft.Kind() != reflect.Slice { + panic(fmt.Sprintf("field %v has invalid type: got %v, want pointer", fd.FullName(), ft)) + } + if ft.Kind() == reflect.Ptr { + ft = ft.Elem() + } + } + conv := NewConverter(ft, fd) + + // TODO: Implement unsafe fast path? + fieldOffset := offsetOf(fs, x) + return fieldInfo{ + fieldDesc: fd, + has: func(p pointer) bool { + if p.IsNil() { + return false + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if nullable { + return !rv.IsNil() + } + switch rv.Kind() { + case reflect.Bool: + return rv.Bool() + case reflect.Int32, reflect.Int64: + return rv.Int() != 0 + case reflect.Uint32, reflect.Uint64: + return rv.Uint() != 0 + case reflect.Float32, reflect.Float64: + return rv.Float() != 0 || math.Signbit(rv.Float()) + case reflect.String, reflect.Slice: + return rv.Len() > 0 + default: + panic(fmt.Sprintf("field %v has invalid type: %v", fd.FullName(), rv.Type())) // should never happen + } + }, + clear: func(p pointer) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + rv.Set(reflect.Zero(rv.Type())) + }, + get: func(p pointer) pref.Value { + if p.IsNil() { + return conv.Zero() + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if nullable { + if rv.IsNil() { + return conv.Zero() + } + if rv.Kind() == reflect.Ptr { + rv = rv.Elem() + } + } + return conv.PBValueOf(rv) + }, + set: func(p pointer, v pref.Value) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if nullable && rv.Kind() == reflect.Ptr { + if rv.IsNil() { + rv.Set(reflect.New(ft)) + } + rv = rv.Elem() + } + rv.Set(conv.GoValueOf(v)) + if isBytes && rv.Len() == 0 { + if nullable { + rv.Set(emptyBytes) // preserve presence + } else { + rv.Set(nilBytes) // do not preserve presence + } + } + }, + newField: func() pref.Value { + return conv.New() + }, + } +} + +func fieldInfoForWeakMessage(fd pref.FieldDescriptor, weakOffset offset) fieldInfo { + if !flags.ProtoLegacy { + panic("no support for proto1 weak fields") + } + + var once sync.Once + var messageType pref.MessageType + lazyInit := func() { + once.Do(func() { + messageName := fd.Message().FullName() + messageType, _ = preg.GlobalTypes.FindMessageByName(messageName) + if messageType == nil { + panic(fmt.Sprintf("weak message %v for field %v is not linked in", messageName, fd.FullName())) + } + }) + } + + num := fd.Number() + return fieldInfo{ + fieldDesc: fd, + has: func(p pointer) bool { + if p.IsNil() { + return false + } + _, ok := p.Apply(weakOffset).WeakFields().get(num) + return ok + }, + clear: func(p pointer) { + p.Apply(weakOffset).WeakFields().clear(num) + }, + get: func(p pointer) pref.Value { + lazyInit() + if p.IsNil() { + return pref.ValueOfMessage(messageType.Zero()) + } + m, ok := p.Apply(weakOffset).WeakFields().get(num) + if !ok { + return pref.ValueOfMessage(messageType.Zero()) + } + return pref.ValueOfMessage(m.ProtoReflect()) + }, + set: func(p pointer, v pref.Value) { + lazyInit() + m := v.Message() + if m.Descriptor() != messageType.Descriptor() { + if got, want := m.Descriptor().FullName(), messageType.Descriptor().FullName(); got != want { + panic(fmt.Sprintf("field %v has mismatching message descriptor: got %v, want %v", fd.FullName(), got, want)) + } + panic(fmt.Sprintf("field %v has mismatching message descriptor: %v", fd.FullName(), m.Descriptor().FullName())) + } + p.Apply(weakOffset).WeakFields().set(num, m.Interface()) + }, + mutable: func(p pointer) pref.Value { + lazyInit() + fs := p.Apply(weakOffset).WeakFields() + m, ok := fs.get(num) + if !ok { + m = messageType.New().Interface() + fs.set(num, m) + } + return pref.ValueOfMessage(m.ProtoReflect()) + }, + newMessage: func() pref.Message { + lazyInit() + return messageType.New() + }, + newField: func() pref.Value { + lazyInit() + return pref.ValueOfMessage(messageType.New()) + }, + } +} + +func fieldInfoForMessage(fd pref.FieldDescriptor, fs reflect.StructField, x exporter) fieldInfo { + ft := fs.Type + conv := NewConverter(ft, fd) + + // TODO: Implement unsafe fast path? + fieldOffset := offsetOf(fs, x) + return fieldInfo{ + fieldDesc: fd, + has: func(p pointer) bool { + if p.IsNil() { + return false + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + return !rv.IsNil() + }, + clear: func(p pointer) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + rv.Set(reflect.Zero(rv.Type())) + }, + get: func(p pointer) pref.Value { + if p.IsNil() { + return conv.Zero() + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + return conv.PBValueOf(rv) + }, + set: func(p pointer, v pref.Value) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + rv.Set(conv.GoValueOf(v)) + if rv.IsNil() { + panic(fmt.Sprintf("field %v has invalid nil pointer", fd.FullName())) + } + }, + mutable: func(p pointer) pref.Value { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.IsNil() { + rv.Set(conv.GoValueOf(conv.New())) + } + return conv.PBValueOf(rv) + }, + newMessage: func() pref.Message { + return conv.New().Message() + }, + newField: func() pref.Value { + return conv.New() + }, + } +} + +type oneofInfo struct { + oneofDesc pref.OneofDescriptor + which func(pointer) pref.FieldNumber +} + +func makeOneofInfo(od pref.OneofDescriptor, si structInfo, x exporter) *oneofInfo { + oi := &oneofInfo{oneofDesc: od} + if od.IsSynthetic() { + fs := si.fieldsByNumber[od.Fields().Get(0).Number()] + fieldOffset := offsetOf(fs, x) + oi.which = func(p pointer) pref.FieldNumber { + if p.IsNil() { + return 0 + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.IsNil() { // valid on either *T or []byte + return 0 + } + return od.Fields().Get(0).Number() + } + } else { + fs := si.oneofsByName[od.Name()] + fieldOffset := offsetOf(fs, x) + oi.which = func(p pointer) pref.FieldNumber { + if p.IsNil() { + return 0 + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.IsNil() { + return 0 + } + rv = rv.Elem() + if rv.IsNil() { + return 0 + } + return si.oneofWrappersByType[rv.Type().Elem()] + } + } + return oi +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/message_reflect_gen.go b/vendor/google.golang.org/protobuf/internal/impl/message_reflect_gen.go new file mode 100644 index 000000000..741d6e5b6 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/message_reflect_gen.go @@ -0,0 +1,249 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-types. DO NOT EDIT. + +package impl + +import ( + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +func (m *messageState) Descriptor() protoreflect.MessageDescriptor { + return m.messageInfo().Desc +} +func (m *messageState) Type() protoreflect.MessageType { + return m.messageInfo() +} +func (m *messageState) New() protoreflect.Message { + return m.messageInfo().New() +} +func (m *messageState) Interface() protoreflect.ProtoMessage { + return m.protoUnwrap().(protoreflect.ProtoMessage) +} +func (m *messageState) protoUnwrap() interface{} { + return m.pointer().AsIfaceOf(m.messageInfo().GoReflectType.Elem()) +} +func (m *messageState) ProtoMethods() *protoiface.Methods { + m.messageInfo().init() + return &m.messageInfo().methods +} + +// ProtoMessageInfo is a pseudo-internal API for allowing the v1 code +// to be able to retrieve a v2 MessageInfo struct. +// +// WARNING: This method is exempt from the compatibility promise and +// may be removed in the future without warning. +func (m *messageState) ProtoMessageInfo() *MessageInfo { + return m.messageInfo() +} + +func (m *messageState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + m.messageInfo().init() + for _, ri := range m.messageInfo().rangeInfos { + switch ri := ri.(type) { + case *fieldInfo: + if ri.has(m.pointer()) { + if !f(ri.fieldDesc, ri.get(m.pointer())) { + return + } + } + case *oneofInfo: + if n := ri.which(m.pointer()); n > 0 { + fi := m.messageInfo().fields[n] + if !f(fi.fieldDesc, fi.get(m.pointer())) { + return + } + } + } + } + m.messageInfo().extensionMap(m.pointer()).Range(f) +} +func (m *messageState) Has(fd protoreflect.FieldDescriptor) bool { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + return fi.has(m.pointer()) + } else { + return m.messageInfo().extensionMap(m.pointer()).Has(xt) + } +} +func (m *messageState) Clear(fd protoreflect.FieldDescriptor) { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + fi.clear(m.pointer()) + } else { + m.messageInfo().extensionMap(m.pointer()).Clear(xt) + } +} +func (m *messageState) Get(fd protoreflect.FieldDescriptor) protoreflect.Value { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + return fi.get(m.pointer()) + } else { + return m.messageInfo().extensionMap(m.pointer()).Get(xt) + } +} +func (m *messageState) Set(fd protoreflect.FieldDescriptor, v protoreflect.Value) { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + fi.set(m.pointer(), v) + } else { + m.messageInfo().extensionMap(m.pointer()).Set(xt, v) + } +} +func (m *messageState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + return fi.mutable(m.pointer()) + } else { + return m.messageInfo().extensionMap(m.pointer()).Mutable(xt) + } +} +func (m *messageState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + return fi.newField() + } else { + return xt.New() + } +} +func (m *messageState) WhichOneof(od protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + m.messageInfo().init() + if oi := m.messageInfo().oneofs[od.Name()]; oi != nil && oi.oneofDesc == od { + return od.Fields().ByNumber(oi.which(m.pointer())) + } + panic("invalid oneof descriptor " + string(od.FullName()) + " for message " + string(m.Descriptor().FullName())) +} +func (m *messageState) GetUnknown() protoreflect.RawFields { + m.messageInfo().init() + return m.messageInfo().getUnknown(m.pointer()) +} +func (m *messageState) SetUnknown(b protoreflect.RawFields) { + m.messageInfo().init() + m.messageInfo().setUnknown(m.pointer(), b) +} +func (m *messageState) IsValid() bool { + return !m.pointer().IsNil() +} + +func (m *messageReflectWrapper) Descriptor() protoreflect.MessageDescriptor { + return m.messageInfo().Desc +} +func (m *messageReflectWrapper) Type() protoreflect.MessageType { + return m.messageInfo() +} +func (m *messageReflectWrapper) New() protoreflect.Message { + return m.messageInfo().New() +} +func (m *messageReflectWrapper) Interface() protoreflect.ProtoMessage { + if m, ok := m.protoUnwrap().(protoreflect.ProtoMessage); ok { + return m + } + return (*messageIfaceWrapper)(m) +} +func (m *messageReflectWrapper) protoUnwrap() interface{} { + return m.pointer().AsIfaceOf(m.messageInfo().GoReflectType.Elem()) +} +func (m *messageReflectWrapper) ProtoMethods() *protoiface.Methods { + m.messageInfo().init() + return &m.messageInfo().methods +} + +// ProtoMessageInfo is a pseudo-internal API for allowing the v1 code +// to be able to retrieve a v2 MessageInfo struct. +// +// WARNING: This method is exempt from the compatibility promise and +// may be removed in the future without warning. +func (m *messageReflectWrapper) ProtoMessageInfo() *MessageInfo { + return m.messageInfo() +} + +func (m *messageReflectWrapper) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + m.messageInfo().init() + for _, ri := range m.messageInfo().rangeInfos { + switch ri := ri.(type) { + case *fieldInfo: + if ri.has(m.pointer()) { + if !f(ri.fieldDesc, ri.get(m.pointer())) { + return + } + } + case *oneofInfo: + if n := ri.which(m.pointer()); n > 0 { + fi := m.messageInfo().fields[n] + if !f(fi.fieldDesc, fi.get(m.pointer())) { + return + } + } + } + } + m.messageInfo().extensionMap(m.pointer()).Range(f) +} +func (m *messageReflectWrapper) Has(fd protoreflect.FieldDescriptor) bool { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + return fi.has(m.pointer()) + } else { + return m.messageInfo().extensionMap(m.pointer()).Has(xt) + } +} +func (m *messageReflectWrapper) Clear(fd protoreflect.FieldDescriptor) { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + fi.clear(m.pointer()) + } else { + m.messageInfo().extensionMap(m.pointer()).Clear(xt) + } +} +func (m *messageReflectWrapper) Get(fd protoreflect.FieldDescriptor) protoreflect.Value { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + return fi.get(m.pointer()) + } else { + return m.messageInfo().extensionMap(m.pointer()).Get(xt) + } +} +func (m *messageReflectWrapper) Set(fd protoreflect.FieldDescriptor, v protoreflect.Value) { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + fi.set(m.pointer(), v) + } else { + m.messageInfo().extensionMap(m.pointer()).Set(xt, v) + } +} +func (m *messageReflectWrapper) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + return fi.mutable(m.pointer()) + } else { + return m.messageInfo().extensionMap(m.pointer()).Mutable(xt) + } +} +func (m *messageReflectWrapper) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + return fi.newField() + } else { + return xt.New() + } +} +func (m *messageReflectWrapper) WhichOneof(od protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + m.messageInfo().init() + if oi := m.messageInfo().oneofs[od.Name()]; oi != nil && oi.oneofDesc == od { + return od.Fields().ByNumber(oi.which(m.pointer())) + } + panic("invalid oneof descriptor " + string(od.FullName()) + " for message " + string(m.Descriptor().FullName())) +} +func (m *messageReflectWrapper) GetUnknown() protoreflect.RawFields { + m.messageInfo().init() + return m.messageInfo().getUnknown(m.pointer()) +} +func (m *messageReflectWrapper) SetUnknown(b protoreflect.RawFields) { + m.messageInfo().init() + m.messageInfo().setUnknown(m.pointer(), b) +} +func (m *messageReflectWrapper) IsValid() bool { + return !m.pointer().IsNil() +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/pointer_reflect.go b/vendor/google.golang.org/protobuf/internal/impl/pointer_reflect.go new file mode 100644 index 000000000..67b4ede67 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/pointer_reflect.go @@ -0,0 +1,177 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build purego appengine + +package impl + +import ( + "fmt" + "reflect" + "sync" +) + +const UnsafeEnabled = false + +// Pointer is an opaque pointer type. +type Pointer interface{} + +// offset represents the offset to a struct field, accessible from a pointer. +// The offset is the field index into a struct. +type offset struct { + index int + export exporter +} + +// offsetOf returns a field offset for the struct field. +func offsetOf(f reflect.StructField, x exporter) offset { + if len(f.Index) != 1 { + panic("embedded structs are not supported") + } + if f.PkgPath == "" { + return offset{index: f.Index[0]} // field is already exported + } + if x == nil { + panic("exporter must be provided for unexported field") + } + return offset{index: f.Index[0], export: x} +} + +// IsValid reports whether the offset is valid. +func (f offset) IsValid() bool { return f.index >= 0 } + +// invalidOffset is an invalid field offset. +var invalidOffset = offset{index: -1} + +// zeroOffset is a noop when calling pointer.Apply. +var zeroOffset = offset{index: 0} + +// pointer is an abstract representation of a pointer to a struct or field. +type pointer struct{ v reflect.Value } + +// pointerOf returns p as a pointer. +func pointerOf(p Pointer) pointer { + return pointerOfIface(p) +} + +// pointerOfValue returns v as a pointer. +func pointerOfValue(v reflect.Value) pointer { + return pointer{v: v} +} + +// pointerOfIface returns the pointer portion of an interface. +func pointerOfIface(v interface{}) pointer { + return pointer{v: reflect.ValueOf(v)} +} + +// IsNil reports whether the pointer is nil. +func (p pointer) IsNil() bool { + return p.v.IsNil() +} + +// Apply adds an offset to the pointer to derive a new pointer +// to a specified field. The current pointer must be pointing at a struct. +func (p pointer) Apply(f offset) pointer { + if f.export != nil { + if v := reflect.ValueOf(f.export(p.v.Interface(), f.index)); v.IsValid() { + return pointer{v: v} + } + } + return pointer{v: p.v.Elem().Field(f.index).Addr()} +} + +// AsValueOf treats p as a pointer to an object of type t and returns the value. +// It is equivalent to reflect.ValueOf(p.AsIfaceOf(t)) +func (p pointer) AsValueOf(t reflect.Type) reflect.Value { + if got := p.v.Type().Elem(); got != t { + panic(fmt.Sprintf("invalid type: got %v, want %v", got, t)) + } + return p.v +} + +// AsIfaceOf treats p as a pointer to an object of type t and returns the value. +// It is equivalent to p.AsValueOf(t).Interface() +func (p pointer) AsIfaceOf(t reflect.Type) interface{} { + return p.AsValueOf(t).Interface() +} + +func (p pointer) Bool() *bool { return p.v.Interface().(*bool) } +func (p pointer) BoolPtr() **bool { return p.v.Interface().(**bool) } +func (p pointer) BoolSlice() *[]bool { return p.v.Interface().(*[]bool) } +func (p pointer) Int32() *int32 { return p.v.Interface().(*int32) } +func (p pointer) Int32Ptr() **int32 { return p.v.Interface().(**int32) } +func (p pointer) Int32Slice() *[]int32 { return p.v.Interface().(*[]int32) } +func (p pointer) Int64() *int64 { return p.v.Interface().(*int64) } +func (p pointer) Int64Ptr() **int64 { return p.v.Interface().(**int64) } +func (p pointer) Int64Slice() *[]int64 { return p.v.Interface().(*[]int64) } +func (p pointer) Uint32() *uint32 { return p.v.Interface().(*uint32) } +func (p pointer) Uint32Ptr() **uint32 { return p.v.Interface().(**uint32) } +func (p pointer) Uint32Slice() *[]uint32 { return p.v.Interface().(*[]uint32) } +func (p pointer) Uint64() *uint64 { return p.v.Interface().(*uint64) } +func (p pointer) Uint64Ptr() **uint64 { return p.v.Interface().(**uint64) } +func (p pointer) Uint64Slice() *[]uint64 { return p.v.Interface().(*[]uint64) } +func (p pointer) Float32() *float32 { return p.v.Interface().(*float32) } +func (p pointer) Float32Ptr() **float32 { return p.v.Interface().(**float32) } +func (p pointer) Float32Slice() *[]float32 { return p.v.Interface().(*[]float32) } +func (p pointer) Float64() *float64 { return p.v.Interface().(*float64) } +func (p pointer) Float64Ptr() **float64 { return p.v.Interface().(**float64) } +func (p pointer) Float64Slice() *[]float64 { return p.v.Interface().(*[]float64) } +func (p pointer) String() *string { return p.v.Interface().(*string) } +func (p pointer) StringPtr() **string { return p.v.Interface().(**string) } +func (p pointer) StringSlice() *[]string { return p.v.Interface().(*[]string) } +func (p pointer) Bytes() *[]byte { return p.v.Interface().(*[]byte) } +func (p pointer) BytesSlice() *[][]byte { return p.v.Interface().(*[][]byte) } +func (p pointer) WeakFields() *weakFields { return (*weakFields)(p.v.Interface().(*WeakFields)) } +func (p pointer) Extensions() *map[int32]ExtensionField { + return p.v.Interface().(*map[int32]ExtensionField) +} + +func (p pointer) Elem() pointer { + return pointer{v: p.v.Elem()} +} + +// PointerSlice copies []*T from p as a new []pointer. +// This behavior differs from the implementation in pointer_unsafe.go. +func (p pointer) PointerSlice() []pointer { + // TODO: reconsider this + if p.v.IsNil() { + return nil + } + n := p.v.Elem().Len() + s := make([]pointer, n) + for i := 0; i < n; i++ { + s[i] = pointer{v: p.v.Elem().Index(i)} + } + return s +} + +// AppendPointerSlice appends v to p, which must be a []*T. +func (p pointer) AppendPointerSlice(v pointer) { + sp := p.v.Elem() + sp.Set(reflect.Append(sp, v.v)) +} + +// SetPointer sets *p to v. +func (p pointer) SetPointer(v pointer) { + p.v.Elem().Set(v.v) +} + +func (Export) MessageStateOf(p Pointer) *messageState { panic("not supported") } +func (ms *messageState) pointer() pointer { panic("not supported") } +func (ms *messageState) messageInfo() *MessageInfo { panic("not supported") } +func (ms *messageState) LoadMessageInfo() *MessageInfo { panic("not supported") } +func (ms *messageState) StoreMessageInfo(mi *MessageInfo) { panic("not supported") } + +type atomicNilMessage struct { + once sync.Once + m messageReflectWrapper +} + +func (m *atomicNilMessage) Init(mi *MessageInfo) *messageReflectWrapper { + m.once.Do(func() { + m.m.p = pointerOfIface(reflect.Zero(mi.GoReflectType).Interface()) + m.m.mi = mi + }) + return &m.m +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go b/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go new file mode 100644 index 000000000..088aa85d4 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go @@ -0,0 +1,173 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !purego,!appengine + +package impl + +import ( + "reflect" + "sync/atomic" + "unsafe" +) + +const UnsafeEnabled = true + +// Pointer is an opaque pointer type. +type Pointer unsafe.Pointer + +// offset represents the offset to a struct field, accessible from a pointer. +// The offset is the byte offset to the field from the start of the struct. +type offset uintptr + +// offsetOf returns a field offset for the struct field. +func offsetOf(f reflect.StructField, x exporter) offset { + return offset(f.Offset) +} + +// IsValid reports whether the offset is valid. +func (f offset) IsValid() bool { return f != invalidOffset } + +// invalidOffset is an invalid field offset. +var invalidOffset = ^offset(0) + +// zeroOffset is a noop when calling pointer.Apply. +var zeroOffset = offset(0) + +// pointer is a pointer to a message struct or field. +type pointer struct{ p unsafe.Pointer } + +// pointerOf returns p as a pointer. +func pointerOf(p Pointer) pointer { + return pointer{p: unsafe.Pointer(p)} +} + +// pointerOfValue returns v as a pointer. +func pointerOfValue(v reflect.Value) pointer { + return pointer{p: unsafe.Pointer(v.Pointer())} +} + +// pointerOfIface returns the pointer portion of an interface. +func pointerOfIface(v interface{}) pointer { + type ifaceHeader struct { + Type unsafe.Pointer + Data unsafe.Pointer + } + return pointer{p: (*ifaceHeader)(unsafe.Pointer(&v)).Data} +} + +// IsNil reports whether the pointer is nil. +func (p pointer) IsNil() bool { + return p.p == nil +} + +// Apply adds an offset to the pointer to derive a new pointer +// to a specified field. The pointer must be valid and pointing at a struct. +func (p pointer) Apply(f offset) pointer { + if p.IsNil() { + panic("invalid nil pointer") + } + return pointer{p: unsafe.Pointer(uintptr(p.p) + uintptr(f))} +} + +// AsValueOf treats p as a pointer to an object of type t and returns the value. +// It is equivalent to reflect.ValueOf(p.AsIfaceOf(t)) +func (p pointer) AsValueOf(t reflect.Type) reflect.Value { + return reflect.NewAt(t, p.p) +} + +// AsIfaceOf treats p as a pointer to an object of type t and returns the value. +// It is equivalent to p.AsValueOf(t).Interface() +func (p pointer) AsIfaceOf(t reflect.Type) interface{} { + // TODO: Use tricky unsafe magic to directly create ifaceHeader. + return p.AsValueOf(t).Interface() +} + +func (p pointer) Bool() *bool { return (*bool)(p.p) } +func (p pointer) BoolPtr() **bool { return (**bool)(p.p) } +func (p pointer) BoolSlice() *[]bool { return (*[]bool)(p.p) } +func (p pointer) Int32() *int32 { return (*int32)(p.p) } +func (p pointer) Int32Ptr() **int32 { return (**int32)(p.p) } +func (p pointer) Int32Slice() *[]int32 { return (*[]int32)(p.p) } +func (p pointer) Int64() *int64 { return (*int64)(p.p) } +func (p pointer) Int64Ptr() **int64 { return (**int64)(p.p) } +func (p pointer) Int64Slice() *[]int64 { return (*[]int64)(p.p) } +func (p pointer) Uint32() *uint32 { return (*uint32)(p.p) } +func (p pointer) Uint32Ptr() **uint32 { return (**uint32)(p.p) } +func (p pointer) Uint32Slice() *[]uint32 { return (*[]uint32)(p.p) } +func (p pointer) Uint64() *uint64 { return (*uint64)(p.p) } +func (p pointer) Uint64Ptr() **uint64 { return (**uint64)(p.p) } +func (p pointer) Uint64Slice() *[]uint64 { return (*[]uint64)(p.p) } +func (p pointer) Float32() *float32 { return (*float32)(p.p) } +func (p pointer) Float32Ptr() **float32 { return (**float32)(p.p) } +func (p pointer) Float32Slice() *[]float32 { return (*[]float32)(p.p) } +func (p pointer) Float64() *float64 { return (*float64)(p.p) } +func (p pointer) Float64Ptr() **float64 { return (**float64)(p.p) } +func (p pointer) Float64Slice() *[]float64 { return (*[]float64)(p.p) } +func (p pointer) String() *string { return (*string)(p.p) } +func (p pointer) StringPtr() **string { return (**string)(p.p) } +func (p pointer) StringSlice() *[]string { return (*[]string)(p.p) } +func (p pointer) Bytes() *[]byte { return (*[]byte)(p.p) } +func (p pointer) BytesSlice() *[][]byte { return (*[][]byte)(p.p) } +func (p pointer) WeakFields() *weakFields { return (*weakFields)(p.p) } +func (p pointer) Extensions() *map[int32]ExtensionField { return (*map[int32]ExtensionField)(p.p) } + +func (p pointer) Elem() pointer { + return pointer{p: *(*unsafe.Pointer)(p.p)} +} + +// PointerSlice loads []*T from p as a []pointer. +// The value returned is aliased with the original slice. +// This behavior differs from the implementation in pointer_reflect.go. +func (p pointer) PointerSlice() []pointer { + // Super-tricky - p should point to a []*T where T is a + // message type. We load it as []pointer. + return *(*[]pointer)(p.p) +} + +// AppendPointerSlice appends v to p, which must be a []*T. +func (p pointer) AppendPointerSlice(v pointer) { + *(*[]pointer)(p.p) = append(*(*[]pointer)(p.p), v) +} + +// SetPointer sets *p to v. +func (p pointer) SetPointer(v pointer) { + *(*unsafe.Pointer)(p.p) = (unsafe.Pointer)(v.p) +} + +// Static check that MessageState does not exceed the size of a pointer. +const _ = uint(unsafe.Sizeof(unsafe.Pointer(nil)) - unsafe.Sizeof(MessageState{})) + +func (Export) MessageStateOf(p Pointer) *messageState { + // Super-tricky - see documentation on MessageState. + return (*messageState)(unsafe.Pointer(p)) +} +func (ms *messageState) pointer() pointer { + // Super-tricky - see documentation on MessageState. + return pointer{p: unsafe.Pointer(ms)} +} +func (ms *messageState) messageInfo() *MessageInfo { + mi := ms.LoadMessageInfo() + if mi == nil { + panic("invalid nil message info; this suggests memory corruption due to a race or shallow copy on the message struct") + } + return mi +} +func (ms *messageState) LoadMessageInfo() *MessageInfo { + return (*MessageInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(&ms.atomicMessageInfo)))) +} +func (ms *messageState) StoreMessageInfo(mi *MessageInfo) { + atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(&ms.atomicMessageInfo)), unsafe.Pointer(mi)) +} + +type atomicNilMessage struct{ p unsafe.Pointer } // p is a *messageReflectWrapper + +func (m *atomicNilMessage) Init(mi *MessageInfo) *messageReflectWrapper { + if p := atomic.LoadPointer(&m.p); p != nil { + return (*messageReflectWrapper)(p) + } + w := &messageReflectWrapper{mi: mi} + atomic.CompareAndSwapPointer(&m.p, nil, (unsafe.Pointer)(w)) + return (*messageReflectWrapper)(atomic.LoadPointer(&m.p)) +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/validate.go b/vendor/google.golang.org/protobuf/internal/impl/validate.go new file mode 100644 index 000000000..57de9cc85 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/validate.go @@ -0,0 +1,575 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "math" + "math/bits" + "reflect" + "unicode/utf8" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/internal/strs" + pref "google.golang.org/protobuf/reflect/protoreflect" + preg "google.golang.org/protobuf/reflect/protoregistry" + piface "google.golang.org/protobuf/runtime/protoiface" +) + +// ValidationStatus is the result of validating the wire-format encoding of a message. +type ValidationStatus int + +const ( + // ValidationUnknown indicates that unmarshaling the message might succeed or fail. + // The validator was unable to render a judgement. + // + // The only causes of this status are an aberrant message type appearing somewhere + // in the message or a failure in the extension resolver. + ValidationUnknown ValidationStatus = iota + 1 + + // ValidationInvalid indicates that unmarshaling the message will fail. + ValidationInvalid + + // ValidationValid indicates that unmarshaling the message will succeed. + ValidationValid +) + +func (v ValidationStatus) String() string { + switch v { + case ValidationUnknown: + return "ValidationUnknown" + case ValidationInvalid: + return "ValidationInvalid" + case ValidationValid: + return "ValidationValid" + default: + return fmt.Sprintf("ValidationStatus(%d)", int(v)) + } +} + +// Validate determines whether the contents of the buffer are a valid wire encoding +// of the message type. +// +// This function is exposed for testing. +func Validate(mt pref.MessageType, in piface.UnmarshalInput) (out piface.UnmarshalOutput, _ ValidationStatus) { + mi, ok := mt.(*MessageInfo) + if !ok { + return out, ValidationUnknown + } + if in.Resolver == nil { + in.Resolver = preg.GlobalTypes + } + o, st := mi.validate(in.Buf, 0, unmarshalOptions{ + flags: in.Flags, + resolver: in.Resolver, + }) + if o.initialized { + out.Flags |= piface.UnmarshalInitialized + } + return out, st +} + +type validationInfo struct { + mi *MessageInfo + typ validationType + keyType, valType validationType + + // For non-required fields, requiredBit is 0. + // + // For required fields, requiredBit's nth bit is set, where n is a + // unique index in the range [0, MessageInfo.numRequiredFields). + // + // If there are more than 64 required fields, requiredBit is 0. + requiredBit uint64 +} + +type validationType uint8 + +const ( + validationTypeOther validationType = iota + validationTypeMessage + validationTypeGroup + validationTypeMap + validationTypeRepeatedVarint + validationTypeRepeatedFixed32 + validationTypeRepeatedFixed64 + validationTypeVarint + validationTypeFixed32 + validationTypeFixed64 + validationTypeBytes + validationTypeUTF8String + validationTypeMessageSetItem +) + +func newFieldValidationInfo(mi *MessageInfo, si structInfo, fd pref.FieldDescriptor, ft reflect.Type) validationInfo { + var vi validationInfo + switch { + case fd.ContainingOneof() != nil && !fd.ContainingOneof().IsSynthetic(): + switch fd.Kind() { + case pref.MessageKind: + vi.typ = validationTypeMessage + if ot, ok := si.oneofWrappersByNumber[fd.Number()]; ok { + vi.mi = getMessageInfo(ot.Field(0).Type) + } + case pref.GroupKind: + vi.typ = validationTypeGroup + if ot, ok := si.oneofWrappersByNumber[fd.Number()]; ok { + vi.mi = getMessageInfo(ot.Field(0).Type) + } + case pref.StringKind: + if strs.EnforceUTF8(fd) { + vi.typ = validationTypeUTF8String + } + } + default: + vi = newValidationInfo(fd, ft) + } + if fd.Cardinality() == pref.Required { + // Avoid overflow. The required field check is done with a 64-bit mask, with + // any message containing more than 64 required fields always reported as + // potentially uninitialized, so it is not important to get a precise count + // of the required fields past 64. + if mi.numRequiredFields < math.MaxUint8 { + mi.numRequiredFields++ + vi.requiredBit = 1 << (mi.numRequiredFields - 1) + } + } + return vi +} + +func newValidationInfo(fd pref.FieldDescriptor, ft reflect.Type) validationInfo { + var vi validationInfo + switch { + case fd.IsList(): + switch fd.Kind() { + case pref.MessageKind: + vi.typ = validationTypeMessage + if ft.Kind() == reflect.Slice { + vi.mi = getMessageInfo(ft.Elem()) + } + case pref.GroupKind: + vi.typ = validationTypeGroup + if ft.Kind() == reflect.Slice { + vi.mi = getMessageInfo(ft.Elem()) + } + case pref.StringKind: + vi.typ = validationTypeBytes + if strs.EnforceUTF8(fd) { + vi.typ = validationTypeUTF8String + } + default: + switch wireTypes[fd.Kind()] { + case protowire.VarintType: + vi.typ = validationTypeRepeatedVarint + case protowire.Fixed32Type: + vi.typ = validationTypeRepeatedFixed32 + case protowire.Fixed64Type: + vi.typ = validationTypeRepeatedFixed64 + } + } + case fd.IsMap(): + vi.typ = validationTypeMap + switch fd.MapKey().Kind() { + case pref.StringKind: + if strs.EnforceUTF8(fd) { + vi.keyType = validationTypeUTF8String + } + } + switch fd.MapValue().Kind() { + case pref.MessageKind: + vi.valType = validationTypeMessage + if ft.Kind() == reflect.Map { + vi.mi = getMessageInfo(ft.Elem()) + } + case pref.StringKind: + if strs.EnforceUTF8(fd) { + vi.valType = validationTypeUTF8String + } + } + default: + switch fd.Kind() { + case pref.MessageKind: + vi.typ = validationTypeMessage + if !fd.IsWeak() { + vi.mi = getMessageInfo(ft) + } + case pref.GroupKind: + vi.typ = validationTypeGroup + vi.mi = getMessageInfo(ft) + case pref.StringKind: + vi.typ = validationTypeBytes + if strs.EnforceUTF8(fd) { + vi.typ = validationTypeUTF8String + } + default: + switch wireTypes[fd.Kind()] { + case protowire.VarintType: + vi.typ = validationTypeVarint + case protowire.Fixed32Type: + vi.typ = validationTypeFixed32 + case protowire.Fixed64Type: + vi.typ = validationTypeFixed64 + case protowire.BytesType: + vi.typ = validationTypeBytes + } + } + } + return vi +} + +func (mi *MessageInfo) validate(b []byte, groupTag protowire.Number, opts unmarshalOptions) (out unmarshalOutput, result ValidationStatus) { + mi.init() + type validationState struct { + typ validationType + keyType, valType validationType + endGroup protowire.Number + mi *MessageInfo + tail []byte + requiredMask uint64 + } + + // Pre-allocate some slots to avoid repeated slice reallocation. + states := make([]validationState, 0, 16) + states = append(states, validationState{ + typ: validationTypeMessage, + mi: mi, + }) + if groupTag > 0 { + states[0].typ = validationTypeGroup + states[0].endGroup = groupTag + } + initialized := true + start := len(b) +State: + for len(states) > 0 { + st := &states[len(states)-1] + for len(b) > 0 { + // Parse the tag (field number and wire type). + var tag uint64 + if b[0] < 0x80 { + tag = uint64(b[0]) + b = b[1:] + } else if len(b) >= 2 && b[1] < 128 { + tag = uint64(b[0]&0x7f) + uint64(b[1])<<7 + b = b[2:] + } else { + var n int + tag, n = protowire.ConsumeVarint(b) + if n < 0 { + return out, ValidationInvalid + } + b = b[n:] + } + var num protowire.Number + if n := tag >> 3; n < uint64(protowire.MinValidNumber) || n > uint64(protowire.MaxValidNumber) { + return out, ValidationInvalid + } else { + num = protowire.Number(n) + } + wtyp := protowire.Type(tag & 7) + + if wtyp == protowire.EndGroupType { + if st.endGroup == num { + goto PopState + } + return out, ValidationInvalid + } + var vi validationInfo + switch { + case st.typ == validationTypeMap: + switch num { + case 1: + vi.typ = st.keyType + case 2: + vi.typ = st.valType + vi.mi = st.mi + vi.requiredBit = 1 + } + case flags.ProtoLegacy && st.mi.isMessageSet: + switch num { + case messageset.FieldItem: + vi.typ = validationTypeMessageSetItem + } + default: + var f *coderFieldInfo + if int(num) < len(st.mi.denseCoderFields) { + f = st.mi.denseCoderFields[num] + } else { + f = st.mi.coderFields[num] + } + if f != nil { + vi = f.validation + if vi.typ == validationTypeMessage && vi.mi == nil { + // Probable weak field. + // + // TODO: Consider storing the results of this lookup somewhere + // rather than recomputing it on every validation. + fd := st.mi.Desc.Fields().ByNumber(num) + if fd == nil || !fd.IsWeak() { + break + } + messageName := fd.Message().FullName() + messageType, err := preg.GlobalTypes.FindMessageByName(messageName) + switch err { + case nil: + vi.mi, _ = messageType.(*MessageInfo) + case preg.NotFound: + vi.typ = validationTypeBytes + default: + return out, ValidationUnknown + } + } + break + } + // Possible extension field. + // + // TODO: We should return ValidationUnknown when: + // 1. The resolver is not frozen. (More extensions may be added to it.) + // 2. The resolver returns preg.NotFound. + // In this case, a type added to the resolver in the future could cause + // unmarshaling to begin failing. Supporting this requires some way to + // determine if the resolver is frozen. + xt, err := opts.resolver.FindExtensionByNumber(st.mi.Desc.FullName(), num) + if err != nil && err != preg.NotFound { + return out, ValidationUnknown + } + if err == nil { + vi = getExtensionFieldInfo(xt).validation + } + } + if vi.requiredBit != 0 { + // Check that the field has a compatible wire type. + // We only need to consider non-repeated field types, + // since repeated fields (and maps) can never be required. + ok := false + switch vi.typ { + case validationTypeVarint: + ok = wtyp == protowire.VarintType + case validationTypeFixed32: + ok = wtyp == protowire.Fixed32Type + case validationTypeFixed64: + ok = wtyp == protowire.Fixed64Type + case validationTypeBytes, validationTypeUTF8String, validationTypeMessage: + ok = wtyp == protowire.BytesType + case validationTypeGroup: + ok = wtyp == protowire.StartGroupType + } + if ok { + st.requiredMask |= vi.requiredBit + } + } + + switch wtyp { + case protowire.VarintType: + if len(b) >= 10 { + switch { + case b[0] < 0x80: + b = b[1:] + case b[1] < 0x80: + b = b[2:] + case b[2] < 0x80: + b = b[3:] + case b[3] < 0x80: + b = b[4:] + case b[4] < 0x80: + b = b[5:] + case b[5] < 0x80: + b = b[6:] + case b[6] < 0x80: + b = b[7:] + case b[7] < 0x80: + b = b[8:] + case b[8] < 0x80: + b = b[9:] + case b[9] < 0x80 && b[9] < 2: + b = b[10:] + default: + return out, ValidationInvalid + } + } else { + switch { + case len(b) > 0 && b[0] < 0x80: + b = b[1:] + case len(b) > 1 && b[1] < 0x80: + b = b[2:] + case len(b) > 2 && b[2] < 0x80: + b = b[3:] + case len(b) > 3 && b[3] < 0x80: + b = b[4:] + case len(b) > 4 && b[4] < 0x80: + b = b[5:] + case len(b) > 5 && b[5] < 0x80: + b = b[6:] + case len(b) > 6 && b[6] < 0x80: + b = b[7:] + case len(b) > 7 && b[7] < 0x80: + b = b[8:] + case len(b) > 8 && b[8] < 0x80: + b = b[9:] + case len(b) > 9 && b[9] < 2: + b = b[10:] + default: + return out, ValidationInvalid + } + } + continue State + case protowire.BytesType: + var size uint64 + if len(b) >= 1 && b[0] < 0x80 { + size = uint64(b[0]) + b = b[1:] + } else if len(b) >= 2 && b[1] < 128 { + size = uint64(b[0]&0x7f) + uint64(b[1])<<7 + b = b[2:] + } else { + var n int + size, n = protowire.ConsumeVarint(b) + if n < 0 { + return out, ValidationInvalid + } + b = b[n:] + } + if size > uint64(len(b)) { + return out, ValidationInvalid + } + v := b[:size] + b = b[size:] + switch vi.typ { + case validationTypeMessage: + if vi.mi == nil { + return out, ValidationUnknown + } + vi.mi.init() + fallthrough + case validationTypeMap: + if vi.mi != nil { + vi.mi.init() + } + states = append(states, validationState{ + typ: vi.typ, + keyType: vi.keyType, + valType: vi.valType, + mi: vi.mi, + tail: b, + }) + b = v + continue State + case validationTypeRepeatedVarint: + // Packed field. + for len(v) > 0 { + _, n := protowire.ConsumeVarint(v) + if n < 0 { + return out, ValidationInvalid + } + v = v[n:] + } + case validationTypeRepeatedFixed32: + // Packed field. + if len(v)%4 != 0 { + return out, ValidationInvalid + } + case validationTypeRepeatedFixed64: + // Packed field. + if len(v)%8 != 0 { + return out, ValidationInvalid + } + case validationTypeUTF8String: + if !utf8.Valid(v) { + return out, ValidationInvalid + } + } + case protowire.Fixed32Type: + if len(b) < 4 { + return out, ValidationInvalid + } + b = b[4:] + case protowire.Fixed64Type: + if len(b) < 8 { + return out, ValidationInvalid + } + b = b[8:] + case protowire.StartGroupType: + switch { + case vi.typ == validationTypeGroup: + if vi.mi == nil { + return out, ValidationUnknown + } + vi.mi.init() + states = append(states, validationState{ + typ: validationTypeGroup, + mi: vi.mi, + endGroup: num, + }) + continue State + case flags.ProtoLegacy && vi.typ == validationTypeMessageSetItem: + typeid, v, n, err := messageset.ConsumeFieldValue(b, false) + if err != nil { + return out, ValidationInvalid + } + xt, err := opts.resolver.FindExtensionByNumber(st.mi.Desc.FullName(), typeid) + switch { + case err == preg.NotFound: + b = b[n:] + case err != nil: + return out, ValidationUnknown + default: + xvi := getExtensionFieldInfo(xt).validation + if xvi.mi != nil { + xvi.mi.init() + } + states = append(states, validationState{ + typ: xvi.typ, + mi: xvi.mi, + tail: b[n:], + }) + b = v + continue State + } + default: + n := protowire.ConsumeFieldValue(num, wtyp, b) + if n < 0 { + return out, ValidationInvalid + } + b = b[n:] + } + default: + return out, ValidationInvalid + } + } + if st.endGroup != 0 { + return out, ValidationInvalid + } + if len(b) != 0 { + return out, ValidationInvalid + } + b = st.tail + PopState: + numRequiredFields := 0 + switch st.typ { + case validationTypeMessage, validationTypeGroup: + numRequiredFields = int(st.mi.numRequiredFields) + case validationTypeMap: + // If this is a map field with a message value that contains + // required fields, require that the value be present. + if st.mi != nil && st.mi.numRequiredFields > 0 { + numRequiredFields = 1 + } + } + // If there are more than 64 required fields, this check will + // always fail and we will report that the message is potentially + // uninitialized. + if numRequiredFields > 0 && bits.OnesCount64(st.requiredMask) != numRequiredFields { + initialized = false + } + states = states[:len(states)-1] + } + out.n = start - len(b) + if initialized { + out.initialized = true + } + return out, ValidationValid +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/weak.go b/vendor/google.golang.org/protobuf/internal/impl/weak.go new file mode 100644 index 000000000..009cbefd1 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/weak.go @@ -0,0 +1,74 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + + pref "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +// weakFields adds methods to the exported WeakFields type for internal use. +// +// The exported type is an alias to an unnamed type, so methods can't be +// defined directly on it. +type weakFields WeakFields + +func (w weakFields) get(num pref.FieldNumber) (pref.ProtoMessage, bool) { + m, ok := w[int32(num)] + return m, ok +} + +func (w *weakFields) set(num pref.FieldNumber, m pref.ProtoMessage) { + if *w == nil { + *w = make(weakFields) + } + (*w)[int32(num)] = m +} + +func (w *weakFields) clear(num pref.FieldNumber) { + delete(*w, int32(num)) +} + +func (Export) HasWeak(w WeakFields, num pref.FieldNumber) bool { + _, ok := w[int32(num)] + return ok +} + +func (Export) ClearWeak(w *WeakFields, num pref.FieldNumber) { + delete(*w, int32(num)) +} + +func (Export) GetWeak(w WeakFields, num pref.FieldNumber, name pref.FullName) pref.ProtoMessage { + if m, ok := w[int32(num)]; ok { + return m + } + mt, _ := protoregistry.GlobalTypes.FindMessageByName(name) + if mt == nil { + panic(fmt.Sprintf("message %v for weak field is not linked in", name)) + } + return mt.Zero().Interface() +} + +func (Export) SetWeak(w *WeakFields, num pref.FieldNumber, name pref.FullName, m pref.ProtoMessage) { + if m != nil { + mt, _ := protoregistry.GlobalTypes.FindMessageByName(name) + if mt == nil { + panic(fmt.Sprintf("message %v for weak field is not linked in", name)) + } + if mt != m.ProtoReflect().Type() { + panic(fmt.Sprintf("invalid message type for weak field: got %T, want %T", m, mt.Zero().Interface())) + } + } + if m == nil || !m.ProtoReflect().IsValid() { + delete(*w, int32(num)) + return + } + if *w == nil { + *w = make(weakFields) + } + (*w)[int32(num)] = m +} diff --git a/vendor/google.golang.org/protobuf/internal/mapsort/mapsort.go b/vendor/google.golang.org/protobuf/internal/mapsort/mapsort.go new file mode 100644 index 000000000..a3de1cf32 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/mapsort/mapsort.go @@ -0,0 +1,43 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package mapsort provides sorted access to maps. +package mapsort + +import ( + "sort" + + "google.golang.org/protobuf/reflect/protoreflect" +) + +// Range iterates over every map entry in sorted key order, +// calling f for each key and value encountered. +func Range(mapv protoreflect.Map, keyKind protoreflect.Kind, f func(protoreflect.MapKey, protoreflect.Value) bool) { + var keys []protoreflect.MapKey + mapv.Range(func(key protoreflect.MapKey, _ protoreflect.Value) bool { + keys = append(keys, key) + return true + }) + sort.Slice(keys, func(i, j int) bool { + switch keyKind { + case protoreflect.BoolKind: + return !keys[i].Bool() && keys[j].Bool() + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind, + protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + return keys[i].Int() < keys[j].Int() + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind, + protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + return keys[i].Uint() < keys[j].Uint() + case protoreflect.StringKind: + return keys[i].String() < keys[j].String() + default: + panic("invalid kind: " + keyKind.String()) + } + }) + for _, key := range keys { + if !f(key, mapv.Get(key)) { + break + } + } +} diff --git a/vendor/google.golang.org/protobuf/internal/pragma/pragma.go b/vendor/google.golang.org/protobuf/internal/pragma/pragma.go new file mode 100644 index 000000000..49dc4fcd9 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/pragma/pragma.go @@ -0,0 +1,29 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package pragma provides types that can be embedded into a struct to +// statically enforce or prevent certain language properties. +package pragma + +import "sync" + +// NoUnkeyedLiterals can be embedded in a struct to prevent unkeyed literals. +type NoUnkeyedLiterals struct{} + +// DoNotImplement can be embedded in an interface to prevent trivial +// implementations of the interface. +// +// This is useful to prevent unauthorized implementations of an interface +// so that it can be extended in the future for any protobuf language changes. +type DoNotImplement interface{ ProtoInternal(DoNotImplement) } + +// DoNotCompare can be embedded in a struct to prevent comparability. +type DoNotCompare [0]func() + +// DoNotCopy can be embedded in a struct to help prevent shallow copies. +// This does not rely on a Go language feature, but rather a special case +// within the vet checker. +// +// See https://golang.org/issues/8005. +type DoNotCopy [0]sync.Mutex diff --git a/vendor/google.golang.org/protobuf/internal/set/ints.go b/vendor/google.golang.org/protobuf/internal/set/ints.go new file mode 100644 index 000000000..d3d7f89ab --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/set/ints.go @@ -0,0 +1,58 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package set provides simple set data structures for uint64s. +package set + +import "math/bits" + +// int64s represents a set of integers within the range of 0..63. +type int64s uint64 + +func (bs *int64s) Len() int { + return bits.OnesCount64(uint64(*bs)) +} +func (bs *int64s) Has(n uint64) bool { + return uint64(*bs)&(uint64(1)< 0 +} +func (bs *int64s) Set(n uint64) { + *(*uint64)(bs) |= uint64(1) << n +} +func (bs *int64s) Clear(n uint64) { + *(*uint64)(bs) &^= uint64(1) << n +} + +// Ints represents a set of integers within the range of 0..math.MaxUint64. +type Ints struct { + lo int64s + hi map[uint64]struct{} +} + +func (bs *Ints) Len() int { + return bs.lo.Len() + len(bs.hi) +} +func (bs *Ints) Has(n uint64) bool { + if n < 64 { + return bs.lo.Has(n) + } + _, ok := bs.hi[n] + return ok +} +func (bs *Ints) Set(n uint64) { + if n < 64 { + bs.lo.Set(n) + return + } + if bs.hi == nil { + bs.hi = make(map[uint64]struct{}) + } + bs.hi[n] = struct{}{} +} +func (bs *Ints) Clear(n uint64) { + if n < 64 { + bs.lo.Clear(n) + return + } + delete(bs.hi, n) +} diff --git a/vendor/google.golang.org/protobuf/internal/strs/strings.go b/vendor/google.golang.org/protobuf/internal/strs/strings.go new file mode 100644 index 000000000..0b74e7658 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/strs/strings.go @@ -0,0 +1,196 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package strs provides string manipulation functionality specific to protobuf. +package strs + +import ( + "go/token" + "strings" + "unicode" + "unicode/utf8" + + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// EnforceUTF8 reports whether to enforce strict UTF-8 validation. +func EnforceUTF8(fd protoreflect.FieldDescriptor) bool { + if flags.ProtoLegacy { + if fd, ok := fd.(interface{ EnforceUTF8() bool }); ok { + return fd.EnforceUTF8() + } + } + return fd.Syntax() == protoreflect.Proto3 +} + +// GoCamelCase camel-cases a protobuf name for use as a Go identifier. +// +// If there is an interior underscore followed by a lower case letter, +// drop the underscore and convert the letter to upper case. +func GoCamelCase(s string) string { + // Invariant: if the next letter is lower case, it must be converted + // to upper case. + // That is, we process a word at a time, where words are marked by _ or + // upper case letter. Digits are treated as words. + var b []byte + for i := 0; i < len(s); i++ { + c := s[i] + switch { + case c == '.' && i+1 < len(s) && isASCIILower(s[i+1]): + // Skip over '.' in ".{{lowercase}}". + case c == '.': + b = append(b, '_') // convert '.' to '_' + case c == '_' && (i == 0 || s[i-1] == '.'): + // Convert initial '_' to ensure we start with a capital letter. + // Do the same for '_' after '.' to match historic behavior. + b = append(b, 'X') // convert '_' to 'X' + case c == '_' && i+1 < len(s) && isASCIILower(s[i+1]): + // Skip over '_' in "_{{lowercase}}". + case isASCIIDigit(c): + b = append(b, c) + default: + // Assume we have a letter now - if not, it's a bogus identifier. + // The next word is a sequence of characters that must start upper case. + if isASCIILower(c) { + c -= 'a' - 'A' // convert lowercase to uppercase + } + b = append(b, c) + + // Accept lower case sequence that follows. + for ; i+1 < len(s) && isASCIILower(s[i+1]); i++ { + b = append(b, s[i+1]) + } + } + } + return string(b) +} + +// GoSanitized converts a string to a valid Go identifier. +func GoSanitized(s string) string { + // Sanitize the input to the set of valid characters, + // which must be '_' or be in the Unicode L or N categories. + s = strings.Map(func(r rune) rune { + if unicode.IsLetter(r) || unicode.IsDigit(r) { + return r + } + return '_' + }, s) + + // Prepend '_' in the event of a Go keyword conflict or if + // the identifier is invalid (does not start in the Unicode L category). + r, _ := utf8.DecodeRuneInString(s) + if token.Lookup(s).IsKeyword() || !unicode.IsLetter(r) { + return "_" + s + } + return s +} + +// JSONCamelCase converts a snake_case identifier to a camelCase identifier, +// according to the protobuf JSON specification. +func JSONCamelCase(s string) string { + var b []byte + var wasUnderscore bool + for i := 0; i < len(s); i++ { // proto identifiers are always ASCII + c := s[i] + if c != '_' { + if wasUnderscore && isASCIILower(c) { + c -= 'a' - 'A' // convert to uppercase + } + b = append(b, c) + } + wasUnderscore = c == '_' + } + return string(b) +} + +// JSONSnakeCase converts a camelCase identifier to a snake_case identifier, +// according to the protobuf JSON specification. +func JSONSnakeCase(s string) string { + var b []byte + for i := 0; i < len(s); i++ { // proto identifiers are always ASCII + c := s[i] + if isASCIIUpper(c) { + b = append(b, '_') + c += 'a' - 'A' // convert to lowercase + } + b = append(b, c) + } + return string(b) +} + +// MapEntryName derives the name of the map entry message given the field name. +// See protoc v3.8.0: src/google/protobuf/descriptor.cc:254-276,6057 +func MapEntryName(s string) string { + var b []byte + upperNext := true + for _, c := range s { + switch { + case c == '_': + upperNext = true + case upperNext: + b = append(b, byte(unicode.ToUpper(c))) + upperNext = false + default: + b = append(b, byte(c)) + } + } + b = append(b, "Entry"...) + return string(b) +} + +// EnumValueName derives the camel-cased enum value name. +// See protoc v3.8.0: src/google/protobuf/descriptor.cc:297-313 +func EnumValueName(s string) string { + var b []byte + upperNext := true + for _, c := range s { + switch { + case c == '_': + upperNext = true + case upperNext: + b = append(b, byte(unicode.ToUpper(c))) + upperNext = false + default: + b = append(b, byte(unicode.ToLower(c))) + upperNext = false + } + } + return string(b) +} + +// TrimEnumPrefix trims the enum name prefix from an enum value name, +// where the prefix is all lowercase without underscores. +// See protoc v3.8.0: src/google/protobuf/descriptor.cc:330-375 +func TrimEnumPrefix(s, prefix string) string { + s0 := s // original input + for len(s) > 0 && len(prefix) > 0 { + if s[0] == '_' { + s = s[1:] + continue + } + if unicode.ToLower(rune(s[0])) != rune(prefix[0]) { + return s0 // no prefix match + } + s, prefix = s[1:], prefix[1:] + } + if len(prefix) > 0 { + return s0 // no prefix match + } + s = strings.TrimLeft(s, "_") + if len(s) == 0 { + return s0 // avoid returning empty string + } + return s +} + +func isASCIILower(c byte) bool { + return 'a' <= c && c <= 'z' +} +func isASCIIUpper(c byte) bool { + return 'A' <= c && c <= 'Z' +} +func isASCIIDigit(c byte) bool { + return '0' <= c && c <= '9' +} diff --git a/vendor/google.golang.org/protobuf/internal/strs/strings_pure.go b/vendor/google.golang.org/protobuf/internal/strs/strings_pure.go new file mode 100644 index 000000000..85e074c97 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/strs/strings_pure.go @@ -0,0 +1,27 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build purego appengine + +package strs + +import pref "google.golang.org/protobuf/reflect/protoreflect" + +func UnsafeString(b []byte) string { + return string(b) +} + +func UnsafeBytes(s string) []byte { + return []byte(s) +} + +type Builder struct{} + +func (*Builder) AppendFullName(prefix pref.FullName, name pref.Name) pref.FullName { + return prefix.Append(name) +} + +func (*Builder) MakeString(b []byte) string { + return string(b) +} diff --git a/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe.go b/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe.go new file mode 100644 index 000000000..2160c7019 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe.go @@ -0,0 +1,94 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !purego,!appengine + +package strs + +import ( + "unsafe" + + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +type ( + stringHeader struct { + Data unsafe.Pointer + Len int + } + sliceHeader struct { + Data unsafe.Pointer + Len int + Cap int + } +) + +// UnsafeString returns an unsafe string reference of b. +// The caller must treat the input slice as immutable. +// +// WARNING: Use carefully. The returned result must not leak to the end user +// unless the input slice is provably immutable. +func UnsafeString(b []byte) (s string) { + src := (*sliceHeader)(unsafe.Pointer(&b)) + dst := (*stringHeader)(unsafe.Pointer(&s)) + dst.Data = src.Data + dst.Len = src.Len + return s +} + +// UnsafeBytes returns an unsafe bytes slice reference of s. +// The caller must treat returned slice as immutable. +// +// WARNING: Use carefully. The returned result must not leak to the end user. +func UnsafeBytes(s string) (b []byte) { + src := (*stringHeader)(unsafe.Pointer(&s)) + dst := (*sliceHeader)(unsafe.Pointer(&b)) + dst.Data = src.Data + dst.Len = src.Len + dst.Cap = src.Len + return b +} + +// Builder builds a set of strings with shared lifetime. +// This differs from strings.Builder, which is for building a single string. +type Builder struct { + buf []byte +} + +// AppendFullName is equivalent to protoreflect.FullName.Append, +// but optimized for large batches where each name has a shared lifetime. +func (sb *Builder) AppendFullName(prefix pref.FullName, name pref.Name) pref.FullName { + n := len(prefix) + len(".") + len(name) + if len(prefix) == 0 { + n -= len(".") + } + sb.grow(n) + sb.buf = append(sb.buf, prefix...) + sb.buf = append(sb.buf, '.') + sb.buf = append(sb.buf, name...) + return pref.FullName(sb.last(n)) +} + +// MakeString is equivalent to string(b), but optimized for large batches +// with a shared lifetime. +func (sb *Builder) MakeString(b []byte) string { + sb.grow(len(b)) + sb.buf = append(sb.buf, b...) + return sb.last(len(b)) +} + +func (sb *Builder) grow(n int) { + if cap(sb.buf)-len(sb.buf) >= n { + return + } + + // Unlike strings.Builder, we do not need to copy over the contents + // of the old buffer since our builder provides no API for + // retrieving previously created strings. + sb.buf = make([]byte, 2*(cap(sb.buf)+n)) +} + +func (sb *Builder) last(n int) string { + return UnsafeString(sb.buf[len(sb.buf)-n:]) +} diff --git a/vendor/google.golang.org/protobuf/internal/version/version.go b/vendor/google.golang.org/protobuf/internal/version/version.go new file mode 100644 index 000000000..6b3001c66 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/version/version.go @@ -0,0 +1,79 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package version records versioning information about this module. +package version + +import ( + "fmt" + "strings" +) + +// These constants determine the current version of this module. +// +// +// For our release process, we enforce the following rules: +// * Tagged releases use a tag that is identical to String. +// * Tagged releases never reference a commit where the String +// contains "devel". +// * The set of all commits in this repository where String +// does not contain "devel" must have a unique String. +// +// +// Steps for tagging a new release: +// 1. Create a new CL. +// +// 2. Update Minor, Patch, and/or PreRelease as necessary. +// PreRelease must not contain the string "devel". +// +// 3. Since the last released minor version, have there been any changes to +// generator that relies on new functionality in the runtime? +// If yes, then increment RequiredGenerated. +// +// 4. Since the last released minor version, have there been any changes to +// the runtime that removes support for old .pb.go source code? +// If yes, then increment SupportMinimum. +// +// 5. Send out the CL for review and submit it. +// Note that the next CL in step 8 must be submitted after this CL +// without any other CLs in-between. +// +// 6. Tag a new version, where the tag is is the current String. +// +// 7. Write release notes for all notable changes +// between this release and the last release. +// +// 8. Create a new CL. +// +// 9. Update PreRelease to include the string "devel". +// For example: "" -> "devel" or "rc.1" -> "rc.1.devel" +// +// 10. Send out the CL for review and submit it. +const ( + Major = 1 + Minor = 24 + Patch = 0 + PreRelease = "" +) + +// String formats the version string for this module in semver format. +// +// Examples: +// v1.20.1 +// v1.21.0-rc.1 +func String() string { + v := fmt.Sprintf("v%d.%d.%d", Major, Minor, Patch) + if PreRelease != "" { + v += "-" + PreRelease + + // TODO: Add metadata about the commit or build hash. + // See https://golang.org/issue/29814 + // See https://golang.org/issue/33533 + var metadata string + if strings.Contains(PreRelease, "devel") && metadata != "" { + v += "+" + metadata + } + } + return v +} diff --git a/vendor/google.golang.org/protobuf/proto/checkinit.go b/vendor/google.golang.org/protobuf/proto/checkinit.go new file mode 100644 index 000000000..3e9a6a2f6 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/checkinit.go @@ -0,0 +1,71 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +// CheckInitialized returns an error if any required fields in m are not set. +func CheckInitialized(m Message) error { + // Treat a nil message interface as an "untyped" empty message, + // which we assume to have no required fields. + if m == nil { + return nil + } + + return checkInitialized(m.ProtoReflect()) +} + +// CheckInitialized returns an error if any required fields in m are not set. +func checkInitialized(m protoreflect.Message) error { + if methods := protoMethods(m); methods != nil && methods.CheckInitialized != nil { + _, err := methods.CheckInitialized(protoiface.CheckInitializedInput{ + Message: m, + }) + return err + } + return checkInitializedSlow(m) +} + +func checkInitializedSlow(m protoreflect.Message) error { + md := m.Descriptor() + fds := md.Fields() + for i, nums := 0, md.RequiredNumbers(); i < nums.Len(); i++ { + fd := fds.ByNumber(nums.Get(i)) + if !m.Has(fd) { + return errors.RequiredNotSet(string(fd.FullName())) + } + } + var err error + m.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + switch { + case fd.IsList(): + if fd.Message() == nil { + return true + } + for i, list := 0, v.List(); i < list.Len() && err == nil; i++ { + err = checkInitialized(list.Get(i).Message()) + } + case fd.IsMap(): + if fd.MapValue().Message() == nil { + return true + } + v.Map().Range(func(key protoreflect.MapKey, v protoreflect.Value) bool { + err = checkInitialized(v.Message()) + return err == nil + }) + default: + if fd.Message() == nil { + return true + } + err = checkInitialized(v.Message()) + } + return err == nil + }) + return err +} diff --git a/vendor/google.golang.org/protobuf/proto/decode.go b/vendor/google.golang.org/protobuf/proto/decode.go new file mode 100644 index 000000000..4974b16d5 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/decode.go @@ -0,0 +1,273 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/runtime/protoiface" +) + +// UnmarshalOptions configures the unmarshaler. +// +// Example usage: +// err := UnmarshalOptions{DiscardUnknown: true}.Unmarshal(b, m) +type UnmarshalOptions struct { + pragma.NoUnkeyedLiterals + + // Merge merges the input into the destination message. + // The default behavior is to always reset the message before unmarshaling, + // unless Merge is specified. + Merge bool + + // AllowPartial accepts input for messages that will result in missing + // required fields. If AllowPartial is false (the default), Unmarshal will + // return an error if there are any missing required fields. + AllowPartial bool + + // If DiscardUnknown is set, unknown fields are ignored. + DiscardUnknown bool + + // Resolver is used for looking up types when unmarshaling extension fields. + // If nil, this defaults to using protoregistry.GlobalTypes. + Resolver interface { + FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) + FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) + } +} + +// Unmarshal parses the wire-format message in b and places the result in m. +func Unmarshal(b []byte, m Message) error { + _, err := UnmarshalOptions{}.unmarshal(b, m.ProtoReflect()) + return err +} + +// Unmarshal parses the wire-format message in b and places the result in m. +func (o UnmarshalOptions) Unmarshal(b []byte, m Message) error { + _, err := o.unmarshal(b, m.ProtoReflect()) + return err +} + +// UnmarshalState parses a wire-format message and places the result in m. +// +// This method permits fine-grained control over the unmarshaler. +// Most users should use Unmarshal instead. +func (o UnmarshalOptions) UnmarshalState(in protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + return o.unmarshal(in.Buf, in.Message) +} + +// unmarshal is a centralized function that all unmarshal operations go through. +// For profiling purposes, avoid changing the name of this function or +// introducing other code paths for unmarshal that do not go through this. +func (o UnmarshalOptions) unmarshal(b []byte, m protoreflect.Message) (out protoiface.UnmarshalOutput, err error) { + if o.Resolver == nil { + o.Resolver = protoregistry.GlobalTypes + } + if !o.Merge { + Reset(m.Interface()) + } + allowPartial := o.AllowPartial + o.Merge = true + o.AllowPartial = true + methods := protoMethods(m) + if methods != nil && methods.Unmarshal != nil && + !(o.DiscardUnknown && methods.Flags&protoiface.SupportUnmarshalDiscardUnknown == 0) { + in := protoiface.UnmarshalInput{ + Message: m, + Buf: b, + Resolver: o.Resolver, + } + if o.DiscardUnknown { + in.Flags |= protoiface.UnmarshalDiscardUnknown + } + out, err = methods.Unmarshal(in) + } else { + err = o.unmarshalMessageSlow(b, m) + } + if err != nil { + return out, err + } + if allowPartial || (out.Flags&protoiface.UnmarshalInitialized != 0) { + return out, nil + } + return out, checkInitialized(m) +} + +func (o UnmarshalOptions) unmarshalMessage(b []byte, m protoreflect.Message) error { + _, err := o.unmarshal(b, m) + return err +} + +func (o UnmarshalOptions) unmarshalMessageSlow(b []byte, m protoreflect.Message) error { + md := m.Descriptor() + if messageset.IsMessageSet(md) { + return o.unmarshalMessageSet(b, m) + } + fields := md.Fields() + for len(b) > 0 { + // Parse the tag (field number and wire type). + num, wtyp, tagLen := protowire.ConsumeTag(b) + if tagLen < 0 { + return protowire.ParseError(tagLen) + } + if num > protowire.MaxValidNumber { + return errors.New("invalid field number") + } + + // Find the field descriptor for this field number. + fd := fields.ByNumber(num) + if fd == nil && md.ExtensionRanges().Has(num) { + extType, err := o.Resolver.FindExtensionByNumber(md.FullName(), num) + if err != nil && err != protoregistry.NotFound { + return errors.New("%v: unable to resolve extension %v: %v", md.FullName(), num, err) + } + if extType != nil { + fd = extType.TypeDescriptor() + } + } + var err error + if fd == nil { + err = errUnknown + } else if flags.ProtoLegacy { + if fd.IsWeak() && fd.Message().IsPlaceholder() { + err = errUnknown // weak referent is not linked in + } + } + + // Parse the field value. + var valLen int + switch { + case err != nil: + case fd.IsList(): + valLen, err = o.unmarshalList(b[tagLen:], wtyp, m.Mutable(fd).List(), fd) + case fd.IsMap(): + valLen, err = o.unmarshalMap(b[tagLen:], wtyp, m.Mutable(fd).Map(), fd) + default: + valLen, err = o.unmarshalSingular(b[tagLen:], wtyp, m, fd) + } + if err != nil { + if err != errUnknown { + return err + } + valLen = protowire.ConsumeFieldValue(num, wtyp, b[tagLen:]) + if valLen < 0 { + return protowire.ParseError(valLen) + } + if !o.DiscardUnknown { + m.SetUnknown(append(m.GetUnknown(), b[:tagLen+valLen]...)) + } + } + b = b[tagLen+valLen:] + } + return nil +} + +func (o UnmarshalOptions) unmarshalSingular(b []byte, wtyp protowire.Type, m protoreflect.Message, fd protoreflect.FieldDescriptor) (n int, err error) { + v, n, err := o.unmarshalScalar(b, wtyp, fd) + if err != nil { + return 0, err + } + switch fd.Kind() { + case protoreflect.GroupKind, protoreflect.MessageKind: + m2 := m.Mutable(fd).Message() + if err := o.unmarshalMessage(v.Bytes(), m2); err != nil { + return n, err + } + default: + // Non-message scalars replace the previous value. + m.Set(fd, v) + } + return n, nil +} + +func (o UnmarshalOptions) unmarshalMap(b []byte, wtyp protowire.Type, mapv protoreflect.Map, fd protoreflect.FieldDescriptor) (n int, err error) { + if wtyp != protowire.BytesType { + return 0, errUnknown + } + b, n = protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + var ( + keyField = fd.MapKey() + valField = fd.MapValue() + key protoreflect.Value + val protoreflect.Value + haveKey bool + haveVal bool + ) + switch valField.Kind() { + case protoreflect.GroupKind, protoreflect.MessageKind: + val = mapv.NewValue() + } + // Map entries are represented as a two-element message with fields + // containing the key and value. + for len(b) > 0 { + num, wtyp, n := protowire.ConsumeTag(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + if num > protowire.MaxValidNumber { + return 0, errors.New("invalid field number") + } + b = b[n:] + err = errUnknown + switch num { + case 1: + key, n, err = o.unmarshalScalar(b, wtyp, keyField) + if err != nil { + break + } + haveKey = true + case 2: + var v protoreflect.Value + v, n, err = o.unmarshalScalar(b, wtyp, valField) + if err != nil { + break + } + switch valField.Kind() { + case protoreflect.GroupKind, protoreflect.MessageKind: + if err := o.unmarshalMessage(v.Bytes(), val.Message()); err != nil { + return 0, err + } + default: + val = v + } + haveVal = true + } + if err == errUnknown { + n = protowire.ConsumeFieldValue(num, wtyp, b) + if n < 0 { + return 0, protowire.ParseError(n) + } + } else if err != nil { + return 0, err + } + b = b[n:] + } + // Every map entry should have entries for key and value, but this is not strictly required. + if !haveKey { + key = keyField.Default() + } + if !haveVal { + switch valField.Kind() { + case protoreflect.GroupKind, protoreflect.MessageKind: + default: + val = valField.Default() + } + } + mapv.Set(key.MapKey(), val) + return n, nil +} + +// errUnknown is used internally to indicate fields which should be added +// to the unknown field set of a message. It is never returned from an exported +// function. +var errUnknown = errors.New("BUG: internal error (unknown)") diff --git a/vendor/google.golang.org/protobuf/proto/decode_gen.go b/vendor/google.golang.org/protobuf/proto/decode_gen.go new file mode 100644 index 000000000..d6dc904dc --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/decode_gen.go @@ -0,0 +1,603 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-types. DO NOT EDIT. + +package proto + +import ( + "math" + "unicode/utf8" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// unmarshalScalar decodes a value of the given kind. +// +// Message values are decoded into a []byte which aliases the input data. +func (o UnmarshalOptions) unmarshalScalar(b []byte, wtyp protowire.Type, fd protoreflect.FieldDescriptor) (val protoreflect.Value, n int, err error) { + switch fd.Kind() { + case protoreflect.BoolKind: + if wtyp != protowire.VarintType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfBool(protowire.DecodeBool(v)), n, nil + case protoreflect.EnumKind: + if wtyp != protowire.VarintType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfEnum(protoreflect.EnumNumber(v)), n, nil + case protoreflect.Int32Kind: + if wtyp != protowire.VarintType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfInt32(int32(v)), n, nil + case protoreflect.Sint32Kind: + if wtyp != protowire.VarintType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfInt32(int32(protowire.DecodeZigZag(v & math.MaxUint32))), n, nil + case protoreflect.Uint32Kind: + if wtyp != protowire.VarintType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfUint32(uint32(v)), n, nil + case protoreflect.Int64Kind: + if wtyp != protowire.VarintType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfInt64(int64(v)), n, nil + case protoreflect.Sint64Kind: + if wtyp != protowire.VarintType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfInt64(protowire.DecodeZigZag(v)), n, nil + case protoreflect.Uint64Kind: + if wtyp != protowire.VarintType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfUint64(v), n, nil + case protoreflect.Sfixed32Kind: + if wtyp != protowire.Fixed32Type { + return val, 0, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfInt32(int32(v)), n, nil + case protoreflect.Fixed32Kind: + if wtyp != protowire.Fixed32Type { + return val, 0, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfUint32(uint32(v)), n, nil + case protoreflect.FloatKind: + if wtyp != protowire.Fixed32Type { + return val, 0, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfFloat32(math.Float32frombits(uint32(v))), n, nil + case protoreflect.Sfixed64Kind: + if wtyp != protowire.Fixed64Type { + return val, 0, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfInt64(int64(v)), n, nil + case protoreflect.Fixed64Kind: + if wtyp != protowire.Fixed64Type { + return val, 0, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfUint64(v), n, nil + case protoreflect.DoubleKind: + if wtyp != protowire.Fixed64Type { + return val, 0, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfFloat64(math.Float64frombits(v)), n, nil + case protoreflect.StringKind: + if wtyp != protowire.BytesType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + if strs.EnforceUTF8(fd) && !utf8.Valid(v) { + return protoreflect.Value{}, 0, errors.InvalidUTF8(string(fd.FullName())) + } + return protoreflect.ValueOfString(string(v)), n, nil + case protoreflect.BytesKind: + if wtyp != protowire.BytesType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfBytes(append(emptyBuf[:], v...)), n, nil + case protoreflect.MessageKind: + if wtyp != protowire.BytesType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfBytes(v), n, nil + case protoreflect.GroupKind: + if wtyp != protowire.StartGroupType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeGroup(fd.Number(), b) + if n < 0 { + return val, 0, protowire.ParseError(n) + } + return protoreflect.ValueOfBytes(v), n, nil + default: + return val, 0, errUnknown + } +} + +func (o UnmarshalOptions) unmarshalList(b []byte, wtyp protowire.Type, list protoreflect.List, fd protoreflect.FieldDescriptor) (n int, err error) { + switch fd.Kind() { + case protoreflect.BoolKind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + for len(buf) > 0 { + v, n := protowire.ConsumeVarint(buf) + if n < 0 { + return 0, protowire.ParseError(n) + } + buf = buf[n:] + list.Append(protoreflect.ValueOfBool(protowire.DecodeBool(v))) + } + return n, nil + } + if wtyp != protowire.VarintType { + return 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfBool(protowire.DecodeBool(v))) + return n, nil + case protoreflect.EnumKind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + for len(buf) > 0 { + v, n := protowire.ConsumeVarint(buf) + if n < 0 { + return 0, protowire.ParseError(n) + } + buf = buf[n:] + list.Append(protoreflect.ValueOfEnum(protoreflect.EnumNumber(v))) + } + return n, nil + } + if wtyp != protowire.VarintType { + return 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfEnum(protoreflect.EnumNumber(v))) + return n, nil + case protoreflect.Int32Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + for len(buf) > 0 { + v, n := protowire.ConsumeVarint(buf) + if n < 0 { + return 0, protowire.ParseError(n) + } + buf = buf[n:] + list.Append(protoreflect.ValueOfInt32(int32(v))) + } + return n, nil + } + if wtyp != protowire.VarintType { + return 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt32(int32(v))) + return n, nil + case protoreflect.Sint32Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + for len(buf) > 0 { + v, n := protowire.ConsumeVarint(buf) + if n < 0 { + return 0, protowire.ParseError(n) + } + buf = buf[n:] + list.Append(protoreflect.ValueOfInt32(int32(protowire.DecodeZigZag(v & math.MaxUint32)))) + } + return n, nil + } + if wtyp != protowire.VarintType { + return 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt32(int32(protowire.DecodeZigZag(v & math.MaxUint32)))) + return n, nil + case protoreflect.Uint32Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + for len(buf) > 0 { + v, n := protowire.ConsumeVarint(buf) + if n < 0 { + return 0, protowire.ParseError(n) + } + buf = buf[n:] + list.Append(protoreflect.ValueOfUint32(uint32(v))) + } + return n, nil + } + if wtyp != protowire.VarintType { + return 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfUint32(uint32(v))) + return n, nil + case protoreflect.Int64Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + for len(buf) > 0 { + v, n := protowire.ConsumeVarint(buf) + if n < 0 { + return 0, protowire.ParseError(n) + } + buf = buf[n:] + list.Append(protoreflect.ValueOfInt64(int64(v))) + } + return n, nil + } + if wtyp != protowire.VarintType { + return 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt64(int64(v))) + return n, nil + case protoreflect.Sint64Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + for len(buf) > 0 { + v, n := protowire.ConsumeVarint(buf) + if n < 0 { + return 0, protowire.ParseError(n) + } + buf = buf[n:] + list.Append(protoreflect.ValueOfInt64(protowire.DecodeZigZag(v))) + } + return n, nil + } + if wtyp != protowire.VarintType { + return 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt64(protowire.DecodeZigZag(v))) + return n, nil + case protoreflect.Uint64Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + for len(buf) > 0 { + v, n := protowire.ConsumeVarint(buf) + if n < 0 { + return 0, protowire.ParseError(n) + } + buf = buf[n:] + list.Append(protoreflect.ValueOfUint64(v)) + } + return n, nil + } + if wtyp != protowire.VarintType { + return 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfUint64(v)) + return n, nil + case protoreflect.Sfixed32Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + for len(buf) > 0 { + v, n := protowire.ConsumeFixed32(buf) + if n < 0 { + return 0, protowire.ParseError(n) + } + buf = buf[n:] + list.Append(protoreflect.ValueOfInt32(int32(v))) + } + return n, nil + } + if wtyp != protowire.Fixed32Type { + return 0, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt32(int32(v))) + return n, nil + case protoreflect.Fixed32Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + for len(buf) > 0 { + v, n := protowire.ConsumeFixed32(buf) + if n < 0 { + return 0, protowire.ParseError(n) + } + buf = buf[n:] + list.Append(protoreflect.ValueOfUint32(uint32(v))) + } + return n, nil + } + if wtyp != protowire.Fixed32Type { + return 0, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfUint32(uint32(v))) + return n, nil + case protoreflect.FloatKind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + for len(buf) > 0 { + v, n := protowire.ConsumeFixed32(buf) + if n < 0 { + return 0, protowire.ParseError(n) + } + buf = buf[n:] + list.Append(protoreflect.ValueOfFloat32(math.Float32frombits(uint32(v)))) + } + return n, nil + } + if wtyp != protowire.Fixed32Type { + return 0, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfFloat32(math.Float32frombits(uint32(v)))) + return n, nil + case protoreflect.Sfixed64Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + for len(buf) > 0 { + v, n := protowire.ConsumeFixed64(buf) + if n < 0 { + return 0, protowire.ParseError(n) + } + buf = buf[n:] + list.Append(protoreflect.ValueOfInt64(int64(v))) + } + return n, nil + } + if wtyp != protowire.Fixed64Type { + return 0, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfInt64(int64(v))) + return n, nil + case protoreflect.Fixed64Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + for len(buf) > 0 { + v, n := protowire.ConsumeFixed64(buf) + if n < 0 { + return 0, protowire.ParseError(n) + } + buf = buf[n:] + list.Append(protoreflect.ValueOfUint64(v)) + } + return n, nil + } + if wtyp != protowire.Fixed64Type { + return 0, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfUint64(v)) + return n, nil + case protoreflect.DoubleKind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + for len(buf) > 0 { + v, n := protowire.ConsumeFixed64(buf) + if n < 0 { + return 0, protowire.ParseError(n) + } + buf = buf[n:] + list.Append(protoreflect.ValueOfFloat64(math.Float64frombits(v))) + } + return n, nil + } + if wtyp != protowire.Fixed64Type { + return 0, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfFloat64(math.Float64frombits(v))) + return n, nil + case protoreflect.StringKind: + if wtyp != protowire.BytesType { + return 0, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + if strs.EnforceUTF8(fd) && !utf8.Valid(v) { + return 0, errors.InvalidUTF8(string(fd.FullName())) + } + list.Append(protoreflect.ValueOfString(string(v))) + return n, nil + case protoreflect.BytesKind: + if wtyp != protowire.BytesType { + return 0, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + list.Append(protoreflect.ValueOfBytes(append(emptyBuf[:], v...))) + return n, nil + case protoreflect.MessageKind: + if wtyp != protowire.BytesType { + return 0, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, protowire.ParseError(n) + } + m := list.NewElement() + if err := o.unmarshalMessage(v, m.Message()); err != nil { + return 0, err + } + list.Append(m) + return n, nil + case protoreflect.GroupKind: + if wtyp != protowire.StartGroupType { + return 0, errUnknown + } + v, n := protowire.ConsumeGroup(fd.Number(), b) + if n < 0 { + return 0, protowire.ParseError(n) + } + m := list.NewElement() + if err := o.unmarshalMessage(v, m.Message()); err != nil { + return 0, err + } + list.Append(m) + return n, nil + default: + return 0, errUnknown + } +} + +// We append to an empty array rather than a nil []byte to get non-nil zero-length byte slices. +var emptyBuf [0]byte diff --git a/vendor/google.golang.org/protobuf/proto/doc.go b/vendor/google.golang.org/protobuf/proto/doc.go new file mode 100644 index 000000000..c52d8c4ab --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/doc.go @@ -0,0 +1,94 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package proto provides functions operating on protocol buffer messages. +// +// For documentation on protocol buffers in general, see: +// +// https://developers.google.com/protocol-buffers +// +// For a tutorial on using protocol buffers with Go, see: +// +// https://developers.google.com/protocol-buffers/docs/gotutorial +// +// For a guide to generated Go protocol buffer code, see: +// +// https://developers.google.com/protocol-buffers/docs/reference/go-generated +// +// +// Binary serialization +// +// This package contains functions to convert to and from the wire format, +// an efficient binary serialization of protocol buffers. +// +// • Size reports the size of a message in the wire format. +// +// • Marshal converts a message to the wire format. +// The MarshalOptions type provides more control over wire marshaling. +// +// • Unmarshal converts a message from the wire format. +// The UnmarshalOptions type provides more control over wire unmarshaling. +// +// +// Basic message operations +// +// • Clone makes a deep copy of a message. +// +// • Merge merges the content of a message into another. +// +// • Equal compares two messages. For more control over comparisons +// and detailed reporting of differences, see package +// "google.golang.org/protobuf/testing/protocmp". +// +// • Reset clears the content of a message. +// +// • CheckInitialized reports whether all required fields in a message are set. +// +// +// Optional scalar constructors +// +// The API for some generated messages represents optional scalar fields +// as pointers to a value. For example, an optional string field has the +// Go type *string. +// +// • Bool, Int32, Int64, Uint32, Uint64, Float32, Float64, and String +// take a value and return a pointer to a new instance of it, +// to simplify construction of optional field values. +// +// Generated enum types usually have an Enum method which performs the +// same operation. +// +// Optional scalar fields are only supported in proto2. +// +// +// Extension accessors +// +// • HasExtension, GetExtension, SetExtension, and ClearExtension +// access extension field values in a protocol buffer message. +// +// Extension fields are only supported in proto2. +// +// +// Related packages +// +// • Package "google.golang.org/protobuf/encoding/protojson" converts messages to +// and from JSON. +// +// • Package "google.golang.org/protobuf/encoding/prototext" converts messages to +// and from the text format. +// +// • Package "google.golang.org/protobuf/reflect/protoreflect" provides a +// reflection interface for protocol buffer data types. +// +// • Package "google.golang.org/protobuf/testing/protocmp" provides features +// to compare protocol buffer messages with the "github.com/google/go-cmp/cmp" +// package. +// +// • Package "google.golang.org/protobuf/types/dynamicpb" provides a dynamic +// message type, suitable for working with messages where the protocol buffer +// type is only known at runtime. +// +// This module contains additional packages for more specialized use cases. +// Consult the individual package documentation for details. +package proto diff --git a/vendor/google.golang.org/protobuf/proto/encode.go b/vendor/google.golang.org/protobuf/proto/encode.go new file mode 100644 index 000000000..7b47a1180 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/encode.go @@ -0,0 +1,346 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "sort" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/fieldsort" + "google.golang.org/protobuf/internal/mapsort" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +// MarshalOptions configures the marshaler. +// +// Example usage: +// b, err := MarshalOptions{Deterministic: true}.Marshal(m) +type MarshalOptions struct { + pragma.NoUnkeyedLiterals + + // AllowPartial allows messages that have missing required fields to marshal + // without returning an error. If AllowPartial is false (the default), + // Marshal will return an error if there are any missing required fields. + AllowPartial bool + + // Deterministic controls whether the same message will always be + // serialized to the same bytes within the same binary. + // + // Setting this option guarantees that repeated serialization of + // the same message will return the same bytes, and that different + // processes of the same binary (which may be executing on different + // machines) will serialize equal messages to the same bytes. + // It has no effect on the resulting size of the encoded message compared + // to a non-deterministic marshal. + // + // Note that the deterministic serialization is NOT canonical across + // languages. It is not guaranteed to remain stable over time. It is + // unstable across different builds with schema changes due to unknown + // fields. Users who need canonical serialization (e.g., persistent + // storage in a canonical form, fingerprinting, etc.) must define + // their own canonicalization specification and implement their own + // serializer rather than relying on this API. + // + // If deterministic serialization is requested, map entries will be + // sorted by keys in lexographical order. This is an implementation + // detail and subject to change. + Deterministic bool + + // UseCachedSize indicates that the result of a previous Size call + // may be reused. + // + // Setting this option asserts that: + // + // 1. Size has previously been called on this message with identical + // options (except for UseCachedSize itself). + // + // 2. The message and all its submessages have not changed in any + // way since the Size call. + // + // If either of these invariants is violated, + // the results are undefined and may include panics or corrupted output. + // + // Implementations MAY take this option into account to provide + // better performance, but there is no guarantee that they will do so. + // There is absolutely no guarantee that Size followed by Marshal with + // UseCachedSize set will perform equivalently to Marshal alone. + UseCachedSize bool +} + +// Marshal returns the wire-format encoding of m. +func Marshal(m Message) ([]byte, error) { + // Treat nil message interface as an empty message; nothing to output. + if m == nil { + return nil, nil + } + + out, err := MarshalOptions{}.marshal(nil, m.ProtoReflect()) + if len(out.Buf) == 0 && err == nil { + out.Buf = emptyBytesForMessage(m) + } + return out.Buf, err +} + +// Marshal returns the wire-format encoding of m. +func (o MarshalOptions) Marshal(m Message) ([]byte, error) { + // Treat nil message interface as an empty message; nothing to output. + if m == nil { + return nil, nil + } + + out, err := o.marshal(nil, m.ProtoReflect()) + if len(out.Buf) == 0 && err == nil { + out.Buf = emptyBytesForMessage(m) + } + return out.Buf, err +} + +// emptyBytesForMessage returns a nil buffer if and only if m is invalid, +// otherwise it returns a non-nil empty buffer. +// +// This is to assist the edge-case where user-code does the following: +// m1.OptionalBytes, _ = proto.Marshal(m2) +// where they expect the proto2 "optional_bytes" field to be populated +// if any only if m2 is a valid message. +func emptyBytesForMessage(m Message) []byte { + if m == nil || !m.ProtoReflect().IsValid() { + return nil + } + return emptyBuf[:] +} + +// MarshalAppend appends the wire-format encoding of m to b, +// returning the result. +func (o MarshalOptions) MarshalAppend(b []byte, m Message) ([]byte, error) { + // Treat nil message interface as an empty message; nothing to append. + if m == nil { + return b, nil + } + + out, err := o.marshal(b, m.ProtoReflect()) + return out.Buf, err +} + +// MarshalState returns the wire-format encoding of a message. +// +// This method permits fine-grained control over the marshaler. +// Most users should use Marshal instead. +func (o MarshalOptions) MarshalState(in protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + return o.marshal(in.Buf, in.Message) +} + +// marshal is a centralized function that all marshal operations go through. +// For profiling purposes, avoid changing the name of this function or +// introducing other code paths for marshal that do not go through this. +func (o MarshalOptions) marshal(b []byte, m protoreflect.Message) (out protoiface.MarshalOutput, err error) { + allowPartial := o.AllowPartial + o.AllowPartial = true + if methods := protoMethods(m); methods != nil && methods.Marshal != nil && + !(o.Deterministic && methods.Flags&protoiface.SupportMarshalDeterministic == 0) { + in := protoiface.MarshalInput{ + Message: m, + Buf: b, + } + if o.Deterministic { + in.Flags |= protoiface.MarshalDeterministic + } + if o.UseCachedSize { + in.Flags |= protoiface.MarshalUseCachedSize + } + if methods.Size != nil { + sout := methods.Size(protoiface.SizeInput{ + Message: m, + Flags: in.Flags, + }) + if cap(b) < len(b)+sout.Size { + in.Buf = make([]byte, len(b), growcap(cap(b), len(b)+sout.Size)) + copy(in.Buf, b) + } + in.Flags |= protoiface.MarshalUseCachedSize + } + out, err = methods.Marshal(in) + } else { + out.Buf, err = o.marshalMessageSlow(b, m) + } + if err != nil { + return out, err + } + if allowPartial { + return out, nil + } + return out, checkInitialized(m) +} + +func (o MarshalOptions) marshalMessage(b []byte, m protoreflect.Message) ([]byte, error) { + out, err := o.marshal(b, m) + return out.Buf, err +} + +// growcap scales up the capacity of a slice. +// +// Given a slice with a current capacity of oldcap and a desired +// capacity of wantcap, growcap returns a new capacity >= wantcap. +// +// The algorithm is mostly identical to the one used by append as of Go 1.14. +func growcap(oldcap, wantcap int) (newcap int) { + if wantcap > oldcap*2 { + newcap = wantcap + } else if oldcap < 1024 { + // The Go 1.14 runtime takes this case when len(s) < 1024, + // not when cap(s) < 1024. The difference doesn't seem + // significant here. + newcap = oldcap * 2 + } else { + newcap = oldcap + for 0 < newcap && newcap < wantcap { + newcap += newcap / 4 + } + if newcap <= 0 { + newcap = wantcap + } + } + return newcap +} + +func (o MarshalOptions) marshalMessageSlow(b []byte, m protoreflect.Message) ([]byte, error) { + if messageset.IsMessageSet(m.Descriptor()) { + return o.marshalMessageSet(b, m) + } + // There are many choices for what order we visit fields in. The default one here + // is chosen for reasonable efficiency and simplicity given the protoreflect API. + // It is not deterministic, since Message.Range does not return fields in any + // defined order. + // + // When using deterministic serialization, we sort the known fields. + var err error + o.rangeFields(m, func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + b, err = o.marshalField(b, fd, v) + return err == nil + }) + if err != nil { + return b, err + } + b = append(b, m.GetUnknown()...) + return b, nil +} + +// rangeFields visits fields in a defined order when deterministic serialization is enabled. +func (o MarshalOptions) rangeFields(m protoreflect.Message, f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if !o.Deterministic { + m.Range(f) + return + } + var fds []protoreflect.FieldDescriptor + m.Range(func(fd protoreflect.FieldDescriptor, _ protoreflect.Value) bool { + fds = append(fds, fd) + return true + }) + sort.Slice(fds, func(a, b int) bool { + return fieldsort.Less(fds[a], fds[b]) + }) + for _, fd := range fds { + if !f(fd, m.Get(fd)) { + break + } + } +} + +func (o MarshalOptions) marshalField(b []byte, fd protoreflect.FieldDescriptor, value protoreflect.Value) ([]byte, error) { + switch { + case fd.IsList(): + return o.marshalList(b, fd, value.List()) + case fd.IsMap(): + return o.marshalMap(b, fd, value.Map()) + default: + b = protowire.AppendTag(b, fd.Number(), wireTypes[fd.Kind()]) + return o.marshalSingular(b, fd, value) + } +} + +func (o MarshalOptions) marshalList(b []byte, fd protoreflect.FieldDescriptor, list protoreflect.List) ([]byte, error) { + if fd.IsPacked() && list.Len() > 0 { + b = protowire.AppendTag(b, fd.Number(), protowire.BytesType) + b, pos := appendSpeculativeLength(b) + for i, llen := 0, list.Len(); i < llen; i++ { + var err error + b, err = o.marshalSingular(b, fd, list.Get(i)) + if err != nil { + return b, err + } + } + b = finishSpeculativeLength(b, pos) + return b, nil + } + + kind := fd.Kind() + for i, llen := 0, list.Len(); i < llen; i++ { + var err error + b = protowire.AppendTag(b, fd.Number(), wireTypes[kind]) + b, err = o.marshalSingular(b, fd, list.Get(i)) + if err != nil { + return b, err + } + } + return b, nil +} + +func (o MarshalOptions) marshalMap(b []byte, fd protoreflect.FieldDescriptor, mapv protoreflect.Map) ([]byte, error) { + keyf := fd.MapKey() + valf := fd.MapValue() + var err error + o.rangeMap(mapv, keyf.Kind(), func(key protoreflect.MapKey, value protoreflect.Value) bool { + b = protowire.AppendTag(b, fd.Number(), protowire.BytesType) + var pos int + b, pos = appendSpeculativeLength(b) + + b, err = o.marshalField(b, keyf, key.Value()) + if err != nil { + return false + } + b, err = o.marshalField(b, valf, value) + if err != nil { + return false + } + b = finishSpeculativeLength(b, pos) + return true + }) + return b, err +} + +func (o MarshalOptions) rangeMap(mapv protoreflect.Map, kind protoreflect.Kind, f func(protoreflect.MapKey, protoreflect.Value) bool) { + if !o.Deterministic { + mapv.Range(f) + return + } + mapsort.Range(mapv, kind, f) +} + +// When encoding length-prefixed fields, we speculatively set aside some number of bytes +// for the length, encode the data, and then encode the length (shifting the data if necessary +// to make room). +const speculativeLength = 1 + +func appendSpeculativeLength(b []byte) ([]byte, int) { + pos := len(b) + b = append(b, "\x00\x00\x00\x00"[:speculativeLength]...) + return b, pos +} + +func finishSpeculativeLength(b []byte, pos int) []byte { + mlen := len(b) - pos - speculativeLength + msiz := protowire.SizeVarint(uint64(mlen)) + if msiz != speculativeLength { + for i := 0; i < msiz-speculativeLength; i++ { + b = append(b, 0) + } + copy(b[pos+msiz:], b[pos+speculativeLength:]) + b = b[:pos+msiz+mlen] + } + protowire.AppendVarint(b[:pos], uint64(mlen)) + return b +} diff --git a/vendor/google.golang.org/protobuf/proto/encode_gen.go b/vendor/google.golang.org/protobuf/proto/encode_gen.go new file mode 100644 index 000000000..185dacfb4 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/encode_gen.go @@ -0,0 +1,97 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-types. DO NOT EDIT. + +package proto + +import ( + "math" + "unicode/utf8" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/reflect/protoreflect" +) + +var wireTypes = map[protoreflect.Kind]protowire.Type{ + protoreflect.BoolKind: protowire.VarintType, + protoreflect.EnumKind: protowire.VarintType, + protoreflect.Int32Kind: protowire.VarintType, + protoreflect.Sint32Kind: protowire.VarintType, + protoreflect.Uint32Kind: protowire.VarintType, + protoreflect.Int64Kind: protowire.VarintType, + protoreflect.Sint64Kind: protowire.VarintType, + protoreflect.Uint64Kind: protowire.VarintType, + protoreflect.Sfixed32Kind: protowire.Fixed32Type, + protoreflect.Fixed32Kind: protowire.Fixed32Type, + protoreflect.FloatKind: protowire.Fixed32Type, + protoreflect.Sfixed64Kind: protowire.Fixed64Type, + protoreflect.Fixed64Kind: protowire.Fixed64Type, + protoreflect.DoubleKind: protowire.Fixed64Type, + protoreflect.StringKind: protowire.BytesType, + protoreflect.BytesKind: protowire.BytesType, + protoreflect.MessageKind: protowire.BytesType, + protoreflect.GroupKind: protowire.StartGroupType, +} + +func (o MarshalOptions) marshalSingular(b []byte, fd protoreflect.FieldDescriptor, v protoreflect.Value) ([]byte, error) { + switch fd.Kind() { + case protoreflect.BoolKind: + b = protowire.AppendVarint(b, protowire.EncodeBool(v.Bool())) + case protoreflect.EnumKind: + b = protowire.AppendVarint(b, uint64(v.Enum())) + case protoreflect.Int32Kind: + b = protowire.AppendVarint(b, uint64(int32(v.Int()))) + case protoreflect.Sint32Kind: + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(int32(v.Int())))) + case protoreflect.Uint32Kind: + b = protowire.AppendVarint(b, uint64(uint32(v.Uint()))) + case protoreflect.Int64Kind: + b = protowire.AppendVarint(b, uint64(v.Int())) + case protoreflect.Sint64Kind: + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v.Int())) + case protoreflect.Uint64Kind: + b = protowire.AppendVarint(b, v.Uint()) + case protoreflect.Sfixed32Kind: + b = protowire.AppendFixed32(b, uint32(v.Int())) + case protoreflect.Fixed32Kind: + b = protowire.AppendFixed32(b, uint32(v.Uint())) + case protoreflect.FloatKind: + b = protowire.AppendFixed32(b, math.Float32bits(float32(v.Float()))) + case protoreflect.Sfixed64Kind: + b = protowire.AppendFixed64(b, uint64(v.Int())) + case protoreflect.Fixed64Kind: + b = protowire.AppendFixed64(b, v.Uint()) + case protoreflect.DoubleKind: + b = protowire.AppendFixed64(b, math.Float64bits(v.Float())) + case protoreflect.StringKind: + if strs.EnforceUTF8(fd) && !utf8.ValidString(v.String()) { + return b, errors.InvalidUTF8(string(fd.FullName())) + } + b = protowire.AppendString(b, v.String()) + case protoreflect.BytesKind: + b = protowire.AppendBytes(b, v.Bytes()) + case protoreflect.MessageKind: + var pos int + var err error + b, pos = appendSpeculativeLength(b) + b, err = o.marshalMessage(b, v.Message()) + if err != nil { + return b, err + } + b = finishSpeculativeLength(b, pos) + case protoreflect.GroupKind: + var err error + b, err = o.marshalMessage(b, v.Message()) + if err != nil { + return b, err + } + b = protowire.AppendVarint(b, protowire.EncodeTag(fd.Number(), protowire.EndGroupType)) + default: + return b, errors.New("invalid kind %v", fd.Kind()) + } + return b, nil +} diff --git a/vendor/google.golang.org/protobuf/proto/equal.go b/vendor/google.golang.org/protobuf/proto/equal.go new file mode 100644 index 000000000..10902bd85 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/equal.go @@ -0,0 +1,154 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "bytes" + "math" + "reflect" + + "google.golang.org/protobuf/encoding/protowire" + pref "google.golang.org/protobuf/reflect/protoreflect" +) + +// Equal reports whether two messages are equal. +// If two messages marshal to the same bytes under deterministic serialization, +// then Equal is guaranteed to report true. +// +// Two messages are equal if they belong to the same message descriptor, +// have the same set of populated known and extension field values, +// and the same set of unknown fields values. If either of the top-level +// messages are invalid, then Equal reports true only if both are invalid. +// +// Scalar values are compared with the equivalent of the == operator in Go, +// except bytes values which are compared using bytes.Equal and +// floating point values which specially treat NaNs as equal. +// Message values are compared by recursively calling Equal. +// Lists are equal if each element value is also equal. +// Maps are equal if they have the same set of keys, where the pair of values +// for each key is also equal. +func Equal(x, y Message) bool { + if x == nil || y == nil { + return x == nil && y == nil + } + mx := x.ProtoReflect() + my := y.ProtoReflect() + if mx.IsValid() != my.IsValid() { + return false + } + return equalMessage(mx, my) +} + +// equalMessage compares two messages. +func equalMessage(mx, my pref.Message) bool { + if mx.Descriptor() != my.Descriptor() { + return false + } + + nx := 0 + equal := true + mx.Range(func(fd pref.FieldDescriptor, vx pref.Value) bool { + nx++ + vy := my.Get(fd) + equal = my.Has(fd) && equalField(fd, vx, vy) + return equal + }) + if !equal { + return false + } + ny := 0 + my.Range(func(fd pref.FieldDescriptor, vx pref.Value) bool { + ny++ + return true + }) + if nx != ny { + return false + } + + return equalUnknown(mx.GetUnknown(), my.GetUnknown()) +} + +// equalField compares two fields. +func equalField(fd pref.FieldDescriptor, x, y pref.Value) bool { + switch { + case fd.IsList(): + return equalList(fd, x.List(), y.List()) + case fd.IsMap(): + return equalMap(fd, x.Map(), y.Map()) + default: + return equalValue(fd, x, y) + } +} + +// equalMap compares two maps. +func equalMap(fd pref.FieldDescriptor, x, y pref.Map) bool { + if x.Len() != y.Len() { + return false + } + equal := true + x.Range(func(k pref.MapKey, vx pref.Value) bool { + vy := y.Get(k) + equal = y.Has(k) && equalValue(fd.MapValue(), vx, vy) + return equal + }) + return equal +} + +// equalList compares two lists. +func equalList(fd pref.FieldDescriptor, x, y pref.List) bool { + if x.Len() != y.Len() { + return false + } + for i := x.Len() - 1; i >= 0; i-- { + if !equalValue(fd, x.Get(i), y.Get(i)) { + return false + } + } + return true +} + +// equalValue compares two singular values. +func equalValue(fd pref.FieldDescriptor, x, y pref.Value) bool { + switch { + case fd.Message() != nil: + return equalMessage(x.Message(), y.Message()) + case fd.Kind() == pref.BytesKind: + return bytes.Equal(x.Bytes(), y.Bytes()) + case fd.Kind() == pref.FloatKind, fd.Kind() == pref.DoubleKind: + fx := x.Float() + fy := y.Float() + if math.IsNaN(fx) || math.IsNaN(fy) { + return math.IsNaN(fx) && math.IsNaN(fy) + } + return fx == fy + default: + return x.Interface() == y.Interface() + } +} + +// equalUnknown compares unknown fields by direct comparison on the raw bytes +// of each individual field number. +func equalUnknown(x, y pref.RawFields) bool { + if len(x) != len(y) { + return false + } + if bytes.Equal([]byte(x), []byte(y)) { + return true + } + + mx := make(map[pref.FieldNumber]pref.RawFields) + my := make(map[pref.FieldNumber]pref.RawFields) + for len(x) > 0 { + fnum, _, n := protowire.ConsumeField(x) + mx[fnum] = append(mx[fnum], x[:n]...) + x = x[n:] + } + for len(y) > 0 { + fnum, _, n := protowire.ConsumeField(y) + my[fnum] = append(my[fnum], y[:n]...) + y = y[n:] + } + return reflect.DeepEqual(mx, my) +} diff --git a/vendor/google.golang.org/protobuf/proto/extension.go b/vendor/google.golang.org/protobuf/proto/extension.go new file mode 100644 index 000000000..5f293cda8 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/extension.go @@ -0,0 +1,92 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "google.golang.org/protobuf/reflect/protoreflect" +) + +// HasExtension reports whether an extension field is populated. +// It returns false if m is invalid or if xt does not extend m. +func HasExtension(m Message, xt protoreflect.ExtensionType) bool { + // Treat nil message interface as an empty message; no populated fields. + if m == nil { + return false + } + + // As a special-case, we reports invalid or mismatching descriptors + // as always not being populated (since they aren't). + if xt == nil || m.ProtoReflect().Descriptor() != xt.TypeDescriptor().ContainingMessage() { + return false + } + + return m.ProtoReflect().Has(xt.TypeDescriptor()) +} + +// ClearExtension clears an extension field such that subsequent +// HasExtension calls return false. +// It panics if m is invalid or if xt does not extend m. +func ClearExtension(m Message, xt protoreflect.ExtensionType) { + m.ProtoReflect().Clear(xt.TypeDescriptor()) +} + +// GetExtension retrieves the value for an extension field. +// If the field is unpopulated, it returns the default value for +// scalars and an immutable, empty value for lists or messages. +// It panics if xt does not extend m. +func GetExtension(m Message, xt protoreflect.ExtensionType) interface{} { + // Treat nil message interface as an empty message; return the default. + if m == nil { + return xt.InterfaceOf(xt.Zero()) + } + + return xt.InterfaceOf(m.ProtoReflect().Get(xt.TypeDescriptor())) +} + +// SetExtension stores the value of an extension field. +// It panics if m is invalid, xt does not extend m, or if type of v +// is invalid for the specified extension field. +func SetExtension(m Message, xt protoreflect.ExtensionType, v interface{}) { + xd := xt.TypeDescriptor() + pv := xt.ValueOf(v) + + // Specially treat an invalid list, map, or message as clear. + isValid := true + switch { + case xd.IsList(): + isValid = pv.List().IsValid() + case xd.IsMap(): + isValid = pv.Map().IsValid() + case xd.Message() != nil: + isValid = pv.Message().IsValid() + } + if !isValid { + m.ProtoReflect().Clear(xd) + return + } + + m.ProtoReflect().Set(xd, pv) +} + +// RangeExtensions iterates over every populated extension field in m in an +// undefined order, calling f for each extension type and value encountered. +// It returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current extension field. +func RangeExtensions(m Message, f func(protoreflect.ExtensionType, interface{}) bool) { + // Treat nil message interface as an empty message; nothing to range over. + if m == nil { + return + } + + m.ProtoReflect().Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + if fd.IsExtension() { + xt := fd.(protoreflect.ExtensionTypeDescriptor).Type() + vi := xt.InterfaceOf(v) + return f(xt, vi) + } + return true + }) +} diff --git a/vendor/google.golang.org/protobuf/proto/merge.go b/vendor/google.golang.org/protobuf/proto/merge.go new file mode 100644 index 000000000..d761ab331 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/merge.go @@ -0,0 +1,139 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "fmt" + + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +// Merge merges src into dst, which must be a message with the same descriptor. +// +// Populated scalar fields in src are copied to dst, while populated +// singular messages in src are merged into dst by recursively calling Merge. +// The elements of every list field in src is appended to the corresponded +// list fields in dst. The entries of every map field in src is copied into +// the corresponding map field in dst, possibly replacing existing entries. +// The unknown fields of src are appended to the unknown fields of dst. +// +// It is semantically equivalent to unmarshaling the encoded form of src +// into dst with the UnmarshalOptions.Merge option specified. +func Merge(dst, src Message) { + // TODO: Should nil src be treated as semantically equivalent to a + // untyped, read-only, empty message? What about a nil dst? + + dstMsg, srcMsg := dst.ProtoReflect(), src.ProtoReflect() + if dstMsg.Descriptor() != srcMsg.Descriptor() { + if got, want := dstMsg.Descriptor().FullName(), srcMsg.Descriptor().FullName(); got != want { + panic(fmt.Sprintf("descriptor mismatch: %v != %v", got, want)) + } + panic("descriptor mismatch") + } + mergeOptions{}.mergeMessage(dstMsg, srcMsg) +} + +// Clone returns a deep copy of m. +// If the top-level message is invalid, it returns an invalid message as well. +func Clone(m Message) Message { + // NOTE: Most usages of Clone assume the following properties: + // t := reflect.TypeOf(m) + // t == reflect.TypeOf(m.ProtoReflect().New().Interface()) + // t == reflect.TypeOf(m.ProtoReflect().Type().Zero().Interface()) + // + // Embedding protobuf messages breaks this since the parent type will have + // a forwarded ProtoReflect method, but the Interface method will return + // the underlying embedded message type. + if m == nil { + return nil + } + src := m.ProtoReflect() + if !src.IsValid() { + return src.Type().Zero().Interface() + } + dst := src.New() + mergeOptions{}.mergeMessage(dst, src) + return dst.Interface() +} + +// mergeOptions provides a namespace for merge functions, and can be +// exported in the future if we add user-visible merge options. +type mergeOptions struct{} + +func (o mergeOptions) mergeMessage(dst, src protoreflect.Message) { + methods := protoMethods(dst) + if methods != nil && methods.Merge != nil { + in := protoiface.MergeInput{ + Destination: dst, + Source: src, + } + out := methods.Merge(in) + if out.Flags&protoiface.MergeComplete != 0 { + return + } + } + + if !dst.IsValid() { + panic(fmt.Sprintf("cannot merge into invalid %v message", dst.Descriptor().FullName())) + } + + src.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + switch { + case fd.IsList(): + o.mergeList(dst.Mutable(fd).List(), v.List(), fd) + case fd.IsMap(): + o.mergeMap(dst.Mutable(fd).Map(), v.Map(), fd.MapValue()) + case fd.Message() != nil: + o.mergeMessage(dst.Mutable(fd).Message(), v.Message()) + case fd.Kind() == protoreflect.BytesKind: + dst.Set(fd, o.cloneBytes(v)) + default: + dst.Set(fd, v) + } + return true + }) + + if len(src.GetUnknown()) > 0 { + dst.SetUnknown(append(dst.GetUnknown(), src.GetUnknown()...)) + } +} + +func (o mergeOptions) mergeList(dst, src protoreflect.List, fd protoreflect.FieldDescriptor) { + // Merge semantics appends to the end of the existing list. + for i, n := 0, src.Len(); i < n; i++ { + switch v := src.Get(i); { + case fd.Message() != nil: + dstv := dst.NewElement() + o.mergeMessage(dstv.Message(), v.Message()) + dst.Append(dstv) + case fd.Kind() == protoreflect.BytesKind: + dst.Append(o.cloneBytes(v)) + default: + dst.Append(v) + } + } +} + +func (o mergeOptions) mergeMap(dst, src protoreflect.Map, fd protoreflect.FieldDescriptor) { + // Merge semantics replaces, rather than merges into existing entries. + src.Range(func(k protoreflect.MapKey, v protoreflect.Value) bool { + switch { + case fd.Message() != nil: + dstv := dst.NewValue() + o.mergeMessage(dstv.Message(), v.Message()) + dst.Set(k, dstv) + case fd.Kind() == protoreflect.BytesKind: + dst.Set(k, o.cloneBytes(v)) + default: + dst.Set(k, v) + } + return true + }) +} + +func (o mergeOptions) cloneBytes(v protoreflect.Value) protoreflect.Value { + return protoreflect.ValueOfBytes(append([]byte{}, v.Bytes()...)) +} diff --git a/vendor/google.golang.org/protobuf/proto/messageset.go b/vendor/google.golang.org/protobuf/proto/messageset.go new file mode 100644 index 000000000..1d692c3a8 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/messageset.go @@ -0,0 +1,88 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +func (o MarshalOptions) sizeMessageSet(m protoreflect.Message) (size int) { + m.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + size += messageset.SizeField(fd.Number()) + size += protowire.SizeTag(messageset.FieldMessage) + size += protowire.SizeBytes(o.size(v.Message())) + return true + }) + size += messageset.SizeUnknown(m.GetUnknown()) + return size +} + +func (o MarshalOptions) marshalMessageSet(b []byte, m protoreflect.Message) ([]byte, error) { + if !flags.ProtoLegacy { + return b, errors.New("no support for message_set_wire_format") + } + var err error + o.rangeFields(m, func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + b, err = o.marshalMessageSetField(b, fd, v) + return err == nil + }) + if err != nil { + return b, err + } + return messageset.AppendUnknown(b, m.GetUnknown()) +} + +func (o MarshalOptions) marshalMessageSetField(b []byte, fd protoreflect.FieldDescriptor, value protoreflect.Value) ([]byte, error) { + b = messageset.AppendFieldStart(b, fd.Number()) + b = protowire.AppendTag(b, messageset.FieldMessage, protowire.BytesType) + b = protowire.AppendVarint(b, uint64(o.Size(value.Message().Interface()))) + b, err := o.marshalMessage(b, value.Message()) + if err != nil { + return b, err + } + b = messageset.AppendFieldEnd(b) + return b, nil +} + +func (o UnmarshalOptions) unmarshalMessageSet(b []byte, m protoreflect.Message) error { + if !flags.ProtoLegacy { + return errors.New("no support for message_set_wire_format") + } + return messageset.Unmarshal(b, false, func(num protowire.Number, v []byte) error { + err := o.unmarshalMessageSetField(m, num, v) + if err == errUnknown { + unknown := m.GetUnknown() + unknown = protowire.AppendTag(unknown, num, protowire.BytesType) + unknown = protowire.AppendBytes(unknown, v) + m.SetUnknown(unknown) + return nil + } + return err + }) +} + +func (o UnmarshalOptions) unmarshalMessageSetField(m protoreflect.Message, num protowire.Number, v []byte) error { + md := m.Descriptor() + if !md.ExtensionRanges().Has(num) { + return errUnknown + } + xt, err := o.Resolver.FindExtensionByNumber(md.FullName(), num) + if err == protoregistry.NotFound { + return errUnknown + } + if err != nil { + return errors.New("%v: unable to resolve extension %v: %v", md.FullName(), num, err) + } + xd := xt.TypeDescriptor() + if err := o.unmarshalMessage(v, m.Mutable(xd).Message()); err != nil { + return err + } + return nil +} diff --git a/vendor/google.golang.org/protobuf/proto/proto.go b/vendor/google.golang.org/protobuf/proto/proto.go new file mode 100644 index 000000000..ca14b09c3 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/proto.go @@ -0,0 +1,34 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// Message is the top-level interface that all messages must implement. +// It provides access to a reflective view of a message. +// Any implementation of this interface may be used with all functions in the +// protobuf module that accept a Message, except where otherwise specified. +// +// This is the v2 interface definition for protobuf messages. +// The v1 interface definition is "github.com/golang/protobuf/proto".Message. +// +// To convert a v1 message to a v2 message, +// use "github.com/golang/protobuf/proto".MessageV2. +// To convert a v2 message to a v1 message, +// use "github.com/golang/protobuf/proto".MessageV1. +type Message = protoreflect.ProtoMessage + +// Error matches all errors produced by packages in the protobuf module. +// +// That is, errors.Is(err, Error) reports whether an error is produced +// by this module. +var Error error + +func init() { + Error = errors.Error +} diff --git a/vendor/google.golang.org/protobuf/proto/proto_methods.go b/vendor/google.golang.org/protobuf/proto/proto_methods.go new file mode 100644 index 000000000..d8dd604f6 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/proto_methods.go @@ -0,0 +1,19 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// The protoreflect build tag disables use of fast-path methods. +// +build !protoreflect + +package proto + +import ( + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +const hasProtoMethods = true + +func protoMethods(m protoreflect.Message) *protoiface.Methods { + return m.ProtoMethods() +} diff --git a/vendor/google.golang.org/protobuf/proto/proto_reflect.go b/vendor/google.golang.org/protobuf/proto/proto_reflect.go new file mode 100644 index 000000000..b103d4320 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/proto_reflect.go @@ -0,0 +1,19 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// The protoreflect build tag disables use of fast-path methods. +// +build protoreflect + +package proto + +import ( + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +const hasProtoMethods = false + +func protoMethods(m protoreflect.Message) *protoiface.Methods { + return nil +} diff --git a/vendor/google.golang.org/protobuf/proto/reset.go b/vendor/google.golang.org/protobuf/proto/reset.go new file mode 100644 index 000000000..3d7f89436 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/reset.go @@ -0,0 +1,43 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "fmt" + + "google.golang.org/protobuf/reflect/protoreflect" +) + +// Reset clears every field in the message. +// The resulting message shares no observable memory with its previous state +// other than the memory for the message itself. +func Reset(m Message) { + if mr, ok := m.(interface{ Reset() }); ok && hasProtoMethods { + mr.Reset() + return + } + resetMessage(m.ProtoReflect()) +} + +func resetMessage(m protoreflect.Message) { + if !m.IsValid() { + panic(fmt.Sprintf("cannot reset invalid %v message", m.Descriptor().FullName())) + } + + // Clear all known fields. + fds := m.Descriptor().Fields() + for i := 0; i < fds.Len(); i++ { + m.Clear(fds.Get(i)) + } + + // Clear extension fields. + m.Range(func(fd protoreflect.FieldDescriptor, _ protoreflect.Value) bool { + m.Clear(fd) + return true + }) + + // Clear unknown fields. + m.SetUnknown(nil) +} diff --git a/vendor/google.golang.org/protobuf/proto/size.go b/vendor/google.golang.org/protobuf/proto/size.go new file mode 100644 index 000000000..554b9c6c0 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/size.go @@ -0,0 +1,97 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +// Size returns the size in bytes of the wire-format encoding of m. +func Size(m Message) int { + return MarshalOptions{}.Size(m) +} + +// Size returns the size in bytes of the wire-format encoding of m. +func (o MarshalOptions) Size(m Message) int { + // Treat a nil message interface as an empty message; nothing to output. + if m == nil { + return 0 + } + + return o.size(m.ProtoReflect()) +} + +// size is a centralized function that all size operations go through. +// For profiling purposes, avoid changing the name of this function or +// introducing other code paths for size that do not go through this. +func (o MarshalOptions) size(m protoreflect.Message) (size int) { + methods := protoMethods(m) + if methods != nil && methods.Size != nil { + out := methods.Size(protoiface.SizeInput{ + Message: m, + }) + return out.Size + } + if methods != nil && methods.Marshal != nil { + // This is not efficient, but we don't have any choice. + // This case is mainly used for legacy types with a Marshal method. + out, _ := methods.Marshal(protoiface.MarshalInput{ + Message: m, + }) + return len(out.Buf) + } + return o.sizeMessageSlow(m) +} + +func (o MarshalOptions) sizeMessageSlow(m protoreflect.Message) (size int) { + if messageset.IsMessageSet(m.Descriptor()) { + return o.sizeMessageSet(m) + } + m.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + size += o.sizeField(fd, v) + return true + }) + size += len(m.GetUnknown()) + return size +} + +func (o MarshalOptions) sizeField(fd protoreflect.FieldDescriptor, value protoreflect.Value) (size int) { + num := fd.Number() + switch { + case fd.IsList(): + return o.sizeList(num, fd, value.List()) + case fd.IsMap(): + return o.sizeMap(num, fd, value.Map()) + default: + return protowire.SizeTag(num) + o.sizeSingular(num, fd.Kind(), value) + } +} + +func (o MarshalOptions) sizeList(num protowire.Number, fd protoreflect.FieldDescriptor, list protoreflect.List) (size int) { + if fd.IsPacked() && list.Len() > 0 { + content := 0 + for i, llen := 0, list.Len(); i < llen; i++ { + content += o.sizeSingular(num, fd.Kind(), list.Get(i)) + } + return protowire.SizeTag(num) + protowire.SizeBytes(content) + } + + for i, llen := 0, list.Len(); i < llen; i++ { + size += protowire.SizeTag(num) + o.sizeSingular(num, fd.Kind(), list.Get(i)) + } + return size +} + +func (o MarshalOptions) sizeMap(num protowire.Number, fd protoreflect.FieldDescriptor, mapv protoreflect.Map) (size int) { + mapv.Range(func(key protoreflect.MapKey, value protoreflect.Value) bool { + size += protowire.SizeTag(num) + size += protowire.SizeBytes(o.sizeField(fd.MapKey(), key.Value()) + o.sizeField(fd.MapValue(), value)) + return true + }) + return size +} diff --git a/vendor/google.golang.org/protobuf/proto/size_gen.go b/vendor/google.golang.org/protobuf/proto/size_gen.go new file mode 100644 index 000000000..3cf61a824 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/size_gen.go @@ -0,0 +1,55 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-types. DO NOT EDIT. + +package proto + +import ( + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/reflect/protoreflect" +) + +func (o MarshalOptions) sizeSingular(num protowire.Number, kind protoreflect.Kind, v protoreflect.Value) int { + switch kind { + case protoreflect.BoolKind: + return protowire.SizeVarint(protowire.EncodeBool(v.Bool())) + case protoreflect.EnumKind: + return protowire.SizeVarint(uint64(v.Enum())) + case protoreflect.Int32Kind: + return protowire.SizeVarint(uint64(int32(v.Int()))) + case protoreflect.Sint32Kind: + return protowire.SizeVarint(protowire.EncodeZigZag(int64(int32(v.Int())))) + case protoreflect.Uint32Kind: + return protowire.SizeVarint(uint64(uint32(v.Uint()))) + case protoreflect.Int64Kind: + return protowire.SizeVarint(uint64(v.Int())) + case protoreflect.Sint64Kind: + return protowire.SizeVarint(protowire.EncodeZigZag(v.Int())) + case protoreflect.Uint64Kind: + return protowire.SizeVarint(v.Uint()) + case protoreflect.Sfixed32Kind: + return protowire.SizeFixed32() + case protoreflect.Fixed32Kind: + return protowire.SizeFixed32() + case protoreflect.FloatKind: + return protowire.SizeFixed32() + case protoreflect.Sfixed64Kind: + return protowire.SizeFixed64() + case protoreflect.Fixed64Kind: + return protowire.SizeFixed64() + case protoreflect.DoubleKind: + return protowire.SizeFixed64() + case protoreflect.StringKind: + return protowire.SizeBytes(len(v.String())) + case protoreflect.BytesKind: + return protowire.SizeBytes(len(v.Bytes())) + case protoreflect.MessageKind: + return protowire.SizeBytes(o.size(v.Message())) + case protoreflect.GroupKind: + return protowire.SizeGroup(num, o.size(v.Message())) + default: + return 0 + } +} diff --git a/vendor/google.golang.org/protobuf/proto/wrappers.go b/vendor/google.golang.org/protobuf/proto/wrappers.go new file mode 100644 index 000000000..653b12c3a --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/wrappers.go @@ -0,0 +1,29 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +// Bool stores v in a new bool value and returns a pointer to it. +func Bool(v bool) *bool { return &v } + +// Int32 stores v in a new int32 value and returns a pointer to it. +func Int32(v int32) *int32 { return &v } + +// Int64 stores v in a new int64 value and returns a pointer to it. +func Int64(v int64) *int64 { return &v } + +// Float32 stores v in a new float32 value and returns a pointer to it. +func Float32(v float32) *float32 { return &v } + +// Float64 stores v in a new float64 value and returns a pointer to it. +func Float64(v float64) *float64 { return &v } + +// Uint32 stores v in a new uint32 value and returns a pointer to it. +func Uint32(v uint32) *uint32 { return &v } + +// Uint64 stores v in a new uint64 value and returns a pointer to it. +func Uint64(v uint64) *uint64 { return &v } + +// String stores v in a new string value and returns a pointer to it. +func String(v string) *string { return &v } diff --git a/vendor/google.golang.org/protobuf/reflect/protodesc/desc.go b/vendor/google.golang.org/protobuf/reflect/protodesc/desc.go new file mode 100644 index 000000000..37f254d4c --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protodesc/desc.go @@ -0,0 +1,275 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protodesc provides functionality for converting +// FileDescriptorProto messages to/from protoreflect.FileDescriptor values. +// +// The google.protobuf.FileDescriptorProto is a protobuf message that describes +// the type information for a .proto file in a form that is easily serializable. +// The protoreflect.FileDescriptor is a more structured representation of +// the FileDescriptorProto message where references and remote dependencies +// can be directly followed. +package protodesc + +import ( + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + + "google.golang.org/protobuf/types/descriptorpb" +) + +// Resolver is the resolver used by NewFile to resolve dependencies. +// The enums and messages provided must belong to some parent file, +// which is also registered. +// +// It is implemented by protoregistry.Files. +type Resolver interface { + FindFileByPath(string) (protoreflect.FileDescriptor, error) + FindDescriptorByName(protoreflect.FullName) (protoreflect.Descriptor, error) +} + +// FileOptions configures the construction of file descriptors. +type FileOptions struct { + pragma.NoUnkeyedLiterals + + // AllowUnresolvable configures New to permissively allow unresolvable + // file, enum, or message dependencies. Unresolved dependencies are replaced + // by placeholder equivalents. + // + // The following dependencies may be left unresolved: + // • Resolving an imported file. + // • Resolving the type for a message field or extension field. + // If the kind of the field is unknown, then a placeholder is used for both + // the Enum and Message accessors on the protoreflect.FieldDescriptor. + // • Resolving an enum value set as the default for an optional enum field. + // If unresolvable, the protoreflect.FieldDescriptor.Default is set to the + // first value in the associated enum (or zero if the also enum dependency + // is also unresolvable). The protoreflect.FieldDescriptor.DefaultEnumValue + // is populated with a placeholder. + // • Resolving the extended message type for an extension field. + // • Resolving the input or output message type for a service method. + // + // If the unresolved dependency uses a relative name, + // then the placeholder will contain an invalid FullName with a "*." prefix, + // indicating that the starting prefix of the full name is unknown. + AllowUnresolvable bool +} + +// NewFile creates a new protoreflect.FileDescriptor from the provided +// file descriptor message. See FileOptions.New for more information. +func NewFile(fd *descriptorpb.FileDescriptorProto, r Resolver) (protoreflect.FileDescriptor, error) { + return FileOptions{}.New(fd, r) +} + +// NewFiles creates a new protoregistry.Files from the provided +// FileDescriptorSet message. See FileOptions.NewFiles for more information. +func NewFiles(fd *descriptorpb.FileDescriptorSet) (*protoregistry.Files, error) { + return FileOptions{}.NewFiles(fd) +} + +// New creates a new protoreflect.FileDescriptor from the provided +// file descriptor message. The file must represent a valid proto file according +// to protobuf semantics. The returned descriptor is a deep copy of the input. +// +// Any imported files, enum types, or message types referenced in the file are +// resolved using the provided registry. When looking up an import file path, +// the path must be unique. The newly created file descriptor is not registered +// back into the provided file registry. +func (o FileOptions) New(fd *descriptorpb.FileDescriptorProto, r Resolver) (protoreflect.FileDescriptor, error) { + if r == nil { + r = (*protoregistry.Files)(nil) // empty resolver + } + + // Handle the file descriptor content. + f := &filedesc.File{L2: &filedesc.FileL2{}} + switch fd.GetSyntax() { + case "proto2", "": + f.L1.Syntax = protoreflect.Proto2 + case "proto3": + f.L1.Syntax = protoreflect.Proto3 + default: + return nil, errors.New("invalid syntax: %q", fd.GetSyntax()) + } + f.L1.Path = fd.GetName() + if f.L1.Path == "" { + return nil, errors.New("file path must be populated") + } + f.L1.Package = protoreflect.FullName(fd.GetPackage()) + if !f.L1.Package.IsValid() && f.L1.Package != "" { + return nil, errors.New("invalid package: %q", f.L1.Package) + } + if opts := fd.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.FileOptions) + f.L2.Options = func() protoreflect.ProtoMessage { return opts } + } + + f.L2.Imports = make(filedesc.FileImports, len(fd.GetDependency())) + for _, i := range fd.GetPublicDependency() { + if !(0 <= i && int(i) < len(f.L2.Imports)) || f.L2.Imports[i].IsPublic { + return nil, errors.New("invalid or duplicate public import index: %d", i) + } + f.L2.Imports[i].IsPublic = true + } + for _, i := range fd.GetWeakDependency() { + if !(0 <= i && int(i) < len(f.L2.Imports)) || f.L2.Imports[i].IsWeak { + return nil, errors.New("invalid or duplicate weak import index: %d", i) + } + f.L2.Imports[i].IsWeak = true + } + imps := importSet{f.Path(): true} + for i, path := range fd.GetDependency() { + imp := &f.L2.Imports[i] + f, err := r.FindFileByPath(path) + if err == protoregistry.NotFound && (o.AllowUnresolvable || imp.IsWeak) { + f = filedesc.PlaceholderFile(path) + } else if err != nil { + return nil, errors.New("could not resolve import %q: %v", path, err) + } + imp.FileDescriptor = f + + if imps[imp.Path()] { + return nil, errors.New("already imported %q", path) + } + imps[imp.Path()] = true + } + for i := range fd.GetDependency() { + imp := &f.L2.Imports[i] + imps.importPublic(imp.Imports()) + } + + // Handle source locations. + for _, loc := range fd.GetSourceCodeInfo().GetLocation() { + var l protoreflect.SourceLocation + // TODO: Validate that the path points to an actual declaration? + l.Path = protoreflect.SourcePath(loc.GetPath()) + s := loc.GetSpan() + switch len(s) { + case 3: + l.StartLine, l.StartColumn, l.EndLine, l.EndColumn = int(s[0]), int(s[1]), int(s[0]), int(s[2]) + case 4: + l.StartLine, l.StartColumn, l.EndLine, l.EndColumn = int(s[0]), int(s[1]), int(s[2]), int(s[3]) + default: + return nil, errors.New("invalid span: %v", s) + } + // TODO: Validate that the span information is sensible? + // See https://github.com/protocolbuffers/protobuf/issues/6378. + if false && (l.EndLine < l.StartLine || l.StartLine < 0 || l.StartColumn < 0 || l.EndColumn < 0 || + (l.StartLine == l.EndLine && l.EndColumn <= l.StartColumn)) { + return nil, errors.New("invalid span: %v", s) + } + l.LeadingDetachedComments = loc.GetLeadingDetachedComments() + l.LeadingComments = loc.GetLeadingComments() + l.TrailingComments = loc.GetTrailingComments() + f.L2.Locations.List = append(f.L2.Locations.List, l) + } + + // Step 1: Allocate and derive the names for all declarations. + // This copies all fields from the descriptor proto except: + // google.protobuf.FieldDescriptorProto.type_name + // google.protobuf.FieldDescriptorProto.default_value + // google.protobuf.FieldDescriptorProto.oneof_index + // google.protobuf.FieldDescriptorProto.extendee + // google.protobuf.MethodDescriptorProto.input + // google.protobuf.MethodDescriptorProto.output + var err error + sb := new(strs.Builder) + r1 := make(descsByName) + if f.L1.Enums.List, err = r1.initEnumDeclarations(fd.GetEnumType(), f, sb); err != nil { + return nil, err + } + if f.L1.Messages.List, err = r1.initMessagesDeclarations(fd.GetMessageType(), f, sb); err != nil { + return nil, err + } + if f.L1.Extensions.List, err = r1.initExtensionDeclarations(fd.GetExtension(), f, sb); err != nil { + return nil, err + } + if f.L1.Services.List, err = r1.initServiceDeclarations(fd.GetService(), f, sb); err != nil { + return nil, err + } + + // Step 2: Resolve every dependency reference not handled by step 1. + r2 := &resolver{local: r1, remote: r, imports: imps, allowUnresolvable: o.AllowUnresolvable} + if err := r2.resolveMessageDependencies(f.L1.Messages.List, fd.GetMessageType()); err != nil { + return nil, err + } + if err := r2.resolveExtensionDependencies(f.L1.Extensions.List, fd.GetExtension()); err != nil { + return nil, err + } + if err := r2.resolveServiceDependencies(f.L1.Services.List, fd.GetService()); err != nil { + return nil, err + } + + // Step 3: Validate every enum, message, and extension declaration. + if err := validateEnumDeclarations(f.L1.Enums.List, fd.GetEnumType()); err != nil { + return nil, err + } + if err := validateMessageDeclarations(f.L1.Messages.List, fd.GetMessageType()); err != nil { + return nil, err + } + if err := validateExtensionDeclarations(f.L1.Extensions.List, fd.GetExtension()); err != nil { + return nil, err + } + + return f, nil +} + +type importSet map[string]bool + +func (is importSet) importPublic(imps protoreflect.FileImports) { + for i := 0; i < imps.Len(); i++ { + if imp := imps.Get(i); imp.IsPublic { + is[imp.Path()] = true + is.importPublic(imp.Imports()) + } + } +} + +// NewFiles creates a new protoregistry.Files from the provided +// FileDescriptorSet message. The descriptor set must include only +// valid files according to protobuf semantics. The returned descriptors +// are a deep copy of the input. +func (o FileOptions) NewFiles(fds *descriptorpb.FileDescriptorSet) (*protoregistry.Files, error) { + files := make(map[string]*descriptorpb.FileDescriptorProto) + for _, fd := range fds.File { + if _, ok := files[fd.GetName()]; ok { + return nil, errors.New("file appears multiple times: %q", fd.GetName()) + } + files[fd.GetName()] = fd + } + r := &protoregistry.Files{} + for _, fd := range files { + if err := o.addFileDeps(r, fd, files); err != nil { + return nil, err + } + } + return r, nil +} +func (o FileOptions) addFileDeps(r *protoregistry.Files, fd *descriptorpb.FileDescriptorProto, files map[string]*descriptorpb.FileDescriptorProto) error { + // Set the entry to nil while descending into a file's dependencies to detect cycles. + files[fd.GetName()] = nil + for _, dep := range fd.Dependency { + depfd, ok := files[dep] + if depfd == nil { + if ok { + return errors.New("import cycle in file: %q", dep) + } + continue + } + if err := o.addFileDeps(r, depfd, files); err != nil { + return err + } + } + // Delete the entry once dependencies are processed. + delete(files, fd.GetName()) + f, err := o.New(fd, r) + if err != nil { + return err + } + return r.RegisterFile(f) +} diff --git a/vendor/google.golang.org/protobuf/reflect/protodesc/desc_init.go b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_init.go new file mode 100644 index 000000000..673a230e7 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_init.go @@ -0,0 +1,248 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protodesc + +import ( + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + + "google.golang.org/protobuf/types/descriptorpb" +) + +type descsByName map[protoreflect.FullName]protoreflect.Descriptor + +func (r descsByName) initEnumDeclarations(eds []*descriptorpb.EnumDescriptorProto, parent protoreflect.Descriptor, sb *strs.Builder) (es []filedesc.Enum, err error) { + es = make([]filedesc.Enum, len(eds)) // allocate up-front to ensure stable pointers + for i, ed := range eds { + e := &es[i] + e.L2 = new(filedesc.EnumL2) + if e.L0, err = r.makeBase(e, parent, ed.GetName(), i, sb); err != nil { + return nil, err + } + if opts := ed.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.EnumOptions) + e.L2.Options = func() protoreflect.ProtoMessage { return opts } + } + for _, s := range ed.GetReservedName() { + e.L2.ReservedNames.List = append(e.L2.ReservedNames.List, protoreflect.Name(s)) + } + for _, rr := range ed.GetReservedRange() { + e.L2.ReservedRanges.List = append(e.L2.ReservedRanges.List, [2]protoreflect.EnumNumber{ + protoreflect.EnumNumber(rr.GetStart()), + protoreflect.EnumNumber(rr.GetEnd()), + }) + } + if e.L2.Values.List, err = r.initEnumValuesFromDescriptorProto(ed.GetValue(), e, sb); err != nil { + return nil, err + } + } + return es, nil +} + +func (r descsByName) initEnumValuesFromDescriptorProto(vds []*descriptorpb.EnumValueDescriptorProto, parent protoreflect.Descriptor, sb *strs.Builder) (vs []filedesc.EnumValue, err error) { + vs = make([]filedesc.EnumValue, len(vds)) // allocate up-front to ensure stable pointers + for i, vd := range vds { + v := &vs[i] + if v.L0, err = r.makeBase(v, parent, vd.GetName(), i, sb); err != nil { + return nil, err + } + if opts := vd.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.EnumValueOptions) + v.L1.Options = func() protoreflect.ProtoMessage { return opts } + } + v.L1.Number = protoreflect.EnumNumber(vd.GetNumber()) + } + return vs, nil +} + +func (r descsByName) initMessagesDeclarations(mds []*descriptorpb.DescriptorProto, parent protoreflect.Descriptor, sb *strs.Builder) (ms []filedesc.Message, err error) { + ms = make([]filedesc.Message, len(mds)) // allocate up-front to ensure stable pointers + for i, md := range mds { + m := &ms[i] + m.L2 = new(filedesc.MessageL2) + if m.L0, err = r.makeBase(m, parent, md.GetName(), i, sb); err != nil { + return nil, err + } + if opts := md.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.MessageOptions) + m.L2.Options = func() protoreflect.ProtoMessage { return opts } + m.L1.IsMapEntry = opts.GetMapEntry() + m.L1.IsMessageSet = opts.GetMessageSetWireFormat() + } + for _, s := range md.GetReservedName() { + m.L2.ReservedNames.List = append(m.L2.ReservedNames.List, protoreflect.Name(s)) + } + for _, rr := range md.GetReservedRange() { + m.L2.ReservedRanges.List = append(m.L2.ReservedRanges.List, [2]protoreflect.FieldNumber{ + protoreflect.FieldNumber(rr.GetStart()), + protoreflect.FieldNumber(rr.GetEnd()), + }) + } + for _, xr := range md.GetExtensionRange() { + m.L2.ExtensionRanges.List = append(m.L2.ExtensionRanges.List, [2]protoreflect.FieldNumber{ + protoreflect.FieldNumber(xr.GetStart()), + protoreflect.FieldNumber(xr.GetEnd()), + }) + var optsFunc func() protoreflect.ProtoMessage + if opts := xr.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.ExtensionRangeOptions) + optsFunc = func() protoreflect.ProtoMessage { return opts } + } + m.L2.ExtensionRangeOptions = append(m.L2.ExtensionRangeOptions, optsFunc) + } + if m.L2.Fields.List, err = r.initFieldsFromDescriptorProto(md.GetField(), m, sb); err != nil { + return nil, err + } + if m.L2.Oneofs.List, err = r.initOneofsFromDescriptorProto(md.GetOneofDecl(), m, sb); err != nil { + return nil, err + } + if m.L1.Enums.List, err = r.initEnumDeclarations(md.GetEnumType(), m, sb); err != nil { + return nil, err + } + if m.L1.Messages.List, err = r.initMessagesDeclarations(md.GetNestedType(), m, sb); err != nil { + return nil, err + } + if m.L1.Extensions.List, err = r.initExtensionDeclarations(md.GetExtension(), m, sb); err != nil { + return nil, err + } + } + return ms, nil +} + +func (r descsByName) initFieldsFromDescriptorProto(fds []*descriptorpb.FieldDescriptorProto, parent protoreflect.Descriptor, sb *strs.Builder) (fs []filedesc.Field, err error) { + fs = make([]filedesc.Field, len(fds)) // allocate up-front to ensure stable pointers + for i, fd := range fds { + f := &fs[i] + if f.L0, err = r.makeBase(f, parent, fd.GetName(), i, sb); err != nil { + return nil, err + } + f.L1.IsProto3Optional = fd.GetProto3Optional() + if opts := fd.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.FieldOptions) + f.L1.Options = func() protoreflect.ProtoMessage { return opts } + f.L1.IsWeak = opts.GetWeak() + f.L1.HasPacked = opts.Packed != nil + f.L1.IsPacked = opts.GetPacked() + } + f.L1.Number = protoreflect.FieldNumber(fd.GetNumber()) + f.L1.Cardinality = protoreflect.Cardinality(fd.GetLabel()) + if fd.Type != nil { + f.L1.Kind = protoreflect.Kind(fd.GetType()) + } + if fd.JsonName != nil { + f.L1.JSONName.Init(fd.GetJsonName()) + } + } + return fs, nil +} + +func (r descsByName) initOneofsFromDescriptorProto(ods []*descriptorpb.OneofDescriptorProto, parent protoreflect.Descriptor, sb *strs.Builder) (os []filedesc.Oneof, err error) { + os = make([]filedesc.Oneof, len(ods)) // allocate up-front to ensure stable pointers + for i, od := range ods { + o := &os[i] + if o.L0, err = r.makeBase(o, parent, od.GetName(), i, sb); err != nil { + return nil, err + } + if opts := od.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.OneofOptions) + o.L1.Options = func() protoreflect.ProtoMessage { return opts } + } + } + return os, nil +} + +func (r descsByName) initExtensionDeclarations(xds []*descriptorpb.FieldDescriptorProto, parent protoreflect.Descriptor, sb *strs.Builder) (xs []filedesc.Extension, err error) { + xs = make([]filedesc.Extension, len(xds)) // allocate up-front to ensure stable pointers + for i, xd := range xds { + x := &xs[i] + x.L2 = new(filedesc.ExtensionL2) + if x.L0, err = r.makeBase(x, parent, xd.GetName(), i, sb); err != nil { + return nil, err + } + if opts := xd.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.FieldOptions) + x.L2.Options = func() protoreflect.ProtoMessage { return opts } + x.L2.IsPacked = opts.GetPacked() + } + x.L1.Number = protoreflect.FieldNumber(xd.GetNumber()) + x.L1.Cardinality = protoreflect.Cardinality(xd.GetLabel()) + if xd.Type != nil { + x.L1.Kind = protoreflect.Kind(xd.GetType()) + } + if xd.JsonName != nil { + x.L2.JSONName.Init(xd.GetJsonName()) + } + } + return xs, nil +} + +func (r descsByName) initServiceDeclarations(sds []*descriptorpb.ServiceDescriptorProto, parent protoreflect.Descriptor, sb *strs.Builder) (ss []filedesc.Service, err error) { + ss = make([]filedesc.Service, len(sds)) // allocate up-front to ensure stable pointers + for i, sd := range sds { + s := &ss[i] + s.L2 = new(filedesc.ServiceL2) + if s.L0, err = r.makeBase(s, parent, sd.GetName(), i, sb); err != nil { + return nil, err + } + if opts := sd.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.ServiceOptions) + s.L2.Options = func() protoreflect.ProtoMessage { return opts } + } + if s.L2.Methods.List, err = r.initMethodsFromDescriptorProto(sd.GetMethod(), s, sb); err != nil { + return nil, err + } + } + return ss, nil +} + +func (r descsByName) initMethodsFromDescriptorProto(mds []*descriptorpb.MethodDescriptorProto, parent protoreflect.Descriptor, sb *strs.Builder) (ms []filedesc.Method, err error) { + ms = make([]filedesc.Method, len(mds)) // allocate up-front to ensure stable pointers + for i, md := range mds { + m := &ms[i] + if m.L0, err = r.makeBase(m, parent, md.GetName(), i, sb); err != nil { + return nil, err + } + if opts := md.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.MethodOptions) + m.L1.Options = func() protoreflect.ProtoMessage { return opts } + } + m.L1.IsStreamingClient = md.GetClientStreaming() + m.L1.IsStreamingServer = md.GetServerStreaming() + } + return ms, nil +} + +func (r descsByName) makeBase(child, parent protoreflect.Descriptor, name string, idx int, sb *strs.Builder) (filedesc.BaseL0, error) { + if !protoreflect.Name(name).IsValid() { + return filedesc.BaseL0{}, errors.New("descriptor %q has an invalid nested name: %q", parent.FullName(), name) + } + + // Derive the full name of the child. + // Note that enum values are a sibling to the enum parent in the namespace. + var fullName protoreflect.FullName + if _, ok := parent.(protoreflect.EnumDescriptor); ok { + fullName = sb.AppendFullName(parent.FullName().Parent(), protoreflect.Name(name)) + } else { + fullName = sb.AppendFullName(parent.FullName(), protoreflect.Name(name)) + } + if _, ok := r[fullName]; ok { + return filedesc.BaseL0{}, errors.New("descriptor %q already declared", fullName) + } + r[fullName] = child + + // TODO: Verify that the full name does not already exist in the resolver? + // This is not as critical since most usages of NewFile will register + // the created file back into the registry, which will perform this check. + + return filedesc.BaseL0{ + FullName: fullName, + ParentFile: parent.ParentFile().(*filedesc.File), + Parent: parent, + Index: idx, + }, nil +} diff --git a/vendor/google.golang.org/protobuf/reflect/protodesc/desc_resolve.go b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_resolve.go new file mode 100644 index 000000000..cebb36cda --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_resolve.go @@ -0,0 +1,286 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protodesc + +import ( + "google.golang.org/protobuf/internal/encoding/defval" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + + "google.golang.org/protobuf/types/descriptorpb" +) + +// resolver is a wrapper around a local registry of declarations within the file +// and the remote resolver. The remote resolver is restricted to only return +// descriptors that have been imported. +type resolver struct { + local descsByName + remote Resolver + imports importSet + + allowUnresolvable bool +} + +func (r *resolver) resolveMessageDependencies(ms []filedesc.Message, mds []*descriptorpb.DescriptorProto) (err error) { + for i, md := range mds { + m := &ms[i] + for j, fd := range md.GetField() { + f := &m.L2.Fields.List[j] + if f.L1.Cardinality == protoreflect.Required { + m.L2.RequiredNumbers.List = append(m.L2.RequiredNumbers.List, f.L1.Number) + } + if fd.OneofIndex != nil { + k := int(fd.GetOneofIndex()) + if !(0 <= k && k < len(md.GetOneofDecl())) { + return errors.New("message field %q has an invalid oneof index: %d", f.FullName(), k) + } + o := &m.L2.Oneofs.List[k] + f.L1.ContainingOneof = o + o.L1.Fields.List = append(o.L1.Fields.List, f) + } + + if f.L1.Kind, f.L1.Enum, f.L1.Message, err = r.findTarget(f.Kind(), f.Parent().FullName(), partialName(fd.GetTypeName()), f.IsWeak()); err != nil { + return errors.New("message field %q cannot resolve type: %v", f.FullName(), err) + } + if fd.DefaultValue != nil { + v, ev, err := unmarshalDefault(fd.GetDefaultValue(), f, r.allowUnresolvable) + if err != nil { + return errors.New("message field %q has invalid default: %v", f.FullName(), err) + } + f.L1.Default = filedesc.DefaultValue(v, ev) + } + } + + if err := r.resolveMessageDependencies(m.L1.Messages.List, md.GetNestedType()); err != nil { + return err + } + if err := r.resolveExtensionDependencies(m.L1.Extensions.List, md.GetExtension()); err != nil { + return err + } + } + return nil +} + +func (r *resolver) resolveExtensionDependencies(xs []filedesc.Extension, xds []*descriptorpb.FieldDescriptorProto) (err error) { + for i, xd := range xds { + x := &xs[i] + if x.L1.Extendee, err = r.findMessageDescriptor(x.Parent().FullName(), partialName(xd.GetExtendee()), false); err != nil { + return errors.New("extension field %q cannot resolve extendee: %v", x.FullName(), err) + } + if x.L1.Kind, x.L2.Enum, x.L2.Message, err = r.findTarget(x.Kind(), x.Parent().FullName(), partialName(xd.GetTypeName()), false); err != nil { + return errors.New("extension field %q cannot resolve type: %v", x.FullName(), err) + } + if xd.DefaultValue != nil { + v, ev, err := unmarshalDefault(xd.GetDefaultValue(), x, r.allowUnresolvable) + if err != nil { + return errors.New("extension field %q has invalid default: %v", x.FullName(), err) + } + x.L2.Default = filedesc.DefaultValue(v, ev) + } + } + return nil +} + +func (r *resolver) resolveServiceDependencies(ss []filedesc.Service, sds []*descriptorpb.ServiceDescriptorProto) (err error) { + for i, sd := range sds { + s := &ss[i] + for j, md := range sd.GetMethod() { + m := &s.L2.Methods.List[j] + m.L1.Input, err = r.findMessageDescriptor(m.Parent().FullName(), partialName(md.GetInputType()), false) + if err != nil { + return errors.New("service method %q cannot resolve input: %v", m.FullName(), err) + } + m.L1.Output, err = r.findMessageDescriptor(s.FullName(), partialName(md.GetOutputType()), false) + if err != nil { + return errors.New("service method %q cannot resolve output: %v", m.FullName(), err) + } + } + } + return nil +} + +// findTarget finds an enum or message descriptor if k is an enum, message, +// group, or unknown. If unknown, and the name could be resolved, the kind +// returned kind is set based on the type of the resolved descriptor. +func (r *resolver) findTarget(k protoreflect.Kind, scope protoreflect.FullName, ref partialName, isWeak bool) (protoreflect.Kind, protoreflect.EnumDescriptor, protoreflect.MessageDescriptor, error) { + switch k { + case protoreflect.EnumKind: + ed, err := r.findEnumDescriptor(scope, ref, isWeak) + if err != nil { + return 0, nil, nil, err + } + return k, ed, nil, nil + case protoreflect.MessageKind, protoreflect.GroupKind: + md, err := r.findMessageDescriptor(scope, ref, isWeak) + if err != nil { + return 0, nil, nil, err + } + return k, nil, md, nil + case 0: + // Handle unspecified kinds (possible with parsers that operate + // on a per-file basis without knowledge of dependencies). + d, err := r.findDescriptor(scope, ref) + if err == protoregistry.NotFound && (r.allowUnresolvable || isWeak) { + return k, filedesc.PlaceholderEnum(ref.FullName()), filedesc.PlaceholderMessage(ref.FullName()), nil + } else if err == protoregistry.NotFound { + return 0, nil, nil, errors.New("%q not found", ref.FullName()) + } else if err != nil { + return 0, nil, nil, err + } + switch d := d.(type) { + case protoreflect.EnumDescriptor: + return protoreflect.EnumKind, d, nil, nil + case protoreflect.MessageDescriptor: + return protoreflect.MessageKind, nil, d, nil + default: + return 0, nil, nil, errors.New("unknown kind") + } + default: + if ref != "" { + return 0, nil, nil, errors.New("target name cannot be specified for %v", k) + } + if !k.IsValid() { + return 0, nil, nil, errors.New("invalid kind: %d", k) + } + return k, nil, nil, nil + } +} + +// findDescriptor finds the descriptor by name, +// which may be a relative name within some scope. +// +// Suppose the scope was "fizz.buzz" and the reference was "Foo.Bar", +// then the following full names are searched: +// * fizz.buzz.Foo.Bar +// * fizz.Foo.Bar +// * Foo.Bar +func (r *resolver) findDescriptor(scope protoreflect.FullName, ref partialName) (protoreflect.Descriptor, error) { + if !ref.IsValid() { + return nil, errors.New("invalid name reference: %q", ref) + } + if ref.IsFull() { + scope, ref = "", ref[1:] + } + var foundButNotImported protoreflect.Descriptor + for { + // Derive the full name to search. + s := protoreflect.FullName(ref) + if scope != "" { + s = scope + "." + s + } + + // Check the current file for the descriptor. + if d, ok := r.local[s]; ok { + return d, nil + } + + // Check the remote registry for the descriptor. + d, err := r.remote.FindDescriptorByName(s) + if err == nil { + // Only allow descriptors covered by one of the imports. + if r.imports[d.ParentFile().Path()] { + return d, nil + } + foundButNotImported = d + } else if err != protoregistry.NotFound { + return nil, errors.Wrap(err, "%q", s) + } + + // Continue on at a higher level of scoping. + if scope == "" { + if d := foundButNotImported; d != nil { + return nil, errors.New("resolved %q, but %q is not imported", d.FullName(), d.ParentFile().Path()) + } + return nil, protoregistry.NotFound + } + scope = scope.Parent() + } +} + +func (r *resolver) findEnumDescriptor(scope protoreflect.FullName, ref partialName, isWeak bool) (protoreflect.EnumDescriptor, error) { + d, err := r.findDescriptor(scope, ref) + if err == protoregistry.NotFound && (r.allowUnresolvable || isWeak) { + return filedesc.PlaceholderEnum(ref.FullName()), nil + } else if err == protoregistry.NotFound { + return nil, errors.New("%q not found", ref.FullName()) + } else if err != nil { + return nil, err + } + ed, ok := d.(protoreflect.EnumDescriptor) + if !ok { + return nil, errors.New("resolved %q, but it is not an enum", d.FullName()) + } + return ed, nil +} + +func (r *resolver) findMessageDescriptor(scope protoreflect.FullName, ref partialName, isWeak bool) (protoreflect.MessageDescriptor, error) { + d, err := r.findDescriptor(scope, ref) + if err == protoregistry.NotFound && (r.allowUnresolvable || isWeak) { + return filedesc.PlaceholderMessage(ref.FullName()), nil + } else if err == protoregistry.NotFound { + return nil, errors.New("%q not found", ref.FullName()) + } else if err != nil { + return nil, err + } + md, ok := d.(protoreflect.MessageDescriptor) + if !ok { + return nil, errors.New("resolved %q, but it is not an message", d.FullName()) + } + return md, nil +} + +// partialName is the partial name. A leading dot means that the name is full, +// otherwise the name is relative to some current scope. +// See google.protobuf.FieldDescriptorProto.type_name. +type partialName string + +func (s partialName) IsFull() bool { + return len(s) > 0 && s[0] == '.' +} + +func (s partialName) IsValid() bool { + if s.IsFull() { + return protoreflect.FullName(s[1:]).IsValid() + } + return protoreflect.FullName(s).IsValid() +} + +const unknownPrefix = "*." + +// FullName converts the partial name to a full name on a best-effort basis. +// If relative, it creates an invalid full name, using a "*." prefix +// to indicate that the start of the full name is unknown. +func (s partialName) FullName() protoreflect.FullName { + if s.IsFull() { + return protoreflect.FullName(s[1:]) + } + return protoreflect.FullName(unknownPrefix + s) +} + +func unmarshalDefault(s string, fd protoreflect.FieldDescriptor, allowUnresolvable bool) (protoreflect.Value, protoreflect.EnumValueDescriptor, error) { + var evs protoreflect.EnumValueDescriptors + if fd.Enum() != nil { + evs = fd.Enum().Values() + } + v, ev, err := defval.Unmarshal(s, fd.Kind(), evs, defval.Descriptor) + if err != nil && allowUnresolvable && evs != nil && protoreflect.Name(s).IsValid() { + v = protoreflect.ValueOfEnum(0) + if evs.Len() > 0 { + v = protoreflect.ValueOfEnum(evs.Get(0).Number()) + } + ev = filedesc.PlaceholderEnumValue(fd.Enum().FullName().Parent().Append(protoreflect.Name(s))) + } else if err != nil { + return v, ev, err + } + if fd.Syntax() == protoreflect.Proto3 { + return v, ev, errors.New("cannot be specified under proto3 semantics") + } + if fd.Kind() == protoreflect.MessageKind || fd.Kind() == protoreflect.GroupKind || fd.Cardinality() == protoreflect.Repeated { + return v, ev, errors.New("cannot be specified on composite types") + } + return v, ev, nil +} diff --git a/vendor/google.golang.org/protobuf/reflect/protodesc/desc_validate.go b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_validate.go new file mode 100644 index 000000000..cf9641ab9 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_validate.go @@ -0,0 +1,370 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protodesc + +import ( + "strings" + "unicode" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/reflect/protoreflect" + + "google.golang.org/protobuf/types/descriptorpb" +) + +func validateEnumDeclarations(es []filedesc.Enum, eds []*descriptorpb.EnumDescriptorProto) error { + for i, ed := range eds { + e := &es[i] + if err := e.L2.ReservedNames.CheckValid(); err != nil { + return errors.New("enum %q reserved names has %v", e.FullName(), err) + } + if err := e.L2.ReservedRanges.CheckValid(); err != nil { + return errors.New("enum %q reserved ranges has %v", e.FullName(), err) + } + if len(ed.GetValue()) == 0 { + return errors.New("enum %q must contain at least one value declaration", e.FullName()) + } + allowAlias := ed.GetOptions().GetAllowAlias() + foundAlias := false + for i := 0; i < e.Values().Len(); i++ { + v1 := e.Values().Get(i) + if v2 := e.Values().ByNumber(v1.Number()); v1 != v2 { + foundAlias = true + if !allowAlias { + return errors.New("enum %q has conflicting non-aliased values on number %d: %q with %q", e.FullName(), v1.Number(), v1.Name(), v2.Name()) + } + } + } + if allowAlias && !foundAlias { + return errors.New("enum %q allows aliases, but none were found", e.FullName()) + } + if e.Syntax() == protoreflect.Proto3 { + if v := e.Values().Get(0); v.Number() != 0 { + return errors.New("enum %q using proto3 semantics must have zero number for the first value", v.FullName()) + } + // Verify that value names in proto3 do not conflict if the + // case-insensitive prefix is removed. + // See protoc v3.8.0: src/google/protobuf/descriptor.cc:4991-5055 + names := map[string]protoreflect.EnumValueDescriptor{} + prefix := strings.Replace(strings.ToLower(string(e.Name())), "_", "", -1) + for i := 0; i < e.Values().Len(); i++ { + v1 := e.Values().Get(i) + s := strs.EnumValueName(strs.TrimEnumPrefix(string(v1.Name()), prefix)) + if v2, ok := names[s]; ok && v1.Number() != v2.Number() { + return errors.New("enum %q using proto3 semantics has conflict: %q with %q", e.FullName(), v1.Name(), v2.Name()) + } + names[s] = v1 + } + } + + for j, vd := range ed.GetValue() { + v := &e.L2.Values.List[j] + if vd.Number == nil { + return errors.New("enum value %q must have a specified number", v.FullName()) + } + if e.L2.ReservedNames.Has(v.Name()) { + return errors.New("enum value %q must not use reserved name", v.FullName()) + } + if e.L2.ReservedRanges.Has(v.Number()) { + return errors.New("enum value %q must not use reserved number %d", v.FullName(), v.Number()) + } + } + } + return nil +} + +func validateMessageDeclarations(ms []filedesc.Message, mds []*descriptorpb.DescriptorProto) error { + for i, md := range mds { + m := &ms[i] + + // Handle the message descriptor itself. + isMessageSet := md.GetOptions().GetMessageSetWireFormat() + if err := m.L2.ReservedNames.CheckValid(); err != nil { + return errors.New("message %q reserved names has %v", m.FullName(), err) + } + if err := m.L2.ReservedRanges.CheckValid(isMessageSet); err != nil { + return errors.New("message %q reserved ranges has %v", m.FullName(), err) + } + if err := m.L2.ExtensionRanges.CheckValid(isMessageSet); err != nil { + return errors.New("message %q extension ranges has %v", m.FullName(), err) + } + if err := (*filedesc.FieldRanges).CheckOverlap(&m.L2.ReservedRanges, &m.L2.ExtensionRanges); err != nil { + return errors.New("message %q reserved and extension ranges has %v", m.FullName(), err) + } + for i := 0; i < m.Fields().Len(); i++ { + f1 := m.Fields().Get(i) + if f2 := m.Fields().ByNumber(f1.Number()); f1 != f2 { + return errors.New("message %q has conflicting fields: %q with %q", m.FullName(), f1.Name(), f2.Name()) + } + } + if isMessageSet && !flags.ProtoLegacy { + return errors.New("message %q is a MessageSet, which is a legacy proto1 feature that is no longer supported", m.FullName()) + } + if isMessageSet && (m.Syntax() != protoreflect.Proto2 || m.Fields().Len() > 0 || m.ExtensionRanges().Len() == 0) { + return errors.New("message %q is an invalid proto1 MessageSet", m.FullName()) + } + if m.Syntax() == protoreflect.Proto3 { + if m.ExtensionRanges().Len() > 0 { + return errors.New("message %q using proto3 semantics cannot have extension ranges", m.FullName()) + } + // Verify that field names in proto3 do not conflict if lowercased + // with all underscores removed. + // See protoc v3.8.0: src/google/protobuf/descriptor.cc:5830-5847 + names := map[string]protoreflect.FieldDescriptor{} + for i := 0; i < m.Fields().Len(); i++ { + f1 := m.Fields().Get(i) + s := strings.Replace(strings.ToLower(string(f1.Name())), "_", "", -1) + if f2, ok := names[s]; ok { + return errors.New("message %q using proto3 semantics has conflict: %q with %q", m.FullName(), f1.Name(), f2.Name()) + } + names[s] = f1 + } + } + + for j, fd := range md.GetField() { + f := &m.L2.Fields.List[j] + if m.L2.ReservedNames.Has(f.Name()) { + return errors.New("message field %q must not use reserved name", f.FullName()) + } + if !f.Number().IsValid() { + return errors.New("message field %q has an invalid number: %d", f.FullName(), f.Number()) + } + if !f.Cardinality().IsValid() { + return errors.New("message field %q has an invalid cardinality: %d", f.FullName(), f.Cardinality()) + } + if m.L2.ReservedRanges.Has(f.Number()) { + return errors.New("message field %q must not use reserved number %d", f.FullName(), f.Number()) + } + if m.L2.ExtensionRanges.Has(f.Number()) { + return errors.New("message field %q with number %d in extension range", f.FullName(), f.Number()) + } + if fd.Extendee != nil { + return errors.New("message field %q may not have extendee: %q", f.FullName(), fd.GetExtendee()) + } + if f.L1.IsProto3Optional { + if f.Syntax() != protoreflect.Proto3 { + return errors.New("message field %q under proto3 optional semantics must be specified in the proto3 syntax", f.FullName()) + } + if f.Cardinality() != protoreflect.Optional { + return errors.New("message field %q under proto3 optional semantics must have optional cardinality", f.FullName()) + } + if f.ContainingOneof() != nil && f.ContainingOneof().Fields().Len() != 1 { + return errors.New("message field %q under proto3 optional semantics must be within a single element oneof", f.FullName()) + } + } + if f.IsWeak() && !flags.ProtoLegacy { + return errors.New("message field %q is a weak field, which is a legacy proto1 feature that is no longer supported", f.FullName()) + } + if f.IsWeak() && (f.Syntax() != protoreflect.Proto2 || !isOptionalMessage(f) || f.ContainingOneof() != nil) { + return errors.New("message field %q may only be weak for an optional message", f.FullName()) + } + if f.IsPacked() && !isPackable(f) { + return errors.New("message field %q is not packable", f.FullName()) + } + if err := checkValidGroup(f); err != nil { + return errors.New("message field %q is an invalid group: %v", f.FullName(), err) + } + if err := checkValidMap(f); err != nil { + return errors.New("message field %q is an invalid map: %v", f.FullName(), err) + } + if f.Syntax() == protoreflect.Proto3 { + if f.Cardinality() == protoreflect.Required { + return errors.New("message field %q using proto3 semantics cannot be required", f.FullName()) + } + if f.Enum() != nil && !f.Enum().IsPlaceholder() && f.Enum().Syntax() != protoreflect.Proto3 { + return errors.New("message field %q using proto3 semantics may only depend on a proto3 enum", f.FullName()) + } + } + } + seenSynthetic := false // synthetic oneofs for proto3 optional must come after real oneofs + for j := range md.GetOneofDecl() { + o := &m.L2.Oneofs.List[j] + if o.Fields().Len() == 0 { + return errors.New("message oneof %q must contain at least one field declaration", o.FullName()) + } + if n := o.Fields().Len(); n-1 != (o.Fields().Get(n-1).Index() - o.Fields().Get(0).Index()) { + return errors.New("message oneof %q must have consecutively declared fields", o.FullName()) + } + + if o.IsSynthetic() { + seenSynthetic = true + continue + } + if !o.IsSynthetic() && seenSynthetic { + return errors.New("message oneof %q must be declared before synthetic oneofs", o.FullName()) + } + + for i := 0; i < o.Fields().Len(); i++ { + f := o.Fields().Get(i) + if f.Cardinality() != protoreflect.Optional { + return errors.New("message field %q belongs in a oneof and must be optional", f.FullName()) + } + if f.IsWeak() { + return errors.New("message field %q belongs in a oneof and must not be a weak reference", f.FullName()) + } + } + } + + if err := validateEnumDeclarations(m.L1.Enums.List, md.GetEnumType()); err != nil { + return err + } + if err := validateMessageDeclarations(m.L1.Messages.List, md.GetNestedType()); err != nil { + return err + } + if err := validateExtensionDeclarations(m.L1.Extensions.List, md.GetExtension()); err != nil { + return err + } + } + return nil +} + +func validateExtensionDeclarations(xs []filedesc.Extension, xds []*descriptorpb.FieldDescriptorProto) error { + for i, xd := range xds { + x := &xs[i] + // NOTE: Avoid using the IsValid method since extensions to MessageSet + // may have a field number higher than normal. This check only verifies + // that the number is not negative or reserved. We check again later + // if we know that the extendee is definitely not a MessageSet. + if n := x.Number(); n < 0 || (protowire.FirstReservedNumber <= n && n <= protowire.LastReservedNumber) { + return errors.New("extension field %q has an invalid number: %d", x.FullName(), x.Number()) + } + if !x.Cardinality().IsValid() || x.Cardinality() == protoreflect.Required { + return errors.New("extension field %q has an invalid cardinality: %d", x.FullName(), x.Cardinality()) + } + if xd.JsonName != nil { + if xd.GetJsonName() != strs.JSONCamelCase(string(x.Name())) { + return errors.New("extension field %q may not have an explicitly set JSON name: %q", x.FullName(), xd.GetJsonName()) + } + } + if xd.OneofIndex != nil { + return errors.New("extension field %q may not be part of a oneof", x.FullName()) + } + if md := x.ContainingMessage(); !md.IsPlaceholder() { + if !md.ExtensionRanges().Has(x.Number()) { + return errors.New("extension field %q extends %q with non-extension field number: %d", x.FullName(), md.FullName(), x.Number()) + } + isMessageSet := md.Options().(*descriptorpb.MessageOptions).GetMessageSetWireFormat() + if isMessageSet && !isOptionalMessage(x) { + return errors.New("extension field %q extends MessageSet and must be an optional message", x.FullName()) + } + if !isMessageSet && !x.Number().IsValid() { + return errors.New("extension field %q has an invalid number: %d", x.FullName(), x.Number()) + } + } + if xd.GetOptions().GetWeak() { + return errors.New("extension field %q cannot be a weak reference", x.FullName()) + } + if x.IsPacked() && !isPackable(x) { + return errors.New("extension field %q is not packable", x.FullName()) + } + if err := checkValidGroup(x); err != nil { + return errors.New("extension field %q is an invalid group: %v", x.FullName(), err) + } + if md := x.Message(); md != nil && md.IsMapEntry() { + return errors.New("extension field %q cannot be a map entry", x.FullName()) + } + if x.Syntax() == protoreflect.Proto3 { + switch x.ContainingMessage().FullName() { + case (*descriptorpb.FileOptions)(nil).ProtoReflect().Descriptor().FullName(): + case (*descriptorpb.EnumOptions)(nil).ProtoReflect().Descriptor().FullName(): + case (*descriptorpb.EnumValueOptions)(nil).ProtoReflect().Descriptor().FullName(): + case (*descriptorpb.MessageOptions)(nil).ProtoReflect().Descriptor().FullName(): + case (*descriptorpb.FieldOptions)(nil).ProtoReflect().Descriptor().FullName(): + case (*descriptorpb.OneofOptions)(nil).ProtoReflect().Descriptor().FullName(): + case (*descriptorpb.ExtensionRangeOptions)(nil).ProtoReflect().Descriptor().FullName(): + case (*descriptorpb.ServiceOptions)(nil).ProtoReflect().Descriptor().FullName(): + case (*descriptorpb.MethodOptions)(nil).ProtoReflect().Descriptor().FullName(): + default: + return errors.New("extension field %q cannot be declared in proto3 unless extended descriptor options", x.FullName()) + } + } + } + return nil +} + +// isOptionalMessage reports whether this is an optional message. +// If the kind is unknown, it is assumed to be a message. +func isOptionalMessage(fd protoreflect.FieldDescriptor) bool { + return (fd.Kind() == 0 || fd.Kind() == protoreflect.MessageKind) && fd.Cardinality() == protoreflect.Optional +} + +// isPackable checks whether the pack option can be specified. +func isPackable(fd protoreflect.FieldDescriptor) bool { + switch fd.Kind() { + case protoreflect.StringKind, protoreflect.BytesKind, protoreflect.MessageKind, protoreflect.GroupKind: + return false + } + return fd.IsList() +} + +// checkValidGroup reports whether fd is a valid group according to the same +// rules that protoc imposes. +func checkValidGroup(fd protoreflect.FieldDescriptor) error { + md := fd.Message() + switch { + case fd.Kind() != protoreflect.GroupKind: + return nil + case fd.Syntax() != protoreflect.Proto2: + return errors.New("invalid under proto2 semantics") + case md == nil || md.IsPlaceholder(): + return errors.New("message must be resolvable") + case fd.FullName().Parent() != md.FullName().Parent(): + return errors.New("message and field must be declared in the same scope") + case !unicode.IsUpper(rune(md.Name()[0])): + return errors.New("message name must start with an uppercase") + case fd.Name() != protoreflect.Name(strings.ToLower(string(md.Name()))): + return errors.New("field name must be lowercased form of the message name") + } + return nil +} + +// checkValidMap checks whether the field is a valid map according to the same +// rules that protoc imposes. +// See protoc v3.8.0: src/google/protobuf/descriptor.cc:6045-6115 +func checkValidMap(fd protoreflect.FieldDescriptor) error { + md := fd.Message() + switch { + case md == nil || !md.IsMapEntry(): + return nil + case fd.FullName().Parent() != md.FullName().Parent(): + return errors.New("message and field must be declared in the same scope") + case md.Name() != protoreflect.Name(strs.MapEntryName(string(fd.Name()))): + return errors.New("incorrect implicit map entry name") + case fd.Cardinality() != protoreflect.Repeated: + return errors.New("field must be repeated") + case md.Fields().Len() != 2: + return errors.New("message must have exactly two fields") + case md.ExtensionRanges().Len() > 0: + return errors.New("message must not have any extension ranges") + case md.Enums().Len()+md.Messages().Len()+md.Extensions().Len() > 0: + return errors.New("message must not have any nested declarations") + } + kf := md.Fields().Get(0) + vf := md.Fields().Get(1) + switch { + case kf.Name() != "key" || kf.Number() != 1 || kf.Cardinality() != protoreflect.Optional || kf.ContainingOneof() != nil || kf.HasDefault(): + return errors.New("invalid key field") + case vf.Name() != "value" || vf.Number() != 2 || vf.Cardinality() != protoreflect.Optional || vf.ContainingOneof() != nil || vf.HasDefault(): + return errors.New("invalid value field") + } + switch kf.Kind() { + case protoreflect.BoolKind: // bool + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: // int32 + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: // int64 + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: // uint32 + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: // uint64 + case protoreflect.StringKind: // string + default: + return errors.New("invalid key kind: %v", kf.Kind()) + } + if e := vf.Enum(); e != nil && e.Values().Len() > 0 && e.Values().Get(0).Number() != 0 { + return errors.New("map enum value must have zero number for the first value") + } + return nil +} diff --git a/vendor/google.golang.org/protobuf/reflect/protodesc/proto.go b/vendor/google.golang.org/protobuf/reflect/protodesc/proto.go new file mode 100644 index 000000000..00d35e02e --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protodesc/proto.go @@ -0,0 +1,242 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protodesc + +import ( + "fmt" + "strings" + + "google.golang.org/protobuf/internal/encoding/defval" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + + "google.golang.org/protobuf/types/descriptorpb" +) + +// ToFileDescriptorProto copies a protoreflect.FileDescriptor into a +// google.protobuf.FileDescriptorProto message. +func ToFileDescriptorProto(file protoreflect.FileDescriptor) *descriptorpb.FileDescriptorProto { + p := &descriptorpb.FileDescriptorProto{ + Name: proto.String(file.Path()), + Package: proto.String(string(file.Package())), + Options: proto.Clone(file.Options()).(*descriptorpb.FileOptions), + } + for i, imports := 0, file.Imports(); i < imports.Len(); i++ { + imp := imports.Get(i) + p.Dependency = append(p.Dependency, imp.Path()) + if imp.IsPublic { + p.PublicDependency = append(p.PublicDependency, int32(i)) + } + if imp.IsWeak { + p.WeakDependency = append(p.WeakDependency, int32(i)) + } + } + for i, locs := 0, file.SourceLocations(); i < locs.Len(); i++ { + loc := locs.Get(i) + l := &descriptorpb.SourceCodeInfo_Location{} + l.Path = append(l.Path, loc.Path...) + if loc.StartLine == loc.EndLine { + l.Span = []int32{int32(loc.StartLine), int32(loc.StartColumn), int32(loc.EndColumn)} + } else { + l.Span = []int32{int32(loc.StartLine), int32(loc.StartColumn), int32(loc.EndLine), int32(loc.EndColumn)} + } + l.LeadingDetachedComments = append([]string(nil), loc.LeadingDetachedComments...) + if loc.LeadingComments != "" { + l.LeadingComments = proto.String(loc.LeadingComments) + } + if loc.TrailingComments != "" { + l.TrailingComments = proto.String(loc.TrailingComments) + } + if p.SourceCodeInfo == nil { + p.SourceCodeInfo = &descriptorpb.SourceCodeInfo{} + } + p.SourceCodeInfo.Location = append(p.SourceCodeInfo.Location, l) + + } + for i, messages := 0, file.Messages(); i < messages.Len(); i++ { + p.MessageType = append(p.MessageType, ToDescriptorProto(messages.Get(i))) + } + for i, enums := 0, file.Enums(); i < enums.Len(); i++ { + p.EnumType = append(p.EnumType, ToEnumDescriptorProto(enums.Get(i))) + } + for i, services := 0, file.Services(); i < services.Len(); i++ { + p.Service = append(p.Service, ToServiceDescriptorProto(services.Get(i))) + } + for i, exts := 0, file.Extensions(); i < exts.Len(); i++ { + p.Extension = append(p.Extension, ToFieldDescriptorProto(exts.Get(i))) + } + if syntax := file.Syntax(); syntax != protoreflect.Proto2 { + p.Syntax = proto.String(file.Syntax().String()) + } + return p +} + +// ToDescriptorProto copies a protoreflect.MessageDescriptor into a +// google.protobuf.DescriptorProto message. +func ToDescriptorProto(message protoreflect.MessageDescriptor) *descriptorpb.DescriptorProto { + p := &descriptorpb.DescriptorProto{ + Name: proto.String(string(message.Name())), + Options: proto.Clone(message.Options()).(*descriptorpb.MessageOptions), + } + for i, fields := 0, message.Fields(); i < fields.Len(); i++ { + p.Field = append(p.Field, ToFieldDescriptorProto(fields.Get(i))) + } + for i, exts := 0, message.Extensions(); i < exts.Len(); i++ { + p.Extension = append(p.Extension, ToFieldDescriptorProto(exts.Get(i))) + } + for i, messages := 0, message.Messages(); i < messages.Len(); i++ { + p.NestedType = append(p.NestedType, ToDescriptorProto(messages.Get(i))) + } + for i, enums := 0, message.Enums(); i < enums.Len(); i++ { + p.EnumType = append(p.EnumType, ToEnumDescriptorProto(enums.Get(i))) + } + for i, xranges := 0, message.ExtensionRanges(); i < xranges.Len(); i++ { + xrange := xranges.Get(i) + p.ExtensionRange = append(p.ExtensionRange, &descriptorpb.DescriptorProto_ExtensionRange{ + Start: proto.Int32(int32(xrange[0])), + End: proto.Int32(int32(xrange[1])), + Options: proto.Clone(message.ExtensionRangeOptions(i)).(*descriptorpb.ExtensionRangeOptions), + }) + } + for i, oneofs := 0, message.Oneofs(); i < oneofs.Len(); i++ { + p.OneofDecl = append(p.OneofDecl, ToOneofDescriptorProto(oneofs.Get(i))) + } + for i, ranges := 0, message.ReservedRanges(); i < ranges.Len(); i++ { + rrange := ranges.Get(i) + p.ReservedRange = append(p.ReservedRange, &descriptorpb.DescriptorProto_ReservedRange{ + Start: proto.Int32(int32(rrange[0])), + End: proto.Int32(int32(rrange[1])), + }) + } + for i, names := 0, message.ReservedNames(); i < names.Len(); i++ { + p.ReservedName = append(p.ReservedName, string(names.Get(i))) + } + return p +} + +// ToFieldDescriptorProto copies a protoreflect.FieldDescriptor into a +// google.protobuf.FieldDescriptorProto message. +func ToFieldDescriptorProto(field protoreflect.FieldDescriptor) *descriptorpb.FieldDescriptorProto { + p := &descriptorpb.FieldDescriptorProto{ + Name: proto.String(string(field.Name())), + Number: proto.Int32(int32(field.Number())), + Label: descriptorpb.FieldDescriptorProto_Label(field.Cardinality()).Enum(), + Options: proto.Clone(field.Options()).(*descriptorpb.FieldOptions), + } + if field.IsExtension() { + p.Extendee = fullNameOf(field.ContainingMessage()) + } + if field.Kind().IsValid() { + p.Type = descriptorpb.FieldDescriptorProto_Type(field.Kind()).Enum() + } + if field.Enum() != nil { + p.TypeName = fullNameOf(field.Enum()) + } + if field.Message() != nil { + p.TypeName = fullNameOf(field.Message()) + } + if field.HasJSONName() { + p.JsonName = proto.String(field.JSONName()) + } + if field.Syntax() == protoreflect.Proto3 && field.HasOptionalKeyword() { + p.Proto3Optional = proto.Bool(true) + } + if field.HasDefault() { + def, err := defval.Marshal(field.Default(), field.DefaultEnumValue(), field.Kind(), defval.Descriptor) + if err != nil && field.DefaultEnumValue() != nil { + def = string(field.DefaultEnumValue().Name()) // occurs for unresolved enum values + } else if err != nil { + panic(fmt.Sprintf("%v: %v", field.FullName(), err)) + } + p.DefaultValue = proto.String(def) + } + if oneof := field.ContainingOneof(); oneof != nil { + p.OneofIndex = proto.Int32(int32(oneof.Index())) + } + return p +} + +// ToOneofDescriptorProto copies a protoreflect.OneofDescriptor into a +// google.protobuf.OneofDescriptorProto message. +func ToOneofDescriptorProto(oneof protoreflect.OneofDescriptor) *descriptorpb.OneofDescriptorProto { + return &descriptorpb.OneofDescriptorProto{ + Name: proto.String(string(oneof.Name())), + Options: proto.Clone(oneof.Options()).(*descriptorpb.OneofOptions), + } +} + +// ToEnumDescriptorProto copies a protoreflect.EnumDescriptor into a +// google.protobuf.EnumDescriptorProto message. +func ToEnumDescriptorProto(enum protoreflect.EnumDescriptor) *descriptorpb.EnumDescriptorProto { + p := &descriptorpb.EnumDescriptorProto{ + Name: proto.String(string(enum.Name())), + Options: proto.Clone(enum.Options()).(*descriptorpb.EnumOptions), + } + for i, values := 0, enum.Values(); i < values.Len(); i++ { + p.Value = append(p.Value, ToEnumValueDescriptorProto(values.Get(i))) + } + for i, ranges := 0, enum.ReservedRanges(); i < ranges.Len(); i++ { + rrange := ranges.Get(i) + p.ReservedRange = append(p.ReservedRange, &descriptorpb.EnumDescriptorProto_EnumReservedRange{ + Start: proto.Int32(int32(rrange[0])), + End: proto.Int32(int32(rrange[1])), + }) + } + for i, names := 0, enum.ReservedNames(); i < names.Len(); i++ { + p.ReservedName = append(p.ReservedName, string(names.Get(i))) + } + return p +} + +// ToEnumValueDescriptorProto copies a protoreflect.EnumValueDescriptor into a +// google.protobuf.EnumValueDescriptorProto message. +func ToEnumValueDescriptorProto(value protoreflect.EnumValueDescriptor) *descriptorpb.EnumValueDescriptorProto { + return &descriptorpb.EnumValueDescriptorProto{ + Name: proto.String(string(value.Name())), + Number: proto.Int32(int32(value.Number())), + Options: proto.Clone(value.Options()).(*descriptorpb.EnumValueOptions), + } +} + +// ToServiceDescriptorProto copies a protoreflect.ServiceDescriptor into a +// google.protobuf.ServiceDescriptorProto message. +func ToServiceDescriptorProto(service protoreflect.ServiceDescriptor) *descriptorpb.ServiceDescriptorProto { + p := &descriptorpb.ServiceDescriptorProto{ + Name: proto.String(string(service.Name())), + Options: proto.Clone(service.Options()).(*descriptorpb.ServiceOptions), + } + for i, methods := 0, service.Methods(); i < methods.Len(); i++ { + p.Method = append(p.Method, ToMethodDescriptorProto(methods.Get(i))) + } + return p +} + +// ToMethodDescriptorProto copies a protoreflect.MethodDescriptor into a +// google.protobuf.MethodDescriptorProto message. +func ToMethodDescriptorProto(method protoreflect.MethodDescriptor) *descriptorpb.MethodDescriptorProto { + p := &descriptorpb.MethodDescriptorProto{ + Name: proto.String(string(method.Name())), + InputType: fullNameOf(method.Input()), + OutputType: fullNameOf(method.Output()), + Options: proto.Clone(method.Options()).(*descriptorpb.MethodOptions), + } + if method.IsStreamingClient() { + p.ClientStreaming = proto.Bool(true) + } + if method.IsStreamingServer() { + p.ServerStreaming = proto.Bool(true) + } + return p +} + +func fullNameOf(d protoreflect.Descriptor) *string { + if d == nil { + return nil + } + if strings.HasPrefix(string(d.FullName()), unknownPrefix) { + return proto.String(string(d.FullName()[len(unknownPrefix):])) + } + return proto.String("." + string(d.FullName())) +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go new file mode 100644 index 000000000..6be5d16e9 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go @@ -0,0 +1,77 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protoreflect + +import ( + "google.golang.org/protobuf/internal/pragma" +) + +// The following types are used by the fast-path Message.ProtoMethods method. +// +// To avoid polluting the public protoreflect API with types used only by +// low-level implementations, the canonical definitions of these types are +// in the runtime/protoiface package. The definitions here and in protoiface +// must be kept in sync. +type ( + methods = struct { + pragma.NoUnkeyedLiterals + Flags supportFlags + Size func(sizeInput) sizeOutput + Marshal func(marshalInput) (marshalOutput, error) + Unmarshal func(unmarshalInput) (unmarshalOutput, error) + Merge func(mergeInput) mergeOutput + CheckInitialized func(checkInitializedInput) (checkInitializedOutput, error) + } + supportFlags = uint64 + sizeInput = struct { + pragma.NoUnkeyedLiterals + Message Message + Flags uint8 + } + sizeOutput = struct { + pragma.NoUnkeyedLiterals + Size int + } + marshalInput = struct { + pragma.NoUnkeyedLiterals + Message Message + Buf []byte + Flags uint8 + } + marshalOutput = struct { + pragma.NoUnkeyedLiterals + Buf []byte + } + unmarshalInput = struct { + pragma.NoUnkeyedLiterals + Message Message + Buf []byte + Flags uint8 + Resolver interface { + FindExtensionByName(field FullName) (ExtensionType, error) + FindExtensionByNumber(message FullName, field FieldNumber) (ExtensionType, error) + } + } + unmarshalOutput = struct { + pragma.NoUnkeyedLiterals + Flags uint8 + } + mergeInput = struct { + pragma.NoUnkeyedLiterals + Source Message + Destination Message + } + mergeOutput = struct { + pragma.NoUnkeyedLiterals + Flags uint8 + } + checkInitializedInput = struct { + pragma.NoUnkeyedLiterals + Message Message + } + checkInitializedOutput = struct { + pragma.NoUnkeyedLiterals + } +) diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/proto.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/proto.go new file mode 100644 index 000000000..b669a4e76 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/proto.go @@ -0,0 +1,478 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protoreflect provides interfaces to dynamically manipulate messages. +// +// This package includes type descriptors which describe the structure of types +// defined in proto source files and value interfaces which provide the +// ability to examine and manipulate the contents of messages. +// +// +// Protocol Buffer Descriptors +// +// Protobuf descriptors (e.g., EnumDescriptor or MessageDescriptor) +// are immutable objects that represent protobuf type information. +// They are wrappers around the messages declared in descriptor.proto. +// Protobuf descriptors alone lack any information regarding Go types. +// +// Enums and messages generated by this module implement Enum and ProtoMessage, +// where the Descriptor and ProtoReflect.Descriptor accessors respectively +// return the protobuf descriptor for the values. +// +// The protobuf descriptor interfaces are not meant to be implemented by +// user code since they might need to be extended in the future to support +// additions to the protobuf language. +// The "google.golang.org/protobuf/reflect/protodesc" package converts between +// google.protobuf.DescriptorProto messages and protobuf descriptors. +// +// +// Go Type Descriptors +// +// A type descriptor (e.g., EnumType or MessageType) is a constructor for +// a concrete Go type that represents the associated protobuf descriptor. +// There is commonly a one-to-one relationship between protobuf descriptors and +// Go type descriptors, but it can potentially be a one-to-many relationship. +// +// Enums and messages generated by this module implement Enum and ProtoMessage, +// where the Type and ProtoReflect.Type accessors respectively +// return the protobuf descriptor for the values. +// +// The "google.golang.org/protobuf/types/dynamicpb" package can be used to +// create Go type descriptors from protobuf descriptors. +// +// +// Value Interfaces +// +// The Enum and Message interfaces provide a reflective view over an +// enum or message instance. For enums, it provides the ability to retrieve +// the enum value number for any concrete enum type. For messages, it provides +// the ability to access or manipulate fields of the message. +// +// To convert a proto.Message to a protoreflect.Message, use the +// former's ProtoReflect method. Since the ProtoReflect method is new to the +// v2 message interface, it may not be present on older message implementations. +// The "github.com/golang/protobuf/proto".MessageReflect function can be used +// to obtain a reflective view on older messages. +// +// +// Relationships +// +// The following diagrams demonstrate the relationships between +// various types declared in this package. +// +// +// ┌───────────────────────────────────┐ +// V │ +// ┌────────────── New(n) ─────────────┐ │ +// │ │ │ +// │ ┌──── Descriptor() ──┐ │ ┌── Number() ──┐ │ +// │ │ V V │ V │ +// ╔════════════╗ ╔════════════════╗ ╔════════╗ ╔════════════╗ +// ║ EnumType ║ ║ EnumDescriptor ║ ║ Enum ║ ║ EnumNumber ║ +// ╚════════════╝ ╚════════════════╝ ╚════════╝ ╚════════════╝ +// Λ Λ │ │ +// │ └─── Descriptor() ──┘ │ +// │ │ +// └────────────────── Type() ───────┘ +// +// • An EnumType describes a concrete Go enum type. +// It has an EnumDescriptor and can construct an Enum instance. +// +// • An EnumDescriptor describes an abstract protobuf enum type. +// +// • An Enum is a concrete enum instance. Generated enums implement Enum. +// +// +// ┌──────────────── New() ─────────────────┐ +// │ │ +// │ ┌─── Descriptor() ─────┐ │ ┌── Interface() ───┐ +// │ │ V V │ V +// ╔═════════════╗ ╔═══════════════════╗ ╔═════════╗ ╔══════════════╗ +// ║ MessageType ║ ║ MessageDescriptor ║ ║ Message ║ ║ ProtoMessage ║ +// ╚═════════════╝ ╚═══════════════════╝ ╚═════════╝ ╚══════════════╝ +// Λ Λ │ │ Λ │ +// │ └──── Descriptor() ────┘ │ └─ ProtoReflect() ─┘ +// │ │ +// └─────────────────── Type() ─────────┘ +// +// • A MessageType describes a concrete Go message type. +// It has a MessageDescriptor and can construct a Message instance. +// +// • A MessageDescriptor describes an abstract protobuf message type. +// +// • A Message is a concrete message instance. Generated messages implement +// ProtoMessage, which can convert to/from a Message. +// +// +// ┌── TypeDescriptor() ──┐ ┌───── Descriptor() ─────┐ +// │ V │ V +// ╔═══════════════╗ ╔═════════════════════════╗ ╔═════════════════════╗ +// ║ ExtensionType ║ ║ ExtensionTypeDescriptor ║ ║ ExtensionDescriptor ║ +// ╚═══════════════╝ ╚═════════════════════════╝ ╚═════════════════════╝ +// Λ │ │ Λ │ Λ +// └─────── Type() ───────┘ │ └─── may implement ────┘ │ +// │ │ +// └────── implements ────────┘ +// +// • An ExtensionType describes a concrete Go implementation of an extension. +// It has an ExtensionTypeDescriptor and can convert to/from +// abstract Values and Go values. +// +// • An ExtensionTypeDescriptor is an ExtensionDescriptor +// which also has an ExtensionType. +// +// • An ExtensionDescriptor describes an abstract protobuf extension field and +// may not always be an ExtensionTypeDescriptor. +package protoreflect + +import ( + "fmt" + "regexp" + "strings" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/pragma" +) + +type doNotImplement pragma.DoNotImplement + +// ProtoMessage is the top-level interface that all proto messages implement. +// This is declared in the protoreflect package to avoid a cyclic dependency; +// use the proto.Message type instead, which aliases this type. +type ProtoMessage interface{ ProtoReflect() Message } + +// Syntax is the language version of the proto file. +type Syntax syntax + +type syntax int8 // keep exact type opaque as the int type may change + +const ( + Proto2 Syntax = 2 + Proto3 Syntax = 3 +) + +// IsValid reports whether the syntax is valid. +func (s Syntax) IsValid() bool { + switch s { + case Proto2, Proto3: + return true + default: + return false + } +} + +// String returns s as a proto source identifier (e.g., "proto2"). +func (s Syntax) String() string { + switch s { + case Proto2: + return "proto2" + case Proto3: + return "proto3" + default: + return fmt.Sprintf("", s) + } +} + +// GoString returns s as a Go source identifier (e.g., "Proto2"). +func (s Syntax) GoString() string { + switch s { + case Proto2: + return "Proto2" + case Proto3: + return "Proto3" + default: + return fmt.Sprintf("Syntax(%d)", s) + } +} + +// Cardinality determines whether a field is optional, required, or repeated. +type Cardinality cardinality + +type cardinality int8 // keep exact type opaque as the int type may change + +// Constants as defined by the google.protobuf.Cardinality enumeration. +const ( + Optional Cardinality = 1 // appears zero or one times + Required Cardinality = 2 // appears exactly one time; invalid with Proto3 + Repeated Cardinality = 3 // appears zero or more times +) + +// IsValid reports whether the cardinality is valid. +func (c Cardinality) IsValid() bool { + switch c { + case Optional, Required, Repeated: + return true + default: + return false + } +} + +// String returns c as a proto source identifier (e.g., "optional"). +func (c Cardinality) String() string { + switch c { + case Optional: + return "optional" + case Required: + return "required" + case Repeated: + return "repeated" + default: + return fmt.Sprintf("", c) + } +} + +// GoString returns c as a Go source identifier (e.g., "Optional"). +func (c Cardinality) GoString() string { + switch c { + case Optional: + return "Optional" + case Required: + return "Required" + case Repeated: + return "Repeated" + default: + return fmt.Sprintf("Cardinality(%d)", c) + } +} + +// Kind indicates the basic proto kind of a field. +type Kind kind + +type kind int8 // keep exact type opaque as the int type may change + +// Constants as defined by the google.protobuf.Field.Kind enumeration. +const ( + BoolKind Kind = 8 + EnumKind Kind = 14 + Int32Kind Kind = 5 + Sint32Kind Kind = 17 + Uint32Kind Kind = 13 + Int64Kind Kind = 3 + Sint64Kind Kind = 18 + Uint64Kind Kind = 4 + Sfixed32Kind Kind = 15 + Fixed32Kind Kind = 7 + FloatKind Kind = 2 + Sfixed64Kind Kind = 16 + Fixed64Kind Kind = 6 + DoubleKind Kind = 1 + StringKind Kind = 9 + BytesKind Kind = 12 + MessageKind Kind = 11 + GroupKind Kind = 10 +) + +// IsValid reports whether the kind is valid. +func (k Kind) IsValid() bool { + switch k { + case BoolKind, EnumKind, + Int32Kind, Sint32Kind, Uint32Kind, + Int64Kind, Sint64Kind, Uint64Kind, + Sfixed32Kind, Fixed32Kind, FloatKind, + Sfixed64Kind, Fixed64Kind, DoubleKind, + StringKind, BytesKind, MessageKind, GroupKind: + return true + default: + return false + } +} + +// String returns k as a proto source identifier (e.g., "bool"). +func (k Kind) String() string { + switch k { + case BoolKind: + return "bool" + case EnumKind: + return "enum" + case Int32Kind: + return "int32" + case Sint32Kind: + return "sint32" + case Uint32Kind: + return "uint32" + case Int64Kind: + return "int64" + case Sint64Kind: + return "sint64" + case Uint64Kind: + return "uint64" + case Sfixed32Kind: + return "sfixed32" + case Fixed32Kind: + return "fixed32" + case FloatKind: + return "float" + case Sfixed64Kind: + return "sfixed64" + case Fixed64Kind: + return "fixed64" + case DoubleKind: + return "double" + case StringKind: + return "string" + case BytesKind: + return "bytes" + case MessageKind: + return "message" + case GroupKind: + return "group" + default: + return fmt.Sprintf("", k) + } +} + +// GoString returns k as a Go source identifier (e.g., "BoolKind"). +func (k Kind) GoString() string { + switch k { + case BoolKind: + return "BoolKind" + case EnumKind: + return "EnumKind" + case Int32Kind: + return "Int32Kind" + case Sint32Kind: + return "Sint32Kind" + case Uint32Kind: + return "Uint32Kind" + case Int64Kind: + return "Int64Kind" + case Sint64Kind: + return "Sint64Kind" + case Uint64Kind: + return "Uint64Kind" + case Sfixed32Kind: + return "Sfixed32Kind" + case Fixed32Kind: + return "Fixed32Kind" + case FloatKind: + return "FloatKind" + case Sfixed64Kind: + return "Sfixed64Kind" + case Fixed64Kind: + return "Fixed64Kind" + case DoubleKind: + return "DoubleKind" + case StringKind: + return "StringKind" + case BytesKind: + return "BytesKind" + case MessageKind: + return "MessageKind" + case GroupKind: + return "GroupKind" + default: + return fmt.Sprintf("Kind(%d)", k) + } +} + +// FieldNumber is the field number in a message. +type FieldNumber = protowire.Number + +// FieldNumbers represent a list of field numbers. +type FieldNumbers interface { + // Len reports the number of fields in the list. + Len() int + // Get returns the ith field number. It panics if out of bounds. + Get(i int) FieldNumber + // Has reports whether n is within the list of fields. + Has(n FieldNumber) bool + + doNotImplement +} + +// FieldRanges represent a list of field number ranges. +type FieldRanges interface { + // Len reports the number of ranges in the list. + Len() int + // Get returns the ith range. It panics if out of bounds. + Get(i int) [2]FieldNumber // start inclusive; end exclusive + // Has reports whether n is within any of the ranges. + Has(n FieldNumber) bool + + doNotImplement +} + +// EnumNumber is the numeric value for an enum. +type EnumNumber int32 + +// EnumRanges represent a list of enum number ranges. +type EnumRanges interface { + // Len reports the number of ranges in the list. + Len() int + // Get returns the ith range. It panics if out of bounds. + Get(i int) [2]EnumNumber // start inclusive; end inclusive + // Has reports whether n is within any of the ranges. + Has(n EnumNumber) bool + + doNotImplement +} + +var ( + regexName = regexp.MustCompile(`^[_a-zA-Z][_a-zA-Z0-9]*$`) + regexFullName = regexp.MustCompile(`^[_a-zA-Z][_a-zA-Z0-9]*(\.[_a-zA-Z][_a-zA-Z0-9]*)*$`) +) + +// Name is the short name for a proto declaration. This is not the name +// as used in Go source code, which might not be identical to the proto name. +type Name string // e.g., "Kind" + +// IsValid reports whether n is a syntactically valid name. +// An empty name is invalid. +func (n Name) IsValid() bool { + return regexName.MatchString(string(n)) +} + +// Names represent a list of names. +type Names interface { + // Len reports the number of names in the list. + Len() int + // Get returns the ith name. It panics if out of bounds. + Get(i int) Name + // Has reports whether s matches any names in the list. + Has(s Name) bool + + doNotImplement +} + +// FullName is a qualified name that uniquely identifies a proto declaration. +// A qualified name is the concatenation of the proto package along with the +// fully-declared name (i.e., name of parent preceding the name of the child), +// with a '.' delimiter placed between each Name. +// +// This should not have any leading or trailing dots. +type FullName string // e.g., "google.protobuf.Field.Kind" + +// IsValid reports whether n is a syntactically valid full name. +// An empty full name is invalid. +func (n FullName) IsValid() bool { + return regexFullName.MatchString(string(n)) +} + +// Name returns the short name, which is the last identifier segment. +// A single segment FullName is the Name itself. +func (n FullName) Name() Name { + if i := strings.LastIndexByte(string(n), '.'); i >= 0 { + return Name(n[i+1:]) + } + return Name(n) +} + +// Parent returns the full name with the trailing identifier removed. +// A single segment FullName has no parent. +func (n FullName) Parent() FullName { + if i := strings.LastIndexByte(string(n), '.'); i >= 0 { + return n[:i] + } + return "" +} + +// Append returns the qualified name appended with the provided short name. +// +// Invariant: n == n.Parent().Append(n.Name()) // assuming n is valid +func (n FullName) Append(s Name) FullName { + if n == "" { + return FullName(s) + } + return n + "." + FullName(s) +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/source.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/source.go new file mode 100644 index 000000000..32ea3d98c --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/source.go @@ -0,0 +1,52 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protoreflect + +// SourceLocations is a list of source locations. +type SourceLocations interface { + // Len reports the number of source locations in the proto file. + Len() int + // Get returns the ith SourceLocation. It panics if out of bounds. + Get(int) SourceLocation + + doNotImplement + + // TODO: Add ByPath and ByDescriptor helper methods. +} + +// SourceLocation describes a source location and +// corresponds with the google.protobuf.SourceCodeInfo.Location message. +type SourceLocation struct { + // Path is the path to the declaration from the root file descriptor. + // The contents of this slice must not be mutated. + Path SourcePath + + // StartLine and StartColumn are the zero-indexed starting location + // in the source file for the declaration. + StartLine, StartColumn int + // EndLine and EndColumn are the zero-indexed ending location + // in the source file for the declaration. + // In the descriptor.proto, the end line may be omitted if it is identical + // to the start line. Here, it is always populated. + EndLine, EndColumn int + + // LeadingDetachedComments are the leading detached comments + // for the declaration. The contents of this slice must not be mutated. + LeadingDetachedComments []string + // LeadingComments is the leading attached comment for the declaration. + LeadingComments string + // TrailingComments is the trailing attached comment for the declaration. + TrailingComments string +} + +// SourcePath identifies part of a file descriptor for a source location. +// The SourcePath is a sequence of either field numbers or indexes into +// a repeated field that form a path starting from the root file descriptor. +// +// See google.protobuf.SourceCodeInfo.Location.path. +type SourcePath []int32 + +// TODO: Add SourcePath.String method to pretty-print the path. For example: +// ".message_type[6].nested_type[15].field[3]" diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/type.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/type.go new file mode 100644 index 000000000..5be14a725 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/type.go @@ -0,0 +1,631 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protoreflect + +// Descriptor provides a set of accessors that are common to every descriptor. +// Each descriptor type wraps the equivalent google.protobuf.XXXDescriptorProto, +// but provides efficient lookup and immutability. +// +// Each descriptor is comparable. Equality implies that the two types are +// exactly identical. However, it is possible for the same semantically +// identical proto type to be represented by multiple type descriptors. +// +// For example, suppose we have t1 and t2 which are both MessageDescriptors. +// If t1 == t2, then the types are definitely equal and all accessors return +// the same information. However, if t1 != t2, then it is still possible that +// they still represent the same proto type (e.g., t1.FullName == t2.FullName). +// This can occur if a descriptor type is created dynamically, or multiple +// versions of the same proto type are accidentally linked into the Go binary. +type Descriptor interface { + // ParentFile returns the parent file descriptor that this descriptor + // is declared within. The parent file for the file descriptor is itself. + // + // Support for this functionality is optional and may return nil. + ParentFile() FileDescriptor + + // Parent returns the parent containing this descriptor declaration. + // The following shows the mapping from child type to possible parent types: + // + // ╔═════════════════════╤═══════════════════════════════════╗ + // ║ Child type │ Possible parent types ║ + // ╠═════════════════════╪═══════════════════════════════════╣ + // ║ FileDescriptor │ nil ║ + // ║ MessageDescriptor │ FileDescriptor, MessageDescriptor ║ + // ║ FieldDescriptor │ FileDescriptor, MessageDescriptor ║ + // ║ OneofDescriptor │ MessageDescriptor ║ + // ║ EnumDescriptor │ FileDescriptor, MessageDescriptor ║ + // ║ EnumValueDescriptor │ EnumDescriptor ║ + // ║ ServiceDescriptor │ FileDescriptor ║ + // ║ MethodDescriptor │ ServiceDescriptor ║ + // ╚═════════════════════╧═══════════════════════════════════╝ + // + // Support for this functionality is optional and may return nil. + Parent() Descriptor + + // Index returns the index of this descriptor within its parent. + // It returns 0 if the descriptor does not have a parent or if the parent + // is unknown. + Index() int + + // Syntax is the protobuf syntax. + Syntax() Syntax // e.g., Proto2 or Proto3 + + // Name is the short name of the declaration (i.e., FullName.Name). + Name() Name // e.g., "Any" + + // FullName is the fully-qualified name of the declaration. + // + // The FullName is a concatenation of the full name of the type that this + // type is declared within and the declaration name. For example, + // field "foo_field" in message "proto.package.MyMessage" is + // uniquely identified as "proto.package.MyMessage.foo_field". + // Enum values are an exception to the rule (see EnumValueDescriptor). + FullName() FullName // e.g., "google.protobuf.Any" + + // IsPlaceholder reports whether type information is missing since a + // dependency is not resolved, in which case only name information is known. + // + // Placeholder types may only be returned by the following accessors + // as a result of unresolved dependencies or weak imports: + // + // ╔═══════════════════════════════════╤═════════════════════╗ + // ║ Accessor │ Descriptor ║ + // ╠═══════════════════════════════════╪═════════════════════╣ + // ║ FileImports.FileDescriptor │ FileDescriptor ║ + // ║ FieldDescriptor.Enum │ EnumDescriptor ║ + // ║ FieldDescriptor.Message │ MessageDescriptor ║ + // ║ FieldDescriptor.DefaultEnumValue │ EnumValueDescriptor ║ + // ║ FieldDescriptor.ContainingMessage │ MessageDescriptor ║ + // ║ MethodDescriptor.Input │ MessageDescriptor ║ + // ║ MethodDescriptor.Output │ MessageDescriptor ║ + // ╚═══════════════════════════════════╧═════════════════════╝ + // + // If true, only Name and FullName are valid. + // For FileDescriptor, the Path is also valid. + IsPlaceholder() bool + + // Options returns the descriptor options. The caller must not modify + // the returned value. + // + // To avoid a dependency cycle, this function returns a proto.Message value. + // The proto message type returned for each descriptor type is as follows: + // ╔═════════════════════╤══════════════════════════════════════════╗ + // ║ Go type │ Protobuf message type ║ + // ╠═════════════════════╪══════════════════════════════════════════╣ + // ║ FileDescriptor │ google.protobuf.FileOptions ║ + // ║ EnumDescriptor │ google.protobuf.EnumOptions ║ + // ║ EnumValueDescriptor │ google.protobuf.EnumValueOptions ║ + // ║ MessageDescriptor │ google.protobuf.MessageOptions ║ + // ║ FieldDescriptor │ google.protobuf.FieldOptions ║ + // ║ OneofDescriptor │ google.protobuf.OneofOptions ║ + // ║ ServiceDescriptor │ google.protobuf.ServiceOptions ║ + // ║ MethodDescriptor │ google.protobuf.MethodOptions ║ + // ╚═════════════════════╧══════════════════════════════════════════╝ + // + // This method returns a typed nil-pointer if no options are present. + // The caller must import the descriptorpb package to use this. + Options() ProtoMessage + + doNotImplement +} + +// FileDescriptor describes the types in a complete proto file and +// corresponds with the google.protobuf.FileDescriptorProto message. +// +// Top-level declarations: +// EnumDescriptor, MessageDescriptor, FieldDescriptor, and/or ServiceDescriptor. +type FileDescriptor interface { + Descriptor // Descriptor.FullName is identical to Package + + // Path returns the file name, relative to the source tree root. + Path() string // e.g., "path/to/file.proto" + // Package returns the protobuf package namespace. + Package() FullName // e.g., "google.protobuf" + + // Imports is a list of imported proto files. + Imports() FileImports + + // Enums is a list of the top-level enum declarations. + Enums() EnumDescriptors + // Messages is a list of the top-level message declarations. + Messages() MessageDescriptors + // Extensions is a list of the top-level extension declarations. + Extensions() ExtensionDescriptors + // Services is a list of the top-level service declarations. + Services() ServiceDescriptors + + // SourceLocations is a list of source locations. + SourceLocations() SourceLocations + + isFileDescriptor +} +type isFileDescriptor interface{ ProtoType(FileDescriptor) } + +// FileImports is a list of file imports. +type FileImports interface { + // Len reports the number of files imported by this proto file. + Len() int + // Get returns the ith FileImport. It panics if out of bounds. + Get(i int) FileImport + + doNotImplement +} + +// FileImport is the declaration for a proto file import. +type FileImport struct { + // FileDescriptor is the file type for the given import. + // It is a placeholder descriptor if IsWeak is set or if a dependency has + // not been regenerated to implement the new reflection APIs. + FileDescriptor + + // IsPublic reports whether this is a public import, which causes this file + // to alias declarations within the imported file. The intended use cases + // for this feature is the ability to move proto files without breaking + // existing dependencies. + // + // The current file and the imported file must be within proto package. + IsPublic bool + + // IsWeak reports whether this is a weak import, which does not impose + // a direct dependency on the target file. + // + // Weak imports are a legacy proto1 feature. Equivalent behavior is + // achieved using proto2 extension fields or proto3 Any messages. + IsWeak bool +} + +// MessageDescriptor describes a message and +// corresponds with the google.protobuf.DescriptorProto message. +// +// Nested declarations: +// FieldDescriptor, OneofDescriptor, FieldDescriptor, EnumDescriptor, +// and/or MessageDescriptor. +type MessageDescriptor interface { + Descriptor + + // IsMapEntry indicates that this is an auto-generated message type to + // represent the entry type for a map field. + // + // Map entry messages have only two fields: + // • a "key" field with a field number of 1 + // • a "value" field with a field number of 2 + // The key and value types are determined by these two fields. + // + // If IsMapEntry is true, it implies that FieldDescriptor.IsMap is true + // for some field with this message type. + IsMapEntry() bool + + // Fields is a list of nested field declarations. + Fields() FieldDescriptors + // Oneofs is a list of nested oneof declarations. + Oneofs() OneofDescriptors + + // ReservedNames is a list of reserved field names. + ReservedNames() Names + // ReservedRanges is a list of reserved ranges of field numbers. + ReservedRanges() FieldRanges + // RequiredNumbers is a list of required field numbers. + // In Proto3, it is always an empty list. + RequiredNumbers() FieldNumbers + // ExtensionRanges is the field ranges used for extension fields. + // In Proto3, it is always an empty ranges. + ExtensionRanges() FieldRanges + // ExtensionRangeOptions returns the ith extension range options. + // + // To avoid a dependency cycle, this method returns a proto.Message value, + // which always contains a google.protobuf.ExtensionRangeOptions message. + // This method returns a typed nil-pointer if no options are present. + // The caller must import the descriptorpb package to use this. + ExtensionRangeOptions(i int) ProtoMessage + + // Enums is a list of nested enum declarations. + Enums() EnumDescriptors + // Messages is a list of nested message declarations. + Messages() MessageDescriptors + // Extensions is a list of nested extension declarations. + Extensions() ExtensionDescriptors + + isMessageDescriptor +} +type isMessageDescriptor interface{ ProtoType(MessageDescriptor) } + +// MessageType encapsulates a MessageDescriptor with a concrete Go implementation. +type MessageType interface { + // New returns a newly allocated empty message. + New() Message + + // Zero returns an empty, read-only message. + Zero() Message + + // Descriptor returns the message descriptor. + // + // Invariant: t.Descriptor() == t.New().Descriptor() + Descriptor() MessageDescriptor +} + +// MessageDescriptors is a list of message declarations. +type MessageDescriptors interface { + // Len reports the number of messages. + Len() int + // Get returns the ith MessageDescriptor. It panics if out of bounds. + Get(i int) MessageDescriptor + // ByName returns the MessageDescriptor for a message named s. + // It returns nil if not found. + ByName(s Name) MessageDescriptor + + doNotImplement +} + +// FieldDescriptor describes a field within a message and +// corresponds with the google.protobuf.FieldDescriptorProto message. +// +// It is used for both normal fields defined within the parent message +// (e.g., MessageDescriptor.Fields) and fields that extend some remote message +// (e.g., FileDescriptor.Extensions or MessageDescriptor.Extensions). +type FieldDescriptor interface { + Descriptor + + // Number reports the unique number for this field. + Number() FieldNumber + // Cardinality reports the cardinality for this field. + Cardinality() Cardinality + // Kind reports the basic kind for this field. + Kind() Kind + + // HasJSONName reports whether this field has an explicitly set JSON name. + HasJSONName() bool + + // JSONName reports the name used for JSON serialization. + // It is usually the camel-cased form of the field name. + JSONName() string + + // HasPresence reports whether the field distinguishes between unpopulated + // and default values. + HasPresence() bool + + // IsExtension reports whether this is an extension field. If false, + // then Parent and ContainingMessage refer to the same message. + // Otherwise, ContainingMessage and Parent likely differ. + IsExtension() bool + + // HasOptionalKeyword reports whether the "optional" keyword was explicitly + // specified in the source .proto file. + HasOptionalKeyword() bool + + // IsWeak reports whether this is a weak field, which does not impose a + // direct dependency on the target type. + // If true, then Message returns a placeholder type. + IsWeak() bool + + // IsPacked reports whether repeated primitive numeric kinds should be + // serialized using a packed encoding. + // If true, then it implies Cardinality is Repeated. + IsPacked() bool + + // IsList reports whether this field represents a list, + // where the value type for the associated field is a List. + // It is equivalent to checking whether Cardinality is Repeated and + // that IsMap reports false. + IsList() bool + + // IsMap reports whether this field represents a map, + // where the value type for the associated field is a Map. + // It is equivalent to checking whether Cardinality is Repeated, + // that the Kind is MessageKind, and that Message.IsMapEntry reports true. + IsMap() bool + + // MapKey returns the field descriptor for the key in the map entry. + // It returns nil if IsMap reports false. + MapKey() FieldDescriptor + + // MapValue returns the field descriptor for the value in the map entry. + // It returns nil if IsMap reports false. + MapValue() FieldDescriptor + + // HasDefault reports whether this field has a default value. + HasDefault() bool + + // Default returns the default value for scalar fields. + // For proto2, it is the default value as specified in the proto file, + // or the zero value if unspecified. + // For proto3, it is always the zero value of the scalar. + // The Value type is determined by the Kind. + Default() Value + + // DefaultEnumValue returns the enum value descriptor for the default value + // of an enum field, and is nil for any other kind of field. + DefaultEnumValue() EnumValueDescriptor + + // ContainingOneof is the containing oneof that this field belongs to, + // and is nil if this field is not part of a oneof. + ContainingOneof() OneofDescriptor + + // ContainingMessage is the containing message that this field belongs to. + // For extension fields, this may not necessarily be the parent message + // that the field is declared within. + ContainingMessage() MessageDescriptor + + // Enum is the enum descriptor if Kind is EnumKind. + // It returns nil for any other Kind. + Enum() EnumDescriptor + + // Message is the message descriptor if Kind is + // MessageKind or GroupKind. It returns nil for any other Kind. + Message() MessageDescriptor + + isFieldDescriptor +} +type isFieldDescriptor interface{ ProtoType(FieldDescriptor) } + +// FieldDescriptors is a list of field declarations. +type FieldDescriptors interface { + // Len reports the number of fields. + Len() int + // Get returns the ith FieldDescriptor. It panics if out of bounds. + Get(i int) FieldDescriptor + // ByName returns the FieldDescriptor for a field named s. + // It returns nil if not found. + ByName(s Name) FieldDescriptor + // ByJSONName returns the FieldDescriptor for a field with s as the JSON name. + // It returns nil if not found. + ByJSONName(s string) FieldDescriptor + // ByNumber returns the FieldDescriptor for a field numbered n. + // It returns nil if not found. + ByNumber(n FieldNumber) FieldDescriptor + + doNotImplement +} + +// OneofDescriptor describes a oneof field set within a given message and +// corresponds with the google.protobuf.OneofDescriptorProto message. +type OneofDescriptor interface { + Descriptor + + // IsSynthetic reports whether this is a synthetic oneof created to support + // proto3 optional semantics. If true, Fields contains exactly one field + // with HasOptionalKeyword specified. + IsSynthetic() bool + + // Fields is a list of fields belonging to this oneof. + Fields() FieldDescriptors + + isOneofDescriptor +} +type isOneofDescriptor interface{ ProtoType(OneofDescriptor) } + +// OneofDescriptors is a list of oneof declarations. +type OneofDescriptors interface { + // Len reports the number of oneof fields. + Len() int + // Get returns the ith OneofDescriptor. It panics if out of bounds. + Get(i int) OneofDescriptor + // ByName returns the OneofDescriptor for a oneof named s. + // It returns nil if not found. + ByName(s Name) OneofDescriptor + + doNotImplement +} + +// ExtensionDescriptor is an alias of FieldDescriptor for documentation. +type ExtensionDescriptor = FieldDescriptor + +// ExtensionTypeDescriptor is an ExtensionDescriptor with an associated ExtensionType. +type ExtensionTypeDescriptor interface { + ExtensionDescriptor + + // Type returns the associated ExtensionType. + Type() ExtensionType + + // Descriptor returns the plain ExtensionDescriptor without the + // associated ExtensionType. + Descriptor() ExtensionDescriptor +} + +// ExtensionDescriptors is a list of field declarations. +type ExtensionDescriptors interface { + // Len reports the number of fields. + Len() int + // Get returns the ith ExtensionDescriptor. It panics if out of bounds. + Get(i int) ExtensionDescriptor + // ByName returns the ExtensionDescriptor for a field named s. + // It returns nil if not found. + ByName(s Name) ExtensionDescriptor + + doNotImplement +} + +// ExtensionType encapsulates an ExtensionDescriptor with a concrete +// Go implementation. The nested field descriptor must be for a extension field. +// +// While a normal field is a member of the parent message that it is declared +// within (see Descriptor.Parent), an extension field is a member of some other +// target message (see ExtensionDescriptor.Extendee) and may have no +// relationship with the parent. However, the full name of an extension field is +// relative to the parent that it is declared within. +// +// For example: +// syntax = "proto2"; +// package example; +// message FooMessage { +// extensions 100 to max; +// } +// message BarMessage { +// extends FooMessage { optional BarMessage bar_field = 100; } +// } +// +// Field "bar_field" is an extension of FooMessage, but its full name is +// "example.BarMessage.bar_field" instead of "example.FooMessage.bar_field". +type ExtensionType interface { + // New returns a new value for the field. + // For scalars, this returns the default value in native Go form. + New() Value + + // Zero returns a new value for the field. + // For scalars, this returns the default value in native Go form. + // For composite types, this returns an empty, read-only message, list, or map. + Zero() Value + + // TypeDescriptor returns the extension type descriptor. + TypeDescriptor() ExtensionTypeDescriptor + + // ValueOf wraps the input and returns it as a Value. + // ValueOf panics if the input value is invalid or not the appropriate type. + // + // ValueOf is more extensive than protoreflect.ValueOf for a given field's + // value as it has more type information available. + ValueOf(interface{}) Value + + // InterfaceOf completely unwraps the Value to the underlying Go type. + // InterfaceOf panics if the input is nil or does not represent the + // appropriate underlying Go type. For composite types, it panics if the + // value is not mutable. + // + // InterfaceOf is able to unwrap the Value further than Value.Interface + // as it has more type information available. + InterfaceOf(Value) interface{} + + // IsValidValue reports whether the Value is valid to assign to the field. + IsValidValue(Value) bool + + // IsValidInterface reports whether the input is valid to assign to the field. + IsValidInterface(interface{}) bool +} + +// EnumDescriptor describes an enum and +// corresponds with the google.protobuf.EnumDescriptorProto message. +// +// Nested declarations: +// EnumValueDescriptor. +type EnumDescriptor interface { + Descriptor + + // Values is a list of nested enum value declarations. + Values() EnumValueDescriptors + + // ReservedNames is a list of reserved enum names. + ReservedNames() Names + // ReservedRanges is a list of reserved ranges of enum numbers. + ReservedRanges() EnumRanges + + isEnumDescriptor +} +type isEnumDescriptor interface{ ProtoType(EnumDescriptor) } + +// EnumType encapsulates an EnumDescriptor with a concrete Go implementation. +type EnumType interface { + // New returns an instance of this enum type with its value set to n. + New(n EnumNumber) Enum + + // Descriptor returns the enum descriptor. + // + // Invariant: t.Descriptor() == t.New(0).Descriptor() + Descriptor() EnumDescriptor +} + +// EnumDescriptors is a list of enum declarations. +type EnumDescriptors interface { + // Len reports the number of enum types. + Len() int + // Get returns the ith EnumDescriptor. It panics if out of bounds. + Get(i int) EnumDescriptor + // ByName returns the EnumDescriptor for an enum named s. + // It returns nil if not found. + ByName(s Name) EnumDescriptor + + doNotImplement +} + +// EnumValueDescriptor describes an enum value and +// corresponds with the google.protobuf.EnumValueDescriptorProto message. +// +// All other proto declarations are in the namespace of the parent. +// However, enum values do not follow this rule and are within the namespace +// of the parent's parent (i.e., they are a sibling of the containing enum). +// Thus, a value named "FOO_VALUE" declared within an enum uniquely identified +// as "proto.package.MyEnum" has a full name of "proto.package.FOO_VALUE". +type EnumValueDescriptor interface { + Descriptor + + // Number returns the enum value as an integer. + Number() EnumNumber + + isEnumValueDescriptor +} +type isEnumValueDescriptor interface{ ProtoType(EnumValueDescriptor) } + +// EnumValueDescriptors is a list of enum value declarations. +type EnumValueDescriptors interface { + // Len reports the number of enum values. + Len() int + // Get returns the ith EnumValueDescriptor. It panics if out of bounds. + Get(i int) EnumValueDescriptor + // ByName returns the EnumValueDescriptor for the enum value named s. + // It returns nil if not found. + ByName(s Name) EnumValueDescriptor + // ByNumber returns the EnumValueDescriptor for the enum value numbered n. + // If multiple have the same number, the first one defined is returned + // It returns nil if not found. + ByNumber(n EnumNumber) EnumValueDescriptor + + doNotImplement +} + +// ServiceDescriptor describes a service and +// corresponds with the google.protobuf.ServiceDescriptorProto message. +// +// Nested declarations: MethodDescriptor. +type ServiceDescriptor interface { + Descriptor + + // Methods is a list of nested message declarations. + Methods() MethodDescriptors + + isServiceDescriptor +} +type isServiceDescriptor interface{ ProtoType(ServiceDescriptor) } + +// ServiceDescriptors is a list of service declarations. +type ServiceDescriptors interface { + // Len reports the number of services. + Len() int + // Get returns the ith ServiceDescriptor. It panics if out of bounds. + Get(i int) ServiceDescriptor + // ByName returns the ServiceDescriptor for a service named s. + // It returns nil if not found. + ByName(s Name) ServiceDescriptor + + doNotImplement +} + +// MethodDescriptor describes a method and +// corresponds with the google.protobuf.MethodDescriptorProto message. +type MethodDescriptor interface { + Descriptor + + // Input is the input message descriptor. + Input() MessageDescriptor + // Output is the output message descriptor. + Output() MessageDescriptor + // IsStreamingClient reports whether the client streams multiple messages. + IsStreamingClient() bool + // IsStreamingServer reports whether the server streams multiple messages. + IsStreamingServer() bool + + isMethodDescriptor +} +type isMethodDescriptor interface{ ProtoType(MethodDescriptor) } + +// MethodDescriptors is a list of method declarations. +type MethodDescriptors interface { + // Len reports the number of methods. + Len() int + // Get returns the ith MethodDescriptor. It panics if out of bounds. + Get(i int) MethodDescriptor + // ByName returns the MethodDescriptor for a service method named s. + // It returns nil if not found. + ByName(s Name) MethodDescriptor + + doNotImplement +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/value.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/value.go new file mode 100644 index 000000000..f31981077 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/value.go @@ -0,0 +1,285 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protoreflect + +import "google.golang.org/protobuf/encoding/protowire" + +// Enum is a reflection interface for a concrete enum value, +// which provides type information and a getter for the enum number. +// Enum does not provide a mutable API since enums are commonly backed by +// Go constants, which are not addressable. +type Enum interface { + // Descriptor returns enum descriptor, which contains only the protobuf + // type information for the enum. + Descriptor() EnumDescriptor + + // Type returns the enum type, which encapsulates both Go and protobuf + // type information. If the Go type information is not needed, + // it is recommended that the enum descriptor be used instead. + Type() EnumType + + // Number returns the enum value as an integer. + Number() EnumNumber +} + +// Message is a reflective interface for a concrete message value, +// encapsulating both type and value information for the message. +// +// Accessor/mutators for individual fields are keyed by FieldDescriptor. +// For non-extension fields, the descriptor must exactly match the +// field known by the parent message. +// For extension fields, the descriptor must implement ExtensionTypeDescriptor, +// extend the parent message (i.e., have the same message FullName), and +// be within the parent's extension range. +// +// Each field Value can be a scalar or a composite type (Message, List, or Map). +// See Value for the Go types associated with a FieldDescriptor. +// Providing a Value that is invalid or of an incorrect type panics. +type Message interface { + // Descriptor returns message descriptor, which contains only the protobuf + // type information for the message. + Descriptor() MessageDescriptor + + // Type returns the message type, which encapsulates both Go and protobuf + // type information. If the Go type information is not needed, + // it is recommended that the message descriptor be used instead. + Type() MessageType + + // New returns a newly allocated and mutable empty message. + New() Message + + // Interface unwraps the message reflection interface and + // returns the underlying ProtoMessage interface. + Interface() ProtoMessage + + // Range iterates over every populated field in an undefined order, + // calling f for each field descriptor and value encountered. + // Range returns immediately if f returns false. + // While iterating, mutating operations may only be performed + // on the current field descriptor. + Range(f func(FieldDescriptor, Value) bool) + + // Has reports whether a field is populated. + // + // Some fields have the property of nullability where it is possible to + // distinguish between the default value of a field and whether the field + // was explicitly populated with the default value. Singular message fields, + // member fields of a oneof, and proto2 scalar fields are nullable. Such + // fields are populated only if explicitly set. + // + // In other cases (aside from the nullable cases above), + // a proto3 scalar field is populated if it contains a non-zero value, and + // a repeated field is populated if it is non-empty. + Has(FieldDescriptor) bool + + // Clear clears the field such that a subsequent Has call reports false. + // + // Clearing an extension field clears both the extension type and value + // associated with the given field number. + // + // Clear is a mutating operation and unsafe for concurrent use. + Clear(FieldDescriptor) + + // Get retrieves the value for a field. + // + // For unpopulated scalars, it returns the default value, where + // the default value of a bytes scalar is guaranteed to be a copy. + // For unpopulated composite types, it returns an empty, read-only view + // of the value; to obtain a mutable reference, use Mutable. + Get(FieldDescriptor) Value + + // Set stores the value for a field. + // + // For a field belonging to a oneof, it implicitly clears any other field + // that may be currently set within the same oneof. + // For extension fields, it implicitly stores the provided ExtensionType. + // When setting a composite type, it is unspecified whether the stored value + // aliases the source's memory in any way. If the composite value is an + // empty, read-only value, then it panics. + // + // Set is a mutating operation and unsafe for concurrent use. + Set(FieldDescriptor, Value) + + // Mutable returns a mutable reference to a composite type. + // + // If the field is unpopulated, it may allocate a composite value. + // For a field belonging to a oneof, it implicitly clears any other field + // that may be currently set within the same oneof. + // For extension fields, it implicitly stores the provided ExtensionType + // if not already stored. + // It panics if the field does not contain a composite type. + // + // Mutable is a mutating operation and unsafe for concurrent use. + Mutable(FieldDescriptor) Value + + // NewField returns a new value that is assignable to the field + // for the given descriptor. For scalars, this returns the default value. + // For lists, maps, and messages, this returns a new, empty, mutable value. + NewField(FieldDescriptor) Value + + // WhichOneof reports which field within the oneof is populated, + // returning nil if none are populated. + // It panics if the oneof descriptor does not belong to this message. + WhichOneof(OneofDescriptor) FieldDescriptor + + // GetUnknown retrieves the entire list of unknown fields. + // The caller may only mutate the contents of the RawFields + // if the mutated bytes are stored back into the message with SetUnknown. + GetUnknown() RawFields + + // SetUnknown stores an entire list of unknown fields. + // The raw fields must be syntactically valid according to the wire format. + // An implementation may panic if this is not the case. + // Once stored, the caller must not mutate the content of the RawFields. + // An empty RawFields may be passed to clear the fields. + // + // SetUnknown is a mutating operation and unsafe for concurrent use. + SetUnknown(RawFields) + + // IsValid reports whether the message is valid. + // + // An invalid message is an empty, read-only value. + // + // An invalid message often corresponds to a nil pointer of the concrete + // message type, but the details are implementation dependent. + // Validity is not part of the protobuf data model, and may not + // be preserved in marshaling or other operations. + IsValid() bool + + // ProtoMethods returns optional fast-path implementions of various operations. + // This method may return nil. + // + // The returned methods type is identical to + // "google.golang.org/protobuf/runtime/protoiface".Methods. + // Consult the protoiface package documentation for details. + ProtoMethods() *methods +} + +// RawFields is the raw bytes for an ordered sequence of fields. +// Each field contains both the tag (representing field number and wire type), +// and also the wire data itself. +type RawFields []byte + +// IsValid reports whether b is syntactically correct wire format. +func (b RawFields) IsValid() bool { + for len(b) > 0 { + _, _, n := protowire.ConsumeField(b) + if n < 0 { + return false + } + b = b[n:] + } + return true +} + +// List is a zero-indexed, ordered list. +// The element Value type is determined by FieldDescriptor.Kind. +// Providing a Value that is invalid or of an incorrect type panics. +type List interface { + // Len reports the number of entries in the List. + // Get, Set, and Truncate panic with out of bound indexes. + Len() int + + // Get retrieves the value at the given index. + // It never returns an invalid value. + Get(int) Value + + // Set stores a value for the given index. + // When setting a composite type, it is unspecified whether the set + // value aliases the source's memory in any way. + // + // Set is a mutating operation and unsafe for concurrent use. + Set(int, Value) + + // Append appends the provided value to the end of the list. + // When appending a composite type, it is unspecified whether the appended + // value aliases the source's memory in any way. + // + // Append is a mutating operation and unsafe for concurrent use. + Append(Value) + + // AppendMutable appends a new, empty, mutable message value to the end + // of the list and returns it. + // It panics if the list does not contain a message type. + AppendMutable() Value + + // Truncate truncates the list to a smaller length. + // + // Truncate is a mutating operation and unsafe for concurrent use. + Truncate(int) + + // NewElement returns a new value for a list element. + // For enums, this returns the first enum value. + // For other scalars, this returns the zero value. + // For messages, this returns a new, empty, mutable value. + NewElement() Value + + // IsValid reports whether the list is valid. + // + // An invalid list is an empty, read-only value. + // + // Validity is not part of the protobuf data model, and may not + // be preserved in marshaling or other operations. + IsValid() bool +} + +// Map is an unordered, associative map. +// The entry MapKey type is determined by FieldDescriptor.MapKey.Kind. +// The entry Value type is determined by FieldDescriptor.MapValue.Kind. +// Providing a MapKey or Value that is invalid or of an incorrect type panics. +type Map interface { + // Len reports the number of elements in the map. + Len() int + + // Range iterates over every map entry in an undefined order, + // calling f for each key and value encountered. + // Range calls f Len times unless f returns false, which stops iteration. + // While iterating, mutating operations may only be performed + // on the current map key. + Range(f func(MapKey, Value) bool) + + // Has reports whether an entry with the given key is in the map. + Has(MapKey) bool + + // Clear clears the entry associated with they given key. + // The operation does nothing if there is no entry associated with the key. + // + // Clear is a mutating operation and unsafe for concurrent use. + Clear(MapKey) + + // Get retrieves the value for an entry with the given key. + // It returns an invalid value for non-existent entries. + Get(MapKey) Value + + // Set stores the value for an entry with the given key. + // It panics when given a key or value that is invalid or the wrong type. + // When setting a composite type, it is unspecified whether the set + // value aliases the source's memory in any way. + // + // Set is a mutating operation and unsafe for concurrent use. + Set(MapKey, Value) + + // Mutable retrieves a mutable reference to the entry for the given key. + // If no entry exists for the key, it creates a new, empty, mutable value + // and stores it as the entry for the key. + // It panics if the map value is not a message. + Mutable(MapKey) Value + + // NewValue returns a new value assignable as a map value. + // For enums, this returns the first enum value. + // For other scalars, this returns the zero value. + // For messages, this returns a new, empty, mutable value. + NewValue() Value + + // IsValid reports whether the map is valid. + // + // An invalid map is an empty, read-only value. + // + // An invalid message often corresponds to a nil Go map value, + // but the details are implementation dependent. + // Validity is not part of the protobuf data model, and may not + // be preserved in marshaling or other operations. + IsValid() bool +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_pure.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_pure.go new file mode 100644 index 000000000..918e685e1 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_pure.go @@ -0,0 +1,59 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build purego appengine + +package protoreflect + +import "google.golang.org/protobuf/internal/pragma" + +type valueType int + +const ( + nilType valueType = iota + boolType + int32Type + int64Type + uint32Type + uint64Type + float32Type + float64Type + stringType + bytesType + enumType + ifaceType +) + +// value is a union where only one type can be represented at a time. +// This uses a distinct field for each type. This is type safe in Go, but +// occupies more memory than necessary (72B). +type value struct { + pragma.DoNotCompare // 0B + + typ valueType // 8B + num uint64 // 8B + str string // 16B + bin []byte // 24B + iface interface{} // 16B +} + +func valueOfString(v string) Value { + return Value{typ: stringType, str: v} +} +func valueOfBytes(v []byte) Value { + return Value{typ: bytesType, bin: v} +} +func valueOfIface(v interface{}) Value { + return Value{typ: ifaceType, iface: v} +} + +func (v Value) getString() string { + return v.str +} +func (v Value) getBytes() []byte { + return v.bin +} +func (v Value) getIface() interface{} { + return v.iface +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go new file mode 100644 index 000000000..5a3414724 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go @@ -0,0 +1,411 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protoreflect + +import ( + "fmt" + "math" +) + +// Value is a union where only one Go type may be set at a time. +// The Value is used to represent all possible values a field may take. +// The following shows which Go type is used to represent each proto Kind: +// +// ╔════════════╤═════════════════════════════════════╗ +// ║ Go type │ Protobuf kind ║ +// ╠════════════╪═════════════════════════════════════╣ +// ║ bool │ BoolKind ║ +// ║ int32 │ Int32Kind, Sint32Kind, Sfixed32Kind ║ +// ║ int64 │ Int64Kind, Sint64Kind, Sfixed64Kind ║ +// ║ uint32 │ Uint32Kind, Fixed32Kind ║ +// ║ uint64 │ Uint64Kind, Fixed64Kind ║ +// ║ float32 │ FloatKind ║ +// ║ float64 │ DoubleKind ║ +// ║ string │ StringKind ║ +// ║ []byte │ BytesKind ║ +// ║ EnumNumber │ EnumKind ║ +// ║ Message │ MessageKind, GroupKind ║ +// ╚════════════╧═════════════════════════════════════╝ +// +// Multiple protobuf Kinds may be represented by a single Go type if the type +// can losslessly represent the information for the proto kind. For example, +// Int64Kind, Sint64Kind, and Sfixed64Kind are all represented by int64, +// but use different integer encoding methods. +// +// The List or Map types are used if the field cardinality is repeated. +// A field is a List if FieldDescriptor.IsList reports true. +// A field is a Map if FieldDescriptor.IsMap reports true. +// +// Converting to/from a Value and a concrete Go value panics on type mismatch. +// For example, ValueOf("hello").Int() panics because this attempts to +// retrieve an int64 from a string. +type Value value + +// The protoreflect API uses a custom Value union type instead of interface{} +// to keep the future open for performance optimizations. Using an interface{} +// always incurs an allocation for primitives (e.g., int64) since it needs to +// be boxed on the heap (as interfaces can only contain pointers natively). +// Instead, we represent the Value union as a flat struct that internally keeps +// track of which type is set. Using unsafe, the Value union can be reduced +// down to 24B, which is identical in size to a slice. +// +// The latest compiler (Go1.11) currently suffers from some limitations: +// • With inlining, the compiler should be able to statically prove that +// only one of these switch cases are taken and inline one specific case. +// See https://golang.org/issue/22310. + +// ValueOf returns a Value initialized with the concrete value stored in v. +// This panics if the type does not match one of the allowed types in the +// Value union. +func ValueOf(v interface{}) Value { + switch v := v.(type) { + case nil: + return Value{} + case bool: + return ValueOfBool(v) + case int32: + return ValueOfInt32(v) + case int64: + return ValueOfInt64(v) + case uint32: + return ValueOfUint32(v) + case uint64: + return ValueOfUint64(v) + case float32: + return ValueOfFloat32(v) + case float64: + return ValueOfFloat64(v) + case string: + return ValueOfString(v) + case []byte: + return ValueOfBytes(v) + case EnumNumber: + return ValueOfEnum(v) + case Message, List, Map: + return valueOfIface(v) + case ProtoMessage: + panic(fmt.Sprintf("invalid proto.Message(%T) type, expected a protoreflect.Message type", v)) + default: + panic(fmt.Sprintf("invalid type: %T", v)) + } +} + +// ValueOfBool returns a new boolean value. +func ValueOfBool(v bool) Value { + if v { + return Value{typ: boolType, num: 1} + } else { + return Value{typ: boolType, num: 0} + } +} + +// ValueOfInt32 returns a new int32 value. +func ValueOfInt32(v int32) Value { + return Value{typ: int32Type, num: uint64(v)} +} + +// ValueOfInt64 returns a new int64 value. +func ValueOfInt64(v int64) Value { + return Value{typ: int64Type, num: uint64(v)} +} + +// ValueOfUint32 returns a new uint32 value. +func ValueOfUint32(v uint32) Value { + return Value{typ: uint32Type, num: uint64(v)} +} + +// ValueOfUint64 returns a new uint64 value. +func ValueOfUint64(v uint64) Value { + return Value{typ: uint64Type, num: v} +} + +// ValueOfFloat32 returns a new float32 value. +func ValueOfFloat32(v float32) Value { + return Value{typ: float32Type, num: uint64(math.Float64bits(float64(v)))} +} + +// ValueOfFloat64 returns a new float64 value. +func ValueOfFloat64(v float64) Value { + return Value{typ: float64Type, num: uint64(math.Float64bits(float64(v)))} +} + +// ValueOfString returns a new string value. +func ValueOfString(v string) Value { + return valueOfString(v) +} + +// ValueOfBytes returns a new bytes value. +func ValueOfBytes(v []byte) Value { + return valueOfBytes(v[:len(v):len(v)]) +} + +// ValueOfEnum returns a new enum value. +func ValueOfEnum(v EnumNumber) Value { + return Value{typ: enumType, num: uint64(v)} +} + +// ValueOfMessage returns a new Message value. +func ValueOfMessage(v Message) Value { + return valueOfIface(v) +} + +// ValueOfList returns a new List value. +func ValueOfList(v List) Value { + return valueOfIface(v) +} + +// ValueOfMap returns a new Map value. +func ValueOfMap(v Map) Value { + return valueOfIface(v) +} + +// IsValid reports whether v is populated with a value. +func (v Value) IsValid() bool { + return v.typ != nilType +} + +// Interface returns v as an interface{}. +// +// Invariant: v == ValueOf(v).Interface() +func (v Value) Interface() interface{} { + switch v.typ { + case nilType: + return nil + case boolType: + return v.Bool() + case int32Type: + return int32(v.Int()) + case int64Type: + return int64(v.Int()) + case uint32Type: + return uint32(v.Uint()) + case uint64Type: + return uint64(v.Uint()) + case float32Type: + return float32(v.Float()) + case float64Type: + return float64(v.Float()) + case stringType: + return v.String() + case bytesType: + return v.Bytes() + case enumType: + return v.Enum() + default: + return v.getIface() + } +} + +func (v Value) typeName() string { + switch v.typ { + case nilType: + return "nil" + case boolType: + return "bool" + case int32Type: + return "int32" + case int64Type: + return "int64" + case uint32Type: + return "uint32" + case uint64Type: + return "uint64" + case float32Type: + return "float32" + case float64Type: + return "float64" + case stringType: + return "string" + case bytesType: + return "bytes" + case enumType: + return "enum" + default: + switch v := v.getIface().(type) { + case Message: + return "message" + case List: + return "list" + case Map: + return "map" + default: + return fmt.Sprintf("", v) + } + } +} + +func (v Value) panicMessage(what string) string { + return fmt.Sprintf("type mismatch: cannot convert %v to %s", v.typeName(), what) +} + +// Bool returns v as a bool and panics if the type is not a bool. +func (v Value) Bool() bool { + switch v.typ { + case boolType: + return v.num > 0 + default: + panic(v.panicMessage("bool")) + } +} + +// Int returns v as a int64 and panics if the type is not a int32 or int64. +func (v Value) Int() int64 { + switch v.typ { + case int32Type, int64Type: + return int64(v.num) + default: + panic(v.panicMessage("int")) + } +} + +// Uint returns v as a uint64 and panics if the type is not a uint32 or uint64. +func (v Value) Uint() uint64 { + switch v.typ { + case uint32Type, uint64Type: + return uint64(v.num) + default: + panic(v.panicMessage("uint")) + } +} + +// Float returns v as a float64 and panics if the type is not a float32 or float64. +func (v Value) Float() float64 { + switch v.typ { + case float32Type, float64Type: + return math.Float64frombits(uint64(v.num)) + default: + panic(v.panicMessage("float")) + } +} + +// String returns v as a string. Since this method implements fmt.Stringer, +// this returns the formatted string value for any non-string type. +func (v Value) String() string { + switch v.typ { + case stringType: + return v.getString() + default: + return fmt.Sprint(v.Interface()) + } +} + +// Bytes returns v as a []byte and panics if the type is not a []byte. +func (v Value) Bytes() []byte { + switch v.typ { + case bytesType: + return v.getBytes() + default: + panic(v.panicMessage("bytes")) + } +} + +// Enum returns v as a EnumNumber and panics if the type is not a EnumNumber. +func (v Value) Enum() EnumNumber { + switch v.typ { + case enumType: + return EnumNumber(v.num) + default: + panic(v.panicMessage("enum")) + } +} + +// Message returns v as a Message and panics if the type is not a Message. +func (v Value) Message() Message { + switch vi := v.getIface().(type) { + case Message: + return vi + default: + panic(v.panicMessage("message")) + } +} + +// List returns v as a List and panics if the type is not a List. +func (v Value) List() List { + switch vi := v.getIface().(type) { + case List: + return vi + default: + panic(v.panicMessage("list")) + } +} + +// Map returns v as a Map and panics if the type is not a Map. +func (v Value) Map() Map { + switch vi := v.getIface().(type) { + case Map: + return vi + default: + panic(v.panicMessage("map")) + } +} + +// MapKey returns v as a MapKey and panics for invalid MapKey types. +func (v Value) MapKey() MapKey { + switch v.typ { + case boolType, int32Type, int64Type, uint32Type, uint64Type, stringType: + return MapKey(v) + default: + panic(v.panicMessage("map key")) + } +} + +// MapKey is used to index maps, where the Go type of the MapKey must match +// the specified key Kind (see MessageDescriptor.IsMapEntry). +// The following shows what Go type is used to represent each proto Kind: +// +// ╔═════════╤═════════════════════════════════════╗ +// ║ Go type │ Protobuf kind ║ +// ╠═════════╪═════════════════════════════════════╣ +// ║ bool │ BoolKind ║ +// ║ int32 │ Int32Kind, Sint32Kind, Sfixed32Kind ║ +// ║ int64 │ Int64Kind, Sint64Kind, Sfixed64Kind ║ +// ║ uint32 │ Uint32Kind, Fixed32Kind ║ +// ║ uint64 │ Uint64Kind, Fixed64Kind ║ +// ║ string │ StringKind ║ +// ╚═════════╧═════════════════════════════════════╝ +// +// A MapKey is constructed and accessed through a Value: +// k := ValueOf("hash").MapKey() // convert string to MapKey +// s := k.String() // convert MapKey to string +// +// The MapKey is a strict subset of valid types used in Value; +// converting a Value to a MapKey with an invalid type panics. +type MapKey value + +// IsValid reports whether k is populated with a value. +func (k MapKey) IsValid() bool { + return Value(k).IsValid() +} + +// Interface returns k as an interface{}. +func (k MapKey) Interface() interface{} { + return Value(k).Interface() +} + +// Bool returns k as a bool and panics if the type is not a bool. +func (k MapKey) Bool() bool { + return Value(k).Bool() +} + +// Int returns k as a int64 and panics if the type is not a int32 or int64. +func (k MapKey) Int() int64 { + return Value(k).Int() +} + +// Uint returns k as a uint64 and panics if the type is not a uint32 or uint64. +func (k MapKey) Uint() uint64 { + return Value(k).Uint() +} + +// String returns k as a string. Since this method implements fmt.Stringer, +// this returns the formatted string value for any non-string type. +func (k MapKey) String() string { + return Value(k).String() +} + +// Value returns k as a Value. +func (k MapKey) Value() Value { + return Value(k) +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe.go new file mode 100644 index 000000000..c45debdca --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe.go @@ -0,0 +1,98 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !purego,!appengine + +package protoreflect + +import ( + "unsafe" + + "google.golang.org/protobuf/internal/pragma" +) + +type ( + stringHeader struct { + Data unsafe.Pointer + Len int + } + sliceHeader struct { + Data unsafe.Pointer + Len int + Cap int + } + ifaceHeader struct { + Type unsafe.Pointer + Data unsafe.Pointer + } +) + +var ( + nilType = typeOf(nil) + boolType = typeOf(*new(bool)) + int32Type = typeOf(*new(int32)) + int64Type = typeOf(*new(int64)) + uint32Type = typeOf(*new(uint32)) + uint64Type = typeOf(*new(uint64)) + float32Type = typeOf(*new(float32)) + float64Type = typeOf(*new(float64)) + stringType = typeOf(*new(string)) + bytesType = typeOf(*new([]byte)) + enumType = typeOf(*new(EnumNumber)) +) + +// typeOf returns a pointer to the Go type information. +// The pointer is comparable and equal if and only if the types are identical. +func typeOf(t interface{}) unsafe.Pointer { + return (*ifaceHeader)(unsafe.Pointer(&t)).Type +} + +// value is a union where only one type can be represented at a time. +// The struct is 24B large on 64-bit systems and requires the minimum storage +// necessary to represent each possible type. +// +// The Go GC needs to be able to scan variables containing pointers. +// As such, pointers and non-pointers cannot be intermixed. +type value struct { + pragma.DoNotCompare // 0B + + // typ stores the type of the value as a pointer to the Go type. + typ unsafe.Pointer // 8B + + // ptr stores the data pointer for a String, Bytes, or interface value. + ptr unsafe.Pointer // 8B + + // num stores a Bool, Int32, Int64, Uint32, Uint64, Float32, Float64, or + // Enum value as a raw uint64. + // + // It is also used to store the length of a String or Bytes value; + // the capacity is ignored. + num uint64 // 8B +} + +func valueOfString(v string) Value { + p := (*stringHeader)(unsafe.Pointer(&v)) + return Value{typ: stringType, ptr: p.Data, num: uint64(len(v))} +} +func valueOfBytes(v []byte) Value { + p := (*sliceHeader)(unsafe.Pointer(&v)) + return Value{typ: bytesType, ptr: p.Data, num: uint64(len(v))} +} +func valueOfIface(v interface{}) Value { + p := (*ifaceHeader)(unsafe.Pointer(&v)) + return Value{typ: p.Type, ptr: p.Data} +} + +func (v Value) getString() (x string) { + *(*stringHeader)(unsafe.Pointer(&x)) = stringHeader{Data: v.ptr, Len: int(v.num)} + return x +} +func (v Value) getBytes() (x []byte) { + *(*sliceHeader)(unsafe.Pointer(&x)) = sliceHeader{Data: v.ptr, Len: int(v.num), Cap: int(v.num)} + return x +} +func (v Value) getIface() (x interface{}) { + *(*ifaceHeader)(unsafe.Pointer(&x)) = ifaceHeader{Type: v.typ, Data: v.ptr} + return x +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go b/vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go new file mode 100644 index 000000000..5e5f96716 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go @@ -0,0 +1,800 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protoregistry provides data structures to register and lookup +// protobuf descriptor types. +// +// The Files registry contains file descriptors and provides the ability +// to iterate over the files or lookup a specific descriptor within the files. +// Files only contains protobuf descriptors and has no understanding of Go +// type information that may be associated with each descriptor. +// +// The Types registry contains descriptor types for which there is a known +// Go type associated with that descriptor. It provides the ability to iterate +// over the registered types or lookup a type by name. +package protoregistry + +import ( + "fmt" + "log" + "strings" + "sync" + + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// ignoreConflict reports whether to ignore a registration conflict +// given the descriptor being registered and the error. +// It is a variable so that the behavior is easily overridden in another file. +var ignoreConflict = func(d protoreflect.Descriptor, err error) bool { + log.Printf(""+ + "WARNING: %v\n"+ + "A future release will panic on registration conflicts. See:\n"+ + "https://developers.google.com/protocol-buffers/docs/reference/go/faq#namespace-conflict\n"+ + "\n", err) + return true +} + +var globalMutex sync.RWMutex + +// GlobalFiles is a global registry of file descriptors. +var GlobalFiles *Files = new(Files) + +// GlobalTypes is the registry used by default for type lookups +// unless a local registry is provided by the user. +var GlobalTypes *Types = new(Types) + +// NotFound is a sentinel error value to indicate that the type was not found. +// +// Since registry lookup can happen in the critical performance path, resolvers +// must return this exact error value, not an error wrapping it. +var NotFound = errors.New("not found") + +// Files is a registry for looking up or iterating over files and the +// descriptors contained within them. +// The Find and Range methods are safe for concurrent use. +type Files struct { + // The map of descsByName contains: + // EnumDescriptor + // EnumValueDescriptor + // MessageDescriptor + // ExtensionDescriptor + // ServiceDescriptor + // *packageDescriptor + // + // Note that files are stored as a slice, since a package may contain + // multiple files. Only top-level declarations are registered. + // Note that enum values are in the top-level since that are in the same + // scope as the parent enum. + descsByName map[protoreflect.FullName]interface{} + filesByPath map[string]protoreflect.FileDescriptor +} + +type packageDescriptor struct { + files []protoreflect.FileDescriptor +} + +// RegisterFile registers the provided file descriptor. +// +// If any descriptor within the file conflicts with the descriptor of any +// previously registered file (e.g., two enums with the same full name), +// then the file is not registered and an error is returned. +// +// It is permitted for multiple files to have the same file path. +func (r *Files) RegisterFile(file protoreflect.FileDescriptor) error { + if r == GlobalFiles { + globalMutex.Lock() + defer globalMutex.Unlock() + } + if r.descsByName == nil { + r.descsByName = map[protoreflect.FullName]interface{}{ + "": &packageDescriptor{}, + } + r.filesByPath = make(map[string]protoreflect.FileDescriptor) + } + path := file.Path() + if prev := r.filesByPath[path]; prev != nil { + // TODO: Remove this after some soak-in period after moving these types. + var prevPath string + const prevModule = "google.golang.org/genproto" + const prevVersion = "cb27e3aa (May 26th, 2020)" + switch path { + case "google/protobuf/field_mask.proto": + prevPath = prevModule + "/protobuf/field_mask" + case "google/protobuf/api.proto": + prevPath = prevModule + "/protobuf/api" + case "google/protobuf/type.proto": + prevPath = prevModule + "/protobuf/ptype" + case "google/protobuf/source_context.proto": + prevPath = prevModule + "/protobuf/source_context" + } + if r == GlobalFiles && prevPath != "" { + pkgName := strings.TrimSuffix(strings.TrimPrefix(path, "google/protobuf/"), ".proto") + pkgName = strings.Replace(pkgName, "_", "", -1) + "pb" + currPath := "google.golang.org/protobuf/types/known/" + pkgName + panic(fmt.Sprintf(""+ + "duplicate registration of %q\n"+ + "\n"+ + "The generated definition for this file has moved:\n"+ + "\tfrom: %q\n"+ + "\tto: %q\n"+ + "A dependency on the %q module must\n"+ + "be at version %v or higher.\n"+ + "\n"+ + "Upgrade the dependency by running:\n"+ + "\tgo get -u %v\n", + path, prevPath, currPath, prevModule, prevVersion, prevPath)) + } + + err := errors.New("file %q is already registered", file.Path()) + err = amendErrorWithCaller(err, prev, file) + if r == GlobalFiles && ignoreConflict(file, err) { + err = nil + } + return err + } + + for name := file.Package(); name != ""; name = name.Parent() { + switch prev := r.descsByName[name]; prev.(type) { + case nil, *packageDescriptor: + default: + err := errors.New("file %q has a package name conflict over %v", file.Path(), name) + err = amendErrorWithCaller(err, prev, file) + if r == GlobalFiles && ignoreConflict(file, err) { + err = nil + } + return err + } + } + var err error + var hasConflict bool + rangeTopLevelDescriptors(file, func(d protoreflect.Descriptor) { + if prev := r.descsByName[d.FullName()]; prev != nil { + hasConflict = true + err = errors.New("file %q has a name conflict over %v", file.Path(), d.FullName()) + err = amendErrorWithCaller(err, prev, file) + if r == GlobalFiles && ignoreConflict(d, err) { + err = nil + } + } + }) + if hasConflict { + return err + } + + for name := file.Package(); name != ""; name = name.Parent() { + if r.descsByName[name] == nil { + r.descsByName[name] = &packageDescriptor{} + } + } + p := r.descsByName[file.Package()].(*packageDescriptor) + p.files = append(p.files, file) + rangeTopLevelDescriptors(file, func(d protoreflect.Descriptor) { + r.descsByName[d.FullName()] = d + }) + r.filesByPath[path] = file + return nil +} + +// FindDescriptorByName looks up a descriptor by the full name. +// +// This returns (nil, NotFound) if not found. +func (r *Files) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error) { + if r == nil { + return nil, NotFound + } + if r == GlobalFiles { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + prefix := name + suffix := nameSuffix("") + for prefix != "" { + if d, ok := r.descsByName[prefix]; ok { + switch d := d.(type) { + case protoreflect.EnumDescriptor: + if d.FullName() == name { + return d, nil + } + case protoreflect.EnumValueDescriptor: + if d.FullName() == name { + return d, nil + } + case protoreflect.MessageDescriptor: + if d.FullName() == name { + return d, nil + } + if d := findDescriptorInMessage(d, suffix); d != nil && d.FullName() == name { + return d, nil + } + case protoreflect.ExtensionDescriptor: + if d.FullName() == name { + return d, nil + } + case protoreflect.ServiceDescriptor: + if d.FullName() == name { + return d, nil + } + if d := d.Methods().ByName(suffix.Pop()); d != nil && d.FullName() == name { + return d, nil + } + } + return nil, NotFound + } + prefix = prefix.Parent() + suffix = nameSuffix(name[len(prefix)+len("."):]) + } + return nil, NotFound +} + +func findDescriptorInMessage(md protoreflect.MessageDescriptor, suffix nameSuffix) protoreflect.Descriptor { + name := suffix.Pop() + if suffix == "" { + if ed := md.Enums().ByName(name); ed != nil { + return ed + } + for i := md.Enums().Len() - 1; i >= 0; i-- { + if vd := md.Enums().Get(i).Values().ByName(name); vd != nil { + return vd + } + } + if xd := md.Extensions().ByName(name); xd != nil { + return xd + } + if fd := md.Fields().ByName(name); fd != nil { + return fd + } + if od := md.Oneofs().ByName(name); od != nil { + return od + } + } + if md := md.Messages().ByName(name); md != nil { + if suffix == "" { + return md + } + return findDescriptorInMessage(md, suffix) + } + return nil +} + +type nameSuffix string + +func (s *nameSuffix) Pop() (name protoreflect.Name) { + if i := strings.IndexByte(string(*s), '.'); i >= 0 { + name, *s = protoreflect.Name((*s)[:i]), (*s)[i+1:] + } else { + name, *s = protoreflect.Name((*s)), "" + } + return name +} + +// FindFileByPath looks up a file by the path. +// +// This returns (nil, NotFound) if not found. +func (r *Files) FindFileByPath(path string) (protoreflect.FileDescriptor, error) { + if r == nil { + return nil, NotFound + } + if r == GlobalFiles { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + if fd, ok := r.filesByPath[path]; ok { + return fd, nil + } + return nil, NotFound +} + +// NumFiles reports the number of registered files. +func (r *Files) NumFiles() int { + if r == nil { + return 0 + } + if r == GlobalFiles { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + return len(r.filesByPath) +} + +// RangeFiles iterates over all registered files while f returns true. +// The iteration order is undefined. +func (r *Files) RangeFiles(f func(protoreflect.FileDescriptor) bool) { + if r == nil { + return + } + if r == GlobalFiles { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + for _, file := range r.filesByPath { + if !f(file) { + return + } + } +} + +// NumFilesByPackage reports the number of registered files in a proto package. +func (r *Files) NumFilesByPackage(name protoreflect.FullName) int { + if r == nil { + return 0 + } + if r == GlobalFiles { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + p, ok := r.descsByName[name].(*packageDescriptor) + if !ok { + return 0 + } + return len(p.files) +} + +// RangeFilesByPackage iterates over all registered files in a given proto package +// while f returns true. The iteration order is undefined. +func (r *Files) RangeFilesByPackage(name protoreflect.FullName, f func(protoreflect.FileDescriptor) bool) { + if r == nil { + return + } + if r == GlobalFiles { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + p, ok := r.descsByName[name].(*packageDescriptor) + if !ok { + return + } + for _, file := range p.files { + if !f(file) { + return + } + } +} + +// rangeTopLevelDescriptors iterates over all top-level descriptors in a file +// which will be directly entered into the registry. +func rangeTopLevelDescriptors(fd protoreflect.FileDescriptor, f func(protoreflect.Descriptor)) { + eds := fd.Enums() + for i := eds.Len() - 1; i >= 0; i-- { + f(eds.Get(i)) + vds := eds.Get(i).Values() + for i := vds.Len() - 1; i >= 0; i-- { + f(vds.Get(i)) + } + } + mds := fd.Messages() + for i := mds.Len() - 1; i >= 0; i-- { + f(mds.Get(i)) + } + xds := fd.Extensions() + for i := xds.Len() - 1; i >= 0; i-- { + f(xds.Get(i)) + } + sds := fd.Services() + for i := sds.Len() - 1; i >= 0; i-- { + f(sds.Get(i)) + } +} + +// MessageTypeResolver is an interface for looking up messages. +// +// A compliant implementation must deterministically return the same type +// if no error is encountered. +// +// The Types type implements this interface. +type MessageTypeResolver interface { + // FindMessageByName looks up a message by its full name. + // E.g., "google.protobuf.Any" + // + // This return (nil, NotFound) if not found. + FindMessageByName(message protoreflect.FullName) (protoreflect.MessageType, error) + + // FindMessageByURL looks up a message by a URL identifier. + // See documentation on google.protobuf.Any.type_url for the URL format. + // + // This returns (nil, NotFound) if not found. + FindMessageByURL(url string) (protoreflect.MessageType, error) +} + +// ExtensionTypeResolver is an interface for looking up extensions. +// +// A compliant implementation must deterministically return the same type +// if no error is encountered. +// +// The Types type implements this interface. +type ExtensionTypeResolver interface { + // FindExtensionByName looks up a extension field by the field's full name. + // Note that this is the full name of the field as determined by + // where the extension is declared and is unrelated to the full name of the + // message being extended. + // + // This returns (nil, NotFound) if not found. + FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) + + // FindExtensionByNumber looks up a extension field by the field number + // within some parent message, identified by full name. + // + // This returns (nil, NotFound) if not found. + FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) +} + +var ( + _ MessageTypeResolver = (*Types)(nil) + _ ExtensionTypeResolver = (*Types)(nil) +) + +// Types is a registry for looking up or iterating over descriptor types. +// The Find and Range methods are safe for concurrent use. +type Types struct { + typesByName typesByName + extensionsByMessage extensionsByMessage + + numEnums int + numMessages int + numExtensions int +} + +type ( + typesByName map[protoreflect.FullName]interface{} + extensionsByMessage map[protoreflect.FullName]extensionsByNumber + extensionsByNumber map[protoreflect.FieldNumber]protoreflect.ExtensionType +) + +// RegisterMessage registers the provided message type. +// +// If a naming conflict occurs, the type is not registered and an error is returned. +func (r *Types) RegisterMessage(mt protoreflect.MessageType) error { + // Under rare circumstances getting the descriptor might recursively + // examine the registry, so fetch it before locking. + md := mt.Descriptor() + + if r == GlobalTypes { + globalMutex.Lock() + defer globalMutex.Unlock() + } + + if err := r.register("message", md, mt); err != nil { + return err + } + r.numMessages++ + return nil +} + +// RegisterEnum registers the provided enum type. +// +// If a naming conflict occurs, the type is not registered and an error is returned. +func (r *Types) RegisterEnum(et protoreflect.EnumType) error { + // Under rare circumstances getting the descriptor might recursively + // examine the registry, so fetch it before locking. + ed := et.Descriptor() + + if r == GlobalTypes { + globalMutex.Lock() + defer globalMutex.Unlock() + } + + if err := r.register("enum", ed, et); err != nil { + return err + } + r.numEnums++ + return nil +} + +// RegisterExtension registers the provided extension type. +// +// If a naming conflict occurs, the type is not registered and an error is returned. +func (r *Types) RegisterExtension(xt protoreflect.ExtensionType) error { + // Under rare circumstances getting the descriptor might recursively + // examine the registry, so fetch it before locking. + // + // A known case where this can happen: Fetching the TypeDescriptor for a + // legacy ExtensionDesc can consult the global registry. + xd := xt.TypeDescriptor() + + if r == GlobalTypes { + globalMutex.Lock() + defer globalMutex.Unlock() + } + + field := xd.Number() + message := xd.ContainingMessage().FullName() + if prev := r.extensionsByMessage[message][field]; prev != nil { + err := errors.New("extension number %d is already registered on message %v", field, message) + err = amendErrorWithCaller(err, prev, xt) + if !(r == GlobalTypes && ignoreConflict(xd, err)) { + return err + } + } + + if err := r.register("extension", xd, xt); err != nil { + return err + } + if r.extensionsByMessage == nil { + r.extensionsByMessage = make(extensionsByMessage) + } + if r.extensionsByMessage[message] == nil { + r.extensionsByMessage[message] = make(extensionsByNumber) + } + r.extensionsByMessage[message][field] = xt + r.numExtensions++ + return nil +} + +func (r *Types) register(kind string, desc protoreflect.Descriptor, typ interface{}) error { + name := desc.FullName() + prev := r.typesByName[name] + if prev != nil { + err := errors.New("%v %v is already registered", kind, name) + err = amendErrorWithCaller(err, prev, typ) + if !(r == GlobalTypes && ignoreConflict(desc, err)) { + return err + } + } + if r.typesByName == nil { + r.typesByName = make(typesByName) + } + r.typesByName[name] = typ + return nil +} + +// FindEnumByName looks up an enum by its full name. +// E.g., "google.protobuf.Field.Kind". +// +// This returns (nil, NotFound) if not found. +func (r *Types) FindEnumByName(enum protoreflect.FullName) (protoreflect.EnumType, error) { + if r == nil { + return nil, NotFound + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + if v := r.typesByName[enum]; v != nil { + if et, _ := v.(protoreflect.EnumType); et != nil { + return et, nil + } + return nil, errors.New("found wrong type: got %v, want enum", typeName(v)) + } + return nil, NotFound +} + +// FindMessageByName looks up a message by its full name. +// E.g., "google.protobuf.Any" +// +// This return (nil, NotFound) if not found. +func (r *Types) FindMessageByName(message protoreflect.FullName) (protoreflect.MessageType, error) { + // The full name by itself is a valid URL. + return r.FindMessageByURL(string(message)) +} + +// FindMessageByURL looks up a message by a URL identifier. +// See documentation on google.protobuf.Any.type_url for the URL format. +// +// This returns (nil, NotFound) if not found. +func (r *Types) FindMessageByURL(url string) (protoreflect.MessageType, error) { + if r == nil { + return nil, NotFound + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + message := protoreflect.FullName(url) + if i := strings.LastIndexByte(url, '/'); i >= 0 { + message = message[i+len("/"):] + } + + if v := r.typesByName[message]; v != nil { + if mt, _ := v.(protoreflect.MessageType); mt != nil { + return mt, nil + } + return nil, errors.New("found wrong type: got %v, want message", typeName(v)) + } + return nil, NotFound +} + +// FindExtensionByName looks up a extension field by the field's full name. +// Note that this is the full name of the field as determined by +// where the extension is declared and is unrelated to the full name of the +// message being extended. +// +// This returns (nil, NotFound) if not found. +func (r *Types) FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) { + if r == nil { + return nil, NotFound + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + if v := r.typesByName[field]; v != nil { + if xt, _ := v.(protoreflect.ExtensionType); xt != nil { + return xt, nil + } + return nil, errors.New("found wrong type: got %v, want extension", typeName(v)) + } + return nil, NotFound +} + +// FindExtensionByNumber looks up a extension field by the field number +// within some parent message, identified by full name. +// +// This returns (nil, NotFound) if not found. +func (r *Types) FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) { + if r == nil { + return nil, NotFound + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + if xt, ok := r.extensionsByMessage[message][field]; ok { + return xt, nil + } + return nil, NotFound +} + +// NumEnums reports the number of registered enums. +func (r *Types) NumEnums() int { + if r == nil { + return 0 + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + return r.numEnums +} + +// RangeEnums iterates over all registered enums while f returns true. +// Iteration order is undefined. +func (r *Types) RangeEnums(f func(protoreflect.EnumType) bool) { + if r == nil { + return + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + for _, typ := range r.typesByName { + if et, ok := typ.(protoreflect.EnumType); ok { + if !f(et) { + return + } + } + } +} + +// NumMessages reports the number of registered messages. +func (r *Types) NumMessages() int { + if r == nil { + return 0 + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + return r.numMessages +} + +// RangeMessages iterates over all registered messages while f returns true. +// Iteration order is undefined. +func (r *Types) RangeMessages(f func(protoreflect.MessageType) bool) { + if r == nil { + return + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + for _, typ := range r.typesByName { + if mt, ok := typ.(protoreflect.MessageType); ok { + if !f(mt) { + return + } + } + } +} + +// NumExtensions reports the number of registered extensions. +func (r *Types) NumExtensions() int { + if r == nil { + return 0 + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + return r.numExtensions +} + +// RangeExtensions iterates over all registered extensions while f returns true. +// Iteration order is undefined. +func (r *Types) RangeExtensions(f func(protoreflect.ExtensionType) bool) { + if r == nil { + return + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + for _, typ := range r.typesByName { + if xt, ok := typ.(protoreflect.ExtensionType); ok { + if !f(xt) { + return + } + } + } +} + +// NumExtensionsByMessage reports the number of registered extensions for +// a given message type. +func (r *Types) NumExtensionsByMessage(message protoreflect.FullName) int { + if r == nil { + return 0 + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + return len(r.extensionsByMessage[message]) +} + +// RangeExtensionsByMessage iterates over all registered extensions filtered +// by a given message type while f returns true. Iteration order is undefined. +func (r *Types) RangeExtensionsByMessage(message protoreflect.FullName, f func(protoreflect.ExtensionType) bool) { + if r == nil { + return + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + for _, xt := range r.extensionsByMessage[message] { + if !f(xt) { + return + } + } +} + +func typeName(t interface{}) string { + switch t.(type) { + case protoreflect.EnumType: + return "enum" + case protoreflect.MessageType: + return "message" + case protoreflect.ExtensionType: + return "extension" + default: + return fmt.Sprintf("%T", t) + } +} + +func amendErrorWithCaller(err error, prev, curr interface{}) error { + prevPkg := goPackage(prev) + currPkg := goPackage(curr) + if prevPkg == "" || currPkg == "" || prevPkg == currPkg { + return err + } + return errors.New("%s\n\tpreviously from: %q\n\tcurrently from: %q", err, prevPkg, currPkg) +} + +func goPackage(v interface{}) string { + switch d := v.(type) { + case protoreflect.EnumType: + v = d.Descriptor() + case protoreflect.MessageType: + v = d.Descriptor() + case protoreflect.ExtensionType: + v = d.TypeDescriptor() + } + if d, ok := v.(protoreflect.Descriptor); ok { + v = d.ParentFile() + } + if d, ok := v.(interface{ GoPackagePath() string }); ok { + return d.GoPackagePath() + } + return "" +} diff --git a/vendor/google.golang.org/protobuf/runtime/protoiface/legacy.go b/vendor/google.golang.org/protobuf/runtime/protoiface/legacy.go new file mode 100644 index 000000000..c58727675 --- /dev/null +++ b/vendor/google.golang.org/protobuf/runtime/protoiface/legacy.go @@ -0,0 +1,15 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protoiface + +type MessageV1 interface { + Reset() + String() string + ProtoMessage() +} + +type ExtensionRangeV1 struct { + Start, End int32 // both inclusive +} diff --git a/vendor/google.golang.org/protobuf/runtime/protoiface/methods.go b/vendor/google.golang.org/protobuf/runtime/protoiface/methods.go new file mode 100644 index 000000000..32c04f67e --- /dev/null +++ b/vendor/google.golang.org/protobuf/runtime/protoiface/methods.go @@ -0,0 +1,167 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protoiface contains types referenced or implemented by messages. +// +// WARNING: This package should only be imported by message implementations. +// The functionality found in this package should be accessed through +// higher-level abstractions provided by the proto package. +package protoiface + +import ( + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// Methods is a set of optional fast-path implementations of various operations. +type Methods = struct { + pragma.NoUnkeyedLiterals + + // Flags indicate support for optional features. + Flags SupportFlags + + // Size returns the size in bytes of the wire-format encoding of a message. + // Marshal must be provided if a custom Size is provided. + Size func(SizeInput) SizeOutput + + // Marshal formats a message in the wire-format encoding to the provided buffer. + // Size should be provided if a custom Marshal is provided. + // It must not return an error for a partial message. + Marshal func(MarshalInput) (MarshalOutput, error) + + // Unmarshal parses the wire-format encoding and merges the result into a message. + // It must not reset the target message or return an error for a partial message. + Unmarshal func(UnmarshalInput) (UnmarshalOutput, error) + + // Merge merges the contents of a source message into a destination message. + Merge func(MergeInput) MergeOutput + + // CheckInitialized returns an error if any required fields in the message are not set. + CheckInitialized func(CheckInitializedInput) (CheckInitializedOutput, error) +} + +// SupportFlags indicate support for optional features. +type SupportFlags = uint64 + +const ( + // SupportMarshalDeterministic reports whether MarshalOptions.Deterministic is supported. + SupportMarshalDeterministic SupportFlags = 1 << iota + + // SupportUnmarshalDiscardUnknown reports whether UnmarshalOptions.DiscardUnknown is supported. + SupportUnmarshalDiscardUnknown +) + +// SizeInput is input to the Size method. +type SizeInput = struct { + pragma.NoUnkeyedLiterals + + Message protoreflect.Message + Flags MarshalInputFlags +} + +// SizeOutput is output from the Size method. +type SizeOutput = struct { + pragma.NoUnkeyedLiterals + + Size int +} + +// MarshalInput is input to the Marshal method. +type MarshalInput = struct { + pragma.NoUnkeyedLiterals + + Message protoreflect.Message + Buf []byte // output is appended to this buffer + Flags MarshalInputFlags +} + +// MarshalOutput is output from the Marshal method. +type MarshalOutput = struct { + pragma.NoUnkeyedLiterals + + Buf []byte // contains marshaled message +} + +// MarshalInputFlags configure the marshaler. +// Most flags correspond to fields in proto.MarshalOptions. +type MarshalInputFlags = uint8 + +const ( + MarshalDeterministic MarshalInputFlags = 1 << iota + MarshalUseCachedSize +) + +// UnmarshalInput is input to the Unmarshal method. +type UnmarshalInput = struct { + pragma.NoUnkeyedLiterals + + Message protoreflect.Message + Buf []byte // input buffer + Flags UnmarshalInputFlags + Resolver interface { + FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) + FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) + } +} + +// UnmarshalOutput is output from the Unmarshal method. +type UnmarshalOutput = struct { + pragma.NoUnkeyedLiterals + + Flags UnmarshalOutputFlags +} + +// UnmarshalInputFlags configure the unmarshaler. +// Most flags correspond to fields in proto.UnmarshalOptions. +type UnmarshalInputFlags = uint8 + +const ( + UnmarshalDiscardUnknown UnmarshalInputFlags = 1 << iota +) + +// UnmarshalOutputFlags are output from the Unmarshal method. +type UnmarshalOutputFlags = uint8 + +const ( + // UnmarshalInitialized may be set on return if all required fields are known to be set. + // If unset, then it does not necessarily indicate that the message is uninitialized, + // only that its status could not be confirmed. + UnmarshalInitialized UnmarshalOutputFlags = 1 << iota +) + +// MergeInput is input to the Merge method. +type MergeInput = struct { + pragma.NoUnkeyedLiterals + + Source protoreflect.Message + Destination protoreflect.Message +} + +// MergeOutput is output from the Merge method. +type MergeOutput = struct { + pragma.NoUnkeyedLiterals + + Flags MergeOutputFlags +} + +// MergeOutputFlags are output from the Merge method. +type MergeOutputFlags = uint8 + +const ( + // MergeComplete reports whether the merge was performed. + // If unset, the merger must have made no changes to the destination. + MergeComplete MergeOutputFlags = 1 << iota +) + +// CheckInitializedInput is input to the CheckInitialized method. +type CheckInitializedInput = struct { + pragma.NoUnkeyedLiterals + + Message protoreflect.Message +} + +// CheckInitializedOutput is output from the CheckInitialized method. +type CheckInitializedOutput = struct { + pragma.NoUnkeyedLiterals +} diff --git a/vendor/google.golang.org/protobuf/runtime/protoimpl/impl.go b/vendor/google.golang.org/protobuf/runtime/protoimpl/impl.go new file mode 100644 index 000000000..4a1ab7fb3 --- /dev/null +++ b/vendor/google.golang.org/protobuf/runtime/protoimpl/impl.go @@ -0,0 +1,44 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protoimpl contains the default implementation for messages +// generated by protoc-gen-go. +// +// WARNING: This package should only ever be imported by generated messages. +// The compatibility agreement covers nothing except for functionality needed +// to keep existing generated messages operational. Breakages that occur due +// to unauthorized usages of this package are not the author's responsibility. +package protoimpl + +import ( + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/filetype" + "google.golang.org/protobuf/internal/impl" +) + +// UnsafeEnabled specifies whether package unsafe can be used. +const UnsafeEnabled = impl.UnsafeEnabled + +type ( + // Types used by generated code in init functions. + DescBuilder = filedesc.Builder + TypeBuilder = filetype.Builder + + // Types used by generated code to implement EnumType, MessageType, and ExtensionType. + EnumInfo = impl.EnumInfo + MessageInfo = impl.MessageInfo + ExtensionInfo = impl.ExtensionInfo + + // Types embedded in generated messages. + MessageState = impl.MessageState + SizeCache = impl.SizeCache + WeakFields = impl.WeakFields + UnknownFields = impl.UnknownFields + ExtensionFields = impl.ExtensionFields + ExtensionFieldV1 = impl.ExtensionField + + Pointer = impl.Pointer +) + +var X impl.Export diff --git a/vendor/google.golang.org/protobuf/runtime/protoimpl/version.go b/vendor/google.golang.org/protobuf/runtime/protoimpl/version.go new file mode 100644 index 000000000..ff094e1ba --- /dev/null +++ b/vendor/google.golang.org/protobuf/runtime/protoimpl/version.go @@ -0,0 +1,56 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protoimpl + +import ( + "google.golang.org/protobuf/internal/version" +) + +const ( + // MaxVersion is the maximum supported version for generated .pb.go files. + // It is always the current version of the module. + MaxVersion = version.Minor + + // GenVersion is the runtime version required by generated .pb.go files. + // This is incremented when generated code relies on new functionality + // in the runtime. + GenVersion = 20 + + // MinVersion is the minimum supported version for generated .pb.go files. + // This is incremented when the runtime drops support for old code. + MinVersion = 0 +) + +// EnforceVersion is used by code generated by protoc-gen-go +// to statically enforce minimum and maximum versions of this package. +// A compilation failure implies either that: +// * the runtime package is too old and needs to be updated OR +// * the generated code is too old and needs to be regenerated. +// +// The runtime package can be upgraded by running: +// go get google.golang.org/protobuf +// +// The generated code can be regenerated by running: +// protoc --go_out=${PROTOC_GEN_GO_ARGS} ${PROTO_FILES} +// +// Example usage by generated code: +// const ( +// // Verify that this generated code is sufficiently up-to-date. +// _ = protoimpl.EnforceVersion(genVersion - protoimpl.MinVersion) +// // Verify that runtime/protoimpl is sufficiently up-to-date. +// _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - genVersion) +// ) +// +// The genVersion is the current minor version used to generated the code. +// This compile-time check relies on negative integer overflow of a uint +// being a compilation failure (guaranteed by the Go specification). +type EnforceVersion uint + +// This enforces the following invariant: +// MinVersion ≤ GenVersion ≤ MaxVersion +const ( + _ = EnforceVersion(GenVersion - MinVersion) + _ = EnforceVersion(MaxVersion - GenVersion) +) diff --git a/vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go b/vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go new file mode 100644 index 000000000..824237856 --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go @@ -0,0 +1,4040 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Author: kenton@google.com (Kenton Varda) +// Based on original Protocol Buffers design by +// Sanjay Ghemawat, Jeff Dean, and others. +// +// The messages in this file describe the definitions found in .proto files. +// A valid .proto file can be translated directly to a FileDescriptorProto +// without any other information (e.g. without reading its imports). + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/descriptor.proto + +package descriptorpb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +type FieldDescriptorProto_Type int32 + +const ( + // 0 is reserved for errors. + // Order is weird for historical reasons. + FieldDescriptorProto_TYPE_DOUBLE FieldDescriptorProto_Type = 1 + FieldDescriptorProto_TYPE_FLOAT FieldDescriptorProto_Type = 2 + // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if + // negative values are likely. + FieldDescriptorProto_TYPE_INT64 FieldDescriptorProto_Type = 3 + FieldDescriptorProto_TYPE_UINT64 FieldDescriptorProto_Type = 4 + // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if + // negative values are likely. + FieldDescriptorProto_TYPE_INT32 FieldDescriptorProto_Type = 5 + FieldDescriptorProto_TYPE_FIXED64 FieldDescriptorProto_Type = 6 + FieldDescriptorProto_TYPE_FIXED32 FieldDescriptorProto_Type = 7 + FieldDescriptorProto_TYPE_BOOL FieldDescriptorProto_Type = 8 + FieldDescriptorProto_TYPE_STRING FieldDescriptorProto_Type = 9 + // Tag-delimited aggregate. + // Group type is deprecated and not supported in proto3. However, Proto3 + // implementations should still be able to parse the group wire format and + // treat group fields as unknown fields. + FieldDescriptorProto_TYPE_GROUP FieldDescriptorProto_Type = 10 + FieldDescriptorProto_TYPE_MESSAGE FieldDescriptorProto_Type = 11 // Length-delimited aggregate. + // New in version 2. + FieldDescriptorProto_TYPE_BYTES FieldDescriptorProto_Type = 12 + FieldDescriptorProto_TYPE_UINT32 FieldDescriptorProto_Type = 13 + FieldDescriptorProto_TYPE_ENUM FieldDescriptorProto_Type = 14 + FieldDescriptorProto_TYPE_SFIXED32 FieldDescriptorProto_Type = 15 + FieldDescriptorProto_TYPE_SFIXED64 FieldDescriptorProto_Type = 16 + FieldDescriptorProto_TYPE_SINT32 FieldDescriptorProto_Type = 17 // Uses ZigZag encoding. + FieldDescriptorProto_TYPE_SINT64 FieldDescriptorProto_Type = 18 // Uses ZigZag encoding. +) + +// Enum value maps for FieldDescriptorProto_Type. +var ( + FieldDescriptorProto_Type_name = map[int32]string{ + 1: "TYPE_DOUBLE", + 2: "TYPE_FLOAT", + 3: "TYPE_INT64", + 4: "TYPE_UINT64", + 5: "TYPE_INT32", + 6: "TYPE_FIXED64", + 7: "TYPE_FIXED32", + 8: "TYPE_BOOL", + 9: "TYPE_STRING", + 10: "TYPE_GROUP", + 11: "TYPE_MESSAGE", + 12: "TYPE_BYTES", + 13: "TYPE_UINT32", + 14: "TYPE_ENUM", + 15: "TYPE_SFIXED32", + 16: "TYPE_SFIXED64", + 17: "TYPE_SINT32", + 18: "TYPE_SINT64", + } + FieldDescriptorProto_Type_value = map[string]int32{ + "TYPE_DOUBLE": 1, + "TYPE_FLOAT": 2, + "TYPE_INT64": 3, + "TYPE_UINT64": 4, + "TYPE_INT32": 5, + "TYPE_FIXED64": 6, + "TYPE_FIXED32": 7, + "TYPE_BOOL": 8, + "TYPE_STRING": 9, + "TYPE_GROUP": 10, + "TYPE_MESSAGE": 11, + "TYPE_BYTES": 12, + "TYPE_UINT32": 13, + "TYPE_ENUM": 14, + "TYPE_SFIXED32": 15, + "TYPE_SFIXED64": 16, + "TYPE_SINT32": 17, + "TYPE_SINT64": 18, + } +) + +func (x FieldDescriptorProto_Type) Enum() *FieldDescriptorProto_Type { + p := new(FieldDescriptorProto_Type) + *p = x + return p +} + +func (x FieldDescriptorProto_Type) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FieldDescriptorProto_Type) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_descriptor_proto_enumTypes[0].Descriptor() +} + +func (FieldDescriptorProto_Type) Type() protoreflect.EnumType { + return &file_google_protobuf_descriptor_proto_enumTypes[0] +} + +func (x FieldDescriptorProto_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *FieldDescriptorProto_Type) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = FieldDescriptorProto_Type(num) + return nil +} + +// Deprecated: Use FieldDescriptorProto_Type.Descriptor instead. +func (FieldDescriptorProto_Type) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{4, 0} +} + +type FieldDescriptorProto_Label int32 + +const ( + // 0 is reserved for errors + FieldDescriptorProto_LABEL_OPTIONAL FieldDescriptorProto_Label = 1 + FieldDescriptorProto_LABEL_REQUIRED FieldDescriptorProto_Label = 2 + FieldDescriptorProto_LABEL_REPEATED FieldDescriptorProto_Label = 3 +) + +// Enum value maps for FieldDescriptorProto_Label. +var ( + FieldDescriptorProto_Label_name = map[int32]string{ + 1: "LABEL_OPTIONAL", + 2: "LABEL_REQUIRED", + 3: "LABEL_REPEATED", + } + FieldDescriptorProto_Label_value = map[string]int32{ + "LABEL_OPTIONAL": 1, + "LABEL_REQUIRED": 2, + "LABEL_REPEATED": 3, + } +) + +func (x FieldDescriptorProto_Label) Enum() *FieldDescriptorProto_Label { + p := new(FieldDescriptorProto_Label) + *p = x + return p +} + +func (x FieldDescriptorProto_Label) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FieldDescriptorProto_Label) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_descriptor_proto_enumTypes[1].Descriptor() +} + +func (FieldDescriptorProto_Label) Type() protoreflect.EnumType { + return &file_google_protobuf_descriptor_proto_enumTypes[1] +} + +func (x FieldDescriptorProto_Label) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *FieldDescriptorProto_Label) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = FieldDescriptorProto_Label(num) + return nil +} + +// Deprecated: Use FieldDescriptorProto_Label.Descriptor instead. +func (FieldDescriptorProto_Label) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{4, 1} +} + +// Generated classes can be optimized for speed or code size. +type FileOptions_OptimizeMode int32 + +const ( + FileOptions_SPEED FileOptions_OptimizeMode = 1 // Generate complete code for parsing, serialization, + // etc. + FileOptions_CODE_SIZE FileOptions_OptimizeMode = 2 // Use ReflectionOps to implement these methods. + FileOptions_LITE_RUNTIME FileOptions_OptimizeMode = 3 // Generate code using MessageLite and the lite runtime. +) + +// Enum value maps for FileOptions_OptimizeMode. +var ( + FileOptions_OptimizeMode_name = map[int32]string{ + 1: "SPEED", + 2: "CODE_SIZE", + 3: "LITE_RUNTIME", + } + FileOptions_OptimizeMode_value = map[string]int32{ + "SPEED": 1, + "CODE_SIZE": 2, + "LITE_RUNTIME": 3, + } +) + +func (x FileOptions_OptimizeMode) Enum() *FileOptions_OptimizeMode { + p := new(FileOptions_OptimizeMode) + *p = x + return p +} + +func (x FileOptions_OptimizeMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FileOptions_OptimizeMode) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_descriptor_proto_enumTypes[2].Descriptor() +} + +func (FileOptions_OptimizeMode) Type() protoreflect.EnumType { + return &file_google_protobuf_descriptor_proto_enumTypes[2] +} + +func (x FileOptions_OptimizeMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *FileOptions_OptimizeMode) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = FileOptions_OptimizeMode(num) + return nil +} + +// Deprecated: Use FileOptions_OptimizeMode.Descriptor instead. +func (FileOptions_OptimizeMode) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{10, 0} +} + +type FieldOptions_CType int32 + +const ( + // Default mode. + FieldOptions_STRING FieldOptions_CType = 0 + FieldOptions_CORD FieldOptions_CType = 1 + FieldOptions_STRING_PIECE FieldOptions_CType = 2 +) + +// Enum value maps for FieldOptions_CType. +var ( + FieldOptions_CType_name = map[int32]string{ + 0: "STRING", + 1: "CORD", + 2: "STRING_PIECE", + } + FieldOptions_CType_value = map[string]int32{ + "STRING": 0, + "CORD": 1, + "STRING_PIECE": 2, + } +) + +func (x FieldOptions_CType) Enum() *FieldOptions_CType { + p := new(FieldOptions_CType) + *p = x + return p +} + +func (x FieldOptions_CType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FieldOptions_CType) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_descriptor_proto_enumTypes[3].Descriptor() +} + +func (FieldOptions_CType) Type() protoreflect.EnumType { + return &file_google_protobuf_descriptor_proto_enumTypes[3] +} + +func (x FieldOptions_CType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *FieldOptions_CType) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = FieldOptions_CType(num) + return nil +} + +// Deprecated: Use FieldOptions_CType.Descriptor instead. +func (FieldOptions_CType) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{12, 0} +} + +type FieldOptions_JSType int32 + +const ( + // Use the default type. + FieldOptions_JS_NORMAL FieldOptions_JSType = 0 + // Use JavaScript strings. + FieldOptions_JS_STRING FieldOptions_JSType = 1 + // Use JavaScript numbers. + FieldOptions_JS_NUMBER FieldOptions_JSType = 2 +) + +// Enum value maps for FieldOptions_JSType. +var ( + FieldOptions_JSType_name = map[int32]string{ + 0: "JS_NORMAL", + 1: "JS_STRING", + 2: "JS_NUMBER", + } + FieldOptions_JSType_value = map[string]int32{ + "JS_NORMAL": 0, + "JS_STRING": 1, + "JS_NUMBER": 2, + } +) + +func (x FieldOptions_JSType) Enum() *FieldOptions_JSType { + p := new(FieldOptions_JSType) + *p = x + return p +} + +func (x FieldOptions_JSType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FieldOptions_JSType) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_descriptor_proto_enumTypes[4].Descriptor() +} + +func (FieldOptions_JSType) Type() protoreflect.EnumType { + return &file_google_protobuf_descriptor_proto_enumTypes[4] +} + +func (x FieldOptions_JSType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *FieldOptions_JSType) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = FieldOptions_JSType(num) + return nil +} + +// Deprecated: Use FieldOptions_JSType.Descriptor instead. +func (FieldOptions_JSType) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{12, 1} +} + +// Is this method side-effect-free (or safe in HTTP parlance), or idempotent, +// or neither? HTTP based RPC implementation may choose GET verb for safe +// methods, and PUT verb for idempotent methods instead of the default POST. +type MethodOptions_IdempotencyLevel int32 + +const ( + MethodOptions_IDEMPOTENCY_UNKNOWN MethodOptions_IdempotencyLevel = 0 + MethodOptions_NO_SIDE_EFFECTS MethodOptions_IdempotencyLevel = 1 // implies idempotent + MethodOptions_IDEMPOTENT MethodOptions_IdempotencyLevel = 2 // idempotent, but may have side effects +) + +// Enum value maps for MethodOptions_IdempotencyLevel. +var ( + MethodOptions_IdempotencyLevel_name = map[int32]string{ + 0: "IDEMPOTENCY_UNKNOWN", + 1: "NO_SIDE_EFFECTS", + 2: "IDEMPOTENT", + } + MethodOptions_IdempotencyLevel_value = map[string]int32{ + "IDEMPOTENCY_UNKNOWN": 0, + "NO_SIDE_EFFECTS": 1, + "IDEMPOTENT": 2, + } +) + +func (x MethodOptions_IdempotencyLevel) Enum() *MethodOptions_IdempotencyLevel { + p := new(MethodOptions_IdempotencyLevel) + *p = x + return p +} + +func (x MethodOptions_IdempotencyLevel) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MethodOptions_IdempotencyLevel) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_descriptor_proto_enumTypes[5].Descriptor() +} + +func (MethodOptions_IdempotencyLevel) Type() protoreflect.EnumType { + return &file_google_protobuf_descriptor_proto_enumTypes[5] +} + +func (x MethodOptions_IdempotencyLevel) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *MethodOptions_IdempotencyLevel) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = MethodOptions_IdempotencyLevel(num) + return nil +} + +// Deprecated: Use MethodOptions_IdempotencyLevel.Descriptor instead. +func (MethodOptions_IdempotencyLevel) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{17, 0} +} + +// The protocol compiler can output a FileDescriptorSet containing the .proto +// files it parses. +type FileDescriptorSet struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + File []*FileDescriptorProto `protobuf:"bytes,1,rep,name=file" json:"file,omitempty"` +} + +func (x *FileDescriptorSet) Reset() { + *x = FileDescriptorSet{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FileDescriptorSet) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileDescriptorSet) ProtoMessage() {} + +func (x *FileDescriptorSet) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FileDescriptorSet.ProtoReflect.Descriptor instead. +func (*FileDescriptorSet) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{0} +} + +func (x *FileDescriptorSet) GetFile() []*FileDescriptorProto { + if x != nil { + return x.File + } + return nil +} + +// Describes a complete .proto file. +type FileDescriptorProto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // file name, relative to root of source tree + Package *string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"` // e.g. "foo", "foo.bar", etc. + // Names of files imported by this file. + Dependency []string `protobuf:"bytes,3,rep,name=dependency" json:"dependency,omitempty"` + // Indexes of the public imported files in the dependency list above. + PublicDependency []int32 `protobuf:"varint,10,rep,name=public_dependency,json=publicDependency" json:"public_dependency,omitempty"` + // Indexes of the weak imported files in the dependency list. + // For Google-internal migration only. Do not use. + WeakDependency []int32 `protobuf:"varint,11,rep,name=weak_dependency,json=weakDependency" json:"weak_dependency,omitempty"` + // All top-level definitions in this file. + MessageType []*DescriptorProto `protobuf:"bytes,4,rep,name=message_type,json=messageType" json:"message_type,omitempty"` + EnumType []*EnumDescriptorProto `protobuf:"bytes,5,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"` + Service []*ServiceDescriptorProto `protobuf:"bytes,6,rep,name=service" json:"service,omitempty"` + Extension []*FieldDescriptorProto `protobuf:"bytes,7,rep,name=extension" json:"extension,omitempty"` + Options *FileOptions `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"` + // This field contains optional information about the original source code. + // You may safely remove this entire field without harming runtime + // functionality of the descriptors -- the information is needed only by + // development tools. + SourceCodeInfo *SourceCodeInfo `protobuf:"bytes,9,opt,name=source_code_info,json=sourceCodeInfo" json:"source_code_info,omitempty"` + // The syntax of the proto file. + // The supported values are "proto2" and "proto3". + Syntax *string `protobuf:"bytes,12,opt,name=syntax" json:"syntax,omitempty"` +} + +func (x *FileDescriptorProto) Reset() { + *x = FileDescriptorProto{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FileDescriptorProto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileDescriptorProto) ProtoMessage() {} + +func (x *FileDescriptorProto) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FileDescriptorProto.ProtoReflect.Descriptor instead. +func (*FileDescriptorProto) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{1} +} + +func (x *FileDescriptorProto) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *FileDescriptorProto) GetPackage() string { + if x != nil && x.Package != nil { + return *x.Package + } + return "" +} + +func (x *FileDescriptorProto) GetDependency() []string { + if x != nil { + return x.Dependency + } + return nil +} + +func (x *FileDescriptorProto) GetPublicDependency() []int32 { + if x != nil { + return x.PublicDependency + } + return nil +} + +func (x *FileDescriptorProto) GetWeakDependency() []int32 { + if x != nil { + return x.WeakDependency + } + return nil +} + +func (x *FileDescriptorProto) GetMessageType() []*DescriptorProto { + if x != nil { + return x.MessageType + } + return nil +} + +func (x *FileDescriptorProto) GetEnumType() []*EnumDescriptorProto { + if x != nil { + return x.EnumType + } + return nil +} + +func (x *FileDescriptorProto) GetService() []*ServiceDescriptorProto { + if x != nil { + return x.Service + } + return nil +} + +func (x *FileDescriptorProto) GetExtension() []*FieldDescriptorProto { + if x != nil { + return x.Extension + } + return nil +} + +func (x *FileDescriptorProto) GetOptions() *FileOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *FileDescriptorProto) GetSourceCodeInfo() *SourceCodeInfo { + if x != nil { + return x.SourceCodeInfo + } + return nil +} + +func (x *FileDescriptorProto) GetSyntax() string { + if x != nil && x.Syntax != nil { + return *x.Syntax + } + return "" +} + +// Describes a message type. +type DescriptorProto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Field []*FieldDescriptorProto `protobuf:"bytes,2,rep,name=field" json:"field,omitempty"` + Extension []*FieldDescriptorProto `protobuf:"bytes,6,rep,name=extension" json:"extension,omitempty"` + NestedType []*DescriptorProto `protobuf:"bytes,3,rep,name=nested_type,json=nestedType" json:"nested_type,omitempty"` + EnumType []*EnumDescriptorProto `protobuf:"bytes,4,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"` + ExtensionRange []*DescriptorProto_ExtensionRange `protobuf:"bytes,5,rep,name=extension_range,json=extensionRange" json:"extension_range,omitempty"` + OneofDecl []*OneofDescriptorProto `protobuf:"bytes,8,rep,name=oneof_decl,json=oneofDecl" json:"oneof_decl,omitempty"` + Options *MessageOptions `protobuf:"bytes,7,opt,name=options" json:"options,omitempty"` + ReservedRange []*DescriptorProto_ReservedRange `protobuf:"bytes,9,rep,name=reserved_range,json=reservedRange" json:"reserved_range,omitempty"` + // Reserved field names, which may not be used by fields in the same message. + // A given name may only be reserved once. + ReservedName []string `protobuf:"bytes,10,rep,name=reserved_name,json=reservedName" json:"reserved_name,omitempty"` +} + +func (x *DescriptorProto) Reset() { + *x = DescriptorProto{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DescriptorProto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescriptorProto) ProtoMessage() {} + +func (x *DescriptorProto) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DescriptorProto.ProtoReflect.Descriptor instead. +func (*DescriptorProto) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{2} +} + +func (x *DescriptorProto) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *DescriptorProto) GetField() []*FieldDescriptorProto { + if x != nil { + return x.Field + } + return nil +} + +func (x *DescriptorProto) GetExtension() []*FieldDescriptorProto { + if x != nil { + return x.Extension + } + return nil +} + +func (x *DescriptorProto) GetNestedType() []*DescriptorProto { + if x != nil { + return x.NestedType + } + return nil +} + +func (x *DescriptorProto) GetEnumType() []*EnumDescriptorProto { + if x != nil { + return x.EnumType + } + return nil +} + +func (x *DescriptorProto) GetExtensionRange() []*DescriptorProto_ExtensionRange { + if x != nil { + return x.ExtensionRange + } + return nil +} + +func (x *DescriptorProto) GetOneofDecl() []*OneofDescriptorProto { + if x != nil { + return x.OneofDecl + } + return nil +} + +func (x *DescriptorProto) GetOptions() *MessageOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *DescriptorProto) GetReservedRange() []*DescriptorProto_ReservedRange { + if x != nil { + return x.ReservedRange + } + return nil +} + +func (x *DescriptorProto) GetReservedName() []string { + if x != nil { + return x.ReservedName + } + return nil +} + +type ExtensionRangeOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +func (x *ExtensionRangeOptions) Reset() { + *x = ExtensionRangeOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExtensionRangeOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExtensionRangeOptions) ProtoMessage() {} + +func (x *ExtensionRangeOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExtensionRangeOptions.ProtoReflect.Descriptor instead. +func (*ExtensionRangeOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{3} +} + +var extRange_ExtensionRangeOptions = []protoiface.ExtensionRangeV1{ + {Start: 1000, End: 536870911}, +} + +// Deprecated: Use ExtensionRangeOptions.ProtoReflect.Descriptor.ExtensionRanges instead. +func (*ExtensionRangeOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 { + return extRange_ExtensionRangeOptions +} + +func (x *ExtensionRangeOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +// Describes a field within a message. +type FieldDescriptorProto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Number *int32 `protobuf:"varint,3,opt,name=number" json:"number,omitempty"` + Label *FieldDescriptorProto_Label `protobuf:"varint,4,opt,name=label,enum=google.protobuf.FieldDescriptorProto_Label" json:"label,omitempty"` + // If type_name is set, this need not be set. If both this and type_name + // are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. + Type *FieldDescriptorProto_Type `protobuf:"varint,5,opt,name=type,enum=google.protobuf.FieldDescriptorProto_Type" json:"type,omitempty"` + // For message and enum types, this is the name of the type. If the name + // starts with a '.', it is fully-qualified. Otherwise, C++-like scoping + // rules are used to find the type (i.e. first the nested types within this + // message are searched, then within the parent, on up to the root + // namespace). + TypeName *string `protobuf:"bytes,6,opt,name=type_name,json=typeName" json:"type_name,omitempty"` + // For extensions, this is the name of the type being extended. It is + // resolved in the same manner as type_name. + Extendee *string `protobuf:"bytes,2,opt,name=extendee" json:"extendee,omitempty"` + // For numeric types, contains the original text representation of the value. + // For booleans, "true" or "false". + // For strings, contains the default text contents (not escaped in any way). + // For bytes, contains the C escaped value. All bytes >= 128 are escaped. + // TODO(kenton): Base-64 encode? + DefaultValue *string `protobuf:"bytes,7,opt,name=default_value,json=defaultValue" json:"default_value,omitempty"` + // If set, gives the index of a oneof in the containing type's oneof_decl + // list. This field is a member of that oneof. + OneofIndex *int32 `protobuf:"varint,9,opt,name=oneof_index,json=oneofIndex" json:"oneof_index,omitempty"` + // JSON name of this field. The value is set by protocol compiler. If the + // user has set a "json_name" option on this field, that option's value + // will be used. Otherwise, it's deduced from the field's name by converting + // it to camelCase. + JsonName *string `protobuf:"bytes,10,opt,name=json_name,json=jsonName" json:"json_name,omitempty"` + Options *FieldOptions `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"` + // If true, this is a proto3 "optional". When a proto3 field is optional, it + // tracks presence regardless of field type. + // + // When proto3_optional is true, this field must be belong to a oneof to + // signal to old proto3 clients that presence is tracked for this field. This + // oneof is known as a "synthetic" oneof, and this field must be its sole + // member (each proto3 optional field gets its own synthetic oneof). Synthetic + // oneofs exist in the descriptor only, and do not generate any API. Synthetic + // oneofs must be ordered after all "real" oneofs. + // + // For message fields, proto3_optional doesn't create any semantic change, + // since non-repeated message fields always track presence. However it still + // indicates the semantic detail of whether the user wrote "optional" or not. + // This can be useful for round-tripping the .proto file. For consistency we + // give message fields a synthetic oneof also, even though it is not required + // to track presence. This is especially important because the parser can't + // tell if a field is a message or an enum, so it must always create a + // synthetic oneof. + // + // Proto2 optional fields do not set this flag, because they already indicate + // optional with `LABEL_OPTIONAL`. + Proto3Optional *bool `protobuf:"varint,17,opt,name=proto3_optional,json=proto3Optional" json:"proto3_optional,omitempty"` +} + +func (x *FieldDescriptorProto) Reset() { + *x = FieldDescriptorProto{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FieldDescriptorProto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FieldDescriptorProto) ProtoMessage() {} + +func (x *FieldDescriptorProto) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FieldDescriptorProto.ProtoReflect.Descriptor instead. +func (*FieldDescriptorProto) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{4} +} + +func (x *FieldDescriptorProto) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *FieldDescriptorProto) GetNumber() int32 { + if x != nil && x.Number != nil { + return *x.Number + } + return 0 +} + +func (x *FieldDescriptorProto) GetLabel() FieldDescriptorProto_Label { + if x != nil && x.Label != nil { + return *x.Label + } + return FieldDescriptorProto_LABEL_OPTIONAL +} + +func (x *FieldDescriptorProto) GetType() FieldDescriptorProto_Type { + if x != nil && x.Type != nil { + return *x.Type + } + return FieldDescriptorProto_TYPE_DOUBLE +} + +func (x *FieldDescriptorProto) GetTypeName() string { + if x != nil && x.TypeName != nil { + return *x.TypeName + } + return "" +} + +func (x *FieldDescriptorProto) GetExtendee() string { + if x != nil && x.Extendee != nil { + return *x.Extendee + } + return "" +} + +func (x *FieldDescriptorProto) GetDefaultValue() string { + if x != nil && x.DefaultValue != nil { + return *x.DefaultValue + } + return "" +} + +func (x *FieldDescriptorProto) GetOneofIndex() int32 { + if x != nil && x.OneofIndex != nil { + return *x.OneofIndex + } + return 0 +} + +func (x *FieldDescriptorProto) GetJsonName() string { + if x != nil && x.JsonName != nil { + return *x.JsonName + } + return "" +} + +func (x *FieldDescriptorProto) GetOptions() *FieldOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *FieldDescriptorProto) GetProto3Optional() bool { + if x != nil && x.Proto3Optional != nil { + return *x.Proto3Optional + } + return false +} + +// Describes a oneof. +type OneofDescriptorProto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Options *OneofOptions `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"` +} + +func (x *OneofDescriptorProto) Reset() { + *x = OneofDescriptorProto{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OneofDescriptorProto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OneofDescriptorProto) ProtoMessage() {} + +func (x *OneofDescriptorProto) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OneofDescriptorProto.ProtoReflect.Descriptor instead. +func (*OneofDescriptorProto) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{5} +} + +func (x *OneofDescriptorProto) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *OneofDescriptorProto) GetOptions() *OneofOptions { + if x != nil { + return x.Options + } + return nil +} + +// Describes an enum type. +type EnumDescriptorProto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Value []*EnumValueDescriptorProto `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"` + Options *EnumOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` + // Range of reserved numeric values. Reserved numeric values may not be used + // by enum values in the same enum declaration. Reserved ranges may not + // overlap. + ReservedRange []*EnumDescriptorProto_EnumReservedRange `protobuf:"bytes,4,rep,name=reserved_range,json=reservedRange" json:"reserved_range,omitempty"` + // Reserved enum value names, which may not be reused. A given name may only + // be reserved once. + ReservedName []string `protobuf:"bytes,5,rep,name=reserved_name,json=reservedName" json:"reserved_name,omitempty"` +} + +func (x *EnumDescriptorProto) Reset() { + *x = EnumDescriptorProto{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EnumDescriptorProto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnumDescriptorProto) ProtoMessage() {} + +func (x *EnumDescriptorProto) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EnumDescriptorProto.ProtoReflect.Descriptor instead. +func (*EnumDescriptorProto) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{6} +} + +func (x *EnumDescriptorProto) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *EnumDescriptorProto) GetValue() []*EnumValueDescriptorProto { + if x != nil { + return x.Value + } + return nil +} + +func (x *EnumDescriptorProto) GetOptions() *EnumOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *EnumDescriptorProto) GetReservedRange() []*EnumDescriptorProto_EnumReservedRange { + if x != nil { + return x.ReservedRange + } + return nil +} + +func (x *EnumDescriptorProto) GetReservedName() []string { + if x != nil { + return x.ReservedName + } + return nil +} + +// Describes a value within an enum. +type EnumValueDescriptorProto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Number *int32 `protobuf:"varint,2,opt,name=number" json:"number,omitempty"` + Options *EnumValueOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` +} + +func (x *EnumValueDescriptorProto) Reset() { + *x = EnumValueDescriptorProto{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EnumValueDescriptorProto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnumValueDescriptorProto) ProtoMessage() {} + +func (x *EnumValueDescriptorProto) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EnumValueDescriptorProto.ProtoReflect.Descriptor instead. +func (*EnumValueDescriptorProto) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{7} +} + +func (x *EnumValueDescriptorProto) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *EnumValueDescriptorProto) GetNumber() int32 { + if x != nil && x.Number != nil { + return *x.Number + } + return 0 +} + +func (x *EnumValueDescriptorProto) GetOptions() *EnumValueOptions { + if x != nil { + return x.Options + } + return nil +} + +// Describes a service. +type ServiceDescriptorProto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Method []*MethodDescriptorProto `protobuf:"bytes,2,rep,name=method" json:"method,omitempty"` + Options *ServiceOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` +} + +func (x *ServiceDescriptorProto) Reset() { + *x = ServiceDescriptorProto{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServiceDescriptorProto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServiceDescriptorProto) ProtoMessage() {} + +func (x *ServiceDescriptorProto) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ServiceDescriptorProto.ProtoReflect.Descriptor instead. +func (*ServiceDescriptorProto) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{8} +} + +func (x *ServiceDescriptorProto) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *ServiceDescriptorProto) GetMethod() []*MethodDescriptorProto { + if x != nil { + return x.Method + } + return nil +} + +func (x *ServiceDescriptorProto) GetOptions() *ServiceOptions { + if x != nil { + return x.Options + } + return nil +} + +// Describes a method of a service. +type MethodDescriptorProto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + // Input and output type names. These are resolved in the same way as + // FieldDescriptorProto.type_name, but must refer to a message type. + InputType *string `protobuf:"bytes,2,opt,name=input_type,json=inputType" json:"input_type,omitempty"` + OutputType *string `protobuf:"bytes,3,opt,name=output_type,json=outputType" json:"output_type,omitempty"` + Options *MethodOptions `protobuf:"bytes,4,opt,name=options" json:"options,omitempty"` + // Identifies if client streams multiple client messages + ClientStreaming *bool `protobuf:"varint,5,opt,name=client_streaming,json=clientStreaming,def=0" json:"client_streaming,omitempty"` + // Identifies if server streams multiple server messages + ServerStreaming *bool `protobuf:"varint,6,opt,name=server_streaming,json=serverStreaming,def=0" json:"server_streaming,omitempty"` +} + +// Default values for MethodDescriptorProto fields. +const ( + Default_MethodDescriptorProto_ClientStreaming = bool(false) + Default_MethodDescriptorProto_ServerStreaming = bool(false) +) + +func (x *MethodDescriptorProto) Reset() { + *x = MethodDescriptorProto{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MethodDescriptorProto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MethodDescriptorProto) ProtoMessage() {} + +func (x *MethodDescriptorProto) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MethodDescriptorProto.ProtoReflect.Descriptor instead. +func (*MethodDescriptorProto) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{9} +} + +func (x *MethodDescriptorProto) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *MethodDescriptorProto) GetInputType() string { + if x != nil && x.InputType != nil { + return *x.InputType + } + return "" +} + +func (x *MethodDescriptorProto) GetOutputType() string { + if x != nil && x.OutputType != nil { + return *x.OutputType + } + return "" +} + +func (x *MethodDescriptorProto) GetOptions() *MethodOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *MethodDescriptorProto) GetClientStreaming() bool { + if x != nil && x.ClientStreaming != nil { + return *x.ClientStreaming + } + return Default_MethodDescriptorProto_ClientStreaming +} + +func (x *MethodDescriptorProto) GetServerStreaming() bool { + if x != nil && x.ServerStreaming != nil { + return *x.ServerStreaming + } + return Default_MethodDescriptorProto_ServerStreaming +} + +type FileOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // Sets the Java package where classes generated from this .proto will be + // placed. By default, the proto package is used, but this is often + // inappropriate because proto packages do not normally start with backwards + // domain names. + JavaPackage *string `protobuf:"bytes,1,opt,name=java_package,json=javaPackage" json:"java_package,omitempty"` + // If set, all the classes from the .proto file are wrapped in a single + // outer class with the given name. This applies to both Proto1 + // (equivalent to the old "--one_java_file" option) and Proto2 (where + // a .proto always translates to a single class, but you may want to + // explicitly choose the class name). + JavaOuterClassname *string `protobuf:"bytes,8,opt,name=java_outer_classname,json=javaOuterClassname" json:"java_outer_classname,omitempty"` + // If set true, then the Java code generator will generate a separate .java + // file for each top-level message, enum, and service defined in the .proto + // file. Thus, these types will *not* be nested inside the outer class + // named by java_outer_classname. However, the outer class will still be + // generated to contain the file's getDescriptor() method as well as any + // top-level extensions defined in the file. + JavaMultipleFiles *bool `protobuf:"varint,10,opt,name=java_multiple_files,json=javaMultipleFiles,def=0" json:"java_multiple_files,omitempty"` + // This option does nothing. + // + // Deprecated: Do not use. + JavaGenerateEqualsAndHash *bool `protobuf:"varint,20,opt,name=java_generate_equals_and_hash,json=javaGenerateEqualsAndHash" json:"java_generate_equals_and_hash,omitempty"` + // If set true, then the Java2 code generator will generate code that + // throws an exception whenever an attempt is made to assign a non-UTF-8 + // byte sequence to a string field. + // Message reflection will do the same. + // However, an extension field still accepts non-UTF-8 byte sequences. + // This option has no effect on when used with the lite runtime. + JavaStringCheckUtf8 *bool `protobuf:"varint,27,opt,name=java_string_check_utf8,json=javaStringCheckUtf8,def=0" json:"java_string_check_utf8,omitempty"` + OptimizeFor *FileOptions_OptimizeMode `protobuf:"varint,9,opt,name=optimize_for,json=optimizeFor,enum=google.protobuf.FileOptions_OptimizeMode,def=1" json:"optimize_for,omitempty"` + // Sets the Go package where structs generated from this .proto will be + // placed. If omitted, the Go package will be derived from the following: + // - The basename of the package import path, if provided. + // - Otherwise, the package statement in the .proto file, if present. + // - Otherwise, the basename of the .proto file, without extension. + GoPackage *string `protobuf:"bytes,11,opt,name=go_package,json=goPackage" json:"go_package,omitempty"` + // Should generic services be generated in each language? "Generic" services + // are not specific to any particular RPC system. They are generated by the + // main code generators in each language (without additional plugins). + // Generic services were the only kind of service generation supported by + // early versions of google.protobuf. + // + // Generic services are now considered deprecated in favor of using plugins + // that generate code specific to your particular RPC system. Therefore, + // these default to false. Old code which depends on generic services should + // explicitly set them to true. + CcGenericServices *bool `protobuf:"varint,16,opt,name=cc_generic_services,json=ccGenericServices,def=0" json:"cc_generic_services,omitempty"` + JavaGenericServices *bool `protobuf:"varint,17,opt,name=java_generic_services,json=javaGenericServices,def=0" json:"java_generic_services,omitempty"` + PyGenericServices *bool `protobuf:"varint,18,opt,name=py_generic_services,json=pyGenericServices,def=0" json:"py_generic_services,omitempty"` + PhpGenericServices *bool `protobuf:"varint,42,opt,name=php_generic_services,json=phpGenericServices,def=0" json:"php_generic_services,omitempty"` + // Is this file deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for everything in the file, or it will be completely ignored; in the very + // least, this is a formalization for deprecating files. + Deprecated *bool `protobuf:"varint,23,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // Enables the use of arenas for the proto messages in this file. This applies + // only to generated classes for C++. + CcEnableArenas *bool `protobuf:"varint,31,opt,name=cc_enable_arenas,json=ccEnableArenas,def=1" json:"cc_enable_arenas,omitempty"` + // Sets the objective c class prefix which is prepended to all objective c + // generated classes from this .proto. There is no default. + ObjcClassPrefix *string `protobuf:"bytes,36,opt,name=objc_class_prefix,json=objcClassPrefix" json:"objc_class_prefix,omitempty"` + // Namespace for generated classes; defaults to the package. + CsharpNamespace *string `protobuf:"bytes,37,opt,name=csharp_namespace,json=csharpNamespace" json:"csharp_namespace,omitempty"` + // By default Swift generators will take the proto package and CamelCase it + // replacing '.' with underscore and use that to prefix the types/symbols + // defined. When this options is provided, they will use this value instead + // to prefix the types/symbols defined. + SwiftPrefix *string `protobuf:"bytes,39,opt,name=swift_prefix,json=swiftPrefix" json:"swift_prefix,omitempty"` + // Sets the php class prefix which is prepended to all php generated classes + // from this .proto. Default is empty. + PhpClassPrefix *string `protobuf:"bytes,40,opt,name=php_class_prefix,json=phpClassPrefix" json:"php_class_prefix,omitempty"` + // Use this option to change the namespace of php generated classes. Default + // is empty. When this option is empty, the package name will be used for + // determining the namespace. + PhpNamespace *string `protobuf:"bytes,41,opt,name=php_namespace,json=phpNamespace" json:"php_namespace,omitempty"` + // Use this option to change the namespace of php generated metadata classes. + // Default is empty. When this option is empty, the proto file name will be + // used for determining the namespace. + PhpMetadataNamespace *string `protobuf:"bytes,44,opt,name=php_metadata_namespace,json=phpMetadataNamespace" json:"php_metadata_namespace,omitempty"` + // Use this option to change the package of ruby generated classes. Default + // is empty. When this option is not set, the package name will be used for + // determining the ruby package. + RubyPackage *string `protobuf:"bytes,45,opt,name=ruby_package,json=rubyPackage" json:"ruby_package,omitempty"` + // The parser stores options it doesn't recognize here. + // See the documentation for the "Options" section above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +// Default values for FileOptions fields. +const ( + Default_FileOptions_JavaMultipleFiles = bool(false) + Default_FileOptions_JavaStringCheckUtf8 = bool(false) + Default_FileOptions_OptimizeFor = FileOptions_SPEED + Default_FileOptions_CcGenericServices = bool(false) + Default_FileOptions_JavaGenericServices = bool(false) + Default_FileOptions_PyGenericServices = bool(false) + Default_FileOptions_PhpGenericServices = bool(false) + Default_FileOptions_Deprecated = bool(false) + Default_FileOptions_CcEnableArenas = bool(true) +) + +func (x *FileOptions) Reset() { + *x = FileOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FileOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileOptions) ProtoMessage() {} + +func (x *FileOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FileOptions.ProtoReflect.Descriptor instead. +func (*FileOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{10} +} + +var extRange_FileOptions = []protoiface.ExtensionRangeV1{ + {Start: 1000, End: 536870911}, +} + +// Deprecated: Use FileOptions.ProtoReflect.Descriptor.ExtensionRanges instead. +func (*FileOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 { + return extRange_FileOptions +} + +func (x *FileOptions) GetJavaPackage() string { + if x != nil && x.JavaPackage != nil { + return *x.JavaPackage + } + return "" +} + +func (x *FileOptions) GetJavaOuterClassname() string { + if x != nil && x.JavaOuterClassname != nil { + return *x.JavaOuterClassname + } + return "" +} + +func (x *FileOptions) GetJavaMultipleFiles() bool { + if x != nil && x.JavaMultipleFiles != nil { + return *x.JavaMultipleFiles + } + return Default_FileOptions_JavaMultipleFiles +} + +// Deprecated: Do not use. +func (x *FileOptions) GetJavaGenerateEqualsAndHash() bool { + if x != nil && x.JavaGenerateEqualsAndHash != nil { + return *x.JavaGenerateEqualsAndHash + } + return false +} + +func (x *FileOptions) GetJavaStringCheckUtf8() bool { + if x != nil && x.JavaStringCheckUtf8 != nil { + return *x.JavaStringCheckUtf8 + } + return Default_FileOptions_JavaStringCheckUtf8 +} + +func (x *FileOptions) GetOptimizeFor() FileOptions_OptimizeMode { + if x != nil && x.OptimizeFor != nil { + return *x.OptimizeFor + } + return Default_FileOptions_OptimizeFor +} + +func (x *FileOptions) GetGoPackage() string { + if x != nil && x.GoPackage != nil { + return *x.GoPackage + } + return "" +} + +func (x *FileOptions) GetCcGenericServices() bool { + if x != nil && x.CcGenericServices != nil { + return *x.CcGenericServices + } + return Default_FileOptions_CcGenericServices +} + +func (x *FileOptions) GetJavaGenericServices() bool { + if x != nil && x.JavaGenericServices != nil { + return *x.JavaGenericServices + } + return Default_FileOptions_JavaGenericServices +} + +func (x *FileOptions) GetPyGenericServices() bool { + if x != nil && x.PyGenericServices != nil { + return *x.PyGenericServices + } + return Default_FileOptions_PyGenericServices +} + +func (x *FileOptions) GetPhpGenericServices() bool { + if x != nil && x.PhpGenericServices != nil { + return *x.PhpGenericServices + } + return Default_FileOptions_PhpGenericServices +} + +func (x *FileOptions) GetDeprecated() bool { + if x != nil && x.Deprecated != nil { + return *x.Deprecated + } + return Default_FileOptions_Deprecated +} + +func (x *FileOptions) GetCcEnableArenas() bool { + if x != nil && x.CcEnableArenas != nil { + return *x.CcEnableArenas + } + return Default_FileOptions_CcEnableArenas +} + +func (x *FileOptions) GetObjcClassPrefix() string { + if x != nil && x.ObjcClassPrefix != nil { + return *x.ObjcClassPrefix + } + return "" +} + +func (x *FileOptions) GetCsharpNamespace() string { + if x != nil && x.CsharpNamespace != nil { + return *x.CsharpNamespace + } + return "" +} + +func (x *FileOptions) GetSwiftPrefix() string { + if x != nil && x.SwiftPrefix != nil { + return *x.SwiftPrefix + } + return "" +} + +func (x *FileOptions) GetPhpClassPrefix() string { + if x != nil && x.PhpClassPrefix != nil { + return *x.PhpClassPrefix + } + return "" +} + +func (x *FileOptions) GetPhpNamespace() string { + if x != nil && x.PhpNamespace != nil { + return *x.PhpNamespace + } + return "" +} + +func (x *FileOptions) GetPhpMetadataNamespace() string { + if x != nil && x.PhpMetadataNamespace != nil { + return *x.PhpMetadataNamespace + } + return "" +} + +func (x *FileOptions) GetRubyPackage() string { + if x != nil && x.RubyPackage != nil { + return *x.RubyPackage + } + return "" +} + +func (x *FileOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +type MessageOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // Set true to use the old proto1 MessageSet wire format for extensions. + // This is provided for backwards-compatibility with the MessageSet wire + // format. You should not use this for any other reason: It's less + // efficient, has fewer features, and is more complicated. + // + // The message must be defined exactly as follows: + // message Foo { + // option message_set_wire_format = true; + // extensions 4 to max; + // } + // Note that the message cannot have any defined fields; MessageSets only + // have extensions. + // + // All extensions of your type must be singular messages; e.g. they cannot + // be int32s, enums, or repeated messages. + // + // Because this is an option, the above two restrictions are not enforced by + // the protocol compiler. + MessageSetWireFormat *bool `protobuf:"varint,1,opt,name=message_set_wire_format,json=messageSetWireFormat,def=0" json:"message_set_wire_format,omitempty"` + // Disables the generation of the standard "descriptor()" accessor, which can + // conflict with a field of the same name. This is meant to make migration + // from proto1 easier; new code should avoid fields named "descriptor". + NoStandardDescriptorAccessor *bool `protobuf:"varint,2,opt,name=no_standard_descriptor_accessor,json=noStandardDescriptorAccessor,def=0" json:"no_standard_descriptor_accessor,omitempty"` + // Is this message deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the message, or it will be completely ignored; in the very least, + // this is a formalization for deprecating messages. + Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // Whether the message is an automatically generated map entry type for the + // maps field. + // + // For maps fields: + // map map_field = 1; + // The parsed descriptor looks like: + // message MapFieldEntry { + // option map_entry = true; + // optional KeyType key = 1; + // optional ValueType value = 2; + // } + // repeated MapFieldEntry map_field = 1; + // + // Implementations may choose not to generate the map_entry=true message, but + // use a native map in the target language to hold the keys and values. + // The reflection APIs in such implementations still need to work as + // if the field is a repeated message field. + // + // NOTE: Do not set the option in .proto files. Always use the maps syntax + // instead. The option should only be implicitly set by the proto compiler + // parser. + MapEntry *bool `protobuf:"varint,7,opt,name=map_entry,json=mapEntry" json:"map_entry,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +// Default values for MessageOptions fields. +const ( + Default_MessageOptions_MessageSetWireFormat = bool(false) + Default_MessageOptions_NoStandardDescriptorAccessor = bool(false) + Default_MessageOptions_Deprecated = bool(false) +) + +func (x *MessageOptions) Reset() { + *x = MessageOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MessageOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MessageOptions) ProtoMessage() {} + +func (x *MessageOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MessageOptions.ProtoReflect.Descriptor instead. +func (*MessageOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{11} +} + +var extRange_MessageOptions = []protoiface.ExtensionRangeV1{ + {Start: 1000, End: 536870911}, +} + +// Deprecated: Use MessageOptions.ProtoReflect.Descriptor.ExtensionRanges instead. +func (*MessageOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 { + return extRange_MessageOptions +} + +func (x *MessageOptions) GetMessageSetWireFormat() bool { + if x != nil && x.MessageSetWireFormat != nil { + return *x.MessageSetWireFormat + } + return Default_MessageOptions_MessageSetWireFormat +} + +func (x *MessageOptions) GetNoStandardDescriptorAccessor() bool { + if x != nil && x.NoStandardDescriptorAccessor != nil { + return *x.NoStandardDescriptorAccessor + } + return Default_MessageOptions_NoStandardDescriptorAccessor +} + +func (x *MessageOptions) GetDeprecated() bool { + if x != nil && x.Deprecated != nil { + return *x.Deprecated + } + return Default_MessageOptions_Deprecated +} + +func (x *MessageOptions) GetMapEntry() bool { + if x != nil && x.MapEntry != nil { + return *x.MapEntry + } + return false +} + +func (x *MessageOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +type FieldOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // The ctype option instructs the C++ code generator to use a different + // representation of the field than it normally would. See the specific + // options below. This option is not yet implemented in the open source + // release -- sorry, we'll try to include it in a future version! + Ctype *FieldOptions_CType `protobuf:"varint,1,opt,name=ctype,enum=google.protobuf.FieldOptions_CType,def=0" json:"ctype,omitempty"` + // The packed option can be enabled for repeated primitive fields to enable + // a more efficient representation on the wire. Rather than repeatedly + // writing the tag and type for each element, the entire array is encoded as + // a single length-delimited blob. In proto3, only explicit setting it to + // false will avoid using packed encoding. + Packed *bool `protobuf:"varint,2,opt,name=packed" json:"packed,omitempty"` + // The jstype option determines the JavaScript type used for values of the + // field. The option is permitted only for 64 bit integral and fixed types + // (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING + // is represented as JavaScript string, which avoids loss of precision that + // can happen when a large value is converted to a floating point JavaScript. + // Specifying JS_NUMBER for the jstype causes the generated JavaScript code to + // use the JavaScript "number" type. The behavior of the default option + // JS_NORMAL is implementation dependent. + // + // This option is an enum to permit additional types to be added, e.g. + // goog.math.Integer. + Jstype *FieldOptions_JSType `protobuf:"varint,6,opt,name=jstype,enum=google.protobuf.FieldOptions_JSType,def=0" json:"jstype,omitempty"` + // Should this field be parsed lazily? Lazy applies only to message-type + // fields. It means that when the outer message is initially parsed, the + // inner message's contents will not be parsed but instead stored in encoded + // form. The inner message will actually be parsed when it is first accessed. + // + // This is only a hint. Implementations are free to choose whether to use + // eager or lazy parsing regardless of the value of this option. However, + // setting this option true suggests that the protocol author believes that + // using lazy parsing on this field is worth the additional bookkeeping + // overhead typically needed to implement it. + // + // This option does not affect the public interface of any generated code; + // all method signatures remain the same. Furthermore, thread-safety of the + // interface is not affected by this option; const methods remain safe to + // call from multiple threads concurrently, while non-const methods continue + // to require exclusive access. + // + // + // Note that implementations may choose not to check required fields within + // a lazy sub-message. That is, calling IsInitialized() on the outer message + // may return true even if the inner message has missing required fields. + // This is necessary because otherwise the inner message would have to be + // parsed in order to perform the check, defeating the purpose of lazy + // parsing. An implementation which chooses not to check required fields + // must be consistent about it. That is, for any particular sub-message, the + // implementation must either *always* check its required fields, or *never* + // check its required fields, regardless of whether or not the message has + // been parsed. + Lazy *bool `protobuf:"varint,5,opt,name=lazy,def=0" json:"lazy,omitempty"` + // Is this field deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for accessors, or it will be completely ignored; in the very least, this + // is a formalization for deprecating fields. + Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // For Google-internal migration only. Do not use. + Weak *bool `protobuf:"varint,10,opt,name=weak,def=0" json:"weak,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +// Default values for FieldOptions fields. +const ( + Default_FieldOptions_Ctype = FieldOptions_STRING + Default_FieldOptions_Jstype = FieldOptions_JS_NORMAL + Default_FieldOptions_Lazy = bool(false) + Default_FieldOptions_Deprecated = bool(false) + Default_FieldOptions_Weak = bool(false) +) + +func (x *FieldOptions) Reset() { + *x = FieldOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FieldOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FieldOptions) ProtoMessage() {} + +func (x *FieldOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FieldOptions.ProtoReflect.Descriptor instead. +func (*FieldOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{12} +} + +var extRange_FieldOptions = []protoiface.ExtensionRangeV1{ + {Start: 1000, End: 536870911}, +} + +// Deprecated: Use FieldOptions.ProtoReflect.Descriptor.ExtensionRanges instead. +func (*FieldOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 { + return extRange_FieldOptions +} + +func (x *FieldOptions) GetCtype() FieldOptions_CType { + if x != nil && x.Ctype != nil { + return *x.Ctype + } + return Default_FieldOptions_Ctype +} + +func (x *FieldOptions) GetPacked() bool { + if x != nil && x.Packed != nil { + return *x.Packed + } + return false +} + +func (x *FieldOptions) GetJstype() FieldOptions_JSType { + if x != nil && x.Jstype != nil { + return *x.Jstype + } + return Default_FieldOptions_Jstype +} + +func (x *FieldOptions) GetLazy() bool { + if x != nil && x.Lazy != nil { + return *x.Lazy + } + return Default_FieldOptions_Lazy +} + +func (x *FieldOptions) GetDeprecated() bool { + if x != nil && x.Deprecated != nil { + return *x.Deprecated + } + return Default_FieldOptions_Deprecated +} + +func (x *FieldOptions) GetWeak() bool { + if x != nil && x.Weak != nil { + return *x.Weak + } + return Default_FieldOptions_Weak +} + +func (x *FieldOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +type OneofOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +func (x *OneofOptions) Reset() { + *x = OneofOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OneofOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OneofOptions) ProtoMessage() {} + +func (x *OneofOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OneofOptions.ProtoReflect.Descriptor instead. +func (*OneofOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{13} +} + +var extRange_OneofOptions = []protoiface.ExtensionRangeV1{ + {Start: 1000, End: 536870911}, +} + +// Deprecated: Use OneofOptions.ProtoReflect.Descriptor.ExtensionRanges instead. +func (*OneofOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 { + return extRange_OneofOptions +} + +func (x *OneofOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +type EnumOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // Set this option to true to allow mapping different tag names to the same + // value. + AllowAlias *bool `protobuf:"varint,2,opt,name=allow_alias,json=allowAlias" json:"allow_alias,omitempty"` + // Is this enum deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the enum, or it will be completely ignored; in the very least, this + // is a formalization for deprecating enums. + Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +// Default values for EnumOptions fields. +const ( + Default_EnumOptions_Deprecated = bool(false) +) + +func (x *EnumOptions) Reset() { + *x = EnumOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EnumOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnumOptions) ProtoMessage() {} + +func (x *EnumOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EnumOptions.ProtoReflect.Descriptor instead. +func (*EnumOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{14} +} + +var extRange_EnumOptions = []protoiface.ExtensionRangeV1{ + {Start: 1000, End: 536870911}, +} + +// Deprecated: Use EnumOptions.ProtoReflect.Descriptor.ExtensionRanges instead. +func (*EnumOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 { + return extRange_EnumOptions +} + +func (x *EnumOptions) GetAllowAlias() bool { + if x != nil && x.AllowAlias != nil { + return *x.AllowAlias + } + return false +} + +func (x *EnumOptions) GetDeprecated() bool { + if x != nil && x.Deprecated != nil { + return *x.Deprecated + } + return Default_EnumOptions_Deprecated +} + +func (x *EnumOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +type EnumValueOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // Is this enum value deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the enum value, or it will be completely ignored; in the very least, + // this is a formalization for deprecating enum values. + Deprecated *bool `protobuf:"varint,1,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +// Default values for EnumValueOptions fields. +const ( + Default_EnumValueOptions_Deprecated = bool(false) +) + +func (x *EnumValueOptions) Reset() { + *x = EnumValueOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EnumValueOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnumValueOptions) ProtoMessage() {} + +func (x *EnumValueOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EnumValueOptions.ProtoReflect.Descriptor instead. +func (*EnumValueOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{15} +} + +var extRange_EnumValueOptions = []protoiface.ExtensionRangeV1{ + {Start: 1000, End: 536870911}, +} + +// Deprecated: Use EnumValueOptions.ProtoReflect.Descriptor.ExtensionRanges instead. +func (*EnumValueOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 { + return extRange_EnumValueOptions +} + +func (x *EnumValueOptions) GetDeprecated() bool { + if x != nil && x.Deprecated != nil { + return *x.Deprecated + } + return Default_EnumValueOptions_Deprecated +} + +func (x *EnumValueOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +type ServiceOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // Is this service deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the service, or it will be completely ignored; in the very least, + // this is a formalization for deprecating services. + Deprecated *bool `protobuf:"varint,33,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +// Default values for ServiceOptions fields. +const ( + Default_ServiceOptions_Deprecated = bool(false) +) + +func (x *ServiceOptions) Reset() { + *x = ServiceOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServiceOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServiceOptions) ProtoMessage() {} + +func (x *ServiceOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ServiceOptions.ProtoReflect.Descriptor instead. +func (*ServiceOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{16} +} + +var extRange_ServiceOptions = []protoiface.ExtensionRangeV1{ + {Start: 1000, End: 536870911}, +} + +// Deprecated: Use ServiceOptions.ProtoReflect.Descriptor.ExtensionRanges instead. +func (*ServiceOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 { + return extRange_ServiceOptions +} + +func (x *ServiceOptions) GetDeprecated() bool { + if x != nil && x.Deprecated != nil { + return *x.Deprecated + } + return Default_ServiceOptions_Deprecated +} + +func (x *ServiceOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +type MethodOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // Is this method deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the method, or it will be completely ignored; in the very least, + // this is a formalization for deprecating methods. + Deprecated *bool `protobuf:"varint,33,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + IdempotencyLevel *MethodOptions_IdempotencyLevel `protobuf:"varint,34,opt,name=idempotency_level,json=idempotencyLevel,enum=google.protobuf.MethodOptions_IdempotencyLevel,def=0" json:"idempotency_level,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +// Default values for MethodOptions fields. +const ( + Default_MethodOptions_Deprecated = bool(false) + Default_MethodOptions_IdempotencyLevel = MethodOptions_IDEMPOTENCY_UNKNOWN +) + +func (x *MethodOptions) Reset() { + *x = MethodOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MethodOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MethodOptions) ProtoMessage() {} + +func (x *MethodOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MethodOptions.ProtoReflect.Descriptor instead. +func (*MethodOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{17} +} + +var extRange_MethodOptions = []protoiface.ExtensionRangeV1{ + {Start: 1000, End: 536870911}, +} + +// Deprecated: Use MethodOptions.ProtoReflect.Descriptor.ExtensionRanges instead. +func (*MethodOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 { + return extRange_MethodOptions +} + +func (x *MethodOptions) GetDeprecated() bool { + if x != nil && x.Deprecated != nil { + return *x.Deprecated + } + return Default_MethodOptions_Deprecated +} + +func (x *MethodOptions) GetIdempotencyLevel() MethodOptions_IdempotencyLevel { + if x != nil && x.IdempotencyLevel != nil { + return *x.IdempotencyLevel + } + return Default_MethodOptions_IdempotencyLevel +} + +func (x *MethodOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +// A message representing a option the parser does not recognize. This only +// appears in options protos created by the compiler::Parser class. +// DescriptorPool resolves these when building Descriptor objects. Therefore, +// options protos in descriptor objects (e.g. returned by Descriptor::options(), +// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions +// in them. +type UninterpretedOption struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name []*UninterpretedOption_NamePart `protobuf:"bytes,2,rep,name=name" json:"name,omitempty"` + // The value of the uninterpreted option, in whatever type the tokenizer + // identified it as during parsing. Exactly one of these should be set. + IdentifierValue *string `protobuf:"bytes,3,opt,name=identifier_value,json=identifierValue" json:"identifier_value,omitempty"` + PositiveIntValue *uint64 `protobuf:"varint,4,opt,name=positive_int_value,json=positiveIntValue" json:"positive_int_value,omitempty"` + NegativeIntValue *int64 `protobuf:"varint,5,opt,name=negative_int_value,json=negativeIntValue" json:"negative_int_value,omitempty"` + DoubleValue *float64 `protobuf:"fixed64,6,opt,name=double_value,json=doubleValue" json:"double_value,omitempty"` + StringValue []byte `protobuf:"bytes,7,opt,name=string_value,json=stringValue" json:"string_value,omitempty"` + AggregateValue *string `protobuf:"bytes,8,opt,name=aggregate_value,json=aggregateValue" json:"aggregate_value,omitempty"` +} + +func (x *UninterpretedOption) Reset() { + *x = UninterpretedOption{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UninterpretedOption) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UninterpretedOption) ProtoMessage() {} + +func (x *UninterpretedOption) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UninterpretedOption.ProtoReflect.Descriptor instead. +func (*UninterpretedOption) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{18} +} + +func (x *UninterpretedOption) GetName() []*UninterpretedOption_NamePart { + if x != nil { + return x.Name + } + return nil +} + +func (x *UninterpretedOption) GetIdentifierValue() string { + if x != nil && x.IdentifierValue != nil { + return *x.IdentifierValue + } + return "" +} + +func (x *UninterpretedOption) GetPositiveIntValue() uint64 { + if x != nil && x.PositiveIntValue != nil { + return *x.PositiveIntValue + } + return 0 +} + +func (x *UninterpretedOption) GetNegativeIntValue() int64 { + if x != nil && x.NegativeIntValue != nil { + return *x.NegativeIntValue + } + return 0 +} + +func (x *UninterpretedOption) GetDoubleValue() float64 { + if x != nil && x.DoubleValue != nil { + return *x.DoubleValue + } + return 0 +} + +func (x *UninterpretedOption) GetStringValue() []byte { + if x != nil { + return x.StringValue + } + return nil +} + +func (x *UninterpretedOption) GetAggregateValue() string { + if x != nil && x.AggregateValue != nil { + return *x.AggregateValue + } + return "" +} + +// Encapsulates information about the original source file from which a +// FileDescriptorProto was generated. +type SourceCodeInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A Location identifies a piece of source code in a .proto file which + // corresponds to a particular definition. This information is intended + // to be useful to IDEs, code indexers, documentation generators, and similar + // tools. + // + // For example, say we have a file like: + // message Foo { + // optional string foo = 1; + // } + // Let's look at just the field definition: + // optional string foo = 1; + // ^ ^^ ^^ ^ ^^^ + // a bc de f ghi + // We have the following locations: + // span path represents + // [a,i) [ 4, 0, 2, 0 ] The whole field definition. + // [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). + // [c,d) [ 4, 0, 2, 0, 5 ] The type (string). + // [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). + // [g,h) [ 4, 0, 2, 0, 3 ] The number (1). + // + // Notes: + // - A location may refer to a repeated field itself (i.e. not to any + // particular index within it). This is used whenever a set of elements are + // logically enclosed in a single code segment. For example, an entire + // extend block (possibly containing multiple extension definitions) will + // have an outer location whose path refers to the "extensions" repeated + // field without an index. + // - Multiple locations may have the same path. This happens when a single + // logical declaration is spread out across multiple places. The most + // obvious example is the "extend" block again -- there may be multiple + // extend blocks in the same scope, each of which will have the same path. + // - A location's span is not always a subset of its parent's span. For + // example, the "extendee" of an extension declaration appears at the + // beginning of the "extend" block and is shared by all extensions within + // the block. + // - Just because a location's span is a subset of some other location's span + // does not mean that it is a descendant. For example, a "group" defines + // both a type and a field in a single declaration. Thus, the locations + // corresponding to the type and field and their components will overlap. + // - Code which tries to interpret locations should probably be designed to + // ignore those that it doesn't understand, as more types of locations could + // be recorded in the future. + Location []*SourceCodeInfo_Location `protobuf:"bytes,1,rep,name=location" json:"location,omitempty"` +} + +func (x *SourceCodeInfo) Reset() { + *x = SourceCodeInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SourceCodeInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SourceCodeInfo) ProtoMessage() {} + +func (x *SourceCodeInfo) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SourceCodeInfo.ProtoReflect.Descriptor instead. +func (*SourceCodeInfo) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{19} +} + +func (x *SourceCodeInfo) GetLocation() []*SourceCodeInfo_Location { + if x != nil { + return x.Location + } + return nil +} + +// Describes the relationship between generated code and its original source +// file. A GeneratedCodeInfo message is associated with only one generated +// source file, but may contain references to different source .proto files. +type GeneratedCodeInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // An Annotation connects some span of text in generated code to an element + // of its generating .proto file. + Annotation []*GeneratedCodeInfo_Annotation `protobuf:"bytes,1,rep,name=annotation" json:"annotation,omitempty"` +} + +func (x *GeneratedCodeInfo) Reset() { + *x = GeneratedCodeInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GeneratedCodeInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GeneratedCodeInfo) ProtoMessage() {} + +func (x *GeneratedCodeInfo) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GeneratedCodeInfo.ProtoReflect.Descriptor instead. +func (*GeneratedCodeInfo) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{20} +} + +func (x *GeneratedCodeInfo) GetAnnotation() []*GeneratedCodeInfo_Annotation { + if x != nil { + return x.Annotation + } + return nil +} + +type DescriptorProto_ExtensionRange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` // Inclusive. + End *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` // Exclusive. + Options *ExtensionRangeOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` +} + +func (x *DescriptorProto_ExtensionRange) Reset() { + *x = DescriptorProto_ExtensionRange{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DescriptorProto_ExtensionRange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescriptorProto_ExtensionRange) ProtoMessage() {} + +func (x *DescriptorProto_ExtensionRange) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DescriptorProto_ExtensionRange.ProtoReflect.Descriptor instead. +func (*DescriptorProto_ExtensionRange) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{2, 0} +} + +func (x *DescriptorProto_ExtensionRange) GetStart() int32 { + if x != nil && x.Start != nil { + return *x.Start + } + return 0 +} + +func (x *DescriptorProto_ExtensionRange) GetEnd() int32 { + if x != nil && x.End != nil { + return *x.End + } + return 0 +} + +func (x *DescriptorProto_ExtensionRange) GetOptions() *ExtensionRangeOptions { + if x != nil { + return x.Options + } + return nil +} + +// Range of reserved tag numbers. Reserved tag numbers may not be used by +// fields or extension ranges in the same message. Reserved ranges may +// not overlap. +type DescriptorProto_ReservedRange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` // Inclusive. + End *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` // Exclusive. +} + +func (x *DescriptorProto_ReservedRange) Reset() { + *x = DescriptorProto_ReservedRange{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DescriptorProto_ReservedRange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescriptorProto_ReservedRange) ProtoMessage() {} + +func (x *DescriptorProto_ReservedRange) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DescriptorProto_ReservedRange.ProtoReflect.Descriptor instead. +func (*DescriptorProto_ReservedRange) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{2, 1} +} + +func (x *DescriptorProto_ReservedRange) GetStart() int32 { + if x != nil && x.Start != nil { + return *x.Start + } + return 0 +} + +func (x *DescriptorProto_ReservedRange) GetEnd() int32 { + if x != nil && x.End != nil { + return *x.End + } + return 0 +} + +// Range of reserved numeric values. Reserved values may not be used by +// entries in the same enum. Reserved ranges may not overlap. +// +// Note that this is distinct from DescriptorProto.ReservedRange in that it +// is inclusive such that it can appropriately represent the entire int32 +// domain. +type EnumDescriptorProto_EnumReservedRange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` // Inclusive. + End *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` // Inclusive. +} + +func (x *EnumDescriptorProto_EnumReservedRange) Reset() { + *x = EnumDescriptorProto_EnumReservedRange{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EnumDescriptorProto_EnumReservedRange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnumDescriptorProto_EnumReservedRange) ProtoMessage() {} + +func (x *EnumDescriptorProto_EnumReservedRange) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EnumDescriptorProto_EnumReservedRange.ProtoReflect.Descriptor instead. +func (*EnumDescriptorProto_EnumReservedRange) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{6, 0} +} + +func (x *EnumDescriptorProto_EnumReservedRange) GetStart() int32 { + if x != nil && x.Start != nil { + return *x.Start + } + return 0 +} + +func (x *EnumDescriptorProto_EnumReservedRange) GetEnd() int32 { + if x != nil && x.End != nil { + return *x.End + } + return 0 +} + +// The name of the uninterpreted option. Each string represents a segment in +// a dot-separated name. is_extension is true iff a segment represents an +// extension (denoted with parentheses in options specs in .proto files). +// E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents +// "foo.(bar.baz).qux". +type UninterpretedOption_NamePart struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NamePart *string `protobuf:"bytes,1,req,name=name_part,json=namePart" json:"name_part,omitempty"` + IsExtension *bool `protobuf:"varint,2,req,name=is_extension,json=isExtension" json:"is_extension,omitempty"` +} + +func (x *UninterpretedOption_NamePart) Reset() { + *x = UninterpretedOption_NamePart{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UninterpretedOption_NamePart) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UninterpretedOption_NamePart) ProtoMessage() {} + +func (x *UninterpretedOption_NamePart) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UninterpretedOption_NamePart.ProtoReflect.Descriptor instead. +func (*UninterpretedOption_NamePart) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{18, 0} +} + +func (x *UninterpretedOption_NamePart) GetNamePart() string { + if x != nil && x.NamePart != nil { + return *x.NamePart + } + return "" +} + +func (x *UninterpretedOption_NamePart) GetIsExtension() bool { + if x != nil && x.IsExtension != nil { + return *x.IsExtension + } + return false +} + +type SourceCodeInfo_Location struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Identifies which part of the FileDescriptorProto was defined at this + // location. + // + // Each element is a field number or an index. They form a path from + // the root FileDescriptorProto to the place where the definition. For + // example, this path: + // [ 4, 3, 2, 7, 1 ] + // refers to: + // file.message_type(3) // 4, 3 + // .field(7) // 2, 7 + // .name() // 1 + // This is because FileDescriptorProto.message_type has field number 4: + // repeated DescriptorProto message_type = 4; + // and DescriptorProto.field has field number 2: + // repeated FieldDescriptorProto field = 2; + // and FieldDescriptorProto.name has field number 1: + // optional string name = 1; + // + // Thus, the above path gives the location of a field name. If we removed + // the last element: + // [ 4, 3, 2, 7 ] + // this path refers to the whole field declaration (from the beginning + // of the label to the terminating semicolon). + Path []int32 `protobuf:"varint,1,rep,packed,name=path" json:"path,omitempty"` + // Always has exactly three or four elements: start line, start column, + // end line (optional, otherwise assumed same as start line), end column. + // These are packed into a single field for efficiency. Note that line + // and column numbers are zero-based -- typically you will want to add + // 1 to each before displaying to a user. + Span []int32 `protobuf:"varint,2,rep,packed,name=span" json:"span,omitempty"` + // If this SourceCodeInfo represents a complete declaration, these are any + // comments appearing before and after the declaration which appear to be + // attached to the declaration. + // + // A series of line comments appearing on consecutive lines, with no other + // tokens appearing on those lines, will be treated as a single comment. + // + // leading_detached_comments will keep paragraphs of comments that appear + // before (but not connected to) the current element. Each paragraph, + // separated by empty lines, will be one comment element in the repeated + // field. + // + // Only the comment content is provided; comment markers (e.g. //) are + // stripped out. For block comments, leading whitespace and an asterisk + // will be stripped from the beginning of each line other than the first. + // Newlines are included in the output. + // + // Examples: + // + // optional int32 foo = 1; // Comment attached to foo. + // // Comment attached to bar. + // optional int32 bar = 2; + // + // optional string baz = 3; + // // Comment attached to baz. + // // Another line attached to baz. + // + // // Comment attached to qux. + // // + // // Another line attached to qux. + // optional double qux = 4; + // + // // Detached comment for corge. This is not leading or trailing comments + // // to qux or corge because there are blank lines separating it from + // // both. + // + // // Detached comment for corge paragraph 2. + // + // optional string corge = 5; + // /* Block comment attached + // * to corge. Leading asterisks + // * will be removed. */ + // /* Block comment attached to + // * grault. */ + // optional int32 grault = 6; + // + // // ignored detached comments. + LeadingComments *string `protobuf:"bytes,3,opt,name=leading_comments,json=leadingComments" json:"leading_comments,omitempty"` + TrailingComments *string `protobuf:"bytes,4,opt,name=trailing_comments,json=trailingComments" json:"trailing_comments,omitempty"` + LeadingDetachedComments []string `protobuf:"bytes,6,rep,name=leading_detached_comments,json=leadingDetachedComments" json:"leading_detached_comments,omitempty"` +} + +func (x *SourceCodeInfo_Location) Reset() { + *x = SourceCodeInfo_Location{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SourceCodeInfo_Location) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SourceCodeInfo_Location) ProtoMessage() {} + +func (x *SourceCodeInfo_Location) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SourceCodeInfo_Location.ProtoReflect.Descriptor instead. +func (*SourceCodeInfo_Location) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{19, 0} +} + +func (x *SourceCodeInfo_Location) GetPath() []int32 { + if x != nil { + return x.Path + } + return nil +} + +func (x *SourceCodeInfo_Location) GetSpan() []int32 { + if x != nil { + return x.Span + } + return nil +} + +func (x *SourceCodeInfo_Location) GetLeadingComments() string { + if x != nil && x.LeadingComments != nil { + return *x.LeadingComments + } + return "" +} + +func (x *SourceCodeInfo_Location) GetTrailingComments() string { + if x != nil && x.TrailingComments != nil { + return *x.TrailingComments + } + return "" +} + +func (x *SourceCodeInfo_Location) GetLeadingDetachedComments() []string { + if x != nil { + return x.LeadingDetachedComments + } + return nil +} + +type GeneratedCodeInfo_Annotation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Identifies the element in the original source .proto file. This field + // is formatted the same as SourceCodeInfo.Location.path. + Path []int32 `protobuf:"varint,1,rep,packed,name=path" json:"path,omitempty"` + // Identifies the filesystem path to the original source .proto. + SourceFile *string `protobuf:"bytes,2,opt,name=source_file,json=sourceFile" json:"source_file,omitempty"` + // Identifies the starting offset in bytes in the generated code + // that relates to the identified object. + Begin *int32 `protobuf:"varint,3,opt,name=begin" json:"begin,omitempty"` + // Identifies the ending offset in bytes in the generated code that + // relates to the identified offset. The end offset should be one past + // the last relevant byte (so the length of the text = end - begin). + End *int32 `protobuf:"varint,4,opt,name=end" json:"end,omitempty"` +} + +func (x *GeneratedCodeInfo_Annotation) Reset() { + *x = GeneratedCodeInfo_Annotation{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GeneratedCodeInfo_Annotation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GeneratedCodeInfo_Annotation) ProtoMessage() {} + +func (x *GeneratedCodeInfo_Annotation) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GeneratedCodeInfo_Annotation.ProtoReflect.Descriptor instead. +func (*GeneratedCodeInfo_Annotation) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{20, 0} +} + +func (x *GeneratedCodeInfo_Annotation) GetPath() []int32 { + if x != nil { + return x.Path + } + return nil +} + +func (x *GeneratedCodeInfo_Annotation) GetSourceFile() string { + if x != nil && x.SourceFile != nil { + return *x.SourceFile + } + return "" +} + +func (x *GeneratedCodeInfo_Annotation) GetBegin() int32 { + if x != nil && x.Begin != nil { + return *x.Begin + } + return 0 +} + +func (x *GeneratedCodeInfo_Annotation) GetEnd() int32 { + if x != nil && x.End != nil { + return *x.End + } + return 0 +} + +var File_google_protobuf_descriptor_proto protoreflect.FileDescriptor + +var file_google_protobuf_descriptor_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x22, 0x4d, 0x0a, 0x11, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x04, 0x66, 0x69, + 0x6c, 0x65, 0x22, 0xe4, 0x04, 0x0a, 0x13, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x65, + 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, + 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x5f, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x0a, 0x20, + 0x03, 0x28, 0x05, 0x52, 0x10, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x44, 0x65, 0x70, 0x65, 0x6e, + 0x64, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x65, 0x61, 0x6b, 0x5f, 0x64, 0x65, + 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0e, + 0x77, 0x65, 0x61, 0x6b, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x43, + 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, + 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x08, 0x65, 0x6e, + 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x09, 0x65, 0x78, 0x74, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, + 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x49, 0x0a, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, + 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x18, 0x0c, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x22, 0xb9, 0x06, 0x0a, 0x0f, 0x44, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x3b, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x43, + 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x0b, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x0a, 0x6e, 0x65, 0x73, 0x74, + 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, + 0x08, 0x65, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, 0x0a, 0x0f, 0x65, 0x78, 0x74, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x05, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, + 0x6e, 0x67, 0x65, 0x52, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, + 0x6e, 0x67, 0x65, 0x12, 0x44, 0x0a, 0x0a, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x64, 0x65, 0x63, + 0x6c, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x44, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x09, + 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x44, 0x65, 0x63, 0x6c, 0x12, 0x39, 0x0a, 0x07, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x55, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, + 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, + 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0d, 0x72, 0x65, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, + 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, + 0x1a, 0x7a, 0x0a, 0x0e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x6e, + 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x40, 0x0a, 0x07, 0x6f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x78, + 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x37, 0x0a, 0x0d, + 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x03, 0x65, 0x6e, 0x64, 0x22, 0x7c, 0x0a, 0x15, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x58, + 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, + 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, + 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, + 0x80, 0x80, 0x02, 0x22, 0xc1, 0x06, 0x0a, 0x14, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x3e, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, + 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x78, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x6e, 0x65, + 0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, + 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x6a, 0x73, + 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, + 0x73, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x22, 0xb6, 0x02, 0x0a, 0x04, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x4f, 0x55, 0x42, 0x4c, + 0x45, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x4c, 0x4f, 0x41, + 0x54, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x36, + 0x34, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x49, 0x4e, 0x54, + 0x36, 0x34, 0x10, 0x04, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x54, + 0x33, 0x32, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x49, 0x58, + 0x45, 0x44, 0x36, 0x34, 0x10, 0x06, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, + 0x49, 0x58, 0x45, 0x44, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x08, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x09, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x0a, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x0b, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x42, 0x59, 0x54, 0x45, 0x53, 0x10, 0x0c, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x0d, 0x12, 0x0d, 0x0a, 0x09, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x10, 0x0e, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x53, 0x46, 0x49, 0x58, 0x45, 0x44, 0x33, 0x32, 0x10, 0x0f, 0x12, 0x11, 0x0a, + 0x0d, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x46, 0x49, 0x58, 0x45, 0x44, 0x36, 0x34, 0x10, 0x10, + 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, + 0x11, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x49, 0x4e, 0x54, 0x36, 0x34, + 0x10, 0x12, 0x22, 0x43, 0x0a, 0x05, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x0e, 0x4c, + 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x10, 0x01, 0x12, + 0x12, 0x0a, 0x0e, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x49, 0x52, 0x45, + 0x44, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x52, 0x45, 0x50, + 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x03, 0x22, 0x63, 0x0a, 0x14, 0x4f, 0x6e, 0x65, 0x6f, 0x66, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xe3, 0x02, 0x0a, + 0x13, 0x45, 0x6e, 0x75, 0x6d, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, + 0x6d, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x5d, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x5f, 0x72, 0x61, + 0x6e, 0x67, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x61, 0x6e, 0x67, + 0x65, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, + 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x3b, 0x0a, 0x11, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x65, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, + 0x6e, 0x64, 0x22, 0x83, 0x01, 0x0a, 0x18, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x07, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, + 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, + 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xa7, 0x01, 0x0a, 0x16, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, + 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x39, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x22, 0x89, 0x02, 0x0a, 0x15, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x38, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x30, 0x0a, 0x10, 0x63, 0x6c, + 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0f, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x10, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0f, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x22, 0x91, + 0x09, 0x0a, 0x0b, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x21, + 0x0a, 0x0c, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6a, 0x61, 0x76, 0x61, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x12, 0x30, 0x0a, 0x14, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x5f, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x12, 0x6a, 0x61, 0x76, 0x61, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x13, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x6d, 0x75, 0x6c, 0x74, + 0x69, 0x70, 0x6c, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, + 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x11, 0x6a, 0x61, 0x76, 0x61, 0x4d, 0x75, 0x6c, + 0x74, 0x69, 0x70, 0x6c, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x44, 0x0a, 0x1d, 0x6a, 0x61, + 0x76, 0x61, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x71, 0x75, 0x61, + 0x6c, 0x73, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x14, 0x20, 0x01, 0x28, + 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x19, 0x6a, 0x61, 0x76, 0x61, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x65, 0x45, 0x71, 0x75, 0x61, 0x6c, 0x73, 0x41, 0x6e, 0x64, 0x48, 0x61, 0x73, 0x68, + 0x12, 0x3a, 0x0a, 0x16, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x75, 0x74, 0x66, 0x38, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x08, + 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x13, 0x6a, 0x61, 0x76, 0x61, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x74, 0x66, 0x38, 0x12, 0x53, 0x0a, 0x0c, + 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x3a, 0x05, 0x53, + 0x50, 0x45, 0x45, 0x44, 0x52, 0x0b, 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x46, 0x6f, + 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x6f, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, + 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x6f, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x12, 0x35, 0x0a, 0x13, 0x63, 0x63, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, + 0x61, 0x6c, 0x73, 0x65, 0x52, 0x11, 0x63, 0x63, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x15, 0x6a, 0x61, 0x76, 0x61, 0x5f, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x13, 0x6a, + 0x61, 0x76, 0x61, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x12, 0x35, 0x0a, 0x13, 0x70, 0x79, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, + 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x3a, + 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x11, 0x70, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, + 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x14, 0x70, 0x68, 0x70, + 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x18, 0x2a, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x12, + 0x70, 0x68, 0x70, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x18, 0x17, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, + 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x10, 0x63, 0x63, 0x5f, + 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x72, 0x65, 0x6e, 0x61, 0x73, 0x18, 0x1f, 0x20, + 0x01, 0x28, 0x08, 0x3a, 0x04, 0x74, 0x72, 0x75, 0x65, 0x52, 0x0e, 0x63, 0x63, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x41, 0x72, 0x65, 0x6e, 0x61, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x6f, 0x62, 0x6a, + 0x63, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x24, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6f, 0x62, 0x6a, 0x63, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, + 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x73, 0x68, 0x61, 0x72, 0x70, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x25, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0f, 0x63, 0x73, 0x68, 0x61, 0x72, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x77, 0x69, 0x66, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, + 0x18, 0x27, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x77, 0x69, 0x66, 0x74, 0x50, 0x72, 0x65, + 0x66, 0x69, 0x78, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x68, 0x70, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x28, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, + 0x68, 0x70, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x23, 0x0a, + 0x0d, 0x70, 0x68, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x29, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x68, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x70, 0x68, 0x70, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x2c, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x14, 0x70, 0x68, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4e, + 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x75, 0x62, 0x79, + 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x2d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x72, 0x75, 0x62, 0x79, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x58, 0x0a, 0x14, 0x75, + 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, + 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x50, 0x45, 0x45, 0x44, 0x10, 0x01, + 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x10, 0x02, 0x12, + 0x10, 0x0a, 0x0c, 0x4c, 0x49, 0x54, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x10, + 0x03, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, 0x04, 0x08, 0x26, + 0x10, 0x27, 0x22, 0xd1, 0x02, 0x0a, 0x0e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3c, 0x0a, 0x17, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x77, 0x69, 0x72, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x14, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x57, 0x69, 0x72, 0x65, 0x46, 0x6f, 0x72, + 0x6d, 0x61, 0x74, 0x12, 0x4c, 0x0a, 0x1f, 0x6e, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, + 0x72, 0x64, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, + 0x6c, 0x73, 0x65, 0x52, 0x1c, 0x6e, 0x6f, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x44, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, + 0x72, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x70, 0x5f, + 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6d, 0x61, 0x70, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, + 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, + 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, 0x04, 0x08, 0x08, 0x10, 0x09, + 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x22, 0xe2, 0x03, 0x0a, 0x0c, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x41, 0x0a, 0x05, 0x63, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x43, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x06, 0x53, 0x54, 0x52, + 0x49, 0x4e, 0x47, 0x52, 0x05, 0x63, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, + 0x63, 0x6b, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x61, 0x63, 0x6b, + 0x65, 0x64, 0x12, 0x47, 0x0a, 0x06, 0x6a, 0x73, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x4a, 0x53, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x09, 0x4a, 0x53, 0x5f, 0x4e, 0x4f, 0x52, + 0x4d, 0x41, 0x4c, 0x52, 0x06, 0x6a, 0x73, 0x74, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x04, 0x6c, + 0x61, 0x7a, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, + 0x52, 0x04, 0x6c, 0x61, 0x7a, 0x79, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, + 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, + 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, + 0x04, 0x77, 0x65, 0x61, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, + 0x73, 0x65, 0x52, 0x04, 0x77, 0x65, 0x61, 0x6b, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, + 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x2f, 0x0a, 0x05, 0x43, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x53, + 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x43, 0x4f, 0x52, 0x44, 0x10, + 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x50, 0x49, 0x45, 0x43, + 0x45, 0x10, 0x02, 0x22, 0x35, 0x0a, 0x06, 0x4a, 0x53, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0d, 0x0a, + 0x09, 0x4a, 0x53, 0x5f, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, + 0x4a, 0x53, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x4a, + 0x53, 0x5f, 0x4e, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x02, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, + 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x22, 0x73, 0x0a, 0x0c, 0x4f, + 0x6e, 0x65, 0x6f, 0x66, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x58, 0x0a, 0x14, 0x75, + 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, + 0x22, 0xc0, 0x01, 0x0a, 0x0b, 0x45, 0x6e, 0x75, 0x6d, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x41, 0x6c, 0x69, 0x61, + 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, + 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, 0x04, 0x08, + 0x05, 0x10, 0x06, 0x22, 0x9e, 0x01, 0x0a, 0x10, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, + 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, + 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, + 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, + 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, + 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, + 0x80, 0x80, 0x80, 0x02, 0x22, 0x9c, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, + 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x21, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, + 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x58, + 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, + 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, + 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, + 0x80, 0x80, 0x02, 0x22, 0xe0, 0x02, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, + 0x74, 0x65, 0x64, 0x18, 0x21, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, + 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x71, 0x0a, 0x11, + 0x69, 0x64, 0x65, 0x6d, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x65, 0x76, 0x65, + 0x6c, 0x18, 0x22, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x49, 0x64, 0x65, 0x6d, 0x70, 0x6f, 0x74, 0x65, + 0x6e, 0x63, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x3a, 0x13, 0x49, 0x44, 0x45, 0x4d, 0x50, 0x4f, + 0x54, 0x45, 0x4e, 0x43, 0x59, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x52, 0x10, 0x69, + 0x64, 0x65, 0x6d, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, + 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, + 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, + 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x50, 0x0a, 0x10, 0x49, 0x64, 0x65, + 0x6d, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x17, 0x0a, + 0x13, 0x49, 0x44, 0x45, 0x4d, 0x50, 0x4f, 0x54, 0x45, 0x4e, 0x43, 0x59, 0x5f, 0x55, 0x4e, 0x4b, + 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x4f, 0x5f, 0x53, 0x49, 0x44, + 0x45, 0x5f, 0x45, 0x46, 0x46, 0x45, 0x43, 0x54, 0x53, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x49, + 0x44, 0x45, 0x4d, 0x50, 0x4f, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x2a, 0x09, 0x08, 0xe8, 0x07, + 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x9a, 0x03, 0x0a, 0x13, 0x55, 0x6e, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, + 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x50, 0x61, 0x72, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x12, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, + 0x76, 0x65, 0x49, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x6e, 0x65, + 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, + 0x49, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, + 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0b, + 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x27, + 0x0a, 0x0f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, + 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x4a, 0x0a, 0x08, 0x4e, 0x61, 0x6d, 0x65, 0x50, + 0x61, 0x72, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x74, + 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x61, 0x6d, 0x65, 0x50, 0x61, 0x72, 0x74, + 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x02, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, + 0x69, 0x6f, 0x6e, 0x22, 0xa7, 0x02, 0x0a, 0x0e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, + 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x44, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xce, 0x01, 0x0a, + 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x04, 0x70, 0x61, 0x74, + 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x70, 0x61, 0x74, + 0x68, 0x12, 0x16, 0x0a, 0x04, 0x73, 0x70, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x42, + 0x02, 0x10, 0x01, 0x52, 0x04, 0x73, 0x70, 0x61, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x6c, 0x65, 0x61, + 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6c, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x69, 0x6e, 0x67, + 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x10, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x12, 0x3a, 0x0a, 0x19, 0x6c, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x65, 0x74, + 0x61, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x17, 0x6c, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x74, + 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xd1, 0x01, + 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x64, 0x65, 0x49, + 0x6e, 0x66, 0x6f, 0x12, 0x4d, 0x0a, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x65, 0x64, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x1a, 0x6d, 0x0a, 0x0a, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x16, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x42, 0x02, + 0x10, 0x01, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x65, 0x67, + 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x62, 0x65, 0x67, 0x69, 0x6e, 0x12, + 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, 0x6e, + 0x64, 0x42, 0x8f, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x10, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x48, 0x01, 0x5a, 0x3e, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x6f, 0x72, 0x3b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0xf8, 0x01, 0x01, + 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, +} + +var ( + file_google_protobuf_descriptor_proto_rawDescOnce sync.Once + file_google_protobuf_descriptor_proto_rawDescData = file_google_protobuf_descriptor_proto_rawDesc +) + +func file_google_protobuf_descriptor_proto_rawDescGZIP() []byte { + file_google_protobuf_descriptor_proto_rawDescOnce.Do(func() { + file_google_protobuf_descriptor_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_descriptor_proto_rawDescData) + }) + return file_google_protobuf_descriptor_proto_rawDescData +} + +var file_google_protobuf_descriptor_proto_enumTypes = make([]protoimpl.EnumInfo, 6) +var file_google_protobuf_descriptor_proto_msgTypes = make([]protoimpl.MessageInfo, 27) +var file_google_protobuf_descriptor_proto_goTypes = []interface{}{ + (FieldDescriptorProto_Type)(0), // 0: google.protobuf.FieldDescriptorProto.Type + (FieldDescriptorProto_Label)(0), // 1: google.protobuf.FieldDescriptorProto.Label + (FileOptions_OptimizeMode)(0), // 2: google.protobuf.FileOptions.OptimizeMode + (FieldOptions_CType)(0), // 3: google.protobuf.FieldOptions.CType + (FieldOptions_JSType)(0), // 4: google.protobuf.FieldOptions.JSType + (MethodOptions_IdempotencyLevel)(0), // 5: google.protobuf.MethodOptions.IdempotencyLevel + (*FileDescriptorSet)(nil), // 6: google.protobuf.FileDescriptorSet + (*FileDescriptorProto)(nil), // 7: google.protobuf.FileDescriptorProto + (*DescriptorProto)(nil), // 8: google.protobuf.DescriptorProto + (*ExtensionRangeOptions)(nil), // 9: google.protobuf.ExtensionRangeOptions + (*FieldDescriptorProto)(nil), // 10: google.protobuf.FieldDescriptorProto + (*OneofDescriptorProto)(nil), // 11: google.protobuf.OneofDescriptorProto + (*EnumDescriptorProto)(nil), // 12: google.protobuf.EnumDescriptorProto + (*EnumValueDescriptorProto)(nil), // 13: google.protobuf.EnumValueDescriptorProto + (*ServiceDescriptorProto)(nil), // 14: google.protobuf.ServiceDescriptorProto + (*MethodDescriptorProto)(nil), // 15: google.protobuf.MethodDescriptorProto + (*FileOptions)(nil), // 16: google.protobuf.FileOptions + (*MessageOptions)(nil), // 17: google.protobuf.MessageOptions + (*FieldOptions)(nil), // 18: google.protobuf.FieldOptions + (*OneofOptions)(nil), // 19: google.protobuf.OneofOptions + (*EnumOptions)(nil), // 20: google.protobuf.EnumOptions + (*EnumValueOptions)(nil), // 21: google.protobuf.EnumValueOptions + (*ServiceOptions)(nil), // 22: google.protobuf.ServiceOptions + (*MethodOptions)(nil), // 23: google.protobuf.MethodOptions + (*UninterpretedOption)(nil), // 24: google.protobuf.UninterpretedOption + (*SourceCodeInfo)(nil), // 25: google.protobuf.SourceCodeInfo + (*GeneratedCodeInfo)(nil), // 26: google.protobuf.GeneratedCodeInfo + (*DescriptorProto_ExtensionRange)(nil), // 27: google.protobuf.DescriptorProto.ExtensionRange + (*DescriptorProto_ReservedRange)(nil), // 28: google.protobuf.DescriptorProto.ReservedRange + (*EnumDescriptorProto_EnumReservedRange)(nil), // 29: google.protobuf.EnumDescriptorProto.EnumReservedRange + (*UninterpretedOption_NamePart)(nil), // 30: google.protobuf.UninterpretedOption.NamePart + (*SourceCodeInfo_Location)(nil), // 31: google.protobuf.SourceCodeInfo.Location + (*GeneratedCodeInfo_Annotation)(nil), // 32: google.protobuf.GeneratedCodeInfo.Annotation +} +var file_google_protobuf_descriptor_proto_depIdxs = []int32{ + 7, // 0: google.protobuf.FileDescriptorSet.file:type_name -> google.protobuf.FileDescriptorProto + 8, // 1: google.protobuf.FileDescriptorProto.message_type:type_name -> google.protobuf.DescriptorProto + 12, // 2: google.protobuf.FileDescriptorProto.enum_type:type_name -> google.protobuf.EnumDescriptorProto + 14, // 3: google.protobuf.FileDescriptorProto.service:type_name -> google.protobuf.ServiceDescriptorProto + 10, // 4: google.protobuf.FileDescriptorProto.extension:type_name -> google.protobuf.FieldDescriptorProto + 16, // 5: google.protobuf.FileDescriptorProto.options:type_name -> google.protobuf.FileOptions + 25, // 6: google.protobuf.FileDescriptorProto.source_code_info:type_name -> google.protobuf.SourceCodeInfo + 10, // 7: google.protobuf.DescriptorProto.field:type_name -> google.protobuf.FieldDescriptorProto + 10, // 8: google.protobuf.DescriptorProto.extension:type_name -> google.protobuf.FieldDescriptorProto + 8, // 9: google.protobuf.DescriptorProto.nested_type:type_name -> google.protobuf.DescriptorProto + 12, // 10: google.protobuf.DescriptorProto.enum_type:type_name -> google.protobuf.EnumDescriptorProto + 27, // 11: google.protobuf.DescriptorProto.extension_range:type_name -> google.protobuf.DescriptorProto.ExtensionRange + 11, // 12: google.protobuf.DescriptorProto.oneof_decl:type_name -> google.protobuf.OneofDescriptorProto + 17, // 13: google.protobuf.DescriptorProto.options:type_name -> google.protobuf.MessageOptions + 28, // 14: google.protobuf.DescriptorProto.reserved_range:type_name -> google.protobuf.DescriptorProto.ReservedRange + 24, // 15: google.protobuf.ExtensionRangeOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 1, // 16: google.protobuf.FieldDescriptorProto.label:type_name -> google.protobuf.FieldDescriptorProto.Label + 0, // 17: google.protobuf.FieldDescriptorProto.type:type_name -> google.protobuf.FieldDescriptorProto.Type + 18, // 18: google.protobuf.FieldDescriptorProto.options:type_name -> google.protobuf.FieldOptions + 19, // 19: google.protobuf.OneofDescriptorProto.options:type_name -> google.protobuf.OneofOptions + 13, // 20: google.protobuf.EnumDescriptorProto.value:type_name -> google.protobuf.EnumValueDescriptorProto + 20, // 21: google.protobuf.EnumDescriptorProto.options:type_name -> google.protobuf.EnumOptions + 29, // 22: google.protobuf.EnumDescriptorProto.reserved_range:type_name -> google.protobuf.EnumDescriptorProto.EnumReservedRange + 21, // 23: google.protobuf.EnumValueDescriptorProto.options:type_name -> google.protobuf.EnumValueOptions + 15, // 24: google.protobuf.ServiceDescriptorProto.method:type_name -> google.protobuf.MethodDescriptorProto + 22, // 25: google.protobuf.ServiceDescriptorProto.options:type_name -> google.protobuf.ServiceOptions + 23, // 26: google.protobuf.MethodDescriptorProto.options:type_name -> google.protobuf.MethodOptions + 2, // 27: google.protobuf.FileOptions.optimize_for:type_name -> google.protobuf.FileOptions.OptimizeMode + 24, // 28: google.protobuf.FileOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 24, // 29: google.protobuf.MessageOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 3, // 30: google.protobuf.FieldOptions.ctype:type_name -> google.protobuf.FieldOptions.CType + 4, // 31: google.protobuf.FieldOptions.jstype:type_name -> google.protobuf.FieldOptions.JSType + 24, // 32: google.protobuf.FieldOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 24, // 33: google.protobuf.OneofOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 24, // 34: google.protobuf.EnumOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 24, // 35: google.protobuf.EnumValueOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 24, // 36: google.protobuf.ServiceOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 5, // 37: google.protobuf.MethodOptions.idempotency_level:type_name -> google.protobuf.MethodOptions.IdempotencyLevel + 24, // 38: google.protobuf.MethodOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 30, // 39: google.protobuf.UninterpretedOption.name:type_name -> google.protobuf.UninterpretedOption.NamePart + 31, // 40: google.protobuf.SourceCodeInfo.location:type_name -> google.protobuf.SourceCodeInfo.Location + 32, // 41: google.protobuf.GeneratedCodeInfo.annotation:type_name -> google.protobuf.GeneratedCodeInfo.Annotation + 9, // 42: google.protobuf.DescriptorProto.ExtensionRange.options:type_name -> google.protobuf.ExtensionRangeOptions + 43, // [43:43] is the sub-list for method output_type + 43, // [43:43] is the sub-list for method input_type + 43, // [43:43] is the sub-list for extension type_name + 43, // [43:43] is the sub-list for extension extendee + 0, // [0:43] is the sub-list for field type_name +} + +func init() { file_google_protobuf_descriptor_proto_init() } +func file_google_protobuf_descriptor_proto_init() { + if File_google_protobuf_descriptor_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_descriptor_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FileDescriptorSet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FileDescriptorProto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescriptorProto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExtensionRangeOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FieldDescriptorProto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OneofDescriptorProto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EnumDescriptorProto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EnumValueDescriptorProto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceDescriptorProto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MethodDescriptorProto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FileOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MessageOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FieldOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OneofOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EnumOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EnumValueOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MethodOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UninterpretedOption); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SourceCodeInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GeneratedCodeInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescriptorProto_ExtensionRange); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescriptorProto_ReservedRange); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EnumDescriptorProto_EnumReservedRange); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UninterpretedOption_NamePart); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SourceCodeInfo_Location); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GeneratedCodeInfo_Annotation); 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_google_protobuf_descriptor_proto_rawDesc, + NumEnums: 6, + NumMessages: 27, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_descriptor_proto_goTypes, + DependencyIndexes: file_google_protobuf_descriptor_proto_depIdxs, + EnumInfos: file_google_protobuf_descriptor_proto_enumTypes, + MessageInfos: file_google_protobuf_descriptor_proto_msgTypes, + }.Build() + File_google_protobuf_descriptor_proto = out.File + file_google_protobuf_descriptor_proto_rawDesc = nil + file_google_protobuf_descriptor_proto_goTypes = nil + file_google_protobuf_descriptor_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/known/anypb/any.pb.go b/vendor/google.golang.org/protobuf/types/known/anypb/any.pb.go new file mode 100644 index 000000000..5f9498e4e --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/known/anypb/any.pb.go @@ -0,0 +1,287 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/any.proto + +package anypb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +// `Any` contains an arbitrary serialized protocol buffer message along with a +// URL that describes the type of the serialized message. +// +// Protobuf library provides support to pack/unpack Any values in the form +// of utility functions or additional generated methods of the Any type. +// +// Example 1: Pack and unpack a message in C++. +// +// Foo foo = ...; +// Any any; +// any.PackFrom(foo); +// ... +// if (any.UnpackTo(&foo)) { +// ... +// } +// +// Example 2: Pack and unpack a message in Java. +// +// Foo foo = ...; +// Any any = Any.pack(foo); +// ... +// if (any.is(Foo.class)) { +// foo = any.unpack(Foo.class); +// } +// +// Example 3: Pack and unpack a message in Python. +// +// foo = Foo(...) +// any = Any() +// any.Pack(foo) +// ... +// if any.Is(Foo.DESCRIPTOR): +// any.Unpack(foo) +// ... +// +// Example 4: Pack and unpack a message in Go +// +// foo := &pb.Foo{...} +// any, err := ptypes.MarshalAny(foo) +// ... +// foo := &pb.Foo{} +// if err := ptypes.UnmarshalAny(any, foo); err != nil { +// ... +// } +// +// The pack methods provided by protobuf library will by default use +// 'type.googleapis.com/full.type.name' as the type URL and the unpack +// methods only use the fully qualified type name after the last '/' +// in the type URL, for example "foo.bar.com/x/y.z" will yield type +// name "y.z". +// +// +// JSON +// ==== +// The JSON representation of an `Any` value uses the regular +// representation of the deserialized, embedded message, with an +// additional field `@type` which contains the type URL. Example: +// +// package google.profile; +// message Person { +// string first_name = 1; +// string last_name = 2; +// } +// +// { +// "@type": "type.googleapis.com/google.profile.Person", +// "firstName": , +// "lastName": +// } +// +// If the embedded message type is well-known and has a custom JSON +// representation, that representation will be embedded adding a field +// `value` which holds the custom JSON in addition to the `@type` +// field. Example (for message [google.protobuf.Duration][]): +// +// { +// "@type": "type.googleapis.com/google.protobuf.Duration", +// "value": "1.212s" +// } +// +type Any struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A URL/resource name that uniquely identifies the type of the serialized + // protocol buffer message. This string must contain at least + // one "/" character. The last segment of the URL's path must represent + // the fully qualified name of the type (as in + // `path/google.protobuf.Duration`). The name should be in a canonical form + // (e.g., leading "." is not accepted). + // + // In practice, teams usually precompile into the binary all types that they + // expect it to use in the context of Any. However, for URLs which use the + // scheme `http`, `https`, or no scheme, one can optionally set up a type + // server that maps type URLs to message definitions as follows: + // + // * If no scheme is provided, `https` is assumed. + // * An HTTP GET on the URL must yield a [google.protobuf.Type][] + // value in binary format, or produce an error. + // * Applications are allowed to cache lookup results based on the + // URL, or have them precompiled into a binary to avoid any + // lookup. Therefore, binary compatibility needs to be preserved + // on changes to types. (Use versioned type names to manage + // breaking changes.) + // + // Note: this functionality is not currently available in the official + // protobuf release, and it is not used for type URLs beginning with + // type.googleapis.com. + // + // Schemes other than `http`, `https` (or the empty scheme) might be + // used with implementation specific semantics. + // + TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` + // Must be a valid serialized protocol buffer of the above specified type. + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *Any) Reset() { + *x = Any{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_any_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Any) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Any) ProtoMessage() {} + +func (x *Any) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_any_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Any.ProtoReflect.Descriptor instead. +func (*Any) Descriptor() ([]byte, []int) { + return file_google_protobuf_any_proto_rawDescGZIP(), []int{0} +} + +func (x *Any) GetTypeUrl() string { + if x != nil { + return x.TypeUrl + } + return "" +} + +func (x *Any) GetValue() []byte { + if x != nil { + return x.Value + } + return nil +} + +var File_google_protobuf_any_proto protoreflect.FileDescriptor + +var file_google_protobuf_any_proto_rawDesc = []byte{ + 0x0a, 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, 0x12, 0x0f, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x36, 0x0a, 0x03, + 0x41, 0x6e, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x79, 0x70, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x6f, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x08, 0x41, 0x6e, 0x79, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x61, 0x6e, 0x79, 0xa2, 0x02, + 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, + 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_protobuf_any_proto_rawDescOnce sync.Once + file_google_protobuf_any_proto_rawDescData = file_google_protobuf_any_proto_rawDesc +) + +func file_google_protobuf_any_proto_rawDescGZIP() []byte { + file_google_protobuf_any_proto_rawDescOnce.Do(func() { + file_google_protobuf_any_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_any_proto_rawDescData) + }) + return file_google_protobuf_any_proto_rawDescData +} + +var file_google_protobuf_any_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_protobuf_any_proto_goTypes = []interface{}{ + (*Any)(nil), // 0: google.protobuf.Any +} +var file_google_protobuf_any_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_protobuf_any_proto_init() } +func file_google_protobuf_any_proto_init() { + if File_google_protobuf_any_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_any_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Any); 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_google_protobuf_any_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_any_proto_goTypes, + DependencyIndexes: file_google_protobuf_any_proto_depIdxs, + MessageInfos: file_google_protobuf_any_proto_msgTypes, + }.Build() + File_google_protobuf_any_proto = out.File + file_google_protobuf_any_proto_rawDesc = nil + file_google_protobuf_any_proto_goTypes = nil + file_google_protobuf_any_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go b/vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go new file mode 100644 index 000000000..3997c604f --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go @@ -0,0 +1,249 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/duration.proto + +package durationpb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +// A Duration represents a signed, fixed-length span of time represented +// as a count of seconds and fractions of seconds at nanosecond +// resolution. It is independent of any calendar and concepts like "day" +// or "month". It is related to Timestamp in that the difference between +// two Timestamp values is a Duration and it can be added or subtracted +// from a Timestamp. Range is approximately +-10,000 years. +// +// # Examples +// +// Example 1: Compute Duration from two Timestamps in pseudo code. +// +// Timestamp start = ...; +// Timestamp end = ...; +// Duration duration = ...; +// +// duration.seconds = end.seconds - start.seconds; +// duration.nanos = end.nanos - start.nanos; +// +// if (duration.seconds < 0 && duration.nanos > 0) { +// duration.seconds += 1; +// duration.nanos -= 1000000000; +// } else if (duration.seconds > 0 && duration.nanos < 0) { +// duration.seconds -= 1; +// duration.nanos += 1000000000; +// } +// +// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. +// +// Timestamp start = ...; +// Duration duration = ...; +// Timestamp end = ...; +// +// end.seconds = start.seconds + duration.seconds; +// end.nanos = start.nanos + duration.nanos; +// +// if (end.nanos < 0) { +// end.seconds -= 1; +// end.nanos += 1000000000; +// } else if (end.nanos >= 1000000000) { +// end.seconds += 1; +// end.nanos -= 1000000000; +// } +// +// Example 3: Compute Duration from datetime.timedelta in Python. +// +// td = datetime.timedelta(days=3, minutes=10) +// duration = Duration() +// duration.FromTimedelta(td) +// +// # JSON Mapping +// +// In JSON format, the Duration type is encoded as a string rather than an +// object, where the string ends in the suffix "s" (indicating seconds) and +// is preceded by the number of seconds, with nanoseconds expressed as +// fractional seconds. For example, 3 seconds with 0 nanoseconds should be +// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should +// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 +// microsecond should be expressed in JSON format as "3.000001s". +// +// +type Duration struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Signed seconds of the span of time. Must be from -315,576,000,000 + // to +315,576,000,000 inclusive. Note: these bounds are computed from: + // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` + // Signed fractions of a second at nanosecond resolution of the span + // of time. Durations less than one second are represented with a 0 + // `seconds` field and a positive or negative `nanos` field. For durations + // of one second or more, a non-zero value for the `nanos` field must be + // of the same sign as the `seconds` field. Must be from -999,999,999 + // to +999,999,999 inclusive. + Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` +} + +func (x *Duration) Reset() { + *x = Duration{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_duration_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Duration) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Duration) ProtoMessage() {} + +func (x *Duration) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_duration_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Duration.ProtoReflect.Descriptor instead. +func (*Duration) Descriptor() ([]byte, []int) { + return file_google_protobuf_duration_proto_rawDescGZIP(), []int{0} +} + +func (x *Duration) GetSeconds() int64 { + if x != nil { + return x.Seconds + } + return 0 +} + +func (x *Duration) GetNanos() int32 { + if x != nil { + return x.Nanos + } + return 0 +} + +var File_google_protobuf_duration_proto protoreflect.FileDescriptor + +var file_google_protobuf_duration_proto_rawDesc = []byte{ + 0x0a, 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, + 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x22, 0x3a, 0x0a, 0x08, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, + 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, + 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x42, 0x7c, 0x0a, + 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x42, 0x0d, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, 0x6c, + 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_google_protobuf_duration_proto_rawDescOnce sync.Once + file_google_protobuf_duration_proto_rawDescData = file_google_protobuf_duration_proto_rawDesc +) + +func file_google_protobuf_duration_proto_rawDescGZIP() []byte { + file_google_protobuf_duration_proto_rawDescOnce.Do(func() { + file_google_protobuf_duration_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_duration_proto_rawDescData) + }) + return file_google_protobuf_duration_proto_rawDescData +} + +var file_google_protobuf_duration_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_protobuf_duration_proto_goTypes = []interface{}{ + (*Duration)(nil), // 0: google.protobuf.Duration +} +var file_google_protobuf_duration_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_protobuf_duration_proto_init() } +func file_google_protobuf_duration_proto_init() { + if File_google_protobuf_duration_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_duration_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Duration); 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_google_protobuf_duration_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_duration_proto_goTypes, + DependencyIndexes: file_google_protobuf_duration_proto_depIdxs, + MessageInfos: file_google_protobuf_duration_proto_msgTypes, + }.Build() + File_google_protobuf_duration_proto = out.File + file_google_protobuf_duration_proto_rawDesc = nil + file_google_protobuf_duration_proto_goTypes = nil + file_google_protobuf_duration_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/known/emptypb/empty.pb.go b/vendor/google.golang.org/protobuf/types/known/emptypb/empty.pb.go new file mode 100644 index 000000000..32a583df5 --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/known/emptypb/empty.pb.go @@ -0,0 +1,168 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/empty.proto + +package emptypb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +// A generic empty message that you can re-use to avoid defining duplicated +// empty messages in your APIs. A typical example is to use it as the request +// or the response type of an API method. For instance: +// +// service Foo { +// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); +// } +// +// The JSON representation for `Empty` is empty JSON object `{}`. +type Empty struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Empty) Reset() { + *x = Empty{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_empty_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Empty) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Empty) ProtoMessage() {} + +func (x *Empty) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_empty_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Empty.ProtoReflect.Descriptor instead. +func (*Empty) Descriptor() ([]byte, []int) { + return file_google_protobuf_empty_proto_rawDescGZIP(), []int{0} +} + +var File_google_protobuf_empty_proto protoreflect.FileDescriptor + +var file_google_protobuf_empty_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x07, + 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x76, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x0a, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, + 0x65, 0x6d, 0x70, 0x74, 0x79, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, + 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_protobuf_empty_proto_rawDescOnce sync.Once + file_google_protobuf_empty_proto_rawDescData = file_google_protobuf_empty_proto_rawDesc +) + +func file_google_protobuf_empty_proto_rawDescGZIP() []byte { + file_google_protobuf_empty_proto_rawDescOnce.Do(func() { + file_google_protobuf_empty_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_empty_proto_rawDescData) + }) + return file_google_protobuf_empty_proto_rawDescData +} + +var file_google_protobuf_empty_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_protobuf_empty_proto_goTypes = []interface{}{ + (*Empty)(nil), // 0: google.protobuf.Empty +} +var file_google_protobuf_empty_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_protobuf_empty_proto_init() } +func file_google_protobuf_empty_proto_init() { + if File_google_protobuf_empty_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_empty_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Empty); 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_google_protobuf_empty_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_empty_proto_goTypes, + DependencyIndexes: file_google_protobuf_empty_proto_depIdxs, + MessageInfos: file_google_protobuf_empty_proto_msgTypes, + }.Build() + File_google_protobuf_empty_proto = out.File + file_google_protobuf_empty_proto_rawDesc = nil + file_google_protobuf_empty_proto_goTypes = nil + file_google_protobuf_empty_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/known/fieldmaskpb/field_mask.pb.go b/vendor/google.golang.org/protobuf/types/known/fieldmaskpb/field_mask.pb.go new file mode 100644 index 000000000..2ccf95abd --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/known/fieldmaskpb/field_mask.pb.go @@ -0,0 +1,371 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/field_mask.proto + +package fieldmaskpb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +// `FieldMask` represents a set of symbolic field paths, for example: +// +// paths: "f.a" +// paths: "f.b.d" +// +// Here `f` represents a field in some root message, `a` and `b` +// fields in the message found in `f`, and `d` a field found in the +// message in `f.b`. +// +// Field masks are used to specify a subset of fields that should be +// returned by a get operation or modified by an update operation. +// Field masks also have a custom JSON encoding (see below). +// +// # Field Masks in Projections +// +// When used in the context of a projection, a response message or +// sub-message is filtered by the API to only contain those fields as +// specified in the mask. For example, if the mask in the previous +// example is applied to a response message as follows: +// +// f { +// a : 22 +// b { +// d : 1 +// x : 2 +// } +// y : 13 +// } +// z: 8 +// +// The result will not contain specific values for fields x,y and z +// (their value will be set to the default, and omitted in proto text +// output): +// +// +// f { +// a : 22 +// b { +// d : 1 +// } +// } +// +// A repeated field is not allowed except at the last position of a +// paths string. +// +// If a FieldMask object is not present in a get operation, the +// operation applies to all fields (as if a FieldMask of all fields +// had been specified). +// +// Note that a field mask does not necessarily apply to the +// top-level response message. In case of a REST get operation, the +// field mask applies directly to the response, but in case of a REST +// list operation, the mask instead applies to each individual message +// in the returned resource list. In case of a REST custom method, +// other definitions may be used. Where the mask applies will be +// clearly documented together with its declaration in the API. In +// any case, the effect on the returned resource/resources is required +// behavior for APIs. +// +// # Field Masks in Update Operations +// +// A field mask in update operations specifies which fields of the +// targeted resource are going to be updated. The API is required +// to only change the values of the fields as specified in the mask +// and leave the others untouched. If a resource is passed in to +// describe the updated values, the API ignores the values of all +// fields not covered by the mask. +// +// If a repeated field is specified for an update operation, new values will +// be appended to the existing repeated field in the target resource. Note that +// a repeated field is only allowed in the last position of a `paths` string. +// +// If a sub-message is specified in the last position of the field mask for an +// update operation, then new value will be merged into the existing sub-message +// in the target resource. +// +// For example, given the target message: +// +// f { +// b { +// d: 1 +// x: 2 +// } +// c: [1] +// } +// +// And an update message: +// +// f { +// b { +// d: 10 +// } +// c: [2] +// } +// +// then if the field mask is: +// +// paths: ["f.b", "f.c"] +// +// then the result will be: +// +// f { +// b { +// d: 10 +// x: 2 +// } +// c: [1, 2] +// } +// +// An implementation may provide options to override this default behavior for +// repeated and message fields. +// +// In order to reset a field's value to the default, the field must +// be in the mask and set to the default value in the provided resource. +// Hence, in order to reset all fields of a resource, provide a default +// instance of the resource and set all fields in the mask, or do +// not provide a mask as described below. +// +// If a field mask is not present on update, the operation applies to +// all fields (as if a field mask of all fields has been specified). +// Note that in the presence of schema evolution, this may mean that +// fields the client does not know and has therefore not filled into +// the request will be reset to their default. If this is unwanted +// behavior, a specific service may require a client to always specify +// a field mask, producing an error if not. +// +// As with get operations, the location of the resource which +// describes the updated values in the request message depends on the +// operation kind. In any case, the effect of the field mask is +// required to be honored by the API. +// +// ## Considerations for HTTP REST +// +// The HTTP kind of an update operation which uses a field mask must +// be set to PATCH instead of PUT in order to satisfy HTTP semantics +// (PUT must only be used for full updates). +// +// # JSON Encoding of Field Masks +// +// In JSON, a field mask is encoded as a single string where paths are +// separated by a comma. Fields name in each path are converted +// to/from lower-camel naming conventions. +// +// As an example, consider the following message declarations: +// +// message Profile { +// User user = 1; +// Photo photo = 2; +// } +// message User { +// string display_name = 1; +// string address = 2; +// } +// +// In proto a field mask for `Profile` may look as such: +// +// mask { +// paths: "user.display_name" +// paths: "photo" +// } +// +// In JSON, the same mask is represented as below: +// +// { +// mask: "user.displayName,photo" +// } +// +// # Field Masks and Oneof Fields +// +// Field masks treat fields in oneofs just as regular fields. Consider the +// following message: +// +// message SampleMessage { +// oneof test_oneof { +// string name = 4; +// SubMessage sub_message = 9; +// } +// } +// +// The field mask can be: +// +// mask { +// paths: "name" +// } +// +// Or: +// +// mask { +// paths: "sub_message" +// } +// +// Note that oneof type names ("test_oneof" in this case) cannot be used in +// paths. +// +// ## Field Mask Verification +// +// The implementation of any API method which has a FieldMask type field in the +// request should verify the included field paths, and return an +// `INVALID_ARGUMENT` error if any path is unmappable. +type FieldMask struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The set of field mask paths. + Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"` +} + +func (x *FieldMask) Reset() { + *x = FieldMask{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_field_mask_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FieldMask) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FieldMask) ProtoMessage() {} + +func (x *FieldMask) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_field_mask_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FieldMask.ProtoReflect.Descriptor instead. +func (*FieldMask) Descriptor() ([]byte, []int) { + return file_google_protobuf_field_mask_proto_rawDescGZIP(), []int{0} +} + +func (x *FieldMask) GetPaths() []string { + if x != nil { + return x.Paths + } + return nil +} + +var File_google_protobuf_field_mask_proto protoreflect.FileDescriptor + +var file_google_protobuf_field_mask_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x22, 0x21, 0x0a, 0x09, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, + 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x42, 0x8c, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x0e, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, + 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, + 0x3b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0xf8, 0x01, 0x01, 0xa2, 0x02, + 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, + 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_protobuf_field_mask_proto_rawDescOnce sync.Once + file_google_protobuf_field_mask_proto_rawDescData = file_google_protobuf_field_mask_proto_rawDesc +) + +func file_google_protobuf_field_mask_proto_rawDescGZIP() []byte { + file_google_protobuf_field_mask_proto_rawDescOnce.Do(func() { + file_google_protobuf_field_mask_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_field_mask_proto_rawDescData) + }) + return file_google_protobuf_field_mask_proto_rawDescData +} + +var file_google_protobuf_field_mask_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_protobuf_field_mask_proto_goTypes = []interface{}{ + (*FieldMask)(nil), // 0: google.protobuf.FieldMask +} +var file_google_protobuf_field_mask_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_protobuf_field_mask_proto_init() } +func file_google_protobuf_field_mask_proto_init() { + if File_google_protobuf_field_mask_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_field_mask_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FieldMask); 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_google_protobuf_field_mask_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_field_mask_proto_goTypes, + DependencyIndexes: file_google_protobuf_field_mask_proto_depIdxs, + MessageInfos: file_google_protobuf_field_mask_proto_msgTypes, + }.Build() + File_google_protobuf_field_mask_proto = out.File + file_google_protobuf_field_mask_proto_rawDesc = nil + file_google_protobuf_field_mask_proto_goTypes = nil + file_google_protobuf_field_mask_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go b/vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go new file mode 100644 index 000000000..6fe6d42f1 --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go @@ -0,0 +1,271 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/timestamp.proto + +package timestamppb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +// A Timestamp represents a point in time independent of any time zone or local +// calendar, encoded as a count of seconds and fractions of seconds at +// nanosecond resolution. The count is relative to an epoch at UTC midnight on +// January 1, 1970, in the proleptic Gregorian calendar which extends the +// Gregorian calendar backwards to year one. +// +// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap +// second table is needed for interpretation, using a [24-hour linear +// smear](https://developers.google.com/time/smear). +// +// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By +// restricting to that range, we ensure that we can convert to and from [RFC +// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. +// +// # Examples +// +// Example 1: Compute Timestamp from POSIX `time()`. +// +// Timestamp timestamp; +// timestamp.set_seconds(time(NULL)); +// timestamp.set_nanos(0); +// +// Example 2: Compute Timestamp from POSIX `gettimeofday()`. +// +// struct timeval tv; +// gettimeofday(&tv, NULL); +// +// Timestamp timestamp; +// timestamp.set_seconds(tv.tv_sec); +// timestamp.set_nanos(tv.tv_usec * 1000); +// +// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. +// +// FILETIME ft; +// GetSystemTimeAsFileTime(&ft); +// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; +// +// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z +// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. +// Timestamp timestamp; +// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); +// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); +// +// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. +// +// long millis = System.currentTimeMillis(); +// +// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) +// .setNanos((int) ((millis % 1000) * 1000000)).build(); +// +// +// Example 5: Compute Timestamp from current time in Python. +// +// timestamp = Timestamp() +// timestamp.GetCurrentTime() +// +// # JSON Mapping +// +// In JSON format, the Timestamp type is encoded as a string in the +// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the +// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" +// where {year} is always expressed using four digits while {month}, {day}, +// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional +// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), +// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone +// is required. A proto3 JSON serializer should always use UTC (as indicated by +// "Z") when printing the Timestamp type and a proto3 JSON parser should be +// able to accept both UTC and other timezones (as indicated by an offset). +// +// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past +// 01:30 UTC on January 15, 2017. +// +// In JavaScript, one can convert a Date object to this format using the +// standard +// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) +// method. In Python, a standard `datetime.datetime` object can be converted +// to this format using +// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with +// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use +// the Joda Time's [`ISODateTimeFormat.dateTime()`]( +// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D +// ) to obtain a formatter capable of generating timestamps in this format. +// +// +type Timestamp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Represents seconds of UTC time since Unix epoch + // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + // 9999-12-31T23:59:59Z inclusive. + Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` + // Non-negative fractions of a second at nanosecond resolution. Negative + // second values with fractions must still have non-negative nanos values + // that count forward in time. Must be from 0 to 999,999,999 + // inclusive. + Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` +} + +func (x *Timestamp) Reset() { + *x = Timestamp{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_timestamp_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Timestamp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Timestamp) ProtoMessage() {} + +func (x *Timestamp) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_timestamp_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Timestamp.ProtoReflect.Descriptor instead. +func (*Timestamp) Descriptor() ([]byte, []int) { + return file_google_protobuf_timestamp_proto_rawDescGZIP(), []int{0} +} + +func (x *Timestamp) GetSeconds() int64 { + if x != nil { + return x.Seconds + } + return 0 +} + +func (x *Timestamp) GetNanos() int32 { + if x != nil { + return x.Nanos + } + return 0 +} + +var File_google_protobuf_timestamp_proto protoreflect.FileDescriptor + +var file_google_protobuf_timestamp_proto_rawDesc = []byte{ + 0x0a, 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, 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x22, 0x3b, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, + 0x18, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6e, + 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x42, + 0x7e, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x0e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, + 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_protobuf_timestamp_proto_rawDescOnce sync.Once + file_google_protobuf_timestamp_proto_rawDescData = file_google_protobuf_timestamp_proto_rawDesc +) + +func file_google_protobuf_timestamp_proto_rawDescGZIP() []byte { + file_google_protobuf_timestamp_proto_rawDescOnce.Do(func() { + file_google_protobuf_timestamp_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_timestamp_proto_rawDescData) + }) + return file_google_protobuf_timestamp_proto_rawDescData +} + +var file_google_protobuf_timestamp_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_protobuf_timestamp_proto_goTypes = []interface{}{ + (*Timestamp)(nil), // 0: google.protobuf.Timestamp +} +var file_google_protobuf_timestamp_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_protobuf_timestamp_proto_init() } +func file_google_protobuf_timestamp_proto_init() { + if File_google_protobuf_timestamp_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_timestamp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Timestamp); 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_google_protobuf_timestamp_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_timestamp_proto_goTypes, + DependencyIndexes: file_google_protobuf_timestamp_proto_depIdxs, + MessageInfos: file_google_protobuf_timestamp_proto_msgTypes, + }.Build() + File_google_protobuf_timestamp_proto = out.File + file_google_protobuf_timestamp_proto_rawDesc = nil + file_google_protobuf_timestamp_proto_goTypes = nil + file_google_protobuf_timestamp_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/known/wrapperspb/wrappers.pb.go b/vendor/google.golang.org/protobuf/types/known/wrapperspb/wrappers.pb.go new file mode 100644 index 000000000..5c5ec2f10 --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/known/wrapperspb/wrappers.pb.go @@ -0,0 +1,714 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Wrappers for primitive (non-message) types. These types are useful +// for embedding primitives in the `google.protobuf.Any` type and for places +// where we need to distinguish between the absence of a primitive +// typed field and its default value. +// +// These wrappers have no meaningful use within repeated fields as they lack +// the ability to detect presence on individual elements. +// These wrappers have no meaningful use within a map or a oneof since +// individual entries of a map or fields of a oneof can already detect presence. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/wrappers.proto + +package wrapperspb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +// Wrapper message for `double`. +// +// The JSON representation for `DoubleValue` is JSON number. +type DoubleValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The double value. + Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *DoubleValue) Reset() { + *x = DoubleValue{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DoubleValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DoubleValue) ProtoMessage() {} + +func (x *DoubleValue) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DoubleValue.ProtoReflect.Descriptor instead. +func (*DoubleValue) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{0} +} + +func (x *DoubleValue) GetValue() float64 { + if x != nil { + return x.Value + } + return 0 +} + +// Wrapper message for `float`. +// +// The JSON representation for `FloatValue` is JSON number. +type FloatValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The float value. + Value float32 `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *FloatValue) Reset() { + *x = FloatValue{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FloatValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FloatValue) ProtoMessage() {} + +func (x *FloatValue) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FloatValue.ProtoReflect.Descriptor instead. +func (*FloatValue) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{1} +} + +func (x *FloatValue) GetValue() float32 { + if x != nil { + return x.Value + } + return 0 +} + +// Wrapper message for `int64`. +// +// The JSON representation for `Int64Value` is JSON string. +type Int64Value struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The int64 value. + Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *Int64Value) Reset() { + *x = Int64Value{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Int64Value) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Int64Value) ProtoMessage() {} + +func (x *Int64Value) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Int64Value.ProtoReflect.Descriptor instead. +func (*Int64Value) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{2} +} + +func (x *Int64Value) GetValue() int64 { + if x != nil { + return x.Value + } + return 0 +} + +// Wrapper message for `uint64`. +// +// The JSON representation for `UInt64Value` is JSON string. +type UInt64Value struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The uint64 value. + Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *UInt64Value) Reset() { + *x = UInt64Value{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UInt64Value) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UInt64Value) ProtoMessage() {} + +func (x *UInt64Value) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UInt64Value.ProtoReflect.Descriptor instead. +func (*UInt64Value) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{3} +} + +func (x *UInt64Value) GetValue() uint64 { + if x != nil { + return x.Value + } + return 0 +} + +// Wrapper message for `int32`. +// +// The JSON representation for `Int32Value` is JSON number. +type Int32Value struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The int32 value. + Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *Int32Value) Reset() { + *x = Int32Value{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Int32Value) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Int32Value) ProtoMessage() {} + +func (x *Int32Value) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Int32Value.ProtoReflect.Descriptor instead. +func (*Int32Value) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{4} +} + +func (x *Int32Value) GetValue() int32 { + if x != nil { + return x.Value + } + return 0 +} + +// Wrapper message for `uint32`. +// +// The JSON representation for `UInt32Value` is JSON number. +type UInt32Value struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The uint32 value. + Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *UInt32Value) Reset() { + *x = UInt32Value{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UInt32Value) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UInt32Value) ProtoMessage() {} + +func (x *UInt32Value) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UInt32Value.ProtoReflect.Descriptor instead. +func (*UInt32Value) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{5} +} + +func (x *UInt32Value) GetValue() uint32 { + if x != nil { + return x.Value + } + return 0 +} + +// Wrapper message for `bool`. +// +// The JSON representation for `BoolValue` is JSON `true` and `false`. +type BoolValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The bool value. + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *BoolValue) Reset() { + *x = BoolValue{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoolValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoolValue) ProtoMessage() {} + +func (x *BoolValue) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoolValue.ProtoReflect.Descriptor instead. +func (*BoolValue) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{6} +} + +func (x *BoolValue) GetValue() bool { + if x != nil { + return x.Value + } + return false +} + +// Wrapper message for `string`. +// +// The JSON representation for `StringValue` is JSON string. +type StringValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The string value. + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *StringValue) Reset() { + *x = StringValue{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StringValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StringValue) ProtoMessage() {} + +func (x *StringValue) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StringValue.ProtoReflect.Descriptor instead. +func (*StringValue) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{7} +} + +func (x *StringValue) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +// Wrapper message for `bytes`. +// +// The JSON representation for `BytesValue` is JSON string. +type BytesValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The bytes value. + Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *BytesValue) Reset() { + *x = BytesValue{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BytesValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BytesValue) ProtoMessage() {} + +func (x *BytesValue) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BytesValue.ProtoReflect.Descriptor instead. +func (*BytesValue) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{8} +} + +func (x *BytesValue) GetValue() []byte { + if x != nil { + return x.Value + } + return nil +} + +var File_google_protobuf_wrappers_proto protoreflect.FileDescriptor + +var file_google_protobuf_wrappers_proto_rawDesc = []byte{ + 0x0a, 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, + 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x22, 0x23, 0x0a, 0x0b, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x49, 0x6e, + 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x23, + 0x0a, 0x0b, 0x55, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x23, 0x0a, 0x0b, 0x55, 0x49, 0x6e, 0x74, 0x33, + 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x21, 0x0a, 0x09, + 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, + 0x23, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x42, 0x79, 0x74, 0x65, 0x73, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x7c, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, + 0x0d, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, + 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0xf8, 0x01, 0x01, 0xa2, + 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, + 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_protobuf_wrappers_proto_rawDescOnce sync.Once + file_google_protobuf_wrappers_proto_rawDescData = file_google_protobuf_wrappers_proto_rawDesc +) + +func file_google_protobuf_wrappers_proto_rawDescGZIP() []byte { + file_google_protobuf_wrappers_proto_rawDescOnce.Do(func() { + file_google_protobuf_wrappers_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_wrappers_proto_rawDescData) + }) + return file_google_protobuf_wrappers_proto_rawDescData +} + +var file_google_protobuf_wrappers_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_google_protobuf_wrappers_proto_goTypes = []interface{}{ + (*DoubleValue)(nil), // 0: google.protobuf.DoubleValue + (*FloatValue)(nil), // 1: google.protobuf.FloatValue + (*Int64Value)(nil), // 2: google.protobuf.Int64Value + (*UInt64Value)(nil), // 3: google.protobuf.UInt64Value + (*Int32Value)(nil), // 4: google.protobuf.Int32Value + (*UInt32Value)(nil), // 5: google.protobuf.UInt32Value + (*BoolValue)(nil), // 6: google.protobuf.BoolValue + (*StringValue)(nil), // 7: google.protobuf.StringValue + (*BytesValue)(nil), // 8: google.protobuf.BytesValue +} +var file_google_protobuf_wrappers_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_protobuf_wrappers_proto_init() } +func file_google_protobuf_wrappers_proto_init() { + if File_google_protobuf_wrappers_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_wrappers_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DoubleValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_wrappers_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FloatValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_wrappers_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Int64Value); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_wrappers_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UInt64Value); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_wrappers_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Int32Value); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_wrappers_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UInt32Value); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_wrappers_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoolValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_wrappers_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StringValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_wrappers_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BytesValue); 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_google_protobuf_wrappers_proto_rawDesc, + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_wrappers_proto_goTypes, + DependencyIndexes: file_google_protobuf_wrappers_proto_depIdxs, + MessageInfos: file_google_protobuf_wrappers_proto_msgTypes, + }.Build() + File_google_protobuf_wrappers_proto = out.File + file_google_protobuf_wrappers_proto_rawDesc = nil + file_google_protobuf_wrappers_proto_goTypes = nil + file_google_protobuf_wrappers_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/pluginpb/plugin.pb.go b/vendor/google.golang.org/protobuf/types/pluginpb/plugin.pb.go new file mode 100644 index 000000000..43ef7cb14 --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/pluginpb/plugin.pb.go @@ -0,0 +1,636 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Author: kenton@google.com (Kenton Varda) +// +// WARNING: The plugin interface is currently EXPERIMENTAL and is subject to +// change. +// +// protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is +// just a program that reads a CodeGeneratorRequest from stdin and writes a +// CodeGeneratorResponse to stdout. +// +// Plugins written using C++ can use google/protobuf/compiler/plugin.h instead +// of dealing with the raw protocol defined here. +// +// A plugin executable needs only to be placed somewhere in the path. The +// plugin should be named "protoc-gen-$NAME", and will then be used when the +// flag "--${NAME}_out" is passed to protoc. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/compiler/plugin.proto + +package pluginpb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" + reflect "reflect" + sync "sync" +) + +// Sync with code_generator.h. +type CodeGeneratorResponse_Feature int32 + +const ( + CodeGeneratorResponse_FEATURE_NONE CodeGeneratorResponse_Feature = 0 + CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL CodeGeneratorResponse_Feature = 1 +) + +// Enum value maps for CodeGeneratorResponse_Feature. +var ( + CodeGeneratorResponse_Feature_name = map[int32]string{ + 0: "FEATURE_NONE", + 1: "FEATURE_PROTO3_OPTIONAL", + } + CodeGeneratorResponse_Feature_value = map[string]int32{ + "FEATURE_NONE": 0, + "FEATURE_PROTO3_OPTIONAL": 1, + } +) + +func (x CodeGeneratorResponse_Feature) Enum() *CodeGeneratorResponse_Feature { + p := new(CodeGeneratorResponse_Feature) + *p = x + return p +} + +func (x CodeGeneratorResponse_Feature) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CodeGeneratorResponse_Feature) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_compiler_plugin_proto_enumTypes[0].Descriptor() +} + +func (CodeGeneratorResponse_Feature) Type() protoreflect.EnumType { + return &file_google_protobuf_compiler_plugin_proto_enumTypes[0] +} + +func (x CodeGeneratorResponse_Feature) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *CodeGeneratorResponse_Feature) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = CodeGeneratorResponse_Feature(num) + return nil +} + +// Deprecated: Use CodeGeneratorResponse_Feature.Descriptor instead. +func (CodeGeneratorResponse_Feature) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{2, 0} +} + +// The version number of protocol compiler. +type Version struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Major *int32 `protobuf:"varint,1,opt,name=major" json:"major,omitempty"` + Minor *int32 `protobuf:"varint,2,opt,name=minor" json:"minor,omitempty"` + Patch *int32 `protobuf:"varint,3,opt,name=patch" json:"patch,omitempty"` + // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should + // be empty for mainline stable releases. + Suffix *string `protobuf:"bytes,4,opt,name=suffix" json:"suffix,omitempty"` +} + +func (x *Version) Reset() { + *x = Version{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Version) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Version) ProtoMessage() {} + +func (x *Version) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Version.ProtoReflect.Descriptor instead. +func (*Version) Descriptor() ([]byte, []int) { + return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{0} +} + +func (x *Version) GetMajor() int32 { + if x != nil && x.Major != nil { + return *x.Major + } + return 0 +} + +func (x *Version) GetMinor() int32 { + if x != nil && x.Minor != nil { + return *x.Minor + } + return 0 +} + +func (x *Version) GetPatch() int32 { + if x != nil && x.Patch != nil { + return *x.Patch + } + return 0 +} + +func (x *Version) GetSuffix() string { + if x != nil && x.Suffix != nil { + return *x.Suffix + } + return "" +} + +// An encoded CodeGeneratorRequest is written to the plugin's stdin. +type CodeGeneratorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The .proto files that were explicitly listed on the command-line. The + // code generator should generate code only for these files. Each file's + // descriptor will be included in proto_file, below. + FileToGenerate []string `protobuf:"bytes,1,rep,name=file_to_generate,json=fileToGenerate" json:"file_to_generate,omitempty"` + // The generator parameter passed on the command-line. + Parameter *string `protobuf:"bytes,2,opt,name=parameter" json:"parameter,omitempty"` + // FileDescriptorProtos for all files in files_to_generate and everything + // they import. The files will appear in topological order, so each file + // appears before any file that imports it. + // + // protoc guarantees that all proto_files will be written after + // the fields above, even though this is not technically guaranteed by the + // protobuf wire format. This theoretically could allow a plugin to stream + // in the FileDescriptorProtos and handle them one by one rather than read + // the entire set into memory at once. However, as of this writing, this + // is not similarly optimized on protoc's end -- it will store all fields in + // memory at once before sending them to the plugin. + // + // Type names of fields and extensions in the FileDescriptorProto are always + // fully qualified. + ProtoFile []*descriptorpb.FileDescriptorProto `protobuf:"bytes,15,rep,name=proto_file,json=protoFile" json:"proto_file,omitempty"` + // The version number of protocol compiler. + CompilerVersion *Version `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion" json:"compiler_version,omitempty"` +} + +func (x *CodeGeneratorRequest) Reset() { + *x = CodeGeneratorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CodeGeneratorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CodeGeneratorRequest) ProtoMessage() {} + +func (x *CodeGeneratorRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CodeGeneratorRequest.ProtoReflect.Descriptor instead. +func (*CodeGeneratorRequest) Descriptor() ([]byte, []int) { + return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{1} +} + +func (x *CodeGeneratorRequest) GetFileToGenerate() []string { + if x != nil { + return x.FileToGenerate + } + return nil +} + +func (x *CodeGeneratorRequest) GetParameter() string { + if x != nil && x.Parameter != nil { + return *x.Parameter + } + return "" +} + +func (x *CodeGeneratorRequest) GetProtoFile() []*descriptorpb.FileDescriptorProto { + if x != nil { + return x.ProtoFile + } + return nil +} + +func (x *CodeGeneratorRequest) GetCompilerVersion() *Version { + if x != nil { + return x.CompilerVersion + } + return nil +} + +// The plugin writes an encoded CodeGeneratorResponse to stdout. +type CodeGeneratorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Error message. If non-empty, code generation failed. The plugin process + // should exit with status code zero even if it reports an error in this way. + // + // This should be used to indicate errors in .proto files which prevent the + // code generator from generating correct code. Errors which indicate a + // problem in protoc itself -- such as the input CodeGeneratorRequest being + // unparseable -- should be reported by writing a message to stderr and + // exiting with a non-zero status code. + Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + // A bitmask of supported features that the code generator supports. + // This is a bitwise "or" of values from the Feature enum. + SupportedFeatures *uint64 `protobuf:"varint,2,opt,name=supported_features,json=supportedFeatures" json:"supported_features,omitempty"` + File []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"` +} + +func (x *CodeGeneratorResponse) Reset() { + *x = CodeGeneratorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CodeGeneratorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CodeGeneratorResponse) ProtoMessage() {} + +func (x *CodeGeneratorResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CodeGeneratorResponse.ProtoReflect.Descriptor instead. +func (*CodeGeneratorResponse) Descriptor() ([]byte, []int) { + return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{2} +} + +func (x *CodeGeneratorResponse) GetError() string { + if x != nil && x.Error != nil { + return *x.Error + } + return "" +} + +func (x *CodeGeneratorResponse) GetSupportedFeatures() uint64 { + if x != nil && x.SupportedFeatures != nil { + return *x.SupportedFeatures + } + return 0 +} + +func (x *CodeGeneratorResponse) GetFile() []*CodeGeneratorResponse_File { + if x != nil { + return x.File + } + return nil +} + +// Represents a single generated file. +type CodeGeneratorResponse_File struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The file name, relative to the output directory. The name must not + // contain "." or ".." components and must be relative, not be absolute (so, + // the file cannot lie outside the output directory). "/" must be used as + // the path separator, not "\". + // + // If the name is omitted, the content will be appended to the previous + // file. This allows the generator to break large files into small chunks, + // and allows the generated text to be streamed back to protoc so that large + // files need not reside completely in memory at one time. Note that as of + // this writing protoc does not optimize for this -- it will read the entire + // CodeGeneratorResponse before writing files to disk. + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + // If non-empty, indicates that the named file should already exist, and the + // content here is to be inserted into that file at a defined insertion + // point. This feature allows a code generator to extend the output + // produced by another code generator. The original generator may provide + // insertion points by placing special annotations in the file that look + // like: + // @@protoc_insertion_point(NAME) + // The annotation can have arbitrary text before and after it on the line, + // which allows it to be placed in a comment. NAME should be replaced with + // an identifier naming the point -- this is what other generators will use + // as the insertion_point. Code inserted at this point will be placed + // immediately above the line containing the insertion point (thus multiple + // insertions to the same point will come out in the order they were added). + // The double-@ is intended to make it unlikely that the generated code + // could contain things that look like insertion points by accident. + // + // For example, the C++ code generator places the following line in the + // .pb.h files that it generates: + // // @@protoc_insertion_point(namespace_scope) + // This line appears within the scope of the file's package namespace, but + // outside of any particular class. Another plugin can then specify the + // insertion_point "namespace_scope" to generate additional classes or + // other declarations that should be placed in this scope. + // + // Note that if the line containing the insertion point begins with + // whitespace, the same whitespace will be added to every line of the + // inserted text. This is useful for languages like Python, where + // indentation matters. In these languages, the insertion point comment + // should be indented the same amount as any inserted code will need to be + // in order to work correctly in that context. + // + // The code generator that generates the initial file and the one which + // inserts into it must both run as part of a single invocation of protoc. + // Code generators are executed in the order in which they appear on the + // command line. + // + // If |insertion_point| is present, |name| must also be present. + InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point,json=insertionPoint" json:"insertion_point,omitempty"` + // The file contents. + Content *string `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"` +} + +func (x *CodeGeneratorResponse_File) Reset() { + *x = CodeGeneratorResponse_File{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CodeGeneratorResponse_File) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CodeGeneratorResponse_File) ProtoMessage() {} + +func (x *CodeGeneratorResponse_File) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CodeGeneratorResponse_File.ProtoReflect.Descriptor instead. +func (*CodeGeneratorResponse_File) Descriptor() ([]byte, []int) { + return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{2, 0} +} + +func (x *CodeGeneratorResponse_File) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *CodeGeneratorResponse_File) GetInsertionPoint() string { + if x != nil && x.InsertionPoint != nil { + return *x.InsertionPoint + } + return "" +} + +func (x *CodeGeneratorResponse_File) GetContent() string { + if x != nil && x.Content != nil { + return *x.Content + } + return "" +} + +var File_google_protobuf_compiler_plugin_proto protoreflect.FileDescriptor + +var file_google_protobuf_compiler_plugin_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, + 0x72, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x63, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, + 0x0a, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, + 0x61, 0x6a, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, + 0x74, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, + 0x12, 0x16, 0x0a, 0x06, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x22, 0xf1, 0x01, 0x0a, 0x14, 0x43, 0x6f, 0x64, + 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x28, 0x0a, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x66, 0x69, 0x6c, + 0x65, 0x54, 0x6f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x0a, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x4c, + 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, + 0x6c, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x63, 0x6f, 0x6d, + 0x70, 0x69, 0x6c, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xbf, 0x02, 0x0a, + 0x15, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2d, 0x0a, 0x12, + 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x64, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x48, 0x0a, 0x04, 0x66, + 0x69, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, + 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52, + 0x04, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x5d, 0x0a, 0x04, 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, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x65, + 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, + 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x22, 0x38, 0x0a, 0x07, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, + 0x10, 0x0a, 0x0c, 0x46, 0x45, 0x41, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, + 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x46, 0x45, 0x41, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x50, 0x52, 0x4f, + 0x54, 0x4f, 0x33, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x10, 0x01, 0x42, 0x67, + 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x42, 0x0c, + 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x5a, 0x39, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, + 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x3b, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x67, 0x6f, +} + +var ( + file_google_protobuf_compiler_plugin_proto_rawDescOnce sync.Once + file_google_protobuf_compiler_plugin_proto_rawDescData = file_google_protobuf_compiler_plugin_proto_rawDesc +) + +func file_google_protobuf_compiler_plugin_proto_rawDescGZIP() []byte { + file_google_protobuf_compiler_plugin_proto_rawDescOnce.Do(func() { + file_google_protobuf_compiler_plugin_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_compiler_plugin_proto_rawDescData) + }) + return file_google_protobuf_compiler_plugin_proto_rawDescData +} + +var file_google_protobuf_compiler_plugin_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_google_protobuf_compiler_plugin_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_google_protobuf_compiler_plugin_proto_goTypes = []interface{}{ + (CodeGeneratorResponse_Feature)(0), // 0: google.protobuf.compiler.CodeGeneratorResponse.Feature + (*Version)(nil), // 1: google.protobuf.compiler.Version + (*CodeGeneratorRequest)(nil), // 2: google.protobuf.compiler.CodeGeneratorRequest + (*CodeGeneratorResponse)(nil), // 3: google.protobuf.compiler.CodeGeneratorResponse + (*CodeGeneratorResponse_File)(nil), // 4: google.protobuf.compiler.CodeGeneratorResponse.File + (*descriptorpb.FileDescriptorProto)(nil), // 5: google.protobuf.FileDescriptorProto +} +var file_google_protobuf_compiler_plugin_proto_depIdxs = []int32{ + 5, // 0: google.protobuf.compiler.CodeGeneratorRequest.proto_file:type_name -> google.protobuf.FileDescriptorProto + 1, // 1: google.protobuf.compiler.CodeGeneratorRequest.compiler_version:type_name -> google.protobuf.compiler.Version + 4, // 2: google.protobuf.compiler.CodeGeneratorResponse.file:type_name -> google.protobuf.compiler.CodeGeneratorResponse.File + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_google_protobuf_compiler_plugin_proto_init() } +func file_google_protobuf_compiler_plugin_proto_init() { + if File_google_protobuf_compiler_plugin_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_compiler_plugin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Version); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_compiler_plugin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CodeGeneratorRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_compiler_plugin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CodeGeneratorResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_compiler_plugin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CodeGeneratorResponse_File); 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_google_protobuf_compiler_plugin_proto_rawDesc, + NumEnums: 1, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_compiler_plugin_proto_goTypes, + DependencyIndexes: file_google_protobuf_compiler_plugin_proto_depIdxs, + EnumInfos: file_google_protobuf_compiler_plugin_proto_enumTypes, + MessageInfos: file_google_protobuf_compiler_plugin_proto_msgTypes, + }.Build() + File_google_protobuf_compiler_plugin_proto = out.File + file_google_protobuf_compiler_plugin_proto_rawDesc = nil + file_google_protobuf_compiler_plugin_proto_goTypes = nil + file_google_protobuf_compiler_plugin_proto_depIdxs = nil +} diff --git a/vendor/gopkg.in/yaml.v2/apic.go b/vendor/gopkg.in/yaml.v2/apic.go index 1f7e87e67..d2c2308f1 100644 --- a/vendor/gopkg.in/yaml.v2/apic.go +++ b/vendor/gopkg.in/yaml.v2/apic.go @@ -86,6 +86,7 @@ func yaml_emitter_initialize(emitter *yaml_emitter_t) { raw_buffer: make([]byte, 0, output_raw_buffer_size), states: make([]yaml_emitter_state_t, 0, initial_stack_size), events: make([]yaml_event_t, 0, initial_queue_size), + best_width: -1, } } diff --git a/vendor/modules.txt b/vendor/modules.txt index ecf0b9bc8..4138d5446 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -177,7 +177,7 @@ github.com/bgentry/speakeasy github.com/biogo/hts/bgzf # github.com/bmatcuk/doublestar v1.1.5 github.com/bmatcuk/doublestar -# github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae +# github.com/c2h5oh/datasize v0.0.0-20200112174442-28bbd4740fee github.com/c2h5oh/datasize # github.com/cheggaaa/pb v1.0.27 github.com/cheggaaa/pb @@ -245,20 +245,16 @@ github.com/gofrs/uuid github.com/golang-collections/collections/stack # github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e github.com/golang/groupcache/lru -# github.com/golang/protobuf v1.3.5 +# github.com/golang/protobuf v1.4.2 +github.com/golang/protobuf/internal/gengogrpc github.com/golang/protobuf/jsonpb github.com/golang/protobuf/proto github.com/golang/protobuf/protoc-gen-go github.com/golang/protobuf/protoc-gen-go/descriptor -github.com/golang/protobuf/protoc-gen-go/generator -github.com/golang/protobuf/protoc-gen-go/generator/internal/remap -github.com/golang/protobuf/protoc-gen-go/grpc -github.com/golang/protobuf/protoc-gen-go/plugin github.com/golang/protobuf/ptypes github.com/golang/protobuf/ptypes/any github.com/golang/protobuf/ptypes/duration github.com/golang/protobuf/ptypes/empty -github.com/golang/protobuf/ptypes/struct github.com/golang/protobuf/ptypes/timestamp github.com/golang/protobuf/ptypes/wrappers # github.com/golang/snappy v0.0.1 @@ -592,18 +588,25 @@ github.com/vmware/govmomi/vim25/types github.com/vmware/govmomi/vim25/xml # github.com/xanzy/go-cloudstack v0.0.0-20190526095453-42f262b63ed0 github.com/xanzy/go-cloudstack/cloudstack -# github.com/yandex-cloud/go-genproto v0.0.0-20190916101622-7617782d381e +# github.com/yandex-cloud/go-genproto v0.0.0-20200608085315-d6e7ef5ceb97 github.com/yandex-cloud/go-genproto/yandex/cloud github.com/yandex-cloud/go-genproto/yandex/cloud/access +github.com/yandex-cloud/go-genproto/yandex/cloud/ai/stt/v2 +github.com/yandex-cloud/go-genproto/yandex/cloud/ai/translate/v2 +github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1 github.com/yandex-cloud/go-genproto/yandex/cloud/api github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1 github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1/instancegroup github.com/yandex-cloud/go-genproto/yandex/cloud/containerregistry/v1 +github.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1 github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1 github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility github.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1 +github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1 +github.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1 github.com/yandex-cloud/go-genproto/yandex/cloud/loadbalancer/v1 +github.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/v1/metering github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1 github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1/config github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1 @@ -619,18 +622,26 @@ github.com/yandex-cloud/go-genproto/yandex/cloud/resourcemanager/v1 github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/functions/v1 github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1 github.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1 -# github.com/yandex-cloud/go-sdk v0.0.0-20190916101744-c781afa45829 +# github.com/yandex-cloud/go-sdk v0.0.0-20200610100221-ae86895efb97 github.com/yandex-cloud/go-sdk github.com/yandex-cloud/go-sdk/dial +github.com/yandex-cloud/go-sdk/gen/ai/stt +github.com/yandex-cloud/go-sdk/gen/ai/translate +github.com/yandex-cloud/go-sdk/gen/ai/vision github.com/yandex-cloud/go-sdk/gen/apiendpoint github.com/yandex-cloud/go-sdk/gen/compute github.com/yandex-cloud/go-sdk/gen/compute/instancegroup github.com/yandex-cloud/go-sdk/gen/containerregistry +github.com/yandex-cloud/go-sdk/gen/dataproc github.com/yandex-cloud/go-sdk/gen/functions github.com/yandex-cloud/go-sdk/gen/iam github.com/yandex-cloud/go-sdk/gen/iam/awscompatibility github.com/yandex-cloud/go-sdk/gen/iot/devices +github.com/yandex-cloud/go-sdk/gen/kms +github.com/yandex-cloud/go-sdk/gen/kmscrypto +github.com/yandex-cloud/go-sdk/gen/kubernetes github.com/yandex-cloud/go-sdk/gen/loadbalancer +github.com/yandex-cloud/go-sdk/gen/marketplace/metering github.com/yandex-cloud/go-sdk/gen/mdb/clickhouse github.com/yandex-cloud/go-sdk/gen/mdb/mongodb github.com/yandex-cloud/go-sdk/gen/mdb/mysql @@ -728,11 +739,12 @@ golang.org/x/oauth2/jwt # golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a golang.org/x/sync/errgroup golang.org/x/sync/semaphore -# golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd +# golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1 golang.org/x/sys/cpu +golang.org/x/sys/internal/unsafeheader golang.org/x/sys/unix golang.org/x/sys/windows -# golang.org/x/text v0.3.2 +# golang.org/x/text v0.3.3 golang.org/x/text/encoding golang.org/x/text/encoding/charmap golang.org/x/text/encoding/htmlindex @@ -803,16 +815,17 @@ google.golang.org/appengine/internal/modules google.golang.org/appengine/internal/remote_api google.golang.org/appengine/internal/urlfetch google.golang.org/appengine/urlfetch -# google.golang.org/genproto v0.0.0-20200325114520-5b2d0af7952b +# google.golang.org/genproto v0.0.0-20200617032506-f1bdc9086088 google.golang.org/genproto/googleapis/api/annotations google.golang.org/genproto/googleapis/iam/v1 google.golang.org/genproto/googleapis/rpc/code google.golang.org/genproto/googleapis/rpc/errdetails google.golang.org/genproto/googleapis/rpc/status +google.golang.org/genproto/googleapis/type/dayofweek google.golang.org/genproto/googleapis/type/expr google.golang.org/genproto/googleapis/type/timeofday google.golang.org/genproto/protobuf/field_mask -# google.golang.org/grpc v1.28.0 +# google.golang.org/grpc v1.29.1 google.golang.org/grpc google.golang.org/grpc/attributes google.golang.org/grpc/backoff @@ -840,6 +853,7 @@ google.golang.org/grpc/internal/grpcsync google.golang.org/grpc/internal/grpcutil google.golang.org/grpc/internal/resolver/dns google.golang.org/grpc/internal/resolver/passthrough +google.golang.org/grpc/internal/status google.golang.org/grpc/internal/syscall google.golang.org/grpc/internal/transport google.golang.org/grpc/keepalive @@ -851,6 +865,48 @@ google.golang.org/grpc/serviceconfig google.golang.org/grpc/stats google.golang.org/grpc/status google.golang.org/grpc/tap +# google.golang.org/protobuf v1.24.0 +google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo +google.golang.org/protobuf/compiler/protogen +google.golang.org/protobuf/encoding/protojson +google.golang.org/protobuf/encoding/prototext +google.golang.org/protobuf/encoding/protowire +google.golang.org/protobuf/internal/descfmt +google.golang.org/protobuf/internal/descopts +google.golang.org/protobuf/internal/detectknown +google.golang.org/protobuf/internal/detrand +google.golang.org/protobuf/internal/encoding/defval +google.golang.org/protobuf/internal/encoding/json +google.golang.org/protobuf/internal/encoding/messageset +google.golang.org/protobuf/internal/encoding/tag +google.golang.org/protobuf/internal/encoding/text +google.golang.org/protobuf/internal/errors +google.golang.org/protobuf/internal/fieldnum +google.golang.org/protobuf/internal/fieldsort +google.golang.org/protobuf/internal/filedesc +google.golang.org/protobuf/internal/filetype +google.golang.org/protobuf/internal/flags +google.golang.org/protobuf/internal/genname +google.golang.org/protobuf/internal/impl +google.golang.org/protobuf/internal/mapsort +google.golang.org/protobuf/internal/pragma +google.golang.org/protobuf/internal/set +google.golang.org/protobuf/internal/strs +google.golang.org/protobuf/internal/version +google.golang.org/protobuf/proto +google.golang.org/protobuf/reflect/protodesc +google.golang.org/protobuf/reflect/protoreflect +google.golang.org/protobuf/reflect/protoregistry +google.golang.org/protobuf/runtime/protoiface +google.golang.org/protobuf/runtime/protoimpl +google.golang.org/protobuf/types/descriptorpb +google.golang.org/protobuf/types/known/anypb +google.golang.org/protobuf/types/known/durationpb +google.golang.org/protobuf/types/known/emptypb +google.golang.org/protobuf/types/known/fieldmaskpb +google.golang.org/protobuf/types/known/timestamppb +google.golang.org/protobuf/types/known/wrapperspb +google.golang.org/protobuf/types/pluginpb # gopkg.in/ini.v1 v1.42.0 gopkg.in/ini.v1 # gopkg.in/square/go-jose.v2 v2.3.1 @@ -858,7 +914,7 @@ gopkg.in/square/go-jose.v2 gopkg.in/square/go-jose.v2/cipher gopkg.in/square/go-jose.v2/json gopkg.in/square/go-jose.v2/jwt -# gopkg.in/yaml.v2 v2.2.8 +# gopkg.in/yaml.v2 v2.3.0 gopkg.in/yaml.v2 # honnef.co/go/tools v0.0.1-2020.1.3 honnef.co/go/tools/arg